/* ==========================================================================
   DESDE SIEMPRE — Freddy Alca
   Palette pulled from the cover: dark green-black backdrop, maroon/ember
   light leak, ochre glow, walnut frame, cyan shirt print, rose flowers.
   ========================================================================== */

:root {
  --bg: #0b0f0d;
  --bg-2: #111714;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f3eee6;
  --muted: #a8a197;
  --wood: #8b5a3a;
  --ochre: #d39543;
  --ember: #a8322d;
  --rose: #c94a72;
  --cyan: #4cbbe9;
  --accent: var(--ochre);
  --on-accent: #140d07;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
  --video-opacity: 0.32;
  --fade-from: rgba(11, 15, 13, 0.55);
  --fade-to: #0b0f0d;

  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Pirata One", "UnifrakturCook", Georgia, serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4ede3;
  --bg-2: #ebe1d3;
  --surface: rgba(60, 35, 20, 0.05);
  --surface-hover: rgba(60, 35, 20, 0.1);
  --border: rgba(60, 35, 20, 0.14);
  --text: #1c1410;
  --muted: #6b5d52;
  --accent: #8e4f1f;
  --on-accent: #fff8ef;
  --shadow: 0 30px 70px -25px rgba(60, 30, 10, 0.45);
  --video-opacity: 0.18;
  --fade-from: rgba(244, 237, 227, 0.55);
  --fade-to: #f4ede3;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Never let anything widen the page sideways. Mobile browsers (iOS Safari in
   particular) ignore overflow-x on <body> alone and zoom the page out on first
   load if any layer pokes past the screen edge, which shifts everything left. */
html, body { overflow-x: hidden; max-width: 100%; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { fill: currentColor; }

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

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* ---------- Background: faded YouTube video ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  contain: strict;            /* its layers can never affect page width */
  clip-path: inset(0);        /* hard clip for the blurred poster on mobile Safari */
}

.bg__poster {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 10% 15%, rgba(211, 149, 67, 0.35), transparent 70%),
    radial-gradient(50% 50% at 0% 60%, rgba(168, 50, 45, 0.35), transparent 70%),
    radial-gradient(45% 40% at 95% 90%, rgba(168, 50, 45, 0.22), transparent 70%),
    url(../cover.jpg) center / cover no-repeat;
  filter: blur(60px) saturate(1.2);
  opacity: 0.35;
  transform: scale(1.3); /* bleed past the edges so the blur has no soft border (clipped by .bg) */
}
:root[data-theme="light"] .bg__poster { opacity: 0.25; filter: blur(70px) saturate(0.9); }

.bg__video {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 2.2s var(--ease);
  filter: saturate(0.85) contrast(1.05);
}
.bg__video.is-playing { opacity: var(--video-opacity); }

/* the video always fills the whole viewport, whatever its aspect ratio */
.bg__video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.bg__grain {
  position: absolute; inset: 0;
  opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg__fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 30%, transparent 0%, var(--fade-from) 55%, var(--fade-to) 100%),
    linear-gradient(to bottom, transparent 40%, var(--fade-to) 100%);
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 5vw, 64px) 14px;
  transition: background-color 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-color: var(--border);
}

.brand { display: inline-flex; align-items: center; justify-self: start; text-decoration: none; }

/* ---------- Section navigation ---------- */
.nav__list {
  list-style: none; margin: 0; padding: 4px;
  display: flex; align-items: center; gap: 2px;
  border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav__link {
  position: relative; display: block;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  color: var(--muted); text-decoration: none;
  transition: color 0.25s, background-color 0.25s;
}
.nav__link:hover { color: var(--text); background: var(--surface-hover); }
.nav__link.is-active { color: var(--on-accent); background: var(--accent); }

.chip.nav-toggle { display: none; }
.burger { position: relative; display: block; width: 18px; height: 12px; }
.burger i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease);
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 5px; }
.burger i:nth-child(3) { top: 10px; }
.nav-open .burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-open .burger i:nth-child(2) { opacity: 0; }
.nav-open .burger i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .chip.nav-toggle { display: inline-flex; }
  .topbar { grid-template-columns: 1fr auto; }
  .nav {
    position: fixed; left: 0; right: 0; top: 0; z-index: -1;
    padding: calc(max(14px, env(safe-area-inset-top)) + 62px) clamp(16px, 5vw, 64px) 24px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
    transform: translateY(-100%); visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .nav-open .nav { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
  .nav__list {
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 0; border: 0; border-radius: 0; background: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav__link {
    padding: 14px 18px; border-radius: 14px;
    font-size: 20px; font-weight: 600; color: var(--text);
  }
  .nav__link.is-active { color: var(--on-accent); }
  .nav-open .nav__list li { animation: nav-item 0.5s var(--ease) both; }
  .nav-open .nav__list li:nth-child(2) { animation-delay: 0.05s; }
  .nav-open .nav__list li:nth-child(3) { animation-delay: 0.1s; }
  .nav-open .nav__list li:nth-child(4) { animation-delay: 0.15s; }
  /* keep the bar opaque while the menu is open */
  .topbar.nav-open { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@keyframes nav-item { from { opacity: 0; transform: translateY(-8px); } }
.logo {
  height: 44px; width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s var(--ease);
}
.brand:hover .logo { transform: rotate(-3deg) scale(1.04); }
/* logos are white artwork: flip to near-black on the light theme */
:root[data-theme="light"] .logo,
:root[data-theme="light"] .footer__label { filter: invert(0.9); }
.topbar__actions { display: flex; gap: 8px; justify-self: end; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { background: var(--surface-hover); }
.chip:active { transform: scale(0.96); }
.chip--icon { width: 40px; padding: 0; justify-content: center; }
.chip svg { width: 18px; height: 18px; }

.i-sun { display: none; }
:root[data-theme="light"] .i-sun { display: block; }
:root[data-theme="light"] .i-moon { display: none; }

/* equalizer bars on the sound button */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; }
#sound-toggle[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
#sound-toggle[aria-pressed="true"] .eq i { animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s !important; }
.eq i:nth-child(3) { animation-delay: -0.6s !important; }
.eq i:nth-child(4) { animation-delay: -0.15s !important; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ---------- Hero ---------- */
main { position: relative; }
/* the spinning vinyl's square box sweeps wider than the disc; keep it inside the hero */
@supports (overflow: clip) { .hero { overflow-x: clip; } }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: 1240px; margin: 0 auto;
  padding: 110px clamp(16px, 5vw, 64px) 72px;
}

/* album art + vinyl */
.hero__art { display: flex; justify-content: flex-start; perspective: 1400px; }

.art {
  position: relative;
  width: min(74%, 500px); /* leaves room for the vinyl peeking out to the right */
  aspect-ratio: 1;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
}

/* ---- flip card (front cover / back tracklist) ---- */
.flip {
  position: relative; z-index: 2; display: block;
  width: 100%; height: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; perspective: 1800px;
  -webkit-tap-highlight-color: transparent;
}
.flip:focus-visible { outline-offset: 6px; }
.flip__inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.25, 1);
}
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: absolute; inset: 0; display: block;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.flip__face--back { transform: rotateY(180deg); }

.art__cover {
  display: block; width: 100%; height: 100%; object-fit: cover;
}

/* "Click Here" hint */
.flip__hint {
  position: absolute; z-index: 4; left: 50%; top: 50%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 94%, transparent);
  color: var(--on-accent);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translate(-50%, -40%) scale(0.92);
  transition: opacity 0.3s, transform 0.4s var(--ease);
  pointer-events: none;
}
.flip__hint svg { width: 16px; height: 16px; }
.flip::after { /* soft darkening behind the hint */
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 6px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.35), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.flip:hover .flip__hint, .flip:focus-visible .flip__hint { opacity: 1; transform: translate(-50%, -50%); }
.flip:hover::after, .flip:focus-visible::after { opacity: 1; }
.flip.is-flipped .flip__hint, .flip.is-flipped::after { opacity: 0 !important; }
/* touch screens have no hover: keep a small hint pinned to the bottom */
@media (hover: none) {
  .flip__hint { top: auto; bottom: 14px; opacity: 0.95; transform: translate(-50%, 0) scale(0.85); }
}

.art__shine {
  position: absolute; inset: 0; z-index: 3; border-radius: 6px; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, 0.18), transparent 45%);
  mix-blend-mode: soft-light;
}

.vinyl {
  position: absolute; z-index: 1;
  top: 4%; left: 4%; width: 92%; aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 30%, rgba(255, 255, 255, 0.05) 30.5% 31%, transparent 31.5%),
    repeating-radial-gradient(circle, #0a0a0a 0 2px, #161616 2px 3px),
    #0d0d0d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  translate: 0 0; /* `translate` composes outside `rotate`, so the slide isn't spun */
  transition: translate 1.1s var(--ease);
  animation: spin 6s linear infinite;
  animation-play-state: paused;
}
.vinyl::after { /* light reflection on the grooves */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 10%, rgba(255, 255, 255, 0.09) 15%, transparent 22% 55%, rgba(255, 255, 255, 0.07) 62%, transparent 70%);
}
.vinyl__label {
  position: absolute; inset: 33%; border-radius: 50%;
  background-size: cover; background-position: center;
  box-shadow: 0 0 0 3px #0d0d0d;
}
.vinyl__label::after {
  content: ""; position: absolute; inset: 44%; border-radius: 50%; background: var(--bg);
}

.art.is-in .vinyl { translate: 34% 0; animation-play-state: running; }

@keyframes spin { to { rotate: 360deg; } }

/* text column */
.hero__info { position: relative; z-index: 2; min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 0 0 rgba(168, 50, 45, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(168, 50, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 50, 45, 0); }
}

.title { margin: 0; line-height: 0.85; font-weight: 400; }
.title__small {
  display: block;
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(18px, 2.4vw, 26px); letter-spacing: 0.35em; text-transform: uppercase;
  margin-bottom: 6px; padding-left: 4px;
}
.title__big {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 168px);
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--accent) 70%, var(--text)) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.artist {
  margin: 14px 0 0;
  font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent);
}

/* Project description: ~100 words visible, the rest scrolls inside the box */
.lede-wrap { position: relative; max-width: 54ch; margin: 22px 0 0; }
.lede {
  max-height: var(--lede-max, 15.5em);
  overflow-y: auto; overscroll-behavior: contain;
  padding-right: 14px;
  color: var(--muted); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.65;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
  /* fade the bottom edge while there is more to read */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
  transition: -webkit-mask-image 0.3s;
}
.lede.is-end { -webkit-mask-image: none; mask-image: none; }
.lede p { margin: 0 0 1em; }
.lede p:last-child { margin-bottom: 0.25em; }
.lede em, .lede strong { color: var(--text); }
.lede:focus-visible { outline-offset: 6px; }
.lede::-webkit-scrollbar { width: 4px; }
.lede::-webkit-scrollbar-track { background: var(--border); border-radius: 4px; }
.lede::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.lede-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  transition: opacity 0.3s;
}
.lede-more svg { width: 16px; height: 16px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.lede-wrap.is-read .lede-more { opacity: 0; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--accent); }
.btn--ghost { background: var(--surface); border-color: var(--border); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: var(--surface-hover); }

/* ---------- Streaming list ---------- */
.listen {
  max-width: 980px; margin: 0 auto;
  padding: 40px clamp(16px, 5vw, 64px) 72px;
  scroll-margin-top: 70px;
}

.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 {
  margin: 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em;
}
.section-head p { margin: 10px 0 0; color: var(--muted); }

.platforms {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}

.platform {
  --brand: var(--accent);
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  min-height: 72px; padding: 14px 16px 14px 18px;
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.25s, background-color 0.25s;
}
.platform::before { /* brand-coloured wash on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.platform:hover, .platform:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  background: var(--surface-hover);
}
.platform:hover::before, .platform:focus-visible::before { opacity: 1; }

.platform__icon {
  flex: none; width: 40px; height: 40px;
  border-radius: 12px; padding: 0;
  color: var(--text);
  transition: color 0.25s;
}
.platform:hover .platform__icon { color: var(--brand); }

.platform__name { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; }

.platform__go {
  flex: none;
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.platform:hover .platform__go { background: var(--brand); border-color: var(--brand); color: #0b0b0b; }

/* brand icons from Simple Icons, tinted with currentColor via CSS mask */
.si {
  display: inline-block; background-color: currentColor;
  -webkit-mask: var(--si) center / 70% no-repeat;
  mask: var(--si) center / 70% no-repeat;
}

/* ---------- Showcase carousels (photos + videos) ---------- */
.showcase {
  /* full-bleed strip; content edges line up with the 1240px layout */
  --gutter: max(clamp(16px, 5vw, 64px), calc((100% - 1240px) / 2 + 64px));
  padding: 24px 0 96px;
  scroll-margin-top: 70px;
}
.showcase--photos { padding-bottom: 72px; }
.showcase__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); margin-bottom: 24px;
}
.showcase__head .eyebrow { margin-bottom: 8px; }
.showcase__head h2 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.carousel__nav { display: flex; gap: 8px; flex: none; }
.carousel__nav svg { width: 22px; height: 22px; }

.carousel { position: relative; }
.carousel__track {
  list-style: none; margin: 0;
  display: flex; gap: clamp(14px, 2vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px var(--gutter) 20px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: 0 0 clamp(270px, 40vw, 540px);
  scroll-snap-align: start;
}

.video-card {
  display: block; width: 100%; padding: 0; text-align: left;
  background: none; border: 0; cursor: pointer;
}
.video-card__thumb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.8);
}
.video-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s;
  filter: saturate(0.9) brightness(0.85);
}
.video-card__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 50%);
}
.video-card__play {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 92%, transparent);
  color: var(--on-accent);
  transform: translate(-50%, -50%) scale(0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease);
}
.video-card__play svg { width: 30px; height: 30px; margin-left: 3px; }
.video-card:hover .video-card__thumb img,
.video-card:focus-visible .video-card__thumb img { transform: scale(1.05); filter: saturate(1.05) brightness(1); }
.video-card:hover .video-card__play,
.video-card:focus-visible .video-card__play { transform: translate(-50%, -50%) scale(1.08); }

.video-card__meta { display: block; padding: 14px 4px 0; }
.video-card__title { display: block; font-weight: 700; font-size: clamp(17px, 1.6vw, 20px); }
.video-card__sub {
  display: block; margin-top: 2px; color: var(--muted); font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* photo cards (portrait) */
.showcase--photos .carousel__slide { flex-basis: clamp(200px, 21vw, 300px); }
.photo-card {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 2 / 3; overflow: hidden; cursor: zoom-in;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.8);
}
.photo-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) brightness(0.9);
  transition: transform 0.8s var(--ease), filter 0.4s;
}
.photo-card::after { /* expand icon */
  content: ""; position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 92%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23140d07'%3E%3Cpath d='M5 5h6v2H8.4l3.3 3.3-1.4 1.4L7 8.4V11H5zm14 14h-6v-2h2.6l-3.3-3.3 1.4-1.4 3.3 3.3V13h2z'/%3E%3C/svg%3E") center / 20px no-repeat;
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.3s, transform 0.35s var(--ease);
}
.photo-card:hover img, .photo-card:focus-visible img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.photo-card:hover::after, .photo-card:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .photo-card::after { opacity: 0.9; transform: scale(0.85); } }

.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.carousel__dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--border);
  transition: width 0.35s var(--ease), background-color 0.3s;
}
.carousel__dots button[aria-current="true"] { width: 28px; background: var(--accent); }

/* ---------- Video popup ---------- */
.modal {
  width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible;
}
.modal::backdrop {
  background: rgba(5, 7, 6, 0.86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal[open] { animation: modal-in 0.45s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.35s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }

.modal__inner { position: relative; }
.modal__player {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9);
}
.modal__player iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__title { margin: 14px 4px 0; font-weight: 600; color: #f3eee6; }
.modal__close { position: absolute; top: -52px; right: 0; color: #f3eee6; }
.modal__close svg { width: 20px; height: 20px; }

/* ---------- Photo viewer popup ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: transparent; color: #f3eee6;
}
.lightbox::backdrop {
  background: rgba(5, 7, 6, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lightbox[open]::backdrop { animation: fade-in 0.35s ease; }
.lightbox__figure {
  margin: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px clamp(16px, 8vw, 110px) 52px;
}
.lightbox__img {
  /* fit the whole photo inside the viewport, minus padding + caption room */
  max-width: 100%; max-height: calc(100dvh - 116px - var(--cap-h, 0px)); width: auto; height: auto;
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9);
  user-select: none; -webkit-user-drag: none;
}
.lightbox__img.is-in { animation: modal-in 0.45s var(--ease); }
.lightbox--captioned { --cap-h: 92px; }

/* caption: only exists inside the viewer, never on the strip */
.lightbox__caption {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  max-width: 560px; margin-top: 18px; text-align: center;
}
.lightbox__caption[hidden] { display: none; }
.lightbox__caption.is-in { animation: caption-in 0.7s var(--ease) 0.12s both; }
@keyframes caption-in { from { opacity: 0; transform: translateY(8px); letter-spacing: 0.02em; } }
.lightbox__rule {
  width: 36px; height: 1px; margin-bottom: 4px;
  background: linear-gradient(90deg, transparent, var(--ochre), transparent);
}
.lightbox__text {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(19px, 1.8vw, 24px); line-height: 1.3;
  color: #f3eee6;
  text-wrap: balance;
}
.lightbox__credit {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: #8f887e;
}
.lightbox__close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; color: #f3eee6; }
.lightbox__close svg, .lightbox__arrow svg { width: 22px; height: 22px; }
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; color: #f3eee6;
}
.lightbox__arrow:active { transform: translateY(-50%) scale(0.94); }
.lightbox__arrow--prev { left: clamp(8px, 2vw, 32px); }
.lightbox__arrow--next { right: clamp(8px, 2vw, 32px); }
.lightbox__count {
  position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); margin: 0;
  text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: #a8a197;
}
@media (max-width: 640px) {
  .lightbox__figure { padding: 64px 12px 72px; }
  .lightbox__img { max-height: calc(100dvh - 136px - var(--cap-h, 0px)); }
  .lightbox--captioned { --cap-h: 84px; }
  .lightbox__caption { padding: 0 8px; }
  .lightbox__arrow { top: auto; bottom: max(8px, env(safe-area-inset-bottom)); transform: none; width: 44px; height: 44px; }
  .lightbox__arrow:active { transform: scale(0.94); }
  .lightbox__arrow--prev { left: 16px; }
  .lightbox__arrow--next { right: 16px; }
}

/* ---------- Footer ---------- */
.footer__label {
  display: block; margin: 0 auto 40px;
  width: clamp(120px, 14vw, 170px); height: auto;
}
.footer {
  text-align: center;
  padding: 72px 16px max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg-2) 80%, transparent));
}
.footer__kicker {
  margin: 0 0 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted);
}
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.socials a {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.socials a .si { width: 24px; height: 24px; -webkit-mask-size: contain; mask-size: contain; }
.socials a:hover { transform: translateY(-3px); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.footer__legal { margin: 36px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 96px;
    min-height: auto;
  }
  /* stacked layout: cover perfectly centered, vinyl slides out from the bottom */
  .art { --art-w: min(76vw, 420px); width: var(--art-w); }
  .art.is-in .vinyl { translate: 0 22%; }
  .hero__art { justify-content: center; padding: 0 0 calc(var(--art-w, 76vw) * 0.17); }
  .hero__art { --art-w: min(76vw, 420px); }
  .eyebrow { justify-content: center; }
  .lede-wrap { margin-left: auto; margin-right: auto; }
  /* long text reads better left-aligned, inside the centered box */
  .lede { text-align: left; }
  .cta { justify-content: center; }
}

@media (max-width: 640px) {
  /* one consistent side gutter for every block on phones */
  .topbar, .hero, .listen, .footer, .nav { padding-left: 20px; padding-right: 20px; }
  .showcase { --gutter: 20px; }

  /* section labels: stay on one line so headings line up */
  .showcase__head .eyebrow {
    display: block; font-size: 11px; letter-spacing: 0.16em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .showcase__head > div { min-width: 0; }
  .showcase__head h2 { font-size: 26px; }
  .showcase { padding-bottom: 64px; }
  .showcase--photos { padding-bottom: 48px; }
  .carousel__track { padding-bottom: 12px; }
  .carousel__dots { margin-top: 4px; }

  .hero { padding-top: 88px; padding-bottom: 56px; gap: 32px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.16em; }
  .section-head { margin-bottom: 28px; }
  .listen { padding-top: 24px; padding-bottom: 56px; }
  .platform { min-height: 64px; padding: 12px 12px 12px 14px; gap: 12px; }
  .platform__icon { width: 36px; height: 36px; }

  .platforms { grid-template-columns: 1fr; }
  .chip__label { display: none; }
  .chip#sound-toggle { width: 40px; padding: 0; justify-content: center; }
  .btn { flex: 1 1 100%; }
  .logo { height: 36px; }
  .carousel__slide { flex-basis: 84%; }
  .showcase--photos .carousel__slide { flex-basis: 62%; }
  .video-card__play { width: 56px; height: 56px; }
}

/* very narrow phones (≤ 400px, e.g. iPhone SE / small Android) */
@media (max-width: 400px) {
  .topbar, .hero, .listen, .footer, .nav { padding-left: 16px; padding-right: 16px; }
  .showcase { --gutter: 16px; }
  .showcase__head { gap: 10px; }
  .showcase__head h2 { font-size: 22px; white-space: nowrap; }
  .showcase__head .eyebrow { font-size: 10px; letter-spacing: 0.1em; }
  .carousel__nav { gap: 6px; }
  .carousel__nav .chip--icon { width: 36px; height: 36px; }
  .section-head h2 { font-size: 24px; }
  .topbar__actions { gap: 6px; }
  .topbar .chip--icon, .chip#sound-toggle { width: 38px; height: 38px; }
  .logo { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
