/*
  Galerie Sara Lily Perez
  Monochrome editorial language: the artwork carries all the colour.
  Shape system: square corners everywhere (radius 0), echoing the logo frame.
  Accent: ink only. Every colour is a token below; components never hard-code colours.
*/

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.98ccc2b7f189.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: "Outfit";
  src: url("../fonts/outfit-latin-ext.e2b64ddcb351.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f6f6f4;
  --surface: #ececea;
  --surface-2: #e2e2df;
  --ink: #161616;
  --ink-soft: #55534f;
  --ink-faint: #66645f;  /* 4.5:1 or better on all light backgrounds (WCAG AA) */
  --line: #d6d5d1;
  --line-strong: #a9a8a3;
  --error: #a3261b;
  --success: #2f5d3a;
  --overlay: rgb(246 246 244 / 0.97);
  --placeholder: #dddcd8;

  --font: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;
  --max: 1400px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211;
  --surface: #1b1b19;
  --surface-2: #252522;
  --ink: #ededea;
  --ink-soft: #b0aea9;
  --ink-faint: #8f8d88;
  --line: #2f2e2b;
  --line-strong: #56544f;
  --error: #f08a7e;
  --success: #8fc79c;
  --overlay: rgb(18 18 17 / 0.97);
  --placeholder: #262624;
}

/* Without JavaScript the system preference still applies */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1b1b19;
    --surface-2: #252522;
    --ink: #ededea;
    --ink-soft: #b0aea9;
    --ink-faint: #8f8d88;
    --line: #2f2e2b;
    --line-strong: #56544f;
    --error: #f08a7e;
    --success: #8fc79c;
    --overlay: rgb(18 18 17 / 0.97);
    --placeholder: #262624;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
.theme-ready, .theme-ready * { transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Theme-specific logo files (recoloured PNGs, never CSS filters) */
.logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-dark { display: none; }
  :root:not([data-theme]) .logo-light { display: block; }
}

/* ---------- Type ---------- */
.eyebrow { font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.display { font-size: clamp(3.25rem, 9vw, 8rem); font-weight: 200; letter-spacing: -0.04em; line-height: 0.98; }
.h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 200; letter-spacing: -0.03em; line-height: 1.05; }
.h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 200; letter-spacing: -0.02em; line-height: 1.1; }
.h3 { font-size: 1.25rem; font-weight: 400; line-height: 1.3; }
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }

/* Titles and names always in capitals, as on the gallery's previous site.
   Body text (.prose, leads, descriptions) keeps normal case. */
.display, .h1, .h2, .h3, .visit__title, .artwork__title, .card__title,
.work__artist, .work__title, .names, .press-item .h3 { text-transform: uppercase; }
.h3, .card__title, .work__artist, .work__title, .names { letter-spacing: 0.02em; }
.prose h2, .prose h3 { text-transform: none; }

.prose { max-width: 68ch; font-size: 1.0625rem; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { border-bottom: 1px solid var(--line-strong); }
.prose a:hover { border-color: var(--ink); }
.prose h2, .prose h3 { font-weight: 400; margin-top: 2em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose blockquote { margin: 0; padding-left: 1em; border-left: 1px solid var(--line-strong); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  font-weight: 400; font-size: 0.9375rem; letter-spacing: 0.02em; white-space: nowrap;
  border: 1px solid var(--ink); background: transparent; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s var(--ease), opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { border-color: transparent; padding-inline: 4px; }
.btn--ghost i { transition: transform 0.3s var(--ease); }
.btn--ghost:hover i { transform: translateX(4px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.5; cursor: progress; }
.btn[disabled] { cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 400;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: border-color 0.25s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); font-size: 1.25rem; cursor: pointer;
  transition: border-color 0.25s var(--ease), opacity 0.25s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: scale(0.97); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn--bare { border-color: transparent; }

/* ---------- Navigation (z-index scale: nav 20, lightbox 50, skip 100) ---------- */
.nav-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; }
.nav.is-stuck { border-color: var(--line); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: auto; height: 36px; }
.brand__word { width: auto; height: 34px; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); font-size: 0.9375rem; font-weight: 400; }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  background: none; border: 0; padding: 8px 0; cursor: pointer; font-weight: 400; font-size: 0.9375rem;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__link i { font-size: 0.875rem; transition: transform 0.2s var(--ease); }
.nav__link[aria-expanded="true"] i { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: -20px; min-width: 200px;
  background: var(--bg); border: 1px solid var(--line); padding: 8px 0;
}
.nav__menu a { display: block; padding: 10px 20px; white-space: nowrap; }
.nav__menu a:hover, .nav__menu a:focus-visible { background: var(--surface); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__toggle { display: none; }
.nav__account { margin-right: 8px; }

.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
.mobile-menu nav { display: grid; padding-block: 8px 24px; }
.mobile-menu a { padding: 12px 0; font-size: 1.25rem; }
.mobile-menu .mobile-menu__sub { padding-left: 16px; font-size: 1.0625rem; color: var(--ink-soft); }

@media (max-width: 1023px) {
  .nav__links, .nav__account { display: none; }
  .nav__toggle { display: inline-grid; }
}

/* ---------- Messages ---------- */
.messages { display: grid; gap: 8px; margin-top: 16px; }
.message { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--surface); }
.message--success { border-color: var(--success); }
.message--error { border-color: var(--error); }
.message i { font-size: 1.25rem; margin-top: 1px; }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(40px, 7vw, 96px) clamp(32px, 4vw, 56px); display: grid; gap: 16px; }
.breadcrumb { font-size: 0.875rem; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }

/* ---------- Image helpers ---------- */
.img-frame { position: relative; overflow: hidden; background: var(--placeholder); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.img-frame--contain { background: transparent; }
.img-frame--contain img { object-fit: contain; }
a:hover > .img-frame img, a:focus-visible > .img-frame img { transform: scale(1.03); }
.img-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px;
  background: var(--placeholder); color: var(--ink-faint); font-size: 2rem;
}

/* ---------- Home: hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  min-height: min(calc(100dvh - var(--nav-h)), 980px); padding-block: 32px 64px;
}
.hero__copy { display: grid; gap: 24px; align-content: center; }
.hero__sub { max-width: 42ch; font-size: 1.125rem; color: var(--ink-soft); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.hero__media { justify-self: end; width: 100%; max-width: 640px; }
.hero__media img { width: 100%; max-height: min(calc(100dvh - var(--nav-h) - 96px), 860px); object-fit: contain; object-position: right center; }
@media (max-width: 767px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 24px 56px; gap: 32px; }
  .hero__media { justify-self: stretch; max-width: none; }
  .hero__media img { max-height: 70dvh; object-position: center; }
}

/* ---------- Home: artists rail ---------- */
.rail-controls { display: flex; gap: 8px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 380px);
  gap: clamp(16px, 2vw, 32px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-bottom: 8px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; }
@media (max-width: 767px) { .rail { grid-auto-columns: 78vw; } .rail-controls { display: none; } }

/* ---------- Cards ---------- */
.card { display: grid; gap: 4px; align-content: start; }
.card .img-frame { aspect-ratio: 4 / 5; margin-bottom: 14px; }
.card__title { font-size: 1.125rem; font-weight: 400; line-height: 1.3; }
.card__meta { color: var(--ink-soft); font-size: 0.9375rem; }
.card__date { color: var(--ink-faint); font-size: 0.875rem; }

/* ---------- Home: past exhibitions (1 feature + 4) ---------- */
.program-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px clamp(16px, 2vw, 32px); }
.program-grid .card .img-frame { aspect-ratio: 4 / 3; }
.program-grid > :first-child { grid-row: span 2; }
.program-grid > :first-child a { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; }
.program-grid > :first-child .img-frame { aspect-ratio: auto; height: 100%; min-height: 420px; }
.program-grid > :first-child .card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 300; }
@media (max-width: 1023px) {
  .program-grid { grid-template-columns: 1fr 1fr; }
  .program-grid > :first-child { grid-column: 1 / -1; grid-row: auto; }
  .program-grid > :first-child .img-frame { aspect-ratio: 16 / 10; min-height: 0; height: auto; }
}
@media (max-width: 599px) { .program-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Visit band ---------- */
.visit { background: var(--surface); padding-block: clamp(72px, 10vw, 140px); }
.visit__title { font-size: clamp(2.25rem, 6vw, 5rem); font-weight: 200; letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; margin-bottom: clamp(40px, 6vw, 80px); }
.info-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.info-cols > div { display: grid; gap: 12px; align-content: start; justify-items: start; }
.info-label { font-size: 0.9375rem; font-weight: 500; }
.info-cols p { color: var(--ink-soft); font-size: 1.0625rem; }
.info-cols a:not(.link-arrow):hover { color: var(--ink); }
@media (max-width: 767px) { .info-cols { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Newsletter ---------- */
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
.news__intro { display: grid; gap: 16px; align-content: start; }
@media (max-width: 767px) { .news { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form--single { grid-template-columns: 1fr; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full, .form .check, .form__foot, .form__errors { grid-column: 1 / -1; }
.field label, .field .label { font-size: 0.9375rem; font-weight: 400; }
.field input, .field textarea, .field select {
  font: inherit; font-weight: 300; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink-soft); border-radius: 0;
  padding: 10px 0; min-height: 44px; width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; border: 1px solid var(--ink-soft); padding: 12px; }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.field select option { background: var(--bg); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field textarea:focus { box-shadow: inset 0 0 0 1px var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.field__help { font-size: 0.875rem; color: var(--ink-soft); }
.field__error { font-size: 0.875rem; color: var(--error); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form__status { font-size: 0.9375rem; }
.form__status--error { color: var(--error); }
.form__errors { color: var(--error); font-size: 0.9375rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 767px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 72px; font-size: 0.9375rem; margin-top: auto; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { display: grid; gap: 20px; align-content: start; color: var(--ink-soft); }
.footer__brand img { height: 56px; width: auto; }
.footer__label { font-size: 0.9375rem; font-weight: 500; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--ink-soft); }
.footer ul a:hover { color: var(--ink); }
.footer__social { grid-auto-flow: column; justify-content: start; gap: 16px !important; font-size: 1.5rem; }
.footer__base { padding-block: 56px 32px; color: var(--ink-soft); font-size: 0.875rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Artists index ---------- */
.tabs { display: flex; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.tabs a { padding: 12px 0; margin-bottom: -1px; border-bottom: 1px solid transparent; color: var(--ink-soft); font-weight: 400; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.artist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px clamp(16px, 2vw, 32px); }
@media (max-width: 1023px) { .artist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; } }

/* ---------- Artist profile ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.profile__media .img-frame { aspect-ratio: auto; background: transparent; }
.profile__media img { width: 100%; height: auto; max-height: 80dvh; object-fit: contain; object-position: left top; }
@media (max-width: 767px) { .profile { grid-template-columns: 1fr; } }

/* ---------- Artworks: proportional grid (columns keep each work's own ratio) ---------- */
/* Artwork grid: every card has the same frame, the whole work is shown (never cropped),
   and the text and buttons line up across each row. */
.works {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(40px, 4vw, 56px) clamp(16px, 2vw, 32px); list-style: none; padding: 0; margin: 0;
}
.works > li { display: flex; flex-direction: column; min-width: 0; }
.work { display: flex; flex-direction: column; gap: 4px; }
.work .img-frame, .work.zoom .img-frame, .work > .zoom.img-frame {
  aspect-ratio: 4 / 5; width: 100%; margin-bottom: 14px;
  background: var(--surface); padding: clamp(14px, 1.6vw, 24px);
  display: grid; place-items: center;
}
.work .img-frame img { width: 100%; height: 100%; object-fit: contain; }
.work .img-frame .img-placeholder { width: 100%; height: 100%; aspect-ratio: auto; }
a.work:hover .img-frame img, a.work:focus-visible .img-frame img { transform: scale(1.02); }
.work__artist { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work__title {
  color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.work__title em { font-style: italic; }
.work__status { font-size: 0.875rem; color: var(--ink-faint); }
.work-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.work-cta .btn { min-height: 40px; padding: 0 20px; font-size: 0.875rem; }
.work__price { font-weight: 400; }
.notice { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 32px; border: 1px solid var(--line-strong); background: var(--surface); }
.notice p { color: var(--ink-soft); }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 16px 24px; align-items: end; margin-bottom: 32px; }
.filters .field input, .filters .field select { min-height: 40px; }
.filters__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; color: var(--ink-soft); font-size: 0.9375rem; min-height: 24px; }
.filters__meta a { border-bottom: 1px solid var(--line-strong); }
.results[aria-busy="true"] { opacity: 0.45; transition: opacity 0.2s; }
@media (max-width: 1023px) { .filters { grid-template-columns: 1fr 1fr; } .filters .field:first-child { grid-column: 1 / -1; } }

.empty { display: grid; justify-items: start; gap: 16px; padding: 48px 0; color: var(--ink-soft); }
.empty i { font-size: 2rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); }
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination .is-disabled { opacity: 0.35; }

/* ---------- Artwork detail ---------- */
.artwork { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: 32px 96px; }
.artwork__gallery { display: grid; gap: 16px; }
.artwork__main { display: grid; place-items: center; background: var(--surface); min-height: 320px; padding: clamp(16px, 4vw, 48px); }
.artwork__main img { max-height: 76dvh; width: auto; object-fit: contain; }
.zoom { display: block; position: relative; cursor: zoom-in; background: none; border: 0; padding: 0; }
.zoom__hint { position: absolute; right: 12px; bottom: 12px; display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--bg); color: var(--ink); opacity: 0; transition: opacity 0.2s; }
.zoom:hover .zoom__hint, .zoom:focus-visible .zoom__hint { opacity: 1; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs button { width: 80px; height: 80px; padding: 0; border: 1px solid transparent; background: var(--surface); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.artwork__info { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 24px; }
.artwork__title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 200; line-height: 1.15; letter-spacing: -0.02em; }
.artwork__title em { font-style: italic; }
.specs { display: grid; gap: 4px; color: var(--ink-soft); }
.specs dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; }
.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { cursor: pointer; padding: 16px 0; font-weight: 400; list-style: none; display: flex; justify-content: space-between; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-weight: 300; }
.details details[open] summary::after { content: "-"; }
.details details > div { padding-bottom: 16px; color: var(--ink-soft); }
@media (max-width: 1023px) { .artwork { grid-template-columns: 1fr; } .artwork__info { position: static; } }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: var(--overlay); color: var(--ink); }
.lightbox::backdrop { background: var(--overlay); }
.lightbox__inner { position: relative; display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); gap: 16px; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 0 clamp(56px, 6vw, 96px); }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
.lightbox__caption { padding: 12px var(--gutter) 20px; text-align: center; color: var(--ink-soft); font-size: 0.9375rem; min-height: 52px; }

/* ---------- Exhibitions ---------- */
.ex-current { display: grid; gap: 64px; }
.ex-feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.ex-feature .img-frame { aspect-ratio: 4 / 3; }
.ex-feature__body { display: grid; gap: 16px; justify-items: start; }
@media (max-width: 767px) { .ex-feature { grid-template-columns: 1fr; } }
.ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(16px, 2vw, 32px); }
.ex-grid .card .img-frame { aspect-ratio: 4 / 3; }
@media (max-width: 1023px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ex-grid { grid-template-columns: 1fr; } }
.badge { display: inline-block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 2px 8px; color: var(--ink-soft); }

.ex-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: 32px 72px; }
.ex-hero__media img { width: 100%; max-height: 80dvh; object-fit: contain; object-position: right top; }
.facts { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.facts dt { color: var(--ink-soft); }
@media (max-width: 767px) { .ex-hero { grid-template-columns: 1fr; } .ex-hero__media { order: -1; } .ex-hero__media img { object-position: center; } }
.install { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 32px); }
.install > :nth-child(3n + 1) { grid-column: span 12; }
.install > :nth-child(3n + 2), .install > :nth-child(3n + 3) { grid-column: span 6; }
.install > :last-child:nth-child(3n + 2) { grid-column: span 12; }
.install .zoom img { width: 100%; height: auto; }
@media (max-width: 599px) { .install > * { grid-column: span 12 !important; } }

/* ---------- Viewing room ---------- */

/* ---------- Press ---------- */
.press-list { display: grid; }
.press-item { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); align-items: start; }
.press-item:last-child { border-bottom: 1px solid var(--line); }
.press-item .img-frame { aspect-ratio: 4 / 3; }
@media (max-width: 599px) { .press-item { grid-template-columns: 1fr; } }

/* ---------- Store ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px clamp(16px, 2vw, 32px); }
.product-grid .img-frame { aspect-ratio: 1; background: var(--surface); }
.product-grid .img-frame img { object-fit: contain; padding: 12px; }
@media (max-width: 1023px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
.price { font-size: 1.125rem; font-weight: 400; }

/* ---------- Buying ---------- */
.buy { display: grid; gap: 16px; }
.variant-list { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.variant-list legend { margin-bottom: 8px; font-size: 0.9375rem; font-weight: 400; }
.variant { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); cursor: pointer; }
.variant:has(input:checked) { border-color: var(--ink); }
.variant input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.variant.is-out { color: var(--ink-faint); cursor: not-allowed; }
.variant__price { font-weight: 400; white-space: nowrap; }
.buy__row { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.qty { width: 96px; }
.cart-link { position: relative; }
.cart-link .cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 0.6875rem; font-weight: 500; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-weight: 400; font-size: 0.875rem; color: var(--ink-soft); padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table td + td, .cart-table th + th { padding-left: 16px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; }
.cart-item .img-frame { aspect-ratio: 1; background: var(--surface); }
.cart-item .img-frame img { object-fit: contain; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table input[type=number] { width: 64px; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink-soft); padding: 6px 0; }
.summary { display: grid; gap: 20px; align-content: start; padding: 28px; background: var(--surface); }
.summary__row { display: flex; justify-content: space-between; gap: 16px; }
.summary__total { font-size: 1.25rem; font-weight: 400; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.ship-option { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ship-option input { accent-color: var(--ink); margin-top: 4px; }
.ship-option small { display: block; color: var(--ink-soft); }
.cart-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(72px, 10vw, 140px); }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } .cart-table .hide-sm { display: none; } }

/* ---------- Split layout for form pages ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: clamp(72px, 10vw, 140px); }
.split__aside { display: grid; gap: 24px; align-content: start; }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } }
.inquiry-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px; background: var(--surface); }
.inquiry-item .img-frame { aspect-ratio: 1; background: transparent; }
.inquiry-item .img-frame img { object-fit: contain; }

/* ---------- Error pages ---------- */
.error-page { display: grid; gap: 24px; justify-items: start; padding-block: clamp(80px, 14vw, 180px); }

/* ---------- Motion: short reveals, disabled for reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js [data-enter] { opacity: 0; transform: translateY(14px); animation: enter 0.8s var(--ease) forwards; }
  .js [data-enter]:nth-child(2) { animation-delay: 0.08s; }
  .js [data-enter]:nth-child(3) { animation-delay: 0.16s; }
  .js [data-enter]:nth-child(4) { animation-delay: 0.24s; }
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes enter { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Saves, lists, follow ---------- */
.work-item { position: relative; }
.work-item > .save { position: absolute; top: 4px; right: 4px; z-index: 2; }
.work-item > .save .save__btn { background: transparent; }
.save { display: inline-flex; }
.save__btn {
  display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; justify-content: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid transparent; color: var(--ink);
  cursor: pointer; transition: border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.save__btn:hover { border-color: var(--line-strong); }
.save__btn:active { transform: scale(0.94); }
.save__btn svg path { fill: none; stroke: currentColor; stroke-width: 16; stroke-linejoin: round; transition: fill 0.2s var(--ease); }
.save__btn[aria-pressed="true"] svg path { fill: currentColor; }
.save--labelled .save__btn { border-color: var(--line); padding: 0 20px; background: transparent; }
.save--labelled .save__btn:hover { border-color: var(--ink); }
.artwork__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.add-to-list { margin-top: 16px; }
.add-to-list summary { cursor: pointer; font-size: 0.9375rem; color: var(--ink-soft); }
.add-to-list__form, .inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.add-to-list__form select, .add-to-list__form input, .inline-form input {
  flex: 1 1 220px; min-height: 44px; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); padding: 8px 0;
}
.add-to-list__form select:focus, .add-to-list__form input:focus, .inline-form input:focus { outline: none; border-color: var(--ink); }
.section-bar { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.list-rows { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.list-rows li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.share-box { max-width: 640px; border-top: 1px solid var(--line); padding-top: 24px; }
.share-box p { margin: 8px 0 16px; }
.follow { margin-top: 20px; }
.follow .btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .save__btn, .save__btn svg path { transition: none; } }

/* ---------- Homepage stage: full-screen exhibition slides ---------- */
/* Each slide sticks under the menu while the next one scrolls over it. Text sits on the image,
   so slides use fixed light-on-image colours in both themes. */
.stage { position: relative; }
.slide {
  position: sticky; top: var(--nav-h);
  height: calc(100svh - var(--nav-h)); min-height: 520px;
  display: grid; align-items: end; overflow: hidden; isolation: isolate;
  color: #f3f2ee; background: #1b1a18;
}
.slide__media { position: absolute; inset: 0; z-index: -1; }
.slide__img { width: 100%; height: 100%; object-fit: cover; }
.slide__img--top { object-position: center top; }
.slide__img--bottom { object-position: center bottom; }
.slide__img--left { object-position: left center; }
.slide__img--right { object-position: right center; }
.slide__fill { display: block; width: 100%; height: 100%; background: #1b1a18; }
.slide__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(14 14 13 / 0.82) 0%, rgb(14 14 13 / 0.5) 34%, rgb(14 14 13 / 0) 66%);
}
.slide__copy { text-shadow: 0 1px 12px rgb(14 14 13 / 0.35); }
.slide__copy { display: grid; gap: 14px; justify-items: start; padding-block: 0 clamp(40px, 7vh, 80px); }
.slide__meta { font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; color: #f3f2ee; }
.slide__title {
  font-size: clamp(2.25rem, 5.2vw, 4.5rem); line-height: 1.02; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.01em; max-width: 18ch; text-wrap: balance;
}
.slide__title a { color: inherit; }
.slide__names { font-size: clamp(1rem, 1.4vw, 1.25rem); text-transform: uppercase; letter-spacing: 0.04em; }
.slide__ctas { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 10px; }
.btn--light { border-color: #f3f2ee; color: #f3f2ee; background: transparent; }
.btn--light:hover { background: #f3f2ee; color: #1b1a18; }
.btn--light-ghost { border-color: transparent; color: #f3f2ee; padding-inline: 4px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.btn--light-ghost:hover { text-decoration-thickness: 2px; }
.slide a:focus-visible, .slide .btn:focus-visible { outline: 2px solid #f3f2ee; outline-offset: 4px; }
@media (max-width: 767px) {
  .slide { height: calc(100svh - var(--nav-h)); min-height: 480px; }
  .slide__media::after { background: linear-gradient(to top, rgb(14 14 13 / 0.78) 0%, rgb(14 14 13 / 0.3) 50%, rgb(14 14 13 / 0) 75%); }
}
/* The last slide must not stay pinned over the sections that follow. */
.slide:last-child { position: relative; top: 0; }

/* ---------- Menu bar: always ruled, small uppercase labels ---------- */
.nav { border-bottom-color: var(--line); }
.nav__links .nav__link, .nav__account { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 599px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .work .img-frame { padding: 10px; margin-bottom: 10px; }
  .work__artist, .work__title { font-size: 0.875rem; }
  .work-cta { flex-wrap: wrap; gap: 6px; }
  .work-cta .btn { min-height: 36px; padding: 0 14px; font-size: 0.8125rem; }
  .work-item > .save { top: 0; right: 0; }
}

/* ---------- Shop: steps, checkout, add-to-cart toast ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 0; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step) "  "; }
.steps li[aria-current="step"] { color: var(--ink); }
.steps a { color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.checkout-main { display: grid; gap: 40px; }
.checkout-block { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.checkout-block legend { margin-bottom: 16px; padding: 0; }
.checkout-summary { position: sticky; top: calc(var(--nav-h) + 24px); }
.summary__cta { width: 100%; justify-content: center; gap: 8px; }
.order-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.order-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: start; font-size: 0.9375rem; }
.order-lines .img-frame { width: 56px; aspect-ratio: 1; background: var(--bg); padding: 4px; }
.order-lines .img-frame img { object-fit: contain; }
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}
.product-grid > li { display: flex; flex-direction: column; }
.product-buy { margin-top: auto; padding-top: 12px; }
.product-buy .btn { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; gap: 20px; align-items: center; padding: 14px 20px; max-width: calc(100vw - 32px);
  background: var(--ink); color: var(--bg); font-size: 0.9375rem;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast .link-arrow { color: inherit; border-color: currentColor; white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---------- Viewing room: split opening, Statement / Works tabs, two-column works ---------- */
.vr-head { display: grid; grid-template-columns: 1fr 1fr; min-height: min(calc(100svh - var(--nav-h)), 860px); }
.vr-head__media { position: relative; overflow: hidden; background: var(--surface); }
.vr-head__media img, .vr-head__media .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vr-head__copy { display: grid; align-content: center; gap: 18px; padding: clamp(32px, 6vw, 96px); }
.vr-head__title { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.05; font-weight: 300; text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; }
.vr-head__artist { font-size: clamp(1.5rem, 2.6vw, 2.375rem); line-height: 1.1; font-weight: 300; text-transform: uppercase; }
.vr-head__venue { font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.vr-tabs {
  position: sticky; top: var(--nav-h); z-index: 10; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.vr-tabs button {
  position: relative; min-height: 56px; background: none; border: 0; cursor: pointer; color: var(--ink-soft);
  font: inherit; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.vr-tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
  transform: scaleX(0); transition: transform 0.35s var(--ease);
}
.vr-tabs button[aria-selected="true"] { color: var(--ink); }
.vr-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.vr-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.vr-panel { padding-block: clamp(48px, 7vw, 96px) clamp(72px, 10vw, 140px); scroll-margin-top: calc(var(--nav-h) + 56px); }
.vr-panel:focus { outline: none; }
.vr-text { max-width: 760px; }
.vr-text .prose { font-size: 1.0625rem; max-width: none; }
.vr-statement__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; }
.vr-grid {
  list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 7vw, 104px) clamp(24px, 5vw, 80px); max-width: 1080px; align-items: start;
}
.vr-item__media { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.vr-item__media img { width: 100%; height: auto; }
.vr-item__caption { margin-top: 18px; display: grid; gap: 2px; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.03em; }
.vr-item__caption p:first-child { color: var(--ink); }
.vr-item__caption p:not(:first-child) { color: var(--ink-soft); }
.vr-item__status { display: flex; align-items: center; gap: 16px; margin-top: 8px; text-transform: none; letter-spacing: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot--sold { background: #c0392b; }
.dot--reserved { background: #d08a2e; }
@media (max-width: 767px) {
  .vr-head { grid-template-columns: 1fr; min-height: 0; }
  .vr-head__media { aspect-ratio: 4 / 5; }
  .vr-head__copy { padding: 32px 16px 40px; }
  .vr-grid { grid-template-columns: 1fr; }
}

/* ---------- Artist index: names only, surname order, four columns ---------- */
.artist-index { max-width: 1240px; padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 140px); display: grid; gap: clamp(64px, 9vw, 120px); }
.index-title { text-align: center; font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 300; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: clamp(32px, 4vw, 56px); }
.name-cols { list-style: none; padding: 0; margin: 0 auto; columns: 4; column-gap: clamp(24px, 4vw, 64px); max-width: 1200px; }
.name-cols li { break-inside: avoid; }
.name-cols a {
  display: inline-block; padding: 7px 0; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.02em;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 1px no-repeat; transition: background-size 0.3s var(--ease);
}
.name-cols a:hover, .name-cols a:focus-visible { background-size: 100% 1px; }
@media (max-width: 1023px) { .name-cols { columns: 3; } }
@media (max-width: 599px) { .name-cols { columns: 2; column-gap: 20px; } .name-cols a { font-size: 0.875rem; } }
@media (prefers-reduced-motion: reduce) { .name-cols a { transition: none; } }

/* ---------- Artist page ---------- */
.artist-page { padding-bottom: clamp(72px, 10vw, 140px); }
.artist-head { display: grid; justify-items: center; gap: 10px; text-align: center; padding-block: clamp(32px, 5vw, 56px) clamp(32px, 4vw, 56px); }
.artist-head .index-title { margin-bottom: 0; font-size: clamp(2rem, 3.4vw, 3rem); }
.artist-head__life { font-size: 0.9375rem; color: var(--ink-soft); }
.artist-head__rep { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.artist-profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.artist-profile__media { margin: 0; }
.artist-profile__media .zoom { display: block; width: 100%; }
.artist-profile__media img { width: 100%; height: auto; }
.credit { margin-top: 10px; font-size: 0.75rem; color: var(--ink-faint); }
.artist-profile__text { display: grid; gap: 32px; align-content: start; }
.doc-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.doc {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px;
  border: 1px solid var(--line); font-size: 0.9375rem; transition: border-color 0.25s var(--ease);
}
a.doc:hover { border-color: var(--ink); }
.doc i { font-size: 1.25rem; }
.doc small { display: block; font-size: 0.75rem; color: var(--ink-soft); }
.doc--locked { color: var(--ink-soft); }
.artist-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.artist-actions .btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.video { border: 1px solid var(--line); }
.video__play { display: flex; align-items: center; gap: 14px; width: 100%; padding: 20px; background: var(--surface); border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.video__play i { font-size: 2.5rem; }
.video__play small { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.artist-section { padding-top: clamp(72px, 10vw, 128px); }
.section-more { margin-top: 40px; text-align: center; }
.cv-list { list-style: none; padding: 0; margin: 0 auto; max-width: 960px; border-top: 1px solid var(--line); }
.cv-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.cv-list li span:first-child { color: var(--ink-soft); }
.cv-list--plain li { grid-template-columns: 1fr; }
.cv-list--plain li span:first-child { color: var(--ink); }
.cv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(40px, 6vw, 96px); max-width: 1080px; margin-inline: auto; }
.cv-cols .h3 { margin-bottom: 20px; text-transform: uppercase; }
.cv-cols .cv-list { max-width: none; }
.cv-cols .cv-list li { grid-template-columns: 72px minmax(0, 1fr); }
.cv-cols .cv-list--plain li { grid-template-columns: 1fr; }
@media (max-width: 767px) {
  .artist-profile { grid-template-columns: 1fr; }
  .cv-list li { grid-template-columns: 56px minmax(0, 1fr); }
  .cv-list li span:nth-child(3) { grid-column: 2; color: var(--ink-soft); }
}

/* ---------- Account and security pages (django-allauth) ---------- */
.auth-page { max-width: 640px; padding-block: clamp(40px, 6vw, 80px) clamp(72px, 10vw, 140px); display: grid; gap: 20px; align-content: start; }
.auth-page--manage { max-width: 760px; }
.auth-title { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.auth-subtitle { margin-top: 16px; }
.auth-text { color: var(--ink-soft); }
.auth-form { margin-top: 8px; }
.auth-stack { display: grid; gap: 20px; align-content: start; }
.auth-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.auth-providers { display: grid; gap: 12px; }
.auth-provider .btn { width: 100%; justify-content: center; gap: 10px; }
.auth-or { display: flex; align-items: center; gap: 16px; color: var(--ink-faint); font-size: 0.875rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-rule { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.auth-panel { border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.auth-panel + .auth-panel { margin-top: 4px; }
.auth-page img { max-width: 220px; height: auto; background: #fff; padding: 12px; }
.auth-page pre, .auth-page code { font-size: 0.9375rem; background: var(--surface); padding: 2px 6px; }
.auth-page ul { padding-left: 1.2em; }
.auth-table td, .auth-table th { padding: 10px 8px; }
#passkey_login { justify-content: center; gap: 10px; }

/* ---------- Staff preview of unpublished content ---------- */
.preview-banner { background: var(--ink); color: var(--bg); font-size: 0.875rem; padding-block: 10px; }
.preview-banner strong { font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 12px; }

/* Customer account: avatar, menu, orders, timeline, addresses */
.avatar { display: inline-block; border-radius: 50%; object-fit: cover; flex: none; vertical-align: middle; background: var(--surface); }
.avatar--initials { display: inline-grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 400; letter-spacing: 0.04em; line-height: 1; }
@media (min-width: 1024px) { .nav__account { display: inline-flex; align-items: center; gap: 8px; } }
.account-page { padding-bottom: clamp(72px, 10vw, 140px); }
.account-head { display: flex; align-items: center; gap: 20px; }
.account-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 40px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.account-nav a { color: var(--ink-soft); padding: 4px 0; }
.account-nav a:hover, .account-nav a[aria-current="page"] { color: var(--ink); }
.account-nav a[aria-current="page"] { box-shadow: 0 1px 0 0 var(--ink); }
.account-block { margin-top: clamp(40px, 6vw, 72px); max-width: 720px; }
.order-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.order-row { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr auto auto; gap: 8px 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.order-row:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.order-row__main { display: grid; gap: 2px; }
@media (max-width: 767px) { .order-row { grid-template-columns: 1fr auto; } .order-row__items { grid-column: 1 / -1; order: 3; } }
.timeline { list-style: none; margin: 8px 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; counter-reset: step; }
.timeline__step { position: relative; display: grid; gap: 4px; padding-top: 22px; color: var(--ink-soft); }
.timeline__step::before { content: ""; position: absolute; top: 6px; left: 0; right: -16px; height: 1px; background: var(--line-strong); }
.timeline__step:last-child::before { right: 0; }
.timeline__dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); }
.timeline__step.is-done { color: var(--ink); }
.timeline__step.is-done .timeline__dot { background: var(--ink); border-color: var(--ink); }
.timeline__step.is-done::before { background: var(--ink); }
.timeline__step.is-current { color: var(--ink); }
.timeline__step.is-current .timeline__dot { border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 7px var(--ink); }
@media (max-width: 767px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline__step { padding: 0 0 20px 28px; }
  .timeline__step::before { top: 13px; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .timeline__step:last-child::before { display: none; }
}
.tracking { margin: -16px 0 40px; }
.order-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 899px) { .order-grid { grid-template-columns: 1fr; } }
.avatar-current { margin: 8px 0 20px; }
.avatar-form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.avatar-presets { display: flex; flex-wrap: wrap; gap: 12px; }
.avatar-presets legend { margin-bottom: 8px; }
.avatar-preset { position: relative; cursor: pointer; }
.avatar-preset input { position: absolute; opacity: 0; }
.avatar-preset img { display: block; border-radius: 50%; border: 1px solid var(--line); }
.avatar-preset input:checked + img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.avatar-preset input:focus-visible + img { outline: 2px solid var(--ink); outline-offset: 4px; }
.address-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.address-card { display: grid; gap: 12px; align-content: start; padding: 20px; border: 1px solid var(--line); }
.address-card p { margin: 0; }
.address-card__actions { display: flex; gap: 20px; align-items: center; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--ink); }
.print-only { display: none; }
@media print {
  .nav, .footer, .no-print, .account-nav, .cms-switch, .messages { display: none !important; }
  .print-only { display: block; }
  .timeline__step.is-done .timeline__dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.account-nav + .facts { border-top: 0; }

/* FAQ: native <details> accordion (keyboard and screen readers work without script) */
.faq-section { margin-top: clamp(48px, 7vw, 88px); }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.prose .faq__title, .faq__title { margin: 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.4; }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--ink); transition: transform .2s ease; }
.faq__icon::after { transform: rotate(90deg); }
.faq[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 0 24px; max-width: 68ch; color: var(--ink-soft); }
.faq__a > :first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .faq__icon::before, .faq__icon::after { transition: none; } }

/* Selected works slideshow (artist pages) */
.slideshow { position: relative; }
.slideshow__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.slideshow__track::-webkit-scrollbar { display: none; }
.slideshow__track:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.sw-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; display: grid; gap: 16px; align-content: start; }
.sw-slide__media { height: clamp(300px, 64vh, 760px); display: flex; align-items: center; justify-content: center; background: var(--surface); }
.sw-slide__media a { display: contents; }
.sw-slide__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sw-slide__caption { font-size: 0.9375rem; line-height: 1.5; max-width: 72ch; }
.sw-slide__title { text-transform: uppercase; letter-spacing: 0.04em; }
a.sw-slide__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.sw-slide__meta { display: block; color: var(--ink-soft); font-size: 0.875rem; }
.slideshow__controls { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.slideshow__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: none; color: var(--ink); cursor: pointer; font-size: 1.125rem; }
.slideshow__btn:hover:not(:disabled) { border-color: var(--ink); }
.slideshow__btn:disabled { opacity: 0.35; cursor: default; }
.slideshow__btn:focus-visible, .slideshow__dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.slideshow__dots { display: flex; flex-wrap: wrap; gap: 4px; }
.slideshow__dot { width: 24px; height: 24px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.slideshow__dot::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid var(--ink-soft); }
.slideshow__dot[aria-current="true"]::after { background: var(--ink); border-color: var(--ink); }
.slideshow__count { margin: 0 0 0 auto; font-size: 0.875rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.works-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .sw-slide__media { height: min(78vw, 60vh); }
  .slideshow__dots { display: none; }
}
@media (prefers-reduced-motion: reduce) { .slideshow__track { scroll-behavior: auto; } }

/* Visit / venue block (event venue, exhibitions, events) */
.venue-info { margin-top: clamp(56px, 8vw, 96px); }
.venue-info__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.venue-info__info > p { margin: 0 0 16px; }
.venue-info__links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.venue-info__note { margin-top: 20px; }
.venue-info__note h3 { margin: 0 0 6px; }
.venue-info__photo { margin: 0; }
.venue-info__photo img { width: 100%; height: auto; display: block; }
.venue-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 24px; }
.venue-photos .zoom img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.floor-plan { margin: 32px 0 0; max-width: 960px; }
.floor-plan img { width: 100%; height: auto; display: block; background: #fff; }
@media (max-width: 767px) { .venue-info__grid { grid-template-columns: 1fr; } }
.venue-info__label { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 400; }
