/* ════════════════════════════════════════════════
   ANGELO TEIXEIRA — DJ PORTFOLIO
   CSS Design System
   ════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS — "HEAT" ────────────────────── */
:root {
  --bg:           #0A0807;
  --bg-2:         #12100E;
  --bg-3:         #181512;
  --surface:      hsla(0, 0%, 100%, 0.035);
  --surface-2:    hsla(0, 0%, 100%, 0.06);
  --border:       hsla(0, 0%, 100%, 0.07);
  --text-primary:   #F4EFE8;
  --text-secondary: hsla(30, 20%, 90%, 0.55);
  --text-muted:     hsla(30, 20%, 90%, 0.42);
  --accent:       #FF3D00;        /* incandescent ember */
  --accent-hsl:   14 100% 50%;    /* raw channels of --accent, for alpha variants */
  --accent-glow:  hsl(var(--accent-hsl) / 0.25);
  --accent-2:     #FFB300;        /* amber — confirmations, success, second emphasis */
  --accent-2-hsl: 42 100% 50%;
  --accent-hot:   hsl(26 100% 52%);  /* hotter end of the primary-button gradient */
  --danger:       #FF3355;        /* form errors */
  --white-hsl:    0 0% 100%;
  --black-hsl:    0 0% 0%;
  --on-accent:    #000;           /* text on accent-filled surfaces */
  /* Motion — the whole site beats at 124 BPM */
  --beat:  0.4839s;               /* 60 / 124 */
  --pulse: 0;                     /* 0→1 sawtooth written by the BPM engine (JS) */
  --eq-bass:    0;                 /* 0→1 real bass energy from Web Audio API */
  --eq-mid:     0;                 /* 0→1 real mid energy */
  --eq-treble:  0;                 /* 0→1 real treble energy */
  --player-progress: 0;            /* 0→1 fraction, updated by audio-engine.js */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --ease-out:    cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --bg-scrolled: hsla(20, 15%, 3%, 0.88);
  --bg-overlay:  hsla(20, 15%, 3%, 0.97);
}

/* ─── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
body.menu-open,
body.lightbox-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: none; border: none; background: none; }
/* Chrome doesn't honor the hidden attribute on <svg> roots */
svg[hidden] { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ─── EQUALIZER (BPM-synced bars) ─────────────────── */
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq__bar {
  width: 3px; height: 100%;
  background: var(--accent); border-radius: 1px;
  transform: scaleY(0.25); transform-origin: bottom;
  animation: eqBounce var(--beat) ease-in-out infinite alternate;
}
.eq__bar:nth-child(2) { animation-delay: calc(var(--beat) / -3); }
.eq__bar:nth-child(3) { animation-delay: calc(var(--beat) / -1.6); }
.eq__bar:nth-child(4) { animation-delay: calc(var(--beat) / -2.4); }
.eq__bar:nth-child(5) { animation-delay: calc(var(--beat) / -1.2); }
@keyframes eqBounce {
  from { transform: scaleY(0.2); }
  to   { transform: scaleY(1); }
}

/* ─── COUNT-IN ───────────────────────────────────── */
.count-in {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.count-in.hidden { display: none; }
.count-in__num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 16rem);
  line-height: 1; color: var(--text-primary);
}

/* ─── CUSTOM CURSOR ──────────────────────────────── */
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0; /* hidden until the first mousemove (JS reveals) */
  transition: opacity 0.3s;
}
#cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid hsl(var(--accent-hsl) / 0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  /* subtle beat on the ring — scale is independent of GSAP's translate */
  scale: calc(1 + 0.07 * var(--pulse));
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.3s, opacity 0.3s, background 0.3s;
}
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  width: 52px; height: 52px;
  border-color: var(--accent);
}
.cursor-label {
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-primary); opacity: 0;
  transition: opacity 0.25s;
}
#cursor-ring.has-label {
  width: 72px; height: 72px;
  border-color: var(--accent);
  background: hsl(var(--black-hsl) / 0.55);
  backdrop-filter: blur(4px);
}
#cursor-ring.has-label .cursor-label { opacity: 1; }
@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}

/* ─── NAVIGATION ─────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
#navbar.scrolled {
  background: var(--bg-scrolled);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
}
/* Hidden at the top — the giant hero wordmark is right there;
   fades in once the navbar gains the scrolled state */
.nav__logo { opacity: 0; pointer-events: none; transition: opacity 0.4s; }
#navbar.scrolled .nav__logo { opacity: 1; pointer-events: auto; }
.nav__logo-img {
  height: 20px; width: auto; /* cropped wordmark is wide — 20px reads well */
  opacity: 0.85;
  transition: opacity 0.3s;
}
.nav__logo-img:hover { opacity: 1; }
.nav__links { display: flex; align-items: center; gap: 2.5rem; }
.nav__link {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-secondary); position: relative;
  padding: 0.75rem 0.25rem; /* enlarge touch target */
  transition: color 0.3s;
}
.nav__link::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--accent); transition: width 0.3s var(--ease-out);
}
.nav__link:hover,
.nav__link.active { color: var(--text-primary); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link--cta {
  color: var(--accent); border: 1px solid var(--accent);
  padding: 0.5rem 1.25rem; border-radius: var(--radius-full);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 28px var(--accent-glow);
}
.nav__link--cta:active { scale: 0.95; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav__hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU ────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu__inner { text-align: center; display: flex; flex-direction: column; gap: 3rem; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: 0.04em; color: var(--text-primary);
  opacity: 0; transform: translateY(20px);
  transition: color 0.3s;
}
.mobile-menu.active .mobile-link { opacity: 1; transform: translateY(0); }
.mobile-menu.active .mobile-link:nth-child(1) { transition: opacity 0.4s 0.08s, transform 0.4s 0.08s var(--ease-out), color 0.3s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition: opacity 0.4s 0.14s, transform 0.4s 0.14s var(--ease-out), color 0.3s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition: opacity 0.4s 0.20s, transform 0.4s 0.20s var(--ease-out), color 0.3s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition: opacity 0.4s 0.26s, transform 0.4s 0.26s var(--ease-out), color 0.3s; }
.mobile-link:hover { color: var(--accent); }
.mobile-link--cta { color: var(--accent); }
.mobile-menu__social { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 1rem 2.2rem; border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 0.88rem;
  font-weight: 600; letter-spacing: 0.04em;
  position: relative; overflow: hidden;
  /* press feedback via the standalone scale property — never fights
     the magnetic hover, which owns the transform */
  scale: 1;
  transition: box-shadow 0.3s var(--ease-out), background 0.3s, color 0.3s,
              border-color 0.3s, scale 0.2s var(--ease-out);
}
.btn:active { scale: 0.96; }
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: hsl(var(--white-hsl) / 0.06);
  opacity: 0; transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }
/* Light streak sweeps across on hover */
.btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 36%;
  background: linear-gradient(100deg, transparent, hsl(var(--white-hsl) / 0.35), transparent);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(340%) skewX(-18deg); }
.btn--primary {
  background: linear-gradient(115deg, var(--accent) 10%, var(--accent-hot) 90%);
  color: var(--on-accent);
  box-shadow: 0 4px 18px hsl(var(--accent-hsl) / 0.25);
}
.btn--primary:hover {
  box-shadow: 0 0 40px var(--accent-glow), 0 6px 26px hsl(var(--accent-hsl) / 0.35);
}
/* Ghost sits on video/photo — needs its own scrim to stay visible */
.btn--ghost {
  background: hsl(var(--black-hsl) / 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--text-primary);
  border: 1px solid hsl(var(--white-hsl) / 0.25);
}
.btn--ghost:hover { border-color: hsl(var(--white-hsl) / 0.5); }
.btn--outline { background: transparent; color: var(--accent); border: 1px solid hsl(var(--accent-hsl) / 0.6); }
.btn--outline:hover {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn--full { width: 100%; justify-content: center; }
.btn__arrow { font-size: 1.1em; transition: transform 0.3s var(--ease-spring); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ─── SECTION COMMONS ────────────────────────────── */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section__container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}
.section__header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__label {
  display: block; font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.2em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 0.875rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95; letter-spacing: 0.02em;
}
.section__sub { margin-top: 1.2rem; color: var(--text-secondary); font-size: 1rem; }
.text-accent { color: var(--accent); }

/* Reveal — stagger via --delay custom property (set per-item in each section) */
.reveal-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out) var(--delay, 0ms),
              transform 0.8s var(--ease-out) var(--delay, 0ms);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-gallery {
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.7s var(--ease-out) var(--delay, 0ms),
              transform 0.7s var(--ease-out) var(--delay, 0ms);
}
.reveal-gallery.visible { opacity: 1; transform: scale(1); }

/* Keyboard focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* Grain texture — adds depth to the flat video overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Warm color grade — nudges any footage toward the HEAT palette
   (kept subtle: it should push warm, not paint over the video) */
.hero__video-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(20deg, hsl(var(--accent-hsl) / 0.9), hsl(var(--accent-2-hsl) / 0.55));
  mix-blend-mode: color;
  opacity: 0.24;
  pointer-events: none;
}
.hero__video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    /* radial scrim behind the lockup — guarantees wordmark contrast on any frame */
    radial-gradient(ellipse 62% 56% at 50% 46%, hsl(var(--black-hsl) / 0.55) 0%, transparent 72%),
    linear-gradient(to top, var(--bg) 0%, hsl(var(--black-hsl) / 0.55) 50%, hsl(var(--black-hsl) / 0.2) 100%),
    /* stronger top scrim so the navbar stays readable */
    linear-gradient(to bottom, hsl(var(--black-hsl) / 0.55) 0%, transparent 30%);
}
.hero__content {
  position: relative; z-index: 1;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  max-width: 1400px; width: 100%;
  /* Center everything — cinematic centered layout */
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__tag {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.hero__tag-line { display: block; width: 40px; height: 1px; background: hsl(var(--white-hsl) / 0.55); }
.hero__tag-text {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.35em; text-transform: uppercase; color: hsl(var(--white-hsl) / 0.9);
}
/* Official wordmark — big, with an ember glow that beats behind it */
.hero__logo-wrap {
  position: relative;
  margin-bottom: 2rem;
}
.hero__logo-wrap::before {
  content: ''; position: absolute;
  /* the cropped wordmark is a thin strip — stretch the glow well past it */
  inset: -160% -10%;
  background: radial-gradient(ellipse 55% 50% at 50% 50%, var(--accent-glow) 0%, transparent 70%);
  opacity: calc(0.4 + 0.6 * var(--pulse));
  pointer-events: none;
}
.hero__logo-img {
  position: relative;
  width: clamp(280px, 46vw, 680px);
  height: auto;
}
.hero__tagline {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  font-weight: 300; letter-spacing: 0.04em;
  color: hsl(var(--white-hsl) / 0.8);
  margin-bottom: 2.5rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ─── GENRE TICKER — full-bleed marquee ──────────── */
.ticker {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: hsl(var(--black-hsl) / 0.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 0.7rem 0;
}
.ticker__track {
  display: flex; width: max-content;
  animation: tickerScroll 26s linear infinite;
}
.ticker__seq {
  font-family: var(--font-display);
  font-size: 1.3rem; letter-spacing: 0.14em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--text-primary); opacity: 0.8;
  padding-right: 0.6rem;
}
@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}
/* (scroll indicator removed — the ticker already signals motion at the fold) */

/* ─── ABOUT ──────────────────────────────────────── */
.about { padding: 0; overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.about__photo-col { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.about__photo-wrap { position: relative; width: 100%; height: 100%; }
.about__photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.05); }
.about__photo-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(20deg, hsl(var(--accent-hsl) / 0.16), transparent 55%),
    linear-gradient(to right, transparent 55%, var(--bg) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 20%);
}
.about__text-col {
  display: flex; align-items: center;
  padding: clamp(4rem, 10vw, 8rem) clamp(2rem, 6vw, 5rem) clamp(4rem, 10vw, 8rem) clamp(1.5rem, 4vw, 3.5rem);
}
.about__text-inner { max-width: 520px; display: flex; flex-direction: column; gap: 2rem; }
.about__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  line-height: 0.95; letter-spacing: 0.02em;
  display: flex; flex-direction: column;
}
.about__title span:last-child { color: var(--accent); }
.about__bio { display: flex; flex-direction: column; gap: 1rem; }
.about__bio-lead { font-size: 1.05rem; font-weight: 500; color: var(--text-primary); line-height: 1.65; }
.about__bio-body { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.75; }
.about__genres { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.genre-tag {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid hsl(var(--accent-hsl) / 0.3);
  padding: 0.35rem 0.75rem; border-radius: var(--radius-full);
  background: hsl(var(--accent-hsl) / 0.05);
}
.about__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
}
.about__stat {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0 1.25rem;
  border-right: 1px solid var(--border);
}
.about__stat:first-child { padding-left: 0; }
.about__stat:last-child { border-right: none; }
.about__stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1; letter-spacing: 0.02em;
  color: var(--text-primary);
}
.about__stat-num span { color: var(--accent); }
.about__stat-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── EVENTS ─────────────────────────────────────── */
.events {
  background: var(--bg); position: relative;
}
.events::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.events__list { display: flex; flex-direction: column; margin-bottom: 4rem; }
.event-item {
  display: grid;
  grid-template-columns: 90px 28px 1fr;
  gap: 1.5rem; align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s; cursor: default;
}
.event-item:last-child { border-bottom: none; }
/* Reveal stagger */
.event-item:nth-child(2) { --delay: 100ms; }
.event-item:nth-child(3) { --delay: 200ms; }
.event-item:hover { background: var(--surface); border-radius: var(--radius-md); padding-left: 1rem; padding-right: 1rem; }
.event-item__left { text-align: right; padding-top: 4px; }
.event-item__date { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.date-day { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; letter-spacing: 0.02em; }
.date-month { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; }
.date-year { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--text-muted); }
.event-item__center { display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.event-item__line {
  width: 1px; flex: 1; margin-top: 8px; min-height: 36px;
  background: linear-gradient(to bottom, hsl(var(--accent-hsl) / 0.3), transparent);
  transform: scaleY(0); transform-origin: top center; /* drawn by scroll (JS) */
}
.event-item:last-child .event-item__line { display: none; }
.event-item__dot {
  width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  outline: 1px solid hsl(var(--accent-hsl) / 0.4);
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.4s;
}
/* Dot ignites when the item enters view, then beats with the pulse */
.event-item.lit .event-item__dot {
  opacity: 1;
  box-shadow: 0 0 calc(6px + 14px * var(--pulse)) var(--accent-glow);
}
.event-item__right { padding-top: 2px; display: flex; flex-direction: column; gap: 0.4rem; }
.event-item__tag { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.event-item__title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: 0.03em; line-height: 1.1; }
.event-item__location { display: flex; align-items: center; gap: 0.4rem; color: var(--text-secondary); font-size: 0.85rem; }
.event-item__location svg { flex-shrink: 0; color: var(--text-muted); }
.event-item__status {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: var(--radius-full);
  width: fit-content; margin-top: 0.25rem;
}
.status--upcoming { background: hsl(var(--accent-2-hsl) / 0.1); color: var(--accent-2); border: 1px solid hsl(var(--accent-2-hsl) / 0.2); }
.status--residency { background: hsl(var(--accent-hsl) / 0.1); color: var(--accent); border: 1px solid hsl(var(--accent-hsl) / 0.2); }
.events__cta { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; padding-top: 1.5rem; }
.events__cta-text { color: var(--text-secondary); font-size: 1rem; }

/* ─── GALLERY — horizontal filmstrip (desktop) ───── */
.gallery { background: var(--bg-2); overflow: hidden; }
.gallery .section__container { margin-bottom: 3rem; }

.gallery__viewport { overflow: hidden; }
.gallery__track {
  display: flex; gap: 4px;
  width: max-content;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  will-change: transform;
}
.gallery-item {
  position: relative; overflow: hidden;
  cursor: pointer;
  width: 38vw; min-width: 340px;
  height: min(68vh, 600px);
  flex-shrink: 0;
}
/* Editorial rhythm: alternate wide/narrow frames */
.gallery-item:nth-child(odd) { width: 30vw; min-width: 280px; }
.gallery-item:nth-child(2) { --delay: 80ms; }
.gallery-item:nth-child(3) { --delay: 160ms; }
.gallery-item:nth-child(4) { --delay: 240ms; }
.gallery-item:nth-child(5) { --delay: 320ms; }
.gallery-item:nth-child(6) { --delay: 400ms; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.7s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.06); }

/* Warm duotone wash — poster coherence with the HEAT palette */
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, hsl(var(--accent-hsl) / 0.25), transparent 65%);
  mix-blend-mode: overlay;
  opacity: 0.55; transition: opacity 0.4s;
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 0.9; }

/* Hover overlay — editorial treatment, not a centered icon */
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: hsl(var(--black-hsl) / 0);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  transition: background 0.4s;
}
.gallery-item:hover .gallery-item__overlay { background: hsl(var(--black-hsl) / 0.5); }

/* Cyan accent line slides in from left on hover */
.gallery-item::before {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
  z-index: 2;
}
.gallery-item:hover::before { transform: scaleX(1); }

.gallery-item__hover-content {
  display: flex; align-items: flex-end; justify-content: space-between;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.gallery-item:hover .gallery-item__hover-content { opacity: 1; transform: translateY(0); }
.gallery-item__num {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-secondary);
}
.gallery-item__view {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}

/* ─── LIGHTBOX ───────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: hsl(var(--black-hsl) / 0.96); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox__img-wrap { max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-md); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: fixed; font-family: var(--font-display);
  color: var(--text-primary); opacity: 0.6;
  transition: opacity 0.3s; z-index: 1;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { opacity: 1; color: var(--accent); }
.lightbox__close:active, .lightbox__prev:active, .lightbox__next:active { scale: 0.9; }
.lightbox__close { top: 1.5rem; right: 1.5rem; font-size: 1.5rem; padding: 0.75rem; }
.lightbox__prev { left: 1.5rem; font-size: 4rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.5rem; font-size: 4rem; top: 50%; transform: translateY(-50%); }

/* ─── CONTACT ────────────────────────────────────── */
.contact { background: var(--bg); position: relative; }
.contact::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted);
}
.form-group input, .form-group textarea {
  width: 100%; background: var(--surface);
  border: 1px solid var(--border); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.9rem;
  padding: 0.85rem 1.1rem; border-radius: var(--radius-md);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  outline: none; -webkit-appearance: none; appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
  background: hsl(var(--accent-hsl) / 0.04);
  box-shadow: 0 0 0 3px hsl(var(--accent-hsl) / 0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.date-picker,
.select-picker { position: relative; }
.date-picker__trigger,
.select-picker__trigger {
  width: 100%;
  min-height: 52px;
  display: flex; align-items: center; gap: 0.8rem;
  background: linear-gradient(135deg, hsl(var(--white-hsl) / 0.045), hsl(var(--white-hsl) / 0.025));
  border: 1px solid var(--border); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.9rem;
  padding: 0.85rem 1.1rem; border-radius: var(--radius-md);
  text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.date-picker__trigger:hover,
.date-picker.is-open .date-picker__trigger,
.select-picker__trigger:hover,
.select-picker.is-open .select-picker__trigger {
  border-color: hsl(var(--accent-hsl) / 0.75);
  background: hsl(var(--accent-hsl) / 0.045);
  box-shadow: 0 0 0 3px hsl(var(--accent-hsl) / 0.08);
}
.date-picker__trigger:focus-visible,
.select-picker__trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsl(var(--accent-hsl) / 0.12);
}
.date-picker__icon,
.select-picker__icon {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: grid; place-items: center;
  color: var(--accent);
  background: hsl(var(--accent-hsl) / 0.11);
  border: 1px solid hsl(var(--accent-hsl) / 0.22);
  border-radius: var(--radius-sm);
}
.date-picker__value,
.select-picker__value {
  flex: 1;
  min-width: 0;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.date-picker:not(.has-value) .date-picker__value { color: var(--text-muted); }
.select-picker:not(.has-value) .select-picker__value { color: var(--text-muted); }
.select-picker__chevron {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  transition: color 0.25s, transform 0.25s var(--ease-out);
}
.select-picker.is-open .select-picker__chevron {
  color: var(--accent);
  transform: rotate(180deg);
}
.date-picker__panel,
.select-picker__panel {
  position: absolute; top: calc(100% + 0.65rem); left: 0;
  width: min(100%, 330px);
  z-index: 50;
  background:
    radial-gradient(circle at 20% 0%, hsl(var(--accent-hsl) / 0.16), transparent 35%),
    linear-gradient(180deg, hsl(24 20% 11% / 0.98), hsl(18 16% 7% / 0.98));
  border: 1px solid hsl(var(--white-hsl) / 0.11);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px hsl(var(--black-hsl) / 0.52), 0 0 0 1px hsl(var(--accent-hsl) / 0.08);
  padding: 0.9rem;
  transform-origin: top left;
}
.date-picker__panel[hidden],
.select-picker__panel[hidden] {
  display: none;
}
.date-picker.is-open .date-picker__panel,
.select-picker.is-open .select-picker__panel {
  animation: calendarPop 0.18s var(--ease-out);
}
@keyframes calendarPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.date-picker__head {
  display: grid; grid-template-columns: 34px 1fr 34px;
  align-items: center; gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.date-picker__month {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-primary); text-align: center;
}
.date-picker__nav {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px solid hsl(var(--white-hsl) / 0.08);
  background: hsl(var(--white-hsl) / 0.04);
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.date-picker__nav:hover {
  color: var(--accent);
  border-color: hsl(var(--accent-hsl) / 0.36);
  background: hsl(var(--accent-hsl) / 0.08);
}
.date-picker__weekdays,
.date-picker__grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}
.date-picker__weekdays {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-family: var(--font-mono); font-size: 0.68rem;
  text-align: center;
}
.date-picker__day {
  aspect-ratio: 1;
  min-width: 0;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body); font-size: 0.86rem;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.date-picker__day:hover {
  color: var(--text-primary);
  border-color: hsl(var(--accent-hsl) / 0.28);
  background: hsl(var(--accent-hsl) / 0.08);
  transform: translateY(-1px);
}
.date-picker__day.is-muted { color: hsl(var(--white-hsl) / 0.24); }
.date-picker__day.is-today {
  color: var(--accent-2);
  border-color: hsl(var(--accent-2-hsl) / 0.38);
}
.date-picker__day.is-selected {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 22px hsl(var(--accent-hsl) / 0.28);
  font-weight: 700;
}
.select-picker__panel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.select-picker__option {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: flex; align-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body); font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.75rem 0.9rem 0.75rem 2.15rem;
  text-align: left;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.select-picker__option::before {
  content: '';
  position: absolute;
  left: 0.9rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}
.select-picker__option:hover,
.select-picker__option.is-active {
  color: var(--text-primary);
  background: hsl(var(--accent-hsl) / 0.08);
  transform: translateY(-1px);
}
.select-picker__option.is-selected {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 0 22px hsl(var(--accent-hsl) / 0.24);
  font-weight: 700;
}
.select-picker__option.is-selected::before {
  opacity: 1;
  transform: scale(1);
}
.form-error { font-family: var(--font-mono); font-size: 0.68rem; color: var(--danger); }
.form-group.has-error input, .form-group.has-error textarea { border-color: var(--danger); }
.form-success {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--accent-2); font-size: 0.88rem;
  background: hsl(var(--accent-2-hsl) / 0.08);
  border: 1px solid hsl(var(--accent-2-hsl) / 0.2);
  padding: 1rem 1.25rem; border-radius: var(--radius-md);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
}
.form-success.visible { opacity: 1; transform: translateY(0); }
.contact__info-col { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-info__title {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.contact-link {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text-secondary); font-size: 0.9rem;
  transition: color 0.3s; word-break: break-all;
}
.contact-link:hover { color: var(--accent); }
.social-list { display: flex; flex-direction: column; gap: 0.5rem; }
.social-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1rem; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
  transition: all 0.3s;
}
.social-item:hover { border-color: var(--accent); color: var(--accent); background: hsl(var(--accent-hsl) / 0.06); }
.contact-info__note {
  padding: 1.25rem; background: var(--surface);
  border-radius: var(--radius-md); border: 1px solid var(--border);
}
.contact-info__note p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; }
.contact-info__note strong { color: var(--text-primary); }

/* ─── BOOKING CTA ────────────────────────────────── */
.booking-cta {
  background: var(--bg-2); position: relative; overflow: hidden;
  padding: clamp(7rem, 14vw, 13rem) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.booking-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, hsl(var(--accent-hsl) / 0.09) 0%, transparent 70%);
  opacity: calc(0.55 + 0.45 * var(--pulse)); /* breathes with the beat */
}
.booking-cta__inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
}
.booking-cta__title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.88; letter-spacing: 0.02em;
}
.booking-cta__sub {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
}
.booking-cta__btn { margin-top: 0.5rem; padding: 1rem 2.75rem; font-size: 0.88rem; }

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}
.footer__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center;
}
.footer__logo-wrap { display: flex; align-items: center; gap: 0.9rem; }
.footer__logo {
  height: 24px; width: auto;
  /* 2.png is already white */
  opacity: 0.5;
  transition: opacity 0.3s;
}
/* Easter egg: the equalizer wakes up when you hover the logo */
.eq--footer { height: 14px; }
.eq--footer .eq__bar { animation-play-state: paused; }
.footer__logo-wrap:hover .eq--footer .eq__bar { animation-play-state: running; }
.footer__logo-wrap:hover .footer__logo { opacity: 1; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; }
.footer__nav a {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted);
  padding: 0.75rem 0.5rem; /* enlarge touch target */
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--text-primary); }
.footer__email a { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.05em; transition: opacity 0.3s; }
.footer__email a:hover { opacity: 0.7; }
.footer__copy { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--text-muted); }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; min-height: auto; }
  .about__photo-col { position: relative; height: 65vh; }
  .about__photo-overlay { background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%); }
  .about__text-col { padding: 3rem clamp(1.5rem, 5vw, 4rem); justify-content: flex-start; }
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  #navbar { padding: 1.25rem 1.5rem; }
  #navbar.scrolled { padding: 1rem 1.5rem; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .hero__logo-img { width: clamp(240px, 78vw, 480px); }
  .ticker__seq { font-size: 1.05rem; }
  /* Gallery: no pin/filmstrip on touch — regular 2-col grid */
  .gallery__track {
    display: grid; grid-template-columns: 1fr 1fr;
    grid-auto-rows: 260px;
    width: auto; padding: 0;
    gap: 4px;
  }
  .gallery-item, .gallery-item:nth-child(odd) {
    width: auto; min-width: 0; height: auto;
  }
  .event-item { grid-template-columns: 75px 24px 1fr; gap: 1rem; padding: 2rem 0; }
  .date-day { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .about__stats { gap: 0; }
  .about__stat { padding: 0 0.75rem; }
}
@media (max-width: 480px) {
  /* Gallery: single column on mobile */
  .gallery__track {
    grid-template-columns: 1fr;
    grid-auto-rows: 320px;
  }
  .lightbox__prev, .lightbox__next { font-size: 3rem; }
  .booking-cta__title { line-height: 0.92; }
}

/* ─── REDUCED MOTION ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
  .count-in { display: none; }
  .ticker__track { animation: none; }
  .eq__bar { animation: none; transform: scaleY(0.6); }
  .event-item__line { transform: scaleY(1); }
  .event-item__dot { opacity: 1; }
  .mix-eq-bar { animation: none; transform: scaleY(0.5); }
}

/* ══════════════════════════════════════════════════
   MUSIC SECTION — glassmorphism mix player
   ══════════════════════════════════════════════════ */
.music {
  position: relative;
  overflow: hidden;
}
.music::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 100%, hsl(var(--accent-hsl) / 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 50%, hsl(var(--accent-2-hsl) / 0.04) 0%, transparent 70%);
}

/* ─── Player Panel ─────────────────────────────────── */
.mix-player {
  position: relative;
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "ctrl  info    status"
    "ctrl  prog    status";
  gap: 0.6rem 1.5rem;
  align-items: center;

  /* Glassmorphism — same language as calendar + event-type picker */
  background:
    radial-gradient(circle at 15% 0%, hsl(var(--accent-hsl) / 0.14), transparent 38%),
    linear-gradient(160deg, hsl(var(--white-hsl) / 0.055) 0%, hsl(var(--white-hsl) / 0.022) 100%);
  border: 1px solid hsl(var(--white-hsl) / 0.10);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow:
    0 32px 80px hsl(var(--black-hsl) / 0.45),
    0 0 0 1px hsl(var(--accent-hsl) / 0.07),
    inset 0 1px 0 hsl(var(--white-hsl) / 0.08);
}
.mix-player::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 calc(22px + 28px * var(--pulse)) hsl(var(--accent-hsl) / 0.12);
  transition: box-shadow 0.1s;
}

/* ─── EQ visualizer ──────────────────────────────── */
.mix-player__eq {
  /* EQ is laid out inside the info column, above the title */
  grid-column: 1 / -1;
  grid-row: 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  margin-bottom: 0.25rem;
}
/* Restructure grid to include eq row */
.mix-player {
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "ctrl  eq      status"
    "ctrl  info    status"
    "ctrl  prog    status";
}
.mix-player__eq { grid-area: eq; }
.mix-player__info { grid-area: info; }
.mix-player__controls { grid-area: ctrl; }
.mix-player__progress-wrap { grid-area: prog; }
.mix-player__status { grid-area: status; }

.mix-eq-bar {
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  transform-origin: bottom;
  transform: scaleY(0.18);
  transition: transform 0.06s linear;
  animation: eqBounce var(--beat) ease-in-out infinite alternate;
}
/* Stagger idle animation across 12 bars */
.mix-eq-bar:nth-child(2)  { animation-delay: calc(var(--beat) / -3.5); }
.mix-eq-bar:nth-child(3)  { animation-delay: calc(var(--beat) / -1.8); }
.mix-eq-bar:nth-child(4)  { animation-delay: calc(var(--beat) / -2.7); }
.mix-eq-bar:nth-child(5)  { animation-delay: calc(var(--beat) / -1.4); }
.mix-eq-bar:nth-child(6)  { animation-delay: calc(var(--beat) / -4.0); }
.mix-eq-bar:nth-child(7)  { animation-delay: calc(var(--beat) / -1.1); }
.mix-eq-bar:nth-child(8)  { animation-delay: calc(var(--beat) / -3.2); }
.mix-eq-bar:nth-child(9)  { animation-delay: calc(var(--beat) / -2.1); }
.mix-eq-bar:nth-child(10) { animation-delay: calc(var(--beat) / -1.6); }
.mix-eq-bar:nth-child(11) { animation-delay: calc(var(--beat) / -5.0); }
.mix-eq-bar:nth-child(12) { animation-delay: calc(var(--beat) / -2.4); }
/* When audio-engine.js adds .is-live, JS drives scaleY directly */
.mix-player.is-live .mix-eq-bar { animation: none; }

/* ─── Track info ────────────────────────────────── */
.mix-player__info { min-width: 0; }
.mix-player__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}
.mix-player__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Play / Pause button ──────────────────────── */
.mix-player__play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 0 hsl(var(--accent-hsl) / 0.4);
  transition: background 0.25s, transform 0.2s var(--ease-spring), box-shadow 0.25s;
  flex-shrink: 0;
}
.mix-player__play-btn:hover {
  background: hsl(14 100% 58%);
  transform: scale(1.08);
  box-shadow: 0 0 28px hsl(var(--accent-hsl) / 0.38);
}
.mix-player__play-btn:active { transform: scale(0.95); }
.mix-icon {
  width: 18px; height: 18px;
  display: block;
}
.mix-icon--pause { display: none; }
.mix-player.is-playing .mix-icon--play  { display: none; }
.mix-player.is-playing .mix-icon--pause { display: block; }

/* ─── Progress bar ──────────────────────────────── */
.mix-player__progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mix-player__progress-track {
  position: relative;
  height: 4px;
  background: hsl(var(--white-hsl) / 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  overflow: visible;
}
.mix-player__progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: calc(var(--player-progress, 0) * 100%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
  pointer-events: none;
}
.mix-player__progress-thumb {
  position: absolute;
  top: 50%;
  left: calc(var(--player-progress, 0) * 100%);
  width: 13px; height: 13px;
  background: var(--text-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s var(--ease-spring);
  pointer-events: none;
  box-shadow: 0 0 8px hsl(var(--accent-hsl) / 0.5);
}
.mix-player__progress-track:hover .mix-player__progress-thumb,
.mix-player__progress-track:focus-visible .mix-player__progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}
.mix-player__progress-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.mix-player__time {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ─── Status badge ──────────────────────────────── */
.mix-player__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: hsl(var(--white-hsl) / 0.05);
  border: 1px solid hsl(var(--white-hsl) / 0.09);
  white-space: nowrap;
  align-self: start;
}
.mix-status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.4s, box-shadow 0.4s;
}
.mix-status__text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.4s;
}
.mix-player.is-playing .mix-status__dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.mix-player.is-playing .mix-status__text { color: var(--text-primary); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  .mix-player {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "ctrl   eq"
      "ctrl   info"
      "ctrl   prog"
      ".      status";
    gap: 0.4rem 1rem;
    padding: 1.25rem 1.25rem;
  }
  .mix-player__status { align-self: center; justify-self: start; }
}

/* ══════════════════════════════════════════════════
   CLIP-PATH SCROLL WIPES — cinematic section transitions
   Sections receive .will-wipe from scroll-wipes.js AFTER
   the ScrollTrigger is set up, so there's no flash of
   clipped content before JS hydrates.
   ══════════════════════════════════════════════════ */
.will-wipe {
  will-change: clip-path;
}
