/* ==========================================================================
   Chorus777 — presentation styles
   Dark + medium indigo, brand coral/orange/plum, electric cyan accents.
   Keep :root in sync with brand.css (used by the Next.js app).
   ========================================================================== */

:root {
  --bg-0: #07060f;
  --bg-1: #0d0b1d;
  --bg-2: #161233;
  --bg-3: #221b4d;
  --ink: #efeaff;
  --ink-2: #b9b2d9;
  --ink-3: #7f78a6;
  --line: rgba(190, 170, 255, 0.14);
  --line-strong: rgba(190, 170, 255, 0.3);

  --plum: #b05a8a;
  --coral: #ff6b6b;
  --orange: #ff8a2b;
  --gold: #ffc46b;
  --cyan: #41d6ff;
  --violet: #8b6cff;
  --indigo: #2b1a63;

  --grad-brand: linear-gradient(100deg, var(--violet) 0%, var(--plum) 35%, var(--coral) 65%, var(--orange) 100%);
  --grad-cool: linear-gradient(120deg, var(--cyan), var(--violet));
  --grad-warm: linear-gradient(120deg, var(--coral), var(--orange));

  --font-display: "Unbounded", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Manrope", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --bass: 0; /* 0..1, set by JS from the audio analyser */
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: clip; }
/* html clips, so body no longer locks the page: lock it here while a menu or the player is open */
html:has(body.menu-open), html:has(body.deck-open) { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.015em; line-height: 1.1; margin: 0; text-rendering: optimizeLegibility; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--coral); color: #1a0b14; }

.ic { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- ambient layers ---------- */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; mix-blend-mode: screen;
  width: 46vmax; height: 46vmax;
  transform: translate3d(0,0,0) scale(calc(1 + var(--bass) * 0.35));
  transition: transform 120ms linear;
  animation: drift 26s ease-in-out infinite alternate;
}
.orb.a { background: radial-gradient(circle at 40% 40%, #7a4bff 0%, rgba(122,75,255,0) 62%); top: -16vmax; left: -10vmax; }
.orb.b { background: radial-gradient(circle at 50% 50%, #ff6b6b 0%, rgba(255,107,107,0) 60%); top: 30vh; right: -18vmax; animation-delay: -8s; animation-duration: 32s; }
.orb.c { background: radial-gradient(circle at 50% 50%, #ff8a2b 0%, rgba(255,138,43,0) 60%); bottom: -20vmax; left: 20vw; animation-delay: -15s; animation-duration: 30s; opacity: .42; }
.orb.d { background: radial-gradient(circle at 50% 50%, #41d6ff 0%, rgba(65,214,255,0) 60%); top: 55vh; left: -14vmax; animation-delay: -4s; animation-duration: 36s; opacity: .35; }
.orb.e { background: radial-gradient(circle at 50% 50%, #b05a8a 0%, rgba(176,90,138,0) 60%); top: -10vmax; right: 20vw; animation-delay: -20s; animation-duration: 28s; opacity: .4; width: 30vmax; height: 30vmax; }
@keyframes drift {
  0% { translate: 0 0; }
  50% { translate: 6vw -4vh; }
  100% { translate: -5vw 6vh; }
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-2%,3%)} 50%{transform:translate(3%,-1%)} 75%{transform:translate(-1%,-3%)} 100%{transform:translate(0,0)} }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(9, 7, 20, 0.95); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav .brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.nav .brand span b { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav .links { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); align-items: center; }
.nav .links a {
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s, background .2s;
}
.nav .links a:hover { color: var(--ink); }
.nav .links a.active { color: #15102b; background: var(--ink); }
.lang-switch {
  display: inline-flex; gap: 2px; margin-left: 6px; padding: 2px;
  border-radius: 999px; background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.lang-switch a {
  padding: 6px 10px !important; font-size: 12px !important; font-weight: 800 !important;
  letter-spacing: .04em; color: var(--ink-3) !important; background: transparent !important;
}
.lang-switch a:hover { color: var(--ink) !important; }
.lang-switch a.on { color: #15102b !important; background: var(--ink) !important; }
/* Two floating pills share one look: the ideas box bottom left, the player bottom right. */
.player.dock, .ideas-toggle {
  height: 56px; border-radius: 999px;
  background: rgba(13, 11, 29, .92); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.player.dock {
  position: fixed; right: 16px; bottom: 16px; z-index: 45;
  display: flex; align-items: center; gap: 12px; padding: 0 8px 0 20px;
  max-width: calc(100vw - 32px);
}
.player.dock .track-name { display: block; max-width: 260px; min-width: 0; }
body { padding-bottom: 92px; }
.mini-play {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 18px; box-shadow: 0 10px 26px -8px rgba(255,107,107,.7);
  transition: transform .15s;
}
.mini-play:hover { transform: scale(1.06); }
.mini-next {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink);
  background: rgba(255,255,255,.08); border: 1px solid var(--line); transition: background .15s, transform .15s;
}
.mini-next .ic { width: 14px; height: 14px; }
.mini-next:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
@media (max-width: 640px) {
  .mini-next span { display: none; }
  .mini-next { width: 36px; padding: 0; justify-content: center; }
}
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; width: 26px; }
.eq i { display: block; width: 4px; height: 20%; border-radius: 2px; background: var(--grad-cool); transition: height .08s linear; }
.track-name { font-size: 12px; color: var(--ink-3); max-width: 230px; line-height: 1.3; }
.track-name b, .track-name span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-name b { color: var(--ink-2); font-weight: 700; }
@media (max-width: 900px) {
  .track-name { display: none; }
  .nav .links > a span { display: none; }
  .nav .links > a { padding: 8px 12px; }
  .lang-switch a { padding: 6px 8px !important; }
}

/* ---------- mobile: hamburger + side panel ----------
   Below 900px the links leave the top row and live in a panel from the right.
   The row keeps the logo, the player buttons and the hamburger. */
.menu-btn, .menu-backdrop { display: none; }
@media (max-width: 900px) {
  /* backdrop-filter makes .nav the box for position:fixed children, which would
     trap the panel inside the 68px bar. The bar is near-opaque anyway. */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(9, 7, 20, 0.98); gap: 10px; }
  .nav .brand { gap: 10px; font-size: 16px; min-width: 0; }
  .nav .brand img { width: 32px; height: 32px; }
  .menu-btn { margin-left: auto; }

  .menu-btn {
    display: grid; place-content: center; gap: 4px; position: relative; z-index: 3;
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--ink);
  }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav .links {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 2;
    width: min(300px, 84vw); flex-direction: column; align-items: stretch; gap: 6px;
    padding: calc(var(--nav-h) + 12px) 16px 24px; overflow-y: auto;
    border-radius: 0; border: 0; border-left: 1px solid var(--line-strong);
    background: var(--bg-1); box-shadow: var(--shadow);
    transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility 0s .28s;
  }
  body.menu-open .nav .links { transform: none; visibility: visible; transition: transform .28s ease; }
  .nav .links > a { padding: 14px 16px; font-size: 16px; border-radius: 14px; gap: 12px; }
  .nav .links > a span { display: inline; }
  .nav .links .lang-switch { align-self: flex-start; margin: 14px 0 0; }
  .nav .links .lang-switch a { padding: 8px 14px !important; font-size: 13px !important; }

  .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(4, 3, 10, .6); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }
  body.menu-open .nav { z-index: 70; }
}
/* Phone: one row at the bottom. A round ideas button left, the player bar fills the rest. */
@media (max-width: 640px) {
  .player.dock { left: 82px; right: 16px; max-width: none; padding: 0 8px 0 18px; gap: 10px; }
  .player.dock .track-name { flex: 1; max-width: none; }
  .player.dock .eq { display: none; }
}
@media (max-width: 360px) { .mini-next { display: none; } }
@media (prefers-reduced-motion: reduce) { .nav .links, .menu-btn span, .menu-backdrop { transition: none !important; } }

/* ---------- layout ---------- */
.app { position: relative; z-index: 2; }
.view { display: none; }
.view.active { display: block; animation: viewIn .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.container { width: min(1180px, calc(100% - 2 * clamp(16px, 4vw, 48px))); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.tight { padding: clamp(28px, 4vw, 56px) 0; }
.section.medium { background: linear-gradient(180deg, rgba(22,18,51,0) 0%, rgba(22,18,51,.85) 12%, rgba(22,18,51,.85) 88%, rgba(22,18,51,0) 100%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.h1 { font-size: clamp(36px, 5.9vw, 82px); font-weight: 700; text-wrap: balance; }
.h2 { font-size: clamp(28px, 3.7vw, 48px); font-weight: 700; margin-top: 14px; }
.h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 700; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 760px; margin-top: 18px; }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-cool-text { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 56px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--ink); color: #15102b; transition: transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(239,234,255,.5); }
.btn.primary { background: var(--grad-brand); color: #fff; box-shadow: 0 16px 40px -14px rgba(255,107,107,.8); }
.btn.ghost { background: rgba(255,255,255,.05); color: var(--ink); border: 1px solid var(--line-strong); }
.btn.ghost:hover { box-shadow: none; background: rgba(255,255,255,.1); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink-2);
}
.chip.warm { background: rgba(255,138,43,.12); border-color: rgba(255,138,43,.35); color: #ffc9a3; }
.chip.cool { background: rgba(65,214,255,.1); border-color: rgba(65,214,255,.35); color: #b7efff; }
.chip.plum { background: rgba(176,90,138,.16); border-color: rgba(176,90,138,.45); color: #f1c4de; }
.chip.violet { background: rgba(139,108,255,.14); border-color: rgba(139,108,255,.45); color: #d3c8ff; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, background .35s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle, 180deg), transparent 0 55%, var(--coral) 70%, var(--cyan) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card:hover::before { opacity: .9; }
.card.glow::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none;
  background: var(--glow, var(--violet)); top: -120px; right: -100px;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--ink);
}
.card .icon.warm { background: linear-gradient(140deg, rgba(255,107,107,.35), rgba(255,138,43,.25)); color: #ffd9c2; }
.card .icon.cool { background: linear-gradient(140deg, rgba(65,214,255,.3), rgba(139,108,255,.3)); color: #d7f4ff; }
.card .icon.plum { background: linear-gradient(140deg, rgba(176,90,138,.4), rgba(139,108,255,.3)); color: #ffd6ec; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p, .card li { color: var(--ink-2); font-size: 15px; }
.card ul.list li { position: relative; padding-left: 20px; margin-top: 8px; line-height: 1.5; }
.card ul.list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); }
.card ul.list li b { color: var(--ink); font-weight: 700; }
.card.span2 { grid-column: span 2; }
@media (max-width: 640px) { .card.span2 { grid-column: span 1; } }
.card .num { position: absolute; top: 18px; right: 22px; font-family: var(--font-display); font-weight: 800; font-size: 44px; color: rgba(255,255,255,.06); line-height: 1; }

/* ---------- quote ---------- */
.quote {
  position: relative; padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(43,26,99,.65), rgba(22,18,51,.4)); border: 1px solid var(--line); overflow: hidden;
}
.quote::before { content: "“"; position: absolute; left: 22px; top: -18px; font-family: var(--font-display); font-size: 160px; line-height: 1; color: rgba(255,255,255,.07); font-weight: 800; }
.quote p { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 34px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.quote small { display: block; margin-top: 14px; color: var(--ink-3); font-size: 14px; font-family: var(--font-body); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.quote.warm { background: linear-gradient(135deg, rgba(255,107,107,.18), rgba(255,138,43,.08)); }
.quote.cool { background: linear-gradient(135deg, rgba(65,214,255,.14), rgba(139,108,255,.1)); }

/* ---------- hero ---------- */
.hero { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; position: relative; overflow: hidden; padding: 60px 0 72px; }
.hero-bg { position: absolute; inset: 0; background: url("assets/img/music-bg.webp") center/cover no-repeat; opacity: .22; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
#viz { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; z-index: 1; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 1000px; margin: 0 auto; }
.hero .kicker { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hero .kicker em { font-style: normal; padding: 4px 10px; border-radius: 999px; background: var(--grad-brand); color: #fff; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.hero .h1 { margin-top: 26px; }
.hero .h1 .line { display: block; }
.hero .h1 .line.shimmer {
  background: linear-gradient(100deg, #fff 0%, var(--gold) 20%, var(--coral) 40%, var(--plum) 60%, var(--violet) 80%, var(--cyan) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }
.hero .lead { margin-inline: auto; margin-top: 24px; font-size: clamp(17px, 1.7vw, 22px); }
.hero .lead b { color: var(--ink); }
.play-wrap { margin: 42px auto 0; position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.play-wrap .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); animation: ring 2.6s ease-out infinite; }
.play-wrap .ring:nth-child(2) { animation-delay: .9s; }
.play-wrap .ring:nth-child(3) { animation-delay: 1.8s; }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.play {
  position: relative; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; color: #fff;
  background: var(--grad-brand); box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 30px 70px -20px rgba(255,107,107,.9);
  transition: transform .2s; transform: scale(calc(1 + var(--bass) * .12));
}
.play:hover { transform: scale(1.06); }
.play .ic { width: 38px; height: 38px; fill: currentColor; stroke: none; }
.play-label { margin-top: 14px; font-size: 13px; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.now-playing {
  position: relative; z-index: 3; margin: 36px auto 0; max-width: min(920px, calc(100% - 24px));
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 999px;
  background: rgba(13,11,29,.82); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
  backdrop-filter: blur(10px); box-shadow: 0 12px 40px -18px rgba(0,0,0,.75);
}
.now-playing > span { text-align: left; }
.now-playing .swap { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 700; font-size: 12px; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.now-playing .swap:hover { background: rgba(255,255,255,.16); }

/* morphing floating images */
.morph {
  position: absolute; object-fit: cover; opacity: .85; filter: saturate(1.1) contrast(1.05);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1);
  animation: morph 14s ease-in-out infinite alternate, floaty 9s ease-in-out infinite alternate;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}
@keyframes morph {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  33%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  66%  { border-radius: 50% 50% 40% 60% / 40% 60% 60% 40%; }
  100% { border-radius: 40% 60% 60% 40% / 70% 30% 50% 50%; }
}
@keyframes floaty { from { translate: 0 0; rotate: -2deg; } to { translate: 0 -22px; rotate: 2deg; } }
.m1 { width: clamp(150px, 20vw, 290px); height: clamp(190px, 26vw, 370px); left: 2%; top: 12%; animation-delay: 0s, -2s; }
.m2 { width: clamp(130px, 17vw, 250px); height: clamp(130px, 17vw, 250px); right: 4%; top: 10%; animation-delay: -5s, -4s; }
.m3 { width: clamp(140px, 18vw, 260px); height: clamp(180px, 24vw, 340px); right: 8%; bottom: 6%; animation-delay: -9s, -1s; }
.m4 { width: clamp(110px, 14vw, 200px); height: clamp(110px, 14vw, 200px); left: 9%; bottom: 10%; animation-delay: -3s, -6s; }
@media (max-width: 900px) { .m2, .m4 { display: none; } .m1 { left: -8%; top: 4%; opacity: .5; } .m3 { right: -8%; opacity: .5; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 22px 18px; border-radius: var(--radius-sm); background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: center; }
.stat .v { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-size: 13px; color: var(--ink-3); margin-top: 4px; font-weight: 600; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee.reverse .track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee .chip { font-size: 15px; padding: 10px 18px; white-space: nowrap; }

/* ---------- doors (home) ---------- */
.door { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.door .big { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
.door .arrow { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--line); transition: transform .3s, background .3s; }
.door:hover .arrow { transform: translate(4px, -4px); background: var(--ink); color: #15102b; }

/* ---------- gallery ---------- */
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery img { width: 100%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.gallery:hover img { transform: scale(1.03); }
.gallery .cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: rgba(13,11,29,.85); border-top: 1px solid var(--line); }
.gallery .cap .t { font-family: var(--font-display); font-weight: 800; font-size: clamp(14px, 1.4vw, 18px); }
.faces { display: flex; gap: -10px; }
.faces img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-0); margin-left: -14px; transition: transform .3s; }
.faces img:first-child { margin-left: 0; }
.faces img:hover { transform: translateY(-8px) scale(1.08); z-index: 2; }
.bgstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 700px) { .bgstrip { grid-template-columns: repeat(3, 1fr); } }
.bgstrip img { aspect-ratio: 9/16; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); transition: transform .4s; }
.bgstrip img:hover { transform: translateY(-6px) rotate(-1deg); }

/* ---------- features: subnav / pipeline / table ---------- */
.subnav { position: sticky; top: var(--nav-h); z-index: 30; padding: 10px 0; background: rgba(9, 7, 20, 0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subnav .inner { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subnav .inner::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-3); border: 1px solid transparent; }
.subnav a.active { color: var(--ink); background: rgba(255,255,255,.07); border-color: var(--line); }
#view-features .section[id] { scroll-margin-top: calc(var(--nav-h) + 60px); }
.cat-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-head .n { font-family: var(--font-display); font-size: clamp(44px, 6vw, 72px); font-weight: 700; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cat-head .h2 { margin-top: 0; }
.cat-head .lead { width: 100%; margin-top: 6px; }
.pipeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: step; }
@media (max-width: 1000px) { .pipeline { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
.step { position: relative; padding: 18px 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.step .ic { width: 24px; height: 24px; margin: 10px 0 8px; color: var(--cyan); }
.step b { display: block; font-size: 14px; }
.step small { color: var(--ink-3); font-size: 12px; line-height: 1.4; display: block; margin-top: 4px; }
.step::after { content: ""; position: absolute; right: -10px; top: 50%; width: 10px; height: 1px; background: var(--line-strong); }
.step:last-child::after { display: none; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.table th, .table td { text-align: left; padding: 14px 18px; font-size: 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); background: rgba(255,255,255,.03); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 700; }
.table td .chip { font-size: 12px; padding: 3px 9px; }
.table-wrap { overflow-x: auto; }
.honest { border-left: 4px solid var(--orange); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(255,138,43,.08); color: var(--ink-2); }
.honest b { color: var(--ink); }

/* ---------- benefits: persona toggle ---------- */
.persona {
  display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); position: relative; gap: 4px;
}
.persona button { position: relative; z-index: 1; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-2); display: inline-flex; gap: 10px; align-items: center; transition: color .25s; white-space: nowrap; }
.persona button .ic { width: 18px; height: 18px; }
.persona button.on { color: #fff; }
.persona .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 7px); border-radius: 999px; background: var(--grad-brand); transition: transform .35s cubic-bezier(.2,.7,.2,1); box-shadow: 0 10px 30px -10px rgba(255,107,107,.8); }
.persona[data-on="plan"] .thumb { transform: translateX(calc(100% + 4px)); }
.persona[data-on="plan"] .thumb { background: var(--grad-cool); box-shadow: 0 10px 30px -10px rgba(65,214,255,.8); }
[data-for] { display: none; }
body[data-persona="code"] [data-for="code"], body[data-persona="plan"] [data-for="plan"] { display: revert; }
body[data-persona="code"] .grid[data-for="code"], body[data-persona="plan"] .grid[data-for="plan"] { display: grid; }
body[data-persona="code"] .row[data-for="code"], body[data-persona="plan"] .row[data-for="plan"] { display: flex; }
.persona-pane { animation: viewIn .5s both; }

/* comparison bars */
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr auto; gap: 14px; align-items: center; font-size: 14px; }
@media (max-width: 600px) { .bar { grid-template-columns: 1fr auto; } .bar .t { grid-column: 1 / -1; } }
.bar .n { font-weight: 700; color: var(--ink-2); }
.bar .t { display: block; height: 14px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar .f { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-warm); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.bar.win .f { background: var(--grad-cool); }
.bar .p { text-align: right; font-weight: 800; font-family: var(--font-display); white-space: nowrap; }
.bar.win .p { color: var(--cyan); }

/* price cards */
.price { text-align: left; }
.price .amt { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4vw, 52px); line-height: 1; margin: 10px 0 4px; }
.price .amt small { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-3); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.price.featured { background: linear-gradient(160deg, rgba(139,108,255,.22), rgba(255,107,107,.1)); border-color: rgba(255,255,255,.25); }
.price .tag { position: absolute; top: 18px; right: 18px; }

/* tabs (wow list) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); background: rgba(255,255,255,.05); border: 1px solid var(--line); display: inline-flex; gap: 8px; align-items: center; transition: all .25s; }
.tabs button .ic { width: 16px; height: 16px; }
.tabs button.on { background: var(--ink); color: #15102b; border-color: transparent; }
.panes > div { display: none; }
.panes > div.on { display: grid; animation: viewIn .45s both; }

/* ---------- real UI product shots (marketing crops) ---------- */
.ui-shot-section { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
.ui-shot-section .center .lead { margin-left: auto; margin-right: auto; }
.ui-shot {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  margin: clamp(36px, 5vw, 56px) auto 0;
  max-width: 920px;
  perspective: 1400px;
}
.ui-shot-glow {
  position: absolute; inset: 8% 4% 4%;
  border-radius: 40%;
  background:
    radial-gradient(ellipse 55% 45% at 30% 40%, rgba(65, 214, 255, 0.38), transparent 70%),
    radial-gradient(ellipse 50% 40% at 72% 55%, rgba(176, 90, 138, 0.42), transparent 72%),
    radial-gradient(ellipse 40% 35% at 50% 80%, rgba(255, 138, 43, 0.18), transparent 70%);
  filter: blur(36px);
  opacity: 0.9;
  pointer-events: none;
  animation: uiGlowPulse 7s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes uiGlowPulse {
  from { opacity: 0.72; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.04); }
}
.ui-shot-stage {
  position: relative; z-index: 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.ui-shot-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(190, 170, 255, 0.22);
  box-shadow:
    0 40px 90px -36px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    -18px 0 48px -28px rgba(65, 214, 255, 0.55),
    18px 0 48px -28px rgba(176, 90, 138, 0.55);
  background: #07060f;
}
.ui-shot-frame img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateZ(0);
}
.ui-shot-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(65, 214, 255, 0.12) 52%,
    transparent 65%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  mix-blend-mode: screen;
  opacity: 0;
}
.ui-shot.in .ui-shot-shine {
  animation: uiShine 1.6s cubic-bezier(.2,.7,.2,1) 0.35s both;
}
@keyframes uiShine {
  from { opacity: 0; background-position: 120% 0; }
  30% { opacity: 1; }
  to { opacity: 0.35; background-position: -40% 0; }
}
.ui-shot-floats {
  list-style: none; margin: 0; padding: 0;
  position: absolute; inset: 0; pointer-events: none;
}
.ui-shot-floats li {
  position: absolute;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(13, 11, 29, 0.82);
  border: 1px solid rgba(190, 170, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.7);
  animation: uiFloat 5.5s ease-in-out infinite alternate;
  opacity: 0;
  transform: translateY(10px) scale(0.94);
}
.ui-shot.in .ui-shot-floats li {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.ui-shot.in .ui-shot-floats .f1 { transition-delay: 0.45s; animation-delay: 0s; }
.ui-shot.in .ui-shot-floats .f2 { transition-delay: 0.55s; animation-delay: -1.2s; }
.ui-shot.in .ui-shot-floats .f3 { transition-delay: 0.65s; animation-delay: -2.4s; }
.ui-shot.in .ui-shot-floats .f4 { transition-delay: 0.75s; animation-delay: -3.6s; }
.ui-shot-floats .f1 { top: 14%; left: -2%; color: #ffd0c8; border-color: rgba(255, 107, 107, 0.45); }
.ui-shot-floats .f2 { top: 28%; right: -3%; color: #e4d6ff; border-color: rgba(139, 108, 255, 0.5); }
.ui-shot-floats .f3 { bottom: 26%; left: -4%; color: #b8f0ff; border-color: rgba(65, 214, 255, 0.5); }
.ui-shot-floats .f4 { bottom: 12%; right: -2%; color: #ffd9b0; border-color: rgba(255, 138, 43, 0.5); }
@keyframes uiFloat {
  from { translate: 0 0; }
  to { translate: 0 -10px; }
}
/* Glow color variants */
.ui-shot[data-glow="warm"] .ui-shot-glow {
  background:
    radial-gradient(ellipse 55% 45% at 28% 40%, rgba(255, 138, 43, 0.42), transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 55%, rgba(255, 107, 107, 0.38), transparent 72%),
    radial-gradient(ellipse 40% 35% at 50% 80%, rgba(255, 196, 107, 0.2), transparent 70%);
}
.ui-shot[data-glow="warm"] .ui-shot-frame {
  box-shadow:
    0 40px 90px -36px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    -18px 0 48px -28px rgba(255, 138, 43, 0.55),
    18px 0 48px -28px rgba(255, 107, 107, 0.5);
}
.ui-shot[data-glow="violet"] .ui-shot-glow {
  background:
    radial-gradient(ellipse 55% 45% at 30% 40%, rgba(139, 108, 255, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 40% at 72% 55%, rgba(176, 90, 138, 0.4), transparent 72%),
    radial-gradient(ellipse 40% 35% at 50% 80%, rgba(65, 214, 255, 0.16), transparent 70%);
}
.ui-shot[data-glow="violet"] .ui-shot-frame {
  box-shadow:
    0 40px 90px -36px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    -18px 0 48px -28px rgba(139, 108, 255, 0.6),
    18px 0 48px -28px rgba(176, 90, 138, 0.5);
}
.ui-shot[data-glow="gold"] .ui-shot-glow {
  background:
    radial-gradient(ellipse 55% 45% at 30% 40%, rgba(255, 196, 107, 0.4), transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 55%, rgba(255, 138, 43, 0.35), transparent 72%),
    radial-gradient(ellipse 40% 35% at 50% 80%, rgba(139, 108, 255, 0.18), transparent 70%);
}
.ui-shot[data-glow="gold"] .ui-shot-frame {
  box-shadow:
    0 40px 90px -36px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    -18px 0 48px -28px rgba(255, 196, 107, 0.55),
    18px 0 48px -28px rgba(255, 138, 43, 0.45);
}
.ui-shot[data-glow="cyan"] .ui-shot-glow {
  background:
    radial-gradient(ellipse 55% 45% at 30% 40%, rgba(65, 214, 255, 0.42), transparent 70%),
    radial-gradient(ellipse 50% 40% at 72% 55%, rgba(139, 108, 255, 0.32), transparent 72%),
    radial-gradient(ellipse 40% 35% at 50% 80%, rgba(65, 214, 255, 0.14), transparent 70%);
}
.ui-shot[data-glow="cyan"] .ui-shot-frame {
  box-shadow:
    0 40px 90px -36px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    -18px 0 48px -28px rgba(65, 214, 255, 0.6),
    18px 0 48px -28px rgba(139, 108, 255, 0.45);
}
/* Embedded under feature category heads */
.ui-shot-section.embed {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(12px, 2vw, 28px);
}
.ui-shot-section.embed .ui-shot { max-width: 860px; margin-top: clamp(24px, 3vw, 40px); }
@media (max-width: 720px) {
  .ui-shot-floats { display: none; }
  .ui-shot-stage { transform: none !important; }
}
@media (hover: hover) and (pointer: fine) {
  .ui-shot:hover .ui-shot-frame {
    box-shadow:
      0 48px 100px -32px rgba(0, 0, 0, 0.95),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      -22px 0 56px -24px rgba(65, 214, 255, 0.7),
      22px 0 56px -24px rgba(176, 90, 138, 0.7);
  }
  .ui-shot[data-glow="warm"]:hover .ui-shot-frame {
    box-shadow:
      0 48px 100px -32px rgba(0, 0, 0, 0.95),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      -22px 0 56px -24px rgba(255, 138, 43, 0.75),
      22px 0 56px -24px rgba(255, 107, 107, 0.65);
  }
  .ui-shot[data-glow="violet"]:hover .ui-shot-frame {
    box-shadow:
      0 48px 100px -32px rgba(0, 0, 0, 0.95),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      -22px 0 56px -24px rgba(139, 108, 255, 0.75),
      22px 0 56px -24px rgba(176, 90, 138, 0.65);
  }
  .ui-shot[data-glow="gold"]:hover .ui-shot-frame {
    box-shadow:
      0 48px 100px -32px rgba(0, 0, 0, 0.95),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      -22px 0 56px -24px rgba(255, 196, 107, 0.75),
      22px 0 56px -24px rgba(255, 138, 43, 0.6);
  }
  .ui-shot[data-glow="cyan"]:hover .ui-shot-frame {
    box-shadow:
      0 48px 100px -32px rgba(0, 0, 0, 0.95),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      -22px 0 56px -24px rgba(65, 214, 255, 0.75),
      22px 0 56px -24px rgba(139, 108, 255, 0.6);
  }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
/* keep tilt vars when ui-shot is revealed */
.ui-shot.reveal.in { transform: none; }

/* ---------- bottom offer / prices ---------- */
.offer-section {
  padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,18,51,0) 0%, rgba(22,18,51,.55) 18%, rgba(13,11,29,.9) 100%);
}
.offer-section .center .lead { margin-left: auto; margin-right: auto; }
.offer-grid { align-items: stretch; }
.offer-card {
  display: flex; flex-direction: column; gap: 0;
  min-height: 100%;
  padding-top: 32px;
}
.offer-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: #0b1c24; background: linear-gradient(120deg, var(--cyan), #8be7ff);
  box-shadow: 0 10px 28px -12px rgba(65,214,255,.8);
}
.offer-tag {
  position: absolute; top: 16px; right: 16px; z-index: 2;
}
.offer-soon { opacity: 0.92; }
.offer-soon .offer-cta[disabled] {
  opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none;
}
.offer-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 6px; letter-spacing: -0.015em;
}
.offer-sub { margin: 0 0 14px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.offer-amt {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.2vw, 52px); line-height: 1; margin: 4px 0 12px;
}
.offer-amt small {
  display: block; margin-top: 8px; font-size: 14px; color: var(--ink-3);
  font-family: var(--font-body); font-weight: 600; letter-spacing: 0;
}
.offer-or {
  margin: -4px 0 12px; font-size: 13px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.offer-body { margin: 0 0 22px; color: var(--ink-2); font-size: 15px; line-height: 1.55; flex: 1; }
.offer-actions {
  display: flex; flex-direction: column; gap: 10px; margin-top: auto;
}
.offer-actions .btn { justify-content: center; width: 100%; }
.offer-legend {
  margin: 14px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3);
}
.offer-personal {
  background: linear-gradient(160deg, rgba(255,107,107,.16), rgba(255,138,43,.06) 45%, rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.22);
}
.offer-commercial {
  background: linear-gradient(160deg, rgba(139,108,255,.16), rgba(176,90,138,.06) 45%, rgba(255,255,255,.03));
}
@media (max-width: 1000px) {
  .offer-grid.grid.c3 { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* ---------- footer ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.footer-stack { display: flex; flex-direction: column; gap: 18px; }
.footer-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-logo { height: 44px; width: auto; border-radius: 12px; opacity: .95; }
.footer-blurb { margin: 0; color: var(--ink-2); font-weight: 600; line-height: 1.45; max-width: 52rem; }
.footer-license {
  margin: 0; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
  font-size: 13px; line-height: 1.5; color: var(--ink-3); max-width: 56rem;
}
.footer-license-link {
  color: var(--cyan); font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; padding: 0; background: none; border: 0; cursor: pointer;
}
.footer-license-link:hover { color: var(--ink); }

/* ---------- license modal ---------- */
.license-modal {
  border: 0; padding: 0; max-width: min(720px, calc(100vw - 32px));
  width: 100%; background: transparent; color: var(--ink);
}
.license-modal::backdrop { background: rgba(4, 3, 12, 0.78); backdrop-filter: blur(8px); }
.license-modal-panel {
  background: linear-gradient(180deg, #141025 0%, #0c0a18 100%);
  border: 1px solid var(--line-strong); border-radius: 22px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9);
  overflow: hidden; display: flex; flex-direction: column; max-height: min(84vh, 900px);
}
.license-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 14px; border-bottom: 1px solid var(--line);
}
.license-modal-head h2 {
  font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; margin: 0; text-wrap: balance;
}
.license-modal-close {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--ink-2); background: rgba(255,255,255,.04); border: 1px solid var(--line); flex: none;
}
.license-modal-close:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.license-modal-body {
  padding: 8px 24px 20px; overflow: auto; font-size: 14.5px; line-height: 1.65; color: var(--ink-2);
}
.license-modal-body h3 {
  margin: 22px 0 10px; font-size: 15px; letter-spacing: .02em; color: var(--ink);
}
.license-intro { margin: 12px 0 0; }
.license-modal-body ul { margin: 10px 0 0; padding-left: 1.15rem; list-style: disc; }
.license-modal-body li { margin: 0 0 8px; padding-left: 2px; }
.license-modal-body p { margin: 0 0 10px; }
.license-gov { margin-top: 16px !important; font-size: 12.5px; color: var(--ink-3); }
.license-modal-foot {
  padding: 14px 24px 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end;
}

/* ---------- caricatures ("toons") ---------- */
/* Target size: ~200–300px so they read as part of the page, not tiny icons. */
.toon { object-fit: cover; display: block; box-shadow: 0 30px 70px -28px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1); filter: saturate(1.08); }
/* poster across the top of a card: softly morphing rounded rectangle */
.toon-top {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 200px;
  max-height: 300px;
  margin-bottom: 20px;
  animation: morphSoft 12s ease-in-out infinite alternate;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.card:hover .toon-top { transform: scale(1.03) rotate(-.6deg); }
.card.toon-row { display: grid; grid-template-columns: clamp(200px, 24vw, 280px) 1fr; gap: 28px; align-items: center; }
.toon-left { width: 100%; aspect-ratio: 1; min-width: 200px; max-width: 300px; animation: morph 14s ease-in-out infinite alternate; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card.toon-row:hover .toon-left { transform: scale(1.04) rotate(1deg); }
@media (max-width: 560px) { .card.toon-row { grid-template-columns: 1fr; } .toon-left { max-width: 260px; min-width: 200px; } }
@keyframes morphSoft {
  0%   { border-radius: 22px 34px 20px 40px / 30px 22px 38px 24px; }
  50%  { border-radius: 38px 20px 36px 22px / 22px 36px 20px 40px; }
  100% { border-radius: 26px 40px 24px 30px / 36px 24px 32px 22px; }
}
/* blob floating beside a section heading or a quote */
.toon-side {
  position: absolute; right: 0; top: -24px;
  width: clamp(200px, 22vw, 280px); height: clamp(200px, 22vw, 280px);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 14s ease-in-out infinite alternate, floaty 9s ease-in-out infinite alternate;
}
.cat-head.with-toon { position: relative; padding-right: clamp(220px, 26vw, 320px); min-height: 200px; }
.quote.with-toon { padding-right: clamp(240px, 28vw, 340px); min-height: 220px; }
.quote.with-toon .toon-side { top: 50%; translate: 0 -50%; right: clamp(16px, 3vw, 40px); animation: morph 14s ease-in-out infinite alternate; }
.card.with-toon { padding-right: clamp(230px, 26vw, 320px); min-height: 240px; }
.card.with-toon .toon-side {
  top: 50%; translate: 0 -50%; right: 24px;
  width: clamp(200px, 20vw, 260px); height: clamp(200px, 20vw, 260px);
  animation: morph 14s ease-in-out infinite alternate;
}
@media (max-width: 760px) {
  .cat-head.with-toon, .quote.with-toon, .card.with-toon { padding-right: inherit; min-height: 0; }
  .cat-head.with-toon .toon-side,
  .quote.with-toon .toon-side,
  .card.with-toon .toon-side {
    position: static; translate: none;
    width: clamp(200px, 55vw, 260px); height: clamp(200px, 55vw, 260px);
    margin: 0 0 18px;
    display: block;
  }
}

/* ---------- image-free stand-ins (single-file artifact build) ---------- */
.b1 { background: linear-gradient(135deg, #8b6cff, #ff6b6b); }
.b2 { background: linear-gradient(135deg, #41d6ff, #8b6cff); }
.b3 { background: linear-gradient(135deg, #ff8a2b, #b05a8a); }
.b4 { background: linear-gradient(135deg, #2b1a63, #41d6ff); }
.b5 { background: linear-gradient(135deg, #ffc46b, #ff6b6b); }
.b6 { background: linear-gradient(135deg, #b05a8a, #2b1a63); }
.b7 { background: linear-gradient(135deg, #41d6ff, #ffc46b); }
.b8 { background: linear-gradient(135deg, #ff6b6b, #8b6cff); }
.mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 18px; box-shadow: 0 0 0 1px var(--line); }
.morph.blob { display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: clamp(36px, 5vw, 72px); opacity: .7; }
.morph.blob::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 55%); }
.faces.avatars i { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--bg-0); margin-left: -14px; display: block; transition: transform .3s; }
.faces.avatars i:first-child { margin-left: 0; }
.faces.avatars i:hover { transform: translateY(-8px) scale(1.08); }
.covergrid .tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 14px; background: #0b0918; }
.covergrid .tiles span { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: end start; padding: 8px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.7); position: relative; overflow: hidden; }
.covergrid .tiles span::before { content: "♪"; position: absolute; right: 8px; top: 4px; font-size: 22px; opacity: .6; }
.covergrid .tiles span::after { content: ""; position: absolute; left: 50%; top: 42%; width: 34%; height: 34%; border-radius: 50%; translate: -50% -50%; background: radial-gradient(circle at 40% 35%, #fff, #ffd9c2 40%, #c58a6a 70%, transparent 71%); opacity: .9; }
.tiles-strip span { aspect-ratio: 9/16; border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: end start; padding: 10px; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.7); transition: transform .4s; }
.tiles-strip span:hover { transform: translateY(-6px) rotate(-1deg); }

/* ---------- misc ---------- */
.ticker { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: 13px; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--ink-2); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- use cases tab: one section per topic, image left/right ---------- */
.case-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.case-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--ink-2);
  background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: color .2s, background .2s, transform .15s;
}
.case-chip .ic { width: 16px; height: 16px; color: var(--accent); }
.case-chip:hover { color: var(--ink); background: color-mix(in srgb, var(--accent) 22%, transparent); transform: translateY(-1px); }

.case { position: relative; padding: clamp(48px, 7vw, 96px) 0; scroll-margin-top: var(--nav-h); }
.case::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at var(--glow-x, 25%) 50%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.case.flip { --glow-x: 75%; }
.case:nth-of-type(even) { background: linear-gradient(180deg, transparent, rgba(22,18,51,.55) 15%, rgba(22,18,51,.55) 85%, transparent); }
.case-row { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.case.flip .case-media { order: 2; }
.case-media {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 35%, var(--bg-2)), var(--bg-1) 75%);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent);
}
.case-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.case-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.case-kicker .ic { width: 18px; height: 18px; }
.case-kicker b { font-family: var(--font-display); color: var(--ink-3); letter-spacing: 0; }
.case-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin-top: 14px; }
.case-sub { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); margin-top: 14px; max-width: 560px; }
.case-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.case-list li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.case-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.case-list li b { color: var(--ink); font-weight: 700; }
.case-note { margin-top: 18px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink-2); background: rgba(255,255,255,.04); border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.case-note b { color: var(--ink); }
@media (max-width: 860px) {
  .case-row { grid-template-columns: 1fr; }
  .case .case-media, .case.flip .case-media { order: -1; max-width: 420px; width: 100%; margin: 0 auto; }
  .case::before { --glow-x: 50%; background: radial-gradient(80% 50% at 50% 25%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
}

/* ---------- floating ideas box: bottom left, 300px, grows upward ---------- */
.ideas { position: fixed; left: 16px; bottom: 16px; z-index: 40; width: min(300px, calc(100vw - 32px)); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; pointer-events: none; }
.ideas > * { pointer-events: auto; } /* the empty part of the 300px box never blocks the player */
.ideas-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 20px 0 16px;
  font-weight: 700; font-size: 14px; color: var(--ink); transition: transform .15s, background .2s;
}
.ideas-toggle .ic { width: 18px; height: 18px; color: var(--gold); }
.ideas-toggle:hover { transform: translateY(-2px); background: rgba(34, 27, 77, .95); }
.ideas.open .ideas-toggle { display: none; }
.ideas-panel {
  width: 100%; padding: 14px; border-radius: var(--radius); display: none;
  background: rgba(13, 11, 29, .96); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transform-origin: bottom left;
}
.ideas.open .ideas-panel { display: block; animation: ideasIn .32s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ideasIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.ideas-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.ideas-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: rgba(255,255,255,.06); }
.ideas-x:hover { color: var(--ink); background: rgba(255,255,255,.12); }
.ideas-x .ic { width: 14px; height: 14px; }
.ideas-card { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); border: 1px solid color-mix(in srgb, var(--accent, var(--violet)) 40%, transparent); }
.ideas-card .ic-img { display: block; height: 150px; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent, var(--violet)) 35%, var(--bg-2)), var(--bg-1) 80%); }
.ideas-card .ic-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.ideas-card .ic-txt { display: block; padding: 12px 14px 14px; }
.ideas-card .ic-k { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--accent, var(--violet)); }
.ideas-card .ic-t { display: block; margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--ink); }
.ideas-card .ic-s { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.ideas-nav { display: flex; align-items: center; justify-content: space-between; margin: 10px 0; }
.ideas-nav button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.ideas-nav button:hover { background: rgba(255,255,255,.16); }
.ideas-nav button .ic { width: 16px; height: 16px; }
#ideas-prev .ic { transform: scaleX(-1); }
.ideas-dots { display: flex; gap: 5px; }
.ideas-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: .45; transition: width .2s, opacity .2s; }
.ideas-dots i.on { width: 16px; border-radius: 3px; opacity: 1; background: var(--ink); }
.ideas-all { width: 100%; justify-content: center; }
body.menu-open .ideas { display: none; }
@media (prefers-reduced-motion: reduce) { .ideas.open .ideas-panel { animation: none; } }

/* ---------- one small player per use case (one song at a time, crossfade) ---------- */
.case-player {
  display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 10px 14px 10px 10px; max-width: 460px;
  border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.cp-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--accent); box-shadow: 0 10px 26px -10px var(--accent); transition: transform .15s;
}
.cp-btn:hover { transform: scale(1.06); }
.cp-btn .ic { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.cp-main { flex: 1; min-width: 0; }
.cp-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.cp-name { color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-time { color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }
.cp-bar { position: relative; height: 6px; margin-top: 8px; border-radius: 3px; background: rgba(255,255,255,.1); cursor: pointer; }
.cp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--accent); }
.case-player.soon { opacity: .55; }
.case-player.soon .cp-btn { background: rgba(255,255,255,.12); box-shadow: none; cursor: default; }
.case-player.soon .cp-bar { cursor: default; }
.case-player.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 40px -18px var(--accent); }
/* Phone: the ideas pill is a round button beside the player bar (rules last, so they win). */
@media (max-width: 640px) {
  .ideas-toggle { width: 56px; padding: 0; justify-content: center; }
  .ideas-toggle span { display: none; }
  .ideas-toggle .ic { width: 22px; height: 22px; }
  .ideas.open { bottom: 84px; } /* the open panel sits above the bottom row */
}

/* ---------- the big player: the bottom-right pill opens into the playlist ---------- */
.mini-open { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.mini-open:hover { background: rgba(255,255,255,.16); }
.mini-open .ic { width: 15px; height: 15px; }
.player.dock .track-name { cursor: pointer; }
.deck { display: none; }
.player.dock.open { z-index: 60; height: min(720px, calc(100vh - 32px)); padding: 0; border-radius: 26px; width: min(420px, calc(100vw - 32px)); overflow: hidden; }
.player.dock.open > :not(.deck) { display: none; }
.player.dock.open .deck { display: flex; flex-direction: column; width: 100%; height: 100%; }
.deck .ic.flip { transform: scaleX(-1); }
.deck-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.deck-now { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8ef0c6; min-width: 0; }
.deck-now .ic { width: 16px; height: 16px; }
.deck-now span { letter-spacing: 0; text-transform: none; color: var(--ink-3); white-space: nowrap; }
.deck-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.deck-icon:hover { background: rgba(255,255,255,.14); }
.deck-icon .ic { width: 15px; height: 15px; }
.deck-tools { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.deck-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.deck-chip .ic { width: 15px; height: 15px; }
.deck-chip[aria-pressed="true"] { background: rgba(142,240,198,.16); border-color: rgba(142,240,198,.45); color: #c9fbe4; }
.deck-seg { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.deck-seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.deck-seg button .ic { width: 13px; height: 13px; }
.deck-seg button.on { color: #c9fbe4; background: rgba(142,240,198,.16); }
.deck-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.deck-body > * { flex-shrink: 0; }
.deck-stage { flex: 1; }
.deck-foot { flex: none; border-top: 1px solid var(--line); }
.deck-stage { --vinyl: 196px; position: relative; display: grid; place-items: center; padding: 18px 0 8px; }
.vinyl { width: var(--vinyl); height: var(--vinyl); border-radius: 50%; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #111 0 2px, #1c1c1c 2px 4px); box-shadow: 0 18px 50px -18px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.06); }
.vinyl-label { width: 47%; height: 47%; border-radius: 50%; overflow: hidden; position: relative; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, var(--coral), var(--plum) 55%, var(--violet)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px; line-height: 1.1; padding: 8px; }
.vinyl-label img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vinyl-label::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #0b0a14; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.player.dock.is-on .vinyl { animation: vinylSpin 3.2s linear infinite; }
@keyframes vinylSpin { to { transform: rotate(360deg); } }
.tonearm { position: absolute; top: 14px; left: calc(50% + var(--vinyl) * .43); width: 6px; height: calc(var(--vinyl) * .61); border-radius: 3px; background: linear-gradient(#cfcfd6, #8b8b96); transform-origin: 50% 8px; transform: rotate(12deg); transition: transform .5s; }
.tonearm::before { content: ""; position: absolute; top: -8px; left: -9px; width: 24px; height: 24px; border-radius: 50%; background: #2b2a35; border: 4px solid #9a9aa6; }
.player.dock.is-on .tonearm { transform: rotate(22deg); }
.deck-stage[hidden], .deck-queue[hidden] { display: none; }
.deck-queue { padding: 8px 10px 4px; }
.deck-queue h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 10px 8px 6px; }
.deck-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 14px; text-align: left; color: var(--ink); }
.deck-row:hover { background: rgba(255,255,255,.05); }
.deck-row.on { background: rgba(142,240,198,.1); }
.deck-row .th { width: 40px; height: 40px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; background: radial-gradient(circle at 35% 30%, var(--coral), var(--plum) 55%, var(--violet)); }
.deck-row .th img { width: 100%; height: 100%; object-fit: cover; }
.deck-row .th span { font-size: 8px; line-height: 1.1; padding: 2px; text-align: center; overflow-wrap: anywhere; }
.deck-row .tx { min-width: 0; flex: 1; }
.deck-row .tx b, .deck-row .tx span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-row .tx b { font-size: 14px; }
.deck-row .tx span { font-size: 12px; color: var(--ink-3); }
.deck-row .eqs { display: none; width: 14px; height: 14px; color: #8ef0c6; }
.deck-row.on .eqs { display: block; }
.deck-meta { display: flex; align-items: center; gap: 14px; padding: 14px 18px 4px; }
.deck-play { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--violet); box-shadow: 0 12px 30px -10px var(--violet); }
.deck-play .ic { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.deck-info { min-width: 0; flex: 1; }
.deck-info b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-info > span { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-wave { display: flex; align-items: center; gap: 2px; height: 34px; margin-top: 8px; cursor: pointer; }
.deck-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: rgba(255,255,255,.16); }
.deck-wave i.on { background: var(--violet); }
.deck-times { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-top: 4px; }
.deck-upnext { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.deck-tag { flex: none; padding: 3px 10px; border-radius: 999px; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); }
.deck-nx { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-nx b { color: var(--ink); }
.deck-lyrics { border-top: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 100%, rgba(139,108,255,.16), transparent 70%); padding: 12px 18px 18px; }
.deck-lyrics-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.deck-lyrics-head .deck-seg { margin-left: 0; letter-spacing: 0; text-transform: none; }
.deck-lyr { margin-top: 14px; min-height: 120px; text-align: center; }
.deck-lyr.karaoke p { margin: 6px 0; font-size: 14px; color: var(--ink-3); transition: color .3s; }
.deck-lyr.karaoke p.cur { font-size: 18px; font-weight: 700; color: var(--ink-2); }
.deck-lyr.karaoke p.cur .w.on { color: #fff; text-shadow: 0 0 18px rgba(139,108,255,.6); }
.deck-lyr.all { max-height: 260px; overflow-y: auto; text-align: left; scroll-behavior: smooth; }
.deck-lyr.all p { margin: 0; padding: 5px 4px; font-size: 14px; color: var(--ink-3); }
.deck-lyr.all p.cur { color: #fff; font-weight: 700; }
.deck-lyr .note { color: var(--ink-3); font-size: 14px; padding-top: 30px; }
@media (max-width: 640px) {
  .player.dock.open { left: 2.5vw; right: 2.5vw; top: auto; bottom: 10px; width: auto; height: auto; max-height: calc(100dvh - 20px); border-radius: 26px; }
  .player.dock.open .deck { height: auto; max-height: calc(100dvh - 20px); }
  body.deck-open .ideas { display: none; }
  /* phone: the record gets the room. The bottom is one thin line: the sung line, and 2 small icons for karaoke or all words */
  .deck-stage { --vinyl: min(196px, 30dvh); padding: 12px 0 4px; }
  .deck-meta { padding: 10px 14px 2px; }
  .deck-upnext { display: none; }
  .deck-lyrics { display: flex; align-items: center; gap: 10px; padding: 8px 12px 12px 16px; }
  .deck-lyrics-head { order: 2; flex: none; }
  .deck-lyrics-head > span:first-child, .deck-lyrics-head .deck-seg button > span { display: none; }
  .deck-lyrics-head .deck-seg button { width: 32px; height: 28px; padding: 0; justify-content: center; }
  .deck-lyr { flex: 1; min-width: 0; margin-top: 0; min-height: 2.6em; text-align: left; display: flex; flex-direction: column; justify-content: center; }
  .deck-lyr.karaoke p.prev, .deck-lyr.karaoke p.next { display: none; }
  .deck-lyr.karaoke p.cur { font-size: 15px; margin: 0; line-height: 1.3; }
  .deck-lyr.all { display: block; max-height: 30dvh; }
  .deck-lyr .note { padding-top: 0; font-size: 13px; }
}
/* playlist open: the list scrolls in the middle; the foot keeps a compact player and the line being sung */
.deck.q .deck-meta { padding: 10px 14px 2px; gap: 12px; }
.deck.q .deck-play { width: 44px; height: 44px; }
.deck.q .deck-play .ic { width: 18px; height: 18px; }
.deck.q .deck-info b { font-size: 14px; }
.deck.q .deck-wave { height: 24px; margin-top: 4px; }
.deck.q .deck-upnext, .deck.q .deck-lyrics-head { display: none; }
.deck.q .deck-lyrics { padding: 6px 16px 12px; border-top: 0; }
.deck.q .deck-lyr { margin-top: 0; min-height: 0; }
.deck.q .deck-lyr.karaoke p.prev, .deck.q .deck-lyr.karaoke p.next { display: none; }
.deck.q .deck-lyr.karaoke p.cur { font-size: 15px; margin: 2px 0; }
.deck.q .deck-lyr.all { max-height: 72px; }
.deck.q .deck-lyr .note { padding-top: 4px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .player.dock.is-on .vinyl { animation: none; } }
