@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("/assets/fonts/bodoni-moda-latin-ext.woff2?v=20261026-1") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("/assets/fonts/bodoni-moda-latin.woff2?v=20261026-1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 600;
  font-display: optional;
  src: url("/assets/fonts/newsreader-latin-ext.woff2?v=20261026-1") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 600;
  font-display: optional;
  src: url("/assets/fonts/newsreader-latin.woff2?v=20261026-1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("/assets/fonts/space-grotesk-latin-ext.woff2?v=20261026-1") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url("/assets/fonts/space-grotesk-latin.woff2?v=20261026-1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ink: #090807;
  --ink-soft: #12100e;
  --surface: #171411;
  --surface-raised: #211d18;
  --brass: #c5a059;
  --brass-light: #e9c176;
  --bone: #eae4d9;
  --parchment: #c8c1b4;
  --muted: #a19582;
  --line: rgba(197, 160, 89, 0.28);
  --display: "Bodoni Moda", "Times New Roman", serif;
  --body: "Newsreader", Georgia, serif;
  --label: "Space Grotesk", sans-serif;
  --page-width: 1440px;
  --gutter: clamp(1.25rem, 5.5vw, 5.25rem);
  font-family: var(--body);
  background: var(--ink);
  color: var(--bone);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(110, 82, 39, 0.12), transparent 38rem),
    var(--ink);
  color: var(--bone);
  font-size: 1rem;
  line-height: 1.6;
}

body::after {
  position: fixed;
  z-index: 10;
  pointer-events: none;
  inset: 0;
  content: "";
  opacity: 0.12;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(234, 228, 217, 0.035) 4px);
  mix-blend-mode: soft-light;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brass-light);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  background: var(--bone);
  color: var(--ink);
  font: 600 0.72rem var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/*
 * The skip link moves focus to <main tabindex="-1">. The page-sized focus ring that
 * would draw around the whole landmark is noise, so the focus move stays silent.
 */
main:focus {
  outline: none;
}

.page-width {
  width: min(100% - var(--gutter) * 2, var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  min-height: 5.5rem;
  padding-inline: var(--gutter);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  background: rgba(9, 8, 7, 0.88);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  width: fit-content;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}

.wordmark-title {
  font: 400 1.02rem var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wordmark-meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font: 500 0.57rem var(--label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wordmark-meta .sep {
  color: var(--brass);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 3vw, 3.15rem);
}

.nav-link,
.clearance,
.frame-mark,
.frame-clearance,
.eyebrow,
.button,
.text-link,
.hero-caption,
.timeline-topline,
.coordinate-label,
.coordinate-date,
.timeline-stamp,
.timeline-foot,
.image-index,
.photo-caption,
.subject-facts dt,
.assessment,
.closing-signature,
.footer-top {
  font-family: var(--label);
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  padding-block: 0.45rem;
  color: var(--brass-light);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brass);
  content: "";
  transition: transform 220ms ease;
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--brass-light);
}

.nav-link:hover::after,
.nav-link.is-current::after {
  transform: scaleX(1);
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(0.7rem, 1.5vw, 1.5rem);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.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;
}

.language-link {
  display: inline-flex;
  min-width: 2.25rem;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--brass-light);
  font: 500 0.58rem/1 var(--label);
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.language-link:hover,
.language-link:focus-visible,
.language-link.is-current {
  border-color: var(--brass-light);
  color: var(--brass-light);
}

.language-link.is-current {
  background: rgba(197, 160, 89, 0.1);
}

.clearance {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--parchment);
  font-size: 0.57rem;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.clearance .sep {
  color: var(--muted);
}

.status-dot,
.caption-light {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brass-light);
  box-shadow: 0 0 0.8rem rgba(233, 193, 118, 0.45);
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.72rem 0.55rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

/* ── Theme toggle button ──────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--label);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55em 1em;
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: rgba(9, 8, 7, 0.55);
  color: var(--parchment);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--brass);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.35);
}

.theme-toggle-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 6px rgba(197, 160, 89, 0.4);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-dot {
  background: var(--brass-light);
  box-shadow: 0 0 10px rgba(233, 193, 118, 0.6);
}

.theme-toggle-label {
  color: inherit;
}

@media (max-width: 860px) {
  .theme-toggle-label {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  height: 1px;
  margin: 0.32rem 0;
  background: var(--bone);
  transition: transform 180ms ease;
}

.hero {
  padding-top: clamp(1.25rem, 3vw, 2.6rem);
}

.hero-frame {
  position: relative;
  display: flex;
  min-height: clamp(36rem, 70vw, 47rem);
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.34);
  isolation: isolate;
  container-type: inline-size;
  background: var(--surface);
}

.scene-reaction-overlay {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 7.5em;
  max-width: calc(100% - 1rem);
  padding: 0.12em 0.15em;
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: rgba(9, 8, 7, 0.72);
  color: var(--bone);
  backdrop-filter: blur(5px);
  font-size: clamp(0.45rem, 1.25cqw, 0.66rem);
}

.hero-reaction {
  top: 4.2rem;
  right: 1.4rem;
}

.hero-art,
.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  z-index: -2;
  overflow: hidden;
}

.hero-art-layer {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-art-ancient {
  z-index: 0;
}

.hero-art-present {
  z-index: 1;
  -webkit-mask-image: linear-gradient(105deg, transparent 0%, transparent 38%, rgba(0, 0, 0, 0.22) 44%, #000 52%);
  mask-image: linear-gradient(105deg, transparent 0%, transparent 38%, rgba(0, 0, 0, 0.22) 44%, #000 52%);
}

.hero-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: brightness(0.88) saturate(0.8);
  animation: image-arrive 1.2s ease-out both;
}

.hero-art-ancient .hero-image {
  object-position: 42% center;
}

.hero-art-present .hero-image {
  object-position: 62% center;
  filter: brightness(0.82) saturate(0.78);
  animation-delay: 120ms;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.93) 0%, rgba(9, 8, 7, 0.71) 31%, rgba(9, 8, 7, 0.05) 71%, rgba(9, 8, 7, 0.28) 100%),
    linear-gradient(0deg, rgba(9, 8, 7, 0.94) 0%, rgba(9, 8, 7, 0.18) 54%, rgba(9, 8, 7, 0.22) 100%);
}

.glitch-svg {
  position: absolute;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
}

.hero-glitch {
  top: 19%;
  right: 8%;
  width: clamp(7rem, 12vw, 11rem);
  color: var(--brass-light);
  opacity: 0.58;
}

.glitch-echo {
  stroke: var(--parchment);
  opacity: 0;
  animation: signal-break 11.7s steps(1, end) infinite;
}

.glitch-block {
  fill: var(--brass-light);
  stroke: none;
  opacity: 0;
  animation: signal-break 14.3s steps(1, end) -5.1s infinite;
}

.glitch-block-late {
  animation-delay: -9.2s;
}

.frame-glitch {
  z-index: 1;
  inset: 0.55rem;
  width: calc(100% - 1.1rem);
  height: calc(100% - 1.1rem);
  color: var(--brass-light);
  opacity: 0.62;
  mix-blend-mode: screen;
}

.frame-glitch-late .glitch-echo {
  animation-delay: -3.8s;
}

.frame-glitch-last .glitch-echo {
  animation-delay: -7.2s;
}

.frame-glitch .glitch-block {
  animation-delay: -2.7s;
}

.frame-mark,
.frame-clearance {
  position: absolute;
  top: 1.4rem;
  color: rgba(234, 228, 217, 0.72);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
}

.frame-mark {
  left: 1.6rem;
  display: flex;
  gap: 1.5rem;
}

.frame-mark .sep {
  color: var(--brass);
}

.frame-clearance {
  position: absolute;
  right: 1.6rem;
  color: var(--brass-light);
}

.frame-clearance .clearance-separator {
  padding-inline: 0.35rem;
  color: var(--parchment);
}

.glitch-overlay {
  position: absolute;
  top: -0.3rem;
  right: 0;
  z-index: 1;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--brass);
  background: var(--ink);
  color: var(--brass-light);
  font: 600 0.52rem/1.2 var(--label);
  letter-spacing: 0.14em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  animation: access-signal-tear 16s steps(1, end) infinite;
}

.hero-content {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
  color: var(--brass-light);
  font-size: 0.59rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.5;
}

.eyebrow-square {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  background: var(--brass);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
}

.hero hgroup {
  margin: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 7.4vw, 7rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}

/* The tagline is a sibling paragraph inside <hgroup>, so it carries its own size. */
.hero .hero-subtitle {
  display: inline-block;
  margin: 0.28em 0 0;
  font-size: clamp(2.2rem, 4.07vw, 3.85rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.hero .hero-subtitle em,
.section-heading h2 em,
.subject-copy h2 em {
  color: var(--brass-light);
  font-weight: 400;
}

.hero-deck {
  max-width: 35rem;
  margin: 1.9rem 0 1.7rem;
  color: var(--parchment);
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  font-weight: 300;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  padding: 0.8rem 1.15rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--bone);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--brass-light);
}

.button span {
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--brass-light);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: color 180ms ease;
}

.text-link:hover {
  color: var(--brass-light);
}

.text-link span {
  color: var(--brass-light);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(0.2rem);
}

.hero-stamp {
  width: min(17rem, 28%);
  flex: 0 0 auto;
  padding: 1.2rem 1.25rem 1rem;
  border: 1px solid rgba(234, 228, 217, 0.4);
  background: rgba(18, 16, 14, 0.78);
  backdrop-filter: blur(12px);
}

.stamp-label,
.stamp-foot {
  display: block;
  color: var(--muted);
  font: 500 0.54rem/1.5 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stamp-value {
  display: block;
  margin: 0.25rem 0 0.8rem;
  color: var(--bone);
  font: 400 1.8rem/1.1 var(--display);
}

.stamp-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 0.7rem;
  background: var(--line);
}

.stamp-foot {
  color: var(--parchment);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.redacted-note {
  margin-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.redacted-note summary {
  display: flex;
  min-height: 1.7rem;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.5rem;
  color: var(--muted);
  font: 500 0.48rem/1.3 var(--label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.redacted-note summary::-webkit-details-marker {
  display: none;
}

.redaction-bar {
  width: 42%;
  height: 0.48rem;
  background: var(--bone);
  transition: opacity 180ms ease, transform 180ms ease;
}

.redacted-note[open] .redaction-bar {
  opacity: 0.12;
  transform: scaleX(0.2);
  transform-origin: right;
}

.redacted-note p {
  margin: 0.35rem 0 0;
  color: var(--parchment);
  font-size: 0.85rem;
  line-height: 1.35;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.15rem 0;
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
}

.hero-caption > span:first-child {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.caption-light {
  width: 0.35rem;
  height: 0.35rem;
}

.caption-right .sep {
  padding-inline: 0.45rem;
  color: var(--brass);
}

.screening {
  padding-bottom: 0;
}

.screening .section-heading {
  grid-template-columns: 1fr;
}

.screening-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  max-width: 76rem;
  margin-inline: auto;
}

.teaser-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-width: 0;
  border: 1px solid var(--line);
  background: #070605;
}

.film-load-button {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 0;
  background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.1), transparent 60%);
  color: var(--bone);
  font: 500 0.75rem/1.4 var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

html.js .film-load-button {
  display: flex;
}

.film-play-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  padding-left: 0.2rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass-light);
  font-size: 1.1rem;
  transition: background-color 180ms ease, transform 180ms ease;
}

.film-load-button:hover .film-play-icon,
.film-load-button:focus-visible .film-play-icon {
  transform: scale(1.06);
  background: rgba(197, 160, 89, 0.16);
}

.film-load-button:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: -4px;
}

.teaser-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #070605;
}

.score-player {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem 1.1rem;
  min-width: 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.score-player .eyebrow {
  margin-bottom: 0.25rem;
}

.score-player > div {
  min-width: 0;
}

.score-cover {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  align-self: center;
  border: 1px solid var(--line);
}

.score-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.score-player h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.score-credit {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font: 500 0.68rem/1.45 var(--label);
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.score-credit a {
  color: var(--brass-light);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.2em;
}

.score-credit a:hover,
.score-credit a:focus-visible {
  color: var(--bone);
  text-decoration-color: currentColor;
}

.score-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  align-self: center;
  gap: 0.8rem;
  min-height: 3.1rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--brass);
  border-radius: 0;
  background: transparent;
  color: var(--parchment);
  cursor: pointer;
  font: 500 0.62rem/1.2 var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.score-toggle:hover,
.score-toggle.is-playing {
  background: var(--brass);
  color: var(--ink);
}

.score-toggle:focus-visible {
  outline: 2px solid var(--parchment);
  outline-offset: 4px;
}

.score-toggle-icon {
  width: 1rem;
  color: var(--brass-light);
  text-align: center;
}

.score-toggle.is-playing .score-toggle-icon {
  color: var(--ink);
}

.section {
  padding-block: clamp(6rem, 10vw, 9rem);
}

.game-launcher {
  grid-template-columns: 4.5rem minmax(0, 1fr);
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.game-play-link {
  grid-column: 1 / -1;
  justify-self: stretch;
  justify-content: flex-start;
  text-decoration: none;
}

.chronology {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.75rem;
}

.section-heading h2,
.subject-copy h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
}

.section-intro {
  max-width: 27rem;
  margin: 0 0 0.35rem auto;
  color: var(--parchment);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.6;
}

.timeline-panel {
  padding: clamp(1.2rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(197, 160, 89, 0.035), transparent 45%),
    var(--ink-soft);
}

.timeline-topline,
.timeline-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
}

.timeline-range {
  color: var(--parchment);
}

.timeline-range .sep {
  padding-inline: 0.4rem;
  color: var(--brass);
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-block: 2.6rem 2.3rem;
}

.timeline-track::before {
  position: absolute;
  top: 1.67rem;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), rgba(197, 160, 89, 0.16));
  content: "";
}

.era-stop {
  position: relative;
  display: grid;
  grid-template-rows: auto 1.4rem auto;
  justify-items: start;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.era-number,
.era-label {
  color: var(--muted);
  font: 500 0.55rem/1.3 var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.era-label {
  max-width: 10rem;
  letter-spacing: 0.08em;
}

.era-mark {
  position: relative;
  z-index: 1;
  width: 0.72rem;
  height: 0.72rem;
  align-self: center;
  border: 1px solid var(--muted);
  background: var(--ink);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.era-stop:hover .era-number,
.era-stop:hover .era-label,
.era-stop.is-active .era-number,
.era-stop.is-active .era-label {
  color: var(--brass-light);
}

.era-stop.is-active .era-mark {
  transform: rotate(45deg) scale(1.12);
  border-color: var(--brass-light);
  background: var(--brass);
  box-shadow: 0 0 1.2rem rgba(197, 160, 89, 0.25);
}

.timeline-detail {
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(15rem, 1.5fr) auto;
  align-items: center;
  gap: 2rem;
  min-height: 8rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(197, 160, 89, 0.18);
  border-bottom: 1px solid rgba(197, 160, 89, 0.18);
}

.coordinate-label,
.coordinate-date,
.timeline-stamp {
  display: block;
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: 0.13em;
}

.coordinate-label #era-index {
  padding-left: 0.35rem;
  color: var(--brass-light);
  font-weight: 500;
}

.coordinate-date {
  margin-top: 0.55rem;
  color: var(--parchment);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.timeline-story h3 {
  margin: 0 0 0.4rem;
  color: var(--bone);
  font-size: 1.8rem;
  line-height: 1.1;
}

.timeline-story p {
  max-width: 40rem;
  margin: 0;
  color: var(--parchment);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
}

.timeline-stamp {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--brass-light);
  white-space: nowrap;
}

.timeline-foot {
  padding-top: 1rem;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: none;
}

.evidence {
  padding-top: 2rem;
}

.evidence-heading {
  margin-bottom: 2.8rem;
}

.archive-method {
  display: grid;
  grid-template-columns: minmax(9rem, 0.24fr) minmax(0, 1fr);
  gap: 0.8rem 1.5rem;
  margin: -0.8rem 0 2rem;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--brass);
  background: linear-gradient(90deg, rgba(197, 160, 89, 0.09), rgba(197, 160, 89, 0.015));
}

.archive-method-label {
  color: var(--brass-light);
  font: 500 0.52rem/1.5 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive-method p {
  max-width: 54rem;
  margin: 0;
  color: var(--parchment);
  font-size: 0.92rem;
  line-height: 1.55;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  margin: 0;
  padding: 0;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  list-style: none;
}

.evidence-card-record {
  min-width: 0;
}

.gallery-periods {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.gallery-period-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.3rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.gallery-period-heading h3 {
  margin: 0;
  color: var(--bone);
  font: 400 1.2rem/1.25 var(--display);
}

.gallery-period-heading > span {
  color: var(--muted);
  font: 500 0.55rem/1.3 var(--label);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.gallery-controls {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 2.4rem;
  padding-block: 1.2rem;
  border-block: 1px solid var(--line);
}

.gallery-search {
  display: grid;
  gap: 0.55rem;
  color: var(--brass-light);
  font: 500 0.55rem/1.4 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-search input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink-soft);
  color: var(--bone);
  font: 400 1rem var(--body);
  letter-spacing: 0;
  text-transform: none;
}

.gallery-search input::placeholder {
  color: var(--muted);
}

.gallery-search input:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 2px;
}

.gallery-filters {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gallery-filter {
  min-height: 2.35rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--parchment);
  font: 500 0.52rem/1.3 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.gallery-filter:hover,
.gallery-filter.is-active {
  border-color: var(--brass);
  background: rgba(197, 160, 89, 0.12);
  color: var(--brass-light);
}

.gallery-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font: 500 0.52rem/1.4 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-empty {
  padding: 2rem 0;
  color: var(--parchment);
  font-size: 1.1rem;
}

.evidence-card {
  display: block;
}

.evidence-card-link {
  position: relative;
  display: block;
  padding: 0;
  cursor: pointer;
}

.evidence-card-offset {
  margin-top: 2.8rem;
}

.plate-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0.55rem;
  border: 1px solid var(--line);
  container-type: inline-size;
  background: var(--surface);
}

.plate-image-wrap::after {
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(234, 228, 217, 0.12);
  content: "";
  pointer-events: none;
}

.plate-image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: brightness(0.82) saturate(0.78);
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 650ms ease;
}

.plate-image-wrap picture {
  display: block;
  overflow: hidden;
}

.evidence-card-link:hover img,
.evidence-card-link:focus-visible img {
  transform: scale(1.035);
  filter: brightness(0.98) saturate(0.9);
}

.image-index {
  position: absolute;
  z-index: 1;
  bottom: 1.15rem;
  left: 1.2rem;
  color: var(--bone);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 8px #000;
}

.image-index i {
  padding-inline: 0.3rem;
  color: var(--brass-light);
  font-style: normal;
}

.plate-copy {
  display: block;
  padding: 1rem 0.2rem 0;
}

/*
 * The scene title is a heading, not a second link: the plate image is the card's
 * single link to the case file, so the title carries outline structure instead of
 * repeating the destination in the accessibility tree.
 */
.plate-title {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  font-weight: 400;
}

.plate-copy .scene-title-main {
  display: block;
  color: var(--bone);
  font: 400 clamp(1rem, 1.2vw, 1.2rem)/1.25 var(--display);
  overflow-wrap: break-word;
  transition: color 220ms ease;
}

/* Hovering the card, or focusing its link, lifts the title to full brass. */
.evidence-card:hover .scene-title-main,
.evidence-card:focus-within .scene-title-main {
  color: var(--brass-light);
}

.plate-copy .scene-title-year {
  display: block;
  color: var(--muted);
  font: 500 0.72rem/1.4 var(--label);
  font-variant-numeric: oldstyle-nums;
  letter-spacing: 0.06em;
}

.plate-copy .scene-title-description {
  display: block;
  max-width: 22rem;
  color: var(--parchment);
  font: 400 0.82rem/1.45 var(--body);
}

/*
 * The image link's visible label is its own alt text, so announce the destination and
 * scene instead; the shared global link ring would be clipped by the plate wrapper,
 * so the ring is drawn on the wrapper below.
 */
.evidence-card-link:focus-visible {
  outline: none;
}

.plate-image-wrap:has(.evidence-card-link:focus-visible) {
  outline: 2px solid var(--brass-light);
  outline-offset: 2px;
}

.subject {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 8rem);
  padding-block: clamp(6rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}

.subject-photo {
  position: relative;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.subject-credits {
  display: block;
}

.cat-render-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(197, 160, 89, 0.12), transparent 49%),
    linear-gradient(160deg, #211d18, #100e0c 72%);
}

.cat-render-stage picture,
.cat-render-stage img,
.cat-render-stage canvas {
  width: 100%;
  height: 100%;
}

.cat-render-stage picture {
  display: block;
}

.cat-render-stage img {
  display: block;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.72) contrast(1.04) brightness(0.88);
}

.cat-render-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  visibility: hidden;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}

.cat-render-stage.is-ready canvas {
  visibility: visible;
}

.cat-render-stage img[hidden] {
  display: none;
}

.cat-render-tag,
.cat-render-help {
  display: none;
}

.cat-render-stage.is-ready .cat-render-tag,
.cat-render-stage.is-ready .cat-render-help {
  display: block;
}

.cat-render-stage.is-fallback .cat-render-status {
  display: block;
}

.cat-render-stage.is-fallback .cat-render-tag,
.cat-render-stage.is-fallback .cat-render-help,
.cat-render-stage.is-fallback .cat-render-toggle,
.cat-render-stage.is-fallback canvas,
.cat-render-status[hidden] {
  display: none;
}

.cat-render-stage canvas:active {
  cursor: grabbing;
}

.cat-render-stage canvas:focus-visible {
  outline: 1px solid var(--brass-light);
  outline-offset: -0.3rem;
}

.cat-render-tag,
.cat-render-help,
.cat-render-status {
  position: absolute;
  z-index: 1;
  margin: 0;
  font-family: var(--label);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cat-render-tag {
  top: 1rem;
  left: 1rem;
  color: var(--brass-light);
}

.cat-render-help,
.cat-render-status {
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  color: var(--parchment);
  text-align: center;
  text-shadow: 0 1px 5px var(--ink);
}

.cat-render-status {
  color: var(--brass-light);
}

.cat-render-toggle {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(197, 160, 89, 0.6);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: rgba(23, 20, 17, 0.72);
  color: var(--brass-light);
  font-family: var(--label);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.cat-render-toggle:hover,
.cat-render-toggle:focus-visible {
  border-color: var(--brass-light);
  background: rgba(23, 20, 17, 0.92);
  outline: none;
}

.photo-caption {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.2rem 0.05rem;
  color: var(--muted);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
}

.photo-caption .sep {
  color: var(--brass);
}

.subject-copy h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.8rem, 6.8vw, 6.8rem);
}

.subject-lede {
  max-width: 35rem;
  color: var(--parchment);
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  font-weight: 300;
  line-height: 1.55;
}

.subject-facts {
  margin: 2rem 0 1.8rem;
  border-top: 1px solid var(--line);
}

.subject-facts div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.7fr) 1.3fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.16);
}

.subject-facts dt {
  color: var(--muted);
  font-size: 0.53rem;
  letter-spacing: 0.14em;
}

.subject-facts dd {
  margin: 0;
  color: var(--bone);
  font-size: 1.03rem;
}

.subject-facts dd i {
  color: var(--parchment);
}

.assessment {
  color: var(--brass-light);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.subject-link {
  margin-top: 0.25rem;
}

.closing-note {
  position: relative;
  display: flex;
  min-height: 21rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto 6rem;
  padding: 3rem 1.5rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at center, rgba(197, 160, 89, 0.09), transparent 64%),
    var(--ink-soft);
  text-align: center;
}

.closing-mark {
  margin-bottom: 1rem;
  color: var(--brass);
  font-size: 1.1rem;
}

.closing-note .eyebrow {
  justify-content: center;
}

.closing-quote {
  margin: 0.6rem 0 1rem;
  font: 400 clamp(1.8rem, 4vw, 3.35rem)/1.17 var(--display);
  letter-spacing: -0.02em;
}

.closing-signature {
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.09em;
  text-transform: none;
}

/* Tip line — user submissions */
.tip-line {
  position: relative;
  display: flex;
  margin-bottom: 6rem;
  padding: 3rem 1.5rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 70% 30%, rgba(197, 160, 89, 0.07), transparent 60%),
    var(--ink-soft);
  text-align: center;
  justify-content: center;
}

.tip-line-inner {
  display: flex;
  max-width: 42rem;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.tip-line-mark {
  margin-bottom: 0.5rem;
  color: var(--brass);
  font-size: 1.1rem;
}

.tip-line-inner .eyebrow {
  justify-content: center;
}

.tip-line-inner h2 {
  margin: 0.2rem 0 0.4rem;
  font: 400 clamp(1.6rem, 3.5vw, 2.6rem)/1.15 var(--display);
  letter-spacing: -0.02em;
}

.tip-line-lede {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 34rem;
}

.tip-line-inner .button {
  margin-top: 0.4rem;
}

@media (max-width: 640px) {
  .tip-line {
    margin-bottom: 4rem;
    padding: 2.5rem 1.25rem;
  }

  .tip-line-inner h2 {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 2rem var(--gutter) 2.4rem;
  border-top: 1px solid var(--line);
  background: #070605;
}

.footer-wordmark .wordmark-title {
  font-size: 0.85rem;
}

.scene-reaction {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-reaction-widget {
  display: flex;
  width: 100%;
  min-height: 3em;
  justify-content: center;
}

.scene-reaction-widget[data-lyket-type="updown"] button {
  min-width: 2.75rem !important;
  min-height: 2.75rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.scene-reaction-widget[data-lyket-type="updown"] button:not(:disabled):hover,
.scene-reaction-widget[data-lyket-type="updown"] button:not(:disabled):focus-visible {
  background: rgba(233, 193, 118, 0.14) !important;
  opacity: 1 !important;
  transition: background 180ms ease;
}

.scene-reaction-widget[data-lyket-type="updown"] button:hover svg {
  animation: reaction-icon-pulse 700ms ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes reaction-icon-pulse {
  to {
    transform: scale(1.12);
  }
}

.scene-reaction-widget[data-lyket-type="updown"] button:focus-visible {
  outline: 2px solid var(--brass-light) !important;
  outline-offset: 3px;
}

.scene-reaction-widget[data-lyket-type="updown"] button > div:first-child {
  display: none !important;
}

.scene-reaction-widget[data-lyket-type="updown"] button + div {
  display: none !important;
}

.lyket-reaction-seed {
  display: none;
}

.gallery-reaction,
.scene-page-reaction {
  right: 0.65rem;
  bottom: 0.65rem;
}

.gallery-reaction {
  width: 5.5rem;
}

.gallery-reaction .scene-reaction-widget {
  min-height: 2.25rem;
}

.gallery-reaction .scene-reaction-widget[data-lyket-type="updown"] button {
  min-width: 2.25rem !important;
  min-height: 2.25rem !important;
}

.scene-buy-container {
  margin: 1rem 0 0;
  max-width: 180px;
}

.scene-buy-container stripe-buy-button {
  display: block;
  width: 100%;
}

.site-footer > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* The copyright line is small print, but its size is set on the paragraph. */
.site-footer > p small {
  font-size: inherit;
}

.footer-top {
  justify-self: end;
  color: var(--parchment);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  transition: color 180ms ease;
}

.footer-top:hover {
  color: var(--brass-light);
}

.footer-top span {
  margin-left: 0.5rem;
  color: var(--brass-light);
  font-size: 0.9rem;
}

/* Accessibility LiveStatement: spans the full footer width, below the credits row. */
.footer-statement {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  width: 100%;
}

.footer-statement iframe {
  display: block;
  width: 100%;
  border: 0;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes image-arrive {
  from { transform: scale(1.035); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes signal-break {
  0%, 86%, 100% { opacity: 0; transform: translateX(0); }
  86.2% { opacity: 0.78; transform: translateX(-3px); }
  86.55% { opacity: 0.42; transform: translateX(2px); }
  86.9% { opacity: 0; transform: translateX(0); }
}

@keyframes access-signal-tear {
  0%, 93%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(0); }
  93.2% { opacity: 0.95; clip-path: inset(38% 0 42% 0); transform: translateX(-0.25rem); }
  93.45% { clip-path: inset(0 0 76% 0); transform: translateX(0.15rem); }
  93.7% { clip-path: inset(72% 0 0 0); transform: translateX(-0.1rem); }
  94% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(0); }
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 4.9rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 8, 7, 0.98);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .nav-link {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.12);
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-frame {
    min-height: 42rem;
  }

  .hero-stamp {
    width: 14rem;
  }

  .timeline-detail {
    grid-template-columns: minmax(9rem, 0.55fr) minmax(14rem, 1.45fr);
  }

  .timeline-stamp {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 1.1rem;
  }

  .site-header {
    min-height: 4.5rem;
  }

  .wordmark-title {
    font-size: 0.9rem;
  }

  .clearance {
    display: none;
  }

  .hero {
    padding-top: 0.8rem;
  }

  .hero-frame {
    min-height: 43rem;
    align-items: flex-end;
  }

  .hero-image {
    object-position: 57% center;
  }

  .hero-art-present {
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 36%, rgba(0, 0, 0, 0.22) 42%, #000 50%);
    mask-image: linear-gradient(100deg, transparent 0%, transparent 36%, rgba(0, 0, 0, 0.22) 42%, #000 50%);
  }

  .hero-art {
    inset: 0 0 auto;
    height: 36%;
  }

  .hero-art-ancient .hero-image {
    object-position: 34% center;
  }

  .hero-art-present .hero-image {
    object-position: 54% center;
    filter: brightness(0.94) saturate(0.82);
  }

  .hero-shade {
    inset: 0 0 auto;
    height: 43%;
    background: linear-gradient(180deg, rgba(9, 8, 7, 0.08) 0%, rgba(9, 8, 7, 0.16) 56%, var(--surface) 100%);
  }

  .frame-mark,
  .frame-clearance {
    top: 1rem;
    font-size: 0.45rem;
  }

  .frame-mark {
    left: 0.9rem;
  }

  .frame-mark-wide {
    display: none;
  }

  .frame-clearance {
    right: 0.9rem;
  }

  .hero-content {
    display: block;
    padding: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 12.5vw, 5rem);
  }

  .hero-deck {
    max-width: 27rem;
    margin: 1.35rem 0 1.25rem;
    font-size: 1.08rem;
  }

  .hero-actions {
    gap: 1rem;
  }

  .button {
    min-height: 3rem;
    gap: 1rem;
    padding-inline: 0.9rem;
    font-size: 0.54rem;
  }

  .text-link {
    font-size: 0.53rem;
  }

  .hero-stamp {
    display: none;
  }

  .hero-caption {
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.48rem;
  }

  .caption-right {
    padding-left: 0.9rem;
  }

  .section {
    padding-block: 2rem;
  }

  .chronology {
    margin-top: 4rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 2.2rem;
  }

  .section-heading > *,
  .subject > * {
    min-width: 0;
  }

  .screening-panel {
    grid-template-columns: 1fr;
  }

  .score-player {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.7rem;
  }

  .score-player > .score-toggle {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .score-cover {
    width: 3rem;
    height: 3rem;
  }

  .score-toggle {
    gap: 0.45rem;
    min-height: 2.7rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.48rem;
    letter-spacing: 0.08em;
  }

  .section-heading h2 {
    font-size: clamp(2.1rem, 8.5vw, 4rem);
  }

  .section-intro {
    margin-left: 0;
    font-size: 1rem;
  }

  .timeline-panel {
    padding: 1rem;
  }

  .timeline-topline,
  .timeline-foot {
    font-size: 0.46rem;
  }

  .timeline-track {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    margin-block: 1.5rem;
  }

  .timeline-track::before {
    top: 0;
    bottom: 0;
    left: 0.34rem;
    width: 1px;
    height: auto;
    background: linear-gradient(var(--brass), rgba(197, 160, 89, 0.15));
  }

  .era-stop {
    grid-template-columns: 2.2rem 1rem 1fr;
    grid-template-rows: auto;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.4rem;
  }

  .era-number {
    grid-column: 1;
    grid-row: 1;
  }

  .era-mark {
    grid-column: 2;
    grid-row: 1;
    width: 0.55rem;
    height: 0.55rem;
  }

  .era-label {
    grid-column: 3;
    grid-row: 1;
    max-width: none;
  }

  .timeline-detail {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding-block: 1.2rem;
  }

  .timeline-stamp {
    grid-column: auto;
  }

  .timeline-story h3 {
    font-size: 1.6rem;
  }

  .timeline-foot {
    flex-wrap: wrap;
  }

  .evidence {
    padding-top: 0;
  }

  .archive-method {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-top: -0.5rem;
    padding: 0.85rem;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .gallery-controls {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.8rem;
  }

  .gallery-filters {
    justify-content: flex-start;
  }

  .evidence-card-offset {
    margin-top: 0;
  }

  .plate-image-wrap img {
    aspect-ratio: 16 / 9;
  }

  .plate-copy .scene-title-main {
    font-size: 1.05rem;
  }

  .subject {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: 5rem;
  }

  .subject-photo {
    max-width: 32rem;
  }

  .subject-copy h2 {
    font-size: clamp(2.45rem, 14vw, 6rem);
  }

  .subject-facts div {
    grid-template-columns: minmax(7rem, 0.8fr) 1.2fr;
    gap: 0.6rem;
  }

  .subject-facts dd {
    font-size: 0.96rem;
  }

  .closing-note {
    min-height: 17rem;
    margin-bottom: 4rem;
  }

  .closing-quote {
    font-size: clamp(1.65rem, 8vw, 2.6rem);
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    padding-block: 1.5rem 1.8rem;
  }

  .site-footer > p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }

  .footer-top {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .glitch-svg,
  .glitch-echo,
  .glitch-block {
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

.production-notes {
  margin-bottom: 4rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.production-notes summary {
  color: var(--brass-light);
  font: 500 0.72rem/1.5 var(--label);
  cursor: pointer;
}

.production-notes p {
  max-width: 70rem;
  margin: 0.8rem 0 0;
  color: var(--parchment);
  font-size: 0.95rem;
}

.scene-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--ink-soft);
}

.scene-page-header nav,
.scene-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.scene-page-header nav,
.scene-pagination a {
  font: 500 0.72rem/1.5 var(--label);
}

.scene-page {
  max-width: 58rem;
  padding-block: clamp(2rem, 6vw, 5rem);
}

.scene-page-title {
  display: grid;
  gap: 0.35rem;
  max-width: 50rem;
  margin: 0 0 1.5rem;
}

.scene-page-title .scene-title-main {
  color: var(--bone);
  font: 400 clamp(2rem, 4.8vw, 3.6rem)/1.08 var(--display);
  overflow-wrap: break-word;
}

.scene-page-title .scene-title-year {
  color: var(--brass-light);
  font: 500 0.72rem/1.4 var(--label);
  letter-spacing: 0.07em;
}

.scene-page hgroup {
  margin: 0;
}

.scene-page hgroup .scene-page-title {
  margin: 0;
}

.scene-page-description {
  max-width: 50rem;
  margin: 0.35rem 0 1.5rem;
  color: var(--parchment);
  font: 400 clamp(1rem, 1.8vw, 1.3rem)/1.4 var(--body);
}

.scene-disclosure {
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--brass);
  background: var(--ink-soft);
  color: var(--parchment);
}

.scene-figure {
  margin: 2rem 0 3rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.scene-figure-image {
  position: relative;
  container-type: inline-size;
}

.scene-plate {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.scene-plate:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 2px;
}

.scene-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  background: #070605;
}

.scene-plate-hint {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  background: rgba(9, 8, 7, 0.72);
  color: var(--brass-light);
  font: 500 0.6rem/1.4 var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.scene-plate:hover .scene-plate-hint,
.scene-plate:focus-visible .scene-plate-hint {
  opacity: 1;
}

.scene-figure figcaption {
  padding: 0.65rem 0.2rem 0.1rem;
  color: var(--muted);
  font: 500 0.68rem/1.5 var(--label);
}

/* Full-screen viewer opened by image-viewer.js. The dialog is only styled
   while open so the UA's `dialog:not([open]) { display: none }` still wins. */
.image-viewer[open] {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #070605;
  color: var(--bone);
}

.image-viewer::backdrop {
  background: rgba(7, 6, 5, 0.97);
}

/* The figure holds the plate and its caption: the stage takes the remaining
   height, the <figcaption> stays as the bar across the bottom. */
.image-viewer-frame {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.image-viewer-stage {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(0.5rem, 2vw, 1.5rem);
}

.image-viewer-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #070605;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.6);
}

.image-viewer-bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding-inline: clamp(0.85rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line);
  background: var(--ink-soft);
}

.image-viewer-caption {
  margin: 0;
  color: var(--parchment);
  font: 400 0.88rem/1.45 var(--body);
}

.image-viewer-close {
  flex: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brass-light);
  font: 500 0.68rem/1.4 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.image-viewer-close:hover,
.image-viewer-close:focus-visible {
  border-color: var(--brass);
  background: var(--surface-raised);
}

html.image-viewer-open,
html.image-viewer-open body {
  overflow: hidden;
}

.scene-section {
  margin-block: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.scene-section h2 {
  margin: 0 0 0.6rem;
  color: var(--brass-light);
  font: 500 0.78rem/1.5 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-section p,
.scene-sources {
  color: var(--parchment);
  font-size: 1.05rem;
  line-height: 1.7;
}

.scene-sources {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.25rem;
}

/* Work titles are marked up with <cite>; keep the house style non-italic. */
.scene-sources cite {
  font-style: normal;
}

.scene-pagination {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .scene-page-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1rem;
  }

  .scene-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Keep compact archival labels legible at normal zoom. */
:where(
  .wordmark-meta,
  .language-link,
  .nav-link,
  .clearance,
  .frame-mark,
  .frame-clearance,
  .eyebrow,
  .button,
  .text-link,
  .hero-caption,
  .timeline-topline,
  .coordinate-label,
  .coordinate-date,
  .timeline-stamp,
  .timeline-foot,
  .image-index,
  .photo-caption,
  .subject-facts dt,
  .assessment,
  .closing-signature,
  .footer-top,
  .stamp-label,
  .stamp-foot,
  .redacted-note summary,
  .era-number,
  .era-label,
  .timeline-range,
  .archive-method-label,
  .gallery-period-heading > span,
  .gallery-search,
  .gallery-filter,
  .gallery-count
) {
  font-size: max(0.68rem, 0.9em);
}
