/* Fonts are self-hosted and preloaded (see <head>), so text appears in the right face from the
   first frame instead of swapping in a beat later. Latin subsets; Libre Caslon is OFL, Amulya
   is from Fontshare (ITF Free Font License). */
@font-face { font-family: "Libre Caslon Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/libre-caslon-display-400.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/libre-caslon-text-400.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/libre-caslon-text-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Amulya"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/amulya-500.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink: #040403;                               /* near-black, chosen by the client (was #161412, then #0a0908) */
  --ink-2: rgba(232, 214, 190, 0.035);          /* raised surfaces: translucent so the grain shows through */
  --ink-3: rgba(232, 214, 190, 0.07);
  --bone: #e8e1d4;
  --bone-2: rgba(232, 225, 212, 0.62);
  --bone-3: rgba(232, 225, 212, 0.56);
  --line: rgba(232, 225, 212, 0.12);
  --gilt: #b49663;

  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --label: "Amulya", system-ui, sans-serif;

  /* Display sizes — "regular" scale. The previous oversized scale is kept alongside
     for easy switching back. */
  --fs-page:  clamp(40px, 5vw, 64px);    /* page / collection titles   (was clamp(64px, 15vw, 240px)) */
  --fs-list:  clamp(30px, 3.4vw, 46px);  /* collections list           (was clamp(44px, 9vw, 136px)) */
  --fs-next:  clamp(30px, 3.4vw, 46px);  /* "next collection"          (was clamp(48px, 10vw, 160px)) */
  --fs-email: clamp(26px, 2.8vw, 38px);  /* email / contact            (was clamp(34px, 7.4vw, 120px)) */
  --fs-show:  clamp(26px, 2.6vw, 36px);  /* exhibition titles          (was clamp(30px, 4.2vw, 64px)) */
  --fs-lede:  clamp(22px, 2.2vw, 32px);  /* short bio on home          (was clamp(28px, 3.4vw, 52px)) */
  --fs-pull:  clamp(24px, 2.6vw, 38px);  /* statement quote on home    (was clamp(26px, 3.6vw, 56px)) */
  --head-h:   44svh;                     /* page header height         (was 78svh / 56svh) */

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);   /* strong ease-out: exits respond instantly */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
h2.label, h3.label { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
/* Photo areas can't be selected: on iPhone a swipe can turn into a selection, which would tint
   the whole photo with the gilt selection colour until something clears it. */
.hero, .curtain, .portrait, .carousel, .tiles, .picks, .covers, .seq, .sheet, .lb, .about__figure, .map {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
/* The photographs themselves ignore the pointer: right-click, long-press and drag land on the
   frame around them, never on the image file. Clicks still reach the links and buttons. */
.hero img, .curtain img, .portrait img, .carousel img, .tiles img, .picks img, .covers img,
.seq img, .sheet img, .lb img, .about__figure img, .map img { pointer-events: none; }
img::selection, .carousel ::selection, .tiles ::selection { background: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
::selection { background: var(--gilt); color: var(--ink); }
:focus-visible { outline: 1px solid var(--gilt); outline-offset: 6px; }
/* Touch: replace iOS's grey tap box and the tap-focus box with a quiet press response. */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
a, button, [role="button"] { transition: opacity .2s var(--ease-out); }   /* release eases back */
a:active, button:active, [role="button"]:active { opacity: .6; transition: opacity 0s; }   /* press is instant */
.plate:focus-visible, .sheet__cell:focus-visible { outline-offset: 10px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--gutter); top: 12px; z-index: 120;
  padding: 14px 16px; background: var(--bone); color: var(--ink);
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus-visible { transform: none; outline: none; }

/* Background: warm dark grey with soft tonal grading (light from the top left, deeper
   shadow toward the bottom right and edges) and film grain. Both layers sit *behind* the
   content, so photographs are never covered — they have real grain of their own. */
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}
body::before {
  inset: 0;
  background:
    radial-gradient(110% 75% at 12% 0%, rgba(236, 214, 178, .07), transparent 62%),
    radial-gradient(70% 60% at 85% 35%, rgba(236, 214, 178, .025), transparent 70%),
    radial-gradient(90% 70% at 92% 100%, rgba(0, 0, 0, .38), transparent 72%),
    radial-gradient(150% 120% at 50% 45%, transparent 58%, rgba(0, 0, 0, .32) 100%);
}
body::after {
  inset: -50%;
  opacity: 0.15;
  background-image: var(--grain);
  animation: grain 2.23s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Type helpers ---------- */
.label {
  font: 500 12px/1.4 var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.numeral { font-family: var(--display); color: var(--gilt); font-feature-settings: "lnum"; }
/* Gilt, used sparingly: numbering, the pen line, the signed initials, selection. */
.gilt { color: var(--gilt); }

/* Page changes: no cross-document fade. Every page shares the dark ground, menu and title
   position, and fades its own content in, so a page switch already reads as one continuous
   surface. (A View Transition cross-fade on top doubled up with those fades and made images
   blink on iPhone Safari.) */

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
}
.nav .label { color: inherit; }
.nav__mark { transition: opacity .5s var(--ease); }
/* Logo: his handwritten J.Z., in the nav's own colour (so it blends like the links). */
.nav__initials {
  display: block; height: 30px; aspect-ratio: 1509 / 930;
  background: currentColor;
  -webkit-mask: url("../img/brand/initials.svg") center / contain no-repeat;
          mask: url("../img/brand/initials.svg") center / contain no-repeat;
}
.nav.is-quiet .nav__mark { opacity: 0; pointer-events: none; }
.nav__links { display: flex; gap: clamp(2px, 1vw, 16px); margin-right: -6px; }
.nav__links a, .nav__mark { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.nav__links a { padding: 0 12px; }
/* Menu capsule: Apple-sized (about 30px tall) inside the 44px tap target. The nav blends with
   "difference", so the stroke is pre-compensated to land on gilt over the dark page. */
.nav .pill { inset: 7px 0; height: calc(100% - 14px); }
.nav .pill path { stroke: #caaa75; }
/* The page you're on: one capsule that glides across from the link you came from. */
.nav__links { position: relative; }
.nav__pill {
  position: absolute; left: 0; top: 7px; height: calc(100% - 14px); width: 0;
  border: 1px solid #caaa75; border-radius: 999px; pointer-events: none;
  opacity: 0; transition: opacity .25s var(--ease-out);
}
.nav__pill.is-set { opacity: 1; }
.nav__pill.is-gliding { transition: transform .5s cubic-bezier(0.32, 0.72, 0, 1), width .5s cubic-bezier(0.32, 0.72, 0, 1), opacity .25s var(--ease-out); }

/* ---------- Opening curtain: the signature writes itself ----------
   Dark grainy screen; the signature is revealed along its real pen path, then glides
   into its place in the banner while the curtain dissolves. */
/* Pages are filled in by js/main.js: keep the unfilled shell out of sight so it can't jump. */
html:not(.is-ready) main, html:not(.is-ready) main ~ * { visibility: hidden; }
.curtain { display: none; }
html.is-curtain { overflow: hidden; }
html.is-curtain .curtain {
  display: block; position: fixed; inset: 0; z-index: 200;
  cursor: pointer;
}
.curtain::before {                       /* the dark "room" */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 50% 45%, rgba(236, 214, 178, .05), transparent 70%),
    var(--ink);
  transition: opacity 1.1s var(--ease);
}
.curtain::after {                        /* film grain */
  content: ""; position: absolute; inset: -50%; pointer-events: none;
  background-image: var(--grain); opacity: .15;
  animation: grain 2.23s steps(6) infinite;
  transition: opacity 1.1s var(--ease);
}
/* Darkroom: the banner photo develops out of black under a red safelight while the
   signature is written; Enter switches the light off (full colour) and lets you in. */
.curtain__print { position: absolute; inset: 0; }
.curtain__print::after {                 /* same bottom shade as the banner, for the text */
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(rgba(4, 4, 3, 0), rgba(4, 4, 3, .45) 45%, rgba(4, 4, 3, .85));
}
.curtain__print img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%;   /* = banner crop */
  filter: grayscale(1) brightness(0) contrast(1.6);
  transition: filter .8s var(--ease);
}
.curtain__safelight {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% -8%, rgba(230, 60, 40, .38), transparent 70%),
    #7e0f08;
  mix-blend-mode: multiply;
  opacity: 0; transition: opacity .6s var(--ease);
}
.curtain.is-red .curtain__safelight { opacity: 1; }
.curtain.is-lights-on .curtain__safelight { opacity: 0; transition: opacity .5s var(--ease-out); }
.curtain.is-lights-on .curtain__sig { color: var(--bone); }
.curtain__sig {
  position: absolute; z-index: 1; overflow: visible;
  color: #efb7a6;                        /* ink under red light */
  transition: color .6s var(--ease);
}
.curtain__ink { fill: currentColor; }
.curtain__sig:not(.is-placed) { visibility: hidden; }   /* empty until the strokes load; placed by JS */
/* Held state (like a gallery's front door). The signature is written exactly where it
   lives in the banner and never moves; the line sits just above it (left, like the
   banner's labels) and Enter sits in the strip below it, where the tagline will appear.
   Positions come from the measured signature (--sig-top, --sig-bottom, --below; main.js). */
.curtain__enter {
  position: absolute; z-index: 2; left: var(--gutter); margin: 0;
  opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease);
}
/* Enter: a lens-like ring in the open centre of the screen, exactly where the shutter
   fired in act 1 — the one primary action, clear of the signature and of the phone's
   home-gesture area. Centred between the menu line and the label above the signature. */
.curtain__enter {
  --d: clamp(92px, 8.5vw, 120px);
  left: 50%;
  top: calc((80px + var(--sig-top, 60vh) - 34px) / 2);
  width: var(--d); height: var(--d); padding: 0;
  display: grid; place-items: center; place-content: center; gap: 6px;
  border-radius: 50%;
  border: 1px solid rgba(242, 195, 180, .55); color: #f2c3b4;
  background: rgba(40, 6, 3, .28);
  transform: translate(-50%, -50%) scale(.9);
  transition: opacity .6s var(--ease), transform .6s var(--ease), background .3s, color .3s, border-color .3s;
}
.curtain__enter::before {                /* inner ring: the lens */
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 1px solid rgba(242, 195, 180, .2);
  transition: transform .4s var(--ease), border-color .3s;
}
.curtain__enter:hover, .curtain__enter:active { background: #f2c3b4; color: #2a0705; border-color: #f2c3b4; }
.curtain__enter:hover::before { transform: scale(1.06); border-color: rgba(42, 7, 5, .25); }
.curtain__enter:focus-visible { outline: 1px solid rgba(242, 195, 180, .8); outline-offset: 7px; }
.curtain__enter span { transition: transform .35s var(--ease); }
.curtain__enter:hover span { transform: translateX(3px); }
.curtain.is-written .curtain__enter { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .12s; }
.curtain.is-written { cursor: default; }
.curtain:not(.is-written) .curtain__enter { pointer-events: none; }
.curtain.is-leaving { pointer-events: none; opacity: 0; transition: opacity .75s cubic-bezier(.4, 0, .2, 1); }
.curtain__iris {                        /* blade edges, drawn while the aperture opens */
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
  stroke: rgba(242, 195, 180, .38); stroke-width: 1.2; opacity: 0;
}
.curtain.is-shooting .curtain__iris { opacity: 1; }
.curtain.is-lights-on .curtain__enter { opacity: 0; transition: opacity .35s var(--ease-out); transition-delay: 0s; }
/* The banner's own signature waits underneath and takes over seamlessly. */
html.is-curtain .hero__sig { opacity: 0; animation: none; }
html.curtain-done .hero__sig { opacity: 1; animation: none; }  /* instant handover, no replayed fade-in */

/* ---------- Hero banner ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s var(--ease), transform 9s linear;
}
.hero__img.is-on { opacity: 1; transform: scale(1); }
/* Legibility, in two zones:
   - the small text (tagline, caption, pause) sits in a strip along the bottom edge that is
     always at least 80% black, so it passes 4.5:1 even over a pure-white photo;
   - above it the fade stays light so the photograph shows; the large signature gets a soft
     shadow instead of a heavy scrim. */
.hero__foot {
  --pad: clamp(72px, 12vh, 160px);
  --strip: 64px;
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding-top: var(--pad);
  /* Same warm grey as the page (--ink), so the banner melts into the section below. */
  background: linear-gradient(to bottom,
    rgba(4, 4, 3, 0) 0,
    rgba(4, 4, 3, .28) var(--pad),
    rgba(4, 4, 3, .45) calc(100% - var(--strip) - 28px),
    rgba(4, 4, 3, .82) calc(100% - var(--strip)),
    rgba(4, 4, 3, .97) 100%);
}
/* Grain carries into the bottom of the banner so it joins the page without a seam. */
.hero__foot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain);
  opacity: .15;
  -webkit-mask-image: linear-gradient(to bottom, transparent 40%, #000);
          mask-image: linear-gradient(to bottom, transparent 40%, #000);
}
.hero__name, .hero__meta { position: relative; }
.hero__meta {
  display: flex; justify-content: center; align-items: center; gap: 24px;
  min-height: var(--strip);
  padding: 0 var(--gutter) 6px;
}
.hero__title {
  margin: 0;
  font: italic 400 clamp(15px, 1.3vw, 18px)/1.5 var(--serif);
  color: var(--bone);
}
.hero__ctrl { display: flex; align-items: center; gap: 20px; }
.hero__plate { text-align: right; color: var(--bone); transition: opacity .5s var(--ease); display: inline-flex; align-items: center; min-height: 44px; }
.hero__plate.is-swapping { opacity: 0; }
.hero__plate:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero__pause { color: var(--bone); min-height: 44px; opacity: .8; }
.hero__pause:hover { opacity: 1; }
/* Name: Josh's handwriting (SVG), set edge to edge and coloured via mask */
.hero__name {
  margin: 0; padding: 4px 1.2vw 0.8vw; line-height: 0;
  /* Barely-there glow: lifts the name off bright spots without reading as a shadow. */
  filter: drop-shadow(0 0 28px rgba(8, 7, 6, .28));
}
.hero__sig {
  display: block; width: 100%;
  aspect-ratio: 4563 / 942;
  background: var(--bone);
  -webkit-mask: url("../img/brand/signature.svg") center / contain no-repeat;
          mask: url("../img/brand/signature.svg") center / contain no-repeat;
  animation: name-in 1.6s .3s var(--ease) both;
}
@keyframes name-in { from { opacity: 0; transform: translateY(4%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 16vh, 200px) var(--gutter); }
.section + .section { padding-top: 0; }   /* one gap between stacked sections, not two */
/* Section headings: the title itself, no eyebrow label above it. */
.section__title {
  margin: 0 0 clamp(32px, 6vh, 64px);
  font: 400 clamp(30px, 3.2vw, 48px)/1.05 var(--display);
  letter-spacing: -0.01em;
}
.section__head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: clamp(48px, 9vh, 120px);
}

/* ---------- Collections index ---------- */
.works { list-style: none; margin: 0; padding: 0; }
.work { border-bottom: 1px solid var(--line); }
/* Dim the other rows on the link, and slide the title on its own layer: fading and moving
   the same element tree made Safari leave a ghost copy of the title behind. */
.works:hover .work:not(:hover) .work__link { opacity: 0.28; }
.work__link {
  transition: opacity 0.6s var(--ease);
  display: grid;
  grid-template-columns: minmax(3.5rem, 8vw) 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: clamp(18px, 3vh, 34px) 0;
}
.work__numeral { font-size: clamp(16px, 1.4vw, 20px); }
.work__title {
  font: 400 var(--fs-list)/1 var(--display);
  letter-spacing: -0.015em;
  transition: transform 0.8s var(--ease);
  will-change: transform;
  backface-visibility: hidden;
}
.work__link:hover .work__title { transform: translateX(0.18em); }
.work__meta { text-align: right; }
.work__thumb { display: none; }
@media (hover: none) {
  .work__link { grid-template-columns: 2.6rem 1fr 30%; align-items: center; }
  .work__thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
  .work__meta { grid-column: 2; text-align: left; }
}
.work--redacted .work__link { cursor: default; }
.redaction {
  display: inline-block;
  height: 0.52em;
  width: var(--w, 5em);
  background: var(--ink-3);
  vertical-align: baseline;
  position: relative;
  overflow: hidden;
}
.redaction::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(232,225,212,.05), transparent);
  transform: translateX(-100%);
  animation: sweep 4.5s var(--ease) infinite;
}
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 64px;
}
.about__figure { grid-column: 1 / span 6; margin: 0; }
.about__figure figcaption { margin-top: 12px; }
.about__body { grid-column: 8 / span 5; align-self: end; }
.about__lede {
  font: 400 clamp(24px, 2.4vw, 34px)/1.35 var(--display);
  margin: 0 0 1.4em;
  text-wrap: pretty;
}
.about__body p { margin: 0 0 1.2em; color: var(--bone-2); max-width: 36em; text-wrap: pretty; }
.about__body p:not(.about__lede) {   /* airy enough for the marker strokes; justified so both paragraphs are the same block shape */
  line-height: 1.9; text-align: justify; text-align-last: center; hyphens: auto; -webkit-hyphens: auto; text-wrap: wrap;
}
.facts { margin: 48px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 32px; }
.facts dt { margin: 0; }
.facts dd { margin: 0; font-size: 15px; }

.statement {
  grid-column: 2 / span 10;
  margin: clamp(64px, 12vh, 140px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.statement blockquote {
  margin: 28px 0 0;
  font: italic 400 clamp(22px, 2.6vw, 38px)/1.45 var(--serif);
  text-wrap: pretty;
}
.statement blockquote p { margin: 0 0 0.9em; }
/* Handwritten initials (J and Z from the signature, dots matched to the pen stroke). */
.statement__sig { margin: clamp(20px, 3vh, 32px) 0 0; line-height: 0; }
.statement__initials {
  display: inline-block; width: clamp(84px, 7vw, 120px); aspect-ratio: 1509 / 930;
  background: var(--gilt);
  -webkit-mask: url("../img/brand/initials.svg") center / contain no-repeat;
          mask: url("../img/brand/initials.svg") center / contain no-repeat;
}

/* ---------- Struck details (the bio's crossed-out facts) ----------
   PROVISIONAL marker: a rough ink band until Josh's own pen strokes replace it (swap the
   background for his scanned strokes via --marker, e.g. url("../img/brand/marker-01.svg")). */
.x {
  position: relative; white-space: normal;
  -webkit-user-select: none; user-select: none;
  color: transparent;   /* nothing legible under the ink */
  -webkit-box-decoration-break: clone; box-decoration-break: clone;   /* each wrapped line gets its own stroke */
  background:
    var(--marker, linear-gradient(177deg, transparent 10%, #d3ccbf 13% 87%, transparent 90%)),
    linear-gradient(182deg, transparent 18%, #d3ccbf 21% 82%, transparent 85%);
  padding: 0 .14em; margin: 0 -.04em; border-radius: .25em .55em .35em .5em;
}
.x::selection { background: transparent; }
/* With Josh's strokes loaded, his marker replaces the bars. The (decoy) text underneath is set
   exactly like the rest of the bio (same colour, no extra spacing), as if the page was written
   first and he went over it afterwards; bits of letters peek through the gaps in the ink. */
.has-marker .x { background: none; color: inherit; padding: 0; margin: 0; border-radius: 0; }
.x-host { position: relative; }
/* Bone, like correction tape: on the near-black page a dark marker disappears. Solid, so the
   decoy text underneath never shows through. */
.marker { position: absolute; z-index: 1; pointer-events: none; overflow: visible; fill: #d3ccbf; transform-origin: left center; }

/* ---------- Contact ---------- */
.contact__big {
  display: inline-block;
  font: 400 var(--fs-email)/1.1 var(--display);
  letter-spacing: -0.015em;
  word-break: break-word;
  position: relative;
  padding: .42em .9em;             /* capsule proportions, Apple-style: fully round ends, wide sides */
}
/* A gilt capsule draws itself around the email and the menu links: two halves from the
   bottom centre, overlapping a hair at the top so the ring closes. */
.pill { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pill path {
  fill: none; stroke: var(--gilt); stroke-width: 1; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 2; stroke-dashoffset: 1;
  opacity: 0;   /* hides the pen tip at rest; fades only once the line has retracted */
  transition: stroke-dashoffset .5s cubic-bezier(.4, 0, .6, 1), opacity 0s .5s;
}
/* The page you're on is marked by the shared capsule (.nav__pill). Its own pill only appears
   to draw itself the first time (arriving with no capsule to glide from), then hands over. */
.nav__links a[aria-current="page"]:not(.is-drawing) .pill { visibility: hidden; }
.nav__links a.is-drawing .pill path {
  stroke-dashoffset: 0; opacity: 1;
  transition: stroke-dashoffset .9s cubic-bezier(.35, .1, .3, 1), opacity 0s;
}
@media (hover: hover) {
  .contact__big:hover .pill path, .contact__big:focus-visible .pill path,
  .nav__links a:hover .pill path, .nav__links a:focus-visible .pill path {
    stroke-dashoffset: 0; opacity: 1;
    transition: stroke-dashoffset .9s cubic-bezier(.35, .1, .3, 1), opacity 0s;
  }
}
@media (hover: none) {   /* phones: drawn once as it scrolls into view, so it reads as tappable */
  .contact__big.is-drawn .pill path { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.35, .1, .3, 1) .2s, opacity 0s .2s; }
}
.contact__big:focus-visible, .nav__links a:focus-visible { outline: none; }   /* the capsule is the focus ring */
.contact__grid {
  margin-top: clamp(56px, 10vh, 120px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.contact__grid p { margin: 8px 0 0; font-size: 15px; color: var(--bone-2); }
.contact__grid a:hover { color: var(--bone); }

.footer {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
}

/* ---------- Shared: "more" links ----------
   Underlined with Josh's own hand-drawn stroke (injected by main.js). */
.more {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px; margin-top: clamp(32px, 5vh, 56px);
  color: var(--bone);
}
.more__line {
  position: absolute; left: -2px; bottom: 7px; width: calc(100% + 4px); height: 8px;
  overflow: visible; pointer-events: none;
}
.more__line path {
  fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.more__line .more__ink { stroke: var(--gilt); }   /* the pen line is drawn in gilt */
/* No line at rest. With a pointer it draws on hover/focus and retracts after;
   on phones it draws once as the link scrolls into view. */
.more__base { transition: stroke-dashoffset 1s cubic-bezier(.35, .1, .3, 1); }
.more__ink { transition: stroke-dashoffset .6s cubic-bezier(.35, .1, .3, 1); }
@media (hover: hover) {
  .more:hover .more__ink, .more:focus-visible .more__ink { stroke-dashoffset: 0; }
}
@media (hover: none) {
  .more.is-drawn .more__base { stroke-dashoffset: 0; }
  .more:active .more__ink { stroke-dashoffset: 0; }
}
.contact__big + .more { display: flex; width: max-content; }

/* ---------- Home: short bio over the full-screen self-portrait ----------
   The photograph fills the screen and settles (slight zoom-out) as it scrolls in.
   Legibility: the shade is attached to the text block, light where the large bio line
   sits (large text needs 3:1) and darkest along the bottom where the small labels are. */
.portrait {
  --z: 1.08;
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  background: var(--ink);
}
.portrait__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 50%;
  transform: scale(var(--z)); will-change: transform;
}
/* The camera and hands sit lower-centre in the frame, so the text lives in the photo's
   naturally dark top-right corner (blurred foliage), over a soft corner shade.
   The lede is large text (3:1 needed); the small labels sit where the shade is deepest. */
.portrait::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(100% 115% at 100% 0%, rgba(4, 4, 3, .8), rgba(4, 4, 3, .55) 45%, rgba(4, 4, 3, 0) 90%),
    linear-gradient(rgba(4, 4, 3, .45), transparent 22%);
}
.portrait__text {
  position: absolute; z-index: 2;
  top: clamp(92px, 12vh, 140px); right: var(--gutter);
  width: min(35vw, 520px);
}
.portrait__head {
  display: flex; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: clamp(20px, 3.5vh, 36px);
  border-bottom: 1px solid rgba(232, 225, 212, .22);
}
.portrait__head .label { color: var(--bone); }
.portrait__lede {
  margin: 0;
  font: 400 clamp(24px, 2.1vw, 36px)/1.24 var(--display);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.portrait__foot {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin-top: clamp(20px, 3vh, 32px);
}
.portrait__foot .more { margin-top: 0; }
.portrait__foot > .label { color: var(--bone-2); }

/* Tall screens (phones, portrait tablets): full-width text across the top, shade from
   the top edge; the reflection sits below it. */
@media (max-aspect-ratio: 1/1) {
  .portrait::after {
    background: linear-gradient(rgba(4, 4, 3, .88), rgba(4, 4, 3, .7) 38%, rgba(4, 4, 3, 0) 62%);
  }
  .portrait__text { left: var(--gutter); width: auto; top: 88px; }
}

/* ---------- Home: statement quote, lit word by word as you scroll ----------
   --lit (0→1) is set from scroll position; it also brightens the pool of light. */
.pull {
  --lit: 0;
  text-align: center;
  background: radial-gradient(45% 55% at 50% 42%, rgba(236, 214, 178, calc(.015 + .07 * var(--lit))), transparent 72%);
}
.pull__fig { margin: 0 auto; }
.pull__quote {
  margin: 0 auto 28px; max-width: 30ch;
  font: italic 400 var(--fs-pull)/1.35 var(--serif);
  text-wrap: balance;
}
.pull__quote::before { content: "“"; }
/* Dim with text colour, not opacity: an opacity < 1 on an inline word makes the browser
   clip the italic overhangs (f, y, p, j) to the word's box. Colour has no such side effect. */
.pull__quote::after { content: "”"; color: rgba(232, 225, 212, .16); transition: color .5s var(--ease); }
.pull__quote.is-done::after { color: var(--bone); }
.pull__quote .w { color: rgba(232, 225, 212, .16); transition: color .5s var(--ease); }
.pull__quote .w.is-lit { color: var(--bone); }

/* ---------- Home: collections carousel ----------
   Centred portrait slides with neighbours peeking in at the edges; loops, drifts on its
   own, drags/swipes. Without the carousel script it falls back to a native swipe row. */
.carousel { margin: 0 calc(-1 * var(--gutter)); }
/* Hidden until the carousel has centred and shaded its slides, then it fades in, so the
   covers never visibly snap from their raw order into place. */
.carousel .carousel__viewport { opacity: 0; transition: opacity .5s var(--ease); }
.carousel.is-ready .carousel__viewport { opacity: 1; }
.carousel__viewport { overflow: hidden; cursor: grab; overscroll-behavior-x: contain; } /* no Safari back-swipe */
.carousel__viewport:active { cursor: grabbing; }
.carousel__track { display: flex; touch-action: pan-y pinch-zoom; will-change: transform; }   /* glides on the GPU */
.carousel:not(.is-live) .carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel:not(.is-live) .slide { scroll-snap-align: center; }
.slide {
  flex: 0 0 clamp(260px, 30vw, 460px); min-width: 0;
  margin-right: clamp(12px, 1.4vw, 20px);
  will-change: opacity; backface-visibility: hidden;
}
.slide a, .slide > div { display: block; -webkit-user-drag: none; }
.slide__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.slide__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s var(--ease), transform 1s var(--ease);
}
.slide__frame img.is-loaded { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .slide a:hover .slide__frame img { transform: scale(1.03); } }
.slide--redacted .slide__frame { background: transparent; border: 1px solid var(--line); }
.slide--redacted .slide__frame .label { position: absolute; top: 18px; left: 18px; }
.slide__cap { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; margin-top: 18px; }
.slide__cap .numeral { font-size: clamp(15px, 1.2vw, 18px); }
.slide__title { font: 400 clamp(24px, 2.2vw, 32px)/1 var(--display); letter-spacing: -0.01em; }
.slide__cap .label { grid-column: 2; }
.carousel__bar {
  display: flex; justify-content: flex-end; align-items: center;
  padding: 0 var(--gutter); margin-top: clamp(20px, 3vh, 32px);
}
.carousel__nav { display: flex; gap: 24px; }
.carousel__nav button { min-height: 44px; color: var(--bone-2); transition: color .3s; }
.carousel__nav button:hover { color: var(--bone); }
@media (max-width: 860px) { .slide { flex-basis: 72vw; } }
@media (hover: none) { [data-carousel-prev], [data-carousel-next] { display: none; } }

/* ---------- Tiles: shared image grid (Work, Selected, collection Index) ----------
   Image-first grid with tight gutters. On devices with hover the caption fades in over a
   dark wash (text sits on >= 70% black, so it passes contrast on any photo); on touch
   screens the caption simply sits under the image. */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.2vw, 18px); }
.tiles--dense { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
/* Work page, desktop: four across, and never so large that the second row can't peek into the
   first screen (the peek is what says "scroll down for more"). */
@media (min-width: 1100px) {
  .tiles[data-covers] {
    grid-template-columns: repeat(4, 1fr);
    max-width: calc((100svh - 380px) * 0.8 * 4 + 3 * clamp(8px, 1.2vw, 18px));
    margin-left: auto; margin-right: auto;
  }
}
.tile { position: relative; display: block; color: var(--bone); }
.tile__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.tile__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity .6s var(--ease), transform 1s var(--ease);
}
.tile__frame img.is-loaded { opacity: 1; }
/* Full frame, matted: used where the whole photograph must be seen. */
.tile--contain .tile__frame img { object-fit: contain; padding: 9%; }
.tile__cap {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: clamp(16px, 2vw, 28px);
  background: linear-gradient(to top, rgba(8, 7, 6, .86), rgba(8, 7, 6, .7) 28%, rgba(8, 7, 6, .3) 70%, rgba(8, 7, 6, .15));
  opacity: 0; transition: opacity .45s var(--ease);
}
.tile__cap .label { color: var(--bone); }
.tile__title { font: 400 clamp(28px, 2.8vw, 44px)/1 var(--display); letter-spacing: -0.01em; }
.tile__title .numeral { font-size: .5em; margin-right: .5em; vertical-align: .35em; }
.tile--contain .tile__title { font-size: clamp(22px, 1.8vw, 30px); }
@media (hover: hover) {
  .tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; }
  .tile:hover .tile__frame img { transform: scale(1.03); }
  .tile--contain:hover .tile__frame img { transform: scale(1.015); }
}
@media (hover: none) {
  .tile__cap { position: static; opacity: 1; background: none; padding: 12px 0 0; }
}
.tile--redacted .tile__frame { background: transparent; border: 1px solid var(--line); display: grid; place-items: center; }
.tile--redacted .tile__cap { opacity: 1; background: none; }
.tile--redacted .tile__frame > .label { position: absolute; top: clamp(16px, 2vw, 28px); left: clamp(16px, 2vw, 28px); }

.picks { margin-top: 8px; }

/* ---------- Exhibitions ---------- */
.shows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.show {
  display: grid; grid-template-columns: minmax(4rem, 10vw) 1fr auto; gap: 8px 24px; align-items: baseline;
  padding: clamp(22px, 3.5vh, 40px) 0; border-bottom: 1px solid var(--line);
}
.show__title { font: 400 var(--fs-show)/1.1 var(--display); letter-spacing: -0.01em; }
.show__where { text-align: right; }
.shows__empty { padding: clamp(40px, 8vh, 80px) 0; color: var(--bone-2); max-width: 36em; }

/* ---------- Sub-page headers ---------- */
.c-head--page { min-height: var(--head-h); }
.c-head__kicker { margin-bottom: 18px; }
.c-head__lede { margin: 18px 0 0; max-width: 40ch; color: var(--bone-2); font-size: clamp(17px, 1.4vw, 20px); }
.section--flush { padding-top: 0; }

.footer { align-items: center; flex-wrap: wrap; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: clamp(16px, 3vw, 32px); }
.footer__nav a { color: var(--bone-2); transition: color .3s; display: inline-flex; align-items: center; min-height: 44px; }
.footer__nav a:hover { color: var(--bone); }

/* ---------- Collection page ---------- */
.c-head {
  min-height: var(--head-h);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) clamp(48px, 8vh, 96px);
}
.c-head__numeral { font-size: clamp(18px, 1.6vw, 24px); margin-bottom: 14px; }
.c-head__title {
  margin: 0;
  font: 400 var(--fs-page)/1 var(--display);
  letter-spacing: -0.02em;
}
.nowrap { white-space: nowrap; }
.c-head__with { margin: 14px 0 0; font: 400 clamp(18px, 1.6vw, 24px)/1.3 var(--display); color: var(--bone-2); text-wrap: balance; }
.c-head__with[hidden] { display: none; }
.c-head__line { display: block; text-wrap: balance; }   /* no lone "2026" on its own line */
.c-head__line + .c-head__line { margin-top: 4px; }
/* Collection titles break evenly (no one word left dangling on a second line). */
.c-head__title, .tile__title, .slide__title, .next__title, .places__name, .work__title, .map__card-title { text-wrap: balance; }
.c-head__bar {
  margin-top: 36px; padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
}
.toggle { display: flex; gap: 20px; }
.toggle button { color: var(--bone-3); transition: color .3s; min-height: 44px; }
.toggle button[aria-pressed="true"], .toggle button:hover { color: var(--bone); }

/* Page arrival (People, Map): the header lines rise into focus, 70ms apart. Once per load. */
.c-head--enter > * { animation: head-in .6s var(--ease-out) both; }
.c-head--enter > :nth-child(2) { animation-delay: 70ms; }
.c-head--enter > :nth-child(3) { animation-delay: 140ms; }
@keyframes head-in { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } }

/* ---------- Work: Street / Editorial ----------
   work.html opens on two photo panels, one per kind of work; each opens that kind's covers. */
.choose {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 18px);
  padding: 0 var(--gutter); height: clamp(420px, calc(100svh - 250px), 920px);
}
.choose__panel { position: relative; display: block; overflow: hidden; isolation: isolate; color: var(--bone); background: var(--ink-2); }
.choose__panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .8s var(--ease), transform .9s var(--ease-out);
}
.choose__panel img.is-loaded { opacity: 1; transform: none; }
.choose__panel::after {                          /* shade under the words: legible on any photo */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 7, 6, .8), rgba(8, 7, 6, .2) 42%, transparent 68%);
}
.choose__panel::before {                         /* dims the other panel: an opacity change, cheap to draw */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(4, 4, 3, .55); opacity: 0; transition: opacity .35s ease;
}
.choose__text {
  position: absolute; z-index: 2; left: clamp(20px, 3vw, 44px); right: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 12px;
  animation: head-in .7s var(--ease-out) calc(.15s + var(--k, 0) * 90ms) both;
}
.choose__title { font: 400 clamp(52px, 7vw, 116px)/.92 var(--display); letter-spacing: -0.02em; transition: transform .35s var(--ease-out); }
.choose__text .label { color: var(--bone); }
.choose__panel:active img { transform: scale(.99); transition-duration: .12s; }
@media (hover: hover) and (pointer: fine) {
  .choose__panel:hover img { transform: scale(1.03); }
  .choose:has(.choose__panel:hover) .choose__panel:not(:hover)::before { opacity: 1; }   /* the one you're on comes forward */
  .choose__panel:hover .choose__title { transform: translateX(6px); }
}
@media (max-width: 700px) {
  .choose { grid-template-columns: 1fr; height: auto; }
  .choose__panel { height: clamp(260px, 37svh, 440px); }
}
.choose:has(.choose__panel:focus-visible) .choose__panel:not(:focus-visible)::before { opacity: 1; }   /* same for the keyboard */
.choose__panel:focus-visible { outline-offset: 4px; }

/* On a kind's page: the switch to the other kind, under the title. */
.work__switch { justify-content: center; margin-top: 14px; }
.work__switch a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bone-3); transition: color .3s; }
.work__switch a[aria-current="page"], .work__switch a:hover { color: var(--bone); }
.work__switch a:active { opacity: .6; }
.c-head__kind { position: relative; color: inherit; transition: color .2s ease; }
.c-head__kind::after { content: ""; position: absolute; inset: -11px -10px; }   /* 44px tap area */
.c-head__kind:hover { color: var(--bone); }

/* Editorial chapters: one per model, each opening with its name. */
.chapter {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  max-width: 40em; margin: clamp(40px, 8vh, 110px) auto clamp(56px, 10vh, 120px);
  padding-top: clamp(28px, 5vh, 48px); border-top: 1px solid var(--line);
}
.seq > .chapter:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.chapter__no { font-size: clamp(16px, 1.4vw, 20px); }
.chapter.reveal { transform: none; transition: opacity .3s var(--ease-out); }
.chapter > * { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out); }
.chapter > .chapter__name { filter: blur(3px); }
.chapter.is-in > * { opacity: 1; transform: none; filter: none; }
.chapter.is-in > :nth-child(2) { transition-delay: 70ms; }
.chapter.is-in > :nth-child(3) { transition-delay: 140ms; }
.chapter__name { margin: 0; font: italic 400 clamp(44px, 6vw, 88px)/1 var(--serif); letter-spacing: -0.01em; }
.chapter .label { color: var(--bone-2); }
.sheet__chapter {
  grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px;
  margin: 28px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--bone);
}
.sheet__chapter:first-child { margin-top: 0; }

/* Sequence: hung like a gallery wall */
.seq { padding: 0 var(--gutter) 10vh; }

/* ---------- People: the logbook ---------- */
.c-head--people .c-head__title { max-width: 14em; margin-left: auto; margin-right: auto; }
.people__intro { max-width: 34em; margin: 18px auto 0; font-style: italic; text-wrap: pretty; }
.log { display: flex; flex-direction: column; align-items: center; gap: clamp(72px, 12vh, 140px); padding-top: clamp(24px, 4vh, 48px); }
.entry { width: min(860px, 100%); text-align: center; }
.entry__no { margin: 0 0 18px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; line-height: 1.2; letter-spacing: .02em; }
.entry__plate { margin: 0; }
.entry__meta { margin: 18px 0 0; color: var(--bone); }
.entry__note {
  max-width: 32em; margin: 14px auto 0;
  font: italic 400 clamp(18px, 1.6vw, 22px)/1.5 var(--serif); color: var(--bone-2); text-wrap: pretty;
}
.entry__kit { margin: 14px 0 0; color: var(--bone-3); }
/* Entry reveal: once it's in view AND its scan has loaded, the photograph wipes open top to bottom
   (settling from a slight zoom, like a print being pulled), then its words follow 70ms apart. */
.entry.reveal { transform: none; transition: opacity .4s var(--ease-out); }
.entry > :not(.entry__plate) { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.entry .plate__frame { clip-path: inset(0 0 100% 0); transition: clip-path .9s cubic-bezier(.77, 0, .175, 1); }
.entry .plate__frame img { transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.6s var(--ease-out); }
.entry.is-in.is-ready > :not(.entry__plate) { opacity: 1; transform: none; }
.entry.is-in.is-ready .plate__frame { clip-path: inset(0); }
.entry.is-in.is-ready .plate__frame img { transform: none; }
.entry.is-in.is-ready .entry__meta { transition-delay: .55s; }
.entry.is-in.is-ready .entry__note { transition-delay: .62s; }
.entry.is-in.is-ready .entry__kit  { transition-delay: .69s; }
.row { margin: 0 auto clamp(96px, 18vh, 220px); display: flex; }
.row--wide  { max-width: 1500px; }
.row--left  { justify-content: flex-start; }
.row--right { justify-content: flex-end; }
.row--left .plate, .row--right .plate { width: min(64%, 1100px); }
.row--center { justify-content: center; }
.row--center .plate { width: min(40%, 640px); }
.row--pair { gap: clamp(16px, 5vw, 96px); align-items: flex-start; max-width: 1400px; }
.row--pair .plate { flex: 1; }
.row--pair .plate:nth-child(2) { margin-top: 14vh; }
.row--wide .plate { width: 100%; }

.plate { margin: 0; cursor: zoom-in; }
.plate__frame { background: var(--ink-2); overflow: hidden; }
.plate__frame img { width: 100%; opacity: 0; transition: opacity .7s var(--ease); }
.plate__frame img.is-loaded { opacity: 1; }
/* Under every photograph, always: plate number, then camera · lens · film · frame code. */
.plate figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 12px; }
.plate figcaption > :last-child { text-align: right; text-wrap: balance; }
.nb { white-space: nowrap; }   /* break between items, never inside a lens name */
.nb--wrap, .nb--squeeze { white-space: normal; }
.nb--squeeze { display: inline-block; }   /* a split lens name starts on its own line, never mid-line */   /* long place names, or a lens too wide for a small phone */
.plate figcaption > .dotted { min-width: 0; }
@media (max-width: 600px) { .plate figcaption, .entry__kit { letter-spacing: 0.08em; } }   /* phones: a touch tighter so lens names fit whole */   /* let the caption column shrink so it can be measured */
.nb__lead { display: none; }
.nb.is-first .nb__lead, .nb.is-line-start .nb__lead { display: inline; }   /* every line opens on a dot */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* Photographs only fade: no travel, so a picture that arrives mid-reveal never looks like it jumps. */
.tile.reveal, .plate.reveal, .about__figure.reveal { transform: none; transition: opacity .8s var(--ease); }

/* Index view (contact sheet) — uses the shared .tiles grid */
.sheet { display: none; padding: 0 var(--gutter) 12vh; }
.is-index .sheet { display: grid; }
.is-index .seq { display: none; }
.sheet .tile { cursor: zoom-in; }
/* Desktop index: justified rows (widths set by justify() in main.js). */
.is-index .sheet.sheet--rows { display: flex; flex-wrap: wrap; column-gap: clamp(8px, 1.2vw, 18px); row-gap: clamp(8px, 1.2vw, 18px); }
.sheet--rows .sheet__chapter { flex: 0 0 100%; }
.sheet--rows .tile { flex: none; }
.sheet--rows .tile--contain .tile__frame img { padding: 0; object-fit: cover; }
.sheet--rows .tile--contain:hover .tile__frame img { transform: scale(1.02); }

.next {
  display: block;
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  border-top: 1px solid var(--line);
}
.next__title { display: block; margin-top: 14px; font: 400 var(--fs-next)/1 var(--display); transition: transform .35s var(--ease-out); will-change: transform; backface-visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .next:hover .next__title { transform: translateX(0.12em); } }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 80;
  background: #020202;
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease-out), visibility 0s .25s;
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.lb__top, .lb__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px var(--gutter);
}
.lb__stage { position: relative; min-height: 0; overflow: hidden; touch-action: none; }   /* gestures are ours: no page zoom/scroll */
.lb { touch-action: none; }
.lb.is-zoomed .lb__zone { cursor: grab; }
.lb.is-zoomed .lb__zone:active { cursor: grabbing; }
.lb__stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0 var(--gutter);
  object-fit: contain;
  opacity: 0; transition: opacity .35s var(--ease);
}
.lb__stage img.is-loaded { opacity: 1; }
.lb__stage img { will-change: transform; }
.lb__stage .lb__side { visibility: hidden; }   /* neighbours: only shown while the track moves */
.lb__zone { position: absolute; top: 0; bottom: 0; width: 50%; }
.lb__zone--prev { left: 0; cursor: w-resize; }
.lb__zone--next { right: 0; cursor: e-resize; }
.lb__top button, .lb__nav button { min-height: 44px; padding: 0 4px; color: var(--bone-2); transition: color .3s; }
.lb__top button:hover, .lb__nav button:hover { color: var(--bone); }
.lb__nav { display: flex; gap: 28px; }
.lb__inquire { color: var(--bone); border-bottom: 1px solid var(--bone-3); padding-bottom: 2px; transition: border-color .3s; }
.lb__inquire:hover { border-color: var(--bone); }

/* ---------- The optical axis ----------
   Everything expressive (titles, statements, calls to action, the signature) sits on one
   central axis, like the centre line of a lens (where the Enter lens sits). Information
   (captions, collection details, the exhibitions list, the viewer) stays left-aligned
   like museum labels. The portrait bio and the gallery-wall sequence keep their own
   compositions on purpose. */
.section__title { text-align: center; }
.section > .more, .pull > .more, .is-axis .more, .cta .more {
  display: flex; width: max-content; margin-left: auto; margin-right: auto;
}
.cta { text-align: center; }

.slide__cap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.slide__cap .label { grid-column: auto; }
.carousel__bar { justify-content: center; }

.c-head { align-items: center; text-align: center; }
.c-head__bar { flex-direction: column; align-items: center; gap: 4px; }
.c-head__lede { margin-left: auto; margin-right: auto; }

.about { display: flex; flex-direction: column; align-items: center; text-align: center; row-gap: clamp(48px, 8vh, 88px); }
.about__figure { width: min(860px, 100%); }
/* Tight page header: the title sits just under the menu, so the content starts in the first
   screen. On About the photo is also sized so title and photo fill the first screen together. */
.c-head--tight { min-height: 0; padding-top: clamp(96px, 14vh, 136px); padding-bottom: clamp(28px, 4.5vh, 48px); }
.c-head--about + .section .about { row-gap: clamp(40px, 7vh, 72px); }
.c-head--about + .section .about__figure { width: min(860px, 100%, calc((100svh - clamp(96px, 14vh, 136px) - clamp(28px, 4.5vh, 48px) - var(--fs-page) - 40px) * 1.25)); }
.about__body { max-width: 40em; align-self: center; }
.about__body p { margin-left: auto; margin-right: auto; }
.facts {                                  /* facts side by side, label over value; wraps to rows */
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px clamp(28px, 5vw, 64px);
}
.facts > div { display: grid; gap: 8px; align-content: start; }
.facts dd { max-width: 17em; }
.statement { width: min(40em, 100%); margin-left: auto; margin-right: auto; border-top: 0; text-align: center; }

#contact, #contact .contact__grid { text-align: center; }
/* ---------- Map: the world in hairline, roots in gilt, collections pinned ---------- */
.c-head--map { padding-bottom: clamp(20px, 3vh, 32px); }
.map {
  position: relative; overflow: hidden;
  height: clamp(300px, calc(100svh - 200px), 880px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none;
}
.map.is-grabbing { cursor: grabbing; }
.map:focus-visible { outline: 1px solid var(--gilt); outline-offset: -4px; }
.map__world { position: absolute; inset: 0; }
.map__svg, .map__canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.map__coast path {
  fill: rgba(232, 225, 212, .03); stroke: rgba(232, 225, 212, .5);
  stroke-width: .8; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.map__arc {
  fill: none; stroke: var(--gilt); stroke-width: 1.2; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
/* First paint: the coastlines draw themselves in, then the arc crosses the Pacific. */
.map.is-drawing .map__coast path { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.map.is-drawing .map__arc { stroke-dasharray: 1; stroke-dashoffset: 1; }
.map.is-drawing.is-drawn .map__coast path {
  stroke-dashoffset: 0; fill-opacity: 1;
  transition: stroke-dashoffset 2s cubic-bezier(.35, .1, .3, 1), fill-opacity .9s ease 1.5s;
}
.map.is-drawing.is-drawn .map__arc { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.45, 0, .2, 1) 1.2s; }

.map__pins { position: absolute; inset: 0; pointer-events: none; }
.map__pins > * { position: absolute; left: 0; top: 0; }
/* A root's position IS its transform (it follows the map), so only its dot and label fade in:
   transitioning the transform made LA and Taiwan lag behind a drag during the intro. */
.map.is-drawing .map__root-dot, .map.is-drawing .map__root-label { opacity: 0; }
.map.is-drawing .map__pin::after { opacity: 0; transform: scale(.9); }
.map.is-drawing .map__pin-frame { opacity: 0; transform: translateY(8px) scale(.9); }
.map.is-drawing.is-drawn .map__root-dot, .map.is-drawing.is-drawn .map__root-label { opacity: 1; transition: opacity .5s var(--ease-out) 1.9s; }
.map.is-drawing.is-drawn .map__pin-frame, .map.is-drawing.is-drawn .map__pin::after {
  opacity: 1; transform: none;
  transition: opacity .4s var(--ease-out) calc(2.1s + var(--i, 0) * 70ms), transform .45s var(--ease-out) calc(2.1s + var(--i, 0) * 70ms);
}

/* Touched mid-intro: whatever hasn't appeared yet finishes now, from wherever it has got to. */
.map.is-skip .map__canvas, .map.is-skip .map__arc { animation: map-in .3s var(--ease-out) both; }

/* Coming back in the same session: no draw-in, just a quick settle (map, roots, then the pins). */
.map.is-quick .map__world { animation: map-in .5s var(--ease-out) both; }
.map.is-quick .map__root-dot, .map.is-quick .map__root-label { animation: map-in .4s var(--ease-out) .15s both; }
.map.is-quick .map__pin-frame { animation: pin-in .4s var(--ease-out) calc(.2s + var(--i, 0) * 60ms) both; }
.map.is-quick .map__pin::after { animation: map-in .3s var(--ease-out) calc(.2s + var(--i, 0) * 60ms) both; }
@keyframes map-in { from { opacity: 0; } }
@keyframes pin-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }

/* Roots: a gilt point with a slow breathing ring, labelled underneath. */
.map__root { pointer-events: none; }
.map__root-dot {
  position: absolute; left: -4.5px; top: -4.5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gilt); box-shadow: 0 0 0 3px rgba(180, 150, 99, .18);
}
.map__root-dot::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(180, 150, 99, .55);
  animation: root-breathe 3.2s ease-in-out infinite;
}
@keyframes root-breathe { 0%, 100% { transform: scale(.6); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }
.map__root-label {
  position: absolute; top: 14px; left: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px; white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}
.map__root-label .label { font-size: 12px; color: var(--gilt); }
.map__root-label { transition: opacity .2s var(--ease-out); }
.map__root.is-crowded .map__root-label { opacity: 0; }
.map__root-name { font: italic 400 16px/1 var(--serif); color: var(--bone); }

/* Collection pins: a framed thumbnail standing over its spot (stacked when several share it). */
.map__pin {
  pointer-events: auto; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer;
}
.map__pin::after {                               /* the exact spot */
  content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--bone); box-shadow: 0 0 0 2px rgba(4, 4, 3, .8);
}
.map__pin-frame {
  transform-origin: 50% 100%;                    /* grows from its stem, not its middle */
  position: absolute; left: calc(-27px + var(--fx, 0px)); top: -66px; width: 54px; height: 54px;
  border: 2px solid var(--bone); border-radius: 7px; overflow: hidden; background: var(--ink-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55);
  transition: transform .2s var(--ease-out);
}
.map__pin::before {                               /* stem from the thumbnail down to its spot (angled when fanned out) */
  content: ""; position: absolute; left: var(--fx, 0px); top: -12px; width: 1px; height: var(--stem-l, 10px);
  background: var(--bone); transform-origin: top center; transform: rotate(var(--stem-a, 0deg)); pointer-events: none;
}
.map__pin-frame img { width: 100%; height: 100%; object-fit: cover; }
.map__pin.is-stack .map__pin-frame { box-shadow: 4px -4px 0 -1px var(--ink), 4px -4px 0 1px rgba(232, 225, 212, .6), 0 6px 18px rgba(0, 0, 0, .55); }
.map__pin-count {
  position: absolute; left: 18px; top: -76px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: var(--gilt); color: var(--ink); font-size: 12px; letter-spacing: 0;
}
.map__pin-count:empty { display: none; }
.map__pin-name {                                 /* desktop: the name shows on hover (the card has it too) */
  position: absolute; left: var(--fx, 0px); top: -104px; transform: translateX(-50%); white-space: nowrap;
  padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(4, 4, 3, .92); font-size: 12px; color: var(--bone);   /* own backing: legible over anything */
  opacity: 0; transition: opacity .15s var(--ease-out); pointer-events: none;
}
.map__pin:hover, .map__pin:focus-visible { z-index: 3; }   /* the pin you're on (and its name) sits above the rest */
.map__pin:active .map__pin-frame { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .map__pin:hover .map__pin-frame { transform: translateY(-2px); }
  .map__pin:hover .map__pin-name, .map__pin:focus-visible .map__pin-name { opacity: 1; }
}
@media (pointer: coarse) { .map__ctrl [data-map-zoom] { display: none; } }   /* phones pinch instead */
.map__pin:focus-visible { outline: none; }
.map__pin:focus-visible .map__pin-frame { outline: 1px solid var(--gilt); outline-offset: 3px; }

/* Zoom controls, hint, card */
.map__ctrl { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 8px; }
.map__ctrl button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: rgba(4, 4, 3, .86);
  color: var(--bone); font: 300 22px/1 var(--label); display: grid; place-items: center;
}
.map__ctrl svg { width: 16px; height: 16px; }
.map__ctrl button { transition: transform .16s var(--ease-out), opacity .2s var(--ease-out); }
.map__ctrl button:active { transform: scale(.94); transition-duration: .08s; }
.map__hint {
  position: absolute; left: 50%; top: 14px; transform: translate(-50%, -6px); opacity: 0; pointer-events: none;
  padding: 10px 14px; border-radius: 999px; background: rgba(4, 4, 3, .78); color: var(--bone);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); white-space: nowrap;
}
.map__hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.map__card {
  position: absolute; left: 16px; bottom: 16px; width: min(360px, calc(100% - 32px));
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: rgba(6, 5, 4, .94);
  opacity: 0; transform: translateY(6px) scale(.98); transform-origin: bottom left;
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out);   /* exit: quick */
  text-align: left; cursor: auto;
}
.map__card.is-open { opacity: 1; transform: none; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
.map__card-link { display: flex; gap: 14px; padding: 12px; color: var(--bone); }
.map__card-img { flex: 0 0 88px; height: 88px; border-radius: 8px; overflow: hidden; background: var(--ink-2); }
.map__card-img img { width: 100%; height: 100%; object-fit: cover; }
.map__card-text { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.map__card-title { font: 400 24px/1 var(--display); }
.map__card-title .numeral { font-size: .6em; vertical-align: .3em; margin-right: .2em; }
.map__card-text .label { color: var(--bone-2); font-size: 12px; }
.map__coords { color: var(--gilt) !important; }
.map__card-cta { color: var(--bone) !important; margin-top: 2px; }
.map__card-close {
  position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: none;
  color: var(--bone-2); font: 300 22px/1 var(--label); cursor: pointer;
}
@media (max-width: 700px) {
  .map { height: clamp(300px, 66svh, 700px); }
  .map__card { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .map__ctrl { top: 12px; right: 12px; }
}

/* Places: the same points as a list, for scanning and for screen readers */
.places { max-width: 760px; margin: 0 auto; }
.places__group + .places__group { margin-top: clamp(32px, 5vh, 56px); }
.places__kicker { margin: 0 0 8px; color: var(--gilt); text-align: center; }
.places__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.places__row {
  width: 100%; min-height: 60px; padding: 14px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--bone); cursor: pointer; text-align: left;
}
.places__name { font: 400 clamp(20px, 2vw, 26px)/1.1 var(--display); }
.places__name .numeral { font-size: .55em; vertical-align: .35em; margin-right: .3em; }
.places__meta { color: var(--bone-2); text-align: right; }
.places__name { display: inline-block; transition: color .2s ease, transform .25s var(--ease-out); }
.places__row:active .places__name { opacity: .7; }
@media (hover: hover) and (pointer: fine) { .places__row:hover .places__name { color: var(--gilt); transform: translateX(4px); } }
@media (max-width: 600px) { .places__row { flex-direction: column; align-items: flex-start; gap: 6px; } .places__meta { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .map__root-dot::after { animation: none; opacity: 1; transform: scale(.8); } }

/* ---------- 404: an unexposed frame of film ---------- */
.strip {
  position: relative; margin: 0 auto clamp(28px, 5vh, 48px);
  width: min(640px, 100%, calc((100svh - 400px) * 1.4));   /* message stays in the first screen */
  min-width: min(300px, 100%);
  padding: 30px 0; background: #17130f;   /* film base reads a shade lighter than the page */
}
.strip::before, .strip::after {               /* sprocket holes along both edges */
  content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background: radial-gradient(ellipse 5.5px 4px at 50% 50%, rgba(232, 225, 212, .13) 92%, transparent 100%) 6px 0 / 22px 9px repeat-x;
}
.strip::before { top: 8px; }
.strip::after { bottom: 8px; }
.strip__code {
  position: absolute; z-index: 1; font: 500 9px/1 var(--label); letter-spacing: .2em;
  color: var(--gilt); opacity: .8; white-space: nowrap;
}
.strip__code--l { top: 19px; left: 32px; }
.strip__code--r { bottom: 18px; right: 32px; }
.strip__frame {
  position: relative; margin: 0 26px; aspect-ratio: 3 / 2; overflow: hidden;
  display: grid; place-items: center;
  background: #0d0b09; border: 1px solid rgba(232, 225, 212, .05);
}
.strip__frame::before {                       /* fogged: a light leak bleeding in from the edge */
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 55% at 96% 30%, rgba(214, 64, 34, .34), transparent 70%),
    radial-gradient(30% 40% at 100% 70%, rgba(242, 160, 110, .16), transparent 70%);
  filter: blur(18px);
  animation: leak 9s ease-in-out infinite alternate;
}
@keyframes leak { from { opacity: .55; transform: translateX(3%); } to { opacity: 1; transform: none; } }
.strip__frame .label { position: relative; color: var(--bone-3); }
.lost .shows__empty { padding: 0; margin-bottom: clamp(16px, 3vh, 28px); max-width: 30em; }
.lost .is-axis .more { margin-top: 0; }

.is-axis { text-align: center; }
.is-axis .shows__empty { margin-left: auto; margin-right: auto; }
.is-axis .shows { text-align: left; }            /* the list itself is information */

.footer { flex-direction: column; justify-content: center; text-align: center; gap: 14px; }
.next { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .portrait__img { object-position: 52% 50%; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles--dense { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .show { grid-template-columns: 1fr; }
  .show__where { text-align: left; }
  .footer { justify-content: center; text-align: center; }
  .about__figure, .about__body, .statement { grid-column: 1 / -1; }
  .contact__grid { grid-template-columns: 1fr; }
  .work__link { grid-template-columns: 2.6rem 1fr; }
  .work__meta { grid-column: 2; text-align: left; }
  @media (hover: none) { .work__link { grid-template-columns: 2.6rem 1fr 30%; } }
  .row--left .plate, .row--right .plate { width: 88%; }
  .row--center .plate { width: 72%; }
  .row--pair { flex-direction: column; }
  .row--pair .plate { width: 100%; }
  .row--pair .plate:nth-child(2) { margin-top: 0; width: 78%; align-self: flex-end; }
  .plate figcaption { opacity: 1; }
  .hero__meta { gap: 16px; }
  .hero__plate { text-align: left; }
  .hero__ctrl { gap: 16px; }
  .hero__code { display: none; }
  .label { font-size: 12px; }
  .lb__bottom { flex-wrap: wrap; }
  .lb__nav { order: -1; width: 100%; justify-content: space-between; }
}

@media (max-width: 520px) {
  .facts { flex-direction: column; align-items: center; gap: 20px; }
  .tiles:not(.tiles--dense) { grid-template-columns: 1fr; }
  .nav__initials { height: 26px; }
  .nav__links { gap: 0; margin-right: -6px; }
  .nav__links a { min-width: 44px; justify-content: center; }
}
/* ---------- Phone menu: the links fold into a button that opens a full-screen list ---------- */
.nav__menu { display: none; }
.menu { display: none; }
@media (max-width: 600px) {
  .nav__links { display: none; }
  .nav__menu {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    border: 0; padding: 0; background: none; color: inherit; cursor: pointer;
    transition: transform .16s var(--ease-out);
  }
  .nav__menu[hidden] { display: grid !important; }      /* shown once main.js is ready; harmless before */
  .nav__menu:active { transform: scale(.92); }
  /* Two hairlines that cross into an X. */
  .nav__menu-lines { position: relative; width: 22px; height: 8px; }
  .nav__menu-lines::before, .nav__menu-lines::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor;
    transition: transform .3s cubic-bezier(.77, 0, .175, 1);
  }
  .nav__menu-lines::before { top: 0; }
  .nav__menu-lines::after { bottom: 0; }
  .menu-open .nav__menu-lines::before { transform: translateY(3.25px) rotate(45deg); }
  .menu-open .nav__menu-lines::after { transform: translateY(-3.25px) rotate(-45deg); }
  .menu-open .nav__mark { opacity: 1 !important; pointer-events: auto !important; }

  .menu {
    display: flex; flex-direction: column;                 /* centred via auto margins: never clipped */
    position: fixed; inset: 0; z-index: 45; padding: 80px 28px calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    background:
      radial-gradient(110% 70% at 10% 0%, rgba(236, 214, 178, .06), transparent 60%),
      var(--ink);
    visibility: hidden; opacity: 0;
    transition: opacity .18s var(--ease-out), visibility 0s linear .18s;     /* close: quick */
  }
  .menu::after {                                         /* the site's film grain, inside the menu too */
    content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: -1;
    background-image: var(--grain); opacity: .15; animation: grain 2.23s steps(6) infinite;
  }
  .menu { isolation: isolate; }
  .menu-open .menu { visibility: visible; opacity: 1; transition: opacity .26s var(--ease-out); }
  .menu-open { overflow: hidden; }                       /* the page stays put underneath */

  .menu:focus { outline: none; }
  .menu__list { list-style: none; margin: auto 0 0; padding: 0; counter-reset: page; }
  .menu__list li:not([hidden]) { counter-increment: page; }
  .menu__list .numeral::before { content: counter(page, upper-roman); }
  .menu__list a {
    display: flex; align-items: baseline; gap: 14px; padding: 9px 0; min-height: 44px;
    font: 400 clamp(32px, min(12vw, 7.2svh), 54px)/1.05 var(--display); letter-spacing: -0.01em; color: var(--bone);
    opacity: 0; transform: translateY(14px);
    transition: opacity .15s var(--ease-out), transform 0s linear .18s, color .2s ease;
  }
  .menu__list .numeral { font-size: 13px; letter-spacing: .08em; min-width: 2.2em; transform: translateY(-1.1em); }
  .menu__list a[aria-current="page"] { color: var(--gilt); }
  .menu__list a:active { opacity: .6 !important; }
  .menu-open .menu__list a {
    opacity: 1; transform: none;
    transition: opacity .4s var(--ease-out) calc(60ms + var(--k) * 45ms), transform .45s var(--ease-out) calc(60ms + var(--k) * 45ms), color .2s ease;
  }
  .menu__foot {
    display: flex; flex-wrap: wrap; gap: 6px 22px; margin: clamp(20px, 5svh, 40px) 0 auto; padding-top: 18px; border-top: 1px solid var(--line);
    opacity: 0; transition: opacity .15s var(--ease-out);
  }
  .menu__foot a { color: var(--bone-2); min-height: 44px; display: inline-flex; align-items: center; }
  .menu-open .menu__foot { opacity: 1; transition: opacity .4s var(--ease-out) .3s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .chapter > * { opacity: 1; transform: none; filter: none; }
  .menu__list a { transform: none !important; }
  .entry > *, .entry .plate__frame img { opacity: 1; transform: none; }
  .entry .plate__frame { clip-path: none; }
  .entry .plate__frame img:not(.is-loaded) { opacity: 0; }
  .pull__quote .w, .pull__quote::after { color: var(--bone); }
  .portrait__img { transform: none; }
}
