/* ============================================================
   5pm lab — site vitrine
   Charte : crème / terracotta / butter / olive / rose / sky
   Fonts  : Fraunces (display) · Instrument Serif (italic) · Inter
   ============================================================ */

:root {
  /* brand palette (from app charte) */
  --bone: #f6eede;
  --paper: #efe3cf;
  --cream: #e7d8bd;
  --linen: #ddcaa8;
  --ink: #1a1208;
  --graphite: #4a3d2a;
  --stone: #8a7a5e;
  --mist: #b9a883;
  --salmon: #e89a88;
  --coral: #d97757;
  --terracotta: #b5481e;
  --olive: #8b8e2c;
  --mustard: #b5a91f;
  --moss: #5c6b2e;
  --sage: #c7cf98;
  --butter: #f4c44e;
  --rose: #e6a4c4;
  --sky: #aecbe0;
  --sky-deep: #7ba3c2;
  --plum: #8b4a62;

  /* type scale (fluid) */
  --fs-eyebrow: 0.72rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --fs-lede: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  --fs-h3: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  --fs-h2: clamp(2rem, 1.4rem + 3vw, 3.75rem);
  --fs-hero: clamp(2.9rem, 1.6rem + 6.4vw, 7rem);

  /* spacing — generous, airy (feedback: more breathing room) */
  --pad-x: clamp(1.25rem, 5vw, 6rem);
  --sec-y: clamp(5.5rem, 11vw, 11rem);
  --radius: 26px;
  --radius-sm: 16px;

  --shadow-card: 0 14px 40px -18px rgba(26,18,8,0.30), 0 2px 6px rgba(26,18,8,0.05);
  --shadow-pop: 0 30px 70px -24px rgba(26,18,8,0.42), 0 3px 8px rgba(26,18,8,0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1280px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--terracotta); color: var(--bone); }

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

/* ---------- type helpers ---------- */
.ital { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.005em; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.section__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  margin-top: 0.7rem;
}
.section__lede {
  font-size: var(--fs-lede);
  color: var(--graphite);
  max-width: 46ch;
  margin-top: 1.4rem;
  line-height: 1.65;
}

/* ---------- wordmark logo ---------- */
.wm { font-family: "Fraunces", Georgia, serif; line-height: 1; }
.wm--thin {
  font-weight: 400;
  -webkit-text-stroke: 0.7px currentColor;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}
.wm--bold { font-style: italic; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- grain ---------- */
.grain-fixed,
.svc-card__grain,
.events__bg::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.grain-fixed {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none; opacity: 0.5; mix-blend-mode: multiply;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bone);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__mark { font-size: clamp(2.4rem, 8vw, 4.5rem); color: var(--ink); opacity: 0; transform: translateY(14px); animation: pl-in 0.9s var(--ease) forwards; }
.preloader__bar { width: min(220px, 50vw); height: 2px; background: rgba(26,18,8,0.12); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--terracotta); animation: pl-bar 1.4s var(--ease) forwards; }
@keyframes pl-in { to { opacity: 1; transform: none; } }
@keyframes pl-bar { to { width: 100%; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--pad-x);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(246,238,222,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
  box-shadow: 0 1px 0 rgba(26,18,8,0.07);
}
.nav__logo { font-size: 1.5rem; color: var(--ink); }
.nav__links { display: flex; gap: 1.7rem; }
.nav__links a {
  font-size: 0.85rem; font-weight: 500; color: var(--graphite);
  position: relative; padding: 0.2rem 0;
  transition: color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--terracotta); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 1.6px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { bottom: 16px; }
.nav__burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.92rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--terra { background: var(--terracotta); color: var(--bone); }
.btn--terra:hover { background: #9c3d18; box-shadow: var(--shadow-card); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: #2e2110; transform: translateY(-2px); }
.btn--bone { background: var(--bone); color: var(--ink); }
.btn--bone:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(26,18,8,0.22); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover { transform: none; box-shadow: inset 0 0 0 1.5px rgba(26,18,8,0.22); }

.nav__cta { padding: 0.62rem 1.2rem; font-size: 0.82rem; }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 7900;
  background: var(--bone);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad-x);
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.55s var(--ease), visibility 0.55s;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu nav a {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(2rem, 9vw, 3rem); color: var(--ink);
  letter-spacing: -0.02em;
}
.mobile-menu__cta { margin-top: 2rem; align-self: flex-start; }
.mobile-menu__foot { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.3rem; color: var(--stone); font-size: 0.9rem; }
.mobile-menu__foot a { color: var(--terracotta); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(7rem, 16vh, 11rem) var(--pad-x) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(244,196,78,0.18), transparent 55%),
    radial-gradient(110% 80% at 0% 100%, rgba(230,164,196,0.20), transparent 50%),
    linear-gradient(180deg, var(--bone), var(--paper));
}
/* Vanta.js WebGL fog layer (sits over the gradient, under the text).
   position forced so Vanta cannot collapse the element to 0×0. */
.hero__vanta { position: absolute !important; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: hidden; }
.hero__vanta canvas { opacity: 0.9; width: 100% !important; height: 100% !important; }
/* soft legibility veil so headline stays crisp over the fog */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(246,238,222,0.72) 0%, rgba(246,238,222,0.3) 46%, rgba(246,238,222,0) 72%);
}

/* cut-out bouquet floating over the fog */
.hero__bouquet {
  position: absolute; z-index: 2; pointer-events: none;
  right: clamp(-30px, 1vw, 70px); bottom: -2%;
  height: min(80vh, 640px); width: auto;
  filter: drop-shadow(0 26px 40px rgba(26,18,8,0.28));
  animation: bouquetFloat 9s ease-in-out infinite;
  will-change: transform;
}
@keyframes bouquetFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(-1.2deg); } }

.hero__grid {
  position: relative; z-index: 3; width: 100%;
  max-width: var(--max); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr 0.82fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.hero__inner { max-width: 620px; }
.hero__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-pop); aspect-ratio: 4 / 5;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(246,238,222,0.9); color: var(--ink);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero__title {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.03em;
  margin: 1rem 0 1.4rem;
  color: var(--ink);
}
.hero__title .line { display: block; overflow: hidden; }
/* Promesse en 4 lignes — plus longue que l'ancien titre, taille réduite pour tenir sans scroller */
.hero__title--promise { font-size: clamp(2.4rem, 1.3rem + 4.6vw, 5.2rem); }
.hero__title .ital { color: var(--terracotta); }

.hero__lede { font-size: var(--fs-lede); color: var(--graphite); max-width: 40ch; line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero__meta { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3rem; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta strong {
  font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.hero__meta span { font-size: 0.78rem; color: var(--stone); margin-top: 0.3rem; max-width: 12ch; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
}
.hero__scroll svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================================================
   KEYWORD CHIPS (hero) — the 5pm lab identity, at a glance
   ============================================================ */
.chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin-top: 2.2rem; max-width: 520px;
}
.chips li {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink);
  background: color-mix(in srgb, var(--chip) 55%, var(--bone));
  border: 1px solid color-mix(in srgb, var(--chip) 80%, var(--ink) 8%);
  padding: 0.42rem 0.9rem; border-radius: 999px; white-space: nowrap;
}

/* ============================================================
   PHOTO MARQUEE  (full-bleed WOW under services)
   ============================================================ */
.photo-marquee { padding: clamp(0.5rem, 2vw, 1.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.pm-label { text-align: center; margin-bottom: clamp(1rem, 2vw, 1.6rem); }
.pm-row { display: flex; overflow: hidden; margin-bottom: clamp(0.7rem, 1.5vw, 1.1rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pm-track { display: flex; gap: clamp(0.7rem, 1.5vw, 1.1rem); padding-right: clamp(0.7rem, 1.5vw, 1.1rem); flex-shrink: 0; animation: pm-scroll 48s linear infinite; will-change: transform; }
.pm-track--rev { animation-direction: reverse; }
.photo-marquee:hover .pm-track { animation-play-state: paused; }
.pm-item { flex: 0 0 auto; width: clamp(220px, 25vw, 330px); aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); }
.pm-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pm-item:hover img { transform: scale(1.06); }
@keyframes pm-scroll { to { transform: translateX(-50%); } }

/* conversion reassurance strip (subscriptions) */
.subs__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 3vw, 2.5rem); margin: 1.6rem 0 0; padding-top: 1.6rem; border-top: 1px solid rgba(26,18,8,0.1); }
.subs__trust span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 500; color: var(--graphite); }
.subs__trust svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--terracotta); fill: none; stroke-width: 2.2; }

/* ============================================================
   SECTIONS shell
   ============================================================ */
.section { padding: var(--sec-y) var(--pad-x); max-width: var(--max); margin-inline: auto; }
.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--light .section__title,
.section__head--light .section__lede { color: var(--bone); }
.section__head--light .eyebrow { color: var(--butter); }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.9rem, 1.5vw, 1.4rem); }
.services__grid--three { grid-template-columns: repeat(3, 1fr); }
.svc-card {
  position: relative; overflow: hidden;
  background: var(--svc); color: var(--fg);
  border-radius: var(--radius); padding: 1.7rem 1.5rem 1.5rem;
  min-height: 300px; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
}
.svc-card:hover { box-shadow: var(--shadow-pop); }
.svc-card__grain { position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: multiply; pointer-events: none; }
.svc-card__no { font-family: "Fraunces", serif; font-size: 0.8rem; opacity: 0.65; letter-spacing: 0.1em; }
.svc-card__icon { flex: 1; display: flex; align-items: center; padding: 0.6rem 0; }
.svc-card__icon svg { width: 58px; height: 58px; opacity: 0.28; }
.svc-card h3 { font-family: "Fraunces", serif; font-weight: 500; font-size: var(--fs-h3); line-height: 1.05; letter-spacing: -0.01em; }
.svc-card p { font-size: 0.9rem; line-height: 1.5; margin-top: 0.6rem; opacity: 0.92; }
.svc-card__link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 1.2rem; font-size: 0.82rem; font-weight: 600;
}
.svc-card__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.3s var(--ease); }
.svc-card__link:hover svg { transform: translateX(5px); }

/* ============================================================
   ABONNEMENTS
   ============================================================ */
.subs__intro { display: grid; grid-template-columns: 1fr 0.68fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.subs__intro .section__head { margin-bottom: 0; }
.subs__feature { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 5; }
.subs__feature img { width: 100%; height: 100%; object-fit: cover; }
.subs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); align-items: stretch; }
.plan {
  position: relative; background: var(--bone);
  border: 1px solid rgba(26,18,8,0.10);
  border-radius: var(--radius); padding: 2rem 1.7rem;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
/* featured plan — warm terracotta instead of black (feedback: less dark, more pep) */
.plan--featured { background: var(--terracotta); color: var(--bone); border-color: var(--terracotta); }
.plan--featured .plan__cadence, .plan--featured .plan__sub { color: rgba(246,238,222,0.75); }
.plan--featured .plan__desc { color: rgba(246,238,222,0.9); }
.plan--featured .plan__perks li { color: rgba(246,238,222,0.95); }
.plan--featured .plan__perks li::before { color: var(--butter); }

.plan__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--butter); color: var(--ink);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.plan__badge {
  display: inline-flex; align-self: flex-start;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  color: color-mix(in srgb, var(--c) 80%, var(--ink));
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.plan--featured .plan__badge { background: rgba(244,196,78,0.25); color: var(--butter); }
.plan--featured .plan__flag { background: var(--butter); }
.plan__name { font-family: "Fraunces", serif; font-weight: 500; font-size: 1.7rem; letter-spacing: -0.01em; }
.plan__cadence { font-size: 0.88rem; color: var(--stone); margin-top: 0.2rem; }
.plan__price { display: flex; align-items: baseline; gap: 0.35rem; margin: 1.1rem 0 0.2rem; }
.plan__price .num { font-family: "Fraunces", serif; font-weight: 600; font-size: 2.8rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan__price em { font-style: normal; font-size: 0.85rem; color: var(--stone); }
.plan--featured .plan__price em { color: rgba(246,238,222,0.6); }
.plan__sub { font-size: 0.78rem; color: var(--stone); }
.plan__desc { font-size: 0.9rem; color: var(--graphite); margin-top: 1rem; line-height: 1.5; }
.plan__perks { list-style: none; margin: 1.2rem 0 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; }
.plan__perks li { position: relative; padding-left: 1.5rem; font-size: 0.86rem; color: var(--graphite); }
.plan__perks li::before { content: "✿"; position: absolute; left: 0; top: 0; color: var(--terracotta); font-size: 0.8rem; }
.plan__cta { margin-top: auto; width: 100%; }

.subs__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.8rem, 1.5vw, 1.3rem); margin-top: 1.8rem; }
.subs__gift {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.3rem 1.6rem;
  background: var(--sky); border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.subs__gift--pro { background: var(--butter); }
.subs__gift:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.subs__gift-ic { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--bone); display: grid; place-items: center; font-size: 1.5rem; color: var(--terracotta); }
.subs__gift strong { display: block; font-size: 1rem; }
.subs__gift span { font-size: 0.85rem; color: var(--graphite); }
.subs__gift svg { margin-left: auto; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; flex-shrink: 0; }

/* ============================================================
   HOW IT WORKS  (process)
   ============================================================ */
.process__steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); counter-reset: step; }
.step { position: relative; }
.step__img { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-card); }
.step__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.step:hover .step__img img { transform: scale(1.05); }
.step__no { font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--terracotta); display: block; letter-spacing: -0.02em; margin-top: 1.1rem; }
.step h3 { font-family: "Fraunces", serif; font-weight: 500; font-size: var(--fs-h3); margin-top: 0.5rem; letter-spacing: -0.01em; }
.step p { font-size: 0.95rem; color: var(--graphite); margin-top: 0.6rem; line-height: 1.55; max-width: 32ch; }

/* ============================================================
   VIDEO BAND — the atelier, in the mountains
   ============================================================ */
.vband { position: relative; height: clamp(420px, 72vh, 760px); overflow: hidden; display: flex; align-items: flex-end; }
.vband__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vband__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,18,8,0.55), rgba(26,18,8,0.02) 55%); }
.vband__caption { position: relative; z-index: 2; padding: clamp(1.6rem, 5vw, 4rem); max-width: 860px; color: var(--bone); }
.band__eyebrow { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--butter); }
.band__line { font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(1.5rem, 1rem + 2.4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; margin-top: 0.6rem; text-wrap: balance; }
.band__line .ital { color: var(--salmon); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery__chapter { margin: clamp(2.6rem, 5vw, 4rem) 0 1.3rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.2rem; }
.gallery__chapter:first-of-type { margin-top: 0; }
.gallery__chapter h3 { font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); letter-spacing: -0.01em; color: var(--ink); }
.gallery__chapter h3 .ital { color: var(--terracotta); }
.gallery__chapter p { font-size: 0.95rem; color: var(--stone); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: clamp(0.8rem, 1.5vw, 1.3rem);
}
.gfig { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.gfig--tall { grid-row: span 2; }
.gfig--wide { grid-column: span 2; }
.gfig__img { position: absolute; inset: 0; overflow: hidden; }
.gfig__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); transform: scale(1.06); }
.gfig:hover .gfig__img img { transform: scale(1.14); }
.gfig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,18,8,0.6), rgba(26,18,8,0) 55%); }
.gfig figcaption { position: absolute; left: 1.2rem; bottom: 1.1rem; right: 1.2rem; z-index: 2; color: var(--bone); display: flex; flex-direction: column; }
.gfig__name { font-family: "Fraunces", serif; font-weight: 500; font-size: 1.3rem; letter-spacing: -0.01em; }
.gfig__tag { font-size: 0.78rem; opacity: 0.85; margin-top: 0.1rem; }

.gfig--palette { box-shadow: var(--shadow-card); }
.gfig--palette::after { background: linear-gradient(to top, rgba(26,18,8,0.45), transparent 55%); }
.palette-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }

/* ============================================================
   ATELIERS
   ============================================================ */
.ateliers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.ateliers__grid--three { grid-template-columns: repeat(3, 1fr); }
.ateliers__cta { display: flex; justify-content: center; margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.atelier {
  position: relative; background: var(--bone);
  border-radius: var(--radius); padding: 0;
  border: 1px solid rgba(26,18,8,0.10);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.atelier:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.atelier__img { height: 220px; overflow: hidden; position: relative; }
.atelier__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ac); }
.atelier__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.atelier:hover .atelier__img img { transform: scale(1.06); }
.atelier__body { padding: 1.8rem 2rem 2rem; }
.atelier__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.atelier__where { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ac); }
.atelier__price { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.5rem; }
.atelier__price em { font-style: normal; font-size: 0.8rem; color: var(--stone); }
.atelier h3 { font-family: "Fraunces", serif; font-weight: 500; font-size: var(--fs-h3); letter-spacing: -0.01em; }
.atelier p { font-size: 0.92rem; color: var(--graphite); margin-top: 0.6rem; line-height: 1.55; }
.atelier ul { list-style: none; margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.atelier li { position: relative; padding-left: 1.4rem; font-size: 0.86rem; color: var(--graphite); }
.atelier li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); }

/* ============================================================
   WEDDINGS — light, colourful, editorial (feedback: dedicated
   wedding story, more photos, no dark blocks)
   ============================================================ */
.wed { background: linear-gradient(180deg, transparent, rgba(230,164,196,0.14) 18%, rgba(230,164,196,0.14) 82%, transparent); }
.wed__intro { display: grid; grid-template-columns: 1fr 0.72fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.wed__intro .section__head { margin-bottom: 0; }
.wed__feature { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-pop); aspect-ratio: 4 / 5; }
.wed__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wed__feature:hover img { transform: scale(1.05); }
.wed__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,18,8,0.5), rgba(26,18,8,0) 45%); }
.wed__feature figcaption { position: absolute; left: 1.2rem; bottom: 1.1rem; right: 1.2rem; z-index: 2; color: var(--bone); display: flex; flex-direction: column; }

.wed__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 1.5vw, 1.3rem); }
.wfig { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 5; }
.wfig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wfig:hover img { transform: scale(1.06); }
.wfig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,18,8,0.55), rgba(26,18,8,0) 50%); }
.wfig figcaption { position: absolute; left: 1.2rem; bottom: 1.1rem; right: 1.2rem; z-index: 2; color: var(--bone); display: flex; flex-direction: column; }
.wfig[data-lightbox] { cursor: zoom-in; }

.wed__how { margin-top: clamp(2.5rem, 5vw, 4rem); }
.wed__steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); margin-top: 1.4rem; }
.wed__steps h3 { font-family: "Fraunces", serif; font-weight: 500; font-size: var(--fs-h3); margin-top: 0.4rem; letter-spacing: -0.01em; }
.wed__steps p { font-size: 0.95rem; color: var(--graphite); margin-top: 0.6rem; line-height: 1.6; max-width: 34ch; }
.wed__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: clamp(2rem, 4vw, 3rem); }
.wed__note { font-size: 0.9rem; color: var(--graphite); font-style: italic; font-family: "Instrument Serif", serif; }

/* ============================================================
   PHILOSOPHIE
   ============================================================ */
.philo__grid { display: grid; grid-template-columns: 0.78fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.philo__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-pop); aspect-ratio: 4 / 5; }
.philo__media img { width: 100%; height: 100%; object-fit: cover; }
.philo__inner { max-width: 620px; }
.philo__quote {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(1.8rem, 1rem + 4vw, 3.6rem);
  line-height: 1.1; letter-spacing: -0.02em; color: var(--ink);
  margin: 1.4rem 0 2rem; text-wrap: balance;
}
.philo__quote .ital { color: var(--terracotta); }
.reveal-word { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.philo.in .reveal-word { opacity: 1; transform: none; }
.philo__body { font-size: var(--fs-lede); color: var(--graphite); max-width: 56ch; margin: 0; line-height: 1.6; }
.philo__signature { margin-top: 2.4rem; display: flex; align-items: baseline; justify-content: flex-start; gap: 0.8rem; font-size: 1.6rem; color: var(--ink); }
.philo__signature em { font-family: "Instrument Serif", serif; font-style: italic; font-size: 1rem; color: var(--stone); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi__rail {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.5rem; margin: 0 calc(-1 * var(--pad-x)); padding-inline: var(--pad-x);
  scrollbar-width: none;
}
.testi__rail::-webkit-scrollbar { display: none; }
.quote {
  flex: 0 0 min(420px, 82vw); scroll-snap-align: start;
  background: var(--paper); border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column; gap: 0.9rem;
  border: 1px solid rgba(26,18,8,0.07);
}
.quote__stars { color: var(--terracotta); letter-spacing: 0.15em; font-size: 0.85rem; }
.quote blockquote { font-family: "Instrument Serif", serif; font-style: italic; font-size: 1.35rem; line-height: 1.35; color: var(--ink); }
.quote figcaption { margin-top: auto; }
.quote figcaption strong { display: block; font-size: 0.92rem; }
.quote figcaption span { font-size: 0.8rem; color: var(--stone); }
.testi__note { font-size: 0.78rem; color: var(--stone); font-style: italic; }

/* ============================================================
   APP — one link, at the end of the journey (site converts,
   the app manages: no duplicated features here)
   ============================================================ */
.apps { padding-top: 0; }
.apps__band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem; padding: clamp(2rem, 4vw, 3.2rem);
  background: var(--sky); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.apps__title { font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin-top: 0.5rem; }
.apps__lede { font-size: 1rem; color: var(--graphite); max-width: 52ch; margin-top: 0.7rem; }
.apps__btn { flex-shrink: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.contact__photo { margin-top: 1.8rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 3; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.contact__photo:hover img { transform: scale(1.05); }

.contact__channels { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact__channels li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact__lbl { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.contact__channels a { font-size: 1.05rem; color: var(--ink); transition: color 0.25s; width: fit-content; }
.contact__channels a:hover { color: var(--terracotta); }

.contact__form { background: var(--paper); border-radius: var(--radius); padding: 2rem; border: 1px solid rgba(26,18,8,0.07); }
.field { margin-bottom: 1.1rem; }
/* conditional detail groups (wedding / workshop / subscription) */
.field-group {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.9rem;
  padding: 1rem 1rem 0.2rem; margin-bottom: 1.1rem;
  background: var(--bone); border: 1px dashed rgba(181,72,30,0.35); border-radius: 14px;
}
.field-group .field { grid-column: 1 / -1; }
.field-group .field--half { grid-column: auto; }
.field-group[hidden] { display: none; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--graphite); margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bone);
  border: 1px solid rgba(26,18,8,0.14); border-radius: 12px;
  padding: 0.8rem 1rem; font-size: 0.95rem; color: var(--ink); font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(181,72,30,0.12);
}
.field input.invalid, .field textarea.invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.contact__submit { width: 100%; margin-top: 0.4rem; }
.contact__form-msg { font-size: 0.88rem; color: var(--moss); margin-top: 0.8rem; min-height: 1.1em; }

/* ============================================================
   FOOTER — cream & colour, no more black block
   ============================================================ */
.footer {
  background: linear-gradient(180deg, var(--paper), var(--cream));
  color: var(--ink);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--terracotta), var(--butter), var(--rose), var(--sky)) 1;
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x) 2rem;
}
.footer__top { max-width: var(--max); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(26,18,8,0.12); }
.footer__logo { font-size: 2rem; color: var(--ink); }
.footer__tag { font-family: "Instrument Serif", serif; font-style: italic; font-size: 1.25rem; color: var(--graphite); }
.footer__cols { max-width: var(--max); margin: 2.5rem auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer__cols h4 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 1rem; }
.footer__cols a, .footer__cols span { display: block; font-size: 0.9rem; color: var(--graphite); margin-bottom: 0.5rem; transition: color 0.25s; }
.footer__cols a:hover { color: var(--terracotta); }
.footer__bottom { max-width: var(--max); margin: 3rem auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; color: var(--stone); }

/* ============================================================
   REVEAL animations (JS toggles .in)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

.reveal-mask span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.reveal-mask.in span { transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid--three { grid-template-columns: repeat(3, 1fr); }
  .subs__grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .subs__row { grid-template-columns: 1fr; }
  .ateliers__grid--three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__media { aspect-ratio: 16 / 11; max-height: 44vh; }
  .subs__intro { grid-template-columns: 1fr; }
  .subs__feature { aspect-ratio: 16 / 9; max-height: 320px; }
  .wed__intro { grid-template-columns: 1fr; }
  .wed__feature { aspect-ratio: 16 / 10; max-height: 46vh; }
  .wed__gallery { grid-template-columns: repeat(3, 1fr); }
  .wed__steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .philo__grid { grid-template-columns: 1fr; }
  .philo__media { aspect-ratio: 4 / 5; max-height: 62vh; order: -1; }
  .apps__band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .contact__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-auto-rows: 200px; }
  .services__grid--three { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .services__grid { grid-template-columns: 1fr; }
  .ateliers__grid, .ateliers__grid--three { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; gap: 2rem; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gfig--wide { grid-column: span 2; }
  .wed__gallery { grid-template-columns: 1fr; }
  .wfig { aspect-ratio: 4 / 3; }
  .field-group { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  /* keep the floating CTA compact on small screens */
  .fab-book { font-size: 0.8rem; padding: 0.75rem 1.1rem; }
}

@media (max-width: 420px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* ============================================================
   FULL-WIDTH OVERRIDES (desktop only)
   ============================================================ */
@media (min-width: 861px) {
  .gallery {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .gallery .section__head,
  .gallery .gallery__chapter {
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }
  .gallery__grid {
    border-radius: 0;
  }
  .gallery .gfig:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
  .gallery .gfig:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
}

/* ============================================================
   SCROLL PROGRESS  (top hairline)
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9500;
  pointer-events: none; background: rgba(26,18,8,0.06);
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--terracotta), var(--butter), var(--rose));
}

/* ============================================================
   FLOATING "BOOK AN APPOINTMENT" — always one tap away
   ============================================================ */
.fab-book {
  position: fixed; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 7000;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--terracotta); color: var(--bone);
  font-size: 0.88rem; font-weight: 600;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s;
}
.fab-book.show { opacity: 1; transform: none; pointer-events: auto; }
.fab-book:hover { background: #9c3d18; transform: translateY(-2px); }
.fab-book span { font-size: 1rem; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 7000; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--bone);
  display: grid; place-items: center;
  box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--terracotta); transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   GALLERY — clickable affordance
   ============================================================ */
.gfig[data-lightbox] { cursor: zoom-in; }
.gfig[data-lightbox]:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
.gfig__zoom {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(246,238,222,0.9); color: var(--ink);
  opacity: 0; transform: scale(0.8); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gfig__zoom svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gfig[data-lightbox]:hover .gfig__zoom,
.gfig[data-lightbox]:focus-visible .gfig__zoom { opacity: 1; transform: none; }
.pm-item { cursor: zoom-in; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 9800;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(20,14,6,0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__stage {
  position: relative; max-width: min(1100px, 92vw); max-height: 86vh;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
}
.lightbox__img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-pop);
  transform: scale(0.96); opacity: 0.6; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.lightbox.open .lightbox__img { transform: none; opacity: 1; }
.lightbox__img.swap { animation: lbFade 0.4s var(--ease); }
@keyframes lbFade { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.lightbox__cap {
  color: var(--bone); text-align: center; display: flex; flex-direction: column; gap: 0.15rem;
}
.lightbox__cap strong { font-family: "Fraunces", serif; font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; }
.lightbox__cap span { font-size: 0.82rem; color: rgba(246,238,222,0.7); }
.lightbox__close,
.lightbox__nav {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(246,238,222,0.12); color: var(--bone);
  transition: background 0.25s, transform 0.25s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(246,238,222,0.28); }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__nav--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox__count {
  position: absolute; bottom: clamp(1rem, 3vw, 2rem); left: 50%; transform: translateX(-50%);
  color: rgba(246,238,222,0.7); font-size: 0.78rem; letter-spacing: 0.1em; font-variant-numeric: tabular-nums;
}
@media (max-width: 680px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 0.4rem; }
  .lightbox__nav--next { right: 0.4rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .reveal-word { opacity: 1 !important; transform: none !important; }
  .reveal-mask span { transform: none !important; }
  .pm-track { animation: none; }
  .pm-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .hero__vanta { display: none; }
  /* the mountain video stays on its poster frame */
  .vband__video { display: none; }
  .vband { background: url("../assets/flowers/atelier-montagne.jpg") center/cover no-repeat; }
}
