/* PrintBus: printbus.app
   The same world as the app's panel (Sources/Theme.swift): a dark anodised panel, recessed displays,
   amber (listening), red (REC) and green (PLAY) lamps, raised keys, a tape counter and a
   green-yellow-red stereo meter. Always dark, like the app. */

@font-face { font-family: "PB Display"; src: url(fonts/saira-sc-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PB Display"; src: url(fonts/saira-sc-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PB Sans"; src: url(fonts/plex-sans-var.woff2) format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "PB Sans"; src: url(fonts/plex-sans-italic-var.woff2) format("woff2"); font-weight: 100 700; font-style: italic; font-display: swap; }
@font-face { font-family: "PB Mono"; src: url(fonts/plex-mono-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "PB Mono"; src: url(fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PB Mono"; src: url(fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  /* From Theme.swift */
  --panel-top: #1e1e21;
  --panel-bottom: #131315;
  --display: #080809;
  --amber: #ffb329;
  --amber-glow: rgba(255, 179, 41, .55);
  --rec: #ff3d33;
  --rec-glow: rgba(255, 61, 51, .6);
  --play: #4ddb75;
  --play-glow: rgba(77, 219, 117, .55);
  --m-green: #30d159;
  --m-yellow: #ffd60a;
  --m-red: #ff453a;

  --bg: #0a0a0c;
  --bg-raise: #111114;
  --ink: #f2f0ea;          /* headings */
  --text: #f0f0f0;         /* Theme.text */
  --body: #bdbdc4;         /* running text */
  --dim: #94949b;          /* Theme.secondary */
  --faint: #7c7c84;        /* Theme.tertiary, lifted to pass WCAG AA on the page background */
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);

  --font-display: "PB Display", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --font-sans: "PB Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "PB Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.rm { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 1.0625rem/1.62 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Atmosphere: a warm glow from above and a fine grain, like light on anodised metal. */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(255, 179, 41, .085), transparent 62%),
    radial-gradient(900px 540px at -6% 18%, rgba(255, 61, 51, .035), transparent 60%),
    linear-gradient(#0c0c0f, #09090b 60%, #0a0a0c);
}
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: .045;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 179, 41, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 14px; border-radius: 8px;
  background: var(--amber); color: #1a1204; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.012em;
  line-height: .96;
  text-wrap: balance;
  margin: 0;
}
h2.display { font-size: clamp(2.5rem, 5.4vw, 4.9rem); }
.h3.display, h3.display { font-size: clamp(1.9rem, 3.1vw, 2.7rem); line-height: 1; }
.amber { color: var(--amber); }
h3 { color: var(--ink); }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 600; }

.ch-label {
  display: flex; align-items: center; gap: .75rem;
  margin: 0 0 1.1rem;
  font: 500 .75rem/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}
.ch-num {
  display: inline-grid; place-items: center;
  min-width: 2.6em; height: 1.9em; padding: 0 .5em;
  border-radius: 5px;
  background: var(--display);
  color: var(--amber);
  text-shadow: 0 0 8px var(--amber-glow);
  box-shadow: inset 0 1px 3px #000, 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(0, 0, 0, .7);
  letter-spacing: .08em;
}
.ch-label::after {
  content: "";
  flex: 1; max-width: 120px; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.ch-label--sub::after { display: none; }

/* ---------- Hardware: lamps, keys, displays, grooves ---------- */
.lamp {
  --c: var(--amber); --g: var(--amber-glow);
  position: relative; flex: none;
  width: .5rem; height: .5rem; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .5);
}
.lamp::after {
  content: ""; position: absolute; inset: 1px 1px 50%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(rgba(255, 255, 255, .12), transparent);
}
.lamp.is-on { background: var(--c); box-shadow: 0 0 .35em var(--g), 0 0 .12em var(--c), inset 0 0 0 .5px rgba(0, 0, 0, .5); }
.lamp.is-on::after { background: linear-gradient(rgba(255, 255, 255, .5), transparent); }
.lamp--rec { --c: var(--rec); --g: var(--rec-glow); }
.lamp--play { --c: var(--play); --g: var(--play-glow); }
.lamp.pulse { animation: lamp-pulse .8s ease-in-out infinite alternate; }
@keyframes lamp-pulse { from { opacity: 1; } to { opacity: .35; } }

.key {
  --tint: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .82em 1.25em;
  border: 0; border-radius: 8px;
  font: 600 .8125rem/1 var(--font-sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--tint);
  cursor: pointer;
  background: linear-gradient(#38383e, #25252a);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .65),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(0, 0, 0, .3),
    0 2px 3px rgba(0, 0, 0, .55);
  transition: transform .08s, box-shadow .12s, background .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.key:hover { background: linear-gradient(#404047, #2a2a30); }
.key:active, .key.is-pressed {
  transform: translateY(1px);
  background: linear-gradient(#1f1f23, #27272b);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 2px 4px rgba(0, 0, 0, .5);
}
.key--sm { padding: .66em 1em; font-size: .75rem; }
.key--quiet { color: var(--dim); }
/* A backlit amber key: the one control on the page that's always lit. */
.key--lit {
  color: #1c1203;
  background: linear-gradient(#ffc653, #f5a318);
  box-shadow:
    0 0 0 1px rgba(60, 35, 0, .9),
    inset 0 1px 0 rgba(255, 244, 214, .75),
    inset 0 -1px 0 rgba(120, 70, 0, .45),
    0 2px 3px rgba(0, 0, 0, .55),
    0 0 22px rgba(255, 179, 41, .28);
}
.key--lit:hover { background: linear-gradient(#ffd06b, #ffae2a); box-shadow: 0 0 0 1px rgba(60, 35, 0, .9), inset 0 1px 0 rgba(255, 244, 214, .8), inset 0 -1px 0 rgba(120, 70, 0, .45), 0 2px 3px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 179, 41, .4); }
.key--lit:active, .key--lit.is-pressed {
  background: linear-gradient(#e89a17, #f5a82a);
  box-shadow: 0 0 0 1px rgba(60, 35, 0, .9), inset 0 2px 4px rgba(90, 50, 0, .45), 0 0 16px rgba(255, 179, 41, .25);
}
.key[disabled] { filter: saturate(.4) brightness(.8); cursor: default; }

/* A recessed display, like the app's RecessedDisplay. */
.screen {
  background: var(--display);
  border-radius: 12px;
  box-shadow:
    inset 0 2px 5px #000,
    inset 0 0 0 1px rgba(0, 0, 0, .9),
    0 1px 0 rgba(255, 255, 255, .07),
    0 -1px 0 rgba(0, 0, 0, .6);
}

.groove { height: 2px; background: linear-gradient(rgba(0, 0, 0, .55) 50%, rgba(255, 255, 255, .05) 50%); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(12, 12, 14, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.nav-inner {
  height: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-glyph { width: 20px; height: 20px; color: var(--amber); filter: drop-shadow(0 0 5px var(--amber-glow)); }
.brand-mark { height: 13px; width: auto; aspect-ratio: 9.5; }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a {
  font: 500 .8125rem/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim); text-decoration: none; padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-bus { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .04); }
.nav-bus-fill {
  position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, rgba(255, 179, 41, .1), var(--amber));
  box-shadow: 0 0 8px var(--amber-glow);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  min-height: min(100svh, 980px);
  padding: calc(var(--nav-h) + clamp(24px, 6vh, 72px)) var(--gutter) clamp(40px, 7vh, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.4rem;
  font: 500 .75rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.hero-title { font-size: clamp(3rem, 5.5vw, 5.6rem); line-height: .93; margin-bottom: 1.6rem; }
.hero-title .line { display: block; }
.lede { font-size: clamp(1.08rem, 1.35vw, 1.22rem); line-height: 1.6; max-width: 34em; color: #c9c9cf; margin-bottom: 2rem; }

.signup { max-width: 34rem; }
.signup-field {
  display: flex; gap: 8px; padding: 6px;
  border-radius: 12px;
  background: var(--display);
  box-shadow: inset 0 2px 5px #000, inset 0 0 0 1px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .07);
}
.signup input[type="email"] {
  flex: 1; min-width: 0;
  padding: 0 .9rem;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: 400 1rem/1 var(--font-mono);
  letter-spacing: .01em;
}
.signup input[type="email"]::placeholder { color: var(--faint); }
.signup input[type="email"]:focus { outline: none; }
.signup-field:focus-within { box-shadow: inset 0 2px 5px #000, inset 0 0 0 1px rgba(0, 0, 0, .9), 0 0 0 2px rgba(255, 179, 41, .55); }
.signup .key { padding-block: 1em; }
.signup-note { margin: .75rem 0 0; font-size: .875rem; color: var(--dim); }
.signup-note a { color: var(--dim); }
.signup-status { margin: .75rem 0 0; font-size: .95rem; min-height: 0; }
.signup-status:empty { display: none; }
.signup-status.is-error { color: #ff8a80; }
.signup-done {
  display: flex; gap: .9rem; align-items: flex-start;
  max-width: 34rem; padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(77, 219, 117, .06);
  box-shadow: inset 0 0 0 1px rgba(77, 219, 117, .28);
  color: var(--text);
}
.signup-done .lamp { margin-top: .5em; }
.signup-done p { margin: 0; }
.signup-done small { display: block; color: var(--dim); margin-top: .3rem; font-size: .875rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  font: 500 .75rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.hero-facts li { display: flex; align-items: center; gap: .55rem; }
.hero-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }

/* The stage: a slice of a Mac desktop with the menu bar, and PrintBus open under its icon. */
.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 30px 1fr;
  min-height: 560px;
  border-radius: 20px;
  background:
    radial-gradient(520px 360px at 72% 30%, rgba(255, 179, 41, .13), transparent 70%),
    radial-gradient(380px 300px at 10% 90%, rgba(255, 61, 51, .07), transparent 70%),
    linear-gradient(160deg, #16161a, #0d0d10);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .05), 0 40px 90px -30px rgba(0, 0, 0, .9);
  isolation: isolate;
}
.hero-stage::before {
  /* a faint graticule, like a scope screen */
  content: ""; position: absolute; inset: 30px 0 0; z-index: -1; border-radius: 0 0 20px 20px;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.menubar {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 14px;
  border-radius: 20px 20px 0 0;
  background: rgba(38, 38, 43, .72);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  font: 500 12.5px/1 var(--font-sans); color: #e8e8ea;
}
.mb-dots { display: flex; gap: 7px; }
.mb-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.mb-right { display: flex; align-items: center; gap: 12px; }
.mb-glyph { width: 15px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1.4px rgba(255, 255, 255, .55); }
.mb-wifi { width: 12px; border-radius: 12px 12px 2px 2px; }
.mb-pb {
  display: grid; place-items: center;
  width: 30px; height: 22px; border-radius: 5px;
  background: rgba(255, 255, 255, .17);
  color: #fff;
}
.mb-pb svg { width: 15px; height: 15px; }
.mb-pb.is-rec svg { color: var(--rec); }
.mb-clock { font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }

.sources {
  grid-column: 1; grid-row: 2;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 24px 0 24px 22px;
  z-index: 1;
}
.src {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .8rem;
  border-radius: 9px;
  font: 600 .72rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim);
  background: linear-gradient(#2a2a30, #1c1c20);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1), 0 6px 14px -6px rgba(0, 0, 0, .8);
  transition: color .3s;
  width: max-content;
}
.src.is-live { color: var(--text); }
.bus-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.bus-lines path { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1.5; transition: stroke .4s; }
.bus-lines path.is-live { stroke: var(--amber); filter: drop-shadow(0 0 4px var(--amber-glow)); stroke-dasharray: 3 7; animation: bus-flow .9s linear infinite; }
@keyframes bus-flow { to { stroke-dashoffset: -20; } }

.hero-stage .pb--hero {
  grid-column: 2; grid-row: 2;
  justify-self: end; align-self: start;
  margin: 8px 16px 24px 28px;
  font-size: min(12.5px, calc((100vw - 64px) / 34));
  z-index: 2;
}
.demo-toggle {
  position: absolute; right: var(--gutter); bottom: clamp(12px, 3vh, 28px);
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .7rem; border: 0; border-radius: 7px;
  background: transparent;
  font: 500 .6875rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); cursor: pointer;
}
.demo-toggle:hover { color: var(--text); }
.demo-toggle svg { width: 11px; height: 11px; }
.rm .demo-toggle { display: none; }

/* ---------- The PrintBus panel (HTML recreation of PanelView) ----------
   1em = 10 of the app's points, so every size below is the SwiftUI value / 10. */
.pb {
  font-size: 10px;
  width: 34em;
  padding: 1.4em;
  display: flex; flex-direction: column; gap: 1.2em;
  border-radius: 1.3em;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.2;
  background: linear-gradient(var(--panel-top), var(--panel-bottom));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .75),
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 2.4em 5em -1.6em rgba(0, 0, 0, .85),
    0 .8em 1.6em rgba(0, 0, 0, .35);
  user-select: none;
}
.pb .lamp { width: .7em; height: .7em; }
.pb-head { display: flex; align-items: center; gap: .7em; }
.pb-glyph { width: 1.4em; height: 1.4em; color: var(--amber); filter: drop-shadow(0 0 .3em var(--amber-glow)); }
.pb-mark { height: .88em; width: auto; aspect-ratio: 9.5; color: var(--text); }
.pb-sp { flex: 1; }
.pb-key {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .55em 1em;
  border-radius: .5em;
  font: 600 1em/1 var(--font-sans); letter-spacing: .05em; text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(#383838, #262626);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .16), 0 .1em .15em rgba(0, 0, 0, .45);
  white-space: nowrap;
}
.pb-auto:not(.is-on) { color: var(--dim); }
.pb-display {
  padding: 1em;
  border-radius: .8em;
  background: var(--display);
  box-shadow: inset 0 .15em .3em #000, inset 0 0 0 1px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .09);
}
.pb-status { display: flex; align-items: center; gap: .6em; }
.pb-state { font: 600 1em/1 var(--font-sans); letter-spacing: .15em; color: var(--faint); }
.pb-state.is-listening { color: var(--amber); }
.pb-state.is-rec { color: var(--rec); }
.pb-state.is-play { color: var(--play); }
.pb-counter {
  margin-left: auto;
  font: 300 2em/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: -.01em;
}
.pb-counter.is-dim { color: var(--faint); }
.pb-title {
  margin-top: .75em;
  font: 600 1.3em/1.25 var(--font-sans);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb-sub { font: 400 1.1em/1.35 var(--font-sans); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-meter { width: 100%; height: 3em; margin-top: .9em; }
/* S / I LUFS and TP dBTP, under the bars */
.pb-loud { display: flex; align-items: baseline; gap: .45em; margin-top: .75em; font: 500 .95em/1 var(--font-mono); color: var(--faint); white-space: nowrap; }
.pb-loud b { display: inline-block; min-width: 3.1em; text-align: right; font-weight: 400; color: var(--text); font-variant-numeric: tabular-nums; }
.pb-loud-u { margin: 0 .5em 0 .1em; font-size: .9em; letter-spacing: .04em; }
.pb-loud-tp { margin-left: auto; display: inline-flex; align-items: baseline; gap: .45em; }
.pb-loud-tp .pb-loud-u { margin-right: 0; }
.pb-loud-tp b { min-width: 2.6em; }
.pb-loud-tp.is-over b { color: var(--m-red); }
/* With no figures at all, the app draws the whole line in the tertiary label colour. */
.pb-loud.is-idle, .pb-loud.is-idle b { color: rgba(255, 255, 255, .25); }
.pb-takes { display: flex; flex-direction: column; gap: .6em; }
.pb-takes-head { display: flex; align-items: baseline; gap: .6em; font: 600 1em/1 var(--font-sans); letter-spacing: .15em; text-transform: uppercase; color: var(--dim); }
.pb-count { font: 600 .9em/1 var(--font-mono); letter-spacing: 0; color: var(--faint); }
.pb-hint { font-size: .85em; letter-spacing: .1em; color: var(--faint); transition: color .3s; }
.pb-hint.is-amber { color: var(--amber); }
.pb-dot { color: var(--faint); letter-spacing: 0; }
.pb-takes-head > span:last-child:not(.pb-hint) { font-size: .85em; letter-spacing: .1em; }
.pb-empty { margin: 0; padding: .6em 0; font-size: 1.1em; color: var(--dim); }
.pb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2em; }
.take {
  display: flex; align-items: center; gap: .7em;
  padding: .4em .6em;
  border-radius: .6em;
  transition: background .25s, box-shadow .25s;
}
/* The glyph column: no box, a dim waveform at rest; a loaded take shows a glowing amber pause glyph. */
.take-btn {
  flex: none; display: grid; place-items: center;
  width: 1.6em; height: 2.4em;
  color: var(--amber);
}
.take-btn svg { width: 1.1em; height: 1.1em; opacity: .45; }
.take-btn.is-playing svg { width: .9em; height: .9em; opacity: 1; filter: drop-shadow(0 0 .4em rgba(255, 179, 41, .45)); }
.take-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2em; }
.take-name { font: 500 1.2em/1.2 var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.take-when { font: 400 1.05em/1.2 var(--font-sans); color: var(--dim); }
.take-dur { flex: none; margin-left: .1em; font: 500 1.05em/1.2 var(--font-mono); color: var(--dim); }
.take.is-selected { background: rgba(255, 179, 41, .13); box-shadow: inset 0 0 0 1px rgba(255, 179, 41, .35); }
.take.is-loaded { background: rgba(255, 255, 255, .07); }
.take.is-new { animation: take-in .55s var(--ease) both; }
@keyframes take-in { from { opacity: 0; transform: translateY(-.6em); background: rgba(255, 179, 41, .22); } }
.take-prog { display: flex; align-items: center; gap: .7em; height: 1.3em; }
.take-bar { position: relative; flex: 1; height: .3em; border-radius: 99em; background: rgba(255, 255, 255, .1); overflow: hidden; }
.take-bar i { position: absolute; inset: 0 auto 0 0; width: 20%; min-width: .3em; border-radius: inherit; background: var(--amber); }
.take-time { font: 500 1em/1 var(--font-mono); color: var(--amber); }
.pb-foot { display: flex; align-items: center; gap: .8em; }
.pb-pill { font: 500 .95em/1 var(--font-mono); color: var(--dim); padding: .3em .7em; border-radius: 99em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); white-space: nowrap; }
.pb-gear { width: 1.5em; height: 1.5em; color: var(--dim); }

/* ---------- Chapters ---------- */
.chapter { position: relative; padding: clamp(80px, 13vh, 150px) 0 0; }
.chapter-head {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.chapter-head h2 { max-width: 15em; }
.chapter-head--split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.chapter-intro { max-width: 36em; margin: 1.4rem 0 0; font-size: clamp(1.05rem, 1.3vw, 1.17rem); color: #c3c3c9; }
.chapter-head--split .chapter-intro { margin: 0; }
.chapter-more { margin: 1.2rem 0 0; font: 500 .75rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.chapter-more a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(255, 179, 41, .35); padding-bottom: 3px; }
.chapter-more a:hover { border-bottom-color: var(--amber); }

/* Pinned scroll scenes: the stage sticks while the section scrolls, and scroll progress drives it. */
.pin { position: relative; height: calc(100svh + var(--steps, 3) * 72svh); }
.pin[data-steps="2"] { --steps: 2; }
.pin[data-steps="3"] { --steps: 3; }
.pin[data-steps="4"] { --steps: 4; }
.pin-stage {
  position: sticky; top: 0;
  height: 100svh;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3vh) var(--gutter) 4vh;
  display: grid;
  grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
  gap: clamp(24px, 4.5vw, 80px);
  align-items: center;
}
.no-js .pin { height: auto; }
.no-js .pin-stage { position: relative; height: auto; padding-block: 48px; }
.pin-visual { position: relative; min-width: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .6s var(--ease); pointer-events: none; }
.step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.no-js .step { grid-area: auto; opacity: 1; transform: none; margin-bottom: 2rem; }
.step h3 {
  margin: 0 0 .9rem;
  font: 600 clamp(1.55rem, 2.3vw, 2.15rem)/1.08 var(--font-display);
  letter-spacing: -.005em;
}
.step-n {
  display: block; margin-bottom: .8rem;
  font: 500 .75rem/1 var(--font-mono); letter-spacing: .16em; color: var(--amber);
}
.step p { font-size: clamp(1.02rem, 1.25vw, 1.12rem); color: #c3c3c9; max-width: 30em; }
.step-leds { display: flex; gap: 6px; margin-top: 1.6rem; }
.step-leds i {
  width: 22px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .1);
  transition: background .3s, box-shadow .3s;
}
.step-leds i.is-on { background: var(--amber); box-shadow: 0 0 6px var(--amber-glow); }

/* 01 Why: patch cables that untangle into one bus */
.why-lists { display: flex; flex-direction: column; gap: 2rem; }
.list-label { margin: 0 0 .9rem; font: 500 .75rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.list-label--amber { color: var(--amber); }
.old-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: .55rem; }
.old-steps li {
  width: fit-content;
  counter-increment: s;
  position: relative; padding-left: 2.2rem;
  font-size: 1.05rem; color: #c3c3c9;
  transition: color .4s;
}
.old-steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: .2em;
  font: 500 .75rem/1.4 var(--font-mono); color: var(--faint);
}
.old-steps li::after {
  content: ""; position: absolute; left: 2.2rem; right: auto; top: 55%;
  width: var(--strike, 0%); max-width: calc(100% - 2.2rem); height: 1.5px;
  background: var(--rec); box-shadow: 0 0 6px var(--rec-glow);
}
.old-steps li.is-struck { color: var(--faint); }
.why-new { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); }
.why-new.is-on { opacity: 1; transform: none; }
.no-js .why-new { opacity: 1; transform: none; }
.why-new-line { margin: 0; font: 700 clamp(2.2rem, 4vw, 3.4rem)/1 var(--font-display); color: var(--ink); }
.why-new-sub { margin: .6rem 0 0; color: var(--dim); }
.cables-svg { width: 100%; height: auto; overflow: visible; }
.cbox rect { fill: #17171b; stroke: rgba(255, 255, 255, .1); }
.cbox text { fill: #d6d6db; font: 600 15px var(--font-sans); text-anchor: middle; letter-spacing: .02em; }
.cbox text.sub { fill: var(--faint); font: 500 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.cbox--src rect, .cbox--dst rect { fill: #1d1d22; stroke: rgba(255, 179, 41, .4); }
.cable { fill: none; stroke-linecap: round; }
.cable-under { stroke: #050506; stroke-width: 9; }
.cable-top { stroke-width: 5.5; }
.jack { fill: #9a9aa3; }
.bus-label rect { fill: var(--display); stroke: rgba(255, 179, 41, .6); }
.bus-label text { fill: var(--amber); font: 700 17px var(--font-display); text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }
.bus-label { opacity: 0; transition: opacity .4s; }
.bus-label.is-on { opacity: 1; }

/* 02 Story */
.story-visual { height: min(600px, calc(100svh - var(--nav-h) - 9vh)); min-height: 540px; }
.story-visual .pb--story { position: absolute; right: 0; top: 100px; z-index: 2; font-size: min(12px, calc((100vw - 32px) / 34)); }
.np {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 10px 12px; align-items: center;
  width: 290px; padding: 12px 14px 14px;
  border-radius: 14px;
  background: rgba(40, 40, 46, .82);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 40px -12px rgba(0, 0, 0, .8);
  transition: opacity .4s, transform .5s var(--ease);
}
.np-art { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #3a2b12, #1b1408); color: var(--amber); }
.np-art svg { width: 22px; height: 22px; }
.np-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.np-app { font: 600 .625rem/1.4 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-title { font: 600 .92rem/1.25 var(--font-sans); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: .82rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-state { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--text); }
.np-state svg { width: 12px; height: 12px; }
.np-bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.np-bar i { display: block; height: 100%; width: 0; background: var(--text); border-radius: inherit; }
.np.is-remote .np-app { color: var(--amber); }
.story-bus { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.story-bus path { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1.5; transition: stroke .4s; }
.story-bus path.is-live { stroke: var(--amber); stroke-dasharray: 3 7; animation: bus-flow .9s linear infinite; filter: drop-shadow(0 0 4px var(--amber-glow)); }
.paused .story-bus path.is-live { animation-play-state: paused; }
.daw-chip {
  position: absolute; left: 0; bottom: 28px; z-index: 3;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .6rem .85rem;
  border-radius: 10px;
  font: 600 .72rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  background: linear-gradient(#2a2a30, #1c1c20);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1), 0 14px 30px -10px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s, transform .55s var(--ease);
}
.daw-chip.is-on { opacity: 1; transform: none; }
.daw-chip-state { color: var(--play); }

/* 03 Trim */
.trim-visual { width: 100%; }
.trim-display { padding: 18px 18px 14px; }
.trim-top { display: flex; align-items: center; gap: .7rem; font: 600 .78rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; }
.trim-state { color: var(--rec); min-width: 4.6em; }
.trim-state.is-saved { color: var(--play); }
.trim-name { color: var(--text); text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trim-dur { margin-left: auto; font: 300 1.5rem/1 var(--font-mono); letter-spacing: -.01em; color: var(--text); text-transform: none; }
.trim-wave { position: relative; margin-top: 16px; height: clamp(190px, 30vh, 290px); }
.trim-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.trim-mark {
  position: absolute; top: 0;
  display: flex; flex-direction: column; gap: 3px;
  padding-left: 9px;
  font: 500 .64rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  border-left: 1px solid rgba(255, 179, 41, .6);
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s, transform .5s var(--ease);
  white-space: nowrap;
}
.trim-mark b { font-weight: 500; color: var(--amber); }
.trim-mark.is-on { opacity: 1; transform: none; }
.trim-mark[data-mark="tail"] { border-left: 0; border-right: 1px solid rgba(255, 179, 41, .6); padding: 0 9px 0 0; text-align: right; align-items: flex-end; }
.trim-scale { display: flex; gap: 1rem; margin-top: 10px; font: 500 .64rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* 04 Drag */
.drag-visual { min-height: 500px; }
.drag-visual .pb--list {
  position: absolute; left: 0; top: 0; z-index: 2;
  font-size: min(11px, calc((100vw - 32px) / 34));
  width: 31em; padding: 1.1em;
}
.daw {
  position: absolute; right: 0; bottom: 34px; z-index: 1;
  width: min(470px, 78%);
  border-radius: 12px;
  overflow: hidden;
  background: #16161a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 70px -25px rgba(0, 0, 0, .9);
  font-family: var(--font-sans);
}
.daw-bar { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; background: linear-gradient(#2a2a2f, #202024); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .6); }
.daw-lights { display: flex; gap: 6px; }
.daw-lights i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.daw-name { font: 600 .7rem/1 var(--font-sans); letter-spacing: .06em; color: var(--dim); }
.daw-tc { margin-left: auto; font: 400 .72rem/1 var(--font-mono); color: var(--play); background: #050506; padding: 4px 7px; border-radius: 4px; }
.daw-ruler { display: flex; justify-content: space-between; margin-left: 76px; padding: 6px 10px 5px 4px; font: 400 .62rem/1 var(--font-mono); color: var(--faint); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.daw-tracks { display: flex; flex-direction: column; }
.trk { display: flex; height: 38px; border-bottom: 1px solid rgba(0, 0, 0, .5); }
.trk-head { flex: none; width: 76px; display: flex; align-items: center; padding: 0 10px; font: 600 .66rem/1 var(--font-sans); letter-spacing: .04em; color: var(--dim); background: #1d1d21; box-shadow: inset -1px 0 0 rgba(0, 0, 0, .6); }
.trk-lane { position: relative; flex: 1; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), rgba(255, 255, 255, .035) calc(20% - 1px) 20%); }
.rgn { position: absolute; top: 4px; bottom: 4px; left: 3%; border-radius: 4px; overflow: hidden; }
.rgn--sess { width: 90%; background: #2c3440 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='20' preserveAspectRatio='none'%3E%3Cpath d='M0 10h60' stroke='%23798aa3' stroke-width='14' stroke-dasharray='1 2' opacity='.55'/%3E%3C/svg%3E") center/60px 70% repeat-x; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.rgn--b { background-color: #2f3a33; }
.rgn--take {
  width: 64%;
  background:
    linear-gradient(rgba(255, 179, 41, .95), rgba(255, 179, 41, .95)) top/100% 11px no-repeat,
    #2b2112 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' preserveAspectRatio='none'%3E%3Cpath d='M0 10h80' stroke='%23ffb329' stroke-width='16' stroke-dasharray='1 1.6' opacity='.6'/%3E%3C/svg%3E") 0 7px/80px 58% repeat-x;
  box-shadow: inset 0 0 0 1px rgba(255, 179, 41, .6);
  opacity: 0; transform: scale(.94);
  transform-origin: 0 50%;
}
.rgn--short { width: 18%; }
.rgn-name { position: absolute; left: 5px; top: 1px; font: 600 8px/10px var(--font-sans); color: #1c1203; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 8px); }
.rgn--take.is-in { opacity: 1; transform: none; transition: opacity .25s, transform .45s var(--ease); }
.no-js .rgn--take { opacity: 1; transform: none; }
.daw-playhead { position: absolute; top: 30px; bottom: 0; left: calc(76px + 3%); width: 1px; background: rgba(255, 255, 255, .7); }
.ghosts { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.ghost {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 8px;
  width: 214px;
  border-radius: 7px;
  font: 500 .74rem/1.2 var(--font-sans); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(40, 32, 18, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 41, .5), 0 10px 24px -6px rgba(0, 0, 0, .8);
  opacity: 0;
  will-change: transform, opacity;
}
.ghost .take-btn { font-size: 9px; width: 1.6em; height: 2.6em; }
.drag-cursor { position: absolute; left: 0; top: 0; z-index: 10; opacity: 0; will-change: transform, opacity; }
.drag-cursor svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.drag-badge { position: absolute; left: 16px; top: 16px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rec); color: #fff; font: 700 11px/18px var(--font-sans); text-align: center; }
.drop-targets {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end;
  margin: 0; width: min(470px, 78%);
  font: 500 .66rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.drop-targets span { padding: 5px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: color .3s, box-shadow .3s; }
.drop-targets span.is-on { color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 179, 41, .45); }

/* Preview row */
.feature-row {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: clamp(40px, 8vh, 90px) auto 0;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center;
}
.preview-visual { display: flex; justify-content: center; }
.preview-visual .pb--preview { font-size: min(12px, calc((100vw - 32px) / 34)); gap: .9em; }
.pb-list--solo .take { padding: .5em .6em; }
.feature-copy p { font-size: 1.1rem; color: #c3c3c9; max-width: 32em; }
.feature-copy .display { margin-bottom: 1.1rem; }

/* 05 Meter */
.meter-rig {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: clamp(36px, 6vh, 64px) auto 0;
  padding: 0 var(--gutter);
}
.meter-screen { padding: clamp(18px, 3vw, 34px) clamp(16px, 3vw, 36px) clamp(14px, 2.4vw, 26px); cursor: pointer; }
.meter-screen canvas { width: 100%; height: clamp(66px, 7.4vw, 100px); }
.meter-legend { display: flex; flex-wrap: wrap; gap: .9rem 2rem; list-style: none; margin: 1.4rem 0 0; padding: 0; font-size: .95rem; color: var(--text); }
.meter-legend li { display: flex; align-items: center; gap: .6rem; }
.meter-legend em { font-style: normal; color: var(--dim); font-size: .88rem; }
.sw { width: 26px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--m-green), var(--m-yellow)); }
.sw--tp { opacity: .45; }
.sw--lufs { width: auto; height: auto; padding: 3px 5px; background: var(--display); font: 500 .66rem/1 var(--font-mono); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 179, 41, .3); }
.sw--hold { width: 3px; height: 12px; background: var(--m-yellow); }
.sw--clip { width: 10px; background: var(--m-red); box-shadow: 0 0 6px rgba(255, 69, 58, .6); }
.meter-controls { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.loud-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.tile {
  padding: 16px 20px 18px;
  border-radius: 12px;
  background: var(--display);
  box-shadow: inset 0 2px 5px #000, inset 0 0 0 1px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .07);
}
.tile-k { display: block; margin-bottom: .75rem; font: 500 .68rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.tile-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; }
.tile-v b { font: 300 clamp(1.7rem, 3.2vw, 2.7rem)/1 var(--font-mono); color: var(--amber); text-shadow: 0 0 14px rgba(255, 179, 41, .35); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tile-v small { font: 500 .8rem/1 var(--font-mono); letter-spacing: .06em; color: var(--dim); }
.tile.is-over b { color: var(--m-red); text-shadow: 0 0 14px rgba(255, 69, 58, .45); }
.key[data-drive] .lamp.is-on { --c: var(--rec); }

/* 06 Formats */
.fmt {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: clamp(36px, 6vh, 64px) auto 0;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: stretch;
}
.fmt-controls { display: flex; flex-direction: column; gap: 1.4rem; }
.fmt-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.fmt-group legend { padding: 0; margin-bottom: .7rem; font: 500 .72rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: baseline; gap: .4em;
  padding: .72em 1em;
  border-radius: 8px;
  font: 600 .8rem/1 var(--font-sans); letter-spacing: .04em;
  color: var(--dim);
  background: linear-gradient(#2f2f35, #222226);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 3px rgba(0, 0, 0, .5);
  transition: color .15s, background .15s, box-shadow .15s, transform .08s;
  cursor: pointer;
}
.seg small { font: 500 .68rem/1 var(--font-mono); letter-spacing: .02em; color: var(--faint); }
.seg label:hover span { color: var(--text); }
.seg input:checked + span {
  color: #1c1203;
  background: linear-gradient(#ffc653, #f5a318);
  box-shadow: 0 0 0 1px rgba(60, 35, 0, .9), inset 0 1px 0 rgba(255, 244, 214, .7), 0 0 16px rgba(255, 179, 41, .3);
  transform: translateY(1px);
}
.seg input:checked + span small { color: rgba(28, 18, 3, .7); }
.seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.seg input:disabled + span { opacity: .4; cursor: not-allowed; }
.fmt-readout { padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 1rem; }
.fmt-file { display: flex; align-items: center; gap: .7rem; font: 500 1rem/1.3 var(--font-sans); color: var(--text); min-width: 0; }
.fmt-file svg { flex: none; width: 26px; height: 26px; color: var(--amber); }
.fmt-file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmt-summary { font: 300 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--font-mono); color: var(--amber); text-shadow: 0 0 14px rgba(255, 179, 41, .35); letter-spacing: -.01em; }
.fmt-notes { margin: 0; display: grid; gap: .7rem; }
.fmt-notes div { display: grid; grid-template-columns: 4.2rem 1fr; gap: .8rem; align-items: baseline; }
.fmt-notes dt { font: 500 .68rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.fmt-notes dd { margin: 0; font-size: .95rem; color: #c3c3c9; }
.tip {
  display: flex; align-items: center; gap: .7rem;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 1.6rem auto 0; padding: 0 var(--gutter);
  font-size: 1rem; color: var(--dim);
}

/* 07 Cards */
.cards {
  list-style: none;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: clamp(36px, 6vh, 64px) auto 0;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.card {
  padding: 28px 26px 26px;
  border-radius: 16px;
  background: linear-gradient(var(--panel-top), var(--panel-bottom));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 50px -30px rgba(0, 0, 0, .9);
}
.card-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1.3rem;
  border-radius: 10px;
  background: var(--display);
  color: var(--amber);
  box-shadow: inset 0 1px 3px #000, 0 1px 0 rgba(255, 255, 255, .07);
}
.card-icon svg { width: 22px; height: 22px; filter: drop-shadow(0 0 5px var(--amber-glow)); }
.card h3 { margin: 0 0 .5rem; font: 600 1.4rem/1.15 var(--font-display); }
.card p { margin: 0; color: #b9b9c0; }

/* 08 Privacy */
.privacy-grid {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center;
}
.privacy-grid .chapter-head { padding: 0; }
.privacy-panel { padding: 22px 24px 18px; display: grid; gap: 4px; }
.pp-row { display: flex; align-items: center; gap: .9rem; padding: .7rem .2rem; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.pp-row .lamp { width: 10px; height: 10px; }
.pp-k { font: 600 .8rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.pp-v { margin-left: auto; font: 400 1rem/1 var(--font-mono); color: var(--faint); }
.pp-row--on .pp-k { color: var(--text); }
.pp-row--on .pp-v { color: var(--amber); text-shadow: 0 0 10px rgba(255, 179, 41, .35); }
.pp-foot { margin: .9rem 0 0; font: 500 .68rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* 09 Who */
.who {
  list-style: none;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: clamp(36px, 6vh, 64px) auto 0;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.who li { padding: 1.4rem 1.6rem 0 0; margin-right: 1.6rem; border-top: 1px solid var(--line-strong); position: relative; }
.who li::before { content: ""; position: absolute; left: 0; top: -1px; width: 36px; height: 1px; background: var(--amber); box-shadow: 0 0 6px var(--amber-glow); }
.who h3 { margin: 0 0 .6rem; font: 600 1.3rem/1.15 var(--font-display); }
.who p { margin: 0; color: #b9b9c0; font-size: 1rem; }
.responsible {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: clamp(36px, 6vh, 60px) auto 0; padding: 0 var(--gutter);
  font-size: 1rem; color: var(--dim);
}

/* 10 Access */
.chapter--access { padding-bottom: clamp(80px, 12vh, 140px); }
.access {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch;
}
.access-card {
  position: relative;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255, 179, 41, .1), transparent 70%),
    linear-gradient(var(--panel-top), var(--panel-bottom));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.access-card h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.access-card .chapter-intro { margin-bottom: 1.8rem; }
.screw {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5b5b62, #232327 70%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .06);
}
.screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 1.5px; margin-top: -.75px; background: rgba(0, 0, 0, .7); transform: rotate(var(--r, 35deg)); }
.screw--tl { left: 14px; top: 14px; }
.screw--tr { right: 14px; top: 14px; --r: -20deg; }
.screw--bl { left: 14px; bottom: 14px; --r: 70deg; }
.screw--br { right: 14px; bottom: 14px; --r: 10deg; }
.spec {
  margin: 0;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: 20px;
  background: linear-gradient(#18181b, #111113);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
  display: grid; align-content: center; gap: 0;
}
.spec div { display: grid; grid-template-columns: 7.2rem 1fr; gap: 1rem; padding: .78rem 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font: 500 .68rem/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.spec dd { margin: 0; font-size: .97rem; color: var(--text); }

/* Footer */
.footer { border-top: 1px solid rgba(255, 255, 255, .06); background: rgba(0, 0, 0, .25); }
.footer-inner {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto; padding: 36px var(--gutter) 44px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2rem; align-items: center;
}
.brand--foot .brand-mark { height: 11px; }
.footer-by { margin: 0; color: var(--dim); font-size: .95rem; }
.footer-by a { color: var(--text); text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a, .linklike { color: var(--dim); font-size: .95rem; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.footer-links a:hover, .linklike:hover { color: var(--text); }
.footer-fine { grid-column: 1 / -1; margin: .6rem 0 0; font-size: .8125rem; color: var(--faint); max-width: 70em; }

/* Privacy page */
.legal {
  max-width: calc(46rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(40px, 8vh, 90px)) var(--gutter) clamp(70px, 10vh, 120px);
}
.legal h1 { font-size: clamp(3rem, 7vw, 4.8rem); margin-bottom: .6rem; }
.legal-updated { font: 500 .75rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 2.4rem; }
.legal h2 { margin: 2.8rem 0 1rem; font: 600 1.75rem/1.1 var(--font-display); color: var(--ink); }
.legal h3 { margin: 1.8rem 0 .6rem; font: 600 1.05rem/1.3 var(--font-sans); color: var(--ink); }
.legal p, .legal li { color: #c3c3c9; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .6rem; }
.legal li::marker { color: var(--amber); }
.legal a { color: var(--amber); text-decoration-color: rgba(255, 179, 41, .4); text-underline-offset: 3px; }
.legal-short { padding: 1.4rem 1.6rem .6rem; margin: 2rem 0 1rem; }
.legal-short h2 { margin-top: 0; font-size: 1.3rem; }
.legal-table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; padding: .75rem .9rem .75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font: 500 .68rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.legal-table td:first-child { color: var(--text); white-space: nowrap; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; padding: 24px var(--gutter); }
.lost-card { width: min(34rem, 100%); padding: clamp(24px, 5vw, 40px); }
.lost-status { display: flex; align-items: center; gap: .6rem; font: 600 .78rem/1 var(--font-sans); letter-spacing: .15em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.6rem; }
.lost-status--ok { color: var(--play); }
.lost-counter { margin-left: auto; font: 300 1.6rem/1 var(--font-mono); letter-spacing: 0; color: var(--faint); }
.lost h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); margin-bottom: 1rem; }
.lost p { color: #c3c3c9; margin-bottom: 1.6rem; }

/* Consent bar (EU/UK/CH visitors only, see analytics.js) */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  max-width: 400px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: rgba(24, 24, 28, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 50px -10px rgba(0, 0, 0, .8);
  font-size: .92rem; color: var(--text);
}
.consent p { margin: 0 0 .9rem; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }
.consent[hidden] { display: none; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .who .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .who .reveal:nth-child(3) { transition-delay: .16s; }
.who .reveal:nth-child(4) { transition-delay: .24s; }

/* Load choreography */
.js:not(.rm) .hero-copy > *, .js:not(.rm) .hero-title .line { animation: rise .9s var(--ease) both; }
.js:not(.rm) .hero-title .line:nth-child(1) { animation-delay: .05s; }
.js:not(.rm) .hero-title .line:nth-child(2) { animation-delay: .13s; }
.js:not(.rm) .hero-title .line:nth-child(3) { animation-delay: .21s; }
.js:not(.rm) .hero-copy > .eyebrow { animation-delay: 0s; }
.js:not(.rm) .hero-copy > .hero-title { animation: none; }
.js:not(.rm) .hero-copy > .lede { animation-delay: .3s; }
.js:not(.rm) .hero-copy > .signup { animation-delay: .38s; }
.js:not(.rm) .hero-copy > .hero-facts { animation-delay: .46s; }
.js:not(.rm) .hero-stage { animation: fade .9s .1s both; }
.js:not(.rm) .pb--hero { animation: drop .7s .45s var(--ease) both; transform-origin: 90% 0; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-12px) scale(.985); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  /* The sources move above the panel, so the panel keeps its size in a narrower column. */
  .hero-stage { grid-template-columns: 1fr; grid-template-rows: 30px auto auto; min-height: 0; }
  .sources { grid-column: 1; grid-row: 2; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 18px 12px 0; }
  .hero-stage .pb--hero { grid-column: 1; grid-row: 3; justify-self: center; margin: 44px 16px 22px; font-size: min(12.5px, calc((50vw - 96px) / 34)); }
}
@media (max-width: 1100px) {
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}
@media (max-width: 980px) {
  :root { --nav-h: 58px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero-stage { grid-template-columns: 1fr; grid-template-rows: 30px auto auto; min-height: 0; }
  .sources { grid-column: 1; grid-row: 2; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 18px 12px 0; }
  .hero-stage .pb--hero { grid-column: 1; grid-row: 3; justify-self: center; margin: 44px 0 20px; font-size: min(12px, calc((100vw - 2 * var(--gutter) - 20px) / 34)); }
  .demo-toggle { position: static; justify-self: end; margin-top: -24px; }
  .chapter-head--split { grid-template-columns: 1fr; }
  .chapter-head--split .chapter-intro { margin-top: .4rem; }
  .fmt { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .access { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .preview-visual { order: 2; }
  .footer-inner { grid-template-columns: 1fr; }

  /* Pinned scenes stack: visual on top, the active step's words beneath. */
  .pin { height: calc(100svh + var(--steps, 3) * 80svh); }
  .pin-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
    gap: 14px;
    padding: calc(var(--nav-h) + 10px) var(--gutter) 18px;
  }
  .pin-visual { grid-row: 1; align-self: center; }
  .steps { grid-row: 2; min-height: 10.5rem; align-content: start; }
  .step h3 { font-size: 1.4rem; margin-bottom: .5rem; }
  .step-n { margin-bottom: .45rem; }
  .step p { font-size: 1rem; margin: 0; }
  .step-leds { margin-top: .9rem; }
  .why-lists { grid-row: 2; gap: 1rem; }
  .old-steps { gap: .2rem; }
  .old-steps li { font-size: .95rem; }
  .why-new { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; background: var(--bg); padding-top: .6rem; }
  .why-new-line { font-size: 2.2rem; }
  .cables { height: 100%; display: flex; justify-content: center; }
  .cables-svg { width: auto; height: 100%; max-width: 100%; }
  .story-visual { min-height: 0; height: 100%; }
  .story-visual .pb--story { top: 80px; right: 50%; margin-right: calc(-17em); font-size: max(7.5px, min(10.5px, calc((100vw - 2 * var(--gutter)) / 34), calc((100svh - 400px) / 34))); }
  .np { width: min(290px, 100%); padding: 8px 10px 9px; gap: 6px 10px; left: 0; top: 0; }
  .np-art { width: 30px; height: 30px; }
  .np-art svg { width: 16px; height: 16px; }
  .daw-chip { left: 0; bottom: 0; padding: .5rem .7rem; font-size: .62rem; }
  .story-bus { display: none; }
  .trim-wave { height: clamp(150px, 30svh, 240px); }
  .drag-visual { min-height: 0; height: 100%; }
  .drag-visual .pb--list { position: relative; font-size: min(10px, calc((100vw - 2 * var(--gutter)) / 32)); width: 100%; }
  .daw { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 14px; }
  .drop-targets { position: relative; width: 100%; margin-top: 8px; justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero { padding-top: calc(var(--nav-h) + 28px); }
  .hero-title { font-size: clamp(2.7rem, 12.5vw, 3.6rem); }
  .signup-field { flex-direction: column; padding: 6px; }
  .signup input[type="email"] { padding: .95rem .8rem; }
  .signup .key { width: 100%; }
  .nav-cta { padding: .62em .8em; font-size: .7rem; }
  .brand-mark { height: 11px; }
  .daw-ruler { margin-left: 60px; }
  .trk { height: 30px; }
  .trk-head { width: 60px; font-size: .6rem; }
  .daw-playhead { left: calc(60px + 3%); }
  .who { grid-template-columns: 1fr; }
  .who li { margin-right: 0; }
  .loud-tiles { gap: 8px; }
  .tile { padding: 12px 12px 14px; }
  .tile-k { font-size: .58rem; letter-spacing: .1em; }
  .tile-v b { font-size: 1.45rem; }
  .spec div { grid-template-columns: 6.2rem 1fr; }
  .consent { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  .demo-toggle { margin-top: -16px; }
}
@media (max-height: 700px) and (max-width: 980px) {
  .steps { min-height: 8.5rem; }
  .step p { font-size: .94rem; }
}

.paused .pulse, .paused .bus-lines path.is-live { animation-play-state: paused; }

/* ---------- Reduced motion: state changes stay, movement goes ---------- */
.rm *, .rm *::before, .rm *::after { animation: none !important; }
.rm .step, .rm .why-new, .rm .daw-chip, .rm .trim-mark, .rm .rgn--take.is-in, .rm .np { transform: none !important; transition: opacity .2s !important; }
.rm .reveal { transform: none; transition: opacity .3s; }
.rm .bus-lines path.is-live { stroke-dasharray: none; }

@media print {
  body::before, body::after, .nav, .hero-stage, .pin-visual, .consent { display: none !important; }
  .pin, .pin-stage { height: auto !important; position: static !important; }
  .step { opacity: 1 !important; grid-area: auto !important; }
}
