:root, html[data-theme="light"] {
  --mist: #F3F6FA;
  --surface: #FFFFFF;
  --ink: #1A2B42;
  --muted: #5C6B7E;
  --line: #D8E0EA;
  --beam: #3D8FDB;
  --beam-light: #6BB3F0;
  --night: #0F1724;
  --night-2: #1C2838;
  --paper: var(--mist);
  --cream: var(--surface);
  --navy: var(--night);
  --navy-2: var(--night-2);
  --steel: var(--beam);
  --gold: var(--beam-light);
  --header-bg: rgba(243, 246, 250, 0.9);
  --header-bg-scrolled: rgba(243, 246, 250, 0.96);
  --hero-fg: var(--ink);
  --hero-muted: var(--muted);
  --hero-wash:
    radial-gradient(720px 420px at 88% 12%, rgba(107, 179, 240, 0.36), transparent 58%),
    radial-gradient(640px 360px at 0% 110%, rgba(61, 143, 219, 0.12), transparent 52%),
    var(--mist);
  --cta-bg: #D6E8F8;
  --cta-fg: var(--ink);
  --cta-muted: var(--muted);
  --footer-bg: var(--night);
  --header: 4.5rem;
  --max: 1160px;
  --serif: "Inter", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hover: 0.18s ease;
  --shadow: 0 10px 30px rgba(15, 23, 36, 0.06);
  color-scheme: light;
}

html[data-theme="dark"] {
  --mist: #0F1724;
  --surface: #1C2838;
  --ink: #E8EEF5;
  --muted: #9AABB9;
  --line: #2A3848;
  --paper: var(--mist);
  --cream: var(--surface);
  --header-bg: rgba(15, 23, 36, 0.9);
  --header-bg-scrolled: rgba(15, 23, 36, 0.96);
  --hero-fg: #E8EEF5;
  --hero-muted: #9AABB9;
  --hero-wash:
    radial-gradient(720px 420px at 88% 12%, rgba(61, 143, 219, 0.28), transparent 58%),
    radial-gradient(640px 360px at 0% 110%, rgba(15, 23, 36, 0.88), transparent 52%),
    var(--night);
  --cta-bg: var(--night-2);
  --cta-fg: #E8EEF5;
  --cta-muted: #9AABB9;
  --shadow: none;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy-2);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid var(--beam);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 2.75rem));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  height: 2px;
  width: 0;
  background: var(--steel);
  will-change: width;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--hover), background var(--hover);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--header-bg-scrolled);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo img {
  width: 1.75rem;
  height: 1.75rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  margin: 0.22rem auto;
  background: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.2rem 0;
  border-radius: 0;
  transition: color var(--hover);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: none;
  box-shadow: inset 0 -1px 0 var(--ink);
}

.nav-cta {
  background: var(--beam) !important;
  color: #fff !important;
  margin-left: 0.2rem;
  padding: 0.45rem 0.95rem !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.nav-cta:hover {
  background: #3278c4 !important;
}

.theme-menu { position: relative; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--beam);
  cursor: pointer;
}
.theme-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 10.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.35rem;
  z-index: 20;
  box-shadow: var(--shadow);
}
.theme-menu-list button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
}
.theme-menu-list button[aria-checked="true"] { background: var(--paper); }
.theme-menu-list button[aria-checked="true"]::after { content: "✓"; color: var(--beam); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.1rem;
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-wash);
  color: var(--hero-fg);
  padding: 4.2rem 0 0;
  contain: layout paint;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 2.5rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 72% 42%, #000 18%, transparent 72%);
  pointer-events: none;
}

.hero .kicker { color: var(--beam); }
.hero h1 { color: var(--hero-fg); margin-bottom: 1.1rem; }

.lede {
  font-size: 1.12rem;
  color: var(--hero-muted);
  max-width: 38rem;
  margin-bottom: 1.4rem;
}

.hero-copy { max-width: 38rem; }
.hero-copy p { color: var(--hero-muted); }
.hero-copy p + p { margin-top: 0.9rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--hover), color var(--hover), border-color var(--hover), transform var(--hover);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--beam); color: #fff; }
.btn-primary:hover { background: #3278c4; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--beam); color: var(--beam); }
.btn-navy { background: var(--beam); color: #fff; }
.btn-navy:hover { background: #3278c4; color: #fff; }

.device-scene {
  position: relative;
  height: 470px;
  perspective: 1200px;
  contain: layout style;
}

.device-stage {
  height: 100%;
  transform: rotateY(-11deg) rotateX(7deg);
  transform-origin: 58% 48%;
}

.device-scene svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.device-scene.is-live .float-a,
.device-scene.is-live .float-b {
  will-change: transform;
}

.float-a { animation: float 7s ease-in-out infinite; }
.float-b { animation: float 7s ease-in-out infinite; animation-delay: -2.2s; }

.chart-bar {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: grow-y 1s var(--ease) both;
}

.caret { animation: blink 1.15s steps(2) infinite; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
.scan { animation: scan 5.5s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes grow-y {
  from { transform: scaleY(0.12); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes scan {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0; }
  18% { opacity: 0.45; }
  50% { transform: translate3d(0, 120px, 0); opacity: 0.12; }
  78% { opacity: 0; }
}

.hero-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 1.4rem;
  gap: 1rem;
}

.hero-bar span {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beam);
  margin-bottom: 0.28rem;
}

.hero-bar li {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.12rem;
}

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.reveal.is-in {
  animation: fade-up 0.7s var(--ease) forwards;
}

.d1 { animation-delay: 0.04s; }
.d2 { animation-delay: 0.1s; }
.d3 { animation-delay: 0.16s; }
.d4 { animation-delay: 0.22s; }

.facts-wrap {
  margin-top: -2.3rem;
  position: relative;
  z-index: 2;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
}

.facts div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 6.6rem;
  padding: 1.25rem 1.35rem;
}

.facts div + div { border-left: 1px solid var(--line); }

.facts dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  min-height: 1.5em;
  line-height: 1.25;
}

.section { padding: 4.6rem 0; }

.section-tight { padding-top: 0; }

.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 28rem;
}

.bento-cell {
  display: flex;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.35rem 1.4rem 1.4rem;
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: transform var(--hover), border-color var(--hover), background var(--hover);
}

.bento-main {
  grid-row: 1 / 3;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}

.bento-side {
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
}

.bento-cell:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(61, 143, 219, 0.45);
  background: var(--surface);
}

.bento-cell:hover .bento-art {
  transform: translate3d(0, -3px, 0);
}

.bento-copy { min-width: 0; }

.bento-visual {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.bento-main .bento-visual {
  flex: 1;
  min-height: 10rem;
  align-items: center;
}

.bento-main .bento-art {
  width: 100%;
  max-width: 22.5rem;
  height: auto;
  transition: transform 0.35s var(--ease);
}

.bento-side .bento-visual {
  flex: 0 0 4.75rem;
  align-items: center;
  justify-content: center;
}

.bento-art-phone {
  height: 6.6rem;
  width: auto;
  max-width: 4.4rem;
  transition: transform 0.35s var(--ease);
}

.bento-art-shared {
  width: 5.35rem;
  height: auto;
  transition: transform 0.35s var(--ease);
}

.bento-cell .kicker {
  margin-bottom: 0.35rem;
  color: var(--beam);
}

.bento-cell .kicker::before { display: none; }

.bento-cell h3 {
  font-size: 1.45rem;
  margin: 0.1rem 0 0.4rem;
}

.bento-cell p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34rem;
}

.float-sm { animation: float-sm 6.2s ease-in-out infinite; }

.scan-short {
  animation: scan-short 4.8s ease-in-out infinite;
}

@keyframes float-sm {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(3px, -4px, 0); }
}

@keyframes scan-short {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0; }
  20% { opacity: 0.35; }
  50% { transform: translate3d(0, 72px, 0); opacity: 0.1; }
  78% { opacity: 0; }
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 8%;
  top: 5px;
  height: 1px;
  background: linear-gradient(90deg, var(--beam), rgba(61, 143, 219, 0.12));
}

.timeline li { position: relative; padding-top: 1.35rem; }

.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--beam);
  z-index: 1;
}

.timeline em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--beam);
}

.timeline strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0.4rem 0 0.4rem;
}

.timeline span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.section-head p { max-width: 32rem; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 17.2rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.45rem 1.4rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--hover), border-color var(--hover), background var(--hover);
}

.card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(16, 35, 61, 0.28);
  background: #fff;
}

.card-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: auto;
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.card-icon svg { width: 100%; height: 100%; }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  background: var(--cream);
  list-style: none;
}

.process li {
  display: flex;
  flex-direction: column;
  padding: 1.45rem 1.3rem 1.55rem;
  height: 100%;
}

.process li + li { border-left: 1px solid var(--line); }

.process em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.process strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0.5rem 0 0.4rem;
}

.process span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  min-height: 4.35em;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 1.4rem 0 0;
  padding: 0;
}

.pills span {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 36px;
  padding: 0 14px;
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 36px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
}

.cta-band {
  margin: 0 0 4.8rem;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-radius: 1.35rem;
  padding: 2.3rem 2.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-band h2,
.cta-band p,
.cta-band .btn { position: relative; }

.cta-band p {
  color: var(--cta-muted);
  margin-top: 0.45rem;
  max-width: 34rem;
}

.cta-band .btn-ghost,
.cta-band .btn-primary {
  flex-shrink: 0;
}

.page-hero {
  background: var(--hero-wash);
  color: var(--hero-fg);
  padding: 3.5rem 0 3rem;
}

.page-hero .kicker { color: var(--beam); }
.page-hero h1 { max-width: 16ch; color: var(--hero-fg); }
.page-hero .lede { margin: 0.9rem 0 0; }

.page { padding: 3.3rem 0 4.8rem; }

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.4rem;
  align-items: start;
}

.story p + p { margin-top: 1rem; }

.founder {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.5rem;
}

.founder h2 { font-size: 1.4rem; }
.founder .role { color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }
.founder-top { margin-bottom: 0.9rem; }

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.2rem;
}

.value {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.3rem 1.25rem 1.4rem;
  transition: transform var(--hover);
}

.value:hover { transform: translate3d(0, -3px, 0); }
.value h3 { font-size: 1.2rem; margin: 0.35rem 0 0.4rem; }
.value p { color: var(--muted); font-size: 0.95rem; }

.service-row {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 1.4rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}

.service-row:last-of-type { border-bottom: 1px solid var(--line); }

.service-idx {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--gold);
}

.service-row h2 { margin: 0 0 0.5rem; font-size: 1.7rem; }
.service-row p { color: var(--muted); max-width: 40rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 1.15rem;
  margin-top: 1.8rem;
}

.contact-card,
.form-card {
  border-radius: 1.2rem;
  padding: 1.6rem;
}

.contact-card {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 26rem;
}

.contact-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  right: -70px;
  bottom: -70px;
}

.contact-card h2,
.form-card h2 {
  font-size: 1.4rem;
  margin: 0 0 1.2rem;
}

.form-card {
  background: var(--cream);
  border: 1px solid var(--line);
}

.contact-dl { display: grid; gap: 1.1rem; position: relative; z-index: 1; }
.contact-dl dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beam-light);
}
.contact-dl dd { margin-top: 0.2rem; }
.contact-dl a {
  color: #fff;
  font-family: var(--sans);
  font-size: 1.35rem;
  text-decoration: none;
}
.contact-dl a:hover { color: var(--beam-light); }

address { font-style: normal; }

.field { display: grid; gap: 0.35rem; margin-bottom: 0.95rem; }
.field span { font-size: 0.85rem; font-weight: 600; }

input,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
  transition: border-color var(--hover), box-shadow var(--hover);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--beam);
  box-shadow: 0 0 0 4px rgba(61, 143, 219, 0.18);
}

textarea { min-height: 8.5rem; resize: vertical; }

.form-note,
.form-status { font-size: 0.86rem; margin-top: 0.85rem; }
.form-status[data-state="ok"] { color: #1f6b3a; }
.form-status[data-state="err"] { color: #9b1c2c; }
.muted { color: var(--muted); }

.legal-shell {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2.4rem;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header) + 1.2rem);
  display: grid;
  gap: 0.4rem;
}

.legal-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 0.45rem;
}

.legal-nav a:hover { background: var(--cream); color: var(--ink); }

.legal-block + .legal-block {
  margin-top: 2.6rem;
  padding-top: 2.1rem;
  border-top: 1px solid var(--line);
}

.page h2 { margin: 2rem 0 0.75rem; }
.page h3 { font-size: 1.02rem; font-family: var(--sans); font-weight: 600; margin: 1.4rem 0 0.45rem; }
.page p + p,
.page ul + p,
.page p + ul { margin-top: 0.9rem; }
.page ul { padding-left: 1.15rem; }
.page li + li { margin-top: 0.35rem; }
.service-row h2,
.founder h2,
.value h3,
.form-card h2,
.contact-card h2,
.card h3 { margin-top: 0; }

.updated {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0.5rem 0 1.2rem;
}

.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo { color: #fff; }
.footer-brand p { max-width: 22rem; font-size: 0.9rem; margin-top: 0.75rem; }
.footer-brand .footer-address {
  margin-top: 1rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.site-footer h3 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beam-light);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.16rem 0;
  transition: color var(--hover);
}

.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-mirrors {
  flex: 1 0 100%;
  margin: 0.15rem 0 0;
  white-space: nowrap;
}
.footer-mirrors a {
  display: inline;
  padding: 0;
  font-size: inherit;
  color: rgba(255, 255, 255, 0.55);
}
.footer-mirrors a:hover { color: #fff; }
.footer-mirrors .sep {
  display: inline;
  margin: 0 0.4rem;
  opacity: 0.5;
  user-select: none;
}

html.is-hidden .float-a,
html.is-hidden .float-b,
html.is-hidden .float-sm,
html.is-hidden .scan,
html.is-hidden .scan-short,
html.is-hidden .chart-bar,
html.is-hidden .caret,
html.is-hidden .pulse,
.device-scene:not(.is-live) .float-a,
.device-scene:not(.is-live) .float-b,
.device-scene:not(.is-live) .float-sm,
.device-scene:not(.is-live) .scan,
.device-scene:not(.is-live) .scan-short,
.device-scene:not(.is-live) .chart-bar,
.device-scene:not(.is-live) .caret,
.device-scene:not(.is-live) .pulse,
.js-live:not(.is-live) .float-a,
.js-live:not(.is-live) .float-b,
.js-live:not(.is-live) .float-sm,
.js-live:not(.is-live) .scan,
.js-live:not(.is-live) .scan-short,
.js-live:not(.is-live) .chart-bar,
.js-live:not(.is-live) .caret,
.js-live:not(.is-live) .pulse {
  animation-play-state: paused;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .contact-grid,
  .legal-shell,
  .cards,
  .bento,
  .bento-main,
  .hero-bar,
  .timeline,
  .facts,
  .process,
  .footer-grid,
  .values { grid-template-columns: 1fr; }

  .bento-main { grid-row: auto; }
  .bento { min-height: 0; }
  .bento-main .bento-visual { min-height: 8.5rem; }

  .timeline::before { display: none; }

  .facts div + div,
  .process li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .device-scene { height: 340px; order: -1; }
  .device-stage { transform: none; }
  .hero-grid { display: flex; flex-direction: column; }
  .legal-nav { position: static; grid-auto-flow: column; margin-bottom: 1.4rem; }
  .cta-band,
  .section-head { flex-direction: column; align-items: start; }
  h1 { max-width: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.2rem 1rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-cta { margin: 0.5rem 0 0; text-align: center; }
  .theme-menu { width: 100%; }
  .theme-toggle { width: 100%; }
  .theme-menu-list { position: static; box-shadow: none; margin-top: 0.35rem; }
  .hero { padding: 2.5rem 0 4.2rem; }
  .service-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .bento-side {
    flex-direction: column;
    align-items: flex-start;
  }
  .bento-side .bento-visual { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .float-a,
  .float-b,
  .float-sm,
  .chart-bar,
  .caret,
  .pulse,
  .scan,
  .scan-short,
  .card,
  .value,
  .btn,
  .bento-cell {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1;
  }
}
