@font-face {
  font-family: "Lab Grotesque";
  src: url("assets/reference/fonts/mikematas.com/LabGrotesque-Regular-f96bc60367.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lab Grotesque";
  src: url("assets/reference/fonts/mikematas.com/LabGrotesque-Medium-4280e756a1.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Lab Grotesque";
  src: url("assets/reference/fonts/mikematas.com/LabGrotesque-Bold-aaeecb4fa3.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* The Vitrine: a dimmed gallery wall, lit objects, and labels on paper.
   Work hangs as an object; every claim about judgement sits on a label that
   can be read against the object. */
:root {
  color-scheme: dark;
  /* wall */
  --paper: #0e1311;
  --surface: #161d1a;
  --ink: #eceae2;
  --muted: #9aa89f;
  --line: #26302b;
  /* label paper */
  --label: #f2efe6;
  --label-ink: #17180f;
  --label-muted: #63635a;
  --label-line: #d5d1c4;
  /* accent: the "showing now" mark */
  --accent: #b8331a;
  --accent-text: #f5815f;
  --blue: var(--accent-text);
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
html { scrollbar-color: var(--line) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  caret-color: var(--accent-text);
  font: 400 17px/1.55 "Lab Grotesque", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
h1, h2, h3, p, dl, dd, dt { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--label); }
.shell { width: min(calc(100% - var(--gutter) * 2), 1240px); margin-inline: auto; }
.skip { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; background: var(--label); color: var(--label-ink); transform: translateY(-160%); }
.skip:focus { transform: none; }

/* ---------- rail: gallery signage ---------- */
.rail { position: sticky; top: 0; z-index: 20; background: rgba(14, 19, 17, .94); backdrop-filter: blur(10px); }
.navigation { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.mark { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }
.mark-symbol { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; font-weight: 700; color: var(--muted); }
.mark-text { display: grid; line-height: 1.25; }
.mark-text strong { font-size: 15px; font-weight: 500; }
.mark-text em { font-style: normal; font-size: 12px; color: var(--muted); }
.desktop-navigation { display: flex; gap: 34px; }
.desktop-navigation a { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }
.desktop-navigation a:hover { color: var(--ink); }
.menu-button { display: none; min-height: 44px; padding: 0 18px; background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.menu-dialog { inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 24px var(--gutter); border: 0; background: var(--paper); color: var(--ink); }
.menu-dialog::backdrop { background: var(--paper); }
.menu-top { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 500; }
.menu-close { border: 0; background: transparent; min-height: 44px; padding: 8px 0 8px 16px; font-size: 14px; }
.menu-close span { padding-left: 8px; font-size: 24px; vertical-align: middle; }
.menu-dialog nav { min-height: calc(100% - 60px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
.menu-dialog nav a { font-size: 42px; line-height: 1.3; font-weight: 500; }
.menu-dialog nav a:hover { color: var(--accent-text); }

/* ---------- label kit: one module, every exhibit ---------- */
.kicker { font-size: 13px; font-weight: 500; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); }
.wall-label { display: grid; gap: 18px; align-content: start; padding: 26px; background: var(--label); color: var(--label-ink); border-radius: var(--radius); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.wall-label h1, .wall-label h2, .wall-label h3 { font-weight: 500; line-height: 1.06; letter-spacing: 0; text-wrap: balance; }
.wall-label h3 { font-size: 27px; }
.label-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; padding-top: 18px; border-top: 1px solid var(--label-line); }
.label-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--label-muted); }
.label-facts dd { margin-top: 6px; font-size: 15px; line-height: 1.45; }
.label-note { font-size: 15px; line-height: 1.5; color: var(--label-muted); }
.label-note--keyed { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.label-note strong { color: var(--label-ink); font-weight: 500; }
.note-index { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--label); font-size: 12px; font-weight: 700; }
.label-link { justify-self: start; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--label-ink); }
.label-link:hover { color: var(--accent); border-color: var(--accent); }
.label-link span { transition: transform .22s var(--ease); }
.label-link:hover span { transform: translateX(4px); }

/* ---------- lit objects ---------- */
.object, .exhibit-object { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.object img, .exhibit-object img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.object, .exhibit-object { box-shadow: 0 34px 80px -34px rgba(255, 246, 226, .17); }
.lit { box-shadow: 0 34px 80px -34px rgba(255, 246, 226, .17); }
.object-tag { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: var(--label); color: var(--label-ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.exhibit-object img, .object img { transition: transform .6s var(--ease); }
.exhibit-object:hover img, .object:hover img { transform: scale(1.02); }
/* Stepping closer: the label lifts a step as you approach the object. */
.exhibit:hover .wall-label, .exhibit:focus-within .wall-label,
.plinth:has(.object:hover) .wall-label, .plinth:has(.object:focus-within) .wall-label { transform: translateY(-5px); box-shadow: 0 34px 60px -32px rgba(0, 0, 0, .8); }

/* ---------- introduction and first exhibit ---------- */
.introduction { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: end; padding-top: 48px; }
.introduction h1 { font-size: clamp(38px, 5.4vw, 74px); font-weight: 500; line-height: 1.06; text-wrap: balance; }
.introduction p { max-width: 42ch; color: var(--muted); font-size: 17px; }
.plinth { padding-block: 32px 84px; }
.case-objects { display: grid; grid-template-columns: 1.06fr 1fr; gap: 18px; }
.case-objects .object { aspect-ratio: 4/3; }
.case-objects .object:nth-child(2) { aspect-ratio: 4/3; }
.plinth .wall-label { margin-top: 18px; }
.plinth .wall-label h2 { font-size: clamp(30px, 3.2vw, 48px); }
.plinth .wall-label { grid-template-columns: minmax(0, 1fr); }

/* ---------- gallery ---------- */
.gallery, .side-gallery { scroll-margin-top: 24px; }
.gallery-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: baseline; padding-bottom: 44px; border-top: 1px solid var(--line); padding-top: 44px; }
.gallery-head h2 { font-size: clamp(28px, 3.1vw, 44px); font-weight: 500; line-height: 1.1; }
.gallery-head p { color: var(--muted); font-size: 17px; max-width: 42ch; }
.hang { display: grid; gap: 72px; }
.exhibit { display: grid; gap: 22px; }
.exhibit--lead { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.exhibit--lead .exhibit-object { aspect-ratio: 4/3; }
.exhibit--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.exhibit--flip .exhibit-object { aspect-ratio: 16/10; }
.exhibit .wall-label h3 a:hover { color: var(--accent); }
.exhibit-note { color: var(--muted); font-size: 15px; max-width: 60ch; }
.side-gallery { margin-top: 96px; padding-top: 44px; border-top: 1px solid var(--line); }
.side-gallery-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: baseline; padding-bottom: 40px; }
.side-gallery-head h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; line-height: 1.12; }
.side-gallery-head p { color: var(--muted); font-size: 16px; max-width: 44ch; }
.side-hang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.side-hang .exhibit-object { aspect-ratio: 4/5; }
.side-hang .exhibit:nth-child(2) { margin-top: 64px; }
  .side-hang .exhibit:nth-child(2) .exhibit-object { aspect-ratio: 4/3; }

/* ---------- wall text ---------- */
.wall-text { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: 104px; padding-top: 48px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.wall-text h2 { font-size: clamp(30px, 3.2vw, 48px); font-weight: 500; line-height: 1.1; }
.wall-text-copy p { color: var(--muted); font-size: 18px; max-width: 66ch; }
.wall-text-copy p + p { margin-top: 20px; }
.wall-text-copy strong { color: var(--ink); font-weight: 500; }
.wall-text-links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; }
.text-link { display: inline-flex; gap: 14px; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 1px solid var(--line); }
.text-link span, .project-arrow { transition: transform .22s var(--ease); }
.text-link:hover span { transform: translateX(4px); }
.text-link:hover { color: var(--accent-text); border-color: var(--accent-text); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 12px 26px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--label); color: var(--label-ink); white-space: nowrap; transition: background .2s; }
.button:hover { background: var(--accent); color: var(--label); }
.text-link:active, .button:active { transform: translateY(1px); }

/* ---------- provenance ticket ---------- */
.ticket { display: grid; gap: 12px; padding: 22px 26px; border: 1px dashed var(--line); border-radius: var(--radius); }
.ticket .kicker { color: var(--muted); }
.ticket ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; color: var(--muted); font-size: 15px; }
.ticket li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; }
.ticket li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; background: var(--accent-text); }

/* ---------- visit / footer ---------- */
.visit { margin-top: 96px; padding-block: 56px 64px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.visit h2 { font-size: clamp(30px, 3.4vw, 52px); font-weight: 500; line-height: 1.08; }
.visit p { margin-top: 20px; color: var(--muted); font-size: 16px; max-width: 44ch; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); padding: 16px 0 30px; font-size: 13px; border-top: 1px solid var(--line); }
.footer-bottom a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- annotated figures (case pages) ---------- */
.annotated { display: grid; gap: 20px; }
.annotated-frame { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: 0 34px 80px -34px rgba(255, 246, 226, .15); }
.annotated-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.annotated--row .annotated-frame { aspect-ratio: 3/4; }
.annotated--wide .annotated-frame { aspect-ratio: 16/10; }
.annotated--wide .annotated-frame img { object-position: top center; }
.pin { position: absolute; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--label); font-size: 13px; font-weight: 700; box-shadow: 0 0 0 3px rgba(14, 19, 17, .55); }
.annotated-legend { list-style: none; display: grid; gap: 14px; margin: 0; padding: 22px 26px; background: var(--label); color: var(--label-ink); border-radius: var(--radius); }
.annotated-legend li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; font-size: 15px; line-height: 1.5; color: var(--label-muted); }
.annotated-legend strong { display: block; color: var(--label-ink); font-weight: 500; }
.annotated-legend .pin-static { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--label); font-size: 11px; font-weight: 700; }

/* ---------- image viewer ---------- */
.image-viewer { width: min(1320px, calc(100% - 32px)); max-height: 92dvh; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.image-viewer::backdrop { background: rgb(6 9 8 / .8); }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.viewer-toolbar h2 { font-size: 16px; font-weight: 500; }
.viewer-actions { display: flex; align-items: center; gap: 14px; }
.viewer-actions button { min-height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13px; white-space: nowrap; }
.viewer-actions button:hover { border-color: var(--accent-text); color: var(--accent-text); }
.viewer-actions button:disabled { opacity: .45; cursor: not-allowed; }
.viewer-scroll { scrollbar-color: var(--line) #0a0d0c; }
.viewer-status { font-size: 14px; padding-block: 12px; color: var(--muted); }
.viewer-status a { color: var(--accent-text); text-decoration: underline; }
.viewer-scroll { min-height: 180px; max-height: calc(92dvh - 110px); overflow: auto; background: #0a0d0c; }
.viewer-scroll img { width: 100%; max-width: none; }
.viewer-scroll.is-zoomed img { width: max(1440px, 100%); }

@media (max-width: 1024px) {
  .case-objects { gap: 14px; }
  .exhibit--lead, .exhibit--flip { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .exhibit--lead .exhibit-object, .exhibit--flip .exhibit-object { aspect-ratio: 16/10; }
  .exhibit--flip .exhibit-object { order: -1; }
  .gallery-head, .side-gallery-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wall-text { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .side-hang { gap: 24px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 92px; }
  .navigation { min-height: 76px; }
  .has-js .desktop-navigation { display: none; }
  .has-js .menu-button { display: inline-flex; align-items: center; }
  .mark-text em { display: none; }
  .introduction { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 32px; }
  .plinth { padding-block: 28px 64px; }
  .case-objects { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .case-objects .object { aspect-ratio: 16/10; }
  .wall-label { padding: 22px; gap: 16px; }
  .label-facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gallery-head { padding-block: 36px 32px; }
  .hang { gap: 56px; }
  .side-gallery { margin-top: 64px; padding-top: 36px; }
  .side-hang { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .side-hang .exhibit:nth-child(2) { margin-top: 0; }
  .side-hang .exhibit-object { aspect-ratio: 4/3; }
  .wall-text { margin-top: 68px; padding-top: 36px; }
  .wall-text-copy p { font-size: 17px; }
  .visit { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 64px; padding-block: 40px 48px; align-items: start; }
  .visit .button { justify-self: start; }
  .footer-bottom { flex-wrap: wrap; }
  .annotated--row .annotated-frame { aspect-ratio: 4/5; }
  .annotated--wide .annotated-frame { aspect-ratio: 4/3; }
  .annotated-legend { padding: 20px; }
  .image-viewer { padding: 12px; }
  .viewer-toolbar { align-items: start; }
  .viewer-toolbar h2 { font-size: 14px; padding-top: 10px; }
  .viewer-actions { gap: 8px; }
  .viewer-actions button { padding-inline: 12px; }
}
@media (max-width: 420px) {
  .menu-dialog nav a { font-size: 34px; }
  .introduction h1 { font-size: clamp(30px, 9vw, 40px); }
  .pin, .annotated-legend .pin-static { width: 24px; height: 24px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
