/* Dictait: near-black, a shader gradient of ember light, and smoked liquid glass.
   Type: Inter Tight for headlines, Instrument Serif Italic for the words that carry the voice,
   DM Sans for reading. All three are SIL Open Font License (assets/fonts/OFL-*.txt). */

@font-face { font-family: 'Inter Tight'; src: url('assets/fonts/inter-tight-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/dm-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/dm-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/dm-sans-700.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }

:root {
  --sc-canvas: #0A0908;
  --sc-surface: #211E1B;
  --sc-ink: #F6F0E9;
  --sc-ink-soft: #C4B9AD;
  --sc-accent: #F9853B;
  --sc-accent-ink: #1A0B06;
  --sc-font-display: 'Inter Tight', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --sc-font-text: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-voice: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sc-font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sc-shadow-color: 30 12% 30%;
  --sc-edge: inset 0 1px 0 rgb(255 255 255 / 0.9);
  --ink-3: #AA9D90;
  --accent-text: #FFAB70;
  --line: rgb(255 225 195 / 0.1);
  --line-strong: rgb(255 225 195 / 0.18);
  --bar-h: 76px;
  /* Glass for anything over live DOM: blur and saturate what is behind, a lit rim, a soft drop. */
  --glass-bg: rgb(27 23 20 / 0.76);
  --glass-rim: inset 0 1px 0 rgb(255 225 195 / 0.2), inset 0 0 0 1px rgb(255 225 195 / 0.08);
  --glass-drop: 0 18px 40px -18px rgb(40 30 25 / 0.32), 0 2px 8px -2px rgb(40 30 25 / 0.12);
}

/* The pinned acts grow the page as they lay out; anchoring would chase that and drift the scroll. */
html { background: var(--sc-canvas); overflow-anchor: none; }
body { margin: 0; background: var(--sc-canvas); color: var(--sc-ink); font-family: var(--sc-font-text); -webkit-font-smoothing: antialiased; }
.sc-grain { opacity: 0.03; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.7em; height: 1.55em; padding: 0 0.4em;
  font: 600 0.78em/1 var(--sc-font-text); color: var(--sc-ink);
  border-radius: 6px; background: rgb(255 225 195 / 0.08);
  box-shadow: inset 0 -1.5px 0 rgb(21 20 19 / 0.14), inset 0 0 0 1px var(--line-strong);
  vertical-align: 0.1em;
}
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(255 91 54 / 0.22); }

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: var(--glass-rim), var(--glass-drop);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  font: 600 15px/1 var(--sc-font-text); letter-spacing: -0.005em; text-decoration: none; color: var(--sc-ink);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--sc-accent); color: #201209;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 10px 22px -10px rgb(21 20 19 / 0.55);
}
.btn--primary svg { color: currentColor; }
.btn--ghost { color: var(--sc-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #FFA364; }
  .btn--ghost:hover { background: rgb(255 225 195 / 0.08); }
}
.btn--big { height: 56px; padding: 0 28px; font-size: 16px; }
.btn__size { font-weight: 500; opacity: 0.65; }
.btn.is-disabled { background: rgb(21 20 19 / 0.06); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; }

/* ------------------------------------------------- the bar: a floating glass pill */
.bar {
  position: fixed; z-index: var(--sc-z-chrome); top: 14px; left: 50%; translate: -50% 0;
  width: min(66rem, 100% - 2 * var(--sc-gutter)); height: 54px; box-sizing: border-box;
  display: flex; align-items: center; gap: 24px; padding: 0 8px 0 20px; border-radius: 999px;
  transition: opacity 260ms var(--sc-ease-out), transform 360ms var(--sc-ease-out), background-color 260ms var(--sc-ease-out);
}
.bar.is-hidden { opacity: 0; transform: translateY(-130%); pointer-events: none; }
.bar.is-scrolled { --glass-bg: rgb(27 23 20 / 0.9); }
.bar__brand { display: inline-flex; align-items: center; gap: 9px; color: var(--sc-ink); text-decoration: none; font: 700 20px/1 var(--sc-font-display); letter-spacing: -0.03em; }
.bar__mark { width: 19px; height: 22px; fill: var(--sc-accent); }
.bar__links { display: flex; gap: 24px; margin-left: auto; }
.bar__links a { color: var(--sc-ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 140ms var(--sc-ease-out); }
.bar__links a:hover { color: var(--sc-ink); }
.btn--bar { height: 40px; padding: 0 18px; font-size: 14px; }

/* ============================================================ 1 · intro */
.intro__stage { background: var(--sc-canvas); }
.intro__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro__veil { position: absolute; inset: 0; background: var(--sc-canvas); opacity: 0; pointer-events: none; }
/* Every section meets the next in the same ground: the light fades out at the edges. */
.intro__fade { position: absolute; inset: auto 0 0; height: 22%; z-index: 5; pointer-events: none; background: linear-gradient(to top, var(--sc-canvas), rgb(10 9 8 / 0)); }
/* Without WebGL: the same light, still. */
.intro:not(.gl-on) .intro__stage {
  background:
    radial-gradient(60% 40% at 30% 30%, rgb(255 154 90 / 0.35), transparent 70%),
    radial-gradient(50% 40% at 75% 55%, rgb(255 107 107 / 0.25), transparent 70%),
    var(--sc-canvas);
}
.mark3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 30; }
.mark-still { position: absolute; left: 50%; top: 33%; width: min(30svh, 46vw); height: auto; translate: -50% -50%; z-index: 30; display: none; filter: drop-shadow(0 30px 34px rgb(120 45 20 / 0.25)); }
.intro:not(.mark-on) .mark-still { display: block; }

/* The product: a Mac screen in a thin black bezel, tilted back as it rises. */
/* Before the scroll engine runs, each act's stage already fills one screen (the engine then makes it
   sticky), so a slow load opens on the hero instead of a collapsed intro with the next act showing. */
[data-sc-stage]:not(.sc-stage) { position: relative; height: 100vh; height: 100svh; overflow: clip; }
/* Hidden until main.js has staged them, so a slow load shows the hero alone: no Mac over it, and no
   flat icon standing in for the 3D mark. */
.is-loading :is(.product, .captions, .mark-still) { visibility: hidden; }
/* The hero's words are there from the first paint; the engine takes over its fade once it runs. */
.is-loading .hero[data-sc-cue] { opacity: 1; }
.product { position: absolute; inset: 0; perspective: 2000px; perspective-origin: 50% 20%; pointer-events: none; z-index: 10; }
.product__frame {
  position: absolute; left: 0; top: 0; padding: 14px; border-radius: 44px; background: #0F0E0D;
  transform-origin: 50% 100%;
  box-shadow: inset 0 0 0 1.5px #3A3734, 0 60px 120px -40px rgb(80 35 20 / 0.45), 0 24px 50px -20px rgb(40 20 10 / 0.3);
}

/* The Mac: a fixed 1552 × 900 design (1000 × 1250 on a phone), scaled to fit the frame. */
.mac {
  position: relative; width: 1552px; height: 900px; border-radius: 30px;
  font-family: var(--sc-font-text); color: var(--sc-ink); overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 30% 40%, #6E2C12, transparent 70%), radial-gradient(ellipse at 80% 70%, #A44716, transparent 60%), #17120F;
}
.mac__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mac__bar {
  position: absolute; inset: 0 0 auto; height: 36px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 72px; font-size: 16px; font-weight: 500; color: var(--sc-ink);
}
.mac__menus { display: flex; gap: 24px; }
.mac__menus b { font-weight: 700; }
.mac__status { display: flex; align-items: center; gap: 18px; }
.mac__tray { width: 15px; height: 18px; fill: currentColor; }

/* The island: black, hanging from the notch, opening with a clip-path wipe. */
.island {
  --closed: inset(0 236px 58px 236px round 0 0 18px 18px);
  position: absolute; top: 0; left: 50%; width: 640px; height: 92px; margin-left: -320px; z-index: 2;
  background: #000; border-radius: 0 0 32px 32px;
  clip-path: var(--closed);
  transition: clip-path 420ms var(--sc-ease-out);
}
.island:not([data-state="idle"]) { clip-path: inset(0 0 0 0 round 0 0 32px 32px); }
.island__row {
  position: absolute; inset: 34px 26px 14px; display: flex; align-items: center; gap: 16px;
  opacity: 0; transition: opacity 200ms var(--sc-ease-out);
}
.island:not([data-state="idle"]) .island__row { opacity: 1; transition-delay: 120ms; }
.island__mark { width: 22px; height: 26px; fill: var(--sc-accent); flex: none; }
.island__label { font-size: 20px; font-weight: 600; color: #B9B2A9; white-space: nowrap; }
.island__label:empty { display: none; }
.island__live {
  flex: 1; min-width: 0; display: flex; justify-content: flex-end; overflow: hidden; white-space: nowrap;
  font-size: 22px; color: #fff; mask-image: linear-gradient(to right, transparent, #000 14%);
}
.island__level { width: 92px; height: 30px; flex: none; }
.island__level path { fill: none; stroke: var(--sc-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.island__time { font-size: 17px; font-variant-numeric: tabular-nums; color: #B9B2A9; width: 40px; text-align: right; }
.island[data-state="ready"] :is(.island__level, .island__time) { display: none; }
.island[data-state="ready"] .island__label { color: #fff; }
.island[data-state="polishing"] .island__live,
.island[data-state="pasted"] .island__live,
.island[data-state="rewriting"] .island__live,
.island[data-state="replaced"] .island__live { opacity: 0.4; }

.mac__tip {
  position: absolute; top: 108px; left: 50%; translate: -50% 0; height: 42px; box-sizing: border-box; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; border-radius: 21px; font-size: 16px; font-weight: 500; color: var(--sc-ink); white-space: nowrap;
  opacity: 0; transition: opacity 220ms var(--sc-ease-out);
}
.mac__tip kbd { font-size: 14px; }
.mac__tip.is-on { opacity: 1; }

.win {
  position: absolute; left: 50%; top: 170px; width: 920px; height: 540px; margin-left: -460px; border-radius: 26px; overflow: hidden;
}
.win__title { position: relative; height: 56px; display: flex; align-items: center; gap: 9px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.win__title i { width: 13px; height: 13px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.12); }
.win__title i:nth-child(2) { background: #FEBC2E; }
.win__title i:nth-child(3) { background: #28C840; }
.win__title span { position: absolute; left: 0; right: 0; text-align: center; font-size: 16px; font-weight: 600; color: var(--sc-ink-soft); pointer-events: none; }
.win__field { display: flex; gap: 18px; padding: 15px 40px; border-bottom: 1px solid var(--line); font-size: 19px; }
.win__field span { width: 82px; color: var(--ink-3); }
.win__body { padding: 30px 40px; font-size: 30px; line-height: 1.5; letter-spacing: -0.01em; color: var(--sc-ink); }
.doc span { border-radius: 5px; transition: background-color 600ms var(--sc-ease-out), box-shadow 600ms var(--sc-ease-out); }
.doc .is-new { animation: landed 1.3s var(--sc-ease-out); }
@keyframes landed { from { background-color: rgb(255 91 54 / 0.24); box-shadow: 0 0 0 4px rgb(255 91 54 / 0.24); } }
.doc .is-sel { background-color: rgb(255 91 54 / 0.24); box-shadow: 0 0 0 4px rgb(255 91 54 / 0.24); }
.caret { display: inline-block; width: 3px; height: 1.12em; margin-left: 2px; vertical-align: -0.2em; background: var(--sc-accent); border-radius: 2px; animation: blink 1.06s steps(1) infinite; }
.caret.is-hidden { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }
.mac__demo { position: absolute; right: 72px; bottom: 40px; margin: 0; font-size: 15px; font-weight: 500; color: var(--ink-3); }

/* Without WebGL the same panels are CSS glass over a still gradient. */
.mac:not(.gl-on) .mac__bar { background: rgb(27 23 20 / 0.8); }
.mac:not(.gl-on) .win, .mac:not(.gl-on) .mac__tip { background: rgb(27 23 20 / 0.85); box-shadow: var(--glass-rim), var(--glass-drop); }

/* Phones: the same Mac in a portrait design, its type large enough to read. */
.mac.is-narrow { width: 1000px; height: 1460px; border-radius: 44px; }
.mac.is-narrow .mac__bar { height: 64px; font-size: 30px; padding: 0 48px; }
.mac.is-narrow .mac__menus span { display: none; }
.mac.is-narrow .mac__tray { width: 26px; height: 32px; }
.mac.is-narrow .island { --closed: inset(0 290px 100px 290px round 0 0 30px 30px); width: 940px; height: 168px; margin-left: -470px; border-radius: 0 0 56px 56px; }
.mac.is-narrow .island:not([data-state="idle"]) { clip-path: inset(0 0 0 0 round 0 0 56px 56px); }
.mac.is-narrow .island__row { inset: 66px 44px 22px; gap: 22px; }
.mac.is-narrow .island__mark { width: 38px; height: 44px; }
.mac.is-narrow .island__label { font-size: 38px; }
.mac.is-narrow .island__live { font-size: 44px; }
.mac.is-narrow .island__level { width: 130px; height: 48px; }
.mac.is-narrow .island__time { display: none; }
.mac.is-narrow .mac__tip { top: 196px; height: 72px; border-radius: 36px; padding: 0 28px; font-size: 30px; }
.mac.is-narrow .mac__tip kbd { font-size: 26px; }
.mac.is-narrow .win { left: 44px; right: 44px; width: auto; margin: 0; top: 300px; height: 1040px; border-radius: 44px; }
.mac.is-narrow .win__title { height: 84px; }
.mac.is-narrow .win__title i { width: 22px; height: 22px; }
.mac.is-narrow .win__title span { font-size: 30px; }
.mac.is-narrow .win__field { padding: 22px 52px; font-size: 32px; }
.mac.is-narrow .win__field span { width: 140px; }
.mac.is-narrow .win__body { padding: 40px 52px; font-size: 56px; line-height: 1.34; }
.mac.is-narrow .caret { width: 6px; }
.mac.is-narrow .mac__demo { font-size: 28px; bottom: 26px; right: 52px; }

/* Hero copy */
.hero {
  position: absolute; z-index: var(--sc-z-copy); inset-inline: var(--sc-gutter); bottom: clamp(2.5rem, 9svh, 6.5rem);
  display: grid; justify-items: center; text-align: center;
}
.hero__title {
  margin: 0; font: 700 clamp(3.4rem, 1.2rem + 5.4vw, 6.6rem)/0.94 var(--sc-font-display);
  letter-spacing: -0.036em; text-wrap: balance;
}
.hero__lede { margin: 18px 0 0; max-width: 34rem; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem); line-height: 1.5; color: var(--sc-ink-soft); text-wrap: pretty; }
.hero__lede kbd { font-size: 0.82em; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.hero__meta { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); letter-spacing: 0.01em; }

.hear {
  position: absolute; z-index: 25; right: var(--sc-gutter); bottom: clamp(1.25rem, 5svh, 3.5rem); display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px 0 14px; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--sc-ink);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 240ms var(--sc-ease-out), transform 240ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.hear svg { width: 18px; height: 18px; }
.hear.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hear[aria-pressed="true"] { background: var(--sc-accent); color: #201209; }
.hear[aria-pressed="true"] .hear__wave { animation: hear 1s ease-in-out infinite; }
@keyframes hear { 50% { opacity: 0.25; } }
@media (hover: hover) and (pointer: fine) { .hear:hover { --glass-bg: rgb(27 23 20 / 0.9); } }
.captions { position: absolute; z-index: var(--sc-z-copy); inset-inline: var(--sc-gutter); bottom: clamp(1.25rem, 5svh, 3.5rem); display: grid; justify-items: center; pointer-events: none; }
.caption {
  grid-area: 1 / 1; align-self: end; margin: 0; max-width: 38rem; padding: 14px 24px; border-radius: 20px; text-align: center;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.2rem); line-height: 1.45; color: var(--sc-ink-soft);
  background: rgb(27 23 20 / 0.88);
}
.caption strong { color: var(--sc-ink); font-weight: 650; }

/* ======================================================= 2 · what you can say */
/* Glass cards over a band of the live light, each with a looping demo of the command. */
.say__stage { display: flex; align-items: center; background: var(--sc-canvas); }
.say__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.say__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, var(--sc-canvas) 0%, rgb(10 9 8 / 0) 24%, rgb(10 9 8 / 0) 76%, var(--sc-canvas) 100%); }
.say:not(.gl-on) .say__stage { background: radial-gradient(70% 50% at 50% 55%, rgb(255 154 90 / 0.3), transparent 70%), var(--sc-canvas); }
.rail { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.6rem); padding-inline: var(--sc-gutter); width: max-content; }
.rail__head { width: min(32rem, 84vw); display: grid; gap: 18px; padding-right: clamp(1rem, 4vw, 4rem); }
.rail__title { margin: 0; font: 700 clamp(2.8rem, 1.6rem + 4vw, 5.4rem)/0.93 var(--sc-font-display); letter-spacing: -0.038em; text-wrap: balance; }
.rail__lede { margin: 0; max-width: 25rem; font-size: 18px; line-height: 1.55; color: var(--sc-ink-soft); text-wrap: pretty; }
.moment {
  width: clamp(19rem, 27vw, 25rem); height: min(34rem, 72svh); box-sizing: border-box; display: flex; flex-direction: column;
  padding: 14px 14px 26px; border-radius: 34px;
}
.say:not(.gl-on) .moment { background: rgb(27 23 20 / 0.8); }
.moment > * { transition: opacity 420ms var(--sc-ease-out), transform 520ms var(--sc-ease-out); }
.moment.is-waiting > * { opacity: 0.5; transform: translateY(14px); }
.moment__say { margin: 22px 12px 0; font: 700 clamp(1.7rem, 1.3rem + 1.1vw, 2.3rem)/1.04 var(--sc-font-display); letter-spacing: -0.03em; }
.moment__say kbd, .moment__what kbd { font-size: 0.6em; vertical-align: 0.2em; }
.moment__what kbd { font-size: 0.85em; vertical-align: 0.05em; }
.moment__what { margin: 10px 12px 0; font-size: 15.5px; line-height: 1.55; color: var(--sc-ink-soft); }
.rail__note { width: min(24rem, 72vw); padding-left: clamp(1rem, 3vw, 3rem); }
.rail__note p { margin: 0; font: 700 clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem)/1.02 var(--sc-font-display); letter-spacing: -0.035em; text-wrap: balance; }

/* The demos: a 6 s loop each, playing while the card is in view and otherwise held on the frame
   that explains it best (--hold), which is also what reduced motion shows. */
.demo {
  --hold: -3.3s;
  position: relative; flex: 1; display: grid; align-content: center; padding: 26px 24px 56px; border-radius: 24px; overflow: hidden;
  background: rgb(14 12 10 / 0.8); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(40 30 25 / 0.06);
  font-size: 18px; line-height: 1.5; color: var(--sc-ink);
}
.demo * { animation-duration: 6s; animation-iteration-count: infinite; animation-timing-function: var(--sc-ease-out); animation-play-state: paused; animation-delay: var(--hold); animation-fill-mode: both; }
.moment.is-live .demo * { animation-play-state: running; animation-delay: 0s; }
.demo__text { margin: 0; }
.demo__chip {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 0; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: #151413; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px -8px rgb(21 20 19 / 0.5);
  animation-name: chip;
}
.demo__chip--ember { background: #fff; color: var(--accent-text); box-shadow: inset 0 0 0 1px rgb(255 91 54 / 0.4), 0 8px 20px -10px rgb(255 91 54 / 0.5); }
@keyframes chip { 0%, 28% { opacity: 0; transform: translateY(8px) scale(0.96); } 34%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(4px); } }

.demo--scratch .x {
  background: linear-gradient(var(--sc-accent), var(--sc-accent)) 0 58% / 0% 2px no-repeat; color: var(--sc-ink);
  animation-name: scratch;
}
@keyframes scratch {
  0% { clip-path: inset(0 100% 0 0); opacity: 1; background-size: 0% 2px; color: var(--sc-ink); }
  24% { clip-path: inset(0 0 0 0); background-size: 0% 2px; color: var(--sc-ink); }
  40% { background-size: 0% 2px; }
  56% { background-size: 100% 2px; color: var(--ink-3); opacity: 1; }
  72%, 100% { clip-path: inset(0 0 0 0); background-size: 100% 2px; color: var(--ink-3); opacity: 0; }
}
.demo--para { --hold: -4.3s; }
.demo--para .p2b { display: block; margin-top: 16px; animation-name: para-in; }
.demo--para .p2a { animation-name: para-out; }
@keyframes para-out { 0%, 40% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes para-in { 0%, 44% { opacity: 0; transform: translateY(-10px); } 58%, 100% { opacity: 1; transform: none; } }
.demo--list { --hold: -4.6s; }
.demo--list .demo__run, .demo--list .demo__list { grid-area: 1 / 1; margin: 0; }
.demo--list .demo__run { color: var(--sc-ink-soft); animation-name: run-out; }
.demo--list .demo__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.demo--list li { display: flex; gap: 12px; align-items: baseline; animation-name: item-in; }
.demo--list li:nth-child(2) { animation-name: item-in-2; }
.demo--list li:nth-child(3) { animation-name: item-in-3; }
.demo--list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sc-accent); translate: 0 -2px; flex: none; }
@keyframes run-out { 0%, 36% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes item-in { 0%, 44% { opacity: 0; transform: translateX(-10px); } 52%, 100% { opacity: 1; transform: none; } }
@keyframes item-in-2 { 0%, 50% { opacity: 0; transform: translateX(-10px); } 58%, 100% { opacity: 1; transform: none; } }
@keyframes item-in-3 { 0%, 56% { opacity: 0; transform: translateX(-10px); } 64%, 100% { opacity: 1; transform: none; } }
.demo--hold { --hold: -2.6s; justify-items: center; gap: 26px; padding-bottom: 26px; }
.demo__keys { display: flex; gap: 8px; }
.demo__keys kbd { font-size: 20px; height: 54px; min-width: 54px; border-radius: 12px; box-shadow: inset 0 -3px 0 rgb(21 20 19 / 0.16), inset 0 0 0 1px var(--line-strong), 0 2px 4px rgb(40 30 25 / 0.08); }
.demo__keys kbd.wide { min-width: 132px; }
.demo--hold kbd { animation-name: press; }
@keyframes press { 0%, 12% { transform: none; } 16%, 70% { transform: translateY(3px); box-shadow: inset 0 -1px 0 rgb(21 20 19 / 0.16), inset 0 0 0 1px var(--line-strong); background: #463020; } 74%, 100% { transform: none; } }
.demo__island {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 22px; background: #000; color: #fff;
  font-size: 14px; font-weight: 600; animation-name: island; transform-origin: 50% 50%;
}
@keyframes island { 0%, 14% { opacity: 0; transform: scaleX(0.4); } 22%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scaleX(0.6); } }
.demo__mark { width: 15px; height: 18px; fill: var(--sc-accent); flex: none; }
.demo__state { display: grid; }
.demo__state > span { grid-area: 1 / 1; }
.demo__state > span:first-child { animation-name: state-a; }
.demo__state > span:last-child { animation-name: state-b; }
@keyframes state-a { 0%, 72% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes state-b { 0%, 74% { opacity: 0; } 78%, 100% { opacity: 1; } }
.demo__wave { width: 64px; height: 20px; }
.demo__wave path { fill: none; stroke: var(--sc-accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 30 10; animation-name: wave; animation-timing-function: linear; }
@keyframes wave { 0% { stroke-dashoffset: 0; opacity: 1; } 72% { stroke-dashoffset: -160; opacity: 1; } 76%, 100% { stroke-dashoffset: -160; opacity: 0.25; } }
.demo--word { --hold: -4.2s; }
.demo--word .swap { position: relative; display: inline-grid; }
.demo--word .swap > * { grid-area: 1 / 1; text-decoration: none; }
.demo--word .swap s { color: var(--sc-ink); background: linear-gradient(var(--sc-accent), var(--sc-accent)) 0 58% / 0% 2px no-repeat; animation-name: word-out; }
.demo--word .swap b { font-weight: 650; color: var(--sc-ink); border-bottom: 2px solid var(--sc-accent); animation-name: word-in; }
@keyframes word-out { 0%, 22% { opacity: 1; background-size: 0% 2px; } 34% { opacity: 1; background-size: 100% 2px; } 42%, 100% { opacity: 0; background-size: 100% 2px; } }
@keyframes word-in { 0%, 40% { opacity: 0; transform: translateY(6px); } 50%, 100% { opacity: 1; transform: none; } }
.demo--paste { --hold: -4.2s; justify-items: center; gap: 24px; padding-bottom: 26px; }
.demo--paste kbd { animation-name: press-quick; }
@keyframes press-quick { 0%, 14% { transform: none; } 18%, 30% { transform: translateY(3px); background: #463020; } 34%, 100% { transform: none; } }
.demo__field { margin: 0; width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; background: var(--sc-canvas); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; text-align: left; }
.demo__field span { border-radius: 4px; animation-name: pasted; }
@keyframes pasted { 0%, 30% { opacity: 0; background-color: rgb(255 91 54 / 0); } 34% { opacity: 1; background-color: rgb(255 91 54 / 0.28); } 60%, 92% { opacity: 1; background-color: rgb(255 91 54 / 0); } 100% { opacity: 0; } }

/* ============================================================ 3 · private */
/* The chip: light flows in from every edge and stops there. The facts arrive as glass. */
/* The same live light as the sections around it, faded at both edges like the rail, so every
   section hands over to the next one the same way. */
.private__stage { background: var(--sc-canvas); }
.private__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.private__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, var(--sc-canvas) 0%, rgb(10 9 8 / 0) 24%, rgb(10 9 8 / 0) 76%, var(--sc-canvas) 100%); }
.private:not(.gl-on) .private__stage { background: radial-gradient(55% 60% at 72% 52%, rgb(255 154 90 / 0.2), rgb(255 154 90 / 0) 70%), var(--sc-canvas); }
.private:not(.gl-on) .fact { background: rgb(27 23 20 / 0.8); }
.chip3d { position: absolute; z-index: 1; top: 0; right: 0; width: 58%; height: 100%; display: block; pointer-events: none; }
.private__col { position: absolute; z-index: 2; left: var(--sc-gutter); top: 50%; translate: 0 -46%; width: min(36rem, 44vw); }
.private__title { margin: 0; font: 700 clamp(2.8rem, 1.6rem + 4vw, 5.4rem)/0.93 var(--sc-font-display); letter-spacing: -0.038em; text-wrap: balance; }
.private__lede { margin: 20px 0 0; max-width: 31rem; font-size: 18px; line-height: 1.6; color: var(--sc-ink-soft); text-wrap: pretty; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { display: grid; gap: 4px; padding: 16px 18px; border-radius: 20px; font-size: 14.5px; line-height: 1.45; }
.fact b { font-weight: 650; color: var(--sc-ink); }
.fact span { color: var(--sc-ink-soft); }
.private:not(.chip-on) .chip3d { display: none; }

/* ================================================================ 4 · get */
/* The close: the live light, the mark returning, one glass card. */
.get { position: relative; min-height: 100svh; box-sizing: border-box; display: grid; place-items: center; padding: calc(var(--bar-h) + 2.5rem) var(--sc-gutter) 2.5rem; overflow: clip; background: var(--sc-canvas); }
.get:not(.gl-on) { background: radial-gradient(70% 60% at 50% 40%, rgb(255 140 80 / 0.35), transparent 70%), var(--sc-canvas); }
.get__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.get::before { content: ''; position: absolute; inset: 0 0 auto; height: 38%; z-index: 1; pointer-events: none; background: linear-gradient(var(--sc-canvas), rgb(10 9 8 / 0)); }
.get__inner { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; width: min(46rem, 100%); }
.get__icon { position: relative; width: clamp(8.5rem, 15vw, 12rem); aspect-ratio: 1; }
.get__icon img { display: block; width: 100%; height: auto; }
.get__mark { position: absolute; inset: -30%; width: 160%; height: 160%; display: block; pointer-events: none; }
.get.mark-on .get__icon img { visibility: hidden; }
.get__title { margin: 18px 0 0; font: 700 clamp(3rem, 1.6rem + 4.6vw, 6rem)/0.92 var(--sc-font-display); letter-spacing: -0.04em; }
.get__lede { margin: 16px 0 0; max-width: 32rem; font-size: 18px; line-height: 1.55; color: var(--sc-ink-soft); }
.get__card { display: grid; justify-items: center; width: 100%; box-sizing: border-box; margin-top: 32px; padding: 22px clamp(1.25rem, 3vw, 2.25rem) 26px; border-radius: 32px; }
.get:not(.gl-on) .get__card, .get:not(.gl-on) .foot { background: rgb(27 23 20 / 0.85); }
.platforms {
  display: inline-grid; grid-template-columns: repeat(3, auto); gap: 2px; padding: 4px; border-radius: 999px;
}
.platforms button { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--sc-ink-soft); transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out); }
.platforms button[aria-checked="true"] { background: var(--sc-accent); color: #201209; box-shadow: 0 1px 3px rgb(40 30 25 / 0.16), inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) { .platforms button:hover { color: var(--sc-ink); } }
.panels { display: grid; width: 100%; margin-top: 22px; }
.platform {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; justify-items: center; gap: 12px; min-width: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 220ms var(--sc-ease-out), transform 260ms var(--sc-ease-out), visibility 0s 220ms;
}
.platform.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--sc-ease-out), transform 260ms var(--sc-ease-out), visibility 0s; }
.platform .btn--big { min-width: 17rem; }
.platform__box .code { margin: 0; }
.platform__box .code code { white-space: pre-wrap; overflow-wrap: anywhere; }
.platform__box-alt b { color: var(--sc-ink); font-weight: 650; }
.platform__meta a { color: inherit; text-underline-offset: 3px; }
.platform__note { margin: 0; max-width: 34rem; font-size: 14px; line-height: 1.55; color: var(--sc-ink-soft); }
.platform__box {
  width: 100%; max-width: 36rem; box-sizing: border-box; display: grid; align-content: start; gap: 10px; padding: 16px 18px; border-radius: 20px; text-align: left;
  background: rgb(14 12 10 / 0.55); box-shadow: inset 0 0 0 1px var(--line);
}
.platform__box-title { margin: 0; font-size: 14px; font-weight: 650; }
.platform__box-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--sc-ink-soft); }
.platform__box-alt { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.platform__box-link { font-size: 14px; font-weight: 650; color: var(--accent-text); text-decoration: none; }
.platform__box-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 8px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.5; color: var(--sc-ink-soft); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sc-accent); color: #201209; font-size: 12px; font-weight: 650; translate: 0 1px; }
.steps b { color: var(--sc-ink); font-weight: 650; }
.platform__meta { margin: 0; max-width: 36rem; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.platform__meta code { font: 11.5px var(--sc-font-mono); }
.code { margin: 0 12px 12px; width: auto; }
.code {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 36rem; min-width: 0; box-sizing: border-box;
  padding: 10px 10px 10px 14px; border-radius: 12px; background: #1B1A18; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.code code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre; font: 13px/1.6 var(--sc-font-mono); color: #F3EFEA; }
.code--block { align-items: flex-start; }
.copy { flex: none; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #F3EFEA; background: rgb(255 255 255 / 0.1); transition: background-color 140ms var(--sc-ease-out); }
.copy:hover { background: rgb(255 255 255 / 0.18); }
.copy.is-done { color: #FF8A6B; }
.code { text-align: left; }
.foot {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 18px; padding: 10px 18px; border-radius: 999px;
  font-size: 13px; color: var(--sc-ink-soft);
}
.foot__brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--sc-ink); }
.foot__brand svg { width: 12px; height: 14px; fill: var(--sc-accent); }
.foot a { color: var(--sc-ink); text-underline-offset: 3px; }
/* Over the live gradient the glass is drawn by WebGL, so these elements stay clear. */
.get.gl-on .glass, .mac.gl-on .glass, .say.gl-on .glass, .private.gl-on .glass { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }

/* ================================================================ phones */
@media (max-width: 860px) {
  :root { --bar-h: 66px; }
  .bar { top: 10px; height: 50px; padding: 0 6px 0 16px; }
  .bar__links { display: none; }
  .btn--bar { margin-left: auto; }
  .hero { bottom: 6svh; }
  .hero__title { font-size: clamp(2.9rem, 13vw, 4.4rem); }
  .hero__lede { font-size: 16px; max-width: 22rem; }
  .hero__actions { margin-top: 22px; }
  .hero__actions .btn { height: 46px; padding: 0 18px; }
  .hero__meta { font-size: 12px; }
  .caption { font-size: 15px; padding: 12px 18px; }
  .hear { right: 50%; translate: 50% 0; bottom: auto; top: calc(var(--bar-h) + 1svh); height: 40px; }
  .moment { width: 80vw; height: min(30rem, 66svh); }
  .rail__head { width: 82vw; }
  .chip3d { width: 100%; height: 50%; top: auto; bottom: 0; }
  .private__col { top: calc(var(--bar-h) + 2svh); translate: none; width: auto; right: var(--sc-gutter); }
  .private__lede { font-size: 16px; margin-top: 14px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; }
  .fact { padding: 10px 14px; grid-template-columns: 6.5rem minmax(0, 1fr); font-size: 13.5px; }
  .get__lede { font-size: 16px; }
  .get__card { padding: 18px 16px 20px; border-radius: 26px; }
  .platforms button { padding: 0 11px; font-size: 13px; }
}

/* ======================================================== reduced motion */
@media (prefers-reduced-motion: reduce) {
  .island, .island__row, .moment > *, .mac__tip { transition: none; }
  .caret { animation: none; }
  .moment.is-waiting > * { opacity: 1; transform: none; }
  .moment.is-live .demo * { animation-play-state: paused; animation-delay: var(--hold); }
}

/* The voice becomes visible before the finished text lands. */
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 100; padding: 12px 18px; background: var(--sc-accent); color: #201209; border-radius: 10px; }
.skip-link:focus { top: 20px; }
.eyebrow { margin: 0 0 18px; color: var(--accent-text); font: 600 12px/1.4 var(--sc-font-mono); letter-spacing: .14em; text-transform: uppercase; }
/* The voice in every headline: the words that land, set in a serif italic and lit like the mark. */
.hero__title em, .rail__title em, .rail__note em, .private__title em, .get__title em {
  font-family: var(--font-voice); font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: -0.01em; line-height: 0.8;
  padding-right: 0.06em; background: linear-gradient(100deg, #FFB27A 0%, #FF7A3D 45%, #FF5B36 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.voice-track { position: relative; display: grid; grid-template-columns: auto 150px 1fr; align-items: center; gap: 20px; margin: 24px 40px 0; padding: 18px 22px; border-radius: 16px; border: 1px solid rgb(249 133 59 / .26); background: rgb(249 133 59 / .07); }
.voice-track__label, .win__output-label { color: var(--accent-text); font: 600 13px/1.4 var(--sc-font-mono); letter-spacing: .1em; }
.voice-track svg { width: 150px; height: 32px; }
.voice-track path { fill: none; stroke: var(--sc-accent); stroke-width: 2; stroke-linecap: round; }
.voice-track__words { font-size: 18px; color: var(--sc-ink-soft); max-height: 76px; overflow: hidden; }
.voice-track.is-listening svg { animation: voice-pulse .7s ease-in-out infinite alternate; }
.win__output-label { display: block; margin-bottom: 12px; }
.win { height: 590px; }
.win__body { padding-top: 24px; }
.mac.is-narrow .voice-track { grid-template-columns: auto 1fr; margin: 24px 52px 0; gap: 14px; padding: 22px; }
.mac.is-narrow .voice-track__label { font-size: 24px; }
.mac.is-narrow .voice-track__words { grid-column: 1 / -1; font-size: 32px; max-height: 100px; }
.mac.is-narrow .win__output-label { font-size: 24px; }
@keyframes voice-pulse { to { opacity: .55; transform: scaleY(.65); } }

/* Each command is a small, readable performance. */
.rail { counter-reset: command; }
.moment { counter-increment: command; border-radius: 24px; padding: 20px 20px 28px; }
.moment__index { display: flex; justify-content: space-between; color: var(--accent-text); font: 500 10px/1.4 var(--sc-font-mono); letter-spacing: .14em; margin: 0 0 18px; }
.moment__index::after { content: '0' counter(command); color: var(--ink-3); }
.demo { border-radius: 14px; background: radial-gradient(ellipse at 0 100%, rgb(249 133 59 / .1), transparent 70%), #15120F; }
.demo__chip { border-radius: 8px; background: #3B2113; color: #FFB27C; border: 1px solid rgb(249 133 59 / .24); }
.demo__chip--ember { background: #3B2113; }
.demo__keys kbd { background: #29231E; }

/* Privacy has three different visual rhythms, with the chip alongside it. */
.facts { gap: 12px; }
.fact { padding: 22px; border-radius: 18px; gap: 8px; }
.fact .fact__tag { font: 500 10px/1.4 var(--sc-font-mono); letter-spacing: .1em; color: var(--accent-text); }
.fact__signal { display: flex; align-items: center; gap: 5px; height: 52px; margin: 8px 0; }
.fact__signal i { width: 5px; height: 16px; background: var(--sc-accent); border-radius: 3px; }
.fact__signal i:nth-child(3n) { height: 38px; }
.fact__signal i:nth-child(3n + 1) { height: 26px; }
.fact__signal i:nth-child(5n) { height: 48px; }
.fact__number { font: 600 68px/1.05 var(--sc-font-display); letter-spacing: -.06em; color: #FF9B55; }
.fact__number span { font: 500 15px/1 var(--sc-font-text); margin-left: 6px; letter-spacing: 0; }
.fact--offline { grid-column: 1 / -1; grid-template-columns: 38px 1fr; align-items: center; }
.fact--offline div { display: grid; gap: 5px; }
.fact .fact__offline-icon { font: 400 40px/1 var(--sc-font-display); color: var(--sc-accent); }
.platforms { border-radius: 16px; }
.platforms button { border-radius: 12px; }
.code-invite { position: relative; display: grid; gap: 8px; margin: 28px 0 12px; width: 100%; box-sizing: border-box; padding: 24px 28px; border-top: 1px solid var(--line-strong); text-align: left; text-decoration: none; color: var(--sc-ink); }
.code-invite > span { font: 600 clamp(1.4rem, 3vw, 1.9rem)/1.2 var(--sc-font-display); letter-spacing: -.03em; }
.code-invite small { font-size: 14px; color: var(--sc-ink-soft); padding-right: 20px; }
.code-invite b { position: absolute; right: 22px; top: 24px; color: var(--sc-accent); font-size: 28px; }
.code-invite:hover > span { color: var(--accent-text); }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fact { grid-template-columns: 1fr; padding: 14px; font-size: 12px; gap: 5px; }
  .fact .fact__tag { font-size: 9px; }
  .fact__signal { height: 36px; margin: 4px 0; gap: 3px; }
  .fact__signal i { width: 4px; }
  .fact__number { font-size: 50px; }
  .fact--offline { grid-template-columns: 28px 1fr; }
  .platform .btn--big { min-width: 0; width: 100%; padding: 0 12px; font-size: 15px; }
  .platforms { width: 100%; grid-template-columns: repeat(3, 1fr); box-sizing: border-box; }
  .get__card { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .voice-track.is-listening svg { animation: none; } }

/* The download card, clean: a button, one line of requirements, and one way to get going. */
.platform { grid-template-rows: none; align-content: start; gap: 10px; }
.platform__note { font-size: 14px; color: var(--sc-ink-soft); }
.platform__or { margin: 14px 0 0; font: 500 11px/1 var(--sc-font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.code--line { max-width: 30rem; margin: 0; padding: 8px 8px 8px 16px; }
.code--line code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.platform__hint { margin: 2px 0 0; max-width: 30rem; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
