/* SIDbase - the site's styles.
   Surfaces, text and the blue accent are the editor's Grey theme (website/style.css), so a
   screenshot sits on the page without a seam. The slogan colour and Ubuntu are the promo art's;
   Michroma stands in for its Microgramma, and Style64's C64 Pro Mono for its PetMe 64, both
   free to embed. The voice colours and the sound-kind colours are the editor's own defaults
   (VOICE_HSL and CLIP_COLORS in editor/egui/src/app.rs). Dark only: the editor has no light
   skin. Amber + blue is the accent pair because it stays apart under protanopia, where the
   editor's amber and green do not. */

@font-face {
  font-family: "SB Ubuntu";
  src: url("../fonts/Ubuntu.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
/* Style64's licence allows @font-face embedding of the files exactly as shipped, names included. */
@font-face {
  font-family: "SB C64";
  src: url("../fonts/C64_TrueType_v1.2.1-STYLE/C64_Pro_Mono-STYLE.woff2") format("woff2"),
       url("../fonts/C64_TrueType_v1.2.1-STYLE/C64_Pro_Mono-STYLE.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "SB Wide";
  src: url("../fonts/Michroma-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --window: #0f0f0f;
  --panel: #171717;
  --well: #0e0e0e;
  --header: #1d1d1d;
  --control: #242424;
  --accent: #2f6fb0;
  --accent-lit: #6fc2ff;
  --on-accent: #eaf2ff;
  --text: #cdcdcd;
  --dim: #858585;
  --line: #2a2a2a;
  --grid: #383838;
  --ok: #4fc06a;
  --warn: #cc4646;

  --slogan: #899bad;
  --slogan-size: clamp(30px, min(4.7vw, 8vh), 100px);
  --wall: #1b2838;
  --amber: #f0a83c;

  --voice1: hsl(189 100% 65%);
  --voice2: hsl(45 95% 62%);
  --voice3: hsl(140 65% 60%);

  --k-bass: #3b6ea5;
  --k-lead: #a53b5a;
  --k-arp: #8a4f9d;
  --k-drums: #a56b3b;
  --k-fx: #4f9d9d;
  --k-synth: #9d9d4f;
  --k-pad: #4f9d69;
  --k-pluck: #6b6b7a;

  --sans: "SB Ubuntu", "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wide: "SB Wide", "Michroma", sans-serif;
  --c64: "SB C64", "C64 Pro Mono", ui-monospace, monospace;
  --mono: "Ubuntu Sans Mono", "Ubuntu Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1200px;
  --nav-h: 64px;
  --r: 10px;
  --glass: rgba(23, 23, 23, .62);
  --glass-line: rgba(255, 255, 255, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--window);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent-lit); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--on-accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-lit); outline-offset: 2px; }
strong { font-weight: 500; color: var(--on-accent); }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- navigation ---------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.nav.solid {
  background: rgba(20, 20, 20, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav .bar { max-width: var(--max); height: var(--nav-h); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-accent); font: 500 20px/1 var(--sans); letter-spacing: .01em; }
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 500; }
.brand span { color: var(--accent-lit); }
.nav nav a.menu-only { display: none; }
.nav nav { display: flex; gap: 2px; margin-left: auto; }
.nav nav a { color: var(--text); text-decoration: none; font: 500 14.5px/1 var(--sans); padding: 10px 12px; border-radius: 6px; opacity: .82; }
.nav nav a:hover { opacity: 1; background: rgba(255, 255, 255, .06); color: var(--on-accent); }
.nav nav a[aria-current="page"] { opacity: 1; color: var(--on-accent); box-shadow: inset 0 -2px 0 var(--accent-lit); border-radius: 0; }
.nav .get { margin-left: 6px; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 38px; border-radius: 8px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .05); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }

@media (max-width: 820px) {
  .menu-btn { display: grid; place-items: center; }
  .nav .get { display: none; }
  .nav nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: rgba(20, 20, 20, .97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open nav { display: flex; }
  .nav.open { background: rgba(20, 20, 20, .97); }
  .nav nav a, .nav nav a.menu-only { display: block; padding: 14px 8px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent-lit); }
}

/* ---- buttons ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 8px; border: 0; cursor: pointer;
  font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { font: 500 12.5px/1 var(--mono); opacity: .72; }
.btn-primary {
  background: var(--amber); color: #1d1406;
  box-shadow: 0 0 0 1px rgba(255, 196, 110, .55), 0 10px 40px -8px rgba(240, 168, 60, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { color: #1d1406; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 214, 150, .9), 0 16px 56px -8px rgba(240, 168, 60, .75), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-glass {
  background: rgba(255, 255, 255, .07); color: var(--on-accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-glass:hover { color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 7px; }

/* ---- hero ---------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: min(100svh, 56.25vw); min-height: 560px;
  background: var(--wall);
}
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(12, 16, 22, .55) 0%, rgba(12, 16, 22, 0) 20%),
    linear-gradient(to top, var(--window) 0%, rgba(15, 15, 15, 0) 16%);
}
/* The render leaves a sixth of its height above the monitor, and the nav takes some of it:
   the slogan has no descenders, so its baseline is what must clear the wireframe's top. */
.hero-top { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) - 6px); padding: 0 24px; text-align: center; }
.slogan {
  margin: 0; color: var(--slogan);
  font: 300 var(--slogan-size)/1.1 var(--sans);
  letter-spacing: -.005em;
  animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
.slogan .old { font-family: var(--c64); font-weight: 400; font-size: .74em; letter-spacing: .2em; margin: 0 .05em 0 .22em; vertical-align: .04em; }
.slogan .new { font-family: var(--wide); font-weight: 400; font-size: .74em; letter-spacing: .01em; vertical-align: .04em; }
.hero-cta {
  position: absolute; left: 0; right: 0; bottom: 4.2%;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0 24px;
  animation: rise 1.1s .25s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .hero { height: auto; min-height: 0; padding: calc(var(--nav-h) + 22px) 0 26px; display: flex; flex-direction: column; gap: 18px; background: linear-gradient(#141b25, var(--window)); }
  .hero-art { position: relative; inset: auto; z-index: 0; order: 2; }
  .hero-art img { aspect-ratio: 16 / 9; height: auto; }
  .hero::after { display: none; }
  .hero-top { position: static; order: 1; }
  .hero-cta { position: static; order: 3; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---- sections ------------------------------------------------------------------------ */
.section { position: relative; padding: 112px 0; }
.section + .section { padding-top: 40px; }
.kicker {
  margin: 0 0 18px; font: 400 13px/1 var(--c64); letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber);
}
.kicker::after { content: ""; display: inline-block; width: .62em; height: .9em; margin-left: .45em; vertical-align: -.1em; background: currentColor; animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h2.title {
  margin: 0 0 18px; max-width: 22ch;
  font: 300 clamp(34px, 4.4vw, 58px)/1.06 var(--sans); letter-spacing: -.022em; color: var(--on-accent);
}
.title em { font-style: normal; color: var(--accent-lit); }
.sec-head { position: relative; margin-bottom: 44px; }
.sec-head p { max-width: 60ch; margin: 0; font-size: 18.5px; color: var(--text); }
.banner {
  position: absolute; inset: 0 0 auto 0; height: 620px; z-index: -1; pointer-events: none;
  background-size: cover; background-position: 50% 40%; opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, rgba(0, 0, 0, .55) 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, rgba(0, 0, 0, .55) 52%, transparent 100%);
}
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--window) 0%, rgba(15, 15, 15, .55) 45%, rgba(15, 15, 15, .1) 100%); }
.has-banner { isolation: isolate; }

/* ---- intro --------------------------------------------------------------------------- */
.intro { padding-top: 72px; }
.intro .lead { margin: 0 0 56px; max-width: 30ch; font: 300 clamp(28px, 3.3vw, 44px)/1.18 var(--sans); letter-spacing: -.018em; color: var(--on-accent); }
.intro .lead span { color: var(--slogan); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.pillar { padding: 26px 24px 24px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid var(--glass-line); }
.pillar svg { width: 34px; height: 34px; margin-bottom: 18px; color: var(--accent-lit); }
.pillar h3 { margin: 0 0 8px; font: 500 20px/1.25 var(--sans); color: var(--on-accent); }
.pillar p { margin: 0; font-size: 16px; color: var(--text); }
.screen {
  position: relative; margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid #2c2c2c;
  box-shadow: 0 40px 120px -40px rgba(47, 111, 176, .55), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.screen img { width: 100%; height: auto; }
.screen figcaption { padding: 12px 16px; font-size: 14px; color: var(--dim); background: var(--panel); border-top: 1px solid var(--line); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---- the lane renders ---------------------------------------------------------------- */
.renders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.render { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid #2a2a2a; background: var(--well); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.render video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--window); }
.render figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel); font-size: 14.5px; }
.render figcaption b { font-weight: 500; color: var(--on-accent); }
.render figcaption span { color: var(--dim); }
.renders.three { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
@media (max-width: 760px) { .renders, .renders.three { grid-template-columns: 1fr; } }
.render img { display: block; width: 100%; height: auto; }
.deeper { margin-top: 72px; }
.deeper h3 { margin: 0 0 14px; font: 300 clamp(26px, 3vw, 38px)/1.12 var(--sans); letter-spacing: -.018em; color: var(--on-accent); }
.deeper > p { max-width: 60ch; margin: 0 0 28px; font-size: 18.5px; color: var(--text); }

/* ---- the release presentation -------------------------------------------------------- */
/* A card under the hero in a narrow window. From 1180 px it is the 1702's screen, which is
   x 995-1601, y 352-792 of the 2560 x 1440 render with its corners 8 px round; the render covers
   the hero by its width there, and max(560px, ...) is the hero's height. A narrower window makes
   the glass shorter than the 200 px a YouTube player needs. */
.watch { width: min(100% - 48px, 720px); margin: 40px auto 0; animation: rise 1.1s .4s cubic-bezier(.2, .7, .2, 1) both; }
.watch a { position: relative; display: block; }
.watch a:focus-visible { outline-offset: -4px; }
.watch figcaption { row-gap: 0; }
/* the play button stands in the poster's open area, clear of its words */
.watch a::after {
  content: ""; position: absolute; left: 26%; top: 57%; translate: -50% -50%;
  width: clamp(48px, 17%, 72px); aspect-ratio: 1; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 2.6v10.8L13 8z' fill='%231d1406'/%3E%3C/svg%3E") center / 42% no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 196, 110, .55), 0 10px 40px -8px rgba(240, 168, 60, .6);
  transition: transform .15s, box-shadow .2s;
}
.watch a:hover::after { transform: scale(1.06); box-shadow: 0 0 0 1px rgba(255, 214, 150, .9), 0 16px 56px -8px rgba(240, 168, 60, .75); }
.watch iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
@media (min-width: 1180px) {
  .watch {
    position: absolute; margin: 0; border: 0; border-radius: 1.3% / 1.8%; background: none; box-shadow: none;
    left: calc(100% * 995 / 2560); width: calc(100% * 606 / 2560); aspect-ratio: 606 / 440;
    top: calc(max(560px, min(100svh, 56.25vw)) / 2 - 368 * 100vw / 2560);
  }
  .watch a, .watch iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
  .watch img, .watch figcaption { display: none; }
  .watch a::after { left: 50%; top: 50%; }
}

/* ---- press ---------------------------------------------------------------------------- */
.press { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.press-item {
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  border: 1px solid #2a2a2a; background: var(--panel); color: var(--text); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.press-item:hover { color: var(--text); border-color: #444; transform: translateY(-2px); }
.press-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--well); }
.press-item.wide { grid-column: span 2; grid-row: span 2; }
/* the art carries its words to the edges, so it is never cropped: the row it spans is taller than 16:9 */
.press-item.wide img { flex: 1; object-fit: contain; background: #10151c; }
.press-item.strip { grid-column: 1 / -1; }
.press-item.strip img { aspect-ratio: auto; }
.press-item.logo img { object-fit: contain; padding: 18px; background: #0a0a0a; }
.press-item.clip { position: relative; }
.press-item.clip::after {
  content: ""; position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(15, 15, 15, .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 4v8l6.5-4z' fill='%23eaf2ff'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.press-item span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 11px; }
.press-item b { font-weight: 500; font-size: 14.5px; color: var(--on-accent); }
.press-item small { font-size: 12.5px; color: var(--dim); }
@media (max-width: 960px) { .press { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .press { grid-template-columns: 1fr; } .press-item.wide { grid-column: auto; grid-row: auto; } }

/* ---- the preset browser -------------------------------------------------------------- */
.browser {
  display: grid; grid-template-columns: 236px 1fr;
  border: 1px solid #2c2c2c; border-radius: 14px; overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
}
.browser-side { background: #141414; border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.side-label { margin: 2px 10px 10px; font: 500 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.bank {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; text-align: left;
  padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--text);
}
.bank:hover { background: rgba(255, 255, 255, .05); }
.bank.is-on { background: rgba(47, 111, 176, .22); box-shadow: inset 3px 0 0 var(--accent-lit); color: var(--on-accent); }
.bank b { font-weight: 500; font-size: 15px; }
.bank span { grid-column: 1; font-size: 13px; color: var(--dim); }
.bank .count { grid-column: 2; grid-row: 1 / span 2; font: 500 12px/1 var(--mono); color: var(--dim); background: var(--control); padding: 4px 7px; border-radius: 5px; }
.browser-main { display: flex; flex-direction: column; min-width: 0; }
.browser-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; background: var(--header); border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--dim); }
.search input {
  width: 100%; height: 36px; padding: 0 12px 0 34px; border-radius: 7px; border: 1px solid #2f2f2f;
  background: var(--well); color: var(--on-accent); font: 400 15px/1 var(--sans);
}
.search input::placeholder { color: #6a6a6a; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 32px; padding: 0 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid #2f2f2f; background: var(--control); color: var(--text); font: 500 13.5px/1 var(--sans);
  display: inline-flex; align-items: center; gap: 7px;
}
.chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--k, var(--accent-lit)); }
.chip:hover { border-color: #444; color: var(--on-accent); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.presets {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px;
  padding: 16px; max-height: 584px; overflow-y: auto; align-content: start;
  /* A card clips its colour strip, which makes its minimum height 0: auto rows would shrink to the box. */
  grid-auto-rows: max-content;
  scrollbar-color: #3a3a3a transparent;
}
.preset {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto 38px auto; column-gap: 12px; row-gap: 8px;
  padding: 12px 14px 11px 17px; border-radius: 10px;
  background: #1b1b1b; border: 1px solid #262626;
  transition: border-color .15s, transform .15s, background .15s;
}
.preset::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--k); }
.preset:hover { border-color: #3a3a3a; background: #1e1e1e; }
.preset.is-playing { border-color: color-mix(in srgb, var(--k) 70%, white 10%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 45%, transparent), 0 10px 30px -12px color-mix(in srgb, var(--k) 70%, transparent); }
.play {
  grid-row: 1 / span 2; align-self: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #333; cursor: pointer;
  background: var(--control); color: var(--on-accent); display: grid; place-items: center;
  transition: background .15s, transform .15s;
}
.play svg { width: 14px; height: 14px; }
.play:hover { background: #2e2e2e; transform: scale(1.05); }
.is-playing .play, .play.is-on { background: var(--amber); border-color: var(--amber); color: #1d1406; }
.p-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.p-name strong { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag {
  flex: none; font: 500 11px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 4px; color: #f2f2f2;
  background: color-mix(in srgb, var(--k) 45%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 85%, white 15%);
}
.wave { width: 100%; height: 38px; display: block; cursor: pointer; }
.p-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 13px; color: var(--dim); }
.p-meta .mono { font-size: 12.5px; }
.empty { margin: 0; padding: 30px 16px; color: var(--dim); text-align: center; }
@media (max-width: 900px) {
  .browser { grid-template-columns: 1fr; }
  .browser-side { flex-direction: row; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-label { display: none; }
  .bank { flex: none; }
  .presets { max-height: 70vh; }
}

/* ---- the arrangement player (stems) -------------------------------------------------- */
.arrange { border: 1px solid #2c2c2c; border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .95); }
.arr-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; background: var(--header); border-bottom: 1px solid var(--line); }
.tbtn {
  width: 40px; height: 34px; border-radius: 6px; border: 1px solid #303030; cursor: pointer;
  background: var(--control); color: var(--on-accent); display: grid; place-items: center;
}
.tbtn svg { width: 14px; height: 14px; }
.tbtn:hover { background: #2c2c2c; }
.tbtn.is-on { background: var(--accent); border-color: var(--accent); }
.tbtn.is-busy { animation: busy 1s ease-in-out infinite; }
@keyframes busy { 50% { box-shadow: 0 0 0 5px rgba(111, 194, 255, .28); } }
.play svg, .tbtn svg { pointer-events: none; }
.clock { min-width: 5ch; font: 500 27px/1 var(--mono); letter-spacing: .03em; color: var(--on-accent); }
.arr-title { display: flex; flex-direction: column; gap: 3px; margin-right: auto; min-width: 0; }
.arr-title strong { font-size: 17px; line-height: 1.1; }
.arr-title span { font-size: 13.5px; color: var(--dim); }
.badge { font: 500 12px/1 var(--mono); padding: 6px 8px; border-radius: 5px; background: var(--well); border: 1px solid #2f2f2f; color: var(--text); }
.arr-grid { position: relative; --head: 150px; }
.ruler { display: grid; grid-template-columns: var(--head) 1fr; height: 26px; background: #141414; border-bottom: 1px solid var(--line); font: 500 11.5px/26px var(--mono); color: var(--dim); }
.ruler > div:first-child { border-right: 1px solid var(--line); padding-left: 12px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--sans); }
.ruler .ticks { position: relative; }
.ruler .ticks span { position: absolute; top: 0; padding-left: 5px; border-left: 1px solid #333; height: 100%; }
.lane { display: grid; grid-template-columns: var(--head) 1fr; grid-template-rows: minmax(0, 1fr); height: 76px; border-bottom: 1px solid var(--line); }
.lane:last-of-type { border-bottom: 0; }
.lane-head { display: flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; background: #191919; border-right: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--vc); }
.vname { margin-right: auto; font: 500 15px/1 var(--sans); color: var(--vc); }
.ms { width: 28px; height: 24px; border-radius: 5px; border: 1px solid #333; cursor: pointer; background: var(--control); color: var(--dim); font: 600 12px/1 var(--sans); }
.ms:hover { color: var(--on-accent); }
.ms[data-mute][aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #1d1406; }
.ms[data-solo][aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lane-wave { width: 100%; height: 100%; display: block; cursor: pointer; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, .025) calc(12.5% - 1px) 12.5%); transition: opacity .2s; }
.lane.is-silent .lane-wave { opacity: .25; }
.playhead { position: absolute; top: 0; bottom: 0; left: var(--head); width: 0; pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--on-accent); box-shadow: 0 0 10px rgba(111, 194, 255, .9); }
.arr-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; font-size: 13.5px; color: var(--dim); background: #141414; border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .arr-grid { --head: 92px; }
  .lane { height: 64px; }
  .ms { width: 24px; }
  .clock { font-size: 22px; }
}

/* ---- the track list ------------------------------------------------------------------ */
/* The rows share the list's columns (subgrid), so the head's labels sit over their cells: a row's own
   grid sizes its last column to its own content, and the head's "Files" is narrower than the links. A
   row's side padding comes out of the edge columns, hence 44 px for the 28 px number. A browser
   without subgrid keeps each row's own columns. */
.tracklist {
  display: grid; grid-template-columns: 44px 40px minmax(150px, 1.1fr) minmax(140px, 2fr) 64px 56px 52px auto; column-gap: 14px;
  list-style: none; margin: 28px 0 0; padding: 0; border: 1px solid #2c2c2c; border-radius: 14px; overflow: hidden; background: var(--panel);
}
.track {
  display: grid; grid-template-columns: 28px 40px minmax(150px, 1.1fr) minmax(140px, 2fr) 64px 56px 52px auto;
  grid-template-columns: subgrid; grid-column: 1 / -1;
  align-items: center; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line);
}
.track:first-child { border-top: 0; }
.track-head { padding-top: 12px; padding-bottom: 10px; background: var(--header); font: 500 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.track:not(.track-head):hover { background: #1b1b1b; }
.track.is-playing { background: linear-gradient(90deg, rgba(47, 111, 176, .2), rgba(47, 111, 176, 0) 70%); }
.t-num { font: 500 13px/1 var(--mono); color: var(--dim); text-align: right; }
.track .play { grid-row: auto; width: 36px; height: 36px; }
.t-title { min-width: 0; }
.t-title strong { display: block; line-height: 1.3; }
.t-title span { font-size: 13.5px; color: var(--dim); }
.t-wave canvas { width: 100%; height: 34px; display: block; cursor: pointer; }
.t-cell { font: 500 13.5px/1 var(--mono); color: var(--text); }
.t-files { display: flex; gap: 6px; justify-content: flex-end; }
.t-files a { font: 500 12px/1 var(--mono); padding: 6px 8px; border-radius: 5px; border: 1px solid #333; color: var(--text); text-decoration: none; background: var(--control); }
.t-files a:hover { border-color: var(--accent-lit); color: var(--on-accent); }
@media (max-width: 900px) {
  .tracklist { display: block; }
  .track { grid-template-columns: 36px 1fr auto; row-gap: 8px; }
  .track-head { display: none; }
  .t-num, .t-year, .t-chip { display: none; }
  .track .play { grid-row: 1 / span 2; }
  .t-wave { grid-column: 2 / -1; grid-row: 2; }
  .t-len { grid-column: 3; grid-row: 1; }
  .t-files { display: none; }
}

/* ---- songs to try the importer with -------------------------------------------------- */
.try-import { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 20px; padding: 22px 24px; border: 1px solid #2c2c2c; border-radius: 14px; background: var(--panel); }
.try-import > div { flex: 1 1 320px; }
.try-import h3 { margin: 0 0 6px; font: 500 19px/1.25 var(--sans); color: var(--on-accent); }
.try-import p { margin: 0; max-width: 64ch; color: var(--text); }

/* ---- deep-dive teaser and the closing band ------------------------------------------- */
.teaser {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 18px; border: 1px solid #2a2f36;
  min-height: 460px; display: flex; align-items: flex-end;
  background: #10151c;
}
.teaser picture, .teaser img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.teaser::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 14, 18, .94) 0%, rgba(12, 14, 18, .72) 42%, rgba(12, 14, 18, .08) 75%), linear-gradient(to top, rgba(12, 14, 18, .7), transparent 50%); }
.teaser-body { padding: 48px; max-width: 560px; }
.teaser-body p { margin: 0 0 26px; font-size: 18px; }
@media (max-width: 700px) { .teaser-body { padding: 28px 22px; } .teaser::after { background: linear-gradient(to top, rgba(12, 14, 18, .96) 30%, rgba(12, 14, 18, .35)); } }

.ready { text-align: center; padding: 120px 0 128px; background: radial-gradient(60% 80% at 50% 0%, rgba(47, 111, 176, .16), transparent 70%); }
.ready .kicker { display: inline-block; }
.ready h2.title { margin-left: auto; margin-right: auto; }
.ready p { margin: 0 auto 30px; max-width: 52ch; color: var(--text); }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fineprint { margin-top: 22px !important; font-size: 14px; color: var(--dim) !important; }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 64px; text-align: left; }
.dl { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid var(--glass-line); }
.dl h3 { margin: 0; font: 500 20px/1.25 var(--sans); color: var(--on-accent); }
.ready .dl p { flex: 1; margin: 0 0 6px; max-width: none; font-size: 15.5px; }
.dl code { font: 14px var(--mono); color: var(--on-accent); background: var(--control); padding: 1px 5px; border-radius: 4px; }
.term, .manual { max-width: 680px; margin: 0 auto 56px; }
.term h3, .manual h3 { margin: 0 0 12px; font: 500 20px/1.25 var(--sans); color: var(--on-accent); }
.ready .term p, .ready .manual p { margin-bottom: 20px; }
.cmd { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 8px; background: var(--well); border: 1px solid var(--line); text-align: left; }
.cmd code { flex: 1; min-width: 0; padding-block: 6px; overflow-wrap: anywhere; font: 15px/1.5 var(--mono); color: var(--on-accent); user-select: all; }
.copy { flex: none; min-height: 34px; padding: 0 14px; border: 0; border-radius: 6px; cursor: pointer; font: 500 14px/1 var(--sans); color: var(--on-accent); background: var(--control); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.copy:hover { background: #2e2e2e; }
@media (max-width: 900px) { .downloads { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
@media (max-width: 520px) { .cmd code { font-size: 13px; } }

/* ---- footer -------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); background: #0c0c0c; padding: 48px 0 40px; font-size: 14.5px; color: var(--dim); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h3 { margin: 0 0 12px; font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 8px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--on-accent); }
.foot .brand { margin-bottom: 14px; }
.foot p { margin: 0 0 10px; max-width: 46ch; }
.credit { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.credit img { width: 92px; border-radius: 6px; border: 1px solid var(--line); }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }

/* ---- the deep dive ------------------------------------------------------------------- */
.pagehead { position: relative; isolation: isolate; overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 80px) 0 64px; background: #10151c; }
.pagehead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.pagehead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 14, 18, .92) 0%, rgba(12, 14, 18, .6) 45%, rgba(12, 14, 18, .05) 80%), linear-gradient(to top, var(--window) 0%, transparent 35%); }
.pagehead h1 { margin: 0 0 16px; max-width: 16ch; font: 300 clamp(40px, 5.6vw, 74px)/1.02 var(--sans); letter-spacing: -.025em; color: var(--on-accent); }
.pagehead p { margin: 0; max-width: 52ch; font-size: 19px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a { font: 500 13.5px/1 var(--sans); padding: 9px 12px; border-radius: 7px; text-decoration: none; color: var(--text); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.toc a:hover { color: var(--on-accent); background: rgba(255, 255, 255, .1); }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.split .copy p { margin: 0 0 16px; max-width: 54ch; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.flow { display: grid; gap: 10px; font-size: 15px; }
.node { padding: 14px 16px; border-radius: 10px; background: #1a1a1a; border: 1px solid #2b2b2b; }
.node b { display: block; font-weight: 500; color: var(--on-accent); }
.node span { font-size: 13.5px; color: var(--dim); }
.node.core { background: linear-gradient(180deg, rgba(47, 111, 176, .28), rgba(47, 111, 176, .12)); border-color: rgba(111, 194, 255, .45); }
.node.out { border-color: rgba(240, 168, 60, .45); background: rgba(240, 168, 60, .07); }
.arrow { height: 22px; display: grid; place-items: center; color: #5a5a5a; }
.arrow svg { width: 16px; height: 22px; }
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fork .col { display: grid; gap: 0; align-content: start; }
.fork .col .arrow { height: 18px; }

.frames { display: grid; grid-template-columns: 74px repeat(8, 1fr); gap: 3px; font: 500 12px/1 var(--mono); }
.frames .h { color: var(--dim); padding: 6px 0; text-align: center; }
.frames .rl { color: var(--dim); padding: 0 8px 0 0; display: flex; align-items: center; justify-content: flex-end; font-family: var(--sans); font-size: 12.5px; }
.frames .h.now { color: var(--on-accent); }
.frames .c { height: 32px; border-radius: 4px; background: #1c1c1c; border: 1px solid #262626; }
.frames .c.prev, .legend .prev { background: repeating-linear-gradient(90deg, #262626 0 2px, #1c1c1c 2px 6px); border-color: #2c2c2c; }
.frames .c.hr, .legend .hr { background: repeating-linear-gradient(135deg, rgba(240, 168, 60, .42) 0 5px, rgba(240, 168, 60, .16) 5px 10px); border-color: rgba(240, 168, 60, .65); }
.frames .c.init, .legend .init { background: rgba(111, 194, 255, .55); border-color: var(--accent-lit); }
.frames .c.on, .legend .on { background: color-mix(in srgb, var(--voice1) 32%, #1c1c1c); border-color: color-mix(in srgb, var(--voice1) 60%, transparent); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13.5px; color: var(--dim); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 7px; vertical-align: -2px; border: 1px solid transparent; }
.frames-box { padding: 22px 22px 18px; border-radius: 14px; background: var(--panel); border: 1px solid #2c2c2c; overflow-x: auto; }
.frames-box .frames { min-width: 520px; }

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spec { padding: 22px 20px 20px; border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); border: 1px solid var(--glass-line); }
.spec .n { display: block; margin-bottom: 10px; font: 400 clamp(26px, 2.6vw, 34px)/1 var(--wide); letter-spacing: .01em; color: var(--on-accent); }
.spec .n small { font: 500 .5em/1 var(--sans); letter-spacing: 0; color: var(--dim); margin-left: .25em; }
.spec b { display: block; font-weight: 500; color: var(--on-accent); margin-bottom: 4px; }
.spec p { margin: 0; font-size: 14.5px; color: var(--dim); line-height: 1.5; }
@media (max-width: 960px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid #2c2c2c; border-radius: 14px; background: var(--panel); }
table.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; background: var(--header); font: 500 13.5px/1.25 var(--sans); color: var(--dim); }
.compare thead th.us { color: var(--on-accent); }
.compare tbody th { width: 17%; font-weight: 500; color: var(--on-accent); }
.compare td.us { background: rgba(47, 111, 176, .1); box-shadow: inset 2px 0 0 rgba(111, 194, 255, .5); color: var(--on-accent); }
.compare td small { display: block; margin-top: 4px; color: var(--dim); font-size: 13px; }
.compare .mono { font-size: 14px; }

.subtitle { margin: 80px 0 20px; font: 300 clamp(26px, 2.6vw, 34px)/1.15 var(--sans); letter-spacing: -.015em; color: var(--on-accent); }
.maptable { display: grid; gap: 1px; background: var(--line); border: 1px solid #2c2c2c; border-radius: 14px; overflow: hidden; }
.maprow { display: grid; grid-template-columns: 1fr 28px 1.15fr 1.7fr; gap: 14px; align-items: center; padding: 14px 18px; background: var(--panel); }
.maprow.head { background: var(--header); font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.maprow .from { font-family: var(--mono); font-size: 14.5px; color: var(--slogan); }
.maprow .to { font-weight: 500; color: var(--on-accent); }
.maprow .note { font-size: 14.5px; color: var(--dim); }
.maprow svg { width: 18px; height: 18px; color: #555; }
@media (max-width: 760px) { .maprow { grid-template-columns: 1fr; gap: 4px; } .maprow svg, .maprow.head { display: none; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 28px; }
.stat { padding: 20px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .025); }
.stat .n { display: block; font: 400 30px/1 var(--wide); color: var(--on-accent); margin-bottom: 8px; }
.stat p { margin: 0; font-size: 14.5px; color: var(--dim); line-height: 1.5; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

.callout { padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(111, 194, 255, .3); background: rgba(47, 111, 176, .1); font-size: 15.5px; }
.callout b { color: var(--on-accent); font-weight: 500; }
