/* Self-hosted variable fonts — latin subsets pulled from the css2 endpoint.
   Fraunces is variable (one file covers 300–700); preload only the upright. */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-italic-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* ============================================================================
 * sections.css — Studio 72 section library
 * Pairs with assets/sections.js. Swap the tokens; keep the behaviour.
 *
 * Contrast note: every default below is AA-checked against --bg.
 * --muted is #8a8076 (5.11:1), NOT #6b6b6b (3.78:1 — fails).
 * ========================================================================== */

:root {
  --bg: #0b0a09;
  --surface: #131110;
  --text: #f3ede2;
  --muted: #8a8076;              /* AA on --bg and --surface. Do not darken. */
  --stroke: #221f1b;
  --accent: #c2a15a;
  --accent-rgb: 194, 161, 90;
  --accent-ink: #0a0a08;         /* text colour that passes ON --accent */
  --ok: #4caf7d;
  --warn: #e0855e;               /* 4.6:1 on --bg */
  --r: 10px;
  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html, body { overflow-x: clip; }   /* clip, never hidden — hidden kills sticky */

/* --- no-JS / reduced-motion baseline --------------------------------------
   Content is visible by default. JS adds .js, which is what enables the
   hidden-then-revealed states. A JS failure degrades to a readable page. */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1),
              transform .9s cubic-bezier(.34,1.45,.4,1);
}
.js .reveal.in { opacity: 1; transform: none; }
.js.reduced-motion .reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- accessibility utilities ---------------------------------------------- */
.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;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 9999; padding: .75rem 1rem;
  background: var(--text); color: var(--bg); border-radius: var(--r);
}
/* The UA focus ring is invisible on dark themes — replace it, never remove it. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- micro-labels: the usual contrast offender ---------------------------- */
.eyebrow {
  font-size: .7rem;              /* not 9px — at 0.3em tracking that is unreadable */
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Text over photography or video needs a guaranteed floor, not a hope. */
.media-overlay { position: relative; }
.media-overlay::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 55%, transparent 100%);
}
.media-overlay > * { position: relative; z-index: 1; }

/* --- nav ------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--stroke);
}
.nav__menu { display: flex; gap: 1.6rem; align-items: center; }
.nav__toggle { display: none; }
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center;
    background: var(--bg);
    transform: translateY(-100%);
    transition: transform .45s cubic-bezier(.16,1,.3,1);
  }
  .nav.is-open .nav__menu { transform: none; }
}

/* --- marquee -------------------------------------------------------------- */
.marquee { display: flex; overflow: hidden; gap: 0; user-select: none; }
.marquee__row {
  display: flex; gap: 3rem; flex: 0 0 auto; padding-right: 3rem;
  animation: marquee var(--marquee-duration, 28s) linear infinite;
}
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee:hover .marquee__row,
.reduced-motion .marquee__row { animation-play-state: paused; }

/* --- cards + cursor glow --------------------------------------------------- */
.card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r);
}
[data-glow]::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              rgba(var(--accent-rgb), .18), transparent 62%);
}
[data-glow]:hover::before { opacity: 1; }
[data-glow] > * { position: relative; z-index: 1; }

/* --- carousel -------------------------------------------------------------- */
[data-carousel-track] { position: relative; }
[data-carousel-track] > * {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
  transform: translateY(8px);
}
[data-carousel-track] > .is-active { position: relative; opacity: 1; visibility: visible; transform: none; }
.carousel__dot {
  width: 8px; height: 8px; padding: 0; border-radius: 50%;
  border: 1px solid var(--muted); background: transparent; cursor: pointer;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.carousel__dot.is-on { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }

/* --- tabs ------------------------------------------------------------------ */
[role="tab"] {
  background: none; border: 0; border-bottom: 1px solid transparent;
  color: var(--muted); cursor: pointer; padding: .6rem .2rem; font: inherit;
  transition: color .3s ease, border-color .3s ease;
}
[role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
[role="tabpanel"] { opacity: 0; transition: opacity .55s ease; }
[role="tabpanel"].is-active { opacity: 1; }
[role="tabpanel"][hidden] { display: none; }

/* --- overlay: modal + slide-in panel --------------------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  display: flex; opacity: 0;
  background: rgba(0,0,0,.72);
  transition: opacity .35s ease;
}
.overlay.is-open { opacity: 1; }
.overlay[hidden] { display: none; }
.overlay__panel {
  background: var(--surface); overflow-y: auto;
  transform: translateY(14px) scale(.97);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.overlay.is-open .overlay__panel { transform: none; }
/* slide-in drawer variant */
.overlay--drawer { justify-content: flex-end; }
.overlay--drawer .overlay__panel {
  width: min(560px, 100%); height: 100%; border-radius: 0;
  transform: translateX(100%);
}
.overlay--drawer.is-open .overlay__panel { transform: none; }
.overlay--drawer[data-side="left"] { justify-content: flex-start; }
.overlay--drawer[data-side="left"] .overlay__panel { transform: translateX(-100%); }
.overlay--drawer[data-side="left"].is-open .overlay__panel { transform: none; }
/* centred modal variant */
.overlay--modal { align-items: center; justify-content: center; padding: 1.2rem; }
.overlay--modal .overlay__panel {
  width: min(900px, 100%); max-height: 88vh; border-radius: var(--r);
}
/* stat bars inside a panel, animated by CSS on open */
.statbar { height: 3px; background: var(--stroke); border-radius: 2px; overflow: hidden; }
.statbar > i {
  display: block; height: 100%; width: 0; background: var(--accent);
  transition: width .8s cubic-bezier(.16,1,.3,1) .15s;
}
.overlay.is-open .statbar > i { width: var(--val, 0%); }

/* --- booking --------------------------------------------------------------- */
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cal__dows, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dows { color: var(--muted); font-size: .65rem; text-align: center; letter-spacing: .1em; }
.cal__day {
  aspect-ratio: 1; border: 1px solid var(--stroke); border-radius: 8px;
  background: transparent; color: var(--text); font: inherit; font-size: .85rem; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.cal__day:hover:not(:disabled) { border-color: var(--accent); }
.cal__day.is-today { border-color: var(--accent); color: var(--accent); }
.cal__day.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cal__day.is-off, .cal__day:disabled { opacity: .3; cursor: not-allowed; }
.cal__pad { aspect-ratio: 1; }
.slot__group { color: var(--muted); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; margin: 1rem 0 .5rem; }
.slot__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.slot {
  padding: .6rem .4rem; border: 1px solid var(--stroke); border-radius: 8px;
  background: transparent; color: var(--text); font: inherit; font-size: .8rem; cursor: pointer;
}
.slot.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slot.is-off, .slot:disabled { opacity: .3; cursor: not-allowed; }
.slot__hint { color: var(--muted); font-size: .85rem; }
.booking__status { min-height: 1.4em; font-size: .9rem; }
.booking__status.is-warn { color: var(--warn); }
.booking__status.is-ok { color: var(--ok); }
form.is-sent .booking__fields { display: none; }

/* 16px minimum on mobile or iOS zooms the whole page on focus */
input, select, textarea {
  font: inherit; font-size: 16px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--stroke); border-radius: 8px; padding: .8rem 1rem;
}
@media (min-width: 768px) { input, select, textarea { font-size: .9rem; } }
label { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }

/* --- configurator ---------------------------------------------------------- */
/* A <button> does NOT inherit colour or font. Left alone on a dark card it
   renders as near-black system text — a 1.1:1 contrast failure that looks
   like a styling slip and reads as unusable. */
[data-option] {
  cursor: pointer;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  transition: border-color .25s ease, background .25s ease;
}
[data-option][aria-pressed="true"] { border-color: var(--accent); background: rgba(var(--accent-rgb), .09); }
[data-config-lines] { list-style: none; margin: 0; padding: 0; }
[data-config-lines] li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--stroke); }
[data-config-lines] li.is-empty { color: var(--muted); border-bottom: 0; }
.config__ghost {
  position: fixed; z-index: 200; pointer-events: none; margin: 0;
  animation: config-fly .72s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes config-fly {
  45%  { transform: translate(calc(var(--dx) * .45), calc(var(--dy) * .45 - 60px)) scale(.55); opacity: .9; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; }
}

/* --- horizontal scroll ----------------------------------------------------- */
[data-hscroll-track] {
  display: flex;
  transition: transform .75s cubic-bezier(.16,1,.3,1);
}
[data-hscroll-track] > * { flex: 0 0 100vw; }
[data-hscroll].is-pinned > [data-hscroll-track] {
  position: sticky; top: 0; height: 100svh; align-items: center;
}
/* below the breakpoint (and under reduced motion) it is a native swipe strip */
[data-hscroll]:not(.is-pinned) > [data-hscroll-track] {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  transform: none !important;
}
[data-hscroll]:not(.is-pinned) > [data-hscroll-track] > * {
  flex-basis: 86vw; scroll-snap-align: center;
}

/* --- steps: pinned stat-reveal ---------------------------------------------
   The Relats pattern: the section is tall (60–90vh per step), the stage is
   sticky, and .is-active swaps the jumbo claims. */
[data-steps-stage] {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
[data-step] {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(22px) scale(.985);
  transition: opacity .55s ease, transform .7s cubic-bezier(.05,.76,.38,1.015);
  /* that bezier's 1.015 overshoot is lifted from a shipped award site */
  text-align: center; pointer-events: none;
}
[data-step].is-active { opacity: 1; transform: none; pointer-events: auto; }
[data-step] .jumbo {
  font-size: clamp(3rem, 11vw, 10rem); line-height: .92; letter-spacing: -.02em;
}

/* --- fx-layer host ----------------------------------------------------------
   The CSS fallback IS the design: when WebGL is missing, reduced, or the
   valve floors out, this gradient is what users see. Always set it. */
[data-fx="background"] {
  background:
    radial-gradient(90% 70% at 62% 38%, rgba(var(--accent-rgb), .12), transparent 60%),
    linear-gradient(178deg, var(--bg) 0%, var(--surface) 55%, var(--bg) 100%);
}
.fx-media-wrap > canvas { border-radius: inherit; }

/* --- filter grid ----------------------------------------------------------- */
[data-filter-cat] { cursor: pointer; }
[data-filter-cat][aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
[data-item][hidden] { display: none; }
/* ============================================================================
 * hero-scroll.css — Studio 72 canvas scroll-scrub hero
 * Pair with assets/hero-scroll.js. Swap the tokens for the site's own.
 * ========================================================================== */

:root {
  --hero-bg: #07070a;
  --hero-text: #f5f5f0;
  --hero-muted: #6b6b6b;
  --hero-stroke: #1c1c21;
  --hero-accent: #c9a24b;
  --hero-accent-rgb: 201, 162, 75;
}

/* --- THE ONE RULE THAT BREAKS STICKY ---------------------------------------
   overflow-x:hidden on html/body (or ANY ancestor of .hero-stage) silently
   creates a scroll container and kills position:sticky. Zero console errors —
   the stage just scrolls away and the hero looks broken. Use clip. */
html, body { overflow-x: clip; }

/* --- track + stage --------------------------------------------------------- */
.hero-film {
  position: relative;
  /* Height = scroll distance. ~3–3.5vh per frame. 200 frames -> 700vh.
     Set this from the frame count, not by feel. */
  height: 700vh;
  background: var(--hero-bg);
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;              /* svh, not vh — mobile URL bar */
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-bg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-canvas.is-on { opacity: 1; }

/* Instant-hero splash: the preloaded f_001 painted as a background so the LCP
   element exists before any JS runs. Removed by the engine on first decode. */
.hero-instant {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-bg) center/cover no-repeat;
  pointer-events: none;
}

.hero-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-poster.is-on { opacity: 1; }

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%),
    linear-gradient(rgba(0,0,0,.55), transparent 30%, transparent 72%, rgba(0,0,0,.5));
}

/* --- scroll-linked copy bands ---------------------------------------------
   <div class="hero-band" data-hero-band="0.04" data-hero-half="0.05" data-hero-fade="0.04">
   center / plateau half-width / ramp, all in track-progress units. */
.hero-band {
  position: absolute;
  z-index: 4;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 90vw);
  text-align: center;
  padding: 0 1.2rem;
  pointer-events: none;              /* the block is decoration… */
  will-change: opacity, transform;
}
.hero-band .hero-cta,
.hero-band a,
.hero-band button { pointer-events: auto; }   /* …its controls are not */

.hero-band[data-pos="top"]    { top: clamp(5rem, 12vh, 9rem); }
.hero-band[data-pos="center"] { top: 50%; }
.hero-band[data-pos="center"] { transform: translate(-50%, -50%); }
.hero-band[data-pos="bottom"] { bottom: clamp(5rem, 12vh, 9rem); }

.hero-wordmark {
  width: min(600px, 78vw);
  height: auto;
  filter: drop-shadow(0 4px 30px rgba(0,0,0,.5));
}
.hero-eyebrow {
  font-size: clamp(.62rem, .8vw, .72rem);
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--hero-accent);
}
.hero-headline {
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  line-height: .95;
  color: var(--hero-text);
  margin: .6em 0 .4em;
}

/* --- scroll cue ------------------------------------------------------------ */
.hero-cue {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(2rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-size: .62rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--hero-muted);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.hero-cue.is-on { opacity: 1; }

/* --- entry gate ------------------------------------------------------------ */
.hero-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  gap: 1.4rem;
  justify-items: center;
  background: var(--hero-bg);
  transition: opacity .7s ease;
}
.hero-gate.is-gone { opacity: 0; pointer-events: none; }

.hero-gate__btn {
  position: relative;
  width: 116px; height: 116px;
  border-radius: 50%;
  border: 1px solid rgba(var(--hero-accent-rgb), .5);
  background: transparent;
  color: var(--hero-text);
  font: inherit;
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .35;
  transition: opacity .4s ease;
}
.hero-gate.is-ready .hero-gate__btn { opacity: 1; }
.hero-gate__btn[disabled] { cursor: progress; }
.hero-gate.is-ready .hero-gate__meta { opacity: .5; }
.hero-gate__btn::after {
  content: "";
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(var(--hero-accent-rgb), .28);
  animation: hero-gate-ring 2.6s ease-out infinite;
}
@keyframes hero-gate-ring {
  0%   { transform: scale(.9);  opacity: .8; }
  100% { transform: scale(1.25); opacity: 0; }
}

.hero-gate__meta {
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--hero-muted);
}
.hero-gate__track {
  width: min(280px, 60vw);
  height: 1px;
  background: var(--hero-stroke);
  overflow: hidden;
}
.hero-gate__bar {
  height: 100%;
  background: var(--hero-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s linear;
}

/* --- static tier: reduced-motion, save-data, no canvas --------------------- */
body.hero-static .hero-film   { height: 100svh; }
body.hero-static .hero-stage  { position: relative; }
body.hero-static .hero-cue    { display: none; }
body.hero-static .hero-band   { opacity: 1 !important; visibility: visible !important; }
body.hero-static .hero-band:not([data-hero-static="keep"]) { display: none; }
body.hero-static .hero-band[data-hero-static="keep"] {
  position: absolute; top: 50%; transform: translate(-50%, -50%) !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-canvas, .hero-poster, .hero-gate, .hero-cue { transition: none; }
  .hero-gate__btn::after { animation: none; }
}
/* ============================================================================
   Casa Lanzetti — design tokens
   Palette rule (BUILD_DOCTRINE §7 / V2 brief §4): desaturated warm field,
   darks tinted toward the WORLD — and this world is GREEN (the oil,
   the basil, the kitchen walls). Deep-olive darks, cream field,
   ONE scarce saturated accent — olive-oil gold. Terracotta lives only in the
   brand dot; basil green is world colour inside photography, never UI accent.
   ========================================================================== */
:root {
  /* field */
  --paper: #FBF6EC;
  --stone: #F1E8DA;

  /* darks — deep-olive family (v1 heritage: olive #2B3427, olive-deep #1D241A) */
  --olive-deep: #1D241A;
  --olive: #2B3427;

  /* text */
  --ink: #212A20;            /* on light — green-tinted, never grey-black */
  --cream: #FBF6EC;          /* on dark */
  --muted: #5C6852;          /* on light — ≥4.5:1 on BOTH --paper and --stone */
  --muted-dark: #B7C0A8;     /* on dark — ≥4.5:1 on BOTH --olive-deep and --olive */

  /* THE accent — olive-oil gold. Scarce: CTA, price ticker, one rule line. */
  --accent: #B78A3C;
  --accent-rgb: 183, 138, 60;
  --accent-deep: #7E5D24;    /* text-safe on paper AND hover state */

  /* world colours — photography + illustration fills only, never UI accent */
  --basil: #4A6741;
  --terracotta: #BD5A34;     /* the wordmark dot */

  /* type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --text-base: clamp(1rem, .95rem + .3vw, 1.125rem);
  --text-lg: clamp(1.25rem, 1.1rem + .8vw, 1.75rem);
  --text-h2: clamp(2rem, 1.4rem + 3vw, 3.75rem);
  --text-hero: clamp(2.6rem, 1.2rem + 6.5vw, 7rem);
  --eyebrow-track: .22em;

  /* rhythm */
  --space-section: clamp(4.5rem, 3rem + 6vw, 10rem);
  --space-band: clamp(2.5rem, 2rem + 3vw, 5rem);
  --radius: 14px;
  --radius-pill: 999px;

  /* motion — one easing family sitewide (transition layer + flights) */
  --ease-slit: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --overshoot: cubic-bezier(.05, .76, .38, 1.015);
  --dur-fast: 150ms;
  --dur-flight: 620ms;
  --dur-slit: 640ms;

  /* layout */
  --nav-h: 62px;
  --max-w: 1200px;

  /* sections.css consumers */
  --bg: var(--paper);
  --surface: var(--stone);
  --text: var(--ink);
  --stroke: #DFD8C4;
  --accent-ink: #212A20;     /* text ON the gold accent */
  --ok: #3D6B4F;
  --warn: #9A4E2C;
  --r: 12px;
}

/* Dark-scoped sections re-derive the consumer tokens so every component
   (and the --muted contrast contract) holds in both worlds. */
.theme-dark {
  --bg: var(--olive-deep);
  --surface: var(--olive);
  --text: var(--cream);
  --muted: var(--muted-dark);
  --stroke: #3E4A38;
  --ok: #7FBF97;
  --warn: #E0855E;
  color: var(--text);
  background: var(--bg);
}
/* ============================================================================
   Casa Lanzetti — page styles. Loads after sections.css + tokens.css.
   Layers: layout · nav pill · hero furniture · sections 03–12 · idle-life ·
   aperture transition grammar · configurator flights · reduced-motion tiers.
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-lg); }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
section { padding-block: var(--space-section); }
section[id] { scroll-margin-top: calc(var(--nav-h) + 1.2rem); }

/* Eyebrows: sections.css defaults them to --accent, which fails AA on the
   light field at small sizes. Deep gold on light; bright gold only on dark. */
.eyebrow { color: var(--accent-deep); }
.theme-dark .eyebrow { color: var(--accent); }

/* media scrim (the audit's dialog heuristic keys on class*="overlay") */
.media-scrim { position: relative; }
.media-scrim::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(19,24,17,.78) 0%, rgba(19,24,17,.35) 55%, transparent 100%);
}
.media-scrim > * { position: relative; z-index: 1; }
.section-head { max-width: 46rem; margin-bottom: var(--space-band); }
.section-head .eyebrow { display: block; margin-bottom: .9rem; }
.lede { font-size: var(--text-lg); font-family: var(--font-display); font-style: italic; font-weight: 420; color: var(--muted); }

/* The one accent rule line — breathing (idle primitive 4) */
.rule-accent {
  width: 64px; height: 2px; border: 0; margin: 1.2rem 0;
  background: var(--accent); opacity: .85;
}

/* Buttons — 44px minimum touch target everywhere */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .75rem 1.6rem;
  border: 1px solid var(--stroke); border-radius: var(--radius-pill);
  font: 600 .95rem/1 var(--font-body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; color: var(--text); background: transparent;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease,
              border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------------------------------------------------------------------------
   01 · NAV — glass pill, adaptive per section, wordmark swap on dark
   Doctrine §8: blur must NEVER sit on .nav (it becomes the containing block
   for the fixed mobile menu). It lives on .nav__pill::before.
   ------------------------------------------------------------------------- */
.nav { padding: .8rem clamp(.8rem, 3vw, 2rem); border-bottom: 0 !important; }
.nav.is-scrolled { background: transparent; backdrop-filter: none; border-bottom: 0; }
.nav__pill {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  width: min(100%, 880px); margin-inline: auto;
  padding: .45rem .55rem .45rem 1.1rem;
  border-radius: var(--radius-pill);
  position: relative; isolation: isolate;
  border: 1px solid transparent;
  background-color: var(--paper);   /* real bg so text contrast is computable */
  transition: border-color .35s ease, background-color .35s ease;
}
.nav--on-dark .nav__pill { background-color: var(--olive-deep); }
.nav__pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; opacity: 0; transition: opacity .35s ease;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav.is-scrolled .nav__pill { border-color: rgba(0,0,0,.08); }
.nav.is-scrolled .nav__pill::before { opacity: 1; }
.nav--on-dark .nav__pill::before { background: color-mix(in srgb, var(--olive-deep) 62%, transparent); }
.nav--on-dark.is-scrolled .nav__pill { border-color: rgba(255,255,255,.12); }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav__brand img { height: 20px; width: auto; }
.nav__brand .wm-dark { display: block; }
.nav__brand .wm-light { display: none; }
.nav--on-dark .wm-dark { display: none; }
.nav--on-dark .wm-light { display: block; }
.nav__menu a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.nav--on-dark .nav__menu a { color: var(--cream); }
.nav__menu a:not(.btn):hover { color: var(--accent-deep); }
.nav--on-dark .nav__menu a:not(.btn):hover { color: var(--accent); }
.nav__toggle { font: 600 .85rem/1 var(--font-body); min-height: 44px; min-width: 44px;
  background: none; border: 1px solid var(--stroke); border-radius: var(--radius-pill);
  padding: .5rem 1rem; cursor: pointer; color: var(--ink); }
.nav--on-dark .nav__toggle { color: var(--cream); border-color: rgba(255,255,255,.25); }
@media (max-width: 860px) {
  .nav__menu { background: var(--paper); z-index: -1; }
  .nav__menu a { color: var(--ink) !important; font-size: 1.3rem; }
  .nav.is-open .nav__toggle { color: var(--ink); }
}

/* ---------------------------------------------------------------------------
   02 · HERO — furniture over the film canvas
   ------------------------------------------------------------------------- */
.hero-film { height: 700vh; }
/* splash frame per breakpoint — matching the <head> preload hints; never an
   inline desktop path (mobile would download a 1920px frame it never shows) */
.hero-instant { background-image: url('/assets/frames/chef/f_001.webp'); }
@media (max-width: 768px) {
  .hero-instant { background-image: url('/assets/frames/chef-mobile/f_001.webp'); }
}
.hero-band h1 { font-size: var(--text-hero); margin: 0; } /* h1 must not be out-sized by the payoff h2 */
.hero-eyebrow { font-size: .72rem; letter-spacing: var(--eyebrow-track); text-transform: uppercase; color: var(--cream); opacity: .85; margin-bottom: 1rem; }
.hero-wordmark { height: clamp(42px, 8vw, 92px); width: auto; margin-inline: auto; }
.hero-headline { font-family: var(--font-display); font-size: var(--text-hero); color: var(--cream); margin: .4em 0; }
.hero-band p { color: var(--cream); font-size: var(--text-lg); }
.hero-band .btn { pointer-events: auto; }
.hero-tagline { font-style: italic; font-weight: 420; }

/* chapter HUD readout (progress-driven) */
.hero-hud {
  position: absolute; left: clamp(1rem, 4vw, 3rem); bottom: 2.2rem; z-index: 5;
  font: 500 .68rem/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase;
  color: var(--cream); opacity: .72; pointer-events: none;
}

/* flour-mote idle canvas sits between film and copy */
.hero-motes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* ---------------------------------------------------------------------------
   03 · MENU — tabs + dotted leaders (brand pack motif)
   ------------------------------------------------------------------------- */
.menu-tabs [role="tablist"] { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--stroke); margin-bottom: 2.2rem; flex-wrap: wrap; }
.menu-tabs [role="tab"] { font-family: var(--font-display); font-size: 1.05rem; min-height: 44px; }
.menu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.4rem 3.5rem; }
.menu-group h3 { font-style: italic; font-weight: 480; color: var(--accent-deep); font-size: 1.15rem; margin-bottom: 1.1rem; }
.dish { margin-bottom: 1.15rem; }
.dish-top { display: flex; align-items: baseline; gap: .5rem; }
.dish-name { font-weight: 600; font-size: .98rem; }
.dish-name .v { font-size: .62rem; letter-spacing: .12em; color: var(--basil); border: 1px solid currentColor; border-radius: 4px; padding: .1em .35em; margin-left: .45em; vertical-align: middle; }
.dish-dots { flex: 1; border-bottom: 2px dotted var(--stroke); transform: translateY(-4px); }
.dish-price { font-family: var(--font-display); font-weight: 560; color: var(--accent-deep); }
.dish-desc { color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.menu-note { color: var(--muted); font-size: .85rem; margin-top: 2.4rem; font-style: italic; }

/* ---------------------------------------------------------------------------
   04 · CONFIGURATOR — build your board (the centrepiece)
   ------------------------------------------------------------------------- */
.board-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 920px) { .board-grid { grid-template-columns: 1.05fr .95fr; } }
.board-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.board-option {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0; overflow: hidden; text-align: left;
  border-radius: var(--radius);
}
.board-option .thumb { color: var(--accent-deep); }
.board-option img.thumb {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 0; display: block;
  transition: transform .45s var(--ease-out);
}
.board-option:hover img.thumb { transform: scale(1.035); }
.board-option .opt-copy { display: block; padding: .75rem .95rem .9rem; }
.board-option .opt-label { font-weight: 600; font-size: .95rem; display: block; }
.board-option .opt-price { color: var(--muted); font-size: .84rem; }
.board-option .v { font-size: .6rem; letter-spacing: .1em; color: var(--basil); margin-left: .4em; }
.board-option[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.board-option[aria-pressed="true"] .opt-label::after { content: " ✓"; color: var(--accent-deep); }

/* the board stage — items assemble here */
.board-stage { position: sticky; top: calc(var(--nav-h) + 1rem); }
.board-visual { position: relative; aspect-ratio: 4 / 3; }
.board-visual > svg.board-base { position: absolute; inset: 0; width: 100%; height: 100%; }
.board-item {
  position: absolute; width: 21%;
  filter: drop-shadow(0 6px 9px rgba(29, 36, 26, .30));
}
.board-summary { margin-top: 1.4rem; }
.board-totalchip {
  display: inline-flex; align-items: baseline; gap: .55rem;
  padding: .7rem 1.3rem; border-radius: var(--radius-pill);
  background: var(--olive-deep); color: var(--cream);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 560;
}
.board-totalchip .chip-label { font: 500 .62rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.board-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.3rem; }

/* flight clones (WAAPI-driven; the sections.js CSS ghost is retired) */
.config__ghost { display: none !important; }
.flight-clone { position: fixed; z-index: 220; pointer-events: none; margin: 0; will-change: transform, opacity; }

/* ---------------------------------------------------------------------------
   05 · EDITORIAL FULL-BLEED — the payoff still
   ------------------------------------------------------------------------- */
.editorial { padding: 0; position: relative; min-height: 82svh; display: flex; align-items: flex-end; overflow: hidden; }
.editorial img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; } /* .media-scrim > * lifts children to z-index 1 — the bg must stay under the ::after scrim */
.editorial .container { position: relative; z-index: 1; padding-block: var(--space-band); }
.editorial h2 { color: var(--cream); max-width: 11em; }
/* copy grounds left, the food stays readable right */
.editorial.media-scrim::after {
  background:
    linear-gradient(92deg, rgba(19,24,17,.9) 0%, rgba(19,24,17,.62) 38%, rgba(19,24,17,.26) 58%, transparent 76%),
    linear-gradient(to top, rgba(19,24,17,.72) 0%, rgba(19,24,17,.26) 40%, transparent 70%);
}

/* ---------------------------------------------------------------------------
   06 · STATS — numbered cards, count-up + scramble on entry
   ------------------------------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: .9rem; }
.stat-card { padding: 1.6rem 1.5rem 1.4rem; border-radius: var(--radius); }
.stat-card .idx { font: 500 .64rem/1 var(--font-body); letter-spacing: .2em; color: var(--muted); }
.stat-card .num { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 560; color: var(--accent); display: block; margin: .35rem 0 .2rem; }
.stat-card .lbl { color: var(--muted); font-size: .88rem; }

/* ---------------------------------------------------------------------------
   07 · PROCESS — full-viewport texture loop + numbered strip
   ------------------------------------------------------------------------- */
.process { position: relative; overflow: hidden; }
.process video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.process .container { position: relative; z-index: 1; }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; counter-reset: step; }
.process-step { border-top: 1px solid var(--stroke); padding-top: 1.1rem; }
.process-step .idx { font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.process-step h3 { font-size: 1.15rem; margin: .4rem 0 .3rem; }
.process-step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------------------------------------------------------------------------
   08 · SOURCING — focus panes (aperture door into the kitchen)
   ------------------------------------------------------------------------- */
.focus-panes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.pane {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 11;
  text-decoration: none; border-radius: 12px;
  background-color: var(--olive-deep);   /* real bg under the image for caption contrast */
  clip-path: inset(11% 9% 11% 9% round 18px);
  filter: blur(12px) brightness(.85); transform: scale(1.05);
  transition: clip-path .9s var(--ease-out), filter .9s var(--ease-out), transform .9s var(--ease-out);
}
.js .pane.in, html:not(.js) .pane { clip-path: inset(0 0 0 0 round 12px); filter: none; transform: none; }
.pane:nth-child(2) { transition-delay: .12s; }
.pane:nth-child(3) { transition-delay: .24s; }
.pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.pane:hover img, .pane:focus-visible img { transform: scale(1.045); }
.pane::after { content: ""; position: absolute; inset: 0; background: linear-gradient(185deg, transparent 30%, rgba(29,36,26,.88) 84%); }
.pane figcaption { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 1; color: var(--cream); }
.pane figcaption .t { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.pane figcaption .s { font-size: .78rem; opacity: .8; }
.reduced-motion .pane { clip-path: none; filter: none; transform: none; transition: none; }

/* ---------------------------------------------------------------------------
   09 · STORY — editorial one column beside one image
   ------------------------------------------------------------------------- */
.story-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 880px) { .story-grid { grid-template-columns: .9fr 1.1fr; } }
.story-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.story-grid blockquote { margin: 1.6rem 0 0; padding-left: 1.2rem; border-left: 2px solid var(--accent); font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--muted); }

/* specular sweep — idle primitive on the deli/story imagery */
.sweep { position: relative; overflow: hidden; }
.sweep::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 246, 224, .10) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: sweep 9s var(--ease-out) infinite;
}
@keyframes sweep { 12% { transform: translateX(130%); } 100% { transform: translateX(130%); } }
.reduced-motion .sweep::after { animation: none; display: none; }

/* ---------------------------------------------------------------------------
   10 · BOOKING
   ------------------------------------------------------------------------- */
.booking-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 960px) { .booking-grid { grid-template-columns: 1.1fr .9fr; } }
.booking-side { border-radius: var(--radius); padding: 1.8rem; }
.booking__fields { display: grid; gap: 1.1rem; }
.bk-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.cal__day, .slot { min-height: 44px; }
[data-booking-summary] { font-family: var(--font-display); font-style: italic; color: var(--accent-deep); min-height: 1.5em; }
.theme-dark [data-booking-summary] { color: var(--accent); }

/* ---------------------------------------------------------------------------
   11 · SOCIAL PROOF — real IG cards, no third-party JS
   ------------------------------------------------------------------------- */
.ig-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.ig-card { display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 1; background-color: var(--olive-deep); }
.ig-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.ig-card:hover img, .ig-card:focus-visible img { transform: scale(1.04); }
.ig-card .tag { position: absolute; left: .9rem; bottom: .8rem; z-index: 1; color: var(--cream); font-size: .74rem; letter-spacing: .06em; }
.ig-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(185deg, transparent 55%, rgba(29,36,26,.75) 92%); }

.marquee-band { padding-block: 1.6rem; border-block: 1px solid var(--stroke); }
.marquee__row span { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--muted); white-space: nowrap; }
.marquee__row .dot { color: var(--accent-deep); }

/* ---------------------------------------------------------------------------
   12 · FOOTER
   ------------------------------------------------------------------------- */
footer { padding: var(--space-band) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
footer h3 { font-size: 1rem; }
footer address { font-style: normal; color: var(--muted); font-size: .92rem; line-height: 1.8; }
footer a { color: inherit; }
footer .legal { color: var(--muted); font-size: .78rem; border-top: 1px solid var(--stroke); padding-top: 1.4rem; }

/* ---------------------------------------------------------------------------
   IDLE LIFE — prop drift ballet (RM-gated, luminance-quiet)
   ------------------------------------------------------------------------- */
.prop-drift { position: absolute; pointer-events: none; opacity: .5; will-change: transform; }
.prop-drift--leaf { animation: drift-arc 31s linear infinite; }
.prop-drift--glint { animation: drift-arc-2 23s linear infinite; }
@keyframes drift-arc {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(9vw, -3vh) rotate(40deg); }
  50%  { transform: translate(16vw, 2vh) rotate(-14deg); }
  75%  { transform: translate(7vw, 5vh) rotate(22deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes drift-arc-2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-11vw, -4vh) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}
.breathe { animation: breathe 13s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.reduced-motion .prop-drift, .reduced-motion .breathe { animation: none; }

/* ---------------------------------------------------------------------------
   TRANSITION GRAMMAR — the aperture slit (one vocabulary, everywhere)
   Panels collapse to a letterboxed bar and reopen. Pure clip-path.
   ------------------------------------------------------------------------- */
.js [role="tabpanel"].is-active { animation: aperture-open var(--dur-slit) var(--ease-slit); }
@keyframes aperture-open {
  0% { clip-path: inset(46% 0 46% 0); opacity: .4; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}
.reduced-motion [role="tabpanel"].is-active { animation: none; }

/* ---------------------------------------------------------------------------
   Reduced-motion + polish
   ------------------------------------------------------------------------- */
.reduced-motion .hero-motes { display: none; }
::selection { background: rgba(var(--accent-rgb), .3); }

/* doctrine §8: a class that sets display defeats the UA [hidden] rule */
.btn[hidden], [hidden] { display: none !important; }

/* Studio 72 credit: visible, not prominent (doctrine §15). */
.s72-credit { font-size: .78rem; opacity: .72; margin-top: .5rem; }
.s72-credit a { color: inherit; }
