/* ==========================================================================
   GAF — ONE ROOF · a Super Arbor brand exhibit
   Cinematic scroll document. Museum register: dark halls / cream galleries,
   Fraunces display at architectural scale, GAF red as the curator's ribbon.
   Motion is layered on by js/exhibit.js; this file must read perfectly
   static (reduced-motion, no-JS, crawlers).
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("../assets/arbor-fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/arbor-fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../assets/arbor-mulish.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --cream: #faf7f2;
  --paper: #efe9dd;
  --charcoal: #141414;
  --hall: #0b0d0c;
  --hall-2: #10100e;
  --ink-soft: #3c4440;
  --border: #dad5cb;
  --red: #d2232a;
  --red-deep: #9e1b20;
  --butter: #fbe5ce;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Mulish", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-feature-settings: "ss01", "ss02"; margin: 0; text-wrap: balance; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.smallcaps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
}
.serif-i { font-family: var(--serif); font-style: italic; }
.figs { font-variant-numeric: lining-nums tabular-nums; }
.plate {
  display: inline-block;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  color: #6b6f6a;
  padding: 5px 10px;
  margin-bottom: 14px;
}
.plate--dark {
  border-color: rgba(250, 247, 242, 0.3);
  background: rgba(250, 247, 242, 0.06);
  color: rgba(250, 247, 242, 0.75);
}
.kicker { color: var(--red); margin-bottom: 12px; display: block; }
.kicker--dark { color: #e88f93; }
.room-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 560;
  font-variation-settings: "opsz" 144;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}
.room-title--dark { color: var(--cream); }
.room-sub { font-size: 17px; color: #6b6f6a; margin-top: 14px; max-width: 52ch; }
.room-sub--dark { color: rgba(250, 247, 242, 0.65); }

/* progress rail */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: rgba(20, 20, 20, 0.08);
  z-index: 90;
}
.rail__fill {
  width: 100%; height: 0%;
  background: var(--red);
}

/* ============================ 0 · photographic prologue ============================ */

.plinth {
  position: relative;
  min-height: 100vh;
  background: var(--hall);
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.plinth__image { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.plinth__image img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  filter: saturate(0.9) contrast(1.08) brightness(0.74);
  scale: 1.035;
  animation: prologue-drift 18s ease-out both;
}
.plinth__image::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 7, 0.12) 0%, rgba(5, 7, 7, 0.06) 38%, rgba(5, 7, 7, 0.84) 100%),
    linear-gradient(90deg, rgba(5, 7, 7, 0.58) 0%, rgba(5, 7, 7, 0.04) 58%);
}
@keyframes prologue-drift { from { scale: 1.09; } to { scale: 1.035; } }
.plinth__stack { pointer-events: none; }
.plinth__credit { position: absolute; z-index: 2; left: 40px; bottom: 14px; font-size: 11.5px; color: rgba(250, 247, 242, 0.42); }
.plinth__credit a { color: rgba(250, 247, 242, 0.62); }
.plinth__stack {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  margin-inline: auto;
  padding: 0 40px 96px;
}
.plinth__eyebrow { color: #cdd8cf; margin-bottom: 10px; }
.plinth__title {
  font-size: clamp(120px, 22vw, 340px);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  line-height: 0.82;
  letter-spacing: -0.02em;
  margin-left: -0.04em;
  color: var(--cream);
  text-shadow: 0 2px 60px rgba(0, 0, 0, 0.55);
}
.plinth__tagline {
  font-size: clamp(20px, 2.4vw, 28px);
  max-width: 24em;
  color: rgba(250, 247, 242, 0.94);
  margin-top: 22px;
}
.plinth__rule {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(250, 247, 242, 0.62);
  border-top: 1px solid rgba(250, 247, 242, 0.22);
  padding-top: 14px;
  margin-top: 34px;
}
.plinth__cue {
  position: absolute;
  right: 40px; bottom: 40px;
  z-index: 2;
  color: rgba(250, 247, 242, 0.6);
  display: flex; align-items: center; gap: 12px;
}
.plinth__cue-line { display: inline-block; width: 54px; height: 1px; background: currentColor; }

/* ============================ 1 · record ============================ */

.record { background: var(--cream); padding: 130px 0 40px; }
.record__head { width: min(1280px, 100%); margin-inline: auto; padding: 0 40px 30px; }
.record__body {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 0 60px;
}
.record__year-col { position: relative; }
.record__year {
  position: sticky;
  top: 26vh;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 580;
  font-size: clamp(90px, 13vw, 200px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--red);
  opacity: 0.92;
}
.record__list { list-style: none; margin: 0; padding: 0; }
.record__exhibit { padding: 12vh 0; border-bottom: 1px solid var(--border); }
.record__exhibit:last-child { border-bottom: 0; }
.record__figure {
  margin: 0 0 30px;
  overflow: hidden;
  box-shadow: 5px 5px 0 0 #101613;
  rotate: -1deg;
  max-width: 480px;
}
.record__figure img { filter: saturate(0.92) contrast(1.03); }
.record__placard h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 560;
  line-height: 1.1;
  margin-bottom: 14px;
}
.record__placard p { color: var(--ink-soft); max-width: 54ch; }

/* ============================ interlude · living roof ============================ */

.living {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(120% 90% at 50% 0%, #191b19 0%, var(--hall) 55%, #060707 100%);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.living::after {
  content: "";
  position: absolute; z-index: 1; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 5, 5, 0.24), transparent 25%, transparent 68%, rgba(4, 5, 5, 0.78)),
    linear-gradient(90deg, rgba(4, 5, 5, 0.55), transparent 42%);
}
.living__world { position: absolute; z-index: 0; inset: 0; isolation: isolate; }
.living__gl { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.living__poster {
  position: absolute; z-index: 1; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.46; pointer-events: none;
  transition: opacity 700ms ease;
}
.living__poster.is-off { opacity: 0; }
.living__intro {
  position: absolute; z-index: 2; left: 40px; top: 54px;
  width: min(540px, calc(100vw - 80px));
  pointer-events: none;
  transition: opacity 500ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.3, 1);
}
.living.is-inspecting .living__intro { opacity: 0.14; transform: translateY(18px); }
.living__eyebrow { color: #cdd8cf; margin-bottom: 12px; }
.living__title {
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 560;
  font-variation-settings: "opsz" 144;
  line-height: 0.9;
  letter-spacing: -0.025em;
  max-width: 6ch;
  text-shadow: 0 10px 45px rgba(0, 0, 0, 0.52);
}
.living__lede {
  margin-top: 18px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(250, 247, 242, 0.72);
}
.living__cue {
  position: absolute; z-index: 2; left: 40px; bottom: 34px;
  color: rgba(250, 247, 242, 0.58);
  display: flex; align-items: center; gap: 12px;
}
.living__cue-line { display: inline-block; width: 54px; height: 1px; background: currentColor; }

/* museum weather bench */
.wctl {
  position: absolute; z-index: 3; right: 40px; bottom: 34px;
  display: grid; gap: 12px; justify-items: end;
  padding: 14px 16px;
  background: rgba(8, 10, 9, 0.58);
  border: 1px solid rgba(250, 247, 242, 0.18);
  backdrop-filter: blur(8px);
}
.wctl__sun { display: grid; gap: 6px; color: rgba(250, 247, 242, 0.7); min-width: 220px; }
.wctl__sun input { accent-color: var(--red); width: 100%; }
.wctl__modes { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.wctl__btn {
  font: 700 11.5px/1 var(--sans);
  letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(250, 247, 242, 0.82);
  background: transparent;
  border: 1px solid rgba(250, 247, 242, 0.24);
  min-height: 38px;
  padding: 8px 12px; cursor: pointer;
  transition: all 150ms ease;
}
.wctl__btn:hover { border-color: rgba(250, 247, 242, 0.6); }
.wctl__btn.is-on, .wctl__btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

.modecard {
  position: absolute; z-index: 4; right: 40px; top: 54px;
  width: min(380px, calc(100vw - 60px));
  background: var(--cream); color: var(--charcoal);
  border-left: 3px solid var(--red);
  padding: 20px 40px 18px 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.modecard__k { color: var(--red); margin-bottom: 8px; }
.modecard__body { font-size: 14.5px; line-height: 1.6; }
.modecard__src { font-size: 12px; color: var(--ink-soft); margin-top: 10px; overflow-wrap: anywhere; }
.modecard__src a { color: var(--red); }
.modecard__close { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink-soft); }

/* ============================ 2 · roof (real 3D) ============================ */

.roof { background: linear-gradient(180deg, #0c0f0e 0%, var(--hall-2) 100%); color: var(--cream); padding: 130px 0 0; }
.roof__head { width: min(1280px, 100%); margin-inline: auto; padding: 0 40px 10px; text-align: center; }
.roof__head .room-sub { margin-inline: auto; }
.roof__pin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 30px;
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: 20px 40px 40px;
}
.roof__stage { position: relative; height: min(76vh, 720px); }
.world-fallback #worldStage { background: #111 url("../assets/hall-fallback.jpg") center / cover no-repeat; }
.world-fallback #hotspotMount, .world-fallback .roof__ctlrow { display: none; }
.roof__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.roof__spots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.spot {
  position: absolute; translate: -50% -50%;
  pointer-events: auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.72);
  background: rgba(8, 10, 9, 0.55);
  color: var(--cream);
  font: 700 11px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.spot::after {
  content: "";
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(250, 247, 242, 0.25);
  animation: spot-breathe 2.6s ease-in-out infinite;
}
@keyframes spot-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.16); opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) { .spot::after { animation: none; } }
.spot:hover, .spot:focus-visible, .spot[aria-expanded="true"] { background: var(--red); border-color: var(--red); }
.spot.is-hidden { display: none; }

.roof__side { display: grid; gap: 16px; align-content: start; }
.roof__ctlrow { display: flex; gap: 7px; flex-wrap: wrap; }
.roof__placard {
  background: var(--cream); color: var(--charcoal);
  border-left: 3px solid var(--red);
  padding: 22px 24px;
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.4);
  max-height: 62vh; overflow: auto;
}
.roof__placard-title { font-size: 23px; font-weight: 600; font-style: normal; color: var(--charcoal); line-height: 1.15; margin: 2px 0 10px; }
.roof__placard-body { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft, #3c4440); }
.roof__placard-sku { font-size: 14px; margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.roof__placard-sku a { color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--red); }
.roof__placard-note { font-size: 13px; color: #8a6b3f; margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }
.roof__placard-src { font-size: 11.5px; color: #7c7f79; margin-top: 10px; overflow-wrap: anywhere; }
.roof__placard-src a { color: var(--red); }

/* ============================ 3 · material ============================ */

.material {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hall);
  color: var(--cream);
}
.material__bg { position: absolute; inset: -12% 0; margin: 0; }
.material__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.material__copy {
  position: relative;
  width: min(1280px, 100%);
  margin-inline: auto;
  padding: 120px 40px;
}
.material__copy .room-title { max-width: 10ch; }
.material__line {
  margin-top: 30px;
  max-width: 58ch;
  font-size: 18px;
  color: rgba(250, 247, 242, 0.92);
  background: rgba(8, 10, 9, 0.55);
  padding: 22px 26px;
  border-left: 2px solid var(--red);
  backdrop-filter: blur(4px);
}

/* ============================ 4 · works ============================ */

.works { background: var(--paper); padding: 130px 0 110px; }
.works__head { width: min(1280px, 100%); margin-inline: auto; padding: 0 40px 40px; }
.works__frame {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 26px;
  align-items: end;
}
.works__frame--right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); margin-top: 90px; }
.works__frame--right .works__img { order: 2; }
.works__img { overflow: hidden; box-shadow: 6px 6px 0 0 #101613; }
.works__plate { display: grid; gap: 10px; color: var(--ink-soft); font-size: 15.5px; max-width: 40ch; padding-bottom: 8px; }
.works__pull { width: min(1280px, 100%); margin: 110px auto 0; padding: 0 40px; }
.works__pull-num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 580;
  font-size: clamp(120px, 20vw, 300px);
  line-height: 0.8;
  color: var(--red);
  letter-spacing: -0.03em;
}
.works__pull-line { font-size: 19px; max-width: 44ch; margin-top: 18px; color: var(--charcoal); }
.works__attr { color: #6b6f6a; font-size: 15px; }

/* ============================ 5 · math ============================ */

.math { background: var(--cream); padding: 140px 0 120px; }
.math__head { width: min(1280px, 100%); margin-inline: auto; padding: 0 40px; text-align: center; }
.math__head .room-sub { margin-inline: auto; }
.math__specimen {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.14em;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  font-size: clamp(72px, 13vw, 190px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 70px 0 80px;
}
.math__seg { position: relative; display: inline-block; }
.math__seg--a .math__glyph { color: var(--charcoal); }
.math__seg--b .math__glyph { color: var(--red); }
.math__seg--c .math__glyph { color: #8a6b3f; }
.math__glyph { display: inline-block; }
.math__under {
  position: absolute;
  left: 0.06em; right: 0.06em; bottom: -18px;
  height: 4px;
  background: currentColor;
  transform-origin: left center;
}
.math__seg--a .math__under { color: var(--charcoal); }
.math__seg--b .math__under { color: var(--red); }
.math__seg--c .math__under { color: #8a6b3f; }
.math__grid {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.math__item p { color: var(--ink-soft); font-size: 15.5px; }
.math__label { color: var(--red); display: block; margin-bottom: 12px; }
.math__stamp {
  width: min(900px, 100%);
  margin: 70px auto 0;
  padding: 0 40px;
  text-align: center;
  font-size: 16.5px;
  color: var(--ink-soft);
}
.stamp {
  display: inline-block;
  border: 3px double var(--red);
  color: var(--red);
  padding: 0.35em 0.7em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  rotate: -4deg;
  margin-right: 12px;
}

/* ============================ 6 · protect ============================ */

.protect { background: var(--hall-2); color: var(--cream); padding: 130px 0 120px; overflow: hidden; }
.protect__head { width: min(1280px, 100%); margin-inline: auto; padding: 0 40px 50px; }
.protect__panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  width: min(1380px, 100%);
  margin-inline: auto;
  padding: 0 40px;
}
.protect__panel {
  border: 1px solid rgba(250, 247, 242, 0.16);
  background: rgba(250, 247, 242, 0.04);
  padding: 30px 30px 34px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.protect__panel--red { border-color: rgba(210, 35, 42, 0.55); background: rgba(210, 35, 42, 0.08); }
.protect__big {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 580;
  font-size: clamp(44px, 4.6vw, 64px);
  line-height: 0.95;
  color: var(--cream);
  margin-bottom: 26px;
  letter-spacing: -0.015em;
}
.protect__panel--red .protect__big { color: #ff5a60; }
.protect__panel h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.protect__panel p:not(.protect__big) { color: rgba(250, 247, 242, 0.8); font-size: 15px; }
.protect__ribbon {
  width: min(1380px, 100%);
  margin: 40px auto 0;
  padding: 16px 40px;
  color: var(--butter);
  border-top: 1px solid rgba(250, 247, 242, 0.16);
  font-size: 15.5px;
}
.protect__ribbon .smallcaps { color: #e88f93; margin-right: 14px; }

/* ============================ 7 · gallery ============================ */

.gallery { background: var(--paper); padding: 140px 0 90px; }
.gallery__head { width: min(1280px, 100%); margin-inline: auto; padding: 0 40px 60px; text-align: center; }
.gallery__head .room-sub { margin-inline: auto; }
.gallery__row {
  list-style: none;
  margin: 0 auto;
  padding: 0 40px;
  width: min(1380px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  align-items: end;
}
.gallery__piece a { text-decoration: none; display: grid; gap: 6px; }
.gallery__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 26px 18px 44px;
  perspective: 900px;
  margin-bottom: 18px;
}
.gallery__stage img {
  position: relative;
  z-index: 2;
  max-height: 240px;
  width: auto;
  filter: drop-shadow(0 24px 22px rgba(10, 10, 10, 0.35));
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.3, 1);
}
.gallery__piece a:hover .gallery__stage img { transform: translateY(-10px) rotateY(-6deg); }
.gallery__plinth {
  position: absolute;
  bottom: 0;
  width: 82%;
  height: 40px;
  background:
    linear-gradient(180deg, #efece4 0%, #d9d4c7 100%);
  border: 1px solid var(--border);
  box-shadow: 0 26px 40px rgba(10, 10, 10, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: rotateX(52deg);
  transform-origin: bottom center;
}
.gallery__role { color: var(--red); }
.gallery__name { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.25; }
.gallery__price { font-weight: 800; color: var(--charcoal); }
.gallery__close { width: min(900px, 100%); margin: 120px auto 0; padding: 0 40px; text-align: center; }
.gallery__closing {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 560;
  line-height: 1.05;
}
.gallery__body { color: var(--ink-soft); margin: 20px auto 34px; max-width: 52ch; }
.gallery__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  background: var(--red);
  color: var(--cream);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 4px 4px 0 0 #101613;
  transition: background-color 180ms ease;
}
.cta:hover { background: var(--red-deep); }
.cta--ghost { background: transparent; color: var(--charcoal); border: 1px solid currentColor; box-shadow: none; }
.cta--ghost:hover { background: var(--charcoal); color: var(--cream); }
.citations { margin-top: 70px; border-top: 1px solid var(--border); padding-top: 20px; text-align: left; }
.citations p { font-size: 12.5px; line-height: 1.6; color: #7c7f79; margin-bottom: 8px; }

/* ============================ responsive ============================ */

@media (max-width: 1023px) {
  .record__body { grid-template-columns: 1fr; }
  .record__year-col { display: none; }
  .living { min-height: 100svh; }
  .living__intro { top: 40px; }
  .roof__pin { grid-template-columns: 1fr; min-height: 0; padding-bottom: 80px; }
  .roof__stage { height: 52vh; }
  .wctl { right: 16px; bottom: 24px; }
  .roof__callouts { min-height: 0; display: grid; gap: 26px; }
  .roof__callout { position: static; opacity: 1; visibility: visible; }
  .math__grid { grid-template-columns: 1fr; max-width: 640px; }
  .protect__panels { grid-template-columns: 1fr; max-width: 640px; }
  .protect__panel { min-height: 0; }
  .gallery__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works__frame, .works__frame--right { grid-template-columns: 1fr; }
  .works__frame--right .works__img { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .plinth { min-height: 100svh; }
  .plinth__image img { object-position: 56% 50%; }
  .plinth__stack { padding: 0 22px 86px; }
  .plinth__title { font-size: clamp(88px, 31vw, 120px); }
  .plinth__tagline { font-size: 19px; margin-top: 14px; max-width: 18em; }
  .plinth__rule { gap: 5px; margin-top: 20px; padding-top: 10px; font-size: 10px; }
  .plinth__cue { display: none; }
  .plinth__credit { left: 22px; right: 22px; bottom: 10px; max-width: 34em; font-size: 10px; line-height: 1.4; }
  .living { min-height: 118svh; }
  .living::after { background: linear-gradient(180deg, rgba(4, 5, 5, 0.18), transparent 38%, rgba(4, 5, 5, 0.85)); }
  .living__intro { top: auto; left: 22px; bottom: 24px; width: calc(100vw - 44px); }
  .living__title { font-size: clamp(44px, 16vw, 66px); max-width: 7ch; }
  .living__lede { font-size: 13px; max-width: 32ch; margin-top: 12px; }
  .living__cue { display: none; }
  .wctl {
    top: 14px; right: 16px; bottom: auto; left: 16px;
    justify-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .wctl__sun { min-width: 0; }
  .wctl__modes { justify-content: center; }
  .wctl__btn { flex: 1 1 auto; min-height: 44px; padding-inline: 10px; }
  .modecard { top: 184px; right: 16px; width: calc(100vw - 32px); }
  .roof__pin { padding-left: 22px; padding-right: 22px; }
  .roof__stage { height: min(58svh, 500px); min-height: 390px; }
  .roof__placard { max-height: none; overflow: visible; }
  .record__head, .record__body, .works__head, .works__frame, .works__pull,
  .math__head, .math__grid, .math__stamp, .protect__head, .protect__panels,
  .protect__ribbon, .gallery__head, .gallery__row, .gallery__close,
  .roof__head, .material__copy { padding-left: 22px; padding-right: 22px; }
  .gallery__row { grid-template-columns: 1fr; }
  .record__exhibit { padding: 8vh 0; }
}

/* ============================ motion guards ============================ */

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