/* Manufactoria · "The Traveler" homepage direction
   Colours follow the approved Framer brand system (framer-export/editor/implementation-history.md §4).
   Three voices run through every artifact:
   person = solid ink square + serif · engine = mint dot + mono · agent = outline + sans
   Purple marks brand, active work and primary actions. Coral marks findings, mismatches and stops.
   Small mint/coral text stays ink on light surfaces for contrast; the marks carry the colour. */

:root, .sheet {
  --paper: #F7F7F2;          /* off-white */
  --sheet: #FFFFFF;          /* surface */
  --ink: #182125;
  --purple: #9747FF;         /* brand, active work */
  --cta: #7A3FE0;
  --cta-hover: #6532C7;
  --mint: #5EC989;           /* verified, passed */
  --coral: #FF4565;          /* finding, blocker, error */

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: rgba(24, 33, 37, .76);   /* body text */
  --fg-3: rgba(24, 33, 37, .62);   /* quiet text */
  --line: #CFD4E2;
  --line-2: #E3E5DF;               /* light neutral */
  --tint: #E7E7DF;                 /* pale neutral */
  --active: var(--purple);
  --engine: var(--mint);
  --engine-text: var(--ink);
  --finding: var(--coral);
  --finding-text: var(--ink);
  --human-bg: var(--ink);
  --human-fg: #F7F7F2;
}
:root {
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --nav: 64px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
[data-tone="dark"] {
  --bg: #182125;             /* ink section */
  --fg: #E9EBF3;
  --fg-2: #A6ADC0;
  --fg-3: #7D859B;
  --line: #38405A;
  --line-2: #262B3B;
  --tint: #151823;
  --engine-text: var(--mint);
  --finding-text: var(--coral);
  --human-bg: #E9EBF3;
  --human-fg: #182125;
}

/* Dark theme (moon/sun toggle): light worlds turn dark; dark worlds stay ink. Tokens from the Framer theme toggle. */
html[data-theme="dark"] body, html[data-theme="dark"] .sheet {
  --bg: #0D0F16;
  --sheet: #151823;
  --fg: #E9EBF3;
  --fg-2: #A6ADC0;
  --fg-3: #7D859B;
  --line: #38405A;
  --line-2: #262B3B;
  --tint: #11141D;
  --engine-text: var(--mint);
  --finding-text: var(--coral);
  --human-bg: #E9EBF3;
  --human-fg: #182125;
}
html[data-theme="dark"] [data-tone="dark"] { --bg: #182125; --tint: #151823; }

/* Dark worlds carry their own background. A gradient over the neighbouring section's padding fades
   light into dark (and back) as you scroll, so the page never swaps colour all at once. */
main > section[data-tone="dark"], .foot { position: relative; background: var(--bg); color: var(--fg); --fade: clamp(88px, 12vw, 176px); }
main > section[data-tone="dark"]::before, main > section[data-tone="dark"]::after, .foot::before {
  content: ""; position: absolute; left: 0; right: 0; height: var(--fade); pointer-events: none;
}
main > section[data-tone="dark"]::before, .foot::before { bottom: 100%; background: linear-gradient(transparent, var(--bg)); }
main > section[data-tone="dark"]::after { top: 100%; background: linear-gradient(var(--bg), transparent); }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 12px); }
@media (prefers-reduced-motion: no-preference) { html:not([data-motion="reduce"]) { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .7s ease, color .7s ease;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
mark { background: none; color: inherit; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.small { font-size: 13px; line-height: 1.5; color: var(--fg-3); }
.muted { color: var(--fg-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--active); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--purple) 28%, transparent); }

.label {
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow { font: 500 12.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 28px; }
.demo {
  font: 500 10px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fg-3);
  border: 1px solid var(--line);
  padding: 4px 6px 3px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── Glyphs: the three voices ─────────────────────── */
.g {
  display: inline-block;
  flex: none;
  width: .6em;
  height: .6em;
  margin-right: .55em;
  vertical-align: .04em;
}
.g-h  { background: var(--human-bg); }                                /* a person decided */
.g-hw { border: 1.5px dashed var(--fg); }                             /* waiting for a person */
.g-e  { background: var(--engine); border-radius: 50%; }              /* engine confirmed */
.g-ew { border: 1.5px solid var(--fg-3); border-radius: 50%; }        /* not confirmed yet */
.g-f  { background: var(--finding); transform: rotate(45deg) scale(.85); } /* problem found */
.g-a  { border: 1.5px solid var(--fg-2); border-radius: 2px; }        /* agent claim */

/* ── Type ─────────────────────────────────────────── */
.h1 {
  font: 600 clamp(42px, 5.6vw, 92px)/.95 var(--sans);
  letter-spacing: -.048em;
}
.h1-line { display: block; }
.h1-human {
  display: block;
  margin-top: .18em;
  font: italic 400 clamp(34px, 4.2vw, 70px)/1 var(--serif);
  letter-spacing: -.015em;
}
.h2 {
  font: 600 clamp(34px, 4.6vw, 70px)/.98 var(--sans);
  letter-spacing: -.042em;
  text-wrap: balance;
}
.h3 { font: 600 clamp(22px, 2vw, 28px)/1.15 var(--sans); letter-spacing: -.022em; margin-bottom: 12px; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; max-width: 34em; margin-top: 36px; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font: 500 15.5px/1 var(--sans);
  padding: 16px 22px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--cta); color: #fff; }
.btn-solid:hover { background: var(--cta-hover); }
.btn-line { border-color: var(--line); background: none; color: inherit; }
.btn-line:hover { border-color: var(--fg); }
.btn-sm { padding: 11px 16px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ── Nav ──────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: calc(var(--nav) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-2);
  color: var(--fg);
  transition: background-color .7s ease, border-color .7s ease, color .7s ease;
}
.nav-in { height: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 24px; }
.brand { display: block; margin-right: auto; }
.logo { width: 178px; height: auto; }
.logo-dark, [data-tone="dark"] .logo-light { display: none; }
[data-tone="dark"] .logo-dark { display: block; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); }
.menu-only, .menu-btn, .menu-btn .icon-close, .nav.open .menu-btn .icon-menu { display: none; }
.nav.open .menu-btn .icon-close { display: block; }
.menu-btn {
  width: 44px; height: 44px; flex: none;
  align-items: center; justify-content: center;
  padding: 0; border: 2px solid var(--line); border-radius: 13px;
  background: var(--bg); color: var(--fg); cursor: pointer;
}
.menu-btn:hover { border-color: var(--fg-3); }
/* Moon/sun toggle, same shape and hero palette as the Framer ManufactoriaThemeToggle */
.theme-toggle {
  width: 44px; height: 44px; flex: none;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 2px solid var(--purple); border-radius: 13px;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: border-color .2s, background-color .7s ease;
}
.theme-toggle:hover { border-color: var(--cta-hover); }
.theme-toggle .icon-sun, html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: calc(var(--nav) + clamp(40px, 8vh, 104px)) 0 clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.hero-diff {
  display: flex;
  max-width: 34em;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--fg-2);
}
.hero-diff .g { margin-top: .5em; }
.hero-side { padding-top: 8px; }
.carry { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--fg-2);
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--cta); color: #fff; border-color: var(--cta); }
.chip.pushed { animation: push .5s var(--ease); }
@keyframes push { 30% { transform: scale(.92); } }
.hero-trav { min-height: 540px; }
.hero-trav .trav-row { padding: 11px 18px; }
.hero-trav .trav ul { font-size: 13.5px; }

/* ── Voices key ───────────────────────────────────── */
.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--fg);
}
.voice { padding: 22px 28px 4px 0; }
.voice + .voice { padding-left: 28px; border-left: 1px solid var(--line); }
.voice-k { display: flex; align-items: center; font: 600 17px/1.2 var(--sans); margin-bottom: 10px; }
.voice-k .g { width: 12px; height: 12px; margin-right: 10px; }
.voice-t { font-size: 15px; color: var(--fg-2); max-width: 26em; }
.voice-h .voice-t { font-size: 20px; line-height: 1.3; color: var(--fg); }
.voice-e .voice-t { font-size: 13.5px; line-height: 1.55; color: var(--engine-text); }
.voice-n { margin-top: 12px; font-size: 11.5px; color: var(--fg-3); display: flex; align-items: center; }

/* ── Traveler (the persistent task record) ────────── */
.sheet { background: var(--sheet); color: var(--fg); border: 1px solid var(--line); border-radius: 3px; }
.trav { overflow: hidden; }
.trav-h { padding: 16px 20px 14px; border-bottom: 1px solid var(--line); }
.trav-id { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11.5px; color: var(--fg-3); }
.trav-title { font: 600 21px/1.2 var(--sans); letter-spacing: -.018em; margin-top: 8px; }
.trav-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 0 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-2);
}
.trav-row:last-child { border-bottom: 0; }
.trav-row > :not(.trav-k) { grid-column: 2; }
.trav-k {
  grid-row: 1 / span 8;
  font: 500 10.5px/1.5 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.trav-k em { display: block; padding-left: calc(.6em + .55em); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--fg-3); }
.trav ul, .trav ol { font-size: 14px; line-height: 1.45; }
.trav li + li { margin-top: 4px; }
.crit li { padding-left: 18px; position: relative; }
.crit li::before { content: ""; position: absolute; left: 0; top: .42em; width: 9px; height: 9px; border: 1.5px solid var(--fg-3); border-radius: 1px; }
.tlist li { display: flex; align-items: baseline; }
.tlist-e { font-family: var(--mono); font-size: 12px !important; color: var(--engine-text); }
.tlist-e .g { margin-right: .75em; }
.tlist-a { font-size: 13.5px; }
.tlist-a b { font-weight: 600; margin-right: .35em; }
.tlist-a .tn { color: var(--fg-3); }
.tline { display: flex; align-items: baseline; font-size: 14px; }
.tline .serif { font-size: 17px; line-height: 1.25; }
.tline .mono { font-size: 11.5px; color: var(--fg-3); margin-left: .6em; }
.tline-wait { font-family: var(--mono); font-size: 12px; color: var(--fg-2); }
.tag-h { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); border: 1px dashed var(--fg-3); padding: 1px 5px; margin-left: 6px; white-space: nowrap; }
.trav-flag {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  font: 500 12px/1.3 var(--mono);
  background: var(--tint);
  border-bottom: 1px solid var(--line-2);
}
.trav-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; font: 11.5px/1.4 var(--mono); color: var(--fg-3); border-top: 1px solid var(--line); background: var(--tint); }
.trav-foot a { color: var(--fg-2); }
.later { font-size: 11.5px; color: var(--fg-3); }
.trav-later { opacity: .55; }

/* Hero traveler: rows land once, in order */
.hero-trav .trav > * { animation: land .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
.hero-trav.swapped .trav > * { animation-duration: .35s; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes land { from { opacity: 0; transform: translateY(8px); } }

/* ── Worlds ───────────────────────────────────────── */
.world { padding: clamp(88px, 12vw, 176px) 0; position: relative; }
/* Anchor links land on a section's content, just under the nav, not on its top padding. */
.world { scroll-margin-top: calc(12px - clamp(88px, 12vw, 176px)); }
.world-team { scroll-margin-top: 0; }
.world-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 24px; max-width: 980px; margin-bottom: clamp(48px, 6vw, 88px); }
.world-head > * { grid-column: 2; }
.world-n { grid-column: 1; grid-row: 1 / span 2; font-size: 13px; color: var(--fg-3); padding-top: 6px; border-top: 2px solid var(--purple); align-self: start; }
.world-who { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: var(--fg-2); margin-bottom: 18px; padding-top: 2px; }
.world-intro { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--fg-2); max-width: 36em; margin-top: 24px; }

/* Scroll-told scenes. Sticky only when .scrolly-on (wide screens, motion allowed). */
.scrolly { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.step { padding: 8px 0 40px; border-top: 1px solid var(--line); padding-top: 20px; max-width: 30em; }
.step + .step { margin-top: 28px; }
.step p { color: var(--fg-2); }
.step-n { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; }
.scrolly-on .step { min-height: 62vh; margin-top: 0; opacity: .35; transition: opacity .4s ease; }
.scrolly-on .step:first-child { padding-top: 20px; }
.scrolly-on .step:last-child { min-height: 70vh; }
.scrolly-on .step.is-active { opacity: 1; }
.scrolly-on .scrolly-stage { position: sticky; top: calc(var(--nav) + 4vh); height: calc(100vh - var(--nav) - 8vh); display: flex; align-items: center; }
.stage { width: 100%; font-size: clamp(12.5px, .55vw + .75vh, 15px); transform-origin: 50% 50%; }

/* Staged elements: hidden until the scene reaches them. Without JS, or with reduced motion, all show. */
.scrolly-on [data-at], .beats [data-scene="founder"] [data-at] { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.scrolly-on [data-at].on, .beats [data-scene="founder"] [data-at].on { opacity: 1; transform: none; }
.beats .decide-done.on { transition-delay: .45s; }

/* Founder stage */
.stage-founder { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 20px; align-items: start; }
.desk-side { display: grid; gap: 14px; padding-top: 28px; }
.note { background: var(--tint); border: 1px solid var(--line); padding: 14px 16px 16px; border-radius: 2px; }
.note-k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.note .serif { font-size: 1.45em; line-height: 1.25; }
.thread { display: grid; gap: 8px; }
.msg { padding: 10px 14px; border-radius: 2px; font-size: 1em; line-height: 1.4; }
.msg-k { display: flex; align-items: center; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
.msg-a { border: 1px solid var(--fg-3); background: var(--sheet); }
.msg-h { background: var(--human-bg); color: var(--human-fg); margin-left: 24px; }
.msg-h .msg-k { color: color-mix(in srgb, var(--human-fg) 70%, transparent); }
.msg-h .g-h { background: var(--human-fg); }
.msg-h .serif { font-size: 1.35em; }
.refused { border-top: 1px dashed var(--line); padding-top: 10px; font-size: .82em; color: var(--fg-3); }
.refused p:first-child { display: flex; align-items: center; text-decoration: line-through; text-decoration-color: var(--fg-3); }
.refused-r { margin-top: 2px; padding-left: calc(.6em + .55em); }
.stage-founder .trav-row { grid-template-columns: minmax(0, 1fr); padding: 11px 18px; }
.stage-founder .trav-row > :not(.trav-k) { grid-column: 1; }
.stage-founder .trav-k { grid-row: auto; margin-bottom: 6px; }
.stage-founder .trav-k em { display: inline; padding-left: .6em; }
.stage-founder .trav-later { display: flex; justify-content: space-between; gap: 12px; }
.stage-founder .trav-later .trav-k { margin: 0; }
.stage-founder .trav ul, .stage-founder .trav ol { font-size: 1em; }
.crit-new { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--fg) 8%, transparent) 60%); }
.stamp-e { display: flex; align-items: center; margin-top: 10px; font-size: .82em; color: var(--engine-text); }
.plan { counter-reset: p; }
.plan li { counter-increment: p; padding-left: 20px; position: relative; }
.plan li::before { content: counter(p); position: absolute; left: 0; font: 500 .8em/1.8 var(--mono); color: var(--fg-3); }
.plan-by { display: flex; align-items: center; margin-top: 8px; font-size: .78em; color: var(--fg-3); }
.decide { margin-top: 10px; position: relative; min-height: 38px; }
.decide-wait, .decide-done { display: flex; align-items: center; gap: 2px; padding: 8px 12px; border-radius: 2px; }
.decide-wait { border: 1.5px dashed var(--fg); font-size: .82em; }
.decide-done { position: absolute; inset: 0; background: var(--human-bg); color: var(--human-fg); }
.decide-done .g-h { background: var(--human-fg); }
.decide-done .serif { font-size: 1.3em; margin-right: auto; }
.decide-done .mono { font-size: .75em; opacity: .75; }

.aside-idea {
  margin-top: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.aside-t { font-size: 18px; color: var(--fg-2); max-width: 36em; }
.aside-t .serif { font-size: 1.3em; color: var(--fg); }

/* ── Delivery team (Framer "05 Roles Teaser") ───────── */
.roles-head { max-width: 860px; margin-bottom: 36px; }
.roles-head .h2 { margin-top: 12px; font-size: clamp(34px, 3.8vw, 58px); }
.roles-head .world-intro { margin-top: 18px; }
.portrait { position: relative; display: block; width: 72px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--tint); flex: none; }
/* Same framing idea as the Framer crops: face centred, eye line at 42% of the square. */
.portrait img { position: absolute; max-width: none; height: auto; width: calc(var(--z) * 100%); left: calc(50% - var(--fx) * var(--z) * 100%); top: calc(42% - var(--ey) * var(--z) * 100%); }
.role-name { margin-top: 18px; font: 600 11.5px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--cta); }
.role-title { font: 600 24px/1.2 var(--sans); letter-spacing: -.015em; margin-top: 6px; }
.role-mission { margin-top: 14px; font-size: 16px; line-height: 1.55; }
.role-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 15px; }
html[data-theme="dark"] .role-name { color: var(--purple); }

/* Roles as tabs, after Stripe's "Multiple ways to accept payments online": the list picks, the card shows. */
.crew { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.crew-tabs { display: grid; border-top: 1px solid var(--line-2); }
.crew-tab {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center;
  width: 100%; padding: 14px 12px 14px 0;
  text-align: left; font: inherit; color: inherit;
  background: none; border: 0; border-bottom: 1px solid var(--line-2);
  cursor: pointer;
}
.crew-tab::before { content: ""; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 2px; background: var(--purple); opacity: 0; transition: opacity .2s; }
.crew-tab[aria-selected="true"]::before { opacity: 1; }
.crew-tab .portrait { width: 44px; border-radius: 6px; }
.crew-tab .role-name { margin-top: 0; }
.crew-who { display: grid; gap: 2px; }
.crew-title { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.crew-tab:hover .crew-title { color: var(--cta); }
.crew-line { grid-column: 2; display: none; margin-top: 6px; color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.crew-tab[aria-selected="true"] .crew-line, html:not(.js) .crew-line { display: block; }
.crew-panel { min-width: 0; }
.crew-card { display: grid; gap: 24px; padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line-2); border-radius: 8px; animation: land .35s var(--ease) both; }
.crew-id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.crew-id .portrait { width: clamp(88px, 9vw, 120px); border-radius: 10px; }
.crew-id .role-name { margin-top: 0; }
.crew-id .role-mission { margin-top: 8px; color: var(--fg-2); }
.crew-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line-2); }
.crew-facts dd { margin: 6px 0 0; font-size: 15.5px; line-height: 1.45; }
.crew-demo { display: grid; gap: 10px; padding: 16px; background: var(--tint); border-radius: 4px; }
.crew-demo .label { display: flex; justify-content: space-between; gap: 8px; }
.cd { display: flex; align-items: baseline; font-size: 15px; line-height: 1.45; }
.cd-h span { font: italic 400 19px/1.3 var(--serif); }
.cd-w span { font: italic 400 18px/1.3 var(--serif); color: var(--fg-2); }
.cd-e span { font: 13px/1.55 var(--mono); color: var(--engine-text); }

/* ── Watch one task (Framer workspace animation) ───── */
.work-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.work-copy .h2 { margin: 12px 0 0; font-size: clamp(32px, 3.4vw, 54px); }
.work-copy .world-intro { font-size: 17px; margin-top: 20px; }
.ws-bar { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
/* The component lets its front task bleed off the bottom, as in the Framer hero; a square frame keeps the finished pull request in view. */
.ws-frame { position: relative; margin: 0; width: 100%; aspect-ratio: 1 / 1; --ws-h: 1100px; }
.ws-root { position: absolute; inset: 0; }
/* Phone layout draws its task in the lower third of its frame; show only that part. */
.ws-frame[data-layout="Phone"] { aspect-ratio: auto; height: calc(var(--ws-h) * .36); overflow: hidden; }
.ws-frame[data-layout="Phone"] .ws-root { inset: auto 0 0 0; height: var(--ws-h); }

/* ── Team board ───────────────────────────────────── */
.world-team { padding: 0; }
.team-track { padding: clamp(88px, 12vw, 160px) 0; }
.team-grid { display: grid; grid-template-columns: minmax(250px, 4fr) minmax(0, 8.4fr); gap: 20px clamp(28px, 4vw, 64px); align-items: start; }
.team-head { display: block; margin: 0; }
.team-head .world-n { display: inline-block; width: 48px; margin-bottom: 18px; }
.team-head .h2 { font-size: clamp(32px, 3.4vw, 52px); }
.team-head .world-intro { font-size: 16.5px; margin-top: 18px; }
.facts { margin-top: 22px; display: grid; gap: 12px; font-size: 14.5px; color: var(--fg-2); }
.facts li { padding-top: 12px; border-top: 1px solid var(--line); }
.facts strong { color: var(--fg); font-weight: 600; }
.limit-note { grid-column: 2; font-size: 13.5px; color: var(--fg-3); max-width: 52em; }
.limit-note .label { margin-right: 8px; }

.board { border-top: 1px solid var(--fg); }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 14px 0; }
.slots { display: flex; align-items: center; gap: 12px; }
.slot-row { display: inline-flex; gap: 4px; }
.slot { width: 11px; height: 11px; border: 1.5px solid var(--fg-3); transition: background-color .4s; }
.slot.used { background: var(--purple); border-color: var(--purple); }
.slot-n { font-size: 12.5px; color: var(--fg-2); }
.clock { display: flex; align-items: center; gap: 12px; }
.clock .mono { color: var(--fg); margin-left: 6px; }
.clock input { width: 160px; accent-color: var(--purple); }

.board-cols, .lane { display: grid; grid-template-columns: minmax(170px, 2.5fr) minmax(0, 6fr); }
.board-cols { grid-template-columns: minmax(170px, 2.5fr) repeat(6, minmax(0, 1fr)); font: 500 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.board-cols span { padding-left: 4px; }
.bc-you { color: var(--fg) !important; border-left: 3px double var(--line); padding-left: 10px !important; }
.lane { border-bottom: 1px solid var(--line-2); min-height: 56px; transition: opacity .4s; }
.lane-l { padding: 8px 12px 8px 0; min-width: 0; }
.lane-t { font-size: 13.5px; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane-t b { font: 500 11.5px var(--mono); color: var(--fg-3); margin-right: 6px; }
.lane-note { font-size: 11px; line-height: 1.35; color: var(--fg-3); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.lane-note.e { color: var(--engine-text); }
.lane-note.f { color: var(--finding-text); }
.lane-note.h { color: var(--fg); }
.lane-track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.lane-track .cell { border-left: 1px solid var(--line-2); }
.lane-track .cell:nth-child(6) { border-left: 3px double var(--line); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.gate {
  position: absolute; top: 50%; z-index: 1;
  width: 9px; height: 9px;
  transform: translate(-50%, -50%);
  background: var(--bg);
  border: 1.5px solid var(--fg-3);
  border-radius: 50%;
  transition: background-color .3s, border-color .3s;
}
.gate.lit { background: var(--engine); border-color: var(--engine); }
.gate.h { border-radius: 0; border: 1.5px dashed var(--fg); }
.gate.h.lit { background: var(--human-bg); border: 1.5px solid var(--human-bg); }
.tok {
  position: absolute; top: 50%; left: 5px; z-index: 2;
  width: calc(100% / 6 - 10px);
  height: 30px;
  margin-top: -15px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  font: 500 11px/1 var(--mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--active);
  border-radius: 3px;
  transform: translateX(calc(var(--c, 0) * (100% + 10px)));
  transition: transform .75s var(--ease), background-color .3s, color .3s, border-color .3s, opacity .3s;
}
.tok span { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tok.pr { border: 1.5px solid var(--engine); color: var(--engine-text); }
.tok.wait { border: 1.5px dashed var(--fg); }
.tok.done { background: var(--human-bg); color: var(--human-fg); border-color: var(--human-bg); }
.tok.halt { border: 1.5px dashed var(--finding); color: var(--finding-text); }
.tok.queued { opacity: 0; }
.tok.back { animation: back .9s var(--ease); }
@keyframes back { 0%, 60% { border-color: var(--finding); box-shadow: 0 0 0 3px color-mix(in srgb, var(--finding) 30%, transparent); } }
.board-foot { margin-top: 12px; font-size: 11px; letter-spacing: .04em; color: var(--fg-3); }

/* ── How it's checked ──────────────────────────────── */
.checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.check { padding-top: 18px; border-top: 1px solid var(--line); }
.check .step-n { display: flex; align-items: center; }
.check p:last-child { color: var(--fg-2); font-size: 16px; }
.caveat { margin-top: clamp(40px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--line); max-width: 52em; color: var(--fg-2); }
.caveat .label { display: block; margin-bottom: 6px; }

/* ── Handoff ──────────────────────────────────────── */
.spread { display: grid; grid-template-columns: minmax(0, 4fr) 28px minmax(0, 4fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.spread .label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.letter, .crit-sheet { padding: 18px 20px 22px; }
.letter { background: var(--tint); }
.letter-from { font-size: 11.5px; color: var(--fg-3); margin-bottom: 10px; }
.letter-t { font-size: 23px; line-height: 1.32; }
.letter mark { background-image: linear-gradient(color-mix(in srgb, var(--purple) 24%, transparent), color-mix(in srgb, var(--purple) 24%, transparent)); background-repeat: no-repeat; background-size: 100% 36%; background-position: 0 88%; transition: background-size .7s var(--ease); }
.letter mark::after { content: attr(data-n); font: 600 10px/1 var(--mono); vertical-align: super; margin-left: 2px; color: var(--fg-3); }
.spread-arrow { align-self: center; height: 1px; background: var(--fg-3); position: relative; margin-top: 40px; }
.spread-arrow::after { content: ""; position: absolute; right: 0; top: -4px; border: 4.5px solid transparent; border-left: 7px solid var(--fg-3); border-right: 0; }
.crit-n { display: grid; gap: 12px; font-size: 16px; line-height: 1.4; }
.crit-n li { display: grid; grid-template-columns: 22px 1fr; }
.crit-n li::before { content: attr(data-n); font: 600 11px/1.9 var(--mono); color: var(--fg-3); }
.handoff { overflow: hidden; }
.handoff-h { padding: 16px 20px 14px; border-bottom: 1px solid var(--line); }
.handoff-h .label { margin-bottom: 4px; }
.handoff-cols { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, .95fr); }
.hc { padding: 14px 16px 18px; }
.hc + .hc { border-left: 1px solid var(--line-2); }
.hc-k { display: flex; align-items: center; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 10px; }
.hc ul { display: grid; gap: 8px; font-size: 14px; line-height: 1.4; }
.hc-e ul { font-size: 12px; color: var(--engine-text); }
.hc-h ul { font-size: 18px; line-height: 1.25; }
.hc-h { background: var(--tint); }
.handoff-foot { padding: 10px 20px; font-size: 11.5px; color: var(--fg-3); border-top: 1px solid var(--line); }

.js .reveal:not(.in) .letter mark { background-size: 0 36%; }
.js .reveal > * { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal:not(.in) > * { opacity: 0; transform: translateY(14px); }
.js .reveal .letter mark:nth-of-type(2) { transition-delay: .15s; }
.js .reveal .letter mark:nth-of-type(3) { transition-delay: .3s; }

.record-after { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(64px, 8vw, 112px); }
.stopcard .label { display: block; margin-bottom: 12px; }
.stop { border: 1.5px dashed var(--finding); border-radius: 3px; padding: 18px 20px; margin: 20px 0 14px; }
.stop-id { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--fg-3); margin-bottom: 12px; }
.stop-t { display: flex; align-items: center; font-size: 14px; color: var(--finding-text); }
.stop-d { margin-top: 8px; color: var(--fg-2); font-size: 15.5px; }
.stop-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.stop-act .serif { font-size: 20px; margin-right: 4px; }
.stop-act .g { margin-right: 0; }
.pill-h { border: 1.5px dashed var(--fg); padding: 7px 12px; font-size: 14px; border-radius: 2px; }
.record-notes { display: grid; gap: 0; align-content: start; }
.rn { padding: 18px 0; border-top: 1px solid var(--line); }
.rn .label { margin-bottom: 6px; }
.rn p:last-child { color: var(--fg-2); font-size: 15.5px; }
.em-e { color: var(--engine-text); font-size: .9em; }

/* ── One team ─────────────────────────────────────── */
.world-one { text-align: left; }
.one-h { font-size: clamp(40px, 6vw, 96px); }
.one-sub { font-size: clamp(26px, 3vw, 44px); line-height: 1.15; margin-top: 18px; color: var(--fg-2); }
.more { margin-top: 32px; max-width: 52em; color: var(--fg-2); }
.more .label { margin-right: 8px; }
.compare { margin-top: clamp(56px, 8vw, 112px); }
.compare > .label { margin-bottom: 14px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 20px 14px 0; border-top: 1px solid var(--line); }
.cmp thead th { border-top: 0; padding-top: 0; font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.cmp tbody th { font-weight: 600; width: 22%; }
.cmp td:nth-of-type(1) { color: var(--fg-2); width: 30%; }

/* ── Machine ──────────────────────────────────────── */
.machine-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.machine-copy .h2 { font-size: clamp(32px, 3.2vw, 50px); margin: 12px 0 22px; }
.machine-copy p + p { margin-top: 14px; }
.machine-copy > p:not(.label) { color: var(--fg-2); }
.pay { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.pay .label { grid-column: 1 / -1; margin-bottom: 10px; }
.pay-o { border-top: 1px solid var(--fg); padding-top: 12px; }
.pay-o p:last-child { font-size: 14.5px; color: var(--fg-2); margin-top: 4px; }
.pay-t { font-weight: 600; }
.diagram { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px 0; }
.box-you { grid-row: 1 / span 2; border: 1.5px solid var(--fg); padding: 18px 20px 20px; border-radius: 3px; display: flex; flex-direction: column; gap: 14px; }
.parts { display: grid; gap: 0; font-size: 12.5px; }
.parts li { padding: 9px 0; border-top: 1px solid var(--line-2); }
.flow { display: grid; grid-template-columns: 1fr; align-content: center; position: relative; padding-left: 28px; }
.flow::before { content: ""; position: absolute; left: 0; right: calc(100% - 28px); top: 50%; height: 1px; background: var(--fg-3); }
.flow-l { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; padding-left: 10px; }
.ext { border: 1px solid var(--line); padding: 12px 14px; border-radius: 3px; display: flex; flex-direction: column; gap: 2px; margin-left: 10px; background: var(--bg); }
.ext .mono { font-size: 13px; }
.flow-model::before { background: var(--purple); height: 1.5px; }
.flow-model .flow-l { color: var(--fg-2); }

/* ── Pilot + footer ───────────────────────────────── */
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.pilot-grid .h2 { margin-top: 14px; }
.fit-l { counter-reset: f; margin-top: 32px; border-top: 1px solid var(--fg); }
.fit-l li { counter-increment: f; display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 16px; color: var(--fg-2); }
.fit-l li::before { content: "0" counter(f); font: 12px/1.9 var(--mono); color: var(--fg-3); }
.fit-l .label { display: block; margin-bottom: 2px; color: var(--fg); }

/* Pilot enquiry form (behaviour and fields from the Framer pilot form) */
.pilot-form { padding: clamp(20px, 3vw, 32px); }
#pilot-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pf { display: grid; gap: 8px; align-content: start; min-width: 0; }
.pf-wide { grid-column: 1 / -1; }
.pf label { font-size: 15px; font-weight: 500; line-height: 1.4; }
.pf input, .pf select, .pf textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--sheet); color: var(--fg); font: 400 16px/1.5 var(--sans); }
.pf textarea { min-height: 120px; resize: vertical; }
.pf ::placeholder { color: var(--fg-3); }
.pf :focus-visible { outline: 2px solid var(--active); outline-offset: 2px; }
.pf [aria-invalid="true"] { border-color: var(--finding); }
.pf-error { padding-left: 10px; border-left: 2px solid var(--finding); font-size: 14px; line-height: 1.5; color: var(--finding-text); }
.pf-ok { padding-left: 12px; border-left: 2px solid var(--engine); }
.pf-end { display: grid; gap: 10px; justify-items: start; margin-top: 4px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-solid:disabled:hover { background: var(--cta); }
.foot { padding: 0 0 48px; }
/* Footer art: the factory image with a slow drift. Lamps and check screens sit on the image in its own
   fractions (--x, --y), so they move with it. Animations run only while the footer is in view. */
.foot[data-art="image"] .belt, .foot[data-art="belt"] .foot-art { display: none; }
.foot-art { position: relative; height: clamp(240px, 30vw, 420px); overflow: hidden; margin-bottom: 36px; }
.foot-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg), transparent 22%, transparent 70%, var(--bg)); pointer-events: none; }
.art-layer { position: absolute; left: 50%; top: 0; width: max(100%, 760px); aspect-ratio: 1103 / 1426; transform: translate(-50%, -5%) scale(1.04); transform-origin: 60% 20%; animation: art-drift 48s ease-in-out infinite alternate; }
.art-layer img { display: block; width: 100%; height: 100%; max-width: none; }
@keyframes art-drift { to { transform: translate(-53%, -13%) scale(1.1); } }
.art-lamp, .art-check { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); }
.art-lamp { width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ffb066; box-shadow: 0 0 6px 2px rgba(255, 140, 60, .75), 0 0 18px 6px rgba(255, 120, 40, .35); opacity: .85; animation: art-lamp 4.2s ease-in-out var(--d) infinite; }
@keyframes art-lamp { 0%, 100% { opacity: .85; } 45% { opacity: .15; } 55% { opacity: 1; } }
.art-check { width: 6.5%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 18%; background: radial-gradient(circle, rgba(94, 201, 137, .55), rgba(94, 201, 137, 0) 70%); mix-blend-mode: screen; opacity: 0; animation: art-check 6s ease-in-out var(--d) infinite; }
@keyframes art-check { 0%, 30%, 100% { opacity: 0; } 12% { opacity: 1; } }
.art-sweep { position: absolute; inset: -20% -40%; background: linear-gradient(105deg, transparent 44%, rgba(255, 200, 150, .10) 50%, transparent 56%); mix-blend-mode: screen; transform: translateX(-60%); animation: art-sweep 9s linear infinite; }
@keyframes art-sweep { to { transform: translateX(60%); } }
.foot-art:not(.playing) .art-layer, .foot-art:not(.playing) .art-lamp, .foot-art:not(.playing) .art-check, .foot-art:not(.playing) .art-sweep { animation-play-state: paused; }

/* Footer delivery line: x positions are fractions of the line's width (0 → .9), set by app.js. */
.belt { border-bottom: 1px solid var(--line-2); margin-bottom: 40px; }
.belt-in { position: relative; height: 104px; --rail-y: 46px; }
/* Conveyor rail: roller ticks that app.js slides along with the tasks. */
.belt-line { position: absolute; left: var(--gut); right: calc(var(--gut) + 10%); top: calc(var(--rail-y) - 3px); height: 6px; border-block: 1px solid var(--line); background: repeating-linear-gradient(90deg, var(--line-2) 0 2px, transparent 2px 12px); }
.belt-gate, .belt-tok { position: absolute; top: var(--rail-y); left: calc(var(--gut) + var(--x, 0) * (100% - 2 * var(--gut))); }
/* Gate: an arch over the rail with its check lamp, and the check's name under the rail. */
.belt-gate { width: 9px; height: 9px; transform: translate(-50%, -50%); border: 1.5px solid var(--fg-3); border-radius: 50%; background: var(--bg); z-index: 1; transition: background-color .25s, border-color .25s; }
.belt-gate::before { content: ""; position: absolute; left: 50%; bottom: 50%; width: 34px; height: 30px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 4px 4px 0 0; }
.belt-gate.lit { background: var(--mint); border-color: var(--mint); }
.belt-gate.h { border-radius: 0; border: 1.5px dashed var(--fg-2); }
.belt-gate.h.lit { background: var(--human-bg); border: 1.5px solid var(--human-bg); }
.gl { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font: 500 10px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }
.belt-gate.h .gl { color: var(--fg-2); }
.gl-short { display: none; }
/* Tasks get more finished at every gate: rough note, spec, built code, reviewed, verified, pull request. */
.belt-tok { width: 14px; height: 14px; transform: translate(-50%, -50%); border: 1.5px dashed var(--fg-3); border-radius: 2px; background: var(--bg); color: var(--purple); font: 600 7.5px/1 var(--mono); display: flex; align-items: center; justify-content: center; opacity: 0; z-index: 2; transition: width .3s var(--ease), height .3s var(--ease), background-color .3s, border-color .3s, color .3s; will-change: opacity; }
.belt-tok::before, .belt-tok::after { content: ""; }
.belt-tok[data-s="1"] { width: 16px; height: 16px; border: 1.5px solid var(--fg-2); }
.belt-tok[data-s="1"]::before { width: 8px; height: 1.5px; background: var(--fg-2); box-shadow: 0 -3px 0 var(--fg-3), 0 3px 0 var(--fg-3); }
.belt-tok[data-s="2"], .belt-tok[data-s="3"] { width: 20px; height: 18px; border: 1.5px solid var(--purple); }
.belt-tok[data-s="2"]::before, .belt-tok[data-s="3"]::before { content: "</>"; }
.belt-tok[data-s="3"]::after { position: absolute; top: -3px; right: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.belt-tok[data-s="4"] { width: 20px; height: 18px; border: 1.5px solid var(--purple); background: var(--purple); color: #fff; font-size: 10px; }
.belt-tok[data-s="4"]::before { content: "\2713"; }
.belt-tok[data-s="5"] { width: 28px; height: 18px; border: 1.5px solid var(--purple); background: var(--purple); color: #fff; font-size: 8.5px; letter-spacing: .04em; }
.belt-tok[data-s="5"]::before { content: "PR"; }
.belt-end { position: absolute; top: var(--rail-y); right: var(--gut); transform: translateY(-50%); display: flex; align-items: center; font-size: 17px; color: var(--fg-2); }
.belt-end .g { width: 12px; height: 12px; margin-right: 10px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.foot-grid .small { max-width: 44em; }
.foot-note { display: grid; gap: 8px; }
.foot-note a { color: var(--fg-2); text-underline-offset: 3px; }
.foot-note a:hover { color: var(--fg); }

/* ── Document pages (privacy notice) ──────────────── */
.doc-top, .doc, .doc-foot { max-width: calc(68ch + 2 * var(--gut)); }
.doc-top { padding-block: 28px; }
.doc { padding-block: 24px 80px; }
.doc .h2 { margin: 10px 0 8px; }
.doc h2:not(.h2) { font: 600 21px/1.3 var(--sans); letter-spacing: -.01em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--fg-2); }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 12px; }
.doc ul { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }
.doc a, .doc-foot a, .pf-end a { color: inherit; text-underline-offset: 3px; }
.todo { background: none; color: var(--fg); outline: 1.5px dashed var(--finding); outline-offset: 2px; }
.doc-foot { padding-block: 0 48px; }

/* ── Sign-in page (login/) ────────────────────────── */
.login-form { display: grid; gap: 20px; margin-top: 28px; padding: clamp(20px, 3vw, 32px); }
.doc .login-list { display: grid; gap: 12px; margin: 28px 0 20px; padding: 0; list-style: none; }
.login-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; color: var(--fg); }
.motion-toggle { background: none; border: 1px solid var(--line); padding: 8px 12px; font-size: 12px; cursor: pointer; border-radius: 2px; }
.motion-toggle[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* ── Reduced motion: a composed, static edition ───── */
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) *, html:not([data-motion="full"]) *::before, html:not([data-motion="full"]) *::after { animation: none !important; transition: none !important; }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1180px) {
  .scrolly { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .spread { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); }
  .handoff { grid-column: 1 / -1; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: 1fr; }
  .team-head { max-width: 760px; }
  .limit-note { grid-column: 1; }
}
/* Narrower windows (including the claude.ai viewer): section links move into a menu under the bar. */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 4px var(--gut) 12px;
    background: var(--bg); border-bottom: 1px solid var(--line-2);
    font-size: 16px;
  }
  .nav.open .nav-links a { padding: 12px 0; border-top: 1px solid var(--line-2); color: var(--fg); }
  .nav.open .nav-links a:first-child { border-top: 0; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-trav { min-height: 0; }
  .voices { grid-template-columns: 1fr; }
  .voice + .voice { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .voice { padding: 18px 0; }
  .scrolly { grid-template-columns: minmax(0, 1fr); }
  .scrolly-stage { order: -1; }
  .step { max-width: none; }
  .aside-idea { grid-template-columns: 1fr; gap: 8px; }
  .record-after, .machine-grid, .pilot-grid, .work-grid { grid-template-columns: 1fr; }
  /* Roles: a row of portrait tabs above the card */
  .crew { grid-template-columns: 1fr; }
  .crew-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; border-top: 0; }
  .crew-tab { grid-template-columns: 1fr; justify-items: start; row-gap: 8px; padding: 10px; border: 1px solid var(--line-2); border-radius: 8px; }
  .crew-tab[aria-selected="true"] { border-color: var(--purple); }
  .crew-tab::before { display: none; }
  .js .crew-tab .crew-line { display: none; }
  .crew-title { font-size: 15px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .logo { width: 132px; }
  .nav-in { gap: 10px; }
  .theme-toggle, .menu-btn { width: 40px; height: 40px; border-radius: 12px; }
  .nav .btn-sm { padding: 10px 12px; }
  /* Comparison: each row becomes a small card with its own column labels. */
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tr { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
  .cmp th, .cmp td { display: block; padding: 0; border: 0; }
  .cmp tbody th, .cmp td:nth-of-type(1) { width: auto; }
  .cmp td::before { content: attr(data-k); display: block; margin-bottom: 2px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
}
@media (max-width: 520px) {
  /* Logo, theme toggle, pilot and log in all stay in the bar on phones. */
  .nav-in { gap: 8px; }
  .logo { width: 112px; }
  .theme-toggle, .menu-btn { width: 36px; height: 36px; border-radius: 11px; }
  .nav .btn-sm { padding: 9px 10px; font-size: 13.5px; }
  /* Phones: Log in moves from the bar into the menu. */
  .nav-in > .nav-login { display: none; }
  .nav.open .nav-links .menu-only { display: block; }
  .world-head { display: block; }
  .world-n { display: inline-block; width: 40px; margin-bottom: 14px; }
  .stage-founder { grid-template-columns: 1fr; }
  .desk-side { padding-top: 0; }
  .trav-row, .stage-founder .trav-row { grid-template-columns: 1fr; }
  .trav-row > :not(.trav-k) { grid-column: 1; }
  .trav-k { grid-row: auto; }
  .spread { grid-template-columns: 1fr; }
  .spread-arrow { display: none; }
  .handoff-cols { grid-template-columns: 1fr; }
  .hc + .hc { border-left: 0; border-top: 1px solid var(--line-2); }
  .pay { grid-template-columns: 1fr; gap: 14px; }
  #pilot-form { grid-template-columns: 1fr; }
  .role-facts { grid-template-columns: 1fr; gap: 6px; }
  .pf-end .btn { width: 100%; justify-content: center; }
  .diagram { grid-template-columns: 1fr; }
  .box-you { grid-row: auto; }
  .flow { padding-left: 0; padding-top: 22px; }
  .flow::before { left: 24px; right: auto; top: 0; width: 1px; height: 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; justify-items: start; }
  .belt-end .serif { display: none; } /* the dashed square alone marks your decision on phones */
  .gl-long { display: none; }
  .gl-short { display: inline; }

  /* Board becomes stacked task cards with a shorter track */
  .board-cols { grid-template-columns: repeat(6, minmax(0, 1fr)); font-size: 9px; letter-spacing: .03em; }
  .board-cols .bc-task { display: none; }
  .board-cols span { padding-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bc-you { padding-left: 4px !important; }
  .lane { grid-template-columns: 1fr; padding: 8px 0 10px; }
  .lane-l { padding: 0 0 8px; }
  .lane-track { height: 34px; }
  .tok { font-size: 9.5px; padding: 0 3px; width: calc(100% / 6 - 4px); left: 2px; transform: translateX(calc(var(--c, 0) * (100% + 4px))); height: 26px; margin-top: -13px; }
  .clock input { width: 120px; }

  /* Roles: portraits only in the tab row; the card names the role */
  .crew-tabs { gap: 6px; }
  .crew-tab { padding: 6px; justify-items: center; }
  .crew-tab .portrait { width: 100%; max-width: 52px; }
  .crew-who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .crew-id { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .crew-id .portrait { width: 72px; }
  .crew-facts { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
}
