/* ═══════════════════════════════════════════════════════════
   ENVEL — Press kit landing
   Built on the BCAPITAL design system. Dark default.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Light tokens (used when [data-theme="light"]) */
  --bg: #f4f2ee;
  --bg-alt: #eae6df;
  --fg: #0a0a0a;
  --fg-2: #1a1a1a;
  --fg-3: #6b6b6b;
  --fg-4: #a8a8a8;
  --line: rgba(10,10,10,0.12);
  --line-2: rgba(10,10,10,0.06);

  /* Dark tokens (the actual default — [data-theme="dark"] flips below) */
  --accent: #f4f2ee;             /* mono accent — same as fg */
  --accent-2: oklch(0.55 0.18 25);

  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-2: cubic-bezier(.65,0,.35,1);

  --serif: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad-x: clamp(20px, 5vw, 80px);
  --anim-mult: 1;
  --max-w: 1600px;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #141414;
  --fg: #f4f2ee;
  --fg-2: #e5e2dc;
  --fg-3: #8a8a8a;
  --fg-4: #555;
  --line: rgba(244,242,238,0.12);
  --line-2: rgba(244,242,238,0.06);
}

/* Accent rotation */
[data-accent="mono"]  { --accent: var(--fg); }
[data-accent="cyan"]  { --accent: oklch(0.85 0.15 220); }
[data-accent="acid"]  { --accent: oklch(0.88 0.22 130); }
[data-accent="red"]   { --accent: oklch(0.62 0.22 25); }
[data-accent="steel"] { --accent: oklch(0.45 0.09 250); }  /* metallic dark blue */

/* Typeface variants */
[data-typeface="brutalist"] { --serif: 'Archivo Black', system-ui, sans-serif; }
[data-typeface="techno"]    { --serif: 'JetBrains Mono', monospace; }

/* Motion */
[data-motion="calm"]     { --anim-mult: 1.8; }
[data-motion="standard"] { --anim-mult: 1; }
[data-motion="hyper"]    { --anim-mult: 0.5; }

/* ─── Reset ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── PERF — limit scroll recalc to each section's bounds ───── */
section, .marquee, footer {
  contain: content;  /* layout + style + paint scoped per section */
  content-visibility: auto;  /* skip rendering off-screen sections entirely */
  contain-intrinsic-size: auto 600px;  /* estimate height to prevent scroll jumps */
}
/* Hero must NOT be skipped — it's above the fold and animates on load */
.hero { contain: none; content-visibility: visible; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; color: inherit; cursor: none; }
input[type=range] { cursor: none; }

/* ─── Typography helpers ─── */
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; }
.mono.small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.italic { font-style: italic; font-weight: 300; font-family: var(--serif); }

/* ─── Language visibility ─── */
[data-lang="en"] .lang-es { display: none !important; }
[data-lang="es"] .lang-en { display: none !important; }
[data-lang="en"] [data-en]::before { content: ''; }
[data-lang="es"] [data-es]::before { content: ''; }
/* For elements with data-en/data-es attributes — JS swaps innerText, no CSS needed. */

/* ─── Custom cursor ─── */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 32px; height: 32px;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s, background 0.2s;
}
.cursor-dot {
  width: 4px; height: 4px;
  background: #fff;
  border-radius: 50%;
}
.cursor.hover {
  width: 64px; height: 64px;
  background: #fff;
  mix-blend-mode: difference;
}
@media (max-width: 720px), (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  button, input[type=range] { cursor: auto; }
}

/* ═══════════════════════════════════════════════════════════
   LOADER
═══════════════════════════════════════════════════════════ */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: all;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.loader.gone {
  opacity: 0; transform: scale(1.04);
  pointer-events: none;
}
.loader-bg {
  position: absolute; inset: 0;
  background: #0a0a0a;
  z-index: -1;
}
.loader-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.loader-rings span {
  position: absolute;
  width: 120px; height: 120px;
  border: 1px solid rgba(244,242,238,0.4);
  border-radius: 50%;
  opacity: 0;
  animation: ringPulse 2.6s var(--ease) infinite;
}
.loader-rings span:nth-child(2) { animation-delay: 0.4s; }
.loader-rings span:nth-child(3) { animation-delay: 0.8s; }
.loader-rings span:nth-child(4) { animation-delay: 1.2s; }
@keyframes ringPulse {
  0%   { transform: scale(0.6); opacity: 0.7; }
  60%  { opacity: 0.15; }
  100% { transform: scale(3.2); opacity: 0; }
}
.loader-logo {
  position: relative; z-index: 2;
  width: 140px;
  filter: drop-shadow(0 0 32px rgba(244,242,238,0.15));
  animation: logoBreathe 2.4s var(--ease) infinite;
}
.loader-logo img { width: 100%; height: auto; }
@keyframes logoBreathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.96); opacity: 0.85; }
}
.loader-meta {
  position: absolute; bottom: 80px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--pad-x);
  color: #f4f2ee;
}
.loader-bar {
  position: absolute; bottom: 60px; left: var(--pad-x); right: var(--pad-x);
  height: 1px;
  background: rgba(244,242,238,0.12);
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: #f4f2ee;
  transition: width 0.2s linear;
}

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--pad-x);
  mix-blend-mode: difference;
  transition: padding 0.3s var(--ease);
  will-change: padding;  /* hint the compositor; nav repaints often */
}
/* Light mode: blend-mode + cream bg gives near-zero contrast.
   Drop blend mode and use a translucent backdrop so text stays legible. */
[data-theme="light"] .nav {
  mix-blend-mode: normal;
  background: rgba(244,242,238,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav.scrolled { padding: 12px var(--pad-x); }
.nav-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  color: #fff;
  max-width: var(--max-w); margin: 0 auto;
}
[data-theme="light"] .nav-inner { color: var(--fg); }
.nav-logo {
  height: 36px;
  display: flex; align-items: center;
  letter-spacing: 0.3em;
}
.nav-logo img { height: 100%; width: auto; filter: invert(0); }
[data-theme="light"] .nav-logo img { filter: invert(1); }

.nav-links {
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-tools { display: flex; gap: 10px; align-items: center; }
.nav-lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid currentColor; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  transition: all 0.3s var(--ease);
}
.nav-lang .lang-pill { opacity: 0.4; transition: opacity 0.3s; }
[data-lang="en"] .nav-lang [data-lang-toggle="en"] { opacity: 1; }
[data-lang="es"] .nav-lang [data-lang-toggle="es"] { opacity: 1; }
.nav-lang .lang-sep { opacity: 0.4; }

.nav-theme {
  width: 38px; height: 38px;
  border: 1px solid currentColor; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.4s var(--ease);
}
.nav-theme:hover { background: currentColor; color: #000; }
[data-theme="light"] .nav-theme:hover { color: #fff; }
.theme-icon { transition: opacity 0.3s, transform 0.3s; position: absolute; }
[data-theme="dark"] .theme-icon-sun  { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .theme-icon-moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .theme-icon-sun  { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .theme-icon-moon { opacity: 1; transform: rotate(0); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  border: 1px solid var(--fg);
  touch-action: manipulation;  /* kill 300ms tap delay + double-tap zoom on btns */
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { padding: 11px 18px; font-size: 11px; }
.btn svg { transition: transform 0.3s var(--ease); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); }
/* Hover styles only on real hover devices — prevents iOS/Android phantom
   hover where the first tap is consumed showing the hover state. */
@media (hover: hover) {
  .btn:hover svg { transform: translateX(4px); }
  .btn-primary:hover { transform: translateY(-2px); }
  .btn-ghost:hover { background: var(--fg); color: var(--bg); }
}
/* Touch devices: tap-and-hold gives an immediate visual press */
@media (hover: none) {
  .btn:active { transform: scale(0.97); transition: transform 0.1s; }
  .btn-ghost:active { background: var(--fg); color: var(--bg); }
}
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* Reveal animations */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  padding: 140px var(--pad-x) 80px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero-meta {
  position: absolute; top: 100px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  color: var(--fg-2);
  z-index: 3;
}
[data-theme="light"] .hero-meta {
  background: rgba(244,242,238,0.7);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero-meta-l { left: var(--pad-x); }
.hero-meta-r { right: var(--pad-x); }
.meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.8); } }

.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: contrast(1.05) saturate(0.9);
  transition: opacity 0.6s var(--ease);
  transform: translateZ(0);  /* force GPU layer — keeps video off the main thread during scroll */
}
[data-theme="light"] .hero-video {
  opacity: 0.55;
  mix-blend-mode: multiply;
  filter: contrast(1.05) saturate(0.85);
}
.hero-wave-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0.18;
  mix-blend-mode: screen;
}
[data-theme="light"] .hero-wave-fallback { mix-blend-mode: multiply; opacity: 0.12; }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 45%, var(--bg) 100%),
    linear-gradient(to bottom, transparent 0%, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}
[data-theme="light"] .hero-vignette {
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 55%, color-mix(in oklch, var(--bg) 70%, transparent) 100%),
    linear-gradient(to bottom, transparent 0%, transparent 75%, color-mix(in oklch, var(--bg) 80%, transparent) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); width: 100%; margin: 0 auto;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  color: var(--fg-2); margin-bottom: 32px;
}
[data-theme="light"] .hero-eyebrow {
  display: inline-flex;
  background: rgba(244,242,238,0.75);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.eyebrow-line { width: 40px; height: 1px; background: currentColor; }

.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 11vw, 180px);
  line-height: 0.92; letter-spacing: -0.03em;
  margin-bottom: 60px;
}
.hero-line { display: block; }
.hero-word {
  display: inline-block; opacity: 0; transform: translateY(100%);
  animation: wordIn calc(0.9s * var(--anim-mult)) var(--ease) forwards;
  animation-delay: calc(var(--delay, 0) * 80ms + 200ms);
  margin-right: 0.25em;
}
.hero-word[data-delay="0"] { --delay: 0; }
.hero-word[data-delay="1"] { --delay: 1; }
.hero-word[data-delay="2"] { --delay: 2; }
.hero-word[data-delay="3"] { --delay: 3; }
.hero-word[data-delay="4"] { --delay: 4; }
.hero-word[data-delay="5"] { --delay: 5; }
.hero-word[data-delay="6"] { --delay: 6; }
.hero-word[data-delay="7"] { --delay: 7; }
.hero-word[data-delay="8"] { --delay: 8; }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }
.hero-word-accent { color: var(--accent); }
[data-accent="mono"] .hero-word-accent { color: var(--fg); }
.hero-word-italic { font-style: italic; font-weight: 300; }

.hero-footer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end;
  border-top: 1px solid var(--line); padding-top: 40px;
  opacity: 0; animation: fadeUp calc(1s * var(--anim-mult)) var(--ease) 1s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-sub { font-size: 17px; max-width: 520px; color: var(--fg-2); line-height: 1.5; position: relative; z-index: 3; }
.hero-sub strong { font-weight: 600; color: var(--fg); }
[data-theme="light"] .hero-footer {
  background: linear-gradient(to bottom, transparent, color-mix(in oklch, var(--bg) 88%, transparent) 50%);
  padding: 36px 0 0;
  margin: 0 calc(-1 * var(--pad-x));
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  border-top: none;
}
.hero-cta-group { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--fg-3);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--fg-3), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ═══════════════════════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════════════════════ */
.marquee {
  background: var(--fg); color: var(--bg);
  padding: 22px 0; overflow: hidden;
  border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg);
}
.marquee-track {
  display: flex; gap: 40px; white-space: nowrap;
  animation: marquee 50s linear infinite;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq-dot { opacity: 0.4; }

/* ═══════════════════════════════════════════════════════════
   SECTION HEADER (shared)
═══════════════════════════════════════════════════════════ */
.section-header {
  padding: 120px var(--pad-x) 60px;
  max-width: var(--max-w); margin: 0 auto;
}
.section-num {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 24px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 7vw, 120px);
  line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.section-sub { font-size: 17px; max-width: 560px; color: var(--fg-3); line-height: 1.55; }
.section-sub em { font-style: italic; color: var(--fg); }

/* ═══════════════════════════════════════════════════════════
   BIO
═══════════════════════════════════════════════════════════ */
.bio { padding-bottom: 80px; }
.bio-wrap {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
  border-top: 1px solid var(--line); padding-top: 48px;
}
.bio-portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  overflow: hidden;
}
.bio-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.bio-portrait:hover img { transform: scale(1.03); }
.bio-portrait-cap {
  position: absolute; bottom: 16px; left: 16px;
  padding: 6px 12px;
  background: rgba(10,10,10,0.6); color: #f4f2ee;
  backdrop-filter: blur(6px);
}

.bio-text { display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.bio-text p { font-size: 16px; line-height: 1.7; color: var(--fg-2); }
.bio-text p em { font-style: italic; color: var(--fg); }
.bio-text p strong { font-weight: 600; color: var(--fg); }
.bio-lede { font-size: 20px !important; line-height: 1.55 !important; color: var(--fg) !important; font-family: var(--serif); font-weight: 400; }

.bio-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.stats-grid {
  max-width: var(--max-w); margin: 80px auto 0; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 40px 24px 32px;
  border-right: 1px solid var(--line);
  min-height: 220px;
  display: flex; flex-direction: column; gap: 16px;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif); font-size: clamp(56px, 8vw, 110px);
  font-weight: 400; line-height: 1; letter-spacing: -0.03em;
  color: var(--fg);
}
.stat-plus { font-style: italic; color: var(--fg-3); font-size: 0.6em; }
.stat-label {
  color: var(--fg-3);
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ═══════════════════════════════════════════════════════════
   MUSIC
═══════════════════════════════════════════════════════════ */
.music { padding-bottom: 120px; }
.music-tabs {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.music-tab {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  text-align: left;
  transition: background 0.3s, color 0.3s;
  position: relative;
}
.music-tab:last-child { border-right: none; }
.music-tab .mono { color: var(--fg-3); transition: color 0.3s; }
.music-tab.active { background: var(--fg); color: var(--bg); }
.music-tab.active .mono { color: var(--bg); opacity: 0.7; }
.music-tab:hover:not(.active) { background: var(--bg-alt); }
.music-tab .tab-meta {
  font-family: var(--serif); font-size: 18px; line-height: 1.2;
  margin-top: 4px;
}
.music-tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--fg);
}

.music-frames {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
}
.music-frame {
  display: none;
  padding-top: 40px;
}
.music-frame.active { display: block; animation: fadeIn 0.6s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.music-frame iframe {
  width: 100%; min-height: 400px; max-height: 540px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  display: block;
}

/* YouTube card (in place of broken channel iframe) */
.yt-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 540px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.yt-card-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.4s var(--ease), transform 1.2s var(--ease);
}
.yt-card:hover .yt-card-bg { opacity: 0.85; transform: scale(1.04); }
.yt-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.25) 60%, rgba(10,10,10,0.85) 100%);
}
.yt-card-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 36px 32px;
  color: #f4f2ee;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 2;
}
.yt-card-eyebrow { color: rgba(244,242,238,0.7); }
.yt-card-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.03em;
  margin-top: 4px;
}
.yt-card-sub {
  font-size: 15px;
  color: rgba(244,242,238,0.78);
  max-width: 480px; line-height: 1.4;
}
.yt-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(244,242,238,0.95);
  color: #0a0a0a;
  border-radius: 999px;
  width: fit-content;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.yt-card:hover .yt-card-cta { transform: translateX(4px); }
.yt-card-arrow { font-family: var(--serif); font-size: 14px; }
.yt-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  transition: transform 0.4s var(--ease);
}
.yt-card:hover .yt-card-play { transform: translate(-50%, -50%) scale(1.08); }

.music-platforms {
  max-width: var(--max-w); margin: 60px auto 0; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.platform {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.3s, color 0.3s, padding 0.3s;
}
.platform:last-child { border-right: none; }
.platform:hover { background: var(--fg); color: var(--bg); padding-left: 32px; }
.platform-arrow {
  font-family: var(--serif); font-size: 24px; transition: transform 0.3s;
}
.platform:hover .platform-arrow { transform: translate(4px, -4px) rotate(0); }

/* ═══════════════════════════════════════════════════════════
   LIVE GALLERY (asymmetric)
═══════════════════════════════════════════════════════════ */
.live-section { padding-bottom: 120px; }
.gallery-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 220px 220px 220px;
  gap: 8px;
}
.gal {
  overflow: hidden; background: var(--bg-alt); position: relative;
  /* Reveal-from-side animation — odd cards slide in from left, even from right */
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}
.gal:nth-child(even) { transform: translateX(40px); }
.gal.in-view { opacity: 1; transform: translateX(0); }
.gal:nth-child(2).in-view,
.gal:nth-child(4).in-view,
.gal:nth-child(6).in-view { transform: translateX(0); }
.gal:nth-child(1) { transition-delay: 0s; }
.gal:nth-child(2) { transition-delay: 0.08s; }
.gal:nth-child(3) { transition-delay: 0.16s; }
.gal:nth-child(4) { transition-delay: 0.24s; }
.gal:nth-child(5) { transition-delay: 0.32s; }
.gal:nth-child(6) { transition-delay: 0.4s; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
@media (hover: hover) {
  .gal:hover img { transform: scale(1.06); }
}
.gal-1 { grid-column: span 3; grid-row: span 2; }
.gal-2 { grid-column: span 3; grid-row: span 1; }
.gal-3 { grid-column: span 2; grid-row: span 1; }
.gal-4 { grid-column: span 1; grid-row: span 1; }
.gal-5 { grid-column: span 4; grid-row: span 1; }
.gal-6 { grid-column: span 2; grid-row: span 1; }

/* ═══════════════════════════════════════════════════════════
   GALLERY DOWNLOAD ICON (used by live + press shots)
═══════════════════════════════════════════════════════════ */
.gal { position: relative; }
.gal-dl {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(244,242,238,0.92);
  color: #0a0a0a;
  border-radius: 50%;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s, color 0.2s;
  text-decoration: none;
}
.gal:hover .gal-dl,
.press-shots-grid figure:hover .gal-dl {
  opacity: 1;
  transform: translateY(0);
}
.gal-dl:hover { background: var(--fg); color: var(--bg); }
[data-theme="light"] .gal-dl { background: rgba(10,10,10,0.85); color: #f4f2ee; }
[data-theme="light"] .gal-dl:hover { background: var(--fg); color: var(--bg); }

@media (hover: none) {
  .gal-dl { opacity: 1; transform: none; }
}

.press-shots-grid figure { position: relative; }

.gallery-foot {
  max-width: var(--max-w); margin: 24px auto 0; padding: 16px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  color: var(--fg-3);
  border-top: 1px solid var(--line);
}
.gallery-foot-all { color: var(--fg-3); transition: color 0.3s; }
.gallery-foot-all:hover { color: var(--fg); }

/* ═══════════════════════════════════════════════════════════
   PRESS
═══════════════════════════════════════════════════════════ */
.press { padding-bottom: 120px; }
.press-list {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
  border-top: 1px solid var(--line);
}
.press-row {
  display: grid; grid-template-columns: 100px 1fr 40px;
  gap: 24px; align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease), background 0.3s;
}
.press-row:hover { padding-left: 16px; padding-right: 16px; background: var(--bg-alt); }
.press-date { color: var(--fg-3); padding-top: 4px; }
.press-body { display: flex; flex-direction: column; gap: 6px; }
.press-source { color: var(--fg-3); }
.press-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.02em;
}
.press-arrow {
  font-family: var(--serif); font-size: 24px; color: var(--fg-3);
  transition: transform 0.3s, color 0.3s;
  padding-top: 4px;
  align-self: start;
}
.press-row:hover .press-arrow { transform: translate(4px, -4px); color: var(--accent); }

/* Hover drawer — quote slides down on hover */
.press-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.45;
  color: var(--fg-2);
  max-width: 70ch;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease) 0.05s, transform 0.5s var(--ease), padding 0.5s var(--ease);
  padding: 0;
  border-left: 2px solid var(--accent);
  padding-left: 0;
  margin-top: 0;
}
.press-row:hover .press-quote {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
  padding: 12px 0 4px 16px;
  margin-top: 8px;
}
@media (hover: none) {
  /* On touch — show quote always (no hover) */
  .press-quote { max-height: 200px; opacity: 1; transform: none; padding: 8px 0 0 16px; margin-top: 6px; }
}

.press-shots {
  max-width: var(--max-w); margin: 80px auto 0; padding: 0 var(--pad-x);
}
.press-shots-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.press-shots-dl { color: var(--fg-3); transition: color 0.3s; }
.press-shots-dl:hover { color: var(--fg); }
/* Horizontal scroll carousel — slide left to browse */
.press-shots-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad-x);
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 16px;
  scrollbar-width: thin;
}
.press-shots-grid::-webkit-scrollbar { height: 4px; }
.press-shots-grid::-webkit-scrollbar-track { background: var(--line-2); border-radius: 2px; }
.press-shots-grid::-webkit-scrollbar-thumb { background: var(--fg-3); border-radius: 2px; }
.press-shots-grid::-webkit-scrollbar-thumb:hover { background: var(--fg); }

.press-shots-grid figure {
  flex: 0 0 auto;
  width: clamp(280px, 38vw, 480px);
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
  scroll-snap-align: start;
}
.press-shots-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.press-shots-grid figure:hover img { transform: scale(1.05); }

/* Subtle hint that more cards exist to the right */
.press-shots {
  position: relative;
}
.press-shots::after {
  content: '';
  position: absolute;
  top: 60px; right: 0; bottom: 16px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
}
[data-theme="dark"] .press-shots::after { background: linear-gradient(to right, transparent, var(--bg)); }

/* ═══════════════════════════════════════════════════════════
   TOUR DATES — list rendered from assets/dates.json
═══════════════════════════════════════════════════════════ */
.tour { padding-bottom: 120px; }
.tour-list {
  list-style: none;
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
  border-top: 1px solid var(--line);
}
.tour-row {
  display: grid;
  grid-template-columns: 110px 1fr 200px 140px 40px;
  gap: 24px; align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: padding 0.3s var(--ease), background 0.3s, color 0.3s;
}
.tour-row:hover { padding-left: 14px; padding-right: 14px; background: var(--bg-alt); }
.tour-row.is-soon { opacity: 0.65; }
.tour-row.is-past { opacity: 0.45; }
.tour-date {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--mono);
}
.tour-date .day {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400; line-height: 1; letter-spacing: -0.02em;
  color: var(--fg);
}
.tour-date .month-year {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}
.tour-venue {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 26px); line-height: 1.15; letter-spacing: -0.01em;
}
.tour-venue .tour-format {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3);
  vertical-align: 4px;
}
.tour-row:hover .tour-format {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
}
.tour-city {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-2);
}
.tour-cta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3);
  text-align: right;
  transition: color 0.3s;
}
.tour-row:hover .tour-cta { color: var(--fg); }
.tour-cta.has-link { color: var(--fg); }
.tour-arrow {
  font-family: var(--serif); font-size: 22px; color: var(--fg-3);
  transition: transform 0.3s, color 0.3s;
  text-align: right;
}
.tour-row:hover .tour-arrow { transform: translate(4px, -4px); color: var(--accent); }
.tour-row.no-link .tour-arrow { opacity: 0.3; }

.tour-loading {
  padding: 32px 0;
  color: var(--fg-3);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.tour-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--fg-3);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.tour-footer {
  max-width: var(--max-w); margin: 32px auto 0; padding: 0 var(--pad-x);
  text-align: right;
}
.tour-footer-text { color: var(--fg-3); }

@media (max-width: 720px) {
  .tour-row {
    grid-template-columns: 90px 1fr 24px;
    gap: 16px;
    padding: 20px 0;
  }
  .tour-row:hover { padding-left: 0; padding-right: 0; background: transparent; }
  .tour-city, .tour-cta { display: none; }
  .tour-venue { font-size: 17px; }
  .tour-venue .tour-format { display: block; margin: 6px 0 0; vertical-align: 0; width: fit-content; }
  .tour-date .day { font-size: 28px; }
  .tour-footer { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   RIDER — anatomy callouts
═══════════════════════════════════════════════════════════ */
.rider { background: var(--bg-alt); padding-bottom: 120px; }
.rider .section-header { padding-top: 120px; }

/* Format selector */
.rider-formats {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  margin-bottom: 40px;
}
.rider-format {
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
  border-right: 1px solid var(--line);
  transition: background 0.3s, color 0.3s;
  position: relative;
}
.rider-format:last-child { border-right: none; }
.rider-format .rf-num { color: var(--fg-3); transition: color 0.3s; }
.rider-format .rf-name {
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.02em;
}
.rider-format .rf-meta { color: var(--fg-3); transition: color 0.3s; margin-top: 2px; }
.rider-format.active { background: var(--fg); color: var(--bg); }
.rider-format.active .rf-num,
.rider-format.active .rf-meta { color: var(--bg); opacity: 0.7; }
.rider-format:hover:not(.active) { background: var(--bg); }
.rider-format.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--fg);
}

/* Anatomy container */
.rider-anatomy {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
  display: none;
}
.rider-anatomy.active { display: block; animation: fadeIn 0.5s var(--ease); }

/* Photo + callouts.
   The frame DOES NOT clip — tooltips on callouts at the edges need to
   extend outside the photo. The inner .anatomy-img-wrap clips the photo
   for the hover-zoom while leaving callouts unclipped. */
.anatomy-frame {
  position: relative;
  width: 100%;
}
.anatomy-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  overflow: hidden;
  border: 1px solid var(--line);
}
.anatomy-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.3s;
}
.anatomy-frame:hover .anatomy-img { transform: scale(1.02); }
.anatomy-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
}
.anatomy-corner {
  position: absolute;
  padding: 6px 12px;
  background: rgba(244,242,238,0.92);
  color: #0a0a0a;
  backdrop-filter: blur(6px);
  letter-spacing: 0.14em;
}
.anatomy-corner.tl { top: 14px; left: 14px; }
.anatomy-corner.tr { top: 14px; right: 14px; }

/* Numbered callout dots */
.callout {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
  pointer-events: auto;
}
.callout .dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 13px; font-weight: 600;
  box-shadow: 0 0 0 2px var(--fg), 0 0 24px rgba(0,0,0,0.5);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
  cursor: none;
  position: relative;
  z-index: 2;
}
.callout::before {
  content: '';
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--fg);
  opacity: 0.4;
  animation: calloutPulse 2.4s var(--ease) infinite;
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes calloutPulse {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}
.callout:hover .dot { transform: scale(1.18); }
.callout.is-active .dot { background: oklch(0.85 0.15 220); color: #0a0a0a; }

/* Floating tooltip — appears next to the dot on hover */
.cl-label {
  position: absolute;
  display: flex; flex-direction: column; gap: 2px;
  background: #0a0a0a; color: #f4f2ee;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--sans);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
  z-index: 10;
  /* Default: above the dot, centered */
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 4px);
  min-width: 120px;
}
.cl-label::after {
  /* Arrow pointing down toward dot */
  content: '';
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0a0a0a;
}
.cl-label strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.15;
  color: #f4f2ee;
}
.cl-label em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(244,242,238,0.7);
}
.callout:hover .cl-label,
.callout:focus-within .cl-label,
.callout.is-active .cl-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Direction modifiers — point label down (below dot) */
.callout.cl-down .cl-label {
  bottom: auto; top: calc(100% + 14px);
  transform: translate(-50%, -4px);
}
.callout.cl-down:hover .cl-label,
.callout.cl-down.is-active .cl-label,
.callout.cl-down:focus-within .cl-label {
  transform: translate(-50%, 0);
}
.callout.cl-down .cl-label::after {
  top: auto; bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #0a0a0a;
}

/* Right side: label opens to the LEFT */
.callout.cl-left .cl-label {
  top: auto;  /* reset cl-down's top so we don't get top+bottom conflict */
  bottom: 50%; transform: translate(-100%, 50%);
  left: auto; right: calc(100% + 14px);
  margin-bottom: -16px;
}
.callout.cl-left .cl-label::after {
  top: 50%; left: 100%; right: auto;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #0a0a0a;
}
.callout.cl-left:hover .cl-label,
.callout.cl-left.is-active .cl-label,
.callout.cl-left:focus-within .cl-label {
  transform: translate(0, 50%);
}

/* Left side: label opens to the RIGHT */
.callout.cl-right .cl-label {
  top: auto;  /* reset cl-down's top */
  bottom: 50%; transform: translate(0, 50%);
  left: calc(100% + 14px); right: auto;
  margin-bottom: -16px;
}
.callout.cl-right .cl-label::after {
  top: 50%; right: 100%; left: auto;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #0a0a0a;
}
.callout.cl-right:hover .cl-label,
.callout.cl-right.is-active .cl-label,
.callout.cl-right:focus-within .cl-label {
  transform: translate(0, 50%);
}

/* Mobile uses tap-to-toggle instead of hover (no hover on touch).
   The .is-active class is added by JS on tap and shows the tooltip. */
@media (hover: none) {
  .callout .cl-label { transition: opacity 0.2s var(--ease); }
}

/* Desktop / mobile rider photo switching */
.frame-desktop { display: block; }
.frame-mobile { display: none; }
@media (max-width: 720px) {
  .frame-desktop { display: none; }
  .frame-mobile { display: block; }
}
.mobile-wrap { aspect-ratio: 4 / 5; }
.frame-mobile .anatomy-corner.tr { display: none; }
.frame-mobile .anatomy-corner { font-size: 9px; padding: 4px 8px; }

/* Legend below the frame */
.anatomy-legend {
  list-style: none;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.anatomy-legend li {
  background: var(--bg-alt);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: background 0.3s, color 0.3s;
  cursor: default;
}
/* Subtle hover — keeps text readable. The photo tooltip carries the heavy reveal. */
.anatomy-legend li:hover,
.anatomy-legend li.is-active {
  background: var(--bg);
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.anatomy-legend li.is-active .leg-num {
  background: var(--accent); color: var(--bg);
}
.leg-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}
.leg-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; line-height: 1.35; }
.leg-text strong { font-weight: 600; font-size: 15px; }
.leg-spec {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--fg-3);
  transition: color 0.3s;
}

/* Detailed equipment grid */
.rider-detail {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.rider-col {
  background: var(--bg-alt);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.rider-col-num {
  color: var(--fg-3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
}
.rider-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rider-col li {
  font-size: 14px; line-height: 1.5; color: var(--fg-2);
  padding-left: 14px; position: relative;
}
.rider-col li::before {
  content: '·';
  position: absolute; left: 0; top: 0;
  font-family: var(--mono); color: var(--fg-3);
}

/* General notes */
.rider-notes {
  max-width: var(--max-w); margin: 40px auto 0; padding: 28px var(--pad-x);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.rider-notes-num {
  color: var(--fg-3);
  display: block; margin-bottom: 16px;
}
.rider-notes ul {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px 24px;
}
.rider-notes li {
  font-size: 14px; line-height: 1.5; color: var(--fg-2);
  padding-left: 16px; position: relative;
}
.rider-notes li::before {
  content: '→';
  position: absolute; left: 0; top: 0;
  font-family: var(--mono); color: var(--fg-3);
}
.rider-notes li strong { color: var(--fg); font-weight: 600; }

.rider-footer {
  max-width: var(--max-w); margin: 32px auto 0; padding: 0 var(--pad-x);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.rider-foot-text { color: var(--fg-3); }
.rider-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   MEDIA KIT
═══════════════════════════════════════════════════════════ */
.mediakit { padding-bottom: 120px; }

/* Documents row */
.mk-docs {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mk-doc {
  background: var(--bg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  transition: background 0.3s, color 0.3s, padding 0.3s var(--ease);
}
.mk-doc:hover { background: var(--fg); color: var(--bg); }
.mk-doc-num { color: var(--fg-3); transition: color 0.3s; }
.mk-doc:hover .mk-doc-num { color: var(--bg); opacity: 0.65; }
.mk-doc-name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-top: 4px;
}
.mk-doc-meta { color: var(--fg-3); transition: color 0.3s; margin-top: auto; padding-top: 12px; }
.mk-doc:hover .mk-doc-meta { color: var(--bg); opacity: 0.65; }
.mk-doc-arrow {
  position: absolute; top: 28px; right: 28px;
  font-family: var(--serif); font-size: 22px;
  color: var(--fg-3); transition: transform 0.3s, color 0.3s;
}
.mk-doc:hover .mk-doc-arrow {
  transform: translateY(4px);
  color: var(--bg);
}

/* Videos */
.mk-videos {
  max-width: var(--max-w); margin: 60px auto 0; padding: 0 var(--pad-x);
}
.mk-videos-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  flex-wrap: wrap; gap: 12px;
}
.mk-videos-head .mono { color: var(--fg-3); }
.mk-videos-head .mono:first-child { color: var(--fg); }

.mk-video-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.mk-video {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.mk-video video {
  width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  display: block;
}
.mk-video figcaption {
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.mk-video-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-video-meta .mono { color: var(--fg-3); }
.mk-video-name {
  font-family: var(--serif); font-weight: 400;
  font-size: 17px; line-height: 1.2;
}
.mk-video-dl {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mk-video-dl:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Bundles */
.mk-bundles {
  max-width: var(--max-w); margin: 60px auto 0; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mk-bundle {
  background: var(--bg-alt);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.3s;
}
.mk-bundle:hover { background: var(--bg); }
.mk-bundle-num { color: var(--fg-3); }
.mk-bundle h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15; letter-spacing: -0.02em;
}
.mk-bundle p { color: var(--fg-3); line-height: 1.6; flex: 1; }
.mk-bundle .btn { align-self: flex-start; margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════
   BOOKING
═══════════════════════════════════════════════════════════ */
.booking {
  background: var(--fg); color: var(--bg);
  padding: 120px var(--pad-x);
}
.booking-inner { max-width: var(--max-w); margin: 0 auto; }
/* Booking is always inverted (bg=fg, text=bg). Use opacity on currentColor
   so sub-elements are legible in BOTH themes. */
.booking .section-num {
  color: var(--bg);
  opacity: 0.6;
  border-color: color-mix(in oklch, var(--bg) 18%, transparent);
}
.booking-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 60px;
}
.booking-title .italic { font-style: italic; font-weight: 300; }

.booking-card {
  background: color-mix(in oklch, var(--bg) 4%, transparent);
  border: 1px solid color-mix(in oklch, var(--bg) 14%, transparent);
  padding: 40px 36px;
  display: flex; flex-direction: column; gap: 28px;
  max-width: 720px;
  backdrop-filter: blur(10px);
}
.booking-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid color-mix(in oklch, var(--bg) 14%, transparent);
}
.booking-card-top .mono { color: var(--bg); opacity: 0.6; }
.booking-card-top h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.02em;
  margin-top: 6px;
}
.booking-meta { text-align: right; }
.booking-meta .mono { color: var(--bg); opacity: 0.6; }

.booking-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.booking-features li { font-size: 16px; line-height: 1.5; color: var(--bg); opacity: 0.88; }
.booking-features li .mono { color: var(--bg); opacity: 0.45; }

.booking-cta-row { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.booking-card .btn-primary { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.booking-card .btn-primary:hover { background: transparent; color: var(--bg); border-color: var(--bg); }
.booking-card .btn-ghost { color: var(--bg); border-color: color-mix(in oklch, var(--bg) 30%, transparent); }
.booking-card .btn-ghost:hover { background: var(--bg); color: var(--fg); }

.booking-fineprint {
  padding-top: 16px;
  border-top: 1px solid color-mix(in oklch, var(--bg) 14%, transparent);
  color: var(--bg);
  opacity: 0.55;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer { padding: 80px var(--pad-x) 40px; }
.footer-top {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-logo { height: 56px; width: auto; }
[data-theme="light"] .footer-logo { filter: invert(1); }
.footer-meta { display: flex; flex-direction: column; gap: 6px; text-align: right; color: var(--fg-3); }
.footer-bottom {
  max-width: var(--max-w); margin: 32px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom > .mono { color: var(--fg-3); }
.footer-social { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-social a { color: var(--fg-3); transition: color 0.3s; }
.footer-social a:hover { color: var(--fg); }

/* ═══════════════════════════════════════════════════════════
   MINI PLAYER — small capsule (always); panel = floating popup
═══════════════════════════════════════════════════════════ */
.mini-player {
  position: fixed; bottom: 20px; left: 20px;
  z-index: 90;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s;
  /* No background / border-radius here — those live on the bar */
}
.mini-player.visible { transform: translateY(0); opacity: 1; }

/* Capsule (always small) */
.mini-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--fg); color: var(--bg);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  max-width: 320px;
  position: relative;
}
.mini-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg); color: var(--fg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.mini-toggle:hover { transform: scale(1.05); }
.mini-icon { display: block; }
.mini-icon-pause { display: none; }
.mini-player.playing .mini-icon-play { display: none; }
.mini-player.playing .mini-icon-pause { display: block; }

.mini-info {
  display: flex; flex-direction: column; gap: 2px;
  line-height: 1.2; min-width: 0; flex: 1;
  background: none; border: none; color: inherit;
  text-align: left;
  padding: 0 4px;
  cursor: none;
}
.mini-label { color: var(--bg); opacity: 0.6; }
.mini-track {
  font-family: var(--serif); font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mini-eq { display: flex; gap: 3px; align-items: end; height: 16px; padding: 0 4px; }
.mini-eq span {
  display: block; width: 2px; height: 6px;
  background: var(--bg);
  animation: eqBars 1.2s ease-in-out infinite;
  animation-play-state: paused;
}
.mini-player.playing .mini-eq span { animation-play-state: running; }
.mini-eq span:nth-child(2) { animation-delay: 0.2s; }
.mini-eq span:nth-child(3) { animation-delay: 0.4s; }
.mini-eq span:nth-child(4) { animation-delay: 0.6s; }
@keyframes eqBars {
  0%, 100% { height: 4px; }
  50%      { height: 16px; }
}

.mini-expand {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.4s var(--ease);
}
.mini-expand:hover { opacity: 1; }
.mini-player.is-open .mini-expand svg { transform: rotate(180deg); }
.mini-expand svg { transition: transform 0.4s var(--ease); }

/* Floating popup panel — separate from the capsule */
.mini-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: var(--fg); color: var(--bg);
  border-radius: 18px;
  padding: 14px 8px 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 1;
}
.mini-player.is-open .mini-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mini-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 10px 10px;
  color: var(--bg);
  border-bottom: 1px solid color-mix(in oklch, var(--bg) 12%, transparent);
}
.mini-panel-head .mono { opacity: 0.5; }
.mini-panel-close {
  font-size: 22px; line-height: 1;
  color: var(--bg); opacity: 0.5;
  transition: opacity 0.2s;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.mini-panel-close:hover { opacity: 1; }

.mini-tracklist {
  list-style: none;
  padding: 6px 0 0;
  display: flex; flex-direction: column;
  gap: 2px;
}
.mini-track-item { padding: 0; }
.mt-row, .mt-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  background: none; border: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
  color: var(--bg);
  text-decoration: none;
  cursor: none;
  font-family: inherit;
}
.mt-row:hover, .mt-link:hover {
  background: color-mix(in oklch, var(--bg) 10%, transparent);
}
.mini-track-item.is-current .mt-row {
  background: color-mix(in oklch, var(--bg) 14%, transparent);
}
.mt-num {
  width: 22px;
  color: var(--bg); opacity: 0.5;
  flex-shrink: 0;
}
.mt-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.mt-name {
  font-family: var(--serif); font-size: 14px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mt-meta { color: var(--bg); opacity: 0.55; font-size: 10px; }
.mt-status {
  color: var(--bg); opacity: 0.5;
  font-size: 10px;
  flex-shrink: 0;
}
.mini-track-item.is-current .mt-status { opacity: 1; color: oklch(0.85 0.15 220); }

.mini-progress {
  height: 2px;
  background: color-mix(in oklch, var(--bg) 12%, transparent);
  margin-top: 8px;
  position: relative;
  border-radius: 999px;
  overflow: hidden;
}
.mini-progress-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 0%;
  background: var(--bg);
  transition: width 0.2s linear;
}

/* ═══════════════════════════════════════════════════════════
   TWEAKS PANEL
═══════════════════════════════════════════════════════════ */
.tweaks {
  position: fixed; right: 20px; top: 20px; z-index: 200;
  width: 320px; max-width: calc(100vw - 40px);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 18px 20px 14px;
  font-family: var(--mono);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.tweaks-close { font-size: 22px; line-height: 1; color: var(--fg-3); transition: color 0.2s; }
.tweaks-close:hover { color: var(--fg); }
.tweaks-body { display: flex; flex-direction: column; gap: 14px; }
.tweak-row {
  display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center;
}
.tweak-row > .mono { color: var(--fg-3); }
.tweak-seg {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 2px;
  background: var(--bg-alt);
  border-radius: 6px;
}
.tweak-seg button {
  flex: 1;
  padding: 6px 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--fg-3);
  border-radius: 4px;
  transition: all 0.2s;
  min-width: 36px;
}
.tweak-seg button.active {
  background: var(--fg); color: var(--bg);
}
.tweaks-hint {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .bio-wrap { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .music-tabs { grid-template-columns: 1fr; }
  .music-tab { border-right: none; border-bottom: 1px solid var(--line); }
  .music-tab:last-child { border-bottom: none; }
  .music-platforms { grid-template-columns: repeat(2, 1fr); }
  .platform:nth-child(2) { border-right: none; }
  .platform:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gal-1, .gal-2, .gal-3, .gal-4, .gal-5, .gal-6 {
    grid-column: auto; grid-row: auto; aspect-ratio: 4/5;
  }
  .rider-detail { grid-template-columns: 1fr; }
  .rider-formats { grid-template-columns: 1fr; }
  .rider-format { border-right: none; border-bottom: 1px solid var(--line); }
  .rider-format:last-child { border-bottom: none; }
  .press-shots-grid { grid-template-columns: repeat(2, 1fr); }
  .mk-docs { grid-template-columns: repeat(2, 1fr); }
  .mk-doc:nth-child(2) { border-right: none; }
  .mk-video-grid { grid-template-columns: 1fr; }
  .mk-bundles { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE PERFORMANCE — drop expensive effects so animations breathe
═══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  /* The hero wave canvas paints every frame — kill it on mobile */
  .hero-wave-fallback { display: none !important; }
  /* Backdrop-filter is GPU-heavy on mobile — replace with solid bg */
  [data-theme="light"] .nav {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  [data-theme="light"] .hero-meta,
  [data-theme="light"] .hero-eyebrow {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Cut hero zoom + image hover on mobile (no hover anyway) */
  .hero-frame:hover .anatomy-img,
  .anatomy-frame:hover .anatomy-img,
  .gal:hover img,
  .press-shots-grid figure:hover img,
  .bio-portrait:hover img { transform: none !important; }
  /* Disable mini-player long transitions */
  .mini-panel { transition-duration: 0.18s; }
  /* Booking card: backdrop-filter is also expensive */
  .booking-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 520px) {
  :root { --pad-x: 18px; }
  .nav { padding: 14px var(--pad-x); }
  .nav-logo { height: 28px; }
  .nav-tools { gap: 6px; }
  .nav-lang { padding: 7px 10px; font-size: 10px; }
  .nav-theme { width: 34px; height: 34px; }

  .hero { padding: 130px var(--pad-x) 60px; min-height: 90vh; }
  .hero-meta-l, .hero-meta-r { top: 76px; font-size: 9px; }
  .hero-meta { gap: 6px; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 24px; }
  .hero-eyebrow .eyebrow-line { width: 24px; }
  .hero-title { font-size: clamp(40px, 12vw, 64px); margin-bottom: 36px; line-height: 0.96; }
  .hero-word { margin-right: 0.18em; }
  .hero-footer { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; padding-bottom: 56px; }
  .hero-cta-group { justify-content: flex-start; }
  .hero-sub { font-size: 14px; line-height: 1.5; }
  /* SCROLL indicator was overlapping the Book CTA on phones — hide it */
  .hero-scroll { display: none; }

  .section-header { padding: 80px var(--pad-x) 40px; }
  .section-title { font-size: clamp(36px, 11vw, 56px); }
  .section-sub { font-size: 15px; }

  .bio-text p { font-size: 14px; line-height: 1.6; }
  .bio-lede { font-size: 17px !important; }
  .stats-grid { padding-left: 0; padding-right: 0; }
  .stat { padding: 28px 18px; min-height: 160px; }
  .stat-num { font-size: clamp(40px, 12vw, 64px); }

  .marquee { padding: 16px 0; }
  .marquee-track { gap: 24px; font-size: 11px; }

  .music-tab { padding: 22px 20px; }
  .music-tab .tab-meta { font-size: 16px; }
  .music-frame { padding-top: 28px; }
  .music-frame iframe { min-height: 380px; }

  .gallery-grid { grid-template-columns: 1fr; gap: 6px; }
  .press-row { grid-template-columns: 60px 1fr 24px; gap: 16px; padding: 22px 0; }
  .press-row:hover { padding-left: 0; padding-right: 0; background: transparent; }
  .press-title { font-size: 17px; }
  .press-shots-grid { grid-template-columns: 1fr; gap: 6px; }

  .rider-format { padding: 18px 20px; }
  .rider-format .rf-name { font-size: 22px; }
  .anatomy-frame { aspect-ratio: 4 / 5; }
  .callout .dot { width: 26px; height: 26px; font-size: 11px; }
  .callout::before { width: 44px; height: 44px; }
  .anatomy-corner { font-size: 9px; padding: 4px 8px; }
  .anatomy-legend { grid-template-columns: 1fr; }
  .rider-detail { grid-template-columns: 1fr; }
  .rider-col { padding: 22px 20px; }
  .rider-notes ul { grid-template-columns: 1fr; }
  .rider-footer { flex-direction: column; align-items: flex-start; }
  .mk-docs { grid-template-columns: 1fr; }
  .mk-doc { padding: 24px 22px; }
  .mk-video figcaption { padding: 12px 16px; }
  .mk-bundle { padding: 24px 22px; }

  .booking { padding: 80px var(--pad-x); }
  .booking-title { font-size: clamp(40px, 12vw, 60px); margin-bottom: 36px; }
  .booking-card { padding: 28px 22px; }
  .booking-card-top { flex-direction: column; gap: 16px; }
  .booking-meta { text-align: left; }
  .booking-card-top h3 { font-size: 32px; }

  .footer { padding: 60px var(--pad-x) 30px; }
  .footer-top { flex-direction: column; gap: 24px; align-items: flex-start; padding-bottom: 36px; }
  .footer-meta { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .mini-player { bottom: 14px; left: 14px; right: 14px; padding: 8px 14px 8px 8px; }
  .mini-track { max-width: none; }
  .tweaks { left: 14px; right: 14px; bottom: 14px; top: auto; width: auto; max-width: none; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 38px; }
  .section-title { font-size: 32px; }
  .booking-title { font-size: 36px; }
  .stat-num { font-size: 36px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .loader-rings span, .meta-dot, .scroll-line, .marquee-track, .mini-eq span {
    animation: none !important;
  }
}
