/* ==========================================================================
   BABY OF THE BAND — companion site to the memoir
   Design system inspired by Nedavius (warm paper, torn edges, tiny logomark)
   and Meer Mohsin (single loud accent, marquee, custom cursor, motion).
   Warm cream + Philly heat.
   ========================================================================== */

:root {
  /* palette */
  --bone: #f1e9da;
  --bone-soft: #fbf6ec;
  --ink: #1a1613;
  --ink-70: rgba(26, 22, 19, 0.7);
  --ink-40: rgba(26, 22, 19, 0.4);
  --ink-15: rgba(26, 22, 19, 0.15);
  --heat: #e5541a;
  --heat-soft: #f28a4d;
  --gold: #d9a441;
  --gold-deep: #a8791c;
  --sepia: #6b4a2b;
  --deep: #264653;
  /* cosmic — Sun Ra layer, painterly cobalt + antique gold */
  --cobalt: #1a3f7a;
  --cobalt-deep: #0f2a55;
  --cobalt-ink: #061530;
  --parchment: #f4ecd8;

  /* type */
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Space Grotesk", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* rhythm */
  --wrap: 1240px;
  --pad-x: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--heat);
}

button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

em {
  font-family: var(--serif);
  font-style: italic;
}

/* ------- paper grain ------- */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.10 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0.14 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ------- custom cursor ------- */
.cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--heat);
  transform: translate(-50%, -50%);
  transition:
    width 0.25s ease,
    height 0.25s ease,
    background 0.2s ease,
    opacity 0.25s ease;
  z-index: 999;
  mix-blend-mode: multiply;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-playable {
  width: 44px;
  height: 44px;
  background: var(--heat);
}
@media (hover: none) { .cursor { display: none; } }

/* ==========================================================================
   MASTHEAD
   ========================================================================== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: 22px var(--pad-x);
  background: color-mix(in oklab, var(--bone) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.mark {
  width: 34px;
  height: 34px;
  color: var(--ink);
  flex: none;
}
.mark--big { width: 56px; height: 56px; }

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  display: grid;
}
.wordmark span { display: block; }
.wordmark .dot {
  color: var(--heat);
  font-style: normal;
  font-family: var(--serif);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 32px);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--heat);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover::after { transform: scaleX(1); }

.film-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
.film-cta:hover {
  background: var(--ink);
  color: var(--bone);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--heat);
  box-shadow: 0 0 0 0 var(--heat);
  animation: pulse 2.4s ease-out infinite;
  display: inline-block;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--heat) 55%, transparent); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .masthead { grid-template-columns: auto 1fr; }
  .film-cta { grid-column: 2; justify-self: end; padding: 8px 14px; font-size: 12px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 72px);
  overflow: hidden;
}

.hero__marquee {
  overflow: hidden;
  padding: 8px 0;
  border-top: 1px solid var(--ink-15);
  border-bottom: 1px solid var(--ink-15);
  margin-bottom: clamp(24px, 3vw, 40px);
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.hero__track {
  display: inline-flex;
  gap: clamp(20px, 3vw, 48px);
  animation: marquee 60s linear infinite;
  padding-right: clamp(20px, 3vw, 48px);
}

.hero__dot {
  color: var(--heat);
  font-style: normal;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.5vw, 32px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sepia);
}
.hero__eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--sepia);
  display: inline-block;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.hero__title .line {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  position: relative;
  width: fit-content;
}
.hero__title .line:hover,
.hero__title .line:focus-visible {
  color: var(--heat);
  outline: none;
}
.hero__title .line:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.hero__title .line--italic {
  font-style: italic;
  font-weight: 600;
  color: var(--sepia);
}
.hero__title .line--italic:hover,
.hero__title .line--italic:focus-visible { color: var(--heat); }
.hero__title .line--heat {
  color: var(--heat);
  font-weight: 900;
}
.hero__title .line--heat:hover,
.hero__title .line--heat:focus-visible { color: var(--deep); }

.hero__lede {
  max-width: 60ch;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.5;
  color: var(--ink-70);
  margin: 0;
}

/* the portrait card */
.hero__portrait {
  position: relative;
  margin: clamp(24px, 3vw, 40px) auto 0;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

/* ------- Hero gallery: 6 photos in a horizontal row, congas anchored center ------- */
.hero__gallery {
  position: relative;
  margin: clamp(32px, 5vw, 64px) auto clamp(24px, 3vw, 40px);
  max-width: 1600px;
  width: 100%;
  padding: 0 clamp(12px, 3vw, 40px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 22px);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 60px;
}
.hero__gallery::-webkit-scrollbar { display: none; }

.hero-photo {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  width: clamp(100px, 10vw, 155px);
  padding: 8px 8px 34px;
  background: var(--bone-soft, #f7f2e9);
  border: 1px solid var(--ink-15, rgba(26, 22, 19, 0.15));
  box-shadow:
    0 20px 44px -22px rgba(26, 22, 19, 0.45),
    0 6px 16px -10px rgba(26, 22, 19, 0.4);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.5s ease;
  scroll-snap-align: center;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.02) saturate(1.02);
  background: var(--bone-soft, #f7f2e9);
}
.hero-photo--bw img { filter: grayscale(1) contrast(1.05); }
.hero-photo figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sepia, #7a5e3b);
  text-align: center;
  line-height: 1.4;
}
.hero-photo--tilt-l { transform: rotate(-2deg); }
.hero-photo--tilt-r { transform: rotate(2deg); }
.hero-photo:hover {
  transform: rotate(0) translateY(-8px) scale(1.03);
  box-shadow:
    0 32px 60px -22px rgba(26, 22, 19, 0.55),
    0 10px 22px -12px rgba(26, 22, 19, 0.45);
  z-index: 3;
}

/* Congas — the anchor. Wider (landscape), taller, front and center. */
.hero-photo--center {
  width: clamp(280px, 30vw, 440px);
  transform: none;
  padding: 14px 14px 84px;
  background: var(--bone, #fbf7ee);
  border: 1px solid var(--ink-15, rgba(26, 22, 19, 0.2));
  box-shadow:
    0 40px 80px -28px rgba(26, 22, 19, 0.55),
    0 14px 30px -14px rgba(26, 22, 19, 0.45);
  z-index: 2;
  order: 0;
}
.hero-photo--center img {
  aspect-ratio: 2509 / 1400;
  object-fit: cover;
  background: var(--ink, #1a1613);
  filter: contrast(1.05) saturate(1.05);
}
.hero-photo--center figcaption {
  left: 18px; right: 18px; bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.hero-photo--center figcaption .quote {
  font-family: var(--serif, Georgia, serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  line-height: 1.4;
}
.hero-photo--center .play {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  margin: 0;
  z-index: 4;
}
.hero-photo--center:hover { transform: translateY(-6px); }

/* Tablet: shrink flanking photos, keep congas dominant, allow horizontal scroll */
@media (max-width: 1024px) {
  .hero__gallery {
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-photo { width: clamp(120px, 20vw, 170px); }
  .hero-photo--center { width: clamp(300px, 55vw, 480px); }
}

/* Mobile: single-column stack. Congas first (anchor), then user's requested order. */
@media (max-width: 640px) {
  .hero__gallery {
    flex-direction: column;
    flex-wrap: wrap;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0 12px 40px;
    gap: 22px;
    align-items: stretch;
  }
  .hero-photo {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    transform: none;
  }
  .hero-photo--tilt-l,
  .hero-photo--tilt-r { transform: none; }
  .hero-photo--center {
    width: 100%;
    max-width: 560px;
    order: -1;
    padding-bottom: 100px;
  }
  .hero-photo--center img { aspect-ratio: 2509 / 1400; }
  .hero-photo--center figcaption { bottom: 62px; }
  .hero-photo--center .play { bottom: 16px; }
}

.hero__portrait img {
  width: 100%;
  max-width: 320px;
  border-radius: 2px;
  box-shadow:
    0 30px 60px -30px rgba(26, 22, 19, 0.35),
    0 8px 22px -14px rgba(26, 22, 19, 0.4);
}

.hero__quote {
  position: relative;
  margin: 24px auto 0;
  max-width: 520px;
  background: var(--bone-soft);
  padding: 26px 30px 22px;
  border: 1px solid var(--ink-15);
  box-shadow: 0 20px 40px -24px rgba(26, 22, 19, 0.35);
  transform: rotate(-1.2deg);
  text-align: left;
}
.hero__quote blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.hero__quote figcaption {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sepia);
}
.hero__quote .who {
  color: var(--heat);
  font-weight: 500;
}

.play {
  position: relative;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 14px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.3s ease, background 0.3s ease;
}
.play svg {
  width: 20px;
  height: 20px;
  background: var(--heat);
  border-radius: 999px;
  padding: 6px;
  color: var(--bone);
}
.play__label { font-weight: 500; }
.play__time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bone) 75%, transparent);
  padding-left: 12px;
  border-left: 1px solid color-mix(in oklab, var(--bone) 30%, transparent);
}
.play__ring {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid var(--heat);
  opacity: 0;
  transition: opacity 0.3s ease, inset 0.4s ease;
}
.play:hover {
  transform: translateY(-2px);
  background: var(--deep);
}
.play:hover .play__ring {
  opacity: 1;
  inset: -10px;
}

/* ==========================================================================
   SHARED SECTION SCAFFOLDING
   ========================================================================== */
.section-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--heat);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.section-title em {
  color: var(--heat);
  font-weight: 700;
}
.section-lede {
  margin-top: 22px;
  max-width: 60ch;
  font-size: clamp(16px, 1.15vw, 18px);
  color: var(--ink-70);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  color: var(--ink);
  margin-top: 28px;
  transition: color 0.3s ease;
}
.text-link:hover { color: var(--heat); }

/* ==========================================================================
   DOORS
   ========================================================================== */
.doors {
  padding: clamp(40px, 5vw, 72px) var(--pad-x) clamp(60px, 7vw, 100px);
  max-width: var(--wrap);
  margin: 0 auto;
}
.doors__head { margin-bottom: clamp(32px, 4vw, 48px); }

.doors__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.door {
  grid-column: span 3;
  position: relative;
}
.door--wide { grid-column: span 3; }
.door > a {
  display: block;
  height: 100%;
  min-height: 320px;
  padding: 32px 28px 28px;
  background: var(--bone-soft);
  border: 1px solid var(--ink-15);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    background 0.4s ease;
}
.door > a::before {
  /* torn top edge */
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 14px;
  background:
    radial-gradient(circle at 6px 100%, var(--bone) 4px, transparent 5px) repeat-x,
    var(--bone-soft);
  background-size: 12px 14px, auto;
}
.door > a:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 30px 60px -30px rgba(26, 22, 19, 0.3);
  background: var(--bone);
}
.door__num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--heat);
  margin-bottom: 32px;
}
.door__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1;
  margin-bottom: 14px;
}
.door__desc {
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 28px;
}
.door__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sepia);
}
.door__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--sepia);
}
.door__arrow {
  position: absolute;
  right: 24px;
  bottom: 22px;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--heat);
  transition: transform 0.4s ease;
}
.door > a:hover .door__arrow { transform: translateX(6px); }

@media (max-width: 1100px) {
  .door, .door--wide { grid-column: span 6; }
}
@media (max-width: 640px) {
  .door, .door--wide { grid-column: span 12; }
}

/* ==========================================================================
   LEDGER — the tapes
   ========================================================================== */
.ledger {
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
  max-width: var(--wrap);
  margin: 0 auto;
  border-top: 1px solid var(--ink-15);
}
.ledger__head { margin-bottom: 40px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.chip {
  padding: 8px 16px;
  border: 1px solid var(--ink-15);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-70);
  background: transparent;
  transition: all 0.25s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.chip--theme { color: var(--heat); border-color: color-mix(in oklab, var(--heat) 40%, transparent); }
.chip--theme:hover { background: var(--heat); color: var(--bone); border-color: var(--heat); }

.tapes {
  list-style: none;
  border-top: 1px solid var(--ink-15);
  margin-top: 32px;
}
.tape-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 4px;
  border-bottom: 1px solid var(--ink-15);
  transition: background 0.3s ease, padding 0.3s ease;
}
.tape-row:hover {
  background: var(--bone-soft);
  padding-left: 16px;
  padding-right: 16px;
}
.tape-row__id {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sepia);
}
.tape-row__body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  margin-bottom: 6px;
}
.tape-row__body p {
  color: var(--ink-70);
  font-size: 14px;
  line-height: 1.5;
  max-width: 60ch;
}
.tape-row__meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sepia);
}
.pill {
  padding: 3px 8px;
  border: 1px solid var(--ink-15);
  border-radius: 3px;
  color: var(--ink);
}
.pill--theme {
  color: var(--heat);
  border-color: color-mix(in oklab, var(--heat) 40%, transparent);
}

.tape-row--feature { background: var(--bone-soft); padding-left: 16px; padding-right: 16px; }
.tape-row--feature .tape-row__id { color: var(--heat); }
.tape-row--feature .tape-row__body h3 { color: var(--heat); }

.mini-play {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}
.mini-play svg { width: 16px; height: 16px; }
.mini-play:hover {
  background: var(--heat);
  border-color: var(--heat);
  color: var(--bone);
  transform: scale(1.08);
}

.see-all {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--heat);
  border-bottom: 1px solid var(--heat);
  padding-bottom: 3px;
}

@media (max-width: 640px) {
  .tape-row {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }
  .mini-play { grid-column: 2; grid-row: 2; justify-self: end; }
}

/* ==========================================================================
   LOOK — mosaic
   ========================================================================== */
.look {
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
  max-width: var(--wrap);
  margin: 0 auto;
  border-top: 1px solid var(--ink-15);
}
.look__head { margin-bottom: 48px; }

.look__mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.look__mosaic--sunra { margin-top: 20px; }
.look__figure {
  position: relative;
  overflow: hidden;
  background: var(--bone-soft);
  border: 1px solid var(--ink-15);
}
.look__figure--big { grid-row: span 2; }
.look__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.look__figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  padding: 10px 14px;
  background: var(--bone-soft);
  border: 1px solid var(--ink-15);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sepia);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.look__placeholder {
  aspect-ratio: 4 / 5;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(217, 164, 65, 0.18), transparent 60%),
    var(--bone-soft);
  border-bottom: 3px solid var(--heat);
}
.look__placeholder .tape {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heat);
  margin-bottom: 12px;
}
.look__placeholder p {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
}
.look__placeholder .hint {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--sepia);
  font-weight: 400;
}

/* --- Rowhouses mosaic: 3-up with the first hero-sized --- */
.look__mosaic--rowhouses {
  grid-template-columns: 2fr 1fr 1fr;
  margin-top: 20px;
}
.look__mosaic--rowhouses .look__figure { aspect-ratio: 4 / 5; }
.look__mosaic--rowhouses .look__figure--big { grid-row: auto; aspect-ratio: 4 / 5; }

/* --- Family section: intro + masonry-ish gallery --- */
.look__familyhead {
  margin-top: 72px;
  margin-bottom: 24px;
  max-width: 720px;
}
.look__familyhead-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 10px;
}
.look__familyhead-lede {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--sepia);
  margin: 0;
}

.look__mosaic--family {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.look__mosaic--family .look__figure {
  aspect-ratio: auto;
  grid-row: span 1;
}
/* Vary sizing to feel curated (masonry-lite) */
.look__mosaic--family .look__figure:nth-child(4n+1) { grid-row: span 2; }
.look__mosaic--family .look__figure:nth-child(6n+3) { grid-column: span 2; }
.look__mosaic--family .look__figure:nth-child(10n+7) { grid-row: span 2; }
.look__mosaic--family .look__figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* --- Art filter: subtle editorial warmth applied to any .look__figure--art --- */
.look__figure--art .look__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.look__figure--art img {
  filter:
    saturate(0.9)
    contrast(1.08)
    sepia(0.14)
    brightness(1.02);
  transition: filter 420ms ease, transform 700ms ease;
  will-change: filter, transform;
}
.look__figure--art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(30, 20, 10, 0.28) 100%),
    linear-gradient(180deg, rgba(217, 164, 65, 0.05), rgba(0,0,0,0) 40%);
  mix-blend-mode: multiply;
  transition: opacity 420ms ease;
}
.look__figure--art:hover img,
.look__figure--art:focus-within img {
  filter: saturate(1.05) contrast(1.02) sepia(0) brightness(1.03);
  transform: scale(1.03);
}
.look__figure--art:hover::after,
.look__figure--art:focus-within::after { opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
  .look__figure--art img { transition: none; }
  .look__figure--art:hover img,
  .look__figure--art:focus-within img { transform: none; }
}

@media (max-width: 1024px) {
  .look__mosaic--rowhouses { grid-template-columns: 1fr 1fr; }
  .look__mosaic--rowhouses .look__figure--big { grid-column: span 2; }
  .look__mosaic--family { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 800px) {
  .look__mosaic { grid-template-columns: 1fr; }
  .look__figure--big { grid-row: auto; }
  .look__mosaic--rowhouses { grid-template-columns: 1fr; }
  .look__mosaic--rowhouses .look__figure--big { grid-column: auto; }
  .look__mosaic--family { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .look__mosaic--family .look__figure:nth-child(4n+1),
  .look__mosaic--family .look__figure:nth-child(6n+3),
  .look__mosaic--family .look__figure:nth-child(10n+7) { grid-row: span 1; grid-column: span 1; }
  .look__mosaic--family .look__figure:nth-child(5n+1) { grid-row: span 2; }
}

/* ==========================================================================
   WATCH — the film signup
   ========================================================================== */
.watch {
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
  background: var(--deep);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.watch::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 100%, rgba(229, 84, 26, 0.24), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(217, 164, 65, 0.18), transparent 50%);
  pointer-events: none;
}
.watch__frame {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.watch .section-num { color: var(--heat-soft); }
.watch .section-title {
  color: var(--bone);
  font-size: clamp(48px, 6vw, 88px);
}
.watch .section-title em {
  color: var(--heat-soft);
  font-weight: 700;
}
.watch__lede {
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: color-mix(in oklab, var(--bone) 82%, transparent);
  max-width: 55ch;
}

.signup { margin-top: 48px; }
.signup__label {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.signup__label span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  color: color-mix(in oklab, var(--bone) 65%, transparent);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

.signup__row {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid color-mix(in oklab, var(--bone) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bone) 6%, transparent);
  max-width: 520px;
  transition: border-color 0.3s ease;
}
.signup__row:focus-within {
  border-color: var(--heat-soft);
}
.signup__row input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 10px 16px;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
}
.signup__row input::placeholder {
  color: color-mix(in oklab, var(--bone) 50%, transparent);
}
.signup__row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--heat);
  color: var(--bone);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: transform 0.3s ease, background 0.3s ease;
}
.signup__row button:hover {
  transform: translateY(-1px);
  background: var(--heat-soft);
}
.signup__row button svg { width: 18px; height: 18px; }

.signup__sent {
  display: none;
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--heat-soft);
}
.signup.is-sent .signup__row { display: none; }
.signup.is-sent .signup__sent { display: block; }

.signup__note {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bone) 55%, transparent);
  max-width: 60ch;
}
.signup__note .tape {
  color: var(--heat-soft);
  margin-right: 8px;
}
.signup__note em {
  font-style: italic;
  color: color-mix(in oklab, var(--bone) 75%, transparent);
}

/* ==========================================================================
   SUN RA — timeline
   ========================================================================== */
.sunra {
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
  max-width: var(--wrap);
  margin: 0 auto;
}
.sunra__head { margin-bottom: 48px; }

.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--ink-15);
  padding-top: 32px;
}
.timeline li {
  padding: 24px 20px 20px;
  background: var(--bone-soft);
  border-top: 3px solid var(--heat);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline__year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heat);
}
.timeline p {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
}

/* ==========================================================================
   MEMOIR
   ========================================================================== */
.memoir {
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
  max-width: var(--wrap);
  margin: 0 auto;
  border-top: 1px solid var(--ink-15);
}
.memoir__frame { max-width: 760px; }
.memoir__quote {
  margin-top: 28px;
  padding-left: 24px;
  border-left: 3px solid var(--heat);
}
.memoir__quote p {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.35;
  color: var(--ink);
}
.memoir__quote cite {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sepia);
}
.memoir__quote cite .tape { color: var(--heat); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(56px, 6vw, 88px) var(--pad-x) 32px;
}
.foot__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.foot__brand .mark { color: var(--bone); }
.foot__tag {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  max-width: 28ch;
  color: color-mix(in oklab, var(--bone) 88%, transparent);
}
.foot__tag strong { color: var(--heat-soft); font-weight: 600; }
.foot__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heat-soft);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot__col a {
  display: block;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: color-mix(in oklab, var(--bone) 82%, transparent);
}
.foot__col a:hover { color: var(--heat-soft); }
.foot__legal {
  max-width: var(--wrap);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--bone) 15%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bone) 50%, transparent);
}
.foot__legal em { color: color-mix(in oklab, var(--bone) 70%, transparent); }

@media (max-width: 800px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   CHAPTERS — scroll-driven chapter labels
   Big serif Roman numerals + name pin at top edge as you enter each section.
   Corner-fixed chapter tag stays visible while scrolling through the section.
   ========================================================================== */
.chapter-hud {
  position: fixed;
  top: clamp(72px, 8vh, 96px);
  right: var(--pad-x);
  z-index: 30;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .6s ease, transform .6s ease, color .5s ease;
  mix-blend-mode: multiply;
  color: var(--ink-70);
}
.chapter-hud.is-active {
  opacity: 1;
  transform: translateY(0);
}
.chapter-hud__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.chapter-hud__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
/* Cosmic mode inversion for HUD when over cobalt sections */
.chapter-hud.is-cosmic {
  mix-blend-mode: normal;
  color: var(--gold);
}
@media (max-width: 640px) {
  .chapter-hud { display: none; }
}

/* Sticky chapter opener that pins briefly at top of each section */
.chapter-opener {
  position: relative;
  padding: clamp(60px, 8vw, 100px) var(--pad-x) clamp(20px, 3vw, 40px);
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(60px, 100px) 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: baseline;
}
.chapter-opener__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.9;
  color: var(--heat);
  opacity: 0.85;
}
.chapter-opener__body {
  border-top: 1px solid var(--ink-15);
  padding-top: 20px;
}
.chapter-opener__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 12px;
}
.chapter-opener__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.chapter-opener__title em {
  font-style: italic;
  color: var(--sepia);
}

/* ==========================================================================
   HALFTONE — SVG filter treatment for archival photos
   Applied via .is-halftone class or the .archive-photo wrapper.
   Progressive: normal photo becomes halftone as it enters viewport, or on hover.
   ========================================================================== */
.archive-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.archive-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 1.2s ease, opacity 1.2s ease;
  filter: sepia(0.12) contrast(1.02);
}
/* Halftone dot overlay generated with radial-gradient pattern */
.archive-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at center, var(--cobalt-ink) 22%, transparent 24%);
  background-size: 6px 6px;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.archive-photo.is-halftoned::after {
  opacity: 0.55;
}
.archive-photo.is-halftoned img {
  filter: grayscale(1) contrast(1.35) brightness(1.05);
}
/* Cosmic variant — cobalt+gold duotone halftone for Sun Ra section */
.archive-photo.is-cosmic::after {
  background-image:
    radial-gradient(circle at center, var(--cobalt-ink) 22%, transparent 24%);
  background-size: 5px 5px;
}
.archive-photo.is-cosmic.is-halftoned img {
  filter: grayscale(1) contrast(1.4) brightness(1.1) sepia(0.35) hue-rotate(180deg) saturate(1.6);
}
.archive-photo.is-cosmic.is-halftoned::after {
  opacity: 0.7;
}

/* Optional caption strip that slides up on halftone reveal */
.archive-photo__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  background: color-mix(in oklab, var(--parchment) 88%, transparent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateY(120%);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 2;
}
.archive-photo.is-halftoned .archive-photo__caption {
  transform: translateY(0);
}

/* ==========================================================================
   COSMIC — Sun Ra section overhaul (painterly cobalt + antique gold)
   ========================================================================== */
.sunra {
  /* override defaults */
  max-width: none;
  margin: 0;
  padding: clamp(100px, 14vw, 180px) var(--pad-x) clamp(80px, 10vw, 140px);
  background:
    radial-gradient(ellipse at 20% 0%, color-mix(in oklab, var(--cobalt) 40%, transparent), transparent 55%),
    radial-gradient(ellipse at 80% 100%, color-mix(in oklab, var(--gold-deep) 22%, transparent), transparent 55%),
    linear-gradient(180deg, var(--cobalt-deep) 0%, var(--cobalt-ink) 100%);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Painterly texture layer */
.sunra::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.008' numOctaves='4' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.66 0 0 0 0 0.25 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}
/* Halftone dot field overlay */
.sunra::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background-image: radial-gradient(circle at center, var(--parchment) 18%, transparent 20%);
  background-size: 10px 10px;
  mix-blend-mode: screen;
}
.sunra__wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
}
.sunra .chapter-opener { padding: 0 0 clamp(40px, 6vw, 72px); max-width: none; }
.sunra .chapter-opener__num { color: var(--gold); opacity: 1; }
.sunra .chapter-opener__body { border-top-color: color-mix(in oklab, var(--gold) 40%, transparent); }
.sunra .chapter-opener__label { color: color-mix(in oklab, var(--gold) 75%, var(--parchment)); }
.sunra .chapter-opener__title { color: var(--parchment); }
.sunra .chapter-opener__title em { color: var(--gold); }
.sunra__head { margin-bottom: clamp(40px, 6vw, 72px); }
.sunra__lede {
  max-width: 640px;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: color-mix(in oklab, var(--parchment) 92%, var(--gold));
}
.sunra .timeline {
  border-top: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
  padding-top: 40px;
}
.sunra .timeline li {
  background: color-mix(in oklab, var(--parchment) 8%, transparent);
  backdrop-filter: blur(2px);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  padding: 28px 22px 24px;
  transition: transform 0.5s ease, background 0.5s ease;
}
.sunra .timeline li:hover {
  transform: translateY(-4px);
  background: color-mix(in oklab, var(--parchment) 14%, transparent);
}
.sunra .timeline__year {
  color: var(--gold);
  font-weight: 500;
}
.sunra .timeline p {
  color: var(--parchment);
}
/* Constellation dots — decorative scatter */
.sunra__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.sunra__stars svg { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   COSMIC — bridge / halftone dissolve transition on scroll into Sun Ra
   The section preceding Sun Ra fades its bottom edge into cobalt via a
   dissolve strip, so entry feels like crossing into another register.
   ========================================================================== */
.cosmic-bridge {
  position: relative;
  height: 120px;
  margin-top: -80px;
  background:
    linear-gradient(180deg, transparent 0%, var(--cobalt-deep) 100%),
    radial-gradient(circle at center, var(--cobalt-ink) 20%, transparent 22%) 0 0 / 6px 6px;
  background-blend-mode: multiply;
  pointer-events: none;
  z-index: 5;
}

/* ==========================================================================
   REVEAL — scroll enter animations for chapter openers and photos
   Additive to existing .reveal system (unchanged).
   ========================================================================== */
.chapter-opener .chapter-opener__num,
.chapter-opener .chapter-opener__label,
.chapter-opener .chapter-opener__title {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.chapter-opener.is-in .chapter-opener__num { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.chapter-opener.is-in .chapter-opener__label { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.chapter-opener.is-in .chapter-opener__title { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .archive-photo img,
  .archive-photo::after,
  .archive-photo__caption,
  .chapter-hud,
  .chapter-opener .chapter-opener__num,
  .chapter-opener .chapter-opener__label,
  .chapter-opener .chapter-opener__title {
    transition: none !important;
  }
}

/* ============================================================
   FILM STAGE — poster reveal + gated YouTube embed (Watch section)
   ============================================================ */
.film-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 2.5rem 0 2rem;
  background: #0a0a0a;
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 20px 40px -20px rgba(0,0,0,0.35);
}

.film-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 1;
  transition: opacity 900ms ease;
}
.film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(0.94);
}
.film-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.film-poster::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(244, 236, 216, 0.95);
  color: var(--ink, #111);
  font-size: 26px;
  line-height: 84px;
  text-align: center;
  padding-left: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  opacity: 0.92;
  pointer-events: none;
}
.film-poster__meta {
  position: absolute;
  left: 24px;
  bottom: 22px;
  right: 24px;
  color: rgba(244, 236, 216, 0.85);
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.film-player {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 900ms ease 200ms;
}
.film-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.film-stage.is-unlocked .film-poster {
  opacity: 0;
  pointer-events: none;
}
.film-stage.is-unlocked .film-player {
  opacity: 1;
  z-index: 2;
}

@media (max-width: 640px) {
  .film-poster::after {
    width: 64px;
    height: 64px;
    font-size: 20px;
    line-height: 64px;
  }
}

/* ============================================
   TAPE PLAYER (bottom bar)
   ============================================ */
.tape-player {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  width: min(720px, calc(100vw - 32px));
  background: var(--ink, #111);
  color: var(--paper, #f5efe4);
  border: 1px solid rgba(245, 239, 228, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 44px 1fr auto 32px;
  align-items: center;
  gap: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 90;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 320ms ease;
  opacity: 0;
  pointer-events: none;
  font-family: inherit;
}
.tape-player.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.tape-player__toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--sun, #e8b533);
  color: var(--ink, #111);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform 160ms ease;
}
.tape-player__toggle:hover { transform: scale(1.06); }
.tape-player__toggle svg { width: 18px; height: 18px; display: block; }
.tape-player__icon-pause { display: none; }
.tape-player.is-playing .tape-player__icon-pause { display: block; }
.tape-player.is-playing .tape-player__icon-play  { display: none; }

.tape-player__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.tape-player__eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}
.tape-player__title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tape-player__track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.tape-player__bar {
  width: 160px;
  height: 4px;
  background: rgba(245, 239, 228, 0.16);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.tape-player__fill {
  height: 100%;
  background: var(--sun, #e8b533);
  width: 0%;
  transition: width 120ms linear;
}
.tape-player__time {
  font-size: 11px;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
  min-width: 84px;
  text-align: right;
}

.tape-player__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: opacity 160ms ease, background 160ms ease;
}
.tape-player__close:hover {
  opacity: 1;
  background: rgba(245, 239, 228, 0.08);
}

/* Mini-play buttons show playing state */
.mini-play.is-playing,
.play.is-playing {
  background: var(--sun, #e8b533);
  color: var(--ink, #111);
}

/* Mobile */
@media (max-width: 640px) {
  .tape-player {
    grid-template-columns: 40px 1fr 28px;
    grid-template-rows: auto auto;
    row-gap: 6px;
    padding: 10px 14px;
    border-radius: 20px;
    bottom: 12px;
    width: calc(100vw - 20px);
  }
  .tape-player__toggle { width: 40px; height: 40px; }
  .tape-player__track {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .tape-player__bar { flex: 1; width: auto; }
  .tape-player__time { min-width: 74px; }
}

/* ============================================================
   DISCOGRAPHY (Sun Ra archive, tier 1)
   ============================================================ */
.discog {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--ink-15);
}
.discog__head { margin-bottom: 32px; }
.discog__head .section-num {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.discog__head .section-title {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 22ch;
}
.discog__head .section-lede {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 60ch;
  margin: 0;
}
.discog__json {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-70);
  border: 1px solid var(--ink-15);
  border-radius: 3px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.discog__json:hover { color: var(--heat); border-color: var(--heat); }

/* Tier tabs */
.discog__tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 32px 0;
}
.discog__tier {
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: 1px solid var(--ink-15);
  border-radius: 4px;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  transition: border-color .18s, background .18s, transform .18s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.discog__tier:hover {
  border-color: var(--ink);
  background: color-mix(in oklab, var(--gold) 6%, transparent);
}
.discog__tier.is-active {
  border-color: var(--heat);
  background: color-mix(in oklab, var(--heat) 8%, transparent);
}
.discog__tier-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.discog__tier-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}
.discog__tier-count {
  font-size: 13px;
  color: var(--ink-70);
  margin-top: 6px;
}
.discog__tier-hint {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--heat);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Filters */
.discog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 24px 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-15);
}
.discog__filter-group { display: flex; gap: 6px; }
.discog__search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--ink-15);
  border-radius: 999px;
  color: var(--ink-70);
  font-family: "Space Grotesk", sans-serif;
  transition: border-color .15s;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}
.discog__search:focus-within { border-color: var(--ink); color: var(--ink); }
.discog__search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: inherit;
  width: 100%;
  padding: 4px 0;
}

/* Panels */
.discog__panel { display: none; }
.discog__panel.is-active { display: block; }
.discog__count {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 24px;
}
.discog__list { list-style: none; padding: 0; margin: 0; }
.discog__year { margin-bottom: 56px; }
.discog__year-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-15);
}
.discog__year-num {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.discog__year-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Album grid */
.discog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}
.album {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.album__art {
  aspect-ratio: 1 / 1;
  background: var(--ink);
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 8px 24px -12px rgba(0,0,0,0.35);
  position: relative;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.album:hover .album__art { transform: translateY(-2px); }
.album__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.album__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #2a1810 0%, #4a2a15 100%);
  color: var(--gold);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  line-height: 1.15;
}
.album--no-art .album__placeholder { display: flex; }
.album__meta { display: flex; flex-direction: column; gap: 4px; }
.album__title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.album__cred {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  color: var(--ink-70);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.album__type {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 2px;
}
.album__type--studio { background: color-mix(in oklab, var(--heat) 15%, transparent); color: var(--heat); }
.album__type--live { background: color-mix(in oklab, var(--gold) 20%, transparent); color: var(--gold-deep); }
.album__label { font-size: 12px; }
.album__note {
  font-size: 12px;
  color: var(--ink-40);
  font-style: italic;
  margin: 2px 0 0;
  line-height: 1.35;
}

/* Placeholder panels (tiers 2 & 3) */
.discog__placeholder {
  padding: 40px 32px;
  background: color-mix(in oklab, var(--gold) 5%, transparent);
  border: 1px dashed var(--ink-15);
  border-radius: 4px;
  color: var(--ink);
}
.discog__placeholder-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heat);
  margin: 0 0 8px;
}
.discog__placeholder h4 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.discog__placeholder p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
  margin: 0 0 20px;
  max-width: 60ch;
}
.discog__plan {
  padding: 0;
  margin: 0;
  list-style: none;
}
.discog__plan li {
  padding: 8px 0 8px 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  color: var(--ink-70);
  border-bottom: 1px solid var(--ink-15);
  position: relative;
}
.discog__plan li:last-child { border-bottom: 0; }
.discog__plan li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.discog__source {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-15);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  color: var(--ink-40);
  line-height: 1.5;
}
.discog__source a { color: var(--ink-70); }
.discog__source a:hover { color: var(--heat); }

/* Screen-reader utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .discog__tiers { grid-template-columns: 1fr; }
  .discog__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
  .discog__year-num { font-size: 24px; }
}

/* ============================================================
   DISCOGRAPHY OVERRIDES (inside .sunra cobalt section)
   ============================================================ */
.sunra .discog {
  margin-top: clamp(64px, 8vw, 120px);
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid color-mix(in oklab, var(--gold) 25%, transparent);
}
.sunra .discog__head .section-num { color: var(--gold); }
.sunra .discog__head .section-title {
  color: var(--parchment);
}
.sunra .discog__head .section-lede {
  color: color-mix(in oklab, var(--parchment) 80%, transparent);
}
.sunra .discog__json {
  color: color-mix(in oklab, var(--parchment) 70%, transparent);
  border-color: color-mix(in oklab, var(--gold) 35%, transparent);
}
.sunra .discog__json:hover { color: var(--gold); border-color: var(--gold); }

/* Tier tabs on dark bg */
.sunra .discog__tier {
  color: var(--parchment);
  border-color: color-mix(in oklab, var(--gold) 20%, transparent);
  background: color-mix(in oklab, var(--cobalt-ink) 30%, transparent);
}
.sunra .discog__tier:hover {
  border-color: var(--gold);
  background: color-mix(in oklab, var(--gold) 8%, transparent);
}
.sunra .discog__tier.is-active {
  border-color: var(--gold);
  background: color-mix(in oklab, var(--gold) 12%, transparent);
}
.sunra .discog__tier-num { color: var(--gold); }
.sunra .discog__tier-count {
  color: color-mix(in oklab, var(--parchment) 65%, transparent);
}
.sunra .discog__tier-hint {
  color: var(--heat-soft);
}

/* Filters on dark bg */
.sunra .discog__filters {
  border-bottom-color: color-mix(in oklab, var(--gold) 25%, transparent);
}
.sunra .discog__filters .chip {
  color: color-mix(in oklab, var(--parchment) 70%, transparent);
  border-color: color-mix(in oklab, var(--gold) 30%, transparent);
  background: transparent;
}
.sunra .discog__filters .chip:hover {
  color: var(--parchment);
  border-color: var(--parchment);
}
.sunra .discog__filters .chip.is-active {
  color: var(--cobalt-ink);
  background: var(--gold);
  border-color: var(--gold);
}
.sunra .discog__search {
  border-color: color-mix(in oklab, var(--gold) 30%, transparent);
  color: color-mix(in oklab, var(--parchment) 65%, transparent);
}
.sunra .discog__search:focus-within {
  border-color: var(--gold);
  color: var(--parchment);
}
.sunra .discog__search input { color: inherit; }
.sunra .discog__search input::placeholder {
  color: color-mix(in oklab, var(--parchment) 45%, transparent);
}

/* Panels */
.sunra .discog__count {
  color: color-mix(in oklab, var(--parchment) 60%, transparent);
}
.sunra .discog__year-head {
  border-bottom-color: color-mix(in oklab, var(--gold) 25%, transparent);
}
.sunra .discog__year-num { color: var(--parchment); }
.sunra .discog__year-count { color: var(--gold); }

/* Album cards */
.sunra .album__title { color: var(--parchment); }
.sunra .album__cred { color: color-mix(in oklab, var(--parchment) 70%, transparent); }
.sunra .album__type--studio {
  background: color-mix(in oklab, var(--heat) 20%, transparent);
  color: var(--heat-soft);
}
.sunra .album__type--live {
  background: color-mix(in oklab, var(--gold) 22%, transparent);
  color: var(--gold);
}
.sunra .album__note {
  color: color-mix(in oklab, var(--parchment) 45%, transparent);
}
.sunra .album__art {
  background: var(--cobalt-ink);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 12px 32px -12px rgba(0,0,0,0.7);
}

/* Placeholder panels */
.sunra .discog__placeholder {
  background: color-mix(in oklab, var(--cobalt-ink) 40%, transparent);
  border-color: color-mix(in oklab, var(--gold) 30%, transparent);
  color: var(--parchment);
}
.sunra .discog__placeholder-eyebrow { color: var(--heat-soft); }
.sunra .discog__placeholder h4 { color: var(--parchment); }
.sunra .discog__placeholder p {
  color: color-mix(in oklab, var(--parchment) 75%, transparent);
}
.sunra .discog__plan li {
  color: color-mix(in oklab, var(--parchment) 70%, transparent);
  border-bottom-color: color-mix(in oklab, var(--gold) 20%, transparent);
}
.sunra .discog__plan li::before { color: var(--gold); }

.sunra .discog__source {
  border-top-color: color-mix(in oklab, var(--gold) 20%, transparent);
  color: color-mix(in oklab, var(--parchment) 50%, transparent);
}
.sunra .discog__source a { color: color-mix(in oklab, var(--parchment) 75%, transparent); }
.sunra .discog__source a:hover { color: var(--gold); }

/* ============================================================
   SUN RA SPEAKS — video catalog
   Lives inside .sunra wing, so parchment/gold palette is inherited.
   ============================================================ */
.speaks {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid color-mix(in oklab, var(--gold) 25%, transparent);
}
.speaks__head { margin-bottom: 40px; }
.speaks__head .section-num { color: var(--gold); }
.speaks__head .section-title {
  color: color-mix(in oklab, var(--parchment) 96%, var(--gold));
}
.speaks__head .section-lede {
  color: color-mix(in oklab, var(--parchment) 80%, transparent);
  max-width: 60ch;
}

.speaks__loading {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--parchment) 60%, transparent);
  padding: 24px 0;
}

.speaks__count {
  margin: 0 0 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--parchment) 60%, transparent);
}
.speaks__count .tape {
  background: var(--heat);
  color: var(--bone);
  padding: 3px 8px;
  margin-right: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.speaks__cat {
  margin-top: 56px;
}
.speaks__cat:first-of-type { margin-top: 0; }

.speaks__cat-head {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in oklab, var(--gold) 22%, transparent);
}
.speaks__cat-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.15;
  margin: 0 0 6px;
  color: color-mix(in oklab, var(--parchment) 96%, var(--gold));
  letter-spacing: -0.01em;
}
.speaks__cat-blurb {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: color-mix(in oklab, var(--parchment) 65%, transparent);
  font-size: 15px;
  line-height: 1.5;
  max-width: 55ch;
}

.speaks__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.speaks__card {
  margin: 0;
  padding: 0;
}

.speaks__link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, filter 200ms ease;
}
.speaks__link:hover,
.speaks__link:focus-visible {
  transform: translateY(-3px);
  outline: none;
}
.speaks__link:hover .speaks__thumb,
.speaks__link:focus-visible .speaks__thumb {
  border-color: var(--gold);
}
.speaks__link:hover .speaks__title,
.speaks__link:focus-visible .speaks__title {
  color: var(--gold);
}
.speaks__link:hover .speaks__play,
.speaks__link:focus-visible .speaks__play {
  background: var(--heat);
  transform: translate(-50%, -50%) scale(1.08);
}

.speaks__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--gold) 30%, transparent);
  background: var(--deep);
  transition: border-color 200ms ease;
}
.speaks__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}
.speaks__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--deep) 78%, transparent);
  color: var(--parchment);
  border-radius: 999px;
  transition: background 200ms ease, transform 200ms ease;
  backdrop-filter: blur(3px);
}
.speaks__play svg { margin-left: 3px; }

.speaks__year {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--heat);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  line-height: 1;
}

.speaks__meta {
  display: block;
  padding: 12px 2px 4px;
}
.speaks__title {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: color-mix(in oklab, var(--parchment) 96%, var(--gold));
  letter-spacing: -0.005em;
  transition: color 200ms ease;
}
.speaks__source {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--parchment) 55%, transparent);
}
.speaks__channel {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: color-mix(in oklab, var(--parchment) 40%, transparent);
}

@media (max-width: 640px) {
  .speaks { margin-top: 64px; padding-top: 40px; }
  .speaks__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .speaks__play { width: 42px; height: 42px; }
  .speaks__title { font-size: 14px; }
}

/* ============================================================
   ALBUM LISTEN LINKS
   ============================================================ */
.album__listen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.album__listen {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid;
  transition: all .15s ease;
  line-height: 1;
}
.album__listen svg { flex: 0 0 auto; }
.album__listen span { position: relative; top: 0.5px; }

/* Light theme (default, if used outside .sunra) */
.album__listen--spotify { color: #1db954; border-color: color-mix(in oklab, #1db954 40%, transparent); }
.album__listen--apple   { color: #fc3c44; border-color: color-mix(in oklab, #fc3c44 40%, transparent); }
.album__listen--youtube { color: #ff0000; border-color: color-mix(in oklab, #ff0000 40%, transparent); }
.album__listen--bandcamp{ color: #1da0c3; border-color: color-mix(in oklab, #1da0c3 40%, transparent); }
.album__listen:hover {
  background: currentColor;
}
.album__listen--spotify:hover  span, .album__listen--spotify:hover  svg { color: #000; }
.album__listen--apple:hover    span, .album__listen--apple:hover    svg { color: #fff; }
.album__listen--youtube:hover  span, .album__listen--youtube:hover  svg { color: #fff; }
.album__listen--bandcamp:hover span, .album__listen--bandcamp:hover svg { color: #fff; }

/* Inside cobalt Sun Ra section — subtler on dark bg */
.sunra .album__listen--spotify  { color: #4de07d; border-color: color-mix(in oklab, #1db954 55%, transparent); }
.sunra .album__listen--apple    { color: #ff6d76; border-color: color-mix(in oklab, #fc3c44 55%, transparent); }
.sunra .album__listen--youtube  { color: #ff5c5c; border-color: color-mix(in oklab, #ff0000 55%, transparent); }
.sunra .album__listen--bandcamp { color: #56c6e6; border-color: color-mix(in oklab, #1da0c3 55%, transparent); }
.sunra .album__listen:hover     { background: currentColor; }
.sunra .album__listen--spotify:hover  span, .sunra .album__listen--spotify:hover  svg { color: var(--cobalt-ink); }
.sunra .album__listen--apple:hover    span, .sunra .album__listen--apple:hover    svg { color: var(--parchment); }
.sunra .album__listen--youtube:hover  span, .sunra .album__listen--youtube:hover  svg { color: var(--parchment); }
.sunra .album__listen--bandcamp:hover span, .sunra .album__listen--bandcamp:hover svg { color: var(--cobalt-ink); }

@media (max-width: 640px) {
  .album__listen { padding: 3px 7px; font-size: 10px; }
  .album__listen svg { width: 12px; height: 12px; }
}

/* Sunrise Orchestra door — cobalt accent tying it to Sun Ra section */
.door--sunrise > a {
  background: linear-gradient(180deg, #0a1a3d 0%, #061530 100%);
  border-color: color-mix(in oklab, var(--gold) 45%, transparent);
  color: var(--parchment);
}
.door--sunrise > a::before {
  background:
    radial-gradient(circle at 6px 100%, #0a1a3d 4px, transparent 5px) repeat-x,
    #0a1a3d;
  background-size: 12px 14px, auto;
}
.door--sunrise .door__num    { color: var(--gold); }
.door--sunrise .door__title  { color: var(--parchment); }
.door--sunrise .door__desc   { color: color-mix(in oklab, var(--parchment) 78%, transparent); }
.door--sunrise .door__meta   { color: color-mix(in oklab, var(--parchment) 60%, transparent); }
.door--sunrise .door__meta .dot { background: color-mix(in oklab, var(--parchment) 55%, transparent); }
.door--sunrise .door__arrow  { color: var(--gold); }
.door--sunrise > a:hover {
  background: linear-gradient(180deg, #0f245a 0%, #08183a 100%);
  box-shadow: 0 30px 60px -30px rgba(6, 21, 48, 0.6);
}

/* Returning visitor: hide the signup form, show a welcome-back strip */
.signup__welcome {
  display: none;
  margin-top: 24px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: color-mix(in oklab, var(--heat) 6%, var(--bone));
  border-left: 3px solid var(--heat);
  border-radius: 0 6px 6px 0;
}
.signup__welcome .tape {
  display: inline-block;
  margin-right: 10px;
  color: var(--heat);
}
.signup.is-returning .signup__label,
.signup.is-returning .signup__row,
.signup.is-returning .signup__sent {
  display: none;
}
.signup.is-returning .signup__welcome { display: block; }

/* Ledger returning-visitor welcome strip */
.ledger__welcome {
  display: block;
  margin: 24px 0 0;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: color-mix(in oklab, var(--heat) 6%, var(--bone));
  border-left: 3px solid var(--heat);
  border-radius: 0 6px 6px 0;
  max-width: 640px;
}
.ledger__welcome[hidden] { display: none; }
.ledger__welcome .tape {
  display: inline-block;
  margin-right: 10px;
  color: var(--heat);
}

/* Discography returning-visitor welcome strip (cobalt/gold to match Sun Ra section) */
.discog__welcome {
  display: block;
  margin: 20px 0 0;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--parchment);
  background: color-mix(in oklab, var(--gold) 12%, transparent);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  max-width: 720px;
}
.discog__welcome[hidden] { display: none; }
.discog__welcome .tape {
  display: inline-block;
  margin-right: 10px;
  color: var(--gold);
}

/* ==========================================================================
   DOORS — image variant (photographic backdrops on Listen/Look/Watch tiles)
   ========================================================================== */
.door--image > a {
  background:
    linear-gradient(180deg,
      rgba(10, 8, 6, 0.25) 0%,
      rgba(10, 8, 6, 0.55) 45%,
      rgba(10, 8, 6, 0.9) 100%),
    var(--door-img) center/cover no-repeat,
    var(--bone-soft);
  color: var(--parchment);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    filter 0.5s ease;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.door--image > a::before {
  /* torn top over image */
  background:
    radial-gradient(circle at 6px 100%, var(--bone) 4px, transparent 5px) repeat-x,
    transparent;
  background-size: 12px 14px, auto;
}
.door--image .door__num    { color: var(--heat); }
.door--image .door__title  { color: var(--parchment); }
.door--image .door__desc   { color: color-mix(in oklab, var(--parchment) 85%, transparent); }
.door--image .door__meta   { color: color-mix(in oklab, var(--parchment) 70%, transparent); }
.door--image .door__meta .dot { background: color-mix(in oklab, var(--parchment) 55%, transparent); }
.door--image .door__arrow  { color: var(--heat); }
.door--image > a:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 30px 60px -30px rgba(26, 22, 19, 0.5);
  filter: brightness(1.05);
}

/* Watch tile — use "top" so the film-poster face is visible */
.door[data-door="watch"].door--image > a {
  background-position: center 25%, center;
}
/* Listen tile — anchor Dad's face near top */
.door[data-door="listen"].door--image > a {
  background:
    linear-gradient(180deg,
      rgba(10, 8, 6, 0.2) 0%,
      rgba(10, 8, 6, 0.55) 45%,
      rgba(10, 8, 6, 0.9) 100%),
    var(--door-img) center 20% / cover no-repeat,
    var(--bone-soft);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.look__zoom {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
}
.look__zoom img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.look__zoom:hover img {
  transform: scale(1.03);
}
.look__zoom:focus-visible {
  outline: 2px solid var(--heat);
  outline-offset: 4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 8, 6, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 48px);
  animation: lb-fade 0.2s ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox__stage {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  animation: lb-zoom 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lb-zoom {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.lightbox__close {
  position: absolute;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover {
  background: rgba(0,0,0,0.65);
  transform: scale(1.05);
}
.lightbox__close:focus-visible {
  outline: 2px solid var(--heat);
  outline-offset: 2px;
}
body.is-lightbox-open {
  overflow: hidden;
}
