/* Valeria Alvarez — one stylesheet for every page.
   Two halves meeting at a seam, her name split across it; a painter's site
   structure with spaced labels and hairline tables. References and decisions
   live in NOTES.md beside site/, not here.
   Phone first; the two-half layout starts at the desktop query below. */

/* ---------- Type ---------- */

/* GT Sectra Fine (Grilli Type). LICENSE BEFORE PUBLISHING: this local build uses
   the Book cut for a prototype only; see NOTES.md. */
@font-face {
  font-family: 'GT Sectra Fine';
  src: url('/assets/fonts/gt-sectra-fine-book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Geist (Vercel, SIL Open Font License), latin subset, variable 300–600. */
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --ink: #1c1915;
  --ink-2: rgb(28 25 21 / .6);
  --ink-3: rgb(28 25 21 / .38);
  --rule: rgb(28 25 21 / .14);
  --linen: #eae4da;
  --ground: var(--linen);
  --umber: #3a2a21;
  --on-umber: #ece4d8;
  --light: #f6f1e9;

  --serif: 'GT Sectra Fine', 'Iowan Old Style', Palatino, Georgia, serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(.83, 0, .17, 1);      /* easeInOutQuint */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --slide: 1s;

  --gut: 34px;                               /* phone gutters clear the vertical name */
}

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

html {
  background: var(--ground);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  transition: background-color var(--slide) var(--ease);
}

body {
  margin: 0;
  min-height: 100svh;
  font: 400 16px/1.55 var(--serif);
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

picture { display: contents; }
/* with picture flattened, a <source> would otherwise take a grid cell */
source { display: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure { margin: 0; }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.label {
  font: 450 10.5px/1.3 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
}

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* landing on a spread by its address shows it without the slide */
.no-anim, .no-anim * { transition: none !important; }

.prose p + p { margin-top: 1em; }
.prose { text-wrap: pretty; hanging-punctuation: first; }

/* ---------- The name, split across the seam ----------
   Set vertically, each half's baseline faces the seam.
   In vertical-rl, Latin caps sit between .25em and .95em of a 1em line box;
   VALERIA is turned 180° so it reads upward, putting them at .05–.75em. */

.name {
  position: fixed;
  z-index: 30;
  writing-mode: vertical-rl;
  font: 400 19px/1 var(--serif);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
  color: var(--ink);
  transition: color .45s .2s ease;
  -webkit-user-select: none;
  user-select: none;
}
.name--first { left: calc(11px - .05em); bottom: 14px; transform: rotate(180deg); view-transition-name: name-first; }
.name--last { right: calc(11px - .05em); top: 14px; view-transition-name: name-last; }

/* ---------- Navigation ---------- */

.nav { display: none; }

.menu-btn {
  position: fixed;
  z-index: 30;
  left: 9px;
  top: 14px;
  padding: 2px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--ink);
}

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 18vh calc(var(--gut) + 12px) 10vh;
  border: 0;
  background: var(--umber);
  color: var(--on-umber);
  overflow: auto;
}
.menu::backdrop { background: transparent; }
.menu[open] { animation: seam-open .7s var(--ease) both; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: block; padding: 4px 0; font-size: 40px; line-height: 1.2; }
.menu .label { color: rgb(236 228 216 / .62); }
.menu__mail { position: absolute; left: calc(var(--gut) + 12px); bottom: calc(7vh + env(safe-area-inset-bottom)); font: 400 14px/1.4 var(--sans); color: rgb(236 228 216 / .75); }
.menu__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; }
.menu__close svg { width: 18px; height: 18px; }
.menu > .label { margin-bottom: 18px; }

/* ---------- Home: spreads (phone: one column) ---------- */

.spreads { padding: 22px var(--gut) 24px; }
.spread + .spread { margin-top: 76px; }
.half--left { display: block; }
.stage { display: block; }
.art img { width: 100%; }
.cap { margin-top: 12px; display: grid; gap: 3px; }
.cap__title { font-size: 16px; line-height: 1.3; }
.cap .label { color: var(--ink-2); }
.half--right { display: block; margin-top: 14px; aspect-ratio: 1; overflow: hidden; background: rgb(28 25 21 / .06); }
.half--right img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.counter { display: none; }

/* ---------- Painting pages ---------- */

.work { padding: 22px var(--gut) 0; }
.work__art .art { margin: 0 auto; }
.work__art button { display: block; width: 100%; cursor: zoom-in; }
.work__body { padding: 30px 0 0; }
.work__title { font-size: 40px; line-height: 1.04; letter-spacing: -.005em; font-variant-numeric: lining-nums; }

.spec { margin: 22px 0 30px; border-top: 1px solid var(--rule); }
.spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font: 450 10.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.spec dd { margin: 0; font-size: 15px; line-height: 1.3; text-align: right; font-variant-numeric: lining-nums; }

.work .prose { font-size: 17px; line-height: 1.6; }
.work__section { margin-top: 56px; }
.work__section > .label { display: block; margin-bottom: 16px; color: var(--ink-2); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid > :first-child { grid-column: 1 / -1; }
.grid button { display: block; width: 100%; cursor: zoom-in; overflow: hidden; background: rgb(28 25 21 / .06); }
.grid > :not(:first-child) img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.grid img { transition: transform .9s var(--ease-out), opacity .3s; }

.shown__title { display: block; font-size: 22px; line-height: 1.25; }
.shown__meta { display: block; margin-top: 6px; font: 400 13px/1.5 var(--sans); color: var(--ink-2); }
.shown a { border-bottom: 1px solid var(--rule); transition: border-color .2s; }

.next { margin-top: 72px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; }
.next .label { color: var(--ink-2); }
.next a { font-size: 24px; line-height: 1.2; }
.next a::after { content: ' →'; font-family: var(--sans); font-size: .7em; }

.close {
  position: fixed;
  z-index: 35;
  right: 4px;
  bottom: calc(4px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.close svg { width: 18px; height: 18px; }

.print-note { margin-top: 30px; display: flex; gap: 22px; }
.print-note a { border-bottom: 1px solid var(--rule); padding-bottom: 2px; }

/* ---------- Sheets: exhibitions, prints, 404 ---------- */

.sheet { padding: 70px var(--gut) 0; }
.page-title { font-size: 44px; line-height: 1; letter-spacing: -.005em; font-variant-numeric: lining-nums; }
.sheet__sub { margin-top: 14px; color: var(--ink-2); }
.sheet__intro { margin-top: 34px; }

.cv { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.cv__row { display: grid; grid-template-columns: 1fr 76px; gap: 6px 18px; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.cv__when { grid-column: 1; color: var(--ink-2); }
.cv__what { grid-column: 1; }
.cv__title { display: block; font-size: 21px; line-height: 1.25; }
.cv__where { display: block; margin-top: 4px; font: 400 13px/1.45 var(--sans); color: var(--ink-2); }
.cv__work { grid-column: 1; font-size: 15px; color: var(--ink-2); }
.cv__work::before { content: 'Painting: '; }
.cv__img { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
.cv__img img { width: 76px; aspect-ratio: 4 / 5; object-fit: cover; }
.cv-stage { display: none; }

.masonry { margin-top: 40px; columns: 2; column-gap: 14px; }
.masonry figure { break-inside: avoid; margin-bottom: 30px; }
.masonry button { display: block; width: 100%; cursor: zoom-in; }
.masonry figcaption { margin-top: 10px; display: grid; gap: 3px; }
.masonry .t { font-size: 15px; line-height: 1.3; }
.masonry .s { font-size: 15px; line-height: 1.3; color: var(--ink-2); }
.masonry .m { margin-top: 2px; font: 400 12px/1.45 var(--sans); color: var(--ink-2); }
.enquire { margin-top: 20px; }
.enquire a { border-bottom: 1px solid var(--rule); padding-bottom: 2px; }

/* ---------- About ---------- */

.page-about { --ground: var(--umber); color: var(--on-umber); }
.page-about .label { color: rgb(236 228 216 / .62); }
.page-about .name, .page-about .menu-btn, .page-about .close { color: var(--on-umber); }
.page-about ::selection { background: var(--on-umber); color: var(--umber); }

.about { padding: 70px var(--gut) 0; max-width: 680px; margin: 0 auto; }
.about__label { display: block; text-align: center; }
.lede { margin-top: 34px; font-size: 23px; line-height: 1.36; text-wrap: pretty; }
.about__lead { margin: 48px 0; }
.about .prose { font-size: 17px; line-height: 1.62; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 48px; }
.pair img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.about__wide { margin-top: 10px; }
.contact { margin-top: 80px; padding-top: 22px; border-top: 1px solid rgb(236 228 216 / .2); scroll-margin-top: 40px; }
.contact dl { margin: 18px 0 0; display: grid; gap: 14px; }
.contact div { display: grid; gap: 2px; }
.contact dt { font: 450 10.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgb(236 228 216 / .62); }
.contact dd { margin: 0; font-size: 20px; line-height: 1.3; }
.contact a { border-bottom: 1px solid rgb(236 228 216 / .25); transition: border-color .2s; }

/* ---------- Footer ---------- */

.foot { padding: 96px var(--gut) calc(40px + env(safe-area-inset-bottom)); text-align: center; font: 400 11.5px/1.9 var(--sans); color: var(--ink-2); }
.page-about .foot { color: rgb(236 228 216 / .55); }

/* ---------- Lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ground);
  color: var(--ink);
  overflow: hidden;
}
.lb::backdrop { background: transparent; }
.lb[open] { animation: lb-in .35s var(--ease-out) both; }
.lb__fig { position: absolute; inset: 56px 12px 92px; display: flex; align-items: center; justify-content: center; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .5s var(--ease-out); }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; padding: 0 70px; }
.lb__cap .t { display: block; font-size: 15px; }
.lb__cap .label { color: var(--ink-2); }
.lb__close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center; z-index: 2; }
.lb__close svg { width: 18px; height: 18px; }
.lb__prev, .lb__next { position: absolute; bottom: 14px; width: 48px; height: 48px; display: grid; place-items: center; z-index: 2; font: 300 22px/1 var(--sans); }
.lb__prev { left: 8px; }
.lb__next { right: 8px; }
.lb__count { position: absolute; top: 20px; left: 0; right: 0; text-align: center; color: var(--ink-2); }
@keyframes lb-in { from { opacity: 0; } }

/* ---------- Desktop: the two halves ---------- */

@media (min-width: 900px) and (min-height: 560px) {
  body { font-size: 17px; }

  .menu-btn, .menu { display: none; }

  .nav {
    position: absolute;
    z-index: 40;
    top: 30px;
    left: 40px;
    display: flex;
    align-items: baseline;
    gap: 28px;
  }
  .nav a { color: var(--ink-2); transition: color .25s; }
  .nav a:hover, .nav a[aria-current] { color: var(--ink); }
  .nav__mark { font: 400 18px/1 var(--serif); letter-spacing: .01em; color: var(--ink) !important; margin-right: 12px; text-transform: none; }
  .page-about .nav a { color: rgb(236 228 216 / .62); }
  .page-about .nav a:hover, .page-about .nav a[aria-current], .page-about .nav__mark { color: var(--on-umber) !important; }

  .name { font-size: 9.2vh; letter-spacing: .03em; }
  .name--first { left: calc(50% - 3px - .75em); bottom: 7vh; }
  .name--last { left: calc(50% + 3px - .25em); right: auto; top: 7vh; }
  .page-about .name--first { left: calc(40px - .05em); }
  .page-about .name--last { left: auto; right: calc(40px - .05em); }
  /* inner pages put text where the seam is; the nav carries the name there */
  .page-work .name, .page-sheet .name { display: none; }
  .page-about .close { display: none; }

  /* -- Home: every half is pinned; the left halves rise as the right halves fall -- */
  .page-home, .page-home body { height: 100%; overflow: hidden; }
  .page-home .nav { position: fixed; }
  .page-home .foot { display: none; }

  .spreads { position: fixed; inset: 0; padding: 0; overflow: hidden; --i: 0; }
  .spread + .spread { margin-top: 0; }
  .half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    margin: 0;
    transition: transform var(--slide) var(--ease);
    will-change: transform;
  }
  .half--left { left: 0; transform: translate3d(0, calc((var(--k) - var(--i)) * 100%), 0); }
  .half--right {
    left: 50%;
    aspect-ratio: auto;
    background: none;
    transform: translate3d(0, calc((var(--i) - var(--k)) * 100%), 0);
  }

  /* where the painting sits inside its half: room for the nav above,
     the caption below, and the name along the seam */
  .stage {
    position: absolute;
    inset: 104px 124px 104px 64px;
    display: flex;
    container-type: size;
  }
  .stage--center { align-items: center; justify-content: center; }
  /* off-centre placements keep to the thirds, never the edges */
  .stage--high { align-items: flex-start; justify-content: flex-end; padding-top: 7vh; }
  .stage--low { align-items: flex-end; justify-content: flex-start; padding-bottom: 5vh; }

  .art {
    --wf: 1; --hf: 1; --cap: 58px;
    width: min(calc(var(--wf) * 100cqw), calc((var(--hf) * 100cqh - var(--cap)) * var(--r)));
  }
  .stage--medium .art { --wf: .8; --hf: .78; }
  .stage--small .art { --wf: .52; --hf: .54; }
  .art__link { display: block; cursor: var(--cur-plus); }
  .cap { margin-top: 14px; }

  .half--right { overflow: hidden; cursor: var(--cur-plus-light); }
  .spread[data-tone='ink'] .half--right { cursor: var(--cur-plus); }

  .spreads { cursor: default; }
  .spreads.go-up { cursor: var(--cur-up); }
  .spreads.go-down { cursor: var(--cur-down); }

  html.page-home[data-tone='light'] .name--last { color: var(--light); }

  .spread.is-current .art img { view-transition-name: var(--vt); }
  .vt-calm .art img { view-transition-name: none !important; }

  .counter {
    position: fixed;
    z-index: 40;
    left: 40px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink-2);
  }
  .counter button { width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink); transition: opacity .25s; }
  .counter button:disabled { opacity: .25; cursor: default; }
  .counter svg { width: 11px; height: 11px; }
  .counter [data-count] { color: var(--ink); }

  /* -- Painting page: the whole stays put on the left while the text and the
        fragments pass on the right -- */
  .work { display: grid; grid-template-columns: 1fr 1fr; padding: 0; min-height: 100vh; }
  .work__art { position: sticky; top: 0; height: 100vh; }
  .work__art .stage { inset: 96px 64px 64px 64px; }
  .work__art .art { --cap: 0px; margin: 0; }
  .work .art img { view-transition-name: var(--vt); }
  .work__body { padding: 21vh 0 0 64px; max-width: calc(64px + 470px); }
  .work__title { font-size: clamp(44px, 4.4vw, 66px); }
  .work::before { content: ''; position: fixed; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--rule); }
  .close { top: 22px; right: 26px; bottom: auto; }
  .page-work .foot { padding-left: calc(50% + 64px); text-align: left; }

  /* -- Sheets -- */
  .sheet { max-width: 1040px; margin: 0 auto; padding: 21vh 64px 0; }
  .page-title { font-size: clamp(48px, 5vw, 76px); }
  .cv { margin-top: 56px; }
  .cv__row { grid-template-columns: 170px 1fr 200px; align-items: baseline; gap: 28px; padding: 26px 0 28px; cursor: default; }
  .cv__when, .cv__what, .cv__work { grid-column: auto; grid-row: auto; }
  .cv__title { font-size: 26px; }
  .cv__work { text-align: right; font-size: 16px; transition: color .2s; }
  .cv__work::before { content: none; }
  .cv__work:hover { color: var(--ink); }
  .cv__img { display: none; }

  .sheet--cv { max-width: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
  .cv-col { padding: 21vh 64px 0; }
  .cv-col .cv__row { grid-template-columns: 132px 1fr auto; gap: 24px; }
  .cv-col .cv__title { font-size: clamp(22px, 1.75vw, 28px); }
  .cv-stage { display: block; position: sticky; top: 0; height: 100vh; overflow: hidden; }
  .cv-stage__img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease-out); }
  .cv-stage__img.is-on { opacity: 1; }
  .cv-stage__img img { width: 100%; height: 100%; object-fit: cover; }
  .cv-stage__img.is-whole { display: flex; align-items: center; justify-content: center; padding: 96px 64px; }
  .cv-stage__img.is-whole img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
  .cv__row { transition: opacity .3s; }
  .cv:hover .cv__row:not(:hover) { opacity: .5; }
  .page-sheet:has(.sheet--cv) .foot { padding-left: 64px; padding-right: 50%; text-align: left; }

  .sheet--prints { max-width: 1180px; }
  .masonry { columns: 3; column-gap: 40px; margin-top: 64px; }
  .masonry figure { margin-bottom: 52px; }

  .about { padding-top: 21vh; max-width: 640px; }
  .lede { font-size: clamp(26px, 2.25vw, 32px); margin-top: 44px; }
  .about .prose { font-size: 18px; }
  .about__lead { margin: 72px -56px; }
  .pair { gap: 14px; margin-top: 72px; }
  .about__wide { margin: 14px -56px 0; }

  .lb__fig { inset: 64px 96px 96px; }
  .lb__prev, .lb__next { top: 50%; bottom: auto; margin-top: -24px; }
  .lb__prev { left: 24px; }
  .lb__next { right: 24px; }
  .lb__close { top: 18px; right: 22px; }
  .lb__img { cursor: zoom-in; }
  .lb__img.is-zoomed { cursor: zoom-out; transform: scale(2.4); }
}

@media (min-width: 900px) and (min-height: 560px) and (hover: hover) {
  .grid button:hover img { transform: scale(1.025); }
  .shown a:hover, .contact a:hover, .enquire a:hover, .print-note a:hover { border-color: currentColor; }
}

/* Thin cursors: arrows to move between spreads, a cross to open. */
:root {
  --cur-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M18 4v28M10.5 11.5L18 4l7.5 7.5' fill='none' stroke='%231c1915' stroke-width='1.1'/%3E%3C/svg%3E") 18 18, n-resize;
  --cur-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M18 4v28M10.5 24.5L18 32l7.5-7.5' fill='none' stroke='%231c1915' stroke-width='1.1'/%3E%3C/svg%3E") 18 18, s-resize;
  --cur-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M18 8v20M8 18h20' fill='none' stroke='%231c1915' stroke-width='1.1'/%3E%3C/svg%3E") 18 18, pointer;
  --cur-plus-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M18 8v20M8 18h20' fill='none' stroke='%23f6f1e9' stroke-width='1.1'/%3E%3C/svg%3E") 18 18, pointer;
}

/* ---------- Page transitions ----------
   Same-site navigations cross-fade; the painting flies from its half into its
   page; About opens out of the seam and closes back into it. */

@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease; }

::view-transition-group(*) { animation-duration: .8s; animation-timing-function: var(--ease); }

html:active-view-transition-type(to-about)::view-transition-old(root) { animation: none; }
html:active-view-transition-type(to-about)::view-transition-new(root) { animation: seam-open .9s var(--ease) both; }
html:active-view-transition-type(from-about)::view-transition-new(root) { animation: none; }
html:active-view-transition-type(from-about)::view-transition-old(root) { animation: seam-close .8s var(--ease) both; z-index: 2; }

@keyframes seam-open { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes seam-close { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 50% 0 50%); } }

/* First visit: the name grows out of the seam, the first spread settles in. */
@media (min-width: 900px) and (min-height: 560px) and (prefers-reduced-motion: no-preference) {
  .intro .name { animation: from-seam 1.15s var(--ease) .2s both; }
  .intro .spread.is-current .half--right img { animation: from-seam 1.3s var(--ease) .1s both; }
  .intro .spread.is-current .art { animation: settle 1s var(--ease-out) .55s both; }
  .intro .nav, .intro .counter { animation: settle-fade .8s ease 1s both; }
}
@keyframes from-seam { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  :root { --slide: 0s; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .menu[open], .lb[open] { animation: none; }
  .grid img, .lb__img { transition: none; }
}
