@font-face { font-family: Instrument; src: url('assets/instrument-serif-regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: Space; src: url('assets/space-grotesk-400.ttf') format('truetype'); font-display: swap; }

@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #9bb7c7;
}

@property --accent-soft {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(155, 183, 199, .22);
}

:root {
  color-scheme: dark;
  --room: #151513;
  --room-deep: #0d0e0d;
  --paper: #e8dfca;
  --muted: #8f8a7e;
  --rule: rgba(232, 223, 202, .18);
  --accent: #9bb7c7;
  --accent-soft: rgba(155, 183, 199, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  transition: --accent 240ms cubic-bezier(.77, 0, .175, 1), --accent-soft 240ms cubic-bezier(.77, 0, .175, 1);
}

* { box-sizing: border-box; }
html {
  height: 100%;
  background: var(--room);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
body {
  margin: 0;
  min-width: 320px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  background:
    radial-gradient(circle at 64% 38%, var(--accent-soft), transparent 33%),
    linear-gradient(135deg, rgba(255,255,255,.015), transparent 48%),
    var(--room);
  color: var(--paper);
  font-family: Space, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 520ms var(--ease);
}

button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button {
  color: inherit;
  font: inherit;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.site-head {
  min-height: 0;
  padding: max(10px, env(safe-area-inset-top)) clamp(22px, 3.6vw, 58px) 8px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  letter-spacing: .08em;
  font-size: 10px;
}

.wordmark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--paper);
  text-decoration: none;
}
.wordmark svg { display: block; width: 25px; height: 25px; }

.exhibition-title { text-align: center; line-height: 1.35; }
.exhibition-title span { color: var(--muted); margin-right: 8px; }
.exhibition-title strong { font-weight: 400; letter-spacing: .18em; }
.edition { justify-self: end; color: var(--muted); font-variant-numeric: tabular-nums; }
.edition span { color: var(--paper); }
.head-meta{justify-self:end;display:flex;align-items:center;gap:24px}
.collection-nav{display:flex;align-items:center;gap:18px;font-size:8px;letter-spacing:.11em;text-transform:uppercase}
.collection-nav a{min-height:44px;display:inline-flex;align-items:center;color:var(--muted);text-decoration:none;border-bottom:1px solid transparent}
.collection-nav a:hover,.collection-nav a:focus-visible,.collection-nav a.active{color:var(--paper);border-bottom-color:currentColor}

.room {
  min-height: 0;
  overflow: hidden;
  padding: clamp(12px, 2.2vh, 22px) clamp(22px, 3.6vw, 58px) 0;
  display: grid;
  grid-template-columns: minmax(220px, .52fr) minmax(0, 1.7fr);
  grid-template-rows: minmax(0, 1fr) 58px;
  gap: 10px clamp(34px, 4.6vw, 76px);
}

.wall-label {
  align-self: center;
  max-width: 340px;
  max-height: 100%;
  opacity: 1;
  transition: opacity 150ms var(--ease-out);
}
.is-label-out .wall-label { opacity: 0; transition-duration: 80ms; }
.eyebrow {
  margin: 0 0 clamp(12px, 2.1vh, 22px);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-family: Instrument, Georgia, serif;
  font-size: clamp(42px, min(5vw, 9vh), 76px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.04em;
}

.thesis {
  margin: clamp(14px, 2.4vh, 24px) 0 clamp(16px, 3vh, 30px);
  max-width: 32ch;
  color: #b7b0a1;
  font-size: 13px;
  line-height: 1.62;
}

.source-note { margin: 0; border-top: 1px solid var(--rule); }
.source-note div { padding: clamp(9px, 1.6vh, 14px) 0; border-bottom: 1px solid var(--rule); }
.source-note dt { margin-bottom: 6px; color: var(--muted); font-size: 8px; letter-spacing: .18em; }
.source-note dd { margin: 0; font-family: Instrument, Georgia, serif; font-size: 15px; line-height: 1.25; }
.source-note a { color: inherit; text-decoration: none; }
.source-note a:hover,
.source-note a:focus-visible { color: var(--accent); }

.provenance {
  margin-top: clamp(10px, 1.7vh, 16px);
  padding-left: 13px;
  border-left: 1px solid var(--accent);
}
.provenance p { margin: 0; }
.provenance-label {
  color: var(--accent);
  font-size: 7px;
  letter-spacing: .18em;
}
.provenance-copy {
  margin-top: 7px !important;
  max-width: 34ch;
  color: #9d978b;
  font-size: 10px;
  line-height: 1.5;
}
.provenance-link {
  display: inline-block;
  margin-top: 8px;
  color: #77736a;
  font-size: 7px;
  letter-spacing: .16em;
  text-decoration: none;
}
.provenance-link:hover,
.provenance-link:focus-visible { color: var(--paper); }
.reference-toggle,
.provenance-close { display: none; }

.viewing-bay {
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 34px;
  align-items: center;
  justify-items: end;
}
.plate-shell {
  position: relative;
  width: min(100%, calc((100dvh - 232px) * 1.5));
  max-height: 100%;
  align-self: center;
  padding: clamp(8px, 1vw, 14px);
  background: rgba(232, 223, 202, .035);
  border: 1px solid rgba(232, 223, 202, .11);
  box-shadow: 0 40px 90px rgba(0,0,0,.38);
}

.plate {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: color-mix(in srgb, var(--accent) 26%, #080908);
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  isolation: isolate;
}

.plate::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(242, 230, 202, .12);
  pointer-events: none;
}

.plate:focus-visible { box-shadow: 0 0 0 2px var(--room), 0 0 0 4px var(--accent); }
.plate.is-source-loading { cursor: progress; }
.plate.is-source-loading .hold-cue { opacity: .42; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.afterimage {
  z-index: 1;
  opacity: 1;
  transform: scale(1.001);
  transition: opacity 210ms var(--ease-out) 24ms;
}
.source {
  z-index: 2;
  object-fit: contain;
  padding: clamp(12px, 2.2vw, 34px);
  background: #0c0c0b;
  clip-path: inset(0 50% 0 50%);
  opacity: .18;
  transform: scale(1.006);
  transition: clip-path 460ms var(--ease), opacity 240ms ease, transform 520ms var(--ease);
}

.plate.is-source .source {
  clip-path: inset(0);
  opacity: 1;
  transform: scale(1);
}

.pigment-transition {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.plate-grain {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: .065;
  pointer-events: none;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.hold-cue {
  position: absolute;
  z-index: 4;
  left: 17px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.66);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.62);
  transition: opacity 180ms ease;
}
.hold-cue span { width: 18px; height: 1px; background: currentColor; }
.plate.is-source .hold-cue { opacity: 0; }

.view-controls {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #5f5d56;
}
.view-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .14em;
  cursor: pointer;
}
.view-button.is-active { color: var(--paper); }

.work-nav {
  grid-column: 1 / -1;
  min-height: 58px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.work-nav > button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .12em;
  cursor: pointer;
}
.work-nav > button:first-child { justify-self: start; }
.work-nav > button:last-child { justify-self: end; }
.work-nav > button:hover, .work-nav > button:focus-visible { color: var(--paper); }

.work-index { display: flex; align-items: flex-end; gap: 36px; }
.work-dot {
  position: relative;
  min-width: clamp(62px, 7vw, 88px);
  min-height: 42px;
  padding: 11px 0 0;
  border: 0;
  background: none;
  color: #69665e;
  text-align: left;
  cursor: pointer;
}
.work-dot::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: currentColor; }
.work-dot span { font-size: 8px; letter-spacing: .12em; }
.work-dot i { display: block; margin-top: 5px; font-family: Instrument, serif; font-size: 12px; font-style: normal; }
.work-dot.is-active { color: var(--paper); }
.work-dot.is-active::before { height: 2px; background: var(--accent); }

@media (max-width: 980px) {
  body { grid-template-rows: 52px minmax(0, 1fr); }
  .site-head { padding: max(8px, env(safe-area-inset-top)) 18px 6px; grid-template-columns: 38px 1fr auto; }
  .exhibition-title { text-align: left; }
  .exhibition-title span { display: none; }
  .head-meta{gap:0}.edition{display:none}.collection-nav{gap:12px;font-size:7px}
  .room {
    padding: 8px 18px max(6px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) 50px;
    gap: 5px;
  }
  .viewing-bay {
    grid-row: 1;
    width: 100%;
    grid-template-rows: auto 28px;
    justify-items: stretch;
  }
  .plate-shell { padding: 6px; }
  .view-controls { min-height: 28px; justify-content: flex-start; }
  .view-button { min-height: 28px; }
  .wall-label {
    grid-row: 2;
    width: 100%;
    max-width: none;
    align-self: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 18px;
  }
  .eyebrow { grid-column: 1; margin: 0 0 7px; font-size: 8px; }
  h1 { grid-column: 1; font-size: clamp(34px, 10vw, 52px); line-height: .92; }
  .thesis { grid-column: 1; margin: 8px 0 0; max-width: 45ch; font-size: 10px; line-height: 1.45; }
  .source-note {
    grid-column: 2;
    grid-row: 1 / 4;
    width: min(38vw, 210px);
    border-top: 0;
    border-left: 1px solid var(--rule);
    padding-left: 16px;
    align-self: center;
  }
  .source-note div:first-child { display: none; }
  .source-note div { padding: 0; border: 0; }
  .source-note dd { font-size: 12px; }
  .reference-toggle {
    display: block;
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    justify-self: start;
    padding: 10px 0 0 16px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 7px;
    letter-spacing: .15em;
    cursor: pointer;
  }
  .provenance {
    position: fixed;
    z-index: 20;
    inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px;
    margin: 0;
    padding: 22px 48px 22px 20px;
    border: 1px solid var(--rule);
    border-left: 2px solid var(--accent);
    background: rgba(13,14,13,.97);
    box-shadow: 0 30px 100px rgba(0,0,0,.64);
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 280ms var(--ease);
  }
  .provenance[aria-hidden="false"] { opacity: 1; transform: none; pointer-events: auto; }
  .provenance-copy { max-width: 52ch; }
  .provenance-close {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 7px;
    letter-spacing: .14em;
    cursor: pointer;
  }
  .work-nav {
    grid-column: 1;
    grid-row: 3;
    min-height: 50px;
    grid-template-columns: 34px 1fr 34px;
    gap: 8px;
  }
  .work-index { gap: clamp(8px, 3.2vw, 22px); justify-content: center; }
  .work-nav > button { font-size: 0; }
  .work-nav > button span { font-size: 14px; }
  .work-dot { min-width: 28px; min-height: 38px; text-align: center; }
  .work-dot i { display: none; }
}

@media (max-width: 540px) {
  .room { padding-inline: 12px; }
  .site-head { padding-inline: 12px; }
  .exhibition-title{display:none}.site-head{grid-template-columns:32px 1fr}.head-meta{grid-column:2;justify-self:end}.collection-nav{gap:11px;font-size:7px}
  .plate { aspect-ratio: 3 / 2; }
  .hold-cue { font-size: 7px; bottom: 11px; left: 12px; }
  .wall-label { column-gap: 10px; }
  .source-note { width: 38vw; padding-left: 10px; }
  .source-note dd { font-size: 11px; }
  .reference-toggle { padding-left: 10px; }
  .work-index { gap: 7px; }
  .work-index .work-dot { min-width: 26px; }
}

@media (max-height: 650px) and (min-width: 981px) {
  body { grid-template-rows: 50px minmax(0, 1fr); }
  .room { grid-template-rows: minmax(0, 1fr) 48px; padding-top: 9px; }
  .wall-label { transform: scale(.9); transform-origin: left center; }
  .source-note div { padding-block: 7px; }
  .provenance { margin-top: 8px; }
  .plate-shell { width: min(100%, calc((100dvh - 200px) * 1.5)); }
  .work-nav { min-height: 48px; }
}

/* Legibility pass — preserve the quiet hierarchy without using decorative microtype
   for meaningful navigation, provenance, or viewing controls. */
.collection-nav { font-size: 9px; }
.eyebrow,
.source-note dt,
.provenance-label,
.provenance-link,
.reference-toggle,
.provenance-close,
.hold-cue,
.work-dot span { font-size: 9px; }
.view-button,
.work-nav > button { font-size: 10px; }

@media (max-width: 980px) {
  .collection-nav,
  .reference-toggle,
  .provenance-close { font-size: 9px; }
}

@media (max-width: 540px) {
  .collection-nav,
  .hold-cue { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .source { transition: none; }
  .afterimage,
  .wall-label { transform: none !important; transition-duration: 120ms; transition-delay: 0ms; }
  .pigment-transition { display: none; }
  :root { transition-duration: 120ms; }
  body { transition: none; }
}
