:root {
  --ink: #11100e;
  --muted: #65615a;
  --paper: #fbfaf6;
  --wash: #eef4ea;
  --line: #d8d1c5;
  --jade: #6d8f67;
  --cochineal: #b7352f;
  --gold: #c79535;
  --sky: #2f6674;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  text-decoration: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover,
.text-link:hover,
.action-list a:hover {
  color: var(--cochineal);
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 36px;
  padding: 62px clamp(20px, 4vw, 56px) 32px;
}

.hero-copy {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.kicker {
  margin: 0 0 12px;
  color: var(--cochineal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 1160px;
  margin: 0;
  font-size: clamp(58px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 780px;
  margin: 26px 0 0 auto;
  font-size: clamp(20px, 2.1vw, 30px);
}

.hero-strip {
  width: 100%;
  min-height: 320px;
  max-height: 55vh;
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 4px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fff;
}

.hero-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-band,
.project-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: 72px clamp(20px, 6vw, 96px);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band p,
.project-section p,
.section-heading p,
.split-section p,
.context-panel p,
.symbol-card p {
  color: var(--muted);
  font-size: 18px;
}

.intro-band p,
.project-section p {
  max-width: 760px;
}

.text-link {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  white-space: nowrap;
}

.viewer-section,
.symbol-section {
  padding: 88px clamp(20px, 4vw, 56px);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 760px;
}

.viewer-layout {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: stretch;
}

.page-rail {
  max-height: min(66vh, 720px);
  display: grid;
  gap: 12px;
  align-content: start;
  overflow-y: auto;
  padding: 3px;
}

.page-thumb {
  position: relative;
  height: 82px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.page-thumb.active {
  outline: 3px solid var(--cochineal);
  outline-offset: 2px;
}

.page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-thumb span {
  position: absolute;
  right: 6px;
  bottom: 5px;
  padding: 2px 5px;
  color: #fff;
  background: rgba(17, 16, 14, 0.8);
  font-size: 13px;
}

.codex-workspace {
  min-width: 0;
}

.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.segmented,
.icon-controls {
  display: flex;
  gap: 6px;
}

.mode-button,
.icon-controls button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.mode-button {
  padding: 0 14px;
}

.mode-button.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.icon-controls button {
  min-width: 42px;
  padding: 0 10px;
}

.viewer-frame {
  height: min(66vh, 720px);
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,0,0,0.04) 1px, transparent 1px),
    #f7f2e9;
  background-size: 34px 34px;
  cursor: grab;
  user-select: none;
}

.viewer-frame.dragging {
  cursor: grabbing;
}

.image-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  will-change: transform;
}

.compare-stack {
  position: relative;
  width: min(74vw, 1150px);
}

.codex-image {
  width: 100%;
  height: auto;
  pointer-events: none;
}

.restored-image {
  position: absolute;
  inset: 0;
  clip-path: inset(0 45% 0 0);
}

.compare-controls {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.compare-controls input {
  width: 100%;
  accent-color: var(--cochineal);
}

.viewer-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.context-panel {
  padding: 24px;
  background: var(--wash);
  border: 1px solid var(--line);
}

.context-panel h3 {
  margin-bottom: 18px;
}

.action-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.action-list a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
}

.split-section,
.narrative-section,
.interpreted-section {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  padding: 88px clamp(20px, 6vw, 96px);
  background: #fff;
  border-top: 1px solid var(--line);
}

.split-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}

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

.infographic-section {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  padding: 88px clamp(20px, 6vw, 96px);
  background: #f4efe5;
  border-top: 1px solid var(--line);
}

.infographic-shell {
  display: grid;
  gap: 18px;
}

.infographic-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.infographic-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.infographic-tab.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.infographic-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(109, 143, 103, 0.14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 102, 116, 0.12) 1px, transparent 1px),
    #fffdf8;
  background-size: 40px 40px;
}

.infographic-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(24px, 5vw, 64px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.infographic-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.infographic-copy h3 {
  max-width: 720px;
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: 0.98;
}

.infographic-copy p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 23px);
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.fact-row span {
  padding: 9px 12px;
  color: #fff;
  background: var(--sky);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.scale-graphic,
.deer-graphic,
.fold-graphic,
.two-sides-graphic,
.journey-graphic {
  min-width: 0;
}

.scale-graphic {
  display: grid;
  gap: 24px;
}

.codex-ribbon {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: #fff;
  background:
    repeating-linear-gradient(90deg, var(--cochineal) 0 56px, var(--gold) 56px 74px, var(--jade) 74px 108px),
    var(--cochineal);
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(17, 16, 14, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 42px);
}

.bus-row,
.kid-row {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 16px;
}

.bus-shape {
  width: 78%;
  min-height: 66px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 18px 18px;
  background: var(--sky);
  border: 2px solid var(--ink);
  border-radius: 4px 18px 4px 4px;
}

.bus-shape span {
  background: #dcebed;
  border: 1px solid rgba(17, 16, 14, 0.45);
}

.kid-row {
  grid-template-columns: repeat(9, 1fr);
  align-items: end;
}

.kid-row strong {
  grid-column: 1 / -1;
}

.kid-row span {
  height: 56px;
  border-radius: 20px 20px 4px 4px;
  background: var(--gold);
  border: 2px solid var(--ink);
}

.deer-graphic {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.deer-graphic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 18px;
  background: #fff;
  border: 2px solid var(--ink);
}

.hide-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(36px, 1fr));
  gap: 10px;
}

.hide-grid span {
  aspect-ratio: 1.15;
  background:
    radial-gradient(circle at 30% 35%, rgba(255,255,255,0.38), transparent 24%),
    #d8b076;
  border: 2px solid #7e5531;
  border-radius: 42% 58% 48% 52%;
}

.fold-graphic {
  min-height: 310px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: stretch;
  perspective: 900px;
}

.fold-graphic span {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.35), transparent),
    var(--wash);
  border: 2px solid var(--ink);
}

.fold-graphic span:nth-child(even) {
  transform: rotateY(-22deg);
  background:
    linear-gradient(135deg, rgba(183, 53, 47, 0.18), transparent),
    #fff;
}

.fold-graphic span:nth-child(odd) {
  transform: rotateY(22deg);
}

.two-sides-graphic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.two-sides-graphic figure {
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 2px solid var(--ink);
  background: #fff;
}

.two-sides-graphic img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.two-sides-graphic figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
}

.journey-graphic {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-items: center;
}

.journey-graphic span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 14px;
  color: #fff;
  background: var(--cochineal);
  border: 2px solid var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 28px);
  text-align: center;
}

.journey-graphic span:nth-child(2) {
  background: var(--gold);
}

.journey-graphic span:nth-child(3) {
  background: var(--jade);
}

.journey-graphic span:nth-child(4) {
  background: var(--sky);
}

.journey-graphic span + span {
  margin-left: -2px;
}

.journey-graphic span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  background: inherit;
  transform: rotate(45deg);
}

.infographic-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.infographic-controls button {
  min-width: 46px;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.infographic-controls p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
}

.interpreted-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.interpreted-list {
  max-height: 78vh;
  display: grid;
  gap: 10px;
  align-content: start;
  overflow-y: auto;
  padding-right: 4px;
}

.interpreted-thumb {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.interpreted-thumb.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.interpreted-thumb img {
  width: 72px;
  height: 44px;
  object-fit: cover;
  background: #fff;
}

.interpreted-thumb span {
  min-width: 0;
  font-size: 14px;
}

.interpreted-viewer {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.interpreted-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.interpreted-toolbar button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.interpreted-toolbar h3 {
  margin: 0;
}

.interpreted-frame {
  max-height: 78vh;
  overflow: auto;
  border: 2px solid var(--ink);
  background: #fff;
}

.interpreted-frame img {
  width: 100%;
  min-width: 920px;
  height: auto;
}

.narrative-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: stretch;
}

.chapter-list {
  max-height: 74vh;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow-y: auto;
  padding-right: 4px;
}

.chapter-button {
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.chapter-button.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.narrative-reader {
  max-height: 74vh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 48px);
  background: var(--paper);
  border: 2px solid var(--ink);
}

.narrative-reader h3 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(34px, 4.2vw, 64px);
}

.chapter-text {
  max-width: 820px;
}

.chapter-text p {
  margin: 0 0 22px;
  color: #24211d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.62;
}

.narrative-media {
  display: grid;
  align-content: start;
  gap: 16px;
}

.narrative-media p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.video-embed {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.symbol-tools {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.symbol-browser {
  max-height: min(78vh, 840px);
  overflow-y: auto;
  padding: 18px;
  background: #fff;
  border: 2px solid var(--ink);
}

.search-field {
  display: grid;
  gap: 8px;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.category-button.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.symbol-count {
  position: sticky;
  top: -18px;
  z-index: 2;
  margin: -18px -18px 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.symbol-card {
  min-height: 330px;
  display: grid;
  grid-template-rows: 210px auto auto;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.symbol-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4efe5;
}

.symbol-card h3 {
  font-size: 20px;
}

.symbol-card .symbol-category {
  margin: 0;
  color: var(--cochineal);
  font-size: 14px;
  font-family: Georgia, "Times New Roman", serif;
}

.history-section,
.project-section,
.sources-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  padding: 88px clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

.history-section {
  background: var(--wash);
}

.project-section {
  background: #fff;
}

.sources-section {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.history-grid,
.principles-grid,
.sources-grid {
  display: grid;
  gap: 16px;
}

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

.sources-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-grid article,
.principles-grid article,
.sources-grid article,
.codex-family,
.project-note {
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
}

.principles-grid article {
  background: var(--wash);
}

.sources-grid article {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 14px;
  background: #fff;
}

.history-grid h3,
.principles-grid h3,
.sources-grid h3,
.codex-family h3,
.project-note h3 {
  margin-bottom: 14px;
}

.history-grid p,
.principles-grid p,
.sources-grid p,
.codex-family p,
.project-note p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.sources-grid .source-type {
  color: var(--cochineal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  text-transform: uppercase;
}

.sources-grid a {
  align-self: end;
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.codex-family,
.project-note {
  max-width: 1040px;
}

.site-footer {
  min-height: 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1050px) {
  .viewer-layout {
    grid-template-columns: 1fr;
  }

  .narrative-layout {
    grid-template-columns: 1fr;
  }

  .infographic-stage {
    min-height: 760px;
  }

  .infographic-panel {
    grid-template-columns: 1fr;
    align-content: start;
    overflow-y: auto;
  }

  .deer-graphic {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .interpreted-layout {
    grid-template-columns: 1fr;
  }

  .interpreted-list {
    max-height: 240px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-list {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .narrative-reader {
    max-height: 70vh;
  }

  .page-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 210px;
    overflow-y: auto;
  }

  .context-panel {
    max-width: none;
  }

  .history-grid,
  .principles-grid,
  .sources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .symbol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    gap: 10px 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(48px, 17vw, 84px);
  }

  .hero-strip {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .hero-strip img {
    min-height: 220px;
  }

  .intro-band,
  .split-section {
    grid-template-columns: 1fr;
  }

  .viewer-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented,
  .icon-controls {
    overflow-x: auto;
  }

  .viewer-frame {
    height: 56vh;
    min-height: 360px;
  }

  .compare-stack {
    width: 900px;
  }

  .interpreted-list {
    grid-template-columns: 1fr;
  }

  .infographic-stage {
    min-height: 840px;
  }

  .infographic-panel {
    padding: 22px;
  }

  .fact-row span {
    width: 100%;
  }

  .bus-shape {
    width: 100%;
  }

  .kid-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .deer-graphic,
  .two-sides-graphic,
  .journey-graphic {
    grid-template-columns: 1fr;
  }

  .hide-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fold-graphic {
    min-height: 240px;
  }

  .two-sides-graphic img {
    height: 240px;
  }

  .journey-graphic span + span {
    margin-left: 0;
    margin-top: -2px;
  }

  .journey-graphic span:not(:last-child)::after {
    right: auto;
    bottom: -16px;
    transform: rotate(135deg);
  }

  .interpreted-frame {
    max-height: 70vh;
  }

  .interpreted-frame img {
    min-width: 760px;
  }

  .history-grid,
  .principles-grid,
  .sources-grid {
    grid-template-columns: 1fr;
  }

  .symbol-grid {
    grid-template-columns: 1fr;
  }

  .symbol-browser {
    max-height: 72vh;
    padding: 12px;
  }

  .symbol-count {
    top: -12px;
    margin: -12px -12px 12px;
    padding: 12px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.infographic-section .infographic-stage {
  position: relative;
  min-height: auto;
  overflow: visible;
  border: 2px solid var(--ink);
  background: #efe6d5;
}

.infographic-section .infographic-panel {
  position: static;
  inset: auto;
  display: none;
  grid-template-columns: none;
  gap: 0;
  padding: 0;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none;
}

.infographic-section .infographic-panel.active {
  display: block;
}

.infographic-section picture {
  display: block;
}

.infographic-image {
  width: 100%;
  height: auto;
  max-height: min(78vh, 980px);
  object-fit: contain;
  background: #efe6d5;
}

@media (max-width: 760px) {
  .infographic-section {
    padding: 72px 14px;
  }

  .infographic-section .section-heading {
    padding: 0 6px;
  }

  .infographic-image {
    max-height: none;
  }
}
