:root {
  --ink: #211d17;
  --muted: #6f665b;
  --paper: #f2eee7;
  --paper-deep: #e7e0d5;
  --wood: #2c2117;
  --night: #151711;
  --gold: #b48a42;
  --gold-light: #d3b16f;
  --line: rgba(52, 43, 31, .17);
  --white: #fffdf9;
  --shadow: 0 18px 44px rgba(30, 24, 17, .14);
  --content-width: 1180px;
  --page-gutter: 24px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
body, .section--paper, .about, .exposition-card, .spotlight__stage, .modal__panel, .document-showcase { transition: color .28s ease, background-color .28s ease, border-color .28s ease; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
.wrap { width: min(var(--content-width), calc(100% - (var(--page-gutter) * 2))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 10px 14px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: 90px; padding: 0 max(30px, calc((100vw - var(--content-width)) / 2)); display: flex; align-items: center; justify-content: space-between; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand__crest { position: relative; flex: 0 0 43px; width: 43px; height: 52px; display: grid; place-items: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,.34)); }
.brand__crest img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; font: 15px/1.2 var(--serif); letter-spacing: .02em; text-transform: uppercase; }
.brand__text small { margin-top: 5px; color: rgba(255,255,255,.62); font: 9px/1 var(--sans); letter-spacing: .21em; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 2.3vw, 36px); }
.main-nav a { position: relative; font-size: 12px; text-decoration: none; color: rgba(255,255,255,.78); transition: color .2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -12px; height: 1px; background: var(--gold-light); transition: right .25s ease; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.is-active { color: var(--white); }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.is-active::after { right: 0; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle { position: relative; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: rgba(255,255,255,.85); background: rgba(0,0,0,.16); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.theme-toggle:hover { border-color: var(--gold-light); background: rgba(180,138,66,.15); transform: rotate(6deg); }
.theme-toggle svg { position: absolute; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s ease, transform .25s ease; }
.theme-toggle__moon { opacity: 0; transform: rotate(-30deg) scale(.7); }
[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(30deg) scale(.7); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 0; background: transparent; color: inherit; }
.menu-toggle span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: currentColor; }

.hero { position: relative; min-height: 780px; height: 100svh; color: var(--white); overflow: hidden; background: var(--night); }
.hero__image, .closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__image { object-position: 55% center; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,7,5,.94) 0%, rgba(11,10,7,.72) 35%, rgba(10,9,6,.14) 76%), linear-gradient(0deg, rgba(0,0,0,.45), transparent 42%); }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 60px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: #8d7448; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow span { width: 36px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-light); }
.hero h1 { max-width: 730px; margin: 0; font: 400 clamp(44px, 4.7vw, 68px)/1.03 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.hero__lead { max-width: 560px; margin: 28px 0 32px; color: rgba(255,255,255,.78); font-size: 17px; }
.hero__actions { display: flex; align-items: center; gap: 30px; }
.hero__credit { position: absolute; z-index: 3; right: 22px; bottom: 16px; max-width: 520px; margin: 0; color: rgba(255,255,255,.46); font-size: 8px; text-align: right; }
.button { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; border: 1px solid transparent; border-radius: 1px; cursor: pointer; font-size: 12px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--gold { color: #fff; background: var(--gold); box-shadow: 0 10px 28px rgba(100,69,21,.24); }
.button--gold:hover { background: #c19951; }
.button--dark { color: #fff; background: var(--wood); }
.button--outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.65); }
.button--outline:hover { color: var(--ink); background: #fff; }
.text-link { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid currentColor; color: #765c2d; font-size: 12px; font-weight: 700; text-decoration: none; }
.text-link--light { color: rgba(255,255,255,.86); }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 36px; width: 26px; height: 38px; transform: translateX(-50%); }
.hero__scroll span::before, .hero__scroll span::after { content: ""; position: absolute; bottom: 10px; width: 13px; height: 1px; background: #fff; }
.hero__scroll span::before { right: 3px; transform: rotate(-45deg); }
.hero__scroll span::after { left: 3px; transform: rotate(45deg); }

.section { padding: 92px 0; }
.section--paper { background: radial-gradient(circle at 72% 10%, #fff 0, transparent 34%), var(--paper); }
.section-heading { margin-bottom: 46px; }
.section-heading h2, .about h2, .spotlight h2, .gallery h2, .closing h2 { margin: 0; font: 400 clamp(38px, 5vw, 58px)/1.08 var(--serif); letter-spacing: -.025em; }
.section-heading--split { display: grid; grid-template-columns: 1fr minmax(280px, 390px); gap: 40px; align-items: end; }
.section-heading--split p:last-child { margin: 0 0 6px; color: var(--muted); font: 15px/1.7 var(--serif); }
.filters { display: flex; gap: 8px; margin: -10px 0 28px; overflow-x: auto; }
.filter { padding: 9px 15px; white-space: nowrap; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.filter:hover, .filter.is-active { border-color: var(--wood); color: var(--white); background: var(--wood); }
.exposition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.exposition-card { min-width: 0; border: 1px solid var(--line); background: rgba(255,255,255,.4); box-shadow: 0 5px 14px rgba(30,24,17,.05); transition: transform .28s ease, box-shadow .28s ease; }
.exposition-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.exposition-card[hidden] { display: none; }
.exposition-card__image { position: relative; height: 215px; overflow: hidden; background: #d8d0c5; }
.exposition-card__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(.98); transition: transform .55s ease, filter .35s ease; }
.exposition-card:hover img { transform: scale(1.035); filter: saturate(.95); }
.exposition-card__body { min-height: 118px; display: grid; grid-template-columns: 48px 1fr 28px; align-items: start; padding: 20px 18px; }
.exposition-card__number { padding-top: 3px; color: #8e7b61; font: 12px var(--serif); }
.exposition-card h3 { margin: 0 0 5px; font: 400 19px/1.25 var(--serif); }
.exposition-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.exposition-card__body > a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); text-decoration: none; font-size: 18px; }
.exposition-card__body > a:hover { background: var(--paper-deep); }

.about { padding-bottom: 0; background: linear-gradient(120deg, #e9e3da, #f7f4ee 60%, #ded6ca); }
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; min-height: 430px; }
.about__copy { padding-bottom: 90px; }
.about__copy .lead { max-width: 630px; margin: 28px 0 18px; font: 17px/1.75 var(--serif); }
.about__copy > p:not(.eyebrow):not(.lead) { max-width: 610px; color: var(--muted); font-size: 13px; }
.about__copy .text-link { margin-top: 18px; }
.about__visual { position: relative; min-height: 360px; display: grid; place-items: end center; overflow: hidden; }
.justice-image { width: min(570px, 115%); max-width: none; max-height: 500px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 22px 22px rgba(48,31,16,.24)); }
.seal-word { position: absolute; top: 15px; right: 0; color: rgba(52,39,25,.05); font: 700 80px/1 var(--serif); writing-mode: vertical-rl; }
.scales { position: relative; width: 330px; height: 310px; color: #74502a; filter: drop-shadow(0 22px 18px rgba(48,31,16,.25)); }
.scales__stem { position: absolute; left: 50%; top: 45px; width: 9px; height: 230px; background: linear-gradient(90deg,#4d3019,#bb874c,#4d3019); transform: translateX(-50%); }
.scales__stem::before { content: ""; position: absolute; left: 50%; top: -34px; width: 34px; height: 34px; border: 6px solid #7b522e; border-radius: 50%; transform: translateX(-50%); }
.scales__stem::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 115px; height: 18px; border-radius: 50%; background: linear-gradient(#9d6d3b,#52321a); transform: translateX(-50%); }
.scales__beam { position: absolute; z-index: 2; left: 50%; top: 78px; width: 290px; height: 7px; background: linear-gradient(#a97845,#50321d); transform: translateX(-50%) rotate(-2deg); }
.scales__pan { position: absolute; top: 88px; width: 112px; height: 105px; border-left: 2px solid #6c4828; border-right: 2px solid #6c4828; }
.scales__pan::after { content: ""; position: absolute; left: -10px; bottom: 0; width: 128px; height: 36px; border-bottom: 8px solid #76502d; border-radius: 0 0 70% 70%; }
.scales__pan--left { left: 5px; }
.scales__pan--right { right: 5px; top: 78px; }
.about__facts { color: #f0e8d9; background: #20282c; }
.facts-grid { min-height: 134px; display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; align-items: center; gap: 15px; padding: 28px 24px; border-right: 1px solid rgba(255,255,255,.1); }
.fact:last-child { border-right: 0; }
.fact b { color: var(--gold-light); font: 25px/1 var(--serif); }
.fact span { color: rgba(255,255,255,.62); font-size: 10px; line-height: 1.5; }
.fact strong { display: block; margin-bottom: 3px; color: #fff; font-size: 11px; }

.spotlight__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 38px; }
.spotlight__controls { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 11px; }
.spotlight__controls button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.spotlight__controls button:hover { color: white; background: var(--wood); }
.spotlight__stage { display: grid; grid-template-columns: 1.45fr .75fr; min-height: 470px; background: #e5ded4; box-shadow: var(--shadow); }
.spotlight__image-button { position: relative; min-height: 470px; padding: 0; overflow: hidden; border: 0; background: #2e261d; cursor: zoom-in; }
.spotlight__image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.spotlight__image-button:hover img { transform: scale(1.025); }
.spotlight__image-button > span { position: absolute; right: 18px; bottom: 18px; padding: 9px 12px; color: #fff; background: rgba(20,18,14,.72); font-size: 10px; }
.spotlight__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 5vw, 70px); }
.material-label { display: inline-block; padding: 6px 8px; color: #735a2c; background: #e4d3b5; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.spotlight__number { margin: 24px 0 8px; color: #897b68; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.spotlight__copy h3 { margin: 0; font: 400 34px/1.12 var(--serif); }
.spotlight__copy > p:last-of-type { margin: 20px 0 28px; color: var(--muted); font: 14px/1.75 var(--serif); }
.thumbnail-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 16px; }
.thumbnail { position: relative; height: 92px; padding: 0; overflow: hidden; border: 2px solid transparent; background: #ddd; cursor: pointer; opacity: .62; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail span { position: absolute; left: 6px; bottom: 5px; padding: 2px 5px; color: #fff; background: rgba(0,0,0,.62); font-size: 8px; }
.thumbnail.is-active { border-color: var(--gold); opacity: 1; }

.gallery { position: relative; padding: 24px; background: #14130f; }
.courtroom-stage { position: relative; height: clamp(650px, 68vw, 820px); min-height: 650px; overflow: hidden; border: 1px solid rgba(214,177,105,.22); background: #17140f; box-shadow: 0 24px 70px rgba(14,11,7,.3); }
.courtroom-stage__open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.courtroom-stage__media { position: absolute; inset: 0 0 128px; display: block; overflow: hidden; background: #1b1712; }
.courtroom-stage__backdrop { position: absolute; inset: -34px; width: calc(100% + 68px); max-width: none; height: calc(100% + 68px); object-fit: cover; filter: blur(22px) saturate(.68) brightness(.52); transform: scale(1.06); }
.courtroom-stage__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: saturate(.92) contrast(1.02); transition: opacity .25s ease, transform .65s ease; }
.courtroom-stage.is-portrait .courtroom-stage__image { object-position: calc(100% - 54px) 50%; }
.courtroom-stage__open:hover .courtroom-stage__image { transform: scale(1.012); }
.courtroom-stage__zoom-label { position: absolute; right: 28px; bottom: 146px; z-index: 3; padding: 11px 14px; border: 1px solid rgba(255,255,255,.2); color: #fff; background: rgba(18,15,11,.7); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(10px); }
.courtroom-stage__shade { position: absolute; inset: 0 0 128px; background: linear-gradient(90deg, rgba(12,10,8,.23), transparent 48%), linear-gradient(180deg, rgba(12,10,8,.1), transparent 36%, rgba(12,10,8,.18)); pointer-events: none; }
.courtroom-stage__title { position: absolute; z-index: 2; top: 34px; left: 34px; width: min(700px, calc(100% - 68px)); margin: 0; padding: 23px 27px 25px; border: 1px solid rgba(255,255,255,.48); background: rgba(244,240,233,.91); box-shadow: 0 12px 34px rgba(17,13,8,.16); backdrop-filter: blur(14px); transform: none; }
.courtroom-stage.is-portrait .courtroom-stage__title { width: min(540px, calc(100% - 68px)); }
.courtroom-stage__title .eyebrow { margin-bottom: 13px; }
.courtroom-stage__title h2 { max-width: 650px; margin-bottom: 8px; color: #1d1914; font-size: clamp(34px, 3.6vw, 53px); }
.courtroom-stage__caption { max-width: 620px; margin: 0; color: rgba(29,25,20,.72); font: 14px/1.55 var(--serif); }
.courtroom-stage__authentic { display: inline-block; margin-top: 14px; padding: 6px 8px; color: #fff; background: #6f5327; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.room-gallery-rail { position: absolute; z-index: 4; left: 50%; bottom: 16px; width: min(1180px, calc(100% - 32px)); height: 96px; display: grid; grid-template-columns: 44px minmax(0,1fr) 58px 44px; gap: 9px; align-items: stretch; padding: 9px; background: rgba(242,238,231,.94); box-shadow: 0 13px 38px rgba(0,0,0,.34); transform: translateX(-50%); backdrop-filter: blur(14px); }
.room-thumbs { min-width: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
.room-thumbs::-webkit-scrollbar { display: none; }
.room-thumbs button { flex: 0 0 118px; min-width: 0; height: 78px; padding: 0; overflow: hidden; border: 2px solid transparent; background: #cfc7bc; cursor: pointer; scroll-snap-align: center; opacity: .66; transition: border-color .2s ease, opacity .2s ease, transform .2s ease; }
.room-thumbs button:hover, .room-thumbs button.is-active { border-color: var(--gold); opacity: 1; }
.room-thumbs button:hover { transform: translateY(-2px); }
.room-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.room-gallery-rail__arrow { width: 44px; padding: 0; border: 1px solid rgba(50,42,32,.16); color: #3b3126; background: rgba(255,255,255,.52); cursor: pointer; font-size: 20px; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.room-gallery-rail__arrow:hover, .room-gallery-rail__arrow:focus-visible { border-color: var(--gold); color: #fff; background: #6f5327; outline: none; }
.room-gallery-rail__counter { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0; color: #746854; font: 11px var(--sans); }
.room-gallery-rail__counter span { color: #2d251c; font: 22px var(--serif); }
.room-gallery-rail__counter i { opacity: .45; font-style: normal; }

.document-showcase { padding: 70px 24px; color: #fff; background: linear-gradient(rgba(27,24,18,.72),rgba(27,24,18,.72)), url("../images/exhibition-history.webp") center/cover; }
.content-error { grid-column: 1 / -1; margin: 0; padding: 28px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.45); text-align: center; }
.document-showcase__panel { position: relative; width: min(1120px, 100%); min-height: 540px; display: grid; grid-template-columns: 1.25fr .75fr; margin: auto; background: #eee8de; color: var(--ink); box-shadow: 0 35px 100px rgba(0,0,0,.42); }
.document-showcase__media { min-height: 540px; overflow: hidden; background: #342b21; }
.document-showcase__media img { width: 100%; height: 100%; object-fit: cover; }
.document-showcase__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(35px, 5vw, 66px); }
.document-showcase__copy > p:first-of-type { margin: 25px 0 8px; color: #8a785f; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.document-showcase__copy h2 { margin: 0; font: 400 clamp(34px, 4vw, 48px)/1.04 var(--serif); }
.document-showcase__copy > p:last-of-type { margin: 22px 0 28px; color: var(--muted); font: 14px/1.72 var(--serif); }

.closing { position: relative; height: 560px; display: grid; place-items: center; color: #fff; overflow: hidden; }
.closing__veil { position: absolute; inset: 0; background: rgba(11,10,7,.69); }
.closing__content { position: relative; z-index: 2; text-align: center; }
.closing__content .eyebrow { justify-content: center; }
.closing h2 { margin-bottom: 34px; font-size: clamp(42px, 6vw, 68px); }
.site-footer { padding: 50px 0; color: rgba(255,255,255,.62); background: #11130f; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: center; }
.brand--footer { color: #fff; }
.site-footer p { margin: 0; font-size: 11px; }
.site-footer__meta { display: grid; gap: 7px; }
.site-footer__meta small { color: rgba(255,255,255,.38); font-size: 9px; }
.site-footer a { font-size: 11px; text-decoration: none; }

[data-theme="dark"] {
  --ink: #eee9df;
  --muted: #aaa196;
  --paper: #171916;
  --paper-deep: #262922;
  --line: rgba(224,212,190,.16);
  --white: #fffdf9;
  --shadow: 0 18px 44px rgba(0,0,0,.34);
}
[data-theme="dark"] body { background: #12140f; }
[data-theme="dark"] .section--paper { background: radial-gradient(circle at 72% 10%, #24261f 0, transparent 34%), #171916; }
[data-theme="dark"] .exposition-card { background: #20221d; }
[data-theme="dark"] .exposition-card__image { background: #2b2b25; }
[data-theme="dark"] .about { background: linear-gradient(120deg, #1c1e19, #24251f 60%, #171914); }
[data-theme="dark"] .about__visual { background: radial-gradient(circle at 50% 45%, rgba(180,138,66,.14), transparent 60%); }
[data-theme="dark"] .spotlight__stage, [data-theme="dark"] .modal__panel, [data-theme="dark"] .document-showcase__panel { background: #24251f; }
[data-theme="dark"] .filter:hover, [data-theme="dark"] .filter.is-active { background: #b48a42; }
[data-theme="dark"] .courtroom-stage__shade { background: linear-gradient(90deg, rgba(6,6,4,.28), transparent 48%), linear-gradient(180deg, rgba(6,6,4,.12), transparent 36%, rgba(6,6,4,.2)); }
[data-theme="dark"] .courtroom-stage__title h2 { color: #f4efe7; }
[data-theme="dark"] .courtroom-stage__caption { color: rgba(244,239,231,.72); }
[data-theme="dark"] .courtroom-stage__title { border-color: rgba(255,255,255,.12); background: rgba(27,29,24,.9); }
[data-theme="dark"] .room-gallery-rail { background: rgba(28,30,25,.94); }
[data-theme="dark"] .room-gallery-rail__arrow { border-color: rgba(255,255,255,.12); color: #eee7da; background: rgba(255,255,255,.04); }
[data-theme="dark"] .room-gallery-rail__counter { color: #aaa196; }
[data-theme="dark"] .room-gallery-rail__counter span { color: #f1eadf; }
[data-theme="dark"] .modal__close { color: #f6f0e6; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 28px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,9,7,.88); backdrop-filter: blur(8px); }
.modal__panel { position: relative; z-index: 1; width: min(1120px, 100%); max-height: calc(100svh - 56px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); overflow: auto; background: #eee8de; box-shadow: 0 34px 100px rgba(0,0,0,.45); animation: modal-in .28s ease both; }
.modal__media { min-height: 580px; background: #1b1814; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__copy { display: flex; flex-direction: column; justify-content: center; padding: 55px 48px; }
.modal__meta { margin: 27px 0 7px; color: #88765f; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.modal__copy h2 { margin: 0; font: 400 38px/1.1 var(--serif); }
.modal__copy > p:last-of-type { color: var(--muted); font: 14px/1.75 var(--serif); }
.modal__footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; text-transform: uppercase; }
.modal__close { position: absolute; z-index: 3; top: 14px; right: 15px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 27px; font-weight: 200; }
.modal__arrow { position: fixed; z-index: 4; top: 50%; width: 50px; height: 70px; border: 0; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; font-size: 38px; transform: translateY(-50%); }
.modal__arrow:hover { background: var(--gold); }
.modal__arrow--prev { left: 12px; }
.modal__arrow--next { right: 12px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.99); } }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.exposition-search { display: grid; grid-template-columns: auto minmax(240px, 390px) 80px; align-items: center; justify-content: end; gap: 16px; margin: -22px 0 34px; }
.exposition-search label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.exposition-search > div { position: relative; }
.exposition-search input { width: 100%; height: 46px; padding: 0 46px 0 15px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: rgba(255,255,255,.42); font: 13px var(--sans); }
.exposition-search input:focus-visible { border-color: var(--gold); outline: 2px solid color-mix(in srgb,var(--gold) 48%,transparent); outline-offset: 2px; }
.exposition-search > div span { position: absolute; top: 50%; right: 15px; color: var(--gold); font: 24px/1 var(--serif); transform: translateY(-54%); pointer-events: none; }
.exposition-search output { min-height: 14px; color: var(--muted); font-size: 10px; }
.exposition-card[hidden] { display: none; }
.noscript-note { margin: 22px 0 0; padding: 14px 16px; border-left: 2px solid var(--gold); color: var(--muted); background: rgba(180,138,66,.08); font-size: 12px; }
.modal__source { align-self: flex-start; margin-top: 18px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: #765c2d; font-size: 10px; font-weight: 700; text-decoration: none; }
.modal__credit { margin-top: 12px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.photo-modal[hidden] { display: none; }
.photo-modal { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 28px; }
.photo-modal__backdrop { position: absolute; inset: 0; background: rgba(8,7,5,.93); backdrop-filter: blur(8px); }
.photo-modal__panel { position: relative; z-index: 1; width: min(1320px, 100%); max-height: calc(100svh - 56px); display: grid; grid-template-columns: minmax(0, 1fr) 320px; margin: 0; overflow: hidden; color: var(--ink); background: var(--paper); box-shadow: 0 34px 110px rgba(0,0,0,.58); animation: modal-in .28s ease both; }
.photo-modal__panel > img { width: 100%; height: min(78svh, 800px); object-fit: contain; background: #11100d; }
.photo-modal figcaption { display: flex; flex-direction: column; justify-content: center; padding: 48px 34px; }
.photo-modal figcaption > p:first-child { margin: 0 0 18px; color: #806537; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.photo-modal figcaption h2 { margin: 0; font: 400 34px/1.08 var(--serif); }
.photo-modal figcaption > p:not(:first-child) { margin: 20px 0; color: var(--muted); font: 14px/1.72 var(--serif); }
.photo-modal figcaption > span { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); color: #806537; font-size: 8px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.photo-modal__close { position: absolute; z-index: 4; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; color: var(--ink); background: transparent; cursor: pointer; font-size: 29px; }
.photo-modal__arrow { position: fixed; z-index: 4; top: 50%; width: 50px; height: 70px; border: 1px solid rgba(255,255,255,.2); color: #fff; background: rgba(16,14,11,.68); cursor: pointer; font-size: 38px; transform: translateY(-50%); }
.photo-modal__arrow:hover { color: #1a140c; background: var(--gold-light); }
.photo-modal__arrow--prev { left: 12px; }
.photo-modal__arrow--next { right: 12px; }
[data-theme="dark"] .photo-modal__panel { background: #24251f; }
[data-theme="dark"] .photo-modal__close { color: #f4efe7; }

@media (min-width: 1800px) {
  :root {
    --content-width: min(72vw, 2200px);
    --page-gutter: clamp(48px, 4vw, 120px);
  }
  .site-header { height: clamp(96px, 4.2vw, 124px); }
  .brand { gap: clamp(15px, .8vw, 24px); }
  .brand__crest { flex-basis: 58px; width: 58px; height: 68px; }
  .brand__text { font-size: clamp(16px, .82vw, 22px); }
  .brand__text small { font-size: clamp(9px, .46vw, 12px); }
  .main-nav { gap: clamp(28px, 1.7vw, 54px); }
  .main-nav a { font-size: clamp(13px, .66vw, 18px); }
  .theme-toggle { width: clamp(40px, 2vw, 54px); height: clamp(40px, 2vw, 54px); }
  .theme-toggle svg { width: clamp(18px, .95vw, 25px); height: clamp(18px, .95vw, 25px); }
  .hero { min-height: 900px; }
  .hero__content { padding-top: 90px; }
  .hero h1 { max-width: min(47vw, 1120px); font-size: clamp(68px, 3.15vw, 104px); }
  .hero__lead { max-width: min(34vw, 800px); margin-block: clamp(30px, 1.5vw, 46px); font-size: clamp(18px, .9vw, 26px); }
  .eyebrow { margin-bottom: clamp(22px, 1.2vw, 34px); font-size: clamp(10px, .5vw, 14px); }
  .button { min-height: clamp(52px, 2.6vw, 70px); padding-inline: clamp(24px, 1.3vw, 38px); font-size: clamp(12px, .62vw, 17px); }
  .text-link { font-size: clamp(12px, .62vw, 17px); }
  .section { padding: clamp(104px, 5.2vw, 155px) 0; }
  .section-heading { margin-bottom: clamp(48px, 2.5vw, 74px); }
  .section-heading h2, .about h2, .spotlight h2, .gallery h2, .closing h2 { font-size: clamp(58px, 2.75vw, 84px); }
  .section-heading--split { grid-template-columns: 1fr minmax(430px, 32%); gap: 70px; }
  .section-heading--split p:last-child { font-size: clamp(16px, .78vw, 22px); }
  .exposition-grid { gap: clamp(24px, 1.25vw, 38px); }
  .exposition-card__image { height: clamp(260px, 13.5vw, 410px); }
  .exposition-card__body { min-height: clamp(130px, 6.8vw, 195px); grid-template-columns: clamp(50px, 2.7vw, 78px) 1fr 38px; padding: clamp(22px, 1.2vw, 36px); }
  .exposition-card__number { font-size: clamp(13px, .65vw, 18px); }
  .exposition-card h3 { font-size: clamp(21px, 1.05vw, 30px); }
  .exposition-card p { font-size: clamp(12px, .62vw, 17px); }
  .exposition-card__body > a { width: 36px; height: 36px; font-size: 23px; }
  .about__grid { gap: clamp(80px, 5vw, 150px); min-height: clamp(520px, 28vw, 780px); }
  .about__copy { padding-bottom: clamp(100px, 5vw, 150px); }
  .about__copy .lead { max-width: 900px; font-size: clamp(19px, .95vw, 27px); }
  .about__copy > p:not(.eyebrow):not(.lead) { max-width: 850px; font-size: clamp(14px, .7vw, 20px); }
  .about__visual { min-height: 500px; }
  .justice-image { width: min(760px, 115%); max-height: 720px; }
  .facts-grid { min-height: clamp(150px, 7vw, 215px); }
  .fact { gap: clamp(18px, 1vw, 30px); padding: clamp(30px, 1.8vw, 50px); }
  .fact b { font-size: clamp(27px, 1.3vw, 38px); }
  .fact span { font-size: clamp(11px, .55vw, 16px); }
  .fact strong { font-size: clamp(12px, .62vw, 17px); }
  .spotlight__stage { min-height: clamp(560px, 31vw, 900px); }
  .spotlight__image-button { min-height: clamp(560px, 31vw, 900px); }
  .spotlight__copy h3 { font-size: clamp(38px, 1.9vw, 56px); }
  .spotlight__copy > p:last-of-type { font-size: clamp(15px, .76vw, 22px); }
  .material-label, .spotlight__number { font-size: clamp(9px, .46vw, 13px); }
  .thumbnail { height: clamp(100px, 5vw, 150px); }
  .courtroom-stage { height: min(54vw, 1180px); min-height: 760px; }
  .courtroom-stage__media, .courtroom-stage__shade { bottom: 154px; }
  .room-gallery-rail { width: min(68vw, 1580px); height: 118px; grid-template-columns: 52px minmax(0,1fr) 68px 52px; }
  .room-thumbs button { flex-basis: 150px; height: 100px; }
  .room-gallery-rail__arrow { width: 52px; }
  .courtroom-stage__zoom-label { bottom: 174px; }
  .document-showcase { padding-block: clamp(90px, 4.5vw, 136px); }
  .document-showcase__panel, .modal__panel { width: min(68vw, 1900px); }
  .document-showcase__panel, .document-showcase__media { min-height: clamp(620px, 34vw, 960px); }
  .document-showcase__copy h2 { font-size: clamp(48px, 2.45vw, 72px); }
  .document-showcase__copy > p:last-of-type { font-size: clamp(15px, .76vw, 22px); }
  .site-footer { padding-block: clamp(54px, 2.8vw, 82px); }
  .site-footer p, .site-footer a { font-size: clamp(11px, .55vw, 16px); }
  .modal__media { min-height: clamp(620px, 36vw, 980px); }
  .modal__copy h2 { font-size: clamp(42px, 2vw, 60px); }
  .modal__copy > p:last-of-type { font-size: clamp(15px, .76vw, 22px); }
}

@media (max-width: 980px) {
  .site-header { padding-inline: 24px; }
  .menu-toggle { display: block; z-index: 2; }
  .main-nav { position: absolute; top: 74px; right: 18px; width: min(290px, calc(100vw - 36px)); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; color: var(--ink); }
  .main-nav a::after { display: none; }
  .main-nav a:hover, .main-nav a:focus-visible, .main-nav a.is-active { color: #745a2f; background: #e8e0d3; }
  .exposition-grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1.2fr .8fr; gap: 20px; }
  .justice-image { width: 115%; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .spotlight__stage { grid-template-columns: 1.2fr .8fr; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__media { min-height: 44svh; max-height: 52svh; }
  .modal__copy { padding: 36px; }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 30px, 1180px); }
  .site-header { height: 76px; padding-inline: 15px; }
  .brand__text { font-size: 12px; }
  .brand__crest { transform: scale(.88); transform-origin: left center; margin-right: -2px; }
  .hero { min-height: 690px; }
  .hero__content { padding-top: 35px; }
  .hero h1 { font-size: clamp(40px, 12vw, 60px); }
  .hero__lead { font-size: 15px; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .prototype-note { left: 15px; right: auto; bottom: 16px; }
  .hero__scroll { display: none; }
  .section { padding: 76px 0; }
  .section-heading--split { grid-template-columns: 1fr; gap: 18px; }
  .exposition-grid { grid-template-columns: 1fr; }
  .exposition-search { grid-template-columns: 1fr; justify-content: stretch; gap: 8px; margin-top: -8px; }
  .exposition-search output { min-height: 0; }
  .exposition-card__image { height: 225px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__copy { padding-bottom: 30px; }
  .about__visual { height: clamp(300px, 88vw, 370px); min-height: 0; }
  .justice-image { width: min(108%, 430px); height: 100%; max-height: none; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { min-height: 132px; padding: 22px 14px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
  .fact:nth-child(even) { border-right: 0; }
  .fact:nth-child(n+3) { border-bottom: 0; }
  .fact strong { font-size: 10px; }
  .fact span { font-size: 9px; }
  .spotlight__head { align-items: flex-start; flex-direction: column; gap: 24px; }
  .spotlight__stage { grid-template-columns: 1fr; }
  .spotlight__image-button { min-height: 310px; }
  .spotlight__copy { padding: 34px 26px 38px; }
  .thumbnail-rail { display: flex; overflow-x: auto; padding-bottom: 8px; }
  .thumbnail { min-width: 120px; }
  .gallery { padding: 10px; }
  .courtroom-stage { height: 720px; min-height: 620px; }
  .courtroom-stage__media, .courtroom-stage__shade { bottom: 116px; }
  .courtroom-stage__title { top: 18px; left: 18px; width: calc(100% - 36px); padding: 19px 20px 21px; }
  .courtroom-stage.is-portrait .courtroom-stage__media, .courtroom-stage.is-portrait .courtroom-stage__shade { top: 190px; }
  .courtroom-stage.is-portrait .courtroom-stage__title { width: calc(100% - 36px); }
  .courtroom-stage.is-portrait .courtroom-stage__image { object-position: center; }
  .courtroom-stage__title h2 { font-size: clamp(31px, 9vw, 43px); }
  .courtroom-stage__caption { max-width: none; font-size: 12px; }
  .courtroom-stage__zoom-label { right: 18px; bottom: 128px; }
  .room-gallery-rail { bottom: 10px; width: calc(100% - 20px); height: 96px; grid-template-columns: 42px minmax(0,1fr) 42px; gap: 7px; padding: 9px; }
  .room-gallery-rail__counter { display: none; }
  .room-gallery-rail__arrow { width: 42px; }
  .room-thumbs button { flex-basis: 106px; height: 78px; }
  .document-showcase { padding: 34px 15px; }
  .document-showcase__panel { grid-template-columns: 1fr; }
  .document-showcase__media { min-height: 360px; }
  .document-showcase__copy { padding: 34px 26px 40px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal__panel { width: 100%; max-height: 100svh; min-height: 100svh; }
  .modal__media { min-height: 42svh; }
  .modal__copy { padding: 30px 24px 38px; }
  .modal__copy h2 { font-size: 31px; }
  .modal__arrow { top: 21svh; width: 42px; height: 58px; }
  .modal__arrow--prev { left: 0; }
  .modal__arrow--next { right: 0; }
  .modal__close { color: #fff; text-shadow: 0 1px 5px #000; }
  .photo-modal { padding: 0; }
  .photo-modal__panel { width: 100%; max-height: 100svh; min-height: 100svh; grid-template-columns: 1fr; grid-template-rows: minmax(270px, 56svh) 1fr; overflow-y: auto; }
  .photo-modal__panel > img { width: 100%; height: 100%; }
  .photo-modal figcaption { min-height: 44svh; padding: 31px 24px max(34px, env(safe-area-inset-bottom)); }
  .photo-modal__close { color: #fff; text-shadow: 0 1px 5px #000; }
  .photo-modal__arrow { position: absolute; top: 28svh; width: 42px; height: 58px; }
  .photo-modal__arrow--prev { left: 0; }
  .photo-modal__arrow--next { right: 0; }
}

@media (max-width: 360px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(even), .fact:nth-child(n+3) { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .fact:last-child { border-bottom: 0; }
}

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

.modal__panel { scrollbar-width: none; }
.modal__panel::-webkit-scrollbar { display: none; }

@media (max-width: 700px) {
  .site-header { padding-left: max(15px, env(safe-area-inset-left)); padding-right: max(15px, env(safe-area-inset-right)); }
  .brand__text { max-width: 190px; }
  .hero { height: auto; min-height: 100svh; }
  .hero__content {
    justify-content: flex-start;
    padding-top: max(112px, calc(100px + env(safe-area-inset-top)));
    padding-bottom: max(70px, env(safe-area-inset-bottom));
  }
  .hero__credit { right: 15px; bottom: 12px; left: 15px; max-width: none; text-align: left; }
  .thumbnail-rail { scroll-snap-type: x proximity; scrollbar-width: thin; overscroll-behavior-inline: contain; }
  .thumbnail { min-width: 124px; min-height: 88px; scroll-snap-align: start; }
  .spotlight__controls button, .theme-toggle, .menu-toggle { min-width: 44px; min-height: 44px; }
  .modal__panel { grid-template-rows: minmax(220px, 42svh) auto; overflow-y: auto; }
  .modal__media { height: 100%; min-height: 0; max-height: none; }
  .modal__copy { padding-bottom: max(38px, env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .brand__text small { display: none; }
  .brand__text { max-width: 165px; font-size: 11px; }
  .header-tools { gap: 7px; }
  .hero h1 { overflow-wrap: anywhere; }
  .section-heading h2, .about h2, .spotlight h2, .gallery h2, .closing h2 { font-size: clamp(36px, 11vw, 50px); }
  .modal__copy > p:last-of-type, .modal__source, .modal__credit { overflow-wrap: anywhere; }
}

@media (max-height: 600px) and (orientation: landscape) {
  .modal__panel { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); grid-template-rows: 1fr; min-height: 100svh; }
  .modal__media { height: 100svh; }
  .modal__copy { padding: 24px 38px 24px 28px; }
  .modal__arrow { top: 50%; }
}
