/* ==========================================================================
   The Thinking Machine · cinematic edition
   Design study of Getty's "Persepolis Reimagined":
   charcoal #252525, warm gold #f6cea0, bronze #79644b, parchment #eae8e5.
   Scene imagery generated with Higgsfield AI.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Open Font License) ---------- */
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/Cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/Cormorant-Italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EBGaramond.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EBGaramond-Italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #252525;
  --ink-deep: #1c1c1c;
  --ink-soft: #393638;
  --gold: #f6cea0;
  --gold-70: rgba(246, 206, 160, 0.7);
  --gold-50: rgba(246, 206, 160, 0.5);
  --gold-25: rgba(246, 206, 160, 0.25);
  --gold-12: rgba(246, 206, 160, 0.12);
  --bronze: #79644b;
  --taupe: #75635a;
  --parchment: #eae8e5;
  --body-text: rgba(234, 232, 229, 0.84);
  --body-dim: rgba(234, 232, 229, 0.6);

  --font-heading: "Cormorant", "Times New Roman", serif;
  --font-serif: "EB Garamond", Georgia, serif;
  --font-sans: "Inter", Arial, sans-serif;

  --ease-inout: cubic-bezier(0.455, 0.03, 0.515, 0.955);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-strong: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--ink);
  color: var(--body-text);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: clip;
}

::selection { background: var(--gold); color: var(--ink); }

a { color: var(--gold); text-decoration: none; }
img, video { display: block; max-width: 100%; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.frame {
  width: 100%;
  max-width: 84rem;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4.5rem);
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.8s var(--ease-inout), visibility 0s linear 0.8s;
}
.loader.done { opacity: 0; visibility: hidden; }

.loader-progress {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.loader-progress em {
  font-style: normal;
  font-size: 0.42em;
  color: var(--gold-50);
  margin-left: 0.15em;
}
.loader-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-50);
}

/* ==========================================================================
   Atmosphere: 3D dust canvas, film grain, vignette
   ========================================================================== */
#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  pointer-events: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 31;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at center, transparent 55%, rgba(15, 15, 15, 0.5) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: cover, 240px 240px;
  opacity: 0.55;
  mix-blend-mode: overlay;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(30, 30, 30, 0.92) 0%, rgba(30, 30, 30, 0.65) 55%, rgba(30, 30, 30, 0));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease-strong), opacity 0.6s var(--ease-inout);
  opacity: 0;
  transform: translateY(-0.5rem);
}
body.loaded .site-head { opacity: 1; transform: none; }

.wordmark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment);
  transition: color 0.3s var(--ease-inout);
}
.wordmark:hover { color: var(--gold); }

.head-right { display: flex; align-items: center; gap: 1.75rem; }

.chapter-indicator {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-50);
  transition: opacity 0.4s var(--ease-inout);
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--parchment);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  transition: color 0.3s var(--ease-inout);
}
.menu-btn:hover { color: var(--gold); }
.menu-btn-icon { display: flex; flex-direction: column; gap: 5px; width: 26px; }
.menu-btn-icon i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease-strong);
}
body.menu-open .menu-btn-icon i:first-child { transform: translateY(3px) rotate(45deg); }
body.menu-open .menu-btn-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }

.progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0.8;
}

/* ==========================================================================
   Menu overlay
   ========================================================================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(28, 28, 28, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-inout), visibility 0s linear 0.5s;
  overflow-y: auto;
  padding: 6rem 1.5rem 3rem;
}
body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease-inout);
}

.menu-heading {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-50);
  margin-bottom: 2rem;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}
.menu-list a {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.6vh, 1.7rem);
  font-weight: 500;
  color: var(--parchment);
  padding: 0.15em 0.5em;
  opacity: 0;
  transform: translateY(14px);
  transition: color 0.3s var(--ease-inout), opacity 0.6s var(--ease-strong),
    transform 0.6s var(--ease-strong);
}
body.menu-open .menu-list a { opacity: 1; transform: none; }
body.menu-open .menu-list li:nth-child(1) a { transition-delay: 0.05s; }
body.menu-open .menu-list li:nth-child(2) a { transition-delay: 0.08s; }
body.menu-open .menu-list li:nth-child(3) a { transition-delay: 0.11s; }
body.menu-open .menu-list li:nth-child(4) a { transition-delay: 0.14s; }
body.menu-open .menu-list li:nth-child(5) a { transition-delay: 0.17s; }
body.menu-open .menu-list li:nth-child(6) a { transition-delay: 0.2s; }
body.menu-open .menu-list li:nth-child(7) a { transition-delay: 0.23s; }
body.menu-open .menu-list li:nth-child(8) a { transition-delay: 0.26s; }
body.menu-open .menu-list li:nth-child(9) a { transition-delay: 0.29s; }
body.menu-open .menu-list li:nth-child(10) a { transition-delay: 0.32s; }
body.menu-open .menu-list li:nth-child(11) a { transition-delay: 0.35s; }
body.menu-open .menu-list li:nth-child(12) a { transition-delay: 0.38s; }
body.menu-open .menu-list li:nth-child(13) a { transition-delay: 0.41s; }
body.menu-open .menu-list li:nth-child(14) a { transition-delay: 0.44s; }
.menu-list a:hover { color: var(--gold); }
.menu-list a span {
  display: inline-block;
  min-width: 3.2em;
  margin-right: 0.6em;
  font-family: var(--font-sans);
  font-size: 0.5em;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-50);
  vertical-align: middle;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(28, 28, 28, 0.92) 0%, rgba(28, 28, 28, 0.25) 45%, rgba(28, 28, 28, 0.35) 100%),
    linear-gradient(to right, rgba(28, 28, 28, 0.55) 0%, rgba(28, 28, 28, 0) 55%);
}

.hero-plate {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(5rem, 14vh, 9rem);
  will-change: transform;
}

.hero-kicker {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-50);
  margin-bottom: 2.2rem;
  opacity: 0;
  transition: opacity 1.2s var(--ease-inout) 0.9s;
}
body.loaded .hero-kicker { opacity: 1; }

.hero-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(3.4rem, 10.5vw, 8.5rem);
  line-height: 0.98;
  color: var(--parchment);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-title .ht-line { display: block; overflow: hidden; }
.hero-title .ht-word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease-strong);
}
body.loaded .ht-line:nth-child(1) .ht-word { transform: none; transition-delay: 0.15s; }
body.loaded .ht-line:nth-child(2) .ht-word { transform: none; transition-delay: 0.28s; }
body.loaded .ht-line:nth-child(3) .ht-word { transform: none; transition-delay: 0.41s; }
.hero-title .ht-line:nth-child(2) .ht-word { color: var(--gold); }

.hero-sub {
  max-width: 30em;
  margin-top: 2.2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-style: italic;
  color: var(--body-dim);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s var(--ease-inout) 1.1s, transform 1.2s var(--ease-strong) 1.1s;
}
body.loaded .hero-sub { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  right: clamp(1.5rem, 5vw, 4.5rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  opacity: 0;
  transition: opacity 1.2s var(--ease-inout) 1.8s;
}
body.loaded .scroll-cue { opacity: 1; }
.scroll-cue span {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-50);
  writing-mode: vertical-rl;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transform-origin: 50% 0;
  animation: cue 2.2s var(--ease-inout) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(30px); opacity: 0; }
}

/* ==========================================================================
   Reveal transitions
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1s var(--ease-inout), transform 1s var(--ease-strong);
}
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   Essays: editorial rail + main column
   ========================================================================== */
.essay { padding-top: clamp(7rem, 16vh, 11rem); }

.essay-grid {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(0, 42rem);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(4rem, 9vh, 7rem);
}

.essay-rail { position: relative; }
.rail-label {
  position: sticky;
  top: 7rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.rail-sub {
  position: sticky;
  top: 8.4rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--body-dim);
  margin-top: 0.5rem;
}
.rail-rule {
  position: sticky;
  top: 10.6rem;
  display: block;
  width: 3.5rem;
  height: 1px;
  margin-top: 1.4rem;
  background: linear-gradient(to right, var(--gold-50), transparent);
}

.essay-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  color: var(--parchment);
  margin-bottom: 1.8rem;
}

.essay-lede {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-style: italic;
  color: var(--gold);
  line-height: 1.55;
  margin-bottom: 2.6rem;
  max-width: 32em;
}

.essay-body p { margin-bottom: 1.6em; max-width: 38em; }
.essay-body p:last-child { margin-bottom: 0; }
.essay-body strong, .essay-cols strong { color: var(--parchment); font-weight: 600; }

.essay-cols {
  columns: 2;
  column-gap: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 62rem;
  padding-bottom: clamp(6rem, 14vh, 10rem);
}
.essay-cols p {
  break-inside: avoid;
  margin-bottom: 1.6em;
}

/* ==========================================================================
   Full-bleed cinematic break
   ========================================================================== */
.bleed {
  position: relative;
  height: min(92vh, 56rem);
  overflow: clip;
}
.bleed img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 28, 28, 0.85), rgba(28, 28, 28, 0.15) 45%, rgba(28, 28, 28, 0.4));
}
.bleed-quote {
  position: absolute;
  z-index: 2;
  left: clamp(1.5rem, 7vw, 7rem);
  bottom: clamp(2.5rem, 9vh, 6rem);
  max-width: 34em;
}
.bleed-quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.35;
  color: var(--gold);
}
.bleed-quote cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(234, 232, 229, 0.55);
}

/* ==========================================================================
   Pull quotes
   ========================================================================== */
.pull-quote {
  max-width: 84rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 5vw, 4.5rem) clamp(5rem, 12vh, 9rem);
}
.pull-quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.35;
  color: var(--gold);
  max-width: 26em;
}
.pull-quote cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ==========================================================================
   Neural network figure
   ========================================================================== */
.net-figure {
  margin: 0 0 3.5rem;
  max-width: 46rem;
}
.net-figure svg { width: 100%; height: auto; display: block; }
.net-figure figcaption {
  margin-top: 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ==========================================================================
   Chapter scenes: sticky camera stage
   ========================================================================== */
.chapter { position: relative; }

.scene { height: 165vh; position: relative; }

.scene-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
  display: flex;
  align-items: flex-end;
}

.scene-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: inset(6% 4% 6% 4%);
  transition: clip-path 1.3s var(--ease-strong);
}
.scene.on .scene-media { clip-path: inset(0 0 0 0); }
.scene-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  will-change: transform;
}
.scene-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(28, 28, 28, 0.95) 0%, rgba(28, 28, 28, 0.35) 40%, rgba(28, 28, 28, 0.25) 100%),
    linear-gradient(to right, rgba(28, 28, 28, 0.6) 0%, rgba(28, 28, 28, 0) 60%);
}

.scene-plate {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(4rem, 11vh, 8rem);
  will-change: transform;
}

.chapter-roman {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: clamp(2rem, 8vh, 6rem);
  z-index: -1;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(11rem, 30vw, 26rem);
  line-height: 0.75;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-25);
  user-select: none;
  will-change: transform;
}

.chapter-era {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}

.chapter-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(3rem, 7.5vw, 6.2rem);
  line-height: 1.0;
  color: var(--parchment);
  margin-bottom: 1.6rem;
  max-width: 10em;
}

.chapter-lede {
  font-size: clamp(1.12rem, 1.9vw, 1.38rem);
  font-style: italic;
  line-height: 1.6;
  color: rgba(234, 232, 229, 0.78);
  max-width: 30em;
}

/* ----- Events timeline (asymmetric, right of center) ----- */
.events {
  padding-top: clamp(4rem, 9vh, 7rem);
  padding-bottom: clamp(4rem, 10vh, 8rem);
}
.events .event {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding: 2.6rem 0;
  max-width: 56rem;
  margin-left: max(0px, calc((100% - 56rem) * 0.62));
}
.event + .event { border-top: 1px solid var(--gold-12); }

.event-year {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.event-body h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--parchment);
  margin-bottom: 0.7rem;
}
.event-body p { color: var(--body-text); max-width: 38em; }
.event-body em { color: var(--gold-70); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  padding-top: clamp(3rem, 7vh, 5rem);
  padding-bottom: clamp(6rem, 14vh, 10rem);
}
.stat {
  border-left: 1px solid var(--gold-25);
  padding-left: 1.4rem;
}
.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--body-dim);
  max-width: 16em;
}

/* ==========================================================================
   Epilogue (parchment finale)
   ========================================================================== */
.epilogue {
  background: var(--parchment);
  color: var(--ink);
  padding: clamp(7rem, 18vh, 12rem) 0;
  position: relative;
  z-index: 2;
}
.epilogue-grid {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(0, 40rem);
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.rail-dark .rail-label { color: var(--bronze); }
.rail-dark .rail-sub { color: rgba(37, 37, 37, 0.55); }
.rail-dark .rail-rule { background: linear-gradient(to right, rgba(121, 100, 75, 0.5), transparent); }

.epilogue h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--ink);
  margin-bottom: 2rem;
}
.epilogue p {
  color: rgba(37, 37, 37, 0.82);
  margin-bottom: 1.6em;
  max-width: 36em;
}
.epilogue-date {
  margin-top: 3rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-foot {
  background: var(--ink-deep);
  padding: 4rem 0 5rem;
  position: relative;
  z-index: 2;
}
.foot-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.foot-note, .foot-sources {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--taupe);
  margin-bottom: 1rem;
  max-width: 46em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .essay-grid, .epilogue-grid { grid-template-columns: 1fr; gap: 2rem; }
  .essay-rail { display: flex; align-items: baseline; gap: 1.2rem; }
  .rail-label, .rail-sub, .rail-rule { position: static; margin: 0; }
  .essay-cols { columns: 1; }
}

@media (max-width: 720px) {
  .chapter-indicator { display: none; }
  .wordmark { font-size: 0.9rem; letter-spacing: 0.09em; white-space: nowrap; }
  .scroll-cue { right: 1.1rem; bottom: 1.2rem; }
  .scroll-cue span { display: none; }
  .hero-sub { max-width: calc(100% - 3rem); }
  .scene { height: 140vh; }
  .events .event { grid-template-columns: 1fr; gap: 0.4rem; padding: 2.2rem 0; margin-left: 0; }
  .event-year { font-size: 1.7rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .chapter-roman { font-size: 44vw; right: 4vw; }
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .hero-kicker, .hero-sub, .scroll-cue, .ht-word { opacity: 1 !important; transform: none !important; }
  .scene-media { clip-path: inset(0 0 0 0) !important; }
  .scene-media img { transform: none !important; }
  #dust, .atmosphere { display: none; }
}
