:root {
  --navy-950: #061522;
  --navy-900: #0a2134;
  --navy-800: #12344f;
  --blue-600: #2674a7;
  --blue-300: #8cc7e8;
  --red-700: #a71930;
  --red-500: #cf2743;
  --gold: #e6b85c;
  --paper: #f5f1e8;
  --paper-2: #e9e3d7;
  --ink: #101923;
  --muted: #53616d;
  --white: #ffffff;
  --line: rgba(16, 25, 35, .16);
  --shadow: 0 22px 64px rgba(1, 14, 25, .22);
  --content: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}
body, button, input { font: inherit; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button, .button { min-height: 44px; }

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

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .7rem 1rem;
  color: var(--navy-950);
  background: var(--white);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(180deg, rgba(3,16,28,.82), rgba(3,16,28,.2));
}
.site-header.is-solid {
  position: sticky;
  background: var(--navy-950);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: inherit;
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: .08em;
  line-height: 1.05;
  text-transform: uppercase;
}
.brand span {
  display: block;
  margin-top: .2rem;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .14em;
  opacity: .76;
  text-transform: uppercase;
}
.desktop-nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem); }
.desktop-nav a {
  color: inherit;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
}
.desktop-nav a:hover { color: var(--blue-300); }
.menu-toggle {
  display: none;
  padding: .55rem .8rem;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.5);
  background: transparent;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3,16,28,.28), rgba(3,16,28,.15) 35%, rgba(3,16,28,.95) 100%),
    linear-gradient(90deg, rgba(3,16,28,.8), rgba(3,16,28,.08) 75%);
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(9rem, 18vh, 13rem) 0 clamp(3.5rem, 9vh, 6rem);
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.hero h1, .page-hero h1 {
  max-width: 960px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.1rem, 10.5vw, 9.2rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .84;
}
.hero h1 em, .page-hero h1 em { color: var(--blue-300); font-weight: inherit; }
.hero-intro {
  max-width: 720px;
  margin: 1.8rem 0 0;
  font-size: clamp(1.05rem, 2.1vw, 1.42rem);
  line-height: 1.55;
}
.hero-actions, .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .78rem 1.05rem;
  border: 1px solid currentColor;
  color: var(--navy-950);
  background: var(--white);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.button--ghost { color: var(--white); background: rgba(6,21,34,.4); }
.button--dark { color: var(--white); background: var(--navy-950); }
.button--red { color: var(--white); background: var(--red-700); border-color: var(--red-700); }
.button:hover { transform: translateY(-1px); }

.history-note {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: .78rem 1rem;
  color: var(--white);
  background: var(--red-700);
  font-size: .82rem;
  text-align: center;
}
.history-note a { font-weight: 850; }

.section { padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 4rem); }
.section--dark { color: var(--white); background: var(--navy-950); }
.section--blue { color: var(--white); background: var(--navy-800); }
.section--paper2 { background: var(--paper-2); }
.section-inner { width: min(var(--content), 100%); margin: 0 auto; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.section-heading h2 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6.5vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .94;
}
.section-heading p { max-width: 580px; margin: 0; font-size: 1.08rem; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -1rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.stat { min-height: 150px; padding: 1.3rem; border-right: 1px solid currentColor; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: Georgia, serif; font-size: 2.6rem; font-weight: 500; }
.stat span { display: block; max-width: 180px; font-size: .83rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.chapter-grid, .collection-grid, .film-grid, .uniform-grid, .source-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.chapter-card, .collection-card, .film-card, .uniform-card, .source-card {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
}
.chapter-card { grid-column: span 6; min-height: 430px; }
.chapter-card img { width: 100%; height: 100%; object-fit: cover; }
.chapter-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(3,16,28,.94));
}
.chapter-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  color: var(--white);
}
.chapter-copy span, .card-label {
  display: block;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.chapter-copy h3, .collection-card h3, .uniform-card h3, .source-card h3 {
  margin: .45rem 0;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 500;
  line-height: 1.05;
}
.chapter-copy p { max-width: 560px; margin: .6rem 0 0; }
.chapter-copy a { display: inline-block; margin-top: 1rem; font-weight: 850; }

.collection-card { grid-column: span 4; }
.collection-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.collection-card > div { padding: 1.4rem; }
.collection-card p { color: var(--muted); }
.collection-card a { font-weight: 850; }

.timeline { position: relative; margin-top: 3rem; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(170px + 1rem);
  width: 1px;
  background: var(--line);
}
.timeline article {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline time {
  color: var(--red-700);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.timeline h3 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.timeline p { max-width: 760px; margin: .5rem 0 0; color: var(--muted); }

.page-hero {
  position: relative;
  min-height: 67svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(8rem, 20vh, 12rem) 1rem 4rem;
  color: var(--white);
  background: var(--navy-950);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(3,16,28,.18), rgba(3,16,28,.94));
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero > div { position: relative; z-index: 2; width: min(var(--content), 100%); margin: 0 auto; }
.page-hero p { max-width: 740px; margin: 1.4rem 0 0; font-size: 1.15rem; }
.page-hero h1 { font-size: clamp(3.8rem, 9vw, 7.8rem); }

.prose { width: min(850px, 100%); margin: 0 auto; font-size: 1.08rem; }
.prose h2 { margin: 2.8rem 0 .8rem; font-family: Georgia, serif; font-size: 2.5rem; font-weight: 500; letter-spacing: -.03em; }
.prose h3 { margin: 2rem 0 .5rem; font-size: 1.3rem; }
.prose .lead { font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; }
.prose blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 5px solid var(--red-700);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.uniform-card { grid-column: span 3; padding: 1.2rem; }
.uniform-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 1rem; }
.uniform-card h3 { font-size: 1.45rem; }
.uniform-card p { color: var(--muted); font-size: .95rem; }
.uniform-card a { font-weight: 850; }

.mode-list { border-top: 1px solid var(--line); }
.mode-list article {
  display: grid;
  grid-template-columns: 80px minmax(220px, .45fr) 1fr;
  gap: 1.4rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.mode-number { color: var(--red-700); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.mode-list h3 { margin: 0; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.mode-list p { margin: 0; color: var(--muted); }

.film-card { grid-column: span 4; display: flex; flex-direction: column; padding: 1.3rem; }
.film-card .film-number { color: var(--red-700); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.film-card h3 { margin: .8rem 0 .4rem; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; line-height: 1.08; }
.film-card p { flex: 1; color: var(--muted); }
.film-card button {
  width: 100%;
  padding: .75rem 1rem;
  color: var(--white);
  border: 0;
  background: var(--navy-900);
  font-weight: 850;
  cursor: pointer;
}

.media-dialog {
  width: min(980px, calc(100% - 2rem));
  padding: 0;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  background: var(--navy-950);
  box-shadow: var(--shadow);
}
.media-dialog::backdrop { background: rgba(0, 8, 15, .83); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; }
.dialog-head h2 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.dialog-head button { padding: .45rem .75rem; color: var(--white); border: 1px solid currentColor; background: transparent; cursor: pointer; }
.media-frame { aspect-ratio: 16 / 9; background: #000; }
.media-frame iframe { width: 100%; height: 100%; border: 0; }
.dialog-summary { padding: 0 1.2rem 1.2rem; color: #d7e5ee; }

.accessible-stops { display: grid; gap: 2.2rem; }
.accessible-stop {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(300px, 1.05fr);
  gap: 2rem;
  align-items: center;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}
.accessible-stop:nth-child(even) img { order: 2; }
.accessible-stop img { width: 100%; box-shadow: var(--shadow); }
.accessible-stop h2 { margin: .3rem 0 .7rem; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1.05; }
.accessible-stop p { color: var(--muted); }

.source-card { grid-column: span 4; padding: 1.4rem; }
.source-card h3 { font-size: 1.35rem; }
.source-card p { color: var(--muted); }
.source-card a { font-weight: 850; }

.site-footer {
  padding: 3.5rem clamp(1rem, 4vw, 4rem);
  color: #d8e2e9;
  background: #020c14;
}
.footer-inner { width: min(var(--content), 100%); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h2 { margin: 0; color: var(--white); font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.footer-grid h3 { margin: 0 0 .7rem; color: var(--gold); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li + li { margin-top: .45rem; }
.footer-fineprint { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .8rem; }

.experience-page { height: 100%; overflow: hidden; background: #000; }
.experience-page body { height: 100%; overflow: hidden; }
.experience-bar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem .8rem;
  color: var(--white);
  background: var(--navy-950);
}
.experience-bar a { font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
#pano { width: 100%; height: calc(100% - 58px); }

.timeline-studio { color: var(--white); background: #020b12; }
.timeline-studio .site-header { position: relative; background: var(--navy-950); }
.timeline-intro { padding: clamp(2.4rem, 5.5vw, 4.8rem) clamp(1rem, 4vw, 4rem) 1.8rem; background: linear-gradient(135deg, var(--navy-950), #12344f); }
.timeline-intro > div { width: min(var(--content), 100%); margin: 0 auto; }
.timeline-intro h1 { max-width: 1050px; margin: 0; font-family: Georgia, serif; font-size: clamp(3rem, 8vw, 7rem); font-weight: 500; letter-spacing: -.065em; line-height: .9; }
.timeline-intro p:last-child { max-width: 760px; margin-bottom: 0; font-size: 1.08rem; }
.timeline-workbench { position: relative; width: 100%; background: #000; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
#timeline-pano { width: 100%; height: clamp(430px, 67svh, 820px); }
.timeline-status { position: relative; z-index: 8; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 1.25rem; align-items: center; min-height: 78px; padding: .85rem clamp(1rem, 3vw, 3rem); background: linear-gradient(90deg, #071a29, #0e2e46); border-bottom: 1px solid rgba(255,255,255,.28); pointer-events: none; }
.timeline-status span { display: block; color: var(--gold); font-size: .7rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.timeline-status strong { display: block; margin: 0; padding-left: 1.25rem; font-family: Georgia, serif; font-size: clamp(1.05rem, 2vw, 1.55rem); font-weight: 500; border-left: 1px solid rgba(255,255,255,.3); }
.timeline-control-panel { position: relative; z-index: 10; padding: 1rem clamp(1rem, 3vw, 3rem) 1.2rem; color: var(--white); background: var(--navy-950); }
.timeline-primary-controls { display: grid; grid-template-columns: auto minmax(240px, 1fr) auto; gap: 1rem; align-items: center; width: min(1400px, 100%); margin: 0 auto; }
.control-cluster { display: flex; flex-wrap: wrap; gap: .45rem; }
.timeline-control-panel button, .timeline-search input { min-height: 44px; color: var(--white); border: 1px solid rgba(255,255,255,.38); background: #102b42; }
.timeline-control-panel button { padding: .58rem .8rem; font-weight: 800; cursor: pointer; }
.timeline-control-panel button:hover, .timeline-control-panel button[aria-pressed="true"] { color: var(--navy-950); background: var(--gold); }
.timeline-search { position: relative; }
.timeline-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.timeline-search input { width: 100%; padding: .65rem .9rem; }
.timeline-search input::placeholder { color: #c7d4dc; }
.year-rail { display: flex; gap: .35rem; width: min(1400px, 100%); margin: 1rem auto 0; padding: .25rem 0 .65rem; overflow-x: auto; scrollbar-color: var(--gold) #0a2134; }
.year-rail button { flex: 0 0 auto; min-width: 66px; }
.timeline-results-wrap { width: min(var(--content), calc(100% - 2rem)); margin: 0 auto; padding: 2.5rem 0 5rem; }
.timeline-highlights { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 2rem; }
.timeline-highlights button { padding: .6rem .85rem; color: var(--navy-950); border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.event-index-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.event-index-head h2 { margin: 0; font-family: Georgia, serif; font-size: 2.4rem; font-weight: 500; }
.event-index-head p { margin: 0; color: #b7c8d4; }
.event-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.2rem; }
.event-results button { min-height: 76px; padding: .8rem; color: var(--white); border: 1px solid rgba(255,255,255,.22); background: #0a2134; text-align: left; cursor: pointer; }
.event-results button:hover, .event-results button.is-current { border-color: var(--gold); background: #153b59; }
.event-results small { display: block; margin-bottom: .25rem; color: var(--gold); font-weight: 850; letter-spacing: .08em; }
.timeline-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: min(var(--content), calc(100% - 2rem)); margin: 0 auto; padding: 0 0 4rem; }
.timeline-help div { padding: 1.2rem; border: 1px solid rgba(255,255,255,.2); background: #071927; }
.timeline-help h3 { margin: 0 0 .45rem; color: var(--gold); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.timeline-help p { margin: 0; color: #c4d3dc; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header.nav-open { align-items: flex-start; background: var(--navy-950); }
  .site-header.nav-open .desktop-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: .5rem 1rem 1rem;
    background: var(--navy-950);
  }
  .site-header.nav-open .desktop-nav a { padding: .85rem; border-bottom: 1px solid rgba(255,255,255,.18); }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .chapter-card { grid-column: span 12; }
  .collection-card, .film-card { grid-column: span 6; }
  .uniform-card { grid-column: span 4; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid currentColor; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline-primary-controls { grid-template-columns: 1fr; }
  .event-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { padding: .75rem 1rem; }
  .brand img { width: 40px; height: 40px; }
  .brand span { display: none; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 5.8rem); }
  .hero-actions .button, .button-row .button { width: 100%; }
  .collection-card, .film-card, .uniform-card, .source-card { grid-column: span 12; }
  .timeline::before { display: none; }
  .timeline article { grid-template-columns: 1fr; gap: .5rem; }
  .mode-list article { grid-template-columns: 52px 1fr; }
  .mode-list p { grid-column: 2; }
  .accessible-stop { grid-template-columns: 1fr; }
  .accessible-stop:nth-child(even) img { order: initial; }
  .footer-grid { grid-template-columns: 1fr; }
  .experience-bar span { display: none; }
  #timeline-pano { height: 56svh; min-height: 410px; }
  .timeline-status { grid-template-columns: 1fr; gap: .3rem; min-height: 82px; }
  .timeline-status strong { padding-left: 0; border-left: 0; }
  .event-results, .timeline-help { grid-template-columns: 1fr; }
  .event-index-head { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .hero::before, .page-hero::before, .chapter-card::after { background: transparent; }
  .chapter-copy { position: relative; color: CanvasText; }
}
