/* strands-minecraft — landing (GitHub Pages, static).
   Family design language: one claim per viewport, sentence case, ONE accent, hairlines .08,
   radii 8/12/20, mono only for code/tool names/terminal/numbers, glow only on the hero object.
   Accent = the dashboard's own live-dot green (#3fb950, src/web/page.ts:42); on paper we use
   the same hue two stops darker (#1a7f37) so it clears AA as text. Fonts self-hosted (OFL). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
  --bg: #0b0e14;
  --fg: rgba(255,255,255,.92);
  --fg-2: rgba(255,255,255,.62);
  --fg-3: rgba(255,255,255,.40); /* decoration only — never text */
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --card: rgba(255,255,255,.03);
  --accent: #3fb950;
  --accent-ink: #3fb950;
  --heart: #ff5a52;
  --food: #d29922;
  --sans: "Inter", -apple-system, system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --t-state: 160ms;
  --t-enter: 240ms;
  --r-s: 8px; --r-m: 12px; --r-l: 20px;
  --read: 720px; --grid: 1120px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5f2;
    --fg: rgba(17,20,26,.92);
    --fg-2: rgba(17,20,26,.64);
    --fg-3: rgba(17,20,26,.44);
    --line: rgba(17,20,26,.09);
    --line-2: rgba(17,20,26,.16);
    --card: rgba(17,20,26,.025);
    --accent: #3fb950;
    --accent-ink: #166f31; /* 5.5:1 on paper + card — the text tier of the one green */
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.55 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
p a, .footer a, .sub a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .18em;
  transition: text-decoration-color var(--t-state) var(--ease); }
p a:hover, .footer a:hover, .sub a:hover { text-decoration-color: var(--fg-2); }
code, pre, .mono { font-family: var(--mono); font-size: .92em; font-feature-settings: normal; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.sub { margin: 18px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
.dim { color: var(--fg-2); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-s); z-index: 20; }
.skip:focus { top: 12px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color var(--t-state) var(--ease); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: var(--grid); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.wordmark { font-weight: 600; letter-spacing: -.01em; }
.nav nav { display: flex; gap: 20px; margin-left: auto; color: var(--fg-2); font-size: 15px; }
.nav nav a { transition: color var(--t-state) var(--ease); }
.nav nav a:hover { color: var(--fg); }
.gh { font-size: 15px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; transition: border-color var(--t-state) var(--ease); }
.gh:hover { border-color: var(--fg-3); }
@media (max-width: 720px) { .nav nav { display: none; } .nav-in { padding: 12px 18px; } }

/* chapters */
.chapter { max-width: var(--grid); margin: 0 auto; padding: clamp(72px, 11vw, 140px) 24px; overflow: clip; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.head { max-width: var(--read); }
.grid { max-width: var(--grid); margin: 0 auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; align-items: start; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }

/* hero */
.hero { padding-top: clamp(48px, 8vw, 110px); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero .grid { grid-template-columns: 1fr; gap: 36px; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: var(--r-m);
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 15px; font-weight: 500;
  transition: border-color var(--t-state) var(--ease), background var(--t-state) var(--ease), transform var(--t-state) var(--ease); }
.btn:hover { border-color: var(--fg-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #06130a; }
.btn.primary:hover { filter: brightness(1.06); }
.clone { display: flex; align-items: stretch; margin-top: 30px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--card); overflow: clip; }
.clone code { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; color: var(--fg); user-select: all; }
.clone .btn.primary { flex: 0 0 auto; min-width: 84px; min-height: 48px; border-radius: 0; border: 0; justify-content: center; }
.clone .btn.primary:focus-visible { outline-offset: -3px; }
.copy.copied .copy-label::after { content: " ✓"; }
.actions .meta { align-self: center; color: var(--fg-2); font-size: 14px; }
@media (max-width: 720px) { .clone { flex-direction: column; } .clone .btn.primary { min-height: 48px; } .actions .meta { display: none; } }

.hero-frame { margin: 0; border-radius: var(--r-l); overflow: clip; background: #0b0e14; border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(63,185,80,.35), 0 20px 60px -20px rgba(0,0,0,.5); position: relative; }
.frame-hud { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 12px 14px 22px; color: #dce3ea; font-size: 13px; background: linear-gradient(rgba(11,14,20,.75), rgba(11,14,20,0)); z-index: 1; }
.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(63,185,80,.6); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,185,80,.55); } 70% { box-shadow: 0 0 0 8px rgba(63,185,80,0); } 100% { box-shadow: 0 0 0 0 rgba(63,185,80,0); } }
.bars { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; line-height: 1; padding-top: 1px; }
.hearts { color: var(--heart); font-size: 12px; letter-spacing: .02em; }
.food { font-size: 11px; }
.food s { text-decoration: none; filter: grayscale(1); opacity: .3; }
.frame-media { position: relative; aspect-ratio: 16 / 9; background: #0b0e14; }
.hero-frame img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: 100%; display: block; }
.hero-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms var(--ease); pointer-events: none; }
.hero-loop.playing { opacity: 1; }
.hero-frame figcaption { padding: 12px 16px; font-size: 13px; color: rgba(220,227,234,.62); border-top: 1px solid rgba(255,255,255,.08); }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 64px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.numbers div { min-width: 0; }
.numbers dt { font-family: var(--mono); font-weight: 500; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.numbers dd { margin: 2px 0 0; color: var(--fg-2); font-size: 15px; }
@media (max-width: 720px) { .numbers { grid-template-columns: 1fr 1fr; gap: 20px 16px; } }

/* demos */
.demo { margin: 0; border-radius: var(--r-m); overflow: clip; border: 1px solid var(--line); background: var(--card); }
.demo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: auto; }
.demo figcaption { padding: 12px 16px; font-size: 15px; color: var(--fg-2); }

/* rails */
.rails-fig { margin: 44px 0 0; }
.rails-svg { width: 100%; height: auto; display: block; font-family: var(--sans); font-size: 18px; }
.rail-lines path { stroke: var(--fg-3); stroke-width: 1.5; }
.rail-labels text { fill: var(--fg); text-anchor: end; font-size: 17px; }
.rail-labels .mono { font-family: var(--mono); font-size: 16px; }
.session-node rect { fill: var(--card); stroke: var(--accent); stroke-width: 1.5; }
.session-node text { text-anchor: middle; fill: var(--fg); }
.node-title { font-size: 24px; font-weight: 600; }
.node-sub { font-size: 13px; fill: var(--fg-2) !important; }
.node-sub.mono { font-family: var(--mono); }
.rails-fig figcaption { max-width: var(--read); margin-top: 20px; color: var(--fg-2); font-size: 15px; }
@media (max-width: 600px) { .rails-svg { font-size: 22px; } .rail-labels text { font-size: 22px; } .rail-labels .mono { font-size: 20px; } .node-sub { font-size: 16px; } }

/* strata */
.strata { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 12px; }
.stratum { display: grid; grid-template-columns: 200px 200px 1fr; gap: 20px; align-items: baseline; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
.stratum:first-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.s-name { font-weight: 600; font-size: 18px; }
.s-rate { color: var(--fg-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.stratum p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
.stratum code { font-size: 13.5px; }
@media (max-width: 800px) { .stratum { grid-template-columns: 1fr; gap: 6px; } }

/* try it — stepped reveal */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 12px; }
.step { padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
.step:nth-child(4) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.step-k { display: block; font-size: 14px; color: var(--fg-2); margin-bottom: 8px; }
.step-k code { font-size: 12.5px; }
.step-v { margin: 0; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.step-v .you { color: var(--accent-ink); font-weight: 600; }
.step.reveal:nth-child(2) { transition-delay: 90ms; } .step.reveal:nth-child(3) { transition-delay: 180ms; } .step.reveal:nth-child(4) { transition-delay: 270ms; } .step.reveal:nth-child(5) { transition-delay: 360ms; }

/* compare */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp-wrap { margin-top: 44px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
.cmp { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-weight: 600; color: var(--fg); background: var(--card); }
.cmp tbody th { font-weight: 500; color: var(--fg-2); white-space: nowrap; }
.cmp-hint { display: none; margin: 10px 0 0; font-size: 13px; color: var(--fg-2); }
@media (max-width: 720px) { .cmp { min-width: 760px; } .cmp tbody th { white-space: normal; width: 120px; min-width: 120px; position: sticky; left: 0; background: var(--bg); box-shadow: 1px 0 0 var(--line); }
  .cmp thead th:first-child { position: sticky; left: 0; background: var(--bg); } .cmp-hint { display: block; } }
.cmp td:first-of-type { color: var(--fg); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.cmp td { color: var(--fg-2); }
.cmp code { font-size: 13px; }

/* read deeper */
.docs { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 920px) { .docs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .docs { grid-template-columns: 1fr; } }
.docs a { display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); text-decoration: none; color: inherit;
  transition: border-color var(--t-state) var(--ease), transform var(--t-state) var(--ease); }
.docs a:hover { border-color: var(--fg-3); }
.doc-t { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.doc-h { color: var(--fg-2); font-size: 15px; line-height: 1.5; flex: 1; }
.doc-m { font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); }
.doc-m b { font-weight: 500; color: var(--fg); }

/* terminal */
.terminal { margin: 44px 0 0; contain: content; border-radius: var(--r-m); border: 1px solid var(--line-2); background: #0b0e14; color: #dce3ea; overflow: clip; }
.t-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; color: rgba(220,227,234,.66); }
.t-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.t-bar span { margin-left: 8px; font-family: var(--mono); }
.t-body { margin: 0; contain: layout paint; padding: 18px 20px 22px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 15.5em; }
.t-body .cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--accent); margin-left: 2px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.t-you { color: var(--accent); }
.t-dim { color: rgba(220,227,234,.66); }

/* tools */
.tool-groups { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 28px; }
.tg h3 { font-size: 15px; font-weight: 600; color: var(--fg-2); margin: 14px 0 10px; }
.tg h3 span { color: var(--fg-2); font-weight: 400; font-variant-numeric: tabular-nums; margin-left: 6px; }
.tg ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tg li { display: block; }
.tg button { font: 500 13px/1.2 var(--mono); padding: 6px 10px; min-height: 30px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); background: transparent; cursor: pointer;
  transition: border-color var(--t-state) var(--ease), background var(--t-state) var(--ease); }
.tg button:hover, .tg button:focus-visible, .tg button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tool-desc { margin: 28px 0 0; box-sizing: border-box; min-height: calc(3em + 30px); padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.tool-desc b { font-family: var(--mono); font-weight: 500; color: var(--fg); }
.tool-desc .td-src { margin-left: 8px; font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.tool-desc .td-src code { font-size: 12.5px; }
@media (min-width: 721px) { .tool-desc { position: sticky; top: 64px; z-index: 2; backdrop-filter: blur(8px); } }
.tool-sheet { display: none; }
@media (max-width: 720px) { .tool-sheet.showing { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; pointer-events: none;
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--bg); color: var(--fg-2); font-size: 14px; line-height: 1.45;
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.6); }
  .tool-sheet b { font-family: var(--mono); font-weight: 500; color: var(--fg); } .tool-sheet .td-src { display: block; margin-top: 2px; font-size: 12.5px; } }

/* device + routes */
.code-card { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); overflow: clip; min-width: 0; }
.cc-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--fg-2); }
.copy.small { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer; transition: border-color var(--t-state) var(--ease); }
.copy.small:hover { border-color: var(--fg-3); }
.copy.small.copied::after { content: " ✓"; color: var(--accent-ink); }
.code-card pre { margin: 0; padding: 16px 18px; font-size: 13.5px; line-height: 1.6; overflow-x: auto; }
.code-card .c { color: var(--fg-2); }
.routes { width: 100%; border-collapse: collapse; font-size: 15px; }
.routes caption { text-align: left; color: var(--fg-2); font-size: 15px; padding: 0 0 14px; caption-side: top; }
.routes th, .routes td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--line); }
.routes th { color: var(--fg-2); font-weight: 500; border-top: 0; }
.routes td:last-child { color: var(--fg-2); }
.routes td.public { color: var(--accent-ink); }
.routes code { font-size: 13.5px; }
.note { max-width: var(--read); margin: 28px 0 0; color: var(--fg-2); font-size: 15.5px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 24px 60px; color: var(--fg-2); font-size: 15px; }
.footer p { margin: 0 0 10px; }

/* ---------- motion ----------
   Base: IntersectionObserver sets .in (every browser). Where the browser has scroll-driven
   animations, view() timelines take over and the class is inert. prefers-reduced-motion
   kills both layers — content is simply visible. Nothing here animates layout: opacity,
   transform, stroke-dashoffset only. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-enter) var(--ease), transform 480ms var(--ease); }
.reveal.in, .no-io .reveal { opacity: 1; transform: none; }
.hero .reveal { animation: enter 640ms var(--ease) both; opacity: 1; transform: none; transition: none; }
.hero .hero-frame.reveal { animation-delay: 120ms; }
.hero .numbers.reveal { animation-delay: 240ms; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* rails: strokes draw as the figure scrolls in */
.rail-lines path { stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset 1100ms var(--ease); }
.rail-lines path:nth-child(2) { transition-delay: 60ms; } .rail-lines path:nth-child(3) { transition-delay: 120ms; }
.rail-lines path:nth-child(4) { transition-delay: 180ms; } .rail-lines path:nth-child(5) { transition-delay: 240ms; }
.rail-lines path:nth-child(6) { transition-delay: 300ms; } .rail-lines path:nth-child(7) { transition-delay: 360ms; }
.rails-fig.in .rail-lines path, .no-io .rail-lines path { stroke-dashoffset: 0; }
.session-node rect { transition: stroke var(--t-enter) var(--ease); }

/* strata + chips: stagger */
.stratum.reveal:nth-child(2) { transition-delay: 90ms; } .stratum.reveal:nth-child(3) { transition-delay: 180ms; } .stratum.reveal:nth-child(4) { transition-delay: 270ms; }
.tg li { opacity: 0; transform: translateY(6px); transition: opacity var(--t-enter) var(--ease), transform var(--t-enter) var(--ease); }
.tg.in li, .no-io .tg li { opacity: 1; transform: none; }
.tg li:nth-child(n+2) { transition-delay: 40ms; } .tg li:nth-child(n+4) { transition-delay: 80ms; } .tg li:nth-child(n+6) { transition-delay: 120ms; }
.tg li:nth-child(n+8) { transition-delay: 160ms; } .tg li:nth-child(n+10) { transition-delay: 200ms; }

/* scroll-driven layer */
@supports (animation-timeline: view()) {
  .sda .chapter:not(.hero) .reveal { transition: none; opacity: 1; transform: none;
    animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
  .sda .step.reveal:nth-child(2) { animation-range: entry 10% entry 50%; } .sda .step.reveal:nth-child(3) { animation-range: entry 15% entry 55%; }
  .sda .step.reveal:nth-child(4) { animation-range: entry 20% entry 60%; } .sda .step.reveal:nth-child(5) { animation-range: entry 25% entry 65%; }
  .sda .stratum.reveal:nth-child(2) { animation-range: entry 12% entry 52%; }
  .sda .stratum.reveal:nth-child(3) { animation-range: entry 19% entry 59%; }
  .sda .stratum.reveal:nth-child(4) { animation-range: entry 26% entry 66%; }
  .sda .rail-lines path { transition: none; animation: draw linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
  .sda .rail-lines path:nth-child(2) { animation-range: entry 14% entry 74%; } .sda .rail-lines path:nth-child(3) { animation-range: entry 18% entry 78%; }
  .sda .rail-lines path:nth-child(4) { animation-range: entry 22% entry 82%; } .sda .rail-lines path:nth-child(5) { animation-range: entry 26% entry 86%; }
  .sda .rail-lines path:nth-child(6) { animation-range: entry 30% entry 90%; } .sda .rail-lines path:nth-child(7) { animation-range: entry 34% entry 94%; }
  .sda .demo img { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }
@keyframes lift { from { transform: scale(1.04); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .reveal, .tg li, .rail-lines path, .demo img { opacity: 1; transform: none; transition: none; animation: none; stroke-dashoffset: 0; }
  .hero-loop { display: none; }
  .dot, .t-body .cursor { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* print: the words and the proof, not the motion — hero + numbers, try it, nervous system, compare, read deeper, run it */
@media print {
  :root { --bg: #fff; --fg: #000; --fg-2: #333; --line: #bbb; --card: transparent; }
  html, body { background: #fff !important; color: #000 !important; }
  .nav, .hero-loop, .cursor, .tool-sheet, .copy, .cmp-hint, .skip, .hero-frame, .frame-hud, .actions .btn, #watch, #rails, #journeys, #tool-groups, #tool-desc { display: none !important; }
  .reveal, .tg li, .step, .stratum { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .chapter { padding: 14px 0 !important; border: 0 !important; } .step, .stratum, .docs li, .cmp tr { break-inside: avoid; }
  .steps, .strata, .docs { margin-top: 16px !important; gap: 8px !important; } .head .sub { margin-top: 4px !important; }
  .hero .grid { grid-template-columns: 1fr !important; }
  .clone { border-color: #bbb; }
  h1 { font-size: 34pt !important; } h2 { font-size: 20pt !important; }
  a { color: inherit; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; word-break: break-all; }
  .docs a::after, .cmp a::after, .nav a::after { content: none; }
  .cmp-wrap { overflow: visible; border: 0; } .cmp { min-width: 0; font-size: 9.5pt; }
  .footer { border-top: 1px solid #bbb; }
}
