/* ============================================================
   Anne Vandenbroucke — Ethereal Alchemy
   Design tokens from stitch/DESIGN.md
   ============================================================ */

:root {
  /* Surfaces */
  --surface: #f6fbec;
  --surface-dim: #d7dccd;
  --surface-lowest: #ffffff;
  --surface-low: #f1f6e7;
  --surface-container: #ebf0e1;
  --surface-high: #e5eadb;
  --surface-highest: #dfe4d6;

  /* Ink */
  --on-surface: #181d14;
  --on-surface-variant: #45483f;
  --outline: #76786e;
  --outline-variant: #c6c7bc;

  /* Accents */
  --primary: #576246;
  --primary-container: #b8c4a2;
  --on-primary: #ffffff;
  --secondary: #6b5e2b;
  --secondary-container: #f2df9f;
  --secondary-fixed: #f5e2a2;
  --secondary-fixed-dim: #d8c688;
  --on-secondary-fixed: #221b00;
  --tertiary: #346665;
  --tertiary-container: #96c9c6;

  --gold: 245, 226, 162;
  --sage: 87, 98, 70;

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-narrative: "EB Garamond", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-label: "Space Grotesk", ui-monospace, monospace;
  /* Anne asked for Lucida Calligraphy: use it where installed (Windows/Office),
     Apple Chancery on macOS, Petit Formal Script as the web fallback. */
  --font-script: "Lucida Calligraphy", "Apple Chancery", "Petit Formal Script", cursive;
  /* Anne asked for Times New Roman on the Formation block. */
  --font-classic: "Times New Roman", Times, "Liberation Serif", "Nimbus Roman", serif;

  /* Rhythm */
  --unit: 8px;
  --gutter: 24px;
  --margin: 20px;
  --container: 1440px;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-portal: 40px;

  --section-gap: 96px;

  /* z-index scale: -2 ambience · 10 content · 50 nav · 60 cursor dust · 100 skip-link */
  --z-ambience: -2;
  --z-content: 10;
  --z-nav: 50;
  --z-dust: 60;
  --z-skip: 100;
}

@media (min-width: 768px) {
  :root {
    --margin: 80px;
    --section-gap: 128px;
  }
}

/* ============================================================
   Reset & base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  /* The page could be dragged ~10px sideways on a phone. No element renders
     outside the viewport, so an overhanging decorative box is doing it. This
     predates the gallery work. Measured: html and body each need the value,
     neither one alone stops the drag. `clip` rather than `hidden` so no scroll
     container is created and the fixed nav keeps working. Older Safari ignores
     the value and behaves exactly as it does today. */
  overflow-x: clip;
}

body {
  overflow-x: clip; /* see the note on html above */
  margin: 0;
  min-height: 100vh;
  background-color: var(--surface-low);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface-lowest);
  color: var(--primary);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-lg) 0;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; }

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

.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* ============================================================
   Type scale
   ============================================================ */

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--primary);
}

.narrative {
  font-family: var(--font-narrative);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--on-surface-variant);
  margin: 0;
}
.narrative em, .narrative.is-italic { font-style: italic; }

.label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lede { margin: 0; max-width: 62ch; }
.lede + .lede { margin-top: 20px; }

.ink-soft { color: var(--on-surface-variant); }
.ink-gold { color: var(--secondary); }

/* ============================================================
   Ambient background — portals, glows, light trails
   ============================================================ */

.ambience {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold), 0.18) 0%, rgba(var(--gold), 0) 70%);
}
.glow--a { width: 800px; height: 800px; top: -220px; right: -200px; }
.glow--b { width: 1000px; height: 1000px; bottom: -320px; left: -300px; }
.glow--c {
  width: 640px; height: 640px; top: 44%; left: 38%;
  background: radial-gradient(circle, rgba(150, 201, 198, 0.14) 0%, rgba(150, 201, 198, 0) 70%);
}

.trail {
  position: absolute;
  width: 150vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold), 0.6), transparent);
  filter: blur(4px);
  opacity: 0.5;
}
.trail--a { top: 24%; left: -20%; transform: rotate(-15deg); }
.trail--b { top: 66%; right: -30%; transform: rotate(25deg); }
.trail--c { top: 118%; left: -25%; transform: rotate(-8deg); }

/* Gold dust cursor trail — Anne explicitly asked to keep the sparkle */
.dust {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold), 0.9) 0%, rgba(var(--gold), 0) 70%);
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  will-change: transform, opacity;
}

/* ============================================================
   Glass
   ============================================================ */

.glass {
  background: rgba(246, 251, 236, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(var(--gold), 0.45);
  border-bottom: 1px solid rgba(var(--sage), 0.16);
  box-shadow: 0 8px 32px rgba(var(--sage), 0.07);
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  inset-block-start: 0;
  inline-size: 100%;
  z-index: 50;
  background: rgba(246, 251, 236, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(24, 29, 20, 0.08);
  transition: background 400ms ease, box-shadow 400ms ease;
}
.nav.is-scrolled {
  background: rgba(246, 251, 236, 0.86);
  box-shadow: 0 4px 24px rgba(var(--sage), 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  padding-block: 14px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.1;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 200ms ease;
}
.nav__brand:hover { opacity: 0.75; }
/* The hero says her name at 76px. Two wordmarks at once reads as a bug, so
   the nav one waits until the hero wordmark has scrolled away. JS adds
   .is-branded; without JS the brand simply stays visible. */
.nav.has-hero-brand .nav__brand { opacity: 0; pointer-events: none; }
.nav.has-hero-brand.is-branded .nav__brand { opacity: 1; pointer-events: auto; }
.nav.has-hero-brand .nav__brand:focus-visible { opacity: 1; pointer-events: auto; }

.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 1140px) { .nav__links { display: flex; } }

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-surface-variant);
  text-decoration: none;
  padding: 0 12px;
  border-radius: 999px;
  transition: color 220ms ease, background 220ms ease;
}
.nav__link:hover { color: var(--primary); background: rgba(246, 251, 236, 0.75); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
}
.lang button {
  border: 0;
  background: transparent;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--on-surface-variant);
  transition: background 200ms ease, color 200ms ease;
}
.lang button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
}

/* Small screens: the CTA lives in the drawer, not the bar */
@media (max-width: 719px) {
  .nav__actions .btn { display: none; }
  .nav__inner { gap: 12px; }
  .lang button { min-width: 44px; padding: 0 10px; }
}

/* 320px phones: the wordmark wraps to two lines rather than shoving the
   hamburger off-screen. Two lines still fit inside the bar's 44px min-height. */
@media (max-width: 479px) {
  /* two lines still fit inside the bar's 44px min-height, so the hamburger
     stays on screen without the bar growing */
  .nav__brand { white-space: normal; text-wrap: balance; }
}
@media (max-width: 359px) {
  :root { --margin: 16px; }
  .nav__inner { gap: 8px; }
  .nav__brand { font-size: 18px; }
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}
@media (min-width: 1140px) { .nav__toggle { display: none; } }
.nav__toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--primary);
  position: relative;
  transition: background 200ms ease;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px; height: 1.5px;
  background: var(--primary);
  transition: transform 260ms ease;
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after { top: 5px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.nav__drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms ease;
  border-top: 1px solid transparent;
}
.nav__drawer[data-open="true"] {
  grid-template-rows: 1fr;
  border-top-color: rgba(24, 29, 20, 0.08);
}
.nav__drawer > div { overflow: hidden; }
.nav__drawer a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: var(--on-surface-variant);
  border-bottom: 1px solid rgba(24, 29, 20, 0.06);
}
.nav__drawer a:last-child { border-bottom: 0; }
.nav__drawer .btn { display: inline-flex; width: auto; margin: 18px 0 24px; border-bottom: 0; }
/* `.nav__drawer a` outranks `.btn--solid`; restore the button's own ink */
.nav__drawer .btn--solid { color: var(--on-secondary-fixed); }
@media (min-width: 1140px) { .nav__drawer { display: none; } }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 320ms cubic-bezier(.2,.8,.3,1), box-shadow 400ms ease,
              background 400ms ease, color 300ms ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--solid {
  background: var(--secondary-fixed);
  color: var(--on-secondary-fixed);
}
.btn--solid:hover {
  background: var(--secondary-fixed-dim);
  box-shadow: 0 0 34px rgba(var(--gold), 0.62);
}

.btn--ghost {
  background: rgba(246, 251, 236, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(107, 94, 43, 0.32);
  color: var(--primary);
}
.btn--ghost:hover {
  background: rgba(var(--gold), 0.4);
  box-shadow: 0 0 30px rgba(var(--gold), 0.42);
}

.btn--sm { padding: 10px 20px; min-height: 44px; }

/* ============================================================
   Layout scaffolding
   ============================================================ */

main {
  padding-top: 100px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary));
}

/* ============================================================
   Intro — the badge Anne wanted higher and larger
   ============================================================ */

/* the #top anchor is a flex child of <main>; keep it out of the gap flow */
main > #top { position: absolute; }

.intro {
  display: flex;
  justify-content: center;
}

/* Anne asked for the rail "directly" under the badge — trim the section gap */
.intro + .rail-wrap { margin-top: calc(30px - var(--section-gap)); }

/* The first category has to break the fold, otherwise nothing says "scroll". */
.rail-wrap + .cat { margin-top: calc(18px - var(--section-gap)); }

.intro__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.8vw, 20px);
  text-align: center;
}

/* Anne's "Höher und größer" note: the opening block carries her name at
   display size, and the location badge grows with it. */
.intro__wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6.2vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  text-wrap: balance;
}

.intro__badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px clamp(20px, 3.4vw, 38px);
  border: 1px solid rgba(107, 94, 43, 0.34);
  border-radius: 999px;
  background: rgba(246, 251, 236, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--secondary);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: clamp(13px, 1.6vw, 18px);
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}
.intro__badge::before,
.intro__badge::after {
  content: "";
  flex: 0 0 auto;
  width: clamp(18px, 3vw, 40px);
  height: 1px;
  background: var(--secondary);
  opacity: 0.6;
}
@media (max-width: 479px) {
  .intro__badge::before, .intro__badge::after { display: none; }
}

/* ============================================================
   Scroll cue — the arrow is the hint, the fold-break is the proof
   ============================================================ */

.cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-height: 44px;
  margin: 4px auto 0;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--secondary);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 200ms ease;
}
.cue:hover { color: var(--primary); }
.cue svg {
  width: 18px;
  height: 18px;
  animation: cue-bob 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes cue-bob {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30% { transform: translateY(6px); opacity: 1; }
}

/* ============================================================
   Category rail — horizontal, scroll-snapped
   ============================================================ */

.rail-wrap { position: relative; }

/* Cards fan out of a centre stack once the page is ready. JS adds
   .is-settled; without JS the cards simply start in place. */
.rail.is-fan .rail__card {
  opacity: 0;
  transform: translateX(var(--fan-x, 0)) rotate(var(--fan-r, 0deg)) scale(0.9);
  transition: opacity 720ms ease, transform 1000ms cubic-bezier(.2,.85,.25,1);
}
.rail.is-fan.is-settled .rail__card { opacity: 1; transform: none; }
.rail.is-fan .rail__item:nth-child(1) .rail__card { --fan-x: 62%; --fan-r: -7deg; transition-delay: 240ms; }
.rail.is-fan .rail__item:nth-child(2) .rail__card { --fan-x: 34%; --fan-r: -4deg; transition-delay: 150ms; }
.rail.is-fan .rail__item:nth-child(3) .rail__card { --fan-x: 0;   --fan-r: 0deg;  transition-delay: 40ms; }
.rail.is-fan .rail__item:nth-child(4) .rail__card { --fan-x: -34%; --fan-r: 4deg; transition-delay: 150ms; }
.rail.is-fan .rail__item:nth-child(5) .rail__card { --fan-x: -62%; --fan-r: 7deg; transition-delay: 240ms; }

.rail {
  list-style: none;
  margin: 0;
  padding: 10px var(--margin) 26px;
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: var(--margin);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }

.rail__item {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 420px);
  scroll-snap-align: start;
}
/* one card at a time on a phone, so centre it and let the neighbours peek */
@media (max-width: 720px) {
  .rail__item { width: min(76vw, 360px); scroll-snap-align: center; }
  .rail { padding-inline: 12vw; scroll-padding-inline-start: 12vw; }
}

.rail__card {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(var(--sage), 0.12);
  transition: transform 480ms cubic-bezier(.2,.8,.3,1), box-shadow 480ms ease;
}
.rail__card:hover,
.rail__card:focus-visible { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(var(--sage), 0.2); }

.rail__frame {
  display: block;
  overflow: hidden;
  border-radius: inherit;
}
.rail__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4.35;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.2,.8,.3,1);
  /* the rail is the opening image now: fill the first screen, but stop short
     so the first category heading breaks the fold and proves there is more */
  max-height: calc(100svh - 470px);
  min-height: 300px;
}
@media (max-width: 720px) {
  .rail__frame img { max-height: calc(100svh - 430px); }
}
.rail__card:hover .rail__frame img,
.rail__card:focus-visible .rail__frame img { transform: scale(1.06); }

.rail__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px 16px 24px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  font-family: var(--font-script);
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.32;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  background: rgba(20, 24, 17, 0.62);
  pointer-events: none;
}

/* Anne asked for the label to appear only on hover — but only where hover
   actually exists. Touch and keyboard users keep it visible. */
@media (hover: hover) and (pointer: fine) {
  .rail__label {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,.8,.3,1);
  }
  .rail__card:hover .rail__label,
  .rail__card:focus-visible .rail__label { opacity: 1; transform: none; }
}

.rail__arrow {
  position: absolute;
  top: calc(50% - 38px);
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(107, 94, 43, 0.3);
  background: rgba(246, 251, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(var(--sage), 0.16);
  transition: background 240ms ease, transform 240ms ease, opacity 240ms ease;
}
@media (min-width: 900px) { .rail__arrow { display: inline-flex; } }
.rail__arrow:hover { background: var(--secondary-fixed); transform: scale(1.06); }
.rail__arrow svg { width: 22px; height: 22px; }
.rail__arrow[disabled] { opacity: 0; pointer-events: none; }
.rail__arrow--prev { left: max(8px, calc(var(--margin) - 26px)); }
.rail__arrow--next { right: max(8px, calc(var(--margin) - 26px)); }

/* ============================================================
   Category sections
   ============================================================ */

.cat + .cat { margin-top: calc(var(--section-gap) * -0.42); }

.cat__title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.32;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--primary);
  text-wrap: balance;
}

.cat__intro {
  max-width: 48ch;
  margin: 24px 0 0;
  color: var(--on-surface-variant);
}
.cat__intro a {
  color: var(--secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 220ms ease;
}
.cat__intro a:hover { color: var(--primary); }

/* Justified rows. Anne's photos run from 0.39 to 1.00 in aspect ratio, so a
   column masonry never finds a shared baseline. Here every row is given one
   height and each photo keeps its own width, which aligns the rows without
   cropping a single image. Each <li> carries its ratio as --r; landing.js
   picks the row breaks. Short closing rows are centred so no void opens up. */
.cat__grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 24px);
}

.cat__grid > li {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* JS has sized the rows: the photo fills its slot exactly */
.cat__grid.is-justified .shot { height: 100%; }
.cat__grid.is-justified .shot img { height: 100%; object-fit: cover; }

/* No JS, or JS not run yet: a proportional wrap that is still presentable */
.cat__grid:not(.is-justified) > li {
  flex: var(--r, 0.75) 1 calc(var(--r, 0.75) * 300px);
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(var(--sage), 0.1);
  transition: transform 480ms cubic-bezier(.2,.8,.3,1), box-shadow 480ms ease;
}
.shot:hover, .shot:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(var(--sage), 0.18);
}
.shot img {
  width: 100%;
  height: auto;
  transition: transform 800ms cubic-bezier(.2,.8,.3,1);
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); }

/* ============================================================
   Lightbox
   ============================================================ */

.lightbox {
  width: min(96vw, 1180px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: var(--on-surface);
}
.lightbox::backdrop {
  background: rgba(24, 29, 20, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
@media (max-width: 719px) {
  .lightbox[open] { grid-template-columns: 1fr; }
}

.lightbox__figure {
  grid-column: 2;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
@media (max-width: 719px) { .lightbox__figure { grid-column: 1; } }

.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  background: var(--surface-container);
}

.lightbox__caption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(246, 251, 236, 0.92);
  text-align: center;
}
.lightbox__title { color: var(--primary); letter-spacing: 0.14em; }
.lightbox__count { color: var(--on-surface-variant); }

.lightbox__nav,
.lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold), 0.4);
  background: rgba(246, 251, 236, 0.92);
  color: var(--primary);
  cursor: pointer;
  transition: background 240ms ease, transform 240ms ease;
}
.lightbox__nav:hover,
.lightbox__close:hover { background: var(--secondary-fixed); transform: scale(1.06); }
.lightbox__nav svg,
.lightbox__close svg { width: 22px; height: 22px; }

.lightbox__nav--prev { grid-column: 1; grid-row: 1; }
.lightbox__nav--next { grid-column: 3; grid-row: 1; }

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
}

@media (max-width: 719px) {
  .lightbox__nav {
    position: fixed;
    bottom: 24px;
    grid-column: 1;
    grid-row: auto;
  }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
}

/* ============================================================
   Split sections
   ============================================================ */

.split {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--reverse .split__art { order: 2; }
}

.split__art { position: relative; }
.split__art::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: var(--radius-portal);
  background: linear-gradient(140deg, rgba(242, 223, 159, 0.3), transparent 62%);
  transform: rotate(-3deg);
  z-index: -1;
}

.split__copy > * + * { margin-top: 26px; }

.portal { position: relative; isolation: isolate; }
.portal::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(var(--gold), 0.42) 0%, transparent 70%);
  animation: breathe 6s ease-in-out infinite alternate;
}
.portal img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-portal);
  filter: saturate(1.02);
}
.portal--soft img {
  mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 62%, transparent 96%);
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 62%, transparent 96%);
}

@keyframes breathe {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ============================================================
   Formation — Anne's flat-lay with the caption set in Times
   ============================================================ */

.formation { position: relative; }

.formation__bg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-portal);
}

.formation__copy {
  font-family: var(--font-classic);
  color: var(--on-surface);
  padding: 26px 2px 0;
}
@media (min-width: 760px) {
  .formation__copy {
    position: absolute;
    left: 29%;
    right: 6%;
    top: 52%;
    transform: translateY(-50%);
    padding: 0;
  }
}

.formation__kicker {
  margin: 0;
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 62px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.formation__title {
  margin: 0.18em 0 0;
  font-weight: 400;
  font-size: clamp(21px, 3.1vw, 44px);
  line-height: 1.14;
  letter-spacing: 0;
}

.formation__meta {
  margin: 0.5em 0 0;
  font-style: italic;
  font-size: clamp(14px, 1.7vw, 24px);
  line-height: 1.35;
  color: var(--on-surface-variant);
}

/* ============================================================
   Tarifs & troc
   ============================================================ */

.tarifs {
  position: relative;
  border-radius: var(--radius-portal);
  padding: clamp(32px, 6vw, 88px);
  overflow: hidden;
}

.tarifs__copy { max-width: 64ch; position: relative; z-index: 1; }
.tarifs__copy > * + * { margin-top: 30px; }

.troc {
  position: relative;
  padding: 30px 32px;
  border-radius: var(--radius-xl);
  background: rgba(242, 223, 159, 0.16);
  border: 1px solid rgba(107, 94, 43, 0.22);
}
.troc::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(90deg, var(--secondary-fixed), var(--primary), transparent);
  opacity: 0.6;
}
.troc p + p { margin-top: 18px; }

.tarifs__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.seal {
  position: absolute;
  top: 34px;
  right: 28px;
  width: 116px; height: 116px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(107, 94, 43, 0.3);
  background: rgba(235, 240, 225, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 899px) {
  .seal { position: static; margin: 0 0 30px; }
}
@media (min-width: 1100px) {
  .seal { top: 56px; right: 56px; width: 148px; height: 148px; }
}
.seal__ring {
  position: absolute;
  inset: 0;
  animation: spin 22s linear infinite;
}
.seal__ring svg { width: 100%; height: 100%; }
.seal__ring text {
  font-family: var(--font-label);
  font-size: 8.4px;
  font-weight: 600;
  letter-spacing: 0.1em;
  fill: var(--secondary);
}
.seal__core { width: 34px; height: 34px; color: var(--secondary); }
.seal__core svg { width: 100%; height: 100%; display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  position: relative;
  padding-block: 72px 40px;
  background: linear-gradient(to top, var(--surface-container), transparent);
  border-top: 1px solid rgba(198, 199, 188, 0.5);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__brand { font-family: var(--font-display); font-size: 34px; color: var(--primary); line-height: 1.1; }
.footer__brand + p { margin: 12px 0 0; color: var(--on-surface-variant); }

.footer__contact { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
@media (min-width: 700px) { .footer__contact { align-items: flex-end; } }

.footer__mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-narrative);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.35;
  color: var(--secondary);
  text-decoration: none;
  transition: color 240ms ease;
  overflow-wrap: anywhere;
}
.footer__mail:hover { color: var(--primary); }

.footer__links { display: flex; flex-wrap: wrap; gap: 12px; margin-inline: -10px; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 10px;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 240ms ease;
}
.footer__links a:hover { color: var(--tertiary); }

.footer__legal {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(198, 199, 188, 0.5);
  color: rgba(69, 72, 63, 0.9);
}

/* ============================================================
   Scroll reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(.2,.8,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Scrollbar
   ============================================================ */

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--surface-low); }
::-webkit-scrollbar-thumb { background: var(--primary-container); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   Motion & print
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .dust { display: none; }
  .rail__label { opacity: 1 !important; transform: none !important; }
  .cue svg { animation: none; }
  .rail.is-fan .rail__card { opacity: 1 !important; transform: none !important; }
}

@media (hover: none), (pointer: coarse) {
  .dust { display: none; }
}
