/* ==========================================================================
   RHEEM — THE HOT WATER MACHINE · a Super Arbor brand exhibit
   Cinematic scroll document. Museum register: dark halls / cream galleries,
   Fraunces display at architectural scale, Rheem 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("../../gaf/assets/arbor-fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../../gaf/assets/arbor-fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../../gaf/assets/arbor-mulish.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --cream: #faf7f2;
  --paper: #efe9dd;
  --charcoal: #141414;
  --hall: #0d0c0a;
  --hall-2: #121009;
  --ink-soft: #3c4440;
  --border: #dad5cb;
  --red: #b22432;
  --red-deep: #8d1c27;
  --butter: #fbe5ce;
  --amber: #c98a3d;
  --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, summary: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: #e58e96; }
.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: 56ch; }
.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 · 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% 45%;
  filter: saturate(0.92) contrast(1.06) brightness(0.72);
  scale: 1.035;
  animation: prologue-drift 18s ease-out both;
}
.plinth__image::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.14) 0%, rgba(7, 6, 5, 0.06) 38%, rgba(7, 6, 5, 0.86) 100%),
    linear-gradient(90deg, rgba(7, 6, 5, 0.6) 0%, rgba(7, 6, 5, 0.04) 58%);
}
@keyframes prologue-drift { from { scale: 1.09; } to { scale: 1.035; } }
.plinth__stack {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  margin-inline: auto;
  padding: 0 40px 96px;
  pointer-events: none;
}
.plinth__eyebrow { color: #d8cfc4; 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: 30em;
  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; }
.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); }

/* ============================ 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 {
  position: relative;
  margin: 0 0 30px;
  overflow: hidden;
  box-shadow: 5px 5px 0 0 #161010;
  rotate: -1deg;
  max-width: 480px;
}
.record__figure img { filter: saturate(0.92) contrast(1.03); }
.record__cap {
  position: absolute;
  left: 0; bottom: 0;
  background: rgba(13, 12, 10, 0.72);
  color: rgba(250, 247, 242, 0.8);
  padding: 4px 10px;
  font-size: 10.5px;
}
.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; }

/* ============================ 2 · the living tank ============================ */

.living {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(120% 90% at 50% 0%, #1a1712 0%, var(--hall) 55%, #060505 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(5, 4, 4, 0.24), transparent 25%, transparent 68%, rgba(5, 4, 4, 0.78)),
    linear-gradient(90deg, rgba(5, 4, 4, 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: #d8cfc4; 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: 8ch;
  text-shadow: 0 10px 45px rgba(0, 0, 0, 0.52);
}
.living__lede {
  margin-top: 18px;
  max-width: 44ch;
  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(10, 8, 7, 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; }

/* the first-hour HUD chip */
.hud {
  position: absolute; z-index: 3; left: 40px; bottom: 92px;
  padding: 12px 18px 10px;
  background: rgba(10, 8, 7, 0.66);
  border-left: 3px solid var(--red);
  backdrop-filter: blur(8px);
}
.hud__num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 96;
  font-weight: 580;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  color: var(--cream);
}
.hud__note { color: rgba(250, 247, 242, 0.55); margin-top: 4px; font-size: 10.5px; }

.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); }

/* ============================ 3 · the tank, opened ============================ */

.roof { background: linear-gradient(180deg, #0f0d0b 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 {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.roof__stage { position: absolute; inset: 0; }
.world-fallback #worldStage { background: #111 url("../assets/sa-brand-rheem-anatomy.webp") center / contain no-repeat; }
.world-fallback #hotspotMount, .world-fallback .roof__ctlrow, .world-fallback .wctl, .world-fallback .hud { 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; }
.roof__credit {
  position: absolute; z-index: 3; left: 40px; bottom: 14px;
  font-size: 11.5px; color: rgba(250, 247, 242, 0.42);
}

.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(10, 8, 7, 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 {
  position: absolute; z-index: 3;
  right: 40px; top: 50%;
  transform: translateY(-50%);
  width: min(380px, calc(100vw - 80px));
  display: grid; gap: 16px; align-content: start;
}
.roof__ctlrow { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.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); }

/* ============================ 4 · 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.5; }
.material__copy {
  position: relative;
  width: min(1280px, 100%);
  margin-inline: auto;
  padding: 120px 40px;
}
.material__copy .room-title { max-width: 11ch; }
.material__line {
  margin-top: 30px;
  max-width: 58ch;
  font-size: 18px;
  color: rgba(250, 247, 242, 0.92);
  background: rgba(10, 8, 7, 0.55);
  padding: 22px 26px;
  border-left: 2px solid var(--red);
  backdrop-filter: blur(4px);
}
.material__credit { display: block; margin-top: 16px; color: rgba(250, 247, 242, 0.42); }

/* ============================ 5 · the label wall ============================ */

.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;
  flex-wrap: wrap;
  gap: 0.1em 0.32em;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  margin: 70px auto 80px;
  padding: 0 40px;
  max-width: 1380px;
}
.math__seg { position: relative; display: inline-block; white-space: nowrap; }
.math__seg--a .math__glyph { color: var(--charcoal); }
.math__seg--b .math__glyph { color: var(--red); }
.math__seg--c .math__glyph { color: #8a6b3f; }
.math__seg--d .math__glyph { color: #6b6f6a; }
.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__seg--d .math__under { color: #6b6f6a; }
.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;
}
.math__footnote {
  width: min(900px, 100%);
  margin: 34px auto 0;
  padding: 0 40px;
  text-align: center;
  font-size: 13px;
  color: #7c7f79;
}

/* ============================ 6 · the works & families ============================ */

.band {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  background: var(--hall);
  display: flex;
  align-items: flex-end;
}
.band__bg { position: absolute; inset: -12% 0; margin: 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.86; filter: saturate(0.96) contrast(1.04); }
.band::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 6, 5, 0.3), transparent 30%, transparent 62%, rgba(7, 6, 5, 0.82));
}
.band__plate {
  position: relative; z-index: 2;
  width: min(1280px, 100%);
  margin-inline: auto;
  padding: 0 40px 44px;
  display: grid; gap: 10px;
  color: rgba(250, 247, 242, 0.9);
  font-size: 16px;
  max-width: 60ch;
}

.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__img { overflow: hidden; box-shadow: 6px 6px 0 0 #161010; }
.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: 46ch; margin-top: 18px; color: var(--charcoal); }
.works__attr { color: #6b6f6a; font-size: 15px; }

.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(178, 36, 50, 0.65); background: rgba(178, 36, 50, 0.1); }
.protect__big {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 580;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 0.95;
  color: var(--cream);
  margin-bottom: 26px;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.protect__panel--red .protect__big { color: #f0606c; }
.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__fit {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(250, 247, 242, 0.14);
  font-size: 14.5px;
}
.protect__fit .smallcaps { color: #e58e96; margin-right: 10px; }
.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);
  border-left: 3px solid var(--amber);
  font-size: 15.5px;
}
.protect__ribbon .smallcaps { color: var(--amber); margin-right: 14px; }

/* ============================ 7 · the desk's read ============================ */

.guide { background: var(--cream); padding: 140px 0 120px; }
.guide__head { width: min(1280px, 100%); margin-inline: auto; padding: 0 40px 50px; }
.guide__grid {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 60px;
}
.guide__card { border-top: 1px solid var(--border); padding-top: 24px; }
.guide__num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 580;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.9;
  color: var(--red);
  margin-bottom: 14px;
}
.guide__card h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.guide__card p:not(.guide__num) { color: var(--ink-soft); font-size: 15.5px; max-width: 58ch; }
.guide__note {
  width: min(900px, 100%);
  margin: 80px auto 0;
  padding: 0 40px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--charcoal);
}

/* ============================ 8 · gallery ============================ */

.gallery { background: var(--paper); padding: 140px 0 90px; }
.gallery__head { width: min(1280px, 100%); margin-inline: auto; padding: 0 40px 40px; text-align: center; }
.gallery__head .room-sub { margin-inline: auto; }
.gallery__bench-head {
  width: min(1380px, 100%);
  margin: 40px auto 8px;
  padding: 0 40px;
}
.gallery__bench-label { color: var(--red); }
.gallery__bench-sub { color: #6b6f6a; font-size: 14.5px; margin-top: 4px; }
.gallery__row {
  list-style: none;
  margin: 20px auto 0;
  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); }

/* the desk's questions */
.faqs {
  width: min(900px, 100%);
  margin: 120px auto 0;
  padding: 0 40px;
}
.faqs__title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 560;
  font-variation-settings: "opsz" 144;
  line-height: 1.05;
  margin-bottom: 26px;
}
.faq { border-top: 1px solid var(--border); }
.faq:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  translate: 0 -50%;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 24px;
  color: var(--red);
  transition: rotate 200ms ease;
}
.faq[open] summary::after { rotate: 45deg; }
.faq p { color: var(--ink-soft); font-size: 15.5px; padding: 0 0 22px; max-width: 64ch; }

.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 #161010;
  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 { min-height: 0; overflow: visible; padding-bottom: 60px; }
  .roof__stage { position: relative; inset: auto; height: 56vh; }
  .roof__side {
    position: static;
    transform: none;
    width: auto;
    margin: 20px 40px 0;
  }
  .roof__ctlrow { justify-content: flex-start; }
  .roof__credit { position: static; display: block; margin: 12px 40px 0; }
  .wctl { right: 16px; bottom: 24px; }
  .math__grid { grid-template-columns: 1fr; max-width: 640px; }
  .protect__panels { grid-template-columns: 1fr; max-width: 640px; }
  .protect__panel { min-height: 0; }
  .guide__grid { grid-template-columns: 1fr; max-width: 640px; }
  .gallery__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works__frame { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .plinth { min-height: 100svh; }
  .plinth__image img { object-position: 52% 45%; }
  .plinth__stack { padding: 0 22px 86px; }
  .plinth__title { font-size: clamp(88px, 29vw, 120px); }
  .plinth__tagline { font-size: 18px; margin-top: 14px; max-width: 22em; }
  .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(5, 4, 4, 0.18), transparent 38%, rgba(5, 4, 4, 0.85)); }
  .living__intro { top: auto; left: 22px; bottom: 24px; width: calc(100vw - 44px); }
  .living__title { font-size: clamp(40px, 15vw, 62px); max-width: 9ch; }
  .living__lede { font-size: 13px; max-width: 34ch; 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; }
  .hud { left: 16px; bottom: auto; top: 208px; }
  .modecard { top: 184px; right: 16px; width: calc(100vw - 32px); }
  .roof__stage { height: min(58svh, 500px); min-height: 390px; }
  .roof__side { margin: 20px 22px 0; }
  .roof__credit { margin: 12px 22px 0; }
  .roof__placard { max-height: none; overflow: visible; }
  .record__head, .record__body, .works__head, .works__frame, .works__pull,
  .math__head, .math__grid, .math__stamp, .math__footnote, .math__specimen,
  .protect__head, .protect__panels, .protect__ribbon,
  .guide__head, .guide__grid, .guide__note,
  .gallery__head, .gallery__bench-head, .gallery__row, .gallery__close,
  .faqs, .roof__head, .material__copy, .band__plate { padding-left: 22px; padding-right: 22px; }
  .gallery__row { grid-template-columns: 1fr; }
  .record__exhibit { padding: 8vh 0; }
  .band { min-height: 64vh; }
}

/* ============================ 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;
  }
}
