/* Sirenize product site. Palette and type come from the launch film. */

/* ───────────────────────────── Fonts */
@font-face { font-family: "Redaction"; src: url("assets/fonts/redaction-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Redaction"; src: url("assets/fonts/redaction-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Redaction 70"; src: url("assets/fonts/redaction-70-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Redaction 50"; src: url("assets/fonts/redaction-50-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Redaction 35"; src: url("assets/fonts/redaction-35-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Departure Mono"; src: url("assets/fonts/DepartureMono-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

/* ───────────────────────────── Tokens */
:root {
  --bg: #0E0F12;
  --bg-deep: #08090B;
  --text: #F2F2F0;
  --accent: #FFD54A;
  --teal: #3FB8A0;
  --muted: rgba(242, 242, 240, 0.62);
  --dim: rgba(242, 242, 240, 0.36);
  --line: rgba(242, 242, 240, 0.12);
  --faint: rgba(242, 242, 240, 0.05);
  --surface: #16181D;
  --surface-2: #1C1F25;
  --ink: #0E0F12;

  --display: "Redaction", "Iowan Old Style", Georgia, serif;
  --body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Departure Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

/* ───────────────────────────── Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
section[id] { scroll-margin-top: var(--nav-h); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.label--teal { color: var(--teal); }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.h2 em, .hero__title em, .stat__text em { color: var(--accent); }
.lede { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 56ch; text-wrap: pretty; }
.fine { color: var(--dim); font-size: 14px; line-height: 1.5; max-width: 60ch; }
.mark { background: var(--accent); color: var(--ink); padding: 0 0.14em; border-radius: 0.08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.mark em { color: inherit; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--row { grid-template-columns: 1fr auto; align-items: end; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 14px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: #ffe07a; }
.btn--ghost { border: 1.5px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--dim); background: var(--faint); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn--large { min-height: 60px; padding: 0 32px; font-size: 18px; border-radius: 18px; }
.btn__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.linkbtn { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.linkbtn:hover { text-decoration-color: var(--accent); }

/* Scroll reveal */
[data-reveal] { opacity: 0; translate: 0 24px; transition: opacity 0.7s var(--ease), translate 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ───────────────────────────── Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color 0.3s, backdrop-filter 0.3s, opacity 0.35s, translate 0.45s var(--ease), visibility 0s; }
/* The film has the screen to itself first. The header arrives once the page starts to scroll. */
.js .nav:not(.is-shown) { opacity: 0; translate: 0 -100%; visibility: hidden; transition: opacity 0.25s, translate 0.35s var(--ease), visibility 0s 0.35s; }
.nav.is-scrolled { background: rgba(14, 15, 18, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__bar { height: var(--nav-h); max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px; }
.nav__logo { flex: none; border-radius: 8px; }
.nav__logo img { width: 138px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--muted); text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-current { color: var(--text); background: var(--faint); }
.nav__progress { height: 2px; background: transparent; }
.nav__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ───────────────────────────── Intro: the launch film, full screen. It stays put while the hero slides up over it. */
.landing { position: relative; } /* JS sets --p here: 0 with the film in full view, 1 once the hero covers it */
.intro {
  position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--bg-deep);
}
/* JS draws the film's outermost pixels into this and it is stretched out to the edges of the screen, so the
   letterbox bars match the picture. It hangs 48px past every side (OVERSCAN in main.js) so the blur has no visible end. */
.intro__ambient { position: absolute; inset: -48px; width: calc(100% + 96px); height: calc(100% + 96px); max-width: none; filter: blur(12px); }
.intro__video { position: relative; width: 100%; height: 100%; object-fit: contain; }
.intro::after { content: ""; position: absolute; inset: 0; background: var(--bg-deep); opacity: calc(var(--p, 0) * 0.8); pointer-events: none; }
.intro__ui {
  position: absolute; inset: auto 0 0 0; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  opacity: calc(1 - var(--p, 0) * 4);
}
.intro.is-away .intro__ui { visibility: hidden; }
.intro__cue { grid-column: 2; }
.intro__ctl { grid-column: 3; justify-self: end; display: none; gap: 8px; }
.js .intro__ctl { display: flex; }
.intro__pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgba(14, 15, 18, 0.62); border: 1px solid rgba(242, 242, 240, 0.2); color: var(--text);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, border-color 0.2s;
}
.intro__pill:hover { background: rgba(14, 15, 18, 0.86); border-color: rgba(242, 242, 240, 0.4); }
.intro__pill--icon { width: 44px; padding: 0; }
.intro__cue { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.intro__cue svg { animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 3px; } }
.intro__waves, .intro.is-playing .intro__play, .intro:not(.is-playing) .intro__pause { display: none; }
.intro.is-loud .intro__waves { display: block; }
.intro.is-loud .intro__cross { display: none; }
/* Nothing is playing (autoplay was blocked, or reduced motion is on): point at the play button. */
.js .intro:not(.is-playing) #introPlay { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ───────────────────────────── Hero */
section.hero { scroll-margin-top: 0; } /* lands flush, so no strip of the film shows above it */
.hero {
  position: relative; z-index: 1; box-shadow: 0 -40px 80px rgba(0, 0, 0, calc(min(var(--p, 0) * 4, 1) * 0.45));
  min-height: 100svh; padding: calc(var(--nav-h) + clamp(32px, 7vh, 88px)) 0 clamp(32px, 5vh, 56px);
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(40px, 7vh, 80px);
  background: radial-gradient(90% 60% at 70% 38%, rgba(255, 213, 74, 0.07), transparent 70%), var(--bg);
}
.award {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--faint); text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
  transition: border-color 0.2s;
}
.award:hover { border-color: var(--accent); }
.award__dot, .pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero__title {
  font-family: var(--display); font-weight: 400; font-size: clamp(46px, min(7.4vw, 12.4vh), 116px); line-height: 1; letter-spacing: -0.025em;
  margin-top: clamp(20px, 3vh, 32px); max-width: 15ch;
}
.hero__lede { margin-top: clamp(22px, 3.5vh, 34px); color: var(--muted); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; max-width: 46ch; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4vh, 40px); }

.strip { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.strip__tile {
  position: relative; z-index: 1; min-height: 76px; padding: 8px 10px; border-radius: 16px; border: 1.5px solid var(--line);
  display: grid; place-items: center; text-align: center; font-weight: 600; font-size: clamp(13px, 1.25vw, 17px); line-height: 1.15;
  color: var(--muted); transition: color 0.2s;
}
.strip__tile.is-on { color: var(--text); }
.strip__tile.is-said { color: var(--ink); }
.strip__box {
  position: absolute; left: 0; top: 0; border-radius: 16px; border: 3px solid var(--accent); pointer-events: none;
  transition: transform 0.34s var(--ease), width 0.34s var(--ease), height 0.34s var(--ease), background-color 0.18s;
}
.strip__box.is-said { background: var(--accent); }
.strip__note { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--dim); }

/* ───────────────────────────── Why */
.why { background: var(--bg-deep); padding: clamp(96px, 16vh, 180px) 0 0; }
.stat { max-width: 880px; padding-block: clamp(36px, 8vh, 84px); }
.stat__text { font-family: var(--display); font-size: clamp(34px, 5.6vw, 78px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.stat__source { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.stat:nth-child(2) { margin-left: auto; }
.stat--last { margin-inline: auto; text-align: center; }
.fade-voice { white-space: nowrap; }

.said { position: relative; height: clamp(520px, 92vh, 860px); overflow: hidden; display: grid; place-items: center; padding-inline: var(--gutter); }
.said__line { position: relative; z-index: 2; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 104px); line-height: 1.02; letter-spacing: -0.02em; text-align: center; text-wrap: balance; }
.said__phrase {
  position: absolute; left: var(--x); top: var(--y); translate: -50% calc(-50% + var(--shift, 0px));
  font-family: var(--display); font-style: italic; font-size: calc(clamp(22px, 3.2vw, 52px) * var(--s)); white-space: nowrap;
  color: rgba(242, 242, 240, 0.5); will-change: translate;
}
.said__phrase--accent { color: var(--accent); }

/* ───────────────────────────── Try it */
.try { padding: clamp(96px, 14vh, 160px) 0; }
.demo {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px) clamp(28px, 6vw, 88px); align-items: center;
  padding: clamp(20px, 3.4vw, 44px); border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(80% 70% at 30% 30%, rgba(255, 213, 74, 0.05), transparent 70%), var(--surface);
  outline: none;
}
.demo:focus-visible { border-color: var(--accent); }
.demo__left { display: grid; gap: 22px; min-width: 0; }
.demo__out { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 24px clamp(24px, 4vw, 56px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }

.head { height: clamp(130px, 13vw, 176px); display: grid; place-items: center; perspective: 700px; }
.head__glasses { width: min(340px, 100%); will-change: transform; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.5)); }
.head__glasses svg { width: 100%; height: auto; overflow: visible; }
.head__led { animation: led 1.4s ease-in-out infinite; }
@keyframes led { 50% { opacity: 0.25; } }

.readout { border: 1px solid var(--line); border-radius: 18px; background: rgba(14, 15, 18, 0.6); padding: 16px 18px 14px; }
.readout__top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.readout__event { color: var(--ink); background: var(--accent); padding: 0 8px; border-radius: 6px; opacity: 0; transition: opacity 0.5s; }
.readout__event.is-on { opacity: 1; transition: none; }
.readout__nums { display: flex; gap: 36px; margin-top: 12px; }
.readout__k { display: block; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.readout__v { font-family: var(--mono); font-size: 30px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.readout__trace { width: 100%; height: 76px; margin-top: 8px; }
.readout__note { margin-top: 8px; font-size: 13px; color: var(--dim); }

.controls { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 10px; }
.ctl {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 0 12px;
  border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 16px;
  transition: transform 0.15s var(--ease), border-color 0.2s, background-color 0.2s; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.ctl:hover { border-color: var(--dim); }
.ctl:active, .ctl.is-down { transform: scale(0.96); border-color: var(--accent); }
.ctl--nod { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.ctl--nod:hover { background: #ffe07a; border-color: #ffe07a; }
.controls__hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--dim); }
kbd { display: inline-block; min-width: 24px; padding: 1px 6px; margin-right: 3px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); font-family: var(--mono); font-size: 12px; text-align: center; color: var(--muted); }

/* Phone */
.phone {
  width: 312px; max-width: 100%; aspect-ratio: 312 / 640; border-radius: 46px; padding: 9px;
  background: #050506; box-shadow: 0 0 0 1.5px rgba(242, 242, 240, 0.16), 0 40px 80px rgba(0, 0, 0, 0.55);
}
.phone__screen { position: relative; height: 100%; border-radius: 38px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; padding: 20px 14px 14px; }
.phone__bar { display: flex; justify-content: space-between; align-items: center; padding-inline: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.phone__cam { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); letter-spacing: 0.04em; text-transform: none; }
.phone__cam i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.phone__cam.is-off i { background: var(--dim); }
.phone__foot { margin-top: auto; padding-top: 10px; text-align: center; font-size: 11px; color: var(--dim); }

.board { position: relative; margin-top: 14px; }
.board__label { display: flex; align-items: center; gap: 6px; min-height: 18px; margin: 0 4px 8px; font-size: 11px; font-weight: 600; color: var(--text); }
.board__label small { font-weight: 400; font-size: 11px; color: var(--muted); }
.board__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }
.board__label--plain::before { display: none; }
.board__label:empty { display: none; }
.board__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.board__grid:empty { display: none; }
.tile {
  position: relative; z-index: 1; min-height: 60px; padding: 6px 12px; border-radius: 14px; background: var(--surface);
  text-align: left; font-weight: 600; font-size: 13.5px; line-height: 1.15; color: var(--text);
  transition: color 0.15s, opacity 0.3s; touch-action: manipulation;
}
.tile.is-said { color: var(--ink); background: transparent; }
.tile.is-loading { color: transparent; animation: shimmer 0.9s ease-in-out infinite; pointer-events: none; }
@keyframes shimmer { 50% { background: var(--surface-2); } }
.board__box {
  position: absolute; left: 0; top: 0; z-index: 0; border-radius: 15px; border: 2.5px solid var(--accent); pointer-events: none;
  transition: transform 0.28s var(--ease), width 0.28s var(--ease), height 0.28s var(--ease), background-color 0.15s;
}
.board__box.is-said { background: var(--accent); }

/* Output */
.spoken { min-height: clamp(96px, 9vw, 124px); }
.spoken__text { margin-top: 10px; font-family: var(--display); font-style: italic; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.01em; color: var(--accent); text-wrap: balance; }
.spoken__text.is-empty { font-family: var(--body); font-style: normal; font-size: 17px; line-height: 1.5; letter-spacing: 0; color: var(--dim); }
.spoken__text.is-new { animation: said 0.5s var(--ease); }
@keyframes said { from { opacity: 0; translate: 0 12px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 15px; font-weight: 500; color: var(--muted); transition: border-color 0.2s, color 0.2s, background-color 0.2s; }
.chip:hover { border-color: var(--dim); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: rgba(255, 213, 74, 0.1); }
.scenes__foot { display: grid; gap: 12px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 32px; font-size: 15px; font-weight: 500; color: var(--muted); }
.toggle i { position: relative; width: 36px; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); transition: background-color 0.2s; }
.toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: translate 0.2s var(--ease), background-color 0.2s; }
.toggle[aria-pressed="true"] { color: var(--text); }
.toggle[aria-pressed="true"] i { background: var(--teal); border-color: var(--teal); }
.toggle[aria-pressed="true"] i::after { translate: 14px 0; background: var(--ink); }

/* ───────────────────────────── How it works */
.how { position: relative; height: 420vh; background: var(--bg-deep); }
.how__sticky { position: sticky; top: 0; height: 100svh; padding-top: var(--nav-h); display: grid; align-items: center; overflow: hidden; }
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.how__copy .h2 { margin-top: 16px; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.12; }
.steps { margin-top: clamp(20px, 4vh, 40px); border-top: 1px solid var(--line); }
.step { border-bottom: 1px solid var(--line); }
.step__head { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 10px; width: 100%; padding: 13px 0; text-align: left; color: var(--dim); transition: color 0.3s; }
.step__n, .step__tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.step__tag { text-transform: uppercase; }
.step__title { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.01em; }
.step__head:hover { color: var(--muted); }
.step__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.step__body p { overflow: hidden; color: var(--muted); padding-left: 44px; max-width: 52ch; font-size: 16px; }
.step.is-active .step__head { color: var(--text); }
.step.is-active .step__n { color: var(--accent); }
.step.is-active .step__body { grid-template-rows: 1fr; }
.step.is-active .step__body p { padding-bottom: 16px; }

.how__stage { height: min(74vh, 640px); display: grid; place-items: center; perspective: 2400px; }
.stack { --s: var(--stack-scale, 1); position: relative; width: 0; height: 0; transform-style: preserve-3d; transform: translateY(var(--stack-drop, 180px)) rotateX(58deg) rotateZ(-40deg) scale3d(var(--s), var(--s), var(--s)); }
.layer {
  --z: calc(var(--i) * 102px);
  position: absolute; left: -210px; top: -115px; width: 420px; height: 230px; border-radius: 26px; padding: 26px 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, var(--surface-2), #121419); border: 2px solid rgba(242, 242, 240, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), -14px 14px 0 -1px #050506, -30px 40px 60px rgba(0, 0, 0, 0.5);
  transform: translateZ(calc(var(--z) + 240px)); opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.layer.is-landed { transform: translateZ(var(--z)); opacity: 1; }
.layer.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), -14px 14px 0 -1px #050506, 0 0 60px rgba(255, 213, 74, 0.3); }
.layer__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.layer__top span:first-child { color: var(--teal); }
.layer__title { font-size: 38px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.layer__sub { font-size: 18px; color: var(--muted); margin-top: 4px; }

/* ───────────────────────────── The voice (light) */
.light { --text: #0E0F12; --muted: rgba(14, 15, 18, 0.64); --dim: rgba(14, 15, 18, 0.42); --line: rgba(14, 15, 18, 0.16); --faint: rgba(14, 15, 18, 0.04); --teal: #1F7F6D; background: #F2F2F0; color: var(--text); color-scheme: light; }
.voice { padding: clamp(96px, 14vh, 160px) 0; }
.voice__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pill b { color: var(--text); font-weight: 700; }
.voice__lines { display: grid; gap: clamp(14px, 2.4vh, 26px); margin-top: clamp(24px, 4vh, 40px); }
.voice__line { text-align: left; font-family: var(--display); font-size: clamp(34px, 5vw, 70px); line-height: 1.06; letter-spacing: -0.02em; color: var(--dim); transition: color 0.4s; text-wrap: balance; }
.voice__line .mark { background: rgba(14, 15, 18, 0.06); color: inherit; transition: background-color 0.4s, color 0.4s; }
.voice__line.is-active { color: var(--text); }
.voice__line.is-active .mark { background: var(--accent); color: var(--ink); }
.voice__facts { display: grid; gap: 10px; margin-top: clamp(28px, 5vh, 48px); max-width: 52ch; color: var(--muted); }
.trophy { display: inline-flex; align-items: center; gap: 16px; margin-top: 32px; padding: 16px 22px 16px 18px; border-radius: 18px; background: var(--ink); color: #F2F2F0; text-decoration: none; line-height: 1.35; font-size: 15px; }
.trophy svg { color: var(--accent); flex: none; }
.trophy b { font-size: 17px; }
.trophy:hover { background: #1c1f25; }

/* Voice bank phone */
.phone--voice { color: #F2F2F0; --text: #F2F2F0; --muted: rgba(242, 242, 240, 0.62); --dim: rgba(242, 242, 240, 0.36); --teal: #3FB8A0; --line: rgba(242, 242, 240, 0.12); box-shadow: 0 0 0 1.5px rgba(14, 15, 18, 0.2), 0 40px 80px rgba(14, 15, 18, 0.28); }
.vb { position: absolute; inset: 64px 22px 28px; display: none; flex-direction: column; }
.phone--voice[data-phase="0"] .vb--0, .phone--voice[data-phase="1"] .vb--1, .phone--voice[data-phase="2"] .vb--2, .phone--voice[data-phase="3"] .vb--3 { display: flex; }
.vb__rec { color: var(--accent); opacity: 0; }
.phone--voice[data-phase="0"] .vb__rec { opacity: 1; animation: led 1.2s ease-in-out infinite; }
.vb__k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.vb__read { margin-top: 12px; font-size: 25px; font-weight: 600; line-height: 1.25; }
.vb__read span { color: rgba(242, 242, 240, 0.28); animation: read 0.3s linear forwards; animation-delay: calc(0.4s + var(--w) * 0.3s); }
@keyframes read { to { color: #F2F2F0; } }
.vb--0 .bars { margin-top: auto; }
.vb__btn { position: relative; width: 76px; height: 76px; margin: 28px auto 8px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.vb__btn i { width: 22px; height: 22px; border-radius: 5px; background: var(--ink); }
.vb__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ring 1.2s ease-out infinite; }
@keyframes ring { to { inset: -22px; opacity: 0; } }
.vb--1, .vb--2 { justify-content: center; text-align: center; }
.vb__h { margin-top: 26px; font-size: 22px; font-weight: 600; }
.vb__track { margin-top: 18px; height: 8px; border-radius: 8px; background: rgba(242, 242, 240, 0.12); overflow: hidden; }
.vb__track span { display: block; height: 100%; background: var(--teal); transform-origin: 0 50%; animation: fill 2.3s cubic-bezier(0.6, 0, 0.3, 1) both; }
@keyframes fill { from { transform: scaleX(0); } }
.vb__m { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.vb__m--plain { font-family: var(--body); font-size: 15px; }
.vb__m--teal { font-family: var(--body); font-size: 13px; color: var(--teal); text-align: center; }
.vb__check { width: 96px; height: 96px; margin-inline: auto; border-radius: 50%; border: 3px solid var(--teal); display: grid; place-items: center; animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.vb__check i { width: 36px; height: 18px; border-left: 4px solid var(--teal); border-bottom: 4px solid var(--teal); rotate: -45deg; translate: 0 -5px; }
@keyframes pop { from { scale: 0.6; opacity: 0; } }
.vb__tile { min-height: 78px; margin-bottom: 10px; padding: 0 18px; border-radius: 15px; background: var(--surface); display: flex; align-items: center; font-size: 21px; font-weight: 500; }
.vb__tile--on { animation: pick 0.4s 0.5s var(--ease) both; box-shadow: 0 0 0 3px var(--accent); }
@keyframes pick { to { background: var(--accent); color: var(--ink); } }
.vb--3 .bars { margin-top: auto; }

.bars { display: flex; align-items: center; justify-content: center; gap: 4px; height: 56px; }
.bars--small { height: 40px; }
.bars i { width: 4px; height: 100%; border-radius: 4px; background: var(--teal); transform: scaleY(0.12); animation: bar 0.9s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1s); }
.bars--accent i { background: var(--accent); }
@keyframes bar { to { transform: scaleY(var(--h)); } }

/* ───────────────────────────── More */
.more { padding: clamp(96px, 14vh, 160px) 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.01em; }
.card p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.cards .card:nth-child(2) { transition-delay: 0.08s; }
.cards .card:nth-child(4) { transition-delay: 0.08s; }

.wear { margin-top: clamp(72px, 12vh, 128px); display: grid; gap: 16px; }
.wear__line { font-family: var(--display); font-size: clamp(40px, 7vw, 104px); line-height: 1.04; letter-spacing: -0.02em; }
.wear__slot { display: block; overflow: hidden; padding-bottom: 0.08em; white-space: nowrap; }
.wear__word { display: inline-block; }
.wear__word em { color: var(--accent); }
.wear__word.is-out { translate: 0 -105%; opacity: 0; transition: translate 0.3s ease-in, opacity 0.3s; }
.wear__word.is-pre { translate: 0 105%; opacity: 0; }
.wear__word.is-in { translate: 0 0; opacity: 1; transition: translate 0.45s var(--ease), opacity 0.3s; }

.measures { margin-top: clamp(72px, 12vh, 128px); padding-top: 28px; border-top: 1px solid var(--line); }
.measures__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 40px); margin-top: 28px; }
.measures dt { font-family: var(--display); font-size: clamp(48px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.measures dt small { font-size: 0.42em; letter-spacing: 0; color: var(--text); }
.measures dd { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 24ch; }

/* ───────────────────────────── Film */
.film { padding: 0 0 clamp(96px, 14vh, 160px); }
.film__frame { position: relative; border-radius: clamp(16px, 2.4vw, 28px); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.film__frame video { width: 100%; height: 100%; object-fit: cover; }
.film__play {
  position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; background: var(--accent); color: var(--ink);
  display: grid; place-items: center; padding-left: 5px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); transition: transform 0.25s var(--ease);
}
.film__play:hover { transform: scale(1.07); }
.film__play[hidden] { display: none; }

/* ───────────────────────────── Built with */
.built { padding: clamp(96px, 14vh, 160px) 0; background: var(--bg-deep); }
.parts { border-top: 1px solid var(--line); }
.parts__row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.parts dt { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 9px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 500; }
.tags small { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-left: 6px; }
.credits { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.credits__team { font-size: clamp(18px, 1.8vw, 22px); color: var(--muted); }
.credits__team b { color: var(--text); font-weight: 600; }
.credits__links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ───────────────────────────── Closing + footer */
.closing { padding: clamp(110px, 20vh, 220px) 0; text-align: center; background: radial-gradient(60% 60% at 50% 45%, rgba(255, 213, 74, 0.08), transparent 70%), var(--bg); }
.closing .wrap { display: grid; justify-items: center; gap: 24px; }
.closing__logo { width: min(560px, 82vw); }
.closing__tag { font-family: var(--display); font-style: italic; font-size: clamp(36px, 5vw, 64px); line-height: 1.1; }
.closing .btn { margin-top: 12px; }
.footer { border-top: 1px solid var(--line); padding: 26px 0 max(26px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--dim); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a, .footer .linkbtn { color: var(--muted); text-decoration: none; }
.footer a:hover, .footer .linkbtn:hover { color: var(--text); }

/* ───────────────────────────── Dialog */
.dialog {
  width: min(520px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); margin: auto; padding: clamp(24px, 5vw, 38px); overflow: auto;
  border: 1px solid var(--line); border-radius: 28px; background: var(--surface); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.dialog::backdrop { background: rgba(5, 5, 6, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dialog[open] { animation: dialog-in 0.35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; translate: 0 16px; scale: 0.98; } }
.dialog__close-form { position: absolute; right: 16px; top: 16px; margin: 0; }
.dialog__close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); }
.dialog__close:hover { color: var(--text); border-color: var(--dim); }
.dialog__title { margin-top: 10px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 8vw, 58px); line-height: 1.02; letter-spacing: -0.02em; }
.dialog__lede { margin-top: 14px; color: var(--muted); }
.contact { margin-top: 24px; padding: 18px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 12px; }
.contact[hidden] { display: none; }
.contact__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact__addr { font-size: clamp(17px, 4.4vw, 21px); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact__addr:hover { color: var(--accent); }
.dialog__links { margin-top: 24px; display: grid; }
.dialog__links .label { margin-bottom: 6px; }
.dialog__links a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.dialog__links a:hover { color: var(--accent); }

/* ───────────────────────────── Responsive */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .nav__bar { justify-content: space-between; }
}
@media (max-width: 900px) {
  .strip { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .strip__tile { min-height: 60px; border-radius: 14px; }
  .strip__box { border-radius: 14px; }
  .stat:nth-child(2) { margin-left: 0; }
  .stat--last { text-align: left; margin-inline: 0; }
  .said__phrase--wide { display: none; }
  .said__phrase { left: clamp(84px, var(--x), calc(100% - 84px)); }

  /* Phone first, with the three movement buttons pinned under it while the demo is on screen. */
  .demo { grid-template-columns: minmax(0, 1fr); gap: 20px; border-radius: 24px; }
  .demo__left { display: contents; }
  .spoken { order: 0; min-height: 92px; }
  .demo__right { order: 1; display: grid; justify-items: center; }
  .controls { order: 2; position: sticky; bottom: 12px; z-index: 5; padding: 8px; margin: -8px; border-radius: 22px; background: rgba(22, 24, 29, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line); }
  .controls__hint { order: 3; }
  .controls__hint:not(:has(button:not([hidden]))) { display: none; }
  .readout { order: 4; }
  .demo__out { order: 5; grid-template-columns: minmax(0, 1fr); }
  .head { display: none; }
  .keys { display: none; }

  .how { height: 460vh; }
  .how__sticky { align-items: start; }
  .how__grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; }
  .how__copy .h2 { font-size: clamp(28px, 7vw, 44px); margin-top: 8px; }
  .how__stage { order: -1; height: 32svh; min-height: 220px; --stack-scale: 0.44; --stack-drop: 78px; }
  .steps { margin-top: 14px; }
  .step__head { padding: 7px 0; }
  .step__title { font-size: 17px; }
  .step__body p { font-size: 15px; padding-left: 44px; }

  .voice__grid { grid-template-columns: minmax(0, 1fr); }
  .voice__phone { display: grid; justify-items: center; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .measures__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head--row { grid-template-columns: 1fr; }
  .parts__row { grid-template-columns: minmax(0, 1fr); }
  .parts dt { padding-top: 0; }
}
@media (max-width: 600px) {
  /* Sized so "smallest movement" always fits on one line inside its highlight. */
  .hero__title { font-size: clamp(32px, 10.4vw, 58px); }
  .hero__title .mark { white-space: nowrap; }
  .award { border-radius: 16px; line-height: 1.5; }
}
@media (max-width: 420px) {
  .nav__logo img { width: 118px; }
  .award { font-size: 10.5px; letter-spacing: 0.04em; padding-inline: 10px 12px; }
  .controls { grid-template-columns: 1fr 0.72fr 1fr; gap: 8px; }
  .ctl { font-size: 15px; gap: 2px; padding: 0 4px; white-space: nowrap; }
}
/* Short screens: drop the pinned scroll and show the five steps as a plain list. */
@media (max-height: 620px), (max-width: 900px) and (max-height: 700px) {
  .how { height: auto; padding: 96px 0; }
  .how__sticky { position: static; height: auto; padding-top: 0; }
  .how__stage { display: none; }
  .step .step__body { grid-template-rows: 1fr; }
  .step .step__body p { padding-bottom: 16px; }
  .step .step__head { color: var(--text); }
}

/* Short, wide windows: the film reaches the bottom of the screen, so the cue moves aside to stay off its captions. */
@media (max-height: 760px) and (min-width: 601px) {
  .intro__cue { grid-column: 1; justify-self: start; }
}

/* Upright phones: the film sits in the middle of the screen, so the controls stack under it. */
@media (max-width: 600px) {
  .intro__ui { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .intro__ctl { grid-column: 1; grid-row: 1; justify-self: center; }
  .intro__cue { grid-column: 1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .said__phrase { translate: -50% -50%; }
  .bars i { transform: scaleY(var(--h)); }
}
