@font-face {
  font-family: Karla;
  src: url("../fonts/karla-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Karla;
  src: url("../fonts/karla-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Karla;
  src: url("../fonts/karla-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Averia Libre";
  src: url("../fonts/averia-libre-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #181a18;
  --surface: #232623;
  --text: #f2f0eb;
  --muted: #bfc1ba;
  --line: #565b54;
  --focus: #f2f0eb;
  --title-paper: #dedbd2;
  --paper: var(--canvas);
  --ink: var(--text);
  --r-wordmark-x: 5.270%;
  --r-wordmark-y: 2.340%;
  --r-wordmark-w: 7.420%;
  --r-wordmark-h: 2.930%;
  --r-nav-works-x: 70.770%;
  --r-nav-works-y: 2.930%;
  --r-nav-works-w: 3.520%;
  --r-nav-works-h: 2.340%;
  --r-nav-moving-x: 76.240%;
  --r-nav-moving-y: 2.930%;
  --r-nav-moving-w: 7.030%;
  --r-nav-moving-h: 2.930%;
  --r-nav-artist-x: 85.090%;
  --r-nav-artist-y: 2.930%;
  --r-nav-artist-w: 3.910%;
  --r-nav-artist-h: 2.340%;
  --r-nav-contact-x: 90.760%;
  --r-nav-contact-y: 2.930%;
  --r-nav-contact-w: 4.300%;
  --r-nav-contact-h: 2.340%;
  --r-featured-artwork-x: 30.000%;
  --r-featured-artwork-y: 10.000%;
  --r-featured-artwork-w: 40.000%;
  --r-featured-artwork-h: 70.000%;
  --r-previous-control-x: 36.650%;
  --r-previous-control-y: 82.320%;
  --r-previous-control-w: 2.730%;
  --r-previous-control-h: 2.340%;
  --r-caption-stack-x: 40.000%;
  --r-caption-stack-y: 80.000%;
  --r-caption-stack-w: 20.000%;
  --r-caption-stack-h: 10.000%;
  --r-next-control-x: 69.010%;
  --r-next-control-y: 82.320%;
  --r-next-control-w: 2.730%;
  --r-next-control-h: 2.340%;
  --r-footer-label-x: 5.270%;
  --r-footer-label-y: 95.900%;
  --r-footer-label-w: 4.300%;
  --r-footer-label-h: 2.340%;
  --r-footer-link-x: 84.700%;
  --r-footer-link-y: 95.310%;
  --r-footer-link-w: 10.550%;
  --r-footer-link-h: 2.930%;
}

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

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
  scrollbar-color: #62675f var(--paper);
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Karla, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #454a44;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--text);
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--surface);
  color: var(--text);
}

.skip-link:focus {
  transform: translateY(0);
}

.art-home {
  position: relative;
  width: 100%;
  min-height: 740px;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.masthead {
  position: absolute;
  inset: 0;
  z-index: 2;
  height: 100%;
  pointer-events: none;
}

.masthead::after {
  position: absolute;
  top: 83px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
  pointer-events: none;
}

.wordmark,
.primary-nav a,
.work-viewer__control,
.work-viewer__caption,
.home-footer__label,
.home-footer__link {
  position: absolute;
}

.wordmark {
  top: var(--r-wordmark-y);
  left: var(--r-wordmark-x);
  display: flex;
  width: var(--r-wordmark-w);
  height: var(--r-wordmark-h);
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.33em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
}

.primary-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
}

.primary-nav__works {
  top: var(--r-nav-works-y);
  left: var(--r-nav-works-x);
  width: var(--r-nav-works-w);
  height: var(--r-nav-works-h);
  color: var(--ink) !important;
}

.primary-nav__moving {
  top: var(--r-nav-moving-y);
  left: var(--r-nav-moving-x);
  width: var(--r-nav-moving-w);
  height: var(--r-nav-moving-h);
}

.primary-nav__artist {
  top: var(--r-nav-artist-y);
  left: var(--r-nav-artist-x);
  width: var(--r-nav-artist-w);
  height: var(--r-nav-artist-h);
}

.primary-nav__contact {
  top: var(--r-nav-contact-y);
  left: var(--r-nav-contact-x);
  width: var(--r-nav-contact-w);
  height: var(--r-nav-contact-h);
}

.work-viewer__frame {
  position: absolute;
  top: var(--r-featured-artwork-y);
  left: var(--r-featured-artwork-x);
  width: var(--r-featured-artwork-w);
  height: var(--r-featured-artwork-h);
  margin: 0;
}

.work-viewer__image {
  position: absolute;
  inset: 1.5% 2.6%;
  display: block;
  width: 94.8%;
  height: 98.5%;
  border: 1px solid #e3e3e0;
  box-shadow: 0 9px 26px rgba(20, 23, 21, 0.13);
  object-fit: contain;
  object-position: center;
}

.work-viewer__control {
  top: var(--r-previous-control-y);
  display: grid;
  width: var(--r-previous-control-w);
  height: var(--r-previous-control-h);
  place-items: center;
  color: var(--ink);
}

.work-viewer__control--previous {
  left: var(--r-previous-control-x);
}

.work-viewer__control--next {
  left: var(--r-next-control-x);
}

.icon-arrow {
  display: block;
  flex: none;
  width: 28px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.35;
}

.icon-arrow--left {
  transform: none;
}

.icon-arrow--external {
  width: 16px;
  height: 16px;
  stroke-width: 1.2;
}

.work-viewer__caption {
  top: var(--r-caption-stack-y);
  left: var(--r-caption-stack-x);
  display: flex;
  width: var(--r-caption-stack-w);
  height: var(--r-caption-stack-h);
  flex-direction: column;
  align-items: center;
  padding-top: 17px;
  text-align: center;
}

.work-viewer__title {
  margin: 0;
  font-family: "Averia Libre", Karla, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}

.work-viewer__count {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.home-footer__rule {
  position: absolute;
  right: 5.3%;
  bottom: 63px;
  left: 5.3%;
  height: 1px;
  background: var(--line);
}

.home-footer__label {
  top: var(--r-footer-label-y);
  left: var(--r-footer-label-x);
  display: flex;
  width: var(--r-footer-label-w);
  height: var(--r-footer-label-h);
  align-items: center;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
}

.home-footer__link {
  top: var(--r-footer-link-y);
  right: 5.3%;
  display: flex;
  width: var(--r-footer-link-w);
  height: var(--r-footer-link-h);
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.home-footer__link .icon-arrow {
  width: 19px;
  height: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-link .icon-arrow {
  width: 18px;
  height: 14px;
}

.detail-control .icon-arrow {
  width: 28px;
  height: 16px;
}

.contact-email .icon-arrow {
  display: inline-block;
  margin-left: 3px;
  vertical-align: -0.08em;
}

.artist-contact-link .icon-arrow {
  display: inline-block;
  width: 22px;
  height: 14px;
  margin-left: 8px;
  vertical-align: -0.02em;
}

.current-exhibition__copy > a .icon-arrow {
  display: inline-block;
  margin-left: 4px;
  vertical-align: -0.12em;
}

.error-page > a .icon-arrow {
  display: inline-block;
  width: 19px;
  height: 14px;
  margin-left: 5px;
  vertical-align: -0.12em;
}

@media (max-height: 820px) and (min-width: 761px) {
  .art-home {
    min-height: 660px;
  }
}

/* Shared shell and the inner-gallery pages */
.masthead--inner {
  position: relative;
  inset: auto;
  width: 100%;
  height: 84px;
  pointer-events: auto;
}

.masthead--inner::after {
  top: auto;
  bottom: 0;
}

.masthead--inner .wordmark {
  top: 50%;
  transform: translateY(-50%);
}

.masthead--inner .primary-nav a {
  top: 50%;
  transform: translateY(-50%);
}

.primary-nav a.is-current {
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

.page-main {
  width: min(1360px, 89.4vw);
  margin-inline: auto;
  padding: clamp(64px, 8vw, 122px) 0 clamp(96px, 12vw, 176px);
}

.page-intro {
  max-width: 980px;
  margin: 0 0 clamp(52px, 8vw, 110px);
}

.page-intro h1,
.artist-intro h1,
.error-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 6.2vw, 86px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.page-intro__copy {
  max-width: 40ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
}

.site-footer {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  margin-inline: 5.3%;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.back-link {
  display: inline-block;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover,
.artist-contact-link:hover,
.contact-email:hover {
  color: var(--ink);
}

/* Artworks remain uncropped: each image keeps the proportions of its original. */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(18px, 3vw, 46px);
  row-gap: clamp(68px, 10vw, 142px);
  align-items: start;
}

.artwork-card {
  grid-column: span 4;
  min-width: 0;
}

.artwork-card:nth-child(5n + 1) {
  grid-column: 2 / span 5;
}

.artwork-card:nth-child(5n + 2) {
  grid-column: 8 / span 4;
  margin-top: clamp(64px, 9vw, 128px);
}

.artwork-card:nth-child(5n + 3) {
  grid-column: 3 / span 4;
}

.artwork-card:nth-child(5n + 4) {
  grid-column: 8 / span 5;
  margin-top: clamp(44px, 7vw, 102px);
}

.artwork-card:nth-child(5n + 5) {
  grid-column: 2 / span 4;
}

.artwork-card__link,
.moving-card__link {
  display: block;
  text-decoration: none;
}

.artwork-card__image,
.moving-card figure {
  display: grid;
  min-height: 220px;
  place-items: center;
  margin: 0;
  background: #f3f3f1;
}

.artwork-card__image img,
.moving-card figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(76vh, 960px);
  object-fit: contain;
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-card__link:hover .artwork-card__image img,
.moving-card__link:hover figure img {
  opacity: 0.9;
}

.artwork-card__caption,
.moving-card__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.artwork-card__caption h2,
.moving-card__caption h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.artwork-card__caption span,
.moving-card__caption span {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.artwork-detail {
  padding-top: 42px;
}

.artwork-detail__stage {
  display: grid;
  min-height: min(72vh, 800px);
  grid-template-columns: minmax(48px, 1fr) minmax(0, 4fr) minmax(48px, 1fr);
  align-items: center;
  gap: 24px;
}

.artwork-detail__figure {
  display: grid;
  min-width: 0;
  min-height: 280px;
  height: min(72vh, 800px);
  place-items: center;
  margin: 0;
}

.artwork-detail__figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 9px 26px rgba(20, 23, 21, 0.1);
}

.detail-control {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  justify-self: center;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}

.artwork-detail__caption {
  display: flex;
  max-width: 900px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 24px auto 0;
}

.artwork-detail__caption h1 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.artwork-detail__caption > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.page-index {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* The seven source stills are a numbered sequence, never presented as video. */
.moving-page .page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  column-gap: 48px;
  align-items: end;
}

.moving-page .page-intro h1 {
  grid-column: 1;
  grid-row: 1;
}

.moving-page .page-intro__copy {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 6px;
}

.moving-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(56px, 8vw, 112px) clamp(22px, 5vw, 72px);
}

.moving-card:nth-child(even) {
  margin-top: 72px;
}

.moving-card figure {
  min-height: 280px;
}

/* Biography follows the cadence of an exhibition catalogue. */
.artist-page {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(62px, 9vw, 128px);
  align-items: start;
}

.artist-intro {
  grid-column: 1 / 8;
  grid-row: 1;
  padding-top: 2vh;
}

.artist-intro h1 {
  font-size: clamp(54px, 8vw, 6rem);
  letter-spacing: -0.04em;
}

.artist-intro h1 span {
  color: var(--muted);
}

.artist-intro__education {
  margin: 38px 0 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
}

.artist-work,
.artist-portrait {
  margin: 0;
}

.artist-work img,
.artist-portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.artist-work--one {
  grid-column: 9 / 13;
  grid-row: 1 / span 2;
  margin-top: 18vh;
}

.artist-statement {
  grid-column: 2 / 8;
  grid-row: 2;
  max-width: 65ch;
  padding-top: clamp(28px, 8vw, 100px);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.55;
}

.artist-statement > div > p:first-child {
  margin-top: 0;
}

.artist-statement blockquote {
  margin: 56px 0 24px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.25;
}

.artist-portrait {
  grid-column: 2 / 6;
  grid-row: 3;
}

.artist-work--two {
  grid-column: 7 / 13;
  grid-row: 3;
  margin-top: 11vh;
}

.artist-contact-link {
  grid-column: 3 / 11;
  grid-row: 4;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: clamp(20px, 2.5vw, 34px);
  line-height: 1.3;
  text-decoration: none;
}

/* Current and past exhibitions: the facts stay easy to scan. */
.current-exhibition {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
  padding: 0 0 clamp(80px, 12vw, 160px);
}

.current-exhibition__images {
  display: grid;
  gap: 18px;
}

.current-exhibition__images figure {
  margin: 0;
  background: #f1f1ee;
}

.current-exhibition__images img {
  display: block;
  width: 100%;
  height: auto;
}

.current-exhibition__copy h2 {
  max-width: 12ch;
  margin: 0 0 28px;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.current-exhibition__copy > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.current-exhibition__copy a {
  display: inline-block;
  margin-top: 20px;
  text-decoration-thickness: 1px;
}

.past-exhibitions {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.past-exhibitions h2,
.permanent-exhibitions h2 {
  margin: 0 0 28px;
  font-size: clamp(23px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.past-exhibitions ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.past-exhibitions li {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.past-exhibitions li span:last-child {
  color: var(--muted);
}

.permanent-exhibitions {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 24px;
  padding-top: 80px;
}

.permanent-exhibitions p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Contact and legal information remain calm and useful. */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 12vw, 180px);
  align-items: start;
  padding-top: 16px;
}

.contact-details > p:first-child {
  margin: 0 0 16px;
  font-size: 22px;
}

.contact-details address {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  font-style: normal;
  line-height: 1.5;
}

.contact-email {
  font-size: clamp(22px, 3vw, 38px);
  text-decoration: none;
}

.contact-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.contact-quote {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(28px, 4.4vw, 60px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.legal-staging-note {
  max-width: 76ch;
  padding: 18px 20px;
  border-left: 2px solid var(--muted);
  margin: 0 0 48px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.legal-copy {
  max-width: 75ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.legal-copy h2,
.legal-copy h3,
.legal-copy h4 {
  margin: 2.4em 0 0.7em;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
}

.legal-copy h2 {
  font-size: 29px;
}

.legal-copy h3 {
  font-size: 22px;
}

.legal-copy h4 {
  font-size: 18px;
}

.legal-copy ul {
  padding-left: 1.4em;
}

.error-page h1 {
  max-width: 12ch;
  margin: 0 0 32px;
}

.error-page > a {
  text-decoration: none;
}

.exhibition-home {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding: 118px 5.3% 118px;
}

.exhibition-home__image {
  position: relative;
  width: min(65vw, 1000px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0 auto 34px;
  background: #f0f0ed;
}

.exhibition-home__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.exhibition-home__caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.7fr);
  align-items: start;
  gap: 28px;
  margin: 0;
}

.exhibition-home__caption h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(28px, 2.2vw, 36px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.exhibition-home__details {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

.exhibition-home__details p {
  margin: 0 0 6px;
}

.exhibition-home .home-footer__label {
  width: auto;
  letter-spacing: 0.17em;
  white-space: nowrap;
}

@media (max-width: 1050px) and (min-width: 761px) {
  .artwork-card,
  .artwork-card:nth-child(n) {
    grid-column: span 6;
    margin-top: 0;
  }

  .artwork-card:nth-child(4n + 2) {
    margin-top: 75px;
  }

  .artist-intro {
    grid-column: 1 / 9;
  }

  .artist-work--one {
    grid-column: 9 / 13;
  }

  .artist-statement {
    grid-column: 1 / 9;
  }
}

@media (max-width: 760px) {
  .masthead {
    inset: 0 0 auto;
    width: 100%;
    height: 74px;
    pointer-events: auto;
  }

  .masthead::after {
    top: auto;
    right: 20px;
    bottom: 0;
    left: 20px;
  }

  .masthead--inner {
    position: relative;
    inset: auto;
    height: 74px;
  }

  .wordmark,
  .masthead--inner .wordmark {
    top: 50%;
    left: 20px;
    width: auto;
    height: auto;
    transform: translateY(-50%);
    font-size: 12px;
    letter-spacing: 0.28em;
  }

  .nav-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    z-index: 5;
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    transform: translateY(-50%);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
  }

  .nav-toggle__mark,
  .nav-toggle__mark::after {
    display: block;
    width: 16px;
    height: 1px;
    background: currentColor;
  }

  .nav-toggle__mark {
    position: relative;
  }

  .nav-toggle__mark::after {
    position: absolute;
    top: 5px;
    content: "";
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__mark {
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__mark::after {
    top: 0;
    transform: rotate(90deg);
  }

  .primary-nav {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    z-index: 4;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a,
  .masthead--inner .primary-nav a {
    position: static;
    display: block;
    width: auto;
    height: auto;
    padding: 13px 0;
    transform: none;
    font-size: 17px;
  }

  .art-home {
    min-height: 680px;
    height: 100svh;
  }

  .work-viewer__frame {
    top: 15%;
    left: 8%;
    width: 84%;
    height: 62%;
  }

  .work-viewer__image {
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    box-shadow: none;
  }

  .work-viewer__caption {
    top: 77%;
    left: 25%;
    width: 50%;
    height: 9%;
    padding-top: 0;
  }

  .work-viewer__title {
    font-size: 14px;
  }

  .work-viewer__count {
    margin-top: 1px;
    font-size: 11px;
  }

  .work-viewer__control {
    top: 78%;
    width: 12%;
    height: 44px;
  }

  .work-viewer__control--previous {
    left: 8%;
  }

  .work-viewer__control--next {
    right: 8%;
    left: auto;
  }

  .work-viewer__control .icon-arrow {
    width: 24px;
  }

  .home-footer__rule {
    right: 20px;
    bottom: 57px;
    left: 20px;
  }

  .home-footer__label {
    top: auto;
    bottom: 17px;
    left: 20px;
    width: auto;
    height: 24px;
    font-size: 10px;
    letter-spacing: 0.17em;
  }

  .home-footer__link {
    top: auto;
    right: 20px;
    bottom: 17px;
    width: auto;
    height: 24px;
    gap: 7px;
    font-size: 12px;
  }

  .home-footer__link .icon-arrow {
    width: 17px;
  }

  .exhibition-home {
    min-height: 100svh;
    padding: 92px 20px 120px;
  }

  .exhibition-home__image {
    width: 100%;
    margin-bottom: 16px;
  }

  .exhibition-home__caption {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .exhibition-home__caption h1 {
    font-size: clamp(24px, 7vw, 34px);
  }

  .exhibition-home__details {
    text-align: left;
  }

  .exhibition-home .home-footer__label {
    left: 20px;
    font-size: 8px;
  }

  .page-main {
    width: auto;
    margin-inline: 20px;
    padding: 56px 0 94px;
  }

  .page-intro {
    margin-bottom: 48px;
  }

  .page-intro h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .page-intro__copy {
    margin-top: 14px;
    font-size: 17px;
  }

  .artwork-grid {
    grid-template-columns: 1fr;
    row-gap: 50px;
  }

  .artwork-card,
  .artwork-card:nth-child(n) {
    grid-column: 1;
    margin: 0;
  }

  .artwork-card__image {
    min-height: 190px;
  }

  .artwork-card__image img {
    max-height: 72vh;
  }

  .artwork-detail {
    padding-top: 24px;
  }

  .back-link {
    margin-bottom: 22px;
  }

  .artwork-detail__stage {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) 50px;
    gap: 12px;
  }

  .artwork-detail__figure {
    grid-column: 1 / -1;
    grid-row: 1;
    height: min(68svh, 680px);
    min-height: 260px;
  }

  .artwork-detail__figure img {
    max-height: 100%;
    max-width: 100%;
  }

  .detail-control {
    width: 44px;
    height: 44px;
  }

  .detail-control--previous {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .detail-control--next {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .artwork-detail__caption {
    align-items: start;
    margin-top: 18px;
  }

  .artwork-detail__caption > p {
    display: none;
  }

  .page-index {
    font-size: 10px;
  }

  .moving-page .page-intro {
    display: block;
  }

  .moving-page .page-intro__copy {
    margin-top: 14px;
  }

  .moving-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .moving-card:nth-child(even) {
    margin-top: 0;
  }

  .moving-card figure {
    min-height: 220px;
  }

  .artist-page {
    display: flex;
    flex-direction: column;
    gap: 42px;
  }

  .artist-intro {
    padding-top: 4px;
  }

  .artist-intro h1 {
    font-size: clamp(54px, 14vw, 82px);
  }

  .artist-intro__education {
    margin-top: 24px;
    font-size: 20px;
  }

  .artist-work--one {
    width: 78%;
    align-self: flex-end;
    margin: 4px 0 0;
  }

  .artist-statement {
    padding: 0;
    font-size: 18px;
  }

  .artist-statement blockquote {
    margin: 36px 0 18px;
    padding-left: 18px;
    font-size: 25px;
  }

  .artist-portrait {
    width: 72%;
  }

  .artist-work--two {
    width: 88%;
    align-self: flex-start;
    margin: 0;
  }

  .artist-contact-link {
    padding: 22px 0;
    font-size: 21px;
  }

  .current-exhibition {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 64px;
  }

  .current-exhibition__images {
    gap: 12px;
  }

  .current-exhibition__copy h2 {
    margin: 0 0 20px;
    font-size: 38px;
  }

  .past-exhibitions li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 15px 0;
    font-size: 15px;
  }

  .permanent-exhibitions {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 54px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 58px;
    padding-top: 0;
  }

  .contact-quote {
    max-width: 17ch;
    font-size: 36px;
  }

  .legal-copy {
    font-size: 15px;
    line-height: 1.65;
  }

  .legal-copy h2 {
    font-size: 25px;
  }

  .legal-copy h3 {
    font-size: 20px;
  }

  .legal-staging-note {
    margin-bottom: 32px;
    padding: 14px 16px;
  }

  .site-footer {
    min-height: 76px;
    margin-inline: 20px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Design pass 2: a graphite exhibition room, with glass only on navigation. */
.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

html,
body {
  background: var(--canvas);
  color: var(--text);
}

html {
  scrollbar-color: #62675f var(--canvas);
}

body {
  caret-color: var(--text);
}

::selection {
  background: #454a44;
  color: var(--text);
}

a {
  text-decoration-color: rgb(242 240 235 / 0.42);
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

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

.masthead,
.masthead--inner {
  position: fixed;
  z-index: 30;
  top: max(18px, env(safe-area-inset-top));
  right: auto;
  bottom: auto;
  left: 50%;
  display: flex;
  width: min(calc(100% - 48px), 900px);
  height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transform: translateX(-50%);
  border: 0;
  border-bottom: 1px solid #333;
  border-radius: 0;
  background: var(--canvas);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: auto;
  transition: none;
}

.masthead.is-over-content {
  background: var(--surface);
}

@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .masthead.is-over-content {
    background: rgb(35 38 35 / 0.84);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.masthead::after {
  display: none;
}

.masthead .wordmark,
.masthead .primary-nav a,
.masthead .nav-toggle {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  transform: none;
}

.masthead .wordmark {
  flex: none;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.28em;
}

.primary-nav {
  position: static;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
  padding: 0;
  border: 0;
  background: transparent;
}

.masthead .primary-nav a {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 0 1px;
  color: #d8dad3 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.masthead .primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: currentColor;
  content: "";
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.masthead .primary-nav a:hover,
.masthead .primary-nav a.is-current {
  color: var(--text) !important;
}

.masthead .primary-nav a:hover::after,
.masthead .primary-nav a.is-current::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

.art-home {
  position: relative;
  min-height: 660px;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 44%, rgb(86 91 84 / 0.14), transparent 48%),
    var(--canvas);
}

.art-home::after,
.exhibition-home::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgb(24 26 24 / 0.12) 0%,
      transparent 22%,
      transparent 63%,
      rgb(24 26 24 / 0.86) 100%
    );
  content: "";
  pointer-events: none;
}

.work-viewer__art-link {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
}

.work-viewer__frame {
  position: absolute;
  inset: 78px 6vw 116px;
  width: auto;
  height: auto;
  margin: 0;
}

.work-viewer__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

.work-viewer__caption {
  z-index: 2;
  top: auto;
  right: auto;
  bottom: clamp(112px, 14vh, 164px);
  left: clamp(28px, 7vw, 104px);
  display: flex;
  width: min(68vw, 820px);
  height: auto;
  align-items: flex-start;
  padding: 0;
  color: var(--text);
  text-align: left;
}

.work-viewer__title {
  max-width: 18ch;
  font-family: Karla, sans-serif;
  font-size: clamp(30px, 4.1vw, 56px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-transform: none;
}

.work-viewer__count {
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.work-viewer__control {
  z-index: 2;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  transform: translateY(-50%);
  color: var(--text);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-viewer__control--previous {
  right: auto;
  left: clamp(14px, 2.2vw, 34px);
}

.work-viewer__control--next {
  right: clamp(14px, 2.2vw, 34px);
  left: auto;
}

.work-viewer__control:hover {
  color: var(--text);
  opacity: 0.72;
}

.work-viewer__control--previous:hover {
  transform: translate(-3px, -50%);
}

.work-viewer__control--next:hover {
  transform: translate(3px, -50%);
}

.home-footer {
  position: absolute;
  z-index: 3;
  right: clamp(28px, 5.3vw, 76px);
  bottom: max(24px, env(safe-area-inset-bottom));
  left: clamp(28px, 5.3vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  color: var(--text);
}

.home-footer__rule {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  height: 1px;
  background: var(--line);
}

.home-footer__label,
.home-footer__link {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
}

.home-footer__label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.home-footer__link {
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}

.home-footer__link:hover {
  color: var(--text);
}

.exhibition-home {
  position: relative;
  min-height: 660px;
  height: 100svh;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(ellipse at 50% 44%, rgb(86 91 84 / 0.14), transparent 48%),
    var(--canvas);
}

.exhibition-home__image {
  position: absolute;
  z-index: 0;
  inset: 78px 5vw 112px;
  display: grid;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  place-items: center;
  overflow: visible;
  margin: 0;
  background: transparent;
}

.exhibition-home__image img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.exhibition-home__caption {
  position: absolute;
  z-index: 2;
  right: clamp(28px, 7vw, 104px);
  bottom: clamp(112px, 14vh, 164px);
  left: clamp(28px, 7vw, 104px);
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.56fr);
  align-items: end;
  gap: 32px;
}

.exhibition-home__caption h1 {
  max-width: 18ch;
  color: var(--text);
  font-size: clamp(32px, 4.4vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.exhibition-home__details {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.exhibition-home .home-footer__label {
  color: var(--muted);
}

.page-main {
  width: min(1360px, 89.4vw);
  margin-inline: auto;
  padding: clamp(126px, 15vh, 176px) 0 clamp(100px, 12vw, 176px);
}

.page-intro {
  max-width: 980px;
  margin: 0 0 clamp(56px, 8vw, 112px);
}

.page-intro h1,
.artist-intro h1,
.error-page h1 {
  color: var(--text);
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.page-intro__copy {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.artwork-grid {
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(84px, 11vw, 156px);
}

.artwork-card,
.moving-card {
  min-width: 0;
}

.artwork-card:nth-child(5n + 1) {
  grid-column: 1 / span 7;
}

.artwork-card:nth-child(5n + 2) {
  grid-column: 9 / span 4;
  margin-top: clamp(108px, 14vw, 190px);
}

.artwork-card:nth-child(5n + 3) {
  grid-column: 3 / span 5;
}

.artwork-card:nth-child(5n + 4) {
  grid-column: 8 / span 5;
  margin-top: clamp(56px, 7vw, 102px);
}

.artwork-card:nth-child(5n + 5) {
  grid-column: 2 / span 4;
}

.artwork-card__image,
.moving-card figure {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: visible;
  background: transparent;
}

.artwork-card__image img,
.moving-card figure img {
  width: 100%;
  max-height: min(88vh, 1080px);
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgb(0 0 0 / 0.2));
  transition:
    filter 260ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-card__link:hover .artwork-card__image img,
.moving-card__link:hover figure img {
  filter: drop-shadow(0 24px 38px rgb(0 0 0 / 0.3)) brightness(1.035);
  transform: translateY(-3px);
}

.artwork-card__caption,
.moving-card__caption {
  padding-top: 17px;
  color: var(--text);
}

.artwork-card__caption h2,
.moving-card__caption h2 {
  font-size: 15px;
  font-weight: 500;
}

.artwork-card__caption span,
.moving-card__caption span {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.artwork-detail {
  width: min(1480px, 94vw);
  padding-top: clamp(112px, 13vh, 148px);
}

.artwork-detail__stage {
  min-height: min(72svh, 850px);
  grid-template-columns: minmax(52px, 0.12fr) minmax(0, 1fr) minmax(52px, 0.12fr);
  gap: clamp(14px, 3vw, 44px);
}

.artwork-detail__figure {
  grid-column: 2;
  grid-row: 1;
}

.detail-control--previous {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}

.detail-control--next {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
}

.artwork-detail__figure {
  min-height: 320px;
  height: min(72svh, 850px);
}

.artwork-detail__figure img {
  max-width: 100%;
  max-height: min(68svh, 760px);
  filter: drop-shadow(0 22px 48px rgb(0 0 0 / 0.4));
  view-transition-name: artwork-image;
}

.detail-control {
  width: 52px;
  height: 52px;
  color: var(--muted);
  transition: color 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-control:hover {
  color: var(--text);
}

.detail-control--previous:hover {
  transform: translateX(-3px);
}

.detail-control--next:hover {
  transform: translateX(3px);
}

.artwork-detail__caption {
  width: min(960px, 82vw);
  margin-top: 30px;
}

.artwork-detail__caption h1 {
  color: var(--text);
  font-size: clamp(30px, 3.3vw, 44px);
  letter-spacing: -0.025em;
}

.artwork-detail__caption > p {
  color: var(--muted);
}

.page-index {
  color: var(--muted);
}

.moving-page .page-intro {
  display: block;
}

.moving-page .page-intro__copy {
  max-width: 42ch;
  margin-top: 20px;
  text-align: left;
}

.moving-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(74px, 10vw, 148px) clamp(20px, 4vw, 58px);
}

.moving-card:nth-child(7n + 1) {
  grid-column: 2 / span 7;
}

.moving-card:nth-child(7n + 2) {
  grid-column: 10 / span 3;
  margin-top: clamp(116px, 16vw, 214px);
}

.moving-card:nth-child(7n + 3) {
  grid-column: 1 / span 4;
}

.moving-card:nth-child(7n + 4) {
  grid-column: 6 / span 6;
  margin-top: clamp(68px, 9vw, 124px);
}

.moving-card:nth-child(7n + 5) {
  grid-column: 2 / span 5;
}

.moving-card:nth-child(7n + 6) {
  grid-column: 8 / span 5;
  margin-top: clamp(70px, 9vw, 128px);
}

.moving-card:nth-child(7n + 7) {
  grid-column: 4 / span 6;
}

.moving-card figure {
  min-height: 0;
}

.moving-detail .artwork-detail__figure img {
  view-transition-name: artwork-image;
}

.artist-intro h1 {
  font-size: clamp(56px, 8vw, 96px);
}

.artist-intro h1 span {
  color: var(--muted);
}

.artist-statement {
  color: var(--muted);
}

.artist-statement blockquote {
  border-left-color: var(--line);
  color: var(--text);
}

.artist-contact-link {
  border-top-color: var(--line);
  border-bottom-color: var(--line);
  color: var(--text);
}

.current-exhibition__images figure {
  background: transparent;
}

.current-exhibition__copy h2,
.past-exhibitions h2,
.permanent-exhibitions h2 {
  color: var(--text);
}

.current-exhibition__copy > p,
.permanent-exhibitions p {
  color: var(--muted);
}

.past-exhibitions,
.past-exhibitions li,
.artist-contact-link,
.site-footer {
  border-color: var(--line);
}

.past-exhibitions li span:last-child,
.site-footer {
  color: var(--muted);
}

.contact-details address,
.contact-note {
  color: var(--muted);
}

.contact-quote {
  color: var(--text);
}

.legal-copy {
  color: var(--muted);
}

.legal-copy h2,
.legal-copy h3,
.legal-copy h4 {
  color: var(--text);
}

.legal-staging-note {
  border-left: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.error-page h1 {
  color: var(--text);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

body.motion-ready [data-reveal]:not(.is-visible) {
  opacity: 0.88;
  transform: translateY(4px);
}

body.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 280ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes artwork-unveil {
  from {
    clip-path: inset(7% 6% 7%);
    filter: blur(2px);
    opacity: 0.72;
    transform: scale(1.035);
  }
  to {
    clip-path: inset(0);
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-copy-arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.motion-ready.is-home .work-viewer__image,
  body.motion-ready.is-home .exhibition-home__image img {
    animation: artwork-unveil 1050ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  body.motion-ready.is-home .work-viewer__caption,
  body.motion-ready.is-home .exhibition-home__caption,
  body.motion-ready.is-home .home-footer {
    animation: hero-copy-arrive 720ms cubic-bezier(0.16, 1, 0.3, 1) 300ms both;
  }

}

@keyframes gallery-page-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  #main:not([data-reveal]) {
    animation: gallery-page-arrive 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

::view-transition-group(artwork-image) {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(artwork-image) {
  animation: artwork-transition-out 140ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

::view-transition-new(artwork-image) {
  animation: artwork-transition-in 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes artwork-transition-out {
  to {
    opacity: 0.55;
    transform: scale(0.985);
  }
}

@keyframes artwork-transition-in {
  from {
    opacity: 0.55;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #858a82;
    --muted: #d1d2cd;
  }

  .masthead,
  .masthead--inner,
  .masthead.is-over-content,
  .masthead .primary-nav.is-open {
    border-color: rgb(242 240 235 / 0.42);
    background: #232623;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .masthead,
  .masthead--inner,
  .masthead.is-over-content,
  .masthead .primary-nav.is-open {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  :focus-visible {
    outline: 2px solid Highlight;
  }
}

@media (max-width: 1050px) and (min-width: 761px) {
  .artwork-card:nth-child(n) {
    grid-column: span 6;
    margin-top: 0;
  }

  .artwork-card:nth-child(4n + 2) {
    margin-top: 92px;
  }

  .moving-card:nth-child(n) {
    grid-column: span 6;
    margin-top: 0;
  }

  .moving-card:nth-child(3n + 2) {
    margin-top: 88px;
  }
}

@media (max-width: 760px) {
  .masthead,
  .masthead--inner {
    top: max(12px, env(safe-area-inset-top));
    width: calc(100% - 24px);
    height: 58px;
    padding: 0 16px;
    border-radius: 0;
  }

  .masthead .wordmark {
    font-size: 12px;
    letter-spacing: 0.25em;
  }

  .masthead .nav-toggle {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0;
    border: 0;
    color: var(--text);
    font: 500 13px/1.2 Karla, sans-serif;
    cursor: pointer;
  }

  .nav-toggle__mark,
  .nav-toggle__mark::after {
    display: block;
    width: 16px;
    height: 1px;
    background: currentColor;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-toggle__mark {
    position: relative;
  }

  .nav-toggle__mark::after {
    position: absolute;
    top: 5px;
    content: "";
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__mark {
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__mark::after {
    top: 0;
    transform: rotate(90deg);
  }

  .masthead .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 7px 16px;
    border: 0;
    border-bottom: 1px solid #333;
    border-radius: 0;
    background: var(--canvas);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .masthead .primary-nav.is-open {
    display: flex;
  }

  .masthead .primary-nav a {
    min-height: 50px;
    justify-content: flex-start;
    border-bottom: 1px solid rgb(242 240 235 / 0.1);
    font-size: 16px;
  }

  .masthead .primary-nav a:last-child {
    border-bottom: 0;
  }

  .masthead .primary-nav a::after {
    right: auto;
    bottom: 8px;
    width: 36px;
  }

  .art-home,
  .exhibition-home {
    min-height: 680px;
    height: 100svh;
  }

  .work-viewer__frame {
    inset: 72px 4vw 152px;
  }

  .work-viewer__caption {
    right: 24px;
    bottom: 106px;
    left: 24px;
    width: auto;
  }

  .work-viewer__title {
    max-width: 20ch;
    font-size: clamp(27px, 7.5vw, 36px);
  }

  .work-viewer__count {
    margin-top: 7px;
    font-size: 11px;
  }

  .work-viewer__control {
    top: 50%;
    bottom: auto;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
  }

  .work-viewer__control--previous {
    right: auto;
    left: 12px;
  }

  .work-viewer__control--next {
    right: 12px;
    left: auto;
  }

  .work-viewer__control--previous:hover,
  .work-viewer__control--next:hover {
    transform: translateY(-50%);
  }

  .home-footer {
    right: 24px;
    bottom: max(17px, env(safe-area-inset-bottom));
    left: 24px;
    gap: 12px;
    padding-top: 13px;
  }

  .home-footer__label {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .home-footer__link {
    gap: 6px;
    font-size: 12px;
  }

  .home-footer__link .icon-arrow {
    width: 16px;
  }

  .exhibition-home__image {
    inset: 70px 2vw 150px;
  }

  .exhibition-home__caption {
    right: 24px;
    bottom: 105px;
    left: 24px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .exhibition-home__caption h1 {
    max-width: 18ch;
    font-size: clamp(28px, 7.4vw, 38px);
  }

  .exhibition-home__details {
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
  }

  .exhibition-home .home-footer__label {
    font-size: 8px;
  }

  .page-main {
    width: auto;
    margin-inline: 20px;
    padding: 112px 0 94px;
  }

  .page-intro {
    margin-bottom: 56px;
  }

  .page-intro h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .page-intro__copy {
    margin-top: 15px;
    font-size: 17px;
  }

  .artwork-grid {
    grid-template-columns: 1fr;
    row-gap: 58px;
  }

  .artwork-card:nth-child(n) {
    grid-column: 1;
    margin: 0;
  }

  .artwork-card__image img,
  .moving-card figure img {
    max-height: 78svh;
  }

  .artwork-card__caption,
  .moving-card__caption {
    padding-top: 13px;
  }

  .artwork-detail {
    width: auto;
    margin-inline: 20px;
    padding-top: 96px;
  }

  .artwork-detail .back-link {
    margin-bottom: 16px;
  }

  .artwork-detail__stage {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) 50px;
    gap: 10px;
  }

  .artwork-detail__figure {
    grid-column: 1 / -1;
    grid-row: 1;
    height: min(64svh, 680px);
    min-height: 280px;
  }

  .artwork-detail__figure img {
    max-width: 100%;
    max-height: min(56svh, 560px);
  }

  .detail-control {
    width: 48px;
    height: 48px;
  }

  .detail-control--previous {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .detail-control--next {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .artwork-detail__caption {
    width: 100%;
    align-items: start;
    margin-top: 20px;
  }

  .artwork-detail__caption > p {
    display: none;
  }

  .moving-page .page-intro__copy {
    margin-top: 15px;
  }

  .moving-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .moving-card:nth-child(n) {
    grid-column: 1;
    margin-top: 0;
  }

  .artist-page {
    display: flex;
    flex-direction: column;
    gap: 46px;
  }

  .artist-intro {
    padding-top: 0;
  }

  .artist-intro h1 {
    font-size: clamp(54px, 14vw, 82px);
  }

  .artist-intro__education {
    margin-top: 24px;
    color: var(--muted);
    font-size: 19px;
  }

  .artist-work--one {
    width: 84%;
    align-self: flex-end;
    margin: 0;
  }

  .artist-statement {
    padding: 0;
    font-size: 18px;
  }

  .artist-statement blockquote {
    margin: 36px 0 18px;
    padding-left: 18px;
    font-size: 25px;
  }

  .artist-portrait {
    width: 76%;
  }

  .artist-work--two {
    width: 90%;
    align-self: flex-start;
    margin: 0;
  }

  .artist-contact-link {
    padding: 22px 0;
    font-size: 21px;
  }

  .current-exhibition {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 64px;
  }

  .current-exhibition__images {
    gap: 18px;
  }

  .past-exhibitions li {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 16px 0;
  }

  .permanent-exhibitions {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 58px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-top: 0;
  }

  .contact-email {
    overflow-wrap: anywhere;
  }

  .contact-quote {
    max-width: 18ch;
    font-size: 34px;
  }

  .legal-copy {
    font-size: 16px;
    line-height: 1.68;
  }

  .legal-copy h2 {
    font-size: 25px;
  }

  .legal-copy h3 {
    font-size: 20px;
  }

  .legal-staging-note {
    margin-bottom: 32px;
    padding: 14px 16px;
  }

  .site-footer {
    min-height: 76px;
    margin-inline: 20px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.motion-ready [data-reveal],
  body.motion-ready [data-reveal]:not(.is-visible),
  body.motion-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.motion-ready.is-home .work-viewer__image,
  body.motion-ready.is-home .exhibition-home__image img,
  body.motion-ready.is-home .work-viewer__caption,
  body.motion-ready.is-home .exhibition-home__caption,
  body.motion-ready.is-home .home-footer,
  body.motion-ready.is-home .masthead {
    animation: none !important;
  }

  ::view-transition-group(artwork-image),
  ::view-transition-old(artwork-image),
  ::view-transition-new(artwork-image) {
    animation: none !important;
    animation-duration: 1ms !important;
  }
}

.artwork-detail__fullscreen-trigger {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.artwork-detail__fullscreen-trigger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}

.artwork-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  margin: 0;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  box-sizing: border-box;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: var(--canvas);
  color: var(--text);
}

.artwork-lightbox[open] {
  display: grid;
}

.artwork-lightbox.has-actions {
  grid-template-rows: minmax(0, 1fr) 44px;
  row-gap: 8px;
}

.artwork-lightbox__actions {
  grid-row: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.artwork-lightbox__actions[hidden],
.artwork-lightbox__actions > [hidden] { display: none; }

.artwork-lightbox__identifier {
  margin: 0;
  color: var(--muted);
  font: 400 12px/1.4 Karla, sans-serif;
  letter-spacing: 0.02em;
}

.artwork-detail__caption .artwork-detail__identifier {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: Karla, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.artwork-lightbox::backdrop {
  background: rgb(0 0 0 / 0.94);
}

.artwork-lightbox__stage {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template: minmax(0, 1fr) / 56px minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: center;
}

.artwork-lightbox__controls {
  display: contents;
}

.artwork-lightbox__controls[hidden] { display: none; }
.artwork-lightbox.has-single-image .artwork-lightbox__stage { grid-template-columns: minmax(0, 1fr); }
.artwork-lightbox.has-single-image .artwork-lightbox__image { grid-column: 1; }

@media (prefers-reduced-motion: no-preference) {
  .artwork-lightbox[open]::backdrop {
    animation: lightbox-backdrop-arrive 230ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .artwork-lightbox.is-closing::backdrop {
    animation: lightbox-backdrop-leave 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .artwork-lightbox.is-instant::backdrop { animation: none; }
}

@keyframes lightbox-backdrop-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightbox-backdrop-leave { from { opacity: 1; } to { opacity: 0; } }

.artwork-lightbox__image {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.artwork-lightbox__step {
  grid-row: 1;
  display: grid;
  width: 48px;
  height: 48px;
  justify-self: center;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-lightbox__step--previous { grid-column: 1; }
.artwork-lightbox__step--next { grid-column: 3; }

.artwork-lightbox__step svg { width: 28px; height: 28px; }

.artwork-lightbox__step:disabled {
  opacity: 0.25;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .artwork-lightbox__step:not(:disabled):hover {
    background-color: var(--surface);
  }
}

.artwork-lightbox__step:not(:disabled):active { transform: scale(0.96); }

.artwork-lightbox [data-artwork-lightbox-status] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.artwork-lightbox__close {
  position: absolute;
  z-index: 1;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

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

html.has-artwork-lightbox {
  overflow: hidden;
}

@media (max-width: 760px) {
  .artwork-lightbox {
    padding-top: max(52px, calc(env(safe-area-inset-top) + 44px));
  }

  .artwork-lightbox__stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .artwork-lightbox__image {
    flex: 0 1 auto;
    width: auto;
    height: auto;
    max-height: calc(100% - 60px);
  }

  .artwork-lightbox__controls {
    display: flex;
    flex: none;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .artwork-lightbox.has-single-image .artwork-lightbox__image { max-height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .artwork-lightbox__step { transition: none; }
  .artwork-lightbox__step:not(:disabled):active { transform: none; }
}

.artwork-card__fullscreen-trigger,
.moving-card__fullscreen-trigger,
.work-viewer__art-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.artwork-card__fullscreen-trigger,
.moving-card__fullscreen-trigger {
  display: block;
  width: 100%;
}

.artwork-card__caption-link,
.moving-card__caption-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.artwork-card__caption-link:hover,
.moving-card__caption-link:hover,
.work-viewer__caption-link:hover {
  color: var(--text);
}

.artwork-card__fullscreen-trigger:focus-visible,
.moving-card__fullscreen-trigger:focus-visible,
.work-viewer__art-link:focus-visible,
.artwork-card__caption-link:focus-visible,
.moving-card__caption-link:focus-visible,
.work-viewer__caption-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}

.artwork-card__fullscreen-trigger:hover img,
.moving-card__fullscreen-trigger:hover img {
  filter: drop-shadow(0 24px 38px rgb(0 0 0 / 0.3)) brightness(1.035);
  transform: translateY(-3px);
}

.work-viewer__caption-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-viewer__work-id {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
}

/* Curated image walls: art stays complete, typography occupies its own tile. */
.curated-home,
.gallery-wall {
  width: min(1640px, calc(100% - 48px));
  margin-inline: auto;
}

.curated-home {
  padding: 106px 0 86px;
}

.gallery-wall {
  padding: 106px 0 112px;
}

.curated-home__art-grid,
.curated-home__lead,
.gallery-wall__cluster {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(8px, 0.9vw, 14px);
  row-gap: clamp(8px, 0.9vw, 14px);
}

.curated-home__art-grid > .wall-work--feature,
.gallery-wall__cluster > .wall-work--feature {
  grid-column: 1 / span 6;
  grid-row: 1 / span 2;
}

.curated-home__art-card,
.gallery-wall__intro {
  grid-column: 7 / span 3;
  grid-row: 1;
}

.curated-home__art-grid > article:nth-of-type(2),
.gallery-wall__cluster--opening > article:nth-of-type(2) {
  grid-column: 10 / span 3;
  grid-row: 1;
}

.curated-home__art-grid > article:nth-of-type(3),
.gallery-wall__cluster--opening > article:nth-of-type(3) {
  grid-column: 7 / span 3;
  grid-row: 2;
}

.curated-home__art-grid > article:nth-of-type(4),
.gallery-wall__cluster--opening > article:nth-of-type(4) {
  grid-column: 10 / span 3;
  grid-row: 2;
}

.editorial-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(18px, 2.1vw, 36px);
  background: var(--title-paper);
  color: var(--canvas);
}

.editorial-card h1 {
  margin: 0;
  color: var(--canvas);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(62px, 6.5vw, 96px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.93;
  overflow-wrap: normal;
}

.curated-home__art-card h1 {
  max-width: 4.8ch;
}

.editorial-card .editorial-card__thought {
  max-width: 17ch;
  margin-top: 28px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.12;
  text-wrap: balance;
}

.editorial-card p {
  margin: 0;
}

.editorial-card__artist {
  margin-top: auto !important;
  padding-top: 26px;
  color: #454a44;
  font-size: clamp(13px, 1.1vw, 16px);
}

.editorial-card__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--canvas);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.editorial-card__link:hover,
.editorial-card__link:focus-visible {
  color: var(--canvas);
  text-decoration: underline;
}

.editorial-card__link .icon-arrow {
  width: 20px;
}

.editorial-card :focus-visible {
  outline-color: var(--canvas);
}

.wall-work {
  min-width: 0;
  align-self: start;
}

.wall-work__trigger {
  display: block;
  width: 100%;
  padding: 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.wall-work__image {
  display: block;
  margin: 0;
}

.wall-work__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: opacity 280ms ease, transform 440ms cubic-bezier(0.16, 1, 0.3, 1);
}

.wall-work__trigger:hover img {
  opacity: 0.9;
  transform: translateY(-3px);
}

.wall-work__trigger:focus-visible,
.wall-work__caption:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.wall-work__caption {
  display: block;
  padding: 10px 0 0;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.wall-work__caption h2 {
  margin: 0;
  font-family: "Averia Libre", Karla, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.3;
}

.wall-work__caption span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.curated-home__lead > .curated-home__exhibition-image {
  grid-column: 1 / span 8;
  grid-row: 1;
  margin: 0;
}

.curated-home__exhibition-image img {
  display: block;
  width: 100%;
  height: auto;
}

.curated-home__exhibition-card {
  grid-column: 9 / span 4;
  grid-row: 1;
  align-self: stretch;
}

.curated-home__exhibition-card h1 {
  max-width: 9.5ch;
  font-size: clamp(52px, 5.2vw, 82px);
}

.editorial-card__details {
  margin-top: auto;
  padding-top: 28px;
  color: #454a44;
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.35;
}

.editorial-card__details p + p {
  margin-top: 13px;
}

.curated-home__selection {
  margin-top: clamp(38px, 5vw, 76px);
}

.curated-home__selection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.curated-home__selection-heading h2 {
  margin: 0;
  font-family: Karla, sans-serif;
  font-size: clamp(23px, 2.7vw, 36px);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.curated-home__selection-heading a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.curated-home__selection-heading a:hover {
  text-decoration: underline;
}

.curated-home__selection-heading .icon-arrow {
  width: 18px;
}

.curated-home__selection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 0.9vw, 14px);
}

.gallery-wall__cluster + .gallery-wall__cluster {
  margin-top: clamp(38px, 5vw, 76px);
}

.gallery-wall__intro p {
  margin-top: auto;
  padding-top: 28px;
  color: #454a44;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.4;
}

.gallery-wall__cluster:not(.gallery-wall__cluster--opening) > article:nth-of-type(2) {
  grid-column: 7 / span 3;
  grid-row: 1;
}

.gallery-wall__cluster:not(.gallery-wall__cluster--opening) > article:nth-of-type(3) {
  grid-column: 10 / span 3;
  grid-row: 1;
}

.gallery-wall__cluster:not(.gallery-wall__cluster--opening) > article:nth-of-type(4) {
  grid-column: 7 / span 3;
  grid-row: 2;
}

.gallery-wall__cluster:not(.gallery-wall__cluster--opening) > article:nth-of-type(5) {
  grid-column: 10 / span 3;
  grid-row: 2;
}

.gallery-wall__cluster--reverse > .wall-work--feature {
  grid-column: 7 / span 6;
}

.gallery-wall__cluster--reverse > article:nth-of-type(2),
.gallery-wall__cluster--reverse > article:nth-of-type(4) {
  grid-column: 1 / span 3 !important;
}

.gallery-wall__cluster--reverse > article:nth-of-type(3),
.gallery-wall__cluster--reverse > article:nth-of-type(5) {
  grid-column: 4 / span 3 !important;
}

@media (min-width: 761px) {
  .gallery-wall__cluster.moving-wall__cluster--final > .wall-work--feature,
  .gallery-wall__cluster.moving-wall__cluster--final > article:nth-of-type(2),
  .gallery-wall__cluster.moving-wall__cluster--final > article:nth-of-type(3) {
    grid-column: span 4;
    grid-row: 1;
  }
}

@keyframes curated-wall-arrive {
  from { opacity: 0.55; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  body.motion-ready .curated-home__lead,
  body.motion-ready .curated-home__art-grid > .wall-work--feature,
  body.motion-ready .gallery-wall__cluster--opening > .wall-work--feature {
    animation: curated-wall-arrive 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  body.motion-ready .curated-home__art-card,
  body.motion-ready .curated-home__exhibition-card,
  body.motion-ready .gallery-wall__intro {
    animation: curated-wall-arrive 700ms cubic-bezier(0.16, 1, 0.3, 1) 90ms both;
  }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .gallery-wall__intro h1 {
    font-size: clamp(35px, 4.7vw, 50px);
  }

  .curated-home__exhibition-card h1 {
    font-size: clamp(38px, 4.8vw, 52px);
  }
}

@media (max-width: 760px) {
  .curated-home,
  .gallery-wall {
    width: auto;
    margin-inline: 12px;
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .curated-home__art-grid,
  .curated-home__lead,
  .gallery-wall__cluster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .curated-home__art-grid > .wall-work--feature,
  .gallery-wall__cluster > .wall-work--feature,
  .curated-home__lead > .curated-home__exhibition-image {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .curated-home__art-card,
  .gallery-wall__intro,
  .curated-home__exhibition-card {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 212px;
  }

  .curated-home__art-grid > article:nth-of-type(n + 2),
  .gallery-wall__cluster--opening > article:nth-of-type(n + 2),
  .gallery-wall__cluster:not(.gallery-wall__cluster--opening) > article:nth-of-type(n + 2),
  .gallery-wall__cluster--reverse > article:nth-of-type(n + 2) {
    grid-column: auto !important;
    grid-row: auto;
  }

  .editorial-card {
    padding: 20px;
  }

  .editorial-card h1,
  .curated-home__exhibition-card h1 {
    max-width: none;
    font-size: clamp(56px, 15vw, 72px);
  }

  .curated-home__exhibition-card {
    min-height: 300px;
  }

  .curated-home__exhibition-card h1 {
    font-size: clamp(48px, 12.4vw, 62px);
  }

  .editorial-card__artist,
  .gallery-wall__intro p {
    padding-top: 12px;
  }

  .curated-home__selection {
    margin-top: 34px;
  }

  .curated-home__selection-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
  }

  .curated-home__selection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-wall__cluster + .gallery-wall__cluster {
    margin-top: 34px;
  }

  .wall-work__caption {
    padding-top: 8px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wall-work__image img {
    transition: none;
  }
}

/* Artist portrait: one editorial title tile, with biography and work left open. */
.artist-editorial {
  width: min(1640px, calc(100% - 48px));
  padding: 106px 0 112px;
}

.artist-editorial__lead,
.artist-editorial__story,
.artist-editorial__closing {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
  align-items: start;
}

.artist-editorial__portrait,
.artist-editorial__work {
  min-width: 0;
  margin: 0;
}

.artist-editorial__lead {
  max-width: 989px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 405px) minmax(0, 560px);
  justify-content: center;
}

.artist-editorial__portrait {
  grid-column: 1;
  align-self: stretch;
  display: flex;
  justify-content: flex-end;
}

.artist-editorial__portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  object-position: right top;
}

.artist-editorial__title {
  grid-column: 2;
  align-self: stretch;
  min-height: 100%;
  padding: clamp(28px, 3vw, 52px);
}

.artist-editorial__title h1 {
  max-width: 10ch;
  font-size: clamp(58px, 6.5vw, 96px);
  line-height: 0.98;
}

.artist-editorial__title h1 span {
  display: block;
}

.artist-editorial__title p {
  max-width: 35ch;
  margin-top: auto;
  padding-top: 48px;
  color: #454a44;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.4;
}

.artist-editorial__story {
  margin-top: clamp(72px, 8vw, 132px);
}

.artist-editorial__text {
  grid-column: 2 / span 6;
  max-width: 66ch;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
}

/* Long-form artist copy must never wait for a scroll reveal. */
body.motion-ready .artist-editorial__text[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.artist-editorial__text > p:first-child {
  margin: 0 0 clamp(42px, 5vw, 74px);
  color: var(--text);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.artist-editorial__text blockquote {
  margin: 0 0 32px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
}

.artist-editorial__text blockquote p {
  margin: 0 0 16px;
}

.artist-editorial__text blockquote p:last-child {
  margin-bottom: 0;
}

.artist-editorial__text blockquote p:nth-child(2) {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.artist-editorial__text blockquote p:last-child:not(:first-child) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.artist-editorial__text blockquote p:first-child {
  color: var(--text);
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.35;
}

.artist-editorial__work img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.artist-editorial__work--one {
  grid-column: 9 / span 4;
  margin-top: 34px;
}

.artist-editorial__closing {
  margin-top: clamp(72px, 8vw, 132px);
  align-items: start;
}

.artist-editorial__work--two {
  grid-column: 3 / span 8;
}

.artist-editorial__contact {
  grid-column: 9 / span 4;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.28;
  text-decoration: none;
}

.artist-editorial__contact .icon-arrow {
  flex: none;
  width: 28px;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.artist-editorial__contact:hover .icon-arrow {
  transform: translateX(5px);
}

.artist-editorial__contact:focus-visible {
  outline-offset: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .artist-editorial__portrait {
    animation: curated-wall-arrive 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .artist-editorial__title {
    animation: curated-wall-arrive 320ms cubic-bezier(0.16, 1, 0.3, 1) 40ms both;
  }
}

@media (max-width: 760px) {
  .artist-editorial {
    width: auto;
    margin-inline: 12px;
    padding: 82px 0;
  }

  .artist-editorial__lead,
  .artist-editorial__story,
  .artist-editorial__closing {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .artist-editorial__portrait {
    width: 100%;
    justify-content: center;
  }

  .artist-editorial__portrait img {
    width: 100%;
    height: auto;
    max-height: none;
    object-position: center top;
  }

  .artist-editorial__title {
    width: 100%;
    min-height: 270px;
    padding: 22px;
  }

  .artist-editorial__title h1 {
    font-size: clamp(54px, 13vw, 72px);
  }

  .artist-editorial__title p {
    padding-top: 28px;
    font-size: 15px;
  }

  .artist-editorial__story,
  .artist-editorial__closing {
    gap: 34px;
    margin-top: 72px;
  }

  .artist-editorial__text,
  .artist-editorial__work,
  .artist-editorial__contact {
    width: 100%;
    margin-top: 0;
  }

  .artist-editorial__text > p:first-child {
    margin-bottom: 38px;
  }

  .artist-editorial__contact {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .artist-editorial__contact .icon-arrow {
    transition: none;
  }
}

/* Open editorial pauses; enquiry controls remain below, never over, the art. */
.work-enquiry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.work-enquiry .icon-arrow {
  flex: none;
  width: 18px;
  height: 18px;
}

.work-enquiry:hover,
.work-enquiry:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-invitation {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 24px;
  margin-top: clamp(96px, 10vw, 164px);
  padding-top: clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--line);
}

.contact-invitation h2 {
  grid-column: 1 / span 7;
  max-width: 17ch;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.contact-invitation__details {
  grid-column: 9 / span 4;
}

.contact-invitation__details p {
  max-width: 40ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.contact-invitation__link,
.recent-exhibition > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 20px;
  color: var(--text);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--line);
}

.contact-invitation__link:hover,
.recent-exhibition > a:hover {
  text-decoration-color: currentColor;
}

.contact-invitation__link .icon-arrow,
.recent-exhibition .icon-arrow {
  flex: none;
  width: 22px;
  height: 22px;
}

.recent-exhibition {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: clamp(64px, 8vw, 128px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.recent-exhibition h2 {
  grid-column: 1 / span 3;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
}

.recent-exhibition__details {
  grid-column: 5 / span 4;
}

.recent-exhibition h3 {
  margin: 0 0 12px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
}

.recent-exhibition p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.recent-exhibition > a {
  grid-column: 10 / span 3;
}

@media (max-width: 760px) {
  .editorial-card .editorial-card__thought {
    max-width: 23ch;
    margin-top: 18px;
    font-size: clamp(26px, 7vw, 34px);
  }

  .work-enquiry {
    gap: 6px;
    font-size: 12px;
  }

  .work-enquiry .icon-arrow {
    width: 16px;
    height: 16px;
  }

  .contact-invitation,
  .recent-exhibition {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-top: 72px;
    padding-top: 32px;
  }

  .contact-invitation h2 {
    font-size: clamp(44px, 11vw, 64px);
  }

  .recent-exhibition {
    gap: 20px;
  }

}
