:root {
  --night: #101113;
  --night-deep: #0b0d0f;
  --paper: #ede3cf;
  --paper-light: #f2ead9;
  --ink: #27221e;
  --burnt: #8d2722;
  --gold: #d9b77b;
  --cream: #f4e7ca;
  --edge: clamp(1.2rem, 7.25vw, 7.75rem);
  --display: "Qingyuan Display", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --body: var(--font-body);
  --mono: var(--font-mono);
  --ease: var(--ease-editorial);
  color-scheme: light dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 0; background: var(--night); }
body { margin: 0; color: var(--cream); font: 400 1rem/1.75 var(--body); }
body.modal-open { overflow: hidden; }
::selection { background: #a43528; color: #fff5df; }
:focus-visible { outline: 2px solid #bf723b; outline-offset: 5px; }
a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
img { display: block; width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.16; }
[hidden] { display: none !important; }
.skip, .visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; top: 1px; left: 1px; z-index: 30; width: auto; height: auto; clip-path: none; background: var(--paper); color: var(--ink); padding: .4rem .8rem; }
.mono { font-family: var(--mono); }
.shell { width: min(100%, 1660px); margin-inline: auto; padding-inline: var(--edge); position: relative; z-index: 3; }
.scene { position: relative; }
.scene-base { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.river { position: fixed; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.film-grain {
  position: fixed; z-index: 7; inset: 0; pointer-events: none; opacity: .04;
  background: url("../assets/grain.svg") repeat;
}
.year-watermark {
  position: absolute; z-index: 1; pointer-events: none; inset-inline-end: 3.5%;
  color: transparent; -webkit-text-stroke: 1px currentColor;
  font: 400 clamp(8rem, 22vw, 26rem)/.82 Georgia, serif;
  letter-spacing: -.08em; font-variant-numeric: lining-nums; user-select: none;
  translate: 0 calc(var(--year-offset, 0) * 1px);
}
.title-mask { display: block; overflow: clip; padding-bottom: .065em; }
.title-mask > span { display: block; }

.mast {
  position: fixed; z-index: 10; inset: 0 0 auto; min-height: 70px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: .68rem clamp(1.2rem, 3.45vw, 3.9rem); color: #f2e5cc;
  background: #10111336; border-bottom: 1px solid #e6d1a43c;
  backdrop-filter: blur(13px); -webkit-backdrop-filter: blur(13px);
  transition: transform .58s var(--ease), color .4s, background-color .4s, border-color .4s;
}
.mast-hidden:not(:focus-within):not(:hover) { transform: translateY(-105%); }
body[data-theme="paper"] .mast { color: var(--ink); background: #ede3cfb8; border-color: #65503534; }
.wordmark { display: inline-flex; align-items: center; gap: .68rem; justify-self: start; font: 700 1.03rem/1 var(--display); letter-spacing: .12em; white-space: nowrap; }
.wordmark-stamp {
  display: grid; place-content: center; grid-auto-flow: column; align-items: center;
  gap: .085rem; width: 30px; height: 31px; border: 1px solid #d7ac76;
  color: #f2dec0; background: #8d3229; font: 700 .72rem/1 var(--display);
}
.wordmark small { display: block; color: inherit; opacity: .75; font: 400 .65rem/1 var(--body); letter-spacing: .15em; margin-top: .32rem; }
.mast-nav { display: flex; align-items: center; gap: clamp(1rem, 3.15vw, 3.4rem); }
.mast-nav a { font-size: .83rem; letter-spacing: .1em; padding: .38rem 0; white-space: nowrap; }
.mast-nav a:hover, .mast-nav a[aria-current] { color: #f7c487; }
body[data-theme="paper"] .mast-nav a:hover, body[data-theme="paper"] .mast-nav a[aria-current] { color: var(--burnt); }
.sound-toggle { justify-self: end; display: inline-flex; align-items: center; gap: .68rem; padding: .25rem 0; min-height: 42px; background: transparent; border: 0; font-size: .77rem; letter-spacing: .08em; white-space: nowrap; }
.sound-bars { display: inline-flex; height: 13px; align-items: center; gap: 3px; }
.sound-bars i { height: 5px; width: 1px; background: currentColor; }
.sound-bars i:nth-child(2) { height: 11px; }
.sound-bars i:nth-child(3) { height: 8px; }
.sound-toggle[aria-pressed="true"] .sound-bars i { animation: sound-wave 1.2s ease-in-out infinite alternate; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2n) { animation-delay: -.48s; }
@keyframes sound-wave { to { scale: 1 .38; } }

.mast-soundscape { display: flex; align-items: center; justify-self: end; gap: .52rem; }
.mast-soundscape .sound-toggle { gap: .4rem; }
.soundscape-capsule { position: relative; width: clamp(7rem, 12vw, 11rem); }
.soundscape-caption {
  display: block; width: 100%; min-height: 29px; padding: .2rem .56rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 999px;
  font: .68rem/1.3 var(--body); text-align: left; cursor: pointer;
}
.soundscape-caption:hover, .soundscape-caption[aria-expanded="true"] { background: #b8945626; }
.soundscape-adjust {
  position: absolute; z-index: 1; inset: 100% 0 auto auto; width: 13.5rem; padding: .72rem .82rem;
  background: #171512f5; color: #f0dbac; border: 1px solid #a77d4a93;
  font: .75rem/1.5 var(--body);
}
.soundscape-adjust[hidden] { display: none; }
body[data-theme="paper"] .soundscape-adjust { background: #f4ead7; color: #392b22; }
#soundscape-detail { margin: 0 0 .45rem; }
.soundscape-volume-label { display: flex; justify-content: space-between; gap: .5rem; }
#soundscape-volume { width: 100%; margin: .35rem 0; accent-color: #d4a763; cursor: pointer; }
.soundscape-mute { background: transparent; color: inherit; border: 1px solid #a77d4a93; padding: .25rem .48rem; font: inherit; cursor: pointer; }
@media (691px <= width <= 850px) { .soundscape-capsule { width: 5.25rem; } }
@media (max-width: 690px) {
  .mast-soundscape { gap: .35rem; }
  .soundscape-capsule { width: clamp(4rem, 29vw, 8.3rem); }
  .soundscape-caption { padding-inline: .36rem; }
}

.year-rail {
  position: fixed; z-index: 8; top: 50%; right: clamp(.6rem, 2.8vw, 2.5rem); translate: 0 -50%;
  display: grid; grid-template-rows: repeat(5, 2rem); color: #f0d4a7;
}
body[data-theme="paper"] .year-rail { color: #765043; }
.rail-track { position: absolute; inset: 1rem 4px; width: 1px; background: color-mix(in srgb, currentColor 26%, transparent); pointer-events: none; }
.rail-track::after { content: ""; position: absolute; inset: 0; background: currentColor; transform: scaleY(var(--rail-progress, 0)); transform-origin: 50% 0; }
.year-rail a { position: relative; font: 500 .61rem/1 var(--mono); letter-spacing: .03em; display: flex; width: 36px; align-items: center; justify-content: end; padding-right: 13px; }
.year-rail a span { opacity: 0; transition: opacity .2s; }
.year-rail a:hover span, .year-rail a:focus-visible span, .year-rail a[aria-current] span { opacity: 1; }
.year-rail a::after { content: ""; position: absolute; right: 2px; width: 5px; height: 5px; border: 1px solid currentColor; rotate: 45deg; }
.year-rail a[aria-current]::after { background: currentColor; box-shadow: 0 0 0 3px #a97b4d40; }

.prologue { min-height: 100svh; color: var(--cream); }
.prologue-base { background: radial-gradient(ellipse at 76% 55%, #292821, #141818 45%, #0b0e11 82%); }
.photo-layer, .prologue-wash { position: absolute; inset: 0; overflow: hidden; }
.photo-layer img { width: 100%; height: 100%; object-fit: cover; }
.hero-media { z-index: 0; inset: 0; }
.hero-media img { object-position: center 49%; filter: saturate(.6) sepia(.15) brightness(.7) contrast(1.06); transform: scale(1.06) translateY(calc(var(--year-offset, 0) * -.28px)); }
.prologue-wash {
  z-index: 1;
  background: linear-gradient(90deg, #080a0ce8 0%, #0a1011b8 29%, #0a10113a 65%, #100d0d1c),
              linear-gradient(0deg, #0c0c0df2, #100e0f02 34%, #0b101100 75%, #0c0d10a5);
}
.prologue-year { color: #f6d79d1f; bottom: 8%; right: 9%; }
.prologue-year, .history-watermark, .confluence-year, .atlas-year, .finale-year { -webkit-text-stroke-color: currentColor; -webkit-text-fill-color: transparent; }
.prologue-inner { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-top: max(8rem, 19svh); padding-bottom: clamp(2.1rem, 6svh, 4.1rem); }
.folio { color: #f0d8a8; font-size: .79rem; font-weight: 550; letter-spacing: .2em; display: flex; align-items: center; gap: .8rem; }
.folio > span { height: 1px; width: 34px; background: #e1b679; display: inline-block; }
.folio em { font: 400 .74rem/1 var(--mono); font-style: normal; opacity: .85; letter-spacing: .08em; }
.prologue h1 { font-size: clamp(4.6rem, 10.6vw, 11.3rem); letter-spacing: .093em; line-height: .995; margin-block: 1.1rem 1.5rem; font-weight: 700; }
.gold-title { color: #e4c284; }
.prologue-description { color: #f0e2c9; font-size: clamp(.96rem, 1.18vw, 1.1rem); letter-spacing: .15em; line-height: 1.8; }
.prologue-foot { border-top: 1px solid #e7c88a55; margin-top: 2.2rem; padding-top: 1.15rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.ink-link { display: inline-flex; align-items: center; justify-content: center; gap: .73rem; min-height: 42px; color: #f5d59d; letter-spacing: .13em; font-size: .86rem; }
.ink-link:hover { color: #fff2cf; }
.down-mark { display: inline-block; height: 27px; width: 27px; border: 1px solid currentColor; border-radius: 50%; position: relative; }
.down-mark::before { position: absolute; content: ""; width: 7px; height: 7px; border-right: 1px solid; border-bottom: 1px solid; rotate: 45deg; top: 7px; left: 9px; }
.hero-caption { font-size: .72rem; color: #e4d3b6; letter-spacing: .11em; text-align: right; margin-left: auto; }
.prologue-index { margin-left: clamp(0rem, 2vw, 1.5rem); display: grid; color: #e6d8bb; text-align: right; letter-spacing: .13em; font-size: .8rem; white-space: nowrap; }
.prologue-index em { font: 400 .64rem/1.4 var(--mono); letter-spacing: .07em; opacity: .85; }

.history { color-scheme: light; color: var(--ink); }
.history.is-fallback { min-height: calc(100svh + var(--history-travel, 230svh)); }
.history.is-fallback .history-stage { position: sticky; top: 0; }
.history-stage { position: relative; min-height: 100svh; overflow: clip; }
.history-base { background: radial-gradient(at 68% 44%, #f7efdf, #e8d7b9 95%); }
.history-stage[data-embers="true"] .history-base { background: radial-gradient(at 75% 52%, #f0e5cf, #e1cbb1); }
.history-watermark { color: #793d2419; bottom: 6%; right: 4.5%; }
.history-inner { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; gap: clamp(1.2rem, 3.3vh, 2.3rem); padding-top: clamp(5.4rem, 11svh, 7rem); padding-bottom: clamp(1.4rem, 5svh, 3.35rem); }
.chapter-line { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding-block: .68rem; border-block: 1px solid var(--chapter-rule, #d6b87f50); letter-spacing: .1em; color: var(--chapter-muted, #eaddbc); font-size: .77rem; }
.chapter-line p:first-child { display: flex; align-items: center; gap: .77rem; }
.chapter-line p:first-child > span { width: 16px; height: 1px; background: currentColor; opacity: .45; }
.chapter-line p:last-child { font: 400 .72rem/1.4 var(--mono); text-align: right; }
.chapter-line em { color: var(--chapter-accent, #e8b876); font-style: normal; font-weight: 650; }
.history, .atlas { --chapter-rule: #89694d55; --chapter-muted: #544437; --chapter-accent: #862d24; }
.history-spread { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2.3rem, 7vw, 8.1rem); }
.history-copy { min-width: 0; }
.history-date { display: flex; align-items: baseline; gap: 1rem; color: var(--burnt); flex-wrap: wrap; }
#history-year { font: 500 clamp(4rem, 9vw, 8.8rem)/.84 Georgia, serif; letter-spacing: -.075em; font-variant-numeric: lining-nums; }
#history-date-note { font: 500 .73rem/1.35 var(--mono); letter-spacing: .06em; }
.history h2 { font-size: clamp(2.3rem, 4.8vw, 5rem); letter-spacing: .08em; margin: 1.05rem 0 .9rem; }
.history-lede { color: #3d332b; line-height: 1.85; font-size: clamp(.93rem, 1.19vw, 1.18rem); max-width: 25rem; min-height: 6.1em; }
.archive-seal { background: transparent; border: 0; color: var(--burnt); display: inline-flex; align-items: center; gap: .7rem; padding: .22rem 0; text-align: left; font-size: .84rem; letter-spacing: .08em; font-weight: 600; min-height: 42px; }
.archive-seal:hover { text-decoration: underline; text-underline-offset: .35em; }
.archive-seal > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; outline: 1px solid currentColor; outline-offset: -3px; rotate: -8deg; font: 700 1.05rem var(--display); }
.history-figure { min-width: 0; }
.history-screen { aspect-ratio: 1.43; max-height: 49svh; position: relative; overflow: hidden; background: #433329; border: 1px solid #80644c; }
.history-screen img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: var(--archive-position, 50% 50%); filter: sepia(.26) saturate(.63) contrast(1.09) brightness(.88); }
.history-screen[data-contain="true"] { background: #2e2720; }
.history-screen[data-contain="true"] img { object-fit: contain; }
.history-screen[data-image="true"]::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 55px #301b1368; pointer-events: none; }
.archive-typography {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .85rem;
  text-align: center; color: #f3dbad;
  background: radial-gradient(ellipse at 66% 49%, #82563a8c, #2c2119eb 80%),
              repeating-linear-gradient(0deg, transparent 0 25px, #e7b78128 26px, transparent 27px 28px),
              repeating-linear-gradient(90deg, transparent 0 25px, #e7b78128 26px, transparent 27px 28px);
}
.archive-typography::after { content: ""; position: absolute; inset: .65rem; border: 1px solid #e2b77950; }
.archive-typography span { font: 400 clamp(3rem, 9.6vw, 9rem)/.9 Georgia, serif; letter-spacing: -.055em; }
.archive-typography small { font: 400 .68rem/1.4 var(--mono); letter-spacing: .15em; }
.history-figure figcaption { display: flex; justify-content: space-between; align-items: start; gap: .8rem; border-bottom: 1px solid #77573b4a; padding-block: .5rem; color: #4e3d30; font-size: .72rem; letter-spacing: .045em; }
.history-figure figcaption span:last-child { text-align: right; }
.history-controls { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.3rem; border-top: 1px solid #75543755; padding-top: .26rem; color: #5e4938; }
.history-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .37rem; max-width: 25rem; min-width: 0; }
.history-steps button { min-height: 36px; padding: 0; display: grid; align-items: center; border: 0; background: transparent; }
.history-steps button::after { content: ""; display: block; height: 1px; background: #93654a70; }
.history-steps button[aria-current]::after, .history-steps button:hover::after { background: var(--burnt); height: 3px; }
.history-controls output, .history-instruction { font-size: .75rem; white-space: nowrap; letter-spacing: .08em; }

.confluence { min-height: 100svh; color: #f1dec0; }
.confluence-base { background: radial-gradient(ellipse at 57% 54%, #392420 0%, #1b1718 44%, #101113 84%); }
.confluence-year { color: #c5996428; bottom: 9%; right: 4%; }
.confluence-inner { min-height: 100svh; display: flex; flex-direction: column; padding-top: clamp(5.55rem, 11svh, 7.2rem); padding-bottom: clamp(2.5rem, 6svh, 5.6rem); }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-block: clamp(1.1rem, 3.8vh, 2.35rem) clamp(1.4rem, 4.6vh, 2.85rem); }
.section-intro h2 { font-size: clamp(3.3rem, 7.2vw, 8.5rem); letter-spacing: .075em; }
.section-intro > p { max-width: 22rem; font-size: clamp(.92rem, 1.2vw, 1.13rem); padding-bottom: .47rem; letter-spacing: .035em; }
.confluence-intro p { color: #e9d6b5; }
.confluence-layout { display: grid; grid-template-columns: minmax(13rem, .9fr) minmax(5rem, .82fr) minmax(13rem, .9fr); align-items: center; flex: 1; }
.school-list { border-top: 1px solid #e5bd8159; }
.school-list button {
  width: 100%; padding: clamp(.55rem, 1.6vh, .88rem) .08rem; min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: .45rem;
  background: transparent; color: #ecd8b5; border: 0; border-bottom: 1px solid #e5bd8159; text-align: left; font: 600 clamp(.92rem, 1.55vw, 1.34rem)/1.4 var(--display);
  transition: color .25s, padding-left .3s var(--ease);
}
.school-list button em { color: inherit; font: 400 .7rem/1.4 var(--mono); letter-spacing: .06em; opacity: .8; }
.school-list button:is([aria-pressed="true"], :hover) { color: #ffe0a1; padding-left: .65rem; }
.school-list button[aria-pressed="true"] { border-bottom-color: #d29d64; }
.confluence-center { height: 100%; min-height: 7rem; position: relative; pointer-events: none; }
#confluence-focus { position: absolute; top: 56%; right: 11%; }
.school-story { padding-left: clamp(.25rem, 2vw, 1.8rem); min-width: 0; }
.school-image { aspect-ratio: 1.83; max-height: 27svh; position: relative; overflow: hidden; background: linear-gradient(110deg, #523526d9, #211919e8 72%); border: 1px solid #dbad7057; }
.school-image span { position: absolute; inset: 0; display: grid; place-items: center; color: #e7c38a; font: 400 clamp(3rem, 7vw, 6.9rem)/1 Georgia, serif; letter-spacing: -.06em; }
.school-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; filter: sepia(.28) saturate(.64) brightness(.86) contrast(1.1); }
.school-figure figcaption { margin-top: .35rem; color: #ddc7a7; font-size: .71rem; }
.school-story h3 { font-size: clamp(1.4rem, 2.26vw, 2.26rem); letter-spacing: .04em; margin: .7rem 0 .45rem; text-wrap: balance; }
.school-story > p { color: #e5d3b8; line-height: 1.63; text-wrap: pretty; }
.school-story .school-legacy { color: #e7b979; font-size: .8rem; padding-top: .55rem; margin-top: .65rem; border-top: 1px solid #d6a7784a; }

.atlas { color: var(--ink); color-scheme: light; }
.atlas-base { background: radial-gradient(ellipse at 38% 18%, #f7efdc, #e4d4b7 90%); }
.atlas-year { color: #7554311d; top: 10rem; right: 8%; }
.atlas-inner { padding-block: clamp(5.25rem, 9.5svh, 7rem) clamp(1.8rem, 4svh, 3.5rem); }
.atlas-intro { margin-block: 1.2rem 1.2rem; }
.atlas-intro h2 { font-size: clamp(3.3rem, 5.9vw, 7rem); }
.atlas-intro > p { color: #504232; }
.atlas-layout { display: grid; grid-template-columns: minmax(0, 3.3fr) minmax(14rem, 1fr); gap: clamp(1.4rem, 4.5vw, 4rem); align-items: stretch; }
.compare-view {
  --split: 52%; --zoom: 1; --pan-x: 0px; --pan-y: 0px;
  position: relative; height: clamp(16.5rem, 37svh, 27rem); border: 1px solid #765e4166;
  overflow: hidden; background: #453327; touch-action: pan-y;
}
.compare-view[data-zoomed="true"] { cursor: grab; touch-action: none; }
.compare-view.is-dragging { cursor: grabbing; }
.compare-layer, .compare-zoom, .compare-typography { position: absolute; inset: 0; }
.compare-layer { overflow: hidden; pointer-events: none; }
.compare-old { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare-zoom { transform: translate(var(--pan-x), var(--pan-y)) scale(var(--zoom)); }
.compare-image img { object-position: center 48%; filter: saturate(.7) contrast(1.07) brightness(.87); }
.compare-old img { filter: sepia(.24) saturate(.63) contrast(1.08) brightness(.94); }
.compare-old .compare-image img { object-fit: contain; object-position: 25% center; padding-block: .58rem; }
.compare-new .compare-typography { background: radial-gradient(at 75% 46%, #685343, #292625); }
.compare-old .compare-typography { background: radial-gradient(at 28% 35%, #926b4b, #3d2c23); }
.compare-old:has(.compare-image[data-image]) .compare-typography {
  align-content: start; gap: .3rem; padding: 1.45rem 1.2rem; color: #533727;
  background: repeating-linear-gradient(0deg, transparent 0 24px, #836d5033 25px, transparent 26px), linear-gradient(120deg, #d5c4a4, #a9916c);
}
.compare-old:has(.compare-image[data-image]) .compare-typography span { font-size: clamp(1.8rem, 3.4vw, 3.65rem); }
.compare-old:has(.compare-image[data-image]) .compare-typography b { font-size: .74rem; }
.compare-typography { display: grid; align-content: center; color: #f1d7a4; gap: .65rem; padding-inline: 7%; }
.compare-new .compare-typography { text-align: right; }
.compare-typography span { font: 400 clamp(3.3rem, 10vw, 9rem)/.85 Georgia, serif; letter-spacing: -.07em; }
.compare-typography b { font: 600 1rem/1.2 var(--display); letter-spacing: .14em; }
.compare-line { position: absolute; left: var(--split); inset-block: 0; width: 1px; background: #fff1c5; pointer-events: none; z-index: 2; }
.compare-line span { position: absolute; top: 54%; left: 0; translate: -50% -50%; width: 41px; height: 41px; display: grid; place-items: center; border-radius: 50%; background: #201c18d9; border: 1px solid #f5dfb2; color: #ffebbf; font-size: 1.11rem; white-space: nowrap; }
.compare-range {
  position: absolute; z-index: 3; inset: 44% 0 auto; width: 100%; height: 20%; margin: 0; cursor: ew-resize; opacity: 0; touch-action: none;
}
.compare-view:focus-within { outline: 2px solid var(--burnt); outline-offset: 3px; }
.compare-label { position: absolute; bottom: .72rem; color: #f9e9cb; border: 1px solid #f4d7a97a; background: #1c1a18a8; padding: .22rem .52rem; font-size: .69rem; letter-spacing: .1em; pointer-events: none; z-index: 2; }
.label-old { left: .8rem; }
.label-new { right: .8rem; }
.compare-controls { display: flex; align-items: center; gap: .65rem; min-height: 44px; font-size: .81rem; color: #534334; margin-top: .38rem; }
.compare-controls button, .gallery-controls button {
  display: grid; place-items: center; padding: 0; width: 36px; height: 36px; border: 1px solid #795b444f; background: transparent; color: var(--burnt);
  line-height: 1; font-size: 1.15rem;
}
.compare-controls button:hover, .gallery-controls button:hover { border-color: var(--burnt); }
.compare-controls .reset-zoom { font-size: .77rem; width: auto; border: 0; padding-inline: .4rem; text-decoration: underline; text-underline-offset: .25em; }
.compare-controls output { min-width: 3.1rem; text-align: center; font: 500 .78rem var(--mono); }
.atlas-guide { border-block: 1px solid #765e4166; padding-block: .75rem; display: flex; flex-direction: column; gap: 1rem; }
.atlas-places { display: flex; gap: 1.2rem; }
.atlas-places button { background: none; border: 0; border-bottom: 1px solid transparent; padding: .5rem 0; font-size: .87rem; min-height: 42px; color: #4a3b2c; }
.atlas-places button[aria-pressed="true"], .atlas-places button:hover { color: var(--burnt); border-color: var(--burnt); }
.place-story .mono { color: var(--burnt); font-size: .73rem; letter-spacing: .08em; }
.place-story h3 { font-size: clamp(1.55rem, 2.7vw, 2.55rem); margin: .55rem 0; }
.place-story > p:last-child { color: #493b2e; }
.atlas-media-credit { font-size: .71rem; color: #534031; margin-top: auto; white-space: pre-line; }
.gallery { margin-top: clamp(1.05rem, 2.75svh, 2.05rem); }
.gallery-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .55rem; gap: .55rem; border-top: 1px solid #765e4166; padding-top: .65rem; }
.gallery-head h3 { font-size: clamp(1.3rem, 2.2vw, 2.05rem); letter-spacing: .1em; }
.gallery-controls { display: flex; gap: .3rem; }
.gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(31%, 24rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #916d4b9c transparent; gap: .9rem; padding-bottom: .42rem; }
.gallery-frame { min-width: 0; position: relative; scroll-snap-align: start; background: #221f1b; color: #f1dfb6; overflow: hidden; aspect-ratio: 2.75; }
.gallery-frame img { height: 100%; object-fit: cover; filter: saturate(.64) brightness(.76) sepia(.1); }
.gallery-frame-ref { font: 400 clamp(2rem, 5vw, 4.6rem)/1 Georgia, serif; color: #e7c18b; display: grid; place-items: center; height: 100%; background: linear-gradient(120deg, #3d2c22, #1e211e); }
.gallery-frame figcaption { position: absolute; z-index: 1; inset: auto 0 0; background: linear-gradient(transparent, #181512e6); padding: .9rem .65rem .45rem; font-size: .69rem; }

.finale { min-height: 100svh; color: var(--cream); }
.finale-base {
  background: radial-gradient(ellipse at 54% 95%, #503324a8, #221b1e66 45%, transparent 67%),
              radial-gradient(ellipse at 85% 18%, #282322 0, #101315 53%, #0e1013 100%);
}
.finale-year { color: #e3b16f16; bottom: 2%; right: 3%; }
.finale-inner { display: grid; min-height: 100svh; grid-template-rows: auto 1fr; padding-top: clamp(5.55rem, 11svh, 7.2rem); padding-bottom: clamp(2.4rem, 7svh, 5.5rem); }
.finale-center { align-self: center; text-align: center; display: grid; justify-items: center; padding-block: 1.4rem; }
.finale h2 { font-size: clamp(4rem, 10.2vw, 10rem); line-height: .98; letter-spacing: .09em; color: #f2ddb3; margin: 1.2rem 0 1.35rem; }
.finale h2 .title-mask + .title-mask { color: #e2bb79; }
.finale-declaration { color: #f1e2c7; letter-spacing: .11em; line-height: 1.8; font-size: clamp(.92rem, 1.2vw, 1.12rem); }
.finale .ink-link { margin-top: 1.15rem; }
.workshop { position: relative; z-index: 3; }
.site-footer { position: relative; z-index: 3; background: #111213; padding: 1.3rem 0 2.5rem; color: #dec8a7; font-size: .85rem; border-top: 1px solid #c7a66b40; }
.footer-edition { display: flex; justify-content: space-between; gap: .75rem; border-bottom: 1px solid #c7a66b38; padding: .4rem 0 .85rem; }
.footer-edition > span { font: 700 1.1rem/1.5 var(--display); color: #f3dec0; }
.site-footer summary { margin-top: .8rem; cursor: pointer; }
.site-footer li a { text-decoration: underline; text-underline-offset: .2em; }
.site-footer a:hover { color: #f5d194; }

.history-fold { color-scheme: light; position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 35rem); height: 100%; max-width: none; max-height: none; border: 0; border-left: 1px solid #8e5d3d74; padding: clamp(1.15rem, 4vw, 2.5rem); background: #eee0c6; color: #30261d; }
.history-fold[open] { display: grid; align-content: start; gap: 1.5rem; animation: fold-enter .45s var(--ease); }
.history-fold::backdrop { background: #100c0ab0; backdrop-filter: blur(3px); }
@keyframes fold-enter { from { translate: 100% 0; } to { translate: 0 0; } }
.fold-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #8a66494f; padding-bottom: .55rem; font-size: .78rem; letter-spacing: .15em; }
.fold-top button { background: transparent; border: 1px solid #8a66494f; width: 40px; height: 40px; font-size: 1.35rem; line-height: 1; }
.fold-sheet { padding: clamp(1.05rem, 4vw, 2.1rem); border: 1px solid #a7805961; background: #f5ead3; }
.fold-sheet .eyebrow, .fold-sheet h2 em { color: var(--burnt); font-style: normal; }
.fold-sheet .eyebrow { font-size: .8rem; letter-spacing: .15em; }
.fold-sheet h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin: .55rem 0 1.15rem; }
.fold-sheet > p + p { margin-top: .8rem; }
.fold-foot { font-size: .75rem; color: #6b4b38; }

@media (max-width: 920px) {
  :root { --edge: clamp(1.2rem, 5.7vw, 4rem); }
  .year-rail { right: .44rem; }
  .year-rail a { width: 23px; font-size: .52rem; padding-right: 9px; }
  .history-spread { gap: 1.8rem; }
}
@media (max-width: 690px) {
  :root { --edge: clamp(1.15rem, 5.8vw, 2.15rem); }
  .mast { grid-template-columns: 1fr auto; min-height: 58px; padding: .45rem var(--edge); }
  .mast-nav { display: none; }
  .year-rail { right: .22rem; grid-template-rows: repeat(5, 1.55rem); }
  .year-rail a { width: 17px; }
  .year-rail a span { display: none; }
  .rail-track { inset-block: .775rem; }
  .wordmark { font-size: .93rem; }
  .prologue-inner { padding-top: max(7.7rem, 22svh); padding-bottom: 1.55rem; }
  .prologue h1 { font-size: clamp(3.2rem, 13.5vw, 5.6rem); line-height: 1.03; margin-block: 1rem 1.12rem; letter-spacing: .06em; }
  .prologue-year { bottom: 16%; right: 8%; }
  .hero-media img { object-position: 62% center; }
  .prologue-wash { background: linear-gradient(90deg, #080a0cd5, #0a101167 70%), linear-gradient(0deg, #0c0c0ddb, transparent 45%); }
  .folio { font-size: .71rem; letter-spacing: .13em; gap: .4rem; }
  .folio > span { width: 16px; }
  .folio em { font-size: .66rem; }
  .prologue-foot { margin-top: 1.55rem; padding-top: .6rem; align-items: center; }
  .hero-caption { font-size: .64rem; }
  .prologue-index { display: none; }
  .history-inner { padding-top: 4.4rem; padding-bottom: .68rem; gap: .65rem; }
  .history-spread { grid-template-columns: 1fr; gap: .45rem; align-content: center; align-items: start; }
  .history-screen { aspect-ratio: 1.68; max-height: 29svh; }
  #history-year { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .history h2 { font-size: clamp(1.7rem, 8vw, 2.7rem); margin: .44rem 0 .3rem; }
  .history-date { gap: .58rem; }
  .history-lede { min-height: 0; font-size: .9rem; line-height: 1.6; }
  .archive-seal { min-height: 36px; font-size: .73rem; margin-top: .24rem; }
  .archive-seal > span { width: 23px; height: 23px; font-size: .8rem; }
  .history-instruction { display: none; }
  .history-controls { grid-template-columns: 1fr auto; }
  .history-figure figcaption { padding-block: .26rem; font-size: .65rem; }
  .chapter-line { font-size: .72rem; padding-block: .43rem; }
  .chapter-line p:last-child { font-size: .65rem; }
  .chapter-line p:first-child { gap: .45rem; }
  .chapter-line p:first-child > span { width: 10px; }
  .confluence-inner, .atlas-inner, .finale-inner { padding-top: 4.7rem; }
  .section-intro { display: block; margin-block: .8rem 1.05rem; }
  .section-intro h2 { font-size: clamp(2.55rem, 10vw, 4.3rem); }
  .section-intro > p { padding: .4rem 0 0; line-height: 1.55; }
  .confluence-layout { grid-template-columns: minmax(7.7rem, .9fr) minmax(8rem, 1fr); gap: .9rem; align-items: center; }
  .confluence-center { position: absolute; inset: 0; z-index: -1; }
  #confluence-focus { top: 57%; right: 47%; }
  .school-list button { font-size: clamp(.79rem, 3.25vw, .98rem); min-height: 40px; }
  .school-list button em { font-size: .57rem; }
  .school-story { padding-left: 0; }
  .school-story h3 { font-size: clamp(1.02rem, 4.6vw, 1.43rem); }
  .school-story p { font-size: .77rem; }
  .school-story .school-legacy { font-size: .67rem; }
  .school-figure figcaption { font-size: .62rem; }
  .atlas-layout { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .compare-view { height: clamp(13.5rem, 41svh, 22rem); }
  .compare-typography span { font-size: clamp(2.45rem, 12vw, 6rem); }
  .compare-old .compare-image img { object-position: 12% center; }
  .compare-old:has(.compare-image[data-image]) .compare-typography span,
  .compare-old:has(.compare-image[data-image]) .compare-typography b { visibility: hidden; }
  .atlas-guide { gap: .46rem; }
  .place-story > p:last-child { font-size: .89rem; }
  .gallery-strip { grid-auto-columns: min(72%, 20rem); gap: .52rem; }
  .finale h2 { font-size: clamp(2.65rem, 13vw, 5rem); letter-spacing: .06em; }
  .finale-declaration { font-size: .9rem; }
}
@media (max-width: 690px) and (max-height: 670px) {
  .history-inner { padding-top: 3.95rem; gap: .38rem; }
  .history-screen { max-height: 25svh; }
  .history-steps button { min-height: 27px; }
  .history-spread { gap: .32rem; }
}
@media (max-height: 630px) and (min-width: 691px) {
  .history-inner { padding-top: 4.65rem; padding-bottom: 1rem; gap: .7rem; }
  .history h2 { margin-block: .55rem; }
  .history-lede { min-height: 0; }
}
