/* Chroma Lightshows: the site's stylesheet (home, songs, song pages, queue, 404, message pages).
   /css/style.css is the older one, still used by /fit/, /order/ and /admin/ until they are restyled.
   Brand colors are the tokens below; nothing else names a color. Fonts are self-hosted in /fonts/
   (SIL Open Font License), so the Content-Security-Policy can stay 'self'. */

@font-face { font-family: "Sora"; src: url("/fonts/sora-latin-var.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* base: the previews are drawn on #121212, so the page matches them */
  --bg: #121212;
  --bg-deep: #0b0b0c;
  --panel: #19191b;
  --panel-2: #212124;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.24);
  --text: #f5f5f5;
  --muted: #b4b4bb;
  --dim: #85858d;

  /* brand colors (same as /css/style.css) */
  --purple: #6600cb;
  --purple-hi: #7d1fe6;
  --lavender: #9e9ded;
  --magenta: #ba2ab5;
  --red: #ff4343;
  --orange: #ff800d;
  --gold: #f4b706;
  --gold-hi: #ffc93a;
  --teal: #20b9ac;
  --cyan: #13b3d0;
  --cyan-hi: #6fd6e8;
  --on-light: #1e1e1e;
  --purple-rgb: 102, 0, 203;
  --lavender-rgb: 158, 157, 237;
  --magenta-rgb: 186, 42, 181;
  --gold-rgb: 244, 183, 6;
  --teal-rgb: 32, 185, 172;
  --cyan-rgb: 19, 179, 208;

  /* the light: used for the one dramatic word per headline */
  --glow: linear-gradient(95deg, var(--lavender) 0%, var(--magenta) 32%, var(--red) 58%, var(--orange) 80%, var(--gold) 100%);

  --font-sans: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* radius: big on containers, small on video so matrix corners are never cropped */
  --r-media: 12px;
  --r-md: 1.25rem;
  --r-lg: 2rem;
  --r-xl: 3rem;

  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);      /* power3.out */
  --ease-inout: cubic-bezier(0.455, 0.03, 0.515, 0.955); /* power2.inOut */
  --ease-mag: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* film grain: on backgrounds and panels only, never over the videos */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.06'/%3E%3C/svg%3E");

  --nav-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--grain), var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--cyan-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
code { font-family: var(--font-mono); font-size: 0.86em; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(var(--purple-rgb), 0.7); color: #fff; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--panel); padding: 8px 14px; border-radius: 999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.drama {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; line-height: 0.9;
  background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.08em; /* italic overhang */
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.h2 .drama { font-size: 1.22em; }
.h2-ways { font-size: clamp(1.8rem, 3vw, 2.6rem); } /* song page: "Pick how you want <song>." (titles can be long) */
.h2-ways .drama { font-size: 1.15em; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--muted); max-width: 56ch; }

/* ---------- buttons: magnetic scale + sliding fill ---------- */
.btn {
  --fill: rgba(255, 255, 255, 0.12);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;
  color: var(--text); text-decoration: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2);
  transition: transform 0.4s var(--ease-mag), border-color 0.3s, color 0.3s, box-shadow 0.4s var(--ease-mag);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--fill); transform: translateY(102%);
  transition: transform 0.5s var(--ease-mag);
}
.btn:hover { transform: scale(1.03); color: var(--text); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.98); }
.btn .arrow { transition: transform 0.4s var(--ease-mag); }
.btn:hover .arrow { transform: translateX(3px); }
.btn small { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.02em; opacity: 0.8; }
.btn-col { flex-direction: column; gap: 2px; }
.btn-primary { background: var(--purple); border-color: rgba(255, 255, 255, 0.16); --fill: linear-gradient(95deg, var(--purple-hi), var(--magenta)); box-shadow: 0 10px 30px -10px rgba(var(--purple-rgb), 0.9); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(var(--magenta-rgb), 0.9); }
.btn-gold { background: var(--gold); color: var(--on-light); border-color: transparent; --fill: var(--gold-hi); }
.btn-gold:hover { color: var(--on-light); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 16px; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.lift { display: inline-block; transition: transform 0.3s var(--ease-mag), color 0.3s; }
.lift:hover { transform: translateY(-1px); }

/* ---------- string of lights = scroll progress ----------
   Unlit bulbs are dim. Lit bulbs take the headline colors (lavender, magenta, red, orange, gold),
   swept back and forth along the string, each with a soft halo of its own color. */
.lightbar {
  position: fixed; top: 0; left: 0; right: 0; height: 10px; z-index: 60; pointer-events: none;
  --bulbs: radial-gradient(circle at 9px 5px, #000 0 2.8px, transparent 3.5px) 0 0 / 18px 10px repeat-x;
}
.lightbar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 9px 5px, #2a2a2f 0 2.3px, transparent 3px) 0 0 / 18px 10px repeat-x; }
.lightbar i { position: absolute; top: 0; left: 0; height: 24px; width: calc(var(--progress, 0) * 100%); overflow: hidden; }
.lightbar b {
  position: absolute; top: 0; left: 0; width: 100vw; height: 10px;
  background: linear-gradient(90deg, var(--lavender), var(--magenta) 14%, var(--red) 26%, var(--orange) 38%, var(--gold) 50%, var(--orange) 62%, var(--red) 74%, var(--magenta) 86%, var(--lavender)) 0 0 / 760px 100% repeat-x;
  -webkit-mask: var(--bulbs); mask: var(--bulbs);
  filter: saturate(1.25) brightness(1.12);
}
.lightbar .halo { position: absolute; inset: 0; filter: blur(4px); opacity: 0.95; }

/* ---------- floating island nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 50; transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px)); height: var(--nav-h);
  display: flex; align-items: center; gap: 12px; padding: 0 10px 0 20px;
  border-radius: 999px; border: 1px solid transparent; background: transparent;
  transition: background 0.5s var(--ease-out), border-color 0.5s, box-shadow 0.5s, backdrop-filter 0.5s, height 0.4s var(--ease-out);
}
.nav.is-scrolled {
  height: 58px;
  background: rgba(18, 18, 18, 0.6);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border-color: var(--line-2);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.04rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 7px); gap: 3px; }
.brand-mark i { width: 7px; height: 7px; border-radius: 50%; display: block; background: currentColor; box-shadow: 0 0 6px currentColor; }
/* the headline gradient, run corner to corner: lavender top-left to gold bottom-right */
.brand-mark i:nth-child(1) { color: var(--lavender); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { color: var(--magenta); }
.brand-mark i:nth-child(3), .brand-mark i:nth-child(5), .brand-mark i:nth-child(7) { color: var(--red); }
.brand-mark i:nth-child(6), .brand-mark i:nth-child(8) { color: var(--orange); }
.brand-mark i:nth-child(9) { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color 0.3s, background 0.3s, transform 0.3s var(--ease-mag);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(var(--purple-rgb), 0.35); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav { padding: 0 8px 0 16px; gap: 8px; }
  .brand-name { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.05); color: var(--text); font: 600 14px var(--font-sans); cursor: pointer;
  }
  .nav-toggle i { width: 14px; height: 2px; background: currentColor; position: relative; border-radius: 2px; }
  .nav-toggle i::before { content: ""; position: absolute; left: 0; top: -5px; width: 14px; height: 2px; background: currentColor; border-radius: 2px; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: rgba(25, 25, 27, 0.92); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
    border: 1px solid var(--line-2); border-radius: var(--r-md);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease-out);
  }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(18, 18, 18, 0.85); border-color: var(--line-2); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
}

/* ---------- entrance + reveal ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: rise 1.1s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 80ms + 150ms); }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 150ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero: the opening shot ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px 0 clamp(44px, 8vh, 96px);
}
.hero-stage { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero-stage video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; } /* the canvas draws them */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero-canvas.is-ready { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(18, 18, 18, 0.94) 13%, rgba(18, 18, 18, 0.5) 34%, rgba(18, 18, 18, 0.04) 58%, transparent 100%),
    radial-gradient(70% 62% at 0% 100%, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.5) 55%, transparent 80%),
    radial-gradient(90% 70% at 0% 100%, rgba(var(--purple-rgb), 0.4), transparent 65%);
}
/* faint names on the windows, drawn over the shade */
.hero-labels { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.win-label {
  position: absolute; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.hero h1 { margin: 0 0 24px; }
.hero .h-sans { display: block; font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.045em; }
.hero .h-drama { display: block; font-size: clamp(4rem, 10.5vw, 9.6rem); margin-top: -0.02em; filter: drop-shadow(0 0 40px rgba(var(--magenta-rgb), 0.35)); white-space: nowrap; }
.hero .lead { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.now {
  width: 300px; padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(18, 18, 18, 0.55); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.now-label { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.now-title { display: block; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1.3; }
.now-title:hover { color: #fff; }
.now-title .arrow { display: inline-block; transition: transform 0.3s var(--ease-mag); }
.now-title:hover .arrow { transform: translateX(3px); }
.now-artist { font-family: var(--font-serif); font-style: italic; font-size: 1.12rem; color: var(--lavender); line-height: 1.3; }
.now-ticks { display: flex; gap: 6px; margin-top: 14px; }
.now-ticks button { flex: 1; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.now-ticks button::before, .now-ticks button::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.now-ticks button::after { background: var(--text); transform-origin: left; transform: scaleX(0); }
.now-ticks button.is-done::after { transform: scaleX(1); }
.now-ticks button.is-on::after { animation: tick var(--slice, 6s) linear forwards; }
@keyframes tick { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(var(--teal-rgb), 0.6); animation: pulse 2s infinite; flex: none; }
.dot-red { background: var(--red); box-shadow: 0 0 0 0 rgba(255, 67, 67, 0.6); animation-name: pulse-red; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--teal-rgb), 0.6); } 70% { box-shadow: 0 0 0 9px rgba(var(--teal-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--teal-rgb), 0); } }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(255, 67, 67, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(255, 67, 67, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 67, 67, 0); } }

/* phones: the video gets its own band under the nav, the words sit below it */
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; padding: calc(var(--band-top) + var(--band-h) + 92px) 0 56px; --band-top: 84px; --band-h: 63vw; }
  .hero-stage, .hero-labels { top: var(--band-top); bottom: auto; height: var(--band-h); }
  .win-label { font-size: 8.5px; letter-spacing: 0.12em; }
  .hero-shade { background: radial-gradient(120% 50% at 0% 100%, rgba(var(--purple-rgb), 0.3), transparent 70%); }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .now {
    position: absolute; left: 16px; right: 16px; top: calc(var(--band-top) + var(--band-h) + 10px); width: auto;
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 12px; padding: 10px 14px;
  }
  .now-label { margin: 0; grid-row: span 2; font-size: 0; } /* just the red dot */
  .now-artist { font-size: 1rem; }
  .now-ticks { grid-column: 1 / -1; margin-top: 6px; }
  .now-ticks button { height: 10px; }
  .now-ticks button::before, .now-ticks button::after { top: 4px; }
  .hero .eyebrow { margin-top: 26px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.panel {
  position: relative;
  background: var(--grain), linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 60%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ---------- features: functional artifacts ---------- */
.artifacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .artifacts { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.artifact { padding: 14px; display: flex; flex-direction: column; }
.artifact-screen {
  position: relative; height: 270px; overflow: hidden;
  border-radius: calc(var(--r-lg) - 10px); border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, rgba(var(--purple-rgb), 0.16), transparent 70%), var(--bg-deep);
}
.artifact-body { padding: 22px 12px 12px; }
.artifact-body h3 { font-size: 1.45rem; margin-bottom: 10px; }
.artifact-body h3 .drama { font-size: 1.2em; }
.artifact-body p { color: var(--muted); margin: 0; font-size: 15px; }
.screen-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.screen-bar .right { margin-left: auto; letter-spacing: 0.04em; text-transform: none; }

/* 1. shuffler */
.shuffle { position: absolute; inset: 0; }
.shuffle-card {
  position: absolute; margin: 0; /* figure has default side margins */ left: 50%; top: 66px; width: 80%;
  border-radius: 14px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, var(--y, 0)) scale(var(--s, 1)); opacity: var(--o, 1); z-index: var(--z, 1);
  transition: transform 0.85s var(--ease-spring), opacity 0.6s var(--ease-out);
}
.shuffle-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); }
.shuffle-card figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.shuffle-card figcaption b { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shuffle-card[data-slot="0"] { --y: 0px; --s: 1; --o: 1; --z: 4; }
.shuffle-card[data-slot="1"] { --y: -16px; --s: 0.93; --o: 0.7; --z: 3; }
.shuffle-card[data-slot="2"] { --y: -30px; --s: 0.86; --o: 0.4; --z: 2; }
.shuffle-card[data-slot="back"] { --y: -40px; --s: 0.8; --o: 0; --z: 1; }
.shuffle-card[data-slot="out"] { --y: 60px; --s: 1.04; --o: 0; --z: 5; }

/* 2. live queue typewriter */
.feed { position: absolute; inset: 44px 0 0; padding: 4px 16px 16px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75; color: var(--muted); overflow: hidden; }
.feed-line { white-space: pre-wrap; padding-left: 2ch; text-indent: -2ch; } /* long lines wrap, indented under their first word */
.feed-line .n { color: var(--dim); }
.feed-line .who { color: var(--text); }
.feed-line .st-in_line { color: var(--lavender); }
.feed-line .st-needs_info { color: var(--orange); }
.feed-line .st-fitting { color: var(--gold); }
.feed-line .st-ready { color: var(--teal); }
.feed-line .hint { color: var(--dim); }
.caret { display: inline-block; width: 0.6em; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: var(--gold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 3. sub-model mapping demo: a vendor spinner's sub-models matched to your snowflake's */
.sm { position: absolute; inset: 42px 14px 12px; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; }
.sm-defs { position: absolute; width: 0; height: 0; }
.sm-props { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.sm-prop { margin: 0; display: grid; justify-items: center; gap: 4px; }
.sm-prop figcaption { order: -1; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sm-prop figcaption b { font-weight: 400; color: var(--dim); margin-left: 3px; text-transform: none; letter-spacing: 0.02em; }
.sm-svg { width: 100px; height: 100px; overflow: visible; }
.sm-svg circle { fill: #4a4a54; transition: fill 0.35s; }
.sm-svg .sub.is-lit circle { fill: var(--c); }
.sm-svg .sub.is-lit { filter: url(#smglow); }
.sm-mid { color: var(--dim); font-size: 15px; padding: 14px 4px 0; }
.sm-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; }
.sm-row { display: grid; grid-template-columns: 8px auto 12px minmax(0, 1fr); align-items: center; gap: 6px; padding: 2px 6px; border-radius: 6px; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.6; color: var(--dim); transition: background-color 0.3s, color 0.3s; }
.sm-swatch { width: 8px; height: 8px; border-radius: 50%; background: #36363d; transition: background-color 0.3s, box-shadow 0.3s; }
.sm-row.is-active { background: rgba(255, 255, 255, 0.05); }
.sm-row.is-active, .sm-row.is-done { color: var(--text); }
.sm-row.is-active .sm-swatch, .sm-row.is-done .sm-swatch { background: var(--c); box-shadow: 0 0 6px var(--c); }
.sm-arrow { text-align: center; color: var(--dim); }
.sm-to { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dim); }
.sm-row.is-done .sm-to { color: var(--teal); }
.sm-status { margin: 0; text-align: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); transition: color 0.3s; }
.sm-status.is-ok { color: var(--teal); }
.cursor { position: absolute; left: 0; top: 0; z-index: 6; width: 22px; height: 22px; pointer-events: none; opacity: 0; will-change: transform; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6)); }
.cursor svg { transition: transform 0.15s var(--ease-mag); transform-origin: 4px 3px; }
.cursor.is-down svg { transform: scale(0.85); }

/* ---------- manifesto ---------- */
.manifesto {
  position: relative; isolation: isolate; overflow: hidden;
  margin-inline: clamp(8px, 1.5vw, 20px);
  border-radius: var(--r-xl);
  background: var(--grain), var(--bg-deep);
  padding: clamp(90px, 13vw, 190px) 0;
  border: 1px solid var(--line);
}
.manifesto-tex {
  position: absolute; inset: -20% -5%; z-index: -1; opacity: 0.22;
  background-size: cover; background-position: center;
  filter: blur(26px) saturate(140%);
  transform: translate3d(0, var(--py, 0px), 0) scale(1.1);
  will-change: transform;
}
.manifesto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 20% 80%, rgba(var(--purple-rgb), 0.35), transparent 70%), linear-gradient(to bottom, rgba(11, 11, 12, 0.6), rgba(11, 11, 12, 0.2) 50%, rgba(11, 11, 12, 0.7)); }
.m-small { font-size: clamp(1.1rem, 2vw, 1.55rem); color: var(--muted); max-width: 30ch; margin-bottom: 28px; letter-spacing: -0.02em; line-height: 1.35; }
.m-big { font-size: clamp(2.8rem, 8.4vw, 7.6rem); font-weight: 700; letter-spacing: -0.05em; line-height: 0.98; margin: 0 0 44px; }
.m-big .drama { font-size: 1.2em; }
.m-foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.m-foot p { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--dim); }
.split .w { display: inline-block; opacity: 0; transform: translateY(0.5em); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--wi) * 80ms); }
.split.is-in .w { opacity: 1; transform: none; }

/* ---------- song cards ---------- */
.songs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .songs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .songs-grid { grid-template-columns: 1fr; } }
.scard {
  display: flex; flex-direction: column; padding: 10px; color: var(--text); text-decoration: none;
  transition: transform 0.5s var(--ease-mag), border-color 0.4s, box-shadow 0.5s;
}
.scard:hover { transform: translateY(-4px); border-color: var(--line-3); color: var(--text); box-shadow: 0 50px 90px -40px rgba(var(--purple-rgb), 0.55); }
.scard-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--r-lg) - 10px); background: var(--bg); }
.scard-media img, .scard-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scard-media video { opacity: 0; transition: opacity 0.5s; }
.scard-media video.is-playing { opacity: 1; }
.scard-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(18, 18, 18, 0.75); border: 1px solid var(--line-2); color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tag-gold { color: var(--gold); border-color: rgba(var(--gold-rgb), 0.5); }
.tag-teal { color: var(--teal); border-color: rgba(var(--teal-rgb), 0.5); }
.scard-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: end; padding: 18px 12px 10px; }
.scard-meta { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.scard h3 { font-size: 1.4rem; letter-spacing: -0.03em; }
.scard-artist { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--lavender); line-height: 1.3; }
.scard-theme { grid-column: 1; font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.scard-go { grid-row: 2 / span 3; grid-column: 2; align-self: end; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-mag); }
.scard:hover .scard-go { background: var(--purple); border-color: transparent; transform: rotate(-45deg); }

/* catalog footnote */
.fn-ref { color: var(--gold); text-decoration: none; margin-left: 2px; }
.footnote { margin: 22px 0 0; font-size: 13px; color: var(--dim); }

/* ---------- free band ---------- */
.free-band { padding: clamp(40px, 6vw, 80px); border-radius: var(--r-xl); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.free-band::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 120% at 100% 100%, rgba(var(--gold-rgb), 0.16), transparent 60%), radial-gradient(60% 120% at 0% 0%, rgba(var(--purple-rgb), 0.3), transparent 60%); }
.free-band > * { position: relative; }
.free-band h2 { font-size: clamp(2.2rem, 4.8vw, 4.2rem); margin-bottom: 16px; }
.free-band h2 .drama { display: block; font-size: 1.22em; }
.free-band p { color: var(--muted); max-width: 62ch; margin: 0; }
.free-band .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .free-band { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer {
  margin-top: clamp(80px, 10vw, 140px);
  background: var(--grain), var(--bg-deep);
  border-radius: 4rem 4rem 0 0; border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 90px) 0 40px;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr)); gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand .tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--muted); margin: 16px 0 24px; line-height: 1.2; max-width: 22ch; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--muted); text-decoration: none; }
.footer ul a:hover { color: #fff; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-decoration: none; }
.status:hover { color: #fff; border-color: var(--line-3); }
.fine { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); display: grid; gap: 6px; }
.fine p { margin: 0; }
.fine a { color: var(--muted); }


.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--panel-2); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }

/* =================================================================
   SONG PAGE
   ================================================================= */
.song-top { padding-top: 96px; }

/* more sequences: a band of small cards right under the nav */
.shelf-band { background: rgba(255, 255, 255, 0.025); border-block: 1px solid var(--line); }
.shelf-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "title list more"; gap: 8px 18px; align-items: center; padding-block: 12px; }
.shelf-title { grid-area: title; margin: 0; width: 7em; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; line-height: 1.45; text-transform: uppercase; color: var(--gold); }
.shelf-list { grid-area: list; display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 12px 16px; margin: -10px -14px; scroll-padding-inline: 16px; } /* padding = room to grow on hover */
.shelf-list::-webkit-scrollbar { display: none; }
.mini {
  flex: 0 0 auto; width: 248px; display: flex; gap: 12px; align-items: center; padding: 7px 12px 7px 7px; scroll-snap-align: start;
  color: var(--text); text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.4s, transform 0.4s var(--ease-mag);
}
.mini { position: relative; }
.mini:hover, .mini:focus-visible { z-index: 2; color: var(--text); border-color: rgba(var(--lavender-rgb), 0.6); background: var(--panel-2); transform: scale(1.1); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.9); }
.mini.is-full { border-color: rgba(var(--gold-rgb), 0.45); }
.mini-thumb { position: relative; width: 92px; aspect-ratio: 16 / 9; flex: none; border-radius: 9px; overflow: hidden; background: #000; }
.mini-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mini-title { font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-artist { font-family: var(--font-serif); font-style: italic; font-size: 14.5px; color: var(--lavender); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.mini.is-full .mini-tag { color: var(--gold); }
.shelf-more { grid-area: more; font-weight: 600; font-size: 14px; white-space: nowrap; }
.shelf-scroll { grid-area: list; justify-self: end; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(18, 18, 18, 0.92); color: #fff; font: 400 20px/1 var(--font-sans); cursor: pointer; box-shadow: 0 0 18px 10px rgba(18, 18, 18, 0.85); }
.shelf-scroll.is-back { justify-self: start; }
.shelf-scroll:hover { border-color: var(--lavender); }
.shelf-scroll[hidden] { display: none; }
@media (max-width: 760px) {
  .shelf-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title more" "list list"; }
  .shelf-title { width: auto; }
  .mini { width: 220px; }
  .mini-thumb { width: 80px; }
}

.crumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 10px 0 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; }

.product { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .product { grid-template-columns: 1fr; } }
.gallery { padding: 10px; }
.slide[hidden] { display: none; }
.frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--r-lg) - 10px); background: var(--bg); }
.frame video, .frame img, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; }
.frame.is-strip { aspect-ratio: 844 / 320; }
.yt { position: absolute; inset: 0; display: block; cursor: pointer; }
.yt img { object-fit: cover; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 50%); }
.yt-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(18, 18, 18, 0.6); border: 1px solid rgba(255, 255, 255, 0.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 0.4s var(--ease-mag), background 0.4s; }
.yt-play::before { content: ""; position: absolute; left: 31px; top: 25px; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.yt:hover .yt-play { transform: scale(1.08); background: var(--red); }
.yt-note { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-family: var(--font-mono); font-size: 11px; color: rgba(255, 255, 255, 0.8); }
.gallery-cap { display: flex; justify-content: space-between; gap: 16px; padding: 14px 8px 4px; font-size: 13.5px; color: var(--dim); }
.tabs { display: flex; gap: 8px; padding: 6px 0 2px; }
.tab { flex: 1; display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--muted); text-align: left; cursor: pointer; font: inherit; transition: border-color 0.3s, background 0.3s, color 0.3s; }
.tab img { width: 68px; height: 40px; object-fit: cover; border-radius: 10px; background: var(--bg); }
.tab b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.tab small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); }
.tab:hover { border-color: var(--line-3); }
.tab[aria-pressed="true"] { border-color: rgba(var(--lavender-rgb), 0.6); background: rgba(var(--purple-rgb), 0.18); }
@media (max-width: 560px) { .tab { grid-template-columns: 1fr; } .tab img { width: 100%; height: 44px; } }

.buy { position: sticky; top: 96px; padding-top: 8px; }
.buy h1 { font-size: clamp(2.1rem, 3.4vw, 3.1rem); letter-spacing: -0.045em; line-height: 1.02; }
.buy .artist { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.1; margin: 8px 0 22px; background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; padding-right: 0.1em; }
.buy .blurb { font-size: 1.08rem; color: var(--muted); margin-bottom: 22px; }
.data { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.data li { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(255, 255, 255, 0.02); }
.data li b { color: var(--text); font-weight: 500; }
.buy-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.buy-note { font-size: 13.5px; color: var(--dim); }
@media (max-width: 960px) { .buy { position: static; } }

/* three ways to get the song */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .ways { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.way { padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.way-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.way-kind { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.way h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.way h3 .drama { font-size: 1.18em; }
.price { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); }
.price b { font-family: var(--font-sans); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; color: var(--text); }
.price span { font-size: 12px; color: var(--dim); }
.way ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--muted); }
.way li { position: relative; padding-left: 22px; }
.way li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.way .btn { margin-top: auto; width: 100%; }
.way-alt { font-size: 13px; color: var(--dim); text-align: center; margin: -6px 0 0; }
.way.is-pop {
  background: var(--grain), radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%), linear-gradient(180deg, #7414d8, var(--purple) 55%, #4f00a0);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 50px 100px -40px rgba(var(--purple-rgb), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.way.is-pop .way-kind, .way.is-pop .price span { color: rgba(255, 255, 255, 0.7); }
.way.is-pop ul { color: rgba(255, 255, 255, 0.86); }
.way.is-pop li::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.way.is-pop h3 .drama { background: linear-gradient(95deg, #fff, var(--gold-hi)); -webkit-background-clip: text; background-clip: text; }
.way.is-pop .tag { background: rgba(0, 0, 0, 0.25); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.tip-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 34px; color: var(--muted); font-size: 14.5px; text-align: center; }

/* "get it": heading, the three cards and "complete the look" fit on one screen */
.get-section .section-head { margin-bottom: 26px; }
.get-section .way { padding: 24px 26px; gap: 14px; }
.get-section .way h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.get-section .price b { font-size: 2rem; }
.get-section .way ul { gap: 6px; font-size: 14px; }

/* complete the look: a strip right under the cards (music + full sequence) */
.look-strip { margin-top: 16px; padding: 18px 24px; border-radius: var(--r-lg); display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; align-items: center; }
.look-label { margin: 0; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.05; }
.look-label .drama { display: block; font-size: 1.2em; }
.look-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding-left: 24px; border-left: 1px solid var(--line); }
.look-text { display: grid; gap: 3px; min-width: 0; }
.look-text p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.look-text .look-kind { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.look-text .look-kind { flex-wrap: wrap; row-gap: 4px; }
.look-kind > span, .look-kind .tag { white-space: nowrap; }
.look-kind .tag { font-size: 9.5px; padding: 2px 8px; }
.look-text .look-note { font-size: 13px; color: var(--dim); }
.look-text .shout { color: var(--text); }
.shout b { margin-right: 4px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.look-item .btn { white-space: nowrap; }
.btn.is-placeholder { border-style: dashed; }
@media (max-width: 1000px) {
  .look-strip { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .look-label .drama { display: inline; }
  .look-item { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .look-item { grid-template-columns: 1fr; } .look-item .btn { justify-self: start; } }

/* the song + the matrices */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 960px) { .story-grid { grid-template-columns: 1fr; } }
.story { padding: clamp(28px, 3.6vw, 48px); }
.story .first { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; color: var(--text); margin-bottom: 18px; letter-spacing: -0.01em; }
.story p { color: var(--muted); }

.sizes { padding: clamp(28px, 3.6vw, 48px); }
.sizes h2, .contents h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 8px; }
.sizes > p { color: var(--muted); font-size: 14.5px; }
.matrix-map { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 16px; margin: 30px 0 26px; }
.mx { display: grid; gap: 8px; flex: none; }
.mx-label { overflow-wrap: break-word; }
.mx-box { border-radius: 5px; border: 1px solid rgba(var(--lavender-rgb), 0.55); background: radial-gradient(circle, rgba(var(--lavender-rgb), 0.42) 0 1px, transparent 1.6px) 0 0 / 6px 6px; box-shadow: inset 0 0 30px rgba(var(--purple-rgb), 0.35); }
.mx-label { font-family: var(--font-mono); font-size: 11px; color: var(--dim); line-height: 1.4; }
.mx-label b { display: block; color: var(--text); font-weight: 500; }
.trees { display: flex; align-items: flex-end; gap: 10px; margin: 6px 0 14px; }
.tree { width: 22px; height: 34px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: radial-gradient(circle, var(--teal) 0 1.2px, transparent 1.8px) 0 0 / 5px 5px; filter: drop-shadow(0 0 6px rgba(var(--teal-rgb), 0.6)); }

.contents { padding: clamp(28px, 3.6vw, 48px); margin-top: 20px; }
.contents ol { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; counter-reset: c; }
@media (max-width: 760px) { .contents ol { grid-template-columns: 1fr; } }
.contents li { counter-increment: c; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.contents li::before { content: counter(c, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--gold); padding-top: 2px; }
.small-print { margin-top: 26px; font-size: 13px; color: var(--dim); }
.small-print p { margin: 0 0 6px; }
.small-print a { color: var(--muted); }

/* =================================================================
   SHARED BITS FOR THE OTHER PAGES
   ================================================================= */
.page-top { padding-top: clamp(116px, 14vw, 160px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.center-page { min-height: 72vh; display: grid; place-content: center; justify-items: center; text-align: center; padding-block: 150px 80px; }
.center-page h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 18px; }
.center-page h1 .drama { font-size: 1.2em; }
.center-page .lead { margin: 0 auto 30px; }
.center-page .actions { justify-content: center; }
.callout { max-width: 780px; padding: 14px 18px; border-radius: 14px; background: rgba(var(--teal-rgb), 0.08); border: 1px solid rgba(var(--teal-rgb), 0.3); color: var(--text); font-size: 15px; }
.callout p { margin: 0; }
.notice-bad { padding: 12px 16px; border-radius: 12px; background: rgba(255, 67, 67, 0.1); border: 1px solid rgba(255, 67, 67, 0.4); }
.notice-bad p { margin: 0; }

/* order status pills (Chroma.pill in /js/common.js) */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; border: 1px solid currentColor; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.pill-in_line { color: var(--lavender); }
.pill-needs_info { color: var(--orange); }
.pill-fitting { color: var(--gold); }
.pill-ready { color: var(--teal); }
.pill-closed { color: var(--dim); }

/* =================================================================
   QUEUE PAGE
   ================================================================= */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 560px; margin: 30px 0 0; }
.stat { padding: 20px 24px; }
.stat span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.queue-panel { padding: 8px; margin-top: 22px; }
.queue-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding: 18px 18px 8px; }
.queue-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.queue-head h2 .drama { font-size: 1.18em; }
.queue-head p { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.table-wrap { overflow-x: auto; }
table.queue { width: 100%; border-collapse: collapse; font-size: 15px; }
.queue th { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.queue td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.queue tbody tr:last-child td { border-bottom: 0; }
.queue .pos { width: 70px; font-family: var(--font-mono); color: var(--gold); }
.queue .who { font-weight: 600; }
.queue .sg a { color: var(--text); text-decoration: underline dotted rgba(255, 255, 255, 0.35); text-underline-offset: 4px; }
.queue .sg a:hover { color: var(--cyan-hi); }
.queue .num { font-family: var(--font-mono); font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.queue td.empty { padding: 30px 16px; text-align: center; color: var(--muted); }
.queue tr.is-mine td { background: rgba(var(--purple-rgb), 0.16); }
.mine-tag { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--purple); color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 2px; }
@media (max-width: 640px) {
  table.queue thead { display: none; }
  table.queue, .queue tbody { display: block; }
  .queue tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pos who st" "pos sg sg" "pos num num"; gap: 4px 12px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .queue tbody tr:last-child { border-bottom: 0; }
  .queue td { padding: 0; border: 0; }
  .queue .pos { grid-area: pos; width: auto; } .queue .who { grid-area: who; } .queue .st { grid-area: st; justify-self: end; }
  .queue .sg { grid-area: sg; } .queue .num { grid-area: num; }
  .queue td.empty { grid-column: 1 / -1; padding: 18px 0; }
}
.queue-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.mine-panel { padding: 22px 26px; margin-top: 26px; }
.mine-panel h2 { font-size: 1.3rem; margin-bottom: 10px; }
.mine-panel ul { margin: 0 0 8px; padding-left: 20px; color: var(--muted); }
.mine-panel p { margin: 0; font-size: 13px; color: var(--dim); }
.legend { padding: clamp(24px, 3vw, 36px); }
.legend h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.legend dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 30px; margin: 0; }
.legend dl > div { display: grid; gap: 8px; justify-items: start; }
.legend dd { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .legend dl { grid-template-columns: 1fr; } }

/* =================================================================
   SONG PAGE EXTRAS (server-built page)
   ================================================================= */
.yt.is-playing::after { display: none; }
.yt.is-playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.btn.is-soon { opacity: 0.6; border-style: dashed; cursor: default; }
.btn.is-soon:hover { transform: none; }
.btn.is-soon::before { display: none; }
.tree-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.matrix-ph { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; color: var(--muted); background: radial-gradient(60% 60% at 50% 45%, hsl(var(--hue, 270) 70% 35% / 0.45), transparent 70%), var(--bg); }
.matrix-ph b { color: var(--text); font-size: 1.3rem; }
.matrix-ph span { font-family: var(--font-mono); font-size: 12px; }

/* the pop-up after a download */
dialog.after-dl {
  width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: clamp(24px, 4vw, 34px); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--grain), var(--panel); color: var(--text); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}
dialog.after-dl::backdrop { background: rgba(8, 8, 10, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.after-dl h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.after-dl h2 .drama { font-size: 1.18em; }
.after-dl p { color: var(--muted); font-size: 15px; }
.after-dl .eyebrow { color: var(--gold); font-size: 12px; }
.after-dl .help { font-size: 13px; color: var(--dim); }
.after-dl .help.error { color: var(--red); }
.after-dl-close { position: absolute; top: 14px; right: 14px; margin: 0; }
.icon-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.icon-close:hover { border-color: var(--line-3); }
.after-dl .after-dl-ai { padding: 12px 14px; border-radius: 14px; background: rgba(var(--lavender-rgb), 0.08); border: 1px solid rgba(var(--lavender-rgb), 0.3); color: var(--text); }
.after-dl-offer { margin: 18px 0; padding: 18px 20px; border-radius: var(--r-md); background: rgba(var(--purple-rgb), 0.2); border: 1px solid rgba(var(--lavender-rgb), 0.3); }
.after-dl-offer h3 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.after-dl-offer p { color: rgba(255, 255, 255, 0.85); }
.after-dl-signup label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.signup-row { display: flex; gap: 8px; }
.signup-row input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-deep); color: var(--text); font: inherit; font-size: 15px; }
.signup-row input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.signup-row input[aria-invalid="true"] { border-color: var(--red); }
.help { margin: 8px 0 0; font-size: 13px; color: var(--dim); }
.help.error { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) { .signup-row { flex-direction: column; } }

/* ---------- reduced motion: everything holds still ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .rise, .reveal, .split .w { opacity: 1 !important; transform: none !important; }
}
