/* RVLC website. A dark, cinematic page: the site is treated as a film, with
   chapters, timecodes and a scrub bar. Brand violet/blue come from
   brand/svg/icon.svg; amber is the projector light from the app's own footage. */

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: dark;
  --ink: #07080c;
  --ink-2: #0b0d13;
  --ink-3: #12151e;
  --line: rgba(236, 235, 230, 0.08);
  --line-2: rgba(236, 235, 230, 0.14);
  --paper: #ecebe6;
  --dim: #8b8d97;
  --dimmer: #5d606b;
  --violet: #8b5cf6;
  --violet-hi: #c4b5fd;
  --blue: #3b82f6;
  --amber: #ffb547;
  --green: #4ade80;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; background: var(--ink); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--violet); color: #fff; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; margin: 0; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
h1 em,
h2 em,
.zero em {
  background: linear-gradient(100deg, var(--violet-hi) 0%, #f3e8ff 40%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.06em 0.16em 0; /* italic overhang and descenders */
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--ink-3);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78em;
  line-height: 1.5;
  text-align: center;
  vertical-align: 0.08em;
}

/* ---------- Film grain ---------- */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); }
  80% { transform: translate(3%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Scrub bar + header ---------- */
.scrub {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 60;
  background: rgba(236, 235, 230, 0.06);
}
.scrub-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--blue) 60%, var(--amber));
  transform-origin: left;
  transform: scaleX(0);
}
.scrub-ticks i {
  position: absolute;
  top: 0;
  width: 1px;
  height: 6px;
  background: rgba(236, 235, 230, 0.35);
}

.site-header {
  position: fixed;
  inset: 2px 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 var(--gutter);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 14px;
}
.site-header nav { display: flex; gap: 4px; }
.site-header nav a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.site-header nav a:hover,
.site-header nav a.active { color: var(--paper); background: rgba(236, 235, 230, 0.06); }
.header-end { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.timecode {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dimmer);
  font-variant-numeric: tabular-nums;
}
.pill {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.pill:hover { transform: translateY(-1px); background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(120px, 18vh, 180px) var(--gutter) 40px;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  /* projector beam */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 120vh;
  z-index: -1;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(30% 30% at 50% 10%, rgba(255, 181, 71, 0.08), transparent 70%);
  pointer-events: none;
}

.curtain { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.curtain i {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: #000;
  transition: transform 1.4s var(--ease-io) 0.15s;
}
.curtain i:first-child { top: 0; transform-origin: top; }
.curtain i:last-child { bottom: 0; transform-origin: bottom; }
.loaded .curtain i { transform: scaleY(0); }
.no-js .curtain { display: none; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.rec {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 10px #ff4d4d;
  animation: blink 1.6s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.title {
  font-size: clamp(54px, 10.5vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 600;
}
.title .line { display: block; overflow: hidden; padding-bottom: 0.34em; margin-bottom: -0.26em; }
.title .line > * { display: inline-block; }
.title em { font-size: 1.08em; letter-spacing: -0.03em; }

.lede {
  max-width: 36em;
  margin: 28px auto 36px;
  text-wrap: balance;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--dim);
}

.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; }

.btn-play {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px 17px 26px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.35s var(--ease);
  will-change: transform;
}
.btn-play::before {
  /* The face sits above the glow ring (both are behind the label). */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--paper);
  transition: background 0.2s;
}
.btn-play:hover::before { background: #fff; }
.btn-play svg { width: 18px; height: 18px; fill: currentColor; }
.btn-play[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.btn-ring {
  position: absolute;
  inset: -3px;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), var(--violet), var(--blue), var(--amber), var(--violet));
  filter: blur(10px);
  opacity: 0.75;
  animation: spin 4s linear infinite;
}
@keyframes spin { to { --angle: 360deg; } }
.btn-play.big { padding: 22px 40px 22px 34px; font-size: 20px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.2s, gap 0.3s var(--ease);
}
.btn-ghost:hover { border-color: var(--paper); gap: 12px; }

/* First-launch heads-up */
.heads-up {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 560px;
  margin: 30px auto 0;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(255, 181, 71, 0.35);
  border-radius: 14px;
  background: rgba(255, 181, 71, 0.07);
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.heads-up:hover { border-color: rgba(255, 181, 71, 0.7); background: rgba(255, 181, 71, 0.11); }
.heads-up strong { display: block; color: var(--paper); font-weight: 600; }
.heads-up b { color: var(--paper); font-weight: 600; }
.hu-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
}
.hu-link { color: var(--amber); white-space: nowrap; }

/* Stats strip: downloads, version, size */
.stats {
  display: flex;
  justify-content: center;
  margin: 34px auto 0;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 13, 19, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stat { padding: 14px 26px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat[hidden] + .stat { border-left: 0; }
.stat dt {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dimmer);
}
.stat dd {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}
.stat-count dd {
  font-family: var(--sans);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(100deg, var(--violet-hi), #fff 45%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-count dt { color: var(--green); }
.stat:not(.stat-count) { align-self: center; }
.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: live 2s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

/* The app window, tilted back like a screen in a dark room */
.stage {
  position: relative;
  margin: clamp(56px, 9vh, 96px) auto 0;
  width: min(1180px, 100%);
  perspective: 2200px;
}
.window {
  position: relative;
  border-radius: clamp(8px, 1.4vw, 16px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 30px 60px -40px rgba(139, 92, 246, 0.5);
  transform-origin: 50% 0%;
  transform: rotateX(var(--tilt, 18deg)) scale(var(--scale, 0.9));
  will-change: transform;
}
.window img { width: 100%; height: auto; }
.window .live {
  /* Exactly over the video area of the screenshot (x 0–1597, y 271–935 of 2200×1360). */
  position: absolute;
  left: 0;
  top: 19.926%;
  width: 72.636%;
  height: 48.897%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.window .live.playing { opacity: 1; }
.ambilight {
  position: absolute;
  inset: 4% 2% 10%;
  z-index: -1;
  width: 96%;
  height: 86%;
  object-fit: cover;
  filter: blur(70px) saturate(1.8);
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 2s ease;
}
.ambilight.playing { opacity: 0.55; }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 80px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.marquee-track span::after {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 30px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.7;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chapters ---------- */
.chapter {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(110px, 16vh, 180px) 0 0;
}
.chapter-no {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.chapter-no span {
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--amber);
}
.chapter h2 {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 12em;
}
.chapter h2 em { font-size: 1.06em; }
.chapter-lede {
  max-width: 34em;
  margin: 26px 0 0;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--dim);
  text-wrap: pretty;
}

/* ---------- Sync demo ---------- */
.demo {
  margin-top: 64px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  box-shadow: 0 40px 100px -50px rgba(139, 92, 246, 0.35);
}
.demo-screen {
  position: relative;
  aspect-ratio: 2.39;
  max-height: min(42vh, 420px);
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.demo-film {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 50% at 30% 70%, rgba(255, 160, 60, 0.55), transparent 70%),
    radial-gradient(45% 55% at 70% 30%, rgba(124, 58, 237, 0.55), transparent 70%),
    radial-gradient(40% 40% at 85% 85%, rgba(14, 116, 144, 0.5), transparent 70%),
    #05060a;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-4%, 2%) scale(1); }
  to { transform: translate(5%, -3%) scale(1.12); }
}
.demo-sub {
  position: absolute;
  left: 50%;
  bottom: 9%;
  margin: 0;
  max-width: 90%;
  transform: translateX(-50%);
  font-size: clamp(15px, 2.3vw, 30px);
  font-weight: 500;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 2px #000;
  white-space: nowrap;
}
.demo-status {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--amber);
}
.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.demo-status.synced { color: var(--green); }
.demo-status.listening { color: var(--violet-hi); }
.demo-status.listening .led { animation: blink 0.5s steps(2, jump-none) infinite; }

.demo-timeline {
  position: relative;
  margin-top: 16px;
  padding: 0 0 4px 92px;
}
.demo-ruler {
  position: relative;
  height: 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dimmer);
}
.demo-ruler span { position: absolute; top: 2px; transform: translateX(-50%); }
.demo-ruler span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 15px;
  width: 1px;
  height: 5px;
  background: var(--line-2);
}
.demo-lane { position: relative; height: 54px; margin-top: 10px; }
.lane-label {
  position: absolute;
  left: -92px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dimmer);
}
#demo-wave { width: 100%; height: 100%; }
.demo-cues { position: relative; height: 100%; overflow: hidden; border-radius: 8px; background: rgba(236, 235, 230, 0.025); }
.cue {
  position: absolute;
  top: 7px;
  bottom: 7px;
  padding: 0 10px;
  border: 1px solid rgba(196, 181, 253, 0.5);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.42), rgba(139, 92, 246, 0.22));
  font-size: 12px;
  line-height: 38px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f3e8ff;
  transition: left 0.3s var(--ease), background 0.4s, border-color 0.4s;
}
.cue.active { background: linear-gradient(180deg, rgba(139, 92, 246, 0.85), rgba(99, 102, 241, 0.6)); border-color: #e9d5ff; }
.synced-all .cue { border-color: rgba(74, 222, 128, 0.55); }
.demo-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 92px;
  width: 2px;
  margin-left: -1px;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 181, 71, 0.8);
  pointer-events: none;
}
.demo-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  border: 6px solid transparent;
  border-top-color: var(--amber);
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.nudge { display: flex; align-items: center; gap: 6px; }
.nudge button,
.auto,
.copy {
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--ink-3);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.nudge button:hover,
.copy:hover { background: #1a1e2a; border-color: rgba(236, 235, 230, 0.25); }
.nudge button:active,
.auto:active { transform: scale(0.96); }
.offset {
  min-width: 112px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  transition: color 0.3s;
}
.offset.synced { color: var(--green); }
.range {
  flex: 1;
  min-width: 160px;
  height: 22px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--line-2), var(--line-2)) center / 100% 100%,
    linear-gradient(90deg, transparent calc(50% - 1px), var(--green) calc(50% - 1px), var(--green) calc(50% + 1px), transparent calc(50% + 1px));
}
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.35);
}
.range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.35);
}
.auto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-color: rgba(196, 181, 253, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(59, 130, 246, 0.25));
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
}
.auto:hover { border-color: var(--violet-hi); }
.auto svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.auto:disabled { opacity: 0.6; cursor: progress; }

/* Four ways to sync */
.methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  margin: 80px 0 0;
  padding: 0;
  list-style: none;
}
.methods li { position: relative; padding-top: 26px; }
.methods li::before,
.steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), var(--line));
  transform-origin: left;
  transform: scaleX(var(--line-x, 1));
  transition: transform 1.4s var(--ease) calc(var(--d, 0ms) + 200ms);
}
.js .methods li:not(.in)::before,
.js .steps li:not(.in)::before { --line-x: 0; }
.m-no { font-family: var(--mono); font-size: 12px; color: var(--violet-hi); }
.methods h3 { margin: 14px 0 10px; font-size: 26px; letter-spacing: -0.02em; }
.methods p { margin: 0; color: var(--dim); font-size: 15.5px; }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 64px;
}
.cell {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(139, 92, 246, 0.12), transparent 60%),
    var(--ink-2);
  overflow: hidden;
  transition: border-color 0.3s;
}
.cell:hover { border-color: var(--line-2); }
.cell h3 { font-size: 21px; letter-spacing: -0.02em; margin: 0 0 8px; }
.cell p { margin: 0; color: var(--dim); font-size: 15px; text-wrap: pretty; }
.c-audio,
.c-editor,
.c-library,
.c-keys { grid-column: span 2; }
.viz {
  position: relative;
  height: 150px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Audio Sync Lab: tracks sliding into place */
.viz-tracks { flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; }
.trk { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; }
.trk span { font-family: var(--mono); font-size: 11px; color: var(--dimmer); text-transform: uppercase; letter-spacing: 0.06em; }
.trk { position: relative; }
.clip {
  display: block;
  height: 26px;
  border-radius: 7px;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 6px);
  background-size: 100% 60%;
  background-position: center;
  background-repeat: repeat-x;
}
.clip.v { width: 86%; background-color: rgba(236, 235, 230, 0.12); background-image: none; }
.clip.a { width: 86%; background-color: rgba(59, 130, 246, 0.45); animation: settle 5s var(--ease-io) infinite; }
.clip.d { width: 86%; background-color: rgba(255, 181, 71, 0.4); animation: settle 5s var(--ease-io) 0.6s infinite; }
@keyframes settle {
  0%, 15% { transform: translateX(12%); }
  45%, 100% { transform: translateX(0); }
}

/* Speed readout */
.viz-speed {
  font-family: var(--mono);
  font-size: clamp(60px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #6b6e7a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.viz-speed small { font-size: 0.45em; margin-left: 4px; }

/* Encodings */
.viz-enc { flex-direction: column; gap: 14px; }
.enc-text { font-size: 40px; font-weight: 500; transition: opacity 0.4s, transform 0.4s var(--ease), filter 0.4s; }
.enc-text.out { opacity: 0; transform: translateY(-10px); filter: blur(6px); }
.enc-name {
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--violet-hi);
}

/* Editor */
.viz-editor { flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; font-size: 14px; }
.ed-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--dim);
}
.ed-row span:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--dimmer); }
.ed-row.on { background: rgba(139, 92, 246, 0.16); color: var(--paper); box-shadow: inset 2px 0 0 var(--violet); }
#ed-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--violet-hi);
  animation: blink 1s steps(2, jump-none) infinite;
}

/* Library */
.viz-library { flex-direction: column; align-items: stretch; justify-content: center; gap: 14px; }
.lib { display: grid; grid-template-columns: 1fr 64px; grid-template-rows: auto 3px; gap: 6px 14px; font-size: 14px; }
.lib em { grid-row: 1; grid-column: 2; font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--dimmer); text-align: right; }
.lib b {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet) calc(var(--fill, 0) * 100%), rgba(236, 235, 230, 0.1) 0);
  transition: --fill 1.6s;
}
.lib b { --fill: 0; }
.in .lib b { --fill: var(--p); }
@property --fill { syntax: "<number>"; inherits: true; initial-value: 0; }

/* Picture & Sound equalizer */
.viz-eq { gap: 7px; align-items: flex-end; height: 150px; padding-bottom: 20px; }
.viz-eq i {
  width: 12px;
  height: 100px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--amber), var(--violet) 70%);
  transform-origin: bottom;
  animation: eq 1.8s ease-in-out infinite alternate;
}
.viz-eq i:nth-child(2n) { animation-duration: 1.3s; }
.viz-eq i:nth-child(3n) { animation-duration: 2.2s; }
.viz-eq i:nth-child(1) { animation-delay: -0.2s; }
.viz-eq i:nth-child(2) { animation-delay: -0.9s; }
.viz-eq i:nth-child(3) { animation-delay: -0.4s; }
.viz-eq i:nth-child(4) { animation-delay: -1.3s; }
.viz-eq i:nth-child(5) { animation-delay: -0.7s; }
.viz-eq i:nth-child(6) { animation-delay: -1.1s; }
.viz-eq i:nth-child(7) { animation-delay: -0.1s; }
.viz-eq i:nth-child(8) { animation-delay: -1.6s; }
.viz-eq i:nth-child(9) { animation-delay: -0.5s; }
.viz-eq i:nth-child(10) { animation-delay: -1.2s; }
@keyframes eq {
  from { transform: scaleY(0.15); }
  to { transform: scaleY(1); }
}

/* Keyboard */
.viz-keys { flex-wrap: wrap; gap: 10px; align-content: center; }
.viz-keys kbd {
  min-width: 52px;
  padding: 12px 14px;
  border-radius: 10px;
  border-bottom-width: 4px;
  font-size: 15px;
  animation: press 4.8s infinite;
}
.viz-keys kbd:nth-child(1) { min-width: 120px; }
.viz-keys kbd:nth-child(2) { animation-delay: 0.6s; }
.viz-keys kbd:nth-child(3) { animation-delay: 1.2s; }
.viz-keys kbd:nth-child(4) { animation-delay: 1.8s; }
.viz-keys kbd:nth-child(5) { animation-delay: 2.4s; }
.viz-keys kbd:nth-child(6) { animation-delay: 3s; }
.viz-keys kbd:nth-child(7) { animation-delay: 3.6s; }
.viz-keys kbd:nth-child(8) { animation-delay: 4.2s; }
@keyframes press {
  0%, 8%, 100% { transform: translateY(0); border-bottom-width: 4px; background: var(--ink-3); color: var(--paper); }
  3% { transform: translateY(3px); border-bottom-width: 1px; background: var(--violet); color: #fff; }
}

/* Hardware decoding */
.viz-chip {
  height: auto;
  margin: 50px auto 72px;
  width: max-content;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.06);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
}
.viz-chip .led { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 2px currentColor; opacity: 0.6; } }

/* ---------- Privacy ---------- */
.privacy { text-align: center; }
.privacy .chapter-no { justify-content: center; }
.zero {
  margin: 0;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
}
.zero span {
  font-size: clamp(140px, 28vw, 380px);
  font-weight: 700;
  letter-spacing: -0.06em;
  padding: 0 0.08em;
  white-space: nowrap;
  transform-origin: 50% 60%;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, rgba(236, 235, 230, 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.zero em { font-size: clamp(36px, 5.5vw, 76px); margin-top: 6px; }
.no-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.no-list li {
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}
.no-list li::before { content: "✕"; margin-right: 8px; color: var(--amber); }
.privacy-note { margin: 22px auto 0; color: var(--dim); }

/* ---------- Install ---------- */
.install .chapter-lede strong { color: var(--amber); font-weight: 500; }
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink-2);
}
.steps li.step-key {
  border-color: rgba(255, 181, 71, 0.45);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 181, 71, 0.12), transparent 60%),
    var(--ink-2);
  box-shadow: 0 30px 80px -40px rgba(255, 181, 71, 0.45);
}
.step-tc {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--paper);
}
.step-key .step-tc { border: 0; background: var(--amber); color: var(--ink); font-weight: 600; }
.steps h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 8px; font-size: 21px; letter-spacing: -0.02em; }
.steps p { margin: 0 0 8px; color: var(--dim); font-size: 15.5px; text-wrap: pretty; }
.steps p:last-child { margin-bottom: 0; }
.steps strong { color: var(--paper); font-weight: 500; }
.steps a { color: var(--violet-hi); }
.required {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 181, 71, 0.15);
  border: 1px solid rgba(255, 181, 71, 0.4);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

/* macOS mocks: the "Not Opened" alert and the Privacy & Security pane */
.install-visual { position: relative; padding: 0 0 20px; }
.mac-dialog {
  position: relative;
  z-index: 2;
  width: 270px;
  margin: 0 28px 0 auto;
  padding: 22px 20px 16px;
  border-radius: 18px;
  background: rgba(44, 44, 50, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  font-size: 12.5px;
  animation: dialog-in 7s var(--ease) infinite;
}
.mac-dialog img { margin: 0 auto 10px; }
.md-title { margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.md-text { margin: 0 0 16px; color: #c9c9cf; line-height: 1.4; }
.md-buttons { display: grid; gap: 7px; }
.md-buttons span { padding: 6px 0; border-radius: 8px; background: rgba(255, 255, 255, 0.12); font-weight: 500; }
.md-buttons .md-done { background: #0a84ff; color: #fff; }
@keyframes dialog-in {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  6%, 30% { opacity: 1; transform: none; }
  36%, 100% { opacity: 0.35; transform: translateY(-6px) scale(0.97); filter: blur(1px); }
}
.mac-settings {
  position: relative;
  margin: -52px 72px 0 0;
  border-radius: 14px;
  background: #1e1e22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  font-size: 13px;
}
.ms-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-radius: 14px 14px 0 0; background: #2a2a2f; }
.ms-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.ms-bar i:nth-child(2) { background: #febc2e; }
.ms-bar i:nth-child(3) { background: #28c840; }
.ms-bar span { margin-left: 12px; font-weight: 600; color: #e6e6ea; }
.ms-body { padding: 16px 16px 20px; }
.ms-h { margin: 0 0 8px; font-weight: 600; color: #e6e6ea; }
.ms-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: #2a2a2f;
  color: #d4d4d8;
}
.ms-row:first-of-type { border-radius: 10px 10px 0 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.ms-row:last-of-type { border-radius: 0 0 10px 10px; }
.ms-select { color: #9a9aa2; white-space: nowrap; }
.ms-open {
  position: relative;
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 500;
  animation: open-press 7s infinite;
}
@keyframes open-press {
  0%, 60% { background: rgba(255, 255, 255, 0.16); box-shadow: none; }
  64% { background: #0a84ff; box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.35); }
  70%, 100% { background: #0a84ff; box-shadow: 0 0 0 0 rgba(10, 132, 255, 0); }
}
.cursor {
  position: absolute;
  left: 55%;
  top: 45%;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-6.5 1 3.6 7-2.7 1.3-3.5-7L5 20z' fill='%23fff' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
  animation: cursor-move 7s var(--ease-io) infinite;
}
@keyframes cursor-move {
  0%, 36% { transform: translate(-160px, 70px); opacity: 0; }
  42% { opacity: 1; }
  58% { transform: none; }
  62% { transform: scale(0.85); }
  66%, 92% { transform: none; opacity: 1; }
  100% { transform: none; opacity: 0; }
}

.terminal {
  max-width: 760px;
  margin: 48px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #050609;
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d48; }
.term-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--dimmer); }
.term-body { display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 18px; }
.term-body code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: var(--mono); font-size: 14px; color: var(--paper); }
.prompt { color: var(--green); margin-right: 8px; }
.copy { flex-shrink: 0; }
.copy.done { color: var(--green); border-color: rgba(74, 222, 128, 0.4); }
.fine { margin: 22px 0 0; font-size: 14px; color: var(--dimmer); }
.fine a { color: var(--dim); }

/* ---------- Release notes ---------- */
.notes-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.notes-grid header { position: sticky; top: 110px; align-self: start; }
.notes-chapter h2 { font-size: clamp(40px, 5vw, 68px); }
.notes-date { margin: 14px 0 26px; font-family: var(--mono); font-size: 13px; color: var(--dimmer); }
.notes { color: var(--dim); font-size: 15.5px; }
.notes > p:first-child { margin-top: 0; }
.notes h4 { margin: 28px 0 10px; color: var(--paper); font-size: 15px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.notes ul,
.notes ol { margin: 0; padding: 0; list-style: none; }
.notes a { color: var(--violet-hi); }
.notes li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); }
.notes li::before { content: "▸"; position: absolute; left: 4px; color: var(--violet); }
.notes code { padding: 0.1em 0.35em; border-radius: 5px; background: var(--ink-3); color: var(--paper); font-family: var(--mono); font-size: 0.86em; }
.notes strong { color: var(--paper); font-weight: 500; }

/* ---------- Post-download sheet ---------- */
.sheet {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: var(--ink-2);
  color: var(--paper);
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 181, 71, 0.15);
  overflow: auto;
}
.sheet::backdrop { background: rgba(3, 4, 7, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in 0.5s var(--ease); }
.sheet[open]::backdrop { animation: fade-in 0.4s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-inner { padding: 28px; }
.sheet-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.sheet h2 { font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; }
.sheet h2 em { background: linear-gradient(100deg, var(--violet-hi), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 0.06em 0.1em 0; }
.sheet-lede { margin: 10px 0 18px; color: var(--dim); font-size: 15px; }
.sheet-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.sheet-steps li { counter-increment: s; position: relative; min-height: 28px; padding: 3px 0 0 40px; color: var(--dim); font-size: 15px; }
.sheet-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
}
.sheet-steps li:last-child::before { border: 0; background: var(--amber); color: var(--ink); font-weight: 600; }
.sheet-steps strong { color: var(--paper); font-weight: 500; }
.sheet .terminal { margin-top: 20px; }
.sheet .term-body code { font-size: 12.5px; }
.sheet-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 22px; }
.btn-solid {
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.btn-solid:hover { background: #fff; }

/* ---------- Finale + credits ---------- */
.finale {
  position: relative;
  padding: clamp(140px, 22vh, 220px) var(--gutter) clamp(120px, 18vh, 180px);
  text-align: center;
  isolation: isolate;
}
.finale::before {
  content: "";
  position: absolute;
  inset: 10% 0 0;
  z-index: -1;
  background: radial-gradient(40% 50% at 50% 55%, rgba(139, 92, 246, 0.22), transparent 70%);
}
.finale-note { margin: 22px 0 0; font-size: 14.5px; color: var(--dim); }
.finale-note a { color: var(--amber); text-decoration: none; }
.finale-note b { font-weight: 600; }
.finale h2 {
  margin-bottom: 48px;
  font-size: clamp(72px, 15vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.credits {
  padding: 80px var(--gutter) 56px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.credits dl { display: grid; gap: 12px; margin: 0 auto; max-width: 560px; }
.credits dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.credits dt {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dimmer);
  padding-top: 3px;
}
.credits dd { margin: 0; text-align: left; font-size: 15px; }
.credits dd a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.credits dd a:hover { border-color: var(--paper); }
.fin { margin: 64px 0 8px; font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--dim); }
.fineprint { margin: 0; font-size: 12.5px; color: var(--dimmer); }

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(10px);
  transition:
    opacity 1.1s var(--ease) var(--d, 0ms),
    transform 1.1s var(--ease) var(--d, 0ms),
    filter 1.1s var(--ease) var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; filter: none; }

.js .title .line > * { transform: translateY(105%); transition: transform 1.3s var(--ease) var(--d, 0ms); }
.js .loaded .title .line > * { transform: none; }
.js .hero .kicker,
.js .hero .lede,
.js .hero .cta,
.js .hero .heads-up,
.js .hero .stats {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms);
}
.js .loaded .hero .kicker,
.js .loaded .hero .lede,
.js .loaded .hero .cta,
.js .loaded .hero .heads-up,
.js .loaded .hero .stats { opacity: 1; transform: none; }
.js .stage { opacity: 0; translate: 0 80px; transition: opacity 1.6s var(--ease) 1.25s, translate 1.6s var(--ease) 1.25s; }
.js .loaded .stage { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-keys { grid-column: span 2; }
  .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}
@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .timecode { display: none; }
  .install-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .install-visual { padding: 0 0 30px; max-width: 520px; }
  .notes-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .notes-grid header { position: static; }
  .demo-timeline { padding-left: 0; }
  .lane-label { position: static; display: block; transform: none; margin-bottom: 4px; }
  .demo-lane { height: auto; }
  #demo-wave { height: 44px; }
  .demo-cues { height: 44px; }
  .cue { top: 5px; bottom: 5px; line-height: 32px; font-size: 11px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento,
  .methods { grid-template-columns: minmax(0, 1fr); }
  .c-audio,
  .c-editor,
  .c-library,
  .c-keys { grid-column: auto; }
  .ed-row { grid-template-columns: 1fr; gap: 2px; }
  .cta { flex-direction: column; }
  .btn-play { width: 100%; justify-content: center; }
  .demo-sub { white-space: normal; width: 90%; }
  .demo-status { top: 8px; left: 8px; font-size: 11px; padding: 4px 10px; }
  .nudge { width: 100%; justify-content: space-between; }
  .nudge button { padding: 8px 9px; }
  .offset { min-width: 0; font-size: 17px; }
  .auto { width: 100%; justify-content: center; }
  .marquee { margin-top: 56px; }
  .stats { width: 100%; }
  .stat { flex: 1; padding: 12px 10px; }
  .stat dt { font-size: 9.5px; letter-spacing: 0.04em; }
  .stat dd { font-size: 17px; }
  .stat-count dd { font-size: 34px; }
  .hero .stats .stat:nth-child(2) { display: none; }
  .hero .stats .stat:nth-child(3) { border-left: 1px solid var(--line); }
  .steps li { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .mac-dialog { width: 230px; }
  .mac-settings { margin: -44px 24px 0 0; font-size: 12px; }
  .mac-dialog { margin-right: 8px; }
  .ms-select { display: none; }
  .sheet-inner { padding: 22px 18px; }
  .sheet h2 { font-size: 26px; }
  .credits dl div { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain,
  .rec,
  .btn-ring,
  .marquee-track,
  .demo-film,
  .clip,
  .viz-eq i,
  .viz-keys kbd,
  .viz-chip .led,
  .live,
  .mac-dialog,
  .ms-open,
  .cursor,
  .sheet[open],
  .sheet[open]::backdrop { animation: none !important; }
  .cursor { display: none; }
  .curtain { display: none; }
  .js .reveal,
  .js .title .line > *,
  .js .hero .kicker,
  .js .hero .lede,
  .js .hero .cta,
  .js .hero .heads-up,
  .js .hero .stats,
  .js .stage { opacity: 1 !important; transform: none !important; translate: none !important; filter: none !important; transition: none !important; }
  .window { transform: none !important; }
}
