@font-face {
  font-family: Lora;
  src: url("fonts/lora-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Lora;
  src: url("fonts/lora-ru.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-ru.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  --serif: Lora, Georgia, serif;
  --sans: Manrope, Arial, sans-serif;
  --cream: #f8ead6;
  --soft: #ebd9c3;
  --muted: #c9b9a5;
  --accent: #f1bb85;
  --rust: #985632;
  --rail: #dba973;
  --route-x: 50%;
  --guide-start: 66%;
  --guide-ride: 56%;
  --side: clamp(4rem, 7.2vw, 9rem);
  --gutter: clamp(3.8rem, 6.7vw, 8rem);
  --scene-height: max(49rem, 100svh);
  --drum-step: 1.8rem;
  color: var(--cream);
  background: #28261e;
  font: 500 1rem/1.55 var(--sans);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { isolation: isolate; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #ffcf98;
  outline-offset: .32rem;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, figure { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#backdrop, .screen-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#backdrop {
  background: radial-gradient(ellipse at 75% 60%, #71634a, #29271e 72%);
  z-index: 0;
}

.screen-shade {
  background: linear-gradient(90deg, #0e0e0ab8 0%, #15130e52 48%, #17161033 78%, #17161055 100%);
  z-index: 1;
  opacity: .48;
  transition: opacity 460ms ease;
}

body[data-view="resident"] .screen-shade { opacity: .69; }
body[data-view="researcher"] .screen-shade { opacity: .74; }

#museum {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column-reverse;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  overflow-anchor: none;
  scrollbar-width: none;
  touch-action: pan-y pinch-zoom;
}

#museum::-webkit-scrollbar { display: none; }
#museum:focus-visible { outline: none; }

.panorama {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column-reverse;
  width: 100%;
  overflow: clip;
  isolation: isolate;
}

.hero, .stop, .final { flex: none; position: relative; }
.hero { height: 100svh; min-height: 23rem; }

.route {
  position: absolute;
  z-index: 0;
  left: var(--route-x);
  width: 1px;
  top: clamp(3.2rem, 11svh, 7rem);
  bottom: calc(100svh - var(--guide-origin, 66svh) + 1px);
  background: var(--rail);
  box-shadow: 0 0 9px #382312a6;
  opacity: .85;
  pointer-events: none;
}

.route::after, .route::before {
  content: "";
  position: absolute;
  left: 50%;
  width: .56rem;
  height: .56rem;
  border: 1px solid #f2c796;
  background: #5e4733;
  transform: translateX(-50%) rotate(45deg);
}

.route::after { bottom: 0; }
.route::before { top: 0; }

.hero-frame {
  z-index: -1;
  pointer-events: none;
  position: absolute;
  inset: clamp(1rem, 2.1vw, 2.2rem);
  border: 1px solid #dcc09a43;
  mask-image: linear-gradient(#000, #000 72%, #0006);
}

.hero-meta {
  position: absolute;
  inset: clamp(2rem, 5.3vh, 4rem) var(--side) auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--soft);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px #1b180f;
}

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

.hero-meta svg {
  flex: none;
  width: 1.33rem;
  height: 1.33rem;
  stroke: var(--accent);
  stroke-width: .8;
  fill: none;
  color: var(--accent);
}

.hero-copy {
  position: absolute;
  top: clamp(7rem, 20svh, 16.5rem);
  left: var(--side);
  max-width: 87%;
}

.hero h1 {
  color: var(--cream);
  font: 500 clamp(4.5rem, 8.9vw, 11rem)/.96 var(--serif);
  letter-spacing: -.087em;
  text-shadow: 0 4px 38px #1b1811c9, 0 1px 3px #241b13;
}

.hero h1 span { display: block; color: #f3c093; }

.hero-hint {
  display: flex;
  align-items: center;
  gap: .78rem;
  position: absolute;
  top: var(--guide-origin, 66svh);
  left: calc(var(--route-x) + clamp(3rem, 6.2vw, 6rem));
  transform: translateY(-48%);
  white-space: nowrap;
  color: #fff3e2;
  font-size: 1rem;
  font-weight: 800;
  text-shadow: 0 1px 6px #21170c, 0 1px 17px #21170c;
}

.up-hint {
  color: var(--accent);
  font: 400 1.65rem/1 var(--sans);
}

.touch-hint {
  display: none;
  height: 2.15rem;
  width: 1.7rem;
  overflow: visible;
  stroke: var(--accent);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 1px 3px #15130e);
}

.no-script {
  position: absolute;
  bottom: 3rem;
  left: var(--side);
  right: var(--side);
  max-width: 40rem;
  background: #19160fe8;
  padding: .8rem;
}

.stop { min-height: var(--scene-height); }

.stop-inner {
  position: relative;
  width: min(100%, 104rem);
  min-height: inherit;
  margin: auto;
  padding: clamp(4.8rem, 12svh, 8.75rem) var(--side);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy visual";
  align-items: center;
  gap: calc(2 * var(--gutter));
}

.stop[data-layout="reverse"] .stop-inner { grid-template-areas: "visual copy"; }
.stop[data-layout="high"] .stop-copy { transform: translateY(-3.6rem); }
.stop[data-layout="high"] .stop-visual { transform: translateY(2.2rem); }
.stop[data-layout="low"] .stop-copy { transform: translateY(2.5rem); }
.stop[data-layout="low"] .stop-visual { transform: translateY(-2.6rem); }

.junction {
  position: absolute;
  z-index: 2;
  left: var(--route-x);
  top: 53%;
  width: 0;
  height: 0;
  color: var(--accent);
  pointer-events: none;
}

.junction::before {
  content: "";
  position: absolute;
  width: .61rem;
  height: .61rem;
  left: -.31rem;
  top: -.31rem;
  transform: rotate(45deg);
  border: 1px solid #ffe0b8;
  background: #975634;
  box-shadow: 0 0 0 4px #393129d9;
}

.route-date {
  position: absolute;
  bottom: 1.52rem;
  left: 50%;
  transform: translateX(-50%);
  min-width: 3.54rem;
  border: 1px solid #bf9b6c5e;
  background: #25231ce8;
  padding: .1rem .28rem;
  color: #f4c99a;
  font: 800 .7rem/1.3 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: .07em;
  text-align: center;
  white-space: nowrap;
}

.junction::after {
  content: "";
  position: absolute;
  top: 0;
  right: .54rem;
  width: calc(var(--gutter) - .95rem);
  border-top: 1px solid #e2b48778;
}

.stop[data-layout="reverse"] .junction::after { right: auto; left: .53rem; }

.stop-copy { grid-area: copy; position: relative; z-index: 1; }

.stop-copy::before {
  content: "";
  position: absolute;
  inset: -4rem -3rem;
  background: radial-gradient(ellipse at 49% 52%, #14130fdb 2%, #15140f9c 48%, #15140f00 76%);
  pointer-events: none;
  z-index: -1;
}

.stop-date {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .135em;
  font-size: .82rem;
  font-weight: 800;
  text-shadow: 0 1px 5px #15120c;
}

.stop-date::before {
  content: "";
  display: inline-block;
  vertical-align: .23em;
  width: 1.35rem;
  height: 1px;
  margin-right: .56rem;
  background: currentColor;
}

.stop-kicker {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
  font-weight: 700;
  margin-top: .64rem;
}

.stop h2 {
  font: 500 clamp(2.2rem, 4.14vw, 5rem)/1.01 var(--serif);
  letter-spacing: -.062em;
  margin: .75rem 0 .94rem;
  text-wrap: balance;
}

.stop h2 button {
  color: var(--cream);
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  letter-spacing: inherit;
  background: transparent;
  text-shadow: 0 2px 11px #13120f;
  text-wrap: inherit;
}

.stop h2 button:hover { color: #ffca96; }

.stop-lead {
  max-width: 36rem;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.55;
  color: #fff0dc;
  text-shadow: 0 2px 8px #13120f, 0 0 16px #15110d;
}

.text-action {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  margin-top: 1.23rem;
  padding: .17rem 0 .34rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  font: 800 .88rem/1.45 var(--sans);
  text-align: left;
}

.text-action:hover { color: #ffe1bc; }
.stop-visual {
  grid-area: visual;
  position: relative;
  min-width: 0;
  z-index: 1;
  align-self: center;
}

.exhibit-preview {
  position: relative;
  width: 100%;
  display: block;
  background: #181712;
  padding: .42rem;
  border: 1px solid #cbb2958c;
  box-shadow: 0 .75rem 2.8rem #12110ee0;
  text-align: left;
}

.exhibit-preview:hover { border-color: var(--accent); }

.photo-view {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  overflow: hidden;
  background: #343029;
}

.photo-view > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center);
}

.exhibit-preview.format-portrait { width: min(100%, 27rem); }
.exhibit-preview.format-portrait .photo-view { aspect-ratio: 1.16; }
.exhibit-preview.format-scan .photo-view { aspect-ratio: 1.6; }
.exhibit-preview.format-scan img { object-fit: contain; background: #484237; }

.photo-corner {
  position: absolute;
  right: .47rem;
  top: .47rem;
  display: grid;
  justify-items: center;
  align-items: center;
  width: 1.94rem;
  height: 1.94rem;
  color: var(--cream);
  background: #1c1a16e8;
  font-size: 1.25rem;
  line-height: 1;
}

.exhibit-preview figcaption, .photo-caption {
  display: block;
  color: #f1dfc8;
  font-size: .77rem;
  line-height: 1.4;
  margin: .52rem .15rem .14rem;
}

.small-photo {
  position: relative;
  width: min(48%, 17rem);
  margin: -.35rem 0 0 auto;
  transform: translate(1.32rem, .66rem) rotate(2deg);
  z-index: 1;
  background: #e2d2b6;
  border: 1px solid #c1aa89;
  padding: .35rem;
}

.small-photo .photo-view { aspect-ratio: 1.55; }
.small-photo .photo-caption { color: #34291c; font-weight: 750; }
.stop[data-layout="reverse"] .small-photo {
  margin-left: 0;
  transform: translate(-.7rem, .66rem) rotate(-2deg);
}

.stop[data-layout="low"] .small-photo { width: min(51%, 16rem); }
.stop[data-layout="reverse"] .exhibit-preview { margin-left: auto; }
.stop[data-layout="high"] .exhibit-preview { margin-left: auto; }
.stop[data-layout="reverse"] .stop-copy::before { inset: -4rem -2rem; }

.family-preview {
  display: block;
  width: 100%;
  padding: clamp(1rem, 3.1vw, 2.5rem);
  border: 1px solid #bc9a71;
  background: linear-gradient(112deg, #edddc3, #e9d4b3);
  color: #30241a;
  box-shadow: 0 .75rem 2.8rem #17120dbb;
  text-align: left;
}

.family-preview:hover { background: #f0dfc2; }
.family-preview-title {
  display: block;
  margin-bottom: .9rem;
  font: 600 clamp(1.45rem, 3vw, 2.35rem)/1.1 var(--serif);
  letter-spacing: -.05em;
}

.family-preview-row {
  display: grid;
  grid-template-columns: minmax(7.8rem, 1fr) 2fr;
  gap: .45rem 1rem;
  padding: .63rem 0;
  border-top: 1px solid #9e785d73;
  align-items: baseline;
  font-size: .94rem;
  line-height: 1.32;
}

.family-preview-date, .family-preview-credit { color: #703b23; font-weight: 800; }
.family-preview-credit { display: block; margin-top: .67rem; font-size: .78rem; }

.guide-dock {
  z-index: 4;
  position: fixed;
  left: var(--route-x);
  top: var(--guide-top, var(--guide-start));
  transform: translate(-50%, -50%);
  transition: opacity 230ms ease;
  width: 5.55rem;
  pointer-events: none;
}

.guide-dock.at-end { opacity: 0; visibility: hidden; }

#guide {
  position: relative;
  display: grid;
  place-items: center;
  pointer-events: auto;
  width: 100%;
  min-height: 3.1rem;
  border: 0;
  padding: 0;
  background: transparent;
  line-height: 0;
}

.guide-icon { width: 100%; }

.guide-icon svg {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(var(--guide-bob, 0px)) rotate(var(--guide-lean, 0deg));
  filter: drop-shadow(0 2px 4px #13120ee8);
}

#guide:hover .guide-icon svg { filter: drop-shadow(0 0 7px #ffd8a570) drop-shadow(0 2px 4px #13120ee8); }

.guide-cue {
  position: absolute;
  top: calc(100% + .24rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .36rem;
  padding: .28rem .5rem;
  border: 1px solid #cba373;
  border-radius: .2rem;
  background: #292319;
  color: #ffe2bb;
  box-shadow: 0 2px 6px #1b160d99;
  font: 800 .78rem/1.15 var(--sans);
  white-space: nowrap;
}

.guide-cue svg { width: .93rem; height: .93rem; }
#guide:hover .guide-cue, #guide:focus-visible .guide-cue { background: #5e422a; }
.guide-dock.travelling .guide-cue { top: calc(100% - .13rem); padding: .13rem; }
.guide-dock.travelling .guide-cue-label { display: none; }

.odometer {
  position: fixed;
  z-index: 4;
  top: max(1.55rem, env(safe-area-inset-top));
  right: max(1.7rem, env(safe-area-inset-right));
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #b4936b;
  border-radius: 4px;
  background: #27251f;
  box-shadow: 0 3px 15px #181814bd;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms linear, visibility 160ms linear;
}

.odometer.active { opacity: 1; visibility: visible; }

.drum {
  position: relative;
  overflow: hidden;
  height: var(--drum-step);
  background: #e7d6bb;
  color: #251c12;
  text-align: center;
  font: 800 .92rem/var(--drum-step) var(--sans);
  font-variant-numeric: tabular-nums;
}

.month-drum { width: 3.2rem; }
.year-drum { width: 3.4rem; }
.drum-ribbon span { display: block; height: var(--drum-step); }
.drum::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#2d1a0b71, transparent 27%, #fff8e927 50%, transparent 72%, #2d1a0b63);
  box-shadow: inset 0 0 1px 1px #3924172e;
}

.final {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: clamp(5rem, 14vh, 9rem) var(--side) 4.5rem;
  text-align: center;
}

.final-content {
  z-index: 1;
  position: relative;
  margin: auto;
  max-width: 49rem;
}

.final-content::before {
  position: absolute;
  content: "";
  z-index: -1;
  inset: -8rem -9rem;
  background: radial-gradient(ellipse closest-side, #181713f5 14%, #181713e0 52%, #181713ac 72%, #18171300);
}

.final-mark { width: .75rem; height: .75rem; border: 1px solid var(--accent); transform: rotate(45deg); margin: 0 auto 1.1rem; }
.eyebrow { color: var(--accent); letter-spacing: .15em; text-transform: uppercase; font-size: .82rem; font-weight: 800; }
.final h2 { font: 500 clamp(3rem, 7vw, 7rem)/1.02 var(--serif); letter-spacing: -.071em; margin: .42rem 0 1rem; }
.final-text { max-width: 40rem; margin: auto; color: #f4e8d7; font-size: clamp(1rem, 1.35vw, 1.2rem); }
.author { border-top: 1px solid #c59b7566; margin: clamp(2rem, 5vh, 3.4rem) auto 0; padding-top: 1.2rem; max-width: 38rem; font-size: .91rem; }
.author .eyebrow { text-transform: none; letter-spacing: .07em; }
.author-name { font: 500 clamp(1.24rem, 2.35vw, 1.8rem)/1.2 var(--serif); margin: .48rem 0; }
.supervisor { margin-top: 1.12rem; }
.supervisor-name { font: 500 clamp(1.12rem, 2vw, 1.38rem)/1.22 var(--serif); margin-top: .3rem; }

#overlay {
  position: fixed;
  inset: 0;
  max-width: min(68rem, calc(100% - 4rem));
  width: 100%;
  max-height: calc(100% - 3rem);
  margin: auto;
  padding: clamp(1.7rem, 4vw, 4rem);
  background: #efe1ca;
  color: #282119;
  color-scheme: light;
  border: 1px solid #baa181;
  box-shadow: 0 1.5rem 7rem #000a;
  overscroll-behavior: contain;
}

#overlay::backdrop {
  background: #15110bd5;
  backdrop-filter: blur(4px);
}

#overlay[data-kind="guides"] {
  max-width: min(28rem, calc(100% - 1.4rem));
  padding: 1.35rem 1.4rem 1.55rem;
}

#overlay button:focus-visible, #overlay a:focus-visible, #overlay [tabindex]:focus-visible {
  outline-color: #914621;
}

.dialog-close {
  position: sticky;
  z-index: 3;
  top: 0;
  float: right;
  display: grid;
  place-items: center;
  width: 2.35rem;
  aspect-ratio: 1;
  border: 1px solid #a98f70;
  background: #efe1ca;
  color: #3b2a1d;
  margin-top: -.45rem;
  margin-right: -.45rem;
  margin-left: .75rem;
  font-size: 1.6rem;
  line-height: 1;
}

.dialog-close:hover { background: #e3caaa; }

.dialog-kicker {
  margin-bottom: .53rem;
  color: #864622;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.dialog-title {
  font: 600 clamp(1.75rem, 4vw, 3.6rem)/1.05 var(--serif);
  letter-spacing: -.061em;
  max-width: 52rem;
  margin-bottom: .7rem;
}

.dialog-title:focus { outline: none; }
.dialog-lead { font-size: 1.04rem; line-height: 1.52; font-weight: 750; max-width: 44rem; }

.dialog-grid {
  clear: both;
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(1.4rem, 3.4vw, 3.5rem);
}

.dialog-grid.solo { grid-template-columns: 1fr; max-width: 48rem; }
.dialog-story > p + p { margin-top: .8rem; }
.dialog-story h3, .archive-sources h3, .doc-details h3 { margin: 1.3rem 0 .38rem; font: 600 1.26rem/1.2 var(--serif); letter-spacing: -.03em; }
.dialog-story a, .gallery a, .archive-sources a, .document-figure a, .doc-details a { color: #74391d; font-weight: 800; text-underline-offset: .18em; }
.dialog-story a:hover, .gallery a:hover, .archive-sources a:hover { color: #a74417; }
.source-list { padding-left: 1.1rem; margin: .7rem 0 0; }
.source-list li { margin-bottom: .65rem; }
.source-list small { display: block; color: #514438; font-size: .84rem; }
.gallery-frame { display: grid; place-items: center; min-height: 11rem; background: #37312a; }
.gallery-frame img { width: 100%; max-height: min(52vh, 28rem); object-fit: contain; }
.gallery-meta { font-size: .82rem; line-height: 1.5; margin: .59rem 0 0; color: #43382d; }
.gallery-meta strong { display: block; color: #2b2219; font-size: .94rem; }
.gallery-meta a { display: inline-block; margin-right: .9rem; }
.gallery-tools { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .43rem; }
.gallery-tools p { font-size: .82rem; font-weight: 800; }
.gallery-arrows { display: flex; gap: .23rem; }
.gallery-arrows button {
  width: 2.6rem;
  min-height: 2.3rem;
  border: 1px solid #b39872;
  background: transparent;
  font-size: 1.13rem;
}
.gallery-arrows button:hover { background: #e5cba7; }
.gallery-arrows button:disabled { opacity: .35; cursor: default; }

.document-figure { margin: 1.34rem 0 1.7rem; }
.document-figure img {
  width: 100%;
  max-height: 27rem;
  object-fit: contain;
  object-position: left;
}
.document-figure figcaption {
  font-size: .84rem;
  margin-top: .43rem;
  color: #49372a;
}
.document-figure figcaption strong { display: block; color: #2d2117; }
.film { margin-top: 1.4rem; }
.film video { display: block; background: #171410; max-width: 100%; margin-top: .55rem; }

.guide-choices { display: grid; gap: .25rem; margin-top: .72rem; }
.guide-choice {
  display: grid;
  grid-template-columns: 4.1rem 1fr;
  align-items: center;
  gap: .7rem;
  padding: .5rem .42rem;
  border: 0;
  border-top: 1px solid #baa483;
  text-align: left;
  background: transparent;
  color: inherit;
}
.guide-choice svg { display: block; width: 100%; height: auto; }
.guide-choice strong { display: block; font: 600 1.2rem/1.25 var(--serif); }
.guide-choice small { display: block; color: #544333; font-size: .8rem; line-height: 1.35; margin-top: .17rem; }
.guide-choice[aria-pressed="true"] { background: #e5cfad; }
.guide-choice:hover { background: #e8d5b8; }

.archive-sources { clear: both; margin-top: 1.15rem; }
.archive-sources details { border-top: 1px solid #bba481; padding-top: .9rem; margin-top: 1.1rem; }
.archive-sources summary { cursor: pointer; font-weight: 800; }
.archive-sources .source-list { max-width: 46rem; }

@media (max-width: 860px) {
  :root { --gutter: 3.3rem; --side: clamp(2.5rem, 5.5vw, 4.1rem); }
  .stop h2 { font-size: clamp(2.15rem, 5.2vw, 3.2rem); }
  .stop-date { font-size: .77rem; }
}

@media (max-width: 690px) {
  :root {
    --side: 1.6rem;
    --route-x: 1.95rem;
    --guide-start: 65%;
    --guide-ride: 55%;
    --scene-height: max(51rem, 100svh);
  }

  .screen-shade {
    background: linear-gradient(90deg, #17160ec2 0%, #15130e47 90%);
    opacity: .62;
  }

  .hero-frame { inset: .7rem; }
  .hero-meta {
    display: block;
    left: 4.15rem;
    right: 1.34rem;
    top: max(1.6rem, env(safe-area-inset-top));
    font-size: .68rem;
  }

  .hero-range { display: block; margin: .51rem 0 0 2.02rem; color: var(--muted); }
  .hero-copy { left: 3.62rem; top: 22svh; max-width: calc(100% - 4.3rem); }
  .hero h1 { font-size: clamp(3.3rem, 11.7vw, 5.5rem); line-height: .97; letter-spacing: -.082em; }
  .hero-hint { left: calc(var(--route-x) + 2.07rem); font-size: .94rem; gap: .47rem; }
  .touch-hint { display: block; margin-left: .2rem; }
  .up-hint { font-size: 1.45rem; }
  .route { bottom: calc(100svh - var(--guide-origin, 65svh)); }
  .guide-dock { width: 3.58rem; }
  #guide { min-height: 2.75rem; }
  .guide-dock:not(.travelling) .guide-cue { left: .65rem; transform: none; }
  .odometer { top: max(.7rem, env(safe-area-inset-top)); right: max(.7rem, env(safe-area-inset-right)); }
  .stop-inner, .stop[data-layout="reverse"] .stop-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "visual";
    align-content: center;
    gap: 1.22rem;
    padding: 4.4rem 1.23rem 3.8rem 3.98rem;
  }

  .stop[data-layout] .stop-copy, .stop[data-layout] .stop-visual { transform: none; }
  .stop[data-layout] .stop-copy::before { inset: -1.7rem -1.5rem; }
  .stop h2 { font-size: clamp(1.9rem, 8.2vw, 3.1rem); margin: .53rem 0 .65rem; text-wrap: initial; }
  .stop-lead { font-size: 1rem; line-height: 1.47; }
  .stop-date { font-size: .75rem; letter-spacing: .1em; }
  .stop-date::before { width: .85rem; margin-right: .35rem; }
  .stop-kicker { font-size: .78rem; margin-top: .49rem; }
  .stop .text-action { margin-top: .72rem; }
  .junction { top: 48%; }
  .route-date { display: none; }
  .junction::after, .stop[data-layout="reverse"] .junction::after {
    right: auto;
    left: .52rem;
    width: 1rem;
  }

  .stop[data-layout] .exhibit-preview { margin-left: 0; }
  .stop[data-layout] .small-photo {
    margin: .3rem .15rem 0 auto;
    transform: rotate(2deg);
  }

  .exhibit-preview .photo-view { aspect-ratio: 1.54; }
  .exhibit-preview.format-portrait .photo-view { aspect-ratio: 1.4; }
  .photo-caption { font-size: .74rem; }
  .family-preview-row { grid-template-columns: 1fr; gap: .16rem; }

  .final { text-align: left; padding: 5.6rem 1.3rem 3rem 3.98rem; }
  .final-content::before { inset: -6rem -5rem; }
  .final-mark { margin-left: 0; }
  .final h2 { font-size: clamp(2.6rem, 11vw, 4.5rem); }
  .author { margin-top: 2rem; }
  #overlay { max-height: calc(100% - 1rem); max-width: calc(100% - 1rem); padding: 1.3rem 1rem; }
  .dialog-grid { grid-template-columns: 1fr; }
  .gallery { grid-row: 1; }
  .dialog-close { margin-right: -.2rem; }
}

@media (max-height: 530px) and (min-width: 691px) {
  .hero-copy { top: 22%; }
  .hero h1 { font-size: clamp(4rem, 8.7vh, 7rem); }
  .hero-meta { top: 1.6rem; }
}

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