/* Paris Forever 2027 — draft
   Palette: white paper, true black ink, two grays. Translucent "glass" keeps
   text readable while photographs scroll underneath. */

:root {
  font-synthesis-weight: none;
  --paper: #ffffff;
  --ink: #000000;
  --graphite: #3c3c3c;      /* dark gray: secondary headings, buttons on hover */
  --stone: #ededed;         /* light gray: fields, placeholders, quiet surfaces */
  --muted: #6b6b6b;         /* secondary text, 5.3:1 on white */
  --hairline: rgba(0, 0, 0, 0.09);

  /* Glass: 30% more transparent than the first version (20 Nov 2026): 0.66, 0.86, 0.24 x 0.7. */
  --glass-light: rgba(255, 255, 255, 0.462);
  --glass-light-strong: rgba(255, 255, 255, 0.602);
  --glass-dark: rgba(0, 0, 0, 0.168);   /* title panels on photos */
  --glass-blur: blur(22px) saturate(170%);

  --sans: "Helvetica Neue", Helvetica, "Arial Nova", Arial, sans-serif;

  /* type scale (perfect fourth from 17px) */
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.4166rem;
  --step-2: 1.889rem;
  --step-3: clamp(2rem, 4.6vw, 3.35rem);
  --step-4: clamp(2.8rem, 8.4vw, 7.5rem);

  --gutter: clamp(16px, 3.2vw, 48px);
  --fade-zone: 90px;   /* how far below the menu bar text starts to fade (read by site.js) */
  --header-h: 68px;
  --tagline-room: 10px;   /* the frosted bar grows by this to hold the tagline under the logo */
  --column: 1280px;
  --ease: cubic-bezier(0.22, 0.7, 0.16, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.5;
  font-kerning: normal;
  text-transform: lowercase;   /* the whole site is lowercase, like the logo */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-photo :focus-visible, .lightbox :focus-visible { outline-color: currentColor; }

input, textarea { text-transform: none; }
button, select { text-transform: lowercase; }   /* browsers don't pass it on to these by default */
::placeholder { text-transform: lowercase; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Glass ---------- */

.glass {
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.385);
  box-shadow: 0 0 0 1px var(--hairline), 0 18px 40px -28px rgba(0, 0, 0, 0.35);
}

.glass-dark {
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.126);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-light-strong); }
  .glass-dark { background: rgba(0, 0, 0, 0.364); }
}

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

/* The frosted bar is its own layer under the header. It fades away once the page scrolls
   (body.scrolled, set in site.js), leaving only the header's text over the page. */
.header-glass {
  position: fixed; inset: 0 0 auto 0; z-index: 39;
  height: calc(var(--header-h) + var(--tagline-room));
  border-width: 0 0 1px 0; border-bottom-color: var(--hairline);
  box-shadow: none;
  transition: opacity 0.7s var(--ramp);
}
body.scrolled .header-glass { opacity: 0; }
body.menu-open .header-glass { opacity: 1; }

/* The header's text and buttons are white with a "difference" blend, so they invert
   whatever is underneath: black over white, light over dark photos (as on bottega53.com).
   Over the frosted bar at the top of the page they read as black. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 calc(var(--gutter) + 10px);   /* logo and buttons sit 10 px in from the page edges */
  color: #fff;
  mix-blend-mode: difference;
}

/* The logo's letters (top of the f to the bottom of the p) span 0.898 of the font size,
   so this makes them exactly as tall as the 44 px buttons. It shrinks only where it would
   crowd the menu (narrow desktops, small phones). */
.wordmark {
  justify-self: start;
  font-size: min(calc(44px / 0.898), calc((50vw - 280px) / 4.93), calc((100vw - 2 * var(--gutter) - 124px) / 4.93));
  letter-spacing: -0.035em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transform: translateY(-0.1em);   /* centre the letters, not the line box, on the bar */
}
@media (max-width: 860px) {
  .wordmark { font-size: min(calc(44px / 0.898), calc((100vw - 2 * var(--gutter) - 124px) / 4.93)); }
}
.wordmark .light { font-weight: 300; }
/* Tagline under the logo: shown whenever the frosted menu bar is (top of the page, phone
   menu open), fading out with the bar as the page scrolls. Sized from the logo (about 11-12
   px), it sits just under the logo's lowest letter, inside the bar's extra --tagline-room,
   and inverts with the rest of the header. */
.wordmark { position: relative; }
.wordmark .tagline {
  position: absolute; left: 0.27em; top: 100%; margin-top: 0.47em;   /* left: lines up with the "p" of "paris" */
  font-size: 0.235em; font-weight: 400; letter-spacing: 0.02em; line-height: 1;
  white-space: nowrap;
  transition: opacity 0.7s var(--ramp);
}
body.scrolled:not(.menu-open) .wordmark .tagline { opacity: 0; }
.wordmark .bold { font-weight: 700; }

.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
  text-decoration: none; font-size: 0.9375rem; letter-spacing: 0.005em;
  padding: 6px 0; color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.2s;
}
.nav a:hover { color: #fff; background-size: 100% 1px; }
.nav a[aria-current="page"] { color: #fff; background-size: 100% 1px; }
/* Hover or keyboard focus: the other items step back, so the one in focus stands out. */
.nav a { display: inline-block; transition: background-size 0.4s var(--ease), color 0.2s, opacity 0.3s var(--ramp), transform 0.12s var(--ramp); }
.nav:hover a:not(:hover), .nav:has(a:focus-visible) a:not(:focus-visible) { opacity: 0.4; }
/* Press: a quick dip. */
.nav a:active { transform: scale(0.94); opacity: 0.6; }

.header-actions { justify-self: end; display: flex; gap: 10px; align-items: center; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 0.9375rem; text-decoration: none; cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.button:hover { background: var(--graphite); border-color: var(--graphite); }
.button { transition: background-color 0.25s, color 0.25s, transform 0.12s var(--ramp); }
.button:active { transform: scale(0.96); }   /* press feedback */
.button.quiet { background: transparent; color: var(--ink); border-color: rgba(0,0,0,0.22); }
.button.quiet:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button.on-glass-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button.on-glass-dark:hover { background: var(--stone); border-color: var(--stone); }

.menu-toggle { display: none; }
/* Header buttons: white outlines, so they invert with the rest of the header. */
.site-header .button, .site-header .button.quiet {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.9);
}
@media (hover: hover) {
  .site-header .button:hover, .site-header .button.quiet:hover { background: #fff; color: #000; border-color: #fff; }
}
/* Phones keep :hover after a tap, so undo the base button hover there. */
@media (hover: none) {
  .site-header .button:hover, .site-header .button.quiet:hover { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.9); }
}

/* Phone menu. Opening: the frosted sheet drops in and grows to full size, then its items
   rise in one after another. Closing runs back quickly, all together. */
.menu-sheet {
  position: fixed; z-index: 39; inset: calc(var(--header-h) + 8px) 8px auto 8px;
  border-radius: 22px; padding: 12px 24px 24px;
  visibility: hidden; opacity: 0; pointer-events: none;
  transform: translateY(-14px) scale(0.97); transform-origin: 50% 0;
  transition: opacity 0.3s var(--ramp), transform 0.38s var(--ramp), visibility 0s linear 0.38s;
}
.menu-sheet.open {
  visibility: visible; opacity: 1; pointer-events: auto; transform: none;
  transition: opacity 0.42s var(--ramp), transform 0.55s var(--ramp), visibility 0s;
}
.menu-sheet a.big {
  display: block; padding: 10px 0;
  font-weight: 500; font-size: 2.25rem; line-height: 1.15; letter-spacing: -0.02em;
  text-decoration: none;
}
.menu-sheet .button { margin-top: 18px; width: 100%; }
.menu-sheet a.big, .menu-sheet > .button {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.25s var(--ramp), transform 0.3s var(--ramp);
}
.menu-sheet.open a.big, .menu-sheet.open > .button { opacity: 1; transform: none; }
/* Stagger only while opening (site.js adds .settled once it's done, so hover reacts at once). */
.menu-sheet.open:not(.settled) a.big, .menu-sheet.open:not(.settled) > .button {
  transition: opacity 0.45s var(--ramp) var(--d), transform 0.5s var(--ramp) var(--d);
}
.menu-sheet a.big:nth-child(1) { --d: 0.08s; }
.menu-sheet a.big:nth-child(2) { --d: 0.13s; }
.menu-sheet a.big:nth-child(3) { --d: 0.18s; }
.menu-sheet a.big:nth-child(4) { --d: 0.23s; }
.menu-sheet a.big:nth-child(5) { --d: 0.28s; }
.menu-sheet > .button { --d: 0.35s; }

/* Hover or keyboard focus: the item in focus stays full strength and steps right a little;
   the others step back. */
.menu-sheet.settled nav:hover a.big:not(:hover),
.menu-sheet.settled nav:has(a:focus-visible) a.big:not(:focus-visible) { opacity: 0.35; }
.menu-sheet.settled a.big:hover, .menu-sheet.settled a.big:focus-visible { transform: translateX(8px); }

/* Press: a quick dip in size and strength. site.js holds the page for a moment so it shows. */
.menu-sheet.open a.big:active, .menu-sheet.open a.big.pressed {
  transform: translateX(8px) scale(0.96); opacity: 0.55;
  transition: transform 0.12s var(--ramp), opacity 0.12s var(--ramp);
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .nav, .site-header .header-actions .button:not(.menu-toggle) { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Home: intro + settling column ---------- */

/* Motion curve: a speed ramp in, a fast middle, and a soft landing. No overshoot. */
:root {
  --ramp: cubic-bezier(0.65, 0, 0.35, 1);
}

.intro {
  position: relative;
  height: 165vh;           /* scroll runway for the settle animation */
}
.intro-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center;
  pointer-events: none;
}

/* The collage stays behind the whole homepage and repeats as you scroll (parallax in site.js).
   z-index -1 keeps it under every section, including ones without a background. */
.thumbs {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  transition: opacity 1.6s var(--ramp);
}
.thumbs-track { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.revealed .thumbs { opacity: 0.1; }
.thumbs img {
  position: absolute; object-fit: cover; background: var(--stone);
  border-radius: 2px;
  will-change: transform, opacity;
}

.intro-line {
  position: relative; z-index: 6;
  max-width: 19ch; margin: 0; padding: 0 var(--gutter);
  text-align: center;
  font-weight: 500;
  font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.025em;
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.1s var(--ramp) 0.35s, transform 1.3s var(--ramp) 0.35s;
}
.revealed .intro-line { opacity: var(--line-o, 1); transform: none; }
.intro-sub {
  display: block; margin-top: 18px;
  font-family: var(--sans); font-size: var(--step-0); line-height: 1.45;
  letter-spacing: 0; color: var(--graphite);
}
/* Scroll indicator, on every page: a small frosted pill fixed at the bottom centre, above
   the photos. It appears once the page has built (body.cue-ready, from site.js), pulses
   twice to draw the eye, then fades as the visitor scrolls (--cue-o, from site.js). */
.scroll-cue {
  position: fixed; left: 50%; bottom: clamp(14px, 2.4vh, 24px); z-index: 35;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 16px 12px; border-radius: 999px;
  background: var(--glass-light-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 0 1px var(--hairline), 0 10px 30px -12px rgba(0, 0, 0, 0.35);
  color: var(--ink); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em;
  pointer-events: none;
  transform-origin: 50% 100%;
  opacity: 0; transform: translate(-50%, 10px) scale(0.7);   /* scale(0.7): 30% smaller than drawn */
  transition: opacity 0.8s var(--ramp), transform 0.8s var(--ramp);
}
/* A down arrow that drifts gently in the direction to scroll. */
.scroll-cue svg { display: block; animation: cue-arrow 1.8s var(--ramp) infinite; }
@keyframes cue-arrow {
  0%, 100% { transform: translateY(-2px); opacity: 0.55; }
  50% { transform: translateY(4px); opacity: 1; }
}
body.cue-ready .scroll-cue {
  opacity: var(--cue-o, 1); transform: translate(-50%, 0) scale(0.7);
  animation: cue-pulse 1.4s var(--ramp) 0.5s 2;
}
body.cue-live .scroll-cue { transition: opacity 0.15s linear, transform 0.8s var(--ramp); }
@keyframes cue-pulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--hairline), 0 10px 30px -12px rgba(0, 0, 0, 0.35); }
  45% { box-shadow: 0 0 0 1px var(--hairline), 0 0 0 9px rgba(255, 255, 255, 0.55), 0 10px 30px -12px rgba(0, 0, 0, 0.35); }
}
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.chapters {
  position: relative; z-index: 5;
  width: min(100% - 2 * var(--gutter), var(--column));
  margin: 0 auto;
  display: grid; gap: clamp(28px, 6vw, 96px);
  padding-bottom: clamp(48px, 8vw, 120px);
}
/* The settle animation ends after (intro height - 35vh) of scrolling; at that point the
   first chapter should sit just under the header. */
.home .chapters { margin-top: calc(-35vh + var(--header-h) + 24px); }

.chapter { position: relative; display: block; text-decoration: none; color: var(--paper); }
/* The tilted collage photos can reach past the screen edge on narrow windows: clip them
   rather than let the page scroll sideways. */
body.home { overflow-x: clip; }
/* Stacking for the opening collage: elopements on top, so nothing overlaps it. */
.home .chapter:nth-child(1) { z-index: 4; }
.home .chapter:nth-child(2) { z-index: 3; }
.home .chapter:nth-child(3) { z-index: 2; }
.home .chapter:nth-child(4) { z-index: 1; }
/* Uncropped vertical photograph, as wide as the horizontal ones. */
.chapter.portrait { width: 100%; }

.chapter-frame { transform-origin: 0 0; will-change: transform; }
.chapter-media {
  position: relative; overflow: hidden;
  aspect-ratio: 32 / 25;           /* matches the cover photographs */
  background: var(--stone);
  transform-origin: 50% 60%;
}
.chapter.portrait .chapter-media { aspect-ratio: var(--aspect); }
.home:not(.revealed) .chapter-media { opacity: 0; }
/* The collage photos look like bordered prints lying on top of each other: a white card
   behind each photo, reaching --mat (3% of the photo's width) past its edges, with a soft
   two-layer shadow each print casts onto the ones beneath it (elopements on top, families
   at the bottom). Border and shadow are drawn once; only the card's opacity changes, from 1
   while the photos are gathered to 0 once scrolling has settled them into the column (driven
   by the scroll itself, see site.js), so scrolling never repaints them. */
.chapter-print {
  position: absolute; inset: calc(-1 * var(--mat, 0px));
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10), 0 16px 34px -10px rgba(0, 0, 0, 0.24);
  opacity: 0; pointer-events: none; will-change: opacity;
}
.home:not(.revealed) .chapter-print { visibility: hidden; }
/* Homepage, after the collage: the second to fourth photos (and their captions) wait,
   hidden, at their place in the column, then fade and rise in as they come into view, like
   the gallery photos (classes from site.js). */
.home .chapter.await .chapter-media, .home .chapter.await .chapter-caption {
  opacity: 0; transform: translateY(32px);
}
.home .chapter.await.in .chapter-media, .home .chapter.await.in .chapter-caption {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ramp), transform 1.2s var(--ramp);
}
.home .chapter.await.in .chapter-caption { transition-delay: 0.15s; }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.chapter:hover .chapter-media img { transform: scale(1.025); }

/* Collage hover title. While the four photos sit together in the opening collage
   (body.collage, set in site.js), hovering one with a mouse fades its gallery name into the
   middle of the photo, on the same dark frosted panel as the gallery pages' titles. The
   panel lives inside the photo's frame, so it takes the photo's exact tilt; --frame-scale
   (site.js) is undone so the title is the same size on every photo. */
.chapter-frame { position: relative; }
.chapter-hover {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  /* 70% of the first version (20 Nov 2026): panel, padding and text all 30% smaller. */
  padding: clamp(8.4px, 0.98vw, 14px) clamp(12.6px, 1.4vw, 19.6px); border-radius: 14px;
  white-space: nowrap; pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(calc(0.96 / var(--frame-scale, 1)));
  transition: opacity 0.6s var(--ramp), transform 0.7s var(--ramp);
}
.chapter-hover span {
  display: block; font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2.625rem); line-height: 0.95; letter-spacing: -0.03em;
}
@media (hover: hover) and (pointer: fine) {
  /* Only the photo itself counts as hovering it: the link's own box sits further down the
     page (where the photo settles to), and must not light up a photo from empty space. */
  body.collage .chapter { pointer-events: none; }
  body.collage .chapter-frame { pointer-events: auto; }
  body.collage .chapter:hover .chapter-hover {
    opacity: 1; transform: translate(-50%, -50%) scale(calc(1 / var(--frame-scale, 1)));
  }
}

.chapter-caption {
  position: absolute; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px);
  right: auto; width: max-content; max-width: calc(100% - 2 * clamp(12px, 2vw, 28px));
  padding: clamp(14px, 1.8vw, 24px) clamp(20px, 2.4vw, 32px);
  border-radius: 20px;
  display: grid; gap: 6px;
  opacity: var(--caption-o, 1);
}
.chapter-caption h2 {
  margin: 0; font-weight: 700;
  font-size: clamp(2.2rem, 5.4vw, 4.75rem); line-height: 0.95; letter-spacing: -0.03em;
}
/* "view gallery": indented 6 px from the title, line height 1 (0.5 less than body text). */
.chapter-caption .go { margin-left: 6px; line-height: 1; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (max-width: 640px) {
  .chapter:not(.portrait) .chapter-media { aspect-ratio: 4 / 5; }
  /* Phones: the same proportions as on a desktop (title about 6% of the photo's width, a
     snug panel in the bottom-left corner), scaled to the phone's photo; "view gallery"
     kept at a readable 11 px. --w is the photo's width. */
  .chapter-caption {
    --w: calc(100vw - 2 * var(--gutter));
    left: max(8px, calc(var(--w) * 0.022)); bottom: max(8px, calc(var(--w) * 0.022)); right: auto;
    width: max-content; max-width: calc(100% - 16px);
    padding: max(7px, calc(var(--w) * 0.019)) max(10px, calc(var(--w) * 0.025));
    border-radius: max(10px, calc(var(--w) * 0.0156)); gap: 3px;
  }
  .chapter-caption h2 { font-size: calc(var(--w) * 0.059); }
  .chapter-caption .go { font-size: 11px; margin-left: 3px; }
}

/* ---------- Story band (home) ---------- */

.band {
  width: min(100% - 2 * var(--gutter), var(--column));
  margin: 0 auto; padding: clamp(56px, 9vw, 140px) 0;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 96px);
  border-top: 1px solid var(--hairline);
}
.band .lead {
  margin: 0; font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.015em;
 max-width: 30ch;
}
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; align-content: start; }
.facts li { padding-bottom: 22px; border-bottom: 1px solid var(--hairline); }
.facts strong { display: block; font-weight: 500; }
.facts span { color: var(--muted); }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* ---------- Category page ---------- */

.hero {
  position: relative; height: min(92vh, 980px); min-height: 520px;
  color: var(--paper); overflow: hidden;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Page transitions (site.js). Arriving (every page but the homepage): while html.page-build is
   set the page stays hidden; then the cover photo is rebuilt from pieces that fly in from the
   nearest screen edge, like the homepage grid, and whatever else is on screen flies in the same
   way. Leaving (every page): the same motion in reverse. */
html.page-build main, html.page-build .site-footer { opacity: 0; }
.build-layer { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.build-layer i { position: absolute; display: block; background-repeat: no-repeat; will-change: transform, opacity; }
/* While the pieces fly, the title panel and the intro rise in front of them. */
html.building .hero-panel { z-index: 31; }
html.building .prose { position: relative; z-index: 31; }
/* While the page is leaving, ignore further clicks. */
html.leaving body { pointer-events: none; }
/* Parts flying past the screen edge must not make the page wider (phones would let it wobble sideways). */
html.building, html.building body { overflow-x: clip; }
.hero-panel {
  position: absolute; left: var(--gutter); bottom: var(--gutter);
  /* Grows to fit the Black title, never past the screen edges. */
  width: max-content; max-width: calc(100% - 2 * var(--gutter));
  padding: clamp(14px, 1.8vw, 24px) clamp(20px, 2.4vw, 32px); border-radius: 22px;
}
.hero-panel h1 {
  margin: 0; font-weight: 700;
  font-size: clamp(2.6rem, 7.6vw, 6.75rem); line-height: 0.92; letter-spacing: -0.035em;

}

.prose {
  width: min(100% - 2 * var(--gutter), var(--column));
  margin: 0 auto; padding: clamp(48px, 8vw, 120px) 0 clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 96px);
  align-items: end;
}
.prose p.story {
  margin: 0; font-size: var(--step-1); line-height: 1.45; letter-spacing: -0.01em;
 max-width: 36em; color: var(--graphite);
}
.prose .aside { display: grid; gap: 16px; justify-items: start; }
.prose .aside p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .prose { grid-template-columns: 1fr; } }

.gallery {
  width: min(100% - 2 * var(--gutter), var(--column));
  margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: clamp(8px, 1.2vw, 16px);
}
.gallery .shot {
  margin: 0; padding: 0; border: 0; background: var(--stone); cursor: zoom-in;
  overflow: hidden; display: block; width: 100%;
}
.gallery .shot.wide { grid-column: span 2; }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; }
.gallery .shot[hidden] { display: none; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .shot.wide { grid-column: auto; }
}

/* Photos rise and fade in once they're on screen and loaded (classes set in site.js). */
.gallery .shot.pending { opacity: 0; transform: translateY(32px); }
.gallery .shot.pending.in {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ramp), transform 1.2s var(--ramp);
  transition-delay: var(--delay, 0ms);
}
.gallery-end { height: 1px; }

/* ---------- Client sets (Elopements): one large photo per client, then their grid ---------- */
.gallery.sets { display: block; }
.client-set + .client-set { margin-top: clamp(56px, 7vw, 110px); }
/* Ornament between clients: always 30% of the window width, centred. */
.set-divider {
  display: block; width: calc(30 * var(--vw, 1vw)); height: auto;
  margin: 0 auto clamp(56px, 7vw, 110px);
}

.sets .set-hero {
  display: block; width: 100%; margin: 0 auto; padding: 0; border: 0;
  aspect-ratio: var(--ratio); background: var(--stone); cursor: zoom-in; overflow: hidden;
}
.sets .set-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Feature section (end of Engagements): the large photo and its blurb are held at 80% of
   the window width, centred even where that is wider than the gallery column. */
/* --vw is 1% of the visible window, excluding the scrollbar (set in site.js; falls back to 1vw). */
.sets .set-hero.feature { width: calc(80 * var(--vw, 1vw)); margin-left: calc(50% - 40 * var(--vw, 1vw)); }
.set-blurb {
  width: calc(80 * var(--vw, 1vw));
  margin: clamp(28px, 3.5vw, 48px) 0 clamp(36px, 4.5vw, 64px) calc(50% - 40 * var(--vw, 1vw));
}
.set-blurb p {
  max-width: 60ch; margin: 0 auto; text-align: center;
  font-weight: 400; font-size: clamp(1.125rem, 0.9rem + 0.9vw, 1.4166rem); line-height: 1.5; letter-spacing: -0.01em;
  color: var(--graphite); text-wrap: pretty;
}

/* Justified rows: each photo's width follows its own shape, so every photo keeps its
   aspect ratio and the rows still run edge to edge. Order stays left to right by file name. */
.tiles {
  --row: clamp(120px, 16vw, 230px);
  --gap: clamp(6px, 0.7vw, 10px);
  display: flex; flex-wrap: wrap; gap: var(--gap);
  margin-top: var(--gap);
}
.tiles::after { content: ""; flex-grow: 9999; }   /* lets the last row end short instead of stretching */
.gallery .tile {
  position: relative; z-index: 1;
  flex: var(--r) 1 calc(var(--r) * var(--row));
  aspect-ratio: var(--r);
  overflow: visible; background: none;
}
/* Hover (or keyboard focus) lifts the photo a little: 6% larger, 3 px higher, with a soft
   shadow, as if it came up off the page. The photos around it shrink by the same distance
   at the same speed, so the gaps stay even. site.js sets --tx, --ty and --s on each. */
.tiles { --hover-ease: cubic-bezier(0.25, 0.1, 0.25, 1); }
.tile img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  background: var(--stone);
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 1));
  box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 1.1s var(--hover-ease) 0.05s, box-shadow 1.1s var(--hover-ease) 0.05s;
}
.gallery .tile.lift { z-index: 20; }
.tile.up img { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 14px 28px -10px rgba(0, 0, 0, 0.28); }
.tile:focus-visible { outline: none; }
.tile:focus-visible img { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Films */
.films {
  width: min(100% - 2 * var(--gutter), var(--column));
  margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px);
}
.film { margin: 0; position: relative; }
.film.wide { grid-column: span 2; }
.film-frame { position: relative; overflow: hidden; background: var(--ink); border-radius: 4px; }
.film-frame video, .film-frame img { width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px 0 20px; border-radius: 999px; cursor: pointer;
  font-size: 0.9375rem;
}
.film-play svg { width: 14px; height: 14px; }
.film figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px 0; }
.film figcaption span { color: var(--muted); }
@media (max-width: 640px) { .films { grid-template-columns: 1fr; } .film.wide { grid-column: auto; } }

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

/* Opening grid, as on the old about page: a row of five photos, then a row of three.
   Each photo's width follows its own shape (flex-grow = its aspect ratio), so every photo
   in a row has the same height and the row runs edge to edge. Static: no viewer, no hover. */
.about-grid {
  width: min(100% - 2 * var(--gutter), var(--column));
  margin: 0 auto; padding-top: calc(var(--header-h) + clamp(16px, 2.4vw, 32px));
  display: grid; gap: 8px;
}
.about-row { display: flex; gap: 8px; }
.about-row figure, .press-images figure {
  margin: 0; flex: var(--r) 1 0; min-width: 0;
  aspect-ratio: var(--r); background: var(--stone);
}
.about-row img, .press-images img { width: 100%; height: 100%; object-fit: cover; }

.about-text {
  width: min(100% - 2 * var(--gutter), 800px);
  margin: 0 auto; padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 96px);
}
.about-text h2, .about-press h2 {
  margin: 0 0 clamp(20px, 2.6vw, 32px); text-align: center;
  font-weight: 700; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.02em;
}
.about-text p {
  margin: 0 0 1em; font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem); line-height: 1.55;
  color: var(--graphite); text-wrap: pretty;
}

.about-film { width: min(100% - 2 * var(--gutter), var(--column)); margin: 0 auto; }
.about-film figcaption {
  max-width: 800px; margin: 0 auto; padding: 16px 0 0;
  text-align: center; color: var(--muted); font-size: 0.9375rem;
}

.about-press {
  width: min(100% - 2 * var(--gutter), var(--column));
  margin: 0 auto; padding-top: clamp(48px, 6vw, 96px);
}
.about-press .set-divider { margin-bottom: clamp(40px, 5vw, 72px); }
.press-images { display: grid; gap: 10px; }
.press-images + .set-divider { margin: clamp(56px, 7vw, 110px) auto 0; }

/* ---------- Proposals: how it works, where to propose, questions ---------- */
.steps, .guide, .faq {
  width: min(100% - 2 * var(--gutter), var(--column)); margin: 0 auto;
}
.steps { padding: 0 0 clamp(48px, 7vw, 104px); }
.guide { padding-top: clamp(72px, 9vw, 140px); }
.faq { padding-top: clamp(56px, 7vw, 110px); }
.faq > * { max-width: 880px; }   /* aligned left with the sections above, but kept to a readable width */
.steps h2, .guide h2, .faq h2 {
  margin: 0 0 clamp(20px, 2.6vw, 36px);
  font-weight: 700; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.02em;
}
.steps ol {
  margin: 0; padding: 0; list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px);
}
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 16px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px;
  font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.steps strong { display: block; font-weight: 700; font-size: 1.125rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--graphite); }
@media (max-width: 960px) { .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps ol { grid-template-columns: 1fr; } }

.places {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px);
}
.places li { padding: 18px 0 22px; border-top: 1px solid var(--hairline); }
.places strong { display: block; font-weight: 700; margin-bottom: 4px; }
.places span { color: var(--graphite); }
@media (max-width: 960px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .places { grid-template-columns: 1fr; } }

.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform 0.45s var(--ramp);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq details p { margin: 0 0 22px; max-width: 62ch; color: var(--graphite); }

/* 404 */
.not-found {
  width: min(100% - 2 * var(--gutter), 800px); margin: 0 auto;
  padding: calc(var(--header-h) + clamp(64px, 12vh, 140px)) 0 clamp(64px, 10vh, 120px);
}
.not-found h1 { margin: 0 0 16px; font-weight: 700; font-size: var(--step-3); letter-spacing: -0.025em; line-height: 1.05; }
.not-found p { color: var(--graphite); }
.not-found ul { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; }

/* ---------- Testimonials (about) ----------
   Three rows of cards drifting slowly sideways, the middle row the other way (site.js).
   A row eases to a stop under the pointer or keyboard focus, and can be dragged.
   Long reviews are cut at five lines with "read more", which opens the whole review. */
.testimonials { padding-top: clamp(48px, 6vw, 96px); overflow: hidden; }
.testimonials-head {
  width: min(100% - 2 * var(--gutter), 800px); margin: 0 auto clamp(32px, 4vw, 56px);
  text-align: center;
}
.testimonials-head h2 {
  margin: 0 0 12px;
  font-weight: 700; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.02em;
}
.testimonials-head p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.testimonials-head .t-stars { margin-right: 6px; }
.t-stars { color: var(--ink); letter-spacing: 0.12em; font-size: 0.8125rem; }

/* The rows fade out at the window edges, so cards drift in and out of view softly. */
.t-rows {
  display: grid; gap: clamp(12px, 1.4vw, 20px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.t-note {
  width: min(100% - 2 * var(--gutter), 800px); margin: clamp(16px, 2vw, 24px) auto 0;
  text-align: center; color: var(--muted); font-size: 0.8125rem;
}
.t-row { overflow: hidden; touch-action: pan-y; cursor: grab; padding: 10px 0 18px; }
.t-row.dragging { cursor: grabbing; }
.t-row.dragging .t-card { user-select: none; }
.t-track {
  display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content;
  padding-left: clamp(12px, 1.4vw, 20px);
  will-change: transform;
}
.t-card {
  margin: 0; width: clamp(272px, 26vw, 360px);
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(20px, 2vw, 28px);
  background: var(--paper); border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hairline), 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: transform 0.9s var(--ramp), box-shadow 0.9s var(--ramp);
}
/* Hover (mouse) lifts the card gently, like the gallery photos. */
@media (hover: hover) and (pointer: fine) {
  .t-row:not(.dragging) .t-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--hairline), 0 14px 28px -12px rgba(0, 0, 0, 0.22);
  }
}
.t-card blockquote { margin: 0; }
.t-card blockquote p {
  margin: 0; font-size: 0.9875rem; line-height: 1.5; color: var(--graphite);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
  overflow-wrap: anywhere;
}
.t-more {
  align-self: flex-start; margin-top: -6px; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font-size: 0.875rem; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.t-more[hidden] { display: none; }
.t-card figcaption { margin-top: auto; display: grid; gap: 2px; font-size: 0.875rem; }
.t-card figcaption strong { font-weight: 700; }
.t-card figcaption span, .quote-card figcaption span { color: var(--muted); }

/* Visitors who prefer less motion: no drifting; each row simply scrolls sideways. */
@media (prefers-reduced-motion: reduce) {
  .t-row { overflow-x: auto; cursor: auto; touch-action: auto; }
}

/* The whole review, over a light frosted veil. */
.quote-viewer {
  position: fixed; inset: 0; z-index: 60; margin: 0; padding: var(--gutter);
  width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: transparent;
}
.quote-viewer[open] { display: grid; place-items: center; }
.quote-viewer::backdrop { background: transparent; }
.quote-veil {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
}
.quote-card {
  position: relative; margin: 0; width: min(100%, 640px); max-height: calc(100dvh - 2 * var(--gutter));
  overflow: auto; display: grid; gap: 16px;
  padding: clamp(28px, 4vw, 48px); padding-right: clamp(56px, 6vw, 72px);
  border-radius: 24px; background: var(--glass-light-strong);
}
.quote-card:focus { outline: none; }
.quote-card .icon-button { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; }
.quote-card .icon-button:hover { background: var(--stone); }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p {
  margin: 0; font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem); line-height: 1.55; color: var(--graphite);
}
.quote-card figcaption { display: grid; gap: 2px; }
.quote-card figcaption strong { font-weight: 700; }

/* ---------- Inquiry ---------- */

/* The section is exactly one window tall and lines up with the top of the window when a
   "check availability" link jumps to it. The card fills the space between the menu (plus
   the zone where text fades under it) and a strip of photo at the bottom; its spacing
   scales with the window height and the message box takes whatever height is left, so the
   whole form, send button included, is visible without scrolling. */
.inquiry {
  --clear-top: calc(var(--header-h) + var(--fade-zone) + 10px);
  --clear-bottom: clamp(16px, 2.6vh, 32px);
  position: relative; margin-top: clamp(64px, 10vw, 160px);
  min-height: 100vh; min-height: 100svh;
  padding: var(--clear-top) var(--gutter) var(--clear-bottom);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--stone);
  overflow: hidden;
  scroll-margin-top: calc(-1 * (var(--header-h) + 16px));   /* cancels the page's usual header offset */
}
.inquiry-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.inquiry-card {
  position: relative; width: 100%; max-width: 880px; margin: 0 auto;
  height: calc(100svh - var(--clear-top) - var(--clear-bottom));
  max-height: 820px;   /* tall screens: the card stops growing and sits centred */
  min-height: min-content;   /* very short windows: grow (and let the page scroll) rather than spill */
  display: flex; flex-direction: column;
  padding: clamp(18px, 3.4vh, 48px) clamp(20px, 4vw, 56px); border-radius: 28px;
}
.inquiry-card h2 {
  margin: 0 0 clamp(4px, 0.8vh, 8px); font-weight: 500; font-size: min(var(--step-3), 5.6vh);
  line-height: 1.05; letter-spacing: -0.025em;
}
.inquiry-card > p { margin: 0 0 clamp(10px, 2.6vh, 28px); color: var(--graphite); max-width: 52ch; line-height: 1.4; }
.inquiry-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fields {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto) minmax(56px, 1fr);
  gap: clamp(8px, 1.7vh, 16px) 18px;
}
.field { display: grid; gap: clamp(3px, 0.6vh, 6px); grid-template-rows: auto 1fr; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; color: var(--graphite); }
.field input, .field select, .field textarea {
  width: 100%; min-height: clamp(38px, 5.2vh, 48px); padding: clamp(7px, 1.2vh, 12px) 14px;
  font: inherit; color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 12px;
}
.field textarea { min-height: 56px; height: 100%; resize: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: transparent; }
.form-actions { margin-top: clamp(10px, 2.2vh, 22px); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.form-actions p { margin: 0; color: var(--muted); font-size: 0.875rem; }
.form-status { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--paper); }
.form-status[data-state="error"] { box-shadow: inset 0 0 0 1px var(--ink); }
.form-actions a { color: inherit; text-underline-offset: 3px; }
.form-actions .or { color: var(--muted); font-size: 0.875rem; margin: 0 -6px; }   /* sits a little closer to the two buttons than their usual gap */
.inquiry-form button[disabled] { opacity: 0.6; cursor: progress; }
/* Phones: "whatsapp" alone, so it sits beside "send inquiry" and the form stays one screen tall. */
@media (max-width: 640px) { .wa-long { display: none; } .form-actions { column-gap: 14px; } }
/* Spam trap: off screen, never seen or filled by people. */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Phones keep two fields per row too (labels shorten with an ellipsis if they must), so the
   whole form fits on one screen. */
@media (max-width: 640px) {
  :root { --fade-zone: 60px; }
  .inquiry-card > p { font-size: 0.9375rem; }
  .field label { font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fields { gap: clamp(8px, 1.4vh, 14px) 12px; }
  .field input, .field select, .field textarea { padding-left: 12px; padding-right: 10px; }
  .field select { font-size: 0.9375rem; }
}
/* Short windows: text starts fading closer to the menu, which frees room for the form. */
@media (max-height: 760px) { :root { --fade-zone: 56px; } }
@media (max-width: 640px) and (max-height: 700px) {
  :root { --fade-zone: 40px; }
  .inquiry-card { padding: 16px 18px; border-radius: 22px; }
  .inquiry-card h2 { font-size: 1.6rem; margin-bottom: 4px; }
  .inquiry-card > p { font-size: 0.8125rem; margin-bottom: 8px; }
  .fields { grid-template-rows: repeat(3, auto) minmax(48px, 1fr); gap: 7px 10px; }
  .field { gap: 2px; }
  .field input, .field select { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
  .field textarea { min-height: 48px; }
  .form-actions { margin-top: 8px; }
  .form-actions p { font-size: 0.75rem; }
}

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

.site-footer {
  padding: 48px var(--gutter) 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  font-size: 0.9375rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer nav a { text-decoration: none; color: var(--graphite); }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer small { color: var(--muted); font-size: 0.8125rem; }
@media (max-width: 640px) { .site-footer { grid-template-columns: 1fr; } }

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

.lightbox {
  position: fixed; inset: 0; z-index: 60; margin: 0; padding: 0;
  width: 100%; height: 100%; max-width: none; max-height: none; border: 0;
  background: transparent; color: var(--paper);
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.lightbox::backdrop { background: transparent; }
/* Dark frosted veil over the page. It's its own layer so it can fade separately from the photo. */
.lightbox-veil {
  position: absolute; inset: 0; z-index: 0;
  background: rgba(12, 12, 12, 0.8);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  backdrop-filter: blur(26px) saturate(120%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lightbox-veil { background: rgba(12, 12, 12, 0.92); }
}
.lightbox-top, .lightbox-bottom {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
}
.lightbox-figure {
  position: relative; z-index: 1;
  margin: 0; display: grid; place-items: center; min-height: 0; height: 100%; padding: 0 var(--gutter);
}
/* The same lifted look as the gallery grid, deeper to suit the larger size. */
.lightbox-figure img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 164px); object-fit: contain;
  transform-origin: 0 0;
  /* A white print border (--mat, 8-16 px, set in site.js), then the lifted shadow, cast by
     the bordered print. */
  box-shadow: 0 0 0 var(--mat, 12px) #fff,
              0 4px 10px var(--mat, 12px) rgba(0, 0, 0, 0.3),
              0 36px 80px calc(var(--mat, 12px) - 24px) rgba(0, 0, 0, 0.7);
}
.lightbox .count { color: rgba(255, 255, 255, 0.78); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.icon-button {
  width: 48px; height: 48px; display: inline-grid; place-items: center;
  border-radius: 999px; cursor: pointer; padding: 0;
}
.icon-button svg { width: 18px; height: 18px; }
.lightbox-bottom { justify-content: center; gap: 12px; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .intro { height: auto; }
  .intro-stage { position: relative; height: auto; padding: calc(var(--header-h) + 72px) 0 56px; }
  .home .chapters { margin-top: 0; }
  .thumbs { opacity: 0.1; }
  .intro-line { opacity: 1; transform: none; }
  .home:not(.revealed) .chapter-media { opacity: 1; }
}
