:root {
  --paper: #f7f6f2;
  --surface: #fefdfb;
  --ink: #1e2a2f;
  --muted: #56636a;
  --forest: #1f5a44;
  --teal: #2e7c84;
  --gold: #b76732;
  --rule: #d9d6cd;
  --dark: #14251e;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-ui: "Source Sans 3", "Helvetica Neue", sans-serif;
  --content: 1200px;
  --prose: 68ch;
  --radius: 6px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-ui); font-size: 1.05rem; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 1000; padding: 0.65rem 1rem; background: var(--surface); color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; min-height: 72px; padding: 0.7rem max(1.25rem, calc((100vw - var(--content)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: #fff; background: linear-gradient(180deg, rgba(9, 20, 14, 0.72), transparent); transition: color 180ms ease, background 180ms ease, border-color 180ms ease; }
.site-header.is-scrolled { color: var(--ink); background: rgba(247, 246, 242, 0.96); border-bottom: 1px solid var(--rule); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: #fff; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: inherit; text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.site-nav a::after { content: ""; display: block; width: 0; height: 1px; margin-top: 0.1rem; background: currentColor; transition: width 180ms ease; }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 4px; }

.story-hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--dark); }
.story-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.story-hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 18, 12, 0.74) 0%, rgba(8, 18, 12, 0.2) 62%, transparent 100%), linear-gradient(0deg, rgba(8, 18, 12, 0.54), transparent 55%); }
.story-hero-content { position: relative; z-index: 1; width: min(100% - 2.5rem, var(--content)); margin: 0 auto; padding: 10rem 0 5rem; }
.eyebrow { margin: 0 0 0.8rem; color: var(--forest); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.story-hero .eyebrow { color: #dce9df; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0; }
h1 { max-width: 900px; margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: 0.94; font-weight: 600; }
.hero-deck { max-width: 600px; margin: 1.6rem 0 0; color: #edf3ee; font-size: clamp(1.08rem, 1.8vw, 1.35rem); line-height: 1.45; }
.hero-link { display: inline-flex; gap: 1rem; margin-top: 2rem; padding-bottom: 0.25rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.7); }

.evidence-rail { width: min(100% - 2.5rem, var(--content)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.evidence-item { padding: 2rem 1.5rem; border-left: 1px solid var(--rule); }
.evidence-item:first-child { border-left: 0; }
.evidence-item strong { display: block; font-family: var(--font-display); font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1; color: var(--forest); }
.evidence-item span { display: block; margin-top: 0.45rem; color: var(--muted); font-size: 0.85rem; }

.editorial-section, .findings-section { width: min(100% - 2.5rem, var(--content)); margin: 0 auto; padding: clamp(5rem, 9vw, 8rem) 0; }
.section-intro { max-width: 850px; margin-bottom: 3rem; }
.section-intro h2, .presentation-heading h2, .archive-heading h2, .access-intro h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: 1.04; font-weight: 600; }
.section-intro > p:last-child { max-width: var(--prose); color: var(--muted); }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.story-prose { max-width: var(--prose); }
.story-prose p { color: #344248; }
.story-prose .lead { color: var(--ink); font-family: var(--font-display); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.35; }
.story-photo { margin: 0; }
.story-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

.chronicle-section { border-top: 1px solid var(--rule); }
.chronicle { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.chronicle li { position: relative; padding: 1.7rem 1.5rem 0 0; border-right: 1px solid var(--rule); }
.chronicle li:last-child { border-right: 0; }
.chronicle li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.chronicle time { color: var(--gold); font-weight: 700; }
.chronicle h3 { margin: 1.7rem 0 0.45rem; font-size: 1.35rem; }
.chronicle p { margin: 0; padding-right: 1rem; color: var(--muted); font-size: 0.95rem; }

.presentation-section { padding: clamp(5rem, 9vw, 8rem) max(1.25rem, calc((100vw - var(--content)) / 2)); color: #f4f2ec; background: var(--dark); }
.presentation-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.presentation-heading .eyebrow { color: #9ec4b4; }
.presentation-heading p:not(.eyebrow) { max-width: 650px; color: #bdc9c2; }
.download-link { flex: 0 0 auto; padding-bottom: 0.3rem; color: #fff; text-decoration: none; border-bottom: 1px solid #789687; }
.slide-viewer { max-width: 1500px; margin: 0 auto; }
.slide-stage { position: relative; min-height: min(56.25vw, 810px); overflow: hidden; background: #070a08; border: 1px solid #405248; }
.slide-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: #d7e0da; }
.slide-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slide-track::-webkit-scrollbar { display: none; }
.slide-figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.slide-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.slide-figure figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.slide-controls { min-height: 68px; display: grid; grid-template-columns: 44px 44px 44px auto 1fr auto; gap: 0.6rem; align-items: center; border-bottom: 1px solid #405248; }
.icon-button, .text-button { min-width: 44px; min-height: 44px; color: #f4f2ec; background: transparent; border: 1px solid #52675c; border-radius: 4px; cursor: pointer; }
.icon-button:hover, .text-button:hover { background: #273b32; }
.slide-status { margin: 0 0.4rem; font-variant-numeric: tabular-nums; color: #d3ddd7; font-size: 0.9rem; }
.slide-progress { height: 2px; overflow: hidden; background: #405248; }
.slide-progress span { display: block; width: 2.17%; height: 100%; background: #9ec4b4; transition: width 250ms ease; }
.text-button { padding: 0 0.8rem; }
.slide-thumbnails { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; max-height: 390px; padding: 1rem 0; overflow-y: auto; }
.slide-thumb { position: relative; padding: 0; border: 2px solid transparent; background: transparent; cursor: pointer; }
.slide-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.slide-thumb span { position: absolute; right: 4px; bottom: 4px; min-width: 24px; padding: 1px 4px; color: #fff; background: rgba(9, 17, 12, 0.8); font-size: 0.7rem; }
.slide-thumb.is-active { border-color: #9ec4b4; }
.slide-transcript { border-bottom: 1px solid #405248; }
.slide-transcript summary { padding: 0.9rem 0; cursor: pointer; color: #d3ddd7; }
.slide-transcript-text { max-width: 90ch; color: #bdc9c2; }
.slide-error { color: #f0c9b0; }

.map-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.map-primary { margin: 0; }
.map-primary img { width: 100%; max-height: 620px; object-fit: contain; background: var(--surface); }
.place-copy { max-width: 430px; }
.acg-mark { width: 110px; height: 110px; object-fit: contain; margin-bottom: 1.5rem; }
.inline-link { color: var(--forest); text-underline-offset: 0.2rem; }
.regional-context { margin-top: 2rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.regional-context summary { padding: 1rem 0; color: var(--forest); font-weight: 700; cursor: pointer; }
.regional-map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem 0 2rem; }
.regional-map-grid figure { margin: 0; }
.regional-map-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }

.findings-section { border-top: 1px solid var(--rule); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-btn, .pub-filter-btn { min-height: 44px; padding: 0.55rem 0.9rem; color: var(--ink); background: transparent; border: 1px solid #aeb5af; border-radius: 4px; cursor: pointer; }
.filter-btn:hover, .pub-filter-btn:hover, .filter-btn.is-active, .pub-filter-btn.is-active { color: #fff; border-color: var(--forest); background: var(--forest); }
.findings-list { counter-reset: finding; border-top: 1px solid var(--ink); }
.finding-item { counter-increment: finding; display: grid; grid-template-columns: 4rem minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--rule); }
.finding-item::before { content: counter(finding, decimal-leading-zero); color: var(--gold); font-family: var(--font-display); font-size: 1.3rem; }
.finding-copy h3 { margin: 0 0 0.7rem; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.finding-copy p { margin: 0 0 0.8rem; color: #3e4b50; }
.finding-uncertainty { padding-left: 1rem; border-left: 2px solid var(--gold); font-size: 0.9rem; }
.finding-source { color: var(--muted); font-size: 0.82rem; }
.finding-figure { margin: 0; }
.finding-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.photo-interlude { position: relative; height: min(76vh, 760px); overflow: hidden; }
.photo-interlude img { width: 100%; height: 100%; object-fit: cover; }
.photo-interlude::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 18, 11, 0.55), transparent 50%); }
.photo-interlude p { position: absolute; z-index: 1; left: max(1.25rem, calc((100vw - var(--content)) / 2)); bottom: 3rem; max-width: 700px; margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; }

.publication-list { border-top: 1px solid var(--ink); }
.pub-item { display: grid; grid-template-columns: 100px minmax(0, 1fr) minmax(220px, 0.5fr); gap: 2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--rule); }
.pub-item h3 { margin: 0; font-size: 1.2rem; }
.pub-year { color: var(--forest); font-family: var(--font-display); font-size: 1.3rem; }
.pub-details p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; }
.pub-summary { color: #46545a; font-size: 0.92rem; }
.pub-link { display: inline-block; margin-top: 0.5rem; color: var(--forest); text-underline-offset: 0.2rem; }

.archive-section { padding: clamp(5rem, 9vw, 8rem) max(1.25rem, calc((100vw - 1500px) / 2)); background: #ecebe5; }
.archive-heading { display: flex; width: min(100%, var(--content)); margin: 0 auto 3rem; align-items: end; justify-content: space-between; gap: 2rem; }
.archive-shuffle { min-height: 44px; padding: 0.7rem 1rem; color: var(--forest); background: transparent; border: 1px solid var(--forest); cursor: pointer; font: inherit; }
.archive-shuffle:hover { color: #fff; background: var(--forest); }
.archive-shuffle:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.archive-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 0.7rem; }
.archive-mosaic figure { margin: 0; overflow: hidden; }
.archive-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: opacity 180ms ease; }
.archive-mosaic.is-shuffling img { opacity: 0.2; }
.archive-landscape { grid-column: span 2; grid-row: span 2; }
.archive-portrait { grid-row: span 2; }
.archive-wide { grid-column: span 2; }

.access-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5rem; padding: clamp(5rem, 9vw, 8rem) max(1.25rem, calc((100vw - var(--content)) / 2)); color: #eef3ef; background: var(--forest); }
.access-intro .eyebrow { color: #bdd5c7; }
.access-intro > p { color: #d8e4dc; }
.data-use-summary { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #70907e; }
.data-use-summary h3 { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.data-use-summary ul { margin: 0; padding-left: 1.2rem; color: #d8e4dc; }
.data-use-summary li + li { margin-top: 0.65rem; }
.data-use-summary p { margin: 1.25rem 0 0; color: #bdd5c7; font-size: 0.86rem; }
.access-links { border-top: 1px solid #70907e; }
.access-links a { display: grid; grid-template-columns: 120px 1fr auto; gap: 1rem; align-items: center; min-height: 90px; color: #fff; text-decoration: none; border-bottom: 1px solid #70907e; }
.access-links span { color: #c5d8cc; font-size: 0.8rem; text-transform: uppercase; }
.access-links strong { font-family: var(--font-display); font-size: 1.25rem; }
.access-links b { font-size: 1.4rem; }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 2rem max(1.25rem, calc((100vw - var(--content)) / 2)); color: #dbe5df; background: var(--dark); font-size: 0.88rem; }
.site-footer > div { display: flex; align-items: center; gap: 1rem; }
.site-footer img { border-radius: 50%; background: #fff; }
.site-footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .story-grid, .map-feature, .access-section { grid-template-columns: 1fr; }
  .chronicle { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .chronicle li:nth-child(2) { border-right: 0; }
  .slide-thumbnails { grid-template-columns: repeat(4, 1fr); }
  .finding-item { grid-template-columns: 3rem 1fr; }
  .finding-figure { grid-column: 2; }
  .pub-item { grid-template-columns: 80px 1fr; }
  .pub-summary { grid-column: 2; }
  .archive-mosaic { grid-template-columns: repeat(2, 1fr); }
  .access-section { gap: 3rem; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .site-header { min-height: 64px; padding-inline: 1rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; position: absolute; top: 64px; left: 1rem; right: 1rem; padding: 1rem; flex-direction: column; align-items: flex-start; gap: 0.8rem; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); }
  .site-nav.open { display: flex; }
  .story-hero { min-height: 82vh; }
  .story-hero-image { object-position: 55% center; }
  .story-hero-scrim { background: linear-gradient(0deg, rgba(8, 18, 12, 0.76), rgba(8, 18, 12, 0.08) 75%); }
  .story-hero-content { padding-bottom: 3rem; }
  .evidence-rail { grid-template-columns: repeat(2, 1fr); }
  .evidence-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--rule); }
  .evidence-item:nth-child(4) { border-top: 1px solid var(--rule); }
  .chronicle { grid-template-columns: 1fr; border-left: 1px solid var(--ink); border-top: 0; }
  .chronicle li, .chronicle li:nth-child(2) { padding: 0 0 2rem 1.5rem; border-right: 0; }
  .chronicle li::before { top: 0.5rem; left: -5px; }
  .chronicle h3 { margin-top: 0.5rem; }
  .presentation-heading { align-items: start; flex-direction: column; }
  .slide-controls { grid-template-columns: 44px 44px 44px 1fr; padding: 0.5rem 0; }
  .slide-progress { grid-column: 1 / -1; }
  .slide-thumbnails-toggle { grid-column: 1 / -1; }
  .slide-thumbnails { grid-template-columns: repeat(2, 1fr); }
  .regional-map-grid { grid-template-columns: 1fr; }
  .finding-item { grid-template-columns: 2rem 1fr; gap: 1rem; }
  .pub-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .pub-summary { grid-column: 1; }
  .archive-heading { align-items: flex-start; flex-direction: column; }
  .archive-mosaic { grid-auto-rows: 220px; }
  .archive-landscape, .archive-portrait { grid-column: span 2; grid-row: auto; }
  .access-links a { grid-template-columns: 1fr auto; }
  .access-links span { grid-column: 1 / -1; align-self: end; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

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