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

:root {
  --accent: #e63b2f;
  --white: #ffffff;
  --grey: #888888;
  --dark-overlay: rgba(0, 0, 0, 0.92);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  /* In-flow header band — keep in sync with .site-header-video height */
  --tech9-header-band-h: clamp(140px, min(26svh, 24vmin), 280px);
}

html { scroll-behavior: auto; }

/* Mobile preloader: block scroll so swipes cannot scrub video / hijack the load bar */
html.tech9-preloader,
html.tech9-preloader body {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

body {
  background: #000;
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: default;
  overscroll-behavior-y: none;
}

/* ─── Hero canvas stack (wrapper fixed; vignette/CSS vs canvas-drawn vignette on desktop-premium canvas) ─ */
.hero-canvas-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.hero-scrub-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  isolation: isolate;
}

/* Soft “bokeh” edge roll-off into pitch-black (#000 body) — all profiles/DPR */
.hero-vignette::before {
  content: '';
  position: absolute;
  /* Bleed past edges so Gaussian blur doesn't clip to a hard box */
  inset: calc(-1 * max(22vw, 22vh));
  background:
    radial-gradient(
      ellipse 110% 102% at 50% 50%,
      rgba(0, 0, 0, 0) 34%,
      rgba(0, 0, 0, 0.07) 52%,
      rgba(0, 0, 0, 0.28) 76%,
      rgba(0, 0, 0, 0.58) 92%,
      rgba(0, 0, 0, 0.82) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0) min(50%, max(180px, 30vh)),
      rgba(0, 0, 0, 0) calc(100% - min(50%, max(180px, 30vh))),
      rgba(0, 0, 0, 0.42) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0) min(46%, max(160px, 22vw)),
      rgba(0, 0, 0, 0) calc(100% - min(46%, max(160px, 22vw))),
      rgba(0, 0, 0, 0.45) 100%
    );
  filter: blur(48px);
  -webkit-filter: blur(48px);
  transform: translateZ(0);
}

/* Narrow viewports: smaller blur footprint (GPU / WK) */
@media (max-width: 768px) {
  .hero-vignette::before {
    filter: blur(36px);
    -webkit-filter: blur(36px);
    inset: calc(-1 * max(16vw, 16vh));
  }
}

/* Secondary, slightly sharper vignette where we skip canvas-drawn gradients */
.hero-canvas-wrap--css-vignette .hero-vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.52;
  background:
    radial-gradient(ellipse 98% 96% at 50% 50%, transparent 34%, rgba(0, 0, 0, 0.2) 68%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0) min(44%, max(160px, 22vw)),
      rgba(0, 0, 0, 0) calc(100% - min(44%, max(160px, 22vw))),
      rgba(0, 0, 0, 0.58) 100%
    );
}

/* iOS/WK fixed-layer compositing: promote canvas to stable layer — verify on-device (Ash Kyd / WK notes). */
@supports (-webkit-touch-callout: none) {
  #canvas {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Scrub/canvas source: NOT display:none — Mobile Safari often never loads/decodes
   hidden video, so boot waits forever on the loading screen. */
.tech9-source-video--hidden {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 4px;
  height: 4px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* In-flow header intro clip: shallow band everywhere. Run `optimize:header-video`
   so MP4/WebM encode the middle 40–60% band (smaller files); fallback full-frame uses cover + band.
   Poster + preload="none" keeps first bytes off header until playback. */
.site-header-video {
  position: relative;
  width: 100%;
  height: var(--tech9-header-band-h);
  min-height: 0;
  z-index: 1;
  overflow: hidden;
  background: #000;
  pointer-events: none;
  isolation: isolate;
  /* Soft bottom edge — luminance mask (white opaque = visible); pairs with inset shadow below */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 52%,
    rgba(255, 255, 255, 0.92) 72%,
    rgba(255, 255, 255, 0.45) 90%,
    rgba(255, 255, 255, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 52%,
    rgba(255, 255, 255, 0.92) 72%,
    rgba(255, 255, 255, 0.45) 90%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  box-shadow: inset 0 -36px 56px rgba(0, 0, 0, 0.55);
}

/* Feathered backdrop blur toward black (bottom of strip; WebKit-heavy but falls back gracefully). */
.site-header-video::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(120px, 52%);
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 1) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 1) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Dark falloff + misty blend into page black (over mask / video) */
.site-header-video::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.12) 62%,
    rgba(0, 0, 0, 0.55) 82%,
    rgba(0, 0, 0, 0.92) 96%,
    #000 100%
  );
}

.hero-scroll-spacer {
  /* Was 100vh — shorter travel still clears the intro for scrub; cuts huge black run. */
  min-height: clamp(320px, min(62svh, 56dvh), 720px);
  pointer-events: none;
}

.site-header-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

/* ─── Loader ────────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  letter-spacing: 0.15em;
  color: var(--white);
  opacity: 0.9;
}

.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
}

html.tech9-preloader .loader-bar-fill {
  transition: none;
}

/* ─── Hero Overlay ─────────────────────────────────────────── */
#hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 28;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  pointer-events: none;
  padding-left: 8vw;
  opacity: 0; /* desktop: JS fades in; mobile: see @media block */
}

/* Compact DJ / TECH9 — visible after hero scrub (main hero overlay is fully faded by then). */
.site-mark {
  position: fixed;
  z-index: 29;
  left: 8vw;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  pointer-events: none;
  opacity: 0;
}

.site-mark-pre {
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 1vw, 0.65rem);
  letter-spacing: 0.45em;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}

.site-mark-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--white);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.hero-pre {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  letter-spacing: 0.6em;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(7rem, 16vw, 15rem);
  line-height: 0.88;
  letter-spacing: 0.03em;
  color: var(--white);
}

/* Book + social: above scroll layers but only this strip receives taps */
.hero-cta-strip {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: clamp(0.85rem, 2.2vh, 1.35rem);
}

.hero-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.55rem 1.65rem;
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 1.05vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  background: var(--white);
  border: 1px solid rgba(230, 59, 47, 0.22);
  border-radius: 999px;
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.12),
    0 0 20px rgba(230, 59, 47, 0.12);
  transition:
    background 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
  animation: tech9BookPulse 4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.hero-book-btn:hover {
  animation: none;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow:
    0 10px 28px rgba(230, 59, 47, 0.45),
    0 0 40px rgba(230, 59, 47, 0.25);
  transform: translateY(-1px);
}

.hero-book-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Soft red halo — readable on black, restrained scale so it stays premium */
@keyframes tech9BookPulse {
  0%, 100% {
    border-color: rgba(230, 59, 47, 0.2);
    box-shadow:
      0 2px 14px rgba(0, 0, 0, 0.12),
      0 0 18px rgba(230, 59, 47, 0.1);
    transform: translateZ(0) scale(1);
  }
  50% {
    border-color: rgba(230, 59, 47, 0.55);
    box-shadow:
      0 4px 22px rgba(0, 0, 0, 0.1),
      0 0 28px rgba(230, 59, 47, 0.42),
      0 0 48px rgba(230, 59, 47, 0.2);
    transform: translateZ(0) scale(1.008);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-book-btn,
  .footer-cta-btn--book {
    animation: none !important;
  }
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
}

.hero-social-link {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  transition: color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero-social-link:hover {
  color: var(--white);
}

.hero-scroll-hint {
  /* Flow under copy (not pinned to viewport bottom — avoids a tall empty band). */
  position: relative;
  left: 0;
  margin-top: clamp(0.95rem, 2.2vh, 1.65rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  opacity: 0.4;
}

.hero-scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Scroll Container ─────────────────────────────────────── */
#scroll-container {
  position: relative;
  z-index: 20;
  padding-top: 0;
  /* Content defines height; old 780vh forced a massive black tail past the footer. */
  min-height: 0;
}

/* ─── Sections ─────────────────────────────────────────────── */
.section {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  padding: clamp(2.75rem, 6.5vh, 4.5rem) 8vw;
  position: relative;
}

/* All sections: text hugs left, stays within the black left zone */
.section--left .section-inner {
  margin-right: auto;
  max-width: clamp(300px, 44%, 560px);
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#merch.section--left .merch-section-inner {
  max-width: min(760px, 96vw);
}

/* React mount + GSAP fromTo used to briefly force opacity 0 after paint (“flash then disappear”). */
#merch-root[data-mode='section']:not(.tech9-merch-anim-done):not(.tech9-merch-anim-fallback) .merch-anim {
  opacity: 0;
  transform: translate3d(-14px, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  #merch-root[data-mode='section'] .merch-anim {
    opacity: 1 !important;
    transform: none !important;
  }
}

#merch-root {
  width: 100%;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--white);
  will-change: transform, opacity;
}

.section-body {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  max-width: 38ch;
}

/* ─── Dark Overlay Section ─────────────────────────────────── */
.section--dark-overlay {
  background: var(--dark-overlay);
  padding-top: 8vh;
  padding-bottom: 8vh;
  min-height: auto;
}

/* ─── Stats ────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 4vw;
  justify-content: flex-start;
  margin: 1rem 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

/* ─── Track List ────────────────────────────────────────────── */
.track-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  /* Reveal via GSAP opacity/y — avoid clip-path/overflow here (clips .track-tag borders). */
}

.track-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: rgba(255,255,255,0.15);
  min-width: 2ch;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.track-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.05em;
  color: var(--white);
  overflow-wrap: break-word;
  word-break: normal;
}

.track-meta {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}

.track-tag {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-weight: 500;
  border: 1px solid var(--accent);
  padding: 0.3rem 0.7rem;
  flex-shrink: 0;
  text-align: center;
  align-self: center;
  white-space: nowrap;
}

/* ─── CTA Button ───────────────────────────────────────────── */
.cta-btn {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: #000;
  background: var(--white);
  text-decoration: none;
  padding: 1.1rem 2.5rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.cta-btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* ─── Social Links ─────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.social-link {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.social-link:hover { color: var(--white); }

/* ─── Marquee ───────────────────────────────────────────────── */
#marquee-wrap {
  overflow: hidden;
  padding: clamp(2rem, 4vh, 2.75rem) 0 clamp(1.25rem, 2.5vh, 1.75rem);
  border-top: 1px solid rgba(255,255,255,0.06);
}

#marquee {
  display: flex;
  width: max-content;
  white-space: nowrap;
}

#marquee span {
  font-family: var(--font-display);
  font-size: clamp(8rem, 12vw, 12rem);
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.06);
  text-transform: uppercase;
  line-height: 1;
  padding-right: 2rem;
}

/* ─── Footer ────────────────────────────────────────────────── */
#footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 2vh, 1.15rem);
  padding: clamp(1.25rem, 2.5vh, 1.75rem) 8vw;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.5rem 1.35rem;
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 1.05vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.footer-cta-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.footer-cta-btn--book {
  color: #000;
  background: var(--white);
  border: 1px solid rgba(230, 59, 47, 0.22);
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.12),
    0 0 20px rgba(230, 59, 47, 0.12);
  animation: tech9BookPulse 4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.footer-cta-btn--book:hover {
  animation: none;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow:
    0 10px 28px rgba(230, 59, 47, 0.45),
    0 0 40px rgba(230, 59, 47, 0.25);
  transform: translateY(-1px);
}

.footer-cta-btn--merch {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
}

.footer-cta-btn--merch:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.footer-copy {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25);
  text-align: center;
}

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 768px) {

  #hero-overlay {
    z-index: 28;
    padding-left: 5vw;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: calc(
      env(safe-area-inset-top, 0px) + var(--tech9-header-band-h) + clamp(0.35rem, 2vmin, 0.85rem)
    );
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  /* Canvas is full-screen on mobile; drawFrame handles the left
     "safe zone" gradient so the video never bleeds behind text.
     Sections stay transparent — no dark backgrounds anywhere. */

  .hero-title { font-size: clamp(3.5rem, 16vw, 6rem); }

  .hero-scroll-hint {
    transform: none;
  }

  /* In-flow scrub zone fills viewport below the header strip so MERCH / GEAR UP
     is not peeking above the fold on first paint (hero UI is fixed; content scrolls). */
  .hero-scroll-spacer {
    min-height: max(
      clamp(320px, min(62svh, 56dvh), 720px),
      calc(100svh - var(--tech9-header-band-h))
    );
  }

  .section { padding: clamp(2.5rem, 6vh, 3.5rem) 5vw; min-height: 0; }

  /* Text column stays within the left black zone (< 42% of viewport).
     The video is in the right 58%, so text must not cross the 42% mark. */
  .section--left .section-inner {
    max-width: 41%;
    margin: 0;
  }

  #merch.section--left .merch-section-inner {
    max-width: min(94vw, 680px);
  }

  /* Track rows need readable width — 41vw column clips titles + badge. */
  #music.section--left .section-inner {
    max-width: min(94vw, 680px);
  }

  /* Headings fit inside the narrow column */
  .hero-title { font-size: clamp(3rem, 13vw, 4.5rem); }
  .section-heading { font-size: clamp(2rem, 9vw, 3.2rem); }
  .section-body    { font-size: 0.82rem; max-width: none; }
  .section-label   { font-size: 0.6rem; }

  .site-mark {
    left: 5vw;
  }

  /* Stats: wrap tightly */
  .stats-row { gap: 5vw; flex-wrap: wrap; }
  .stat-num  { font-size: clamp(2.5rem, 10vw, 4rem); }

  /* Track list: readable line breaks; badge stays intact */
  .track-title { font-size: clamp(0.95rem, 4vw, 1.25rem); line-height: 1.2; }
  .track-item  { gap: 0.75rem; align-items: flex-start; }
  .track-tag   { margin-top: 0.15em; }

  /* CTA: full width */
  .cta-btn { align-self: stretch; text-align: center; }

  .social-links { flex-wrap: wrap; gap: 1.2rem; margin-top: 0.5rem; }

  /* Marquee */
  #marquee-wrap { padding: 1.75rem 0 1.1rem; }
  #marquee span { font-size: clamp(3.5rem, 12vw, 5rem); }

  /* Footer */
  #footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1.25rem 5vw;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }

  .footer-actions {
    width: 100%;
    gap: 0.55rem 0.75rem;
  }
}

/* ─── Merch standalone (/merch, /merch/track) ───────────────── */
.merch-shell-body {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.merch-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
}

.merch-shell-home-link {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
}

.merch-shell-home-link:hover {
  color: var(--accent);
}

.merch-shell-home-link--right {
  text-align: right;
}

.merch-shell-main {
  flex: 1;
  width: 100%;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 3rem;
}

.merch-shell-main--shop {
  max-width: 1420px;
  margin-inline: auto;
  /* Extra bottom space on phone so sticky CTA / home indicator never covers last card */
  padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 1.25rem));
}
