/* =========================================================
   Drape — direction C, round 3
   Every series is a room with its own colour. The colour flows
   continuously on the home page; a pleated curtain in the next
   room's colour is drawn closed between pages and parts on arrival.
   Type: Libre Bodoni (sturdy Bodoni, display only) + DM Mono (UI + text).
   Motion: transform / opacity / clip-path only. Every entrance
   state sits under html.js-motion (set in rooms.js, removed by the
   safety nets), so without it the page is simply static.
   ========================================================= */

:root {
  --bg: #ECE7DF;            /* set per room by rooms.js, blended on home */
  --fg: #161412;
  --bone: #ECE7DF;
  --ink: #161412;
  --c-bg: #ECE7DF;          /* curtain colour (destination room) */
  --c-fg: #161412;

  --serif: 'Libre Bodoni', 'Bodoni 72', Georgia, serif;
  /* DM Mono (OFL): free stand-in for Lineto's Lettera — a calm Swiss typewriter mono */
  --sans: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --g: clamp(16px, 2.4vw, 36px);     /* gutter */
  --bar-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);       /* expo-out: settles */
  --ease-io: cubic-bezier(.76, 0, .24, 1);   /* drape: heavy cloth */
  --hair: color-mix(in srgb, currentColor 20%, transparent);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scrollbar-gutter: stable; /* no layout jump when the viewer or menu locks scrolling */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.6 var(--sans);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Safari < 16 */
  overflow-x: clip;
  transition: color .3s ease;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: var(--fg); color: var(--bg); }

:focus { outline: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
a, button, summary { -webkit-tap-highlight-color: transparent; }

.skip {
  position: fixed; left: var(--g); top: -100px; z-index: 200;
  background: var(--ink); color: var(--bone); padding: 10px 14px; text-decoration: none;
  font: 500 15px/1 var(--sans); border-radius: 999px;
}
.skip:focus { top: 12px; }

main { display: block; min-height: 100vh; }
#app:focus { outline: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------------------------------------------------------
   The drape (page transitions) — a velvet stage curtain in the
   destination room's colour. CSS keyframes only, every browser.
   Leave (340 ms): both halves swing shut from the sides, the hem
   trailing behind the rail, while the page slides back and dims.
   Arrive (460 ms): rooms.js sets html.is-draped before first paint,
   so the curtain is already closed; the halves part, gathering
   into tighter folds as they go, the hem lagging, then clear.
   Cloth: background colour + three interfering pleat waves (so the
   folds are uneven, like real fabric) + vertical velvet grain
   (SVG noise, overlay) + light from the front, a shadowed rail
   and a heavy hem.
   --------------------------------------------------------- */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}
.curtain__half {
  --p1: max(5.6vw, 38px); --p2: max(9.1vw, 61px); --p3: max(14.3vw, 96px);
  position: absolute; top: -2%; bottom: -2%; width: 51%;
  background-color: var(--c-bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75 .03' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 .6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.12) 9%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,.32) 95%, rgba(0,0,0,.6) 100%),
    radial-gradient(120% 70% at 50% 38%, rgba(255,255,255,.13), rgba(255,255,255,0) 70%),
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.52) 0, rgba(0,0,0,.2) calc(var(--p1) * .14), rgba(255,255,255,.05) calc(var(--p1) * .36),
      rgba(255,255,255,.16) calc(var(--p1) * .5), rgba(0,0,0,.06) calc(var(--p1) * .74), rgba(0,0,0,.52) var(--p1)),
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.26) 0, rgba(0,0,0,.04) calc(var(--p2) * .3), rgba(255,255,255,.08) calc(var(--p2) * .55), rgba(0,0,0,.26) var(--p2)),
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.18) 0, rgba(255,255,255,.05) calc(var(--p3) * .45), rgba(0,0,0,.18) var(--p3));
  background-blend-mode: overlay, normal, soft-light, normal, normal, normal;
}
.curtain__half--l { left: 0; transform-origin: 0 0; box-shadow: 30px 0 60px -10px rgba(0,0,0,.45); }
.curtain__half--r { right: 0; transform-origin: 100% 0; box-shadow: -30px 0 60px -10px rgba(0,0,0,.45); }
/* the leading edge: one deep, rounded fold where the two halves meet */
.curtain__half::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: max(4vw, 34px);
}
.curtain__half--l::after { right: 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(255,255,255,.1) 45%, rgba(0,0,0,.25) 75%, rgba(0,0,0,.55)); }
.curtain__half--r::after { left: 0; background: linear-gradient(270deg, rgba(0,0,0,0), rgba(255,255,255,.1) 45%, rgba(0,0,0,.25) 75%, rgba(0,0,0,.55)); }
/* the hem: a heavier band of cloth at the floor */
.curtain__half::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2%; height: 1.6vh;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 40%, rgba(0,0,0,.45));
}

html.is-leaving .curtain { visibility: visible; }
html.is-leaving .curtain__half--l { animation: drape-shut-l .34s cubic-bezier(.55, .05, .35, 1) both; }
html.is-leaving .curtain__half--r { animation: drape-shut-r .34s cubic-bezier(.55, .05, .35, 1) both; }
html.is-leaving main, html.is-leaving .ft {
  transform: scale(.985);
  opacity: .5;
  transition: transform .34s var(--ease-io), opacity .34s ease;
}
html.is-draped .curtain { visibility: visible; }
html.is-draped .curtain__half--l { animation: drape-part-l .46s cubic-bezier(.6, 0, .2, 1) .02s both; }
html.is-draped .curtain__half--r { animation: drape-part-r .46s cubic-bezier(.6, 0, .2, 1) .02s both; }
html.is-draped main { animation: arrive .7s var(--ease) .06s both; }

/* shutting: the rail leads, the hem trails (skew about the top edge) */
@keyframes drape-shut-l {
  0%   { transform: translateX(-100%) scaleX(.35) skewX(0deg); }
  60%  { transform: translateX(-14%) scaleX(.86) skewX(-5deg); }
  100% { transform: none; }
}
@keyframes drape-shut-r {
  0%   { transform: translateX(100%) scaleX(.35) skewX(0deg); }
  60%  { transform: translateX(14%) scaleX(.86) skewX(5deg); }
  100% { transform: none; }
}
/* parting: the cloth gathers toward the sides, the hem following late */
@keyframes drape-part-l {
  0%   { transform: none; }
  45%  { transform: translateX(-22%) scaleX(.7) skewX(6deg); }
  100% { transform: translateX(-100%) scaleX(.32) skewX(0deg); }
}
@keyframes drape-part-r {
  0%   { transform: none; }
  45%  { transform: translateX(22%) scaleX(.7) skewX(-6deg); }
  100% { transform: translateX(100%) scaleX(.32) skewX(0deg); }
}
@keyframes arrive { from { transform: scale(1.015); } to { transform: none; } }

/* ---------------------------------------------------------
   Top bar (every page)
   --------------------------------------------------------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--g);
  color: var(--fg);
  transition: color .3s ease;
}
.bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 14%, transparent);
  opacity: 0;
  transition: opacity .25s ease;
}
.bar.is-solid::before { opacity: 1; }
.bar.on-hero { color: #FFF1F5; }
.bar.on-hero::before { opacity: 0; }

.bar__name {
  font: 500 16px/1 var(--sans);
  letter-spacing: -.01em;
  text-decoration: none;
  padding: 8px 0;
  white-space: nowrap;
}
.bar__nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.bar__link {
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  padding: 8px 0;
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1.5px no-repeat;
  transition: background-size .45s var(--ease);
}
.bar__link[aria-current="page"] { background-size: 100% 1.5px; }
@media (hover: hover) {
  .bar__link:hover { background-position: 0 100%; background-size: 100% 1.5px; }
}
.bar__cta, .bar__menu {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  padding: 10px 16px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  transition: background-color .2s ease;
}
.bar__menu:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
/* Contact pill fills from the bottom on hover */
.bar__cta {
  background: linear-gradient(var(--fg), var(--fg)) 50% 100% / 100% 0 no-repeat;
  transition: background-size .4s var(--ease), color .25s ease;
}
.bar.on-hero .bar__cta { background-image: linear-gradient(#FFF1F5, #FFF1F5); }
@media (hover: hover) {
  .bar__cta:hover { background-size: 100% 100%; color: var(--bg); }
  .bar.on-hero .bar__cta:hover { color: #3a0a1d; }
}
.bar__menu { display: none; }
.bar__menu-ic {
  width: 16px; height: 8px;
  border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transition: height .25s var(--ease);
}
html.menu-open .bar__menu-ic { height: 0; border-bottom: 0; }

/* ---------------------------------------------------------
   Mobile menu
   --------------------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 65;
  background: var(--bone); color: var(--ink);
  animation: menu-in .22s var(--ease);
}
.menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu li { animation: menu-rise .55s var(--ease) both; } /* delays set inline, 32 ms apart */
@keyframes menu-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
html.menu-open .bar { color: var(--ink); }
html.menu-open .bar::before { opacity: 0; }
.menu__in {
  height: 100%; overflow-y: auto;
  padding: calc(var(--bar-h) + 16px) var(--g) 40px;
}
.menu__main a {
  display: block; padding: 8px 0;
  font: 500 28px/1.15 var(--sans); letter-spacing: -.04em;
  text-decoration: none;
}
.menu__main a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu__h {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(22,20,18,.18);
  font: 500 14px/1.3 var(--sans); opacity: .7;
}
.menu__projects a {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(22,20,18,.12);
  font: 500 16px/1.3 var(--sans); text-decoration: none;
}
.menu__projects a[aria-current="page"] .menu__t { text-decoration: underline; text-underline-offset: 4px; }
.sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(22,20,18,.2); }
.menu__y { font-size: 14px; opacity: .7; white-space: nowrap; }

/* ---------------------------------------------------------
   Images
   --------------------------------------------------------- */
.ph {
  position: relative; display: block; overflow: hidden;
  width: 100%;
  background: rgba(127,127,127,.14);
}
.ph::before {
  content: ""; position: absolute; inset: -8%;
  background: var(--ph, none) center / cover no-repeat;
  filter: blur(16px);
}
.ph img, .ph video {
  position: relative;
  width: 100%; height: 100%; object-fit: cover;
}
.ph img { opacity: 0; transition: opacity .5s ease; }
.ph:has(> img.is-loaded)::before { content: none; }
.ph img.is-loaded { opacity: 1; }
/* the work can't be dragged out, selected or long-pressed to save (main.js blocks the menu) */
img, video {
  -webkit-user-drag: none; user-drag: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}

/* ---------------------------------------------------------
   Reveals (main.js adds .is-in once, via IntersectionObserver;
   --d is a per-element delay it sets for the stagger).
   `translate` / `scale` are the individual transform properties,
   so they never fight hover transforms. Browsers without them
   (Safari < 14.1) simply fade.
   --------------------------------------------------------- */
[data-rv] { transition: opacity .7s ease var(--d, 0s), translate .9s var(--ease) var(--d, 0s); }
html.js-motion [data-rv]:not(.is-in) { opacity: 0; translate: 0 18px; }

/* "emerge": a picture comes out of black and settles */
[data-rv="emerge"] .ph::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: #000; opacity: 0; transition: opacity 1.1s cubic-bezier(.33, 0, .2, 1) var(--d, 0s);
}
[data-rv="emerge"] .ph img { transition: opacity .5s ease, scale 1.6s var(--ease) var(--d, 0s); }
html.js-motion [data-rv="emerge"]:not(.is-in) { opacity: 1; translate: none; }
html.js-motion [data-rv="emerge"]:not(.is-in) .ph::after { opacity: 1; }
html.js-motion [data-rv="emerge"]:not(.is-in) .ph img { scale: 1.07; }

/* headings: each word rises out of its own mask */
.w {
  display: inline-block; vertical-align: top; overflow: hidden;
  padding: .08em 0 .22em; margin: -.08em 0 -.22em;
}
.paren .w { padding-right: .08em; margin-right: -.08em; }
.w > span { display: inline-block; transition: transform 1s var(--ease); }
html.js-motion [data-split]:not(.is-in) .w > span { transform: translateY(130%); }

/* ---------------------------------------------------------
   Home — hero triptych
   --------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 520px;
  background: #3a0a1d; color: #FFF1F5;
  overflow: hidden;
}
.hero__panels {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(var(--n, 1), 1fr);
  gap: 0; background: #000;
}
.hero__panel { position: relative; overflow: hidden; background: #000; }
/* the loops carry black side bars (~8% each side): the video box is 20% wider
   than its panel, so the bars fall outside and the films meet edge to edge */
.hero__panel video {
  position: absolute; top: -1px; left: -10%; width: 120%; max-width: none; height: calc(100% + 2px);
  object-fit: cover; opacity: 0;
  transition: opacity 1.6s ease, transform 1.6s var(--ease), filter .6s ease;
}
.hero__panel video.is-on { opacity: 1; }
/* each film is a link to its series */
.hero__panel { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.hero__panel video { -webkit-filter: brightness(1); filter: brightness(1); }
.hero__go {
  position: absolute; z-index: 2; left: 14px; top: calc(var(--bar-h) + 10px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 999px;
  background: rgba(20, 4, 10, .55); color: #FFF1F5;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 500 14px/1 var(--sans);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .3s ease, transform .5s var(--ease);
}
.hero__go span { display: inline-block; transition: transform .45s var(--ease); }
@media (hover: hover) {
  .hero__panel:hover video.is-on { transform: scale(1.025); filter: brightness(1.08); }
  .hero__panel:hover .hero__go { opacity: 1; transform: none; }
  .hero__panel:hover .hero__go span { transform: translateX(3px); }
}
.hero__panel:focus-visible { outline: 2px solid #FFF1F5; outline-offset: -6px; }
.hero__panel:focus-visible .hero__go { opacity: 1; transform: none; }
.hero__name { pointer-events: none; }
/* each panel emerges from black: a black veil lifts while the film settles */
.hero__panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: #000; opacity: 0;
  transition: opacity 1s cubic-bezier(.33, 0, .2, 1);
}

/* Intro (home opened at the top, motion allowed). Until main.js has
   rendered, the stage is black; then panels, name and meta arrive in turn. */
html.intro:not(.is-rendered) #app { background: #000; min-height: 100vh; min-height: 100svh; }
html.intro .hero, html.intro .hero__panels { background: #000; }
html.intro .hero__panel:not(.is-in)::after { opacity: 1; }
html.intro .hero__panel:not(.is-in) video { transform: scale(1.08); }
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
.hero::before { top: 0; height: 160px; background: linear-gradient(180deg, rgba(25,0,10,.5), rgba(25,0,10,0)); }
.hero::after { top: 40%; bottom: 0; background: linear-gradient(180deg, rgba(25,0,10,0), rgba(25,0,10,.62)); }
.hero__name {
  position: absolute; z-index: 2;
  left: var(--g); right: var(--g); bottom: calc(var(--g) + 64px);
  font: 500 clamp(2rem, 8vw, 9.5rem)/.9 var(--serif);
  letter-spacing: -.03em;
}
.ln { display: block; overflow: hidden; padding: .04em 0 .12em; margin: -.04em 0 -.12em; }
.ln > span { display: block; transition: transform 1s var(--ease); }
.ln + .ln > span { transition-delay: .12s; }
html.intro .hero:not(.is-name) .ln > span { transform: translateY(115%); }
.hero__foot {
  position: absolute; z-index: 2;
  left: var(--g); right: var(--g); bottom: var(--g);
  display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap;
  font: 500 15px/1.4 var(--sans);
}
.hero__foot > * { transition: opacity .6s ease, transform .9s var(--ease); }
.hero__foot > :nth-child(2) { transition-delay: .08s; }
html.intro .hero:not(.is-foot) .hero__foot > * { opacity: 0; transform: translateY(14px); }
.hero__credit { opacity: .88; }
html.intro .hero:not(.is-foot) .hero__credit { opacity: 0; }
.hero__credit a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero__foot > .hero__cue {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px; border: 1.5px solid currentColor; border-radius: 999px;
  text-decoration: none;
  color: #FFF1F5;
  background: linear-gradient(#FFF1F5, #FFF1F5) 50% 100% / 100% 0 no-repeat, rgba(20, 4, 10, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  transition: opacity .6s ease .16s, transform .9s var(--ease) .16s, background-size .4s var(--ease) 0s, color .25s ease 0s;
}
@media (hover: hover) {
  .hero__foot > .hero__cue:hover { background-size: 100% 100%, auto; color: #3a0a1d; text-shadow: none; }
  .hero__cue:hover .hero__line::after { background: #3a0a1d; }
}
.hero__line { position: relative; width: 1.5px; height: 16px; background: rgba(255,241,245,.35); overflow: hidden; }
.hero__line::after {
  content: ""; position: absolute; inset: 0;
  background: #FFF1F5; transform: translateY(-100%);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ---------------------------------------------------------
   Home — doors (one per room)
   --------------------------------------------------------- */
.door {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g);
  align-items: center;
  padding: 6vh var(--g);
  text-decoration: none;
  color: inherit;
  scroll-margin-top: 0;
  overflow-x: clip;
}
.door__media, .door__text { grid-row: 1; }
.door__media { position: relative; z-index: 1; }
/* the pile of prints: the stack box has the cover's proportions; every
   print sits centred in it at its own proportions (never cropped).
   Three prints show: one in front, two fanned out behind it, away
   from the title (--dir). Narrow (portrait) piles fan wider. */
.door__stack {
  position: relative;
  width: min(60%, calc(66vh * var(--A)));
  aspect-ratio: var(--A);
  --dx: min(80%, calc(36% / var(--A) + 14%));
}
.door__card {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 1.1s cubic-bezier(.65, 0, .25, 1), -webkit-filter 1.1s ease, filter 1.1s ease;
}
.door__pic {
  flex: none;
  box-shadow: 0 26px 44px -26px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.16);
}
/* front print, slightly askew */
.door__card[data-slot="0"] { z-index: 3; transform: rotate(calc(var(--dir) * -1.4deg)); }
/* second print: up and out */
.door__card[data-slot="1"] {
  z-index: 2;
  transform: translate(calc(var(--dir) * var(--dx)), -8%) rotate(calc(var(--dir) * 5deg)) scale(.84);
  -webkit-filter: brightness(.82); filter: brightness(.82);
}
/* third print: down and further out */
.door__card[data-slot="2"] {
  z-index: 1;
  transform: translate(calc(var(--dir) * var(--dx) * 1.32), 10%) rotate(calc(var(--dir) * -3deg)) scale(.76);
  -webkit-filter: brightness(.68); filter: brightness(.68);
}
/* before the room comes into view the prints lie in one pile */
html.js-motion .door__stack:not(.is-dealt) .door__card { transform: rotate(calc(var(--dir) * -1.4deg)) scale(.96); }
@media (hover: hover) {
  .door:hover .door__card[data-slot="0"] { transform: rotate(calc(var(--dir) * -2.2deg)) scale(1.02); }
  .door:hover .door__card[data-slot="1"] {
    transform: translate(calc(var(--dir) * var(--dx) * 1.1), -11%) rotate(calc(var(--dir) * 7deg)) scale(.85);
    -webkit-filter: brightness(.95); filter: brightness(.95);
  }
  .door:hover .door__card[data-slot="2"] {
    transform: translate(calc(var(--dir) * var(--dx) * 1.46), 13%) rotate(calc(var(--dir) * -5deg)) scale(.77);
    -webkit-filter: brightness(.85); filter: brightness(.85);
  }
}
.door:focus-visible .door__card[data-slot="1"] { transform: translate(calc(var(--dir) * var(--dx) * 1.1), -11%) rotate(calc(var(--dir) * 7deg)) scale(.85); }
.door__text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.door__title {
  font: 500 clamp(2.6rem, 5.4vw, 7rem)/.92 var(--serif);
  letter-spacing: -.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.paren { font-style: italic; font-weight: 400; }
.door__title .paren { display: block; margin-top: .2em; font-size: .38em; line-height: 1.1; letter-spacing: -.01em; }
.door__meta { display: flex; flex-direction: column; gap: 2px; max-width: 36ch; font: 500 15px/1.4 var(--sans); }
.door__meta span + span { opacity: .82; }
.door__go {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 4px; padding: 11px 16px 11px 18px;
  border: 1.5px solid currentColor; border-radius: 999px;
  font: 500 15px/1 var(--sans);
  background: linear-gradient(var(--fg), var(--fg)) 0 50% / 0 100% no-repeat;
}
.door__go[data-rv] {
  transition: opacity .7s ease var(--d, 0s), translate .9s var(--ease) var(--d, 0s), background-size .45s var(--ease), color .25s ease;
}
.door__go svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.door:focus-visible .door__go { background-size: 100% 100%; color: var(--bg); }
@media (hover: hover) {
  .door:hover .door__go { background-size: 100% 100%; color: var(--bg); }
  .door:hover .door__go svg { transform: translateX(4px); }
}
.door:focus-visible .door__go svg { transform: translateX(4px); }
.door:focus-visible { outline-offset: -10px; }

/* Titles never cross the photograph (client: overlaps read as a bug).
   The rooms alternate sides; the pile sits next to the title and fans
   out toward the outer edge.
   l: title left, prints right */
.door--l .door__text { grid-column: 1 / 5; }
.door--l .door__media { grid-column: 5 / 13; }
.door--l .door__stack { margin: 0 auto 0 6%; }
/* r: prints left, title right */
.door--r .door__media { grid-column: 1 / 9; }
.door--r .door__text { grid-column: 9 / 13; }
.door--r .door__stack { margin: 0 6% 0 auto; }

/* ---------------------------------------------------------
   Project + installations pages
   --------------------------------------------------------- */
.pj__head { padding: calc(var(--bar-h) + 24px) var(--g) 40px; }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px 9px 12px;
  border: 1.5px solid var(--hair); border-radius: 999px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
}
.back, .back[data-rv] {
  transition: opacity .7s ease var(--d, 0s), translate .9s var(--ease) var(--d, 0s), border-color .25s ease, background-color .25s ease;
}
.back__ar { display: inline-block; transition: transform .45s var(--ease); }
@media (hover: hover) {
  .back:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 10%, transparent); }
  .back:hover .back__ar { transform: translateX(-4px); }
}
.pj__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g); row-gap: 28px;
  margin-top: 28px; align-items: start;
}
.pj__id { grid-column: 1 / 7; }
.pj__body { grid-column: 8 / 13; padding-top: .4em; }
.pj__title {
  font: 500 clamp(2.5rem, 5.4vw, 5.5rem)/.96 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.pj__title .paren { display: block; margin-top: .18em; font-size: .5em; line-height: 1.1; letter-spacing: -.01em; }
.pj__meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px;
  margin-top: 28px; max-width: 34rem;
}
.pj__meta dt { font: 500 14px/1.3 var(--sans); opacity: .7; }
.pj__meta dd { margin-top: 3px; font: 500 15px/1.4 var(--sans); }
.pj__body p { font: 400 15.5px/1.72 var(--sans); max-width: 60ch; }
.pj__body p + p { margin-top: 1em; }
.pj__body a { text-underline-offset: 3px; }

.pj__work { padding: 0 var(--g); }
.pj__hint { margin-top: 16px; font: 500 14px/1.4 var(--sans); opacity: .72; }
.pj__more {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 64px var(--g) 72px;
}

/* ---------------------------------------------------------
   Justified gallery — tiles flex in proportion to aspect ratio,
   so a row shares one height and no image is cropped.
   --------------------------------------------------------- */
.jg {
  --row: clamp(112px, 21vw, 310px);
  --gap: 10px;
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: var(--gap);
}
.jg::after { content: ""; flex: 999 1 0px; min-width: 0; }
.jg__cell {
  flex: var(--ar) 1 calc(var(--ar) * var(--row)); min-width: 0; max-width: 100%;
  transition: opacity .8s ease var(--d, 0s), translate 1s var(--ease) var(--d, 0s);
}
html.js-motion .jg__cell:not(.is-in) { opacity: 0; translate: 0 22px; }
html.js-motion .jg__cell:not(.is-in) .ph img, html.js-motion .jg__cell:not(.is-in) .ph video { scale: 1.06; }
.jg__it.is-lifted .ph { visibility: hidden; } /* the work is flying in the viewer */
.jg__it {
  position: relative; display: block; width: 100%;
  overflow: hidden;
  cursor: zoom-in;
}
.jg__it--film { cursor: pointer; }
.jg__it .ph img, .jg__it .ph video { transition: opacity .5s ease, transform .8s var(--ease), scale 1.3s var(--ease) var(--d, 0s); }
.jg__it:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.jg__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 2px 12px;
  padding: 28px 10px 9px;
  font: 500 14px/1.3 var(--sans); color: #fff; text-align: left;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.6));
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .5s var(--ease);
}
.jg__it--film .jg__cap { top: 0; bottom: auto; padding: 9px 10px 28px; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0)); }
@media (hover: hover) {
  .jg__it:hover .ph img, .jg__it:hover .ph video { transform: scale(1.03); }
  .jg__it:hover .jg__cap { opacity: 1; transform: none; }
}
.jg__it:focus-visible .jg__cap { opacity: 1; transform: none; }
.jg__it:active .ph { opacity: .86; } /* touch feedback */
.jg__badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  background: rgba(0,0,0,.58); color: #fff;
  font: 500 14px/1 var(--sans);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.jg__badge { transition: background-color .25s ease; }
.jg__it--film:hover .jg__badge { background: rgba(0,0,0,.78); }

/* ---------------------------------------------------------
   Project gallery — every row runs edge to edge: each work takes
   width in proportion to its shape (flex-grow = aspect ratio), so a
   row shares one height and nothing is cropped. main.js groups the
   works so the rows alternate tall and short.
   --------------------------------------------------------- */
.eg { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); padding-top: 8px; }
.eg__row { display: flex; align-items: flex-start; gap: 10px; }
.eg__row[hidden] { display: none; }
.eg__cell { flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.eg__it { display: block; width: 100%; }
.eg__it .ph { width: 100%; }
.eg__cap {
  display: flex; flex-wrap: wrap; gap: 2px 12px;
  margin-top: 8px;
  font: 400 14px/1.35 var(--sans); opacity: .8;
}
.eg__all { display: flex; justify-content: center; margin-top: clamp(40px, 7vh, 90px); }
.eg__btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px; border: 1.5px solid currentColor; border-radius: 999px;
  font: 500 15px/1 var(--sans);
  background: linear-gradient(var(--fg), var(--fg)) 50% 100% / 100% 0 no-repeat;
  transition: background-size .45s var(--ease), color .25s ease;
}
.eg__btn-ic { position: relative; width: 12px; height: 12px; }
.eg__btn-ic::before, .eg__btn-ic::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1.5px; margin-top: -.75px;
  background: currentColor; transition: transform .45s var(--ease);
}
.eg__btn-ic::after { transform: rotate(90deg); }
.eg__btn[aria-expanded="true"] .eg__btn-ic::after { transform: rotate(0deg); }
@media (hover: hover) { .eg__btn:hover { background-size: 100% 100%; color: var(--bg); } }

/* ---------------------------------------------------------
   Next project strip
   --------------------------------------------------------- */
.nx {
  --lift: 0px;
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  width: 100%; min-height: 160px;
  padding: 14px clamp(18px, 3vw, 36px) 14px 14px;
  background: var(--nbg); color: var(--nfg);
  border-radius: 16px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--nfg) 16%, transparent);
  text-decoration: none;
  overflow: hidden;
  transform: translateY(var(--lift));
}
.nx, .nx[data-rv] {
  transition: opacity .7s ease var(--d, 0s), translate .9s var(--ease) var(--d, 0s), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.nx::before {
  /* the drape, faintly */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.1) 0, rgba(0,0,0,.02) 18px, rgba(255,255,255,.05) 42px, rgba(0,0,0,.1) 84px);
  transition: background-position 1.2s var(--ease);
}
.nx__thumb { display: flex; border-radius: 8px; overflow: hidden; }
.nx__thumb .ph { height: 132px; width: auto; max-width: 260px; }
.nx__thumb img { transition: opacity .5s ease, transform .9s var(--ease); }
.nx__ar { display: inline-block; transition: transform .45s var(--ease); }
.nx:active { --lift: 1px; }
@media (hover: hover) {
  .nx:hover { --lift: -3px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--nfg) 30%, transparent), 0 22px 44px -22px rgba(0,0,0,.55); }
  .nx:hover::before { background-position: 42px 0; } /* the pleats sway */
  .nx:hover .nx__thumb img { transform: scale(1.06); }
  .nx:hover .nx__ar { transform: translateX(5px); }
}
.nx__txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nx__lbl { font: 500 15px/1.2 var(--sans); }
.nx__t { font: 500 clamp(1.5rem, 2.7vw, 2.5rem)/1.04 var(--serif); letter-spacing: -.02em; }
.nx__t .paren { font-size: .7em; }
.nx__sub { font: 500 14px/1.35 var(--sans); opacity: .78; }
.nx__go {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid currentColor;
  background: linear-gradient(var(--nfg), var(--nfg)) 50% 100% / 100% 0 no-repeat;
  transition: background-size .45s var(--ease), color .25s ease;
}
/* two arrows: on hover the first leaves to the right, the second slides in */
.nx__go svg { grid-area: 1 / 1; width: 22px; height: 22px; transition: transform .5s var(--ease); }
.nx__go svg + svg { transform: translateX(-46px); }
@media (hover: hover) {
  .nx:hover .nx__go { background-size: 100% 100%; color: var(--nbg); }
  .nx:hover .nx__go svg { transform: translateX(46px); }
  .nx:hover .nx__go svg + svg { transform: none; }
}
.nx:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* ---------------------------------------------------------
   About
   --------------------------------------------------------- */
.ab__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 36px;
  padding: calc(var(--bar-h) + 40px) var(--g) 0;
  align-items: start;
}
.ab__portrait { grid-column: 1 / 6; max-width: 500px; }
.ab__text { grid-column: 7 / 13; }
.ab__name { font: 500 clamp(2.4rem, 4.6vw, 4.75rem)/.98 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.ab__tag { margin-top: 14px; font: 500 15px/1.4 var(--sans); opacity: .75; }
.ab__bio { margin-top: 28px; }
.ab__bio p, .ab__more p { font: 400 15.5px/1.72 var(--sans); max-width: 60ch; }
.ab__bio p + p, .ab__more p + p { margin-top: 1em; }
.ab__more { margin-top: 22px; }
.ab__more summary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 15px; border: 1.5px solid var(--hair); border-radius: 999px;
  font: 500 15px/1 var(--sans);
  cursor: pointer; list-style: none;
}
.ab__more summary:hover { border-color: currentColor; }
.ab__more summary::-webkit-details-marker { display: none; }
.ab__more summary::after { content: "+"; font-size: 18px; line-height: 0; }
.ab__more[open] summary::after { content: "−"; }
.ab__more > div { margin-top: 20px; }
.ab__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center;
  padding: 13px 20px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  border: 1.5px solid var(--fg);
  font: 500 15px/1 var(--sans); text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .25s ease;
}
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0,0,0,.5); }
  .btn--ghost:hover { box-shadow: none; background: color-mix(in srgb, currentColor 12%, transparent); }
}

.sect-h { font: 500 clamp(2rem, 3.6vw, 3.4rem)/1 var(--serif); letter-spacing: -.02em; }
.ab__por { padding: 96px var(--g) 0; }
.ab__por .jg { margin-top: 28px; }

.cv { padding: 96px var(--g) 0; scroll-margin-top: var(--bar-h); }
.cv__sec {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g);
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hair);
}
.cv__sec h3 {
  grid-column: 1 / 5; align-self: start;
  position: sticky; top: calc(var(--bar-h) + 16px);
  font: 500 clamp(1.25rem, 1.6vw, 1.5rem)/1.2 var(--serif); letter-spacing: -.01em;
  max-width: 22ch;
}
.cv__sec ul { grid-column: 5 / 13; }
.cv__sec li {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--g);
  padding: 11px 0 12px; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  font: 400 14.5px/1.6 var(--sans);
}
.cv__k { font-weight: 500; font-variant-numeric: tabular-nums; }
.cv__v { max-width: 70ch; }
.cv__n { display: block; margin-top: 4px; font-size: 14.5px; opacity: .78; }
.cv__nk { font-weight: 500; }
.ab .pj__more { padding-top: 96px; }

/* ---------------------------------------------------------
   Footer (every page)
   --------------------------------------------------------- */
.ft {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px var(--g);
  padding: 40px var(--g) 28px;
  border-top: 1px solid var(--hair);
  font: 400 15px/1.5 var(--sans);
}
.ft a { text-decoration: none; }
.ft a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ft__name { font-weight: 500; font-size: 15px; }
.ft__id p { margin-top: 6px; opacity: .75; }
.ft__nav, .ft__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ft__contact a { font-weight: 500; }
/* the address never breaks mid-word: it shrinks to fit instead */
.ft__contact a[data-mail-text] { white-space: nowrap; font-size: clamp(13px, 4vw, 15px); }
.ft__social[hidden] { display: none; }
.ft__copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 14px; opacity: .72; }

/* ---------------------------------------------------------
   Lightbox
   --------------------------------------------------------- */
.lb {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  color: var(--fg);
}
.lb[hidden] { display: none; }
/* backdrop and controls fade; the work itself flies (FLIP, main.js) */
.lb::before {
  content: ""; position: absolute; inset: 0;
  background: var(--bg);
  opacity: 0; transition: opacity .32s ease;
}
.lb__top, .lb__cap { position: relative; }
.lb__top, .lb__nav, .lb__cap { opacity: 0; transition: opacity .25s ease; }
.lb.is-open::before { opacity: 1; }
.lb.is-open .lb__top, .lb.is-open .lb__nav, .lb.is-open .lb__cap { opacity: 1; transition: opacity .35s ease .14s, background-color .25s ease 0s; }
.lb:not(.is-open) { pointer-events: none; }
html.lb-open, html.menu-open { overflow: hidden; }
.lb__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--bar-h); padding: 0 var(--g);
}
.lb__count { font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.lb__close {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 16px;
  border: 1.5px solid currentColor; border-radius: 999px;
  font: 500 15px/1 var(--sans);
}
.lb__close { transition: background-color .25s ease; }
.lb__nav { transition: opacity .25s ease, background-color .25s ease; }
.lb__x { transition: transform .45s var(--ease); }
.lb__nav svg { transition: transform .45s var(--ease); }
@media (hover: hover) {
  .lb__close:hover, .lb__nav:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
  .lb__close:hover .lb__x { transform: rotate(90deg); }
  .lb__nav--prev:hover svg { transform: translateX(-3px); }
  .lb__nav--next:hover svg { transform: translateX(3px); }
}
.lb__x { position: relative; width: 12px; height: 12px; }
.lb__x::before, .lb__x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%) rotate(45deg);
}
.lb__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lb__stage { position: relative; min-height: 0; touch-action: pan-y pinch-zoom; }
.lb__media { position: absolute; inset: 0 88px; }
.lb__slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.lb__slide.is-out { pointer-events: none; }
.lb__el {
  display: block;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  background: center / cover no-repeat;
  box-shadow: 0 18px 50px -20px rgba(0,0,0,.45);
  transform-origin: 0 0; /* FLIP maths in main.js assume the top-left corner */
}
.lb__el.is-loaded { background-image: none !important; }
video.lb__el { background: #000; }
.lb__nav {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-top: -27px;
  border: 1.5px solid currentColor; border-radius: 50%;
}
.lb__nav[hidden] { display: none; }
.lb__nav svg { width: 24px; height: 24px; }
.lb__nav--prev { left: var(--g); }
.lb__nav--next { right: var(--g); }
.lb__cap {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px;
  min-height: 64px; padding: 16px var(--g) 22px;
  font: 500 15px/1.4 var(--sans); text-align: center;
}
.lb__t { font-weight: 500; }
.lb__p { opacity: .74; }

/* ---------------------------------------------------------
   Misc
   --------------------------------------------------------- */
.missing { padding: calc(var(--bar-h) + 14vh) var(--g) 20vh; }
.missing h1 { font: 500 clamp(2.4rem, 6vw, 5.5rem)/.98 var(--serif); letter-spacing: -.025em; max-width: 16ch; }
.missing p { margin-top: 24px; font-size: 17px; }
.noscript { padding: 30vh var(--g); font-size: 18px; }

/* ---------------------------------------------------------
   Smaller screens
   --------------------------------------------------------- */
@media (max-width: 860px) {
  .bar__nav { display: none; }
  .bar__menu { display: inline-flex; }
}

@media (max-width: 760px) {
  :root { --bar-h: 58px; }
  .bar__name { font-size: 16px; }
  .bar__menu { padding: 9px 14px; }

  .hero__name { bottom: calc(var(--g) + 118px); }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__foot > .hero__cue { margin-left: 0; }

  .door { padding: 7vh var(--g); row-gap: 26px; align-content: center; }
  .door__media, .door__text { grid-column: 1 / -1 !important; grid-row: auto; margin: 0 !important; align-self: auto !important; }
  .door__stack { width: min(64%, calc(48vh * var(--A))); --dx: min(50%, calc(18% / var(--A) + 10%)); }
  .door--l .door__stack { margin: 0 auto 0 2%; }
  .door--r .door__stack { margin: 0 2% 0 auto; }
  .door__title { font-size: clamp(2.3rem, 11vw, 3.6rem); }
  .door__title .paren { font-size: .5em; }

  .pj__head { padding-bottom: 28px; }
  .pj__grid { margin-top: 22px; }
  .pj__id, .pj__body { grid-column: 1 / -1; }
  .pj__body { padding-top: 0; }
  .pj__body p { font-size: 15px; }
  .pj__meta { gap: 14px 20px; }
  .jg { --gap: 6px; }
  .eg { gap: 14px; }
  .eg__row { gap: 6px; }
  .eg__cap { margin-top: 6px; gap: 0 8px; }
  .pj__more { padding: 44px var(--g) 52px; }

  .nx { grid-template-columns: auto minmax(0, 1fr); min-height: 0; padding: 10px 16px 10px 10px; gap: 14px; }
  .nx__thumb .ph { height: 84px; max-width: 150px; }
  .nx__go { display: none; }
  .nx__t { font-size: 1.35rem; }
  .nx__lbl, .nx__sub { font-size: 14px; }

  .ab__head { padding-top: calc(var(--bar-h) + 24px); }
  .ab__portrait { grid-column: 1 / -1; width: 72%; }
  .ab__text { grid-column: 1 / -1; }
  .ab__bio p, .ab__more p { font-size: 15px; }
  .ab__por, .cv { padding-top: 64px; }
  .cv__sec h3 { grid-column: 1 / -1; position: static; margin-bottom: 12px; }
  .cv__sec ul { grid-column: 1 / -1; }
  .cv__sec li { grid-template-columns: 1fr; gap: 2px; }

  .ft { grid-template-columns: 1fr 1fr; padding-top: 32px; }
  .ft__id { grid-column: 1 / -1; }
  .ft__contact { grid-column: 1 / -1; }

  .lb__media { inset: 0 12px; }
  .lb__nav { top: auto; bottom: 12px; margin-top: 0; width: 48px; height: 48px; }
  .lb__cap { padding: 14px 76px 20px; min-height: 76px; font-size: 14px; }
}

/* ---------------------------------------------------------
   Reduced motion (prefers-reduced-motion: reduce)
   Many Windows machines report this because "Animation effects" is
   off, so the site must not go dead: the same choreography runs,
   opacity only. Nothing moves, scales, wipes or scrolls smoothly.
   html.rm is set by rooms.js; entrance states stay under js-motion,
   so the safety nets work exactly as in full motion.
   --------------------------------------------------------- */

/* the drape becomes a colour fade: in ~250 ms on leaving, out ~350 ms on arrival */
html.rm .curtain { transform: none; opacity: 0; }
html.rm.is-leaving .curtain { visibility: visible; animation: drape-fade-in .25s ease forwards; }
html.rm.is-leaving main, html.rm.is-leaving .ft { transform: none; opacity: 1; transition: none; }
html.rm.is-draped .curtain { visibility: visible; opacity: 1; animation: drape-fade-out .35s ease .04s both; }
html.rm.is-draped .curtain__half--l, html.rm.is-draped .curtain__half--r { animation: none; }
html.rm .curtain__half { box-shadow: none; }
html.rm.is-draped main { animation: none; }
@keyframes drape-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drape-fade-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/* hero: panels still emerge from black one by one (veil fade only), name and meta fade */
html.intro.rm .hero__panel:not(.is-in) video { transform: none; }
html.rm .ln > span { transition: opacity .9s ease; }
html.rm .ln + .ln > span { transition-delay: .15s; }
html.intro.rm .hero:not(.is-name) .ln > span { transform: none; opacity: 0; }
html.intro.rm .hero:not(.is-foot) .hero__foot > * { transform: none; }

/* headings, blocks, tiles, portrait: fade in on scroll, no rise, no settle */
html.rm .w > span { transition: opacity .8s ease; }
html.js-motion.rm [data-split]:not(.is-in) .w > span { transform: none; opacity: 0; }
html.js-motion.rm [data-rv]:not(.is-in) { translate: none; }
html.js-motion.rm .jg__cell:not(.is-in) { translate: none; }
html.js-motion.rm .jg__cell:not(.is-in) .ph img, html.js-motion.rm .jg__cell:not(.is-in) .ph video { scale: none; }
html.js-motion.rm [data-rv="emerge"]:not(.is-in) .ph img { scale: none; }

/* these hold without JS too (pure media query) */
@media not all {
  .hero__line::after { animation: none; transform: none; }
  .menu li { animation-name: menu-fade; }
  .bar__menu-ic { transition: none; }
  /* hovers: colour and fill changes only, no zoom, lift, nudge or swap */
  .jg__it:hover .ph img, .jg__it:hover .ph video, .door:hover .door__z, .nx:hover .nx__thumb img,
  .btn:hover, .back:hover .back__ar, .nx:hover .nx__ar, .door:hover .door__go svg, .door:focus-visible .door__go svg,
  .lb__close:hover .lb__x, .lb__nav--prev:hover svg, .lb__nav--next:hover svg, .nx:hover .nx__go svg { transform: none; }
  .nx:hover, .nx:active { --lift: 0px; }
  .nx:hover::before { background-position: 0 0; }
  .nx__go svg + svg { display: none; }
  .jg__cap { transform: none; }
  /* underline and fills appear instead of sweeping across */
  .bar__link, .bar__cta, .nx__go { transition: color .25s ease, opacity .25s ease; }
  .door__go[data-rv] { transition: opacity .7s ease var(--d, 0s), color .25s ease; }
  .hero__foot > .hero__cue { transition: opacity .6s ease .16s, color .25s ease 0s; }
  html { scroll-behavior: auto; }
}
@keyframes menu-fade { from { opacity: 0; } to { opacity: 1; } }

/* printing: everything visible, no curtain */
@media print {
  .curtain, .bar, .menu, .lb { display: none !important; }
  [data-rv], .jg__cell, .w > span { opacity: 1 !important; translate: none !important; transform: none !important; }
}

/* ---------------------------------------------------------
   Server-rendered fallback (PHP). Search engines, AI crawlers
   and visitors without JavaScript read this version; with JS,
   html.js hides it before first paint and main.js replaces it
   with the same content, animated.
   --------------------------------------------------------- */
html.js .ssr { display: none; }
.ssr { padding: calc(var(--bar-h) + 32px) var(--g) 64px; max-width: 1200px; }
.ssr h1 { font: 500 clamp(2.4rem, 6vw, 5rem)/.98 var(--serif); letter-spacing: -.025em; }
.ssr h2 { margin-top: 48px; font: 500 clamp(1.6rem, 3vw, 2.4rem)/1.05 var(--serif); }
.ssr h3 { margin-top: 28px; font: 500 1.25rem/1.2 var(--serif); }
.ssr p, .ssr li, .ssr dd { margin-top: 12px; max-width: 70ch; font: 400 15.5px/1.7 var(--sans); }
.ssr dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 20px; margin-top: 20px; }
.ssr dt { font: 500 14px/1.7 var(--sans); opacity: .7; }
.ssr dd { margin: 0; }
.ssr ul { margin-top: 12px; }
.ssr .ssr__works { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 28px; }
.ssr figure img { width: 100%; height: auto; }
.ssr figcaption { margin-top: 6px; font: 400 14px/1.4 var(--sans); opacity: .8; }
.ssr a { text-underline-offset: 3px; }
