/* Jean-Pierre Yin. Homepage and contact pages (generated by tools/build-pages.mjs).
   Base rules are the desktop composition (>= 1100px); tablet (700–1099px) and mobile (< 700px)
   change the column spans. Every homepage spread is a 24-column grid; the spans here must stay in
   step with SIZES in build-pages.mjs. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-normal-latin-v2.woff2?v=4f8a9f0a1b") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
/* Newsreader ships as a wght-400 instance (opsz kept): the site uses no other weight, and with
   font-synthesis: none a bolder Newsreader would render at 400. See tools/build-fonts.py. */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-400-latin.woff2?v=312e53dd41") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-400-italic-latin.woff2?v=dd54f129c3") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f3f0e9;
  --print: #faf8f4;
  --ink: #171715;
  --muted: #625d56;
  --line: rgba(23, 23, 21, 0.16);
  --night: #11100e;
  --on-dark: #f3f0e9;
  --on-dark-muted: #a9a399;
  --error: #9b2a1c;
  --placeholder: #e4dfd6;
  --grease: #c8291d; /* a china-marker red, only for circled photographs */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 52px);
  --header-h: 68px;
  --motion-scale: 1; /* scroll drift and reveal distance: smaller on tablet and phone */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-wipe: cubic-bezier(0.77, 0, 0.18, 1);
}

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

/* --ground / --fg: the page's ground and text, which go dark while the studio portraits cross the
   screen (html.is-night, held.js). */
html {
  --ground: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  background: var(--ground);
  color: var(--fg);
  transition: background-color 900ms var(--ease-out), color 900ms var(--ease-out);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
html.is-night {
  --ground: var(--night);
  --fg: var(--on-dark);
  --fg-muted: var(--on-dark-muted);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Lenis (smooth wheel scrolling, held.js) drives the scroll itself; native smooth scrolling would fight it. */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--fg);
  transition: inherit;
  font: 400 16px/1.45 var(--ui);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
picture { display: block; }
main { display: block; overflow-x: clip; }
::selection { background: var(--ink); color: var(--paper); }

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

.arrow {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  vertical-align: -0.02em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
  overflow: visible;
}
.arrow--e { width: 0.85em; }

/* Skip link: first focusable element */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--on-dark);
  font: 700 12px/1 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.skip-link:focus-visible { outline-color: var(--ink); outline-offset: 2px; }

/* Small labels: the section words, set as quiet italic captions (the contact sheet's groups).
   On the homepage they stay as headings for screen readers only: the photographs speak for themselves. */
.spread > .section-id {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.section-id {
  font: italic 400 clamp(17px, 1.35vw, 21px)/1.2 var(--serif);
  color: var(--fg-muted);
  transition: color 900ms var(--ease-out);
}

/* Photographs: every figure keeps its photo's aspect ratio unless a crop is set below. */
figure picture { background: var(--ph, var(--placeholder)); overflow: hidden; }
figure img { object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }

/* The link around each homepage photograph opens the viewer (held.js) or, without JS, the JPEG. */
.zoom {
  display: block;
  cursor: zoom-in;
}
.zoom:focus-visible { outline-offset: 4px; }
.zoom img { transition: filter 600ms var(--ease-out); }
@media (hover: hover) {
  .zoom:hover img { filter: brightness(1.04) contrast(1.02); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap; /* only wraps when a reader enlarges text spacing; one row otherwise */
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  background: var(--ground);
  color: var(--fg);
  transition: translate 500ms var(--ease-out), box-shadow 300ms linear, background-color 900ms var(--ease-out), color 900ms var(--ease-out);
}
/* held.js: tucked away while scrolling down the photographs, back as soon as the reader scrolls up */
html.header-tucked .site-header:not(:focus-within) { translate: 0 -100%; }
html.header-lifted .site-header { box-shadow: 0 1px 0 var(--line); }
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  padding-block: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.brand strong {
  font: 400 21px/1 var(--serif);
  letter-spacing: -0.005em;
}
.brand small {
  font: 500 10px/1 var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 26px);
}
.nav-link,
.language a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font: 600 11px/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-link { padding-inline: 6px; }
.nav-link:hover,
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
/* The header's link to the contact sheet: the word on wider screens, a small grid of frames on phones. */
.sheet-icon {
  display: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.language {
  display: flex;
  align-items: center;
  font: 600 11px/1 var(--ui);
  color: var(--fg-muted);
}
.language a {
  min-width: 44px;
  padding-inline: 4px;
  letter-spacing: 0.09em;
  color: var(--fg-muted);
}
.language a:hover { color: var(--fg); }
.language a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.write {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--fg);
  font: 600 11px/1 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.1;
  transition: background-color 250ms linear, color 250ms linear;
  /* fits on one line at the designed spacing; wraps inside its box rather than pushing the
     header past the viewport when a reader enlarges text spacing (WCAG 1.4.12) */
  min-width: 0;
}
.write:hover { background: var(--fg); color: var(--ground); }
html.is-night :focus-visible { outline-color: var(--on-dark); }

/* ---------- Hero: the photograph alone, off-axis; a serif heading at its lower left ---------- */

.hero {
  display: grid;
  grid-template-columns: 28% 60% 1fr;
  grid-template-rows: auto 1fr auto;
  padding-top: clamp(24px, 2.4vw, 36px);
  padding-bottom: clamp(96px, 12vw, 200px);
}
.hero-photo {
  grid-column: 2;
  grid-row: 1 / -1;
  /* when the height cap below narrows it, the spare width goes to the left, so the photograph stays
     off-axis (12% right margin) instead of drifting to the centre */
  justify-self: end;
  /* 60vw, unless the viewport is too short for the photograph and the heading beside it;
     never wider than its 1448px source */
  width: max(66%, min(100%, (100vh - var(--header-h) - 120px) * 1.25));
  width: max(66%, min(100%, (100svh - var(--header-h) - 120px) * 1.25));
  max-width: 1448px;
  translate: 0 calc(var(--drift, 0px) * var(--motion-scale));
}
.hero-photo img { aspect-ratio: 1.25; }
/* Short laptop viewports: the full, uncropped 4:3 frame gives back width the height cap takes away.
   (Keep tools/build-pages.mjs HERO_SIZES in step with these widths and crops.) */
@media (min-width: 1100px) and (max-height: 820px) and (min-height: 520.02px) {
  .hero-photo img { aspect-ratio: 4 / 3; }
  .hero-photo {
    width: max(66%, min(100%, (100vh - var(--header-h) - 104px) * 1.333));
    width: max(66%, min(100%, (100svh - var(--header-h) - 104px) * 1.333));
  }
}
.hero-title {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  padding: 0 clamp(20px, 2.8vw, 48px) 0 var(--gutter);
  font: italic 400 clamp(19px, 1.45vw, 24px)/1.3 var(--serif);
  color: var(--muted);
}
.hero-name {
  display: block;
  margin-bottom: 0.32em;
  font-style: normal;
  font-size: clamp(32px, 2.8vw, 40px); /* the owner's quiet heading: never above 40px */
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-line {
  display: block;
  max-width: 15em;
  text-wrap: balance;
}

/* Opening, with motion (held.js adds .is-pinned): the stage stays in place while the reader scrolls
   through --pin, and held.js opens the photograph's frame from its place in the layout out to the edges
   of the screen (--open: 0 to 1). The heading and the cue fade as it opens. Without motion the stage is
   display: contents and the hero is the still composition above. */
.hero-stage { display: contents; }
html.motion-ok .hero.is-pinned {
  display: block;
  height: calc(100svh - var(--header-h) + var(--pin, 90svh));
  padding: 0;
}
html.motion-ok .hero.is-pinned .hero-stage {
  position: sticky;
  top: var(--header-h);
  display: grid;
  grid-template-columns: inherit;
  grid-template-rows: inherit;
  height: calc(100svh - var(--header-h));
  align-content: start;
  padding-top: clamp(18px, 2.4vw, 36px);
  padding-bottom: clamp(32px, 5vh, 64px);
}
/* The opening deal: colour cards dealt onto the frame, one after another, then lifted off the
   photograph (build-pages deal()). Never on arrival from the contact sheet. */
.hero-photo .zoom { position: relative; }
.deal { display: none; }
html.motion-ok:not(.vt-arrival) .deal {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  animation: deal-out 900ms var(--ease-wipe) 1050ms both;
}
.deal span {
  position: absolute;
  inset: 0;
  background: var(--c);
  animation: deal-in 560ms var(--ease-wipe) calc(80ms + var(--i) * 150ms) both;
}
@keyframes deal-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes deal-out { from { clip-path: inset(0); } to { clip-path: inset(0 0 100% 0); } }
html.motion-ok .hero.is-pinned .hero-photo { position: relative; z-index: 3; }
/* .is-measuring: held.js reads the frame's place in the layout with the photograph in the flow */
html.motion-ok .hero.is-pinned:not(.is-measuring) .hero-photo .zoom { position: absolute; }
html.motion-ok .hero.is-pinned:not(.is-measuring) .hero-photo picture,
html.motion-ok .hero.is-pinned:not(.is-measuring) .hero-photo img { height: 100%; }
html.motion-ok .hero.is-pinned:not(.is-measuring) .hero-photo img { aspect-ratio: auto; }
html.motion-ok .hero.is-pinned .hero-title {
  filter: opacity(max(0, 1 - var(--open, 0) * 2.6));
  translate: 0 calc(var(--open, 0) * -48px);
}

/* ---------- Spreads: photographs on a 24-column grid, overlapping on purpose ---------- */

.spread {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: start;
  padding-inline: var(--gutter);
}
.spread > * { grid-row: 1; }
.spread figure { position: relative; }
/* a faster layer is drawn above the photograph it slides across */
.spread [data-drift] { z-index: 2; }
.spread [data-drift^="-"] { z-index: 0; }
/* --meet (held.js, data-meet): sideways, the photographs coming together; --drift: up and down */
.spread [data-drift],
.spread [data-meet] {
  translate: calc(var(--meet, 0px) * var(--motion-scale)) calc(var(--drift, 0px) * var(--motion-scale));
}
/* --lean (held.js): the photographs lean with the speed of the scroll and settle when it stops */
html.motion-ok .spread figure picture { transform: skewY(var(--lean, 0deg)); }
/* Full bleed: out of the page gutter to the edges of the screen */
.bleed,
.play-running,
.release-photo { margin-inline: calc(-1 * var(--gutter)); }

/* Together: a wide frame, a portrait sliding up across its lower right corner */
.pair { padding-bottom: clamp(120px, 14vw, 240px); }
.pair .section-id { grid-column: 2 / 10; }
.pair-a { grid-column: 1 / 17; margin-top: 3.2em; }
.pair-b { grid-column: 16 / 24; margin-top: 25vw; }

/* Gestures: a tall portrait, a small frame climbing across its left edge */
.details { padding-bottom: clamp(24px, 4vw, 64px); }
.details .section-id { grid-column: 3 / 12; }
.detail-large { grid-column: 11 / 23; }
.detail-small { grid-column: 3 / 12; margin-top: 36vw; }

/* ---------- Silence ---------- */

.silence {
  display: grid;
  place-items: center;
  min-height: clamp(460px, 88vh, 900px);
  padding: 64px 8%;
  text-align: center;
}
.silence p {
  max-width: 22em;
  font: italic 400 clamp(28px, 3.5vw, 56px)/1.14 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Play: the running dog across the whole screen, the black dog climbing across its lower left corner */
.play { padding-bottom: clamp(140px, 16vw, 260px); }
.play .section-id { grid-column: 3 / 10; }
.play-running { grid-column: 1 / -1; margin-top: 1.6em; }
.play-black { grid-column: 3 / 10; grid-row: 2; margin-top: -14vw; }

/* Studio: the portraits on black. With motion the whole page goes dark around them (html.is-night);
   without it, the section is a dark band of its own. */
.studio {
  padding-top: clamp(96px, 10vw, 180px);
  padding-bottom: clamp(120px, 12vw, 220px);
  background: var(--night);
  color: var(--on-dark);
  --fg-muted: var(--on-dark-muted);
}
html.motion-ok .studio { background: transparent; color: var(--fg); --fg-muted: inherit; }
.studio figure picture { background: #1c1a17; }
.studio .section-id { grid-column: 3 / 10; }
.studio-a { grid-column: 2 / 11; }
.studio-b { grid-column: 13 / 21; margin-top: 12vw; }
.studio-c { grid-column: 4 / 16; grid-row: 2; margin-top: -3vw; }
.studio-d { grid-column: 17 / 23; grid-row: 2; margin-top: 6vw; }

/* Release: the whole screen, still */
.release { padding-bottom: clamp(140px, 16vw, 260px); }
.release-photo { grid-column: 1 / -1; }
.release-photo img { height: 100vh; height: 100svh; min-height: 420px; }
/* The quiet photograph stays perfectly still: no hover brightening either. */
.release-photo img { transition: none; filter: none !important; }

/* Observation: a portrait on the left, the newborn lower on the right, running off the edge; the close
   swings back to the left */
.observed { grid-column: 2 / 11; }
.newborn { grid-column: 12 / 25; margin-top: 16vw; margin-right: calc(-1 * var(--gutter)); }
.climax {
  margin-top: 2vw;
  padding-bottom: clamp(120px, 14vw, 220px);
}
.climax .section-id { grid-column: 3 / 10; }
.climax-photo { grid-column: 3 / 14; margin-top: 2.6em; }
/* After the last photograph: the way to all of them (the header link is hidden on narrow phones). */
.sheet-cta { grid-column: 15 / 24; align-self: end; margin: 0; }

/* ---------- About: portrait beside short copy ---------- */

.about {
  align-items: end;
  padding-top: clamp(64px, 6vw, 96px);
  padding-bottom: clamp(96px, 10vw, 160px);
  border-top: 1px solid var(--line);
  margin-inline: var(--gutter);
  padding-inline: 0;
}
.portrait { grid-column: 4 / 10; max-width: 400px; }
.portrait img { aspect-ratio: 2 / 3; object-position: 50% 30%; }
.about-copy { grid-column: 12 / 22; padding-bottom: 0.4em; }
.about h2 {
  margin-bottom: 0.4em;
  font: 400 clamp(44px, 5vw, 84px)/1 var(--serif);
  letter-spacing: -0.025em;
}
.about-copy > p:not(.section-id) {
  font: italic 400 clamp(21px, 2vw, 32px)/1.25 var(--serif);
  color: var(--muted);
  text-wrap: pretty;
}
/* keeps a short sentence on one line, so a wrapping paragraph breaks between sentences */
.nobr { white-space: nowrap; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  min-height: 44px;
  margin-top: 14px;
  font: 600 12px/1 var(--ui);
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

/* ---------- Contact: the close, in the serif ---------- */

.contact {
  margin: 0 var(--gutter);
  padding: clamp(72px, 9vw, 150px) 0 clamp(72px, 8vw, 130px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact .section-id { margin-bottom: clamp(20px, 2.4vw, 36px); }
.contact-word {
  font: 400 clamp(64px, 11vw, 190px)/0.9 var(--serif);
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
/* data-rise: the words come up out of their own line, as if from behind a fold */
.rise { display: inline-block; }
html.motion-ok [data-rise] { overflow: clip; overflow-clip-margin: 0.22em; }
html.motion-ok [data-rise] .rise { transition: translate 1500ms var(--ease-out); }
html.motion-ok [data-rise]:not(.is-revealed) .rise { translate: 0 135%; }
/* The living print (held.js): a small photograph set into the closing words, turning through every
   photograph by way of its colour. */
.living {
  display: inline-block;
  position: relative;
  width: 1.18em;
  height: 0.74em;
  margin: 0 0.06em;
  overflow: hidden;
  vertical-align: baseline;
  background: var(--c, var(--placeholder));
  transition: background-color 420ms linear;
}
.living-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  transition: opacity 420ms var(--ease-out), scale 1600ms var(--ease-out);
}
.living.is-turning .living-img { opacity: 0; scale: 1.06; transition: opacity 420ms linear, scale 0ms; }
/* French "projet ?": the mark keeps a little air after the narrow no-break space */
.contact-word .punct { margin-left: 0.04em; }
.contact-intro {
  max-width: 30em;
  margin: clamp(22px, 2.4vw, 36px) auto clamp(30px, 3.4vw, 52px);
  font: italic 400 clamp(20px, 1.8vw, 28px)/1.3 var(--serif);
  color: var(--muted);
  text-wrap: pretty;
}
.email {
  display: inline-block;
  padding: 10px 0 8px;
  color: var(--ink);
  font: 400 clamp(22px, 3.2vw, 50px)/1.15 var(--serif);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 500ms var(--ease-out);
}
@media (hover: hover) {
  .email:hover { background-size: 0 1px; background-position: 100% 100%; }
}
.email .arrow { stroke-width: 1; }
.contact-alt { margin-top: clamp(22px, 2.4vw, 34px); }
.contact-alt a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 44px;
  color: var(--muted);
  font: 500 14px/1.2 var(--ui);
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.contact-alt a:hover { color: var(--ink); }

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  margin: 0 var(--gutter);
  padding: 12px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 500 11px/1.3 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  min-height: 44px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* ---------- Contact page ---------- */

.contact--page {
  margin-top: clamp(8px, 2vw, 28px);
  border-top: 0;
  padding-bottom: clamp(24px, 3vw, 48px);
}
.form-section {
  padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(72px, 8vw, 130px);
}
.form-wrap {
  max-width: 760px;
  margin-inline: auto;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 32px;
}
.field { display: grid; gap: 8px; align-content: start; }
.field--remember,
.field--message { grid-column: 1 / -1; }
.field label {
  font: 600 11px/1.3 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field--remember label {
  font: italic 400 clamp(26px, 2.6vw, 38px)/1.15 var(--serif);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 4px;
  text-wrap: pretty;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 23, 21, 0.55); /* >= 3:1 on the field and the page (WCAG 1.4.11) */
  border-radius: 0;
  background: var(--print);
  color: var(--ink);
  font: 400 19px/1.4 var(--serif);
  appearance: none;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.field--remember textarea { min-height: 150px; }
.contact-form input:hover,
.contact-form textarea:hover { border-color: var(--ink); }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
.contact-form [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}
.field-error {
  color: var(--error);
  font: 500 14px/1.35 var(--ui);
}
.field-error:empty { display: none; }
.contact-form button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 56px;
  margin-top: 6px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 12px/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.contact-form button:hover { background: #46413a; }
.contact-form button[aria-busy="true"],
.contact-form.htmx-request button,
.contact-form button.htmx-request {
  background: #46413a;
  cursor: progress;
  opacity: 0.8;
}
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.contact-status { margin-top: 24px; }
.contact-status:empty { display: none; }
/* Focused by contact.js only for errors that name no field; the ring shows where focus went. */
.contact-status:focus { outline: 2px solid var(--ink); outline-offset: 4px; }
.form-error {
  max-width: 36em;
  padding: 14px 18px;
  border-left: 3px solid var(--error);
  background: var(--print);
  color: var(--ink);
  font: 400 18px/1.4 var(--serif);
}
.contact-success {
  padding: 28px 0 8px;
  border-top: 1px solid var(--ink);
  font: italic 400 clamp(26px, 2.8vw, 40px)/1.2 var(--serif);
  text-wrap: pretty;
}
.contact-success:focus { outline: none; }
.contact-success:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }

.form-privacy {
  grid-column: 1 / -1;
  max-width: 40em;
  color: var(--muted);
  font: 400 15px/1.45 var(--serif);
}
.form-privacy a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Legal notice ---------- */

.legal {
  max-width: 40rem;
  padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(56px, 7vw, 110px);
  margin-left: clamp(0px, 9vw, 160px);
}
.legal h1 {
  margin-bottom: 0.6em;
  font: 400 clamp(40px, 4.6vw, 72px)/1.02 var(--serif);
  letter-spacing: -0.025em;
}
.legal section { margin-top: clamp(28px, 3vw, 40px); }
.legal h2 {
  margin: 0 0 10px;
  font: 600 11px/1.3 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal section p {
  font: 400 18px/1.5 var(--serif);
  text-wrap: pretty;
}
.legal section p + p { margin-top: 0.6em; }
.legal a { overflow-wrap: anywhere; text-underline-offset: 3px; }

/* ---------- Thank-you page (no-JS form, after a successful send) ---------- */

/* The page is short: main grows so the footer sits at the bottom of the viewport. */
body.page-thanks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.thanks-main { flex: 1 0 auto; }
.thanks {
  max-width: 40rem;
  padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(56px, 7vw, 110px);
  margin-left: clamp(0px, 9vw, 160px);
}
.thanks .section-id { margin-bottom: clamp(20px, 2.4vw, 32px); }
.thanks h1 {
  margin-bottom: 0.7em;
  font: 400 clamp(34px, 4.2vw, 60px)/1.08 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

/* ---------- Contact sheet: every photograph in strips, like prints on a light table ---------- */

.sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: clamp(32px, 5vw, 80px) var(--gutter) clamp(28px, 4vw, 56px);
}
.sheet-head h1 {
  font: 400 clamp(44px, 6vw, 104px)/1 var(--serif);
  letter-spacing: -0.03em;
}
.sheet-head .text-link { margin-top: 0; }
.sheet {
  display: grid;
  gap: clamp(36px, 4.4vw, 72px);
  padding: 0 var(--gutter) clamp(80px, 9vw, 150px);
}
/* a label column and its strip of frames */
.sheet-group {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 13fr);
  gap: 12px 24px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
/* One row per group, like a strip of negatives: the frames share one height and the strip meets both
   edges of its column, so a group of six reads as a fine band and a group of three as large prints.
   A short group stops at --hmax and stays to the left. Phones wrap instead (below). */
.strip {
  --hmax: clamp(220px, 25vw, 420px);
  display: flex;
  gap: clamp(8px, 0.8vw, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.strip li {
  flex: var(--r) 1 0;
  min-width: 0;
  max-width: calc(var(--hmax) * var(--r));
}
.strip picture { background: var(--ph, var(--placeholder)); }
.strip img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--r);
  object-fit: cover;
  transition: opacity 400ms var(--ease-out), filter 600ms var(--ease-out);
}
/* hovering one frame dims the others, as a loupe would leave them */
@media (hover: hover) {
  .sheet:has(.zoom:hover) .zoom:not(:hover) img { opacity: 0.42; }
}
/* Without a view transition from the homepage, the frames are laid down one after another. */
html.motion-ok:not(.vt-arrival) .strip li { animation: lay 900ms var(--ease-out) both; animation-delay: calc(120ms + var(--i) * 45ms); }
@keyframes lay { from { opacity: 0; translate: 0 calc(18px * var(--motion-scale)); } }

/* The photographs that travel between the homepage and the sheet */
::view-transition-group(*) { animation-duration: 820ms; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 420ms; }
/* arriving from the other page, the photographs are already in place: no wipe */
html.vt-arrival [data-reveal] picture { clip-path: inset(0 0 0 0) !important; transition: none; }
html.vt-arrival [data-reveal] img { scale: none !important; }

/* ---------- Photo viewer (held.js; a <dialog> cloned from #viewer-template) ---------- */

.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--night);
  color: var(--on-dark);
  overflow: hidden;
  overscroll-behavior: contain;
}
.viewer::backdrop { background: var(--night); }
.viewer :focus-visible { outline-color: var(--on-dark); }
.viewer-stage {
  position: absolute;
  inset: clamp(56px, 7vh, 80px) clamp(16px, 7vw, 120px) clamp(72px, 10vh, 104px);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}
.viewer-stage picture {
  display: contents;
}
.viewer-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.viewer button {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark);
  cursor: pointer;
}
.viewer-close {
  top: clamp(8px, 1.6vh, 18px);
  right: clamp(8px, 2vw, 32px);
}
.viewer-prev,
.viewer-next {
  top: 50%;
  width: clamp(44px, 6vw, 96px);
  height: 30vh;
  translate: 0 -50%;
}
.viewer-prev { left: 0; }
.viewer-next { right: 0; }
.viewer svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: 0.7;
  transition: opacity 200ms linear;
}
.viewer button:hover svg { opacity: 1; }
html.motion-ok .viewer[open] { animation: viewer-in 450ms var(--ease-out); }
html.motion-ok .viewer-stage img.is-entering { animation: viewer-img 600ms var(--ease-out); }
@keyframes viewer-in { from { opacity: 0; } }
@keyframes viewer-img { from { opacity: 0; scale: 0.985; } }
html.viewer-open { overflow: hidden; }


/* View transitions: pages cross-fade into each other, and a photograph travels from the page into the
   viewer and back (held.js names it "photo" for the length of the transition). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-group(photo) {
  animation-duration: 720ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(photo),
::view-transition-new(photo) {
  height: 100%;
  object-fit: cover;
  animation-duration: 720ms;
}

/* ---------- Motion hooks (src/js/held.js) ---------- */

/* Opening: the heading rises in, the photograph is uncovered from the bottom edge. */
html.motion-ok .hero-title > span {
  animation: rise 1100ms var(--ease-out) both;
}
html.motion-ok .hero-name { animation-delay: 700ms; }
html.motion-ok .hero-line { animation-delay: 850ms; }
@keyframes rise {
  from { opacity: 0; translate: 0 calc(14px * var(--motion-scale)); }
}

/* [data-reveal]: the photograph is uncovered upward, the image easing back from a slight zoom. */
html.motion-ok [data-reveal] picture {
  clip-path: inset(0 0 0 0); /* not none: none does not interpolate with inset() */
  transition: clip-path 1400ms var(--ease-wipe);
}
html.motion-ok [data-reveal] img {
  transition: scale 1800ms var(--ease-out), filter 600ms var(--ease-out);
}
html.motion-ok [data-reveal]:not(.is-revealed) picture { clip-path: inset(100% 0 0 0); }
html.motion-ok [data-reveal]:not(.is-revealed) img { scale: calc(1 + 0.12 * var(--motion-scale)); }
html.motion-ok .hero [data-reveal] picture { transition-duration: 1600ms; }

/* ---------- Tablet: 700–1099px ---------- */

@media (max-width: 1099.98px) {
  :root { --motion-scale: 0.7; }

  /* landscape tablets keep the heading beside the photograph, with a little more room for it */
  .hero { grid-template-columns: 31% 58% 1fr; }

  .pair .section-id { grid-column: 1 / 10; }
  .pair-a { grid-column: 1 / 18; }
  .pair-b { grid-column: 15 / 24; margin-top: 30vw; }

  .details .section-id { grid-column: 1 / 12; }
  .detail-large { grid-column: 11 / 24; }
  .detail-small { grid-column: 1 / 12; margin-top: 40vw; }

  .play .section-id { grid-column: 1 / 10; }
  .play-black { grid-column: 2 / 11; margin-top: -12vw; }

  .studio .section-id { grid-column: 1 / 10; }
  .studio-a { grid-column: 1 / 11; }
  .studio-b { grid-column: 13 / 23; margin-top: 14vw; }
  .studio-c { grid-column: 2 / 16; margin-top: -6vw; }
  .studio-d { grid-column: 17 / 24; margin-top: 10vw; }

  .observed { grid-column: 1 / 11; }
  .newborn { grid-column: 11 / 25; margin-top: 18vw; }
  .climax { margin-top: 4vw; }
  .climax .section-id { grid-column: 2 / 10; }
  .climax-photo { grid-column: 2 / 15; }
  .sheet-cta { grid-column: 16 / 24; }

  .sheet-group { grid-template-columns: 1fr; }

  .portrait { grid-column: 2 / 10; }
  .about-copy { grid-column: 11 / 25; }
}

/* ---------- Hero, stacked: portrait tablets and anything narrower than 900px ----------
   Landscape tablets from 900px keep the desktop composition (heading beside the photograph). */

@media (max-width: 899.98px), (max-width: 1099.98px) and (orientation: portrait) {
  .hero {
    grid-template-columns: 8% 78% 1fr;
    grid-template-rows: auto;
  }
  .hero-photo { grid-column: 2; grid-row: 2; width: auto; }
  .hero-photo img { aspect-ratio: 1.2; }
  .hero-title {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    padding: clamp(24px, 3.6vw, 36px) 0 0;
    font-size: clamp(19px, 2.6vw, 23px);
  }
  .hero-name { font-size: clamp(32px, 5vw, 40px); }
}

/* ---------- Mobile: < 700px ---------- */

@media (max-width: 699.98px) {
  :root {
    --header-h: 60px;
    --motion-scale: 0.45;
    --gutter: 4vw;
  }

  .site-header { padding: 0 max(12px, 3.5vw); gap: 8px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 8px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 8.5px; }
  .site-nav { gap: 4px; }
  .nav-link:not(.nav-link--sheet) { display: none; }
  .nav-link--sheet { min-width: 44px; padding-inline: 0; }
  .nav-link--sheet .nav-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .sheet-icon { display: block; }
  .language a { min-height: 44px; font-size: 10.5px; }
  .write { padding: 0 12px; font-size: 10px; letter-spacing: 0.08em; }

  .section-id { font-size: 17px; }

  /* 7% left, 3% right: the photograph's right edge meets the header's, its left edge the heading's */
  .hero {
    grid-template-columns: 7% 90% 1fr;
    padding-top: 18px;
    padding-bottom: 96px;
  }
  .hero-photo img { aspect-ratio: 1.05; }
  /* the narrower measure leaves the cue its own corner on the heading's last line */
  .hero-title {
    grid-column: 1 / -1;
    padding: 22px 26% 0 7%;
    font-size: clamp(17px, 5vw, 20px);
  }
  .hero-name { font-size: clamp(30px, 9vw, 36px); }

  .pair { padding-bottom: 120px; }
  .pair .section-id { grid-column: 1 / 14; }
  .pair-a { grid-column: 1 / 23; margin-top: 2.4em; }
  .pair-b { grid-column: 11 / 25; margin-top: 64vw; }

  .details .section-id { grid-column: 1 / 12; }
  .detail-large { grid-column: 7 / 25; margin-top: 2.4em; }
  .detail-small { grid-column: 1 / 15; margin-top: 82vw; }

  .silence { min-height: clamp(400px, 70vh, 600px); padding-inline: 7%; }
  .silence p { font-size: clamp(24px, 7.2vw, 32px); } /* wraps naturally, two lines down to 320px */

  .play { padding-bottom: 120px; }
  .play .section-id { grid-column: 1 / 14; }
  .play-running { margin-top: 2.4em; }
  .play-black { grid-column: 2 / 16; margin-top: -10vw; }

  .studio { padding-top: 96px; padding-bottom: 120px; }
  .studio > * { grid-row: auto; }
  .studio .section-id { grid-column: 1 / 14; }
  .studio-a { grid-column: 1 / 17; }
  .studio-b { grid-column: 11 / 25; margin-top: -10vw; }
  .studio-c { grid-column: 1 / 25; margin-top: 10vw; }
  .studio-d { grid-column: 3 / 15; margin-top: 10vw; }

  .release { padding-bottom: 120px; }
  .release-photo img { height: auto; min-height: 0; aspect-ratio: 4 / 5; }

  .observed { grid-column: 1 / 16; }
  .newborn { grid-column: 6 / 25; grid-row: 2; margin-top: 10vw; }
  .climax { margin-top: 12vw; padding-bottom: 110px; }
  .climax .section-id { grid-column: 1 / 10; }
  .climax-photo { grid-column: 1 / 21; margin-top: 2.4em; }
  .sheet-cta { grid-column: 1 / -1; grid-row: 2; margin-top: 28px; }

  .about { padding-top: 56px; padding-bottom: 88px; }
  .about > * { grid-row: auto; }
  .portrait { grid-column: 1 / 13; margin-bottom: 36px; }
  .about-copy { grid-column: 1 / -1; }
  .about h2 { font-size: clamp(40px, 12vw, 52px); }
  .about-copy > p:not(.section-id) { font-size: clamp(20px, 5.8vw, 24px); }

  .contact { padding: 72px 0 64px; }
  .contact-word { font-size: clamp(56px, 19vw, 96px); }
  .contact-intro { font-size: clamp(19px, 5.4vw, 22px); }
  .email { font-size: clamp(18px, 5.8vw, 28px); line-height: 1.45; }

  .site-footer { display: block; padding: 18px 0 28px; font-size: 10px; }
  .site-footer p { margin: 8px 0 2px; }

  .contact--page { margin-top: 0; }

  .sheet-group { gap: 10px; }
  .strip { --h: 29vw; gap: 6px; flex-wrap: wrap; }
  .strip li { flex: var(--r) 1 calc(var(--h) * var(--r)); max-width: calc(var(--h) * var(--r) * 1.7); }
  .contact-form { grid-template-columns: 1fr; gap: 26px; }
  .contact-form button { width: 100%; justify-content: center; }

  .viewer-stage { inset: 64px 0 96px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 8px; height: 56px; translate: none; }
  .viewer-prev { left: auto; right: 64px; }
  .viewer-next { right: 8px; }
}

/* ---------- Circled photographs (held.js): a red grease-pencil loop, as on a contact sheet ---------- */

.mark, .picks-tray { display: none; }
html.js .mark { display: grid; }
html.js .picks-tray:not([hidden]) { display: inline-flex; }
.ring { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.mark[aria-pressed="true"] .ring { stroke: var(--grease); stroke-width: 2.4; }

.loop {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--grease);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  rotate: var(--tilt, 0deg);
  opacity: 0.94;
}
html.motion-ok .loop.is-drawing path,
html.motion-ok .mark.is-drawing[aria-pressed="true"] .ring path {
  stroke-dasharray: 1 1;
  animation: grease 640ms cubic-bezier(0.55, 0.05, 0.3, 1) both;
}
.mark.is-drawing .ring path { stroke-dasharray: 1 1; }
@keyframes grease { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* the sheet: a ring in the corner of each frame, shown on hover or focus, always on touch screens */
.strip li { position: relative; }
.frame-mark {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 3;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 200ms linear;
}
.frame-mark .ring { filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.55)); }
.frame-mark:focus-visible,
.frame-mark[aria-pressed="true"] { opacity: 1; }
@media (hover: hover) {
  .strip li:hover .frame-mark { opacity: 1; }
}
@media (hover: none) {
  .frame-mark { opacity: 0.9; }
}

/* in the viewer, beside the close button (bottom left on phones) */
.viewer .viewer-mark { top: clamp(8px, 1.6vh, 18px); right: calc(clamp(8px, 2vw, 32px) + 52px); }
.viewer .viewer-mark .ring { width: 26px; height: 26px; stroke-width: 1.2; }
.viewer .viewer-mark[aria-pressed="true"] .ring { stroke-width: 2.2; opacity: 1; }

/* the tray: how many are circled, and the way to the form */
.picks-tray {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  translate: -50% 0;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 11px/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 34px rgba(17, 16, 14, 0.22);
}
.picks-tray .ring { stroke: var(--grease); stroke-width: 2.2; }
.picks-count { font: italic 400 20px/1 var(--serif); letter-spacing: 0; text-transform: none; }
.picks-write { display: inline-flex; align-items: center; gap: 2px; padding-left: 10px; border-left: 1px solid rgba(243, 240, 233, 0.3); }
.picks-tray:hover .picks-write { text-decoration: underline; text-underline-offset: 4px; }
html.is-night .picks-tray { background: var(--paper); color: var(--ink); }
html.is-night .picks-write { border-left-color: var(--line); }
html.motion-ok .picks-tray:not([hidden]) { animation: tray-in 600ms var(--ease-out); }
@keyframes tray-in { from { opacity: 0; translate: -50% 16px; } }
html.viewer-open .picks-tray { visibility: hidden; }

/* the form: the circled photographs, small, each with its loop */
.picks { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.picks legend {
  padding: 0;
  font: 600 11px/1.3 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.picks-list { display: flex; flex-wrap: wrap; gap: 26px 30px; margin: 22px 0 0; padding: 0 0 0 10px; list-style: none; }
.picks-list li { position: relative; }
.picks-list img { display: block; width: auto; height: 92px; }
.picks-list .loop { stroke-width: 2.4px; }
.picks-remove {
  position: absolute;
  top: -22px;
  right: -22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.picks-remove svg {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(23, 23, 21, 0.55);
  border-radius: 50%;
  background: var(--print);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
}
.picks-remove:hover svg { background: var(--ink); stroke: var(--paper); }
.contact-form .picks-remove,
.contact-form .picks-remove:hover { grid-column: auto; min-height: 44px; margin: 0; padding: 0; border-radius: 0; background: none; }

@media (max-width: 699.98px) {
  .viewer .viewer-mark { top: auto; right: auto; bottom: 8px; left: 8px; }
  .picks-list img { height: 76px; }
}

/* Brand, grid icon, EN / FR and “Write” do not fit on one line below 420px: the contact sheet
   is then reached from the link after the last homepage photograph. */
@media (max-width: 419.98px) {
  .nav-link--sheet { display: none; }
}

@media (max-width: 359.98px) {
  .site-header { gap: 6px; }
  .brand strong { font-size: 14.5px; }
  .site-nav { gap: 2px; }
  .brand small { letter-spacing: 0.06em; }
  .write { padding: 0 8px; letter-spacing: 0.02em; }
}

/* ---------- Hero, landscape phones (and any very short landscape window) ----------
   Stacked, the photograph would be taller than the screen and the heading far below the fold:
   photograph and heading sit side by side instead, the cue top right on the header's gutter. */

@media (orientation: landscape) and (max-height: 520px) {
  .hero {
    grid-template-columns: 8% auto 1fr;
    grid-template-rows: auto 1fr auto;
  }
  .hero-photo {
    grid-column: 2;
    grid-row: 2 / 4;
    width: calc((100vh - var(--header-h) - 72px) * 1.2);
    width: calc((100svh - var(--header-h) - 72px) * 1.2);
  }
  .hero-photo img { aspect-ratio: 1.2; }
  .hero-title {
    grid-column: 3;
    grid-row: 3;
    align-self: end;
    padding: 0 var(--gutter) 0 24px;
  }
}

/* ---------- Reduced motion, print ---------- */

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

@media print {
  .site-header { position: static; translate: none !important; }
  .skip-link { display: none; }
  [data-drift], [data-meet] { translate: none !important; }
  [data-reveal] picture { clip-path: none !important; }
  [data-reveal] img { scale: none !important; }
}
