/* ============================================================
   RELIQUARY — Twelve Objects, One Millennium
   Museum-dark: charcoal walls, spotlight pools, brass.
   Designed & built by Claude Fable 5
   ============================================================ */

:root {
  --wall: #141312;
  --wall-deep: #0d0c0b;
  --floor: #0a0908;
  --brass: #ad8a56;
  --brass-bright: #d9b877;
  --brass-dim: #8a6b40;
  --brass-faint: rgba(173, 138, 86, 0.22);
  --patina: #6f8378;
  --patina-faint: rgba(111, 131, 120, 0.16);
  --candle: #f0dbb2;
  --ivory: #ece4d4;
  --body-ink: #d2c9ba;
  --muted: #a89d8d;
  --hairline: rgba(173, 138, 86, 0.28);
  --spot-warm: rgba(240, 219, 178, 0.16);
  --font-display: 'Marcellus', serif;
  --font-body: 'Crimson Pro', serif;
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; }
html, body { overflow-x: clip; }
html {
  scrollbar-color: var(--brass-dim) var(--wall-deep);
  scrollbar-width: thin;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 18% 12%, rgba(111, 131, 120, 0.07), transparent 58%),
    radial-gradient(ellipse 72% 48% at 82% 2%, rgba(173, 138, 86, 0.055), transparent 62%),
    linear-gradient(180deg, #171513 0%, var(--wall) 22%, #11100f 100%);
  color: var(--body-ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  -webkit-tap-highlight-color: rgba(217, 184, 119, 0.16);
  touch-action: manipulation;
}

/* Plaster grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Gallery vignette — dark corners like unlit wall */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 39;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 42%, transparent 55%, rgba(5, 4, 3, 0.55) 100%);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--wall-deep); }
::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(217, 184, 119, 0.64), rgba(138, 107, 64, 0.72));
  border: 3px solid var(--wall-deep);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brass-bright), var(--brass-dim));
}

::selection { background: rgba(217, 184, 119, 0.88); color: var(--wall-deep); }

p { text-wrap: pretty; }

a { color: var(--brass-bright); text-decoration: none; }
a:hover { color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--brass);
  color: var(--wall-deep);
  padding: 0.7rem 1.2rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  transition: top 0.25s ease;
}
.skip:focus { top: 1rem; color: var(--wall-deep); }

/* ---------------- Header ---------------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-right));
  height: var(--header-h);
  background: linear-gradient(rgba(13, 12, 11, 0.88), rgba(13, 12, 11, 0.72));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(173, 138, 86, 0.16);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
}
.wordmark svg { flex: none; }
.wordmark:hover { color: var(--brass-bright); }

.topbar nav { display: flex; align-items: center; gap: clamp(0.2rem, 1.5vw, 1rem); }
.topbar nav a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.85rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.topbar nav a:hover { color: var(--brass-bright); }

.now-lit {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(210, 201, 186, 0.72);
  white-space: nowrap;
  pointer-events: none;
}
.now-lit::before,
.now-lit::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 0.7rem 0.12rem;
  transform: rotate(45deg);
  background: var(--brass);
  box-shadow: 0 0 10px rgba(217, 184, 119, 0.45);
}

/* ---------------- Hero vestibule ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  overflow: clip;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: var(--header-h) clamp(1rem, 5vw, 5.5rem) 9vh;
  border-left: 1px solid rgba(173, 138, 86, 0.11);
  border-right: 1px solid rgba(173, 138, 86, 0.11);
  background:
    linear-gradient(180deg, transparent 0 17%, rgba(240, 219, 178, 0.035) 17.1% 17.25%, transparent 17.4%),
    linear-gradient(90deg, transparent 0 22%, rgba(173, 138, 86, 0.06) 22.1% 22.2%, transparent 22.3% 77.7%, rgba(173, 138, 86, 0.06) 77.8% 77.9%, transparent 78%),
    radial-gradient(ellipse 42% 22% at 50% 100%, rgba(173, 138, 86, 0.09), transparent 70%);
  opacity: 0.72;
  transform: scaleY(0.98);
}

.hero::after {
  left: 50%;
  bottom: 8vh;
  width: min(760px, 84vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(173, 138, 86, 0.28), transparent);
  box-shadow: 0 -32px 70px 18px rgba(240, 219, 178, 0.04);
  opacity: 0.82;
}

/* the entrance spotlight — blooms on load */
.hero .entrance-light {
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(120vw, 1100px);
  height: 90%;
  background: radial-gradient(ellipse 50% 55% at 50% 18%, rgba(242, 221, 171, 0.17), rgba(242, 221, 171, 0.05) 45%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
body.lit .hero .entrance-light { animation: bloom 3s ease-out 0.2s forwards; }

.lamp-iris {
  position: absolute;
  top: calc(var(--header-h) + 2.2rem);
  left: 50%;
  width: min(52vw, 520px);
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(240, 219, 178, 0.32), rgba(173, 138, 86, 0.1) 36%, transparent 62%),
    linear-gradient(180deg, rgba(236, 228, 212, 0.04), rgba(0, 0, 0, 0.28));
  border-top: 1px solid rgba(240, 219, 178, 0.18);
  opacity: 0;
  filter: blur(0.1px);
}
.lamp-iris span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(240, 219, 178, 0.75), transparent);
  box-shadow: 0 0 34px 12px rgba(240, 219, 178, 0.08);
}
body.lit .lamp-iris { animation: apertureWake 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s forwards; }

@keyframes apertureWake {
  0% { opacity: 0; transform: translateX(-50%) scaleX(0.3); }
  12% { opacity: 0.9; transform: translateX(-50%) scaleX(0.85); }
  18% { opacity: 0.2; }
  32% { opacity: 0.82; }
  100% { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

@keyframes bloom {
  0%   { opacity: 0; }
  8%   { opacity: 0.65; }
  12%  { opacity: 0.1; }
  20%  { opacity: 0.8; }
  26%  { opacity: 0.4; }
  100% { opacity: 1; }
}

.hero > * { position: relative; z-index: 1; }

.hero .eyebrow,
.hero .exhibition-no,
.hero h1,
.hero .rule,
.hero .subtitle,
.hero .dates,
.hero .numerals,
.hero .threshold-ledger,
.hero .scrollcue {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
body.lit .hero .exhibition-no { transition-delay: 0.78s; }
body.lit .hero .eyebrow       { transition-delay: 0.96s; }
body.lit .hero h1             { transition-delay: 1.12s; }
body.lit .hero .rule          { transition-delay: 1.42s; }
body.lit .hero .subtitle      { transition-delay: 1.62s; }
body.lit .hero .dates         { transition-delay: 1.86s; }
body.lit .hero .numerals      { transition-delay: 2.16s; }
body.lit .hero .threshold-ledger { transition-delay: 2.38s; }
body.lit .hero .scrollcue     { transition-delay: 2.58s; }
body.lit .hero .exhibition-no, body.lit .hero .eyebrow, body.lit .hero h1, body.lit .hero .rule,
body.lit .hero .subtitle, body.lit .hero .dates, body.lit .hero .numerals,
body.lit .hero .threshold-ledger, body.lit .hero .scrollcue {
  opacity: 1;
  transform: translateY(0);
}

.exhibition-no {
  position: absolute;
  left: clamp(1.4rem, 7vw, 7rem);
  top: calc(var(--header-h) + 5.8rem);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(173, 138, 86, 0.78);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.55rem, 10.5vw, 8.5rem);
  letter-spacing: clamp(0.06em, 1.6vw, 0.14em);
  margin: 1.4rem 0 0 clamp(0.06em, 1.6vw, 0.14em); /* optically re-center tracked caps */
  color: var(--ivory);
  background: linear-gradient(180deg, #fff8ec 0%, #ece4d4 56%, #b99c68 112%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(240, 219, 178, 0.18);
  line-height: 1.05;
}

.rule {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  margin: 2rem auto 0;
}
.rule::after {
  content: "";
  display: block;
  width: 7px; height: 7px;
  margin: -4px auto 0;
  background: var(--brass);
  transform: rotate(45deg);
}

.hero .subtitle {
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--body-ink);
  margin-top: 1.9rem;
}

.hero .dates {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.1rem;
}

.hero .numerals {
  margin-top: 3.2rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  color: rgba(173, 138, 86, 0.5);
}

.threshold-ledger {
  position: absolute;
  right: clamp(1.5rem, 7vw, 7rem);
  bottom: clamp(5.7rem, 14vh, 9rem);
  width: min(260px, 25vw);
  border-left: 1px solid rgba(173, 138, 86, 0.36);
  padding: 0.8rem 0 0.8rem 1rem;
  text-align: left;
  background: linear-gradient(90deg, rgba(173, 138, 86, 0.055), transparent 72%);
}
.threshold-ledger p {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 157, 141, 0.75);
}
.threshold-ledger p + p { margin-top: 0.65rem; }
.threshold-ledger b {
  color: var(--brass-bright);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.scrollcue {
  margin-top: 3rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scrollcue .plumb {
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--brass), transparent);
  position: relative;
  overflow: hidden;
}
.scrollcue .plumb::after {
  content: "";
  position: absolute;
  left: 0; top: -30%;
  width: 1px; height: 30%;
  background: var(--brass-bright);
  animation: plumb 2.6s ease-in-out infinite;
}
@keyframes plumb {
  0% { top: -30%; } 70% { top: 105%; } 100% { top: 105%; }
}

/* ---------------- Wall text (curator's statement) ---------------- */

.walltext {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) 1.5rem;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
}
.section-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline), transparent);
}

.walltext p {
  font-size: clamp(1.16rem, 2vw, 1.32rem);
  line-height: 1.75;
  color: var(--body-ink);
}
.walltext p + p { margin-top: 1.5em; }

.walltext p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.82;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--brass-bright);
}

.signature {
  margin-top: 2.8rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.signature em {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
  color: var(--brass);
  margin-bottom: 0.3rem;
}

/* ---------------- Opening plates: generated local key art ---------------- */

.asset-feature {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  margin: clamp(1rem, 4vh, 3rem) 0;
  padding: clamp(5.5rem, 10vh, 8rem) clamp(1.25rem, 5vw, 5rem);
  overflow: clip;
  background:
    radial-gradient(ellipse 42% 44% at 70% 45%, rgba(217, 184, 119, 0.09), transparent 70%),
    radial-gradient(ellipse 28% 58% at 18% 50%, rgba(111, 131, 120, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(8, 7, 6, 0), rgba(8, 7, 6, 0.34) 20%, rgba(8, 7, 6, 0.42) 78%, rgba(8, 7, 6, 0));
}
.asset-feature::before,
.asset-feature::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.asset-feature::before {
  inset: 7vh clamp(1rem, 4vw, 4rem);
  border-top: 1px solid rgba(173, 138, 86, 0.2);
  border-bottom: 1px solid rgba(173, 138, 86, 0.13);
  background:
    linear-gradient(90deg, rgba(173, 138, 86, 0.12), transparent 1px, transparent calc(100% - 1px), rgba(173, 138, 86, 0.12)),
    linear-gradient(180deg, transparent 0 50%, rgba(236, 228, 212, 0.055) 50.1%, transparent 50.22%);
  opacity: 0.65;
  z-index: -1;
}
.asset-feature::after {
  content: "PLATES\A 01 / 02";
  white-space: pre;
  right: clamp(0.8rem, 3vw, 2.4rem);
  top: 13%;
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 11rem);
  line-height: 0.82;
  letter-spacing: 0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(173, 138, 86, 0.075);
  z-index: -1;
}
.asset-copy {
  max-width: 31rem;
  align-self: end;
  padding-bottom: clamp(2rem, 10vh, 7rem);
}
.asset-copy .section-kicker { margin-bottom: 1.55rem; }
.asset-copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.8vw, 4.45rem);
  line-height: 1.05;
  letter-spacing: 0.025em;
  color: var(--ivory);
  text-wrap: balance;
}
.asset-copy p:not(.section-kicker) {
  margin-top: 1.2rem;
  font-size: clamp(1.05rem, 1.65vw, 1.22rem);
  color: rgba(210, 201, 186, 0.88);
}
.asset-status {
  position: relative;
  margin-top: 1.8rem !important;
  padding: 0.82rem 0 0.82rem 1rem;
  border-left: 1px solid rgba(217, 184, 119, 0.48);
  font-family: var(--font-display);
  font-size: 0.68rem !important;
  line-height: 1.55;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright) !important;
  background: linear-gradient(90deg, rgba(173, 138, 86, 0.065), transparent 78%);
  font-variant-numeric: tabular-nums;
}
.asset-diptych {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.35rem);
}
.asset-card {
  --mx: 50%;
  --my: 42%;
  position: relative;
  display: block;
  width: 100%;
  min-height: 44px;
  aspect-ratio: 1 / 1.22;
  padding: 0;
  overflow: clip;
  color: var(--ivory);
  background: #090807;
  border: 1px solid rgba(173, 138, 86, 0.28);
  border-radius: 0;
  cursor: crosshair;
  box-shadow:
    0 42px 70px -46px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(236, 228, 212, 0.035) inset;
  transform: translateY(0);
  transition:
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.45s ease,
    box-shadow 0.75s ease;
}
.asset-card.key-card {
  aspect-ratio: 1 / 0.92;
  margin-top: clamp(3rem, 12vh, 7rem);
}
.asset-card::before,
.asset-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.55s ease;
}
.asset-card::before {
  opacity: 0.62;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(240, 219, 178, 0.34), rgba(240, 219, 178, 0.12) 13%, transparent 30%),
    linear-gradient(180deg, rgba(240, 219, 178, 0.1), transparent 34%, rgba(4, 3, 2, 0.42));
  mix-blend-mode: screen;
}
.asset-card::after {
  opacity: 0.74;
  background:
    radial-gradient(circle at var(--mx) var(--my), transparent 0 18%, rgba(5, 4, 3, 0.18) 29%, rgba(5, 4, 3, 0.78) 72%),
    linear-gradient(180deg, rgba(5, 4, 3, 0.06), rgba(5, 4, 3, 0.7) 82%);
}
.asset-card:hover,
.asset-card:focus-visible,
.asset-card.is-inspected {
  transform: translateY(-0.45rem);
  border-color: rgba(217, 184, 119, 0.62);
  box-shadow:
    0 52px 86px -48px rgba(0, 0, 0, 1),
    0 0 42px rgba(217, 184, 119, 0.08),
    0 0 0 1px rgba(236, 228, 212, 0.065) inset;
}
.asset-card:hover::before,
.asset-card:focus-visible::before,
.asset-card.is-inspected::before { opacity: 0.98; }
.asset-card:hover::after,
.asset-card:focus-visible::after,
.asset-card.is-inspected::after { opacity: 0.38; }
.asset-card:focus-visible {
  outline-offset: 6px;
}
.asset-image {
  position: absolute;
  inset: 0;
  display: block;
}
.asset-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(0.16) saturate(0.78) brightness(0.7) contrast(1.13);
  transform: scale(1.035);
  transition: filter 0.65s ease, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.key-card .asset-image img {
  object-position: 50% 34%;
  transform: scale(1.24) translateY(-7%);
}
.asset-card:hover img,
.asset-card:focus-visible img,
.asset-card.is-inspected img {
  filter: sepia(0.08) saturate(0.9) brightness(0.84) contrast(1.12);
}
.asset-card:hover .asset-image img,
.asset-card:focus-visible .asset-image img,
.asset-card.is-inspected .asset-image img {
  transform: scale(1.075);
}
.key-card:hover .asset-image img,
.key-card:focus-visible .asset-image img,
.key-card.is-inspected .asset-image img {
  transform: scale(1.28) translateY(-7%);
}
.asset-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  gap: 0.32rem;
  padding: 5.2rem clamp(1rem, 2vw, 1.4rem) 1.05rem;
  text-align: left;
  background: linear-gradient(transparent, rgba(5, 4, 3, 0.9) 72%);
}
.asset-label b,
.asset-label span {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}
.asset-label b {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--brass-bright);
  font-variant-numeric: tabular-nums;
}
.asset-label span {
  font-size: clamp(0.9rem, 1.45vw, 1.08rem);
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: var(--ivory);
}

/* ---------------- The Hall ---------------- */

.hall {
  position: relative;
  isolation: isolate;
}
.hall::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--gallery-light-x, 50%) 24%, rgba(240, 219, 178, 0.09), transparent 25%),
    radial-gradient(ellipse 26% 52% at var(--gallery-light-x, 50%) 42%, rgba(173, 138, 86, 0.05), transparent 66%),
    linear-gradient(90deg, rgba(111, 131, 120, 0.045), transparent 28%, transparent 72%, rgba(173, 138, 86, 0.035));
  transition: opacity 1.2s ease, background-position 1.2s ease;
}
body.in-hall .hall::before { opacity: 1; }

.room {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(5rem, 9vh, 7rem) clamp(1.25rem, 4vw, 3rem);
  isolation: isolate;
}
.room:nth-of-type(even) .scene  { order: 2; }
.room:nth-of-type(even) .label  { order: 1; }

.room::after {
  content: "CASE LIGHT " attr(data-year);
  position: absolute;
  top: 19%;
  font-family: var(--font-display);
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(173, 138, 86, 0.62);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
  pointer-events: none;
}
.room:nth-of-type(odd)::after { left: clamp(1.2rem, 3vw, 3rem); }
.room:nth-of-type(even)::after { right: clamp(1.2rem, 3vw, 3rem); }
.room.active::after { opacity: 1; transform: translateY(0); }

/* huge ghost numeral on the wall */
.room .ghost-numeral {
  position: absolute;
  top: 12%;
  font-family: var(--font-display);
  font-size: clamp(9rem, 22vw, 19rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(173, 138, 86, 0.1);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: opacity 1.4s ease;
  opacity: 0.4;
}
.room:nth-of-type(odd)  .ghost-numeral { right: clamp(0.5rem, 3vw, 3rem); }
.room:nth-of-type(even) .ghost-numeral { left: clamp(0.5rem, 3vw, 3rem); }
.room.active .ghost-numeral { opacity: 1; }

/* ----- the scene: cone, object, pedestal, pool ----- */

.scene {
  position: relative;
  height: clamp(480px, 72vh, 640px);
  z-index: 1;
  transform-style: preserve-3d;
}

.scene::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 104px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(217, 184, 119, 0.34), transparent 58%),
    linear-gradient(180deg, #1d1a15, #0b0a08);
  border-top: 1px solid rgba(217, 184, 119, 0.2);
  box-shadow: 0 10px 32px rgba(240, 219, 178, 0.07);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.room.active .scene::before { opacity: 1; }

.scene::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: min(520px, 102%);
  height: 72%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 2%, rgba(236, 228, 212, 0.13) 2.35%, transparent 2.7%, transparent 97.2%, rgba(236, 228, 212, 0.1) 97.55%, transparent 97.9%),
    linear-gradient(180deg, transparent 0 15%, rgba(236, 228, 212, 0.07) 15.2% 15.45%, transparent 15.7% 78%, rgba(173, 138, 86, 0.08) 78.2% 78.45%, transparent 78.7%),
    radial-gradient(ellipse 36% 62% at 38% 42%, rgba(205, 220, 224, 0.06), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 88%, transparent);
  transition: opacity 1.4s ease 0.25s;
}
.room.active .scene::after { opacity: 0.82; }

.cone {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  width: min(400px, 88%);
  height: 118%;
  clip-path: polygon(41% 0, 59% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, rgba(242, 221, 171, 0.2), rgba(242, 221, 171, 0.06) 55%, rgba(242, 221, 171, 0.015) 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%, #000 74%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 26%, #000 74%, transparent);
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}
.room.active .cone { opacity: 1; }
.room.active .cone { animation: lampWake 1.8s cubic-bezier(0.2, 0.8, 0.2, 1); }

@keyframes lampWake {
  0% { opacity: 0; filter: brightness(0.4); }
  8% { opacity: 0.92; filter: brightness(1.4); }
  14% { opacity: 0.18; }
  28% { opacity: 1; filter: brightness(1.05); }
  100% { opacity: 1; filter: brightness(1); }
}

/* floor pool of light */
.pool {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(460px, 96%);
  height: 130px;
  background: radial-gradient(ellipse 50% 46% at 50% 50%, rgba(240, 219, 178, 0.13), rgba(240, 219, 178, 0.035) 55%, transparent 75%);
  opacity: 0;
  transition: opacity 1.6s ease 0.15s;
  pointer-events: none;
}
.room.active .pool { opacity: 1; }

.pedestal {
  position: absolute;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  width: 168px;
  height: 132px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025), transparent 18%, transparent 82%, rgba(0,0,0,0.28)),
    linear-gradient(180deg, #28241f 0%, #1a1815 34%, #11100f 100%);
  border-top: 1px solid rgba(240, 219, 178, 0.22);
  box-shadow:
    inset 0 14px 24px -14px rgba(240, 219, 178, 0.12),
    0 24px 40px -18px rgba(0, 0, 0, 0.85);
  transition: filter 1.4s ease;
  filter: brightness(0.45);
}
.pedestal::before { /* cap slab */
  content: "";
  position: absolute;
  top: -10px; left: -9px; right: -9px;
  height: 10px;
  background: linear-gradient(180deg, #2e2a24, #1c1a16);
  border-top: 1px solid rgba(240, 219, 178, 0.3);
}
.pedestal::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 22px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(240, 219, 178, 0.09), transparent 68%);
  opacity: 0;
  transition: opacity 1.2s ease 0.35s;
}
.room.active .pedestal { filter: brightness(1); }
.room.active .pedestal::after { opacity: 1; }

.plaque {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: #0e0d0b;
  background: linear-gradient(160deg, #c8a468, #8a6b40);
  padding: 0.3rem 0.65rem;
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(240, 219, 178, 0.35) inset, 0 2px 5px rgba(0,0,0,0.6);
  white-space: nowrap;
}

/* soft cast shadow of the object on the pedestal cap */
.obj-shadow {
  position: absolute;
  left: 50%;
  bottom: 172px;
  transform: translateX(-50%);
  width: 190px;
  height: 34px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 0, 0, 0.72), transparent 70%);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.room.active .obj-shadow { opacity: 1; }

/* ----- the dimensional object ----- */

.objwrap {
  position: absolute;
  left: 50%;
  bottom: 152px;
  transform: translateX(-50%);
  width: 300px;
  height: 345px;
  perspective: 1100px;
  opacity: 0.12;
  filter: drop-shadow(34px 20px 14px rgba(0, 0, 0, 0.35));
  transition: opacity 1.5s ease, filter 1.2s ease;
}
.room.active .objwrap {
  opacity: 1;
  filter:
    drop-shadow(36px 22px 17px rgba(0, 0, 0, 0.72))
    drop-shadow(-10px -8px 28px rgba(240, 219, 178, 0.08));
  animation: objectGranted 1.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes objectGranted {
  0% { opacity: 0.1; filter: drop-shadow(20px 12px 8px rgba(0, 0, 0, 0.4)); }
  35% { opacity: 1; }
  100% { opacity: 1; }
}

.tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(9deg);
  transition: transform 0.7s ease-out;
}

.spinner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: sway var(--spin, 26s) ease-in-out infinite alternate;
  animation-play-state: paused;
}
.room.active .spinner { animation-play-state: running; }
body.paused .spinner { animation-play-state: paused !important; }

/* a slow turntable sway — planes never go edge-on, parallax always reads */
@keyframes sway {
  from { transform: rotateY(-30deg); }
  to   { transform: rotateY(30deg); }
}

.plane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 270px;
  height: 315px;
  backface-visibility: visible;
}
.plane svg { width: 100%; height: 100%; display: block; }
.room.active .plane svg {
  filter: saturate(1.08) contrast(1.04);
}

/* the Carasek Light signature: four seconds on, eight seconds off */
.plane.beam { opacity: 0; animation: lighthouse 12s linear infinite; animation-play-state: paused; }
.room.active .plane.beam { animation-play-state: running; }
body.paused .plane.beam { animation-play-state: paused !important; }
@keyframes lighthouse {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  33%  { opacity: 1; }
  39%  { opacity: 0; }
  100% { opacity: 0; }
}

/* dust motes drifting in the beam */
.motes { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); width: 200px; height: 300px; pointer-events: none; }
.motes span {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(240, 219, 178, 0.75);
  opacity: 0;
  animation: mote 9s linear infinite;
  animation-play-state: paused;
}
.room.active .motes span { animation-play-state: running; }
body.paused .motes span { animation-play-state: paused !important; }
.motes span:nth-child(1) { left: 12%; bottom: 4%;  animation-duration: 8s; }
.motes span:nth-child(2) { left: 30%; bottom: 16%; animation-duration: 11s; animation-delay: 1.2s; }
.motes span:nth-child(3) { left: 48%; bottom: 2%;  animation-duration: 9s;  animation-delay: 2.8s; }
.motes span:nth-child(4) { left: 62%; bottom: 22%; animation-duration: 12s; animation-delay: 0.6s; }
.motes span:nth-child(5) { left: 76%; bottom: 8%;  animation-duration: 10s; animation-delay: 3.4s; }
.motes span:nth-child(6) { left: 88%; bottom: 30%; animation-duration: 13s; animation-delay: 1.9s; }
.motes span:nth-child(7) { left: 22%; bottom: 40%; animation-duration: 11s; animation-delay: 4.6s; }
.motes span:nth-child(8) { left: 55%; bottom: 46%; animation-duration: 9.5s; animation-delay: 5.3s; }
.motes span:nth-child(9) { left: 70%; bottom: 55%; animation-duration: 12.5s; animation-delay: 2.2s; }

@keyframes mote {
  0%   { transform: translate(0, 0); opacity: 0; }
  12%  { opacity: 0.7; }
  55%  { opacity: 0.25; }
  80%  { opacity: 0.55; }
  100% { transform: translate(14px, -130px); opacity: 0; }
}

/* ----- the wall label ----- */

.label {
  position: relative;
  z-index: 1;
  max-width: 500px;
  border-left: 1px solid var(--hairline);
  padding-left: clamp(1.4rem, 3vw, 2.2rem);
}
.label::before {
  content: "";
  position: absolute;
  inset: -1.2rem -1.6rem -1.2rem -1px;
  z-index: -1;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(240, 219, 178, 0.018), transparent 68%),
    radial-gradient(ellipse 64% 58% at 0 18%, rgba(173, 138, 86, 0.035), transparent 70%);
  transition: opacity 1.2s ease 0.25s;
}
.room:nth-of-type(even) .label::before {
  inset: -1.2rem -1px -1.2rem -1.6rem;
  background:
    linear-gradient(270deg, rgba(240, 219, 178, 0.018), transparent 68%),
    radial-gradient(ellipse 64% 58% at 100% 18%, rgba(173, 138, 86, 0.035), transparent 70%);
}
.room.active .label::before { opacity: 0.85; }
.room:nth-of-type(even) .label {
  border-left: 0;
  border-right: 1px solid var(--hairline);
  padding-left: 0;
  padding-right: clamp(1.4rem, 3vw, 2.2rem);
  text-align: right;
  margin-left: auto;
}

.label > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.room.active .label > * { opacity: 1; transform: translateY(0); }
.room.active .label > *:nth-child(1) { transition-delay: 0.25s; }
.room.active .label > *:nth-child(2) { transition-delay: 0.4s; }
.room.active .label > *:nth-child(3) { transition-delay: 0.55s; }
.room.active .label > *:nth-child(4) { transition-delay: 0.7s; }
.room.active .label > *:nth-child(5) { transition-delay: 0.85s; }
.room.active .label > *:nth-child(6) { transition-delay: 1s; }
.room.active .label > *:nth-child(7) { transition-delay: 1.1s; }

.acc {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
}
.room:nth-of-type(even) .acc { justify-content: flex-end; }
.acc .numeral {
  font-size: 1.6rem;
  color: var(--brass-bright);
  letter-spacing: 0.1em;
}
.acc .accno {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.label h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.86rem, 3.65vw, 2.9rem);
  line-height: 1.14;
  color: var(--ivory);
  margin-top: 0.9rem;
  text-wrap: balance;
}

.dateline {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.8rem;
}

.prov {
  font-style: italic;
  color: var(--muted);
  font-size: 1.02rem;
  margin-top: 1.15rem;
}

.desc {
  margin-top: 1.15rem;
  font-size: clamp(1.08rem, 1.45vw, 1.16rem);
  color: rgba(210, 201, 186, 0.94);
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(173, 138, 86, 0.14);
}
.specs dt {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.35rem;
}
.specs dd { font-size: 0.98rem; color: rgba(210, 201, 186, 0.72); }

.lender {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(168, 157, 141, 0.85);
}

/* ---------------- Timeline rail ---------------- */

.rail {
  position: fixed;
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
body.in-hall .rail { opacity: 1; pointer-events: auto; }

/* desktop: vertical, right edge */
@media (min-width: 1025px) {
  .rail {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    height: 62vh;
    width: 60px;
  }
  .rail::before {
    content: "Chronology";
    position: absolute;
    right: 32px;
    top: -2.7rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(173, 138, 86, 0.75);
    white-space: nowrap;
  }
  .rail::after {
    content: attr(data-current);
    position: absolute;
    right: 34px;
    bottom: -3.2rem;
    width: 190px;
    font-family: var(--font-display);
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    line-height: 1.45;
    text-align: right;
    text-transform: uppercase;
    color: rgba(236, 228, 212, 0.78);
  }
  .rail-line {
    position: absolute;
    right: 20px; top: 0; bottom: 0;
    width: 1px;
    background:
      linear-gradient(transparent, var(--hairline) 12%, var(--hairline) 88%, transparent),
      linear-gradient(180deg, transparent, rgba(240, 219, 178, 0.35), transparent);
    box-shadow: 0 0 22px rgba(173, 138, 86, 0.08);
  }
  .rail .tick {
    position: absolute;
    right: 16px;
    top: calc(var(--p) * 100%);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row-reverse;
  }
  .rail .tick i { display: block; width: 9px; height: 1px; background: var(--brass-dim); }
  .rail .tick em {
    font-style: normal;
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--muted);
  }
  .rail .marker {
    position: absolute;
    right: 8px;
    top: calc(var(--p) * 100%);
    transform: translateY(-50%);
    width: 25px; height: 25px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
  }
  .rail .marker b {
    width: 6px; height: 6px;
    background: var(--brass-dim);
    transform: rotate(45deg);
    transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.3s ease;
  }
  .rail .marker:hover b, .rail .marker:focus-visible b { transform: rotate(45deg) scale(1.5); background: var(--brass-bright); }
  .rail .marker.on b {
    background: var(--brass-bright);
    box-shadow:
      0 0 10px rgba(217, 184, 119, 0.8),
      0 0 0 8px rgba(217, 184, 119, 0.08);
  }
  .rail .marker::after {
    content: attr(data-name);
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--ivory);
    background: rgba(13, 12, 11, 0.92);
    border: 1px solid var(--hairline);
    padding: 0.32rem 0.7rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .rail .marker:hover::after, .rail .marker:focus-visible::after { opacity: 1; }
  .rail .slider {
    position: absolute;
    right: 14.5px;
    top: calc(var(--p, 0) * 100%);
    transition: top 1s cubic-bezier(0.3, 0.9, 0.3, 1);
    pointer-events: none;
  }
  .rail .slider .dot {
    display: block;
    width: 12px; height: 12px;
    transform: translate(0.5px, -50%) rotate(45deg);
    background: linear-gradient(135deg, var(--brass-bright), var(--brass-dim));
    box-shadow:
      0 0 14px rgba(217, 184, 119, 0.65),
      0 0 0 7px rgba(217, 184, 119, 0.08);
  }
  .rail .slider .chip {
    position: absolute;
    right: 26px;
    top: 0;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    color: var(--brass-bright);
    white-space: nowrap;
  }
}

/* tablet & phone: horizontal, bottom edge */
@media (max-width: 1024px) {
  .rail {
    left: 0; right: 0; bottom: 0;
    height: calc(44px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(8, 7, 6, 0.82) 52%);
  }
  .rail-line {
    position: absolute;
    left: 8%; right: 8%; bottom: calc(16px + env(safe-area-inset-bottom));
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hairline) 10%, var(--hairline) 90%, transparent);
  }
  .rail .tick {
    position: absolute;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: calc(8% + var(--p) * 84%);
    transform: translateX(-50%);
  }
  .rail .tick i { display: block; width: 1px; height: 8px; background: var(--brass-dim); margin: 0 auto; }
  .rail .tick em { display: none; }
  .rail .tick.major em {
    display: block;
    font-style: normal;
    font-family: var(--font-display);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-top: 3px;
    transform: translateX(calc(-50% + 0.5px));
    position: absolute;
    left: 50%;
  }
  .rail .marker { display: none; }
  .rail .slider {
    position: absolute;
    bottom: calc(13.5px + env(safe-area-inset-bottom));
    left: calc(8% + var(--p, 0) * 84%);
    transition: left 1s cubic-bezier(0.3, 0.9, 0.3, 1);
    pointer-events: none;
  }
  .rail .slider .dot {
    display: block;
    width: 9px; height: 9px;
    transform: translate(-50%, 3px) rotate(45deg);
    background: linear-gradient(135deg, var(--brass-bright), var(--brass-dim));
    box-shadow: 0 0 10px rgba(217, 184, 119, 0.7);
  }
  .rail .slider .chip {
    position: absolute;
    bottom: 13px;
    left: 0;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--brass-bright);
    white-space: nowrap;
  }
}

/* tablet keeps the full year context without covering labels */
@media (min-width: 768px) and (max-width: 1024px) {
  .rail {
    left: auto;
    right: 18px;
    top: 50%;
    bottom: auto;
    width: 56px;
    height: min(58vh, 560px);
    transform: translateY(-50%);
    background: none;
  }
  .rail::before,
  .rail::after { display: none; }
  .rail-line {
    left: auto;
    right: 18px;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    background: linear-gradient(transparent, var(--hairline) 12%, var(--hairline) 88%, transparent);
  }
  .rail .tick {
    right: 14px;
    left: auto;
    top: calc(var(--p) * 100%);
    bottom: auto;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-direction: row-reverse;
  }
  .rail .tick i {
    width: 8px;
    height: 1px;
    margin: 0;
    background: var(--brass-dim);
  }
  .rail .tick em,
  .rail .tick.major em {
    display: block;
    position: static;
    transform: none;
    margin: 0;
    font-style: normal;
    font-family: var(--font-display);
    font-size: 0.58rem;
    letter-spacing: 0.11em;
    color: var(--muted);
  }
  .rail .marker {
    position: absolute;
    right: 6px;
    top: calc(var(--p) * 100%);
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
  }
  .rail .marker b {
    width: 6px;
    height: 6px;
    background: var(--brass-dim);
    transform: rotate(45deg);
    transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.3s ease;
  }
  .rail .marker:hover b,
  .rail .marker:focus-visible b {
    transform: rotate(45deg) scale(1.5);
    background: var(--brass-bright);
  }
  .rail .marker.on b {
    background: var(--brass-bright);
    box-shadow: 0 0 10px rgba(217, 184, 119, 0.8);
  }
  .rail .slider {
    position: absolute;
    right: 12px;
    left: auto;
    top: calc(var(--p, 0) * 100%);
    bottom: auto;
    transition: top 1s cubic-bezier(0.3, 0.9, 0.3, 1);
    pointer-events: none;
  }
  .rail .slider .dot {
    width: 10px;
    height: 10px;
    transform: translate(0, -50%) rotate(45deg);
  }
  .rail .slider .chip {
    display: block;
    position: absolute;
    right: 24px;
    left: auto;
    top: 0;
    bottom: auto;
    transform: translateY(-50%);
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }
}

/* ---------------- Checklist ---------------- */

.checklist {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.25rem, 4vw, 3rem);
}
.checklist::before {
  content: "REGISTER 44";
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  top: clamp(5rem, 12vh, 9rem);
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 11vw, 9rem);
  line-height: 0.8;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(173, 138, 86, 0.06);
  pointer-events: none;
}

.checklist-intro {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: -0.6rem 0 2rem;
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  color: rgba(210, 201, 186, 0.82);
}

.checklist-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(173, 138, 86, 0.14);
  background:
    linear-gradient(90deg, rgba(173, 138, 86, 0.035), transparent 16%, transparent 84%, rgba(111, 131, 120, 0.035)),
    rgba(0, 0, 0, 0.08);
}

.check-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 0.75rem;
  border-bottom: 1px solid rgba(173, 138, 86, 0.14);
  color: var(--body-ink);
  transition: background 0.4s ease, transform 0.4s ease;
  min-height: 44px;
}
.checklist-grid .check-item:nth-child(odd) { border-right: 1px solid rgba(173, 138, 86, 0.14); }
.check-item:hover {
  background: linear-gradient(90deg, rgba(173, 138, 86, 0.11), rgba(173, 138, 86, 0.025));
  color: var(--body-ink);
  transform: translateX(4px);
}
.check-item:hover .ci-title { color: var(--brass-bright); }

.ci-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brass);
}
.ci-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ivory);
  transition: color 0.4s ease;
}
.ci-meta {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ---------------- Colophon / exit vestibule ---------------- */

.colophon {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) 1.5rem clamp(6rem, 14vh, 10rem);
  text-align: center;
}
.colophon .section-kicker { justify-content: center; }
.colophon .section-kicker::after { display: none; }
.colophon .section-kicker::before,
.colophon .section-kicker + .rule { display: none; }

.credits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem 3rem;
  margin-top: 3rem;
  text-align: center;
}
.credits dt {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.credits dd { font-size: 1.05rem; color: var(--body-ink); line-height: 1.55; }
.credits dd em { color: var(--muted); }

.exit-note {
  margin: 4rem auto 0;
  max-width: 38rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  line-height: 1.8;
  text-transform: uppercase;
  color: rgba(173, 138, 86, 0.74);
}

.closing-line {
  margin-top: 2.4rem;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  color: var(--brass-bright);
}
.closing-line::before {
  content: "";
  display: block;
  width: 7px; height: 7px;
  background: var(--brass);
  transform: rotate(45deg);
  margin: 0 auto 2.2rem;
}

/* ---------------- Footer ---------------- */

footer {
  border-top: 1px solid rgba(173, 138, 86, 0.18);
  background: var(--wall-deep);
  padding: 2.4rem clamp(1.25rem, 4vw, 3rem) 2.8rem;
  position: relative;
  z-index: 41; /* above vignette/grain so text stays crisp */
}
footer .foot-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
}
footer p, footer nav a {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}
footer nav a {
  color: var(--brass);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
footer nav a:hover { color: var(--brass-bright); }

/* ---------------- Guide page ---------------- */

.guide-main {
  position: relative;
  max-width: 60rem;
  margin: 0 auto;
  padding: 9rem clamp(1.5rem, 7vw, 7rem) 5rem;
  overflow: clip;
}
.guide-main::before {
  content: "";
  position: absolute;
  left: clamp(0.8rem, 4vw, 4.5rem);
  top: 7.7rem;
  width: 1px;
  height: calc(100% - 12rem);
  background: linear-gradient(var(--brass), rgba(173, 138, 86, 0.16) 14rem, rgba(173, 138, 86, 0.06), transparent);
  opacity: 0.75;
}
.guide-main::after {
  content: "FIELD\A NOTES";
  white-space: pre;
  position: absolute;
  right: 1.3rem;
  top: 10rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.88;
  color: transparent;
  -webkit-text-stroke: 1px rgba(173, 138, 86, 0.08);
  pointer-events: none;
}
.guide-main > * {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}
.guide-main h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.06em;
  color: var(--ivory);
  line-height: 1.12;
  text-wrap: balance;
}
.guide-main .lede {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
  margin-top: 1rem;
}
.guide-plate {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin: 2.2rem 0 2.8rem;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border-top: 1px solid rgba(173, 138, 86, 0.28);
  border-bottom: 1px solid rgba(173, 138, 86, 0.18);
  background:
    linear-gradient(90deg, rgba(173, 138, 86, 0.07), transparent 42%),
    radial-gradient(ellipse 48% 80% at 24% 48%, rgba(240, 219, 178, 0.08), transparent 70%);
}
.mini-stage {
  position: relative;
  min-height: 230px;
  overflow: clip;
}
.mini-cone {
  position: absolute;
  left: 50%;
  top: 0;
  width: 210px;
  height: 210px;
  transform: translateX(-50%);
  clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(240, 219, 178, 0.2), rgba(240, 219, 178, 0.035), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
}
.mini-object {
  position: absolute;
  left: 50%;
  top: 72px;
  width: 96px;
  height: 96px;
  transform: translateX(-50%) rotateY(-18deg);
  transform-style: preserve-3d;
}
.mini-object i,
.mini-object b,
.mini-object em {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform-style: preserve-3d;
}
.mini-object i {
  transform: translateZ(-18px) scale(0.95);
  background: radial-gradient(circle, rgba(8, 7, 6, 0.85), rgba(8, 7, 6, 0.3) 58%, transparent 60%);
}
.mini-object b {
  transform: translateZ(0);
  border: 10px solid #ad8a56;
  background: radial-gradient(circle at 38% 38%, #242630, #070708 62%);
  box-shadow: 20px 16px 10px rgba(0, 0, 0, 0.48);
}
.mini-object em {
  transform: translateZ(24px) scale(0.72);
  border: 1px solid rgba(236, 228, 212, 0.32);
  background:
    radial-gradient(circle at 70% 32%, rgba(236, 228, 212, 0.28) 0 3%, transparent 4%),
    linear-gradient(110deg, rgba(236, 228, 212, 0.22), transparent 38%);
}
.mini-plinth {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 116px;
  height: 62px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #29241d, #141210);
  border-top: 1px solid rgba(240, 219, 178, 0.34);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.58);
}
.mini-plinth::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -8px;
  height: 8px;
  background: linear-gradient(180deg, #3a3228, #1b1814);
}
.mini-rail {
  position: absolute;
  right: 14px;
  top: 28px;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(transparent, rgba(173, 138, 86, 0.55), transparent);
}
.mini-rail i,
.mini-rail b {
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--brass);
}
.mini-rail i { top: 20%; opacity: 0.45; }
.mini-rail b {
  top: 58%;
  background: var(--brass-bright);
  box-shadow: 0 0 14px rgba(217, 184, 119, 0.7);
}
.guide-plate ul {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.guide-plate li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: baseline;
  color: rgba(210, 201, 186, 0.84);
}
.guide-plate li b {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  color: #0e0d0b;
  background: linear-gradient(160deg, #d9b877, #8a6b40);
}
.guide-main h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--brass-bright);
  margin: 3rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.guide-main h2::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  transform: rotate(45deg);
  background: var(--brass);
  box-shadow: 0 0 16px rgba(217, 184, 119, 0.38);
}
.guide-main p { margin-top: 1em; }
.guide-main code {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--brass-bright);
}
.token-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2rem;
  font-size: 1rem;
}
.token-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(173, 138, 86, 0.14);
}
.token-table td:first-child {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--brass);
  white-space: nowrap;
}
.swatch {
  display: inline-block;
  width: 13px; height: 13px;
  border-radius: 2px;
  border: 1px solid rgba(236, 228, 212, 0.25);
  vertical-align: -2px;
  margin-right: 0.5rem;
}
.repro {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--brass);
  padding: 1.4rem 1.6rem;
  margin-top: 1.4rem;
  font-style: italic;
  color: var(--body-ink);
  background: rgba(173, 138, 86, 0.05);
}

/* ---------------- Section reveals & anchor offsets ---------------- */

.room, section[id] { scroll-margin-top: 72px; }

.fade-section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.fade-section.seen { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .now-lit { display: none; }
  .asset-feature {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: clamp(4.5rem, 9vh, 6.5rem);
  }
  .asset-copy {
    max-width: 44rem;
    align-self: auto;
    padding-bottom: 0;
  }
  .asset-diptych {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }
  .room {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 8.5rem;
  }
  .room:nth-of-type(even) .scene { order: 1; }
  .room:nth-of-type(even) .label { order: 2; }
  .room:nth-of-type(even) .label {
    border-right: 0;
    border-left: 1px solid var(--hairline);
    padding-right: 0;
    padding-left: clamp(1.4rem, 3vw, 2.2rem);
    text-align: left;
    margin-left: 0;
  }
  .room:nth-of-type(even) .acc { justify-content: flex-start; }
  .label { max-width: 560px; margin: 0 auto; width: 100%; }
  .scene { height: clamp(430px, 56vh, 540px); }
  .room .ghost-numeral { top: 4%; font-size: clamp(8rem, 26vw, 14rem); }
  .room::after { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
  body { font-size: 1.06rem; }
  .topbar { gap: 0.7rem; }
  .topbar .hide-phone { display: none; }
  .topbar nav { gap: 0.15rem; }
  .topbar nav a { letter-spacing: 0.14em; padding-inline: 0.45rem; }
  .wordmark { letter-spacing: 0.19em; font-size: 0.88rem; gap: 0.5rem; }
  .hero { min-height: 92svh; padding: 5.4rem 1.2rem 3.5rem; }
  .hero::before { inset: var(--header-h) 0.9rem 8vh; }
  .lamp-iris {
    top: calc(var(--header-h) + 1.1rem);
    width: 86vw;
    height: 24px;
  }
  .exhibition-no,
  .threshold-ledger { display: none; }
  .hero h1 { letter-spacing: 0.08em; margin-left: 0.08em; }
  .hero .numerals { letter-spacing: 0.31em; }
  .asset-feature {
    display: block;
    margin: 0;
    padding: 4.5rem 1.15rem 5rem;
  }
  .asset-feature::before { inset: 2.6rem 0.8rem; }
  .asset-feature::after {
    right: -0.8rem;
    top: 7%;
    font-size: 4.7rem;
  }
  .asset-copy h2 {
    font-size: clamp(1.9rem, 9.5vw, 2.45rem);
    line-height: 1.08;
  }
  .asset-status {
    padding-left: 0.85rem;
    letter-spacing: 0.14em;
  }
  .asset-diptych {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }
  .asset-card,
  .asset-card.key-card {
    aspect-ratio: 1 / 0.95;
    margin-top: 0;
  }
  .asset-card:hover,
  .asset-card:focus-visible,
  .asset-card.is-inspected {
    transform: translateY(-0.2rem);
  }
  .key-card .asset-image img {
    object-position: 50% 32%;
    transform: scale(1.18) translateY(-8%);
  }
  .key-card:hover .asset-image img,
  .key-card:focus-visible .asset-image img,
  .key-card.is-inspected .asset-image img {
    transform: scale(1.21) translateY(-8%);
  }
  .scene {
    position: sticky;
    top: var(--header-h);
    height: 352px;
    margin-inline: -0.5rem;
  }
  .scene::before { top: 4px; transform: translateX(-50%) scale(0.84); }
  .objwrap {
    bottom: 112px;
    transform: translateX(-50%) scale(0.68);
    transform-origin: bottom center;
  }
  .pedestal { width: 126px; height: 98px; bottom: 36px; }
  .plaque { font-size: 0.58rem; padding: 0.25rem 0.52rem; }
  .pool { bottom: 8px; height: 104px; }
  .obj-shadow { bottom: 120px; width: 146px; }
  .motes { bottom: 100px; }
  .label { margin-top: 20.5rem; padding-bottom: 2rem; }
  .label::before { inset: -0.8rem -0.8rem -0.8rem -1px; }
  .checklist-grid { grid-template-columns: 1fr; }
  .checklist-grid .check-item:nth-child(odd) { border-right: 0; }
  .check-item { grid-template-columns: 2.35rem minmax(0, 1fr); }
  .ci-meta { grid-column: 2; text-align: left; }
  .credits { grid-template-columns: 1fr; gap: 1.9rem; }
  footer .foot-inner { flex-direction: column; align-items: flex-start; }
  footer nav { flex-direction: column; gap: 0.1rem; }
  footer p, footer nav a { font-size: 0.67rem; letter-spacing: 0.14em; }
  .guide-main {
    padding: 7.8rem 1.45rem 4rem;
  }
  .guide-main::before {
    left: 1rem;
    top: 7.1rem;
  }
  .guide-main::after {
    right: -1.8rem;
    top: 8.4rem;
    font-size: 5.2rem;
  }
  .guide-plate {
    grid-template-columns: 1fr;
    margin-top: 1.6rem;
  }
  .mini-stage { min-height: 190px; }
  .mini-cone { height: 184px; }
  .mini-object {
    top: 58px;
    width: 82px;
    height: 82px;
  }
  .mini-plinth {
    width: 100px;
    height: 52px;
  }
  .token-table td {
    padding-inline: 0.55rem;
    vertical-align: top;
  }
  .token-table td:first-child {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .rail {
    height: calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(8, 7, 6, 0.66) 70%);
  }
  .rail-line { bottom: calc(3px + env(safe-area-inset-bottom)); }
  .rail .tick { bottom: calc(-1px + env(safe-area-inset-bottom)); }
  .rail .tick.major em,
  .rail .slider .chip { display: none; }
  .rail .slider { bottom: calc(0.5px + env(safe-area-inset-bottom)); }
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation: none; transform: rotateY(26deg); }
  .motes { display: none; }
  .scrollcue .plumb::after { animation: none; }
  body.lit .hero .entrance-light { animation: none; opacity: 1; }
  .plane.beam { animation: none; opacity: 0.55; }
  .room.active .cone,
  .room.active .objwrap,
  body.lit .lamp-iris { animation: none !important; }
  .asset-card,
  .asset-image img,
  .asset-card::before,
  .asset-card::after {
    transition: none !important;
  }
  .tilt { transition: none; }
  .fade-section { transition: none; opacity: 1; transform: none; }
  .hero > *, .label > *, .cone, .pool, .objwrap, .pedestal, .obj-shadow, .ghost-numeral, .rail, .rail .slider {
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }
  .lamp-iris { animation: none !important; opacity: 1; }
}
