/* ==========================================================================
   Summer of the Eagle — Aligned with the Eagle house style & Design Brain
   Tokens match booth/ & command-center/: warm dark charcoal (#121110),
   one accent (#d98b4e), Cormorant Garamond + Hanken Grotesk + IBM Plex Mono,
   4px grid, sentence case, hairline separation, zero AI tropes.
   ========================================================================== */

:root {
  --bg: #121110;
  --surface: #191816;
  --raised: #211f1c;
  --line: rgba(236, 230, 220, 0.08);
  --line-strong: rgba(236, 230, 220, 0.16);
  --text: #ece6dc;
  --text-2: #a9a298;
  --muted: #706b63;
  --accent: #d98b4e;
  --accent-hover: #e39a60;
  --accent-ink: #1b120a;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius-ctl: 8px;
  --radius-card: 12px;
  --radius-panel: 14px;

  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

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

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.i {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Theater mode dimmer */
.theater-dimmer {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 7, 0.9);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease);
}
body.theater-mode .theater-dimmer {
  opacity: 1;
  pointer-events: auto;
}
body.theater-mode .player-shell,
body.theater-mode .screening-controls {
  position: relative;
  z-index: 45;
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease);
}
.site-header.scrolled {
  background: rgba(18, 17, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--display);
  color: var(--text);
}
.brand-top {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-2);
}
.brand-main {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.nav-links a {
  padding: 6px 0;
  transition: color 140ms var(--ease);
}
.nav-links a:hover { color: var(--text); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-ctl);
  border: 1px solid var(--line-strong);
}
.mobile-menu-btn span {
  display: block;
  height: 1.5px;
  background: var(--text);
}

.mobile-drawer {
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
  padding: 8px 24px 20px;
  display: flex;
  flex-direction: column;
}
.mobile-drawer a {
  padding: 12px 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer a:last-child { border-bottom: 0; }

/* ---------------- Controls (one consistent 40px height & 8px radius) ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-ctl);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: rgba(25, 24, 22, 0.8);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: var(--raised);
  border-color: rgba(236, 230, 220, 0.32);
}

.btn-quiet {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
  background: var(--surface);
  color: var(--text-2);
  border-color: var(--line-strong);
}
.btn-quiet:hover {
  background: var(--raised);
  color: var(--text);
}
.btn-quiet[aria-pressed="true"] {
  background: var(--raised);
  border-color: var(--accent);
  color: var(--text);
}

.btn-disabled {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-ctl);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.icon-btn:hover {
  background: var(--raised);
  color: var(--text);
}

/* ---------------- HERO: full-bleed scene, asymmetric bottom-left ---------------- */
.hero {
  position: relative;
  min-height: 92dvh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 72px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(0.76) saturate(0.95);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 17, 16, 0.52) 0%, rgba(18, 17, 16, 0.08) 38%, rgba(18, 17, 16, 0.78) 82%, var(--bg) 100%),
    linear-gradient(90deg, rgba(18, 17, 16, 0.72) 0%, rgba(18, 17, 16, 0.22) 55%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-copy {
  max-width: 640px;
}

.hero-credit {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* Mirrors the official title_B.jpg Cormorant lockup */
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.94;
  color: #f4edd9;
}
.hero-title-top {
  display: block;
  font-style: italic;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 6px;
  color: #e9dfc2;
}
.hero-title-main {
  display: block;
  font-size: clamp(3.25rem, 7.5vw, 5.75rem);
  letter-spacing: 0.22em;
  font-weight: 500;
}

.hero-logline {
  margin: 24px 0 32px;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #dfd8c8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- Section Rhythm ---------------- */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
}
.section-sub {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.sub-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.15;
}
.sub-note {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--text-2);
}

/* ---------------- Screening Room ---------------- */
.screening-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ctl);
}
.seg-btn {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.seg-btn.active {
  background: var(--raised);
  color: var(--text);
}

.player-shell {
  background: #0c0b0a;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090808;
}
.film-video,
.embed-container,
.embed-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #090808;
}

.player-slate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 36px;
}
.slate-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}
.slate-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0.15) 0%, rgba(18, 17, 16, 0.86) 80%);
}
.slate-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.slate-content h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
}
.slate-content p {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.slate-content code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(236, 230, 220, 0.1);
  color: var(--text);
}
.slate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.player-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
}
.status-text.ready { color: var(--accent); }
.sep { color: var(--muted); }
.active-chapter-label { color: var(--text); }

.player-keys {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.player-keys kbd {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  margin-right: 4px;
}

/* ---------------- Chapters (zero tags over photos, edge-faded carousel) ---------------- */
.chapters-block { margin-top: 40px; }
.chapters-controls { display: flex; align-items: center; gap: 8px; }
.scroll-arrows { display: flex; gap: 6px; }

.chapters-fade {
  position: relative;
  -webkit-mask-image: linear-gradient(to right, black 0%, black 93%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black 93%, transparent 100%);
}
.chapters-fade.no-fade {
  -webkit-mask-image: none;
  mask-image: none;
}

.chapters-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 2px 32px 12px 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.chapters-track.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 28px 20px;
  padding: 2px;
  overflow-x: visible;
}

.chapter-card {
  flex: 0 0 268px;
  scroll-snap-align: start;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
}
.chapters-track.grid-view .chapter-card { flex: unset; }

.chapter-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-ctl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.chapter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 160ms var(--ease);
}
.chapter-card:hover .chapter-thumb img { opacity: 0.85; }
.chapter-card.active .chapter-thumb {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chapter-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: var(--muted);
}
.chapter-card.active .chapter-meta { color: var(--accent); }

.chapter-card h4 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chapter-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- Story & Editorial Photo Collage ---------------- */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
}

.story-copy { max-width: 62ch; }
.story-copy .lead {
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.62;
  color: var(--text);
}
.story-copy p {
  color: var(--text-2);
  margin: 16px 0 0;
}

/* Open typographic quote — NO border-left accent bar */
.story-quote {
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
}
.story-quote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.2vw, 1.6875rem);
  line-height: 1.35;
  color: var(--text);
}
.story-quote footer {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

.story-lead-photo {
  margin: 8px 0 0;
}
.story-lead-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.story-lead-photo figcaption {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

.photo-btn {
  display: block;
  width: 100%;
  border-radius: var(--radius-ctl);
  overflow: hidden;
  cursor: zoom-in;
}
.photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms var(--ease);
}
.photo-btn:hover img { opacity: 0.88; }

/* Asymmetric editorial photo composition (scale contrast + rhythm) */
.collage-block { margin-top: 72px; }

.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px 20px;
  align-items: start;
}
.collage-item { margin: 0; }
.collage-item figcaption {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.collage-dominant {
  grid-column: 1 / 9;
}
.collage-dominant .photo-btn { aspect-ratio: 16 / 10; }

.collage-stack {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.collage-stack .photo-btn { aspect-ratio: 16 / 10; }

.collage-wide-a { grid-column: 1 / 5; }
.collage-wide-a .photo-btn { aspect-ratio: 4 / 3; }

.collage-wide-b { grid-column: 5 / 10; margin-top: 24px; }
.collage-wide-b .photo-btn { aspect-ratio: 16 / 10; }

.collage-wide-c { grid-column: 10 / 13; }
.collage-wide-c .photo-btn { aspect-ratio: 3 / 4; }

/* ---------------- Restoration & Credits ---------------- */
.restoration-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.restoration-copy .lead {
  margin-top: 20px;
  font-size: 1.0625rem;
  color: var(--text);
}
.restoration-copy p { color: var(--text-2); margin: 16px 0 0; }

.restoration-photo { margin: 0; }
.restoration-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.restoration-photo figcaption {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Hairline chronology list */
.chronology {
  list-style: none;
  margin: 0 0 64px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.chronology li {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.chron-when { color: var(--accent); }
.chron-body h3 {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
}
.chron-body p {
  margin: 0;
  max-width: 68ch;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* Open 2-column Cast & Crew */
.credits-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: start;
}

.cast-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.cast-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cast-actor { font-weight: 500; color: var(--text); }
.cast-role { color: var(--text-2); font-size: 0.9375rem; }
.cast-note {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--muted);
}

.crew-list {
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}
.crew-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.crew-row dt { font-size: 0.875rem; color: var(--muted); }
.crew-row dd { margin: 0; text-align: right; color: var(--text); }

.imdb-line {
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.imdb-line a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line-strong);
}
.imdb-line a:hover { text-decoration-color: var(--accent); color: var(--accent); }

/* ---------------- Original Score Deck (quiet surface, no bouncing loops) ---------------- */
.score-surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.deck-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
}

.deck-transport {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-play {
  width: 44px;
  height: 44px;
  padding: 0;
}

.deck-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 8px;
}
.deck-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}
.deck-cue { font-size: 0.875rem; color: var(--text-2); }

.deck-scrub {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}
.time-readout { text-align: center; }

input[type="range"] {
  accent-color: var(--accent);
  cursor: pointer;
}
.audio-seek { width: 100%; }

.deck-end {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vol-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}
.vol-wrap input { width: 80px; }

.tracklist {
  list-style: none;
  margin: 0;
  padding: 8px;
}
.track-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 8px 16px;
  border-radius: var(--radius-ctl);
  cursor: pointer;
  transition: background-color 120ms var(--ease);
}
.track-row:hover { background: var(--raised); }
.track-row.active { background: var(--raised); }
.track-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: var(--muted);
}
.track-row.active .track-num { color: var(--accent); }
.track-info strong {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
}
.track-info span {
  font-size: 0.8125rem;
  color: var(--text-2);
}
.track-dl {
  font-size: 0.8125rem;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 120ms var(--ease), background-color 120ms var(--ease);
}
.track-dl:hover {
  color: var(--text);
  background: rgba(236, 230, 220, 0.08);
}

/* ---------------- Download Ledger (clean hairline rows, zero pill clutter) ---------------- */
.download-ledger {
  border-top: 1px solid var(--line-strong);
}
.dl-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  gap: 16px 32px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.dl-row.primary {
  padding: 28px 24px;
  margin: 0 -24px;
  background: var(--surface);
  border-radius: var(--radius-card);
  border-bottom-color: transparent;
}
.dl-row.primary + .dl-row {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.dl-title-col h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}
.dl-title-col p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-2);
  max-width: 50ch;
}

.dl-spec-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dl-size {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  color: var(--text);
}
.dl-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.download-note {
  margin: 24px 0 0;
  max-width: 68ch;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-credit {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.footer-links a:hover { color: var(--text); }

/* ---------------- Lightbox & Toast ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 9, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-ctl);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
}
.lightbox-figure {
  margin: 0;
  max-width: 1120px;
}
.lightbox-figure img {
  max-height: 78dvh;
  margin-inline: auto;
  border-radius: var(--radius-ctl);
}
.lightbox-figure figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  padding: 12px 18px;
  border-radius: var(--radius-ctl);
  background: var(--raised);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.875rem;
}

/* ---------------- Responsive (tested 390px -> 1440px) ---------------- */
@media (max-width: 960px) {
  .story-layout,
  .restoration-header,
  .credits-layout { grid-template-columns: 1fr; gap: 36px; }
  .deck-top { grid-template-columns: 1fr; gap: 16px; }
  .dl-row { grid-template-columns: 1fr; gap: 12px; }
  .dl-row.primary { margin: 0; padding: 20px; }
  .collage { grid-template-columns: 1fr 1fr; }
  .collage-dominant { grid-column: 1 / -1; }
  .collage-stack { grid-column: 1 / -1; flex-direction: row; }
  .collage-stack > figure { flex: 1; }
  .collage-wide-a, .collage-wide-b, .collage-wide-c { grid-column: span 1; margin-top: 0; }
  .collage-wide-c { grid-column: 1 / -1; }
  .collage-wide-c .photo-btn { aspect-ratio: 16 / 9; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero { min-height: 82dvh; padding: 104px 0 48px; }
  .section { padding: 64px 0; }
  .player-slate { padding: 20px; }
  .player-keys { display: none; }
  .chronology li { grid-template-columns: 1fr; gap: 6px; }
  .collage { grid-template-columns: 1fr; }
  .collage-stack { flex-direction: column; }
  .deck-end { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.scrolled { background: var(--bg); backdrop-filter: none; }
}
