@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/work-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/space-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #000000;
  --paper: #ffffff;
  --accent: #1B3BD0;
  --mute: #575757;
  --mist: #e0e0e0;
  --shade: #f4f4f2;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --cut-in: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
  --gap-x: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0 0 18px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.vault { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 90;
  background: var(--ink); color: var(--paper); padding: 14px 22px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none;
}
.skip:focus { left: 0; }

.frame { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gap-x); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 14px;
}

/* ---------- rail ---------- */
.rail { position: sticky; top: 0; z-index: 40; background: var(--paper); }
.rail__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }

.mark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.mark__b { color: var(--accent); }

.rail__list { display: flex; align-items: center; gap: 26px; }
.rail__link {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px;
}
.rail__link:hover { color: var(--accent); }

.rail__key {
  display: none; width: 48px; height: 48px; padding: 12px; background: none; border: 0;
  cursor: pointer; flex-direction: column; justify-content: center; gap: 5px;
}
.rail__bar { display: block; height: 1px; width: 100%; background: var(--ink); }
.rail__key[aria-expanded="true"] .rail__bar:nth-child(2) { opacity: 0; }

/* ---------- foyer ---------- */
.foyer { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); text-align: center; }
.foyer__label { margin-bottom: 26px; }
.foyer__title { font-size: clamp(36px, 6.6vw, 64px); max-width: 15em; margin: 0 auto 26px; }
.foyer__lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--mute); max-width: 34em; margin: 0 auto 34px; }
.foyer__acts { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 0 0 clamp(44px, 6vw, 76px); }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.strip__plate { margin: 0; }
.strip__plate .label { margin: 14px 0 0; text-align: left; }

/* ---------- mounts ---------- */
.mount { display: block; width: 100%; overflow: hidden; background: var(--shade); }
.mount img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mount--wide { aspect-ratio: 16 / 9; }
.mount--tall { aspect-ratio: 3 / 4; }

/* ---------- walls ---------- */
.wall { padding-block: clamp(56px, 7vw, 100px); }
.wall--tight { padding-block: clamp(44px, 5vw, 76px); }
.wall__head { margin-bottom: clamp(32px, 4vw, 56px); }
.wall__title { font-size: clamp(28px, 3.8vw, 44px); max-width: 18em; }
.wall__lede { margin-top: 20px; color: var(--mute); max-width: 42em; font-size: 18px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 32px; row-gap: clamp(48px, 6vw, 84px); }
.plate { min-width: 0; }
.plate--major { grid-column: 1 / 5; }
.plate--tall { grid-column: 5 / 7; }
.plate--left { grid-column: 1 / 4; }
.plate--right { grid-column: 4 / 7; }
.plate--centre { grid-column: 2 / 6; }
.plate__tag { margin: 16px 0 12px; }
.plate__title { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 16px; }
.plate--major .plate__title { font-size: clamp(26px, 2.8vw, 36px); }
.plate__note { color: var(--mute); max-width: 40em; }
.plate__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.plate__num { font-family: var(--mono); font-size: 14px; }
.plate__count { font-family: var(--mono); font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- stars ---------- */
.stars { position: relative; display: inline-block; line-height: 0; }
.stars__row { display: flex; gap: 3px; }
.stars__row--base { color: var(--mist); }
.stars__row--fill { position: absolute; top: 0; left: 0; overflow: hidden; color: var(--ink); }
.stars__ico { width: 15px; height: 15px; fill: currentColor; flex: none; }
.stars--sm .stars__ico { width: 13px; height: 13px; }

/* ---------- docket ---------- */
.docket { display: grid; gap: clamp(28px, 3vw, 44px); }
.docket__row { display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: start; }
.docket__num { margin: 4px 0 0; color: var(--accent); }
.docket__title { font-size: 22px; margin-bottom: 12px; }
.docket__body p { color: var(--mute); max-width: 44em; margin: 0; }

.stand { background: var(--shade); padding: clamp(24px, 3vw, 40px); margin-top: clamp(36px, 4vw, 56px); }
.stand .label { margin-bottom: 12px; }
.stand__text { margin: 0; max-width: 52em; }

/* ---------- tableau ---------- */
.tableau { overflow-x: auto; }
.tableau__grid { width: 100%; min-width: 860px; border-collapse: collapse; text-align: left; }
.tableau__caption { text-align: left; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); padding-bottom: 18px; }
.tableau__grid thead th {
  font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0 20px 14px 0; border-bottom: 1px solid var(--ink); vertical-align: bottom;
}
.tableau__grid tbody th, .tableau__grid tbody td { padding: 18px 20px 18px 0; font-weight: 400; vertical-align: top; font-size: 15px; }
.tableau__grid tbody th { white-space: nowrap; }
.tableau__grid tbody td { color: var(--mute); }
.tableau__grid tbody tr:nth-child(odd) th, .tableau__grid tbody tr:nth-child(odd) td { background: var(--shade); }
.tableau__grid tbody th:first-child, .tableau__grid tbody td:first-child { padding-left: 14px; }
.tableau__mark { width: 16px; height: 16px; color: var(--accent); vertical-align: -2px; margin-right: 4px; }
.tableau__note { margin: 22px 0 0; color: var(--mute); max-width: 44em; }

/* ---------- shelf ---------- */
.shelf { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 88px); row-gap: clamp(32px, 4vw, 52px); }
.shelf__ico { width: 26px; height: 26px; color: var(--accent); display: block; margin-bottom: 16px; }
.shelf__title { font-size: 21px; margin-bottom: 12px; }
.shelf__item p { color: var(--mute); margin: 0; max-width: 34em; }

/* ---------- voices ---------- */
.voices { columns: 3; column-gap: clamp(32px, 4vw, 64px); }
.voice { break-inside: avoid; margin: 0 0 clamp(32px, 4vw, 52px); display: block; }
.voice__quote { margin: 14px 0 14px; }
.voice__quote p { margin: 0; font-size: 18px; }
.voice__by { display: flex; flex-direction: column; gap: 4px; }
.voice__who { font-size: 15px; }
.voice__by .label { margin: 0; }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 3vw, 44px); align-items: start; }
.tier { padding: clamp(24px, 3vw, 38px); background: var(--shade); }
.tier__name { font-size: 26px; margin-bottom: 18px; }
.tier__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.tier__figure { font-family: var(--mono); font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.02em; }
.tier__per { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); }
.tier__list { display: grid; gap: 12px; margin-bottom: 28px; }
.tier__list li { padding-left: 22px; position: relative; color: var(--mute); }
.tier__list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 1px; background: var(--accent); }
.tier--dark { background: var(--ink); color: var(--paper); }
.tier--dark .label { color: #bdbdbd; }
.tier--dark .tier__per { color: #bdbdbd; }
.tier--dark .tier__list li { color: #e6e6e6; }
.tier--dark .tier__list li::before { background: var(--paper); }
.tiers__fine { margin: clamp(22px, 3vw, 32px) 0 0; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--mute); max-width: 60em; }

/* ---------- signal ---------- */
.signal { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.signal .wall__title { margin-bottom: 22px; }
.signal__text { font-size: 19px; max-width: 32em; margin-bottom: 28px; }
.signal__mail { font-family: var(--mono); font-size: clamp(17px, 2.2vw, 24px); letter-spacing: -0.01em; margin: 0 0 18px; }
.signal__fine { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--mute); margin: 0; max-width: 44em; }
.signal__aside { background: var(--shade); padding: clamp(22px, 2.6vw, 32px); margin: 0; color: var(--mute); }

/* ---------- queries ---------- */
.query + .query { border-top: 1px solid var(--mist); }
.query__head { margin: 0; }
.query__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: none; border: 0; padding: 24px 0; margin: 0; cursor: pointer; text-align: left;
  font-family: var(--sans); font-size: clamp(18px, 2vw, 22px); font-weight: 400; color: var(--ink);
  line-height: 1.25; letter-spacing: -0.01em; min-height: 48px;
}
.query__q:hover { color: var(--accent); }
.query__sign { position: relative; flex: none; width: 18px; height: 18px; }
.query__sign::before, .query__sign::after { content: ""; position: absolute; background: currentColor; }
.query__sign::before { top: 8px; left: 0; width: 18px; height: 2px; }
.query__sign::after { left: 8px; top: 0; width: 2px; height: 18px; }
.query__q[aria-expanded="true"] .query__sign::after { opacity: 0; }
.query__a { padding: 0 0 26px; }
.query__a p { margin: 0; color: var(--mute); max-width: 52em; font-size: 17px; }

/* ---------- acts ---------- */
.act {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 14px 26px; clip-path: var(--cut);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer; background: none; color: var(--ink);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.act--fill { background: var(--ink); color: var(--paper); }
.act--fill:hover { background: var(--accent); color: var(--paper); }
.act--fill:active { transform: translateY(1px); }
.act--fill:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent); background: var(--ink); }
.act--line { background: var(--ink); padding: 1px; }
.act__face {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  padding: 13px 25px; background: var(--paper); color: var(--ink); clip-path: var(--cut-in);
  transition: background-color .18s ease, color .18s ease;
}
.act--line:hover .act__face { background: var(--accent); color: var(--paper); }
.act--line:active { transform: translateY(1px); }
.act--line:focus-visible { outline: none; }
.act--line:focus-visible .act__face { box-shadow: inset 0 0 0 3px var(--accent); }
.act--ghost {
  padding: 12px 0; min-height: 48px; clip-path: none; color: var(--accent);
  text-decoration: underline; text-underline-offset: 5px;
}
.act--ghost:hover { color: var(--ink); }
.act--invert.act--fill { background: var(--paper); color: var(--ink); }
.act--invert.act--fill:hover { background: var(--accent); color: var(--paper); }
.act--invert.act--fill:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); background: var(--paper); }
.act--invert.act--line { background: var(--paper); }
.act--invert.act--line .act__face { background: var(--ink); color: var(--paper); }
.act--invert.act--line:hover .act__face { background: var(--accent); color: var(--paper); }

/* ---------- plinth ---------- */
.plinth { padding-block: clamp(48px, 6vw, 84px) 40px; }
.plinth__inner { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: clamp(28px, 3vw, 48px); }
.plinth__line { color: var(--mute); font-size: 15px; max-width: 26em; margin: 18px 0 0; }
.plinth__title { margin-bottom: 16px; }
.plinth__list { display: grid; gap: 10px; }
.plinth__link { color: var(--ink); text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; min-height: 32px; }
.plinth__link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.plinth__mail { margin: 14px 0 0; }
.plinth__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: clamp(40px, 5vw, 64px); }
.plinth__foot .label { margin: 0; }

/* ---------- ascend ---------- */
.ascend {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  width: 48px; height: 48px; padding: 0; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); clip-path: var(--cut);
  display: flex; align-items: center; justify-content: center;
}
.ascend:hover { background: var(--accent); }
.ascend:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent); }
.ascend__ico { width: 20px; height: 20px; }

/* ---------- consent ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: var(--ink); color: var(--paper); padding: clamp(20px, 2.4vw, 28px);
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 40px;
}
.consent .label { color: #bdbdbd; margin-bottom: 10px; }
.consent__body { flex: 1 1 30em; }
.consent__text { margin: 0; font-size: 14px; line-height: 1.65; color: #e6e6e6; }
.consent__text a { color: var(--paper); }
.consent__acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- legal pages ---------- */
.sheet { padding-block: clamp(40px, 5vw, 72px) clamp(48px, 6vw, 88px); }
.sheet__title { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 18px; max-width: 16em; }
.sheet__meta { margin-bottom: 36px; }
.sheet__body { max-width: 44em; }
.sheet__body h2 { font-size: clamp(21px, 2.2vw, 26px); margin: 44px 0 14px; }
.sheet__body h3 { font-size: 19px; margin: 28px 0 10px; }
.sheet__body p, .sheet__body li { color: var(--mute); }
.sheet__body ul { display: grid; gap: 10px; margin: 0 0 18px; }
.sheet__body li { padding-left: 22px; position: relative; }
.sheet__body li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 1px; background: var(--accent); }
.sheet__back { margin-top: 44px; }

.lost { padding-block: clamp(64px, 10vw, 140px); text-align: center; }
.lost__code { font-family: var(--mono); font-size: clamp(48px, 9vw, 96px); letter-spacing: -0.03em; margin: 0 0 18px; }
.lost__text { color: var(--mute); max-width: 32em; margin: 0 auto 32px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .plinth__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 999px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .plate--major, .plate--tall, .plate--left, .plate--right, .plate--centre { grid-column: auto; }
  .plate--major { grid-column: 1 / -1; }
  .voices { columns: 2; }
  .tiers, .signal { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .rail { position: relative; }
  .rail__key { display: flex; }
  .rail__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); display: none; padding: 4px var(--gap-x) 26px; z-index: 41; }
  .rail__nav.is-open { display: block; }
  .rail__list { flex-direction: column; align-items: stretch; gap: 0; }
  .rail__link { min-height: 52px; font-size: 13px; }
  .strip { grid-template-columns: 1fr; gap: 32px; }
  .shelf { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .voices { columns: 1; }
  .docket__row { grid-template-columns: 1fr; gap: 8px; }
  .foyer__title { max-width: none; }
  .plinth__inner { grid-template-columns: 1fr; }
  .consent { left: 0; right: 0; bottom: 0; }
  .foyer__acts .act { flex: 1 1 auto; }
}

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

[hidden] { display: none !important; }

section[id], .rail { scroll-margin-top: 84px; }

.mono { font-family: var(--mono); font-size: 0.92em; }

.tableau__who { display: flex; align-items: center; gap: 12px; }
.tableau__ico { width: 34px; height: 34px; flex: none; display: block; }
