/* =========================================================
   ZeroType — site.css
   Red is the voice, blue is the ink.
   ========================================================= */

@property --bg { syntax: "<color>"; inherits: true; initial-value: #1c2dd4; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #c3caff; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.22); }
@property --soft { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0.07); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --btn-bg { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --btn-fg { syntax: "<color>"; inherits: true; initial-value: #1c2dd4; }
@property --focus { syntax: "<color>"; inherits: true; initial-value: #ffffff; }

:root {
  --cobalt: #1c2dd4;
  --cobalt-deep: #0f1a8f;
  --paper: #eef0f7;
  --paper-hi: #f7f8fc;
  --ink: #0b1033;
  --ink-2: #151b48;
  --rec: #ff4b2b;
  --rec-text: #b8280f;
  --mist: #c3caff;
  --slate: #4d5478;

  --font-sans: "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-voice: "LXGW WenKai TC", "Kaiti TC", "BiauKai", "DFKai-SB", "Noto Sans TC", serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --header: 72px;
  --section-pad: clamp(96px, 11.5vw, 168px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
}

body[data-ground="cobalt"] {
  --bg: #1c2dd4; --fg: #ffffff; --muted: #c3caff;
  --line: rgba(255, 255, 255, 0.22); --soft: rgba(255, 255, 255, 0.07);
  --accent: #ffffff; --btn-bg: #ffffff; --btn-fg: #1c2dd4; --focus: #ffffff;
}
body[data-ground="paper"] {
  --bg: #eef0f7; --fg: #0b1033; --muted: #4d5478;
  --line: rgba(11, 16, 51, 0.14); --soft: rgba(11, 16, 51, 0.045);
  --accent: #1c2dd4; --btn-bg: #1c2dd4; --btn-fg: #ffffff; --focus: #1c2dd4;
}
body[data-ground="ink"] {
  --bg: #0b1033; --fg: #eef0f7; --muted: #a3acdc;
  --line: rgba(238, 240, 247, 0.14); --soft: rgba(238, 240, 247, 0.055);
  --accent: #8f9bff; --btn-bg: #eef0f7; --btn-fg: #0b1033; --focus: #8f9bff;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition:
    --bg 0.8s var(--ease-out), --fg 0.8s var(--ease-out), --muted 0.8s var(--ease-out),
    --line 0.8s var(--ease-out), --soft 0.8s var(--ease-out), --accent 0.8s var(--ease-out),
    --btn-bg 0.8s var(--ease-out), --btn-fg 0.8s var(--ease-out), --focus 0.8s var(--ease-out);
  overflow-x: clip;
}

::selection { background: var(--fg); color: var(--bg); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px; left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.voice { font-family: var(--font-voice); font-weight: 400; }
.mono { font-family: var(--font-mono); }

.rec-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 3px rgba(255, 75, 43, 0.22);
  flex: none;
}

.caret {
  display: inline-block;
  width: 0.072em;
  height: 0.9em;
  margin-left: 0.07em;
  vertical-align: -0.1em;
  background: currentColor;
  border-radius: 1px;
  animation: blink 1.06s steps(1) infinite;
}
.caret--ink { color: var(--cobalt); width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; }

@keyframes blink { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn:active { transform: translateY(2px) scale(0.99); }
.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 10px 30px -12px rgba(5, 10, 60, 0.45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(5, 10, 60, 0.55); }
.btn--ghost { border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { background: var(--soft); border-color: var(--fg); }
.btn--lg { min-height: 64px; padding: 0 36px; font-size: 18px; }
.btn--block { width: 100%; }
.btn__arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:hover .btn__arrow:only-child,
.hero__actions .btn:first-child:hover .btn__arrow { transform: translateY(3px); }

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78em;
  line-height: 1.6;
  text-align: center;
  color: var(--fg);
  background: var(--soft);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  max-width: calc(var(--max) + var(--gutter) * 2);
  height: var(--header);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.brand__word { font-family: var(--font-mono); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.site-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 0.2s;
}
.site-nav a:not(.site-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:not(.site-nav__cta):hover::after,
.site-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.site-nav a.is-current { opacity: 1; }
.site-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700 !important;
  opacity: 1 !important;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out), opacity 0.2s;
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Shared section heads ---------- */
main > section { padding-inline: var(--gutter); }

.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: var(--section-pad);
}
.section-head--tight { padding-top: 0; margin: 0; }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
}

.section-head h2,
.section-head--tight h2 {
  margin-top: 22px;
  font-size: clamp(2.25rem, 5.2vw, 4.75rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head--tight h2 { font-size: clamp(2.125rem, 3.9vw, 3.75rem); }

@media (min-width: 1081px) {
  .section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(40px, 6vw, 104px);
    align-items: end;
  }
  .section-head--split .kicker { grid-column: 1 / -1; }
  .section-head--split .section-lead { margin: 0 0 0.6em; }
}

.section-lead {
  max-width: 33em;
  margin-top: 26px;
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.9;
  color: var(--muted);
}

/* =========================================================
   HERO — the whole page is your text field
   ========================================================= */
.hero {
  --t: clamp(3.4rem, min(9.3vw, 15.5vh), 9.4rem);
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--header) + env(safe-area-inset-top, 0px) + clamp(12px, 2.6vh, 36px)) 0 clamp(22px, 4vh, 44px) !important;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(30% 34% at 50% 52%, rgba(40, 60, 240, 0.9), rgba(28, 45, 212, 0) 100%),
    radial-gradient(64% 58% at 50% 56%, rgba(28, 45, 212, 0.55), rgba(28, 45, 212, 0) 100%),
    radial-gradient(46% 36% at 0% 0%, rgba(28, 45, 212, 0.4), rgba(28, 45, 212, 0) 100%),
    radial-gradient(40% 40% at 100% 100%, rgba(28, 45, 212, 0.3), rgba(28, 45, 212, 0) 100%),
    #0b1033;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 58%, rgba(3, 5, 22, 0.55) 100%);
}

.hero__grid {
  position: relative;
  max-width: 1400px;
  min-height: calc(100svh - var(--header) - env(safe-area-inset-top, 0px) - clamp(12px, 2.6vh, 36px) - clamp(22px, 4vh, 44px));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto calc(var(--t) * 1.08) minmax(200px, 1fr) calc(var(--t) * 1.08) auto;
  column-gap: clamp(24px, 4vw, 64px);
}

.hero__eyebrow {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(6px, 1.6vh, 20px);
  padding: 8px 16px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.hero__eyebrow .rec-dot { animation: rec-pulse 2.4s ease-in-out infinite; }
@keyframes rec-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 75, 43, 0.08); } }

.hero__title {
  grid-column: 1 / -1;
  grid-row: 2 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  font-size: var(--t);
  line-height: 1.08;
  letter-spacing: -0.03em;
  pointer-events: none;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--voice {
  align-self: flex-start;
  font-family: var(--font-voice);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--mist);
}
.hero__line--ink {
  align-self: flex-end;
  font-weight: 900;
  color: #ffffff;
}
.js .hero__title .caret { opacity: 0; animation: blink 1.06s steps(1) 1.5s infinite; }
.hero__line--voice .ch::before { background: var(--rec); }

.hero__copy {
  grid-column: 1;
  grid-row: 5;
  align-self: start;
  padding-top: clamp(18px, 3vh, 36px);
}
.hero__lead {
  max-width: 31em;
  font-size: clamp(1rem, 1.2vw, 1.1875rem);
  line-height: 1.85;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(18px, 2.6vh, 30px); }

.js .hero__eyebrow { animation: fade-up 0.9s var(--ease-out) 0.1s both; }
.js .hero__lead { animation: rise 1s var(--ease-out) 0.2s both; }
.js .hero__actions { animation: rise 1s var(--ease-out) 0.3s both; }
.js .line { animation: fade-up 1s var(--ease-out) 0.9s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise { from { transform: translateY(22px); } }

/* split-char entrance: every character starts life as a waveform bar */
.ch { position: relative; display: inline-block; }
.ch__g { display: inline-block; }
.js .ch__g {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(0.14em) scale(0.96);
  animation: glyph-in 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 42ms + 260ms);
}
.js .ch::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0.07em; height: 0.9em;
  margin: -0.45em 0 0 -0.035em;
  border-radius: 0.05em;
  background: currentColor;
  transform: scaleY(0.1);
  opacity: 0;
  animation: bar-talk 1s ease-in-out forwards;
  animation-delay: calc(var(--i) * 42ms);
}
@keyframes glyph-in { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes bar-talk {
  0% { opacity: 0; transform: scaleY(0.1); }
  18% { opacity: 1; transform: scaleY(var(--s, 0.8)); }
  38% { transform: scaleY(calc(var(--s, 0.8) * 0.35)); }
  56% { opacity: 1; transform: scaleY(calc(var(--s, 0.8) * 0.9)); }
  100% { opacity: 0; transform: scaleY(0.04); }
}

/* ---------- Stage: voice → key → HUD ---------- */
.stage {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(20px, 3.2vw, 56px);
  padding-block: clamp(10px, 2.4vh, 28px);
}

.cloud {
  grid-column: 1;
  justify-self: end;
  max-width: 21em;
  min-height: 3.3em;
  font-family: var(--font-voice);
  font-size: clamp(1rem, 1.45vw, 1.375rem);
  line-height: 1.65;
  text-align: right;
  color: var(--mist);
}
.cc {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.35s var(--ease-out), filter 0.35s var(--ease-out), transform 0.5s var(--ease-spring), color 0.25s;
}
.cc.is-in { opacity: 1; filter: none; transform: none; }
.cc.is-filler { color: #ff8a70; text-decoration: line-through; text-decoration-color: var(--rec); text-decoration-thickness: 2px; }
.cc.is-drop {
  opacity: 0;
  transform: translateY(46px) rotate(var(--r, 10deg)) scale(0.9);
  transition: opacity 0.7s ease-in, transform 0.8s cubic-bezier(0.5, 0, 0.75, 0);
}
.cc.is-fly {
  opacity: 0;
  transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.25);
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.85s cubic-bezier(0.7, 0, 1, 1);
  transition-delay: var(--d, 0s);
}

.keywrap {
  grid-column: 2;
  display: grid;
  justify-items: center;
}
.js .keywrap { animation: key-in 1.2s var(--ease-out) 0.45s both, float 6.5s ease-in-out 1.7s infinite; }
.stage.is-listening .keywrap { animation-play-state: running, paused; }
@keyframes key-in { from { opacity: 0; transform: translateY(-36px) scale(0.92); } }
@keyframes float { 50% { transform: translateY(-7px); } }

.key3d {
  --kw: clamp(190px, min(17.5vw, 31vh), 280px);
  position: relative;
  display: block;
  width: var(--kw);
  aspect-ratio: 1011 / 523;
  padding: 0;
  border: 0;
  border-radius: 14%;
  background: none;
  color: #1f2445;
  font-family: var(--font-mono);
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 34px 38px rgba(2, 4, 30, 0.62)) drop-shadow(0 10px 12px rgba(2, 4, 30, 0.45));
  transition: transform 0.09s ease-out, filter 0.09s ease-out;
}
.key3d:hover { transform: translateY(-2px); }
.key3d.is-down {
  transform: translateY(calc(var(--kw) * 0.03)) scale(0.992);
  filter: drop-shadow(0 12px 16px rgba(2, 4, 30, 0.6)) drop-shadow(0 3px 5px rgba(2, 4, 30, 0.5));
}
.key3d:focus-visible { outline-offset: 10px; }
.key3d__img,
.key3d__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1011 / 523;
  pointer-events: none;
}
.key3d__legend,
.key3d__sub,
.key3d__led { position: absolute; pointer-events: none; }
.key3d__legend {
  left: 12%;
  top: 8%;
  font-size: calc(var(--kw) * 0.1);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #262b4a;
}
.key3d--mac .key3d__legend { font-size: calc(var(--kw) * 0.11); }
.key3d__sub {
  left: 12.2%;
  top: 44%;
  font-size: calc(var(--kw) * 0.043);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #6e7598;
}
.key3d__led {
  left: 85.2%;
  top: 12.3%;
  width: calc(var(--kw) * 0.028);
  height: calc(var(--kw) * 0.028);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.key3d.is-down .key3d__led,
.stage.is-listening .key3d__led {
  background: var(--rec);
  box-shadow: 0 0 0 3px rgba(255, 75, 43, 0.25), 0 0 16px 3px rgba(255, 75, 43, 0.85);
}
.key3d__glow {
  position: absolute;
  z-index: -1;
  left: -20%; right: -20%;
  top: 30%; bottom: -45%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 75, 43, 0.6), rgba(255, 75, 43, 0));
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.stage.is-listening .key3d__glow { opacity: 1; transform: scale(1); }

.key3d--static {
  --kw: 176px;
  cursor: default;
  filter: drop-shadow(0 20px 22px rgba(2, 4, 40, 0.45)) drop-shadow(0 6px 8px rgba(2, 4, 40, 0.35));
}
.key3d--static:hover { transform: translateY(3px); }

.stage__hint {
  margin-top: clamp(14px, 2vh, 22px);
  font-size: 14px;
  color: #dfe3ff;
  text-shadow: 0 1px 12px rgba(3, 5, 22, 0.8);
  text-align: center;
  min-height: 1.7em;
}
.stage__hint-alt { opacity: 0.8; }
.stage__hint.is-nudge { animation: nudge 1.6s var(--ease-out) 2; }
@keyframes nudge { 30% { transform: translateY(-3px); color: #ffffff; } }

/* HUD — mirrors the real app's black pill */
.hud {
  grid-column: 3;
  justify-self: start;
  position: relative;
  width: min(100%, 360px);
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(3, 5, 18, 0.9);
  color: #ffffff;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(-14px) scale(0.95);
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-spring), border-radius 0.4s var(--ease-out);
  pointer-events: none;
}
.hud.is-visible { opacity: 1; transform: none; }
.hud__row { display: flex; align-items: center; gap: 14px; height: 54px; }
.hud__rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.86);
}
.hud__prompt { font-size: 15px; font-weight: 700; white-space: nowrap; }
.hud__wave {
  flex: 1;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}
.hud__wave i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleY(0.12);
  transition: transform 0.09s linear;
}
.hud__detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.hud__detail > * { min-height: 0; overflow: hidden; }
.hud.is-expanded { border-radius: 22px; }
.hud.is-expanded .hud__detail { grid-template-rows: 1fr; }
.hud__status { font-size: 13px; color: rgba(255, 255, 255, 0.64); }
.hud__status::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 8px;
  vertical-align: -1px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.hud.is-rating .hud__status::before,
.hud.is-note .hud__status::before { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hud__transcript {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hud__transcript:not(:empty) { margin-top: 4px; }
.hud__rate { display: none; gap: 8px; margin-top: 10px; }
.hud.is-rating .hud__rate { display: flex; margin-bottom: 16px; }
.hud__rate-btn { padding: 5px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.hud__rate-btn--good { background: rgba(51, 143, 87, 0.86); }
.hud__rate-btn--bad { background: rgba(158, 51, 56, 0.86); }
.hud.is-expanded:not(.is-rating) .hud__transcript { padding-bottom: 16px; }
.hud.is-expanded:not(.is-rating) .hud__transcript:empty { padding-bottom: 12px; }

/* ---------- The cursor line ---------- */
.line {
  grid-column: 2;
  grid-row: 5;
  justify-self: end;
  align-self: start;
  width: min(100%, 40rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;
  margin-top: clamp(10px, 1.8vh, 22px);
  padding: 12px 0 14px;
  border-bottom: 1.5px solid rgba(195, 202, 255, 0.35);
}
.line__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}
.line__body {
  min-height: 1.6em;
  font-size: clamp(1.0625rem, 1.55vw, 1.5rem);
  font-weight: 500;
  line-height: 1.55;
  color: #ffffff;
}
.line__text { border-radius: 4px; transition: background-color 1.6s; }
.line__text.is-pasted { background-color: rgba(143, 155, 255, 0.42); transition: none; }
.caret--line { width: 2px; height: 1.1em; margin: 0 6px 0 1px; vertical-align: -0.16em; background: #ffffff; }
.line__placeholder { color: rgba(195, 202, 255, 0.62); font-size: 0.72em; }
.line.has-text .line__placeholder { display: none; }

.sound-toggle {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  margin-bottom: clamp(6px, 1.6vh, 20px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.sound-toggle:hover { background: var(--soft); color: var(--fg); }
.sound-toggle__icon { position: relative; width: 14px; height: 12px; }
.sound-toggle__icon::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 6px; height: 6px;
  background: currentColor;
  clip-path: polygon(0 20%, 45% 20%, 100% -30%, 100% 130%, 45% 80%, 0 80%);
  transform: scale(1.5);
  transform-origin: left center;
}
.sound-toggle__icon::after {
  content: "";
  position: absolute;
  right: 0; top: 1px;
  width: 6px; height: 10px;
  border: 1.5px solid currentColor;
  border-left: 0;
  border-radius: 0 10px 10px 0;
}
.sound-toggle[aria-pressed="false"] .sound-toggle__icon::after {
  border: 0;
  width: 8px; height: 1.5px;
  top: 5px;
  background: currentColor;
  transform: rotate(45deg);
}

/* =========================================================
   MARQUEE — the words we cut, the words we keep
   ========================================================= */
.marquee {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 56px) 0;
  background: var(--cobalt);
  color: #ffffff;
  overflow: hidden;
}
.marquee__row { display: flex; white-space: nowrap; }
.marquee__row + .marquee__row { margin-top: clamp(4px, 1vw, 14px); }
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6em;
  padding-right: 0.6em;
  will-change: transform;
}
.marquee__row--said {
  font-family: var(--font-voice);
  font-size: clamp(2.25rem, 6.2vw, 6rem);
  line-height: 1.25;
  color: var(--mist);
}
.marquee__row--said span {
  position: relative;
  padding: 0 0.12em;
}
.marquee__row--said span::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 54%;
  height: 0.06em;
  background: var(--rec);
  transform: scaleX(var(--strike, 1));
  transform-origin: left;
}
.marquee__row--ink {
  font-size: clamp(2.25rem, 6.2vw, 6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.marquee__row--ink i {
  font-style: normal;
  font-size: 0.28em;
  color: var(--rec);
}

/* =========================================================
   SCENES — horizontal gallery
   ========================================================= */
.scenes { padding: 0 !important; }
.scenes__pin {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  padding-block: var(--section-pad);
}
.scenes__pin::-webkit-scrollbar { display: none; }
.scenes__track {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2.2vw, 36px);
  padding: 0 var(--gutter);
}
.scenes__intro {
  flex: 0 0 min(84vw, 460px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(0px, 3vw, 48px);
  scroll-snap-align: start;
}
.scenes__intro h2 {
  margin-top: 22px;
  font-size: clamp(2.25rem, 4.4vw, 4.25rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.scenes__hint {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.scenes__hint i {
  position: relative;
  width: 56px;
  height: 1.5px;
  background: currentColor;
}
.scenes__hint i::after {
  content: "";
  position: absolute;
  right: 0; top: -4px;
  width: 9px; height: 9px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.scene {
  position: relative;
  flex: 0 0 min(78vw, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: #0a0e2c;
  scroll-snap-align: center;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.scene__media { position: absolute; inset: 0; z-index: -1; margin: 0; }
.scene__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease-out);
}
.scene:hover .scene__media img { transform: scale(1.12); }
.scene__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 38, 0) 30%, rgba(8, 11, 38, 0.75) 62%, rgba(8, 11, 38, 0.96) 100%);
}
.scene__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 2.4vw, 32px);
}
.scene__when {
  font-size: clamp(1.25rem, 1.7vw, 1.625rem);
  font-weight: 900;
  color: #ffffff;
}
.scene__said {
  margin-top: 10px;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.7;
  color: var(--mist);
}
.scene__got {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(195, 202, 255, 0.25);
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}
.scene__got b {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  vertical-align: 1px;
}

@media (min-width: 901px) {
  .js .scenes.is-pinned .scenes__pin {
    position: sticky;
    top: 0;
    height: 100svh;
    padding-block: 0;
    overflow: hidden;
    scroll-snap-type: none;
  }
  .js .scenes.is-pinned .scenes__track {
    transform: translate3d(calc(var(--sx, 0) * -1px), 0, 0);
    will-change: transform;
  }
  .scene { flex-basis: min(30vw, 440px); }
}

/* ---------- Line-mask reveal for big headings ---------- */
.ml { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.ml__i { display: block; }
.js .mask-reveal .ml__i {
  transform: translateY(108%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--li, 0) * 110ms);
}
.js .mask-reveal.is-in .ml__i { transform: none; }

/* =========================================================
   JOURNEY
   ========================================================= */
.journey { padding-bottom: clamp(40px, 6vw, 80px); }
.journey__track {
  position: relative;
  max-width: var(--max);
  margin: clamp(24px, 4vw, 48px) auto 0;
}
.js .journey__track { height: 400vh; }
.journey__sticky {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5.5vw, 96px);
  align-items: center;
}
.js .journey__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  padding-top: var(--header);
}

.jstep {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.45s var(--ease-out);
}
.jstep:last-child { border-bottom: 1px solid var(--line); }
.jstep { position: relative; }
.js .jstep::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.4s;
}
.js .jstep.is-active::before { transform: scaleX(var(--sp, 0)); }
.js .jstep.is-done::before { transform: scaleX(1); opacity: 0.25; }
.jstep__num {
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.4s;
}
.jstep h3 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 900; line-height: 1.4; }
.jstep p { margin-top: 8px; font-size: 15.5px; line-height: 1.85; color: var(--muted); }
.js .jstep { opacity: 0.34; }
.js .jstep.is-active { opacity: 1; }
.js .jstep.is-active .jstep__num { color: var(--accent); }
.js .jstep p {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.55s var(--ease-out), opacity 0.4s, margin-top 0.55s var(--ease-out);
}
.js .jstep.is-active p { max-height: 9em; margin-top: 8px; opacity: 1; }

.jcard {
  position: relative;
  height: min(540px, 70svh);
  border-radius: 28px;
  background: #ffffff;
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(11, 16, 51, 0.05),
    0 60px 100px -50px rgba(11, 16, 51, 0.45),
    0 0 0 1px rgba(11, 16, 51, 0.06);
  overflow: hidden;
}
.jlayer {
  position: absolute;
  inset: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}
.jcard[data-state="0"] .jlayer--rec,
.jcard[data-state="1"] .jlayer--text,
.jcard[data-state="2"] .jlayer--fix,
.jcard[data-state="3"] .jlayer--paste { opacity: 1; transform: none; }

.jlabel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.jlabel .mono { font-weight: 500; letter-spacing: 0; }
.jchip {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.jwave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.5vw, 6px);
  min-height: 90px;
}
.jwave i {
  flex: 1;
  height: 70%;
  border-radius: 99px;
  background: var(--rec);
  transform: scaleY(0.2);
  animation: jwave 1.2s ease-in-out infinite alternate;
}
.jwave i:nth-child(3n) { animation-duration: 0.9s; }
.jwave i:nth-child(4n+1) { animation-duration: 1.45s; }
.jwave i:nth-child(5n+2) { animation-duration: 0.75s; }
.jwave i:nth-child(odd) { animation-delay: -0.4s; }
.jwave i:nth-child(7n) { animation-delay: -0.9s; }
@keyframes jwave {
  0% { transform: scaleY(0.12); }
  60% { transform: scaleY(0.85); }
  100% { transform: scaleY(0.35); }
}
.jcard:not([data-state="0"]) .jwave i { animation-play-state: paused; }
.jvoice { font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.75; color: #3c4266; }

.jraw {
  margin-top: 26px;
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  font-weight: 500;
  line-height: 1.8;
}
.filler {
  padding: 0 0.12em;
  border-radius: 5px;
  background: rgba(255, 75, 43, 0.13);
  color: var(--rec-text);
}
.jnote { margin-top: auto; font-size: 14.5px; color: var(--slate); }

.jraw--struck {
  margin-top: 18px;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.8;
  color: #8a8fac;
}
.jraw--struck .filler,
.jraw--struck .cue {
  background-image: linear-gradient(var(--rec-text), var(--rec-text));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 0% 2px;
  transition: background-size 0.5s var(--ease-out);
}
.jraw--struck .cue { padding: 0; background-color: transparent; }
.jcard[data-state="2"] .jraw--struck .filler,
.jcard[data-state="2"] .jraw--struck .cue { background-size: 100% 2px; transition-delay: 0.35s; }
.jcard[data-state="2"] .jraw--struck .filler:nth-of-type(2) { transition-delay: 0.5s; }
.jcard[data-state="2"] .jraw--struck .filler:nth-of-type(3) { transition-delay: 0.65s; }
.jcard[data-state="2"] .jraw--struck .cue { transition-delay: 0.8s; }

.jdoc {
  margin-top: auto;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--cobalt);
  font-size: clamp(1.0625rem, 1.55vw, 1.3125rem);
  line-height: 1.9;
}
.jdoc p + p { margin-top: 0.7em; }
.jdoc p {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.jcard[data-state="2"] .jdoc p,
.jcard[data-state="3"] .jdoc p { opacity: 1; transform: none; }
.jcard[data-state="2"] .jdoc p:nth-child(1) { transition-delay: 1s; }
.jcard[data-state="2"] .jdoc p:nth-child(2) { transition-delay: 1.2s; }
.jcard[data-state="2"] .jdoc p:nth-child(3) { transition-delay: 1.4s; }

.mail {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e4f1;
  border-radius: 16px;
  overflow: hidden;
}
.mail__row {
  display: flex;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid #eceef6;
  font-size: 15px;
}
.mail__row span { width: 3.5em; flex: none; color: var(--slate); font-size: 13.5px; padding-top: 1px; }
.mail__body {
  padding: 22px 20px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.9;
}
.mail__body p + p { margin-top: 0.7em; }
.jtoast {
  align-self: flex-end;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out) 0.6s, transform 0.5s var(--ease-spring) 0.6s;
}
.jcard[data-state="3"] .jtoast { opacity: 1; transform: none; }
.jtoast span { color: #8ee0a9; margin-right: 4px; }

/* =========================================================
   PROMPTS
   ========================================================= */
.prompts { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.prompts__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
}
.prompts .section-head--tight { position: sticky; top: calc(var(--header) + 40px); }
.prompts__tip { margin-top: 26px; font-size: 14.5px; line-height: 2; color: var(--muted); }

.switcher__said {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px dashed var(--line);
}
.switcher__said-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.switcher__said-label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rec);
}
.switcher__said .voice { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.8; }

.switcher__keys {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  margin: 32px 0 34px;
}
.pkey {
  --kc-depth: 7px;
  position: relative;
  height: 86px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #1d2458 0%, #161c4a 100%);
  color: var(--paper);
  text-align: left;
  box-shadow:
    0 var(--kc-depth) 0 #050823,
    0 calc(var(--kc-depth) + 10px) 20px -6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s, background 0.3s, color 0.3s;
}
.pkey:hover { transform: translateY(1px); }
.pkey:focus-visible { outline-offset: 5px; border-radius: 14px; }
.pkey__num {
  position: absolute;
  top: 10px; left: 14px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
}
.pkey__name {
  position: absolute;
  left: 14px; bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.3s;
}
.pkey::after {
  content: "";
  position: absolute;
  top: 14px; right: 13px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.pkey.is-active {
  background: linear-gradient(180deg, #ffffff 0%, #e3e6f5 100%);
  color: var(--ink);
  transform: translateY(calc(var(--kc-depth) - 2px));
  box-shadow: 0 2px 0 #7d86c0, 0 6px 14px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 #ffffff;
}
.pkey.is-active .pkey__name { color: var(--slate); }
.pkey.is-active::after { background: var(--rec); box-shadow: 0 0 10px 2px rgba(255, 75, 43, 0.7); }

.switcher__panel {
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper-hi);
  color: var(--ink);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.8);
}
.switcher__note {
  padding: 18px 26px;
  background: #e2e5f4;
  border-bottom: 1px solid #d3d7ea;
}
.switcher__note-label,
.switcher__out-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--slate);
}
.switcher__note p { margin-top: 6px; font-size: 14.5px; line-height: 1.75; color: #33395c; }
.switcher__out { padding: 24px 26px 30px; }
.switcher__text {
  min-height: 12.6em;
  margin-top: 10px;
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.85;
  white-space: pre-line;
}
.switcher__text .typing-caret { color: var(--cobalt); }

/* =========================================================
   FEATURES
   ========================================================= */
.features { padding-bottom: var(--section-pad); }
.features__layout {
  max-width: var(--max);
  margin: clamp(40px, 6vw, 80px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
}
.fitem {
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.45s var(--ease-out);
}
.fitem:last-child { border-bottom: 1px solid var(--line); }
.fitem h3 {
  font-size: clamp(1.625rem, 2.6vw, 2.375rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.fitem > p { max-width: 30em; margin-top: 12px; font-size: 16.5px; line-height: 1.9; color: var(--muted); }

.fvis {
  display: grid;
  place-items: center;
  margin-top: 24px;
  padding: 28px 18px;
  border-radius: 22px;
  background: var(--ink);
  overflow: hidden;
}
.fstage { display: none; }

@media (min-width: 1101px) {
  .js .fitem { position: relative; padding: 13vh 0; }
  .js .fitem h3 { color: var(--muted); transition: color 0.45s var(--ease-out); }
  .js .fitem.is-active h3 { color: var(--fg); }
  .js .fitem::before {
    content: "";
    position: absolute;
    left: 0; top: -1px;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s var(--ease-out);
  }
  .js .fitem.is-active::before { transform: scaleX(1); }
  .js .fitem .fvis { display: none; }
  .js .fstage {
    position: sticky;
    top: calc(50svh - 270px + var(--header) / 2);
    display: grid;
    height: 540px;
    border-radius: 32px;
    background:
      radial-gradient(90% 70% at 70% 0%, rgba(28, 45, 212, 0.55), transparent 70%),
      var(--ink);
    overflow: hidden;
    box-shadow: 0 60px 100px -60px rgba(11, 16, 51, 0.7);
  }
  .js .fstage .fvis {
    grid-area: 1 / 1;
    display: grid;
    margin: 0;
    padding: 40px;
    background: transparent;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .js .fstage .fvis.is-active { opacity: 1; transform: none; transition-delay: 0.08s; }
}

@media (min-width: 1300px) {
  .js .fstage .fvis > * { zoom: 1.16; }
}

/* mini UIs */
.mini-hud {
  width: min(100%, 400px);
  padding: 16px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.mini-hud__row { display: flex; align-items: center; justify-content: space-between; }
.mini-hud__tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
}
.mini-hud__live {
  min-height: 5.2em;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.75;
}
.mini-hud__live .w { opacity: 0; transition: opacity 0.25s; }
.mini-hud__live .w.is-on { opacity: 1; }

.mini-pane,
.mini-history,
.mini-vocab {
  width: min(100%, 440px);
  border-radius: 16px;
  background: var(--paper-hi);
  color: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}
.mini-pane { padding: 22px 22px 18px; }
.mini-pane__title { font-size: 15px; font-weight: 900; }
.mini-pane__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e3e6f1;
  font-size: 13.5px;
}
.mini-pane__row > span:first-child { color: var(--slate); font-weight: 500; white-space: nowrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #e3e6f3; }
.seg i {
  padding: 5px 10px;
  border-radius: 8px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--slate);
  white-space: nowrap;
}
.seg i.is-on { background: #ffffff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(11, 16, 51, 0.15); }
.select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid #d6daeb;
  border-radius: 8px;
  background: #ffffff;
  font-size: 12.5px;
  white-space: nowrap;
}
.select::after { content: "▾"; font-size: 10px; color: var(--slate); }
.mini-pane__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(28, 45, 212, 0.08);
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 700;
}
.lock {
  position: relative;
  width: 11px; height: 9px;
  margin-top: 4px;
  border-radius: 2px;
  background: currentColor;
}
.lock::before {
  content: "";
  position: absolute;
  left: 2px; bottom: 7px;
  width: 7px; height: 6px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  box-sizing: border-box;
}

.mini-history { display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden; }
.mini-history__list { padding: 10px; background: #e7eaf5; }
.mini-history__list li {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #3b4163;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-history__list li.is-on { background: #ffffff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(11, 16, 51, 0.12); }
.mini-history__list time { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: #5a6082; }
.mini-history__detail { display: flex; flex-direction: column; gap: 12px; padding: 16px; font-size: 13px; line-height: 1.7; }
.mini-history__actions,
.mini-history__redo { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-history__redo { margin-top: auto; padding-top: 12px; border-top: 1px solid #e3e6f1; }
.chip {
  padding: 4px 10px;
  border: 1px solid #d6daeb;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  background: #ffffff;
  white-space: nowrap;
}
.chip--solid { background: var(--cobalt); border-color: var(--cobalt); color: #ffffff; }
.mini-history .select { font-size: 11.5px; padding: 4px 8px; }

.mini-vocab { padding: 10px 22px 16px; }
.mini-vocab__head,
.mini-vocab__row {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items: center;
  gap: 8px;
}
.mini-vocab__head { padding: 8px 0; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--slate); }
.mini-vocab__head span:last-child { grid-column: 3; }
.mini-vocab__row { padding: 12px 0; border-top: 1px solid #e3e6f1; font-size: 16px; }
.mini-vocab__row s { color: var(--rec-text); text-decoration-thickness: 1.5px; opacity: 0.85; }
.mini-vocab__row i { font-style: normal; color: #6a7092; text-align: center; }
.mini-vocab__row b { font-weight: 700; }
.fvis.is-active .mini-vocab__row { animation: vocab-in 0.6s var(--ease-out) both; }
.fvis.is-active .mini-vocab__row:nth-child(3) { animation-delay: 0.1s; }
.fvis.is-active .mini-vocab__row:nth-child(4) { animation-delay: 0.2s; }
.fvis.is-active .mini-vocab__row:nth-child(5) { animation-delay: 0.3s; }
@keyframes vocab-in { from { opacity: 0; transform: translateX(-10px); } }

.mini-tools { width: min(100%, 440px); color: #ffffff; }
.mini-tools__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "said said" "code done";
  gap: 8px 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.74;
}
.mini-tools__row + .mini-tools__row { margin-top: 10px; }
.mini-tools__row.is-on { opacity: 1; background: rgba(255, 255, 255, 0.08); border-color: rgba(143, 155, 255, 0.5); }
.mini-tools__row .voice { grid-area: said; font-size: 18px; }
.mini-tools__row code {
  grid-area: code;
  justify-self: start;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(143, 155, 255, 0.18);
  color: #c9cfff;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.mini-tools__row em { grid-area: done; font-style: normal; font-size: 12.5px; color: #8ee0a9; }
.mini-tools__foot { margin-top: 16px; font-size: 13px; color: var(--muted); color: #a3acdc; }

.mini-stack { display: grid; gap: 12px; justify-items: center; width: min(100%, 420px); }
.pill-hud {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.7);
}
.fvis.is-active .pill-hud { animation: vocab-in 0.6s var(--ease-out) both; }
.fvis.is-active .pill-hud:nth-child(2) { animation-delay: 0.12s; }
.fvis.is-active .pill-hud:nth-child(3) { animation-delay: 0.24s; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--muted { background: #9aa0bd; }
.dot--warn { background: #f3b344; }
.dot--ok { background: #8f9bff; }

/* =========================================================
   PLATFORMS
   ========================================================= */
.platforms { padding-bottom: var(--section-pad); }
.platforms__grid {
  max-width: var(--max);
  margin: clamp(40px, 6vw, 80px) auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.os {
  padding: clamp(28px, 3.6vw, 52px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--soft);
}
.os__keys { height: 120px; display: flex; align-items: center; }
.os h3 { margin-top: 10px; font-size: clamp(2rem, 3.8vw, 3.25rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.os__where { margin-top: 6px; font-size: 16px; color: var(--muted); }
.os__list { margin-top: 28px; }
.os__list li {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.75;
}
.os__list span { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); padding-top: 2px; }

.platforms__shared {
  max-width: var(--max);
  margin: 28px auto 0;
  font-size: 15.5px;
  color: var(--muted);
}

.providers {
  max-width: var(--max);
  margin: clamp(64px, 8vw, 112px) auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.providers__label { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); }
.providers__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: 20px;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.providers__list li:not(:last-child)::after {
  content: "／";
  margin: 0 0.45em;
  color: var(--muted);
  opacity: 0.6;
  font-weight: 400;
}

/* =========================================================
   START + COURSE
   ========================================================= */
.start__steps {
  max-width: var(--max);
  margin: clamp(48px, 6vw, 88px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 56px);
}
.start__steps li {
  padding-top: clamp(22px, 2.4vw, 32px);
  border-top: 2px solid var(--fg);
}
.start__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 6.4vw, 6rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--cobalt);
}
.start__steps h3 { margin-top: clamp(28px, 3.4vw, 48px); font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 900; }
.start__steps p { margin-top: 10px; font-size: 15.5px; line-height: 1.85; color: var(--muted); }
.start__steps .voice { color: var(--ink); }

.course {
  max-width: var(--max);
  margin: clamp(80px, 10vw, 140px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.course__title {
  margin-top: 22px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.course__copy > p:not(.kicker) { margin-top: 22px; max-width: 34em; font-size: 16.5px; line-height: 1.95; color: var(--muted); }
.course__copy .course__title + p { margin-top: 30px; }
.course__for {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.course__for b { display: block; color: var(--fg); margin-bottom: 4px; }

.course-card {
  padding: clamp(26px, 3vw, 40px);
  border-radius: 30px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 60px 100px -60px rgba(11, 16, 51, 0.8);
}
.course-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #a3acdc;
}
.course-card__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); }
.syllabus { margin-top: 18px; counter-reset: syl; }
.syllabus li {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  padding: 9px 0;
  border-top: 1px solid rgba(238, 240, 247, 0.1);
  font-size: 14.5px;
  line-height: 1.6;
  counter-increment: syl;
}
.syllabus li::before {
  content: counter(syl, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8f9bff;
  padding-top: 2px;
}
.course-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; }
.course-card__meta li {
  padding: 5px 12px;
  border: 1px solid rgba(238, 240, 247, 0.2);
  border-radius: 999px;
  font-size: 12.5px;
  color: #d5daf5;
}
.course-card .btn--primary { background: var(--paper); color: var(--ink); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.faq__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 104px);
  align-items: start;
}
.faq .section-head--tight { position: sticky; top: calc(var(--header) + 40px); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  position: relative;
  padding: 24px 56px 24px 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 16px; height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa summary:hover { color: var(--accent); }
.qa__a { padding: 0 56px 28px 0; }
.qa__a p { font-size: 16px; line-height: 1.95; color: var(--muted); }
.qa[open] .qa__a { animation: qa-in 0.45s var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }

/* =========================================================
   FINAL + FOOTER
   ========================================================= */
.final {
  position: relative;
  isolation: isolate;
  max-width: none;
  margin: 0 auto;
  padding-top: calc(var(--section-pad) * 1.1);
  padding-bottom: clamp(96px, 12vw, 160px);
  text-align: center;
}
.final__said {
  display: inline-block;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  color: var(--muted);
  background-image: linear-gradient(var(--rec), var(--rec));
  background-repeat: no-repeat;
  background-position: 0 55%;
  background-size: 0% 2px;
  transition: background-size 0.9s var(--ease-out) 0.3s, opacity 0.6s 1.4s;
}
.final.is-in .final__said { background-size: 100% 2px; opacity: 0.55; }
.final__title {
  margin-top: 26px;
  font-size: clamp(2.75rem, 7.6vw, 7.25rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.final__lead {
  max-width: 30em;
  margin: 30px auto 0;
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  line-height: 1.9;
  color: var(--muted);
}
.final .btn { margin-top: 44px; }

.site-footer {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}
.wordmark {
  font-family: var(--font-mono);
  font-size: min(calc((100vw - var(--gutter) * 2) / 5.18), calc(var(--max) / 5.18));
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.06em;
  white-space: nowrap;
  margin-left: -0.04em;
}
.wordmark .caret { width: 0.06em; margin-left: 0.04em; background: var(--rec); }
.wordmark .wl { display: inline-block; transition: transform 0.5s var(--ease-spring); }
.wordmark.is-waving .wl { animation: wl-wave 1.1s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes wl-wave {
  0% { transform: none; }
  30% { transform: translateY(calc(var(--h, 0.12) * -1em)) scaleY(1.04); }
  60% { transform: translateY(calc(var(--h, 0.12) * 0.35em)); }
  100% { transform: none; }
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer__links a { text-decoration: none; opacity: 0.86; }
.site-footer__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.3em; }
.site-footer__copy { color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--rd, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .prompts__grid,
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .prompts .section-head--tight,
  .faq .section-head--tight { position: static; }
  .course { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .features__layout { grid-template-columns: minmax(0, 1fr); }
  .fitem { padding: 36px 0 40px; }
}

@media (max-width: 900px) {
  .hero { --t: clamp(2.5rem, 12.4vw, 6.5rem); }
  .key3d { --kw: clamp(190px, 56vw, 260px); }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto calc(var(--t) * 1.08) auto calc(var(--t) * 1.08) auto auto;
    min-height: 0;
  }
  .hero__eyebrow { grid-column: 1; }
  .sound-toggle { grid-column: 1; grid-row: 6; justify-self: start; margin: 22px 0 0; }
  .stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: 14px;
    padding-block: 18px 22px;
  }
  .cloud { grid-column: 1; justify-self: center; text-align: center; min-height: 3.3em; }
  .keywrap { grid-column: 1; }
  .hud { grid-column: 1; justify-self: center; transform: translateY(-10px) scale(0.95); }
  .line { grid-column: 1; grid-row: 5; justify-self: stretch; width: 100%; margin-top: 18px; }
  .hero__copy { grid-row: 6; padding-top: 28px; }
  .sound-toggle { grid-row: 7; }
  .marquee__row--said,
  .marquee__row--ink { font-size: clamp(2rem, 11vw, 3.5rem); }
  .site-nav {
    position: fixed;
    inset: calc(var(--header) + env(safe-area-inset-top, 0px)) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s 0.4s;
  }
  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 24px;
    font-weight: 900;
    opacity: 1;
  }
  .site-nav a::after { display: none; }
  .site-nav__cta {
    justify-content: center;
    min-height: 56px;
    margin-top: 24px;
    border-bottom: 0 !important;
    font-size: 18px !important;
  }
  .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s;
  }
  .site-header.is-open {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-toggle { display: block; }

  /* journey: card on top, one step at a time */
  .journey__sticky { grid-template-columns: minmax(0, 1fr); }
  .js .journey__track { height: 360vh; }
  .js .journey__sticky {
    grid-template-rows: auto auto;
    align-content: center;
    gap: 22px;
    padding-top: calc(var(--header) + 8px);
  }
  .js .journey__steps { order: 2; display: grid; }
  .js .jstep {
    grid-area: 1 / 1;
    border: 0 !important;
    padding: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
  }
  .js .jstep.is-active { opacity: 1; transform: none; }
  .js .jstep p { max-height: none; opacity: 1; margin-top: 6px; }
  .jcard { height: min(440px, 50svh); }
  .js .jcard { order: 1; }
  .jraw { margin-top: 18px; }

  .platforms__grid,
  .start__steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hud { padding: 0 14px; }
  .hud__row { gap: 10px; height: 50px; }
  .hud__prompt { font-size: 14px; }
  .stage__hint-alt { display: none; }
  .switcher__keys { gap: 6px; }
  .pkey { height: 74px; border-radius: 12px; }
  .pkey__num { font-size: 18px; left: 10px; top: 8px; }
  .pkey__name { left: 10px; bottom: 8px; font-size: 11.5px; }
  .pkey::after { right: 9px; top: 11px; width: 6px; height: 6px; }
  .switcher__said { grid-template-columns: 1fr; gap: 10px; }
  .switcher__note,
  .switcher__out { padding-inline: 20px; }
  .jlayer { inset: 24px 22px; }
  .jvoice { font-size: 1.0625rem; }
  .jraw { font-size: 1.125rem; }
  .mail__body { padding: 16px; font-size: 1rem; }
  .mail__row { padding: 10px 14px; font-size: 14px; }
  .os__list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mini-history { grid-template-columns: minmax(0, 1fr); }
  .mini-history__list { display: none; }
  .mini-pane__row { flex-wrap: wrap; }
  .qa summary { padding-right: 40px; }
  .qa__a { padding-right: 0; }
  .final__title { font-size: clamp(2.5rem, 12vw, 3.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .caret { animation: none !important; }
  .js .hero__title .caret { opacity: 1; }
  .jwave i { transform: scaleY(0.5); }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   ATMOSPHERE — grain + hero sound field
   ========================================================= */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero > :not(.hero__field) { position: relative; z-index: 1; }
.hero__field {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* =========================================================
   INTERLUDE — the key lives under your thumb
   ========================================================= */
.interlude {
  position: relative;
  min-height: clamp(560px, 92vh, 960px);
  padding: 0 !important;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.interlude__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}
.interlude__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  transform: scale(calc(1.14 - var(--ip, 0) * 0.14));
  transform-origin: 70% 50%;
  will-change: transform;
}
.interlude__media::after {
  content: "";
  position: absolute;
  inset: -4px;
  background:
    linear-gradient(90deg, rgba(11, 16, 51, 0.92) 0%, rgba(11, 16, 51, 0.55) 38%, rgba(11, 16, 51, 0) 68%),
    linear-gradient(0deg, rgba(11, 16, 51, 1) 0%, rgba(11, 16, 51, 0.6) 22%, rgba(11, 16, 51, 0) 50%),
    linear-gradient(180deg, rgba(11, 16, 51, 1) 0%, rgba(11, 16, 51, 0) 18%);
}
.interlude__copy {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 9vw, 128px);
}
.interlude__copy h2 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.interlude__copy > p:last-child {
  max-width: 28em;
  margin-top: 24px;
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.9;
  color: var(--muted);
}
@media (max-width: 700px) {
  .interlude { min-height: 640px; }
  .interlude__media img { object-position: 78% 40%; transform-origin: 78% 40%; }
  .interlude__media::after {
    background:
      linear-gradient(0deg, rgba(11, 16, 51, 0.96) 0%, rgba(11, 16, 51, 0.7) 45%, rgba(11, 16, 51, 0.1) 75%),
      linear-gradient(180deg, rgba(11, 16, 51, 1) 0%, rgba(11, 16, 51, 0) 22%);
  }
}

/* prompts now sit on paper */
.prompts .switcher__panel {
  background: #ffffff;
  box-shadow: 0 50px 90px -50px rgba(11, 16, 51, 0.45), 0 0 0 1px rgba(11, 16, 51, 0.06);
}

/* final: the hero's rings, standing still */
.final::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(34% 44% at 50% 58%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 100%),
    repeating-radial-gradient(ellipse 135% 100% at 50% 58%, rgba(195, 202, 255, 0) 0 86px, rgba(195, 202, 255, 0.14) 87px 88px, rgba(195, 202, 255, 0) 89px 150px);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 58%, #000 30%, transparent 100%);
  mask-image: radial-gradient(60% 70% at 50% 58%, #000 30%, transparent 100%);
  pointer-events: none;
}
.final > * { position: relative; }

@media (max-width: 900px) {
  /* scenes: intro on top (sticky horizontally), cards swipe underneath */
  .scenes__track {
    display: grid;
    grid-template-columns: repeat(4, min(78vw, 360px));
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 32px;
    width: max-content;
  }
  .scenes__intro {
    grid-column: 1 / -1;
    position: sticky;
    left: var(--gutter);
    width: calc(100vw - var(--gutter) * 2);
    padding-right: 0;
  }
  .scene { flex: none; width: 100%; }
}
