/* ---------- Tokens ---------- */
:root {
  --bg: #0A0C0F;
  --bg-2: #0D1014;
  --surface: #111419;
  --line: #1C2128;
  --line-2: #2A3039;
  --text: #E9EBEE;
  --muted: #8B929C;
  --dim: #5A616B;
  --accent: #FF5A1F;
  --accent-ink: #120602;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--muted); }
.body-lg { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }

.dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .16);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--tight { gap: 0; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #FF6D38; }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-solid {
  background: rgba(10, 12, 15, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: "Michroma", var(--sans); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.brand__sys { white-space: nowrap; }
.brand__mark { width: 33px; height: 18px; fill: currentColor; flex: none; }
.brand--small { font-size: 10px; letter-spacing: .14em; gap: 10px; }
.brand--small .brand__mark { width: 22px; height: 12px; }
.nav__links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(68px + clamp(40px, 6vw, 72px)); position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.hero__title {
  font-size: clamp(40px, 4.8vw, 68px); text-wrap: balance;
  line-height: .98; letter-spacing: -.035em; font-weight: 500;
}
.hero__lede { margin-top: 20px; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* The blueprint plate */
.plate {
  position: relative;
  aspect-ratio: 6 / 5;
  border: 1px solid var(--line);
  background-color: var(--bg-2);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  overflow: hidden;
}
.plate::after { /* fade the grid toward the edges without a colour gradient */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 80px 30px var(--bg-2);
}
.plate__corner { position: absolute; width: 14px; height: 14px; border-color: var(--muted); border-style: solid; border-width: 0; z-index: 3; }
.plate__corner--tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.plate__corner--tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.plate__corner--bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.plate__corner--br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.plate__meta {
  position: absolute; top: 20px; left: 32px; right: 32px; z-index: 3;
  display: flex; justify-content: space-between; color: var(--dim); font-size: 11px;
}
.plate__live { color: var(--muted); }
.plate__live .dot { width: 5px; height: 5px; margin-right: 8px; animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2;
  background: var(--accent); opacity: .5;
  box-shadow: 0 0 12px 1px rgba(255, 90, 31, .45);
  animation: scan 7s linear infinite;
}
@keyframes scan {
  0% { top: 0%; opacity: 0; }
  8% { opacity: .5; }
  92% { opacity: .5; }
  100% { top: 100%; opacity: 0; }
}



.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Audience tabs */
.aud-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); }
.aud-tabs button {
  background: none; border: 0; cursor: pointer; font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  color: var(--muted); padding: 10px 16px; border-radius: 5px; transition: background-color .2s, color .2s;
}
.aud-tabs button:hover { color: var(--text); background: var(--surface); }
.aud-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.aud-panels { display: grid; }
.aud { grid-area: 1 / 1; }
.aud[hidden] { display: none; }
.aud.is-entering .ind__copy, .aud.is-entering .readout, .aud.is-entering .aud.is-entering .readout { animation-delay: .06s; }
.aud.is-entering @keyframes audIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Built for */
.ind .aud-tabs { margin-bottom: 32px; }
.ind__top { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.ind__copy { display: flex; flex-direction: column; gap: 20px; }
.ind__title { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.025em; font-weight: 500; max-width: 16em; }

.readout { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); padding: 4px 18px 8px; }
.readout__head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--dim); font-size: 10.5px; border-bottom: 1px solid var(--line); }
.readout__live { color: var(--muted); white-space: nowrap; }
.readout__live .dot { width: 5px; height: 5px; margin-right: 8px; }
.readout__row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.readout__row:last-child { border-bottom: 0; }
.readout__row--kv { grid-template-columns: 112px minmax(0, 1fr); }
.readout__k { color: var(--muted); font-size: 13px; }
.readout__v { color: var(--text); }
.readout__row .readout__v.mono { text-align: right; font-size: 11px; color: var(--muted); }
.readout__row.is-flag .readout__v { color: var(--accent); }
.readout__bar { height: 6px; background: var(--line); border-radius: 1px; overflow: hidden; }
.readout__bar span { display: block; height: 100%; width: var(--p); background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.ind.is-in .readout__bar span { transform: none; animation: grow .9s var(--ease) both .2s; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }


/* Construction build-up */
.build { margin-top: 32px; border: 1px solid var(--line); background: var(--bg-2); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.build__stage { padding: clamp(12px, 2vw, 28px); border-right: 1px solid var(--line); display: grid; place-items: center; }
.build__stage svg { width: 100%; height: auto; max-height: 460px; }
.bground { fill: none; stroke: var(--line-2); stroke-dasharray: 4 5; }
.bpart { opacity: 0; transform: translateY(-10px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.bpart.is-built { opacity: 1; transform: none; }
.bpart polygon { stroke: #C9CED6; stroke-width: .8; stroke-linejoin: round; }
.bpart.slab polygon { stroke-width: .9; }
.bpart.panel polygon { stroke-opacity: .75; }
.bpart .mullion { fill: none; stroke: #C9CED6; stroke-width: .6; stroke-opacity: .5; }
.bflag { opacity: 0; transition: opacity .3s; }
.bflag.is-on { opacity: 1; }
.bflag circle { fill: var(--accent); }
.bflag .bflag__pulse { fill: none; stroke: var(--accent); transform-box: view-box; animation: pulse 1.8s var(--ease) infinite; }
.bflag path { fill: none; stroke: var(--accent); stroke-width: 1; }
.bflag text { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; fill: var(--accent); }
.build__side { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.build__pct { font-size: clamp(56px, 7vw, 88px); line-height: 1; letter-spacing: -.04em; font-weight: 500; font-variant-numeric: tabular-nums; }
.build__pctu { font-size: .45em; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.build__stagelbl { color: var(--accent); font-size: 11px; }
.build__trades { margin-top: 6px; }
.build__trades .readout__row { grid-template-columns: 120px minmax(0, 1fr) 40px; padding: 9px 0; }
.build__trades .readout__bar span { transform: none; transition: width .2s linear; }
.build__night { display: grid; gap: 10px; margin-top: 8px; color: var(--dim); font-size: 11px; }
.build__night b { color: var(--text); font-weight: 500; }
.build__night input { width: 100%; accent-color: var(--accent); }
.build__flags { font-size: 14px; color: var(--accent); display: flex; align-items: center; gap: 10px; min-height: 1.5em; }
.build__flag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 31, .2); }
.build__ok { color: var(--muted); }

/* Interest list form */
.join { margin-top: 36px; max-width: 560px; }
.join__row { display: flex; gap: 8px; }
.join__input {
  flex: 1 1 0; min-width: 0; height: 48px; padding: 0 14px;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius);
  font: inherit; font-size: 15px; transition: border-color .2s;
}
.join__input::placeholder { color: var(--dim); }
.join__input:hover { border-color: var(--dim); }
.join__input:focus { outline: none; border-color: var(--accent); }
.join__input[aria-invalid="true"] { border-color: #E5484D; }
.join__btn { flex: none; cursor: pointer; }
.join__btn[disabled] { opacity: .6; cursor: progress; }
.join__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join__msg { margin-top: 12px; font-size: 11px; color: var(--dim); text-transform: none; letter-spacing: .02em; min-height: 1.5em; }
.join__msg.is-error { color: #FF8A80; }
.join.is-done .join__row { display: none; }
.join.is-done .join__msg { font-family: var(--sans); font-size: 17px; color: var(--text); letter-spacing: 0; display: flex; gap: 12px; align-items: center; }
.join.is-done .join__msg::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .18); border-radius: 50%; }
.contact .join { margin-top: 12px; width: 100%; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0 0; }
.section, .contact, .more-bar { scroll-margin-top: 72px; }
.shead { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 32px; row-gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.shead__label { color: var(--accent); padding-top: .9em; }
.shead__title { grid-column: 2; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; max-width: 16em; }
.shead__sub { grid-column: 2; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 36em; }
.shead__label { grid-row: 1; }

.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4.5fr) minmax(0, 4.5fr); column-gap: 32px; }
.split > :first-child { grid-column: 2; }
.split > :last-child { grid-column: 3; }

/* Cadence graphic */
.cadence { margin-top: clamp(56px, 7vw, 88px); display: grid; gap: 28px; }
.cadence__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 32px; align-items: center; }
.cadence__label { display: flex; flex-direction: column; gap: 6px; }
.cadence__label .mono { color: var(--dim); font-size: 11px; }
.cadence__label strong { font-weight: 500; font-size: 18px; letter-spacing: -.01em; color: var(--text); }
.cadence__track { position: relative; height: 56px; }
.cadence__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.cadence__track--sparse .tick {
  position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 90, 31, .45);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease);
}
.cadence__gap {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 10.5px; color: var(--muted); text-align: center; pointer-events: none;
}
.cadence__gap span { background: var(--bg); padding: 0 10px; }
.cadence__track--dense { display: flex; align-items: stretch; gap: 0; }
.cadence__track--dense::before { display: none; }
.night { flex: 1 1 0; display: flex; justify-content: center; }
.night::after {
  content: ""; width: 1px; background: var(--accent);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .35s var(--ease);
  transition-delay: calc(var(--i) * 3ms);
}
.cadence.is-in .night::after, .cadence.is-in .tick { transform: scaleY(1); }
.cadence.is-in .tick:nth-child(2) { transition-delay: .35s; }
.cadence.is-in .tick:nth-child(3) { transition-delay: .7s; }
.cadence.is-in .tick:nth-child(4) { transition-delay: 1.05s; }
.cadence__axis { display: flex; justify-content: space-between; margin-left: calc((100% - 32px) * 3 / 12 + 32px); color: var(--dim); font-size: 11px; border-top: 1px solid var(--line); padding-top: 10px; }


/* Hero dock loop */
.plate--dock { aspect-ratio: auto; display: flex; flex-direction: column; padding: 44px clamp(12px, 1.6vw, 24px) 20px; }
.plate--dock::after { z-index: 0; }
.plate--dock .launch__stage, .plate--dock .dockcap, .plate--dock .launch__progress { position: relative; z-index: 1; }
.launch__stage { width: 100%; }
.launch__stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.launch__stage #ds-door-l, .launch__stage #ds-door-r, .launch__stage #ds-overseer, .launch__stage #ds-scout { will-change: transform; }
.dockcap { display: flex; gap: 14px; align-items: baseline; min-height: 2.9em; margin-top: 8px; font-size: 14.5px; color: var(--text); }
.dockcap__t { color: var(--accent); font-size: 11px; flex: none; }
#dockText { transition: opacity .3s var(--ease); }
.dock-live { opacity: 0; pointer-events: none; }
.dock-live .wifi { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; animation: wifi 1.4s steps(1) infinite; }
.dock-live .w2 { animation-delay: .2s; } .dock-live .w3 { animation-delay: .4s; }
.dock-live circle { fill: var(--accent); }
.dock-live text { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; fill: var(--accent); }
.dock-swap { opacity: 0; pointer-events: none; }
.dock-swap .batt { fill: var(--bg); stroke: var(--accent); stroke-width: 1.6; }
.dock-swap .batt-cap { fill: var(--accent); }
.dock-swap .batt-fill { fill: var(--accent); }
.dock-swap text { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; fill: var(--accent); }
@keyframes wifi { 0% { opacity: .25; } 30% { opacity: 1; } }
#dockText.is-swapping { opacity: 0; }
.launch__progress { height: 1px; background: var(--line); position: relative; margin-top: 12px; }
.launch__progress span { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* Built for (summary) */
#industries { padding-top: clamp(48px, 6vw, 88px); }
.ind__label { color: var(--accent); font-size: 11px; margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; color: var(--text); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; }

/* Learn more */
.more-bar { padding-top: clamp(40px, 5vw, 64px); }
.more-btn {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 22px 24px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  cursor: pointer; text-align: left; transition: border-color .2s, background-color .2s;
}
.more-btn:hover { border-color: var(--muted); background: var(--surface); }
.more-btn__main { font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.more-btn__sub { color: var(--muted); font-size: 14.5px; }
.more-btn__icon { width: 14px; height: 14px; position: relative; }
.more-btn__icon::before, .more-btn__icon::after { content: ""; position: absolute; background: var(--accent); left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; transition: transform .3s var(--ease); }
.more-btn__icon::after { transform: rotate(90deg); }
.more-btn[aria-expanded="true"] .more-btn__icon::after { transform: rotate(0deg); }
.more { animation: moreIn .5s var(--ease) both; }
@keyframes moreIn { from { opacity: 0; } to { opacity: 1; } }

/* Contact (compact) + founders */
.contact { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.founders { align-self: end; display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--line-2); padding-top: 20px; }
.founders__k { color: var(--dim); font-size: 11px; }
.founders__row { display: flex; flex-wrap: wrap; gap: 28px; }
.founder { display: flex; align-items: center; gap: 12px; }
.founder strong { display: block; font-weight: 500; font-size: 15px; }
.founder .mono { color: var(--accent); font-size: 10.5px; }
.avatar--sm { width: 48px; height: 48px; font-size: 12px; }
.founders__note a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.founders__note a:hover { border-color: var(--text); }

/* Battery hot-swap */
.swap { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; border: 1px solid var(--line); background: var(--bg-2); padding: clamp(24px, 4vw, 48px); }
.swap__kicker { color: var(--accent); font-size: 11px; margin-bottom: 14px; }
.swap__title { font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -.025em; font-weight: 500; margin-bottom: 16px; }
.swap__steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; font-size: 11px; color: var(--text); text-transform: none; letter-spacing: .02em; }
.swap__steps li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.swap__steps span { color: var(--accent); }

.swap__viz { display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto auto; column-gap: 20px; row-gap: 20px; align-items: end; }
.swap__group { display: flex; flex-direction: column; gap: 12px; }
.swap__label { color: var(--dim); font-size: 10.5px; }
.swap__cells { display: flex; gap: 14px; }
.swap__arrows { display: flex; flex-direction: column; gap: 10px; padding-bottom: 60px; }
.swap__arrows span { display: block; width: 36px; height: 1px; background: var(--line-2); position: relative; }
.swap__arrows span::after { content: ""; position: absolute; top: -3px; border: 3.5px solid transparent; }
.swap__arrows span:first-child::after { right: 0; border-left-color: var(--line-2); border-right: 0; }
.swap__arrows span:last-child::after { left: 0; border-right-color: var(--line-2); border-left: 0; }

.cell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cell__body { position: relative; width: 46px; height: 104px; border: 1px solid var(--line-2); border-radius: 5px; padding: 3px; display: flex; align-items: flex-end; background: var(--bg); transition: border-color .3s; }
.cell__body::before { content: ""; position: absolute; top: -5px; left: 50%; width: 16px; height: 4px; margin-left: -8px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 2px 2px 0 0; }
.cell__fill { display: block; width: 100%; height: var(--lvl, 50%); background: var(--muted); border-radius: 2px; transition: height .12s linear, background-color .3s; }
.cell.is-full .cell__fill { background: var(--text); }
.cell--flight .cell__fill { background: var(--accent); }
.cell--flight .cell__body { border-color: var(--accent); }
.cell__pct { font-size: 10.5px; color: var(--muted); min-width: 4ch; text-align: center; }
.cell.is-swapped .cell__body { animation: swapFlash .6s var(--ease); }
@keyframes swapFlash { 0% { transform: translateY(-10px); opacity: .2; } 100% { transform: none; opacity: 1; } }

.swap__timeline { grid-column: 1 / -1; height: 18px; overflow: hidden; position: relative; border-top: 1px solid var(--line); padding-top: 8px; }
.swap__track { display: flex; align-items: center; height: 10px; position: absolute; right: 0; }
.swap__track .seg { height: 2px; width: 72px; background: var(--accent); flex: none; }
.swap__track .seg.is-live { width: var(--w, 0px); }
.swap__track .mark { flex: none; width: 2px; height: 10px; background: var(--text); margin: 0 3px; }
.swap__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--dim); font-size: 10.5px; }
.swap__meta b { color: var(--text); font-weight: 500; margin-left: 6px; }

/* System cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); display: flex; flex-direction: column; }
.card__img {
  aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 28px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-2);
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px);
  background-size: 16px 16px;
}
.card__img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.card__body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.card__idx { color: var(--dim); font-size: 11px; }
.card__title { font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.card__body > p:not(.card__idx) { color: var(--muted); }
.specs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; font-size: 11px; color: var(--text); text-transform: none; letter-spacing: .01em; }
.specs li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.specs li::before { content: "+"; color: var(--accent); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr); column-gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: background-color .3s; }
.step__n { color: var(--dim); font-size: 13px; }
.step__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; align-items: baseline; }
.step h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.02em; }
.step p { color: var(--muted); }
.step__who { color: var(--muted); text-align: right; font-size: 11px; }
.step:hover .step__n { color: var(--accent); }

/* Perception compare */
.compare { border: 1px solid var(--line); background: var(--bg-2); }
.compare__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 3px; gap: 2px; }
.tabs button {
  background: none; border: 0; cursor: pointer; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); padding: 8px 14px; border-radius: 2px; transition: background-color .2s, color .2s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.compare__meta { color: var(--dim); font-size: 11px; padding-right: 8px; }
.compare__body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.compare__stage { padding: clamp(12px, 2vw, 28px); border-right: 1px solid var(--line); }
.compare__stage { position: relative; overflow: hidden; }
.compare__meta { position: absolute; left: clamp(12px, 2vw, 28px); bottom: 10px; }
.tilt { transform: perspective(1500px) rotateX(30deg) scale(.97); transform-origin: 50% 62%; margin: -7% 0 2%; }
.tilt svg { width: 100%; height: auto; display: block; overflow: visible; }
.sitemap text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; }
.sitemap { margin-top: 32px; }
.flag__pulse { transform-box: view-box; animation: pulse 1.8s var(--ease) infinite; fill: none; stroke: var(--accent); }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

.legend { list-style: none; margin: 0; padding: 0 6px 0 0; display: flex; gap: 16px; font-size: 10.5px; color: var(--dim); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; }
.legend--issue::before { background: rgba(255, 90, 31, .25); border: 1px solid var(--accent); }
.legend--review::before { border: 1px dashed var(--text); }
.legend--change::before { border: 1px dashed var(--muted); }

.layer, .cloud { transition: opacity .6s var(--ease); }
.layer--after, .layer--read, .layer--path { opacity: 0; }
.compare[data-state="tonight"] .layer--before, .compare[data-state="read"] .layer--before { opacity: 0; }
.compare[data-state="tonight"] .layer--after, .compare[data-state="tonight"] .layer--path { opacity: 1; }
.compare[data-state="read"] .layer--after { opacity: .9; }
.compare[data-state="read"] .layer--read { opacity: 1; }
.compare[data-state="read"] .cloud { opacity: .42; }
.compare:not([data-state="read"]) .layer--read { pointer-events: none; }

.hot { cursor: pointer; outline: none; }
.hot__area { transition: fill .2s, stroke-width .2s; }
.hot--issue .hot__area { fill: rgba(255, 90, 31, .14); stroke: var(--accent); stroke-width: 1.5; }
.hot--review .hot__area { fill: rgba(233, 235, 238, .05); stroke: var(--text); stroke-width: 1.2; stroke-dasharray: 5 4; }
.hot--change .hot__area { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.hot:hover .hot__area, .hot:focus-visible .hot__area, .hot.is-selected .hot__area { stroke-width: 2.4; }
.hot--issue:hover .hot__area, .hot--issue.is-selected .hot__area { fill: rgba(255, 90, 31, .26); }
.hot--review:hover .hot__area, .hot--review.is-selected .hot__area { fill: rgba(233, 235, 238, .12); }
.hot__tag rect { fill: var(--bg-2); stroke: var(--line-2); }
.hot__tag text { fill: var(--muted); }
.hot--issue .hot__tag rect { fill: var(--accent); stroke: var(--accent); }
.hot--issue .hot__tag text { fill: var(--accent-ink); font-weight: 500; }
.hot--review .hot__tag rect { stroke: var(--text); }
.hot--review .hot__tag text { fill: var(--text); }
.compare[data-detail] .hot:not(.is-selected) { opacity: .45; }

.compare__side { padding: 28px; display: grid; }
.pane { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .15s linear, transform .15s linear; pointer-events: none; visibility: hidden; display: flex; flex-direction: column; gap: 14px; }
.compare[data-state="baseline"] .pane[data-pane="baseline"],
.compare[data-state="tonight"] .pane[data-pane="tonight"],
.compare[data-state="read"]:not([data-detail]) .pane[data-pane="read"],
.compare[data-state="read"][data-detail] .pane[data-pane="detail"] { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .45s var(--ease) .15s, transform .45s var(--ease) .15s; }
.pane__k { color: var(--dim); font-size: 11px; }
.pane__t { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 500; }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.finding { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background-color .2s; }
.finding:hover, .finding.is-selected { background: var(--surface); border-color: var(--muted); }
.finding--issue { border-color: var(--accent); }
.findings__tag { font-size: 10.5px; color: var(--muted); }
.finding--issue .findings__tag { color: var(--accent); }
.finding--review .findings__tag { color: var(--text); }
.finding strong, .findings strong { font-weight: 500; font-size: 15px; }
.detail__back { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--muted); font-size: 11px; cursor: pointer; }
.detail__back:hover { color: var(--text); }
.detail__kind--issue { color: var(--accent); }
.detail__kind--review { color: var(--text); }
.detail__dl { margin: 0; display: grid; gap: 6px; }
.detail__dl dt { color: var(--dim); font-size: 10.5px; margin-top: 6px; }
.detail__dl dd { margin: 0; color: var(--muted); font-size: 14.5px; }
.verdict { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.verdict__q { color: var(--dim); font-size: 10.5px; }
.verdict__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.verdict__btns button { background: none; border: 1px solid var(--line-2); color: var(--text); font-size: 13.5px; padding: 8px 12px; border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background-color .2s; }
.verdict__btns button:hover { border-color: var(--muted); }
.verdict__btns button.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.verdict__msg { font-size: 13.5px; min-height: 1.2em; }
.inline-link { color: var(--text); border-bottom: 1px solid var(--line-2); }
.inline-link:hover { border-color: var(--text); }

.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(56px, 7vw, 88px); }
.triad__item { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.triad__k { color: var(--accent); font-size: 11px; }
.triad h3 { font-size: 20px; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }


/* Why */

.table-wrap { margin-top: clamp(48px, 6vw, 72px); overflow-x: auto; }
.vs { width: 100%; border-collapse: collapse; min-width: 560px; }
.vs th, .vs td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.vs thead th { color: var(--dim); font-size: 11px; padding-bottom: 14px; border-bottom-color: var(--line-2); }
.vs tbody th { color: var(--muted); width: 25%; }
.vs td { color: var(--muted); width: 37.5%; }
.vs .vs__us { color: var(--text); }
.vs thead .vs__us { color: var(--accent); }

/* Status */
.status { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.status__item { display: grid; grid-template-columns: minmax(0, 3fr) 72px minmax(0, 9fr); column-gap: 0; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.status__item > span:last-child { font-size: 17px; }
.status__mark { justify-self: end; margin-right: 32px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--dim); }
.status__state { color: var(--dim); font-size: 11px; }
.is-done { color: var(--text); }
.is-done .status__mark { background: var(--text); border-color: var(--text); }
.is-done .status__state { color: var(--text); }
.is-now { color: var(--text); }
.is-now .status__mark { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 5px var(--accent); }
.is-now .status__state { color: var(--accent); }

/* Team */
.team { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4.5fr) minmax(0, 4.5fr); column-gap: 32px; row-gap: 40px; }
.person:first-child { grid-column: 2; }
.person { display: flex; gap: 20px; align-items: flex-start; }
.avatar { position: relative; flex: none; width: 88px; height: 88px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text); font-size: 15px; background: var(--bg-2); overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.person__role { color: var(--accent); font-size: 11px; margin: 6px 0 12px; }

/* Contact */
.contact { padding-bottom: var(--section); }
.contact__inner { border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact__inner .shead__label { padding-top: 0; }
.contact__title { font-size: clamp(32px, 4vw, 52px); line-height: .98; letter-spacing: -.04em; font-weight: 500; max-width: 12em; }
.contact .body-lg { max-width: 32em; }
.contact .hero__cta { margin-top: 12px; }
.contact__email { color: var(--muted); font-size: 12px; margin-top: 8px; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .2s, border-color .2s; text-transform: none; }
.contact__email:hover { color: var(--text); border-color: var(--text); }

.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 32px; border-top: 1px solid var(--line); }
.contact__grid .contact__inner { border-top: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter); color: var(--dim); font-size: 11px; flex-wrap: wrap; }
.footer .brand { color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 640px; }
  .cards { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .card__img { border-bottom: 0; border-right: 1px solid var(--line); aspect-ratio: auto; min-height: 260px; }
  .compare__body { grid-template-columns: 1fr; }
  .compare__stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .step__main { grid-template-columns: 1fr; gap: 8px; }
  .more-btn { grid-template-columns: 1fr auto; }
  .more-btn__sub { grid-column: 1; grid-row: 2; }
  .more-btn__icon { grid-row: 1 / span 2; grid-column: 2; }
  .contact__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .ind__top { grid-template-columns: 1fr; gap: 32px; }
  .build { grid-template-columns: 1fr; }
  .build__stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .swap { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .hide-sm { display: none; }
  .swap__viz { grid-template-columns: auto 1fr; }
  .swap__arrows { display: none; }
  .cell__body { width: 38px; height: 88px; }
  .swap__cells { gap: 10px; }
  .swap__steps { grid-template-columns: 1fr; }
  .readout__row, .readout__row--kv { grid-template-columns: 96px minmax(0, 1fr) 40px; }
  .readout__row--kv { grid-template-columns: 96px minmax(0, 1fr); }
  .brand { font-size: 11px; letter-spacing: .12em; gap: 10px; }
  .brand__mark { width: 28px; height: 15px; }
  .aud-tabs { display: flex; width: 100%; }
  .aud-tabs button { flex: 1 1 auto; padding: 10px 8px; font-size: 14px; }
  .shead, .split, .cadence__row, .team, .step, .status__item { grid-template-columns: 1fr; }
  .shead__title, .shead__sub, .split > *, .person:first-child { grid-column: 1; }
  .shead__label { padding-top: 0; }
  .split { row-gap: 20px; }
  .cadence__row { row-gap: 10px; }
  .cadence__axis { margin-left: 0; }
  .join__row { flex-direction: column; }
  .join__input { flex: none; }
  .join__btn { justify-content: center; }
  .card { display: flex; }
  .card__img { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; min-height: 0; }
  .step { row-gap: 10px; padding: 24px 0; }
  .step__who { text-align: left; }
  .triad { grid-template-columns: 1fr; gap: 28px; }
  .status__item { grid-template-columns: 24px 56px minmax(0, 1fr); }
  .status__mark { justify-self: start; margin-right: 0; }
  .plate__meta { left: 24px; right: 24px; }
  .compare__meta { display: none; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 8px 6px; font-size: 10.5px; }
  .compare__side { padding: 20px; }
  .compare__stage { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scanline, .flag__pulse, .plate__live .dot { animation: none; }
  .night::after, .tick { transition: none; transform: none; }
  .aud.is-entering .ind__copy, .aud.is-entering .readout, .readout__bar span { animation: none; }
  .scanline { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .layer, .cloud, .pane { transition: none; }
  .flag__pulse, .bflag__pulse { animation: none; }
  .bpart { transition: none; transform: none; }
}
