/* Public gallery */

:root {
  --display: "Archivo", var(--font);
  --stage: #0B0B0D;
  --stage-ink: #F2F2F0;
  --stage-ink-2: rgba(242, 242, 240, 0.66);   /* ≈ 8:1 on --stage */
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Nav (the only translucent layer) ---------- */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--hairline);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.home .site-nav { position: fixed; left: 0; right: 0; }
/* Over the dark stage the nav goes dark too */
/* No backdrop blur here: blurring a live WebGL canvas every frame is what makes scrolling stutter */
.site-nav.on-stage {
  --ink: var(--stage-ink);
  --glass: rgba(11, 11, 13, 0.55);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  --hairline: rgba(255, 255, 255, 0.1);
  --fill: rgba(255, 255, 255, 0.1);
}
@media (prefers-reduced-transparency: reduce) {
  .site-nav { background: var(--wall); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-nav.on-stage { background: var(--stage); }
}
.site-nav-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  color: var(--ink); font-family: var(--display); font-stretch: 125%; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; font-size: var(--t-foot);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wordmark:hover { text-decoration: none; }
.site-nav nav { display: flex; gap: 4px; }
.site-nav nav a { color: var(--ink); font-size: var(--t-foot); padding: 10px 12px; border-radius: 999px; }
.site-nav nav a:hover { background: var(--fill); text-decoration: none; }

main, .site-footer { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Stage: the gallery after dark ---------- */

.stage {
  --p: 0;
  position: relative; height: 300vh;
  background: var(--stage); color: var(--stage-ink);
}
.stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-copy, .stage-fade { will-change: transform, opacity; }

.stage-fallback {
  position: absolute; inset: 0; background: center 40% / auto 62% no-repeat;
  opacity: .9;
}
.stage.is-3d .stage-fallback { display: none; }

.stage-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(0,0,0,.65) 100%),
    linear-gradient(to top, rgba(11,11,13,.85), transparent 38%);
}

.mark { position: absolute; width: 18px; height: 18px; pointer-events: none; border-color: rgba(255,255,255,.35); border-style: solid; border-width: 0; }
.mark-tl { top: 72px; left: 20px; border-top-width: 1px; border-left-width: 1px; }
.mark-tr { top: 72px; right: 20px; border-top-width: 1px; border-right-width: 1px; }
.mark-bl { bottom: 20px; left: 20px; border-bottom-width: 1px; border-left-width: 1px; }
.mark-br { bottom: 20px; right: 20px; border-bottom-width: 1px; border-right-width: 1px; }

.hud {
  position: absolute; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  font-size: var(--t-caption); letter-spacing: .08em; text-transform: uppercase;
  color: var(--stage-ink-2); pointer-events: none;
}
.hud a { pointer-events: auto; }
.hud-top { top: 80px; opacity: calc(1 - var(--p) * 4); }
.hud-bottom { bottom: 32px; opacity: calc(1 - var(--p) * 2.2); }

.stage-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(88px, 12vh, 132px);
  pointer-events: none;
  transform: translateY(calc(var(--p) * -24vh));
  opacity: calc(1 - var(--p) * 3.2);
}
.stage-title {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(3rem, 11vw, 12.5rem); line-height: .86; letter-spacing: -.015em;
  text-transform: uppercase; text-wrap: balance;
  will-change: transform, opacity;
}
.stage-tagline {
  margin-top: 16px; max-width: 36ch;
  font-size: clamp(1rem, .9rem + .5vw, 1.375rem); color: var(--stage-ink-2);
}

.now-showing { display: grid; gap: 4px; text-transform: none; letter-spacing: 0; }
.now-label { font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; }
.now-showing a { color: var(--stage-ink); font-style: italic; font-size: var(--t-foot); min-height: 24px; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 8px; color: var(--stage-ink-2);
  min-height: 44px; padding: 0 4px;
}
.scroll-cue:hover { color: var(--stage-ink); text-decoration: none; }
.scroll-cue svg { width: 18px; height: 18px; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 50% { transform: translateY(5px); } }

.stage-label {
  position: absolute; top: 0; left: 0; pointer-events: none; z-index: 2;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(20,20,22,.82); color: var(--stage-ink);
  font-size: var(--t-caption); font-weight: 600;
  opacity: 0; transition: opacity .2s;
}
.stage-label.is-on { opacity: 1; }

/* The lights come on */
.stage-fade {
  position: absolute; inset: 0; pointer-events: none; background: var(--wall);
  opacity: clamp(0, calc((var(--p) - .82) * 5.6), 1);
}

@media (prefers-reduced-motion: reduce) {
  .stage { height: 100vh; height: 100svh; }
  .scroll-cue svg { animation: none; }
}

/* ---------- Section heads ---------- */

.big-title {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(2.5rem, 1.5rem + 5vw, 6rem); line-height: .9; letter-spacing: -.01em;
  text-transform: uppercase;
}
.big-title sup {
  font-family: var(--font); font-stretch: normal; font-weight: 500; font-size: var(--t-foot);
  letter-spacing: 0; vertical-align: top; color: var(--ink-2); margin-left: 4px;
}

.works { padding-top: clamp(64px, 10vw, 128px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px;
  padding-bottom: clamp(32px, 5vw, 56px);
}
.works-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* Category pop-up: a pill like the filters beside it, with a themed menu (native lists can't be styled) */
.popup { position: relative; }
.popup-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 42px; padding: 0 16px 0 18px; border: 0; border-radius: 999px;
  background: var(--fill); color: var(--ink); font: 600 var(--t-foot)/1 var(--font); cursor: pointer;
  transition: background-color .2s var(--ease);
}
.popup-button:hover, .popup-button[aria-expanded="true"] { background: var(--fill-2); }
.popup-chevron { color: var(--ink-2); flex: none; transition: transform .2s var(--ease); }
.popup-button[aria-expanded="true"] .popup-chevron { transform: rotate(180deg); }
.popup-list {
  position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; min-width: max(100%, 240px);
  max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border-radius: 14px; outline: none;
  box-shadow: 0 0 0 .5px var(--hairline), 0 12px 40px -8px rgba(0,0,0,.35);
  transform-origin: top right; animation: popup-in .16s var(--ease);
}
.popup.opens-up .popup-list { top: auto; bottom: calc(100% + 8px); transform-origin: bottom right; }
@keyframes popup-in { from { opacity: 0; transform: scale(.96); } }
.popup-option {
  display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 12px 0 10px; border-radius: 9px;
  font-size: var(--t-foot); color: var(--ink); cursor: pointer; user-select: none;
}
.popup-option.is-active { background: var(--fill-2); }
.popup-check { color: var(--red-dot); visibility: hidden; }
.popup-option[aria-selected="true"] { font-weight: 600; }
.popup-option[aria-selected="true"] .popup-check { visibility: visible; }
.popup-detail { color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 400; }
@media (prefers-contrast: more) {
  .popup-list { box-shadow: 0 0 0 1px var(--ink), 0 12px 40px -8px rgba(0,0,0,.35); }
}

/* ---------- The wall: masonry columns with wall labels ---------- */

.wall { display: flex; align-items: flex-start; gap: clamp(24px, 4vw, 56px); }
.wall-col, .wall > .wall-item { flex: 1 1 0; min-width: 0; }
.wall-item { margin-bottom: clamp(40px, 5vw, 72px); }

.art-link { display: block; color: inherit; }
.art-link:hover { text-decoration: none; }
.art-link:focus-visible { outline-offset: 6px; }

.art-frame {
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-hung);
  background: var(--fill);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), clip-path 1.2s var(--ease);
}
.art-frame.is-tilting { transition: transform .12s linear, box-shadow .4s; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 30px 60px -20px rgba(0,0,0,.45); }
/* Glare that follows the pointer */
.art-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.28), transparent 55%);
  opacity: 0; transition: opacity .4s;
  mix-blend-mode: soft-light;
}
.art-frame.is-tilting::after { opacity: 1; }
.art-img { width: 100%; height: auto; opacity: 0; transition: opacity .6s var(--ease); }
.art-img.is-loaded { opacity: 1; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(56px); transition: opacity .9s var(--ease) var(--delay, 0ms), transform 1.1s var(--ease) var(--delay, 0ms); }
.reveal .art-frame { clip-path: inset(14% 0 0 0); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.is-in .art-frame { clip-path: inset(0 0 0 0); }

/* Museum wall label: Title (italic), year / medium / size / price or red dot */
.wall-label { padding-top: 14px; display: grid; gap: 2px; font-size: var(--t-foot); }
.wall-label .title { font-style: italic; font-weight: 500; color: var(--ink); }
.wall-label .title .year { font-style: normal; color: var(--ink-2); font-weight: 400; }
.wall-label .meta { color: var(--ink-2); }
.wall-label .price-line { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--ink); }

.empty { padding: 64px 0 96px; text-align: center; color: var(--ink-2); font-size: var(--t-body); }
.load-more-row { display: flex; justify-content: center; padding: 8px 0 32px; }
#wall-sentinel { height: 1px; }

/* ---------- About & contact ---------- */

.about, .contact {
  border-top: .5px solid var(--hairline);
  padding: clamp(56px, 9vw, 120px) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px clamp(24px, 5vw, 80px);
  align-items: start;
}
.about-body, .contact-body { max-width: 680px; display: grid; gap: 28px; }
.bio { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); line-height: 1.55; letter-spacing: -.005em; white-space: pre-line; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0; font-size: var(--t-foot); }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }

/* ---------- Upcoming show, exhibitions, press ---------- */

.show-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(16px, 3vh, 28px);
  min-height: 40px; padding: 0 16px 0 14px; border-radius: 999px; pointer-events: auto;
  background: rgba(255,255,255,.1); color: var(--stage-ink); font-size: var(--t-foot); font-weight: 500;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
.show-pill:hover { text-decoration: none; background: rgba(255,255,255,.16); }
.show-pill-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red-dot); flex: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--red-dot) 60%, transparent); animation: show-pulse 2.4s infinite;
}
@keyframes show-pulse { 70% { box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-transparency: reduce) {
  .show-pill { background: #2a2a2e; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.cv-section {
  border-top: .5px solid var(--hairline); padding: clamp(56px, 9vw, 120px) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px clamp(24px, 5vw, 80px);
  align-items: start;
}
/* "Exhibitions" is too long to share a row with the content, so headings get their own */
.cv-section > .big-title { grid-column: 1 / -1; overflow-wrap: anywhere; }
.cv-section > :not(.big-title) { grid-column: 2; }
.cv-body { display: grid; gap: clamp(32px, 4vw, 48px); max-width: 720px; }

.show-card {
  display: grid; gap: 6px; justify-items: start; padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 .5px var(--hairline), var(--shadow-hung);
}
.show-card-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px;
  font-size: var(--t-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red-dot);
}
.show-card h3 { font-size: var(--t-title); line-height: 1.15; letter-spacing: -.01em; }
.show-card-dates { font-size: var(--t-body); font-weight: 600; }
.show-card-place { color: var(--ink-2); }
.show-card .btn { margin-top: 12px; }

.cv { list-style: none; margin: 0; padding: 0; }
.cv-year {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 16px; padding: 18px 0;
  border-top: .5px solid var(--hairline);
}
.cv-year:first-child { border-top: 0; padding-top: 0; }
.cv-year-label { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cv-year ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cv-year li { display: grid; gap: 2px; }
.cv-year li span { color: var(--ink-2); font-size: var(--t-foot); }
.cv-year li a { color: var(--ink); justify-self: start; }
.cv-year li a strong { text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 4px; }
.cv-year li a:hover strong { text-decoration-color: currentColor; }

.press { list-style: none; margin: 0; padding: 0; display: grid; }
.press li + li { border-top: .5px solid var(--hairline); }
.press-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  padding: 20px 0; color: var(--ink);
}
.press-item:hover { text-decoration: none; }
.press-outlet {
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); line-height: 1; letter-spacing: -.005em;
}
.press-headline { grid-column: 1; color: var(--ink-2); font-size: var(--t-foot); }
.press-arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-2); transition: transform .2s var(--ease), color .2s; }
a.press-item:hover .press-arrow { color: var(--red-dot); transform: translate(3px, -3px); }

.contact-lede { color: var(--ink-2); max-width: 560px; }
.inquiry-form { display: grid; gap: 16px; max-width: 680px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry-form .btn { justify-self: start; }

.form-success {
  padding: 20px; border-radius: var(--r-md); background: var(--surface);
  box-shadow: 0 0 0 .5px var(--hairline); max-width: 680px;
}
.form-success strong { display: block; margin-bottom: 4px; }
.form-success p { color: var(--ink-2); font-size: var(--t-foot); }

.site-footer {
  padding-top: 32px; padding-bottom: 48px; border-top: .5px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-footer p, .site-footer a { font-size: var(--t-caption); color: var(--ink-2); }
.footer-lines { display: grid; gap: 4px; }
.site-footer .footer-credit a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; }
.site-footer .footer-credit a:hover { text-decoration-color: currentColor; }

/* ---------- Single artwork: the viewing room ---------- */

.piece {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
  padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 8vw, 96px);
}
.room {
  position: relative; overflow: hidden; isolation: isolate;
  height: min(80vh, 860px); min-height: 420px;
  border-radius: var(--r-lg);
  /* The artwork's own wall colour from the first paint, so loading never flashes white */
  background: var(--wall, var(--fill)); transition: background-color .3s;
}
.room > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; transition: opacity .4s var(--ease); }
.room > canvas.is-pending { opacity: 0; }
.room > canvas:active { cursor: grabbing; }
.room .mark { border-color: rgba(0,0,0,.25); }
.room .mark-tl, .room .mark-tr { top: 16px; }
.room .mark-tl, .room .mark-bl { left: 16px; }
.room .mark-tr, .room .mark-br { right: 16px; }
.room .mark-bl, .room .mark-br { bottom: 16px; }

.room-hint {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  padding: 8px 14px; border-radius: 999px; pointer-events: none;
  background: rgba(20,20,22,.66); color: #fff; font-size: var(--t-caption); font-weight: 500;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: opacity .5s;
}
.room.touched .room-hint { opacity: 0; }

/* Floating toolbar, dark glass so it reads on any wall colour */
.room-tools {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px;
  max-width: calc(100% - 32px);
  border-radius: 999px; background: rgba(22,22,24,.72); color: #F2F2F0;
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,.5), inset 0 0 0 .5px rgba(255,255,255,.12);
}
@media (prefers-reduced-transparency: reduce) {
  .room-tools, .room-hint, .stage-label { background: #161618; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.tool-group { display: flex; align-items: center; gap: 2px; }
.tool-sep { width: 1px; height: 24px; background: rgba(255,255,255,.16); margin: 0 6px; flex: none; }
.swatch {
  width: 36px; height: 36px; border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; display: grid; place-items: center;
}
.swatch span {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.swatch:hover span { transform: scale(1.12); }
.swatch[aria-checked="true"] span { box-shadow: 0 0 0 2px rgba(22,22,24,1), 0 0 0 4px #F2F2F0; }
.tool-btn {
  min-height: 36px; min-width: 36px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(242,242,240,.75); cursor: pointer;
  font: 500 var(--t-caption)/1 var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.tool-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.tool-btn[aria-checked="true"] { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.tool-btn svg { width: 18px; height: 18px; }
.tool-btn.icon { padding: 0; width: 36px; }
.room-tools :focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* No-WebGL fallback: the flat image on the wall */
/* Placeholder (and no-WebGL view): the work hung on the chosen wall at the same size, position,
   angle and light as the 3D camera, so the 3D fades in without anything moving */
/* The wall is painted here too, so brightness/contrast and the light blends apply to it, like the 3D */
.room-flat { position: absolute; inset: 0; background: var(--wall); isolation: isolate; }
.room-flat-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.room-flat .open-viewer {
  all: unset; box-sizing: border-box; display: block; cursor: zoom-in;
  width: 0; height: 0; transform-origin: 50% 50%;
  box-shadow: 10px 14px 24px -6px rgba(0,0,0,.45), 2px 3px 6px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .5s var(--ease);
}
.room.has-image .room-flat .open-viewer { opacity: 1; }
.room-flat .open-viewer.is-paper { border: 0 solid #18181a; background: #f3f1ec; }
.room-flat .open-viewer:focus-visible { outline: 3px solid var(--link); outline-offset: 6px; }
.room-flat img { width: 100%; height: 100%; object-fit: fill; display: block; }

/* While 3D loads: the snapshot of the real 3D view, cropped to this box (identical framing) */
.room-poster {
  /* back layer of the room: the 3D canvas fades in above it */
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.room.poster-ready .room-poster { opacity: 1; }
/* With a 3D view coming, the placeholder is neutral: no guessed wall colour or light */
.room.is-3d { background: var(--fill); }
.room.is-3d .room-flat { background: transparent; }
.room.is-3d .room-flat-light, .room.is-3d .room-flat::before { display: none; }
/* With a snapshot, the flat painting stays only as the click target for full screen */
.room.has-poster .room-flat .open-viewer,
.room.has-poster .room-flat img { opacity: 0 !important; box-shadow: none; background: transparent; border-color: transparent; }
.room.poster-ready .room-flat-stage::before { display: none; }

/* Slow connection: a soft glow on the wall until the image arrives */
.room:not(.has-image) .room-flat-stage::before {
  content: ""; position: absolute; width: 38%; aspect-ratio: 4 / 5; border-radius: 8px;
  background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent);
  filter: blur(18px); animation: flat-glow 1.6s ease-in-out infinite;
}
@keyframes flat-glow { 50% { opacity: .45; } }

/* The chosen lighting, roughly, so the light doesn't jump when the 3D arrives */
.room-flat-light { position: absolute; inset: 0; pointer-events: none; }
.room-flat[data-light="daylight"] .room-flat-light {
  /* sunlight adds about the same light to any wall colour, so add rather than overlay */
  background: linear-gradient(118deg, rgba(255,246,225,.06) 12%, rgba(255,246,225,.08) 55%, rgba(255,246,225,.03) 90%);
  mix-blend-mode: plus-lighter;
}
.room-flat[data-light="daylight"]::before {
  /* the window frame's shadow falling down the left of the wall */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 0 4%, rgba(0,0,0,.18) 5% 9%, transparent 10%);
}
.room-flat[data-light="warm"] .room-flat-light {
  background: linear-gradient(100deg, rgba(255,170,90,.22), rgba(255,190,120,.06) 55%, rgba(40,20,5,.18));
}
.room-flat[data-light="spotlight"] .room-flat-light {
  /* a warm spot multiplies the wall colour: yellowed in the pool, near black at the edges */
  background: radial-gradient(ellipse 64% 78% at 54% 46%, rgb(255,255,242) 0%, rgb(238,236,212) 48%, rgb(96,94,66) 86%, rgb(34,34,22) 100%);
  mix-blend-mode: multiply;
}

.piece-label { position: sticky; top: 88px; display: grid; gap: 20px; }
.back-link { font-size: var(--t-foot); display: inline-flex; align-items: center; gap: 4px; justify-self: start; min-height: 44px; }
.piece-title {
  font-size: var(--t-title); font-style: italic; font-weight: 600; letter-spacing: -.02em; line-height: 1.15;
}
.piece-title .year { font-style: normal; font-weight: 400; color: var(--ink-2); }
.piece-artist { font-size: var(--t-foot); color: var(--ink-2); margin-top: 6px; }
.spec { display: grid; gap: 0; margin: 0; border-top: .5px solid var(--hairline); }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: .5px solid var(--hairline); font-size: var(--t-foot); }
.spec dt { color: var(--ink-2); }
.spec dd { margin: 0; text-align: right; }
.piece-desc { color: var(--ink); line-height: 1.6; white-space: pre-line; }
.piece-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.piece-price .amount { font-size: var(--t-title3); font-weight: 600; letter-spacing: -.01em; }
.piece-price .status { font-size: var(--t-foot); }

.pager { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; }
.pager a { font-size: var(--t-foot); min-height: 44px; display: inline-flex; align-items: center; }

/* Lightbox */
.viewer {
  width: 100vw; height: 100vh; max-width: none; max-height: none; border-radius: 0;
  background: #0b0b0c; display: none; place-items: center; padding: 24px;
}
.viewer[open] { display: grid; }
.viewer img { max-width: 100%; max-height: calc(100vh - 48px); object-fit: contain; }
.viewer-close { position: fixed; top: 16px; right: 16px; background: rgba(255,255,255,.14); color: #fff; }
.viewer-close:hover { background: rgba(255,255,255,.24); }

.not-found { grid-column: 1 / -1; padding: 96px 0; text-align: center; display: grid; gap: 16px; justify-items: center; }
.not-found h1 { font-size: var(--t-title); letter-spacing: -.02em; }
.not-found p { color: var(--ink-2); }

/* ---------- Compact widths ---------- */

/* Small laptops: "CONTACT" is wider than its column, so it takes its own row like Exhibitions */
@media (max-width: 1280px) {
  .contact > .big-title { grid-column: 1 / -1; }
  .contact > .contact-body { grid-column: 2; }
}
@media (max-width: 960px) {
  .contact > .contact-body { grid-column: 1; }
  .piece { grid-template-columns: 1fr; }
  .room { height: 68vh; min-height: 380px; }
  .piece-label { position: static; }
  .about, .contact, .cv-section { grid-template-columns: 1fr; }
  .cv-year { grid-template-columns: 4rem 1fr; }
  .cv-section > :not(.big-title) { grid-column: 1; }
}
@media (max-width: 640px) {
  .room-tools { flex-wrap: wrap; justify-content: center; border-radius: 22px; bottom: 10px; }
  .room-tools .tool-sep { display: none; }
}
@media (max-width: 560px) {
  .site-nav nav a { padding: 10px 8px; }
  /* Keep the artist's name whole on phones; the hero banner and scrolling still reach Exhibitions */
  .site-nav nav a[data-needs="exhibitions"] { display: none; }
  .site-nav-inner { gap: 8px; }
  .site-nav nav { gap: 0; }
  .wordmark { font-size: .8125rem; letter-spacing: 0; }
  .cv-section > .big-title { font-size: min(2.5rem, 8.6vw); }
  .mark-tl, .mark-tr { top: 64px; }
  .hud-top { top: 70px; }
  #counts { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .works-toolbar { width: 100%; flex-direction: column; align-items: stretch; }
  .works-toolbar .segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
  .popup-button { width: 100%; }
  .popup-list { left: 0; right: 0; }
  .wall > .wall-item + .wall-item { display: none; } /* one loading placeholder on phones */
  .inquiry-form .btn { justify-self: stretch; }
}
