/*
  ============================================================
  COLOURS AND FONTS  (change these to restyle the whole site)
  Direction: a fashion lookbook. Paper, black ink, a high-contrast
  Didone for names and lines, small tracked capitals for details.
  The paintings are the only colour on the page.
  ============================================================
*/
:root {
  --paper: #f7f6f3;       /* page */
  --paper-2: #efede8;     /* quiet panels */
  --ink: #131211;         /* text */
  --ink-soft: #66625b;    /* details, captions */
  --rule: #d9d6cf;        /* hairlines */

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --side: clamp(20px, 5vw, 72px);           /* page margin */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; text-wrap: balance; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

/* small tracked capitals: nav, details, links */
.masthead__nav a, .line-link, .text-btn, .works__note, .footer, .piece__meta, .piece__status, .viewer__count, .viewer__word, .viewer__pct, .viewer__caption p {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}

/* underline that draws in from the left */
.line-link, .masthead__nav a, .footer a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size .35s var(--ease-out);
}
.line-link { background-size: 100% 1px; }
@media (hover: hover) and (pointer: fine) {
  .masthead__nav a:hover, .footer a:hover { background-size: 100% 1px; }
  .line-link:hover { background-size: 0 1px; background-position: 100% 100%; }
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px;
  padding-left: max(var(--side), env(safe-area-inset-left, 0px));
  padding-right: max(var(--side), env(safe-area-inset-right, 0px));
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.masthead__nav { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.masthead__nav--end { justify-content: flex-end; }
.masthead__nav a { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; background-position: 0 calc(50% + 10px); }
.masthead__logo {
  font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em; /* optical centring of tracked caps */
}

/* ---------- cover ----------
   One painting, hung large, and her name beside it. On load the painting is
   uncovered from the top and the name rises once; then everything stays still. */
.cover {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center;
  height: calc(100svh - 64px); min-height: 560px;
  padding: clamp(32px, 5svh, 64px) max(var(--side), env(safe-area-inset-right, 0px)) clamp(32px, 5svh, 64px) max(var(--side), env(safe-area-inset-left, 0px));
}
.cover__text { grid-column: 1 / span 5; display: grid; gap: clamp(20px, 3svh, 32px); align-content: center; }
.cover__word {
  font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7.4vw, 124px); line-height: .9;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.cover__word span { display: inline-block; }
.cover__lede { margin: 0; max-width: 30ch; font-family: var(--serif); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.35; }
.cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: transparent; color: var(--ink); } }
.cover__piece { grid-column: 7 / span 6; margin: 0; height: 100%; min-height: 0; display: grid; place-items: center end; }
.cover__piece button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; max-height: 100%; }
.cover__piece img { max-height: calc(100svh - 64px - 2 * clamp(32px, 5svh, 64px)); width: auto; max-width: 100%; box-shadow: 0 2px 4px rgba(19,18,17,.06), 0 24px 48px -24px rgba(19,18,17,.35); }
.cover__piece figcaption { justify-self: end; margin-top: 14px; font: 400 14px/1.4 var(--sans); color: var(--ink-soft); }
.cover__piece figcaption em { font-family: var(--serif); font-size: 16px; color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .cover__piece button { animation: unveil 1.4s var(--ease-out) both .1s; }
  .cover__piece img { animation: settle 1.9s var(--ease-out) both .1s; }
  .cover__word span { animation: rise .9s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * 45ms); }
  .cover__lede, .cover__actions, .cover__piece figcaption { animation: fade .9s ease both .9s; }
}
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.cover__piece button { overflow: hidden; position: relative; }

/* the painting comes alive: each figure blinks once, one after another, and the
   canvas takes one slow breath. Lids are painted in each face's own colour. */
.lids { position: absolute; inset: 0; pointer-events: none; }
.lids span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(120% 90% at 50% 20%, color-mix(in oklab, var(--lid) 82%, white), var(--lid));
  box-shadow: inset 0 -3px 0 -1px #1b1714;
  transform: scaleY(0); transform-origin: 50% 0;
}
@media (prefers-reduced-motion: no-preference) {
  .is-alive .lids span { animation: blink .34s cubic-bezier(.45,0,.2,1) both; animation-delay: calc(var(--d) * .32s + var(--again, 0s)); }
  .is-first.cover__piece img { animation: settle 1.9s var(--ease-out) both .1s, breathe 2.4s ease-in-out 1.4s both; }
}
@keyframes blink { 0% { transform: scaleY(0); } 42% { transform: scaleY(1.04); } 58% { transform: scaleY(1.04); } 100% { transform: scaleY(0); } }
@keyframes breathe { 0%, 100% { transform: none; } 45% { transform: scale(1.012); } }

/* ---------- the works: one even grid ----------
   Every painting sits in the same size of wall space, centred and resting on
   the same line, so the titles below all start at the same height. */
.works {
  padding: clamp(72px, 9vw, 136px) max(var(--side), env(safe-area-inset-right, 0px)) clamp(72px, 9vw, 136px) max(var(--side), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--rule);
}
.works__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.works h2 { font-size: clamp(44px, 6vw, 96px); line-height: 1; letter-spacing: -.02em; }
.works__note { margin: 0; color: var(--ink-soft); max-width: 46ch; line-height: 1.8; }

/* the overview: two groups side by side, each a small wall of three paintings */
.shelves { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.shelf { display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.shelf__wall {
  container-type: inline-size;
  display: flex; align-items: center; justify-content: center; gap: 6%;
  aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden;
}
/* every painting the same height on one centre line, sized so the three always fit */
.shelf__wall img {
  flex: none; width: auto; max-width: none;
  height: min(34cqw, calc((100cqw - 2 * 9cqw - 2 * 6cqw) / var(--sum, 3)));
  box-shadow: 0 1px 2px rgba(19,18,17,.08), 0 14px 26px -16px rgba(19,18,17,.4);
  transition: transform .7s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .shelf:hover .shelf__wall img { transform: translateY(-4px); }
  .shelf:hover .shelf__wall img:nth-child(2) { transition-delay: 40ms; }
  .shelf:hover .shelf__wall img:nth-child(3) { transition-delay: 80ms; }
  .shelf:hover .shelf__more { background-size: 0 1px; background-position: 100% 100%; }
}
.shelf__cap { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 6px; margin-top: 20px; }
.shelf__title { font-family: var(--serif); font-size: clamp(30px, 3vw, 46px); line-height: 1; }
.shelf__count { grid-column: 1; color: var(--ink-soft); font-size: 15px; }
.shelf__more { grid-column: 2; grid-row: 1; justify-self: end; }

/* the room: a full-screen, scrollable view of one group */
.room {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink); overflow: hidden;
}
.room[open] { display: grid; grid-template-rows: auto 1fr; animation: viewer-in .25s var(--ease-out); }
.room::backdrop { background: var(--paper); }
.room__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  min-height: 72px; padding: env(safe-area-inset-top, 0px) max(var(--side), env(safe-area-inset-right, 0px)) 0 max(var(--side), env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--rule); background: var(--paper);
}
.room__title { font-size: clamp(22px, 2vw, 30px); }
.room__tabs { display: flex; gap: 28px; }
.room__tabs button, .room__close {
  min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-soft); cursor: pointer;
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 calc(50% + 10px); background-size: 0 1px;
  transition: color .2s ease, background-size .35s var(--ease-out);
}
.room__tabs button[aria-pressed="true"] { color: var(--ink); background-size: 100% 1px; }
@media (hover: hover) and (pointer: fine) { .room__tabs button:hover, .room__close:hover { color: var(--ink); } }
.room__close { justify-self: end; color: var(--ink); }
.room__body { overflow-y: auto; overscroll-behavior: contain; padding: clamp(40px, 5vw, 72px) max(var(--side), env(safe-area-inset-right, 0px)) clamp(64px, 8vw, 120px) max(var(--side), env(safe-area-inset-left, 0px)); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 6vw, 88px) clamp(16px, 2vw, 32px); }
.piece { margin: 0; min-width: 0; }
.piece__open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.piece__wall { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--paper-2); overflow: hidden; }
.piece__hang { position: absolute; inset: 12%; display: flex; align-items: center; justify-content: center; }
.piece__wall img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  box-shadow: 0 1px 2px rgba(19,18,17,.08), 0 18px 32px -18px rgba(19,18,17,.38);
  transition: transform .7s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .piece__open:hover .piece__wall img { transform: scale(1.03); } }
.piece__cap { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 4px; margin-top: 18px; }
.piece__title { font-family: var(--serif); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; font-style: italic; }
.piece__meta { grid-column: 1 / -1; color: var(--ink-soft); }
.piece__status { display: inline-flex; align-items: center; align-self: start; gap: 8px; color: var(--ink-soft); padding-top: 7px; white-space: nowrap; }
.piece__status--available { color: var(--ink); }
.piece__status--available::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* ---------- statement (lights up word by word as it scrolls past; see assets/moments) ---------- */
.statement {
  --bg: var(--paper); --ink: #131211; --accent: #b3261e;
  --font-display: var(--serif); --display-weight: 400; --display-tracking: -.01em; --t-h2: clamp(30px, 3.6vw, 56px);
  display: grid; align-content: center; min-height: 80svh;
  padding: clamp(72px, 10vw, 144px) max(var(--side), env(safe-area-inset-right, 0px)) clamp(72px, 10vw, 144px) max(var(--side), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--rule);
}
.statement .container { max-width: 1100px; }
.statement .mo-wh__text { margin: 0; font-family: var(--serif); font-size: var(--t-h2); line-height: 1.18; letter-spacing: -.01em; text-wrap: pretty; max-width: 26ch; }
.statement strong { font-weight: 400; font-style: italic; }

/* ---------- artist ---------- */
.artist {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center;
  padding: clamp(72px, 9vw, 136px) max(var(--side), env(safe-area-inset-right, 0px)) clamp(72px, 9vw, 136px) max(var(--side), env(safe-area-inset-left, 0px));
  background: var(--paper-2);
}
.artist__image { margin: 0; grid-column: 1 / span 5; }
.artist__image img { width: 100%; height: auto; }
.artist__text { grid-column: 7 / span 6; display: grid; gap: 18px; }
.artist h2 { font-size: clamp(40px, 5vw, 76px); line-height: 1; letter-spacing: -.015em; margin-bottom: 8px; }
.artist__text p { margin: 0; max-width: 56ch; }
.artist__lead { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; }
.artist__links { display: flex; gap: 28px; margin-top: 10px !important; }
.artist__links .line-link { display: inline-flex; align-items: center; min-height: 44px; background-position: 0 calc(50% + 10px); padding-bottom: 0; }

/* ---------- contact ---------- */
.contact {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 48px; align-items: start;
  padding: clamp(96px, 12vw, 176px) max(var(--side), env(safe-area-inset-right, 0px)) clamp(96px, 12vw, 176px) max(var(--side), env(safe-area-inset-left, 0px));
}
.contact__head { grid-column: 1 / span 5; display: grid; gap: 20px; }
.contact h2 { font-size: clamp(44px, 6vw, 96px); line-height: 1; letter-spacing: -.02em; }
.contact p { margin: 0; max-width: 40ch; color: var(--ink-soft); }
.contact__alt { font-size: 15px; }
.contact__alt .line-link { color: var(--ink); margin-left: 4px; }

.form { grid-column: 7 / span 6; display: grid; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 6px; }
.field > span { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 17px/1.5 var(--sans); outline: none;
  transition: border-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 128px; }
.field select {
  cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23131211' stroke-width='1.2'%3E%3Cpath d='M2 4.5l4 4 4-4'/%3E%3C/svg%3E") right 2px center / 12px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #9c2b1f; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form__send {
  min-height: 52px; padding: 0 36px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer;
  font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease;
}
.form__send:active { transform: scale(.97); }
.form__send:disabled { cursor: default; }
.form__send span { display: inline-block; transition: filter .2s ease, opacity .2s ease; }
.form__send.is-busy span { filter: blur(2px); opacity: .6; }
@media (hover: hover) and (pointer: fine) { .form__send:hover:not(:disabled) { background: transparent; color: var(--ink); } }
.form__status { margin: 0; font-size: 15px; color: var(--ink-soft); }
.form__status.is-error { color: #9c2b1f; }
.form.is-sent .form__send { background: transparent; color: var(--ink); }

/* ---------- footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 28px;
  padding: 28px max(var(--side), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--side), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 11px;
}
.footer__links { display: flex; gap: 24px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; background-position: 0 calc(50% + 9px); padding-bottom: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 20px; background: var(--ink); color: var(--paper);
  font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: opacity .2s ease, transform .4s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- the painting viewer ---------- */
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink); overflow: hidden;
}
.viewer::backdrop { background: var(--paper); }
.viewer[open] { animation: viewer-in .25s var(--ease-out); }
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
.viewer__stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.viewer__stage.is-dragging { cursor: grabbing; }
.viewer__img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-select: none; will-change: transform; }
.viewer__img.is-animating { transition: transform .35s var(--ease-out); }
.viewer__bar {
  position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: calc(64px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(var(--side), env(safe-area-inset-left, 0px)); padding-right: max(var(--side), env(safe-area-inset-right, 0px));
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.viewer__count { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.viewer__zoom { display: flex; align-items: center; gap: 2px; }
.viewer__pct { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.viewer button {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--ink); cursor: pointer;
  transition: opacity .2s ease, transform .16s var(--ease-out);
}
.viewer button:active { transform: scale(.95); }
.viewer button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.viewer [data-ex-close] { justify-self: end; }
@media (hover: hover) and (pointer: fine) { .viewer button:hover { opacity: .55; } }
.viewer__caption {
  position: absolute; left: max(var(--side), env(safe-area-inset-left, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 6px; justify-items: start; max-width: 360px; padding: 16px 20px 14px 0; background: var(--paper);
  transition: opacity .3s ease;
}
.viewer__caption h2 { font-size: clamp(24px, 2.4vw, 34px); font-style: italic; line-height: 1.1; }
.viewer__caption p { margin: 0 0 6px; color: var(--ink-soft); }
.viewer.is-zoomed .viewer__caption { opacity: 0; pointer-events: none; }
.viewer__map {
  position: absolute; right: max(var(--side), env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 120px; overflow: hidden; outline: 1px solid var(--rule); background: var(--paper);
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .35s var(--ease-out); pointer-events: none;
}
.viewer.is-zoomed .viewer__map { opacity: 1; transform: none; }
.viewer__map img { width: 100%; height: auto; opacity: .7; }
.viewer__map span { position: absolute; border: 1px solid var(--ink); box-shadow: 0 0 0 999px rgba(247, 246, 243, .55); }
.viewer__step { position: absolute; top: 50%; translate: 0 -50%; }
.viewer__step svg { width: 28px !important; height: 28px !important; stroke-width: 1 !important; }
.viewer__step--prev { left: max(calc(var(--side) - 14px), env(safe-area-inset-left, 0px)); }
.viewer__step--next { right: max(calc(var(--side) - 14px), env(safe-area-inset-right, 0px)); }
.viewer.is-zoomed .viewer__step { opacity: 0; pointer-events: none; }
.viewer__tip {
  position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; margin: 0;
  font: 400 13px/1.4 var(--sans); color: var(--ink-soft); white-space: nowrap; pointer-events: none; transition: opacity .6s ease;
}
.viewer__tip.is-gone { opacity: 0; }

/* ---------- tablets and phones ---------- */
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover { height: auto; min-height: 0; row-gap: 40px; padding-top: 48px; padding-bottom: 64px; }
  .cover__text, .cover__piece { grid-column: 1 / -1; }
  .cover__piece { place-items: center start; }
  .cover__piece img { max-height: 62svh; }
  .cover__piece figcaption { justify-self: start; }
  .artist__image { grid-column: 1 / span 5; }
  .artist__text { grid-column: 7 / span 6; }
  .contact__head, .form { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead { grid-template-columns: auto 1fr; height: 56px; }
  .masthead__nav:first-child { display: none; }
  .masthead__logo { font-size: 18px; letter-spacing: .26em; }
  .masthead__nav--end { gap: 18px; }
  .masthead__nav--end a:first-child { display: none; }
  .cover { padding-top: 36px; row-gap: 32px; }
  .cover__word { font-size: clamp(44px, 14vw, 64px); }
  .cover__actions .btn { width: 100%; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .shelves { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .room__bar { grid-template-columns: 1fr auto; row-gap: 0; padding-bottom: 4px; }
  .room__title { display: none; }
  .room__tabs { gap: 22px; }
  .piece__hang { inset: 10%; }
  .statement { min-height: 0; }
  .artist { row-gap: 40px; }
  .artist__image, .artist__text { grid-column: 1 / -1; }
  .form__row { grid-template-columns: 1fr; }
  .form__send { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
  .viewer__bar { grid-template-columns: auto 1fr auto; gap: 8px; }
  .viewer__zoom { justify-self: center; }
  .viewer__pct { display: none; }
  .viewer__step { top: auto; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); translate: none; }
  .viewer__map { width: 84px; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .viewer__caption { right: max(var(--side), env(safe-area-inset-right, 0px)); max-width: none; }
  .viewer__tip { white-space: normal; text-align: center; width: calc(100% - 40px); bottom: auto; top: calc(76px + env(safe-area-inset-top, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
