:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f3ea;
  color: #111111;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  min-height: 100%;
}

body {
  background: #f6f3ea;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  appearance: none;
  border: 1px solid #111111;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
}

/* Collection palettes use OKLCH so hue changes do not create perceived-lightness jumps. */
.era-jpm {
  --paper: oklch(96% 0.024 260);
  --paper-deep: oklch(84% 0.064 260);
  --primary: oklch(58% 0.2 260);
  --secondary: oklch(24% 0.082 260);
  --accent: oklch(76% 0.145 220);
  --foreground: #ffffff;
  --band: linear-gradient(90deg, var(--secondary) 0 28%, var(--primary) 28% 70%, var(--accent) 70% 100%);
  --painting-field:
    linear-gradient(101deg, transparent 0 20%, oklch(76% 0.145 220 / 0.24) 20% 27%, transparent 27% 100%),
    linear-gradient(164deg, var(--secondary) 0 34%, oklch(48% 0.18 260) 34% 72%, var(--primary) 72% 100%);
  --display: "Helvetica Neue", Arial, system-ui, sans-serif;
}

.era-prep {
  --paper: oklch(96% 0.024 8);
  --paper-deep: oklch(84% 0.064 8);
  --primary: oklch(58% 0.2 8);
  --secondary: oklch(24% 0.082 8);
  --accent: oklch(76% 0.145 86);
  --foreground: #ffffff;
  --band: linear-gradient(90deg, var(--secondary) 0 36%, var(--primary) 36% 76%, var(--accent) 76% 100%);
  --painting-field:
    linear-gradient(96deg, transparent 0 16%, oklch(76% 0.145 86 / 0.28) 16% 23%, transparent 23% 100%),
    linear-gradient(166deg, var(--secondary) 0 34%, oklch(48% 0.18 8) 34% 70%, var(--primary) 70% 100%);
  --display: Georgia, "Times New Roman", serif;
}

.era-andover {
  --paper: oklch(96% 0.024 252);
  --paper-deep: oklch(84% 0.064 252);
  --primary: oklch(58% 0.2 252);
  --secondary: oklch(24% 0.082 252);
  --accent: oklch(76% 0.145 94);
  --foreground: #ffffff;
  --band: linear-gradient(90deg, var(--secondary) 0 45%, var(--primary) 45% 82%, var(--accent) 82% 100%);
  --painting-field:
    linear-gradient(103deg, transparent 0 64%, oklch(76% 0.145 94 / 0.25) 64% 72%, transparent 72% 100%),
    linear-gradient(160deg, var(--secondary) 0 36%, oklch(48% 0.18 252) 36% 72%, var(--primary) 72% 100%);
  --display: "Helvetica Neue", Arial, system-ui, sans-serif;
}

.era-bucknell {
  --paper: oklch(96% 0.024 62);
  --paper-deep: oklch(84% 0.064 62);
  --primary: oklch(58% 0.2 62);
  --secondary: oklch(24% 0.082 252);
  --accent: oklch(76% 0.145 96);
  --foreground: #ffffff;
  --band: linear-gradient(90deg, var(--secondary) 0 46%, var(--primary) 46% 82%, var(--accent) 82% 100%);
  --painting-field:
    linear-gradient(102deg, transparent 0 18%, oklch(76% 0.145 96 / 0.2) 18% 26%, transparent 26% 100%),
    linear-gradient(162deg, var(--secondary) 0 42%, oklch(48% 0.18 62) 42% 72%, var(--primary) 72% 100%);
  --display: Georgia, "Times New Roman", serif;
}

.era-rally {
  --paper: oklch(96% 0.024 42);
  --paper-deep: oklch(84% 0.064 42);
  --primary: oklch(58% 0.2 42);
  --secondary: oklch(24% 0.082 354);
  --accent: oklch(76% 0.145 92);
  --foreground: #ffffff;
  --band: linear-gradient(90deg, var(--primary) 0 44%, oklch(58% 0.2 354) 44% 78%, var(--accent) 78% 100%);
  --painting-field:
    linear-gradient(96deg, transparent 0 22%, oklch(76% 0.145 92 / 0.22) 22% 30%, transparent 30% 100%),
    linear-gradient(164deg, var(--secondary) 0 34%, oklch(48% 0.18 42) 34% 72%, var(--primary) 72% 100%);
  --display: "Avenir Next", Inter, system-ui, sans-serif;
}

.era-unh {
  --paper: oklch(96% 0.024 258);
  --paper-deep: oklch(84% 0.064 258);
  --primary: oklch(58% 0.2 258);
  --secondary: oklch(24% 0.082 258);
  --accent: oklch(76% 0.145 224);
  --foreground: #ffffff;
  --band: linear-gradient(90deg, var(--secondary) 0 42%, var(--primary) 42% 78%, var(--accent) 78% 100%);
  --painting-field:
    linear-gradient(100deg, transparent 0 68%, oklch(76% 0.145 224 / 0.22) 68% 78%, transparent 78% 100%),
    linear-gradient(163deg, var(--secondary) 0 36%, oklch(48% 0.18 258) 36% 72%, var(--primary) 72% 100%);
  --display: "Helvetica Neue", Arial, system-ui, sans-serif;
}

.era-maps {
  --paper: oklch(96% 0.024 148);
  --paper-deep: oklch(84% 0.064 148);
  --primary: oklch(58% 0.2 148);
  --secondary: oklch(24% 0.082 148);
  --accent: oklch(76% 0.145 252);
  --foreground: #ffffff;
  --band: linear-gradient(90deg, var(--accent) 0 25%, var(--primary) 25% 50%, oklch(76% 0.145 96) 50% 75%, oklch(58% 0.2 32) 75% 100%);
  --painting-field:
    linear-gradient(90deg, oklch(76% 0.145 252 / 0.28) 0 18%, transparent 18% 58%, oklch(76% 0.145 96 / 0.26) 58% 72%, oklch(58% 0.2 32 / 0.24) 72% 100%),
    linear-gradient(164deg, var(--secondary) 0 34%, oklch(48% 0.18 148) 34% 72%, var(--primary) 72% 100%);
  --display: "Google Sans", Roboto, Inter, system-ui, sans-serif;
}

.era-youtube {
  --paper: oklch(96% 0.024 28);
  --paper-deep: oklch(84% 0.064 28);
  --primary: oklch(58% 0.2 28);
  --secondary: oklch(24% 0.082 28);
  --accent: oklch(76% 0.03 28);
  --foreground: #ffffff;
  --band: linear-gradient(90deg, var(--primary) 0 68%, var(--accent) 68% 82%, var(--secondary) 82% 100%);
  --painting-field:
    linear-gradient(100deg, transparent 0 64%, oklch(76% 0.03 28 / 0.18) 64% 74%, transparent 74% 100%),
    linear-gradient(164deg, var(--secondary) 0 32%, oklch(48% 0.18 28) 32% 72%, var(--primary) 72% 100%);
  --display: "YouTube Sans", Roboto, Inter, system-ui, sans-serif;
}

.era-wrkstrm-zero {
  --paper: oklch(96% 0.024 164);
  --paper-deep: oklch(84% 0.064 164);
  --primary: oklch(58% 0.2 164);
  --secondary: oklch(24% 0.082 164);
  --accent: oklch(76% 0.145 152);
  --foreground: #ffffff;
  --band: linear-gradient(90deg, var(--secondary) 0 38%, var(--primary) 38% 78%, var(--accent) 78% 100%);
  --painting-field:
    linear-gradient(98deg, transparent 0 18%, oklch(76% 0.145 152 / 0.2) 18% 26%, transparent 26% 100%),
    linear-gradient(164deg, var(--secondary) 0 35%, oklch(48% 0.18 164) 35% 72%, var(--primary) 72% 100%);
  --display: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.era-wrkstrm-one {
  --paper: oklch(96% 0.024 48);
  --paper-deep: oklch(84% 0.064 48);
  --primary: oklch(58% 0.2 48);
  --secondary: oklch(24% 0.082 48);
  --accent: oklch(76% 0.09 86);
  --foreground: #ffffff;
  --band: linear-gradient(90deg, var(--secondary) 0 48%, var(--primary) 48% 82%, var(--accent) 82% 100%);
  --painting-field:
    linear-gradient(100deg, transparent 0 64%, oklch(76% 0.09 86 / 0.16) 64% 74%, transparent 74% 100%),
    linear-gradient(164deg, var(--secondary) 0 34%, oklch(48% 0.18 48) 34% 72%, var(--primary) 72% 100%);
  --display: Inter, ui-sans-serif, system-ui, sans-serif;
}

.era-open {
  --paper: oklch(96% 0.018 76);
  --paper-deep: oklch(84% 0.045 76);
  --primary: oklch(58% 0.14 54);
  --secondary: oklch(24% 0.045 76);
  --accent: oklch(76% 0.06 86);
  --foreground: #ffffff;
  --band: linear-gradient(90deg, var(--secondary) 0 52%, var(--primary) 52% 82%, var(--accent) 82% 100%);
  --painting-field:
    linear-gradient(100deg, transparent 0 42%, oklch(76% 0.06 86 / 0.18) 42% 54%, transparent 54% 100%),
    linear-gradient(164deg, var(--secondary) 0 34%, oklch(48% 0.12 54) 34% 72%, var(--primary) 72% 100%);
  --display: Inter, ui-sans-serif, system-ui, sans-serif;
}

.site {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), #f7f4ec 48%, var(--paper-deep));
  background-size: 72px 72px, auto;
  color: #111111;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.axis-header-inner,
.main-surface,
.footerbar {
  margin: 0 auto;
  max-width: 86rem;
  width: 100%;
}

.main-surface {
  display: grid;
  gap: 1.05rem;
  padding: 0.75rem 1rem 2.4rem;
}

.exhibition-surface {
  gap: 0;
  padding-top: 0;
}

.axis-gallery {
  display: none;
  gap: 0.8rem;
}

.axis-gallery.is-active {
  display: grid;
}

.axis-header {
  background: rgba(248, 247, 242, 0.97);
  border-bottom: 1px solid #111111;
  max-height: 28vh;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 5;
}

.axis-header-inner {
  display: grid;
  gap: 0.32rem;
  padding: 0.42rem 1rem 0.48rem;
}

.axis-masthead {
  align-items: end;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.axis-identity {
  display: grid;
  gap: 0.18rem;
}

.axis-wordmark {
  font-size: 0.9rem;
  font-weight: 950;
}

.hero-label {
  color: var(--primary);
  display: grid;
  font-size: 0.58rem;
  font-weight: 950;
  gap: 0.12rem;
  text-transform: uppercase;
}

.geo-chip {
  background: #f8f7f2;
  border: 1px solid #111111;
  font-size: 0.58rem;
  font-weight: 950;
  padding: 0.26rem 0.38rem;
  text-transform: uppercase;
}

.color-line,
.card-band {
  background: var(--band);
}

.color-line {
  border: 1px solid #111111;
  height: 0.28rem;
}

.axis-selector {
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid #111111;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.axis-link {
  align-content: start;
  background: rgba(248, 247, 242, 0.88);
  border-right: 1px solid #111111;
  display: grid;
  flex: 1 0 0;
  gap: 0.2rem 0.45rem;
  grid-template-columns: auto 1fr;
  min-height: 3.6rem;
  min-width: 9.5rem;
  padding: 0.44rem 0.56rem;
  scroll-snap-align: start;
  transition: background 160ms ease, color 160ms ease;
}

.axis-link:last-child {
  border-right: 0;
}

.axis-link:hover,
.axis-link.is-active {
  background: #111111;
  color: #f8f7f2;
}

.axis-link.is-active {
  box-shadow: inset 0 -0.24rem 0 var(--primary);
}

.axis-accession,
.axis-state {
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.axis-accession {
  color: var(--primary);
}

.axis-link:hover .axis-accession,
.axis-link.is-active .axis-accession {
  color: var(--accent);
}

.axis-state {
  color: #6b665e;
  justify-self: end;
}

.axis-link:hover .axis-state,
.axis-link.is-active .axis-state {
  color: #d8d0bf;
}

.axis-link strong {
  font-family: var(--display);
  font-size: 1.03rem;
  grid-column: 1 / -1;
  line-height: 1;
}

.axis-link p {
  color: #5e5a52;
  display: none;
  font-size: 0.68rem;
  grid-column: 1 / -1;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
}

.axis-link:hover p,
.axis-link.is-active p {
  color: #f8f7f2;
}

.axis-mobile-picker {
  background: rgba(248, 247, 242, 0.92);
  border: 1px solid #111111;
  display: none;
}

.axis-mobile-picker summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 0.16rem 0.55rem;
  grid-template-columns: 1fr auto;
  list-style: none;
  min-height: 3.1rem;
  padding: 0.48rem 0.62rem;
}

.axis-mobile-picker summary::-webkit-details-marker {
  display: none;
}

.axis-mobile-picker summary::after {
  border-bottom: 2px solid #111111;
  border-right: 2px solid #111111;
  content: "";
  height: 0.46rem;
  justify-self: end;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  width: 0.46rem;
}

.axis-mobile-picker[open] summary::after {
  transform: rotate(225deg);
}

.axis-mobile-eyebrow,
.axis-mobile-state,
.axis-mobile-link span,
.axis-mobile-link small {
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.axis-mobile-eyebrow,
.axis-mobile-link span {
  color: var(--primary);
}

.axis-mobile-picker summary strong {
  font-family: var(--display);
  font-size: 1.05rem;
  grid-column: 1 / 2;
  line-height: 1;
}

.axis-mobile-state {
  color: #6b665e;
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
}

.axis-mobile-menu {
  border-top: 1px solid #111111;
  display: grid;
  max-height: calc(33vh - 7.4rem);
  overflow-y: auto;
}

.axis-mobile-link {
  align-items: center;
  border-bottom: 1px solid #111111;
  display: grid;
  gap: 0.32rem;
  grid-template-columns: auto 1fr auto;
  min-height: 2.8rem;
  padding: 0.48rem 0.62rem;
}

.axis-mobile-link:last-child {
  border-bottom: 0;
}

.axis-mobile-link.is-active {
  background: #111111;
  color: #f8f7f2;
}

.axis-mobile-link.is-active span {
  color: var(--accent);
}

.axis-mobile-link strong {
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1;
}

.axis-mobile-link small {
  color: #6b665e;
}

.axis-mobile-link.is-active small {
  color: #d8d0bf;
}

.release-plate {
  align-items: start;
  background: #111111;
  color: #f8f7f2;
  display: grid;
  gap: 0.32rem;
  max-width: 34rem;
  padding: 0.72rem 0.84rem;
}

.release-plate span {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.release-plate strong {
  font-size: 0.9rem;
}

.release-plate p {
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
}

.chapter-rail {
  align-items: center;
  display: flex;
  gap: clamp(1.35rem, 3vw, 3.2rem);
  min-height: min(48vh, 32rem);
  overflow-x: auto;
  padding: clamp(1.35rem, 2.4vw, 2rem) 0 clamp(2rem, 3.6vw, 3.4rem);
  scroll-padding-inline: clamp(0.4rem, 4vw, 3rem);
  scroll-snap-type: x mandatory;
}

.chapter-card {
  aspect-ratio: 1;
  background: var(--primary);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.2);
  color: var(--foreground);
  display: grid;
  flex: 0 0 clamp(17rem, 24vw, 23rem);
  gap: 0.36rem;
  grid-template-rows: auto 1fr auto auto;
  min-height: 0;
  overflow: hidden;
  padding: clamp(1.35rem, 2vw, 1.85rem);
  place-items: center;
  position: relative;
  scroll-snap-align: center;
  text-align: center;
  transform: none;
  transition: box-shadow 180ms ease, transform 180ms ease, filter 180ms ease;
  width: clamp(17rem, 24vw, 23rem);
}

.axis-gallery[data-axis-gallery="institutional-axis"] .chapter-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08)),
    var(--primary);
  border: 0;
  box-shadow: 0 22px 42px rgba(17, 17, 17, 0.2);
  color: var(--foreground);
  grid-template-rows: auto minmax(0, 1fr) auto auto minmax(0, 1fr);
}

.axis-gallery[data-axis-gallery="institutional-axis"] .chapter-card::before {
  background: linear-gradient(
    105deg,
    transparent 0 38%,
    rgba(255, 255, 255, 0.18) 44%,
    rgba(255, 255, 255, 0.05) 52%,
    transparent 62% 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  inset: -18%;
  mix-blend-mode: screen;
  opacity: 0.46;
  transform: translateX(var(--gloss-shift, -28%));
  transition: transform 120ms linear;
}

.axis-gallery[data-axis-gallery="institutional-axis"] .chapter-card::after {
  background: var(--band);
  bottom: 1rem;
  height: 0.32rem;
  left: 1rem;
  opacity: 1;
  right: 1rem;
}

.axis-gallery[data-axis-gallery="institutional-axis"] .chapter-card .card-band {
  display: none;
}

.axis-gallery[data-axis-gallery="institutional-axis"] .chapter-card .accession,
.axis-gallery[data-axis-gallery="institutional-axis"] .chapter-card .date-mark {
  color: currentColor;
  opacity: 0.78;
}

.axis-gallery[data-axis-gallery="institutional-axis"] .chapter-card h2 {
  align-self: end;
  color: currentColor;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.55vw, 2.6rem);
  font-weight: 900;
  grid-row: 3;
  justify-self: center;
  max-width: 16rem;
  text-align: center;
  text-transform: none;
}

.axis-gallery[data-axis-gallery="institutional-axis"] .chapter-card p {
  align-self: start;
  color: currentColor;
  font-family: var(--display);
  font-size: clamp(0.74rem, 1vw, 0.9rem);
  font-weight: 700;
  grid-row: 4;
  justify-self: center;
  margin-top: 0.35rem;
  opacity: 0.82;
  text-align: center;
}

.axis-gallery[data-axis-gallery="institutional-axis"] .chapter-card.era-maps::after {
  background: linear-gradient(90deg, oklch(58% 0.18 252) 0 25%, oklch(58% 0.18 148) 25% 50%, oklch(58% 0.15 96) 50% 75%, oklch(58% 0.18 32) 75% 100%);
}

.axis-gallery[data-axis-gallery="institutional-axis"] .chapter-card.era-youtube h2,
.axis-gallery[data-axis-gallery="institutional-axis"] .chapter-card.era-youtube .accession,
.axis-gallery[data-axis-gallery="institutional-axis"] .chapter-card.era-youtube .date-mark {
  color: #ffffff;
}

.chapter-card::before {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.chapter-card::after {
  background: currentColor;
  bottom: 1rem;
  content: "";
  height: 3px;
  left: 1rem;
  opacity: 0.55;
  position: absolute;
  right: 1rem;
}

.chapter-card:hover {
  box-shadow: 0 28px 48px rgba(17, 17, 17, 0.24);
  filter: saturate(1.12) contrast(1.04);
  transform: translateY(-3px);
}

.chapter-card.is-selected {
  box-shadow: 0 32px 58px rgba(17, 17, 17, 0.28);
  filter: saturate(1.08) contrast(1.03);
}

.chapter-card > :not(.card-band) {
  position: relative;
  z-index: 1;
}

.card-band {
  display: none;
}

.accession,
.date-mark,
.era-label,
.geo-line,
.category-mark,
.section-kicker,
.room-number {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.date-mark,
.section-kicker {
  color: var(--primary);
}

.chapter-card .accession,
.chapter-card .date-mark,
.chapter-card .era-label,
.chapter-card .geo-line,
.chapter-card .category-mark {
  color: currentColor;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: 0.66;
}

.chapter-card .accession {
  align-self: start;
  grid-row: 1;
  justify-self: start;
  opacity: 0.76;
}

.chapter-card .date-mark {
  align-self: end;
  grid-row: 2;
  justify-self: center;
  opacity: 0.68;
}

.chapter-card .era-label,
.chapter-card .geo-line,
.chapter-card .category-mark {
  display: none;
}

.chapter-card h2,
.room-notes h2 {
  font-family: var(--display);
  letter-spacing: 0;
  margin: 0;
}

.chapter-card h2 {
  color: currentColor;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.45rem, 2.25vw, 2.25rem);
  font-weight: 950;
  grid-row: 3;
  line-height: 1.06;
  max-width: 16rem;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.chapter-card p,
.room-notes p,
.chart-wall-head p,
.chart-tile span {
  color: #5e5a52;
  line-height: 1.36;
  margin: 0;
  overflow-wrap: anywhere;
}

.chapter-card p {
  color: currentColor;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.68rem, 0.95vw, 0.86rem);
  grid-row: 4;
  line-height: 1.28;
  max-width: 16rem;
  opacity: 0.72;
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-rail {
  align-items: stretch;
  gap: clamp(1rem, 2.2vw, 2rem);
  min-height: min(52vh, 33rem);
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card {
  --speedrun-paper: color-mix(in oklab, var(--paper) 86%, #ffffff 14%);
  --speedrun-flash: color-mix(in oklab, var(--accent) 54%, var(--paper) 46%);
  --speedrun-mark: color-mix(in oklab, var(--primary) 72%, #111111 28%);
  align-content: stretch;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(rgba(17, 17, 17, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 60%, color-mix(in oklab, var(--speedrun-flash) 70%, transparent) 60% 61.4%, transparent 61.4% 100%),
    linear-gradient(180deg, var(--speedrun-paper) 0 52%, color-mix(in oklab, var(--paper) 72%, var(--accent) 28%) 52% 100%);
  background-size: 18px 18px, 18px 18px, auto, auto;
  border: 2px solid #111111;
  border-radius: 0;
  box-shadow: 0.48rem 0.48rem 0 #111111, 0 18px 34px rgba(17, 17, 17, 0.14);
  color: #111111;
  flex: 0 0 clamp(19rem, 29vw, 27rem);
  gap: 0.55rem;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  justify-items: start;
  padding: clamp(1.1rem, 1.8vw, 1.55rem);
  place-items: stretch;
  text-align: left;
  width: clamp(19rem, 29vw, 27rem);
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card::before {
  background:
    linear-gradient(90deg, #111111 0 0.36rem, transparent 0.36rem 0.72rem) 0 0 / 1.44rem 0.36rem repeat-x,
    linear-gradient(#111111 0 0.36rem, transparent 0.36rem 0.72rem) 0 0 / 0.36rem 1.44rem repeat-y,
    linear-gradient(90deg, transparent 0 22%, color-mix(in oklab, var(--accent) 46%, transparent) 22% 28%, transparent 28% 100%);
  border: 0;
  border-radius: 0;
  inset: 0.7rem;
  opacity: 0.96;
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card::after {
  background:
    repeating-linear-gradient(90deg, #111111 0 0.38rem, transparent 0.38rem 0.56rem),
    linear-gradient(90deg, var(--speedrun-mark) 0 68%, var(--speedrun-flash) 68% 100%);
  border: 1px solid #111111;
  bottom: 0.92rem;
  height: 0.56rem;
  left: 1.15rem;
  opacity: 1;
  right: 1.15rem;
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card .card-band {
  background:
    repeating-linear-gradient(180deg, #111111 0 0.28rem, transparent 0.28rem 0.48rem),
    var(--band);
  bottom: 0;
  display: block;
  left: 0;
  position: absolute;
  top: 0;
  width: 0.64rem;
  z-index: 1;
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card .accession,
.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card .date-mark,
.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card .era-label,
.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card .category-mark {
  color: #111111;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: 1;
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card .accession {
  align-self: start;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card .date-mark {
  align-self: start;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card .era-label {
  background: color-mix(in oklab, var(--speedrun-flash) 46%, #ffffff 54%);
  border: 2px solid #111111;
  box-shadow: 0.18rem 0.18rem 0 #111111;
  display: inline-flex;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
  padding: 0.28rem 0.44rem;
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card h2 {
  align-self: end;
  color: #111111;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.85rem, 3.1vw, 3.1rem);
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: start;
  line-height: 0.96;
  max-width: 9ch;
  text-align: left;
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card p {
  color: #111111;
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  font-weight: 820;
  grid-column: 1 / -1;
  grid-row: 4;
  justify-self: start;
  max-width: 28rem;
  opacity: 0.78;
  text-align: left;
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card .category-mark {
  align-items: center;
  background: var(--speedrun-paper);
  border: 2px solid #111111;
  display: inline-flex;
  grid-column: 1 / -1;
  grid-row: 5;
  justify-self: start;
  margin-bottom: 0.68rem;
  max-width: 100%;
  min-height: 1.7rem;
  padding: 0.22rem 0.42rem;
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card:hover {
  box-shadow: 0.58rem 0.58rem 0 #111111, 0 28px 46px rgba(17, 17, 17, 0.2);
  filter: saturate(1.05) contrast(1.02);
}

.axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card.is-selected {
  box-shadow: 0 0 0 0.22rem var(--speedrun-flash), 0.58rem 0.58rem 0 #111111, 0 30px 54px rgba(17, 17, 17, 0.2);
}

.site[data-initial-axis-id="speedruns-axis"] .detail-route-hero,
.site[data-initial-axis-id="speedruns-axis"] .room-notes,
.site[data-initial-axis-id="speedruns-axis"] .room-chart-wall {
  border-width: 2px;
  box-shadow: 0.42rem 0.42rem 0 #111111, 0 20px 36px rgba(17, 17, 17, 0.12);
}

.site[data-initial-axis-id="speedruns-axis"] .detail-route-hero {
  background:
    linear-gradient(rgba(17, 17, 17, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.04) 1px, transparent 1px),
    linear-gradient(124deg, color-mix(in oklab, var(--paper) 92%, #ffffff 8%) 0 62%, color-mix(in oklab, var(--accent) 34%, var(--paper) 66%) 62% 100%);
  background-size: 18px 18px, 18px 18px, auto;
  border-top-color: #111111;
}

.gallery-room {
  display: block;
}

.gallery-room.is-active {
  display: grid;
  gap: 1rem;
}

.gallery-room:not(.is-active) {
  display: none;
}

.room-notes {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid #111111;
  box-shadow: 0 26px 58px rgba(17, 17, 17, 0.16);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.tag-row {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.35rem;
}

.tag-row span {
  align-items: center;
  border: 1px solid var(--primary);
  color: var(--primary);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 950;
  padding: 0.38rem 0.48rem;
  text-transform: uppercase;
}

.room-notes {
  display: grid;
  grid-template-rows: auto 1fr;
}

.notes-head {
  border-bottom: 1px solid #111111;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(16rem, 1.1fr);
  min-width: 0;
  padding: 1.05rem;
}

.notes-title,
.notes-summary {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.room-notes h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
  max-width: min(18ch, 100%);
  overflow-wrap: anywhere;
}

.notes-grid {
  display: grid;
  grid-template-columns: minmax(20rem, 1.05fr) minmax(18rem, 0.95fr);
}

.manifest,
.vault-location-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1.05rem;
}

.manifest {
  border-right: 1px solid #111111;
}

.manifest-row {
  align-items: start;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 2rem 1fr;
}

.manifest-row span {
  background: var(--primary);
  color: var(--foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.28rem 0;
  text-align: center;
}

.manifest-row p {
  color: #111111;
  font-size: 0.86rem;
  font-weight: 800;
}

.context-line {
  color: #111111;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
}

.location-fact {
  border-top: 1px solid rgba(17, 17, 17, 0.22);
  display: grid;
  gap: 0.35rem;
  padding-top: 0.75rem;
}

.location-fact span {
  color: #6d675c;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.location-fact strong {
  color: #111111;
  font-size: 1rem;
  line-height: 1.18;
}

.vault-note {
  border-left: 0.45rem solid var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  margin-top: 0.2rem;
  padding-left: 0.75rem;
}

.chart-wall {
  border: 1px solid #111111;
  background: rgba(255, 255, 255, 0.58);
  display: grid;
}

.room-chart-wall {
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.1);
}

.chart-wall-head {
  align-items: end;
  border-bottom: 1px solid #111111;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(12rem, 0.45fr) minmax(18rem, 1fr);
  padding: 1rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chart-tile {
  border-right: 1px solid #111111;
  display: grid;
  gap: 0.9rem;
  min-height: 17rem;
  padding: 1rem;
}

.chart-tile:last-child {
  border-right: 0;
}

.chart-tile-head {
  display: grid;
  gap: 0.25rem;
}

.chart-tile-head span {
  font-size: 0.78rem;
}

.timeline-chart,
.evidence-chart {
  align-self: end;
  display: grid;
  gap: 0.7rem;
}

.timeline-row,
.evidence-row {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 3.6rem 1fr;
}

.timeline-row span,
.evidence-row span,
.matrix-axis span,
.matrix-column span {
  color: #5e5a52;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.timeline-window {
  display: grid;
  gap: 0.28rem;
}

.timeline-window small {
  color: #5e5a52;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.duration-note {
  color: #5e5a52;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.48;
  margin: 0;
}

.timeline-track,
.evidence-row b {
  background: rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.22);
  display: block;
  height: 0.84rem;
  position: relative;
}

.timeline-track i,
.evidence-row i {
  background: var(--band);
  display: block;
  height: 100%;
}

.timeline-track i {
  width: var(--width);
}

.evidence-row i {
  width: var(--width);
}

.geo-trace-chart {
  background:
    linear-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.08) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px;
  border: 1px solid rgba(17, 17, 17, 0.45);
  min-height: 11.5rem;
  overflow: hidden;
  position: relative;
}

.distance-projection {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.projection-grid path,
.projection-axis,
.projection-street,
.projection-route {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.projection-grid path {
  stroke: rgba(17, 17, 17, 0.12);
  stroke-width: 0.8;
}

.projection-axis {
  stroke: rgba(17, 17, 17, 0.42);
  stroke-width: 0.9;
}

.projection-street {
  stroke: rgba(17, 17, 17, 0.38);
  stroke-linecap: square;
  stroke-linejoin: bevel;
  stroke-width: 1.25;
}

.projection-route {
  stroke: color-mix(in srgb, var(--accent) 78%, #ffffff);
  stroke-linecap: square;
  stroke-linejoin: bevel;
  stroke-width: 4.5;
}

.projection-node {
  fill: #111111;
  stroke: #f5f1e9;
  stroke-width: 1.5;
}

.projection-node-muted {
  fill: rgba(17, 17, 17, 0.32);
}

.geo-point {
  align-items: center;
  background: var(--primary);
  border: 1px solid #111111;
  color: var(--foreground);
  display: inline-flex;
  font-size: 0.55rem;
  font-weight: 950;
  height: 1.35rem;
  justify-content: center;
  left: var(--x);
  min-width: 1.45rem;
  padding: 0 0.2rem;
  position: absolute;
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.matrix-chart {
  align-self: end;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 2.2rem repeat(5, minmax(0, 1fr));
}

.matrix-chart-section {
  grid-template-columns: 2.2rem minmax(4.5rem, 1fr);
}

.matrix-axis,
.matrix-column {
  display: grid;
  gap: 0.36rem;
  grid-template-rows: repeat(4, 1.24rem) auto;
}

.matrix-axis {
  align-items: center;
}

.matrix-axis span {
  align-self: center;
}

.matrix-column i {
  background: rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.22);
  display: block;
}

.matrix-column i.is-on {
  background: var(--primary);
  border-color: #111111;
}

.matrix-column span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footerbar {
  border-top: 1px solid #111111;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1rem 1.4rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  font-weight: 800;
}

.noscript-fallback {
  margin: 0 auto;
  max-width: 52rem;
  padding: 4rem 1.5rem;
}

.noscript-fallback p:first-child {
  color: #c4482e;
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.noscript-fallback h1 {
  font-size: 3rem;
  line-height: 0.98;
  margin: 0 0 1rem;
}

.exhibition-intro {
  justify-items: start;
  display: grid;
  gap: 0.55rem;
  padding: clamp(1rem, 2vw, 1.55rem) 0 0.2rem;
  text-align: left;
}

.exhibition-title-plate {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-start;
}

.exhibition-title-plate span {
  border: 1px solid #111111;
  color: #111111;
  font-size: 0.68rem;
  font-weight: 950;
  padding: 0.34rem 0.44rem;
  text-transform: uppercase;
}

.exhibition-intro h1 {
  font-family: var(--display);
  font-size: clamp(2.65rem, 6.5vw, 6.8rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  text-align: left;
}

.exhibition-intro p {
  color: #4f4a42;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.42;
  margin: 0;
  max-width: 58rem;
  text-align: left;
}

.route-page .axis-header {
  max-height: none;
}

.route-surface {
  gap: 1.15rem;
  padding-top: 1rem;
}

.route-hero,
.route-index,
.related-routes {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid #111111;
  box-shadow: 0 22px 48px rgba(17, 17, 17, 0.12);
  display: grid;
  gap: 1rem;
  overflow: hidden;
  padding: clamp(1rem, 2.1vw, 1.55rem);
}

.route-hero {
  border-top: 0.42rem solid var(--primary);
}

.route-breadcrumb {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.route-breadcrumb a,
.route-breadcrumb span {
  border: 1px solid #111111;
  color: #111111;
  font-size: 0.68rem;
  font-weight: 950;
  padding: 0.34rem 0.44rem;
  text-transform: uppercase;
}

.route-breadcrumb a:hover {
  background: #111111;
  color: #f8f7f2;
}

.route-hero-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
}

.route-hero-copy {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.route-hero-copy h1,
.route-section-head h2 {
  font-family: var(--display);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  overflow-wrap: anywhere;
}

.route-hero-copy h1 {
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  max-width: 12ch;
}

.route-hero-copy p {
  color: #4f4a42;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.42;
  margin: 0;
  max-width: 56rem;
}

.route-hero-meta {
  border-left: 1px solid #111111;
  display: grid;
  gap: 0;
  min-width: 0;
  padding-left: 1rem;
}

.route-fact {
  border-bottom: 1px solid rgba(17, 17, 17, 0.2);
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem 0;
}

.route-fact:first-child {
  padding-top: 0;
}

.route-fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.route-fact span,
.route-card-foot,
.related-route-card span {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.route-fact strong {
  color: #111111;
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.route-section-head {
  display: grid;
  gap: 0.35rem;
}

.route-section-head h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.route-card-grid,
.related-route-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.route-card,
.related-route-card {
  background: #f8f7f2;
  border: 1px solid #111111;
  color: #111111;
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.route-card:hover,
.related-route-card:hover {
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.16);
  transform: translateY(-2px);
}

.route-card .card-band {
  display: block;
  height: 0.42rem;
  width: 100%;
}

.route-card .accession,
.route-card .date-mark,
.route-card h3,
.route-card p,
.route-card-foot {
  margin-left: 0.9rem;
  margin-right: 0.9rem;
}

.route-card .accession {
  margin-top: 0.55rem;
}

.route-card h3,
.related-route-card strong {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.route-card h3,
.route-card p {
  margin-bottom: 0;
  margin-top: 0;
}

.route-card p,
.related-route-card p {
  color: #5e5a52;
  font-size: 0.86rem;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.route-card-foot {
  border-top: 1px solid rgba(17, 17, 17, 0.18);
  margin-bottom: 0.85rem;
  padding-top: 0.6rem;
}

.detail-route-surface {
  padding-bottom: 3.2rem;
}

.detail-route-surface .gallery-room {
  display: grid;
  gap: 1rem;
}

.detail-route-surface .gallery-room:not(.is-active) {
  display: grid;
}

.related-route-card {
  border-top: 0.32rem solid var(--primary);
  padding: 0.9rem;
}

@media (max-width: 980px) {
  .notes-head,
  .notes-grid,
  .chart-wall-head,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .manifest {
    border-right: 0;
    border-bottom: 1px solid #111111;
  }

  .chart-tile {
    border-right: 0;
    border-bottom: 1px solid #111111;
  }

  .chart-tile:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .site {
    background-size: 48px 48px, auto;
  }

  .axis-masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .axis-selector {
    display: none;
  }

  .axis-mobile-picker {
    display: block;
  }

  .chapter-card {
    flex-basis: 86vw;
  }

  .axis-gallery[data-axis-gallery="speedruns-axis"] .chapter-card {
    flex-basis: 86vw;
    width: 86vw;
  }

  .room-notes {
    min-height: auto;
  }

  .room-notes h2 {
    font-size: clamp(1.65rem, 7.5vw, 2.2rem);
    max-width: 13ch;
  }

  .notes-summary p {
    max-width: 28ch;
  }

  button {
    min-height: 3.2rem;
  }

  .route-hero-grid {
    grid-template-columns: 1fr;
  }

  .route-hero-meta {
    border-left: 0;
    border-top: 1px solid #111111;
    padding-left: 0;
    padding-top: 0.8rem;
  }
}

@media (max-height: 560px) {
  .axis-header-inner {
    gap: 0.28rem;
    padding-bottom: 0.4rem;
    padding-top: 0.4rem;
  }

  .axis-link {
    min-height: 3.75rem;
  }

  .axis-link p {
    display: none;
  }

  .axis-mobile-menu {
    max-height: calc(33vh - 6.8rem);
  }
}
