/* ============================================================================
   TraqWork — JARVIS landing.  "Arc — The Keynote Cut."
   One chroma (Arc Amber). Graphite night → bone daylight → dusk.
   Serif = the company speaking. System = everything functional. Mono = JARVIS.
   ========================================================================== */

/* ---- tokens --------------------------------------------------------------- */
:root {
  --bg-dark:      #08090C;
  --bg-dark-mid:  #1A1C22;
  --bg-light:     #F4F2ED;
  --bg-light-warm:#EFE9DC;
  --ink:          #0C0D10;
  --accent:       #3EC7FF;   /* Ice Blue — the only chroma (matches JARVIS "Deep Space" theme) */
  --accent-deep:  #1391D4;
  --grey-cool:    #C9CCD2;   /* secondary text on dark */
  --grey-mid:     #8A8D94;   /* eyebrows/captions on DARK — clears WCAG AA on #08090C */

  /* orb light (read by orb.js as "r g b" channels) — ice-blue tungsten */
  --orb-core:  234 248 255;
  --orb-accent: 62 199 255;
  --orb-deep:  19 145 212;

  --font-serif: 'Newsreader', ui-serif, Georgia, 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'SF Mono', ui-monospace, 'Menlo', Menlo, Consolas, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --maxw: 1180px;
}

/* ---- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--grey-cool);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(62,199,255,.26); color: var(--bg-light); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, p, figure, ol, ul { margin: 0; }

/* visible keyboard focus everywhere (never bare outline:none) */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- type primitives ------------------------------------------------------ */
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.title-card {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.title-card--quote { font-style: italic; font-weight: 400; }
.lede {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  max-width: 38ch;
  color: var(--grey-cool);
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.mono { font-family: var(--font-mono); }
.mono-voice {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: .03em;
}
.folio {
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--grey-mid);
  text-transform: uppercase;
}

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; white-space: nowrap;
  font-size: .9375rem; font-weight: 500; letter-spacing: -0.01em;
  padding: .85em 1.5em; border-radius: 100px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--bg-light); background: transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease), color .4s;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--lg { font-size: 1.0625rem; padding: 1em 1.8em; }
.btn--ghost { color: var(--bg-light); }
.btn--mini {
  font-size: .8125rem; padding: .5em 1em;
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
[data-ui='light'] .btn { color: var(--ink); }
[data-ui='light'] .btn--mini { border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
[data-ui='light'] .btn--mini:hover { border-color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* ---- fixed chrome: scrubber, folio, nav, dock --------------------------- */
.scrubber {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 90; background: transparent; pointer-events: none;
}
.scrubber__fill {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  box-shadow: 0 0 12px rgba(62,199,255,.5);
}
.folio-fixed {
  position: fixed; right: clamp(16px, 3vw, 34px); bottom: clamp(16px, 3vh, 30px);
  z-index: 80; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  color: var(--grey-mid); pointer-events: none; mix-blend-mode: difference;
  opacity: .8;
}
.folio-fixed__num { color: var(--accent); }
.folio-fixed__total { opacity: .5; }

.dock-orb {
  position: fixed; top: 16px; right: clamp(16px, 3vw, 30px);
  width: 46px; height: 46px; z-index: 85; pointer-events: none;
  opacity: 0; transition: opacity .8s ease;
}
.dock-orb.is-on { opacity: 1; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(.85rem, 1.8vh, 1.4rem) clamp(1.1rem, 4vw, 2.6rem);
  transition: background .5s ease, backdrop-filter .5s ease, transform .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg-dark) 62%, transparent);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: rgba(255,255,255,.06);
}
[data-ui='light'] .nav.is-scrolled {
  background: color-mix(in srgb, var(--bg-light) 68%, transparent);
  border-bottom-color: rgba(12,13,16,.08);
}
.nav.is-hidden { transform: translateY(-104%); }
.nav__brand { display: inline-flex; align-items: center; gap: .6rem; }
.nav__mark { width: 24px; height: 24px; fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(62,199,255,.35)); }
.nav__word { font-weight: 600; font-size: .98rem; letter-spacing: -0.01em; color: var(--bg-light); }
[data-ui='light'] .nav__word { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.5rem); }
.nav__status { display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--grey-mid); }
.nav__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px rgba(62,199,255,.8); animation: heartbeat 4s ease-in-out infinite; }
@keyframes heartbeat { 0%,86%,100%{opacity:.55;transform:scale(1)} 90%{opacity:1;transform:scale(1.5)} }
.lang { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; font-weight: 500; }
.lang__btn { color: var(--grey-mid); letter-spacing: .04em; padding: .1rem .15rem; position: relative; transition: color .3s; }
.lang__btn[aria-pressed='true'] { color: var(--bg-light); }
[data-ui='light'] .lang__btn[aria-pressed='true'] { color: var(--ink); }
.lang__btn[aria-pressed='true']::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: var(--accent); animation: penstroke .26s var(--ease);
}
@keyframes penstroke { from { transform: scaleX(0); transform-origin: 0 50%; } to { transform: scaleX(1); } }
.lang__sep { color: var(--grey-mid); opacity: .5; }
.nav__status span:last-child { transition: color .3s; }

/* hide status text on small screens */
@media (max-width: 560px) { .nav__status { display: none; } .nav__word { display: none; } }

/* ---- generic reveals ------------------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .85s ease, transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.focuspull { filter: blur(14px); transform: translateY(46px) scale(.985); transition: opacity .95s ease, transform 1.05s var(--ease), filter 1.05s var(--ease); }
.focuspull.is-in { filter: blur(0); }
.reveal-soft { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s var(--ease); }
body.is-ready .reveal-soft { opacity: 1; transform: none; }
.hero__sub.reveal-soft { transition-delay: .35s; }
.hero__actions.reveal-soft { transition-delay: .5s; }
.eyebrow.reveal-soft { transition-delay: .05s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .focuspull, .reveal-soft { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---- scenes (dark, full-bleed) ------------------------------------------- */
.scene { position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; overflow: hidden; background: var(--bg-dark); padding: 7rem 1.25rem; }
.scene__orb { position: absolute; left: 50%; top: 50%;
  width: min(118vh, 1100px); height: min(118vh, 1100px);
  transform: translate(-50%, -36%); z-index: 0; pointer-events: none; }
.scene__orb--ember { transform: translate(-50%, -50%); width: min(80vh, 720px); height: min(80vh, 720px); opacity: .9; }
.scene__grade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 54%, transparent 30%, rgba(8,9,12,.55) 78%, var(--bg-dark) 100%),
    radial-gradient(120% 80% at 50% 120%, rgba(8,9,12,.85), transparent 60%);
}

/* HERO */
.hero__inner { position: relative; z-index: 2; max-width: 50rem; display: grid; gap: 1.5rem; justify-items: center; }
.hero__title { color: var(--bg-light); }
.hero__title .word { display: inline-block; opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity .9s ease, transform 1s var(--ease), filter 1s var(--ease); }
.hero__title.is-typed .word { opacity: 1; transform: none; filter: blur(0); }
.hero__sub { color: var(--grey-cool); max-width: 34ch; }
.hero__actions { margin-top: .75rem; }

.scrollcue { position: absolute; bottom: clamp(1.5rem, 4vh, 3rem); left: 50%; transform: translateX(-50%);
  z-index: 3; display: grid; justify-items: center; gap: .6rem; }
.scrollcue__line { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent);
  transform-origin: top; animation: cuegrow 2.4s ease-in-out infinite; }
@keyframes cuegrow { 0%,100%{transform:scaleY(.4);opacity:.5} 50%{transform:scaleY(1);opacity:1} }
.scrollcue__txt { font-size: .68rem; letter-spacing: .2em; color: var(--grey-mid); text-transform: uppercase; }

/* ---- pinned scenes -------------------------------------------------------- */
.pin { position: relative; background: var(--bg-dark); }
.pin--dark { background: var(--bg-dark); }
.pin__stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center;
  overflow: hidden; padding: 6rem 1.25rem; }
#naming { height: 240vh; }
#voice  { height: 300vh; }
#dawn   { height: 230vh; }

.scene-head { display: grid; gap: 1.1rem; max-width: 46rem; }
.scene-head--center { justify-items: center; text-align: center; }
.scene-head .title-card { color: var(--bg-light); }
.scene-head--center .lede { max-width: 40ch; }

/* THE NAMING — diagram + leader lines */
.naming { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(1.25rem, 3.5vh, 2.5rem); width: min(var(--maxw), 92vw); margin: 0 auto; }
.naming .scene-head { flex: none; max-width: 42rem; text-align: center; justify-items: center; gap: .9rem; }
.naming .scene-head .title-card { font-size: clamp(1.9rem, 4.4vw, 3.5rem); }
.naming .scene-head .lede { max-width: 46ch; margin: 0 auto; font-size: clamp(1rem, 1.3vw, 1.18rem); }
.naming__diagram { position: relative; width: 100%; flex: 1 1 auto; min-height: 44vh; }
.naming__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.naming__lines line { stroke: var(--accent); stroke-width: 1; opacity: .55; }
.naming__core { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%,-50%);
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px 4px rgba(62,199,255,.55), 0 0 4px #fff inset;
  animation: corepulse 3.4s ease-in-out infinite; }
@keyframes corepulse { 0%,100%{transform:translate(-50%,-50%) scale(1);opacity:.85} 50%{transform:translate(-50%,-50%) scale(1.25);opacity:1} }
.plaque { position: absolute; display: grid; gap: .25rem; justify-items: center; text-align: center;
  width: 11rem; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .55s ease; }
.plaque.is-lit { opacity: 1; }
.plaque__label { font-size: .7rem; letter-spacing: .22em; color: var(--accent); }
.plaque__engine { font-size: .82rem; letter-spacing: .02em; color: var(--grey-cool); }
@media (max-width: 600px) { .plaque { width: 8.5rem; } .plaque__engine { font-size: .74rem; } }
/* narrow screens: clean vertical specimen stack (set via JS .is-stack) */
.naming__diagram.is-stack { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1.5rem; min-height: auto; }
.naming__diagram.is-stack .naming__core,
.naming__diagram.is-stack .naming__lines { display: none; }
.naming__diagram.is-stack .plaque { position: static; transform: translateY(10px); width: auto; }
.naming__diagram.is-stack .plaque.is-lit { transform: none; }

/* THE VOICE — console / truth-gate */
.voice { align-content: center; gap: clamp(2rem, 5vh, 3.5rem); }
.triad { font-family: var(--font-sans); font-size: clamp(.95rem,1.4vw,1.15rem); color: var(--grey-mid); letter-spacing: .02em; }
.scene-head--center .title-card--quote { color: var(--bg-light); }
.console { width: min(620px, 92vw); display: grid; gap: 1.2rem; justify-items: stretch;
  padding: 1.6rem clamp(1.2rem, 3vw, 2.2rem); border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.console__wave { width: 100%; height: 70px; filter: drop-shadow(0 0 6px rgba(62,199,255,.4)); }
.console__steps { list-style: none; padding: 0; display: grid; gap: .5rem; }
.cstep { display: flex; align-items: center; gap: .65rem; font-size: .84rem; color: var(--grey-mid);
  opacity: .35; transition: opacity .4s ease, color .4s ease; }
.cstep__tick { color: var(--grey-mid); width: 1ch; }
.cstep.is-on { opacity: 1; color: var(--grey-cool); }
.cstep.is-on .cstep__tick { color: var(--accent); }
.console__reply { font-size: 1.0625rem; min-height: 1.5em; opacity: 0; transition: opacity .4s ease; }
.console__reply.is-shown { opacity: 1; }
.caret { display: inline-block; width: .55ch; height: 1.05em; vertical-align: -0.18em; margin-left: 2px;
  background: var(--accent); animation: blink 1s steps(1) infinite; }
.console__reply.is-shown .caret { animation: none; opacity: 0; }
@keyframes blink { 50% { opacity: 0; } }
.console__artifact { font-size: .82rem; color: var(--grey-cool); letter-spacing: .02em; opacity: 0; transform: translateY(6px);
  transition: opacity .5s ease, transform .5s var(--ease); }
.console__artifact.is-shown { opacity: 1; transform: none; }

/* ---- THE DAWN — the transition ------------------------------------------- */
.pin--dawn { background: var(--bg-dark); }
.dawn { padding: 0; --dawn: 0; }
.dawn__sky { position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg-dark), var(--bg-light) calc(var(--dawn) * 100%)) 0%,
      color-mix(in srgb, var(--bg-dark-mid), var(--bg-light) calc(var(--dawn) * 100%)) 100%);
}
.dawn__sky::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 160%; height: 90%;
  background: radial-gradient(60% 100% at 50% 100%,
    rgba(62,199,255, calc(.55 * (1 - var(--dawn)) * var(--dawn) * 4)) 0%,
    rgba(62,199,255,0) 62%);
  filter: blur(8px);
}
.dawn__inner { position: relative; z-index: 2; text-align: center; display: grid; gap: 1.2rem; justify-items: center;
  padding: 0 1.25rem; }
.dawn__title { color: color-mix(in srgb, var(--bg-light), var(--ink) calc(var(--dawn) * 100%)); }
.dawn__sub { color: color-mix(in srgb, var(--grey-cool), var(--grey-mid) calc(var(--dawn) * 100%)); }
.dawn .folio { color: color-mix(in srgb, var(--grey-mid), var(--ink) calc(var(--dawn) * 70%)); }

/* ---- daylight chapters ---------------------------------------------------- */
.chapter { position: relative; min-height: 100svh; display: grid; align-items: center;
  background: var(--bg-light); color: var(--ink); padding: clamp(5rem, 12vh, 9rem) 0;
  --grey-mid: #5C5F66; }   /* darker on bone — clears WCAG AA on #F4F2ED */
.chapter__inner { width: min(var(--maxw), 90vw); margin: 0 auto; display: grid;
  grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.chapter--rev .chapter__copy { order: 2; }
.chapter--rev .chapter__still { order: 1; }
.chapter__copy { display: grid; gap: 1.2rem; }
.chapter .title-card { color: var(--ink); font-size: clamp(2rem, 4vw, 4.05rem); overflow-wrap: break-word; }
.chapter .lede { color: #3a3d44; max-width: 30ch; }
.plaque-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-mid);
  position: relative; padding-left: 1.7rem; }
.plaque-label::before { content: ''; position: absolute; left: 0; top: 50%; width: 1.2rem; height: 1px;
  background: var(--accent); }

/* generic still frame */
.chapter__still { position: relative; }

/* IDE still */
.ide { border-radius: 14px; overflow: hidden; background: #fbfaf7;
  border: 1px solid rgba(12,13,16,.10);
  box-shadow: -28px 34px 70px -36px rgba(28,24,12,.45), 0 1px 0 rgba(255,255,255,.8) inset; }
.ide__bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem;
  background: #efece6; border-bottom: 1px solid rgba(12,13,16,.08); }
.ide__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d4ca; }
.ide__file { margin-left: .6rem; font-size: .74rem; color: var(--grey-mid); }
.ide__body { display: grid; grid-template-columns: 116px 1fr; }
.ide__tree { display: grid; gap: .35rem; padding: 1rem .8rem; font-size: .7rem; color: var(--grey-mid);
  background: #f3f0ea; border-right: 1px solid rgba(12,13,16,.06); }
.ide__tree .is-cur { color: var(--ink); }
.ide__tree .is-dim { opacity: .55; }
.ide__code { margin: 0; padding: 1rem 1.1rem; font-size: .76rem; line-height: 1.85; color: #3a3d44; overflow: hidden; }
.ide__code .ln::before { content: counter(l, decimal-leading-zero); counter-increment: l; color: #c3bdb0; margin-right: 1.1rem; }
.ide__code code { counter-reset: l; display: block; white-space: pre; }
/* monochrome ink scale — NO off-brand syntax rainbow; amber is the only accent */
.ide__code .kw { color: var(--ink); font-weight: 600; }
.ide__code .fn { color: #3a3d44; }
.ide__code .ty { color: #797d84; }
.ide__code .st { color: #797d84; font-style: italic; }
.ide__code .add { color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 12%, transparent); display: inline-block; width: 100%; }
.ide__foot { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; font-size: .72rem;
  color: var(--grey-mid); border-top: 1px solid rgba(12,13,16,.08); background: #f3f0ea; }
.ide__pass { color: var(--accent-deep); } .ide__add { color: #3a3d44; } .ide__del { color: #9a9da3; } .ide__sep { opacity: .4; }

/* AgentOS plan still */
.plan { display: grid; gap: 0; padding: 1.6rem 1.4rem; border-radius: 14px; background: #fbfaf7;
  border: 1px solid rgba(12,13,16,.10);
  box-shadow: -28px 34px 70px -36px rgba(28,24,12,.45), 0 1px 0 rgba(255,255,255,.8) inset; }
.plan__step { position: relative; display: flex; align-items: center; gap: .9rem; padding: .7rem 0 .7rem .2rem; }
.plan__step::before { content: ''; position: absolute; left: 5px; top: 1.4rem; bottom: -0.7rem; width: 1px; background: rgba(12,13,16,.12); }
.plan__step:last-child::before { display: none; }
.plan__node { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 1.5px solid #cfc9bd; flex: none; z-index: 1; }
.plan__step.is-done .plan__node { background: #cfc9bd; border-color: #cfc9bd; }
.plan__step.is-active .plan__node { background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(62,199,255,.22); animation: corepulse 2.6s ease-in-out infinite; }
.plan__txt { font-size: .82rem; color: var(--grey-mid); }
.plan__step.is-done .plan__txt { color: #3a3d44; }
.plan__step.is-active .plan__txt { color: var(--ink); }
.plan__live { margin-left: auto; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }

/* Memory graph still */
.graph { width: 100%; height: auto; }
.graph .edge { stroke: rgba(12,13,16,.14); stroke-width: 1; }
.graph .node { fill: #fff; stroke: #cfc9bd; stroke-width: 1.4; transition: fill .35s, stroke .35s, r .35s; }
.graph .node.is-warm { fill: var(--accent); stroke: var(--accent); }
.graph .node-core { fill: var(--accent); stroke: none; }

/* Reach devices — modern MacBook + iPhone on a dark stage ("same mind everywhere") */
.devices { position: relative; display: flex; justify-content: center; align-items: flex-end;
  padding: 11% 7% 9%; min-height: 330px; }
.devices__stage { position: absolute; inset: 0; z-index: 0; border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 130% at 50% 26%, #11161f 0%, #0a0e15 55%, #06080d 100%);
  box-shadow: inset 0 1px 0 rgba(140,190,255,.07), -24px 30px 72px -42px rgba(10,18,30,.6); }
.devices__stage::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(58% 48% at 50% 26%, rgba(62,199,255,.13), transparent 70%); }
.device { position: relative; z-index: 1; }
.device__screen { position: relative; overflow: hidden; background: #04060d; }
.device__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* MacBook — thin bezel + camera notch */
.device--mac { width: min(94%, 426px); }
.device--mac .device__lid { position: relative; background: linear-gradient(#262830, #15171c); border-radius: 13px; padding: 6px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.45), -18px 24px 54px -30px rgba(0,0,0,.7); }
.device--mac .device__cam { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 5px; height: 5px; border-radius: 50%; background: #06070a; box-shadow: 0 0 0 2px #1d1f25; }
.device--mac .device__screen { aspect-ratio: 16 / 10.4; border-radius: 7px; }
.device--mac .device__hinge { position: relative; width: 115%; height: 11px; margin: 0 -7.5%;
  background: linear-gradient(#c9c3b7, #979187); border-radius: 0 0 11px 11px; box-shadow: 0 14px 22px -12px rgba(10,18,30,.5); }
.device--mac .device__hinge::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 15%; height: 5px; background: rgba(0,0,0,.28); border-radius: 0 0 7px 7px; }

/* iPhone — overlaps front-right; real portrait capture; dynamic island */
.device--phone { position: absolute; right: 1%; bottom: 4%; width: clamp(82px, 18%, 118px); z-index: 3;
  animation: devfloat 6s ease-in-out infinite; }
.device--phone .device__screen { aspect-ratio: 9 / 19.5; border-radius: 19px; border: 4px solid #0d0e12;
  box-shadow: -14px 20px 40px -14px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.5); }
.device__island { position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 7px; border-radius: 6px; background: #0a0b0e; z-index: 4; }
@keyframes devfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* sync pulse — a quiet accent ring between the devices */
.device__sync { position: absolute; left: 49%; top: 44%; z-index: 2; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: syncpulse 3s ease-out infinite; }
@keyframes syncpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); opacity: .9; }
  70% { box-shadow: 0 0 0 22px transparent; opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .device--phone, .device__sync { animation: none; } }

/* THE INVENTORY */
.chapter--inv { background: var(--bg-light-warm); }
.inv__inner { width: min(820px, 90vw); margin: 0 auto; display: grid; gap: 2.5rem; }
.chapter--inv .title-card { color: var(--ink); }
.inv__list { list-style: none; padding: 0; display: grid; }
.inv__list li { display: flex; align-items: baseline; gap: 1.4rem; padding: 1.35rem .2rem;
  border-top: 1px solid rgba(12,13,16,.13); font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  font-family: var(--font-serif); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
.inv__list li:last-child { border-bottom: 1px solid rgba(12,13,16,.13); }
.inv__n { font-family: var(--font-mono); font-size: .8rem; color: var(--grey-mid); flex: none; width: 2ch; align-self: center; }

/* FOUNDER (dusk) */
.chapter--founder { --dusk: 0; min-height: 110svh; place-items: center; text-align: center;
  background: color-mix(in srgb, var(--bg-light), var(--bg-dark) calc(var(--dusk) * 100%)); }
.founder__inner { width: min(56rem, 90vw); margin: 0 auto; display: grid; gap: 1.5rem; justify-items: center; }
.founder__title { font-size: clamp(2.2rem, 5.4vw, 4.8rem); letter-spacing: -0.022em; line-height: 1.08;
  color: color-mix(in srgb, var(--ink), var(--bg-light) calc(var(--dusk) * 100%)); max-width: 18ch; }
.founder__sub { color: color-mix(in srgb, var(--grey-mid), var(--grey-cool) calc(var(--dusk) * 100%)); }
.chapter--founder .folio { color: color-mix(in srgb, var(--grey-mid), var(--grey-cool) calc(var(--dusk) * 100%)); }

/* CODA */
.scene--coda { gap: 0; }
.coda__inner { position: relative; z-index: 2; display: grid; gap: 1.4rem; justify-items: center; max-width: 44rem; }
.coda__title { color: var(--bg-light); }
.coda__sub { color: var(--grey-cool); font-family: var(--font-mono); font-size: .95rem; letter-spacing: .05em; }
.coda__actions { margin-top: .6rem; }

.waitlist { margin-top: 1.6rem; display: grid; gap: .8rem; justify-items: center; width: min(420px, 88vw); }
.waitlist__or { font-size: .74rem; letter-spacing: .1em; color: var(--grey-mid); }
.waitlist__row { display: flex; align-items: center; gap: .8rem; width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: .55rem; transition: border-color .4s; }
.waitlist__row:focus-within { border-bottom-color: var(--accent); }
.waitlist input { flex: 1; background: none; border: 0; outline: none; color: var(--bg-light);
  font-size: .98rem; padding: .2rem 0; font-family: var(--font-sans); }
.waitlist input::placeholder { color: var(--grey-mid); }
.waitlist__submit { font-size: .9rem; font-weight: 500; color: var(--accent); white-space: nowrap;
  transition: opacity .3s; }
.waitlist__submit:hover { opacity: .7; }
.waitlist.is-sent .waitlist__row { opacity: .4; pointer-events: none; }
.waitlist__ok { font-size: .82rem; color: var(--accent); }
.waitlist__ok.is-err { color: #e0917f; }
.waitlist__submit:disabled { opacity: .5; cursor: default; }

/* contentinfo — a quiet dark strip beneath the coda */
.foot { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap;
  background: var(--bg-dark); color: var(--grey-mid); text-align: center;
  font-size: .68rem; letter-spacing: .04em; padding: 2.2rem 1.25rem 2.8rem; }
.foot__made { opacity: .78; }

/* ---- chapter copy stagger (label → title → sub) -------------------------- */
.chapter__copy[data-reveal] { opacity: 1; transform: none; }
.chapter__copy > * { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .8s var(--ease); }
.chapter__copy.is-in > * { opacity: 1; transform: none; }
.chapter__copy > *:nth-child(2) { transition-delay: .08s; }
.chapter__copy > *:nth-child(3) { transition-delay: .16s; }

/* ---- scrubbed still draw-ins --------------------------------------------- */
.graph .node, .graph .node-core { opacity: 0; transition: opacity .55s ease, fill .35s, stroke .35s, r .35s; }
.graph .node.is-on, .graph .node-core.is-on { opacity: 1; }
.ide__code .add { opacity: 0; transform: translateX(-6px); transition: opacity .4s ease, transform .45s var(--ease); }
.ide__code .add.is-applied { opacity: 1; transform: none; }
.ide__foot { opacity: .3; transition: opacity .5s ease; }
.ide__foot.is-applied { opacity: 1; }
.plan__step { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .55s var(--ease); }
.plan__step.is-shown { opacity: 1; transform: none; }

/* ---- BAND · by the numbers ----------------------------------------------- */
.band { background: var(--bg-light-warm); color: var(--ink); --grey-mid: #5C5F66;
  padding: clamp(4rem, 9vh, 7rem) 0; }
.band__inner { width: min(var(--maxw), 90vw); margin: 0 auto; display: grid; gap: 2.4rem; justify-items: center; text-align: center; }
.band__kicker { color: var(--grey-mid); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 4vw, 3rem); width: 100%; }
.stat { position: relative; display: grid; gap: .4rem; justify-items: center; }
.stat__num { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__lbl { font-size: .8rem; letter-spacing: .03em; color: var(--grey-mid); }
.stat + .stat::before { content: ''; position: absolute; left: calc(-1 * clamp(.5rem, 2vw, 1.5rem)); top: 14%; bottom: 14%;
  width: 1px; background: rgba(12,13,16,.12); }

/* ---- PRODUCT FAMILY (data-driven cards) ---------------------------------- */
.chapter--family { background: var(--bg-light); }
.family__inner { width: min(var(--maxw), 90vw); margin: 0 auto; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.family__head { display: grid; gap: 1.1rem; max-width: 42rem; }
.family__head .lede { color: #3a3d44; max-width: 48ch; }
.family__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); gap: 1.2rem; }
.pcard { position: relative; display: flex; flex-direction: column; gap: .5rem; min-height: 210px;
  padding: 1.5rem 1.4rem; border-radius: 16px; background: #fbfaf7;
  border: 1px solid rgba(12,13,16,.10); box-shadow: -18px 22px 48px -30px rgba(20,40,60,.38);
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .8s var(--ease), border-color .4s, box-shadow .4s; }
.pcard.is-in { opacity: 1; transform: none; }
.pcard.is-live:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: -18px 22px 54px -26px rgba(62,199,255,.45); }
.pcard__status { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-mid); }
.pcard.is-live .pcard__status { color: var(--accent-deep); }
.pcard__name { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.02em;
  color: var(--ink); margin-top: auto; }
.pcard__tag { font-size: .9rem; color: #3a3d44; }
.pcard--ghost { background: transparent; border-style: dashed; box-shadow: none; }
.pcard--ghost .pcard__name, .pcard--ghost .pcard__tag { opacity: .5; }

/* ---- SHOWCASE · two designs (Orbital / Prism), two themes ---------------- */
#themes { background: var(--bg-light); color: var(--ink); --grey-mid: #5C5F66; padding: clamp(4.5rem, 10vh, 8rem) 0; }
.themes__inner { width: min(var(--maxw), 92vw); margin: 0 auto; display: grid; gap: clamp(2.4rem, 5vw, 3.6rem); }
.themes__head { display: grid; gap: 1.1rem; max-width: 44rem; }
.themes__head .lede { color: #3a3d44; max-width: 54ch; }
.themes__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }

.themes__grid { perspective: 1500px; }
.designwin { display: flex; flex-direction: column; transform-style: preserve-3d;
  transition: transform .55s var(--ease); will-change: transform; }
.dw__bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem; border-radius: 14px 14px 0 0;
  background: var(--w-bar); border: 1px solid var(--w-edge); border-bottom: 0; }
.dw__dots { display: flex; gap: 5px; }
.dw__dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--w-ink) 24%, transparent); }
.dw__url { flex: 1; min-width: 0; font-size: .64rem; letter-spacing: .02em;
  color: color-mix(in srgb, var(--w-ink) 50%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw__badge { margin-left: auto; display: inline-flex; align-items: center; gap: .42rem; white-space: nowrap;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--w-accent); }
.dw__live { width: 6px; height: 6px; border-radius: 50%; background: var(--w-accent);
  box-shadow: 0 0 8px var(--w-accent); animation: heartbeat 4s ease-in-out infinite; }
.dw__shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--w-bar);
  border: 1px solid var(--w-edge); border-top: 0; border-radius: 0 0 14px 14px;
  box-shadow: -22px 30px 64px -38px rgba(20, 30, 50, .55); }
.dw__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.dw__glint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%);
  background-size: 260% 100%; background-position: 120% 0; animation: dwglint 7.5s ease-in-out infinite; }
@keyframes dwglint { 0%, 74% { background-position: 120% 0; } 100% { background-position: -50% 0; } }
.dw__cap { display: flex; align-items: baseline; gap: .7rem; padding: .9rem .2rem 0; flex-wrap: wrap; }
.dw__name { font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); }
.dw__tag { font-size: .8rem; color: var(--grey-mid); }

/* per-window chrome accents (badge / live dot / borders) from the product palettes */
.designwin--orbital { --w-bar: #070b16; --w-edge: rgba(140,190,255,.16); --w-ink: #E3F0FF; --w-accent: #3EC7FF; }
.designwin--prism   { --w-bar: #e9e6dd; --w-edge: rgba(60,55,48,.18);  --w-ink: #262420; --w-accent: #C2613F; }

/* sequential design acts — Orbital opens first, then Prism (not side-by-side) */
.design-act { margin-top: clamp(3.5rem, 9vh, 7rem); }
.design-act__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; perspective: 1500px; }
.design-act--rev .design-act__head .designwin { order: 2; }
.design-act--rev .design-act__head .design-act__copy { order: 1; }
.design-act__copy { display: grid; gap: 1rem; align-content: center; }
.design-act__eyebrow { display: inline-flex; align-items: center; gap: .7rem; color: var(--grey-mid); }
.design-act__no { font-size: .9rem; letter-spacing: .05em; color: var(--accent-deep); }
.design-act__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.1rem);
  letter-spacing: -0.02em; line-height: 1.06; color: var(--ink); }
.design-act .lede { color: #3a3d44; max-width: 40ch; }

/* ── swipe-through usage rail (Orbital / Prism "how you use it") ── */
.usage__hint { display: inline-block; margin-top: .3rem; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-deep); opacity: .85; animation: hintnudge 2.4s ease-in-out infinite; }
@keyframes hintnudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.usage { margin-top: clamp(1.6rem, 3.5vw, 2.6rem); }
.usage__rail { display: flex; gap: clamp(.8rem, 1.6vw, 1.2rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem .2rem 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.usage__rail::-webkit-scrollbar { display: none; }
.usage__panel { flex: 0 0 clamp(228px, 31%, 300px); scroll-snap-align: center; display: grid; gap: .55rem; align-content: start;
  padding: 1.3rem 1.4rem; border-radius: 16px; background: #fbfaf7; border: 1px solid rgba(12,13,16,.1);
  box-shadow: -12px 16px 38px -26px rgba(20,40,60,.4);
  opacity: 0; transform: translateX(36px);
  transition: opacity .6s ease, transform .65s var(--ease), border-color .4s, box-shadow .4s; }
.usage.is-in .usage__panel { opacity: 1; transform: none; }
.usage.is-in .usage__panel:nth-child(2) { transition-delay: .08s; }
.usage.is-in .usage__panel:nth-child(3) { transition-delay: .16s; }
.usage.is-in .usage__panel:nth-child(4) { transition-delay: .24s; }
.usage__panel.is-active { border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: -12px 20px 46px -22px color-mix(in srgb, var(--accent) 45%, rgba(20,40,60,.4)); transform: translateY(-5px); }
.usage__no { font-size: .72rem; letter-spacing: .1em; color: var(--accent-deep); }
.usage__t { font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.01em; }
.usage__d { font-size: .9rem; line-height: 1.5; color: #3a3d44; }
.usage__dots { display: flex; gap: 7px; padding-left: .3rem; }
.usage__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(12,13,16,.18);
  transition: background .3s, width .3s; cursor: pointer; }
.usage__dots i.is-active { background: var(--accent-deep); width: 20px; border-radius: 4px; }

@media (max-width: 860px) {
  .design-act__head { grid-template-columns: 1fr; gap: 1.8rem; perspective: none; }
  .design-act--rev .design-act__head .designwin, .design-act--rev .design-act__head .design-act__copy { order: 0; }
  .usage__panel { flex-basis: 80%; }
}
@media (prefers-reduced-motion: reduce) { .usage__hint { animation: none; } .usage .usage__panel { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dw__glint, .dw__live { animation: none; } .designwin { transition: none; } }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .chapter__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .chapter--rev .chapter__copy, .chapter--rev .chapter__still { order: 0; }
  .chapter .lede, .lede { max-width: 52ch; }
  #naming { height: 200vh; } #voice { height: 260vh; }
  .naming__diagram { min-height: 60vh; }
  .plaque__engine { font-size: .76rem; }
}
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.5rem; }
  .stat:nth-child(3)::before, .stat + .stat::before { display: none; }
}
/* short viewports (iOS Safari address bar expanded): don't let tall title scenes clip */
@media (max-height: 680px) {
  .scene, .chapter--founder { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}
