/* =========================================================================
   Lamborghini Temerario — Landing styles
   ========================================================================= */

/* SELF-HOSTED FONTS (subset latin) — no Google CDN, GDPR-safe ------------- */
@font-face{font-family:'Bebas Neue';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/bebas-neue-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Geist';font-style:normal;font-weight:300;font-display:swap;src:url('fonts/geist-300.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Geist';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/geist-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Geist';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/geist-500.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Geist';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/geist-600.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Geist';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/geist-700.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* DESIGN TOKENS ----------------------------------------------------------- */
:root {
  --black: #0a0a0a;
  --onyx: #131313;
  --graphite: #1a1a1a;
  --line: #2a2a2a;
  --gold: #FFD700;
  --gold-soft: #f5cb1f;
  --white: #ffffff;
  --mute: #a0a0a0;
  --dim: #6a6a6a;

  --ff-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --ff-text: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.4s;

  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(60px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--ff-text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* =========================================================================
   PAGE LOADER (covers the page until fonts + first frame are ready)
   ========================================================================= */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  pointer-events: auto;
  transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__bar {
  position: relative;
  width: min(360px, 70vw);
  height: 1px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.page-loader__bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  height: 100%;
  width: 40%;
  background: var(--gold);
  animation: loaderSlide 1.4s var(--ease) infinite;
}
@keyframes loaderSlide {
  to { left: 100%; }
}
.page-loader__label {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .page-loader__label {
    font-size: 10px;
    letter-spacing: 0.3em;
  }
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
.h-display {
  font-family: var(--ff-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.92;
  margin: 0;
}
.eyebrow {
  font-family: var(--ff-text);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin: 0 0 18px 0;
}
.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--mute);
  max-width: 56ch;
  text-wrap: pretty;
  margin: 0;
}

/* =========================================================================
   ANIMATION PRIMITIVES
   ========================================================================= */

/* Shiny gradient sweep title — replaces the plain solid color on the hero h1 */
.shiny-text {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 1) 45%,
    rgba(255, 255, 255, 1) 55%,
    rgba(255, 255, 255, 0.55) 100%
  );
  background-size: 200% auto;
  background-position: 0% 0%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: shinySweep 4.5s var(--ease) infinite alternate;
}
.shiny-text--gold {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.6) 0%,
    #ffe14d 45%,
    #ffffff 50%,
    #ffe14d 55%,
    rgba(255, 215, 0, 0.6) 100%
  );
  background-size: 200% auto;
  background-position: 0% 0%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: shinySweep 4.5s var(--ease) infinite alternate;
  animation-delay: 0.6s;
  filter: drop-shadow(0 0 24px rgba(255, 215, 0, 0.18));
}
@keyframes shinySweep {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}
/* When using shiny-text on a split-line container, child .split-char inherits
   the clipped gradient because we re-apply on the spans. */
.shiny-text .split-char {
  background: inherit;
  background-size: inherit;
  background-position: inherit;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* Mask reveal: a horizontal sweep that uncovers content from left to right */
.mask-reveal {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.mask-reveal > .mask-reveal__inner {
  display: inline-block;
  transform: translateY(120%);
  transition: transform 1.1s var(--ease-out-expo);
  transition-delay: var(--rd, 0s);
}
.mask-reveal.is-in > .mask-reveal__inner {
  transform: translateY(0);
}

/* Fade-up basic reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
  transition-delay: var(--rd, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { --rd: 0.08s; }
.reveal.delay-2 { --rd: 0.16s; }
.reveal.delay-3 { --rd: 0.24s; }
.reveal.delay-4 { --rd: 0.32s; }
.reveal.delay-5 { --rd: 0.4s; }
.reveal.delay-6 { --rd: 0.5s; }

/* Per-letter / per-word split (filled by JS) */
.split-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 0.95;
  padding-bottom: 0.05em;
}
.split-char,
.split-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 1s var(--ease-out-expo),
    opacity 0.6s var(--ease-out-expo);
  transition-delay: calc(var(--rd, 0s) + var(--i, 0) * var(--stagger, 0.025s));
}
.split-line.is-in .split-char,
.split-line.is-in .split-word {
  transform: translateY(0);
  opacity: 1;
}

/* Soft fade-in (no Y motion) */
.fade-in {
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  transition-delay: var(--rd, 0s);
}
.fade-in.is-in { opacity: 1; }

/* =========================================================================
   CTA BUTTON
   ========================================================================= */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 36px;
  background: var(--gold);
  color: #000;
  font-family: var(--ff-text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
  transition: transform 0.5s var(--ease-out-expo),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
  box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  will-change: transform;
  isolation: isolate;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.cta:hover::after { opacity: 1; }
.cta > * { position: relative; z-index: 1; }
.cta:hover {
  transform: translate(var(--tx, 0), calc(-2px + var(--ty, 0))) scale(1.03);
  /* taste-skill: no neon glow. Inner highlight + bg-tinted soft shadow */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
              inset 0 -1px 0 rgba(0, 0, 0, 0.15),
              0 14px 32px -16px rgba(10, 10, 10, 0.7);
  background: var(--gold-soft);
}
.cta:active { transform: translateY(0) scale(0.99); }
.cta .arrow {
  width: 14px; height: 10px; flex: 0 0 auto;
  transition: transform var(--dur) var(--ease);
}
/* taste-skill: button-in-button trailing icon */
.cta__icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  margin-left: 6px;
  flex: 0 0 auto;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
              background var(--dur) var(--ease);
}
.cta:hover .cta__icon-wrap {
  transform: translate(2px, -1px) scale(1.06);
  background: rgba(0, 0, 0, 0.28);
}
.cta:hover .arrow { transform: none; }

/* Pulse ring around hero CTA */
.cta--pulse > .pulse-ring {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  z-index: -1;
  animation: ctaPulse 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes ctaPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.18); opacity: 0;   }
  100% { transform: scale(1.18); opacity: 0;   }
}

/* Placeholder visual marker — easy to spot before deploy */
[data-placeholder] {
  color: var(--gold);
  opacity: 0.85;
  font-style: normal;
}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    padding var(--dur) var(--ease),
    transform 1s var(--ease-out-expo);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
}
body.is-loaded .site-header { transform: translateY(0); }
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--white);
}
.brand-mark {
  width: 28px; height: 28px;
  background: url("logos/icon-z.png?v=2") center/contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.35));
  animation: markPulse 2.6s var(--ease) infinite;
}
@keyframes markPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.35)); }
  50%      { filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.65)); }
}
.footer-brand-line .brand-mark {
  width: 22px; height: 22px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: color var(--dur) var(--ease);
}
.phone:hover { color: var(--gold); }
.phone svg { width: 16px; height: 16px; flex: 0 0 auto; }

.menu-icon {
  display: none;
  width: 28px; height: 18px;
  position: relative;
}
.menu-icon span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--white);
}
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 70%; }
.menu-icon span:nth-child(3) { bottom: 0; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute; inset: -8% -8%;
  background-image: url("photos/hero.jpg?v=2");
  background-image: image-set(url("photos/hero.webp?v=2") type("image/webp"), url("photos/hero.jpg?v=2") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  transform: scale(1.06) translate3d(0, var(--parallax-y, 0px), 0);
  transition: transform 0.05s linear;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,215,0,0.06), transparent 55%);
  mix-blend-mode: screen;
}
/* Mobile: hero piu' leggero (1080px) per LCP — risparmio ~200KB */
@media (max-width: 768px) {
  .hero-bg {
    background-image: url("photos/hero-mobile.jpg?v=2");
    background-image: image-set(url("photos/hero-mobile.webp?v=2") type("image/webp"), url("photos/hero-mobile.jpg?v=2") type("image/jpeg"));
  }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 70%),
    linear-gradient(180deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.55) 35%, rgba(10,10,10,0.95) 100%);
}

/* Vertical edition tag — animated stripe */
.hero-edition {
  position: absolute;
  left: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeIn 1.4s var(--ease) 1.6s forwards;
}
.hero-edition .line {
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(255,215,0,0.7), transparent);
  animation: stripeMove 3s var(--ease) infinite;
}
@keyframes stripeMove {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(-12px); opacity: 1; }
}
.hero-edition .lbl {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--mute);
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x) 0 calc(var(--pad-x) + 60px);
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-meta .dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  animation: dotPulse 2s var(--ease) infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.4); }
}
.hero-title {
  font-size: clamp(56px, 10.5vw, 180px);
  color: var(--white);
  margin: 0 0 12px 0;
}
.hero-title .accent { color: var(--gold); }

/* ===== Text-with-progress (scroll-tied word reveal) =====
   Each [data-progress-text] paragraph is split into spans;
   JS sets --progress on the host. Each word picks its own
   slice of that progress and animates clip-path + translateY.
*/
@property --progress {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}
[data-progress-text] {
  --progress: 0;
}
[data-progress-text] .progress-word {
  --word-step: calc(1 / max(var(--word-total, 1), 1));
  --word-turn: calc(var(--word-index) * var(--word-step) * 0.6);
  --word-progress: clamp(
    0,
    calc((var(--progress) - var(--word-turn)) / max(var(--word-step) * 4, 0.15)),
    1
  );
  display: inline-block;
  will-change: opacity;
  opacity: var(--word-progress);
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-progress-text] .progress-word {
    transform: none;
    clip-path: none;
    opacity: 1;
  }
}

/* ===== Progress group (cards revealed in sequence by scroll) ===== */
[data-progress-group] {
  --progress: 0;
}
[data-progress-group] > * {
  --item-step: calc(1 / max(var(--item-total, 1), 1));
  --item-turn: calc(var(--item-index) * var(--item-step) * 0.7);
  --item-progress: clamp(
    0,
    calc((var(--progress) - var(--item-turn)) / max(var(--item-step) * 1.6, 0.18)),
    1
  );
  opacity: calc(0.05 + var(--item-progress) * 0.95);
  transform: translate3d(0, calc((1 - var(--item-progress)) * 28px), 0);
  filter: blur(calc((1 - var(--item-progress)) * 4px));
  clip-path: inset(0 0 calc((1 - var(--item-progress)) * 30%) 0);
  will-change: transform, opacity, clip-path, filter;
}
@media (prefers-reduced-motion: reduce) {
  [data-progress-group] > * {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
}
.hero-subtitle {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--mute);
  max-width: 32ch;
  margin: 0 0 44px 0;
  text-wrap: balance;
  line-height: 1.45;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.hero-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Hero stats — counter targets */
.hero-stats {
  position: absolute;
  bottom: 60px;
  right: var(--pad-x);
  z-index: 2;
  display: flex;
  gap: 48px;
  align-items: flex-end;
}
.hero-stat .num {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 56px);
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.hero-stat .lbl {
  font-size: 11px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-top: 8px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--mute);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.8s forwards;
}
.scroll-indicator .chev {
  width: 18px; height: 10px;
  animation: chevPulse 1.8s var(--ease) infinite;
}
@keyframes chevPulse {
  0%, 100% { transform: translateY(0);    opacity: 0.5; }
  50%      { transform: translateY(6px);  opacity: 1;   }
}

/* =========================================================================
   SCROLL VIDEO SECTION
   ========================================================================= */
.scroll-video {
  position: relative;
  height: 300vh;
  background: var(--black);
}
.scroll-video__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: var(--black);
}
.scroll-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scroll-video__media canvas,
.scroll-video__media .poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.scroll-video__media.is-ready canvas,
.scroll-video__media.is-static .poster-img {
  opacity: 1;
}
.scroll-video__vignette {
  position: absolute; inset: 0;
  /* taste-skill: softer vignette, no harsh dark */
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.32) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.28) 0%, transparent 22%, transparent 78%, rgba(10,10,10,0.38) 100%);
  pointer-events: none;
}

/* Floating progress meter (left) */
.scroll-video__meter {
  position: absolute;
  left: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--mute);
}
.scroll-video__meter-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.scroll-video__meter-track {
  width: 1px;
  height: 180px;
  background: rgba(255,255,255,0.08);
  position: relative;
}
/* taste-skill: chapter tick marks at 33% / 66% (telemetry feel) */
.scroll-video__meter-track::before,
.scroll-video__meter-track::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 7px; height: 1px;
  background: rgba(255,255,255,0.25);
}
.scroll-video__meter-track::before { top: 33.33%; }
.scroll-video__meter-track::after  { top: 66.66%; }
.scroll-video__meter-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: var(--gold);
  /* taste-skill: no linear. Tight cubic-bezier for instant-feel scrub */
  transition: height 0.18s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 0 8px -2px rgba(255, 215, 0, 0.4);
}
.scroll-video__meter-pct {
  /* taste-skill: mono-spaced "telemetry" numerals */
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

/* taste-skill: eyebrow pill instead of free-floating tag */
.scroll-video__tag {
  position: absolute;
  right: var(--pad-x);
  top: 40px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.scroll-video__tag .num {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.scroll-video__tag .lbl {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--mute);
  text-transform: uppercase;
}
.scroll-video__tag .lbl::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--mute);
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* Stage captions sequenced with scroll */
.scroll-video__captions {
  position: absolute;
  top: 12vh;
  left: 0; right: 0;
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 var(--pad-x);
}
.sv-caption {
  position: absolute;
  text-align: center;
  max-width: min(520px, 80vw);
  opacity: 0;
  /* taste-skill: heavy fade-up with blur for cinematic entry */
  transform: translateY(60px);
  filter: blur(8px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter, opacity;
}
.sv-caption.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.sv-caption .eyebrow { color: var(--gold); margin-bottom: 14px; }
.sv-caption .h-display {
  font-size: clamp(32px, 4.5vw, 64px);
  color: var(--white);
  /* taste-skill: softer drop, less harsh */
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
  line-height: 0.95;
}
.sv-caption .copy {
  font-size: clamp(13px, 1vw, 15px);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 18px;
  max-width: 36ch;
  margin-left: auto; margin-right: auto;
  text-wrap: pretty;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.scroll-video__legend {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
}
/* taste-skill: dot expand on active with cubic-bezier */
.sv-dot {
  width: 32px; height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  transition:
    width 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.sv-dot.is-active {
  width: 64px;
  background: var(--gold);
}

/* =========================================================================
   GENERIC SECTION
   ========================================================================= */
.section {
  padding: var(--section-y) var(--pad-x);
  position: relative;
}
.section--graphite { background: var(--graphite); }
.section--onyx { background: var(--onyx); }

.section-head {
  max-width: 1500px;
  margin: 0 auto var(--section-y) auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.section-head .h-display {
  font-size: clamp(48px, 6vw, 96px);
  color: var(--white);
}
.section-head .h-display .accent { color: var(--gold); }

.section-grid-wrap { max-width: 1500px; margin: 0 auto; }

/* =========================================================================
   GALLERY
   ========================================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  opacity: 1;
  aspect-ratio: 4 / 3;
  min-height: 240px; /* fallback if aspect-ratio fails (older Safari) */
  background: var(--graphite);
  cursor: pointer;
  transition:
    transform 0.9s var(--ease-out-expo),
    opacity 0.8s var(--ease-out-expo);
  transition-delay: var(--rd, 0s);
}
/* Hard fallback: browsers without aspect-ratio support use padding ratio trick */
@supports not (aspect-ratio: 1) {
  .gallery__item {
    aspect-ratio: auto;
    height: 0;
    padding-bottom: 75%; /* 3/4 = 4:3 ratio */
  }
  .gallery__item img {
    position: absolute; inset: 0;
  }
}
/* "Pristine" pre-reveal state: traslazione lieve, opacity ridotta (NON 0).
   Anche se l'IntersectionObserver fallisse, le foto restano visibili. */
.gallery.is-pristine .gallery__item {
  transform: translate3d(0, 18px, 0);
  opacity: 0.55;
}
.gallery__item.is-in {
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
.gallery__item picture {
  display: block;
  width: 100%; height: 100%;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.6s var(--ease-out-expo), filter var(--dur) var(--ease);
}
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.85) 100%);
  opacity: 0.6;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.gallery__item .meta {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 2;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transform: translateY(8px);
  opacity: 0.85;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.gallery__item .meta .num {
  color: var(--gold);
  margin-right: 10px;
  font-family: var(--ff-display);
  font-size: 14px;
}
.gallery__item:hover img { transform: scale(1.08); filter: brightness(0.85); }
.gallery__item:hover::after { opacity: 0.95; }
.gallery__item:hover .meta { transform: translateY(0); opacity: 1; }
.gallery__item .zoom-badge {
  position: absolute;
  right: 20px; top: 20px;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.4);
  backdrop-filter: blur(6px);
  z-index: 2;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery__item:hover .zoom-badge {
  background: var(--gold);
  border-color: var(--gold);
}
.gallery__item:hover .zoom-badge svg { stroke: #000; }
.gallery__item .zoom-badge svg { width: 14px; height: 14px; stroke: var(--white); transition: stroke var(--dur) var(--ease); }

/* =========================================================================
   FEATURES
   ========================================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
  position: relative;
}

/* Horizontal sweep line above the grid — 4 (rail tracciato) */
.features-rail {
  position: relative;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--gold) 20%,
    var(--gold) 80%,
    transparent 100%
  );
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0.7;
  margin-bottom: -1px;
  z-index: 2;
}
.features-rail.is-in {
  animation: features-rail-sweep 1.4s var(--ease-out-expo) forwards;
}
@keyframes features-rail-sweep {
  0%   { transform: scaleX(0); transform-origin: left center; }
  50%  { transform: scaleX(1); transform-origin: left center; opacity: 0.9; }
  50.01% { transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; opacity: 0.4; }
}

/* Sequenced card entry — 3 (reveal sequenziale) */
.feature--seq {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo),
    clip-path 1s var(--ease-out-expo),
    -webkit-clip-path 1s var(--ease-out-expo);
  transition-delay: calc(var(--seq, 0) * 140ms + 250ms);
  will-change: transform, opacity, clip-path;
}
.feature--seq.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}
@media (prefers-reduced-motion: reduce) {
  .feature--seq {
    opacity: 1;
    transform: none;
    clip-path: none;
    -webkit-clip-path: none;
    transition: none;
  }
  .features-rail { transform: scaleX(1); animation: none; }
}
/* taste-skill: Double-Bezel architecture (outer shell + inner core).
   Outer shell = card itself with outer hairline + concentric radius.
   Inner core = simulated via inset highlights + inner ring. */
.feature {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 100%),
    var(--graphite);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 6px rgba(255, 255, 255, 0.018),
    0 0 0 7px rgba(255, 255, 255, 0.05);
  transition: background 0.6s var(--ease), transform 0.6s var(--ease-out-expo);
}
.feature::before {
  content: "";
  position: absolute;
  left: 22px; right: 22px; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
  border-radius: 2px;
}
.feature:hover { transform: translateY(-2px); }
.feature:hover::before { transform: scaleX(1); }
.feature__icon {
  width: 44px; height: 44px;
  color: var(--gold);
  transition: transform 0.6s var(--ease-out-expo);
}
.feature:hover .feature__icon { transform: rotate(-6deg) scale(1.08); }
.feature__icon svg { width: 100%; height: 100%; }
.feature__metric {
  font-family: var(--ff-display);
  font-size: clamp(40px, 4vw, 56px);
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
}
.feature__metric .unit {
  font-size: 0.4em;
  color: var(--mute);
  margin-left: 6px;
  font-family: var(--ff-text);
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* Telemetry tick-bars under metrics — 5 (display da supercar)
   Live equalizer: ogni barra pulsa in loop con altezze e fasi diverse,
   sembra un display di telemetria vivo */
.feature__telemetry {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  height: 22px;
  align-items: flex-end;
}
.feature__telemetry > span {
  flex: 1;
  display: block;
  height: 4px;
  background: rgba(255, 215, 0, 0.18);
  transform-origin: bottom;
  transform: scaleY(0.4);
  transition:
    background 0.5s var(--ease-out-expo),
    transform 0.5s var(--ease-out-expo);
  transition-delay: calc(var(--seq, 0) * 140ms + 600ms + var(--bar, 0) * 35ms);
  will-change: transform;
}
/* Once the card is in, swap to gold + start the live equalizer loop */
.feature--seq.is-in .feature__telemetry > span {
  background: var(--gold);
  animation: telemetry-pulse 1.6s var(--ease) infinite;
  /* Stagger the loop start to match the entry stagger */
  animation-delay: calc(var(--seq, 0) * 140ms + 900ms + var(--bar, 0) * 80ms);
  transform: scaleY(0.4);
}
@keyframes telemetry-pulse {
  /* Each frame uses a different scaleY so the bars look "alive" */
  0%   { transform: scaleY(0.35); opacity: 0.55; }
  15%  { transform: scaleY(0.85); opacity: 1; }
  30%  { transform: scaleY(0.5);  opacity: 0.7; }
  50%  { transform: scaleY(1.0);  opacity: 1; }
  70%  { transform: scaleY(0.6);  opacity: 0.75; }
  85%  { transform: scaleY(0.9);  opacity: 1; }
  100% { transform: scaleY(0.4);  opacity: 0.6; }
}
/* Per-bar baseline heights — gives the silhouette a EQ shape even when paused */
.feature--seq.is-in .feature__telemetry > span:nth-child(1)  { height: 6px;  }
.feature--seq.is-in .feature__telemetry > span:nth-child(2)  { height: 10px; }
.feature--seq.is-in .feature__telemetry > span:nth-child(3)  { height: 8px;  }
.feature--seq.is-in .feature__telemetry > span:nth-child(4)  { height: 14px; }
.feature--seq.is-in .feature__telemetry > span:nth-child(5)  { height: 11px; }
.feature--seq.is-in .feature__telemetry > span:nth-child(6)  { height: 18px; }
.feature--seq.is-in .feature__telemetry > span:nth-child(7)  { height: 13px; }
.feature--seq.is-in .feature__telemetry > span:nth-child(8)  { height: 20px; }
.feature--seq.is-in .feature__telemetry > span:nth-child(9)  { height: 15px; }
.feature--seq.is-in .feature__telemetry > span:nth-child(10) { height: 22px; }
.feature--seq.is-in .feature__telemetry > span:nth-child(11) { height: 12px; }
.feature--seq.is-in .feature__telemetry > span:nth-child(12) { height: 9px;  }
/* Per-bar incremental delay via :nth-child — sets --bar for both entry transition and loop */
.feature__telemetry > span:nth-child(1)  { --bar: 0;  animation-duration: 1.4s; }
.feature__telemetry > span:nth-child(2)  { --bar: 1;  animation-duration: 1.7s; }
.feature__telemetry > span:nth-child(3)  { --bar: 2;  animation-duration: 1.5s; }
.feature__telemetry > span:nth-child(4)  { --bar: 3;  animation-duration: 1.9s; }
.feature__telemetry > span:nth-child(5)  { --bar: 4;  animation-duration: 1.6s; }
.feature__telemetry > span:nth-child(6)  { --bar: 5;  animation-duration: 2.1s; }
.feature__telemetry > span:nth-child(7)  { --bar: 6;  animation-duration: 1.55s; }
.feature__telemetry > span:nth-child(8)  { --bar: 7;  animation-duration: 1.85s; }
.feature__telemetry > span:nth-child(9)  { --bar: 8;  animation-duration: 1.45s; }
.feature__telemetry > span:nth-child(10) { --bar: 9;  animation-duration: 1.75s; }
.feature__telemetry > span:nth-child(11) { --bar: 10; animation-duration: 1.65s; }
.feature__telemetry > span:nth-child(12) { --bar: 11; animation-duration: 2.0s;  }

@media (prefers-reduced-motion: reduce) {
  .feature--seq.is-in .feature__telemetry > span {
    animation: none;
    transform: scaleY(1);
  }
}

.feature__label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.feature__desc {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.55;
  margin: 0;
}
.feature__index {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.3em;
  margin-bottom: -8px;
}

/* =========================================================================
   CONFIGURATION LIST
   ========================================================================= */
.config-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.config-list > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.config-list dt {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
}
.config-list dd {
  margin: 0;
  color: #e8e8e8;
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .config-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 4px;
  }
  .config-list dt { font-size: 12px; }
  .config-list dd { font-size: 14px; }
}

/* =========================================================================
   SECONDARY CTA BANNER
   ========================================================================= */
.cta-banner {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-banner__bg {
  position: absolute; inset: -5%;
  background-image: url("photos/banner-cta.jpg?v=2");
  background-image: image-set(url("photos/banner-cta.webp?v=2") type("image/webp"), url("photos/banner-cta.jpg?v=2") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05) translateY(var(--parallax-y, 0px));
  transition: transform 0.05s linear;
  will-change: transform;
}
/* Mobile: banner piu' leggero (1080px) */
@media (max-width: 768px) {
  .cta-banner__bg {
    background-image: url("photos/banner-cta-mobile.jpg?v=2");
    background-image: image-set(url("photos/banner-cta-mobile.webp?v=2") type("image/webp"), url("photos/banner-cta-mobile.jpg?v=2") type("image/jpeg"));
  }
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.92) 80%),
    linear-gradient(180deg, rgba(10,10,10,0.85), rgba(10,10,10,0.95));
  z-index: -1;
}
.cta-banner .eyebrow {
  color: var(--gold);
  margin-bottom: 24px;
}
.cta-banner .h-display {
  font-size: clamp(48px, 7.5vw, 130px);
  color: var(--white);
  margin-bottom: 16px;
  text-wrap: balance;
}
.cta-banner .h-display .accent { color: var(--gold); }
.cta-banner .lead {
  margin: 0 auto 48px auto;
  max-width: 50ch;
}
.cta-banner .micro {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: #050505;
  color: var(--mute);
  padding: 80px var(--pad-x) 40px var(--pad-x);
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-grid h4 {
  font-family: var(--ff-display);
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--white);
  margin: 0 0 18px 0;
}
.footer-grid p, .footer-grid a {
  color: var(--mute);
  margin: 0 0 8px 0;
  transition: color var(--dur) var(--ease);
}
.footer-grid a:hover { color: var(--gold); }
.footer-disclaimer {
  max-width: 1500px;
  margin: 30px auto 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.footer-brand-line {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-display);
  font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--white);
  margin-bottom: 16px;
}

/* =========================================================================
   LIGHTBOX
   ========================================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  /* iOS: blocca scroll-chaining e gesture indesiderate */
  overscroll-behavior: contain;
  touch-action: none;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* taste-skill: diffusion shadow, no harsh dark drop */
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.04);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,20,20,0.6);
  color: var(--white);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  z-index: 2;
}
.lightbox__close { top: 30px; right: 30px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 30px; }
.lightbox__nav--next { right: 30px; }
.lightbox__close:hover, .lightbox__nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}
.lightbox__counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--mute);
  text-transform: uppercase;
}
.lightbox__counter .now { color: var(--gold); font-family: var(--ff-display); font-size: 16px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .hero-stats { gap: 32px; }
  .scroll-video__meter { display: none; }
  .scroll-video__tag { top: 24px; right: 24px; }
  .hero-edition { display: none; }
  .hero-content { padding-left: var(--pad-x); }
}
@media (max-width: 768px) {
  .header-right .phone span { display: none; }
  .menu-icon { display: block; }
  .hero-stats { display: none; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .cta { width: 100%; padding: 20px 24px; font-size: 14px; }
  .hero-secondary { justify-content: center; }
  .gallery { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-disclaimer { flex-direction: column; }
  .scroll-video { height: 220vh; }
  .sv-caption .h-display { font-size: 36px; }
  .scroll-video__captions { top: 6vh; }
  /* taste-skill mobile fix: tag pill + legend dots removed (clutter on small viewports),
     captions sit on a soft scrim for legibility against the photo */
  .scroll-video__tag { display: none; }
  .scroll-video__legend { display: none; }
  .scroll-video__captions {
    top: auto;
    bottom: 24vh;
    padding: 0 20px;
  }
  .sv-caption {
    max-width: 100%;
    padding: 18px 18px 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.55) 35%, rgba(10,10,10,0.7) 100%);
  }
  .sv-caption .h-display { font-size: 32px; text-shadow: 0 4px 18px rgba(0,0,0,0.6); }
  .sv-caption .copy { color: rgba(255,255,255,0.92); text-shadow: 0 2px 10px rgba(0,0,0,0.85); }
  .lightbox { padding: 20px; }
  .lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
}

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

/* ============================================================================
   LEGAL PAGES (privacy.html, cookie.html)
   ============================================================================ */
.legal-body { visibility: visible; }
.site-header.is-static {
  position: static;
  background: rgba(10, 10, 10, 0.95);
  /* legal pages don't load app.js → no body.is-loaded → force the header visible */
  transform: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

/* taste-skill: back pill — hairline button with button-in-button leading icon */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  margin-bottom: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
  font-family: var(--ff-text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.legal-back__icon {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  transition:
    transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.legal-back:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 215, 0, 0.35);
}
.legal-back:hover .legal-back__icon {
  transform: translateX(-3px);
  background: var(--gold);
  color: #000;
}
.legal-back svg { width: 12px; height: 12px; }

/* taste-skill: bigger back CTA at the bottom of legal content */
.legal-back-bottom {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
}
.legal-back-bottom .legal-back {
  font-size: 12px;
  padding: 10px 22px 10px 10px;
  letter-spacing: 0.24em;
}
.legal-back-bottom .legal-back__icon { width: 32px; height: 32px; }
.legal-back-bottom .legal-back svg { width: 14px; height: 14px; }
.legal-page__head {
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.legal-page__head .eyebrow { color: var(--gold); margin-bottom: 16px; }
.legal-page__head h1 { font-size: clamp(48px, 8vw, 84px); line-height: 0.95; margin: 0 0 24px; }
.legal-page__head .lead { font-size: 17px; line-height: 1.6; color: var(--mute); max-width: 720px; }
.legal-meta { margin-top: 16px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

.legal-content { color: rgba(255, 255, 255, 0.85); font-size: 15px; line-height: 1.75; }
.legal-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
}
.legal-content h2:first-child { padding-top: 0; border-top: none; margin-top: 0; }
.legal-content h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 32px 0 12px;
}
.legal-content p { margin: 0 0 16px; }
.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-content a:hover { color: #fff; }
.legal-content strong { color: var(--white); font-weight: 600; }
.legal-content code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 3px;
}

.legal-list { margin: 0 0 20px; padding-left: 22px; }
.legal-list li { margin-bottom: 10px; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.legal-table thead th {
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  font-family: var(--ff-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}
.legal-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

.legal-footer-note {
  margin-top: 56px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* ============================================================================
   COOKIE BANNER
   ============================================================================ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9998;
  background: rgba(15, 15, 15, 0.98);
  color: var(--white);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 22px 60px 22px 26px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.cookie-banner__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cookie-banner__close:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }

.cookie-banner__body { min-width: 0; }
.cookie-banner__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.cookie-banner__title {
  font-family: var(--ff-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.cookie-banner__text {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 760px;
}
.cookie-banner__text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__text a:hover { color: var(--white); }

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner__btn {
  font-family: var(--ff-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cookie-banner__btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
}
.cookie-banner__btn--ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.6); }
.cookie-banner__btn--primary {
  background: var(--gold);
  color: #0a0a0a;
}
.cookie-banner__btn--primary:hover { background: #fff; }

@media (max-width: 720px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 44px 20px 20px;
  }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; padding: 12px 14px; }
}

/* WHATSAPP FLOATING BUTTON ------------------------------------------------ */
.wa-fab {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.42);
  z-index: 9990;
  transition: transform 0.25s var(--ease-out-expo);
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-fab svg { width: 32px; height: 32px; fill: #fff; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab:active { transform: scale(0.95); }
.wa-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 8px 24px rgba(0,0,0,0.42), 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 8px 24px rgba(0,0,0,0.42), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(0,0,0,0.42), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 600px) {
  .wa-fab { width: 52px; height: 52px; }
  .wa-fab svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab { animation: none; }
}
