/* tokens.css is linked from the page beside this file, not @imported: an import is a
   second round trip before the first paint. */

/* Earwave site, v6: the page is the instrument.
   Values come from tokens.css (generated from tokens.json). Motion lengths below are
   multiples of the motion tokens, so the page keeps one clock. */

@font-face {
  font-family: "Space Grotesk";
  /* Latin subset as WOFF2 (21 KB, made with fontTools from the bundled TTF); the TTF stays as the fallback. */
  src: url("fonts/SpaceGrotesk-Variable.woff2") format("woff2"), url("fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --reveal: calc(var(--dur-slow) * 2.8);    /* ~900ms: a section arriving */
  --morph: calc(var(--dur-slow) * 1.5);     /* ~480ms: one state becoming another */
  --stagger: 70ms;
  --wrap: 1160px;
  --gutter: 40px;
  --radius-window: calc(var(--radius-card) * 1.6);
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--color-stage);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; }
kbd { font-family: var(--font-mono); font-size: 0.92em; padding: 1px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--color-divider); }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-accent-ink);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }
.phone-br { display: none; }

.container { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow-calib { color: var(--color-calib); }
.eyebrow-signal { color: var(--color-signal); }

.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--color-ink);
}
.hint { font-size: 12px; color: var(--color-ink-2); }

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.nav.is-scrolled {
  background: var(--color-nav);
  border-bottom-color: var(--color-hairline);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
.nav-inner {
  height: 64px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--color-ink); text-decoration: none; white-space: nowrap;
}
.brand .mark { width: 24px; height: 24px; flex: none; }
.mark-wave { stroke: var(--color-accent); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  position: relative;
  font-size: 14px; font-weight: 500; color: var(--color-ink-2); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--color-ink); }
/* The phone menu button and sheet exist in the markup for every width; only the
   760px block below draws them. The no-JS Menu link is a plain jump to the
   footer's links, so a phone without JavaScript is never left with none. */
.nav-menu-btn, .nav-menu, .nav-noscript { display: none; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--color-accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-links a.is-current::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 24px; border: 0; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { box-shadow: 0 0 0 6px var(--color-accent-tint), 0 8px 30px -6px var(--color-accent-glow); }
.btn-ghost { background: transparent; color: var(--color-ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--color-divider); }
.btn-ghost:hover { background: var(--color-surface-inner); }
.btn-nav { height: 36px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-small { height: 36px; padding: 0 18px; font-size: 13px; }
.btn-hero { height: 52px; padding: 0 28px; font-size: 16px; }
.btn .ic { flex: none; }
.ic-apple { width: 14px; height: 17px; }
.btn-hero .ic-apple { width: 16px; height: 18px; }
.ic-down { width: 11px; height: 13px; }
.ic-share { width: 18px; height: 20px; display: none; }
.js .btn-hero.is-share .ic-apple { display: none; }
.js .btn-hero.is-share .ic-share { display: block; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; padding-top: clamp(32px, 5vh, 72px); }
/* The ridgeline field: the spectrum's recent history, back rows small and far, the newest
   row in front. It sits behind the headline, fades at every edge, and never carries text. */
.field {
  position: absolute; left: 0; top: 0; width: 100%; height: 600px; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(72% 100% at 50% 100%, #000 45%, transparent 100%);
  mask-image: radial-gradient(72% 100% at 50% 100%, #000 45%, transparent 100%);
  opacity: 0; transition: opacity calc(var(--reveal) * 2) var(--ease-out) 400ms;
}
.field.is-on { opacity: 1; }
.hero-copy, .inst-wrap, .plays { position: relative; z-index: 1; }
.hero-copy {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 0 20px; text-align: center;
}
.hero-title {
  max-width: 14ch;
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .wi { display: inline-block; }
.stop { color: var(--color-accent); text-shadow: 0 0 18px var(--color-accent-glow); }
.closing h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.closing h2 .wi { display: inline-block; }
.hero-lede, .hero-meta, .eyebrow { text-shadow: 0 0 14px var(--color-stage), 0 0 4px var(--color-stage); }
.hero-lede { max-width: 620px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--color-ink-2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding-top: 6px; }
.hero-note, .closing-note { display: none; max-width: 360px; font-size: 13px; color: var(--color-ink-2); }
.hero-meta { font-size: 13px; color: var(--color-ink-2); }
/* Instructions name the gesture the device has: a mouse clicks, a finger taps. */
.copy-tap { display: none; }
@media (pointer: coarse) {
  .copy-click { display: none; }
  .copy-tap { display: inline; }
}

/* ------------------------------------------------------------------ instrument */
/* The hero card is the app's Sound screen: scene cards over one curve panel. */

.inst-wrap {
  position: relative;
  width: min(1120px, calc(100% - var(--gutter) * 2));
  margin: clamp(96px, 15vh, 150px) auto 0;
}
/* The one lit edge in this viewport: short, asymmetric, the curve's own glow. */
.inst-wrap::before {
  content: ""; position: absolute; top: 0; left: 14%; width: 220px; height: 2px; z-index: 3;
  background: var(--color-accent); border-radius: 2px;
  box-shadow: 0 0 12px 0 var(--color-accent-glow), 0 0 40px 2px var(--color-accent-haze);
}
.inst {
  position: relative;
  border-radius: var(--radius-window);
  background: linear-gradient(var(--color-paper-1), var(--color-paper-1)), var(--color-stage);
  box-shadow: inset 0 0 0 1px var(--color-hairline-strong), 0 40px 120px -40px var(--color-accent-haze);
  padding: 24px 28px 24px;
  overflow: hidden;
}
/* The scene's name, for a screen reader: it announces each change. */
.inst-scene {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.inst-note { margin: 20px 0 0 28px; font-size: 13px; color: var(--color-ink-2); }

.scenes {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px;
}
.scenes-static { grid-column: 1 / -1; font-size: 13px; color: var(--color-ink-2); }
.scenes-total { display: none; }
.scene {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  min-width: 0; height: 88px; padding: 12px 14px 12px; border: 0; border-radius: var(--radius-sheet);
  background: var(--color-card); box-shadow: inset 0 0 0 1px var(--color-hairline-strong);
  text-align: left; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.scene:hover { background: var(--color-raised); }
.scene:active { transform: scale(0.97); }
.scene-curve { width: 100%; height: 26px; overflow: visible; }
.scene-curve path { fill: none; stroke: var(--color-accent); stroke-width: var(--size-line-weight-chart); stroke-linecap: round; stroke-linejoin: round; }
.scene-name { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.scene-name > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.scene-check { display: none; width: 12px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scene[aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: none; }
.scene[aria-pressed="true"]:hover { background: var(--color-accent); }
.scene[aria-pressed="true"] .scene-curve path { stroke: var(--color-accent-ink); }
.scene[aria-pressed="true"] .scene-check { display: block; }
.scene-more { justify-content: center; gap: 4px; }
.scene-count { font-size: 12px; font-weight: 400; color: var(--color-ink-2); }
.scene-chev { display: inline-block; transition: transform var(--dur-base) var(--ease-out); }
.scene-more[aria-expanded="true"] .scene-chev { transform: rotate(90deg); }

/* The other nine open below the row. */
.scenes-more {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows var(--morph) var(--ease-out), visibility 0s linear var(--morph);
}
.scenes-more.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.scenes-more-in { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; min-height: 0; overflow: hidden; padding: 0 2px; }
.scenes-more.is-open .scenes-more-in { padding-top: 12px; }
.scenes-more .scene { padding: 12px 10px; }

.sound {
  margin-top: 16px; padding: 22px 24px 20px; border-radius: var(--radius-sheet);
  background: var(--color-surface-inner); box-shadow: inset 0 0 0 1px var(--color-hairline);
}
.sound-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sound-title { font-size: 14px; color: var(--color-ink-2); }
.sound-tools { display: flex; align-items: center; gap: 24px; }
.sound-link { font-size: 13px; font-weight: 500; color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.sound-link:hover { color: var(--color-accent); }
.sound-legend { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--color-ink-2); }
.lg-line { width: 16px; height: 0; border-top: 2px solid var(--color-accent); border-radius: 2px; }

/* Compare with Flat: the app's switch, ours to flip. */
.cmp { display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--color-ink); }
.cmp-track { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--color-track-off); transition: background-color var(--dur-base) var(--ease-out); }
.cmp-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-ink); transition: transform var(--dur-base) var(--ease-out); }
.cmp[aria-checked="true"] .cmp-track { background: var(--color-accent); }
.cmp[aria-checked="true"] .cmp-knob { transform: translateX(16px); }

.plot {
  position: relative; margin-top: 12px;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto;
}
.plot-y { position: relative; grid-row: 1; padding-right: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--color-ink-2); }
.plot-y span { position: absolute; right: 10px; transform: translateY(-50%); white-space: nowrap; }
.plot-y span:first-child { top: 0; }
.plot-y .plot-y0 { top: 50%; }
.plot-y span:last-child { top: 100%; }
.plot-area { position: relative; grid-row: 1; height: clamp(200px, 22vw, 280px); touch-action: pan-y; }
.plot-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.plot-axis { position: relative; grid-column: 2; grid-row: 2; height: 24px; margin-top: 8px; font-size: 12px; color: var(--color-ink-2); pointer-events: none; }
.plot-axis span { position: absolute; left: calc(var(--x) * 100%); transform: translateX(-50%); }

/* ------------------------------------------------------------------ plays strip */

.plays {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin: clamp(56px, 8vh, 88px) auto 0; padding: 20px 0;
  border-top: 1px solid var(--color-hairline); border-bottom: 1px solid var(--color-hairline);
  display: flex; align-items: center; gap: 28px;
}
.plays-label { flex: none; font-size: 13px; font-weight: 500; color: var(--color-ink-2); display: inline-flex; align-items: center; gap: 8px; }
.plays-track {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.plays-list { display: flex; align-items: center; gap: 44px; list-style: none; width: max-content; }
.plays-list li { font-family: var(--font-display); font-size: 19px; font-weight: 500; white-space: nowrap; }
.js .plays-list.is-ticking { animation: tick 38s linear infinite; }
.plays-track:hover .plays-list { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */

.sec { padding-top: clamp(96px, 14vh, 160px); }
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 56px; text-align: center; }
.sec-head h2, .faq-side h2, .space-copy h2 {
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
/* A split head: the claim on the left, the qualifier on the right, for a change of pace. */
.sec-head-split {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 24px 64px;
  text-align: left; padding-bottom: 28px; border-bottom: 1px solid var(--color-hairline);
}
.sec-head-split > div { display: flex; flex-direction: column; gap: 16px; }
.sec-head-split .sec-sub { max-width: 460px; justify-self: end; }
.sec-sub { max-width: 680px; font-size: 18px; line-height: 1.55; color: var(--color-ink-2); text-wrap: pretty; }
.sec-sub-left { max-width: 460px; }
.fineprint { margin-top: 18px; font-size: 12px; color: var(--color-ink-2); text-align: center; }

/* ------------------------------------------------------------------ statement */
/* One sentence, lit word by word as it scrolls past. Without JavaScript, or with reduced
   motion, it is simply lit. */
.say { padding: clamp(120px, 18vh, 200px) 0 0; }
.say-text {
  width: min(1040px, calc(100% - var(--gutter) * 2)); margin-inline: auto;
  font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 60px); font-weight: 500;
  line-height: 1.14; letter-spacing: -0.03em; text-wrap: pretty;
}
.say-text em { font-style: normal; }
.say-o { color: var(--color-accent); }
.say-c { color: var(--color-calib); }
.say-text .sw { transition: opacity var(--dur-slow) var(--ease-out); }
/* Unlit words still meet the 3:1 floor for large text, so the sentence reads before it lights. */
.js .say-text.is-live .sw { opacity: 0.45; }
.js .say-text.is-live em .sw { opacity: 0.66; }
.js .say-text.is-live .sw.is-lit { opacity: 1; }

/* ------------------------------------------------------------------ stats */

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; }
/* Editorial, not boxed: big figures on hairlines. */
.stat {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 280px;
  padding: 8px 24px 28px; border-left: 1px solid var(--color-hairline-strong);
  overflow: hidden;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt { font-size: 13px; font-weight: 500; color: var(--color-ink-2); }
.stat dd { display: flex; flex-direction: column; gap: 12px; margin: 0; position: relative; z-index: 1; }
/* The page's own figures are set in the display face, tabular and without a
   slashed zero; only the app recreations keep the mono readout face. */
.stat .num { font-family: var(--font-display); font-weight: 500; font-size: clamp(48px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; font-feature-settings: "zero" 0; }
.stat .cap { font-size: 13px; line-height: 1.45; color: var(--color-ink-2); }
.stat-viz { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none; }
.stat-bands { display: flex; align-items: flex-end; gap: 2px; padding: 0 24px 6px 0; }
.stat-bands i { flex: 1; height: calc(var(--h) * 100%); min-height: 2px; border-radius: 1px; background: var(--color-accent); opacity: 0.55; transform-origin: bottom; }
.js .stat.is-in .stat-bands i { animation: band 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -90ms); }
@keyframes band { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.stat-null span { position: absolute; left: 24px; right: 24px; bottom: 14px; height: 1.5px; background: var(--color-signal); transform-origin: left; transform: scaleX(0); transition: transform calc(var(--reveal) * 1.4) var(--ease-out) 300ms; box-shadow: 0 0 8px var(--color-signal-glow); }
.stat.is-in .stat-null span, .no-motion .stat-null span { transform: none; }
.stat-wide { grid-column: auto; }

/* ------------------------------------------------------------------ headphones */

.hp { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.hp-side { position: relative; display: flex; flex-direction: column; gap: 18px; }
.hp-search {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px;
  border-radius: var(--radius-pill); background: var(--color-card);
  box-shadow: inset 0 0 0 1px var(--color-hairline-strong);
  transition: box-shadow var(--dur-fast) var(--ease-out);
  color: var(--color-ink-2);
}
.hp-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--color-calib); }
.hp-search .ic { width: 16px; height: 16px; flex: none; }
.hp-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none;
  color: var(--color-ink); font: inherit; font-size: 16px;
}
.hp-search input::placeholder { color: var(--color-ink-2); }
.hp-search input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }
.hp-list {
  position: absolute; z-index: 10; top: 60px; left: 0; right: 0; max-height: 320px; overflow: auto;
  padding: 6px; list-style: none; border-radius: var(--radius-card);
  background: var(--color-device); box-shadow: inset 0 0 0 1px var(--color-hairline-strong), 0 24px 60px -12px var(--color-scrim);
}
.hp-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-input); font-size: 14px; cursor: pointer; }
.hp-list li span:last-child { color: var(--color-ink-2); font-size: 12px; white-space: nowrap; }
.hp-list li[aria-selected="true"], .hp-list li:hover { background: var(--color-raised); }
.hp-list .hp-empty { color: var(--color-ink-2); cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .chips .chip-more {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 0;
  border-radius: var(--radius-pill); background: transparent;
  box-shadow: inset 0 0 0 1px var(--color-hairline-strong);
  font-size: 13px; color: var(--color-ink-2);
}
.chip { cursor: pointer; transition: color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.chip:hover { color: var(--color-ink); }
.chip.is-on { color: var(--color-calib); box-shadow: inset 0 0 0 1px var(--color-calib); }
.hp-src { font-size: 12px; line-height: 1.5; color: var(--color-ink-2); }

.hp-card {
  padding: 24px; border-radius: var(--radius-window);
  background: var(--color-paper-1); box-shadow: inset 0 0 0 1px var(--color-hairline-strong);
}
.hp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hp-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hp-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--color-surface-inner); color: var(--color-ink); }
.hp-ic svg { width: 22px; height: 22px; }
.hp-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.hp-meta { margin-top: 2px; font-size: 13px; color: var(--color-ink-2); }
.switch { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 0; background: none; cursor: pointer; font-size: 13px; color: var(--color-ink-2); flex: none; }
.switch-track { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--color-track-off); transition: background-color var(--dur-base) var(--ease-out); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-ink); transition: transform var(--dur-base) var(--ease-out); }
.switch[aria-checked="true"] .switch-track { background: var(--color-calib); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(16px); }
.hp-plot { position: relative; height: clamp(200px, 22vw, 280px); margin-top: 20px; border-radius: var(--radius-card); background: var(--color-surface-inner); }
.hp-plot canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hp-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; list-style: none; font-size: 12px; color: var(--color-ink-2); }
.hp-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 18px; height: 0; border-top: 2px solid; }
.lg-raw { border-color: var(--color-dot-idle); border-top-style: dashed; }
.lg-cal { border-color: var(--color-calib); }
.lg-out { border-color: var(--color-ink); }
.hp-note { margin-top: 10px; font-size: 12px; color: var(--color-ink-2); }

/* ------------------------------------------------------------------ tune */

.tune-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.tune-fig, .menu-fig { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tune-fig figcaption, .menu-fig figcaption { font-size: 13px; color: var(--color-ink-2); }

.win {
  overflow: hidden; border-radius: var(--radius-window);
  background: var(--color-stage); box-shadow: inset 0 0 0 1px var(--color-hairline-strong), 0 40px 120px -48px var(--color-accent-haze);
}
.win-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--color-hairline); }
.win-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.win-brand .mark { width: 20px; height: 20px; }
.win-tabs { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; padding: 3px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--color-hairline-strong); font-size: 12px; color: var(--color-ink-2); }
.win-tabs span { padding: 5px 14px; border-radius: var(--radius-pill); }
.win-tabs .is-on { background: var(--color-raised); color: var(--color-ink); }
.win-end { display: inline-flex; align-items: center; gap: 8px; }
.win-power { padding: 5px 14px; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-size: 12px; font-weight: 600; }
.is-off .win-power { background: var(--color-card); color: var(--color-ink-2); }
.win-gear { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--color-hairline-strong); color: var(--color-ink-2); }
.win-gear svg { width: 14px; height: 14px; }
.win-body { padding: 14px 20px 8px; }
.tune-head { display: flex; align-items: center; gap: 12px; }
.tune-head h3 { font-size: 24px; letter-spacing: -0.02em; }
.tune-editing { flex: 1; min-width: 0; font-size: 12px; color: var(--color-ink-2); }
.pill { padding: 7px 16px; border: 0; border-radius: var(--radius-pill); background: transparent; box-shadow: inset 0 0 0 1px var(--color-hairline-strong); font-size: 12px; font-weight: 500; color: var(--color-ink); cursor: pointer; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
button.pill:hover { background: var(--color-raised); }
button.pill:active { transform: scale(0.97); }
.pill-quiet { color: var(--color-ink-2); }

.tune-panel { margin-top: 12px; padding: 14px 16px 6px; border-radius: var(--radius-sheet); background: var(--color-surface-inner); box-shadow: inset 0 0 0 1px var(--color-hairline); }
.tune-panel .sound-legend { margin-top: 0; }
.tune-body { display: flex; margin-top: 8px; }
.tune-y { position: relative; flex: none; width: 40px; font-family: var(--font-mono); font-size: 11px; color: var(--color-ink-2); }
.tune-y span { position: absolute; right: 8px; transform: translateY(-50%); white-space: nowrap; }
.tune-scroll { flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.tune-plot { position: relative; height: 260px; min-width: 620px; }
.tune-zero { position: absolute; left: 0; right: 0; height: 1px; background: var(--color-divider); }
.tune-cursor { display: none; }
.tune-track { position: absolute; width: 0; border-left: 1px solid var(--color-track); z-index: 1; pointer-events: none; }
.tune-track i { position: absolute; left: -1px; width: 2px; margin-left: 0; background: var(--color-accent); }
.tune-curve { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; pointer-events: none; }
.tune-curve path { fill: none; stroke: var(--color-accent); stroke-width: var(--size-line-weight-chart-strong); stroke-linecap: round; stroke-linejoin: round; }
.tune-hz { position: absolute; left: 0; right: 0; bottom: 6px; height: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--color-ink-2); pointer-events: none; }
.tune-hz span { position: absolute; transform: translateX(-50%); }

/* The knob. Its height is the band's value; the element is the thumb, so its box centre is
   the number the curve passes through. The hit area reaches past it. */
.fader {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: var(--size-fader-thumb-w); height: var(--size-fader-thumb-selected-h);
  margin: calc(var(--size-fader-thumb-selected-h) / -2) 0 0 calc(var(--size-fader-thumb-w) / -2);
  touch-action: none; cursor: grab; outline-offset: 4px; border-radius: 6px;
}
.fader::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--size-fader-thumb-h); margin-top: calc(var(--size-fader-thumb-h) / -2);
  border-radius: var(--radius-highlight); background: var(--color-ink);
  transition: height var(--dur-fast) var(--ease-out), margin-top var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.fader::after { content: ""; position: absolute; inset: -8px -3px; }
.fader:hover::before, .fader:focus-visible::before, .fader.is-drag::before { height: var(--size-fader-thumb-selected-h); margin-top: calc(var(--size-fader-thumb-selected-h) / -2); }
.fader.is-drag { cursor: grabbing; }
.fader.is-drag::before { box-shadow: 0 0 0 6px var(--color-accent-tint); }

.tune-sel { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 0 12px; }
.tune-sel p { flex: 1; font-size: 13px; color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.tune-drag { display: none; }
.tune-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-bottom: 14px; }
.tune-lto { display: none; }
.tcard { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; border-radius: var(--radius-sheet); background: var(--color-surface-inner); box-shadow: inset 0 0 0 1px var(--color-hairline); font-size: 11px; color: var(--color-ink-2); }
.tcard-h { font-size: 13px; font-weight: 600; color: var(--color-ink); }
.trow { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.trow .mono { color: var(--color-ink); }
.tslider { position: relative; display: block; height: 2px; margin: 2px 0 6px; border-radius: 1px; background: var(--color-track); }
.tslider::after { content: ""; position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--color-ink); }
.tswitch { position: relative; width: 28px; height: 16px; border-radius: 8px; background: var(--color-accent); }
.tswitch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-ink); }
.win-foot { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--color-hairline); font-size: 11px; color: var(--color-ink-2); }
.win-meter { display: flex; flex-direction: column; gap: 3px; width: 56px; }
.win-meter i { display: block; height: 3px; border-radius: 2px; background: var(--color-signal); }
.win-meter i:last-child { width: 70%; }
.is-off .win-meter i { background: var(--color-track); }
.win-out { margin-left: auto; color: var(--color-ink); }
.win-vol { position: relative; width: 64px; height: 2px; border-radius: 1px; background: var(--color-ink); }
.win-vol i { position: absolute; right: 0; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-ink); }

/* The menu bar panel. */
.menu {
  overflow: hidden; border-radius: var(--radius-window); background: var(--color-stage);
  box-shadow: inset 0 0 0 1px var(--color-hairline-strong), 0 40px 120px -48px var(--color-accent-haze);
}
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--color-hairline); }
.menu-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.menu-brand .mark { width: 22px; height: 22px; }
.menu-power { position: relative; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 13px; background: var(--color-track-off); cursor: pointer; transition: background-color var(--dur-base) var(--ease-out); }
.menu-power[aria-checked="true"] { background: var(--color-accent); }
.menu-power-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-ink); transition: transform var(--dur-base) var(--ease-out); }
.menu-power[aria-checked="true"] .menu-power-knob { transform: translateX(18px); }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 18px; border: 0; background: none; text-align: left; font-size: 14px; color: var(--color-ink-2); }
.menu-group { padding: 6px 0; border-top: 1px solid var(--color-hairline); }
.menu-scene { padding: 12px 18px; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
.menu-scene:hover { background: var(--color-card); }
.menu-val { color: var(--color-ink); white-space: nowrap; }
.menu-dim { color: var(--color-ink-2); }
.menu-cmds .menu-row { color: var(--color-ink); }
.menu-key { color: var(--color-ink-2); font-family: var(--font-mono); font-size: 13px; }
.menu-body { transition: opacity var(--dur-slow) var(--ease-out); }
.menu .menu-brand { transition: opacity var(--dur-slow) var(--ease-out); }
.menu.is-off .menu-body, .menu.is-off .menu-brand { opacity: 0.5; }
.menu.is-off .menu-val, .menu.is-off .menu-cmds .menu-row { color: var(--color-ink-2); }

/* ------------------------------------------------------------------ space */

.space { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.space-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.space-read { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 440px; margin: 8px 0 0; }
.space-read div { padding: 16px 18px; border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-hairline-strong); }
.space-read dt { font-size: 13px; font-weight: 600; }
.space-read dd { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0; font-size: 13px; color: var(--color-ink-2); }
.space-read .num { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; font-feature-settings: "zero" 0; color: var(--color-ink); }
.pad {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-window);
  background: var(--color-paper-1); box-shadow: inset 0 0 0 1px var(--color-hairline-strong);
  touch-action: none; cursor: crosshair; overflow: hidden;
}
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pad-lab { position: absolute; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-ink-2); pointer-events: none; }
.pad-top { top: 14px; left: 50%; transform: translateX(-50%); }
.pad-bottom { bottom: 14px; left: 50%; transform: translateX(-50%); }
.pad-left { left: 14px; top: 50%; transform: translateY(-50%); }
.pad-right { right: 14px; top: 50%; transform: translateY(-50%); }
.puck {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 0; padding: 0; border-radius: 50%; background: none; cursor: grab;
}
.puck::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 6px var(--color-accent-tint), 0 0 24px var(--color-accent-glow); transition: transform var(--dur-fast) var(--ease-out); }
.puck.is-drag::before { transform: scale(1.2); }

/* ------------------------------------------------------------------ flow */

.flow-phone { display: none; }
.flow { margin: 0 auto 56px; max-width: 1120px; }
.flow-svg { display: block; width: 100%; height: auto; overflow: visible; }
.flow-svg text { fill: var(--color-ink); font-family: var(--font-body); font-size: 14px; font-weight: 500; text-anchor: middle; }
.flow-svg .flow-small { fill: var(--color-ink-2); font-size: 11px; font-weight: 400; font-family: var(--font-mono); letter-spacing: 0.04em; }
.flow-svg .flow-brand { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.flow-apps rect, .flow-calls rect { fill: var(--color-paper-2); stroke: var(--color-hairline-strong); }
.flow-node rect { fill: var(--color-card); stroke: var(--color-hairline-strong); }
.flow-node-ew rect { fill: var(--color-accent-fill); stroke: var(--color-accent-line); }
.flow-line { fill: none; stroke: var(--color-track); stroke-width: 1.5; }
.flow-line-calls { stroke: var(--color-divider); stroke-dasharray: 3 5; }
.flow-pulse { fill: none; stroke: var(--color-signal); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0 1000; opacity: 0; }
.js .flow.is-in .flow-pulse { opacity: 1; stroke-dasharray: 22 600; animation: pulse 2.4s linear infinite; filter: drop-shadow(0 0 4px var(--color-signal-glow)); }
.flow-pulse.p2 { animation-delay: -0.6s !important; }
.flow-pulse.p3 { animation-delay: -1.2s !important; }
.flow-pulse.p4 { animation-delay: -1.8s !important; }
@keyframes pulse { from { stroke-dashoffset: 22; } to { stroke-dashoffset: -260; } }

/* Setup: three steps in one plain row, one line each. */
.setup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; }
.setup li { display: flex; flex-direction: column; gap: 8px; }
.setup-n { font-family: var(--font-mono); font-size: 12px; color: var(--color-signal); }
.setup h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.setup p { max-width: 36ch; font-size: 14px; line-height: 1.6; color: var(--color-ink-2); }

/* ------------------------------------------------------------------ comparison */

.table-wrap { border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--color-hairline-strong); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.3; }
.compare .c-label { width: 220px; }
.compare th { font-weight: 500; color: var(--color-ink); }
.compare thead th { height: 60px; padding: 0 24px; text-align: left; font-size: 14px; }
.compare thead th:first-child { font-size: 13px; color: var(--color-ink-2); }
.compare td { padding: 20px 24px; vertical-align: middle; color: var(--color-ink-2); }
.compare tbody th { padding: 20px 24px; vertical-align: middle; text-align: left; font-weight: 500; }
.compare tbody tr { border-top: 1px solid var(--color-hairline); transition: background-color var(--dur-fast) var(--ease-out); }
.compare tbody tr:hover { background: var(--color-paper-1); }
.compare .hl { background: var(--color-accent-fill); }
.compare thead .hl { border-left: 1px solid var(--color-accent-line); }
.compare tbody td.hl { border-left: 1px solid var(--color-accent-line); font-weight: 500; color: var(--color-ink); }
.compare-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.compare-brand .mark { width: 20px; height: 20px; }
/* The phone comparison is built from the table by v6.js: a verdict, one Earwave card
   and a disclosure panel for the other three. It exists only on a phone; without the
   script the table stays, so the facts are never hidden. */
.compare-verdict, .compare-phone { display: none; }

/* ------------------------------------------------------------------ pricing */

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin-inline: auto; }
.price-card {
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: 36px;
  border-radius: var(--radius-window); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-hairline-strong);
}
.price-card-trial::before {
  content: ""; position: absolute; top: 0; right: 56px; width: 180px; height: 2px; border-radius: 2px;
  background: var(--color-accent); box-shadow: 0 0 12px 0 var(--color-accent-glow);
}
.price-label { font-size: 14px; font-weight: 500; color: var(--color-ink-2); }
.price-line { display: flex; align-items: flex-end; gap: 12px; }
.price-num { font-family: var(--font-mono); font-size: 64px; line-height: 1; letter-spacing: -0.05em; }
.price-unit { padding-bottom: 6px; font-size: 16px; color: var(--color-ink-2); }
.price-was { padding-bottom: 6px; font-family: var(--font-mono); font-size: 22px; color: var(--color-ink-2); }
.price-note { font-size: 15px; line-height: 1.55; color: var(--color-ink-2); }
.price-list { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--color-hairline); list-style: none; }
.price-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ic-check { width: 15px; height: 12px; flex: none; color: var(--color-signal); }
.price-card .btn { margin-top: auto; }

/* ------------------------------------------------------------------ faq */

.faq-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 72px; align-items: start; }
.faq-side { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 16px; }
.faq-side > p:not(.eyebrow) { font-size: 16px; color: var(--color-ink-2); }
.faq-mail { font-size: 15px; color: var(--color-ink); text-underline-offset: 4px; }
.faq-item { border-bottom: 1px solid var(--color-hairline-strong); interpolate-size: allow-keywords; }
.faq-item:first-child { border-top: 1px solid var(--color-hairline-strong); }
.faq-item summary {
  position: relative; display: block; padding: 24px 44px 24px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; border-radius: 1px; background: var(--color-ink-2);
  transition: transform var(--morph) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item[open] summary::before, .faq-item[open] summary::after { background: var(--color-accent); }
.faq-item summary:hover { color: var(--color-ink); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size var(--morph) var(--ease-out), content-visibility var(--morph) allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-body p { padding: 0 40px 26px 0; font-size: 15px; line-height: 1.7; color: var(--color-ink-2); }

/* ------------------------------------------------------------------ closing */

.closing { position: relative; margin-top: clamp(120px, 16vh, 180px); display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.closing-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 0 20px; text-align: center; }
.closing h2 { font-size: clamp(48px, 7vw, 104px); line-height: 0.96; letter-spacing: -0.045em; text-wrap: balance; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 8px; }
.closing-meta { font-size: 13px; color: var(--color-ink-2); }
.closing-curve-name { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }
.ccn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 8px var(--color-accent-glow); }
.horizon { display: block; width: 100%; height: 320px; margin-top: 24px; pointer-events: none; }

/* ------------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--color-hairline); }
.foot-inner { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; padding: 64px 0 32px; display: flex; flex-direction: column; gap: 56px; }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.foot-brand p { font-size: 14px; color: var(--color-ink-2); }
.foot-cols { display: flex; gap: 88px; }
.foot-col { display: flex; flex-direction: column; gap: 14px; }
.foot-h { font-size: 13px; font-weight: 500; color: var(--color-ink-2); }
.foot-col a { font-size: 14px; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-mark { display: block; width: 100%; height: auto; margin: -8px 0 -2px; pointer-events: none; user-select: none; }
.foot-mark text { font-family: var(--font-display); font-weight: 700; fill: var(--color-paper-3); }
.foot-base { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--color-ink-2); }

/* ------------------------------------------------------------------ motion */
/* Everything starts visible. Only a page that has JavaScript and has not asked for
   reduced motion hides content, and JS reveals it; .no-motion is set by JS too. */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
  .js [data-reveal] {
    transition: opacity var(--reveal) var(--ease-out), transform var(--reveal) var(--ease-out);
    transition-delay: calc(var(--d, 0) * var(--stagger));
  }
  .js [data-rise] { animation: rise var(--reveal) var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
  .js .closing-copy:not(.is-in) h2 .wi { transform: translateY(105%); }
  .js .closing-copy h2 .wi { transition: transform calc(var(--reveal) * 1.1) var(--ease-out); transition-delay: calc(var(--i) * 80ms); }
  .js .hero-title .wi { animation: word calc(var(--reveal) * 1.1) var(--ease-out) both; animation-delay: calc(var(--i) * 80ms + 60ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes word { from { transform: translateY(105%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .scenes-more, .cmp-track, .cmp-knob, .menu-power-knob, .scene-chev, .fader::before, .compare-chevron { transition: none; }
  .stat-null span { transform: none; }
  .faq-item::details-content { transition: none; }
  .btn:active, .scene:active { transform: none; }
  .js .plays-list.is-ticking { animation: none; }
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat-wide { grid-column: span 2; }
  .faq-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; }
  .nav-links { gap: 22px; }
}

@media (max-width: 960px) {
  :root { --gutter: 28px; }
  .hp { grid-template-columns: 1fr; }
  .space { grid-template-columns: 1fr; gap: 36px; }
  .scenes-more-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tune-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  /* The panel is capped at 420 px: when that is narrower than the column, centre
     it and its caption. At a phone width the panel fills the column, so nothing moves. */
  .menu-fig { width: min(100%, 420px); margin-inline: auto; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
}

@media (min-width: 480px) and (max-width: 960px) {
  .menu-fig figcaption { text-align: center; }
}

@media (max-width: 760px) {
  /* Nav: brand left, a 44px menu button and Download right, on the owner's
     390x120 phone frame. The sheet below is full-screen. */
  .nav-links { display: none; }
  .nav-inner { height: 120px; padding: 38px var(--gutter) 0; gap: 8px; align-items: flex-start; }
  .nav-inner > .brand { min-height: 24px; position: relative; }
  .nav-inner > .brand::after { content: ""; position: absolute; inset: -10px -8px; }
  .nav-menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto; padding: 0; flex: none;
    border: 0; border-radius: var(--radius-card); background: var(--color-paper-2);
    box-shadow: inset 0 0 0 1px var(--color-divider); color: var(--color-ink);
    cursor: pointer;
  }
  .nav-menu-btn svg { width: 18px; height: 8px; }
  html:not(.js) .nav-menu-btn { display: none; }
  html:not(.js) .nav-noscript {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; margin-left: auto; padding: 0 16px; flex: none;
    border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--color-divider);
    font-size: 14px; font-weight: 600; color: var(--color-ink); text-decoration: none;
  }
  .btn-nav { height: 44px; padding: 0 20px; }
  html.is-menu-open, html.is-menu-open body { overflow: hidden; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
    padding: 24px var(--gutter); background: var(--color-stage); overflow-y: auto;
  }
  .nav-menu[hidden] { display: none; }
  .nav-menu:focus, .nav-menu:focus-visible { outline: none; }
  .nav-menu-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
  .nav-menu-top .brand { min-height: 24px; position: relative; }
  .nav-menu-top .brand::after { content: ""; position: absolute; inset: -10px -8px; }
  .nav-menu-close {
    display: grid; place-items: center; width: 44px; height: 44px; flex: none;
    padding: 0; border: 0; border-radius: var(--radius-pill);
    background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-divider);
    color: var(--color-ink); cursor: pointer;
  }
  .nav-menu-close svg { width: 18px; height: 18px; }
  .nav-menu-links { display: flex; flex-direction: column; margin-top: 48px; }
  .nav-menu-links a {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 72px; border-bottom: 1px solid var(--color-hairline-strong);
    font-family: var(--font-display); font-size: 18px; font-weight: 500;
    color: var(--color-ink); text-decoration: none;
  }
  .nav-menu-links a::after { content: "\203A"; font-family: var(--font-body); font-size: 20px; color: var(--color-ink-2); }
  .nav-menu-cta { display: flex; align-items: center; justify-content: center; margin-top: 24px; min-height: 52px; font-size: 16px; text-align: center; }
  .nav-menu-note { margin-top: 24px; font-size: 14px; line-height: 1.43; color: var(--color-ink-2); text-align: center; }
  .inst { padding: 16px; container-type: inline-size; }
  .inst-note { margin-left: 16px; }
  /* One row that always shows n whole cards and 0.4 of the next, for any width:
     card = (row width from the 16px left inset to the panel edge - 6px per gap * n) / (n + 0.4).
     100cqi is the card's content width (.inst), so + 16 is that visible run. The bands pick
     the largest n that keeps the card near 88-110px. */
  .scenes {
    --scene-gap: 6px;
    --scene-w: calc((100cqi - 2px) / 3.4);
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--scene-w);
    gap: var(--scene-gap); margin-inline: -16px; padding: 0 16px 4px;
    overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 16px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  }
  .scenes::-webkit-scrollbar { display: none; }
  .scenes.is-at-end, .scenes.no-overflow { -webkit-mask-image: none; mask-image: none; }
  .scene { height: 64px; padding: 6px 6px 9px; border-radius: var(--radius-card); gap: 0; scroll-snap-align: start; }
  .scene-curve { height: 16px; margin-top: 4px; }
  .scene-name { gap: 4px; font-size: 14px; line-height: 18px; }
  .scene-check { width: 10px; height: 8px; }
  .scene-more { justify-content: center; gap: 2px; }
  .scenes-total { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 14px; line-height: 18px; color: var(--color-ink-2); text-align: right; }
  .scenes-more-in { margin-inline: -2px; }
  .sound { padding: 16px 14px 14px; }
  .sound-head { flex-wrap: wrap; row-gap: 10px; }
  .sound-tools { gap: 16px; flex-wrap: wrap; }
  .plot { grid-template-columns: 36px minmax(0, 1fr); }
  .plot-y { font-size: 10px; }
  .plot-area { height: 220px; }
  /* Tune: one card with every band on one 20 Hz-20 kHz plot. The 31 faders stay
     in the DOM (and on the curve); the selected one is the only visible handle. */
  .win { overflow: visible; border-radius: 0; background: none; box-shadow: none; }
  .win-top, .win-foot { display: none; }
  .win-body { padding: 0; }
  .tune-card { padding: 16px; border-radius: var(--radius-sheet); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-hairline-strong); }
  /* Two rows: Tune and a quiet outline Flatten on the first, the scene line on the second. */
  .tune-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
  .tune-head h3 { flex: 1 1 auto; font-size: 22px; line-height: 1.09; }
  .tune-head .pill { position: relative; flex: none; margin-left: auto; min-height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: transparent; box-shadow: inset 0 0 0 1px var(--color-divider); font-size: 14px; }
  .tune-head .pill::after { content: ""; position: absolute; inset: -8px -6px; }
  .tune-editing { flex: 1 0 100%; order: 2; margin-left: 0; font-size: 14px; line-height: 20px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tune-panel { margin-top: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .tune-panel .sound-legend { display: none; }
  .tune-body { margin-top: 12px; }
  .tune-y { width: 36px; margin-right: 6px; font-size: 14px; line-height: 20px; }
  .tune-y span { right: 0; }
  .tune-y span[data-y="0"] { color: var(--color-ink); }
  .tune-scroll { overflow: visible; }
  .tune-plot { height: 240px; min-width: 0; touch-action: pan-y; }
  .tune-track i { display: none; }
  .tune-cursor { display: block; position: absolute; top: 12px; bottom: 36px; width: 2px; margin-left: -1px; z-index: 1; background: var(--color-accent); }
  .tune-hz { bottom: 6px; height: 20px; font-size: 14px; line-height: 20px; }
  .tune-hz span:first-child { transform: none; }
  .tune-hz span:last-child { transform: translateX(-100%); }
  .tune-hz span:nth-child(2), .tune-hz span:nth-child(4), .tune-hz span:nth-child(5),
  .tune-hz span:nth-child(7), .tune-hz span:nth-child(8), .tune-hz span:nth-child(9) { display: none; }
  /* The 31 faders stay in the DOM (and on the curve). Their boxes are the phone
     audit's 44 px targets; the plot, which they bubble to, is the gesture surface. */
  .fader { width: 8px; margin-left: -4px; touch-action: pan-y; }
  .fader::before { opacity: 0; }
  .fader.is-selected::before, .fader:focus-visible::before, .fader.is-drag::before { opacity: 1; }
  .fader.is-selected::before {
    left: 50%; right: auto; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
    border-radius: 50%; background: var(--color-ink); box-shadow: 0 0 0 5px var(--color-accent-halo);
  }
  .fader::after { inset: -18px 0; }
  .tune-sel { flex-wrap: nowrap; gap: 8px; margin-top: 8px; padding: 0 16px 0 0; min-height: 44px; }
  .tune-sel p { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 16px; font-weight: 500; color: var(--color-ink); }
  .tune-step { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: var(--radius-pill); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-divider); font-size: 18px; color: var(--color-ink); }
  .tune-step .step-db { display: none; }
  .tune-step::after { display: none; }
  .tune-reset { display: none; }
  .tune-drag { display: block; margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--color-ink-2); }
  /* One compact card replaces the three slider cards on a phone. */
  .tune-cards { display: none; }
  .tune-lto { display: block; margin-top: 16px; padding: 16px; border-radius: var(--radius-sheet); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-hairline-strong); }
  .tune-lto-h { font-size: 15px; font-weight: 600; line-height: 20px; color: var(--color-ink); }
  .tune-lto-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 22px; margin-top: 19px; }
  .tune-lto-grid p { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; line-height: 20px; color: var(--color-ink-2); }
  .tune-lto-grid .mono { color: var(--color-ink); }
  /* Space: copy, readouts and pad are one column, both edges shared. The pad is square
     up to 420 tall; its side labels ride the drawing's audience line. Reset keeps its
     44 px row reserved in both states, so appearing never pushes the pad down. */
  .space { gap: 24px; }
  .space-copy { gap: 16px; align-items: stretch; }
  #space .eyebrow { font-size: 14px; }
  #space .space-copy h2 { font-size: 34px; line-height: 1.06; letter-spacing: -1.2px; }
  #space .sec-sub-left { max-width: none; font-size: 16px; line-height: 1.5; }
  .space-read { max-width: none; gap: 16px; }
  .space-read div { padding: 16px; }
  .space-read dt, .space-read dd { line-height: 1.43; }
  .space-read dd { gap: 8px; }
  .space-read .num { line-height: 1.18; }
  .space-reset { display: flex; align-items: center; justify-content: center; height: 44px; }
  .space-reset .btn { height: 44px; min-height: 44px; padding: 0 16px; }
  .space-reset .btn[hidden] { display: none; }
  .pad { width: 100%; aspect-ratio: 1 / 1; max-height: 420px; }
  .pad-lab { font-size: 14px; letter-spacing: 1.2px; }
  .pad-left, .pad-right { top: 76%; }
  .setup { grid-template-columns: 1fr; gap: 28px; }
  .plays { flex-wrap: wrap; gap: 14px 20px; }
  .plays-track { order: 3; flex-basis: 100%; }
  /* The numbers, from the owner's N1 spec rows: one stat per row on a hairline,
     the figure in a fixed 110 px column, its label above the caption beside it. */
  .stats { grid-template-columns: 1fr; row-gap: 0; }
  .stat {
    display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 16px; row-gap: 6px;
    align-items: start; min-height: 0; padding: 18px 0; border-left: 0;
  }
  .stat:not(:last-child) { border-bottom: 1px solid var(--color-hairline-strong); }
  .stat dt { grid-column: 2; grid-row: 1; line-height: 1.29; }
  .stat dd { display: contents; }
  .stat .num { grid-column: 1; grid-row: 1 / span 2; font-size: 48px; letter-spacing: -0.02em; }
  .stat .cap { grid-column: 2; grid-row: 2; line-height: 1.5; text-wrap: pretty; }
  .stat:nth-child(4) .cap { text-wrap: balance; }
  .stat-wide { grid-column: auto; }
  .fineprint { margin-top: 20px; text-align: left; text-wrap: pretty; }
  .sec-head-split { grid-template-columns: 1fr; }
  .sec-head-split .sec-sub { justify-self: start; }
  .stat-viz { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card { padding: 28px 24px; }
  .price-card-trial::before { right: auto; left: 50%; transform: translateX(-50%); }
  /* How it works: the 1120px diagram becomes a vertical flow, nothing off-screen. */
  .flow { display: none; }
  .flow-phone { display: block; width: min(100%, 390px); margin: 0 auto 40px; }
  .flow-phone-svg { display: block; width: 100%; height: auto; overflow: visible; }
  .flow-phone text { fill: var(--color-ink); font-family: var(--font-body); font-size: 15px; font-weight: 500; text-anchor: middle; }
  .flow-phone .fp-mono { fill: var(--color-ink-2); font-family: var(--font-mono); font-size: 14px; font-weight: 400; letter-spacing: 0.6px; }
  .flow-phone .fp-strong { font-size: 16px; }
  .flow-phone .fp-brand { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
  .flow-phone .fp-calls { font-size: 14px; font-weight: 400; fill: var(--color-ink-2); text-anchor: start; }
  .flow-phone .fp-apps rect { fill: var(--color-paper-2); stroke: var(--color-hairline-strong); }
  .flow-phone .fp-node rect { fill: var(--color-card); stroke: var(--color-hairline-strong); }
  .flow-phone .fp-ew rect { fill: var(--color-accent-fill); stroke: var(--color-accent-line); }
  .flow-phone .fp-line { fill: none; stroke: var(--color-track); stroke-width: 1.5; }
  .flow-phone .fp-dash { stroke: var(--color-divider); stroke-dasharray: 3 5; }
  .flow-phone .fp-stem { fill: var(--color-track); }
  .flow-phone .fp-halo { fill: var(--color-signal); opacity: 0.18; }
  .flow-phone .fp-dot { fill: var(--color-signal); }
  #how .sec-head { margin-bottom: 50px; }
  #tune .sec-head { margin-bottom: 38px; }
  #how .eyebrow, #tune .eyebrow { font-size: 14px; }
  #how .sec-head h2, #tune .sec-head h2 { font-size: 34px; line-height: 1.06; letter-spacing: -1.2px; text-wrap: wrap; }
  #how .phone-br, #tune .phone-br { display: inline; }
  #how .sec-sub, #tune .sec-sub { font-size: 16px; line-height: 1.5; text-wrap: wrap; }
  #tune .tune-fig figcaption { display: none; }
  .foot-top { flex-direction: column; }
  .foot-cols { flex-wrap: wrap; gap: 32px 48px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .hero-meta { margin-top: 0; }
  .horizon { height: 200px; }
  .inst-wrap { margin-top: 136px; }
  .js .hero-actions .btn-hero.is-share ~ .btn-ghost { display: none; }
  .js .hero-copy:has(.is-share) .hero-note,
  .js .closing-copy:has(.is-share) .closing-note { display: block; }

  /* Comparison stacks into one card per row, Earwave first. */
  .table-wrap { box-shadow: none; overflow: visible; }
  .compare-responsive, .compare-responsive tbody, .compare-responsive tr, .compare-responsive th, .compare-responsive td { display: block; width: 100%; }
  .compare-responsive thead, .compare-responsive colgroup { display: none; }
  .compare-responsive tbody tr { display: flex; flex-direction: column; margin-bottom: 12px; border: 0; border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-hairline-strong); overflow: hidden; }
  .compare-responsive tbody th { padding: 16px 18px 8px; font-size: 15px; }
  .compare-responsive td { padding: 6px 18px; }
  .compare-responsive td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--color-ink-2); }
  .compare-responsive td.hl { margin: 4px 0 6px; padding: 10px 18px; border-left: 0; }
  .compare-responsive td:last-child:not(.hl), .compare-responsive tr > td:nth-last-child(2) { padding-bottom: 14px; }

  /* Comparison, phone: centred head, verdict, a disclosure pill, the Earwave card,
     then the other three in an inset panel. Stays readable with no JavaScript: the
     built view is only shown once the script has filled it. */
  #why .sec-head-split { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; text-align: center; }
  #why .sec-head-split .sec-sub { justify-self: center; text-wrap: balance; }
  .compare-verdict {
    display: block; margin-top: 24px;
    font-size: 15px; line-height: 1.5; color: var(--color-ink-2);
    text-align: center; text-wrap: balance;
  }
  .has-compare-phone .table-wrap { display: none; }
  .has-compare-phone .compare-phone { display: block; }
  .compare-more-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 48px; margin-top: 20px; padding: 10px 18px;
    background: transparent; border: 1px solid var(--color-divider);
    border-radius: var(--radius-pill); color: var(--color-ink);
    font-size: 14px; line-height: 1.3; text-align: center; cursor: pointer;
  }
  .compare-more-btn:hover { background: var(--color-surface-inner); }
  .compare-more-btn[aria-expanded="true"] .compare-more-when-closed,
  .compare-more-btn[aria-expanded="false"] .compare-more-when-open { display: none; }
  .compare-chevron { width: 12px; height: 8px; flex: none; transition: transform var(--dur-fast) var(--ease-out); }
  .compare-more-btn[aria-expanded="true"] .compare-chevron { transform: rotate(180deg); }
  .compare-card, .compare-panel {
    margin-top: 20px; border-radius: var(--radius-card);
    background: var(--color-paper-2);
    box-shadow: inset 0 0 0 1px var(--color-hairline-strong);
    overflow: hidden;
  }
  .compare-panel { margin-top: 12px; }
  .compare-card-head {
    display: flex; align-items: center; gap: 10px; padding: 14px 18px;
    background: var(--color-accent-fill);
    border-bottom: 1px solid var(--color-hairline-strong);
    font-family: var(--font-display); font-size: 16px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
  }
  .compare-card-head .mark { width: 22px; height: 22px; flex: none; color: var(--color-accent); }
  .compare-card-row { padding: 14px 18px; }
  .compare-card-row + .compare-card-row { border-top: 1px solid var(--color-hairline); }
  .compare-card-label { font-size: 14px; line-height: 1.3; color: var(--color-ink-2); }
  .compare-card-value { margin-top: 4px; font-size: 16px; line-height: 1.35; font-weight: 500; }
  .compare-group { padding: 16px 18px; }
  .compare-group + .compare-group { border-top: 1px solid var(--color-hairline); }
  .compare-group h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
  .compare-line, .compare-shared-label, .compare-shared-value { font-size: 14px; line-height: 1.4; }
  .compare-line { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; margin-top: 8px; }
  .compare-name { color: var(--color-ink-2); }
  .compare-value { color: var(--color-ink); }
  .compare-shared-label { margin-top: 10px; color: var(--color-ink-2); }
  .compare-shared-value { margin-top: 2px; color: var(--color-ink); }
  #why .fineprint { text-align: left; }

  /* Touch: every small control gets a 44px tap area; the drawn size does not change. */
  .btn-nav, .btn-small { min-height: 44px; }
  .foot-col a, .faq-mail, .brand { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
  .chip { position: relative; }
  .chip::after { content: ""; position: absolute; inset: -6px 0; }
  .chips { row-gap: 12px; }
  .switch { min-height: 44px; }
  .cmp, .sound-link { min-height: 44px; }
  .sound-link { display: inline-flex; align-items: center; }
  .menu-power, button.pill { position: relative; }
  .menu-power::after, button.pill::after { content: ""; position: absolute; }
  .menu-power::after { inset: -9px -4px; }
  button.pill::after { inset: -6px -4px; }
  .fader::after { inset: -18px 0; }
  .tune-sel .tune-step { font-size: 18px; }
  .hp-list li { min-height: 44px; align-items: center; }
  .skip-link { min-height: 44px; }

  /* Reading size on a phone: body copy and fine print at 14px. Mono eyebrows and
     axis labels are deliberately left small. */
  .hero-note, .closing-note, .hero-meta, .inst-note, .scene, .scene-count, .cmp,
  .sound-link, .sound-legend, .plays-label, .stat dt, .stat .cap, .fineprint, .chip,
  .chips .chip-more, .hp-src, .hp-meta, .switch, .hp-note, .tune-editing, .pill,
  .tune-fig figcaption, .menu-fig figcaption, .space-read dt, .space-read dd,
  .btn-small, .closing-meta, .foot-h, .foot-base { font-size: 14px; }
  .compare-responsive td::before { font-size: 14px; }
}

@media (min-width: 421px) and (max-width: 760px) {
  #space .space-copy h2 { font-size: 40px; line-height: 1.05; letter-spacing: -1.4px; }
}

/* The scenes row's n, by width: the largest whole number that keeps the card near 88-110px
   while the peek stays exactly 0.4 of a card. Formulas are (100cqi + 16 - 6n) / (n + 0.4). */
@media (max-width: 340px) {
  .scenes { --scene-w: calc((100cqi + 4px) / 2.4); }
}
@media (min-width: 472px) and (max-width: 760px) {
  .scenes { --scene-w: calc((100cqi - 8px) / 4.4); }
}
@media (min-width: 578px) and (max-width: 760px) {
  .scenes { --scene-w: calc((100cqi - 14px) / 5.4); }
}
@media (min-width: 672px) and (max-width: 760px) {
  .scenes { --scene-w: calc((100cqi - 20px) / 6.4); }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .hero-title { font-size: 46px; }
}
