/* HistoryShowcase marketing pages: a museum of school history. A dark forest entrance hall opens
   through an engraved arch into lit limestone rooms, each signed with a Roman gallery number.
   Text pairings meet WCAG 2.2 AA (4.5:1) on their surfaces. Lit rooms: ink 13.9, ink-soft 7.8,
   ink-muted 5.3 and accent 6.4 on limestone (4.7+ on its deeper tint). Dark rooms: ivory 15.8,
   ivory-soft 9.4, ivory-muted 5.8 and brass 8.8 on the entrance; forest on brass 6.3+. After hours:
   ink 14.0, ink-soft 9.3, ink-muted 7.0 and accent 9.8 on the dimmed walls. */
@font-face { font-family: "Fraunces"; src: url("/assets/fraunces-semibold-969f7a6554ac.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/inter-latin-3100e775e861.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Lit rooms */
  --limestone: #efe8da;
  --limestone-deep: #e6dcc8;
  --plaster: #f7f2e8;
  --ink: #1f1c17;
  --ink-soft: #4b453b;
  --ink-muted: #665d4f;
  --accent: #6f4b12;
  --rule: #d3c6ad;
  --focus-ring: #0b57b0;
  --btn-bg: #13231e;
  --btn-ink: #f4ede0;
  --btn-fill: linear-gradient(180deg, #1a2e28, #101e1a);
  --lamp: rgb(255 248 232 / 0.55);
  /* Dark rooms */
  --forest: #0d1613;
  --forest-raised: #0f1b17;
  --forest-floor: #0a110f;
  --ivory: #f4ede0;
  --ivory-soft: #c3b8a2;
  --ivory-muted: #9a8f7b;
  --brass: #d4ae66;
  --brass-bright: #f0d79a;
  --gilt: linear-gradient(180deg, #ecd394 0%, #d4ae66 48%, #b8914a 100%);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --wrap: 74rem;
  --radius: 2px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The dark rooms re-sign the same tokens, so every component reads correctly in either light. */
.site-header, .hero, .section-directory, .closing, .site-footer {
  --ink: var(--ivory);
  --ink-soft: var(--ivory-soft);
  --ink-muted: var(--ivory-muted);
  --accent: var(--brass);
  --rule: rgb(212 174 102 / 0.22);
  --focus-ring: #f2c66d;
  --btn-bg: #d4ae66;
  --btn-ink: #0d1613;
  --btn-fill: var(--gilt);
  --lamp: rgb(240 205 140 / 0.16);
  color: var(--ink);
}

/* After hours: the lit rooms dim to lamplight. Set by motion.js; nothing is remembered. */
:root[data-after-hours] {
  --limestone: #16130e;
  --limestone-deep: #1d1913;
  --plaster: #221c15;
  --ink: #f2e9d8;
  --ink-soft: #c9bca3;
  --ink-muted: #b3a68e;
  --accent: #e0bd78;
  --rule: rgb(224 189 120 / 0.2);
  --focus-ring: #f2c66d;
  --btn-bg: #e0bd78;
  --btn-ink: #16130e;
  --btn-fill: var(--gilt);
  --lamp: rgb(255 200 120 / 0.13);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--forest-floor); }
/* `anywhere` changes nothing while text fits. It only lets a word longer than its column break
   instead of widening the column, so 320 px screens, enlarged text and custom spacing never clip copy. */
body { margin: 0; background: var(--forest-floor); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; font-synthesis: none; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: rgb(212 174 102 / 0.38); color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, main:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
a:focus-visible, summary:focus-visible { border-radius: 2px; }
main:focus { outline: none; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 20; padding: 0.75rem 1rem; background: var(--plaster); color: #1f1c17; font-weight: 600; border-radius: var(--radius); transform: translateY(-200%); }
.skip-link:focus { transform: none; box-shadow: 0 0.5rem 1.5rem rgb(13 22 19 / 0.35); }

/* Gallery signs: a Roman room number in an engraved roundel, the room's name and a fine rule. */
.placard { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; color: var(--accent); font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.24em; text-transform: uppercase; }
.placard::after { content: ""; flex: 0 1 3.5rem; height: 1px; background: currentColor; opacity: 0.55; }
.placard-number { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 0.55rem; border: 1px solid currentColor; border-radius: 999px; box-shadow: inset 0 0 0 3px var(--limestone), inset 0 0 0 4px rgb(111 75 18 / 0.25); font-family: var(--font-display); font-size: 0.9375rem; letter-spacing: 0.06em; }
.section-tinted .placard-number { box-shadow: inset 0 0 0 3px var(--limestone-deep), inset 0 0 0 4px rgb(111 75 18 / 0.25); }
.placard-inverse .placard-number, .section-directory .placard-number { box-shadow: inset 0 0 0 3px var(--forest), inset 0 0 0 4px rgb(212 174 102 / 0.3); }

/* Buttons and links */
.button { position: relative; display: inline-flex; max-width: 100%; align-items: center; justify-content: center; text-align: center; gap: 0.6rem; min-height: 3.1rem; padding: 0.8rem 1.5rem; border: 1px solid var(--btn-bg); border-radius: var(--radius); background: var(--btn-fill); color: var(--btn-ink); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2; text-decoration: none; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 0.9rem 1.6rem -1.1rem rgb(0 0 0 / 0.55); transition: box-shadow 220ms ease, transform 220ms var(--ease-out), filter 220ms ease; }
.button::after { content: ""; position: absolute; inset: 3px; border: 1px solid currentColor; border-radius: 1px; opacity: 0.16; pointer-events: none; }
.button:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 1.2rem 2rem -1.1rem rgb(0 0 0 / 0.6); }
.button:active { transform: translateY(1px); }
.button .icon { transition: transform 240ms var(--ease-out); }
.button:hover .icon { transform: translateX(3px); }
.button-small { min-height: 2.75rem; padding: 0.55rem 1.05rem; font-size: 0.875rem; }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--ink-muted); box-shadow: none; }
.button-quiet::after { display: none; }
.button-quiet:hover { background: rgb(128 110 80 / 0.1); border-color: var(--ink); box-shadow: none; filter: none; }
.button-light { background: var(--gilt); border-color: var(--brass); color: var(--forest); }
.button-outline-light { background: transparent; color: var(--ivory); border-color: rgb(244 237 224 / 0.45); box-shadow: none; }
.button-outline-light::after { display: none; }
.button-outline-light:hover { background: rgb(244 237 224 / 0.08); border-color: var(--ivory); box-shadow: none; filter: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; color: var(--ink); font-weight: 600; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 2.75rem; text-decoration: none; color: var(--ink); }
.brand-mark { position: relative; display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #1d3029, var(--forest) 70%); box-shadow: inset 0 0 0 1px rgb(212 174 102 / 0.7), inset 0 0 0 3px var(--forest), inset 0 0 0 4px rgb(212 174 102 / 0.25); overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgb(255 236 190 / 0.5) 50%, transparent 60%); transform: translateX(-70%); }
.brand-mark svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: var(--brass-bright); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.005em; }
.brand-name span { color: var(--accent); }
.brand-inverse { color: var(--ivory); }

/* Header: the dark lintel above the entrance */
.site-header { position: relative; z-index: 5; background: var(--forest); border-bottom: 1px solid rgb(212 174 102 / 0.2); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2rem; min-height: 4.75rem; }
.header-nav { margin-left: auto; }
.header-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.header-nav a, .header-signin { position: relative; display: inline-flex; white-space: nowrap; align-items: center; min-height: 2.75rem; color: var(--ink-soft); font-size: 0.875rem; font-weight: 550; letter-spacing: 0.02em; text-decoration: none; transition: color 200ms ease; }
.header-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.55rem; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out); }
.header-nav a:hover, .header-signin:hover { color: var(--ink); }
.header-nav a:hover::after { transform: none; }
.header-signin:hover { text-decoration: underline; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }

/* Hero: the entrance hall, lit from above */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3rem, 7vw, 6.5rem) 0 0; background: var(--forest); --spot-x: 70%; --spot-y: 25%; }
.hero-atmosphere { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse 80% 60% at 50% -15%, rgb(212 174 102 / 0.12), transparent 70%), linear-gradient(180deg, #0d1613 0%, #10201b 55%, #0d1613 100%); }
.hero-atmosphere::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.05; mix-blend-mode: overlay; }
.spotlight { position: absolute; inset: 0; background: radial-gradient(40rem 32rem at var(--spot-x) var(--spot-y), rgb(240 205 140 / 0.15), rgb(240 205 140 / 0.04) 45%, transparent 70%); }
.hero-columns { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgb(244 237 224 / 0.035) 0 1px, transparent 1px 1.4rem); -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 14%, transparent 86%, #000 100%); mask-image: linear-gradient(90deg, #000 0, transparent 14%, transparent 86%, #000 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 6vw, 5.5rem); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.hero h1 { color: var(--ivory); font-size: clamp(2.5rem, 4.7vw, 4.4rem); line-height: 1.03; letter-spacing: -0.025em; }
.word { display: inline-block; }
.word-gilt { background: linear-gradient(100deg, #b8914a 0%, #f3dca3 30%, #d4ae66 50%, #f0d79a 70%, #b8914a 100%); background-size: 260% 100%; background-position: 50% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 34rem; color: var(--ink-soft); font-size: clamp(1.0625rem, 1.5vw, 1.2rem); }
.hero-note { display: flex; align-items: center; gap: 0.8rem; color: var(--ink-muted); font-size: 0.875rem; letter-spacing: 0.02em; }
.hero-note::before { content: ""; flex: none; width: 1.75rem; height: 1px; background: var(--accent); }

/* The exhibit: a fictional touchscreen on a plinth, under its own beam of light */
.hero-figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; min-width: 0; }
.exhibit-stage { position: relative; padding: 1.5rem 1.5rem 0; perspective: 1600px; --tilt-x: 0deg; --tilt-y: 0deg; }
.exhibit-beam { position: absolute; left: 50%; top: -55%; width: 150%; height: 150%; transform: translateX(-50%); pointer-events: none; background: conic-gradient(from 180deg at 50% 0%, transparent 162deg, rgb(244 220 170 / 0.08) 171deg, rgb(244 220 170 / 0.15) 180deg, rgb(244 220 170 / 0.08) 189deg, transparent 198deg); filter: blur(14px); }
.device { position: relative; padding: 0.7rem; border-radius: 1.1rem; background: linear-gradient(150deg, #2c2a26, #0c0c0b 55%, #1b1a17); box-shadow: 0 0 0 1px rgb(212 174 102 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.08), 0 3rem 4rem -2.25rem rgb(0 0 0 / 0.85), 0 0 6rem -1.5rem rgb(212 174 102 / 0.18); transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x)); transform-style: preserve-3d; }
.device-glass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 0.6rem; overflow: hidden; background: #10201b; }
.device-glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgb(255 255 255 / 0.08) 0%, rgb(255 255 255 / 0.02) 32%, transparent 33%); }
.screen { grid-area: 1 / 1; display: grid; grid-template-rows: auto 1fr auto; gap: 0.9rem; aspect-ratio: 16 / 10.5; padding: 1rem 1.1rem 1.1rem; color: var(--ivory); background: radial-gradient(28rem 16rem at 20% 10%, rgb(226 187 108 / 0.22), transparent 70%), linear-gradient(160deg, #1d3a32 0%, #12201c 70%); opacity: 0; visibility: hidden; transform: scale(1.025); transition: opacity 650ms ease, transform 900ms var(--ease-out), visibility 0s linear 900ms; }
.device[data-scene="home"] .scene-home, .device[data-scene="collection"] .scene-collection, .device[data-scene="profile"] .scene-profile { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.screen-bar { display: flex; align-items: center; gap: 0.55rem; font-size: 0.6875rem; }
.screen-back { position: relative; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgb(244 237 224 / 0.12); font-size: 0.9rem; line-height: 1; }
.screen-crest { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brass); color: var(--forest); font-weight: 700; font-size: 0.625rem; }
.screen-school { font-weight: 600; letter-spacing: 0.02em; }
.screen-nav { display: flex; gap: 0.9rem; margin-left: auto; color: var(--ivory-soft); }
.screen-nav span:first-child { color: var(--ivory); }
.screen-hero { display: grid; align-content: center; gap: 0.35rem; }
.screen-kicker { color: var(--brass); font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.screen-title { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.05; }
.screen-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
.tile { position: relative; display: grid; align-content: end; gap: 0.1rem; min-height: 5.2rem; padding: 0.55rem; border-radius: 0.45rem; font-size: 0.6875rem; line-height: 1.2; box-shadow: inset 0 -3rem 2.5rem -1rem rgb(0 0 0 / 0.55); }
.tile b { font-weight: 650; }
.tile small { color: var(--ivory-soft); font-size: 0.5625rem; }
.tile-athletics { background: repeating-linear-gradient(115deg, rgb(255 255 255 / 0.05) 0 0.25rem, transparent 0.25rem 0.75rem), linear-gradient(160deg, #6d4b23, #2b2016); }
.tile-alumni { background: radial-gradient(circle at 72% 28%, rgb(243 236 223 / 0.35) 0 0.85rem, transparent 0.9rem), linear-gradient(160deg, #4a5a63, #1d2529); }
.tile-history { background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 0.5rem), linear-gradient(160deg, #7a6a4c, #2f281c); }
.tile-donors { background: radial-gradient(circle at 70% 30%, rgb(226 187 108 / 0.55) 0 0.6rem, transparent 0.65rem), linear-gradient(160deg, #3b4f3f, #18221b); }
/* Collection scene: portrait plates in a row, the featured one named */
.collection-head { display: grid; gap: 0.2rem; align-content: end; }
.collection-title { font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.6rem); line-height: 1.05; }
.collection-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; align-self: end; }
.plate { position: relative; display: grid; gap: 0.3rem; font-size: 0.5625rem; line-height: 1.2; }
.plate-portrait { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 0.3rem; font-family: var(--font-display); font-size: 1rem; color: var(--ivory); background: radial-gradient(circle at 50% 40%, rgb(244 237 224 / 0.28) 0 17%, transparent 18%), radial-gradient(ellipse 42% 30% at 50% 100%, rgb(244 237 224 / 0.22) 0 98%, transparent 100%), var(--plate); box-shadow: inset 0 0 0 1px rgb(244 237 224 / 0.08); }
.plate-featured .plate-portrait { background: linear-gradient(180deg, #b9a888, #6f6047); box-shadow: 0 0 0 1px var(--brass); }
.plate i { display: block; height: 0.3rem; width: 80%; border-radius: 1rem; background: rgb(244 237 224 / 0.18); }
.plate b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate-umber { --plate: linear-gradient(170deg, #5a4128, #261b11); }
.plate-slate { --plate: linear-gradient(170deg, #45545c, #1b2226); }
.plate-sepia { --plate: linear-gradient(170deg, #7a6a4c, #2f281c); }
.plate-moss { --plate: linear-gradient(170deg, #3f5242, #17201a); }
/* Profile scene: the open story */
.profile-spread { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 1rem; align-items: center; grid-row: span 2; }
.profile-photo { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 0.35rem; background: linear-gradient(180deg, #b9a888, #6f6047); color: #fffdf8; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 0 0 1px rgb(212 174 102 / 0.6), 0 1rem 1.5rem -1rem rgb(0 0 0 / 0.8); }
.profile-story { display: grid; gap: 0.3rem; align-content: center; }
.profile-story b { font-family: var(--font-display); font-size: clamp(1rem, 2.1vw, 1.5rem); font-weight: 600; line-height: 1.1; }
.profile-story small { color: var(--ivory-soft); font-size: 0.625rem; }
.story-lines { display: grid; gap: 0.3rem; margin-top: 0.4rem; }
.story-lines i { display: block; height: 0.28rem; border-radius: 1rem; background: rgb(244 237 224 / 0.16); }
.story-lines i:nth-child(2) { width: 92%; }
.story-lines i:nth-child(4) { width: 64%; }
.story-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; margin-top: 0.5rem; }
.story-photos i { display: block; aspect-ratio: 4 / 3; border-radius: 0.25rem; background: linear-gradient(160deg, #6d5a3c, #2b2016); }
.story-photos i:nth-child(2) { background: linear-gradient(160deg, #4a5a63, #1d2529); }
.story-photos i:nth-child(3) { background: linear-gradient(160deg, #7a6a4c, #2f281c); }
.screen-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--brass)); transform: scaleX(0); transform-origin: left; opacity: 0; }
/* The floating wall label of the featured person; it steps aside while the profile itself is open. */
.profile-card { position: absolute; right: -1.25rem; bottom: -1.75rem; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.8rem; width: min(17rem, 62%); padding: 0.9rem; border-radius: 0.2rem; background: #f7f2e8; color: #1f1c17; box-shadow: 0 1.5rem 3rem -1rem rgb(0 0 0 / 0.65); border: 1px solid #d3c6ad; transform: translateZ(40px); transition: opacity 500ms ease, transform 700ms var(--ease-out); }
.device[data-scene="profile"] .profile-card { opacity: 0; transform: translateZ(40px) translateY(0.75rem); }
.profile-portrait { grid-row: span 2; display: grid; place-items: center; width: 3.25rem; height: 4rem; border-radius: 0.2rem; background: linear-gradient(180deg, #b9a888, #6f6047); color: #fffdf8; font-family: var(--font-display); font-size: 1.1rem; }
.profile-meta { display: grid; line-height: 1.25; }
.profile-meta b { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.profile-meta small { color: #665d4f; font-size: 0.6875rem; }
.profile-lines { display: grid; gap: 0.3rem; align-self: start; }
.profile-lines i { display: block; height: 0.3rem; border-radius: 1rem; background: #e6dcc8; }
.profile-lines i:nth-child(2) { width: 85%; }
.profile-lines i:nth-child(3) { width: 60%; }
.plinth { position: relative; display: block; width: 74%; height: 1.5rem; margin: 2.5rem auto 0; background: linear-gradient(180deg, #2a332f 0%, #18201d 45%, #0f1513 100%); box-shadow: inset 0 1px 0 rgb(212 174 102 / 0.4), 0 1.5rem 2rem -1rem rgb(0 0 0 / 0.9); }
.plinth::before { content: ""; position: absolute; left: -4%; right: -4%; top: -0.45rem; height: 0.45rem; background: linear-gradient(180deg, #34403a, #222b27); clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%); }
.plinth::after { content: ""; position: absolute; left: -20%; right: -20%; top: 100%; height: 3rem; background: radial-gradient(50% 50% at 50% 0, rgb(240 205 140 / 0.12), transparent 70%); }
/* The label beside the exhibit, with the motion control once the module is running */
.exhibit-label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.35rem 1.25rem; max-width: 34rem; margin-inline: auto; padding-top: 0.9rem; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.5; }
.exhibit-label-kicker { grid-column: 1; color: var(--accent); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.exhibit-label-text { grid-column: 1; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem; border: 1px solid rgb(212 174 102 / 0.45); border-radius: 999px; background: rgb(13 22 19 / 0.4); color: var(--ivory); font: 600 0.8125rem/1.2 var(--font-body); letter-spacing: 0.03em; cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease; }
.motion-toggle:hover { background: rgb(212 174 102 / 0.14); border-color: var(--brass); }
.motion-toggle .icon { width: 1rem; height: 1rem; }
.exhibit-label .motion-toggle { grid-column: 2; grid-row: 1 / span 2; }

/* The threshold between the entrance and the first lit room */
.threshold { position: relative; height: clamp(3.5rem, 9vw, 8rem); margin-top: clamp(3rem, 7vw, 6rem); color: var(--limestone); pointer-events: none; }
.threshold-tinted { color: var(--limestone-deep); }
.threshold svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.threshold-fill { fill: currentColor; transition: fill 1s ease; }
.threshold-line { fill: none; stroke: var(--brass); stroke-width: 1; opacity: 0.75; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.threshold-line-inner { opacity: 0.3; }
.threshold-keystone { position: absolute; left: 50%; top: 25%; width: 0.7rem; height: 0.7rem; margin: -0.35rem 0 0 -0.35rem; background: var(--forest); border: 1px solid var(--brass); transform: rotate(45deg); }

/* Lit rooms */
.section { position: relative; isolation: isolate; padding-block: clamp(4rem, 9vw, 7.5rem); background: var(--limestone) radial-gradient(70rem 30rem at 50% -8rem, var(--lamp), transparent 70%) no-repeat; transition: background-color 1s ease, color 1s ease; }
.section-tinted { background-color: var(--limestone-deep); border-block: 1px solid var(--rule); }
.hero + .section-tinted { border-top: 0; }
.section-heading { display: grid; gap: 1.1rem; max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-heading h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -0.02em; }
.section-heading p { color: var(--ink-soft); font-size: 1.125rem; }
.section h3 { font-size: 1.375rem; }

/* II. The process: six steps on one engraved line, numbered in Roman */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem clamp(1.25rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { position: relative; display: grid; align-content: start; gap: 0.6rem; padding-top: 4.25rem; counter-increment: step; }
.steps li::before { content: counter(step, upper-roman); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--accent); box-shadow: inset 0 0 0 3px var(--limestone), inset 0 0 0 4px rgb(111 75 18 / 0.25); color: var(--accent); font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.04em; background: var(--limestone); z-index: 1; }
.section-tinted .steps li::before { box-shadow: inset 0 0 0 3px var(--limestone-deep), inset 0 0 0 4px rgb(111 75 18 / 0.25); background: var(--limestone-deep); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.5rem; left: 3.75rem; right: -1.75rem; border-top: 1px solid var(--rule); transform-origin: left; transition: transform 1.2s var(--ease-out) calc(var(--reveal-delay, 0ms) + 250ms); }
.steps li:nth-child(3n)::after { display: none; }
.steps h3 { font-size: 1.25rem; }
.showcase-grid p, .feature-list p, .steps p, .faq-item p { color: var(--ink-soft); }

/* III. The collection: framed plates hung salon style, each with its wall label */
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.showcase-grid > li { display: grid; align-content: start; gap: 0.55rem; }
.showcase-grid > li:nth-child(3n + 2) { margin-top: clamp(0rem, 4vw, 3.5rem); }
.artwork { position: relative; display: block; width: min(100%, 14rem); aspect-ratio: 4 / 5; margin: 1.6rem 0 1.25rem; padding: 0.85rem; background: linear-gradient(135deg, #ecd394 0%, #a77f37 22%, #f3dfab 48%, #8f6a2c 74%, #d8b56d 100%); box-shadow: 0 0 0 1px rgb(80 56 20 / 0.55), 0 2rem 2.5rem -1.75rem rgb(31 28 23 / 0.6), 0 0.5rem 0.75rem -0.5rem rgb(31 28 23 / 0.35); transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out); }
.artwork::before { content: ""; position: absolute; inset: 0.45rem; border: 1px solid rgb(60 40 10 / 0.45); box-shadow: inset 0 0 0 1px rgb(255 240 200 / 0.4); pointer-events: none; }
.showcase-grid > li:nth-child(6n + 2) .artwork { width: min(100%, 12rem); aspect-ratio: 1; }
.showcase-grid > li:nth-child(6n + 4) .artwork { width: min(100%, 17rem); aspect-ratio: 5 / 4; }
.showcase-grid > li:nth-child(6n + 5) .artwork { width: min(100%, 12.5rem); }
.showcase-grid > li:nth-child(6n + 6) .artwork { width: min(100%, 13rem); aspect-ratio: 1; }
.canvas { position: relative; display: grid; place-items: center; height: 100%; overflow: hidden; background: radial-gradient(70% 60% at 35% 28%, rgb(255 236 200 / 0.2), transparent 70%), var(--canvas, linear-gradient(160deg, #1d2f28, #0d1714)); box-shadow: inset 0 0 2.5rem rgb(0 0 0 / 0.6), inset 0 0 0 1px rgb(0 0 0 / 0.45); }
.canvas::before { content: ""; position: absolute; inset: 13% 16%; border: 1px solid rgb(212 174 102 / 0.28); border-radius: 50%; box-shadow: 0 0 0 4px rgb(0 0 0 / 0.12), inset 0 0 0 4px rgb(0 0 0 / 0.12); }
.canvas::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.08; mix-blend-mode: overlay; }
.showcase-grid > li:nth-child(6n + 2) .canvas { --canvas: linear-gradient(160deg, #3d1f1b, #1c0d0b); }
.showcase-grid > li:nth-child(6n + 3) .canvas { --canvas: linear-gradient(160deg, #3b2c1b, #19120a); }
.showcase-grid > li:nth-child(6n + 4) .canvas { --canvas: linear-gradient(160deg, #222c33, #0f1519); }
.showcase-grid > li:nth-child(6n + 5) .canvas { --canvas: linear-gradient(160deg, #2e3624, #141a10); }
.showcase-grid > li:nth-child(6n + 6) .canvas { --canvas: linear-gradient(160deg, #1d2536, #0c111b); }
.canvas-numeral { position: relative; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: 0.04em; background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 1px rgb(0 0 0 / 0.6)); }
.picture-light { position: absolute; z-index: 1; top: -1rem; left: 50%; width: 36%; height: 0.5rem; transform: translateX(-50%); border-radius: 0 0 0.35rem 0.35rem; background: linear-gradient(180deg, #e2c57f, #8d6a2f); box-shadow: 0 2px 2px rgb(0 0 0 / 0.25); }
.picture-light::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 0.6rem; margin-left: -1px; background: #8d6a2f; }
.picture-light::after { content: ""; position: absolute; top: 100%; left: -70%; right: -70%; height: 11rem; background: radial-gradient(50% 100% at 50% 0, rgb(255 228 170 / 0.5), transparent 75%); mix-blend-mode: screen; opacity: 0.45; pointer-events: none; transition: opacity 700ms ease; }
.showcase-grid > li:hover .picture-light::after { opacity: 0.85; }
.showcase-grid > li:hover .artwork { transform: translateY(-4px); box-shadow: 0 0 0 1px rgb(80 56 20 / 0.55), 0 2.75rem 3rem -1.75rem rgb(31 28 23 / 0.65), 0 0.5rem 0.75rem -0.5rem rgb(31 28 23 / 0.35); }
.showcase-index { color: var(--accent); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.showcase-index::before { content: "No. "; }

/* IV. The catalogue: numbered entries on fine rules beside a sticky heading */
.features-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.features-layout .section-heading { position: sticky; top: 3rem; }
.feature-list { display: grid; counter-reset: entry; }
.feature-list li { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 0.5rem 1rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); counter-increment: entry; }
.feature-list li::before { content: "No. " counter(entry, decimal-leading-zero); grid-row: span 2; padding-top: 0.45rem; color: var(--accent); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.feature-list li:last-child { border-bottom: 1px solid var(--rule); }

/* V. The annex: the agent route, set apart on a framed wall panel with every qualification intact */
.agents-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.agents-layout .section-heading { margin-bottom: 0; }
.agent-route { display: grid; gap: 1.5rem; padding: clamp(1.4rem, 3vw, 2.25rem); background: var(--plaster); box-shadow: 0 0 0 1px var(--rule), inset 0 0 0 7px var(--plaster), inset 0 0 0 8px var(--rule); transition: background-color 1s ease; }
.agent-facts { display: grid; }
.agent-facts li { position: relative; padding: 0.95rem 0 0.95rem 1.6rem; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.agent-facts li::before { content: ""; position: absolute; left: 0.2rem; top: 1.6rem; width: 0.45rem; height: 0.45rem; border: 1px solid var(--accent); transform: rotate(45deg); }
.agent-route .cta-row { align-items: center; }

/* VI. The gallery directory: dark wayfinding with brass lettering */
.section-directory { background: var(--forest-raised); border: 0; }
.section-directory::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: 0.04; mix-blend-mode: overlay; pointer-events: none; }
.teaser-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 0; border-block: 1px solid var(--rule); }
.teaser-grid > li { display: grid; align-content: start; gap: 0.6rem; padding: 1.75rem 1.5rem 1.5rem; }
.teaser-grid > li + li { border-left: 1px solid var(--rule); }
.teaser-grid > li:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.teaser-grid h3 { font-size: 1.3rem; }
.teaser-grid h3 a { text-decoration: none; }
.teaser-grid h3 a:hover { text-decoration: underline; }
.teaser-grid ul a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-soft); font-size: 0.9375rem; text-decoration: none; transition: color 200ms ease; }
.teaser-grid ul a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); }
.teaser-all { margin-top: 2rem; }
.teaser-all .text-link { color: var(--brass); }

/* VII. Visitor information: questions open in place with a click, tap, Enter or Space, without script. */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-list { display: grid; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding: 1.15rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.25; transition: color 200ms ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-chevron { width: 1.6rem; height: 1.6rem; padding: 0.3rem; border: 1px solid var(--rule); border-radius: 50%; color: var(--accent); }
.faq-chevron path:first-child { transform-box: fill-box; transform-origin: center; transition: transform 300ms var(--ease-out); }
.faq-item[open] .faq-chevron path:first-child { transform: rotate(90deg); }
.faq-item p { padding-bottom: 1.5rem; max-width: 40rem; }
.faq-item a { color: var(--ink); font-weight: 600; }

/* The closing room: a brass arch around the last call to action */
.closing { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(50rem 26rem at 50% 110%, rgb(212 174 102 / 0.14), transparent 70%), var(--forest); text-align: center; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: 0.05; mix-blend-mode: overlay; pointer-events: none; }
.closing-arch { position: absolute; left: 0; right: 0; top: 2.5rem; bottom: 0; z-index: -1; height: calc(100% - 2.5rem); width: auto; max-width: 100%; aspect-ratio: 600 / 420; margin-inline: auto; fill: none; stroke: var(--brass); stroke-width: 1; opacity: 0.4; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.closing-arch path { stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.closing-arch path:nth-child(2) { opacity: 0.45; }
.closing-inner { display: grid; justify-items: center; gap: 1.25rem; padding-block: clamp(4.5rem, 10vw, 8rem); }
.closing .placard { width: 100%; justify-content: center; flex-wrap: nowrap; }
.closing .placard::before { content: ""; flex: 0 1 3.5rem; height: 1px; background: currentColor; opacity: 0.55; }
.closing h2 { max-width: 18ch; font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -0.02em; }
.closing p:not(.placard) { max-width: 34rem; color: var(--ink-soft); font-size: 1.125rem; }
.closing .cta-row { justify-content: center; margin-top: 0.5rem; }

/* Use-case pages and the use-case hub */
.breadcrumbs { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); font-size: 0.875rem; color: var(--ink-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--accent); opacity: 0.6; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-soft); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
.eyebrow { color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.hero-use-case { padding-top: clamp(1rem, 3vw, 2rem); }
.hero-use-case h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
.split-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-layout .section-heading { margin-bottom: 0; }
.prose { display: grid; gap: 1.25rem; max-width: 40rem; color: var(--ink-soft); font-size: 1.125rem; }
.prose p:first-child { color: var(--ink); }
.prose p:first-child::first-letter { float: left; margin: 0.12em 0.12em 0 0; font-family: var(--font-display); font-size: 3.4em; line-height: 0.8; color: var(--accent); }
.setup-card { padding: clamp(1.25rem, 3vw, 2rem); background: var(--plaster); box-shadow: 0 0 0 1px var(--rule), inset 0 0 0 6px var(--plaster), inset 0 0 0 7px var(--rule), 0 1.5rem 3rem -2rem rgb(31 28 23 / 0.35); }
.setup-root { display: grid; gap: 0.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); font-family: var(--font-display); font-size: 1.375rem; line-height: 1.2; }
.setup-root-label { color: var(--accent); font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.setup-tree { display: grid; }
.setup-tree li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; padding: 1rem 0 1rem 1.5rem; border-bottom: 1px solid var(--rule); }
.setup-tree li::before { content: ""; position: absolute; left: 0.3rem; top: 0; bottom: 0; border-left: 1px solid var(--rule); }
.setup-tree li::after { content: ""; position: absolute; left: 0.3rem; top: 1.65rem; width: 0.8rem; border-top: 1px solid var(--rule); }
.setup-tree li:last-child::before { bottom: auto; height: 1.65rem; }
.setup-name { font-weight: 650; color: var(--ink); }
.setup-layout { align-self: start; padding: 0.15rem 0.65rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap; }
.setup-tree p { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.9375rem; }
.setup-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding-top: 1rem; color: var(--ink-muted); font-size: 0.9375rem; }
.setup-filters ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.setup-filters li { padding: 0.2rem 0.75rem; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-weight: 600; font-size: 0.875rem; }
.steps-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.places { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); gap: 1rem clamp(2rem, 6vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.places h3 { font-size: 1.375rem; }
.places ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.places li { display: grid; gap: 0.35rem; align-content: start; }
.places span { color: var(--ink-soft); }
.section-heading-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.section-heading-row > div { display: grid; gap: 1.1rem; }
.related-grid, .hub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.related-grid a, .hub-list a { position: relative; display: grid; align-content: start; gap: 0.4rem; height: 100%; padding: 1.35rem 1.35rem 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--plaster); color: var(--ink); text-decoration: none; transition: border-color 220ms ease, transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), background-color 1s ease; }
.related-grid a::before, .hub-list a::before { content: ""; position: absolute; left: 1.35rem; top: 0; width: 2rem; height: 2px; background: var(--accent); transition: width 400ms var(--ease-out); }
.related-grid a:hover, .hub-list a:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 1.25rem 2rem -1.5rem rgb(31 28 23 / 0.45); }
.related-grid a:hover::before, .hub-list a:hover::before { width: calc(100% - 2.7rem); }
.related-grid b, .hub-list b { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.2; }
.related-grid span, .hub-list span { color: var(--ink-soft); font-size: 0.9375rem; }
.related-grid .related-category { color: var(--accent); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.hero-hub { padding-top: clamp(1rem, 3vw, 2rem); }
.hub-intro { display: grid; gap: 1.25rem; }
.hub-intro h1 { max-width: 52rem; font-size: clamp(2.25rem, 5vw, 4rem); }
.hub-jump ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.hub-jump a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; transition: border-color 200ms ease, background-color 200ms ease; }
.hub-jump a:hover { background: rgb(212 174 102 / 0.1); border-color: var(--brass); }

/* Use-case answer block, facts and comparison */
.section-answer { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.answer-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.answer-card { display: grid; gap: 1rem; padding-left: clamp(1rem, 2.5vw, 1.75rem); border-left: 1px solid var(--accent); }
.answer-card h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.answer-text { color: var(--ink); font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 38rem; }
.answer-updated { color: var(--ink-muted); font-size: 0.875rem; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: minmax(7.5rem, 0.8fr) minmax(0, 1.4fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 0.2rem; }
.facts dd { margin: 0; color: var(--ink-soft); }
.section-flush { padding-top: 0; }
.compare-wrap { position: relative; border: 1px solid var(--rule); overflow: hidden; background: var(--plaster); transition: background-color 1s ease; }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { background: var(--limestone-deep); color: var(--ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.compare-table thead th:last-child { color: var(--accent); }
.compare-table tbody th { color: var(--ink); font-weight: 600; width: 28%; }
.compare-table td { color: var(--ink-soft); }
.compare-table td:last-child { color: var(--ink); }
@media (max-width: 48rem) {
  .answer-layout { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table tr { padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); }
  .compare-table tbody tr:last-child { border-bottom: 0; }
  .compare-table th, .compare-table td { padding: 0.2rem 0; border: 0; }
  .compare-table tbody th { width: auto; margin-bottom: 0.35rem; }
  .compare-table td::before { content: attr(data-label) ": "; color: var(--ink-muted); font-weight: 600; }
}

/* Not found: a closed room, numbered 404 in Roman */
.not-found { padding-block: clamp(3.5rem, 10vw, 8rem); background: var(--limestone) radial-gradient(60rem 26rem at 50% -6rem, var(--lamp), transparent 70%) no-repeat; }
.not-found-numeral { display: block; width: min(100% - 2.5rem, var(--wrap)); margin: 0 auto 1rem; font-family: var(--font-display); font-size: min(22vw, 11rem); line-height: 0.9; letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 1px rgb(111 75 18 / 0.45); }
.not-found-inner { display: grid; grid-template-columns: minmax(0, 42rem); gap: 1.25rem; }
.not-found h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.not-found p:not(.placard) { color: var(--ink-soft); font-size: 1.125rem; }

/* Footer */
.site-footer { position: relative; background: var(--forest-floor); border-top: 1px solid rgb(212 174 102 / 0.16); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: 3.75rem 2.5rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; max-width: 26rem; }
.footer-brand p { color: var(--ink-soft); font-size: 0.9375rem; }
.footer-contact { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); }
.footer-archive, .footer-updates { display: none; }
@supports not (display: grid) { .site-footer { background-image: url("/media-cache/paper-grain.png"); } }
.site-footer h2 { margin-bottom: 0.75rem; color: var(--accent); font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); font-size: 0.9375rem; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.colophon { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-block: 1.5rem 0.5rem; border-top: 1px solid var(--rule); }
.colophon-rule { flex: 0 0 2rem; height: 1px; background: var(--accent); }
.colophon-line { color: var(--ink-muted); font-family: var(--font-display); font-size: 0.9375rem; letter-spacing: 0.06em; }
.colophon .motion-toggle { margin-left: auto; }
.seal { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 2.75rem; padding: 0 0.9rem 0 0.25rem; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 600 0.8125rem/1.2 var(--font-body); letter-spacing: 0.04em; cursor: pointer; transition: color 200ms ease, border-color 200ms ease; }
.colophon > .seal { margin-left: auto; }
.colophon .motion-toggle + .seal { margin-left: 0; }
.seal:hover, .seal[aria-pressed="true"] { color: var(--ink); border-color: var(--rule); }
.seal-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #1d3029, var(--forest) 70%); box-shadow: inset 0 0 0 1px rgb(212 174 102 / 0.7), inset 0 0 0 3px var(--forest-floor), inset 0 0 0 4px rgb(212 174 102 / 0.3); transition: box-shadow 400ms ease, transform 600ms var(--ease-out); }
.seal-mark svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--brass-bright); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.seal[aria-pressed="true"] .seal-mark { box-shadow: inset 0 0 0 1px var(--brass-bright), inset 0 0 0 3px var(--forest-floor), inset 0 0 0 4px rgb(240 215 154 / 0.6), 0 0 1.25rem rgb(240 205 140 / 0.45); transform: rotate(-12deg); }
.seal-hint { flex-basis: 100%; color: var(--ink-muted); font-size: 0.8125rem; text-align: right; }

/* After hours */
.night-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 1.6s ease, visibility 0s linear 1.6s; }
.night-sky i { position: absolute; border-radius: 50%; background: #fff6e0; box-shadow: 0 0 4px rgb(255 240 200 / 0.8); opacity: 0.75; }
.shooting-star { position: absolute; top: 14%; left: 72%; width: 8rem; height: 1px; background: linear-gradient(90deg, rgb(255 246 224 / 0.95), transparent); opacity: 0; transform: rotate(-20deg); }
[data-after-hours] .night-sky { opacity: 1; visibility: visible; transition-delay: 0s; }
[data-after-hours] .spotlight { background: radial-gradient(40rem 32rem at var(--spot-x) var(--spot-y), rgb(190 205 230 / 0.12), rgb(190 205 230 / 0.03) 45%, transparent 70%); }
[data-after-hours] .picture-light::after { opacity: 1; }
[data-after-hours] .word-gilt { filter: drop-shadow(0 0 0.3em rgb(240 200 120 / 0.45)); }
[data-after-hours] .placard-number { box-shadow: inset 0 0 0 3px var(--limestone), inset 0 0 0 4px rgb(224 189 120 / 0.3), 0 0 1rem rgb(224 189 120 / 0.2); }
[data-after-hours] .section-tinted .placard-number { box-shadow: inset 0 0 0 3px var(--limestone-deep), inset 0 0 0 4px rgb(224 189 120 / 0.3), 0 0 1rem rgb(224 189 120 / 0.2); }
[data-after-hours] .artwork { box-shadow: 0 0 0 1px rgb(80 56 20 / 0.55), 0 2rem 3rem -1.5rem rgb(0 0 0 / 0.8), 0 -1rem 3rem -1rem rgb(255 210 140 / 0.18); }
.after-hours-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); display: grid; gap: 0.2rem; background: var(--forest); color: var(--ivory); font-size: 0.875rem; line-height: 1.45; }
.after-hours-note b { color: var(--brass); font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.after-hours-note span { color: var(--ivory-soft); }
.after-hours-note.is-shown { position: relative; width: 100%; height: auto; flex-basis: 100%; order: 2; overflow: visible; clip-path: none; padding: 0.9rem 1.1rem; border: 1px solid rgb(212 174 102 / 0.45); }

/* Motion. Without the module, only the one-off entrance below runs; ongoing motion needs data-motion="on",
   which the module sets only while motion is allowed and not paused. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero h1 .word { animation: rise 1.15s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
  .hero h1 .word-gilt { animation: rise 1.15s var(--ease-out) both, sheen 2.4s ease-in-out both; animation-delay: calc(var(--i) * 70ms + 120ms), calc(var(--i) * 70ms + 900ms); }
  .hero-copy > :not(h1) { animation: fade-up 1s var(--ease-out) both 650ms; }
  .hero-figure { animation: fade-in 1.6s ease both 300ms; }
  .threshold-line { animation: draw 2.6s cubic-bezier(0.6, 0, 0.2, 1) both 700ms; }
  .threshold-line-inner { animation-delay: 1s; }
  .threshold-keystone { animation: fade-in 1s ease both 2.2s; }
  .brand:hover .brand-mark::after { transition: transform 900ms var(--ease-out); transform: translateX(70%); }
  .device { transition: transform 700ms var(--ease-out); }
  .faq-item[open] p { animation: fade-up 450ms var(--ease-out) both; }

  [data-motion="on"] .threshold.reveal:not(.is-in) .threshold-line, [data-motion="on"] .threshold.reveal:not(.is-in) .threshold-keystone { animation-play-state: paused; }
  [data-motion="on"] .reveal:not(.threshold, .closing-arch) { opacity: 0; transform: translateY(1.5rem); transition: opacity 900ms var(--ease-out) var(--reveal-delay, 0ms), transform 1.1s var(--ease-out) var(--reveal-delay, 0ms); }
  [data-motion="on"] .reveal.is-in:not(.threshold, .closing-arch) { opacity: 1; transform: none; }
  [data-motion="on"] .steps li.reveal:not(.is-in)::after { transform: scaleX(0); }
  [data-motion="on"] .closing-arch.reveal path { animation: draw 2.8s cubic-bezier(0.6, 0, 0.2, 1) both paused; }
  [data-motion="on"] .closing-arch.reveal.is-in path { animation-play-state: running; }
  [data-motion="on"] .closing-arch.reveal.is-in path:nth-child(2) { animation-delay: 300ms; }
  [data-motion="on"] .device[data-cycle] .screen-progress { opacity: 0.8; animation: progress var(--hold, 4s) linear both; }
  [data-motion="on"] .device[data-tap="home"] .tile:first-child::after,
  [data-motion="on"] .device[data-tap="collection"] .plate-featured .plate-portrait::after,
  [data-motion="on"] .device[data-tap="profile"] .scene-profile .screen-back::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2.2rem; height: 2.2rem; margin: -1.1rem 0 0 -1.1rem; border-radius: 50%; border: 2px solid rgb(244 237 224 / 0.9); background: rgb(244 237 224 / 0.2); animation: tap 650ms ease-out both; }
  .plate-featured .plate-portrait { position: relative; }
  [data-motion="on"][data-after-hours] .night-sky i { animation: twinkle var(--twinkle, 5s) ease-in-out var(--delay, 0s) infinite alternate; }
  [data-motion="on"][data-after-hours] .is-shooting .shooting-star { animation: shoot 1.7s ease-out 600ms both; }
  [data-motion="on"] .is-still .night-sky i, [data-motion="on"] .is-offscreen .night-sky i,
  [data-motion="on"] .is-still .shooting-star, [data-motion="on"] .is-offscreen .shooting-star { animation-play-state: paused; }
  .section, .site-footer, .agent-route, .compare-wrap { transition: background-color 1.2s ease, color 1.2s ease; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.5em) rotate(1deg); filter: blur(6px); } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(0.75rem); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes tap { 0% { opacity: 0; transform: scale(0.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes twinkle { to { opacity: 0.2; transform: scale(0.7); } }
@keyframes shoot { 0% { opacity: 0; transform: rotate(-20deg) translateX(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: rotate(-20deg) translateX(-28rem); } }

/* Six section links fit one row only on wide screens; Agents & API stays in the page and footer. */
@media (max-width: 90rem) {
  .header-nav .nav-secondary { display: none; }
}
@media (max-width: 64rem) {
  /* The section links become a wrapping row under the brand instead of disappearing. */
  .header-nav { order: 3; flex-basis: 100%; margin-left: 0; border-top: 1px solid var(--rule); }
  .header-nav ul { gap: 0 1.25rem; }
  .header-actions { margin-left: auto; }
  .hero-grid, .features-layout, .faq-layout, .agents-layout, .split-layout, .places { grid-template-columns: minmax(0, 1fr); }
  .teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teaser-grid > li:nth-child(4n + 1) { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
  .teaser-grid > li:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .features-layout .section-heading { position: static; }
  .hero-figure { max-width: 40rem; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps li::after { display: none; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-grid > li:nth-child(3n + 2) { margin-top: 0; }
  .showcase-grid > li:nth-child(2n) { margin-top: clamp(0rem, 6vw, 3rem); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .header-inner { gap: 0 0.75rem; min-height: 4rem; }
  .brand-name { font-size: 1.125rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .header-actions { gap: 0 0.75rem; }
  .header-actions .button-small { padding-inline: 0.75rem; font-size: 0.8125rem; }
  .header-nav ul { gap: 0 0.5rem; justify-content: space-between; }
  .header-nav a { font-size: 0.8125rem; }
  /* Phones keep the four sections on one row; the agent route stays in the page and the footer. */
  .header-nav .nav-secondary { display: none; }
  .exhibit-stage { padding: 1rem 0.75rem 0; }
  .screen { aspect-ratio: auto; gap: 0.6rem; padding: 0.7rem 0.7rem 1.6rem; }
  .screen-nav { display: none; }
  .screen-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 3.4rem; }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-card { right: -0.5rem; bottom: -2.25rem; width: 68%; padding: 0.6rem; gap: 0.2rem 0.6rem; }
  .profile-portrait { width: 2.4rem; height: 3rem; font-size: 0.9rem; }
  .profile-lines { display: none; }
  .plinth { margin-top: 3rem; }
  .exhibit-label { grid-template-columns: minmax(0, 1fr); }
  .exhibit-label .motion-toggle { grid-column: 1; grid-row: auto; justify-self: start; }
  .steps, .steps-three, .showcase-grid, .footer-inner, .teaser-grid, .places ul { grid-template-columns: minmax(0, 1fr); }
  .showcase-grid > li:nth-child(n) { margin-top: 0; }
  .showcase-grid > li:nth-child(n) .artwork { width: min(100%, 15rem); aspect-ratio: 5 / 4; }
  .teaser-grid > li, .teaser-grid > li:nth-child(n) { border-left: 0; padding: 1.5rem 0 0.5rem; }
  .teaser-grid > li + li { border-top: 1px solid var(--rule); }
  .feature-list li { grid-template-columns: minmax(0, 1fr); }
  .feature-list li::before { grid-row: auto; padding-top: 0; }
  .cta-row .button { width: 100%; }
  .seal-hint { text-align: left; }
  .setup-tree li { grid-template-columns: minmax(0, 1fr); }
  .setup-layout { justify-self: start; white-space: normal; }
}
@media (max-width: 30rem) {
  /* The hero's primary call to action sits directly below on phones. */
  .header-actions .button-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .button .icon, .faq-chevron path, .related-grid a, .hub-list a, .artwork, .picture-light::after, .header-nav a::after, .profile-card, .screen, .seal-mark, .after-hours-note, .night-sky { transition: none; }
  .related-grid a:hover, .hub-list a:hover, .showcase-grid > li:hover .artwork { transform: none; }
}
@media (forced-colors: active) {
  .button, .brand-mark, .seal-mark { border: 1px solid ButtonText; }
  .word-gilt, .canvas-numeral { background: none; color: CanvasText; filter: none; }
  .threshold, .night-sky, .exhibit-beam { display: none; }
}
@media print {
  .site-header, .exhibit, .threshold, .closing-arch, .night-sky, .motion-toggle, .seal, .seal-hint, .after-hours-note { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
