/*
 * Translucid page. The palette is the app's own (voice_translator/Glassmorphism.swift) and keeps
 * one meaning everywhere: cyan is what was heard, violet is what it means, red is the app lock.
 * Glass is used only where the app has glass: the lens, the subtitle windows and the panels.
 * Type: Geologica for the page, the system UI font for anything the app itself would draw
 * (its texts come in 17 scripts, which only system fonts cover).
 */

:root {
  color-scheme: dark;

  --ink: #05070c;
  --ink-2: #0a0d14;
  --panel: #11151e;
  --panel-2: #181d28;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);

  --text: #eef2f7;
  --soft: #c5ccd8;
  --muted: #98a2b3;
  --faint: #6f7a8c;

  --heard: #6deeff;
  --heard-hot: #00f0ff;
  --heard-bg: rgba(109, 238, 255, .1);
  --heard-line: rgba(109, 238, 255, .42);

  --meant: #b39bff;
  --meant-hot: #7d31fc;
  --meant-bg: rgba(125, 49, 252, .16);
  --meant-line: rgba(160, 130, 255, .5);

  --lock: #ff6259;
  --lock-bg: rgba(255, 98, 89, .13);
  --lock-line: rgba(255, 98, 89, .6);

  --display: 'Geologica', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, 'Noto Sans', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(18px, 4.4vw, 56px);
  --maxw: 1180px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

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

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

body {
  margin: 0;
  font: 350 1.0625rem/1.62 var(--display);
  font-variation-settings: 'SHRP' 0;
  color: var(--soft);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
picture,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
select,
input {
  font: inherit;
  color: inherit;
}

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

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

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

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

/* ---------- Atmosphere: the same two lights as the App Store art ---------- */

.aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(95vmax 70vmax at -12% -18%, rgba(6, 62, 72, .9), transparent 58%),
    radial-gradient(90vmax 75vmax at 112% 118%, rgba(43, 6, 98, .82), transparent 56%),
    var(--ink);
}

/* Grain keeps the two dark gradients from banding */
.aura::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Top bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}

.bar.stuck {
  background: rgba(5, 7, 12, .62);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 4px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .86rem;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.get-btn {
  margin-left: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s var(--ease-out), background-color .2s ease;
}

.get-btn:active,
.badge:active,
.toggle:active .toggle-track,
.lang:active {
  transform: scale(.97);
}

@media (hover: hover) and (pointer: fine) {
  .back:hover,
  .nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .07);
  }

  .get-btn:hover {
    background: var(--heard);
  }
}

/* ---------- Reveal: everything comes into focus, the way frosted glass clears ---------- */

.js .fx {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(12px);
  transition:
    opacity .9s var(--ease-out),
    filter .9s var(--ease-out),
    transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .fx.in {
  opacity: 1;
  filter: none;
  transform: none;
}

/* Headlines also sharpen: Geologica's own Sharpness axis runs from soft to crisp */
.js h1.fx,
.js h2.fx {
  font-variation-settings: 'SHRP' 0;
  transition:
    opacity .9s var(--ease-out),
    filter .9s var(--ease-out),
    transform .9s var(--ease-out),
    font-variation-settings 1.3s var(--ease-out) .1s;
}

h1,
h2,
.js h1.fx.in,
.js h2.fx.in {
  font-variation-settings: 'SHRP' 100;
}

/* ---------- Cue marker: the six store headlines are the page's six subtitle cues ---------- */

.cue {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  font: 500 .74rem/1 var(--mono);
  letter-spacing: .03em;
  color: var(--faint);
}

.cue-n {
  color: var(--heard);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(28px, 5.5vh, 64px);
}

/* The headline on the left, what it means and the button on the right: the copy stays short
   so the stage under it is on screen from the first second */
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas:
    'cue  cue'
    'head lede'
    'head get';
  column-gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.hero-copy .cue {
  grid-area: cue;
}

h1 {
  grid-area: head;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -.038em;
  color: var(--text);
}

.lede {
  --i: 1;
  grid-area: lede;
  align-self: start;
  max-width: 50ch;
  padding-top: .5rem;
  font-size: clamp(1.02rem, 1.25vw, 1.12rem);
  line-height: 1.55;
}

.get {
  --i: 2;
  grid-area: get;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 22px;
  padding-bottom: .4rem;
}

.badge {
  display: inline-block;
  border-radius: 9px;
  transition: transform .16s var(--ease-out), opacity .2s ease;
}

.badge img {
  width: 203px;
  height: 52px;
}

@media (hover: hover) and (pointer: fine) {
  .badge:hover {
    opacity: .86;
  }
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: .92rem;
  color: var(--muted);
}

.facts li + li::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 12px .22em;
  border-radius: 50%;
  background: var(--faint);
}

/* ---------- The stage: sound on the left, a pane of glass, meaning on the right ---------- */

.stage {
  --i: 3;
  --lens-w: clamp(64px, 7vw, 96px);
  --wave-h: clamp(150px, 20vw, 210px);
  position: relative;
  display: grid;
  --side: calc((var(--maxw) - var(--lens-w)) / 2);
  --air: clamp(18px, 3.4vw, 52px);
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    minmax(0, var(--side))
    var(--lens-w)
    minmax(0, var(--side))
    minmax(var(--gutter), 1fr);
  grid-template-rows: auto var(--wave-h) auto;
  margin-top: clamp(30px, 5vh, 56px);
  font-family: var(--ui);
}

.stage-wave {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 100%;
}

.stage-heard {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 6.6rem;
  padding: 0 var(--air) 4px 0;
}

.stage-pick {
  grid-column: 4;
  grid-row: 1;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  /* The line is calm on this side, so the label and the text can sit close to it */
  margin-bottom: calc(var(--wave-h) * -.26);
  padding: 0 0 0 var(--air);
}

.stage-source {
  grid-column: 2;
  grid-row: 3;
  padding-top: 12px;
}

.stage-meant {
  grid-column: 4;
  grid-row: 3;
  min-height: 8.6rem;
  margin: calc(var(--wave-h) * -.3) 0 0 var(--air);
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--meant-hot);
  box-shadow: -14px 0 26px -18px var(--meant-hot);
}

.tag {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font: 600 .74rem/1 var(--display);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.tag-heard {
  color: var(--heard);
}

.tag-heard i {
  background: var(--heard-hot);
  box-shadow: 0 0 12px var(--heard-hot);
}

.tag-meant {
  margin-bottom: 0;
  color: var(--meant);
}

.tag-meant i {
  background: var(--meant-hot);
  box-shadow: 0 0 12px var(--meant-hot);
}

.heard-text {
  font-size: clamp(1.02rem, 1.55vw, 1.26rem);
  line-height: 1.42;
  color: #dffaff;
}

.meant-text {
  font-size: clamp(1.22rem, 2.05vw, 1.62rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.008em;
  color: #fff;
}

/* Words and sentences are laid out from the start and only made visible, so nothing reflows */
.w,
.s {
  opacity: 0;
  filter: blur(7px);
  transition: opacity .42s var(--ease-out), filter .42s var(--ease-out), color .9s ease;
}

.s {
  transition-duration: .7s, .7s, .9s;
}

.w.on,
.s.on {
  opacity: 1;
  filter: none;
}

.w.now {
  color: var(--heard);
}

.lens {
  grid-column: 3;
  grid-row: 1 / 4;
  position: relative;
  margin-block: -6px -10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .17);
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .025) 42%, rgba(255, 255, 255, .07));
  -webkit-backdrop-filter: blur(9px) saturate(1.7) brightness(1.18);
  backdrop-filter: blur(9px) saturate(1.7) brightness(1.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    inset 14px 0 30px -18px rgba(0, 240, 255, .5),
    inset -14px 0 30px -18px rgba(125, 49, 252, .7),
    0 40px 90px -40px rgba(0, 0, 0, .9);
  overflow: hidden;
}

/* A sentence passing through lights the glass once */
.lens-glint {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 34% at 50% 50%, rgba(255, 255, 255, .42), transparent 70%);
  opacity: 0;
  transition: opacity 1.1s ease;
}

.lens.lit .lens-glint {
  opacity: 1;
  transition-duration: .18s;
}

.listen {
  font: 500 .82rem/1.2 var(--ui);
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline: 4px 2px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--heard-line);
  background: var(--heard-bg);
  color: #e5fcff;
  font-weight: 600;
  vertical-align: middle;
  transition: border-color .3s ease, background-color .3s ease;
}

.pill svg {
  width: 13px;
  height: 13px;
  fill: var(--heard);
}

.dotsep::before {
  content: '·';
  margin-inline: 4px 6px;
}

/* ---------- Selects ---------- */

.select {
  position: relative;
  display: inline-flex;
}

.select select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 34px 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--meant-line);
  background: var(--meant-bg);
  color: #fff;
  font: 600 .95rem/1.2 var(--ui);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.select::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: solid var(--meant);
  border-width: 0 1.8px 1.8px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-inline select {
  padding-block: 3px;
  font-size: .92rem;
}

@media (hover: hover) and (pointer: fine) {
  .select select:hover {
    border-color: var(--meant);
    background: rgba(125, 49, 252, .26);
  }
}

/* ---------- Sections ---------- */

.sec {
  padding-top: clamp(96px, 15vh, 176px);
}

.head {
  max-width: 34rem;
}

.head-wide {
  max-width: 46rem;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 620;
  line-height: 1.03;
  letter-spacing: -.032em;
  color: var(--text);
  text-wrap: balance;
}

.sub {
  --i: 1;
  margin-top: 20px;
  font-size: clamp(1.03rem, 1.3vw, 1.14rem);
}

.fine {
  --i: 2;
  margin-top: 18px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.split-flip {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.keys {
  white-space: nowrap;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.62em;
  height: 1.62em;
  margin-inline: 1.5px;
  padding: 0 .32em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  font: 500 .8em/1 var(--ui);
  vertical-align: .06em;
}

/* ---------- The app window ---------- */

.window {
  margin-top: clamp(40px, 6vh, 64px);
}

.window-shot {
  position: relative;
  filter: drop-shadow(0 50px 70px rgba(0, 0, 0, .62));
}

.window-shot img {
  width: 100%;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .window-shot {
      transform-origin: 50% 100%;
      animation: window-rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 42%;
    }
  }
}

@keyframes window-rise {
  from {
    transform: perspective(1500px) rotateX(16deg) scale(.9);
  }

  to {
    transform: perspective(1500px) rotateX(0deg) scale(1);
  }
}

.mk {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: var(--text);
  color: var(--ink);
  font: 700 .74rem/1 var(--ui);
  font-style: normal;
  box-shadow: 0 0 0 4px rgba(5, 7, 12, .55), 0 6px 18px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease-out), background-color .3s ease;
}

.mk::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid var(--heard);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s ease, transform .5s var(--ease-out);
}

.mk.hot {
  background: var(--heard);
  transform: scale(1.14);
}

.mk.hot::after {
  opacity: 1;
  transform: scale(1);
}

.notes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(30px, 5vh, 48px);
  counter-reset: note;
  border-top: 1px solid var(--line);
}

.notes li {
  position: relative;
  padding: 20px 20px 4px 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--muted);
  counter-increment: note;
  transition: color .3s ease;
}

.notes li + li {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.notes li::before {
  content: counter(note);
  display: block;
  margin-bottom: 10px;
  font: 500 .74rem/1 var(--mono);
  color: var(--faint);
  transition: color .3s ease;
}

.notes b {
  color: var(--text);
  font-weight: 560;
}

.notes li.hot {
  color: var(--soft);
}

.notes li.hot::before {
  color: var(--heard);
}

/* ---------- Subtitles over any window ---------- */

.screen-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: #000;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9);
  font-family: var(--ui);
}

.screen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 38s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1.04) translate(-1%, .6%);
  }

  to {
    transform: scale(1.13) translate(1.4%, -1.2%);
  }
}

.player {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 34px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  color: #fff;
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
}

.player-pause {
  width: 11px;
  height: 13px;
  border-inline: 3.5px solid #fff;
}

.player-track {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .28);
}

.player-track i {
  position: relative;
  display: block;
  width: 43.1%;
  height: 100%;
  border-radius: 3px;
  background: #fff;
}

.player-track i::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -3.5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.subwin {
  --pt: 15;
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 17%;
  padding: 13px 18px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(30, 32, 40, .56);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1);
  color: #fff;
  text-align: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow .25s ease, border-color .4s ease, background-color .4s ease;
}

.subwin.drag {
  cursor: grabbing;
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 30px 60px -14px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.subwin-grip,
.pagesubs-grip {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 30px;
  height: 3px;
  margin-left: -15px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .34);
}

/* Between sentences the window stays where it is and waits, as it does in the app */
.subwin.idle {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(30, 32, 40, .34);
}

.subwin.idle .subwin-text::before {
  content: '· · ·';
  color: rgba(255, 255, 255, .45);
}

.subwin-text {
  min-height: 2.6em;
  font-size: calc(var(--pt) * var(--k, 1) * 1px);
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}

.screen figcaption {
  margin-top: 14px;
  font-size: .88rem;
  color: var(--muted);
}

.screen figcaption b {
  color: var(--meant);
  font-weight: 560;
}

.knobs {
  --i: 2;
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.knob {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: baseline;
  font-size: .95rem;
  color: var(--text);
}

.knob output {
  font: 500 .86rem/1 var(--mono);
  color: var(--heard);
}

.knob input {
  grid-column: 1 / -1;
}

input[type='range'] {
  --fill: 25%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--heard) var(--fill), rgba(255, 255, 255, .16) var(--fill));
}

input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--heard) var(--fill), rgba(255, 255, 255, .16) var(--fill));
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  transition: transform .16s var(--ease-out);
}

input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

input[type='range']:active::-webkit-slider-thumb {
  transform: scale(1.18);
}

.knobs .fine {
  margin-top: 0;
}

.pagenote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 36px;
  margin-top: clamp(44px, 7vh, 72px);
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .028);
}

.pagenote p {
  max-width: 62ch;
  font-size: .98rem;
}

.pagenote b {
  color: var(--text);
  font-weight: 560;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.toggle-track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  transition: background-color .25s ease, transform .16s var(--ease-out);
}

.toggle-track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  transition: transform .26s var(--ease-out);
}

.toggle[aria-pressed='true'] .toggle-track {
  background: var(--meant-hot);
}

.toggle[aria-pressed='true'] .toggle-track i {
  transform: translateX(18px);
}

/* ---------- What it listens to: two texts scroll past one mixer ---------- */

.sources {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.sources-copy .sec {
  display: flex;
  align-items: center;
  min-height: 82vh;
}

.sources-copy .sec + .sec {
  padding-top: 0;
}

/* Pinned high, so the page's own subtitle bar has the bottom of the screen to itself */
.mixer-rail {
  position: sticky;
  top: 84px;
  margin-top: clamp(96px, 15vh, 176px);
}

.apps {
  --i: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 22px;
  font-size: .95rem;
  color: var(--text);
}

.apps li:not(:last-child)::after {
  content: '·';
  margin-inline: 9px;
  color: var(--faint);
}

.sources .fine {
  --i: 3;
}

.mixer {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(26, 30, 40, .78), rgba(13, 16, 23, .82));
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .08);
  font-family: var(--ui);
}

.mixer-head {
  padding: 2px 2px 14px;
}

.mixer .pill {
  position: relative;
}

.pill-ico {
  width: 13px;
  height: 13px;
  background: var(--heard);
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
  transition: background-color .3s ease;
}

.pill-txt {
  transition: opacity .18s ease, filter .18s ease;
}

.pill.swap .pill-txt {
  opacity: 0;
  filter: blur(3px);
}

.mixer {
  --ico-mic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5a2.25 2.25 0 0 0-2.25 2.25v3.5a2.25 2.25 0 0 0 4.5 0v-3.5A2.25 2.25 0 0 0 8 1.5Zm-4.5 5.6a.65.65 0 0 1 1.3 0 3.2 3.2 0 0 0 6.4 0 .65.65 0 0 1 1.3 0 4.5 4.5 0 0 1-3.85 4.45V13.4h1.6a.65.65 0 0 1 0 1.3h-4.5a.65.65 0 0 1 0-1.3h1.6v-1.85A4.5 4.5 0 0 1 3.5 7.1Z'/%3E%3C/svg%3E");
  --ico-all: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7.6 2.2a.7.7 0 0 1 1.1.6v10.4a.7.7 0 0 1-1.1.6L4.3 11H2.5A1.5 1.5 0 0 1 1 9.5v-3A1.5 1.5 0 0 1 2.5 5h1.8l3.3-2.8Zm3.3 3a.65.65 0 0 1 .9.1 4.3 4.3 0 0 1 0 5.4.65.65 0 1 1-1-.8 3 3 0 0 0 0-3.8.65.65 0 0 1 .1-.9Zm1.9-2a.65.65 0 0 1 .9.1 7.6 7.6 0 0 1 0 9.4.65.65 0 1 1-1-.8 6.3 6.3 0 0 0 0-7.8.65.65 0 0 1 .1-.9Z'/%3E%3C/svg%3E");
  --ico-call: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.9 1.7 5 1.4c.6-.2 1.2.1 1.4.7l.8 2c.2.5 0 1-.3 1.3l-1 .9a8.3 8.3 0 0 0 3.8 3.8l.9-1c.3-.4.8-.5 1.3-.3l2 .8c.6.2.9.8.7 1.4L14.3 12c-.3 1.2-1.4 2-2.6 1.8A11.8 11.8 0 0 1 2.2 4.3C2 3.1 2.8 2 3.9 1.7Z'/%3E%3C/svg%3E");
  --ico-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.2a3.3 3.3 0 0 0-3.3 3.3v1.8h-.4A1.5 1.5 0 0 0 2.8 7.8v5a1.5 1.5 0 0 0 1.5 1.5h7.4a1.5 1.5 0 0 0 1.5-1.5v-5a1.5 1.5 0 0 0-1.5-1.5h-.4V4.5A3.3 3.3 0 0 0 8 1.2Zm1.9 5.1H6.1V4.5a1.9 1.9 0 0 1 3.8 0v1.8Z'/%3E%3C/svg%3E");
}

.mixer[data-mode='mic'] .pill-ico {
  --ico: var(--ico-mic);
}

.mixer[data-mode='all'] .pill-ico {
  --ico: var(--ico-all);
}

.mixer[data-mode='auto'] .pill-ico {
  --ico: var(--ico-call);
}

.mixer[data-mode='lock'] .pill-ico {
  --ico: var(--ico-lock);
  background: var(--lock);
}

.mixer[data-mode='lock'] .pill {
  border-color: var(--lock-line);
  background: var(--lock-bg);
}

.seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px;
  border-radius: 13px;
  background: rgba(0, 0, 0, .34);
  border: 1px solid var(--line);
}

.seg button {
  position: relative;
  z-index: 1;
  padding: 9px 4px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .22s ease;
}

.seg button[aria-checked='true'] {
  color: #fff;
}

.seg-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 4);
  border-radius: 9px;
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 4px 12px rgba(0, 0, 0, .3);
  transform: translateX(calc(var(--at, 2) * 100%));
  transition: transform .34s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .seg button:hover {
    color: var(--text);
  }
}

.feeds {
  margin-top: 12px;
}

.feed {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 62px 5.2rem;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 8px 12px;
  border-radius: 12px;
  transition: opacity .35s ease, background-color .35s ease;
}

.feed::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 2px;
  background: var(--heard-hot);
  box-shadow: 0 0 10px var(--heard-hot);
  transform: scaleY(0);
  transition: transform .35s var(--ease-out);
}

.feed-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  transition: background-color .35s ease;
}

.feed-ico svg {
  width: 17px;
  height: 17px;
  fill: var(--muted);
  transition: fill .35s ease;
}

.feed-name {
  color: var(--text);
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.25;
}

.feed-name small {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 400;
}

.feed-state {
  font-size: .76rem;
  font-weight: 600;
  text-align: right;
  color: var(--faint);
}

.feed-state::before {
  content: 'stays out';
}

.meter {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.meter i {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: var(--faint);
  transform: scaleY(.2);
  animation: meter 1s ease-in-out infinite alternate;
  transition: background-color .35s ease;
}

/* Every bar has its own pace, and every source its own offset and tempo, so no two rows match */
.meter i {
  animation-duration: calc(var(--pace) * var(--tempo, 1));
  animation-delay: calc(var(--from) + var(--offset, 0s));
}

.meter i:nth-child(1) { --pace: .74s; --from: -.2s; }
.meter i:nth-child(2) { --pace: .58s; --from: -.5s; }
.meter i:nth-child(3) { --pace: .92s; --from: -.1s; }
.meter i:nth-child(4) { --pace: .66s; --from: -.7s; }
.meter i:nth-child(5) { --pace: .84s; --from: -.3s; }
.meter i:nth-child(6) { --pace: .62s; --from: -.6s; }
.meter i:nth-child(7) { --pace: .96s; --from: -.4s; }

.feed:nth-child(2) { --offset: -.33s; --tempo: 1.18; }
.feed:nth-child(3) { --offset: -.61s; --tempo: .86; }
.feed:nth-child(4) { --offset: -.17s; --tempo: 1.42; }

@keyframes meter {
  from { transform: scaleY(.16); }
  to { transform: scaleY(.95); }
}

/* A notification is silence with a short burst now and then */
.meter-ping i {
  animation: ping 4.6s ease-out infinite;
  animation-delay: calc(var(--from) * .12);
}

@keyframes ping {
  0%, 62%, 78%, 100% { transform: scaleY(.1); }
  66% { transform: scaleY(.95); }
  70% { transform: scaleY(.4); }
}

.feed.heard {
  background: rgba(109, 238, 255, .055);
}

.feed.heard::before {
  transform: scaleY(1);
}

.feed.heard .feed-ico {
  background: var(--heard-bg);
}

.feed.heard .feed-ico svg {
  fill: var(--heard);
}

.feed.heard .meter i {
  background: var(--heard);
}

.feed.heard .feed-state {
  color: var(--heard);
}

.feed.heard .feed-state::before {
  content: 'heard';
}

.feed:not(.heard) {
  opacity: .5;
}

.mixer-out {
  margin-top: 12px;
  padding: 16px 4px 2px 18px;
  border-top: 1px solid var(--line);
  border-left: 2px solid var(--meant-hot);
  border-top-left-radius: 0;
}

.mixer-text {
  min-height: 4.1em;
  margin-top: 10px;
  color: #fff;
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.35;
}

.mixer-why {
  min-height: 2.9em;
  margin-top: 10px;
  font: 350 .88rem/1.45 var(--display);
  color: var(--muted);
}

/* ---------- Offline: the same sentence in both engines ---------- */

.race {
  display: grid;
  gap: 0;
  margin-top: clamp(36px, 6vh, 56px);
  border-block: 1px solid var(--line);
  font-family: var(--ui);
}

.race-lane {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-height: 74px;
  padding: 16px 0;
}

.race-voice {
  align-items: center;
}

.race-lane + .race-lane {
  border-top: 1px solid var(--line);
}

.race-name {
  padding-top: .5em;
  font: 600 .74rem/1.2 var(--display);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.race-voice .race-name {
  padding-top: 0;
}

.race-voice canvas {
  width: 100%;
  height: 46px;
}

.race-text {
  font-size: clamp(.98rem, 1.5vw, 1.16rem);
  line-height: 1.4;
  color: #dffaff;
}

.engines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 5vh, 44px);
}

.engine {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}

.engine:nth-child(2) { --i: 1; }
.engine:nth-child(3) { --i: 2; }

h3 {
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--text);
}

.engine-note {
  margin-left: 8px;
  font: 600 .7rem/1 var(--display);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--heard);
}

.engine ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  font-size: .93rem;
  line-height: 1.5;
}

.engine li {
  position: relative;
  padding-left: 16px;
}

.engine li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--heard);
}

.engine-plain li::before {
  background: var(--meant);
}

.engine-best {
  margin-top: auto;
  padding-top: 20px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- History ---------- */

.hist {
  justify-self: center;
  width: min(100%, 460px);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6));
}

.hist img {
  width: 100%;
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}

.file {
  --i: 2;
  margin-top: 30px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .38);
  overflow: hidden;
}

.file figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  font: 500 .76rem/1 var(--mono);
  color: var(--muted);
}

.file-kind {
  color: var(--meant);
  letter-spacing: .08em;
}

.file pre {
  margin: 0;
  padding: 18px;
  font: 400 .86rem/1.6 var(--mono);
  white-space: pre-wrap;
  color: var(--faint);
}

.srt-t {
  color: var(--heard);
}

.srt-text {
  display: block;
  min-height: 4.8em;
  font-family: var(--ui);
  font-size: .98rem;
  line-height: 1.45;
  color: #fff;
}

/* ---------- Privacy: what stays inside the Mac ---------- */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 20px 44px;
  margin-top: clamp(40px, 6vh, 60px);
}

.mac {
  position: relative;
  display: grid;
  align-content: center;
  padding: 44px 30px 34px;
  border-radius: 26px;
  border: 1px solid var(--heard-line);
  background: linear-gradient(180deg, rgba(109, 238, 255, .05), rgba(109, 238, 255, .012));
}

.mac-name {
  position: absolute;
  top: -.72em;
  left: 26px;
  padding: 0 12px;
  background: var(--ink-2);
  border-radius: 999px;
  font: 600 .74rem/1.4 var(--display);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--heard);
}

.chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chain li {
  position: relative;
  padding: 26px 18px 0 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--muted);
}

/* The line between two steps, with light running along it */
.chain li::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 2px;
  background:
    linear-gradient(90deg, transparent, var(--heard-hot), transparent) 0 0 / 46% 100% no-repeat,
    rgba(109, 238, 255, .2);
  animation: run 2.4s linear infinite;
}

.chain li:nth-child(2)::before { animation-delay: -.6s; }
.chain li:nth-child(3)::before { animation-delay: -1.2s; }
.chain li:nth-child(4)::before { animation-delay: -1.8s; right: 30%; }

@keyframes run {
  from { background-position: -90% 0, 0 0; }
  to { background-position: 190% 0, 0 0; }
}

.chain li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 2px solid var(--heard);
}

.chain b,
.out b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: .98rem;
  font-weight: 560;
}

.out {
  display: grid;
  gap: 14px;
  align-content: center;
}

.out li {
  position: relative;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed var(--line-2);
  font-size: .86rem;
  line-height: 1.5;
  color: var(--muted);
  transition: opacity .5s ease, filter .5s ease;
}

/* The dashed wire from the Mac to the outside */
.out li::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: 44px;
  border-top: 1px dashed var(--line-2);
  transition: opacity .4s ease, transform .5s var(--ease-out);
  transform-origin: 100% 50%;
}

.flow[data-net='off'] .out li {
  opacity: .32;
  filter: saturate(0);
}

.flow[data-net='off'] .out li::before {
  opacity: 0;
  transform: scaleX(0);
}

.toggle-net {
  grid-column: 2;
  justify-self: start;
}

.toggle-net[aria-pressed='true'] .toggle-track {
  background: #2f9e6a;
}

.flow-say {
  grid-column: 1;
  grid-row: 2;
  font-size: .98rem;
  color: var(--text);
}

.more {
  margin-top: 34px;
}

.link {
  color: var(--text);
  font-weight: 560;
  text-decoration: underline;
  text-decoration-color: var(--heard-line);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .link:hover {
    text-decoration-color: var(--heard);
  }
}

/* ---------- Languages and the small things ---------- */

.more-sec .split {
  align-items: start;
}

.langs {
  --i: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  font-family: var(--ui);
}

.lang {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .16s var(--ease-out);
}

.lang[aria-checked='true'] {
  border-color: var(--meant);
  background: var(--meant-bg);
  color: #fff;
}

.lang-src {
  border-style: dashed;
  border-color: var(--heard-line);
  color: var(--heard);
  cursor: default;
}

.lang-src small {
  margin-left: 6px;
  color: var(--muted);
  font-size: .78rem;
}

@media (hover: hover) and (pointer: fine) {
  button.lang:hover {
    border-color: var(--meant-line);
  }
}

.extras {
  border-top: 1px solid var(--line);
}

.extras li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}

.extras b {
  color: var(--text);
  font-weight: 560;
}

.extras li:nth-child(2) { --i: 1; }
.extras li:nth-child(3) { --i: 2; }
.extras li:nth-child(4) { --i: 3; }
.extras li:nth-child(5) { --i: 4; }

/* ---------- Screens ---------- */

.shot-grid {
  --i: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 5vh, 48px);
}

.shot {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  cursor: zoom-in;
  transition: transform .4s var(--ease-out), border-color .3s ease;
}

.shot img {
  width: 100%;
  transition: transform .6s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .shot:hover {
    border-color: rgba(255, 255, 255, .34);
  }

  .shot:hover img {
    transform: scale(1.035);
  }
}

.shot:active {
  transform: scale(.985);
}

body.no-scroll .pagesubs {
  display: none;
}

/* The viewer itself is js/gallery.js, shared with the other pages. Its stage is a flex item
   with a definite height, which is what lets the image's max-height work. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  background: rgba(3, 4, 8, .92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-family: var(--ui);
}

.lightbox[hidden] {
  display: none;
}

.lb-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 8px;
}

.lb-stage picture {
  display: contents;
}

.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
}

.lb-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(980px, 100% - 32px);
  margin-inline: auto;
  padding: 12px 0 calc(16px + env(safe-area-inset-bottom));
}

.lb-text {
  flex: 1;
  min-width: 0;
  font-size: .9rem;
  text-align: center;
  color: var(--muted);
}

.lb-text b {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.lb-count {
  font: 500 .8rem/1 var(--mono);
  color: var(--faint);
}

.lb-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}

.lb-btn:active {
  transform: scale(.94);
}

.lb-btn:disabled {
  opacity: .3;
  cursor: default;
}

.lb-close {
  position: absolute;
  top: clamp(12px, 2vw, 22px);
  right: clamp(12px, 2vw, 22px);
}

@media (hover: hover) and (pointer: fine) {
  .lb-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, .16);
  }
}

/* ---------- New in 1.3 ---------- */

.new .split {
  align-items: start;
}

.changes {
  counter-reset: change;
  border-top: 1px solid var(--line);
}

.changes li {
  position: relative;
  padding: 16px 0 16px 46px;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
  counter-increment: change;
}

.changes li::before {
  content: counter(change, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 23px;
  font: 500 .74rem/1 var(--mono);
  color: var(--heard);
}

.changes li:nth-child(n + 2) { --i: 1; }
.changes li:nth-child(n + 4) { --i: 2; }
.changes li:nth-child(n + 6) { --i: 3; }

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 80px);
  margin-top: clamp(28px, 5vh, 44px);
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:nth-child(even) { --i: 1; }

.faq-item p {
  margin-top: 10px;
  font-size: .97rem;
}

/* ---------- Get it ---------- */

.getit {
  padding-bottom: clamp(80px, 12vh, 140px);
}

.getit-in {
  display: grid;
  justify-items: center;
  text-align: center;
}

.getit-icon {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 26px 40px rgba(125, 49, 252, .5));
}

.getit h2 {
  --i: 1;
  margin-top: 34px;
}

.getit .sub {
  --i: 2;
  margin-top: 16px;
}

.getit .badge {
  --i: 3;
  margin-top: 30px;
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: 34px 0 calc(40px + env(safe-area-inset-bottom));
  font-size: .9rem;
  color: var(--muted);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 32px;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.foot a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}

.updated {
  margin-left: auto;
  color: var(--faint);
}

/* ---------- The page's own subtitle window ---------- */

.pagesubs {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  width: min(680px, 100vw - 24px);
  margin-left: calc(min(680px, 100vw - 24px) / -2);
  padding: 15px 22px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(26, 28, 37, .6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 28px 70px -20px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .12);
  color: #fff;
  font-family: var(--ui);
  text-align: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity .45s var(--ease-out), filter .45s var(--ease-out), visibility 0s;
}

.pagesubs[hidden] {
  display: none;
}

.pagesubs.off {
  opacity: 0;
  filter: blur(10px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, filter .25s ease, visibility 0s .25s;
}

.pagesubs.drag {
  cursor: grabbing;
  border-color: rgba(255, 255, 255, .3);
}

.pagesubs-text {
  display: grid;
  gap: 2px;
  transition: opacity .2s ease, filter .2s ease;
}

.pagesubs-text.swap {
  opacity: 0;
  filter: blur(4px);
}

.pagesubs-text b {
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.3;
}

.pagesubs-text span {
  font-size: .93rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, .82);
  text-wrap: balance;
}

/* The controls sit on the window's top edge and show up when it is pointed at, so the bar
   itself stays as slim as a line of subtitles */
.pagesubs-tools {
  position: absolute;
  right: 10px;
  bottom: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 8px;
  cursor: default;
  transition: opacity .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .pagesubs-tools {
    opacity: 0;
  }

  .pagesubs:hover .pagesubs-tools,
  .pagesubs:focus-within .pagesubs-tools {
    opacity: 1;
  }
}

.select-bare select {
  padding: 4px 26px 4px 11px;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(26, 28, 37, .88);
  font-size: .78rem;
  color: rgba(255, 255, 255, .9);
}

.select-bare::after {
  right: 11px;
  width: 5px;
  height: 5px;
  border-color: rgba(255, 255, 255, .6);
}

.pagesubs-close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(26, 28, 37, .88);
  cursor: pointer;
  transition: background-color .2s ease, transform .16s var(--ease-out);
}

.pagesubs-close svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: rgba(255, 255, 255, .8);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.pagesubs-close:active {
  transform: scale(.92);
}

@media (hover: hover) and (pointer: fine) {
  .pagesubs-close:hover {
    background: rgba(70, 74, 90, .95);
  }
}

/* A short laptop screen: a smaller headline and a lower wave keep the whole stage in view */
@media (min-width: 981px) and (max-height: 780px) {
  .hero {
    padding-top: 18px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  }

  .stage {
    --wave-h: 150px;
    margin-top: 20px;
  }

  .stage-heard {
    min-height: 5.6rem;
  }
}

/* ---------- Privacy policy page ---------- */

.back-app {
  gap: 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.back-app img {
  width: 28px;
  height: 28px;
}

.doc {
  padding: clamp(36px, 7vh, 72px) 0 clamp(72px, 12vh, 120px);
}

.doc-wrap {
  max-width: 780px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 22px;
  font-size: .88rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: '/';
  margin-inline: 10px;
  color: var(--faint);
}

.crumbs a {
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}

.doc h1 {
  font-size: clamp(2.4rem, 6vw, 3.7rem);
}

.doc-meta {
  margin-top: 18px;
  color: var(--muted);
}

.doc-langs {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.doc-langs a {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .doc-langs a:hover {
    border-color: var(--heard-line);
    background: var(--heard-bg);
  }
}

.brief {
  margin-top: clamp(36px, 6vh, 56px);
  padding: 28px 30px 26px;
  border-radius: 22px;
  border: 1px solid var(--heard-line);
  background: linear-gradient(180deg, rgba(109, 238, 255, .06), rgba(109, 238, 255, .015));
}

.brief h2 {
  font: 600 .74rem/1.4 var(--display);
  font-variation-settings: 'SHRP' 0;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--heard);
}

.brief ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.brief b,
.doc article strong {
  color: var(--text);
  font-weight: 560;
}

.doc article {
  margin-top: clamp(56px, 9vh, 88px);
  scroll-margin-top: 84px;
}

.doc article + article {
  padding-top: clamp(56px, 9vh, 88px);
  border-top: 1px solid var(--line);
}

.doc article h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.12;
}

.doc article h3 {
  margin-top: 44px;
  font-size: 1.22rem;
}

.doc article p {
  margin-top: 14px;
}

.doc article ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.doc article li {
  position: relative;
  padding-left: 20px;
}

.doc article li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--heard);
}

.doc article a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--heard-line);
  text-underline-offset: 4px;
}

.keep-scroll {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line-2);
}

.keep {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .93rem;
  line-height: 1.5;
  text-align: left;
}

.keep th,
.keep td {
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.keep tbody tr:last-child th,
.keep tbody tr:last-child td {
  border-bottom: 0;
}

.keep thead th {
  background: rgba(255, 255, 255, .04);
  font: 600 .72rem/1.4 var(--display);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.keep tbody th {
  width: 27%;
  color: var(--text);
  font-weight: 560;
}

.keep td:last-child {
  width: 26%;
  color: var(--heard);
}

/* ---------- Narrower screens ---------- */

@media (max-width: 980px) {
  .nav-link {
    display: none;
  }

  .hero-copy {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'cue' 'head' 'lede' 'get';
  }

  .lede {
    padding-top: 18px;
  }

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

  .split-flip .hist {
    order: 2;
  }

  /* On one column the video comes before its two sliders */
  .subtitles .head {
    display: contents;
  }

  .subtitles .screen {
    order: 1;
  }

  .subtitles .knobs {
    order: 2;
    margin-top: 0;
  }

  .subtitles .split {
    gap: 0;
  }

  .subtitles .screen {
    margin-block: 30px;
  }

  .sources-copy {
    display: contents;
  }

  .sources-copy .sec {
    min-height: 0;
  }

  .sources-copy .sec + .sec {
    padding-top: clamp(64px, 10vh, 96px);
  }

  #calls { order: 1; }
  .mixer-rail { order: 2; position: static; padding-top: 0; }
  #lock { order: 3; }

  .notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes li,
  .notes li + li {
    padding: 18px 18px 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

  .out li::before {
    right: auto;
    left: 28px;
    top: auto;
    bottom: 100%;
    width: 0;
    height: 20px;
    border-top: 0;
    border-left: 1px dashed var(--line-2);
    transform-origin: 50% 100%;
  }

  .flow[data-net='off'] .out li::before {
    transform: scaleY(0);
  }

  .toggle-net {
    grid-column: 1;
    grid-row: 3;
  }

  .flow-say {
    grid-row: 4;
  }

  .out {
    grid-row: 2;
    gap: 20px;
    margin-top: 6px;
  }

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

  .pagenote {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  /* The stage turns into a column: what was said, the wave through the glass, the translation */
  .stage {
    --lens-w: 54px;
    --wave-h: 132px;
    --air: 0px;
    grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter);
    grid-template-rows: auto var(--wave-h) auto auto;
  }

  .stage-heard {
    grid-column: 2;
    min-height: 6.4rem;
    padding-bottom: 12px;
  }

  .lens {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    width: var(--lens-w);
    margin-block: 0;
    border-radius: 18px;
  }

  .stage-pick {
    grid-column: 2;
    grid-row: 3;
    margin-bottom: 0;
    padding: 20px 0 14px;
  }

  .stage-meant {
    grid-column: 2;
    grid-row: 4;
    min-height: 8.4rem;
    margin: 0;
  }

  .stage-source {
    display: none;
  }

  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

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

  .chain li {
    padding: 0 0 22px 28px;
  }

  .chain li:last-child {
    padding-bottom: 0;
  }

  .chain li::before {
    left: 5px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    background:
      linear-gradient(180deg, transparent, var(--heard-hot), transparent) 0 0 / 100% 46% no-repeat,
      rgba(109, 238, 255, .2);
    animation-name: run-down;
  }

  .chain li:nth-child(4)::before {
    display: none;
  }

  .chain li::after {
    top: 4px;
  }

  @keyframes run-down {
    from { background-position: 0 -90%, 0 0; }
    to { background-position: 0 190%, 0 0; }
  }

  .race-lane {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .foot-in {
    flex-direction: column;
  }

  .updated {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .back span {
    display: none;
  }

  .bar-in {
    gap: 8px;
  }

  .get-btn {
    padding-inline: 14px;
  }

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

  .mk {
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    font-size: .66rem;
  }

  .feed {
    grid-template-columns: 34px minmax(0, 1fr) 44px;
  }

  .feed-state {
    display: none;
  }

  .mixer {
    padding: 16px;
  }

  .seg button {
    font-size: .78rem;
  }

  .pagesubs {
    padding: 14px 14px 10px;
  }

  .pagesubs-text b {
    font-size: .98rem;
  }

  .pagesubs-text span {
    font-size: .86rem;
  }
}

/* ---------- Reduced motion: no travel, no loops, only short fades ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .fx {
    filter: none;
    transform: none;
    transition: opacity .3s ease;
    transition-delay: 0s;
  }

  .js h1.fx,
  .js h2.fx {
    font-variation-settings: 'SHRP' 100;
    transition: opacity .3s ease;
  }

  .w,
  .s {
    filter: none;
    transition: opacity .2s ease;
  }

  .screen-video,
  .meter i,
  .chain li::before {
    animation: none;
  }

  .meter i {
    transform: scaleY(.55);
  }

  .seg-thumb,
  .toggle-track i {
    transition: none;
  }
}
