/* ---------- DATU EPIK — 3-song EPK landing page (white theme) ----------
   Shares its design language with horizontal-zine/css/main.css: same
   tokens, header controls, seek bar, gate, and social-rail patterns,
   ported verbatim where noted. This page scrolls normally (no scroll-
   video), so the fixed `.stage` frame from the zine is replaced by an
   ordinary flowing layout with a `position:fixed` header. */

:root {
  --paper: #f7f5f0;
  --ink: #17151a;
  --dim: rgba(23, 21, 26, 0.6);
  --dimmer: rgba(23, 21, 26, 0.38);
  --line: rgba(23, 21, 26, 0.22);
  --accent: #b8446a;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

body { min-height: 100%; }

img { max-width: 100%; display: block; }

/* ---------- Fixed page chrome: grain + header ---------- */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grainShift 8s steps(8) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 2.4vh, 22px) clamp(18px, 4vw, 40px);
  z-index: 40;
  background: linear-gradient(to bottom, rgba(247,245,240,0.92) 0%, rgba(247,245,240,0.7) 70%, transparent 100%);
  backdrop-filter: blur(6px);
}

.hdr-logo { height: clamp(18px, 2.2vh, 26px); width: auto; opacity: 0.92; }

.hdr-controls { display: flex; align-items: center; gap: 8px; }

/* ---------- Header control pills (ported verbatim from horizontal-zine) --- */

.ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.ctrl-btn:hover:not(:disabled) { border-color: var(--ink); background: rgba(23, 21, 26, 0.05); }
.ctrl-btn:disabled { opacity: 0.35; cursor: default; }
.ctrl-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.ctrl-icon { display: block; }
.ctrl-icon[hidden] { display: none; } /* SVGElement has no `hidden` IDL prop */

.ctrl-btn-text { min-width: 0; padding: 0 14px; }
.ctrl-btn-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

a.ctrl-btn { text-decoration: none; }

.spatial-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.spatial-hint {
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dimmer);
  /* "(like Airpod Pros)" made this too long to safely stay on one line on
     narrow phones -- allow wrapping instead of risking horizontal overflow. */
  max-width: min(90vw, 300px);
  text-align: center;
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 88px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  outline: none;
  cursor: pointer;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink); border: none;
}
.vol-slider::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink); border: none;
}

/* ---------- Play button + seek bar (ported verbatim) ---------- */

.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease);
}
.play-btn:hover { border-color: var(--ink); background: rgba(23, 21, 26, 0.05); transform: scale(1.08); }
.play-btn svg { display: block; }
.play-btn svg[hidden] { display: none; }

.seek-time {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--dimmer);
  font-variant-numeric: tabular-nums;
  min-width: 26px;
}
.seek-time:last-of-type { text-align: right; }

.seek-bar {
  -webkit-appearance: none;
  appearance: none;
  width: clamp(140px, 24vw, 220px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--ink) 0%, var(--ink) var(--seek-pct, 0%),
    var(--line) var(--seek-pct, 0%), var(--line) 100%
  );
  outline: none;
  cursor: pointer;
}
.seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: none;
  transition: transform 0.15s var(--ease);
}
.seek-bar:hover::-webkit-slider-thumb, .seek-bar:active::-webkit-slider-thumb { transform: scale(1.25); }
.seek-bar::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: none; }

/* ---------- Social rail buttons (ported) ---------- */

.rail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  opacity: 0.9;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s, transform 0.2s;
}
.rail-btn:hover { opacity: 1; border-color: var(--ink); background: rgba(23, 21, 26, 0.05); transform: scale(1.06); }

/* ---------- Gate / preloader (ported verbatim) ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px; }
.gate-logo { height: 34px; width: auto; margin-bottom: 6px; opacity: 0.92; }
.gate-title { font-size: clamp(26px, 5.6vw, 40px); letter-spacing: 0.05em; font-weight: 700; color: var(--ink); }
.gate-sub { font-size: clamp(11px, 1.4vw, 13px); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.gate-headphone-hint {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.gate-bar-track { width: min(280px, 60vw); height: 1px; background: var(--line); margin-bottom: 10px; }
.gate-bar-fill { height: 100%; width: 0%; background: var(--ink); transition: width 0.15s linear; }
.gate-pct { font-size: 11px; letter-spacing: 0.1em; color: var(--dimmer); font-variant-numeric: tabular-nums; margin-bottom: 26px; }
.gate-enter {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: transparent; border: 1px solid rgba(23, 21, 26, 0.45); color: var(--ink);
  padding: 16px 46px; cursor: pointer; border-radius: 999px;
  transition: border-color 0.3s, background 0.3s, opacity 0.3s;
}
.gate-enter:disabled { opacity: 0.25; cursor: default; }
.gate-enter:not(:disabled):hover { border-color: var(--ink); background: rgba(23, 21, 26, 0.05); }
.gate-enter-label { font-size: 13px; letter-spacing: 0.24em; font-weight: 600; }
.gate-enter-sub { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.gate-muted {
  margin-top: 16px; background: none; border: none; color: var(--dimmer);
  font-size: 11px; letter-spacing: 0.08em; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.gate-muted:disabled { opacity: 0.25; cursor: default; }

/* ================================================================
   NEW: hero — ring-lock puzzle around the hovering UFO
   ================================================================ */

main { position: relative; z-index: 2; }

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* bottom padding includes the fixed sticky-footer bar's height so the
     player-dock controls never sit underneath it */
  padding: clamp(90px, 14vh, 140px) 16px calc(16px + var(--sticky-footer-h, 64px));
  background: radial-gradient(120% 90% at 50% 30%, #ffffff 0%, #f2efe8 70%);
  overflow: hidden;
}

.hero-title {
  text-align: center;
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: clamp(18px, 3vh, 32px);
}

.hero-title .hero-title-sub {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
  font-weight: 400;
}

.hero-title .hero-tagline {
  display: block;
  margin-top: 14px;
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 700;
  color: var(--ink);
}

.hero-stage {
  position: relative;
  width: min(74vw, 480px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating vector spirals -- gentle continuous drift, not scroll-driven
   (this page has no scrub video to sync against). */
.floater {
  position: absolute;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}
.floater-a { width: 15vw; max-width: 150px; top: -6%; left: -14%; animation: driftA 13s ease-in-out infinite; }
/* Right-middle, not bottom-right: at the corner it sat directly behind the
   Salidumay vertex pill, crowding its label (measured overlap at 320-1920w).
   Vertically centered beside the UFO keeps it clear of every vertex. */
.floater-b { width: 13vw; max-width: 130px; top: 42%; right: -15%; animation: driftB 16s ease-in-out infinite; }

@keyframes driftA {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-10px, 14px) rotate(-6deg); }
}
@keyframes driftB {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(12px, -10px) rotate(5deg); }
}

/* UFO: slow hover/bob + very slight rotation, like it's suspended. The
   drop-shadow filter lives on .ufo-img (not this wrapper): a CSS filter
   rasterizes its element to its own box before compositing, which silently
   clips any child -- like .ufo-glow below -- that extends past that box.
   That was the actual cause of the glow reading as "cropped". */
.ufo-wrap {
  position: relative;
  width: 64%;
  z-index: 3;
  animation: ufoHover 8s ease-in-out infinite;
}

@keyframes ufoHover {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1.4deg); }
}

.ufo-img {
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 18px 34px rgba(23, 21, 26, 0.22));
}

/* Subtle ambient purple glow, always on (not hover-gated) -- gently
   stronger on hover/invite-open. inset is generous but, since the filter
   moved off .ufo-wrap, nothing clips it before it reaches .hero's edges. */
.ufo-glow {
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 90, 210, 0.36) 0%, rgba(130, 90, 210, 0.2) 35%, rgba(130, 90, 210, 0.08) 60%, rgba(130, 90, 210, 0) 85%);
  opacity: 0.7;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.ufo-wrap:hover .ufo-glow,
.ufo-wrap.is-invite-open .ufo-glow { opacity: 1; }

.ufo-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}

/* ---------- Immersive-experience tagline (above the Spatial toggle) ----- */

.atmos-note-lead {
  margin: clamp(14px, 2.5vh, 24px) 0 0;
  max-width: min(90vw, 440px);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Hero instructions (click a song to read its writeup) -------- */

.hero-instructions {
  margin: 10px 0 0;
  max-width: min(90vw, 440px);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--dim);
  text-align: center;
}

/* ---------- Spatial toggle ---------- */

.spatial-toggle-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: clamp(18px, 3vh, 30px);
}

/* ---------- Shared song writeup panel (opened by any vertex tap) -------- */

.song-panel {
  margin-top: clamp(14px, 2.5vh, 24px);
  width: min(90vw, 460px);
  padding: 14px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
  text-align: left;
}
.song-panel[hidden] { display: none; }
.song-panel .writeup-eyebrow { margin-top: 0; }
.song-panel .writeup-body { font-size: 12.5px; line-height: 1.7; max-width: none; }
.song-panel .writeup-credit { font-size: 10px; }

/* ---------- Song vertex buttons ---------- */

.vertex {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease), color 0.2s;
  text-align: center;
}
.vertex:hover { border-color: var(--ink); transform: scale(1.04); }
.vertex.is-active { border-color: var(--accent); color: var(--accent); background: rgba(184,68,106,0.08); }

.vertex-title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.vertex-sub { font-size: 8px; letter-spacing: 0.06em; color: var(--dimmer); white-space: nowrap; }
.vertex.is-active .vertex-sub { color: rgba(184,68,106,0.7); }

.vertex-top { top: 15%; left: 50%; transform: translateX(-50%); }
.vertex-top:hover { transform: translateX(-50%) scale(1.04); }
.vertex-bl { bottom: 17%; left: 3%; }
.vertex-br { bottom: 17%; right: 3%; }

/* ---------- Player dock (now-playing + transport, under the hero stage) - */

.player-dock {
  margin-top: clamp(28px, 5vh, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 5;
  position: relative;
}

.now-playing-name {
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
  transition: opacity 0.3s var(--ease);
}
.now-playing-line {
  font-size: clamp(10px, 1vw, 12px);
  color: var(--dim);
  font-style: italic;
  margin-bottom: 10px;
  transition: opacity 0.3s var(--ease);
}
.now-playing.is-changing .now-playing-name,
.now-playing.is-changing .now-playing-line { opacity: 0; }

.seek-row { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- Email subscribe (directly under the scrub bar) ---------- */

.subscribe {
  margin-top: clamp(26px, 4.5vh, 44px);
  width: min(90vw, 420px);
  text-align: center;
}

.subscribe-lead {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--dim);
}

.subscribe-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.subscribe-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  font-size: 12px;
  font-family: inherit;
}
.subscribe-input::placeholder { color: var(--dimmer); }
.subscribe-input:focus { outline: none; border-color: var(--ink); }

.subscribe-submit {
  flex: none;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.subscribe-submit:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.subscribe-submit:disabled { opacity: 0.5; cursor: default; }

.subscribe-status {
  margin: 8px 0 0;
  min-height: 14px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.subscribe-status.is-success { color: #3a8a5c; }
.subscribe-status.is-error { color: #b3403a; }

.subscribe-honeypot { position: absolute; left: -9999px; }

@media (max-width: 480px) {
  .subscribe-row { flex-direction: column; }
  .subscribe-submit { height: 40px; }
}

/* ================================================================
   Writeup text (reused inside the ring-legend accordion panels)
   ================================================================ */

.writeup-eyebrow {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dimmer);
}

.writeup-credit {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 4px;
}

.writeup-body {
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.8;
  color: var(--ink);
  max-width: 68ch;
}

/* ================================================================
   Making of EPIK — media grid
   ================================================================ */

.making-of {
  background: #fbfaf7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 3vh, 40px) clamp(20px, 5vw, 48px) clamp(40px, 8vh, 90px);
}

.section-heading {
  max-width: 1100px;
  margin: 0 auto clamp(28px, 5vh, 48px);
  text-align: center;
}

.section-eyebrow {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dimmer);
  font-weight: 700;
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(20px, 3.4vw, 30px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.media-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.media-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 4 / 5;
}
.media-item.is-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.media-item img, .media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* A native 9:16 clip inside the 4:5 tile box gets cropped top AND bottom
   under the default center object-position. Top-anchoring keeps the full
   top of frame and only trims the bottom excess. */
.media-item .obj-top { object-position: 50% 0%; }
.media-item .obj-cyrena { object-position: 72% 20%; }
.media-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(23,21,26,0.68), transparent);
  color: #f7f5f0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .media-item.is-wide { grid-column: span 1; aspect-ratio: 4/5; }
}

/* ================================================================
   Bios
   ================================================================ */

.bios {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
}

@media (max-width: 800px) {
  .bios { grid-template-columns: 1fr; gap: 40px; }
}

.bio h3 {
  font-size: clamp(16px, 2.2vw, 20px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 12px;
}
.bio p {
  font-size: clamp(12.5px, 1.4vw, 14px);
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 1.1em;
}

/* ================================================================
   Footer (contact + credits only -- the "Hear the Full Album" title,
   CTA and socials moved to the persistent .sticky-footer bar below)
   ================================================================ */

.site-footer {
  padding: clamp(32px, 6vh, 56px) clamp(20px, 5vw, 48px) clamp(24px, 4vh, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  /* clears the fixed sticky-footer bar so its last lines are never hidden
     behind it */
  margin-bottom: var(--sticky-footer-h, 64px);
}

.footer-contact {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.footer-contact a { color: var(--ink); }

.footer-credit {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-top: 8px;
}

/* ================================================================
   Sticky footer: "Hear the Full Album" + CTA + socials, pinned to the
   viewport bottom so it's visible the entire time you scroll, not just
   once you reach the real footer at the very end of the page.
   ================================================================ */

:root { --sticky-footer-h: 64px; }

.sticky-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45; /* above page content, below the gate (50) and invite overlay (60) */
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
}

.sticky-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: var(--sticky-footer-h);
  padding: 0 clamp(14px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  overflow-x: auto;
}

.sticky-footer-title {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

.sticky-footer-cta {
  flex: none;
  padding: 8px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.sticky-footer-cta:hover { background: var(--ink); color: var(--paper); }

.sticky-footer-socials {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sticky-footer-socials .rail-btn { width: 30px; height: 30px; }

/* ================================================================
   Invitation overlay (hover/tap UFO, or ring-lock solved)
   ================================================================ */

.invite-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 245, 240, 0.96);
  padding: 24px;
}
.invite-overlay[hidden] { display: none; }

.invite-panel {
  position: relative;
  max-width: 480px;
  text-align: center;
  padding: clamp(32px, 6vh, 56px) clamp(24px, 5vw, 44px);
}

.invite-eyebrow {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.invite-title {
  font-size: clamp(20px, 3.4vw, 28px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.invite-body {
  font-size: clamp(12.5px, 1.4vw, 14px);
  line-height: 1.7;
  color: var(--dim);
  margin-bottom: 26px;
}

.invite-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.invite-cta:hover { background: var(--ink); color: var(--paper); }

.invite-close {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.invite-close:hover { opacity: 1; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .grain, .ufo-wrap, .floater-a, .floater-b { animation: none; }
  .now-playing-name, .now-playing-line, .vertex { transition: none; }
}

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
  .hero { padding-top: 84px; }
  .hero-stage { width: 78vw; }

  /* On mobile the hero-stage already spans most of the viewport width, so
     the desktop floater-a offset (-14%) coincides almost exactly with the
     screen edge and read as a hard, unintentional clip rather than a
     deliberate bleed. Pull it in so the spiral stays visibly whole; floater-b
     keeps the same right-middle scheme as desktop (already clear of the
     Salidumay vertex there), just pulled in slightly too. */
  .floater-a { top: -3%; left: -3%; }
  .floater-b { top: 40%; right: -4%; }

  .vertex { padding: 8px 12px; }
  .vertex-title { font-size: 9.5px; }
  .vertex-sub { display: none; }
  .vertex-top { top: 10%; }
  .vertex-bl { left: 0%; bottom: 13%; }
  .vertex-br { right: 0%; bottom: 13%; }

  .hdr { padding: 10px 12px; }
  .hdr-controls { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
  .ctrl-btn { height: 30px; padding: 0 7px; }
  .ctrl-btn-label { font-size: 8px; letter-spacing: 0.08em; }
  .vol-slider { width: 46px; }
  /* spatial-hint now lives below the UFO (plenty of room), not the cramped
     header row it used to share -- no need to hide it on mobile anymore */

  .seek-bar { width: 40vw; }

  /* Sticky footer: title label is redundant with the CTA text at this
     width, so drop it first; shrink the CTA and icons so the whole bar
     has a real chance of fitting without needing its overflow-x scroll.
     justify-content switches to flex-start: with `center` on a container
     that overflows, the flex line centers past BOTH edges, but scrollLeft
     can never go negative -- the left-side overflow becomes permanently
     unreachable (measured: 427px content in a 390px box, left edge
     clipped, scrollLeft stuck at 0). flex-start keeps everything reachable
     by starting the content flush left, so any remaining overflow only
     ever extends to the right where scrolling can actually reach it. */
  .sticky-footer-title { display: none; }
  .sticky-footer-inner { gap: 8px; padding: 0 12px; justify-content: flex-start; }
  .sticky-footer-cta { padding: 7px 14px; font-size: 9px; }
  .sticky-footer-socials { gap: 4px; }
  .sticky-footer-socials .rail-btn { width: 27px; height: 27px; }
}
