/* ==========================================================================
   Antico Forno — Pinsa Romana
   Design system + site styles. No framework, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the Antico Forno badge -------------------------- */
  --ink:        #14120f;   /* badge black */
  --ink-2:      #1d1a16;
  --ink-3:      #2a2521;
  --gold:       #d4a24c;   /* badge lettering */
  --gold-deep:  #b8862f;
  --gold-soft:  #e8c887;
  --ember:      #b4381f;   /* oven fire / red wheat stalk */
  --basil:      #2e6b41;   /* green wheat stalk */
  --cream:      #f7f2e8;   /* 00 flour */
  --cream-2:    #efe6d6;
  --crust:      #c9a882;

  /* Semantic ------------------------------------------------------------- */
  --bg:            var(--cream);
  --bg-alt:        var(--cream-2);
  --bg-dark:       var(--ink);
  --surface:       #fffdf9;
  --text:          #211d18;
  --text-muted:    #6b6055;
  --text-invert:   #f5efe4;
  --text-invert-muted: rgba(245, 239, 228, .72);
  --accent:        var(--gold-deep);
  --accent-on-dark: var(--gold);
  --line:          rgba(33, 29, 24, .14);
  --line-invert:   rgba(245, 239, 228, .18);

  /* Type ----------------------------------------------------------------- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(.82rem, .79rem + .14vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + .4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.34rem + .78vw, 2.05rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.45vw, 2.9rem);
  --step-4:  clamp(2.35rem, 1.85rem + 2.5vw, 4.1rem);
  --step-5:  clamp(2.9rem, 2rem + 4.4vw, 5.9rem);

  /* Space ---------------------------------------------------------------- */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;
  --section-y: clamp(3.5rem, 2rem + 7vw, 8rem);
  --gutter:    clamp(1.15rem, .6rem + 2.4vw, 3rem);
  --measure:   68ch;
  --maxw:      1280px;
  --maxw-wide: 1560px;

  /* Shape + depth -------------------------------------------------------- */
  --r-sm: 6px;  --r-md: 12px;  --r-lg: 20px;  --r-xl: 32px;  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20,18,15,.06), 0 2px 8px rgba(20,18,15,.05);
  --shadow-md: 0 4px 12px rgba(20,18,15,.07), 0 12px 32px rgba(20,18,15,.08);
  --shadow-lg: 0 10px 28px rgba(20,18,15,.10), 0 28px 70px rgba(20,18,15,.13);

  /* Motion --------------------------------------------------------------- */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .4s;

  --nav-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, not hidden: `hidden` would turn <body> into a scroll container
     and break scroll position handling. */
  overflow-x: clip;
}

img, picture, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
p, li { text-wrap: pretty; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

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

::selection { background: var(--gold); color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}
.wrap--wide { width: min(100% - var(--gutter) * 2, var(--maxw-wide)); }
.wrap--narrow { width: min(100% - var(--gutter) * 2, 780px); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section--dark { background: var(--bg-dark); color: var(--text-invert); }
.section--alt  { background: var(--bg-alt); }

.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-invert); }
.section--dark .eyebrow { color: var(--accent-on-dark); }
.section--dark .lead, .section--dark p { color: var(--text-invert-muted); }

.skip-link {
  position: absolute; left: var(--sp-4); top: var(--sp-4);
  transform: translateY(-160%);
  z-index: 200;
  background: var(--ink); color: var(--text-invert);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

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

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1.5px;
  background: currentColor; opacity: .7;
}
.eyebrow--center::before { display: none; }

.h-display { font-size: var(--step-5); }
.h1 { font-size: var(--step-4); }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); }
.h4 { font-size: var(--step-1); }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: var(--measure);
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose strong { font-weight: 600; color: var(--text); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* Italic accent word — used for the "Romana" style flourish */
.script {
  font-style: italic;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  color: var(--accent);
}
.section--dark .script { color: var(--accent-on-dark); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--text-invert);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-3);
  padding: .85em 1.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--gold  { --btn-bg: var(--gold); --btn-fg: var(--ink); }
.btn--gold:hover { --btn-bg: var(--gold-soft); }
.btn--ember { --btn-bg: var(--ember); --btn-fg: #fff; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--text-invert); }
/* Any dark ground: hero, interior hero, CTA band, dark sections, footer */
.section--dark .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost,
.cta-band .btn--ghost,
.site-footer .btn--ghost {
  --btn-fg: var(--text-invert);
  box-shadow: inset 0 0 0 1.5px rgba(245, 239, 228, .38);
}
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.site-footer .btn--ghost:hover { --btn-bg: var(--cream); --btn-fg: var(--ink); }

.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.btn-row--center { justify-content: center; }

/* Text link with animated rule */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 600; font-size: var(--step--1);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1.5px; background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s var(--ease-out);
}
.link-arrow:hover { background-size: 0% 1.5px; background-position: 100% 100%; }
.link-arrow .arrow { transition: transform .3s var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              backdrop-filter .35s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(20,18,15,.72), rgba(20,18,15,0));
  transition: opacity .35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(20, 18, 15, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line-invert), var(--shadow-md);
}
.site-header.is-stuck::before { opacity: 0; }

.nav {
  width: min(100% - var(--gutter) * 2, var(--maxw-wide));
  margin-inline: auto;
  display: flex; align-items: center; gap: var(--sp-6);
}

.brand {
  display: flex; align-items: center; gap: var(--sp-3);
  text-decoration: none; color: var(--text-invert);
  flex-shrink: 0;
}
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem; font-weight: 600;
  line-height: 1.05; letter-spacing: -.01em;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex; align-items: center; gap: var(--sp-2);
  list-style: none; padding: 0; margin-left: auto;
}
.nav-links a {
  display: block;
  padding: .5rem .8rem;
  font-size: .88rem; font-weight: 500;
  color: var(--text-invert);
  text-decoration: none;
  border-radius: var(--r-pill);
  position: relative;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute;
  left: .8rem; right: .8rem; bottom: .3rem; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Language switch */
.lang-switch {
  display: flex; align-items: center;
  border: 1px solid var(--line-invert);
  border-radius: var(--r-pill);
  padding: 3px;
  background: rgba(255,255,255,.05);
}
.lang-switch button {
  padding: .3rem .7rem;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-invert-muted);
  border-radius: var(--r-pill);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.lang-switch button:hover:not([aria-pressed="true"]) { color: var(--text-invert); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-invert);
}
.nav-toggle span {
  display: block; position: relative;
  width: 22px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease-out), background-color .2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    margin: 0; padding: var(--sp-5) var(--gutter) var(--sp-7);
    background: rgba(20,18,15,.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line-invert);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease-out), visibility .3s;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links a {
    padding: .95rem .4rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-invert);
    border-radius: 0;
  }
  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: 0; }
}

@media (max-width: 420px) {
  .brand-name { font-size: .95rem; }
  .brand img { width: 40px; height: 40px; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid; align-items: end;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}

/* Brand film ------------------------------------------------------------
   The source carries 10px letterbox bars top and bottom (1.85% of a 540px
   frame). object-fit: cover alone will NOT remove them — the viewport is
   proportionally taller than 16:9, so cover scales by height and shows the
   full frame, bars included. The extra scale() crops them, and doubles as a
   slow push-in. */
.hero__media > img,
.hero__media > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
.hero__media > video {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  animation: heroDrift 26s var(--ease-out) infinite alternate;
}
.hero__media > video.is-playing { opacity: 1; }

/* The poster is the LCP. It sits underneath and simply stays if the video is
   blocked, still loading, or refused (autoplay policy, iOS Low Power Mode,
   data saver). */
.hero__poster { z-index: 0; }

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1%, -.6%, 0); }
}

/* Hero footer: stats on the left, film control on the right */
.hero__footer {
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between;
  gap: var(--sp-5);
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-invert);
}

/* Film control ---------------------------------------------------------- */
.hero__film { display: flex; align-items: center; gap: var(--sp-4); min-width: min(100%, 250px); }

.hero__film-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  min-height: 44px; padding: .4rem .2rem;
  color: var(--text-invert-muted);
  transition: color .25s var(--ease);
}
.hero__film-toggle:hover { color: var(--text-invert); }

.hero__film-icon {
  position: relative;
  display: grid; place-items: center;
  width: 30px; height: 30px; flex-shrink: 0;
  border: 1px solid var(--line-invert);
  border-radius: 50%;
  transition: border-color .25s var(--ease);
}
.hero__film-toggle:hover .hero__film-icon { border-color: var(--gold); }
/* Pause glyph while playing */
.hero__film-icon::before,
.hero__film-icon::after {
  content: ""; position: absolute;
  width: 2px; height: 10px; border-radius: 1px;
  background: var(--gold);
  transition: opacity .25s var(--ease);
}
.hero__film-icon::before { transform: translateX(-3px); }
.hero__film-icon::after  { transform: translateX(3px); }
/* Play triangle when paused */
[aria-pressed="false"] .hero__film-icon::before {
  width: 0; height: 0; border-radius: 0;
  background: transparent;
  border-left: 8px solid var(--gold);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translateX(1px);
}
[aria-pressed="false"] .hero__film-icon::after { opacity: 0; }

.hero__film-label {
  font-size: var(--step--1);
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
}

.hero__film-rail {
  position: relative;
  flex: 1; min-width: 60px; height: 2px;
  background: rgba(245, 239, 228, .22);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.hero__film-rail i {
  position: absolute; inset: 0 auto 0 0;
  display: block; width: 100%; height: 100%;
  background: var(--gold);
  border-radius: var(--r-pill);
  transform: scaleX(0); transform-origin: left;
}

@media (max-width: 760px) {
  .hero__footer {
    align-items: flex-start;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    gap: var(--sp-4);
  }
  .hero__film { min-width: 100%; }

  /* Tighten the hero so the stat row and the stage rail stay above the
     fold — the French headline wraps to three lines here. */
  .hero__inner { padding-block: 2rem 2rem; }
  .hero__title { margin-bottom: var(--sp-4); }
  .hero__text {
    font-size: var(--step-0);
    line-height: 1.5;
    margin-bottom: var(--sp-5);
  }
  .hero .btn { padding: .75em 1.25em; font-size: .78rem; }
  .hero__stats { gap: 1rem 1.75rem; }
  .hero__stat b { font-size: 1.5rem; }
}

/* No auto-advancing imagery when the visitor asks for reduced motion —
   main.js pins the final frame and the rail is hidden entirely. */
@media (prefers-reduced-motion: reduce) {
  .hero__media > video { animation: none; }
  .hero__media > img, .hero__media > video { transform: scale(1.06); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    /* Left-side scrim keeps the headline legible over the bright food */
    linear-gradient(to right, rgba(20,18,15,.9) 0%, rgba(20,18,15,.6) 38%, rgba(20,18,15,.15) 68%, transparent 100%),
    linear-gradient(to top, rgba(20,18,15,.94) 0%, rgba(20,18,15,.5) 42%, rgba(20,18,15,.28) 70%, rgba(20,18,15,.6) 100%),
    radial-gradient(90% 70% at 20% 90%, rgba(180,56,31,.22), transparent 60%);
}
.hero__inner {
  width: min(100% - var(--gutter) * 2, var(--maxw-wide));
  margin-inline: auto;
  padding-block: clamp(3rem, 8vh, 6rem) clamp(3.5rem, 9vh, 7rem);
  color: var(--text-invert);
}
.hero__title {
  font-size: var(--step-5);
  color: var(--text-invert);
  margin-bottom: var(--sp-5);
  max-width: 16ch;
}
.hero__title .script { display: block; }
.hero__text {
  font-size: var(--step-1);
  color: var(--text-invert-muted);
  max-width: 52ch;
  margin-bottom: var(--sp-6);
}
.hero .eyebrow { color: var(--gold); }

/* Nutrition strip pinned under the hero copy */
.hero__stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(1.2rem, 3vw, 3.5rem);
  margin: 0;
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  font-weight: 600; line-height: 1;
  color: var(--gold);
}
.hero__stat span {
  font-size: var(--step--1);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-invert-muted);
}

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: var(--sp-5);
  transform: translateX(-50%);
  z-index: 2;
  display: grid; place-items: center; gap: var(--sp-2);
  color: var(--text-invert-muted);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue i {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* On narrow screens the stat row wraps and would collide with the cue */
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* Compact page hero for interior pages */
.page-hero {
  position: relative;
  display: grid; align-items: center;
  min-height: clamp(360px, 52vh, 560px);
  padding-top: var(--nav-h);
  background: var(--ink);
  color: var(--text-invert);
  overflow: hidden; isolation: isolate;
}
.page-hero img.page-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, rgba(20,18,15,.9), rgba(20,18,15,.62) 55%, rgba(20,18,15,.4));
}
.page-hero__inner { padding-block: clamp(2.5rem, 6vh, 4.5rem); }
.page-hero h1 { font-size: var(--step-4); color: var(--text-invert); margin-bottom: var(--sp-4); }
.page-hero p { font-size: var(--step-1); color: var(--text-invert-muted); max-width: 56ch; }
.page-hero .eyebrow { color: var(--gold); }

/* Breadcrumb */
.crumbs {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  list-style: none; padding: 0;
  font-size: var(--step--1);
  color: var(--text-invert-muted);
  margin-bottom: var(--sp-4);
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; margin-right: var(--sp-2); opacity: .5; }

/* --------------------------------------------------------------------------
   8. Split / feature rows
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; }
  .split--wide-media { grid-template-columns: 1fr 1.15fr; }
}
.split + .split { margin-top: clamp(3rem, 7vw, 7rem); }

.split__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink-2);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__media--auto img { aspect-ratio: auto; }

/* Offset second image, magazine style */
.media-stack { position: relative; padding-bottom: clamp(2rem, 6vw, 4.5rem); padding-right: clamp(1.5rem, 5vw, 4rem); }
.media-stack img:first-child {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.media-stack img:last-child {
  position: absolute; right: 0; bottom: 0;
  width: 52%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-md);
  border: 8px solid var(--bg);
  box-shadow: var(--shadow-md);
}
.section--dark .media-stack img:last-child { border-color: var(--bg-dark); }

/* Decorative caption tag on media */
.media-tag {
  position: absolute; left: var(--sp-4); bottom: var(--sp-4);
  z-index: 2;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: .45rem .9rem;
  background: rgba(20,18,15,.78);
  backdrop-filter: blur(8px);
  color: var(--text-invert);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--r-pill);
}
.media-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* --------------------------------------------------------------------------
   9. Section headings
   -------------------------------------------------------------------------- */
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: var(--measure); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow::before { display: none; }
.sec-head h2 { font-size: var(--step-3); margin-bottom: var(--sp-4); }
.sec-head p { color: var(--text-muted); font-size: var(--step-1); }
.section--dark .sec-head p { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   10. Cards / grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { overflow: hidden; background: var(--ink-2); }
.card__media img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: var(--sp-5) var(--sp-5) var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.card__body p { color: var(--text-muted); font-size: .95rem; }
.section--dark .card { background: var(--ink-2); }
.section--dark .card__body h3 { color: var(--text-invert); }
.section--dark .card__body p { color: var(--text-invert-muted); }

/* Numbered step cards */
.step {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ink-2); }
.step__body { padding: var(--sp-5); display: flex; gap: var(--sp-4); align-items: flex-start; }
.step__num {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink); color: var(--gold);
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 600;
}
.step__body p { font-size: .95rem; line-height: 1.5; }
.section--dark .step { background: var(--ink-2); }
.section--dark .step__num { background: var(--gold); color: var(--ink); }
.section--dark .step__body p { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   11. Nutrition comparison
   -------------------------------------------------------------------------- */
.nutri { display: grid; gap: var(--sp-4); }
.nutri__row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line-invert);
}
.nutri__label { font-weight: 500; color: var(--text-invert); font-size: .98rem; }
.nutri__bar {
  position: relative; height: 8px;
  border-radius: var(--r-pill);
  background: rgba(245,239,228,.12);
  overflow: hidden;
}
.nutri__bar i {
  position: absolute; inset: 0 auto 0 0;
  display: block; height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  width: 0;
  transition: width 1.2s var(--ease-out);
}
.is-visible .nutri__bar i { width: var(--val); }
.nutri__val {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem);
  font-weight: 600; line-height: 1;
  color: var(--gold);
  min-width: 4.5ch; text-align: right;
}
.nutri__note {
  margin-top: var(--sp-5);
  font-size: var(--step--1);
  color: var(--text-invert-muted);
}
@media (max-width: 560px) {
  .nutri__row { grid-template-columns: 1fr auto; }
  .nutri__bar { grid-column: 1 / -1; order: 3; }
}

/* --------------------------------------------------------------------------
   12. Recipes
   -------------------------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filters button {
  padding: .55rem 1.25rem;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: all .25s var(--ease);
}
.filters button:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.filters button[aria-pressed="true"] {
  background: var(--ink); color: var(--text-invert);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* Featured slider ------------------------------------------------------- */
.showcase { display: grid; gap: var(--sp-5); }

.showcase__stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  /* Reserve the exact frame so nothing shifts while slides load */
  aspect-ratio: 1672 / 941;
}
.showcase__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s;
}
.showcase__slide.is-active { opacity: 1; visibility: visible; }
.showcase__slide img { width: 100%; height: 100%; object-fit: cover; }

.showcase__nav {
  position: absolute; top: 50%; z-index: 3;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(20, 18, 15, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-invert);
  opacity: 0;
  transition: opacity .3s var(--ease), background-color .25s var(--ease), transform .25s var(--ease-out);
}
.showcase__nav svg { width: 22px; height: 22px; }
.showcase__nav--prev { left: var(--sp-4); }
.showcase__nav--next { right: var(--sp-4); }
.showcase:hover .showcase__nav,
.showcase__nav:focus-visible { opacity: 1; }
.showcase__nav:hover { background: rgba(20, 18, 15, .82); }
/* Touch has no hover, so the arrows must always be there */
@media (hover: none) { .showcase__nav { opacity: 1; } }

.showcase__captions { position: relative; min-height: 1px; }
.showcase__caption {
  display: none;
  max-width: 62ch;
}
.showcase__caption.is-active { display: block; }
.showcase__caption h3 { margin-bottom: var(--sp-3); }
.showcase__caption .recipe__ing { margin-bottom: var(--sp-4); }
.showcase__method { color: var(--text-muted); max-width: 60ch; }

.showcase__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.showcase__dots { display: flex; gap: var(--sp-3); }
.showcase__dots button {
  width: 42px; height: 3px;
  border-radius: var(--r-pill);
  background: var(--line);
  transition: background-color .3s var(--ease);
}
.showcase__dots button[aria-selected="true"] { background: var(--accent); }
.showcase__dots button:hover { background: var(--text-muted); }
/* The tap target has to be finger-sized even though the mark is a hairline */
.showcase__dots button { position: relative; }
.showcase__dots button::after { content: ""; position: absolute; inset: -20px -6px; }

.showcase__pause {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.showcase__pause:hover { color: var(--text); background: var(--bg-alt); }
.showcase__pause-icon { position: relative; display: block; width: 14px; height: 14px; }
.showcase__pause-icon::before,
.showcase__pause-icon::after {
  content: ""; position: absolute; top: 1px;
  width: 3px; height: 12px; border-radius: 1px;
  background: currentColor;
}
.showcase__pause-icon::before { left: 2px; }
.showcase__pause-icon::after  { right: 2px; }
[aria-pressed="false"] .showcase__pause-icon::before {
  left: 3px; top: 0;
  width: 0; height: 0; border-radius: 0;
  background: transparent;
  border-left: 10px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
[aria-pressed="false"] .showcase__pause-icon::after { opacity: 0; }

@media (max-width: 700px) {
  .showcase__nav { width: 40px; height: 40px; }
  .showcase__bar { padding-top: var(--sp-3); }
}

@media (prefers-reduced-motion: reduce) {
  .showcase__slide { transition: none; }
}

/* How to bake — four methods, above the recipe grid ---------------------- */
.bake {
  display: grid;
  gap: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 980px) { .bake { grid-template-columns: minmax(0, 22rem) 1fr; align-items: start; } }
.bake__head h3, .bake__head .h3 { margin-bottom: var(--sp-3); }
.bake__head p { color: var(--text-muted); }

.bake__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  counter-reset: bake;
}
.bake__item {
  counter-increment: bake;
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), border-color .35s;
}
.bake__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.bake__ico {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(184, 134, 47, .1);
  color: var(--accent);
}
.bake__ico svg { width: 20px; height: 20px; }
.bake__item h3 {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.bake__item p { font-size: .95rem; color: var(--text-muted); }
.bake__item::after {
  content: "0" counter(bake);
  position: absolute; right: var(--sp-4); top: var(--sp-3);
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  color: var(--line);
}

.recipe-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.recipe {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), opacity .35s var(--ease);
}
.recipe:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.recipe[hidden] { display: none; }
.recipe.is-filtering { opacity: 0; transform: scale(.97); }

.recipe__media { position: relative; overflow: hidden; background: var(--ink-2); }
.recipe__img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  display: block;
}
/* Hover swaps the plated pinsa for the deconstructed shot of the same dish.
   The second frame is stacked on top and cross-faded — no zoom, because the
   swap is already the interaction and both at once reads as noise. */
.recipe__img--alt {
  position: absolute; inset: 0; height: 100%;
  opacity: 0;
  transition: opacity .55s var(--ease);
}
.recipe:hover .recipe__img--alt,
.recipe:focus-within .recipe__img--alt { opacity: 1; }

/* Touch has no hover, so the alternate frame would never be reachable.
   Showing it on tap-and-hold is unreliable; instead the card keeps the
   plated shot, which is the one that sells the dish. */
@media (hover: none) {
  .recipe__img--alt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .recipe__img--alt { transition: none; }
}
.recipe__tag {
  position: absolute; top: var(--sp-4); left: var(--sp-4);
  padding: .3rem .8rem;
  background: rgba(20,18,15,.82);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--r-pill);
}
.recipe__body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; gap: var(--sp-4); }
.recipe__body h3 { font-size: var(--step-1); }
.recipe__ing { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.recipe__ing li {
  font-size: .78rem;
  padding: .22rem .65rem;
  background: var(--bg-alt);
  color: var(--text-muted);
  border-radius: var(--r-pill);
}
.recipe__method {
  font-size: .93rem; line-height: 1.55; color: var(--text-muted);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.recipe-empty {
  text-align: center; padding: var(--sp-8) 0;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. Gallery + lightbox
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(.6rem, 1.4vw, 1rem);
}
.gallery button {
  display: block; padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-2);
  position: relative;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.gallery button::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,15,.5), transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery button:hover { transform: scale(1.02); box-shadow: var(--shadow-md); z-index: 1; }
.gallery button:hover::after { opacity: 1; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.gallery button:hover img { transform: scale(1.06); }
.gallery button:nth-child(6n+1) { grid-column: span 2; }
.gallery button:nth-child(6n+1) img { aspect-ratio: 8 / 5; }
@media (max-width: 600px) {
  .gallery button:nth-child(6n+1) { grid-column: span 1; }
  .gallery button:nth-child(6n+1) img { aspect-ratio: 4 / 3; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(12, 11, 9, .95);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 82svh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  transform: scale(.96);
  transition: transform .35s var(--ease-out);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--text-invert);
  font-size: 1.4rem; line-height: 1;
  transition: background-color .25s var(--ease), transform .25s var(--ease-out);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.18); }
.lightbox__close { top: var(--sp-5); right: var(--sp-5); }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__count {
  position: absolute; bottom: var(--sp-5); left: 50%; transform: translateX(-50%);
  font-size: var(--step--1); letter-spacing: .12em;
  color: var(--text-invert-muted);
}

/* --------------------------------------------------------------------------
   14. Certifications
   -------------------------------------------------------------------------- */
.certs {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.certs figure { text-align: center; }
/* Certification marks keep their own colours — recolouring them would
   misrepresent the mark, and the EUK logo is black artwork that no
   brightness filter can lift off a dark ground. Each sits on a light tile. */
.certs .cert-tile {
  display: grid; place-items: center;
  width: clamp(112px, 15vw, 150px);
  aspect-ratio: 1;
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--cream);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.certs figure:hover .cert-tile { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.certs img { max-height: 100%; width: auto; }
.certs figcaption {
  margin-top: var(--sp-3);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-invert-muted);
}

/* --------------------------------------------------------------------------
   15. Feature list (checkmarks)
   -------------------------------------------------------------------------- */
.check-list { list-style: none; padding: 0; display: grid; gap: var(--sp-4); }
.check-list li {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4);
  align-items: start;
}
.check-list svg { flex-shrink: 0; margin-top: .28em; color: var(--accent); width: 20px; height: 20px; }
.section--dark .check-list svg { color: var(--gold); }
.check-list b { display: block; font-weight: 600; color: var(--text); margin-bottom: .15em; }
.section--dark .check-list b { color: var(--text-invert); }
.check-list span { color: var(--text-muted); font-size: .96rem; }
.section--dark .check-list span { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   16. Map + retailers
   -------------------------------------------------------------------------- */
.map-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
  aspect-ratio: 16 / 10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .map-frame { aspect-ratio: 3 / 4; } }

/* --------------------------------------------------------------------------
   17. Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }

.contact-item { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.contact-item + .contact-item { margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid var(--line-invert); }
.contact-item__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(212,162,76,.14);
  color: var(--gold);
}
.contact-item h3 {
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-invert-muted);
  margin-bottom: var(--sp-2);
}
.contact-item p, .contact-item a {
  font-size: var(--step-1); line-height: 1.4;
  color: var(--text-invert); text-decoration: none;
}
.contact-item a:hover { color: var(--gold); }

.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--sp-2); }
.field label {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-invert-muted);
}
.field input, .field textarea, .field select {
  padding: .85rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-invert);
  border-radius: var(--r-md);
  color: var(--text-invert);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(245,239,228,.4); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.08);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select option { background: var(--ink-2); color: var(--text-invert); }
.form__note { font-size: var(--step--1); color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: var(--ink);
  color: var(--text-invert);
  overflow: hidden; isolation: isolate;
  text-align: center;
}
.cta-band img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(20,18,15,.86), rgba(20,18,15,.9)),
              radial-gradient(70% 60% at 50% 0%, rgba(180,56,31,.28), transparent 65%);
}
.cta-band h2 { font-size: var(--step-3); color: var(--text-invert); margin-bottom: var(--sp-4); }
.cta-band p { color: var(--text-invert-muted); font-size: var(--step-1); max-width: 56ch; margin: 0 auto var(--sp-6); }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--text-invert);
  padding-block: clamp(3rem, 6vw, 5rem) var(--sp-6);
  border-top: 1px solid var(--line-invert);
}
.footer-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.footer-brand { max-width: 34ch; }
.footer-brand img { width: 74px; height: 74px; border-radius: 50%; margin-bottom: var(--sp-4); }
.footer-brand p { color: var(--text-invert-muted); font-size: .93rem; }
.site-footer h3 {
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.footer-list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.footer-list a, .footer-list p {
  color: var(--text-invert-muted); font-size: .93rem;
  text-decoration: none;
  transition: color .25s var(--ease);
}
.footer-list a:hover { color: var(--gold); }
.footer-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.footer-thumbs img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-sm);
  transition: transform .4s var(--ease-out), opacity .3s var(--ease);
  opacity: .82;
}
.footer-thumbs a:hover img { transform: scale(1.05); opacity: 1; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-invert);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  align-items: center; justify-content: space-between;
  font-size: .84rem; color: var(--text-invert-muted);
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--gold); }
.footer-social { display: flex; gap: var(--sp-3); }
.footer-social a {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-invert);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease-out);
}
.footer-social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   20. Scroll reveal + back to top
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

.to-top {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5);
  z-index: 90;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink); color: var(--gold);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease-out), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--ink); }

/* --------------------------------------------------------------------------
   21. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .nutri__bar i { width: var(--val); }
}

/* Print ------------------------------------------------------------------- */
@media print {
  .site-header, .to-top, .scroll-cue, .lightbox, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  .section--dark, .site-footer { background: #fff !important; color: #000 !important; }
}
