/* PeakRead — site. Paper, ink, one moss accent. */

@font-face { font-family: "Fraunces"; src: url(assets/fonts/fraunces.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(assets/fonts/instrument-sans.woff2) format("woff2-variations"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(assets/fonts/jetbrains-mono.woff2) format("woff2-variations"); font-weight: 100 800; font-display: swap; }

:root {
  --vh: 1vh;
  /* sRGB fallbacks */
  --paper: #f4ecdb;
  --paper-2: #ede3cd;
  --sheet: #f8f2e4;
  --ink: #2a2118;
  --ink-mid: #5e5244;
  --ink-low: #857866;
  --accent: #3f5a4a;
  --accent-hover: #314a3b;
  --slate: #161b21;
  --slate-2: #1e252d;
  --line: rgba(42, 33, 24, .16);

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Instrument Sans", ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-inline: 4px; --r-control: 8px; --r-surface: 12px; --r-reader: 14px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(20px, 5vw, 72px);

  --ease-spring: cubic-bezier(.16, 1, .3, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
}
@supports (color: oklch(0 0 0)) {
  :root {
    --h: 75;
    --paper: oklch(.952 .026 85);
    --paper-2: oklch(.925 .03 82);
    --sheet: oklch(.968 .02 88);
    --ink: oklch(.24 .03 60);
    --ink-mid: oklch(.44 .03 62);
    --ink-low: oklch(.56 .03 65);
    --accent: oklch(.42 .065 158);
    --accent-hover: oklch(.35 .065 158);
    --slate: oklch(.2 .014 250);
    --slate-2: oklch(.245 .016 250);
    --line: oklch(.24 .03 60 / .16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
code, pre, .mono { font-family: var(--f-mono); font-feature-settings: "zero", "ss01"; }
.mono { font-size: .72rem; letter-spacing: .02em; }
.muted { color: var(--ink-low); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--paper); }

/* grain: one fixed layer */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035; mix-blend-mode: multiply; }

.skip { position: fixed; left: var(--s4); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); border-radius: var(--r-control); text-decoration: none; transition: top 160ms var(--ease-spring); }
.skip:focus { top: var(--s4); }

/* -------- peripheral nav -------- */
.brand { position: fixed; z-index: 60; left: calc(var(--gutter) - 8px); top: 14px; display: flex; align-items: center; gap: var(--s3); padding: 6px 14px 6px 8px; background: var(--paper); border: 1px solid transparent; border-radius: var(--r-surface); text-decoration: none; font: 600 .95rem/1 var(--f-body); letter-spacing: .01em; }
.brand img { border-radius: 7px; }
.brand { transition: border-color 200ms, box-shadow 200ms; }
.brand.is-lifted { border-color: var(--line); box-shadow: 0 1px 2px -1px oklch(.25 .02 60 / .12), 0 10px 24px -14px oklch(.25 .02 60 / .2); }
.dock { position: fixed; z-index: 60; left: var(--gutter); bottom: 20px; display: flex; gap: 2px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-surface); box-shadow: 0 1px 2px -1px oklch(.25 .02 60 / .12), 0 10px 24px -14px oklch(.25 .02 60 / .2); }
.dock a { display: flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 0 12px; align-items: center; border-radius: var(--r-control); font: 500 .72rem/1 var(--f-mono); text-decoration: none; color: var(--ink-mid); transition: background-color 140ms, color 140ms; }
.dock a i { font-style: normal; color: var(--ink-low); }
.dock a:hover { background: var(--paper-2); color: var(--ink); }
.dock a:active { transform: translateY(1px) scale(.985); }
.dock a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.dock a[aria-current="true"] i { color: var(--paper); opacity: .6; }

/* -------- buttons / keys -------- */
.btn { display: inline-flex; align-items: center; gap: var(--s3); min-height: 48px; padding: 0 var(--s5); background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r-control); font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color 160ms, transform 120ms var(--ease-spring); }
.btn:hover { background: var(--accent); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--sheet); color: var(--accent); }
.btn .mono { opacity: .6; font-size: .72rem; }
kbd.k { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; margin-right: 3px; font: 500 .78rem/1 var(--f-mono); color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; }

/* ================= STAGE ================= */
#stage { position: relative; height: calc(900 * var(--vh)); }
#stage .pin { position: sticky; top: 0; height: calc(100 * var(--vh)); height: 100svh; overflow: hidden; }

.poster {
  position: absolute; left: 0; right: 0; bottom: max(calc(8 * var(--vh)), 104px); z-index: 4;
  padding-inline: var(--gutter); white-space: nowrap;
  font: 330 clamp(3.4rem, 11.4vw, 13rem)/.84 var(--f-display); letter-spacing: -.035em;
  font-optical-sizing: auto; will-change: transform, opacity;
}
.poster .hl { color: var(--accent); font-weight: 640; }

.intro { position: absolute; z-index: 5; left: var(--gutter); top: calc(17 * var(--vh)); width: min(21vw, 300px); min-width: 250px; will-change: transform, opacity; }
.lede { font-size: 1.05rem; line-height: 1.55; color: var(--ink-mid); text-wrap: pretty; }
.cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); margin-top: var(--s5); }

/* editor mock */
.editor {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: min(960px, 68vw); height: min(calc(58 * var(--vh)), 560px);
  background: var(--slate); color: #b9c2cc; border-radius: var(--r-surface); overflow: hidden;
  box-shadow: 0 1px 2px oklch(0 0 0 / .3), 0 40px 80px -30px oklch(.2 .02 60 / .55);
  translate: -50% -50%; transform-origin: 50% 50%; will-change: transform, opacity;
}
.ed-bar { display: flex; align-items: center; gap: var(--s4); height: 40px; padding: 0 var(--s4); background: var(--slate-2); border-bottom: 1px solid oklch(1 0 0 / .06); }
.ed-dots { display: flex; gap: 6px; } .ed-dots b { width: 10px; height: 10px; border-radius: 50%; background: oklch(1 0 0 / .16); }
.ed-tab { font: 500 .74rem/1 var(--f-mono); color: #d7dde4; padding: 8px 12px; background: var(--slate); border-radius: 6px 6px 0 0; margin-top: 8px; }
.ed-code, #deskCode { margin: 0; padding: var(--s5) var(--s5) var(--s5) 0; font: 400 clamp(.7rem, 1.02vw, .86rem)/1.75 var(--f-mono); white-space: pre; overflow: hidden; counter-reset: ln; tab-size: 4; }
.ed-code .ln, #deskCode .ln { display: block; padding-left: 4.2em; position: relative; }
.ed-code .ln::before, #deskCode .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 3em; text-align: right; color: oklch(1 0 0 / .26); }
.ed-code .ln.hot, #deskCode .ln.hot { background: oklch(1 0 0 / .05); }
.tk-k { color: oklch(.76 .08 300); } .tk-t { color: oklch(.8 .09 195); } .tk-m { color: oklch(.82 .09 95); } .tk-c { color: oklch(1 0 0 / .34); font-style: normal; } .tk-n { color: oklch(.8 .1 60); }
.ed-status { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: var(--s5); justify-content: flex-end; padding: 8px var(--s4); background: var(--slate-2); color: oklch(1 0 0 / .45); font-size: .66rem; }
.editor::after { content: ""; position: absolute; inset: 0; background: var(--slate); opacity: var(--dim, 0); pointer-events: none; }

.cursor { position: absolute; left: 76%; top: 20%; opacity: 0; will-change: opacity; z-index: 3; }
.cursor svg { position: relative; display: block; }
.cursor .ring { position: absolute; left: -14px; top: -12px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid oklch(.8 .06 150); transform: scale(var(--ring, .4)); opacity: var(--ringo, 0); }
.cursor em { position: absolute; left: 26px; top: 20px; font-style: normal; font-size: .62rem; letter-spacing: .04em; white-space: nowrap; color: oklch(.85 .05 150); }

.keys { position: absolute; z-index: 6; left: 50%; bottom: calc(17 * var(--vh)); display: flex; gap: var(--s3); transform: translateX(-50%); opacity: 0; will-change: opacity, transform; }
.keys kbd { display: grid; place-items: center; width: 64px; height: 64px; font: 500 1.7rem/1 var(--f-body); color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-bottom-width: 5px; border-radius: 10px; transform: translateY(var(--kd, 0px)); transition: none; }
.keys kbd.on { background: var(--accent); color: var(--paper); border-color: var(--accent); }

/* the reader — always laid out at 380×175 and scaled, like the app */
.reader-wrap { position: absolute; z-index: 7; left: 50%; top: 50%; width: 380px; height: 175px; margin: -87.5px 0 0 -190px; transform-origin: 50% 50%; opacity: 0; will-change: transform, opacity; }
.reader { position: relative; width: 380px; height: 175px; padding: 14px 24px 0; background: var(--paper); color: var(--ink); border-radius: var(--r-reader); overflow: hidden; box-shadow: 0 1px 2px oklch(0 0 0 / .32), 0 30px 70px -14px oklch(0 0 0 / .6); font-family: var(--f-body); }
.reader:focus-visible { outline-offset: 4px; }
.r-head { display: flex; justify-content: space-between; align-items: center; height: 20px; font: 600 11px/1 var(--f-body); color: oklch(.24 .03 60 / .62); }
.badge { padding: 3px 8px; border-radius: var(--r-inline); background: var(--accent); color: var(--paper); font: 600 10px/1 var(--f-body); letter-spacing: .02em; }
.r-rows { position: relative; height: 104px; margin-top: 5px; overflow: hidden; }
.r-row { position: absolute; left: 0; right: 0; top: 0; height: 26px; line-height: 26px; font: 500 15px/26px var(--f-body); white-space: nowrap; opacity: 0; will-change: transform, opacity; }
.r-row.is-h { font-size: 17px; font-weight: 700; color: var(--accent); letter-spacing: -.005em; }
.r-foot { position: absolute; left: 24px; right: 24px; bottom: 9px; display: flex; justify-content: space-between; font-size: 9.5px; color: oklch(.24 .03 60 / .5); letter-spacing: .02em; }
.r-timer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--paper); text-align: center; }
.r-timer strong { font: 600 34px/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.r-timer small { font-size: 9.5px; color: var(--ink-mid); }

/* HUD + captions */
.hud { position: absolute; z-index: 8; right: var(--gutter); top: 24px; display: grid; grid-template-columns: auto auto; gap: 2px var(--s5); font-variant-numeric: tabular-nums; opacity: 0; will-change: opacity; }
.hud > div { display: contents; }
.hud .k { color: var(--ink-low); text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; }
.hud span:not(.k) { text-align: right; color: var(--ink); }
.hud-note { grid-column: 1 / -1; margin-top: 6px; color: var(--ink-low); font-size: .62rem; max-width: 24ch; text-align: right; justify-self: end; }
.hud .hud-note { display: block; }
.rail { position: absolute; z-index: 8; left: calc(var(--gutter) * .45); top: calc(22 * var(--vh)); bottom: calc(22 * var(--vh)); width: 1px; background: var(--line); }
.rail span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.captions { position: absolute; z-index: 8; left: var(--gutter); bottom: 88px; width: min(440px, 62vw); height: 128px; pointer-events: none; }
.captions li { position: absolute; inset: auto 0 0 0; opacity: 0; transform: translateY(8px); transition: opacity 240ms var(--ease-spring), transform 240ms var(--ease-spring); }
.captions li.on { opacity: 1; transform: none; }
.captions li:first-child { display: none; }
.captions span { color: var(--accent); font-weight: 600; }
.captions p { margin-top: var(--s2); font: 380 clamp(1.25rem, 2.1vw, 1.75rem)/1.2 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }

/* ================= SECTIONS ================= */
.sec { max-width: 1320px; margin: 0 auto; padding: var(--s10) var(--gutter); }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s4) var(--s5); margin-bottom: var(--s9); }
.sec-head .idx { grid-column: 1 / -1; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.sec-head h2 { grid-column: 1 / span 8; font: 330 clamp(2.8rem, 7.2vw, 6.6rem)/.92 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.sec-lede { grid-column: 1 / span 6; font-size: 1.15rem; line-height: 1.55; color: var(--ink-mid); max-width: 52ch; margin-top: var(--s4); text-wrap: pretty; }

/* try it */
.try-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: var(--s7); align-items: start; }
.desk { position: relative; height: clamp(420px, calc(62 * var(--vh)), 560px); background: var(--slate); border-radius: var(--r-surface); overflow: hidden; display: grid; place-items: center; box-shadow: 0 1px 2px oklch(.25 .02 60 / .18), 0 30px 60px -30px oklch(.25 .02 60 / .4); }
.desk-bg { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(#000 55%, transparent 92%); mask-image: linear-gradient(#000 55%, transparent 92%); color: #9aa4af; opacity: .5; transition: opacity 240ms; padding-top: var(--s5); }
.desk.engaged .desk-bg { opacity: .3; }
.desk .btn { position: relative; z-index: 2; }
.desk.engaged .btn { display: none; }
.desk-hint { position: absolute; left: var(--s5); bottom: var(--s4); z-index: 3; color: oklch(1 0 0 / .5); }
.reader-wrap--demo { position: absolute; margin: -87.5px 0 0 -190px; opacity: 1; animation: pop 320ms var(--ease-spring); }
@keyframes pop { from { opacity: 0; transform: scaleY(.04) scale(var(--ds, 1.4)); } to { opacity: 1; transform: scale(var(--ds, 1.4)); } }
.reader-wrap--demo { transform: scale(var(--ds, 1.4)); transition: transform 180ms var(--ease-spring); }
.gestures > div { display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line); align-items: baseline; }
.gestures > div:last-child { border-bottom: 1px solid var(--line); }
.gestures dd { color: var(--ink-mid); font-size: .95rem; line-height: 1.5; }
.gestures dt { display: flex; flex-wrap: wrap; gap: 2px; }

.foot { padding: var(--s9) var(--gutter) 120px; overflow: hidden; }
.foot-word { font: 330 clamp(4rem, 26.2vw, 34rem)/.8 var(--f-display); letter-spacing: -.045em; color: var(--ink); margin-left: -.04em; white-space: nowrap; }
.foot-row { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); color: var(--ink-low); }
.foot-row a { text-decoration: none; } .foot-row a:hover { color: var(--accent); }

/* reveal */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 400ms var(--ease-spring), transform 400ms var(--ease-spring); }
.rv.in { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .try-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head h2, .sec-lede { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .editor { width: 90vw; }
  .brand { top: 10px; }
  .dock { left: 0; right: 0; bottom: 0; border-radius: 0; border-width: 1px 0 0; padding: 4px 4px max(4px, env(safe-area-inset-bottom)); overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .dock a { flex: 0 0 auto; padding: 0 10px; }
  .dock a i { display: none; }
  #stage { height: calc(860 * var(--vh)); }
  .poster { white-space: normal; font-size: 19vw; line-height: .86; bottom: 76px; }
  .intro { top: auto; bottom: calc(76px + 38vw); width: auto; right: var(--gutter); min-width: 0; }
  .lede { font-size: .95rem; }
  .cta-row { flex-direction: row; align-items: center; margin-top: var(--s3); flex-wrap: wrap; }
  .btn { min-height: 44px; padding: 0 var(--s4); }
  .hud { top: 20px; font-size: .66rem; }
  .hud .hud-note, .rail, .cursor em { display: none; }
  .captions { bottom: 72px; width: auto; right: var(--gutter); }
  .keys kbd { width: 52px; height: 52px; font-size: 1.4rem; }
  .sec { padding-block: var(--s9); }
  .sec-head { margin-bottom: var(--s7); }
  .gestures > div { grid-template-columns: 1fr; gap: var(--s2); }
  .books { gap: 12px; }
  .desk { height: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* reduced-motion / static stage */
.is-static .poster { bottom: auto; top: 76px; font-size: clamp(2.6rem, 6vw, 5rem); }
.is-static .intro { display: none; }
.is-static .editor { margin-top: calc(8 * var(--vh)); }
.is-static .reader-wrap { margin-top: calc(-87.5px + calc(8 * var(--vh))); }

/* try-it tools */
.tools { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s7); margin-bottom: var(--s5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { min-height: 44px; padding: 0 var(--s4); background: transparent; color: var(--ink-mid); border: 1px solid var(--line); border-radius: var(--r-control); font: 500 .85rem/1 var(--f-body); cursor: pointer; transition: background-color 140ms, color 140ms, border-color 140ms; }
.chip:hover { border-color: var(--ink-low); color: var(--ink); }
.chip:active { transform: translateY(1px) scale(.985); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.paste { display: grid; gap: var(--s2); max-width: 720px; margin-bottom: var(--s5); }
.paste label { color: var(--ink-low); }
.paste textarea { width: 100%; padding: var(--s3) var(--s4); font: 400 .95rem/1.5 var(--f-body); color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-control); resize: vertical; }
.paste textarea:focus-visible { outline-offset: 1px; }
.btn-sm { min-height: 44px; padding: 0 var(--s4); justify-self: start; font-size: .85rem; }

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

/* ================= STORY (pinned, scrubbed) ================= */
.story { position: relative; height: calc(983 * var(--vh)); }
.story .pin { position: sticky; top: 0; height: calc(100 * var(--vh)); height: 100svh; overflow: hidden; }
.sv-layer { position: absolute; inset: 0; }
.sv-layer > * { position: absolute; will-change: transform, opacity; opacity: 0; }

.sv-intro { left: var(--gutter); right: var(--gutter); top: 50%; margin-top: -.5em; font: 330 clamp(3.2rem, 11vw, 12rem)/.9 var(--f-display); letter-spacing: -.035em; }
.sv-intro small { display: block; margin-top: var(--s5); font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-low); }
.sv-intro b { color: var(--accent); font-weight: 640; }

.sv-count { left: var(--gutter); top: calc(9.5 * var(--vh)); color: var(--accent); font: 600 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.sv-title { left: var(--gutter); top: calc(12.5 * var(--vh)); font: 320 clamp(2rem, 4.6vw, 4.2rem)/1 var(--f-display); letter-spacing: -.03em; }

.sn { width: min(38vw, 30em); font: 380 clamp(1.1rem, 1.9vw, 1.8rem)/1.28 var(--f-display); letter-spacing: -.01em; text-wrap: pretty; }
.sn::after { content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--st, 0)); }
.sn--L { left: var(--gutter); } .sn--R { right: var(--gutter); text-align: right; }
.sn--R::after { transform-origin: right; }
.y1 { top: calc(24 * var(--vh)); } .y2 { top: calc(35 * var(--vh)); } .y3 { top: calc(47 * var(--vh)); } .y4 { top: calc(60 * var(--vh)); }
.sn--keep { color: var(--ink); }
.sn--keep::after { display: none; }
.sn--keep small { display: block; margin-bottom: var(--s2); color: var(--accent); font: 600 .68rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }

.sv-nudge { left: var(--gutter); right: var(--gutter); top: calc(43 * var(--vh)); text-align: center; color: var(--accent); font: 300 clamp(2.2rem, 6.4vw, 6.4rem)/.98 var(--f-display); letter-spacing: -.035em; text-wrap: balance; pointer-events: none; }

.sv-surv { left: var(--gutter); bottom: calc(8 * var(--vh)); width: min(56ch, 60vw); font: 400 clamp(.85rem, 1.05vw, 1rem)/1.5 var(--f-display); color: var(--ink-mid); }
.sv-surv span { opacity: 0; display: inline; transition: none; }
.sv-surv span + span { margin-left: .4em; }

.sv-merged { left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%); text-align: center; font: 340 clamp(1.7rem, 4.4vw, 4.4rem)/1.08 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.sv-merged .w { display: inline-block; white-space: pre; will-change: transform, opacity; }
.sv-merged .w.hi { color: var(--accent); font-weight: 560; }

.sv-brand { left: 0; right: 0; top: 50%; display: grid; justify-items: center; gap: var(--s5); transform: translateY(-50%); }
.sv-brand img { width: clamp(64px, 9vw, 120px); height: auto; border-radius: 22%; box-shadow: 0 1px 2px oklch(.25 .02 60 / .2), 0 24px 48px -20px oklch(.25 .02 60 / .5); }
.sv-brand b { font: 330 clamp(3.6rem, 15vw, 14rem)/.85 var(--f-display); letter-spacing: -.04em; }
.sv-brand small { font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-low); }

@media (max-width: 760px) {
  .sn { width: 74vw; font-size: 1.12rem; }
  .sn--R { right: var(--gutter); }
  .y1 { top: calc(26 * var(--vh)); } .y2 { top: calc(37 * var(--vh)); } .y3 { top: calc(49 * var(--vh)); } .y4 { top: calc(60 * var(--vh)); }
  .sv-surv { width: auto; right: var(--gutter); bottom: 76px; font-size: .78rem; }
  .sv-nudge { top: calc(40 * var(--vh)); }
}
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; }
  .story .pin { position: relative; height: auto; min-height: 100svh; }
}

/* ================= MECHANISM (pinned diagram) ================= */
.mech { position: relative; height: calc(560 * var(--vh)); }
.mech .pin { position: sticky; top: 0; height: calc(100 * var(--vh)); height: 100svh; overflow: hidden; --cap: var(--ink); --cap-mid: var(--ink-mid); }
.mech.is-fs .pin { --cap: var(--paper); --cap-mid: oklch(.9 .02 85); }
.mech-title { position: absolute; z-index: 5; left: var(--gutter); top: calc(12 * var(--vh)); font: 320 clamp(2rem, 4.4vw, 4rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--cap); transition: color 240ms; }
.mech-layer { position: absolute; inset: 0; }
.m-cap { position: absolute; z-index: 5; left: var(--gutter); top: calc(32 * var(--vh)); width: min(30vw, 26em); opacity: 0; will-change: transform, opacity; color: var(--cap); transition: color 240ms; }
.m-cap p { font: 360 clamp(1.5rem, 2.9vw, 2.8rem)/1.08 var(--f-display); letter-spacing: -.025em; text-wrap: balance; }
.m-cap small { display: block; margin-top: var(--s4); font: 400 clamp(1rem, 1.3vw, 1.2rem)/1.45 var(--f-body); color: var(--cap-mid); }
.m-stage { position: absolute; right: var(--gutter); top: max(calc(20 * var(--vh)), 152px); width: min(58vw, 880px); height: min(calc(56 * var(--vh)), 500px); opacity: 0; will-change: opacity, transform; }
.m-win { position: absolute; inset: 0; background: var(--slate); color: #b9c2cc; border-radius: var(--r-surface); overflow: hidden; box-shadow: 0 1px 2px oklch(0 0 0 / .3), 0 40px 80px -30px oklch(.2 .02 60 / .55); will-change: transform; }
.m-win .ed-code { font-size: clamp(.68rem, .95vw, .82rem); padding-bottom: 56px; }
.m-type { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; gap: var(--s3); align-items: center; padding: 12px var(--s4); background: var(--slate-2); color: oklch(.85 .05 150); font-size: .78rem; border-top: 1px solid oklch(1 0 0 / .06); }
.m-win::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--slate); opacity: var(--wd, 0); pointer-events: none; }
.m-type .caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 1px; vertical-align: text-bottom; background: oklch(.85 .05 150); }
.m-win::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px oklch(.72 .07 152); pointer-events: none; }
.m-panel { position: absolute; z-index: 3; left: 50%; top: 22%; width: min(300px, 46%); aspect-ratio: 380 / 175; margin-left: calc(min(300px, 46%) / -2); background: var(--paper); border-radius: var(--r-reader); overflow: hidden; box-shadow: 0 1px 2px oklch(0 0 0 / .32), 0 30px 60px -14px oklch(0 0 0 / .6); transform-origin: 50% 50%; opacity: 0; will-change: transform, opacity; }
.m-rows { position: absolute; left: 9%; right: 9%; top: 15%; bottom: 15%; overflow: hidden; }
.m-bar { position: absolute; left: 0; height: 15%; border-radius: 999px; background: var(--ink); opacity: 0; will-change: transform, opacity; }
.m-hint { position: absolute; z-index: 4; right: 6%; top: 8%; font: 500 .66rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mid); opacity: 0; }
.m-cur { position: absolute; z-index: 4; left: 74%; top: 62%; opacity: 0; will-change: transform, opacity; }
.m-cur svg { display: block; }
.m-cur--ghost { opacity: 0; }
.m-cur .ring { position: absolute; left: -14px; top: -12px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid oklch(.8 .06 150); }
.m-chip { position: absolute; left: 0; top: calc(100% + 16px); font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .04em; color: var(--ink-mid); }
.m-chip b { color: var(--accent); font-weight: 600; }
.mech-note { max-width: 62ch; margin: 0 auto; padding: var(--s8) var(--gutter) var(--s9); color: var(--ink-mid); }
@media (max-width: 760px) {
  .mech-title { top: calc(9 * var(--vh)); }
  .m-stage { left: var(--gutter); width: auto; top: calc(21 * var(--vh)); height: calc(34 * var(--vh)); }
  .m-cap { top: auto; bottom: 90px; width: auto; right: var(--gutter); }
  .m-cap p { font-size: 1.45rem; }
  .m-panel { width: 62%; margin-left: -31%; }
  .m-chip { font-size: .64rem; }
}
@media (prefers-reduced-motion: reduce) { .mech { height: auto; } .mech .pin { position: relative; height: auto; min-height: 100svh; } }

@supports (height: 1svh) { :root { --vh: 1svh; } }

/* ================= PHONE / TOUCH HARDENING ================= */
html { -webkit-tap-highlight-color: transparent; }
.brand { top: max(14px, env(safe-area-inset-top)); }
.paste textarea { font-size: 16px; }           /* iOS zooms the page on focus below 16px */
.desk.engaged { touch-action: none; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; }
.pin { contain: layout paint; }                  /* keep pinned scenes off the page's layout pass while scrolling */
@media (pointer: coarse) {
  .grain { display: none; }                      /* fixed blend layer is the classic iOS scroll jank */
  .sv-layer > *, .m-stage, .m-cap { will-change: auto; }
}
@media (max-width: 760px) {
  .brand { top: max(10px, env(safe-area-inset-top)); }
  .dock a { min-height: 44px; }
  .chip { min-height: 44px; }
  .dock { padding-bottom: max(4px, env(safe-area-inset-bottom)); }
}

.try-grid > *, .desk { min-width: 0; }


/* full-screen beat: the editor becomes a clean dark slab, its contents fade so scaled code never turns into giant ghost text */
.m-win .ed-code, .m-win .ed-bar, .m-type { opacity: calc(1 - var(--fsf, 0) * .97); }
.m-win::after { opacity: calc(1 - var(--fsf, 0)); }
.m-chip { color: var(--cap-mid); }
.m-chip b { color: color-mix(in oklch, var(--accent), var(--cap) calc(var(--fsf-page, 0) * 100%)); }
.mech.is-fs .m-chip b { color: oklch(.85 .05 150); }

/* ================= BOOKS scene ================= */
.bk { height: calc(440 * var(--vh)); }
.b-page { position: absolute; inset: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-surface); box-shadow: 0 1px 2px -1px oklch(.25 .02 60 / .12), 0 24px 48px -24px oklch(.25 .02 60 / .3); overflow: hidden; will-change: opacity; }
.b-row { position: absolute; left: 22px; right: 22px; top: 22px; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 40px; font: 400 clamp(.95rem, 1.25vw, 1.15rem)/1.25 var(--f-display); color: var(--ink-mid); will-change: transform, opacity; }
.b-row .b-txt { position: relative; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-row .b-txt::after { content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--st, 0)); }
.b-row .b-tag { flex: none; padding: 3px 8px; border-radius: var(--r-inline); border: 1px solid color-mix(in oklch, var(--accent) 45%, transparent); color: var(--accent); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; opacity: 0; }
.b-row.keep { color: var(--ink); }
.b-row.keep.h .b-txt { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .95em; color: var(--accent); }
.r-toc { position: absolute; inset: 0; padding: 14px 24px 0; background: var(--paper); opacity: 0; }
.b-cur { position: absolute; z-index: 9; left: 64%; top: 64%; opacity: 0; will-change: transform, opacity; }
.b-cur svg { display: block; }
.b-rip { position: absolute; left: -18px; top: -16px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; }
.bk .reader { box-shadow: 0 1px 2px oklch(.25 .02 60 / .25), 0 30px 60px -16px oklch(.25 .02 60 / .5); border: 1px solid var(--line); }

.nw { white-space: nowrap; }

/* ================= EXTRAS (feature tiles) ================= */
.fine { margin-top: var(--s6); color: var(--ink-low); }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s4); }
.tile { position: relative; display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6); min-width: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px -1px oklch(.25 .02 60 / .1), 0 20px 40px -28px oklch(.25 .02 60 / .3); overflow: hidden; }
.tile h3 { font: 380 clamp(1.5rem, 2.4vw, 2.2rem)/1.05 var(--f-display); letter-spacing: -.025em; }
.tile > p { color: var(--ink-mid); max-width: 36ch; font-size: 1.02rem; }
.tile > p kbd.k { margin: 0 2px; }
.t-read { grid-column: 1 / span 7; grid-row: span 2; justify-content: space-between; min-height: 420px; }
.t-place { grid-column: 8 / span 5; }
.t-len { grid-column: 8 / span 5; }
.t-size { grid-column: 1 / span 5; }
.t-stop { grid-column: 6 / span 7; }
.tile--dark { background: var(--slate); border-color: transparent; color: var(--paper); box-shadow: 0 1px 2px oklch(0 0 0 / .3), 0 30px 60px -30px oklch(.2 .02 60 / .6); }
.tile--dark > p { color: oklch(.86 .02 85); }
.t-nums { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s6) var(--s7); margin-top: auto; padding-top: var(--s6); }
.t-nums div { display: grid; gap: 4px; }
.t-nums strong { font: 320 clamp(3rem, 7vw, 6rem)/.95 var(--f-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.t-nums span { color: oklch(.72 .03 85); text-transform: uppercase; letter-spacing: .08em; font-size: .64rem; }
.t-bar { margin-top: auto; display: grid; gap: var(--s2); color: var(--ink-low); }
.t-bar i { display: block; height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.t-bar b { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(.38); transition: transform 900ms var(--ease-spring); }
.t-time { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.t-time strong { font: 320 clamp(2.6rem, 5vw, 4.2rem)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.t-time span { color: var(--ink-low); }
.t-minis { margin-top: auto; display: flex; align-items: flex-end; gap: var(--s4); }
.mini { display: grid; align-content: center; gap: 5px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 20px -14px oklch(.25 .02 60 / .5); }
.mini i { display: block; height: 5px; border-radius: 999px; background: var(--ink); }
.mini i:nth-child(1) { width: 62%; opacity: .3; } .mini i:nth-child(2) { width: 88%; opacity: .55; } .mini i:nth-child(3) { width: 100%; } .mini i:nth-child(4) { width: 76%; opacity: .55; }
.mini--s { width: 64px; height: 34px; gap: 3px; padding: 6px 7px; } .mini--s i { height: 3px; }
.mini--m { width: 104px; height: 54px; }
.mini--l { width: 176px; height: 90px; gap: 8px; padding: 14px 16px; } .mini--l i { height: 8px; }
.t-line { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding: var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.t-line span { font: 500 1.05rem/1.3 var(--f-body); }
.t-line em { font-style: normal; padding: 4px 9px; border-radius: var(--r-inline); background: var(--accent); color: var(--paper); font-size: .62rem; letter-spacing: .04em; }
@media (max-width: 900px) {
  .t-read, .t-place, .t-len, .t-size, .t-stop { grid-column: 1 / -1; grid-row: auto; }
  .t-read { min-height: 0; gap: var(--s6); }
  .tile { padding: var(--s5); }
  .t-nums { gap: var(--s5); }
}
@media (prefers-reduced-motion: reduce) { .t-bar b { transition: none; } }

.foot-love { margin-top: var(--s5); color: var(--ink-mid); }
.foot-love a { color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.foot-love a:hover { color: var(--accent); }
/* phone hero: keep the editor picture clear of the intro text, whatever the screen height */
@media (max-width: 760px) {
  .editor { height: min(calc(44 * var(--vh)), 420px); }
  .intro { bottom: calc(88px + 33vw); }
}

/* ================= DEEP DIVE (optional sheet) ================= */
.dock .dock-btn { display: flex; align-items: center; min-height: 36px; padding: 0 12px; margin-left: 4px; border: 0; border-left: 1px solid var(--line); border-radius: 0 var(--r-control) var(--r-control) 0; background: transparent; color: var(--ink-low); font: 500 .72rem/1 var(--f-mono); cursor: pointer; white-space: nowrap; transition: color 140ms, background-color 140ms; }
.dock .dock-btn:hover { color: var(--accent); background: var(--paper-2); }
.dock .dock-btn:active { transform: translateY(1px) scale(.985); }
.linkish { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; border-bottom: 1px solid currentColor; }
.linkish:hover { color: var(--accent-hover); }
.deep-teaser { margin-top: var(--s7); color: var(--ink-mid); }

.deep { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.deep::backdrop { background: var(--paper); }
html.deep-open { overflow: hidden; }
.deep-inner { max-width: 1100px; margin: 0 auto; padding: calc(var(--s10) * .8) var(--gutter) var(--s10); }
.deep-close { position: fixed; z-index: 3; top: max(14px, env(safe-area-inset-top)); right: var(--gutter); min-height: 44px; padding: 0 var(--s5); border: 1px solid var(--line); border-radius: var(--r-control); background: var(--paper); color: var(--ink); font: 600 .9rem/1 var(--f-body); cursor: pointer; transition: background-color 140ms; }
.deep-close:hover { background: var(--paper-2); }
.deep-close:active { transform: translateY(1px) scale(.985); }
.deep-head { max-width: 62ch; margin-bottom: var(--s9); }
.deep-head .idx { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s4); }
.deep-head h2 { font: 330 clamp(2.6rem, 6.5vw, 5.6rem)/.95 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.deep-lede { margin-top: var(--s5); font-size: 1.15rem; line-height: 1.6; color: var(--ink-mid); text-wrap: pretty; }
.note { display: grid; grid-template-columns: minmax(0, 62ch) minmax(0, 1fr); gap: var(--s4) var(--s8); padding: var(--s7) 0; border-top: 1px solid var(--line); }
.note-k { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; margin-bottom: var(--s3); }
.note h3 { font: 380 clamp(1.7rem, 3vw, 2.5rem)/1.05 var(--f-display); letter-spacing: -.025em; margin-bottom: var(--s3); }
.note-main p:last-child { font-size: 1.1rem; line-height: 1.65; color: var(--ink-mid); text-wrap: pretty; }
.note-src { display: grid; gap: var(--s3); align-content: start; padding-top: calc(var(--s5) + 4px); color: var(--ink-low); font-size: .68rem; line-height: 1.55; letter-spacing: 0; }
.note-src span { padding-left: var(--s3); border-left: 2px solid var(--line); }
.note-src i { font-style: italic; }
.note--plain { border-bottom: 1px solid var(--line); }
.deep-fine { margin-top: var(--s6); max-width: 62ch; color: var(--ink-low); line-height: 1.6; }
@media (max-width: 900px) {
  .note { grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding: var(--s6) 0; }
  .note-src { padding-top: 0; }
  .deep-inner { padding-top: 88px; }
  .dock .dock-btn { flex: none; }
}
@media (prefers-reduced-motion: no-preference) { .deep[open] .deep-inner { animation: deepin 320ms var(--ease-spring); } }
@keyframes deepin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* hero: mid-size windows (narrow Mac windows, tablets) — scale the poster to the SHORTER side so nothing stacks into a squeeze */
@media (max-width: 760px) {
  :root { --pf: min(19vw, calc(14 * var(--vh))); }
  .poster { font-size: var(--pf); bottom: 92px; }
  .intro { bottom: calc(92px + var(--pf) * 1.72 + 16px); }
}
@media (max-width: 760px) and (max-height: 820px) { .lede { font-size: .9rem; line-height: 1.45; } }
@media (max-width: 760px) and (max-height: 700px) { .lede { display: none; } }

/* ================= HOW IT'S BUILT ================= */
.dock .dock-btn--2 { margin-left: 0; border-left: 0; border-radius: 0 var(--r-control) var(--r-control) 0; }
.deep-inner--wide { max-width: 1240px; }
.bpart { margin: var(--s9) 0 var(--s3); font: 330 clamp(2rem, 4.4vw, 3.6rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--accent); }
.bpart:first-of-type { margin-top: 0; }
.bnote { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6) var(--s7); padding: var(--s7) 0; border-top: 1px solid var(--line); align-items: start; }
.bnote--solo { grid-template-columns: minmax(0, 62ch); }
.bmain h3 { font: 380 clamp(1.5rem, 2.5vw, 2.1rem)/1.1 var(--f-display); letter-spacing: -.02em; margin-bottom: var(--s4); text-wrap: balance; }
.bmain p { color: var(--ink-mid); font-size: 1.05rem; line-height: 1.65; text-wrap: pretty; }
.bmain p + p { margin-top: var(--s3); }
.bmain em { font-style: normal; color: var(--ink); font-weight: 600; }
.bcode { position: sticky; top: 24px; min-width: 0; background: var(--slate); color: #b9c2cc; border-radius: var(--r-control); overflow: hidden; }
.bfile { display: block; padding: 10px var(--s4); color: oklch(1 0 0 / .5); border-bottom: 1px solid oklch(1 0 0 / .07); background: var(--slate-2); }
.bcode pre { margin: 0; padding: var(--s4); overflow-x: auto; font: 400 .76rem/1.65 var(--f-mono); tab-size: 4; font-variant-ligatures: none; -webkit-overflow-scrolling: touch; }
.tk-s { color: oklch(.82 .09 95); }
@media (max-width: 900px) {
  .bnote { grid-template-columns: minmax(0, 1fr); padding: var(--s6) 0; }
  .bcode { position: static; }
}

/* ================= RELEASE / BETA ================= */
.sec-release { text-align: center; padding-block: var(--s10); display: flex; flex-direction: column; align-items: center; }
.rel-eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.rel-label { margin-top: var(--s7); color: var(--ink-low); text-transform: uppercase; letter-spacing: .1em; }
.rel-big { margin-top: var(--s3); font: 320 clamp(5rem, 22vw, 17rem)/.85 var(--f-display); letter-spacing: -.045em; color: var(--ink); }
.rel-line { margin-top: var(--s5); font: 360 clamp(1.4rem, 2.6vw, 2.2rem)/1.15 var(--f-display); letter-spacing: -.02em; color: var(--accent); }
.rel-track { position: relative; display: flex; justify-content: space-between; width: min(100%, 720px); margin-top: var(--s9); }
.rel-track::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: var(--line); }
.rel-track li { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--s2); flex: 1; padding-top: 26px; font: 500 .9rem/1.2 var(--f-body); color: var(--ink-low); }
.rel-track li::before { content: ""; position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.rel-track li.done { color: var(--ink-mid); } .rel-track li.done::before { background: var(--accent); border-color: var(--accent); }
.rel-track li.now { color: var(--ink); font-weight: 600; } .rel-track li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in oklch, var(--accent) 22%, transparent); }
.rel-track li.goal::before { background: var(--paper); border-color: var(--ink-low); }
.rel-track li.done + li::after, .rel-track li.now::after { content: none; }
.rel-track em { font-style: normal; color: var(--accent); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; }
.rel-track li.goal em { color: var(--ink-low); }
.rel-text { max-width: 60ch; margin-top: var(--s9); text-align: left; display: grid; gap: var(--s4); }
.rel-text p { color: var(--ink-mid); font-size: 1.1rem; line-height: 1.65; text-wrap: pretty; }
.rel-text b { color: var(--ink); font-weight: 600; }
.rel-note { margin-top: var(--s8); color: var(--ink-low); }
.sec-release .deep-teaser { margin-top: var(--s5); }
@media (max-width: 760px) {
  .rel-track li { font-size: .8rem; }
  .rel-text p { font-size: 1.02rem; }
}

/* ================= REDUCED MOTION: no scroll-jacked lengths ================= */
/* the hero and books scenes are drawn once as a still, so they only need one screen each */
#stage.is-static { height: auto; }
#stage.is-static .pin { position: relative; height: 100svh; }
@media (prefers-reduced-motion: reduce) {
  .bk { height: auto; }
}

/* ================= LAUNCH SIGNUP ================= */
.notify { width: min(100%, 560px); margin-top: var(--s9); padding: var(--s6); background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; text-align: left; scroll-margin-top: 96px;
  box-shadow: 0 1px 2px -1px oklch(.25 .02 60 / .1), 0 20px 40px -28px oklch(.25 .02 60 / .3); }
.notify-title { font: 380 clamp(1.6rem, 3vw, 2.2rem)/1.05 var(--f-display); letter-spacing: -.025em; }
.notify-sub { margin-top: var(--s2); color: var(--ink-mid); }
.notify-row { display: flex; gap: var(--s2); margin-top: var(--s5); }
.notify input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--s4); font: 400 16px/1 var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-control); transition: border-color 140ms; }
.notify input:hover { border-color: var(--ink-low); }
.notify input:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.notify input[aria-invalid="true"] { border-color: oklch(.55 .15 30); }
.notify .btn { flex: none; }
.notify .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.notify-msg { margin-top: var(--s3); color: var(--ink-low); line-height: 1.5; }
.notify-msg.is-err { color: oklch(.5 .15 30); }
.notify.is-done .notify-row { display: none; }
.notify.is-done .notify-msg { color: var(--accent); font-size: .85rem; }
@media (max-width: 520px) {
  .notify { padding: var(--s5); }
  .notify-row { flex-direction: column; }
  .notify .btn { justify-content: center; }
}
