
:root {
  --ink: #0A0807;
  --ink-2: #131110;
  --ink-3: #1F1B18;
  --paper: #F5EFE6;
  --paper-2: #E8DFCF;
  --gold: #C8923B;
  --gold-bright: #E0AE52;
  --crimson: #8C2A1C;
  --text: #F5EFE6;
  --text-dim: #B8AC97;
  --text-mute: #7E7569;
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 60px);
  --space-l: 64px;
  --space-xl: 120px;
  --space-2xl: 200px;
  --ease-cinematic: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-curtain: cubic-bezier(0.7, 0, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-bright); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--paper); }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* —— Masthead —— */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,8,7,0.92) 0%, rgba(10,8,7,0.0) 100%);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition: background 0.3s ease;
}
.masthead.solid {
  background: rgba(10,8,7,0.96);
  border-bottom: 1px solid rgba(245,239,230,0.08);
}
.mast-logo {
  font-family: var(--serif); font-weight: 800; font-size: 18px;
  letter-spacing: 0.04em; color: var(--text);
}
.mast-logo span { color: var(--gold-bright); }
.mast-nav { display: flex; gap: 28px; }
.mast-nav a {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); position: relative; padding: 4px 0;
}
.mast-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.35s var(--ease-cinematic);
}
.mast-nav a:hover::after, .mast-nav a.active::after { transform: scaleX(1); }
.mast-nav a.active { color: var(--gold-bright); }
@media (max-width: 720px) { .mast-nav { display: none; } }

/* —— Marquee ticker —— */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(245,239,230,0.12);
  border-bottom: 1px solid rgba(245,239,230,0.12);
  background: var(--ink-2);
  padding: 14px 0;
  position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink-2), transparent); }
.marquee-track {
  display: flex; animation: marquee 60s linear infinite;
  white-space: nowrap; width: max-content;
}
.marquee-item {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 16px; letter-spacing: 0.04em;
  color: var(--text-dim); padding: 0 32px; flex-shrink: 0;
}
.marquee-item .dot { color: var(--gold); margin: 0 6px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* —— Page hero —— */
.page-hero {
  position: relative; min-height: 60vh;
  display: grid; place-items: end start;
  padding: 140px var(--gutter) 80px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
}
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,7,0.5) 0%, rgba(10,8,7,0.7) 60%, rgba(10,8,7,1) 100%);
  z-index: 2; pointer-events: none;
}
.page-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  opacity: 1;
  z-index: 1; pointer-events: none;
}
/* Match home hero so the GSAP pin behaves the same way (full viewport, content fits). */
.page-hero--video {
  min-height: 100vh; height: 100vh;
  display: grid; place-items: end start;
  padding: 120px var(--gutter) 80px;
}
.page-hero--video .page-hero-content { max-width: 1100px; }
.page-hero-hint {
  display: inline-block; margin-top: 22px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); opacity: 0.75;
  border: 1px solid rgba(200,146,59,0.4); padding: 8px 14px;
}
.page-hero-content { position: relative; z-index: 1; max-width: 1100px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-variation-settings: "opsz" 144;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.92; letter-spacing: -0.04em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 70%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero-sub {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(18px, 1.8vw, 26px); line-height: 1.5;
  max-width: 800px; color: var(--text);
}
.page-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
  display: inline-block;
}

/* —— Common section —— */
section.editorial {
  padding: var(--space-2xl) var(--gutter);
  max-width: var(--max); margin: 0 auto; position: relative;
}
.section-head {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-l);
  align-items: end; margin-bottom: var(--space-xl);
  padding-bottom: 40px; border-bottom: 1px solid rgba(245,239,230,0.15);
}
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.section-head h2 {
  font-family: var(--serif); font-weight: 800;
  font-variation-settings: "opsz" 144;
  font-size: clamp(48px, 7vw, 110px); line-height: 0.95; letter-spacing: -0.04em;
}
.section-head .lede {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; color: var(--text-dim);
  max-width: 540px;
}

/* —— Eyebrow / Body —— */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.body-lg { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.5; }
.body { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.7; color: var(--text-dim); }

/* —— Curtain reveal —— */
.curtain { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.curtain-l, .curtain-r {
  position: absolute; top: 0; bottom: 0; background: var(--ink);
  transition: transform 1.4s var(--ease-curtain); will-change: transform;
}
.curtain-l { left: 0; right: 50%; }
.curtain-r { left: 50%; right: 0; }
.in > .curtain .curtain-l, .reveal.in .curtain-l { transform: translateX(-101%); }
.in > .curtain .curtain-r, .reveal.in .curtain-r { transform: translateX(101%); }

/* —— Reveal —— */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* —— Pull quote —— */
.pull-quote { padding: var(--space-2xl) var(--gutter); background: var(--ink-2); text-align: center; }
.pull-quote blockquote {
  max-width: 1100px; margin: 0 auto;
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(28px, 4vw, 56px); line-height: 1.18; letter-spacing: -0.02em;
  color: var(--text);
}
.pull-quote blockquote::before { content: "\201C"; color: var(--gold); }
.pull-quote blockquote::after { content: "\201D"; color: var(--gold); }
.pull-quote cite {
  display: block; margin-top: 32px;
  font-family: var(--sans); font-style: normal;
  font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
}

/* —— Footer —— */
footer.site-footer {
  padding: var(--space-l) var(--gutter);
  background: var(--ink-2);
  border-top: 1px solid rgba(245,239,230,0.08);
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px;
  align-items: start;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand h3 {
  font-family: var(--serif); font-weight: 900; font-size: 32px; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 8px;
}
.footer-brand p { font-family: var(--serif); font-style: italic; color: var(--text-dim); font-size: 14px; }
.footer-col h4 {
  font-size: 10px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 13px; line-height: 1.7; color: var(--text-dim);
  margin-bottom: 4px;
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-meta {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(245,239,230,0.08);
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-mute); flex-wrap: wrap; gap: 16px;
}

/* —— Chips —— */
.chip {
  display: inline-block;
  padding: 4px 11px;
  margin: 3px 4px 3px 0;
  border: 1px solid rgba(245,239,230,0.16);
  border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-dim); transition: all 0.25s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold-bright); }
.char-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.chip-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-mute); margin-right: 6px;
}

/* —— Scene cards (story page grid) —— */
.scene-grid-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
@media (max-width: 900px) { .scene-grid-cards { grid-template-columns: 1fr; } }
.scene-card {
  position: relative; cursor: pointer; overflow: hidden;
  display: block; text-decoration: none; color: inherit;
  background: var(--ink-2);
}
.scene-card-img {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2);
}
@supports not (aspect-ratio: 16 / 9) { .scene-card-img::before { content: ""; display: block; padding-bottom: 56.25%; } }
.scene-card-img img {
  position: absolute; inset: 0; display: block;
  width: 100% !important; height: 100% !important; object-fit: cover;
  transition: transform 1s var(--ease-cinematic);
}
.scene-card:hover .scene-card-img img { transform: scale(1.04); }
.scene-card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(10,8,7,0.85) 100%);
}
.scene-card-meta {
  padding: 24px 24px 28px;
}
.scene-card-marker {
  font-size: 10px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px; display: block;
}
.scene-card h3 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.scene-card p.story {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 15px; line-height: 1.55; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.scene-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-bright);
}
.scene-card:hover .read-more { color: var(--paper); }
.scene-card .read-more::after { content: "→"; transition: transform 0.3s ease; }
.scene-card:hover .read-more::after { transform: translateX(4px); }

/* —— Lightbox (image viewer) —— */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,8,7,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img-wrap {
  max-width: 90vw; max-height: 80vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
}
.lightbox-cap {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
  max-width: 800px; text-align: center;
}
.lightbox-cap .lc-num {
  font-size: 10px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.lightbox-cap h4 {
  font-family: var(--serif); font-weight: 800; font-size: clamp(16px, 1.5vw, 22px);
  margin-bottom: 4px;
}
.lightbox-cap p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 48px; height: 48px;
  border: 1px solid rgba(245,239,230,0.25); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper); transition: all 0.25s ease;
  background: rgba(0,0,0,0.4);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--gold); color: var(--ink); border-color: var(--gold);
}

/* —— Modal (scene/character drilldown) —— */
.modal {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(10,8,7,0.94);
  display: flex; align-items: flex-start; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  padding: 60px 24px;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-inner {
  max-width: 1100px; width: 100%;
  background: var(--ink-2);
  position: relative;
  margin: auto;
  transform: translateY(20px);
  transition: transform 0.5s var(--ease-cinematic);
}
.modal.open .modal-inner { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(245,239,230,0.2);
  color: var(--paper); font-size: 18px;
}
.modal-close:hover { background: var(--gold); color: var(--ink); }
.modal-hero {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2);
}
@supports not (aspect-ratio: 16 / 9) { .modal-hero::before { content: ""; display: block; padding-bottom: 56.25%; } }
.modal-hero img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.modal-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(19,17,16,0.95) 100%);
}
.modal-body { padding: 40px clamp(24px, 4vw, 48px) 60px; }
.modal-marker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.modal-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(32px, 4.5vw, 56px); line-height: 1.0; letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.modal-story {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55;
  color: var(--text); margin-bottom: 28px;
}
.modal-info {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(245,239,230,0.12);
  border-bottom: 1px solid rgba(245,239,230,0.12);
  margin-bottom: 32px;
}
@media (max-width: 700px) { .modal-info { grid-template-columns: 1fr 1fr; gap: 16px; } }
.info-item .info-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.info-item .info-val { font-size: 13px; color: var(--text); }
.modal-beats {
  margin-top: 32px;
}
.modal-beats h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.modal-beat {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px;
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid rgba(245,239,230,0.08);
}
@media (max-width: 700px) { .modal-beat { grid-template-columns: 1fr; } }
.modal-beat:last-child { border-bottom: none; }
.modal-beat-img {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: zoom-in; background: var(--ink-2);
}
@supports not (aspect-ratio: 16 / 9) { .modal-beat-img::before { content: ""; display: block; padding-bottom: 56.25%; } }
.modal-beat-img img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform 0.4s ease; }
.modal-beat-img:hover img { transform: scale(1.04); }
.modal-beat-img .beat-num {
  position: absolute; top: 8px; left: 8px;
  background: rgba(10,8,7,0.7);
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--gold); padding: 4px 8px;
}
.modal-beat-meta h5 {
  font-family: var(--serif); font-weight: 800;
  font-size: 18px; margin-bottom: 8px; color: var(--text);
}
.modal-beat-meta p { font-size: 13px; line-height: 1.65; color: var(--text-dim); }
.modal-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(245,239,230,0.12);
}
.modal-nav button {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-bright);
  display: flex; align-items: center; gap: 8px;
}
.modal-nav button:hover { color: var(--paper); }
.modal-nav button:disabled { opacity: 0.3; cursor: not-allowed; }

body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none !important; }
}
