/* ═══════════════════════════════════════════════════════════════════════════
   CROSSFADE — product site
   The app's own palette: deck A cyan, deck B orange, with pink, purple and
   green for the accents it uses on screen.

   MOTION: the site's motion budget (/css/mobile-motion.css) switches every
   looping animation off and allowlists the cheap ones. The few loops here
   animate only transform or opacity, and each is re-enabled at the bottom of
   this file, deliberately. Everything else is a one-off transition.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #06070b;
  --bg-2: #0b0d13;
  --panel: rgba(17, 20, 28, .78);
  --panel-solid: #11141c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef1f8;
  --dim: #9aa1b4;
  --faint: #5d6478;
  --a: #2ec5ff;
  --a-2: #2e7bff;
  --b: #ff8a3d;
  --b-2: #ff4fa8;
  --pink: #ff3d9a;
  --purple: #a879ff;
  --green: #2bf59a;
  --yellow: #ffc83d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 10px 30px -10px rgba(0, 0, 0, .6);
  --head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1200px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--a); text-decoration: none; }
a:hover { color: #8be3ff; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; 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: 100; background: var(--a); color: #001018; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.grad-text {
  background: linear-gradient(100deg, var(--a) 0%, #8a8cff 38%, var(--pink) 68%, var(--b) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Backdrop: light leaks in the deck colours over a fine grid. Static. ── */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 18% 12%, rgba(46, 197, 255, .16), transparent 70%),
    radial-gradient(38% 32% at 85% 8%, rgba(255, 79, 168, .14), transparent 70%),
    radial-gradient(45% 40% at 70% 85%, rgba(255, 138, 61, .10), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(168, 121, 255, .10), transparent 70%);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 75%);
}

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 7, 11, .72);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.05rem/1 var(--head); letter-spacing: .14em; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 25px; }
.crumb { color: var(--faint); font-size: .82rem; white-space: nowrap; }
.crumb a { color: var(--dim); }
.crumb a:hover { color: var(--text); }
.menu { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.menu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--dim); font-size: .92rem; font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .crumb { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .topbar .btn--sm { display: none; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(8, 9, 14, .97); border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  --c: var(--a);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px; border: 1px solid transparent;
  font: 600 1rem/1 var(--body); color: var(--text); cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); color: var(--text); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(110deg, #19b6ff 0%, #5a74ff 45%, #ff4fa8 100%);
  box-shadow: 0 12px 40px -10px rgba(90, 116, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
}
.btn--primary:hover { box-shadow: 0 18px 50px -10px rgba(255, 79, 168, .6), inset 0 1px 0 rgba(255, 255, 255, .3); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07); }
.btn--sm { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: .9rem; }
.btn-note { display: block; margin-top: 12px; color: var(--faint); font-size: .86rem; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 40px; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.kicker b { color: var(--green); font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.hero h1 { margin: 22px auto 18px; max-width: 13ch; }
.hero .lede { max-width: 640px; margin: 0 auto 34px; color: var(--dim); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero .btn-note { margin-top: 16px; }

.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; transform: scaleY(.35); }

.showcase { position: relative; margin: 64px auto 0; width: min(1240px, 100% - 32px); perspective: 1800px; }
.showcase-frame {
  position: relative; border-radius: 20px; padding: 10px;
  background: linear-gradient(160deg, rgba(46, 197, 255, .35), rgba(255, 255, 255, .06) 30%, rgba(255, 255, 255, .03) 70%, rgba(255, 79, 168, .35));
  box-shadow: var(--shadow), 0 0 120px -30px rgba(46, 197, 255, .45), 0 0 140px -40px rgba(255, 79, 168, .4);
  transform: rotateX(10deg) scale(.96); transform-origin: 50% 100%;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.showcase.is-in .showcase-frame { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1); }
.showcase.is-in .showcase-frame.tilt-live { transition: transform .25s ease-out; }
.showcase-frame img { border-radius: 12px; width: 100%; }
.showcase::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -60px; height: 120px; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(90, 116, 255, .35), transparent 70%); filter: blur(30px);
}
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(12, 14, 20, .86); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .8); font-size: .86rem; font-weight: 600; white-space: nowrap; text-align: left;
}
.chip i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-style: normal; font-size: .95rem; }
.chip small { display: block; color: var(--dim); font-weight: 500; font-size: .74rem; }
.chip--1 { left: -2%; top: 14%; } .chip--1 i { background: rgba(46, 197, 255, .15); color: var(--a); }
.chip--2 { right: -2%; top: 8%; } .chip--2 i { background: rgba(255, 79, 168, .15); color: var(--pink); }
.chip--3 { left: 4%; bottom: 8%; } .chip--3 i { background: rgba(43, 245, 154, .14); color: var(--green); }
.chip--4 { right: 3%; bottom: 14%; } .chip--4 i { background: rgba(255, 138, 61, .15); color: var(--b); }
@media (max-width: 900px) { .chip { display: none; } }

/* ── Stats band ──────────────────────────────────────────────────────── */
.stats { margin: 100px auto 0; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.stat { padding: 26px 16px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 clamp(1.8rem, 3vw, 2.5rem)/1 var(--head); }
.stat span { display: block; margin-top: 8px; color: var(--dim); font-size: .84rem; letter-spacing: .04em; }
.stat:nth-child(1) b { color: var(--a); } .stat:nth-child(2) b { color: var(--pink); } .stat:nth-child(3) b { color: var(--purple); }
.stat:nth-child(4) b { color: var(--b); } .stat:nth-child(5) b { color: var(--yellow); } .stat:nth-child(6) b { color: var(--green); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(3, 1fr); } .stat:nth-child(3) { border-right: 0; } .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat { border-bottom: 1px solid var(--line); } .stat:nth-child(odd) { border-right: 1px solid var(--line); } .stat:nth-child(even) { border-right: 0; } }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: clamp(80px, 11vw, 140px) 0 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; font: 700 .76rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--a); }
.section-head p { color: var(--dim); font-size: 1.12rem; }

/* ── The mixer demo ──────────────────────────────────────────────────── */
.mixer {
  position: relative; border-radius: 24px; padding: clamp(16px, 2.4vw, 26px);
  background: linear-gradient(180deg, rgba(20, 23, 32, .92), rgba(11, 13, 19, .96));
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.mixer-grid { display: grid; grid-template-columns: 1fr minmax(260px, 340px) 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 980px) { .mixer-grid { grid-template-columns: 1fr; } }

.deck {
  --c: var(--a);
  position: relative; border-radius: 18px; padding: 18px; background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px;
}
.deck::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; border-radius: 2px; background: var(--c); box-shadow: 0 0 18px var(--c); opacity: .9; }
.deck--b { --c: var(--b); }
.deck-head { display: flex; align-items: center; gap: 12px; }
.deck-letter { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 700 1.1rem/1 var(--head); color: #05070b; background: var(--c); box-shadow: 0 0 22px -4px var(--c); flex: none; }
.deck-title { min-width: 0; }
.deck-title b { display: block; font: 600 1.05rem/1.2 var(--head); }
.deck-title span { color: var(--dim); font-size: .82rem; }
.deck-bpm { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.deck-bpm b { display: block; font: 700 1.5rem/1 var(--head); color: var(--c); }
.deck-bpm span { color: var(--dim); font-size: .78rem; }
.wave { position: relative; height: 120px; border-radius: 12px; background: #05060a; border: 1px solid var(--line); overflow: hidden; }
.wave canvas { width: 100%; height: 100%; display: block; }
.wave-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: .84rem; text-align: center; padding: 0 12px; }
.wave-msg[hidden] { display: none; }
.deck-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.pad {
  --pc: var(--c);
  min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); color: var(--text); font: 700 .82rem/1 var(--body); letter-spacing: .08em;
  cursor: pointer; transition: background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.pad:hover { border-color: rgba(255, 255, 255, .3); }
.pad[aria-pressed="true"] { border-color: var(--pc); color: var(--pc); box-shadow: 0 0 22px -6px var(--pc), inset 0 0 14px -8px var(--pc); }
.pad--play { width: 64px; display: grid; place-items: center; --pc: var(--green); }
.pad--play svg { width: 22px; height: 22px; }
.pad--play .i-pause { display: none; }
.pad--play[aria-pressed="true"] .i-play { display: none; }
.pad--play[aria-pressed="true"] .i-pause { display: block; }
.pad--kill { --pc: var(--pink); }
.knob-row { display: flex; flex-direction: column; gap: 6px; }
.knob-row label { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .14em; color: var(--dim); font-weight: 600; text-transform: uppercase; }
.knob-row output { color: var(--text); letter-spacing: 0; font-variant-numeric: tabular-nums; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.16)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 6px; background: #e9edf7; border: 2px solid #0b0d13; box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 4px 10px rgba(0,0,0,.5); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 6px; background: #e9edf7; border: 2px solid #0b0d13; }

.center-strip { border-radius: 18px; padding: 18px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.vis { height: 140px; border-radius: 12px; background: #05060a; border: 1px solid var(--line); overflow: hidden; }
.vis canvas { width: 100%; height: 100%; display: block; }
.center-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pad--sync { --pc: var(--yellow); }
.pad--auto { --pc: var(--purple); }
.xf { margin-top: auto; }
.xf-ends { display: flex; justify-content: space-between; font: 700 .8rem/1 var(--head); margin-top: 2px; }
.xf-ends span:first-child { color: var(--a); } .xf-ends span:last-child { color: var(--b); }
.xf input[type="range"] { height: 40px; }
.xf input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(90deg, var(--a), rgba(255,255,255,.12) 50%, var(--b)); }
.xf input[type="range"]::-webkit-slider-thumb { width: 26px; height: 34px; margin-top: -13px; border-radius: 7px; background: linear-gradient(180deg, #f3f5fb, #b9c0d1); }
.xf input[type="range"]::-moz-range-track { height: 8px; background: linear-gradient(90deg, var(--a), rgba(255,255,255,.12) 50%, var(--b)); }
.xf input[type="range"]::-moz-range-thumb { width: 24px; height: 32px; border-radius: 7px; }
.mixer-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; margin-top: 18px; color: var(--faint); font-size: .84rem; }
.mixer-foot strong { color: var(--dim); font-weight: 600; }
.mixer-status { color: var(--dim); }

/* ── Feature rows ────────────────────────────────────────────────────── */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(50px, 7vw, 90px) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--dim); font-size: 1.06rem; }
.feature-text h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: .45em; }
.tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 700 .74rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--tc, var(--a)); }
.tag::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-size: .98rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 6px; background: rgba(43, 245, 154, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232bf59a' d='M9.6 16.6 5.4 12.4 4 13.8l5.6 5.6L20 9l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks li span { color: var(--dim); }
.shot { position: relative; border-radius: 16px; padding: 8px; background: linear-gradient(150deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); box-shadow: var(--shadow); }
.shot img { border-radius: 10px; width: 100%; }
.shot--glow-a { box-shadow: var(--shadow), 0 0 90px -30px rgba(46, 197, 255, .55); }
.shot--glow-b { box-shadow: var(--shadow), 0 0 90px -30px rgba(255, 138, 61, .55); }
.shot--glow-p { box-shadow: var(--shadow), 0 0 90px -30px rgba(255, 79, 168, .55); }
.shot--glow-v { box-shadow: var(--shadow), 0 0 90px -30px rgba(168, 121, 255, .55); }
.shot-stack { position: relative; }
.shot-stack .shot + .shot { position: absolute; width: 52%; right: -4%; bottom: -12%; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .shot-stack .shot + .shot { position: relative; width: 70%; right: auto; bottom: auto; margin: -18% 0 0 auto; }
}

.stem-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stem { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--sc); color: var(--sc); font: 700 .78rem/1 var(--body); letter-spacing: .1em; background: color-mix(in srgb, var(--sc) 10%, transparent); }

/* ── Card grid ───────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  --cc: var(--a);
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
  overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cc) 22%, transparent), transparent); opacity: .6; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cc) 45%, transparent); }
.card .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--cc) 14%, transparent); color: var(--cc); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--dim); font-size: .97rem; margin: 0; }

/* ── Gallery ─────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.g-item { grid-column: span 4; margin: 0; }
.g-item.wide { grid-column: span 8; }
.g-item.half { grid-column: span 6; }
.g-item button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #05060a; position: relative; }
.g-item button:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }
.g-item img { width: 100%; aspect-ratio: 1484 / 941; object-fit: cover; object-position: top; transition: transform .5s ease; }
.g-item.k img { aspect-ratio: 16 / 9; }
.g-item button:hover img { transform: scale(1.03); }
.g-item figcaption { margin-top: 10px; color: var(--dim); font-size: .9rem; }
.g-item figcaption b { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .g-item, .g-item.wide, .g-item.half { grid-column: span 6; } }
@media (max-width: 600px) { .g-item, .g-item.wide, .g-item.half { grid-column: span 12; } }

dialog.lightbox { width: min(1500px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: #05060a; color: var(--text); box-shadow: 0 40px 120px rgba(0,0,0,.9); }
dialog.lightbox::backdrop { background: rgba(3, 4, 7, .86); backdrop-filter: blur(6px); }
.lb-img { display: block; width: 100%; max-height: calc(94vh - 64px); object-fit: contain; background: #000; }
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.lb-bar p { margin: 0 auto 0 4px; color: var(--dim); font-size: .92rem; }
.lb-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { border-color: rgba(255,255,255,.35); }
.lb-btn svg { width: 20px; height: 20px; }

/* ── Controllers strip ───────────────────────────────────────────────── */
.ctl-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ctl { padding: 10px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: .9rem; font-weight: 600; }
.ctl small { color: var(--dim); font-weight: 500; }

/* ── Download ────────────────────────────────────────────────────────── */
.download {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 64px);
  background: radial-gradient(70% 120% at 0% 0%, rgba(46, 197, 255, .18), transparent 60%), radial-gradient(70% 120% at 100% 100%, rgba(255, 79, 168, .18), transparent 60%), var(--panel-solid);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start;
}
@media (max-width: 900px) { .download { grid-template-columns: 1fr; } }
.download h2 { margin-bottom: .3em; }
.download .lede { color: var(--dim); font-size: 1.1rem; }
.release { margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .92rem; }
.release dt { color: var(--faint); }
.release dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; min-width: 0; }
.hash { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hash code { font: 500 .78rem/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.copy { flex: none; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font: 600 .74rem/1 var(--body); cursor: pointer; }
.copy:hover { border-color: rgba(255,255,255,.35); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 64px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 .95rem/1 var(--head); color: #05070b; background: linear-gradient(135deg, var(--a), var(--pink)); }
.steps b { display: block; margin-bottom: 2px; }
.steps span { color: var(--dim); font-size: .92rem; }
.req { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--dim); font-size: .9rem; }
.req b { color: var(--text); }
.notice { margin-top: 14px; color: var(--faint); font-size: .85rem; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font: 600 1.06rem/1.35 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 20px; color: var(--dim); }
.faq details > div p:last-child { margin: 0; }

/* ── Prose pages (support, privacy) ──────────────────────────────────── */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 30px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 16ch; }
.page-hero p { color: var(--dim); font-size: 1.15rem; max-width: 680px; }
.prose-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; padding-bottom: 40px; }
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; } .toc { position: static !important; } }
.toc { position: sticky; top: 92px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.toc b { display: block; margin-bottom: 10px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.toc a { display: block; padding: 6px 0; color: var(--dim); font-size: .94rem; }
.toc a:hover { color: var(--text); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.8em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #c9cedb; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose strong { color: var(--text); }
.prose code, kbd { font: 500 .88em/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; }
kbd { display: inline-block; min-width: 1.8em; padding: .32em .5em; border-radius: 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: rgba(255,255,255,.05); color: var(--text); text-align: center; }
.callout { margin: 1.4em 0; padding: 16px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--cc, var(--a)) 40%, transparent); background: color-mix(in srgb, var(--cc, var(--a)) 8%, transparent); color: var(--text); }
.callout p { color: var(--text); margin: 0; }
.keys { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.keys th, .keys td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.keys th { color: var(--faint); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.keys td { color: #c9cedb; }
.prose .table-wrap { overflow-x: auto; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { margin-top: clamp(90px, 12vw, 150px); border-top: 1px solid var(--line); background: rgba(5, 6, 10, .7); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 54px 0 36px; }
@media (max-width: 860px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot a { display: block; color: var(--dim); padding: 4px 0; font-size: .94rem; }
.foot a:hover { color: var(--text); }
.foot p { color: var(--faint); font-size: .9rem; max-width: 34ch; }
.foot-base { border-top: 1px solid var(--line); padding: 18px 0 26px; color: var(--faint); font-size: .84rem; }
.foot-base .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 0; }

/* ── Reveal on scroll (one-off transitions, not loops) ───────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .showcase-frame { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .g-item img { transition: none !important; }
}

/* ═══ EPIC LAYER ══════════════════════════════════════════════════════════
   Everything below moves only once (the intro, reveals, count-ups) or while the
   visitor is doing something (pointer tilt, glare, spotlight, scrolling). */

/* Scroll progress, along the bottom of the top bar. */
.topbar { position: sticky; }
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--a), var(--purple) 45%, var(--pink) 75%, var(--b));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px rgba(168, 121, 255, .6);
}

/* The hero's entrance: each part rises into place, one after another (transitions, not animations). */
.h1-line { display: inline-block; }
html.intro .hero .kicker, html.intro .hero .h1-line, html.intro .hero .lede,
html.intro .hero .cta-row, html.intro .hero .btn-note {
  opacity: 0; transform: translateY(28px); filter: blur(10px);
}
html.intro.intro-go .hero .kicker, html.intro.intro-go .hero .h1-line, html.intro.intro-go .hero .lede,
html.intro.intro-go .hero .cta-row, html.intro.intro-go .hero .btn-note {
  opacity: 1; transform: none; filter: none;
  transition: opacity .9s ease, transform 1s cubic-bezier(.2, .8, .2, 1), filter .9s ease;
}
html.intro.intro-go .hero .h1-line:nth-child(1) { transition-delay: .12s; }
html.intro.intro-go .hero .h1-line:nth-child(2) { transition-delay: .28s; }
html.intro.intro-go .hero .lede { transition-delay: .45s; }
html.intro.intro-go .hero .cta-row { transition-delay: .6s; }
html.intro.intro-go .hero .btn-note { transition-delay: .75s; }

/* Pointer tilt and glare (data-tilt). */
[data-tilt] { position: relative; transform-style: preserve-3d; will-change: transform; }
.glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .16), transparent 42%);
  mix-blend-mode: screen;
}
[data-tilt]:hover .glare { opacity: 1; }

/* Spotlight that follows the pointer across cards. */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--cc) 18%, transparent), transparent 60%);
}
.card:hover::before { opacity: 1; }

/* Karaoke: a line that lights up word by word, once, when it comes into view. */
.lyric-demo {
  margin: 22px 0 6px; padding: 18px 20px; border-radius: 16px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(43, 245, 154, .10), transparent 55%), #07090e;
  border: 1px solid rgba(43, 245, 154, .25);
}
.lyric-label { display: block; margin-bottom: 8px; font: 700 .7rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.lyric-label b { color: var(--text); }
.lyric-line { margin: 0; font: 700 clamp(1.15rem, 2vw, 1.45rem)/1.35 var(--head); color: #fff; }
.lyric-line.next { margin-top: 4px; font-size: 1rem; color: var(--faint); font-weight: 600; }
.lyric-line .w { transition: color .22s ease, text-shadow .22s ease; }
.lyric-demo.is-live .lyric-line:not(.next) .w { color: rgba(255, 255, 255, .55); }
.lyric-demo.is-live .lyric-line:not(.next) .w.sung { color: var(--a); text-shadow: 0 0 18px rgba(46, 197, 255, .55); }

/* The mixer's projector: style picker and full screen. */
.vis { position: relative; }
.vis-full {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; opacity: .75; transition: opacity .2s;
}
.vis-full:hover, .vis-full:focus-visible { opacity: 1; }
.vis-full svg { width: 18px; height: 18px; }
.vis:fullscreen { height: 100vh; border-radius: 0; border: 0; background: #000; }
.vis:fullscreen .vis-full { top: 18px; right: 18px; }
.vis-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: -6px; }
.vis-style {
  min-height: 30px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--dim);
  font: 700 .62rem/1 var(--body); letter-spacing: .1em; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
}
.vis-style:hover { color: var(--text); border-color: var(--line-2); }
.vis-style[aria-pressed="true"] { color: #fff; border-color: rgba(168, 121, 255, .7); background: rgba(168, 121, 255, .14); }
.vis { height: 160px; }
.deck .wave { flex: 1 1 auto; min-height: 120px; }

/* ── The visualiser showcase ─────────────────────────────────────────── */
.visuals { position: relative; }
.visuals::before {
  content: ""; position: absolute; left: 50%; top: 18%; width: min(1100px, 90vw); height: 60%; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(168, 121, 255, .22), transparent 70%), radial-gradient(40% 40% at 30% 60%, rgba(255, 79, 168, .14), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.visuals kbd { font-size: .8em; }
.vis-show { perspective: 1800px; }
.vis-stage {
  aspect-ratio: 16 / 10; border-radius: 24px; padding: 8px; overflow: hidden;
  background: linear-gradient(140deg, rgba(168, 121, 255, .6), rgba(255, 255, 255, .06) 35%, rgba(255, 255, 255, .04) 65%, rgba(255, 138, 61, .55));
  box-shadow: var(--shadow), 0 0 140px -40px rgba(168, 121, 255, .7), 0 0 160px -60px rgba(255, 79, 168, .6);
  transition: transform .25s ease-out;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.vis-img {
  position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: cover; border-radius: 17px;
  opacity: 0; transform: scale(1.03); transition: opacity .7s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); background: #000;
}
.vis-img.is-on { opacity: 1; transform: none; }
.vis-name {
  position: absolute; left: 34px; top: 26px; z-index: 2; font: 700 clamp(1.2rem, 3vw, 2.2rem)/1 var(--head); letter-spacing: .3em;
  color: #fff; text-shadow: 0 0 24px rgba(168, 121, 255, .9), 0 0 60px rgba(255, 79, 168, .6); transform: translateZ(40px);
}
.vis-picker { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; margin-top: 18px; }
.vis-picker button {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #05060a; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.vis-picker button img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .7; transition: opacity .25s ease; }
.vis-picker button span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; font: 700 .66rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}
.vis-picker button:hover { transform: translateY(-3px); border-color: var(--line-2); }
.vis-picker button:hover img, .vis-picker button[aria-pressed="true"] img { opacity: 1; }
.vis-picker button[aria-pressed="true"] { border-color: rgba(168, 121, 255, .85); box-shadow: 0 0 0 1px rgba(168, 121, 255, .6), 0 10px 30px -10px rgba(168, 121, 255, .7); }
.vis-picker button[aria-pressed="true"] span { color: #fff; }
.vis-picker button:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
@media (max-width: 900px) {
  .vis-picker { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 132px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .vis-picker button { scroll-snap-align: start; }
  .vis-name { left: 20px; top: 18px; }
}
.vis-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
@media (max-width: 800px) { .vis-facts { grid-template-columns: 1fr; } }
.vis-fact { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.vis-fact b { display: block; margin-bottom: 6px; font: 600 1.05rem/1.2 var(--head); }
.vis-fact span { color: var(--dim); font-size: .95rem; }

/* ── The full-bleed parallax band ─────────────────────────────────────── */
.band { position: relative; margin-top: clamp(90px, 12vw, 150px); min-height: min(78vh, 720px); display: flex; align-items: center; overflow: hidden; border-block: 1px solid var(--line); }
.band-img { position: absolute; inset: -12% 0; transform: translate3d(0, var(--py, 0px), 0) scale(1.06); will-change: transform; }
.band-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(1.15); }
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 7, 11, .97) 0%, rgba(6, 7, 11, .86) 34%, rgba(6, 7, 11, .35) 70%, rgba(6, 7, 11, .55) 100%),
              linear-gradient(180deg, var(--bg) 0%, transparent 16%, transparent 84%, var(--bg) 100%);
}
.band-text { position: relative; z-index: 1; }
.band-text h2 { max-width: 14ch; font-size: clamp(2.2rem, 5vw, 4rem); }
.band-text p { max-width: 460px; color: #c9cedb; font-size: 1.12rem; }
@media (max-width: 700px) { .band::after { background: linear-gradient(180deg, rgba(6,7,11,.9), rgba(6,7,11,.75) 50%, rgba(6,7,11,.92)); } }

@media (prefers-reduced-motion: reduce) {
  html.intro .hero .kicker, html.intro .hero .h1-line, html.intro .hero .lede, html.intro .hero .cta-row, html.intro .hero .btn-note {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
  .band-img { transform: scale(1.06) !important; }
  .vis-img, .vis-stage, .vis-picker button, .glare, .card::before { transition: none !important; }
}

/* ── Loops, allowlisted against the site's motion budget ─────────────────
   Both animate opacity or transform only, so they run on the compositor.
   Loaded after /css/mobile-motion.css; a class beats its universal rule. */
@keyframes cf-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes cf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.eq i { animation: cf-eq 1.1s ease-in-out infinite; animation-name: cf-eq !important; }
.eq i:nth-child(2) { animation-delay: -.35s; animation-duration: .9s; }
.eq i:nth-child(3) { animation-delay: -.7s; animation-duration: 1.3s; }
.eq i:nth-child(4) { animation-delay: -.2s; animation-duration: 1s; }
.live-dot { animation: cf-pulse 2s ease-in-out infinite; animation-name: cf-pulse !important; }
@media (prefers-reduced-motion: reduce) {
  .eq i, .live-dot { animation-name: none !important; }
}
