/* CoreScribe — cinematic site.
   Canon: Nocturne Glass (NocturneGlassTokens, StatusPopoverSignalCapsule.swift).
   One meaning per colour: green = lows / ready, lavender = pace / selection,
   amber = highs / processing, mint = live only. No blue. Glass on controls
   only; the signal always sits on an opaque well. */

:root {
  --ground: #060708;
  --surface: #101214;
  --surface-2: #191c20;
  --control: #202329;
  --well: #0b0d0d;
  --lavender: #a997ef;
  --green: #a2e6a6;
  --mint: #9ef0a3;
  --amber: #e7b55d;
  --text: #f1f1ee;
  --secondary: #a1a5ad;
  --tertiary: rgba(241, 241, 238, 0.42);
  --hairline: rgba(255, 255, 255, 0.08);
  --group: rgba(255, 255, 255, 0.05);
  --well-edge: rgba(255, 255, 255, 0.07);
  --edge-grad: linear-gradient(135deg, rgba(169, 151, 239, 0.45), rgba(162, 230, 166, 0.18));
  --signal-grad: linear-gradient(90deg, var(--green), var(--lavender) 52%, var(--amber));

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "IBM Plex Sans", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "IBM Plex Sans", system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "IBM Plex Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;
  --font-brand: "Sora", var(--font-ui);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-card: 28px;
  --r-tile: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --menubar-h: 30px;
  --tabbar-space: 96px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-padding-top: 48px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sprite, .lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.num { font-family: var(--font-round); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
code { font-family: var(--font-mono); }
kbd { font: 600 12px/1 var(--font-ui); padding: 3px 7px; border-radius: 6px; background: var(--control); border: 1px solid var(--hairline); box-shadow: inset 0 -1px 0 rgba(0,0,0,.4); }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--lavender); color: var(--well); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 40px; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.fine { font-size: 13px; line-height: 1.5; color: var(--tertiary); max-width: 70ch; }
.fine.center { margin-inline: auto; }

/* ---------- Brand mark (three bars, green over lavender) ---------- */
.mark { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.mark i { display: block; width: 3.5px; border-radius: 99px; background: linear-gradient(180deg, var(--green) 0 48%, var(--lavender) 49% 100%); }
.mark i:nth-child(1) { height: 60%; }
.mark i:nth-child(2) { height: 100%; }
.mark i:nth-child(3) { height: 72%; }

/* ---------- Glass (controls only) ---------- */
.glass {
  position: relative;
  background: rgba(38, 40, 46, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.34),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.10),
    0 10px 30px rgba(0, 0, 0, 0.38),
    0 2px 6px rgba(0, 0, 0, 0.22);
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 42%),
              radial-gradient(120% 80% at 18% 0%, rgba(255,255,255,0.08), transparent 60%);
  mix-blend-mode: screen;
}
.glass-embedded { background: rgba(255,255,255,0.045); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), inset 0 0 0 0.5px rgba(255,255,255,0.07); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; border: 0; font: 600 14px/1 var(--font-ui); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), filter .18s var(--ease), background .2s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-lavender { background: color-mix(in oklab, var(--lavender) 92%, white); color: var(--well); box-shadow: inset 0 0.5px 0 rgba(255,255,255,.6), 0 8px 24px rgba(169,151,239,.28); }
.btn-lavender:hover { filter: brightness(1.06); }
.btn-glass { color: var(--text); }
.btn-glass:hover { background: rgba(58, 60, 68, 0.5); }

/* =====================================================================
   ENVELOPE · Mac
   ===================================================================== */
[data-env="phone"] { display: none; }

.menubar {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--menubar-h);
  display: flex; align-items: center; gap: 22px; padding: 0 14px;
  background: rgba(18, 20, 22, 0.62);
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  border-bottom: 0.5px solid rgba(255,255,255,0.09);
  font: 500 13px/1 var(--font-ui);
}
.mb-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.mb-brand b { font: 700 13px/1 var(--font-brand); letter-spacing: -0.02em; }
.mb-menus { display: flex; gap: 18px; }
.mb-menus a { text-decoration: none; color: rgba(241,241,238,0.86); padding: 5px 7px; margin: -5px -7px; border-radius: 5px; }
.mb-menus a:hover, .mb-menus a[aria-current="true"] { background: rgba(255,255,255,0.10); color: var(--text); }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mb-cta { text-decoration: none; color: var(--lavender); font-weight: 600; }
.mb-extra { display: grid; place-items: center; width: 30px; height: 22px; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.mb-extra[aria-expanded="true"], .mb-extra:hover { background: rgba(255,255,255,0.14); }
.mb-extra .mark { height: 13px; }
.mb-clock { font-variant-numeric: tabular-nums; color: rgba(241,241,238,0.86); min-width: 7.5em; text-align: right; }

/* Taskbar popover (NocturneGlassPopoverContent) */
.popover {
  position: fixed; top: calc(var(--menubar-h) + 6px); right: 10px; z-index: 70; width: 336px;
  padding: 12px; border-radius: 20px;
  background: rgba(24, 26, 30, 0.74);
  -webkit-backdrop-filter: blur(34px) saturate(180%); backdrop-filter: blur(34px) saturate(180%);
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,.28), inset 0 0 0 0.5px rgba(255,255,255,.1), 0 24px 60px rgba(0,0,0,.55);
  transform-origin: calc(100% - 132px) 0;
}
.popover[hidden] { display: none; }
.pop-capsule { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--well); box-shadow: inset 0 0 0 1px var(--well-edge); }
.pop-word { font: 600 15px/1 var(--font-brand); letter-spacing: -0.02em; display: block; margin-bottom: 6px; }
.pop-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--secondary); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(162,230,166,.5); }
.dot.on { margin-right: 5px; }
.pop-capsule-right { text-align: right; }
.pop-capsule-right .num { font-size: 17px; display: block; }
.pop-capsule-right span { font-size: 10px; font-weight: 500; color: var(--secondary); }
.pop-glance { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px 6px; }
.pop-ring { position: relative; width: 44px; height: 44px; }
.pop-ring > svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring-track { stroke: rgba(255,255,255,.08); stroke-width: 4.5; }
.ring-fill { stroke: var(--green); stroke-width: 4.5; stroke-dasharray: 113.1; stroke-dashoffset: 0; }
.ring-check { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); font-size: 16px; }
.pop-today .num { display: block; font-size: 17px; }
.pop-today span { font-size: 11px; color: var(--secondary); }
.pop-weeks { display: grid; grid-template-columns: repeat(16, 5px); grid-template-rows: repeat(7, 5px); grid-auto-flow: column; gap: 1.5px; }
.pop-weeks i { border-radius: 1.5px; background: rgba(255,255,255,.06); }
.pop-group { border-radius: 14px; background: var(--group); box-shadow: inset 0 0 0 0.5px var(--hairline); }
.pop-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: 13px; }
.pop-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.06); font-size: 14px; }
.pop-label { font-weight: 500; }
.pop-detail { margin-left: auto; font-size: 12px; color: var(--secondary); display: inline-flex; align-items: center; }
.pop-divider { height: 0.5px; margin-left: 44px; background: var(--hairline); }
.pop-footer { display: flex; gap: 8px; margin-top: 10px; }
.pop-footer .btn { flex: 1; height: 36px; font-size: 13px; }
.pop-round { width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; font-size: 16px; cursor: pointer; }
.pop-note { margin: 10px 4px 0; font-size: 11px; color: var(--tertiary); }

/* Studio glass tab bar (StudioGlassTabBar, decision #50) */
.tabbar { position: fixed; left: 50%; bottom: 16px; z-index: 55; display: flex; gap: 10px; transform: translateX(-50%); }
.state-bubble { display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 8px 0 14px; border-radius: 999px; }
.sb-voice { display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 0 6px 0 0; cursor: pointer; text-align: left; }
.sb-voice .dot { width: 8px; height: 8px; }
.sb-text { white-space: nowrap; min-width: 84px; }
.sb-text b { display: block; font-size: 13px; font-weight: 600; line-height: 1.1; }
.sb-text small { display: block; font-size: 11px; color: var(--secondary); line-height: 1.2; }
.sb-voice[aria-pressed="true"] .dot { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.sb-sep { width: 0.5px; height: 24px; background: rgba(255,255,255,.14); margin: 0 4px; }
.sb-light { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--secondary); cursor: pointer; font-size: 17px; }
.sb-light:hover { background: rgba(255,255,255,.08); color: var(--text); }
.sb-light .light { position: absolute; right: 5px; bottom: 6px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.22); box-shadow: 0 0 0 1.5px rgba(20,22,26,.9); }
.sb-light[aria-pressed="true"] .light, .sb-light.is-on .light { background: var(--green); }
.sb-light.is-live .light { background: var(--mint); box-shadow: 0 0 0 1.5px rgba(20,22,26,.9), 0 0 8px var(--mint); }
.sb-light.is-blocked .light { background: var(--amber); }

.tabs-shell { border-radius: 999px; padding: 5px; }
.tabs { position: relative; display: flex; gap: 2px; }
.tab { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px; border-radius: 999px; color: var(--secondary); text-decoration: none; font-size: 14px; }
.tab svg { font-size: 17px; }
.tab span { font-size: 13px; font-weight: 600; white-space: nowrap; display: none; }
.tab.is-active { color: var(--text); padding: 0 14px; }
.tab.is-active span { display: inline; }
.tab:hover:not(.is-active) { color: var(--text); }
.lens { position: absolute; z-index: 0; top: 0; left: 0; height: 36px; width: 40px; border-radius: 999px; background: rgba(169,151,239,.24); box-shadow: inset 0 0 0 0.75px rgba(169,151,239,.35); pointer-events: none; }

/* D2 floating pill — ported from DictationDockController's embedded HTML. */
.d2-dock { position: fixed; left: 50%; bottom: 76px; z-index: 54; transform: translateX(-50%); display: flex; justify-content: center; pointer-events: none; }
.d2-pill {
  --outer-collapsed: 34px; --outer-expanded-w: 420px; --outer-expanded-h: 72px; --slow: 420ms;
  pointer-events: auto; position: relative; width: var(--outer-collapsed); height: var(--outer-collapsed);
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.10); overflow: hidden; cursor: pointer;
  background: rgba(2,3,3,0.22);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,.28), 0 8px 22px rgba(0,0,0,.4);
  transition: width var(--slow) var(--ease), height var(--slow) var(--ease), border-radius var(--slow) var(--ease), box-shadow var(--slow) var(--ease), transform 180ms var(--ease), opacity .3s var(--ease);
  -webkit-user-select: none; user-select: none; touch-action: none;
}
.d2-pill:not(.is-expanded):hover { transform: translateY(-1px); border-color: rgba(162,230,166,.4); }
.d2-pill.is-expanded { width: var(--outer-expanded-w); height: var(--outer-expanded-h); border-radius: 20px; }
.d2-pill.is-expanded.is-active { box-shadow: 0 0 0 1px rgba(139,227,154,0.22), 0 12px 28px rgba(0,0,0,.4); }
.d2-pill.is-expanded.is-processing.is-active { box-shadow: 0 0 0 1px rgba(231,181,93,0.22), 0 12px 28px rgba(0,0,0,.4); }
.d2-pill.is-expanded::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; z-index: 3;
  background: linear-gradient(90deg, rgba(139,227,154,0.18), rgba(159,140,244,0.82) 50%, rgba(231,181,93,0.20));
  box-shadow: 0 1px 7px rgba(159,140,244,0.34);
}
.d2-pill.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px) scale(.9); }
.crest { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; pointer-events: none; transition: opacity .2s var(--ease); }
.d2-pill.is-expanded .crest { opacity: 0; }
.brand-wave { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 19px; width: 22px; }
.brand-wave i { width: 5px; height: var(--wave-height, 12px); display: block; border-radius: 999px; background: linear-gradient(180deg, #8be39a 0 48%, #9f8cf4 49% 100%); opacity: .9; transform: scaleY(.68); transform-origin: center bottom; }
.brand-wave i:nth-child(1) { --wave-height: 11px; }
.brand-wave i:nth-child(2) { --wave-height: 18px; }
.brand-wave i:nth-child(3) { --wave-height: 13px; }
.d2-pill:not(.is-expanded):hover .brand-wave i { animation: brandWave 760ms ease-in-out infinite; }
.d2-pill:not(.is-expanded):hover .brand-wave i:nth-child(1) { animation-delay: -180ms; }
.d2-pill:not(.is-expanded):hover .brand-wave i:nth-child(3) { animation-delay: -300ms; }
@keyframes brandWave { 0%,100% { transform: scaleY(.68); opacity: .78; } 45% { transform: scaleY(1.18); opacity: 1; } }
.content { position: absolute; left: 12px; right: 12px; top: 7px; height: 58px; display: grid; grid-template-rows: 18px 34px; gap: 4px; opacity: 0; pointer-events: none; z-index: 2; transition: opacity 260ms var(--ease) 80ms; }
.d2-pill.is-expanded .content { opacity: 1; }
.d2-header { min-width: 0; display: flex; align-items: center; gap: 8px; }
.wordmark { font: 750 11px/1 var(--font-brand); letter-spacing: -0.035em; color: #f4f5f2; white-space: nowrap; }
.voice-state { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 8px/1 var(--font-brand); letter-spacing: .08em; text-transform: uppercase; color: #a7aaa7; }
.clock-pill { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 999px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); font-family: "IBM Plex Mono", ui-monospace, monospace; flex-shrink: 0; }
.clock-pill b { font-size: 9px; line-height: 1; font-weight: 600; letter-spacing: -.02em; color: var(--mint); min-width: 2.1em; }
.lane { display: flex; align-items: center; gap: 4px; min-height: 16px; padding: 2px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.045); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); flex-shrink: 0; }
.lane-local { font: 650 7px/1 var(--font-brand); letter-spacing: .08em; text-transform: uppercase; color: #8be39a; }
.lane-step { font: 700 8px/1.08 var(--font-brand); letter-spacing: -.02em; color: #f3f5f0; }
.is-processing .lane-step { color: var(--amber); }
.terrain-well { position: relative; min-width: 0; height: 34px; padding: 3px 4px; border-radius: 9px; background: linear-gradient(180deg, #0b0d0d, #030404); border: 1px solid rgba(255,255,255,.075); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); overflow: hidden; }
.terrain-grid { position: absolute; inset: 3px 4px; display: grid; grid-template-columns: repeat(42, 1fr); grid-template-rows: repeat(12, 1fr); gap: 1px; }
.terrain-cell { display: block; border-radius: .7px; opacity: .035; background: var(--cell-color); transition: opacity 105ms linear; }
.terrain-head { position: absolute; top: 2px; bottom: 2px; width: 1.5px; left: 0; opacity: 0; pointer-events: none; background: var(--mint); box-shadow: 0 0 5px rgba(158,240,163,.48); transition: left 90ms linear, opacity 120ms var(--ease); }
.is-live .terrain-head { opacity: .86; }
.terrain-box { position: absolute; border: 1px solid rgba(231,181,93,.82); opacity: 0; pointer-events: none; transition: opacity 140ms var(--ease); }
.voice-pulse { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 999px; background: #8be39a; opacity: .38; transform: scale(var(--pulse, .82)); box-shadow: 0 0 6px rgba(139,227,154,.44); transition: transform 100ms linear, opacity 120ms linear; }
.is-live .voice-pulse { opacity: .96; }
.is-processing .voice-pulse { background: var(--amber); opacity: .66; }

/* =====================================================================
   CHAPTERS
   ===================================================================== */
main { position: relative; z-index: 1; }
.chapter { position: relative; padding: clamp(96px, 14vh, 160px) 0; }
.chapter-head { max-width: 780px; margin-bottom: clamp(32px, 5vh, 56px); }
.chapter-head.center { margin-inline: auto; text-align: center; }
.chapter-num { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--lavender); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
h2 { font-size: clamp(40px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 650; }
.lede { margin: 20px 0 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--secondary); text-wrap: pretty; }
.chapter-head.center .lede { margin-inline: auto; max-width: 640px; }
.signal-text { background: var(--signal-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; vertical-align: 1px; }
.tag-real { color: var(--green); background: rgba(162,230,166,.12); box-shadow: inset 0 0 0 0.5px rgba(162,230,166,.35); }
.tag-illus { color: var(--lavender); background: rgba(169,151,239,.12); box-shadow: inset 0 0 0 0.5px rgba(169,151,239,.35); }
.tag-dev { color: var(--amber); background: rgba(231,181,93,.12); box-shadow: inset 0 0 0 0.5px rgba(231,181,93,.35); }
.evidence { font-size: 13.5px; color: var(--tertiary); margin: 0; }
.sample-label { color: var(--secondary); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding: calc(var(--menubar-h) + clamp(64px, 12vh, 120px)) 0 0; overflow: clip; }
.hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; filter: blur(34px) saturate(120%); transform: scale(1.1); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 70% at 50% 20%, transparent, var(--ground) 78%); }
.hero-inner { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 980px); margin: 0 auto; text-align: center; }
.kicker { margin: 0 0 18px; font-size: 16px; font-weight: 600; color: var(--secondary); }
.hero-title { font-size: clamp(52px, 10vw, 136px); line-height: .98; letter-spacing: -0.045em; font-weight: 750; }
.hero-title .line { display: block; }
.hero-lede { margin: 28px auto 0; max-width: 680px; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.48; color: var(--secondary); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-note { margin: 18px 0 0; font-size: 13px; color: var(--tertiary); }
.hero-desk { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), 1080px); margin: clamp(56px, 9vh, 96px) auto 0; perspective: 1600px; }
.desk-window { border-radius: 14px; overflow: hidden; background: #0b0c0e; box-shadow: 0 0 0 0.5px rgba(255,255,255,.14), 0 40px 120px rgba(0,0,0,.7), 0 0 80px rgba(169,151,239,.08); }
.hero-desk .desk-window { transform-origin: 50% 0; transform: rotateX(18deg) translateY(0); }
.win-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; background: #121316; border-bottom: 0.5px solid rgba(255,255,255,.06); font-size: 12px; color: var(--secondary); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d44; }
.win-bar i:nth-child(1) { background: #ec6a5e; } .win-bar i:nth-child(2) { background: #f4bf4f; } .win-bar i:nth-child(3) { background: #61c554; }
.win-bar span { margin-left: 8px; }
.studio-window .win-bar { display: none; }
.hero-hint { position: fixed; left: 50%; bottom: 122px; z-index: 53; transform: translateX(-50%); margin: 0; font-size: 12.5px; color: var(--secondary); white-space: nowrap; display: flex; align-items: center; gap: 8px; pointer-events: none; transition: opacity .4s var(--ease); }
.hero-hint.is-gone { opacity: 0; }

/* ---------- Pinned chapters ---------- */
.pinned { padding: 0; }
.pin-stage { position: relative; min-height: 100svh; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding: calc(var(--menubar-h) + 40px) 0 calc(var(--tabbar-space) + 28px); display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto 1fr auto; column-gap: 48px; align-content: start; }
.pin-stage > .chapter-head { grid-column: 1 / -1; margin-bottom: 28px; }
.pin-stage h2 { font-size: clamp(36px, 5vw, 64px); }
.pin-stage .evidence { grid-column: 1 / -1; margin-top: 18px; }
.beats { grid-column: 2; grid-row: 2; list-style: none; margin: 0; padding: 0; position: relative; align-self: center; min-height: 220px; }
.beat { position: absolute; inset: 0 0 auto; font-size: 19px; line-height: 1.5; color: var(--secondary); opacity: 0; transform: translateY(14px); }
.beat b { color: var(--text); font-weight: 650; }
.beat:first-child { opacity: 1; transform: none; }
.no-motion .beat { position: static; opacity: 1; transform: none; margin-bottom: 18px; }

/* ---------- 01 Hear: dissection ---------- */
.dissect { grid-column: 1; grid-row: 2; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 18px; min-height: 380px; }
.dissect-wave { width: 100%; height: 110px; display: block; }
.prism { position: relative; height: 70px; display: grid; grid-template-columns: repeat(18, 1fr); gap: 4px; align-items: end; opacity: 0; }
.prism i { display: block; height: 100%; border-radius: 3px; background: rgba(255,255,255,.04); position: relative; overflow: visible; }
.prism i::before { content: ""; position: absolute; inset: 0; border-radius: 3px; overflow: hidden; }
.prism i::after { content: ""; position: absolute; inset: auto 0 0; height: calc(var(--e, 0) * 100%); background: var(--c); border-radius: 3px; opacity: .9; }
.prism { margin-bottom: 16px; }
.prism small { position: absolute; bottom: -17px; font-size: 10px; color: var(--tertiary); white-space: nowrap; }
.bigpill { position: relative; width: 100%; padding: 12px 16px 16px; border-radius: 26px; background: rgba(2,3,3,.5); border: 1px solid rgba(255,255,255,.10); box-shadow: 0 0 0 1px rgba(139,227,154,.16), 0 30px 80px rgba(0,0,0,.55); }
.bigpill::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1.5px; background: linear-gradient(90deg, rgba(139,227,154,0.18), rgba(159,140,244,0.82) 50%, rgba(231,181,93,0.20)); box-shadow: 0 1px 10px rgba(159,140,244,.4); }
.bigpill .d2-header { gap: 12px; margin-bottom: 10px; }
.bigpill .wordmark { font-size: 16px; }
.bigpill .voice-pulse { width: 7px; height: 7px; }
.bigpill .voice-state { font-size: 11px; }
.bigpill .clock-pill b { font-size: 13px; }
.bigpill .lane { padding: 4px 10px; }
.bigpill .lane-local { font-size: 9px; }
.bigpill .lane-step { font-size: 11.5px; }
.bigpill .terrain-well { height: auto; aspect-ratio: 42 / 12; padding: 6px 8px; border-radius: 14px; }
.terrain-canvas { width: 100%; height: 100%; display: block; }
.band-labels { position: absolute; right: -58px; top: 52px; bottom: 16px; display: flex; flex-direction: column; justify-content: space-between; font-size: 10.5px; color: var(--tertiary); opacity: 0; }
.band-labels span:nth-child(2) { color: var(--amber); } .band-labels span:nth-child(3) { color: var(--lavender); } .band-labels span:nth-child(4) { color: var(--green); }

/* ---------- 02 Understand: reader ---------- */
.reader { grid-column: 1; grid-row: 2; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 380px; }
.reader-frame { position: relative; border-radius: 18px; overflow: hidden; background: var(--well); box-shadow: inset 0 0 0 1px var(--well-edge), 0 30px 80px rgba(0,0,0,.5); aspect-ratio: 16 / 6.2; }
.reader-spectrogram { width: 100%; height: 100%; display: block; }
.reader-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--mint); box-shadow: 0 0 12px var(--mint); opacity: 0; }
.reader-axis { position: absolute; left: 10px; font-size: 10.5px; color: var(--tertiary); }
.reader-axis.hi { top: 8px; } .reader-axis.lo { bottom: 8px; }
.reader-words { position: relative; height: 64px; transition: height .2s; }
.rw { position: absolute; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: 0; white-space: nowrap; }
.rw b { font: 600 clamp(12px, 1.25vw, 16px)/1 var(--font-ui); color: var(--text); }
.rw i { display: block; height: 3px; width: 100%; min-width: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--green) calc(var(--conf) * 100%), rgba(255,255,255,.1) 0); }
.rw.low b { color: var(--amber); }
.rw-span { position: absolute; bottom: -12px; height: 2px; background: rgba(255,255,255,.18); }
.reader-alts { min-height: 64px; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.alt { padding: 6px 10px; border-radius: 10px; font-size: 13px; color: var(--secondary); background: var(--group); box-shadow: inset 0 0 0 .5px var(--hairline); opacity: 0; }

/* ---------- 02 Shaping ---------- */
.shaper { border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); padding: clamp(22px, 3vw, 36px); position: relative; overflow: hidden; }
.shaper::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--edge-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.shaper-line { min-height: 3.2em; font: 600 clamp(20px, 2.4vw, 30px)/1.35 var(--font-display); letter-spacing: -0.02em; margin-bottom: 28px; text-wrap: pretty; }
.shaper-line .tok { display: inline; transition: color .3s, opacity .3s; }
.shaper-line .del { color: var(--amber); text-decoration: line-through; text-decoration-thickness: 2px; opacity: .8; }
.shaper-line .ins { color: var(--green); }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.stage { padding: 14px; border-radius: 16px; background: var(--group); box-shadow: inset 0 0 0 .5px var(--hairline); opacity: .45; transition: opacity .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease); }
.stage b { display: block; font-size: 14.5px; margin-bottom: 6px; }
.stage span { font-size: 12.5px; line-height: 1.45; color: var(--secondary); }
.stage.is-on { opacity: 1; background: rgba(169,151,239,.10); box-shadow: inset 0 0 0 1px rgba(169,151,239,.45); }
.stage.is-done { opacity: .8; }
.stage-ai.is-on { background: linear-gradient(135deg, rgba(162,230,166,.10), rgba(169,151,239,.14), rgba(231,181,93,.10)); }
.guard { margin-top: 28px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.guard h3 { font-size: 26px; }
.guard p { color: var(--secondary); margin: 10px 0 0; }
.guard-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guard-checks li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.guard-checks svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; color: var(--well); background: var(--green); stroke-width: 2.4; }

/* ---------- 03 Write ---------- */
.insert-demo { display: grid; gap: 18px; }
.doc-window { border-radius: 16px; overflow: hidden; background: #0d0e10; box-shadow: 0 0 0 .5px rgba(255,255,255,.12), 0 30px 80px rgba(0,0,0,.5); }
.doc-body { padding: 26px 30px 34px; min-height: 180px; }
.doc-to { margin: 0 0 14px; color: var(--tertiary); font-size: 15px; }
.doc-text { margin: 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -3px; background: var(--lavender); animation: caret 1.05s steps(2) 6; }
@keyframes caret { 50% { opacity: 0; } }
.lane-track { display: flex; flex-wrap: wrap; gap: 8px; }
.lane-track span { padding: 7px 12px; border-radius: 999px; font: 700 12px/1 var(--font-brand); letter-spacing: -.01em; color: var(--tertiary); background: var(--group); box-shadow: inset 0 0 0 .5px var(--hairline); transition: all .3s var(--ease); }
.lane-track span.is-on { color: var(--well); background: var(--green); box-shadow: none; }
.lane-track span.is-done { color: var(--green); }
.rooms { margin-top: clamp(64px, 9vh, 104px); }
.rooms h3 { font-size: 28px; margin-bottom: 22px; }
.room-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.room { padding: 20px; border-radius: var(--r-tile); background: var(--surface); box-shadow: inset 0 0 0 .5px var(--hairline); }
.room header { display: flex; align-items: center; gap: 8px; font-weight: 650; margin-bottom: 8px; }
.room header svg { color: var(--lavender); font-size: 18px; }
.room p { margin: 0; color: var(--secondary); font-size: 15px; }

.clinical-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.clinical-card { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.cc-label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--tertiary); }
.clinical-card blockquote { margin: 0 0 22px; }
.cc-said { font-size: 18px; color: var(--secondary); font-style: italic; }
.cc-wrote { font: 650 clamp(22px, 2.4vw, 30px)/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--text); }
.cc-es { font-size: clamp(18px, 1.8vw, 22px); color: var(--secondary); }

.studio-frame { margin: 0; }
.studio-frame .desk-window { border-radius: 16px; }
.studio-frame figcaption { margin-top: 12px; font-size: 13px; color: var(--tertiary); }
.studio-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.studio-tiles article { padding: 20px; border-radius: var(--r-tile); background: var(--surface); box-shadow: inset 0 0 0 .5px var(--hairline); }
.studio-tiles svg { font-size: 22px; color: var(--lavender); }
.studio-tiles h3 { font-size: 17px; margin: 10px 0 6px; }
.studio-tiles p { margin: 0; font-size: 14.5px; color: var(--secondary); }

/* ---------- 04 Point ---------- */
.point-stage { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: 1fr 210px; gap: 28px; align-items: center; }
.mac-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #1a1d24, #0a0b0d 70%); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 0 10px #16181c, 0 0 0 11px rgba(255,255,255,.08), 0 40px 90px rgba(0,0,0,.6); }
.ms-menubar { height: 20px; display: flex; align-items: center; gap: 10px; padding: 0 10px; font-size: 10.5px; background: rgba(20,22,24,.7); }
.ms-menubar .mark { height: 9px; } .ms-menubar .mark i { width: 2.5px; }
.ms-desk { position: absolute; inset: 20px 0 0; }
.ms-win { position: absolute; border-radius: 9px; overflow: hidden; background: #15171b; box-shadow: 0 0 0 .5px rgba(255,255,255,.14), 0 18px 40px rgba(0,0,0,.5); }
.ms-bar { height: 18px; display: flex; align-items: center; gap: 4px; padding: 0 7px; background: #1c1f24; font-size: 9px; color: var(--secondary); }
.ms-bar i { width: 6px; height: 6px; border-radius: 50%; background: #3a3d44; }
.ms-bar span { margin-left: 6px; }
.ms-body { position: absolute; inset: 18px 0 0; padding: 10px; display: grid; gap: 7px; align-content: start; }
.ms-body i { display: block; height: 8px; border-radius: 3px; background: rgba(255,255,255,.07); }
.ms-web i:nth-child(1) { height: 38%; background: linear-gradient(135deg, rgba(169,151,239,.22), rgba(162,230,166,.12)); }
.ms-lines i:nth-child(odd) { width: 80%; }
.ms-files { grid-template-columns: repeat(3, 1fr); }
.ms-files i { height: 34px; }
.ms-win[data-win="safari"] { left: 22%; top: 10%; width: 52%; height: 64%; }
.ms-win[data-win="notes"] { left: 50%; top: 30%; width: 34%; height: 52%; }
.ms-win[data-win="finder"] { left: 8%; top: 44%; width: 36%; height: 44%; }
.ms-pointer { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; z-index: 5; pointer-events: none; }
.ms-pointer svg { width: 18px; height: 18px; fill: #fff; stroke: #000; stroke-width: 1.2; }
.ms-command { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(2,3,3,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14), 0 0 0 1px rgba(139,227,154,.2); opacity: 0; white-space: nowrap; }
.ms-command .mark { height: 11px; }
.ms-screen2 { position: absolute; right: -60%; top: 12%; width: 50%; height: 76%; border-radius: 10px; display: grid; place-items: center; font-size: 11px; color: var(--tertiary); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }

.phone { position: relative; width: 210px; aspect-ratio: 9 / 19.5; border-radius: 38px; padding: 7px; background: #1b1d21; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 0 0 1px #000, 0 40px 90px rgba(0,0,0,.6); }
.phone-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #060708; display: flex; flex-direction: column; gap: 7px; padding: 0 0 8px; }
.r1 { position: relative; height: 62px; flex: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; padding: 16px 12px 6px; background: #090b0d; border-bottom: 1px solid rgba(159,140,244,.7); }
.r1-brand b { display: block; font: 700 11px/1.1 var(--font-brand); letter-spacing: -.02em; }
.r1-brand span { display: block; font-size: 9px; color: rgba(255,255,255,.36); }
.r1-spectrum { width: 56px; height: 18px; justify-self: center; image-rendering: pixelated; }
.r1-state { font-size: 9.5px; font-weight: 600; color: var(--green); }
.r-progress { margin: 0 8px; padding: 9px 11px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; }
.r-progress .num { font-size: 15px; display: block; }
.r-progress span { font-size: 9px; color: var(--secondary); }
.r-ring { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--green) 0 78%, rgba(255,255,255,.1) 0); -webkit-mask: radial-gradient(circle, transparent 0 55%, #000 57%); mask: radial-gradient(circle, transparent 0 55%, #000 57%); }
.r-pad { position: relative; flex: 1; margin: 0 8px; border-radius: 18px; background: #0d0f11; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08); overflow: hidden; touch-action: none; cursor: grab; }
.r-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 28px; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; color: var(--secondary); font-size: 13px; border-right: .5px solid rgba(255,255,255,.06); }
.r-pad-hint { position: absolute; left: 28px; right: 0; top: 50%; text-align: center; font-size: 10px; color: rgba(255,255,255,.24); transform: translateY(-50%); pointer-events: none; }
.r-touch { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.35), rgba(255,255,255,.08) 60%, transparent 70%); opacity: 0; pointer-events: none; }
.r-edge { position: absolute; right: 3px; top: 16%; bottom: 16%; width: 3px; border-radius: 3px; background: rgba(255,255,255,.08); }
.r-compass { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -51px; border-radius: 50%; background: rgba(20,22,26,.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18); opacity: 0; transform: scale(.8); font-size: 9.5px; font-weight: 600; pointer-events: none; }
.r-compass span { position: absolute; }
.r-compass span:nth-child(1) { top: 12px; left: 50%; transform: translateX(-50%); }
.r-compass span:nth-child(2) { bottom: 12px; left: 50%; transform: translateX(-50%); }
.r-compass span:nth-child(3) { left: 8px; top: 50%; transform: translateY(-50%); }
.r-compass span:nth-child(4) { right: 8px; top: 50%; transform: translateY(-50%); color: var(--amber); }
.r-touchbar { position: relative; margin: 0 8px; height: 50px; border-radius: 16px; overflow: hidden; flex: none; }
.r-keys { position: absolute; inset: 0; display: flex; justify-content: space-around; align-items: center; transition: transform .45s var(--ease), opacity .3s var(--ease); }
.r-keys span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 7.5px; color: var(--text); }
.r-keys svg { font-size: 15px; }
.r-keys[data-app="safari"] { transform: translateY(100%); opacity: 0; }
.r-touchbar.is-safari [data-app="finder"] { transform: translateY(-100%); opacity: 0; }
.r-touchbar.is-safari [data-app="safari"] { transform: none; opacity: 1; }

/* ---------- 05 Private ---------- */
.boundary-switch { position: relative; display: flex; width: max-content; margin: 0 auto 26px; padding: 4px; border-radius: 999px; }
.boundary-switch button { position: relative; z-index: 1; border: 0; background: none; height: 36px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--secondary); cursor: pointer; }
.boundary-switch button[aria-selected="true"] { color: var(--text); }
.switch-lens { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 50%; border-radius: 999px; background: rgba(169,151,239,.24); box-shadow: inset 0 0 0 .75px rgba(169,151,239,.35); transition: transform .45s var(--ease), width .45s var(--ease); }
.boundary { position: relative; border-radius: 32px; background: radial-gradient(90% 100% at 50% 50%, #0e1013, #070809); box-shadow: inset 0 0 0 1px var(--hairline); padding: clamp(16px, 3vw, 36px); }
.boundary-art { width: 100%; height: auto; display: block; font-family: var(--font-ui); }
.cloud-far path { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 1.4; stroke-dasharray: 3 5; }
.cloud-far text { fill: rgba(255,255,255,.34); font-size: 14px; font-weight: 600; text-anchor: middle; text-decoration: line-through; }
.edge { fill: none; stroke-width: 1.5; }
.edge-mac { stroke: url(#gSignal); }
.edge-net { stroke: rgba(162,230,166,.4); stroke-dasharray: 6 7; opacity: 0; transition: opacity .6s var(--ease); }
.edge-label { fill: var(--secondary); font-size: 13px; font-weight: 600; text-anchor: middle; }
.edge-label-net { fill: var(--green); opacity: 0; transition: opacity .6s var(--ease); }
.flow { fill: none; stroke: url(#gSignal); stroke-width: 2; stroke-dasharray: 5 7; }
.node circle { fill: #101214; stroke: rgba(255,255,255,.16); stroke-width: 1; }
.node text, .node-phone text, .tls text { fill: var(--secondary); font-size: 12.5px; font-weight: 600; text-anchor: middle; }
.node-ai circle { stroke: var(--lavender); }
.node-phone rect { fill: #101214; stroke: var(--green); }
.node-phone, .flow-phone, .tls { opacity: 0; transition: opacity .6s var(--ease); }
.tls rect { fill: rgba(162,230,166,.14); stroke: rgba(162,230,166,.5); }
.tls text { fill: var(--green); font-size: 10.5px; }
.boundary[data-mode="net"] .edge-net, .boundary[data-mode="net"] .edge-label-net, .boundary[data-mode="net"] .node-phone, .boundary[data-mode="net"] .flow-phone, .boundary[data-mode="net"] .tls { opacity: 1; }
.halo { opacity: .9; }
.boundary-copy { max-width: 700px; margin: 12px auto 0; text-align: center; font-size: 18px; color: var(--secondary); }
.boundary-copy b { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 36px 0 26px; }
.facts article { padding: 22px; border-radius: var(--r-tile); background: var(--surface); box-shadow: inset 0 0 0 .5px var(--hairline); }
.facts h3 { font-size: 19px; margin-bottom: 6px; }
.facts p { margin: 0; color: var(--secondary); font-size: 15px; }

.flowline { font-size: .86em; color: var(--green); background: rgba(162,230,166,.08); padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.arch { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px 60px; align-items: center; }
.arch-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.arch-lines path { fill: none; stroke: url(#gSignal); stroke-width: 1.5; opacity: .7; }
.mod { position: relative; z-index: 1; padding: 20px 22px; border-radius: var(--r-tile); background: var(--surface); box-shadow: inset 0 0 0 .5px var(--hairline); }
.mod h3 { font-size: 18px; margin-bottom: 6px; }
.mod p { margin: 0; font-size: 14.5px; color: var(--secondary); }
.mod-a { grid-column: 1; grid-row: 1; } .mod-b { grid-column: 1; grid-row: 2; }
.mod-core { grid-column: 2; grid-row: 1 / 3; align-self: center; box-shadow: inset 0 0 0 1px rgba(169,151,239,.45), 0 0 60px rgba(169,151,239,.12); }
.mod-c { grid-column: 3; grid-row: 1; } .mod-d { grid-column: 3; grid-row: 2; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 40px 0 0; }
.stats div { padding: 22px; border-radius: var(--r-tile); background: var(--surface); box-shadow: inset 0 0 0 .5px var(--hairline); }
.stats dt { font-size: 14px; color: var(--secondary); font-weight: 600; }
.stats dd { margin: 8px 0 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; letter-spacing: -.02em; color: var(--text); }
.stats .stat-word { color: var(--green); }

/* ---------- 06 Compare ---------- */
.race { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.race-row { display: grid; grid-template-columns: 200px 1fr 84px; align-items: center; gap: 18px; margin-bottom: 18px; }
.race-name { font-weight: 650; }
.race-name small { display: block; font-size: 12.5px; font-weight: 400; color: var(--tertiary); font-family: var(--font-mono); }
.race-track { position: relative; height: 18px; border-radius: 999px; background: rgba(255,255,255,.05); }
.race-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; }
.race-apple { background: linear-gradient(90deg, var(--green), var(--lavender)); }
.race-whisper { background: rgba(255,255,255,.28); }
.race-p95 { position: absolute; top: -5px; bottom: -5px; width: 2px; border-radius: 2px; background: var(--amber); opacity: 0; }
.race-val { font-size: 20px; text-align: right; }
.race-axis { display: flex; justify-content: space-between; margin: 4px 102px 0 218px; font-size: 11.5px; color: var(--tertiary); }
.race-headline { margin: 26px 0 8px; font-size: 20px; color: var(--secondary); }
.race-headline .num { font-size: 40px; color: var(--text); margin-right: 8px; vertical-align: -6px; }
.matrix-wrap { margin-top: 28px; overflow-x: auto; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); padding: clamp(14px, 2vw, 24px); }
.matrix { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
.matrix caption { text-align: left; font-weight: 650; font-size: 17px; padding: 6px 8px 14px; }
.matrix th, .matrix td { padding: 12px 10px; text-align: left; vertical-align: top; border-top: .5px solid var(--hairline); }
.matrix thead th { border-top: 0; font-size: 13px; color: var(--secondary); font-weight: 650; }
.matrix th.us, .matrix td.us { color: var(--text); background: rgba(169,151,239,.07); }
.matrix tbody th { font-weight: 600; color: var(--secondary); width: 190px; }
.matrix td { color: var(--secondary); }
.matrix sup a { color: var(--lavender); text-decoration: none; font-size: 10px; }
.matrix-wrap .fine { margin: 14px 8px 4px; }

/* ---------- 07 Pilot ---------- */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 860px; margin: 0 auto 26px; }
.dl { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-tile); background: var(--surface); box-shadow: inset 0 0 0 .5px var(--hairline); }
.dl h3 { font-size: 17px; }
.dl p { margin: 2px 0 0; font-size: 13.5px; color: var(--secondary); }
.dl-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(180deg, #1a1d22, #0b0d0d); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16); }
.dl-icon .mark { height: 22px; gap: 3px; } .dl-icon .mark i { width: 5px; }
.dl-icon-phone svg { font-size: 26px; color: var(--green); }
.dl-state { margin-left: auto; flex: none; font-size: 12px; font-weight: 600; color: var(--amber); padding: 5px 10px; border-radius: 999px; background: rgba(231,181,93,.1); }
.pilot-form { max-width: 860px; margin: 0 auto; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-wide, fieldset.field, .form-foot, .pilot-form > .fine { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--text); padding: 0; }
.field small { color: var(--tertiary); font-weight: 400; margin-left: 6px; }
.field input, .field textarea { width: 100%; font: 16px/1.4 var(--font-ui); color: var(--text); background: var(--well); border: 0; border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--well-edge); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--lavender); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--secondary); background: var(--group); box-shadow: inset 0 0 0 .5px var(--hairline); transition: all .2s var(--ease); }
.chips input:checked + span { color: var(--text); background: rgba(169,151,239,.22); box-shadow: inset 0 0 0 .75px rgba(169,151,239,.5); }
.chips input:focus-visible + span { outline: 2px solid var(--lavender); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 14px; color: var(--secondary); }
.form-status.ok { color: var(--green); } .form-status.err { color: var(--amber); }

.site-footer { padding: 48px 0 calc(var(--tabbar-space) + 40px); border-top: .5px solid var(--hairline); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--font-brand); letter-spacing: -.02em; }
.foot-brand .mark { height: 18px; } .foot-brand .mark i { width: 4.5px; }
.badges { list-style: none; margin: 22px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { font-size: 12.5px; color: var(--secondary); padding: 6px 11px; border-radius: 999px; background: var(--group); box-shadow: inset 0 0 0 .5px var(--hairline); }

/* =====================================================================
   PHONE ENVELOPE (< 820px): R1 island on top, Remote Touch Bar below.
   ===================================================================== */
@media (max-width: 820px) {
  /* Top chrome on phones: the Remote's R1 band (56) + the glass tab bar (6 gap + 56). The bottom
     edge stays free for Safari's own toolbar; only the collapsed D2 pill sits there. */
  :root { --menubar-h: 118px; --tabbar-space: 52px; }
  [data-env="mac"] { display: none !important; }
  [data-env="phone"] { display: grid; }
  .island { position: fixed; inset: 0 0 auto; z-index: 60; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: #090b0d; border-bottom: 1px solid rgba(159,140,244,.75); }
  .island-brand { text-decoration: none; }
  .island-brand b { display: block; font: 700 15px/1.05 var(--font-brand); letter-spacing: -.02em; }
  .island-brand span { display: block; font-size: 11px; color: rgba(255,255,255,.36); }
  .island-spectrum { justify-self: center; width: 84px; height: 27px; image-rendering: pixelated; }
  .island-state { font-size: 12px; font-weight: 600; color: var(--green); }
  .tabbar { left: 8px; right: 8px; top: calc(62px + env(safe-area-inset-top)); bottom: auto; transform: none; }
  /* Scroll-edge effect, as in iOS: content fades out under the bar so labels stay legible. */
  .tabbar::before { content: ''; position: absolute; z-index: -1; left: -8px; right: -8px; top: -6px; bottom: -26px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(6, 7, 8, .55), rgba(6, 7, 8, .2) 60%, rgba(6, 7, 8, 0)); }
  .d2-dock { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .state-bubble { display: none; }
  .tabs-shell { flex: 1; min-width: 0; border-radius: 22px; padding: 5px; }
  .tabs { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; scroll-snap-type: x proximity; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab, .tab.is-active { flex: 0 0 auto; flex-direction: column; justify-content: center; gap: 2px; width: 58px; height: 46px; padding: 0; border-radius: 16px; scroll-snap-align: center; }
  .tab span, .tab.is-active span { display: block; font-size: 9.5px; font-weight: 600; }
  .lens { height: 46px; border-radius: 16px; }
  .hero { padding-top: calc(var(--menubar-h) + 20px); }
  .chapter:not(.pinned):not(.hero) { padding-top: calc(var(--menubar-h) + 12px); }
  .hero-desk { margin-top: 48px; }
  .pin-stage { display: block; padding-top: calc(var(--menubar-h) + 28px); }
  .beats { min-height: 170px; margin-top: 22px; }
  .beat { font-size: 17px; }
  .band-labels { display: none; }
  .point-stage { grid-template-columns: 1fr; justify-items: center; }
  .mac-screen { width: 100%; }
  .phone { width: 190px; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .guard, .clinical-grid { grid-template-columns: 1fr; }
  .room-grid, .studio-tiles { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .arch { grid-template-columns: 1fr; gap: 12px; }
  .arch-lines { display: none; }
  .mod-a, .mod-b, .mod-core, .mod-c, .mod-d { grid-column: 1; grid-row: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .race-row { grid-template-columns: 1fr 64px; }
  .race-row .race-track { grid-column: 1 / -1; grid-row: 2; }
  .race-axis { margin: 4px 0 0; }
  .downloads, .pilot-form { grid-template-columns: 1fr; }
  .dl { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .facts, .room-grid, .studio-tiles, .stages { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(46px, 13vw, 64px); }
  .phone { display: none; }
}

/* Reduced motion: every beat visible, nothing pinned or looping. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Shaping additions */
.shaper-note { margin: -14px 0 24px; font-size: 14px; color: var(--tertiary); min-height: 1.4em; }
.shaper-note b { color: var(--lavender); font-weight: 600; }
.shaper-line .para { display: block; }
.shaper-line .li { display: block; padding-left: .2em; }
.polish-demo { margin-top: 22px; padding: 18px; border-radius: 18px; background: var(--well); box-shadow: inset 0 0 0 1px var(--well-edge); }
.pd-label { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--tertiary); }
.pd-heard { margin: 0 0 16px; font-size: 17px; color: var(--secondary); }
.pd-heard .del { color: var(--amber); text-decoration: line-through; }
.pd-out { margin: 0; font: 600 19px/1.4 var(--font-display); letter-spacing: -.01em; }
.pd-time { color: var(--green); font-weight: 600; }
.guard { align-items: start; }
.guard-lead { margin: 0 0 14px; color: var(--secondary); font-size: 17px; }
.guard-rules .fine { margin-top: 18px; }
.alts-label { width: 100%; margin: 0 0 2px; font-size: 12.5px; font-weight: 600; color: var(--tertiary); opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.matrix { min-width: 1080px; }
.matrix td { font-size: 13.5px; line-height: 1.45; }
.matrix thead th.us { color: var(--lavender); }
.sources { margin: 8px 8px 4px; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 12px; color: var(--tertiary); }
.sources li { margin-bottom: 4px; break-inside: avoid; }
.sources a { color: var(--secondary); text-decoration: none; }
.sources a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 820px) { .sources { columns: 1; } }

/* ---------- 04 Point: 3D crane shot ---------- */
.crane-canvas, .crane-scrim, .crane-tls, .crane-beats { display: none; }
.has-crane #point .point-stage, .has-crane #pointBeats { display: none; }
.has-crane #point .point-pin { width: 100%; max-width: none; margin: 0; padding-inline: var(--gutter); grid-template-columns: minmax(0, 460px) 1fr; grid-template-rows: auto 1fr auto; }
.has-crane .crane-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.has-crane .crane-scrim { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6,7,8,.82) 0%, rgba(6,7,8,.35) 34%, rgba(6,7,8,0) 55%), linear-gradient(0deg, rgba(6,7,8,.7) 0%, rgba(6,7,8,0) 26%); }
.has-crane #point .chapter-head, .has-crane #point .evidence, .has-crane .crane-beats { position: relative; z-index: 1; }
.has-crane #point .chapter-head { grid-column: 1; }
.has-crane .crane-beats { display: block; grid-column: 1; grid-row: 3; list-style: none; margin: 0 0 12px; padding: 0; position: relative; min-height: 190px; max-width: 440px; }
.crane-beats .beat { position: absolute; left: 0; right: 0; bottom: 0; top: auto; opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.crane-beats .beat.is-on { opacity: 1; transform: none; }
.has-crane #point .evidence { grid-column: 1 / -1; grid-row: 4; max-width: 760px; }
.has-crane .crane-tls { display: inline-flex; align-items: center; gap: 6px; position: absolute; left: 0; top: 0; z-index: 2; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--green); background: rgba(6,7,8,.72); box-shadow: inset 0 0 0 .5px rgba(162,230,166,.4); opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; white-space: nowrap; }
@media (max-width: 820px) {
  .has-crane #point .point-pin { display: flex; flex-direction: column; }
  .has-crane .crane-scrim { background: linear-gradient(180deg, rgba(6,7,8,.85) 0%, rgba(6,7,8,0) 30%), linear-gradient(0deg, rgba(6,7,8,.92) 0%, rgba(6,7,8,0) 42%); }
  .has-crane .crane-beats { margin-top: auto; min-height: 150px; }
}
.has-crane #point .evidence { max-width: 440px; grid-column: 1; }
/* Diagrams set their own strokes; don't inherit the icon defaults. */
.boundary-art, .arch-lines { stroke: none; fill: none; width: 100%; height: auto; }
.boundary-art text { stroke: none; }
.boundary-art .halo { stroke: none; }
.arch-lines { height: 100%; }

/* 04 with Apple's device models: no stage, the page's ground runs through. */
#point { background:
  radial-gradient(55% 45% at 60% 68%, rgba(169,151,239,.10), transparent 72%),
  radial-gradient(40% 36% at 34% 84%, rgba(162,230,166,.06), transparent 70%),
  var(--ground); }
.has-crane .crane-canvas { opacity: 0; transition: opacity 1.1s var(--ease); }
.crane-ready .crane-canvas { opacity: 1; }
.has-crane:not(.crane-ready) #point .point-pin::after { content: "Loading MacBook Pro and iPhone 18 Pro…"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 13px; color: var(--tertiary); z-index: 1; }
.has-crane .crane-scrim { background: linear-gradient(90deg, rgba(6,7,8,.78) 0%, rgba(6,7,8,.28) 32%, rgba(6,7,8,0) 52%), linear-gradient(0deg, rgba(6,7,8,.6) 0%, rgba(6,7,8,0) 24%); }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }


/* ---------------------------------------------------------------------------
   CORESCRIBE GLASS — js/cs-glass.js + css/cs-glass.css. Controls only. Neutral
   graphite tints (no blue), tuned against Apple's iOS 27 glass in
   verification/glass-lab (blind-judged against the old liquid-glass-react port).
--------------------------------------------------------------------------- */
:root { --csg-tint: rgba(62, 64, 70, .42); }
.popover { --csg-tint: rgba(30, 32, 37, .66); }
/* A white lift, as in Apple's dark glass: it reads as a lit pane over the dark ground
   (matching Safari's own toolbar) without hiding content that passes under the bar. */
.tabs-shell, .state-bubble { --csg-tint: rgba(255, 255, 255, .115); }
.d2-pill { --csg-tint: rgba(8, 9, 10, .42); }
.btn-glass { --csg-tint: rgba(62, 64, 70, .36); }

/* =====================================================================
   PHONES — pinned chapters fit the smallest real viewport we target:
   iPhone 18 Pro Safari, 402 × 714 pt with the toolbar showing (754 without).
   Everything in a pinned chapter must be visible between the R1 island and
   the Touch Bar, so each stage is a fixed-height column that scales its art.
   ===================================================================== */
.ev-short { display: none; }
@media (max-width: 820px) {
  .ev-long { display: none; }
  .ev-short { display: inline; }

  .pin-stage { display: flex; flex-direction: column; height: 100svh; min-height: 0; overflow: hidden;
    padding: calc(var(--menubar-h) + 14px) 0 calc(var(--tabbar-space) + 6px); }
  .pin-stage > .chapter-head { flex: none; margin-bottom: 10px; }
  .pin-stage .chapter-num { margin-bottom: 6px; font-size: 13px; }
  .pin-stage h2 { font-size: clamp(26px, 7.6vw, 32px); line-height: 1.04; }
  .pin-stage .lede { margin-top: 6px; font-size: 15px; line-height: 1.4; }
  .pin-stage .evidence { flex: none; margin-top: 8px; font-size: 11.5px; line-height: 1.4; }

  /* Step text: all beats share one grid cell, so the block is exactly as tall as the longest beat. */
  .beats { display: grid; flex: none; min-height: 0; margin-top: 10px; }
  .beats .beat { position: relative; inset: auto; grid-area: 1 / 1; font-size: 15px; line-height: 1.42; }

  /* 01 Hear */
  .dissect { flex: 1 1 auto; min-height: 0; gap: 8px; justify-content: center; }
  .dissect-wave { flex: none; height: clamp(40px, 8svh, 72px); }
  .prism { flex: none; height: clamp(26px, 5svh, 48px); margin-bottom: 14px; }
  .prism small { font-size: 9.5px; bottom: -14px; }
  .bigpill { flex: none; padding: 8px 10px 10px; border-radius: 18px; }
  .bigpill .d2-header { gap: 7px; margin-bottom: 6px; }
  .bigpill .wordmark { font-size: 12px; }
  .bigpill .voice-state { font-size: 9px; }
  .bigpill .clock-pill b { font-size: 10px; }
  .bigpill .lane { padding: 3px 7px; }
  .bigpill .lane-local { font-size: 7.5px; }
  .bigpill .lane-step { font-size: 9.5px; }
  .bigpill .terrain-well { padding: 4px 5px; border-radius: 10px; }

  /* 02 Understand */
  .reader { flex: 1 1 auto; min-height: 0; gap: 8px; justify-content: center; }
  .reader-words { flex: none; }
  .rw { gap: 3px; }
  .rw b { font-size: 10.5px; }
  .rw i { height: 2px; }
  .reader-frame { flex: none; aspect-ratio: 16 / 7; border-radius: 14px; }
  .reader-alts { flex: none; min-height: 0; gap: 6px; }
  .alts-label { font-size: 11px; }
  .alt { padding: 4px 8px; font-size: 11.5px; border-radius: 8px; }

  /* 02 Shaping (the whole section pins) */
  #shape { padding-top: calc(var(--menubar-h) + 14px); }
  #shape .chapter-head { margin-bottom: 14px; }
  #shape h2 { font-size: clamp(26px, 7.6vw, 32px); line-height: 1.04; }
  #shape .chapter-head .lede { margin-top: 6px; font-size: 15px; }
  .shaper { padding: 16px; border-radius: 20px; }
  .shaper-line { min-height: 0; margin-bottom: 18px; font-size: 19px; }
  .shaper-note { margin: -8px 0 12px; font-size: 12.5px; }
  .stages, .stages { display: flex; flex-wrap: wrap; gap: 6px; grid-template-columns: none; }
  .stage { padding: 6px 10px; border-radius: 999px; }
  .stage b { margin: 0; font-size: 12px; }
  .stage span { display: none; }

  /* Heading scrolls away above the pinned stage (story.js moves it on phones). */
  .pinned.head-out > .chapter-head { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding-top: calc(var(--menubar-h) + 20px); }
  .pinned.head-out > .chapter-head h2 { font-size: clamp(28px, 8.4vw, 34px); line-height: 1.04; }

  /* 04 Point (3D): title yields to the shot, steps stack at the bottom */
  .has-crane #point .point-pin { height: 100svh; }
  .has-crane .crane-beats { display: grid; min-height: 0; margin: auto 0 0; }
  .crane-beats .beat { position: relative; left: auto; right: auto; bottom: auto; grid-area: 1 / 1; align-self: end; font-size: 15px; line-height: 1.42; }
  .has-crane #point .evidence { margin-top: 8px; }
}

.prism i:last-child small { left: auto; right: 0; }

/* Short phone screens (Safari zoomed, smaller phones): same story, tighter pieces. */
@media (max-width: 820px) and (max-height: 640px) {
  .dissect { gap: 6px; }
  .dissect-wave { height: 30px; }
  .prism { height: 22px; margin-bottom: 12px; }
  .bigpill { padding: 6px 8px 8px; }
  .beats { margin-top: 16px; }
  .beats .beat, .crane-beats .beat { font-size: 14px; line-height: 1.36; }
  .pin-stage .evidence { font-size: 11px; line-height: 1.35; }
  .reader { gap: 6px; }
  .reader-frame { aspect-ratio: 16 / 6; }
  .reader-alts { display: none; }
  .shaper { padding: 12px; }
  .shaper-line { font-size: 16px; margin-bottom: 12px; }
  .shaper-note { font-size: 11.5px; }
}

/* =========================================================================
   AUDIT PASS 2026-09-29 — see brain/10 Website/CoreScribe Site Audit.
   Opaque controls instead of imitation glass; one flat action colour; the
   spectrum colours only where sound is drawn; a lifted page with dark
   instrument panels; headlines at normal tracking; typeset lists, not cards.
   ========================================================================= */
:root { --page: #111316; --page-rgb: 17, 19, 22; --surface: #0a0b0c; --raised: #1b1e22;
  --secondary: #b4b8bf; --tertiary: rgba(241, 241, 238, .64); --font-said: "Newsreader", Georgia, serif; }
html, body { background: var(--page); }

/* Controls: the app's real material — raised, opaque, a top highlight. */
.glass { background: var(--raised); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(255, 255, 255, .06), 0 6px 18px rgba(0, 0, 0, .28); }
.glass::after { display: none; }
.btn-lavender { background: var(--lavender); box-shadow: none; }
.btn-lavender:hover { filter: brightness(1.05); }
.btn-glass { background: transparent; box-shadow: inset 0 0 0 1px rgba(241, 241, 238, .3); }
.btn-glass:hover { background: transparent; box-shadow: inset 0 0 0 1px rgba(241, 241, 238, .55); }
.popover { background: #16181c; -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .5); }
.d2-pill { background: var(--well); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: rgba(255, 255, 255, .12); }

/* Type: headlines at normal tracking and a sane size; numbers as structure, not purple captions. */
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 650; }
.hero-title { font-size: clamp(46px, 7.4vw, 100px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.signal-text { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); }
.chapter-num { font: 500 14px/1 var(--font-mono); letter-spacing: .02em; color: var(--secondary); }
.lede, .hero-lede { color: var(--secondary); }
.cc-said { font: italic 400 21px/1.4 var(--font-said); color: var(--secondary); }

/* Hero: no bloom, no vignette. The dictation pill is the hero's control. */
.hero::after { display: none; }
.hero-backdrop { display: block; opacity: .3; filter: none; transform: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(transparent 68%, #000 78%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(transparent 68%, #000 78%, #000 92%, transparent 100%); mask-composite: intersect; }
.hero { min-height: auto; padding-bottom: clamp(56px, 9vh, 96px); }
.hero-try { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; margin: clamp(40px, 6vh, 64px) auto 0; }
.d2-dock { position: relative; left: auto; bottom: auto; z-index: auto; transform: none; display: flex; align-items: center; gap: 12px; min-height: 72px; pointer-events: auto; }
.hero-hint { position: static; transform: none; white-space: normal; text-align: center; max-width: 46ch; padding: 0 16px; }
.sound-toggle { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--raised); color: var(--secondary); font: 600 13px/1 var(--font-ui); box-shadow: inset 0 0 0 1px var(--hairline); }
.sound-toggle svg { width: 16px; height: 16px; }
.sound-toggle[aria-pressed="true"] { color: var(--text); }

/* Instrument panels stay dark on the lifted page; no rainbow edges, no glows. */
.shaper::before { display: none; }
.boundary { background: var(--surface); }
.edge-mac { stroke: rgba(241, 241, 238, .45); }
.node circle { fill: var(--text); stroke: none; }
.node-ai circle { fill: var(--lavender); }
.cloud-far text { fill: rgba(241, 241, 238, .6); }
.stages { gap: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.stage { border-radius: 0; background: none; box-shadow: none; padding: 14px 14px 4px 0; opacity: .5; }
.stage.is-on { background: none; box-shadow: inset 0 2px 0 var(--lavender); opacity: 1; }
.stage-ai.is-on { background: none; }
.lane-track { gap: 0; font: 500 13px/1 var(--font-mono); }
.lane-track span { padding: 0; background: none; box-shadow: none; border-radius: 0; font: inherit; color: var(--tertiary); }
.lane-track span + span::before { content: "›"; margin: 0 10px; color: var(--tertiary); }
.lane-track span.is-on { background: none; color: var(--text); }
.lane-track span.is-done { color: var(--secondary); }

/* Typeset lists instead of card grids. */
.ledger { margin: 0; display: grid; border-top: 1px solid var(--hairline); }
.ledger > div { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 8px 32px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.ledger dt { font-weight: 600; color: var(--text); }
.ledger dd { margin: 0; color: var(--secondary); }
.rooms h3 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.studio-list { margin-top: 36px; }
.arch-list { margin-top: 8px; }
.architecture .fine, .private .fine { margin-top: 18px; }
.downloads { max-width: 860px; margin: 0 auto 32px; }
.stays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 40px; border-top: 1px solid var(--hairline); }
.stays > div { padding-top: 20px; }
.stays h3 { font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.stays ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--secondary); }
.site-footer .claims { margin: 14px 0; font-size: 13px; line-height: 1.6; color: var(--tertiary); }

/* The 3D chapter's text shading uses the page colour. */
.has-crane .crane-scrim { background: linear-gradient(90deg, rgba(var(--page-rgb), .8) 0%, rgba(var(--page-rgb), .3) 32%, rgba(var(--page-rgb), 0) 52%); }

/* Phones: one slim header that steps aside while you read, and a chapter list. */
.phone-bar, .chapter-sheet { display: none; }
@media (max-width: 820px) {
  :root { --menubar-h: 56px; --tabbar-space: 16px; }
  .phone-bar { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; gap: 10px;
    height: calc(48px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 16px;
    background: rgba(var(--page-rgb), .97); border-bottom: 1px solid var(--hairline); transition: transform .28s var(--ease); }
  .phone-bar.is-hidden { transform: translateY(-101%); }
  .pb-brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: 700 15px/1 var(--font-brand); }
  .pb-cta { margin-left: auto; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--lavender); color: var(--well); font: 600 13px/32px var(--font-ui); text-decoration: none; }
  .pb-menu { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 6px; cursor: pointer; }
  .pb-menu i { display: block; width: 18px; height: 1.5px; border-radius: 1px; background: var(--text); transition: transform .2s var(--ease); }
  .pb-menu[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
  .pb-menu[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .pb-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--lavender); }
  .chapter-sheet { position: fixed; inset: 0; z-index: 59; display: block; overflow-y: auto; padding: calc(60px + env(safe-area-inset-top)) 16px 32px; background: var(--page); }
  .chapter-sheet[hidden] { display: none; }
  .chapter-sheet ol { list-style: none; margin: 0; padding: 0; }
  .chapter-sheet a { display: grid; gap: 3px; padding: 16px 0; border-bottom: 1px solid var(--hairline); color: var(--text); text-decoration: none; }
  .chapter-sheet a b { font: 650 22px/1.2 var(--font-display); letter-spacing: -0.01em; }
  .chapter-sheet a span { color: var(--secondary); font-size: 15px; }
  html.sheet-open, html.sheet-open body { overflow: hidden; }
  .pinned.head-out > .chapter-head h2 { font-size: clamp(28px, 8vw, 34px); }
  .d2-pill { --outer-expanded-w: min(420px, calc(100vw - 32px)); }
  .ledger > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .stays { grid-template-columns: minmax(0, 1fr); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Fixes after the first render: pilot lines as one column, calmer section rhythm, nothing wider than a small phone. */
.ledger.downloads { grid-template-columns: minmax(0, 1fr); gap: 0; }
.chapter:not(.pinned):not(.hero) { padding-block: clamp(64px, 9vh, 112px); }
@media (max-width: 820px) { .chapter:not(.pinned):not(.hero) { padding-top: calc(var(--menubar-h) + 24px); padding-bottom: 48px; } }
code.flowline { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 820px) { .d2-pill .lane, .crane-tls { max-width: 100%; } }

/* De-pill pass (RJ, 2026-09-29): no coloured pill tags, no pill buttons, no rounded
   bars, small radii. Signal colours stay only inside sound drawings. The D2 pill and
   the menu popover are replicas of the app's own components and keep their shapes. */
:root { --r-card: 10px; --r-tile: 8px; }
.btn { border-radius: 8px; }
.btn-lg { height: 46px; }
.tag { height: auto; padding: 0; margin-right: 6px; border-radius: 0; background: none; box-shadow: none; vertical-align: 0;
  font: 600 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.tag-real, .tag-illus, .tag-dev { color: var(--text); background: none; box-shadow: none; }
.tag::after { content: " —"; font-weight: 400; color: var(--tertiary); }
.prism, .prism i, .prism i::before, .prism i::after { border-radius: 0; }
.prism { gap: 3px; }
.reader-frame, .doc-window, .desk-window, .studio-frame .desk-window, .boundary { border-radius: 10px; }
.alt { border-radius: 4px; }
.race-track, .race-bar { border-radius: 1px; }
.race-apple { background: var(--text); }
.race-whisper { background: rgba(241, 241, 238, .34); }
.boundary-switch { border-radius: 8px; }
.boundary-switch button { border-radius: 6px; }
.switch-lens { border-radius: 6px; background: var(--raised); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.chips span { border-radius: 6px; background: none; box-shadow: inset 0 0 0 1px rgba(241, 241, 238, .2); }
.chips input:checked + span { color: var(--text); background: var(--raised); box-shadow: inset 0 0 0 1px rgba(241, 241, 238, .7); }
.field input, .field textarea { border-radius: 6px; }
.sound-toggle { height: 30px; padding: 0 4px; border-radius: 4px; background: none; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(241, 241, 238, .3); }
@media (max-width: 820px) { .pb-cta { border-radius: 6px; white-space: nowrap; } }

.hero-hint { color: var(--secondary); }
/* Last authored glows and pills (audit metrics, 2026-09-29). */
#point { background: var(--page); }
.desk-window { box-shadow: 0 0 0 0.5px rgba(255, 255, 255, .14), 0 30px 80px rgba(0, 0, 0, .55); }
.polish-demo { border-radius: var(--r-card); }
.has-crane .crane-tls { border-radius: 4px; }

/* Re-audit fixes: a clean label separator, room under the second-take label, and the step
   descriptions back on phones tall enough to hold them. */
.tag::after { content: none; }
.tag { margin-right: 8px; }
.polish-demo .chapter-num, .guard .chapter-num { display: block; margin-bottom: 10px; }
@media (max-width: 820px) and (min-height: 700px) {
  .stage span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; }
}

/* =========================================================================
   Spectrogram hero (RJ, 2026-09-29): the headline beside the real take — its
   sound, the words Apple's recognizer found in it, and the text CoreScribe typed.
   ========================================================================= */
.hero { padding-top: calc(var(--menubar-h) + clamp(40px, 7vh, 88px)); }
.hero-grid { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { text-align: left; }
.hero-copy .kicker { margin-bottom: 16px; }
.hero-copy .hero-title { font-size: clamp(44px, 5.8vw, 84px); }
.hero-copy .hero-title .line { display: block; }
.hero-copy .hero-lede { margin: 22px 0 0; max-width: 32em; }
.hero-copy .hero-actions { justify-content: flex-start; margin-top: 28px; }
.hero-copy .hero-note { margin-top: 14px; }
.hero-instrument { margin: 0; display: grid; gap: 10px; min-width: 0; }
.hi-words { position: relative; height: 66px; }
.hi-w { position: absolute; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; white-space: nowrap;
  font: 600 13px/1 var(--font-ui); color: var(--text); opacity: .12; transition: opacity .25s ease-out; }
.hi-w i { display: block; height: 2px; width: 100%; min-width: 12px; background: linear-gradient(90deg, var(--green) calc(var(--conf) * 100%), rgba(255, 255, 255, .12) 0); }
.hi-w.is-heard { opacity: 1; }
.hi-w.is-low { color: var(--amber); }
.hi-frame { position: relative; aspect-ratio: 16 / 7; border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--hairline); }
.hi-spectrogram { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hi-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--mint); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.hi-frame::after { content: ""; position: absolute; inset: 0; left: var(--scan, 0%); background: rgba(10, 11, 12, .72); pointer-events: none; }
.hi-axis { position: absolute; left: 8px; z-index: 2; font: 500 10px/1 var(--font-mono); color: rgba(241, 241, 238, .72); }
.hi-axis.hi { top: 8px; } .hi-axis.lo { bottom: 8px; }
.hi-typed { margin: 4px 0 0; min-height: 5.4em; font: 400 15px/1.5 var(--font-ui); color: var(--text); white-space: pre-line; }
.hi-typed .said { color: var(--secondary); }
.hi-caption { font-size: 13px; line-height: 1.5; color: var(--tertiary); }
.hero-instrument .hero-try { margin: 6px 0 0; justify-items: start; grid-auto-flow: row; }
.hero-instrument .d2-dock { justify-content: flex-start; }
.hero-instrument .hero-hint { text-align: left; padding: 0; max-width: none; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: left; }
  .hi-words { height: 58px; }
  .hi-w { font-size: 11px; }
  .hi-typed { font-size: 14px; }
}

/* Hero, second pass (RJ): the keys you already have vs CoreScribe's, the same take heard
   and typed, and the network in one line. Visuals come right after the headline on phones. */
.hero-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin-bottom: 18px; }
.hk-group { display: grid; gap: 8px; align-content: start; }
.hk-label { margin: 0; font: 500 12px/1 var(--font-mono); letter-spacing: .04em; color: var(--secondary); text-transform: uppercase; }
.hk-row { display: flex; gap: 8px; }
.key { position: relative; display: grid; place-items: center; width: 54px; height: 50px; border-radius: 8px;
  background: linear-gradient(#202328, #16181b); color: rgba(241, 241, 238, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .6), 0 2px 3px rgba(0, 0, 0, .4);
  font: 500 20px/1 var(--font-ui); transition: transform .12s ease-out, box-shadow .12s ease-out, color .2s; }
.key svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.key small { position: absolute; left: 6px; top: 5px; font: 500 9px/1 var(--font-ui); color: rgba(241, 241, 238, .55); }
.key-fn { width: 58px; height: 38px; border-radius: 6px; }
.key-ios { width: 46px; height: 42px; border-radius: 7px; background: linear-gradient(#2b2e33, #222529); }
.key-letter, .key-mod { width: 50px; }
.hk-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--tertiary); max-width: 26em; }
.hk-cs .key { color: var(--text); }
.hk-cs.is-held .key { transform: translateY(1.5px); color: var(--mint);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 0 0 1px rgba(158, 240, 163, .55), 0 1px 1px rgba(0, 0, 0, .4); }
.hi-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 6px; }
.hi-out-label { margin: 0 0 6px; font: 500 11.5px/1.3 var(--font-mono); color: var(--secondary); }
.hi-heard { margin: 0; min-height: 5.6em; font: italic 400 16px/1.45 var(--font-said); color: var(--secondary); }
.hi-typed { margin: 0; min-height: 5.6em; }
.hi-typed:empty::before { content: attr(data-empty); color: var(--tertiary); font-size: 13.5px; }
.hero-net { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; max-width: 32em; font-size: 14px; line-height: 1.5; color: var(--secondary); }
.hero-net svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 900px) {
  .hero { padding-top: calc(var(--menubar-h) + 18px); padding-bottom: 32px; }
  .hero-grid { display: flex; flex-direction: column; gap: 18px; }
  .hero-copy { display: contents; }
  .hero-copy .kicker { order: 1; margin: 0; font-size: 14px; }
  .hero-copy .hero-title { order: 2; font-size: clamp(44px, 13vw, 64px); }
  .hero-instrument { order: 3; }
  .hero-copy .hero-lede { order: 4; margin: 0; font-size: 17px; }
  .hero-copy .hero-actions { order: 5; margin: 0; }
  .hero-copy .hero-note { order: 6; margin: 0; }
  .hero-copy .hero-net { order: 7; margin: 0; }
  .hero-keys { gap: 12px 16px; }
  .hi-out { grid-template-columns: minmax(0, 1fr); }
  .hi-heard, .hi-typed { min-height: 0; }
}
/* Phone chapters: the main instrument grows into the spare height instead of floating in it. */
@media (max-width: 820px) {
  .dissect, .reader { justify-content: flex-start; }
  .dissect-wave { flex: 1 1 48px; height: auto; min-height: 40px; max-height: 200px; }
  .reader-frame { flex: 1 1 120px; aspect-ratio: auto; min-height: 110px; max-height: 380px; }
}
.hero-copy, .hero-copy .hero-title, .hero-copy .kicker, .hero-copy .hero-lede { text-align: left; }

/* =========================================================================
   Presentation hero (RJ, 2026-09-29): "Tired of this?" on a real MacBook Pro
   keyboard; the dictation key; then ⌘P, the spectrogram, what CoreScribe typed,
   and how it compares with the dictation key and Siri. Scroll drives it.
   ========================================================================= */
.chapter.hero.present { padding: 0; min-height: 0; }
.pz-stage { position: relative; height: 100svh; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-top: var(--menubar-h); }
.pz-copy { position: relative; height: 62%; }
.pz-scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
.pz-scene.is-on { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.pz-title { margin: 0; font-size: clamp(52px, 6.6vw, 104px); line-height: .96; letter-spacing: -0.035em; font-weight: 700; }
.pz-h { margin: 0; font-size: clamp(34px, 4.3vw, 62px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.pz-sub { margin: 18px 0 0; max-width: 25em; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--secondary); text-wrap: pretty; }
.pz-copy .kicker { margin: 0 0 14px; }
.pz-play { display: grid; gap: 10px; justify-items: start; margin-top: 22px; }
.pz-play .d2-dock { justify-content: flex-start; min-height: 0; }
.pz-play .hero-hint { text-align: left; padding: 0; max-width: 30em; font-size: 13px; }
.pz-visual { position: relative; height: min(74svh, 660px); }
.pz-kb { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; will-change: transform, opacity; }
.pz-keyboard { display: block; width: 100%; height: auto; }
.kb-deck { fill: #1c1e21; stroke: rgba(255, 255, 255, .07); stroke-width: 1.5; }
.kb-cap { fill: #0a0b0c; stroke: rgba(255, 255, 255, .08); stroke-width: 1; transition: fill .15s, stroke .15s; }
.kb-key.is-down .kb-cap { fill: #131517; stroke: var(--mint); stroke-width: 2.5; }
.kb-t { fill: rgba(241, 241, 238, .88); font-family: var(--font-ui); font-weight: 500; }
.kb-f { fill: rgba(241, 241, 238, .5); }
.kb-g { fill: none; stroke: rgba(241, 241, 238, .88); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kb-touch { fill: none; stroke: rgba(241, 241, 238, .22); stroke-width: 1.5; }
.kb-dot { fill: rgba(241, 241, 238, .3); }
.kb-ring { fill: none; stroke: var(--amber); stroke-width: 3; opacity: 0; transition: opacity .35s; }
.kb-label { fill: var(--amber); font: 600 15px/1 var(--font-ui); opacity: 0; transition: opacity .35s; }
.pz-stage[data-scene="0"] .kb-ring, .pz-stage[data-scene="0"] .kb-label, .pz-stage[data-scene="1"] .kb-ring { opacity: 1; }
.pz-window { position: absolute; left: 0; right: 0; top: 0; z-index: 3; border-radius: 10px; overflow: hidden; background: #0d0e10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px rgba(0, 0, 0, .5); opacity: 0; }
.pz-text { margin: 0; padding: 16px 20px 20px; min-height: 7.2em; font: 400 17px/1.5 var(--font-ui); color: var(--text); white-space: pre-line; }
.pz-text.is-raw { font: italic 400 18px/1.5 var(--font-said); color: rgba(241, 241, 238, .82); }
.pz-text:empty::after { content: "▍"; color: var(--mint); animation: pz-caret 1s steps(2) infinite; }
@keyframes pz-caret { 50% { opacity: 0; } }
.pz-instrument { position: absolute; left: 0; right: 0; top: 34%; z-index: 2; opacity: 0; display: grid; gap: 8px; }
.pz-compare { position: absolute; inset: var(--menubar-h) 0 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  background: var(--page); opacity: 0; visibility: hidden; }
.pz-compare.is-on { visibility: visible; }
.pz-table-wrap { overflow-x: auto; }
.pz-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.pz-table th, .pz-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hairline); }
.pz-table thead th { font: 500 12px/1.3 var(--font-mono); letter-spacing: .03em; color: var(--secondary); text-transform: uppercase; }
.pz-table tbody th { width: 20%; font-weight: 600; color: var(--text); }
.pz-table td { color: var(--secondary); width: 26%; }
.pz-table .cs { color: var(--text); box-shadow: inset 2px 0 0 var(--lavender); padding-left: 14px; }
.pz-sources { margin: 0; font-size: 12.5px; color: var(--tertiary); }
.pz-sources a { color: var(--secondary); }
.pz-compare .hero-actions { justify-content: flex-start; margin: 4px 0 0; }
.pz-compare .hero-note { margin: 0; text-align: left; }
@media (max-width: 900px) {
  .pz-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; align-items: stretch; padding-top: calc(var(--menubar-h) + 8px); padding-bottom: 12px; }
  .pz-copy { height: auto; min-height: 196px; }
  .pz-title { font-size: clamp(46px, 14vw, 64px); }
  .pz-h { font-size: clamp(30px, 8.6vw, 40px); }
  .pz-sub { font-size: 16px; margin-top: 12px; }
  .pz-scene { justify-content: flex-start; }
  .pz-play { margin-top: 12px; }
  .pz-play .hero-hint { display: none; }
  .pz-visual { height: auto; min-height: 0; }
  .pz-text { font-size: 15px; min-height: 6.4em; padding: 12px 14px 14px; }
  .pz-text.is-raw { font-size: 16px; }
  .pz-instrument { top: 42%; }
  .pz-compare { justify-content: flex-start; padding-top: 16px; overflow-y: auto; }
  .pz-table { font-size: 13.5px; }
  .pz-table thead { display: none; }
  .pz-table, .pz-table tbody, .pz-table tr, .pz-table th, .pz-table td { display: block; width: auto; }
  .pz-table tr { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
  .pz-table th, .pz-table td { border: 0; padding: 2px 0; }
  .pz-table td::before { content: attr(data-label) " — "; color: var(--tertiary); }
  .pz-table .cs { padding-left: 10px; }
}
/* No motion: the whole story, stacked and still. */
.pz-static .pz-stage { height: auto; display: block; padding-block: calc(var(--menubar-h) + 32px) 48px; }
.pz-static .pz-copy { height: auto; }
.pz-static .pz-scene { position: static; opacity: 1; visibility: visible; margin-bottom: 28px; }
.pz-static .pz-visual { height: auto; display: grid; gap: 16px; }
.pz-static .pz-kb, .pz-static .pz-window, .pz-static .pz-instrument, .pz-static .pz-compare { position: static; opacity: 1; visibility: visible; transform: none; }
/* Presentation, second pass: the comparison follows the pinned scenes in normal flow;
   the visual clips its zoomed keyboard; phone scenes give each layer the room it needs. */
.pz-visual { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.pz-instrument { top: 24%; }
.pz-instrument .hi-frame { aspect-ratio: 16 / 4.6; }
.pz-compare { position: static; inset: auto; z-index: auto; opacity: 1; visibility: visible; background: none;
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding-block: clamp(40px, 7vh, 80px) clamp(56px, 9vh, 104px); }
@media (max-width: 900px) {
  .pz-instrument { top: 0; }
  .pz-instrument .hi-frame { aspect-ratio: 16 / 8; }
  .pz-stage[data-scene="2"] .pz-window { opacity: 0 !important; }
  .pz-stage[data-scene="3"] .pz-instrument { opacity: 0 !important; }
  .pz-compare { padding-block: 24px 48px; overflow: visible; }
  .pz-table tbody th { width: auto; }
}

/* Logo (29 Sep): the key from logo study 04b beside the Sora wordmark, as in the study's lockup. js/logo-key.js plays its
   whole cycle; the static resting key in the markup shows until then, and with Reduce Motion. The app replicas
   (menu-bar extra, command bubble, D2 crest) keep the app's three bars until the app changes. */
.logo-key { display: block; flex: none; width: 24px; height: 24px; }
.logo-key svg { display: block; width: 100%; height: 100%; stroke: none; }
.mb-brand { gap: 7px; }
.mb-brand b { font-size: 15px; letter-spacing: -.025em; }
.pb-brand { gap: 8px; letter-spacing: -.025em; }
.pb-brand .logo-key { width: 28px; height: 28px; }
.pb-brand b { font-size: 16px; }
.foot-brand { gap: 10px; font-size: 22px; letter-spacing: -.025em; }
.foot-brand .logo-key { width: 36px; height: 36px; }

@media (max-width: 360px) { .pb-brand { gap: 6px; } .pb-brand .logo-key { width: 24px; height: 24px; } .pb-brand b { font-size: 15px; } }

/* Home (29 Sep): the logo is the hero. The key plays its whole cycle beside the wordmark; "Tired of this?" follows. */
.chapter.logo-hero { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--menubar-h) + 24px) 0 48px; }
.lh-inner { width: min(100% - 2 * var(--gutter), 1120px); margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.lh-key.logo-key { width: clamp(280px, 34vw, 440px); height: auto; aspect-ratio: 1; }
.lh-copy { display: grid; justify-items: start; gap: 20px; min-width: 0; }
.lh-word { margin: 0; font: 700 clamp(56px, 8.4vw, 124px)/.95 var(--font-brand); letter-spacing: -.035em; color: var(--text); }
.lh-line { margin: 0; max-width: 30ch; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45; color: var(--secondary); text-wrap: pretty; }
.lh-copy .btn { margin-top: 8px; }
@media (max-width: 820px) {
  .chapter.logo-hero { min-height: 100svh; padding: calc(48px + env(safe-area-inset-top) + 20px) 0 40px; }
  .lh-inner { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 28px; }
  .lh-key.logo-key { width: min(78vw, 320px); }
  .lh-word { font-size: clamp(46px, 14vw, 64px); }
  .lh-line { font-size: 18px; }
}
@media (max-height: 620px) and (max-width: 820px) { .lh-key.logo-key { width: min(62vw, 240px); } .lh-inner { gap: 20px; } }

