/* ==========================================================
   CASA SANTI — styles
   Brand colors live in :root. Change them here and the whole
   site follows.
   ========================================================== */
:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #121212;
  --line: #242424;
  --line-strong: #3d3d3d;
  --text: #f5f5f2;
  --muted: #a9a9a4;
  --dim: #7d7d78;
  --gold: #f5b90a;
  --gold-bright: #ffd04a;
  --gold-soft: rgba(245, 185, 10, 0.12);
  --gold-line: rgba(245, 185, 10, 0.45);
  --on-gold: #0a0a0a;
  --danger: #ff7a6b;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Cormorant", "Times New Roman", serif;

  /* Type scale: use these instead of new sizes */
  --fs-micro: 0.68rem;   /* badges, tags, tiny caps */
  --ls-micro: 0.2em;
  --fs-label: 0.72rem;   /* nav, chips, form labels, fine print */
  --ls-label: 0.22em;
  --fs-small: 0.85rem;   /* meta lines, hints, captions */
  --fs-body-sm: 0.95rem; /* card lists, secondary copy */
  --fs-h3: clamp(1.8rem, 3vw, 2.4rem);
  --fs-h3-lg: clamp(2.2rem, 4.4vw, 3.3rem);
  --gold-wash: var(--gold-wash);

  --radius: 3px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 11vw, 144px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 50;
  --z-player: 60;
  --z-progress: 70;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-player { padding-bottom: 92px; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--gold); color: var(--on-gold);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
  border-radius: var(--radius); z-index: 100;
  transition: top 0.15s ease-out;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
}
.display em, .section-title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  color: var(--gold);
  letter-spacing: -0.01em;
  padding-right: 0.04em;
}

.eyebrow {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.dim { color: var(--dim); }
.center { text-align: center; }

.section-title {
  font-size: clamp(2.6rem, 6.6vw, 5rem);
  margin-top: 16px;
  text-wrap: balance;
}
.section-title.sm { font-size: clamp(2rem, 4.4vw, 3.25rem); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 34em;
  margin-top: 24px;
}
.lead.narrow { max-width: 38em; }

.fineprint {
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 26px;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s var(--ease-out);
}
.btn .icon { transition: transform 0.2s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 44px; padding: 10px 20px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, transform 0.15s ease-out;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn-gold { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.icon-btn-gold:hover { background: var(--gold-bright); color: var(--on-gold); }

/* ---------- Sample-content chip ---------- */
.sample-chip {
  display: inline-block;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--ls-micro); text-transform: uppercase;
  color: var(--gold);
  border: 1px dashed var(--gold-line);
  padding: 4px 10px; border-radius: 99px;
  white-space: nowrap;
}
.sample-row { margin-top: 20px; }
.no-samples [data-sample], .no-samples .sample-row { display: none; }

/* ---------- Progress + header ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: var(--z-progress);
  pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
}

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease-out;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-height: 44px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.wordmark {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.42em; text-transform: uppercase; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.nav a:not(.btn) {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase;
  text-decoration: none; color: var(--muted);
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}
.nav a:not(.btn):hover, .nav a.active, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none; width: 44px; height: 44px; place-items: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 10vw, 128px);
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  background:
    radial-gradient(60% 55% at 78% 38%, var(--gold-wash), transparent 70%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center; gap: clamp(24px, 5vw, 72px);
}
.hero-title { font-size: clamp(3.6rem, 10.5vw, 8.5rem); margin-top: 20px; }
.hero-title em { display: inline-block; }

.ticks { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; }
.ticks li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--muted);
}
.ticks .icon { color: var(--gold); }
.ticks.stacked { flex-direction: column; gap: 14px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-mark { position: relative; display: grid; place-items: center; }
.hero-mark img {
  position: relative; width: min(100%, 400px);
  mix-blend-mode: screen;
  animation: float 7s ease-in-out infinite;
}
.halo-glow {
  position: absolute; left: 50%; top: 22%;
  width: 70%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(245, 185, 10, 0.32), transparent);
  filter: blur(18px);
  animation: glow 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes glow { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ---------- Two ways in ---------- */
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.path-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: clamp(24px, 3.6vw, 44px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.25s ease-out, transform 0.3s var(--ease-out);
}
.path-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.path-card p:not(.path-num) { color: var(--muted); }
.path-card-gold {
  border-color: var(--gold-line);
  background: linear-gradient(160deg, var(--gold-wash), var(--surface) 55%);
}
.path-card-gold:hover { border-color: var(--gold); }
.path-num {
  font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--gold);
}
.path-title { font-size: var(--fs-h3-lg); }
.path-prices {
  display: flex; gap: 40px; width: 100%;
  padding-block: 20px; border-block: 1px solid var(--line);
  margin-top: auto;
}
.path-prices dt { font-size: var(--fs-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--dim); font-weight: 600; }
.path-prices dd {
  font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.path-prices small { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; color: var(--muted); margin-left: 4px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.photo-frame {
  aspect-ratio: 4 / 5; display: grid; place-content: center; justify-items: center; gap: 14px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.025) 14px 15px),
    var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--dim); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: 600;
}
.photo-frame img { width: 96px; height: 96px; border-radius: 50%; opacity: 0.9; }
.photo-frame.has-photo { display: block; overflow: hidden; padding: 0; background: var(--bg); }
.photo-frame.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.stats dd {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats dt { font-size: var(--fs-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--dim); font-weight: 600; margin-top: 6px; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.prose { margin-top: 28px; display: grid; gap: 18px; color: var(--muted); max-width: 36em; font-size: 1.05rem; }
.prose p:last-child { color: var(--text); font-weight: 600; }

/* ---------- Credits + quotes ---------- */
.marquee {
  margin-top: 40px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 16px; padding: 6px 16px 6px 0; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.credit {
  width: 240px; flex: none; display: flex; flex-direction: column; align-items: flex-start;
  padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.credit-avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--gold);
}
.credit-avatar { position: relative; overflow: hidden; }
.credit-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.credit-avatar.has-image { color: transparent; }
.credit-name { font-weight: 700; margin-top: 16px; }
.credit-detail { min-height: 1.5em; color: var(--dim); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.credit a {
  display: inline-block; margin-top: 12px; font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--gold); text-decoration: none;
}
.credit a:hover { text-decoration: underline; }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.quote {
  padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 20px;
}
.quote blockquote {
  margin: 0; font-family: var(--font-accent); font-style: italic; font-weight: 500;
  font-size: 1.35rem; line-height: 1.35; color: var(--text);
}
.quote footer { margin-top: auto; font-size: var(--fs-small); }
.quote footer strong { display: block; }
.quote footer span { color: var(--dim); font-size: var(--fs-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; font-weight: 600; }

/* ---------- Problem ---------- */
.versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: stretch; margin-top: 48px; }
.versus-card {
  padding: clamp(24px, 3.4vw, 40px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 24px;
}
.versus-card-gold { border-color: var(--gold-line); background: linear-gradient(200deg, var(--gold-wash), var(--surface) 60%); }
.versus-list { display: grid; gap: 20px; }
.versus-list strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.versus-list span { color: var(--muted); font-size: var(--fs-body-sm); }
.versus-title { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.versus-arrow { display: grid; place-items: center; color: var(--gold); }
.versus-arrow .icon { width: 28px; height: 28px; }
.versus-foot {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: auto; padding: 14px 16px; border-radius: var(--radius);
  font-size: var(--fs-body-sm); font-weight: 600;
}
.versus-foot .icon { margin-top: 3px; }
.versus-foot.bad { background: rgba(255, 122, 107, 0.08); border: 1px solid rgba(255, 122, 107, 0.35); color: var(--danger); }
.versus-foot.good { background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--text); }
.versus-foot.good .icon { color: var(--gold); }

.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); }
.checklist .icon { color: var(--gold); margin-top: 4px; }

/* ---------- Beats ---------- */
.beat-list { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.beat {
  display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) 200px;
  align-items: center; gap: 12px 20px;
  padding: 14px clamp(14px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease-out;
}
.beat:last-child { border-bottom: 0; }
.beat:hover { background: var(--surface-2); }
.beat.is-current { background: var(--gold-soft); }
.track .icon-play, .player .icon-play { display: block; }
.track .icon-pause, .player .icon-pause { display: none; }
.track.is-playing .icon-play, .player.is-playing .icon-play { display: none; }
.track.is-playing .icon-pause, .player.is-playing .icon-pause { display: block; }
.track.is-current .beat-play { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* Home page previews: listen-only cards */
.preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.preview {
  display: flex; align-items: center; gap: 16px; min-width: 0;
  padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s ease-out, background-color 0.2s ease-out;
}
.preview:hover { border-color: var(--line-strong); }
.preview.is-current { border-color: var(--gold-line); background: var(--gold-soft); }
.preview .beat-info { min-width: 0; }
.section-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  margin-top: 16px; padding: 24px clamp(20px, 3vw, 32px);
  border: 1px solid var(--gold-line); border-radius: var(--radius);
  background: linear-gradient(100deg, var(--gold-wash), var(--surface) 60%);
}
.section-cta p { color: var(--muted); max-width: 34em; }
.section-cta strong { color: var(--gold); font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; margin-right: 4px; font-variant-numeric: tabular-nums; }

/* Beat Room page */
.page-head {
  padding-block: clamp(48px, 7vw, 96px) 0;
  background: radial-gradient(720px 440px at 85% 0%, var(--gold-wash), transparent 70%) no-repeat;
}
.page-title { font-size: clamp(3.4rem, 9vw, 7rem); margin-top: 16px; }
.catalog { padding-block: 40px var(--section); }
.toolbar { display: grid; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  min-height: 44px; padding: 8px 18px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 99px;
  font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip-count { color: var(--dim); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.chip[aria-pressed="true"] .chip-count { color: rgba(10, 10, 10, 0.7); }
.toolbar-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.toolbar .search { flex: 1 1 260px; max-width: 440px; }
.toolbar .sort { flex: 0 1 240px; }
.result-count {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.catalog .beat-list { margin-top: 16px; }
.beat-list[hidden] { display: none; }
.empty {
  margin-top: 16px; padding: 64px 24px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  display: grid; justify-items: center; gap: 12px;
}
.empty[hidden] { display: none; }
.empty-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.empty p:not(.display) { color: var(--muted); }
.empty .btn { margin-top: 12px; }
.beat-sold {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--ls-micro); text-transform: uppercase;
  color: var(--dim); white-space: nowrap;
}
.is-sold .beat-title { color: var(--muted); }
.sold-badge {
  display: inline-block; vertical-align: 2px; margin-left: 10px; padding: 3px 8px;
  border: 1px solid var(--gold-line); border-radius: 99px; background: var(--gold-soft);
  font-size: var(--fs-micro); font-weight: 800; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--gold);
}

.text-link { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--gold-bright); }
.terms-row { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 20px; min-height: 44px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Thank-you page */
.thanks { padding-bottom: var(--section); min-height: calc(100svh - var(--header-h)); }
.next-steps { display: grid; gap: 28px; margin-top: 48px; max-width: 720px; }
.next-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.next-steps .step-num { font-size: 3rem; line-height: 0.9; min-width: 1.3em; }
.next-steps h2 { font-size: var(--fs-h3); }
.next-steps p { color: var(--muted); margin-top: 8px; }
.thanks .cta-row { margin-top: 48px; }

/* License terms page */
.legal { padding-block: 48px var(--section); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.terms-table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; }
.terms-table th, .terms-table td { padding: 18px clamp(14px, 2.4vw, 28px); border-bottom: 1px solid var(--line); vertical-align: middle; }
.terms-table tbody tr:last-child th, .terms-table tbody tr:last-child td { border-bottom: 0; }
.terms-table thead th {
  font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--muted);
}
.terms-table thead th b {
  display: block; margin-top: 6px; font-family: var(--font-display); font-size: 2.4rem; line-height: 1;
  letter-spacing: 0; color: var(--text); font-variant-numeric: tabular-nums;
}
.terms-table thead th.gold, .terms-table thead th.gold b { color: var(--gold); }
.terms-table tbody th { font-weight: 600; color: var(--muted); width: 30%; }
.terms-table td { font-variant-numeric: tabular-nums; }
.terms-table td .icon { vertical-align: -3px; margin-right: 8px; color: var(--gold); }
.terms-table td .icon:has(use[href="#i-x"]) { color: var(--dim); }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.legal-grid article { padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.legal-grid h2 { font-size: var(--fs-h3); margin-bottom: 20px; }
.legal-grid p { color: var(--muted); }
.checklist.cross .icon { color: var(--danger); }
/* Privacy and terms pages */
.prose-page h2 { font-size: var(--fs-h3); margin-top: 48px; }
.prose-page h2:first-child { margin-top: 0; }
.prose-page p, .prose-page ul { color: var(--muted); margin-top: 14px; max-width: 42em; }
.prose-page ul { display: grid; gap: 14px; padding-left: 20px; list-style: disc; }
.prose-page li::marker { color: var(--gold); }
.prose-page strong { color: var(--text); }

/* 404 page */
.notfound { padding-bottom: var(--section); min-height: calc(100svh - var(--header-h)); }

/* Spam trap field: off-screen for people, still in the form for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer-legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-legal a { display: inline-block; padding: 14px 0; }
.licensing .license-grid { margin-top: 40px; }
.downsell.wide { max-width: none; margin-top: 48px; border-color: var(--gold-line); }
.beat-title { font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beat-meta { color: var(--dim); font-size: var(--fs-small); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.beat-error { color: var(--danger); font-size: var(--fs-small); }
.beat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--ls-micro); text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 99px; padding: 4px 10px;
}
.tag-nostems { color: var(--gold); border-color: var(--gold-line); }
.beat-actions { display: flex; gap: 8px; justify-content: flex-end; }
.beat-buy {
  min-height: 44px; padding: 8px 14px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--muted);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color 0.2s ease-out, color 0.2s ease-out, background-color 0.2s ease-out;
}
.beat-buy b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.beat-buy:hover { border-color: var(--gold); color: var(--gold); }
.beat-buy.gold { border-color: var(--gold-line); }
.beat-buy.gold b { color: var(--gold); }
.beat-empty { margin-top: 32px; color: var(--muted); }

.license-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.license-card {
  padding: clamp(24px, 3vw, 36px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.license-card-gold { border-color: var(--gold-line); }
.price { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; margin-top: 12px; font-variant-numeric: tabular-nums; }
.license-sub { color: var(--muted); margin: 10px 0 24px; }
.license-note { margin-top: 20px; color: var(--dim); font-size: var(--fs-small); line-height: 1.7; }
.license-note .tag { display: inline-block; padding: 2px 8px; vertical-align: 1px; }

/* ---------- Service rooms ---------- */
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.room {
  padding: clamp(24px, 3vw, 36px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.25s ease-out, transform 0.3s var(--ease-out);
}
.room:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.room > p:not(.path-num) { color: var(--muted); }
.room-icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid var(--gold-line); border-radius: 50%; color: var(--gold); background: var(--gold-soft);
}
.room-icon .icon { width: 24px; height: 24px; }
.room-title { font-size: var(--fs-h3); }
.room .checklist { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-body-sm); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; counter-reset: step; }
.step { padding-top: 24px; border-top: 2px solid var(--gold); }
.step-num { font-size: clamp(3.4rem, 7vw, 5.4rem); color: transparent; -webkit-text-stroke: 1px var(--gold); display: block; }
.step-title { font-size: var(--fs-h3); margin-top: 12px; }
.step p { color: var(--muted); margin-top: 10px; max-width: 26em; }

/* ---------- Pricing ---------- */
.pricing .section-title { margin-inline: auto; }
.plan {
  max-width: 820px; margin: 48px auto 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--gold-line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--gold-wash), var(--surface) 45%);
  box-shadow: 0 0 80px -30px rgba(245, 185, 10, 0.45);
}
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.plan-name { font-size: var(--fs-h3-lg); }
.plan-sub { color: var(--muted); max-width: 26em; margin-top: 10px; }
.plan-price { white-space: nowrap; }
.plan-price .display { font-size: clamp(3.4rem, 7vw, 5rem); color: var(--gold); font-variant-numeric: tabular-nums; }
.plan-price small { color: var(--muted); font-weight: 600; margin-left: 6px; letter-spacing: 0.1em; }
.plan-list { margin: 32px 0; padding-top: 28px; border-top: 1px solid var(--line); }
.plan .fineprint .sample-chip { margin-left: 8px; }

.downsell {
  max-width: 820px; margin: 20px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 24px clamp(20px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.downsell p:not(.eyebrow) { color: var(--muted); max-width: 34em; margin-top: 8px; }
.downsell strong { color: var(--text); }

/* ---------- Who ---------- */
.who .section-title { max-width: 14em; margin-inline: auto; }
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.who-card {
  text-align: center; padding: 36px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.who-check {
  width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--gold-line); color: var(--gold); background: var(--gold-soft);
}
.who-card h3 { font-size: var(--fs-h3); margin-top: 20px; }
.who-card p { color: var(--muted); margin-top: 8px; }

/* ---------- Apply ---------- */
.apply { background: radial-gradient(70% 60% at 20% 30%, var(--gold-wash), transparent 70%); }
.apply-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.apply-copy .ticks { margin-top: 32px; }

.form {
  display: grid; gap: 20px;
  padding: clamp(20px, 3.4vw, 40px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--muted); }
.req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23f5b90a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 44px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--dim); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: var(--fs-small); color: var(--dim); }
.error { font-size: var(--fs-small); color: var(--danger); font-weight: 600; }
.error:empty { display: none; }
.form-status { font-size: var(--fs-body-sm); color: var(--muted); min-height: 1.5em; }
.form-status.ok { color: var(--gold); font-weight: 600; }
.form-status.bad { color: var(--danger); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 64px; }
.footer-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-tag { font-family: var(--font-accent); font-style: italic; font-weight: 500; font-size: 1.4rem; color: var(--muted); margin-top: 20px; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}
.socials a:hover { color: var(--gold); border-color: var(--gold); }
.footer-nav { display: flex; gap: clamp(40px, 8vw, 96px); }
.footer-nav div { display: grid; gap: 4px; align-content: start; }
.footer-nav .eyebrow { margin-bottom: 10px; }
.footer-nav a { color: var(--muted); text-decoration: none; padding: 10px 0; transition: color 0.2s ease-out; }
.footer-nav a:hover { color: var(--gold); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-block: 12px; border-top: 1px solid var(--line);
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--dim);
}
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--gold); }

/* ---------- Sticky player ---------- */
.player {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-player);
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--gold-line);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out);
}
.player.is-open { transform: none; }
.player[hidden] { display: none; }
.player-inner {
  max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding: 12px var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr) auto; align-items: center; gap: 12px 24px;
}
.player-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-sub { color: var(--dim); font-size: var(--fs-small); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.player-controls { display: flex; align-items: center; gap: 8px; }
.player-seek { display: flex; align-items: center; gap: 12px; }
.player-time { font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.6em; }
.player-time:last-child { text-align: right; }

input[type="range"] {
  --fill: 0%;
  flex: 1; min-width: 0; height: 44px; margin: 0;
  appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) var(--fill), var(--line-strong) var(--fill));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--text); border: 0;
}
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .rooms, .quotes, .who-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .versus { grid-template-columns: 1fr; }
  .versus-arrow .icon { transform: rotate(90deg); }
  .about-grid, .apply-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; }
  .beat { grid-template-columns: auto minmax(0, 1fr) auto; }
  .beat-tags { display: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.8rem; }
  .nav .nav-cta { margin-top: 20px; min-height: 52px; }

  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-self: start; width: 150px; }
  .path-grid, .license-grid, .legal-grid { grid-template-columns: 1fr; }

  .player-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
  .player-seek { grid-column: 1 / -1; grid-row: 2; }
  body.has-player { padding-bottom: 128px; }
}

@media (max-width: 560px) {
  .wordmark { letter-spacing: 0.3em; font-size: 0.74rem; }
  .cta-row .btn, .section-cta .btn, .downsell .btn { width: 100%; }
  .preview-grid { grid-template-columns: 1fr; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .chips::-webkit-scrollbar { display: none; }
  .toolbar .search, .toolbar .sort { flex: 1 1 100%; max-width: none; }
  .terms-table { min-width: 0; font-size: 0.9rem; }
  .terms-table th, .terms-table td { padding: 14px 10px; }
  .terms-table thead th { letter-spacing: 0.14em; }
  .terms-table thead th b { font-size: 1.9rem; }
  .terms-table td .icon { margin-right: 4px; }
  .field-row { grid-template-columns: 1fr; }
  .beat { grid-template-columns: auto minmax(0, 1fr); }
  .beat-actions { grid-column: 1 / -1; }
  .beat-buy { flex: 1; flex-direction: row; gap: 8px; }
  .path-prices { gap: 28px; }
  .footer-nav { width: 100%; justify-content: space-between; }
  .player-controls .icon-btn:not(.icon-btn-gold) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ---------- Placements (embedded releases) ---------- */
.placements { margin-top: 56px; }
.placement-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.placements figure { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.placement-video figcaption { margin-top: 12px; color: var(--dim); font-size: var(--fs-small); }
.placement-video figcaption strong { color: var(--text); margin-right: 6px; }
.placement-tracks { display: grid; gap: 16px; }
.placement-tracks iframe { display: block; width: 100%; border: 0; border-radius: 12px; background: var(--surface); }

/* ---------- Deals ---------- */
.deal { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: 20px; font-weight: 600; font-size: var(--fs-body-sm); }
.deal[hidden] { display: none; }
.deal-badge {
  font-size: var(--fs-micro); font-weight: 800; letter-spacing: var(--ls-micro); text-transform: uppercase;
  background: var(--gold); color: var(--on-gold); border-radius: 99px; padding: 4px 10px;
}
.deal-banner { margin-top: 24px; padding: 12px 16px; border: 1px solid var(--gold-line); background: var(--gold-soft); border-radius: var(--radius); width: fit-content; max-width: 100%; }
.deal-banner .text-link { font-size: var(--fs-small); }

/* ---------- Pricing: lighter tiers ---------- */
.tier-eyebrow { margin-top: 64px; }
.tier-grid { max-width: 820px; margin: 20px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tier {
  padding: clamp(24px, 3vw, 32px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 16px;
}
.tier:first-child { border-color: var(--gold-line); }
.tier-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tier-name { font-size: var(--fs-h3); margin-top: 8px; }
.tier-price { font-size: clamp(2.2rem, 4vw, 2.8rem); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tier:first-child .tier-price { color: var(--gold); }
.tier-price small { font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--dim); font-weight: 600; }
.tier-sub { color: var(--muted); }
.tier-sub strong { color: var(--text); }
.tier .checklist { font-size: var(--fs-body-sm); }
.tier .deal { margin-top: 0; }
.tier .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; min-height: 44px; font-weight: 700; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--gold); transition: transform 0.25s var(--ease-out); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-item p { color: var(--muted); padding: 0 32px 24px 0; max-width: 40em; }

@media (max-width: 960px) {
  .placement-grid, .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .tier-grid { grid-template-columns: 1fr; }
}

/* ---------- Testimonials: avatar + 3/2 layout ---------- */
.quotes-eyebrow { margin-top: 64px; }
.quotes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.quote { grid-column: span 2; }
.quote:nth-child(4):nth-last-child(2), .quote:nth-child(5):last-child { grid-column: span 3; }
.quote footer { display: flex; align-items: center; gap: 12px; }
.quote-avatar { width: 44px; height: 44px; font-size: 1.1rem; flex: none; }
@media (max-width: 960px) {
  .quotes { grid-template-columns: 1fr; }
  .quote, .quote:nth-child(4):nth-last-child(2), .quote:nth-child(5):last-child { grid-column: auto; }
}

/* ---------- Residency page header + home closing band ---------- */
.residency-head .cta-row { margin-top: 32px; }
.closing { background: radial-gradient(60% 70% at 50% 100%, var(--gold-wash), transparent 70%); }
.closing-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing-inner .lead { margin-inline: auto; }
.closing-inner .cta-row { justify-content: center; margin-top: 32px; }
.residency-head { padding-bottom: clamp(56px, 8vw, 104px); }
.residency-head .hero-mark { max-width: 300px; justify-self: end; }
@media (max-width: 820px) { .residency-head .hero-mark { display: none; } }

/* ==========================================================
   Motion. Quick and quiet; all of it switches off for visitors
   who ask their device to reduce motion (see the rule above).
   ========================================================== */

/* 1. Entrance: headline, text and buttons rise in one after another; the halo fades up */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.js .hero-copy > *, .js .page-head:not(.residency-head) .wrap > * {
  animation: rise-in 0.8s var(--ease-out) both;
}
.js .hero-copy > :nth-child(2), .js .page-head .wrap > :nth-child(2) { animation-delay: 0.08s; }
.js .hero-copy > :nth-child(3), .js .page-head .wrap > :nth-child(3) { animation-delay: 0.16s; }
.js .hero-copy > :nth-child(4), .js .page-head .wrap > :nth-child(4) { animation-delay: 0.24s; }
.js .hero-copy > :nth-child(5), .js .page-head .wrap > :nth-child(5) { animation-delay: 0.32s; }
.js .hero-copy > :nth-child(n+6), .js .page-head .wrap > :nth-child(n+6) { animation-delay: 0.4s; }
.js .hero-mark { animation: fade-in 1.4s ease-out 0.2s backwards; }

/* 2. Now playing: small gold equalizer bars beside the playing beat's title */
.eq { display: none; align-items: flex-end; gap: 2px; height: 12px; margin-left: 8px; vertical-align: -1px; }
.eq i { display: block; width: 3px; height: 100%; background: var(--gold); border-radius: 1px; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.eq i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.1s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.track.is-playing .eq { display: inline-flex; }

/* 3. Hover: cards lift slightly and warm up their border */
.credit, .quote, .license-card, .who-card, .tier, .preview {
  transition: border-color 0.25s ease-out, transform 0.3s var(--ease-out), background-color 0.2s ease-out;
}
@media (hover: hover) {
  .credit:hover, .quote:hover, .license-card:hover, .who-card:hover, .tier:hover, .preview:hover {
    transform: translateY(-3px); border-color: var(--gold-line);
  }
  .beat:hover .beat-play, .preview:hover .beat-play { border-color: var(--gold); color: var(--gold); }
  .track.is-current:hover .beat-play { color: var(--on-gold); }
}

/* ---------- Scroll band: huge type that slides sideways as you scroll ---------- */
.scroll-band {
  overflow: hidden; border-top: 1px solid var(--line);
  padding-block: clamp(20px, 3vw, 36px);
}
.scroll-band + .section { border-top: 0; }
.scroll-band-track {
  display: flex; align-items: center; gap: 0.35em; width: max-content;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 0.9; letter-spacing: -0.005em;
  color: var(--text); white-space: nowrap; will-change: transform;
}
.band-outline { color: transparent; -webkit-text-stroke: 1px var(--gold); }
.band-dot { color: var(--gold); font-size: 0.35em; }

/* ---------- Halo depth: the hero logo drifts slower than the page ---------- */
.hero-mark { will-change: transform; }

/* ---------- Landing hand-off: the site slides up over the hero like a card ---------- */
.js .hero.hero-stack { position: sticky; top: var(--header-h); z-index: 0; }
.hero-stack > .wrap { transform-origin: 50% 30%; will-change: transform, opacity; }
.hero-stack + .section {
  position: relative; z-index: 1; background: var(--bg);
  border-top: 1px solid var(--line-strong);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -40px 80px -20px rgba(0, 0, 0, 0.9);
}
/* a thin gold glow on the card's top edge */
.hero-stack + .section::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
@media (prefers-reduced-motion: reduce) {
  .js .hero.hero-stack { position: relative; top: auto; }
}
