/* ===============================================================
   VERONA VENUE — Phase 1 (Foundation + Hero)
   ---------------------------------------------------------------
   Table of contents
     1. Design tokens (CSS custom properties)
     2. Reset & base
     3. Typography helpers
     4. Buttons
     5. Header / Navigation
     6. Mobile navigation overlay
     7. Hero layout
     8. Hero headline
     9. Hero actions (buttons)
    10. Falling celebration items
    11. Particle reveal canvas
    12. Entrance animation states
    13. Responsive — tablet
    14. Responsive — mobile
    15. Reduced motion
   =============================================================== */

/* ---------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg: #F7F2E8;          /* warm cream */
  --color-stone: #F4F2EE;       /* warm stone — Testimonials */
  --color-stone-warm: #ECE8E2;  /* deeper warm stone — purchase-info sections */
  --color-text: #1F1F1F;        /* charcoal */
  --color-text-soft: #5E5A53;   /* secondary text */
  --color-gold: #B88A44;        /* soft gold accent */

  --color-btn-primary-bg: #1F1F1F;
  --color-btn-primary-bg-hover: #333333;
  --color-btn-primary-text: #FFFFFF;
  --color-btn-secondary: #1F1F1F;

  --particle-white: rgba(255, 255, 255, 0.75);
  --particle-gold: rgba(184, 138, 68, 0.45);

  /* Typography */
  --font-serif: "Canela", "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing / layout */
  --header-height: 84px;
  --container-pad: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-btn: 250ms ease;

  /* Z-index scale */
  --z-items-back: 1;
  --z-hero-content: 2;
  --z-items-front: 3;
  --z-particles: 4;
  --z-header: 20;
  --z-mobile-nav: 30;
}

/* ---------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 44px;                 /* accessible touch target */
  padding: 18px 34px;               /* premium, generous */
  border-radius: 10px;
  border: 1.5px solid transparent;
  transition: transform var(--transition-btn),
              background-color var(--transition-btn),
              color var(--transition-btn),
              box-shadow var(--transition-btn),
              border-color var(--transition-btn);
  will-change: transform;
}

.btn--primary {
  background-color: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  border-color: var(--color-btn-primary-bg);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-btn-secondary);
  border-color: var(--color-btn-secondary);
}

/* Hover only on devices that truly hover (desktop) */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    transform: translateY(-3px);
    background-color: var(--color-btn-primary-bg-hover);
    border-color: var(--color-btn-primary-bg-hover);
    box-shadow: 0 12px 28px -10px rgba(31, 31, 31, 0.45);
  }

  .btn--secondary:hover {
    transform: translateY(-3px);
    background-color: var(--color-btn-secondary);
    color: #FFFFFF;
    box-shadow: 0 12px 28px -12px rgba(31, 31, 31, 0.4);
  }
}

.btn:active {
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------
   5. HEADER / NAVIGATION
   --------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--container-pad);
}

.nav__logo-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--color-text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-soft);
  position: relative;
  padding: 6px 0;
  transition: color 200ms ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  padding: 13px 24px;
  min-height: 0;
  font-size: 0.88rem;
}

/* Hamburger — hidden on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
}

.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 300ms var(--ease), opacity 200ms ease;
}

/* Hamburger -> X when open */
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------------
   6. MOBILE NAVIGATION OVERLAY
   --------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-nav);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: var(--container-pad);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease),
              visibility 0s linear 320ms;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease),
              visibility 0s;
}

/* While the menu is open, raise the header above the overlay so the
   hamburger — which morphs into an X — stays visible and tappable as the
   close control in its existing top-right position. */
.nav-open .site-header {
  z-index: calc(var(--z-mobile-nav) + 1);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav__links a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-text);
}

.mobile-nav__cta {
  width: min(320px, 80vw);
}

/* ---------------------------------------------------------------
   7. HERO LAYOUT
   --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;               /* mobile-safe viewport unit */
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle radial glow behind the headline */
.hero__glow {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(1200px, 120vw);
  height: min(1200px, 120vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.55),
    rgba(247, 242, 232, 0) 55%
  );
  pointer-events: none;
  z-index: 0;
}

/* Hero content sits slightly above center (~43–45vh) */
.hero__content {
  position: relative;
  z-index: var(--z-hero-content);
  width: 100%;
  padding: 0 var(--container-pad);
  text-align: center;
  transform: translateY(-6vh);      /* nudge headline above center */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------------------------------------------------------------
   8. HERO HEADLINE
   --------------------------------------------------------------- */
.hero__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
  max-width: 950px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero__line {
  display: block;
}

.hero__line--1 {
  font-size: clamp(82px, 9vw, 112px);
}

.hero__line--2 {
  font-size: clamp(72px, 7.6vw, 96px);
  color: var(--color-text);
}

/* ---------------------------------------------------------------
   9. HERO ACTIONS
   --------------------------------------------------------------- */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(36px, 5vh, 56px);
}

/* ---------------------------------------------------------------
   10. FALLING CELEBRATION ITEMS
   --------------------------------------------------------------- */
.hero__items {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__items--back {
  z-index: var(--z-items-back);
}

.hero__items--front {
  z-index: var(--z-items-front);
}

/* Each falling item is absolutely positioned; JS drives transform + opacity */
.hero-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;                      /* base; JS overrides per item */
  height: 64px;
  will-change: transform, opacity;
  user-select: none;
}

.hero-item img,
.hero-item svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Depth tiers */
.hero-item--back {
  filter: blur(2.5px);
}

.hero-item--front {
  filter: blur(1.2px);
}

/* ---------------------------------------------------------------
   11. PARTICLE REVEAL CANVAS
   --------------------------------------------------------------- */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: var(--z-particles);
  pointer-events: none;
}

/* ---------------------------------------------------------------
   12. ENTRANCE ANIMATION STATES
   ---------------------------------------------------------------
   The headline starts hidden/blurred and is revealed by JS adding
   the .is-revealed class. Buttons rise afterward via .is-visible. */
.hero__headline {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(10px) scale(0.99);
  transition: opacity 1500ms var(--ease),
              filter 1500ms var(--ease),
              transform 1800ms var(--ease);
}

.hero__headline.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.hero__actions {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1050ms var(--ease), transform 1050ms var(--ease);
}

.hero__actions.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* If JS is disabled, still show everything */
.no-js .hero__headline,
.no-js .hero__actions {
  opacity: 1;
  filter: none;
  transform: none;
}

/* ---------------------------------------------------------------
   13. RESPONSIVE — TABLET (768px – 1023px)
   --------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero__line--1 {
    font-size: clamp(64px, 9vw, 72px);
  }
  .hero__line--2 {
    font-size: clamp(56px, 8vw, 64px);
  }
}

/* Hide desktop nav, show hamburger below 900px */
@media (max-width: 900px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
}

/* ---------------------------------------------------------------
   14. RESPONSIVE — MOBILE (320px – 767px)
   --------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --header-height: 72px;
  }

  .hero__headline {
    max-width: 92vw;
    line-height: 0.95;
  }

  .hero__line--1 {
    font-size: clamp(44px, 13vw, 52px);
  }
  .hero__line--2 {
    font-size: clamp(40px, 12vw, 48px);
  }

  .hero__content {
    transform: translateY(-4vh);
  }

  /* Full-width stacked buttons on small screens */
  .hero__actions {
    flex-direction: column;
    width: min(360px, 84vw);
  }
  .hero__actions .btn {
    width: 100%;
  }

  .mobile-nav__links a {
    font-size: 1.75rem;
  }
}

/* Extra-small phones: keep the headline comfortably on-screen */
@media (max-width: 360px) {
  .hero__line--1 {
    font-size: 44px;
  }
  .hero__line--2 {
    font-size: 40px;
  }
}

/* ---------------------------------------------------------------
   15. REDUCED MOTION
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__headline,
  .hero__actions {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .btn {
    transition: background-color 150ms ease, color 150ms ease;
  }

  .btn--primary:hover,
  .btn--secondary:hover {
    transform: none;
  }

  /* Static decorative items get gentle, minimal presence only */
  .hero-item {
    transition: none !important;
  }
}

/* ===============================================================
   16. PREMIUM LOADING EXPERIENCE
   ---------------------------------------------------------------
   A reusable full-screen intro overlay that sits above the Hero.
   It reuses the exact same falling-object system (.hero-item) and
   the same design tokens/typography, so nothing here diverges from
   the Hero. To customize per client: swap the copy for a logo and
   remove the footer note — the framework and transition stay.
   =============================================================== */

/* Lock scroll while the loader is up (no interaction behind it) */
html.loader-active,
html.loader-active body {
  overflow: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;                 /* above header (20) and mobile nav (30) */
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 800ms var(--ease);
}

/* Exit: fade the whole overlay away, revealing the Hero underneath */
.loader.is-leaving {
  opacity: 0;
  pointer-events: none;
}

/* Object layers reuse the same behaviour as the Hero's item layers */
.loader__items {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.loader__items--back {
  z-index: 1;
}
.loader__items--front {
  z-index: 3;
}

/* Centered copy */
.loader__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--container-pad);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Headline — same serif system, weight and letter-spacing as the Hero */
.loader__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
  max-width: 950px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-size: clamp(48px, 7.2vw, 92px);
  /* Entrance: soft blur + fade + slight upward move (Hero language) */
  opacity: 0;
  filter: blur(14px);
  transform: translateY(10px);
  transition: opacity 1500ms var(--ease),
              filter 1500ms var(--ease),
              transform 1800ms var(--ease);
}
.loader__headline.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Subheadline — Manrope, secondary tone */
.loader__subhead {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text-soft);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  max-width: 560px;
  margin: 28px 0 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.loader__subhead.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA wrapper handles the entrance so the button keeps its own styles */
.loader__cta {
  margin-top: clamp(32px, 5vh, 52px);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.loader__cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle footer note */
.loader__note {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 34px);
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;              /* ~18% larger, easier to notice */
  font-weight: 500;                /* Regular -> Medium */
  letter-spacing: 0.04em;
  color: var(--color-text);        /* darker than the light gray */
  text-align: center;
  width: max-content;
  max-width: 90vw;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.loader__note.is-visible {
  opacity: 0.58;                   /* darker, ~58% — still subtle */
}

/* Reduced motion: present the loader instantly, no reveal or fade */
@media (prefers-reduced-motion: reduce) {
  .loader {
    transition: none !important;
  }
  .loader__headline,
  .loader__subhead,
  .loader__cta {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
  .loader__note {
    opacity: 0.58 !important;
    transition: none !important;
  }
}

/* ===============================================================
   17. SECTION 2 — EVENT SHOWCASE
   ---------------------------------------------------------------
   Reuses the existing design tokens, typography and animation
   language. Fully self-contained: no existing rule is modified.
   =============================================================== */
.showcase {
  position: relative;
  z-index: 2;                       /* between the shared back (1) & front (3) layers */
  background-color: transparent;    /* cream now lives on the shared .hero-chapter */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(88px, 13vh, 150px) var(--container-pad);
}

.showcase__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Section heading — same serif system as the Hero */
.showcase__heading {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.04;
  font-size: clamp(34px, 5.2vw, 64px);
  max-width: 16ch;
}

.showcase__card {
  margin-top: clamp(44px, 8vh, 92px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card title — mirrors the Hero headline treatment */
.showcase__title {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-size: clamp(40px, 6vw, 76px);
}
.showcase__title span {
  display: block;
}

.showcase__copy {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text-soft);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  max-width: 620px;
  margin: clamp(20px, 3vh, 30px) auto 0;
}

.showcase__cta {
  margin-top: clamp(28px, 4vh, 42px);
}

/* Premium video card — portrait source shown at its true ratio
   (no stretch, no crop). Rounded corners, soft shadow, thin border. */
.showcase__media {
  position: relative; /* anchor for the mute control */
  margin: clamp(48px, 8vh, 88px) 0 0;
  padding: 0;
  aspect-ratio: 720 / 1278;
  height: clamp(380px, 70vh, 660px);
  width: auto;
  max-width: 92vw;
  border-radius: 22px;
  border: 1px solid rgba(31, 31, 31, 0.1);
  box-shadow: 0 34px 80px -34px rgba(31, 31, 31, 0.38),
              0 10px 26px -14px rgba(31, 31, 31, 0.22);
  overflow: hidden;
  background-color: #ECE5D7; /* subtle cream fill before the poster paints */
}

.showcase__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* box matches the video ratio -> no crop, no stretch */
  border-radius: inherit;
}

/* --- Scroll reveal (same blur + fade + rise language as the Hero) --- */
.showcase [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(10px);
  transition: opacity 900ms var(--ease),
              transform 1100ms var(--ease),
              filter 900ms var(--ease);
}
.showcase [data-reveal="1"] { transition-delay: 0ms; }
.showcase [data-reveal="2"] { transition-delay: 140ms; }
.showcase [data-reveal="3"] { transition-delay: 280ms; }
.showcase [data-reveal="4"] { transition-delay: 420ms; }

/* The video is last and glides up a little further, a little softer */
.showcase .showcase__media {
  transform: translateY(46px);
  transition: opacity 1200ms var(--ease),
              transform 1300ms var(--ease),
              filter 1000ms var(--ease);
  transition-delay: 600ms;
}

.showcase.is-inview [data-reveal] {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Mobile: drive the video by width so it stays a large focal point */
@media (max-width: 767px) {
  .showcase__media {
    height: auto;
    width: min(82vw, 400px);
  }
}

/* Reduced motion: present everything immediately, no reveal motion */
@media (prefers-reduced-motion: reduce) {
  .showcase [data-reveal],
  .showcase .showcase__media {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* --- Mute / unmute control (inside the video frame) --- */
.showcase__mute {
  position: absolute;
  right: clamp(14px, 1.6vw, 22px);
  bottom: clamp(14px, 1.6vw, 22px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #ffffff;
  background-color: rgba(31, 31, 31, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 220ms var(--ease),
              background-color 220ms var(--ease),
              box-shadow 220ms var(--ease),
              border-color 220ms var(--ease);
}

.showcase__mute-icon {
  display: block;
  width: 20px;
  height: 20px;
}
.showcase__mute-icon--unmuted {
  display: none;
}
.showcase__mute.is-unmuted .showcase__mute-icon--muted {
  display: none;
}
.showcase__mute.is-unmuted .showcase__mute-icon--unmuted {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .showcase__mute:hover {
    transform: scale(1.04);
    background-color: rgba(31, 31, 31, 0.6);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.55);
  }
}

.showcase__mute:active {
  transform: scale(0.96);
}

@media (max-width: 767px) {
  .showcase__mute {
    width: 44px;
    height: 44px;
    right: clamp(14px, 3.4vw, 18px);
    bottom: clamp(14px, 3.4vw, 18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase__mute {
    transition: none !important;
  }
  .showcase__mute:hover,
  .showcase__mute:active {
    transform: none !important;
  }
}

/* ===============================================================
   18. SECTION 3 — EVENT GALLERY
   ---------------------------------------------------------------
   Premium editorial masonry (CSS columns). Reuses design tokens,
   typography and the established reveal language. Self-contained;
   no existing rule is modified.
   =============================================================== */
.gallery {
  position: relative;
  background-color: var(--color-bg);
  padding: clamp(90px, 14vh, 170px) var(--container-pad);
}

.gallery__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Section header — same type system as the rest of the site */
.gallery__eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0;
  text-align: center;
}

.gallery__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 14px 0 0;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-size: clamp(40px, 6vw, 76px);
  text-align: center;
}

.gallery__sub {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  max-width: 660px;
  margin: clamp(18px, 2.6vh, 26px) auto 0;
  text-align: center;
}

/* ---------------------------------------------------------------
   Premium gallery wheel — dominant floating centre image with
   blurred/darker depth neighbours and frosted-glass controls.
   --------------------------------------------------------------- */
.wheel {
  position: relative;
  max-width: 1120px;
  margin: clamp(40px, 7vh, 84px) auto 0;
  /* Horizontal gestures drive the wheel; vertical still scrolls the page */
  touch-action: pan-y;
  cursor: grab;
  /* Entrance (driven by .gallery.is-inview) */
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 900ms var(--ease), transform 1000ms var(--ease);
  outline: none;
}

.wheel__stage {
  position: relative;
  width: 100%;
  padding-bottom: 62%; /* room for the tilted 3D drum (scales with card size) */
  perspective: 1150px; /* JS overrides, scaled to the drum size */
  overflow: hidden;
}

/* Ambient glow behind the front image */
.wheel__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56%;
  height: 68%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(184, 138, 68, 0.18), rgba(247, 242, 232, 0) 72%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

/* The rotating ring — JS spins it via rotateY */
.wheel__track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 1;
}

/* Each image is a fixed face on the drum; JS sets rotateY + translateZ */
.wheel__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52%; /* front dominant; larger photography while the drum curve reads */
  aspect-ratio: 16 / 9;
  margin: 0;
  /* Leaf 3D face — no preserve-3d so its back is reliably hidden when the
     drum rotates it away (prevents rear faces bleeding through). */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* Card = premium floating photo frame */
.wheel__card {
  position: absolute;
  inset: 0;
  border-radius: clamp(14px, 1.4vw, 22px);
  overflow: hidden;
  background-color: #ECE5D7;
  box-shadow: 0 18px 40px -26px rgba(31, 31, 31, 0.3); /* soft (side faces) */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: box-shadow 500ms var(--ease);
}
.wheel__slide.is-active .wheel__card {
  box-shadow: 0 44px 88px -36px rgba(31, 31, 31, 0.5),
              0 16px 34px -20px rgba(31, 31, 31, 0.3); /* stronger (front) */
}
/* Curved image surface: vertical strips bowed into a convex arc inside
   the card's own (JS-set) perspective, so each image looks curved. */
.wheel__curve {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.wheel__strip {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  background-repeat: no-repeat;
  background-color: #ECE5D7;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* Frosted-glass navigation buttons */
.wheel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 240ms var(--ease), background-color 240ms var(--ease),
              opacity 240ms var(--ease);
}
.wheel__nav--prev { left: clamp(4px, 1.2vw, 16px); }
.wheel__nav--next { right: clamp(4px, 1.2vw, 16px); }
.wheel__nav:disabled { opacity: 0.3; cursor: default; }
.wheel__nav svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .wheel__nav:not(:disabled):hover {
    transform: translateY(-50%) scale(1.06);
    background: rgba(255, 255, 255, 0.2);
  }
}
.wheel__nav:not(:disabled):active {
  transform: translateY(-50%) scale(0.92); /* premium press */
}

/* Info + counter + progress */
.wheel__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(24px, 3.6vh, 38px);
}
/* Info block animates as ONE unit: fade down out -> swap -> fade up in */
.wheel__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.wheel__info.is-swapping {
  opacity: 0;
  transform: translateY(10px);
}
.wheel__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--color-text);
  text-align: center;
  margin: 0;
}
.wheel__cat {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.wheel__count {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--color-text-soft);
  white-space: nowrap;
}
/* Thin animated gold progress line */
.wheel__progress {
  position: relative;
  width: clamp(140px, 22vw, 240px);
  height: 2px;
  border-radius: 2px;
  background: rgba(31, 31, 31, 0.12);
  overflow: hidden;
}
.wheel__progress-bar {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0.1);
  background: var(--color-gold);
  border-radius: 2px;
  transition: transform 600ms var(--ease);
}

@media (max-width: 1023px) {
  .wheel__stage { padding-bottom: 69%; }
  .wheel__slide { width: 62%; }
}
@media (max-width: 767px) {
  .wheel__stage { padding-bottom: 114%; }
  .wheel__slide { width: 96%; } /* active image ~86% of the viewport on phones */
}

/* Grabbing feedback while dragging */
.wheel.is-dragging { cursor: grabbing; }
.wheel.is-dragging .wheel__slide { transition: none; }

/* ---------------------------------------------------------------
   Replayable reveals — driven by .gallery.is-inview (added on entry,
   removed once the section is nearly out of view, so they replay).
   --------------------------------------------------------------- */
.gallery__reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  transition: opacity 800ms var(--ease),
              transform 700ms var(--ease),
              filter 800ms var(--ease);
}
.gallery.is-inview .gallery__reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.gallery.is-inview .wheel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Small stagger for the header lines */
.gallery__headline { transition-delay: 0ms; }
.gallery.is-inview .gallery__headline { transition-delay: 120ms; }
.gallery.is-inview .gallery__sub { transition-delay: 240ms; }
.gallery.is-inview .wheel { transition-delay: 320ms; }

/* Reduced motion: everything visible, no reveal or slide animation */
@media (prefers-reduced-motion: reduce) {
  .gallery__reveal,
  .wheel {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .wheel__slide,
  .wheel__card,
  .wheel__nav,
  .wheel__info,
  .wheel__progress-bar {
    transition: none !important;
  }
}

/* ===============================================================
   SECTION 19 — THE EXPERIENCE (editorial luxury showcase)
   One image at a time, each entering as its own premium feature.
   Same type system, colours and easing as the rest of the site.
   =============================================================== */
.exp {
  position: relative;
  background-color: var(--color-bg);
  padding: clamp(58px, 9vh, 108px) var(--container-pad) clamp(44px, 6.5vh, 82px);
  overflow: hidden;
}

/* --- Intro block --- */
.exp__intro {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.exp__eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0;
}

.exp__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 14px 0 0;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-size: clamp(40px, 6vw, 76px);
}

.exp__body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  max-width: 620px;
  margin: clamp(18px, 2.6vh, 26px) auto 0;
}

/* --- Stream of individually-featured images --- */
.exp__stream {
  width: 100%;
  max-width: 1240px;
  margin: clamp(24px, 5vh, 56px) auto 0;
}

/* Each image + its title form one editorial card. Vertical rhythm is
   kept tight so cards flow into one another like magazine pages. */
.exp__item {
  min-height: 62vh;
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vh, 52px) 0;
}

.exp__figure {
  position: relative;
  width: min(88%, 1040px);
  display: flex;
  justify-content: center;
}

.exp__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: clamp(16px, 2.4vw, 30px);
  box-shadow:
    0 30px 70px -30px rgba(31, 31, 31, 0.42),
    0 12px 30px -18px rgba(31, 31, 31, 0.28);
}

/* Caption belongs to the image directly above it — kept close. */
.exp__caption {
  margin-top: clamp(16px, 2.4vh, 26px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exp__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0;
  line-height: 1.05;
}

/* One thin gold accent line beneath each title */
.exp__rule {
  display: block;
  width: 70px;
  height: 2px;
  margin-top: clamp(14px, 2vh, 20px);
  background-color: var(--color-gold);
  transform-origin: center;
}

/* --- Reveal animation (replays on every enter, both directions) --- */
.exp__reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 900ms var(--ease),
    transform 900ms var(--ease);
  will-change: opacity, transform;
}

.exp__reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Title settles a touch after its figure */
.exp__caption.is-visible .exp__title { transition-delay: 90ms; }

@media (max-width: 640px) {
  .exp__figure { width: 90%; }
  /* Short images vs tall phones: let content drive height so cards stay
     connected instead of floating in min-height whitespace. */
  .exp__item { min-height: 42vh; min-height: 42svh; padding: clamp(18px, 3vh, 40px) 0; }
}

/* Reduced motion: everything visible, no reveal or slide animation */
@media (prefers-reduced-motion: reduce) {
  .exp__reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===============================================================
   SECTIONS 5 & 6 — CLIENT EXPERIENCES + FAQ
   One continuous premium chapter on a shared warm-stone ground,
   using the site's existing type, colour and reveal language.
   =============================================================== */
.chapter {
  position: relative;
  background-color: var(--color-stone);
  padding: clamp(64px, 10vh, 124px) var(--container-pad);
  scroll-margin-top: var(--header-height);
}

.chapter__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.chapter__inner--narrow { max-width: 820px; }

/* Section header — identical type system to the rest of the site */
.chapter__eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0;
  text-align: center;
}
.chapter__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 14px 0 0;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-size: clamp(38px, 5.4vw, 68px);
  text-align: center;
}
.chapter__sub {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text-soft);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
  max-width: 640px;
  margin: clamp(16px, 2.4vh, 24px) auto 0;
  text-align: center;
}

/* --- Shared frosted-glass surface (review cards + summary card) --- */
.rv-card,
.incl-card {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: 0 22px 50px -26px rgba(31, 31, 31, 0.28);
}
/* Graceful fallback where backdrop-filter is unsupported */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .rv-card,
  .incl-card { background: rgba(255, 255, 255, 0.82); }
}

/* --- Floating review wall — columns staggered for an editorial,
       deliberately-not-aligned composition --- */
.rv-wall {
  margin-top: clamp(36px, 6vh, 66px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
  align-items: start;
}
.rv-cell { min-width: 0; }
.rv-wall > .rv-cell:nth-child(3n + 2) { margin-top: clamp(24px, 3.2vw, 50px); }
.rv-wall > .rv-cell:nth-child(3n)     { margin-top: clamp(10px, 1.6vw, 24px); }
.rv-card {
  border-radius: 20px;
  padding: clamp(24px, 2.2vw, 34px);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .rv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 62px -26px rgba(31, 31, 31, 0.34);
  }
}
.rv-stars {
  display: block;
  color: var(--color-gold);
  font-size: 1rem;
  letter-spacing: 3px;
}
.rv-quote {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.12rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--color-text);
  margin: 16px 0 22px;
}
.rv-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.rv-name {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}
.rv-event {
  display: block;
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-text-soft);
}
.rv-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-family: var(--font-sans);
  font-size: 0.73rem;
  letter-spacing: 0.01em;
  color: var(--color-text-soft);
  white-space: nowrap;
}
.rv-g { flex: none; display: block; }

/* --- Reviews bottom CTA --- */
.rv-cta {
  margin-top: clamp(46px, 7vh, 84px);
  text-align: center;
}
.rv-cta__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text);
  max-width: 18ch;
  margin: 0 auto clamp(24px, 3vh, 34px);
}

/* --- FAQ accordion --- */
.faq__list {
  margin-top: clamp(32px, 5vh, 58px);
  border-top: 1px solid rgba(31, 31, 31, 0.12);
}
.faq__item { border-bottom: 1px solid rgba(31, 31, 31, 0.12); }
.faq__q { margin: 0; }
.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  color: var(--color-text);
  padding: clamp(20px, 2.6vh, 30px) 2px;
  min-height: 44px;
  transition: color 250ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .faq__trigger:hover { color: var(--color-gold); }
}
.faq__trigger:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq__icon::before { top: 50%; left: 0; right: 0; height: 1.6px; transform: translateY(-50%); }
.faq__icon::after {
  left: 50%; top: 0; bottom: 0; width: 1.6px;
  transform: translateX(-50%);
  transition: transform 300ms var(--ease);
}
.faq__item.is-open .faq__icon::after { transform: translateX(-50%) scaleY(0); }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 460ms var(--ease), opacity 380ms var(--ease);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; opacity: 1; }
.faq__panel-inner { overflow: hidden; }
.faq__answer {
  font-family: var(--font-sans);
  color: var(--color-text-soft);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.7;
  max-width: 68ch;
  margin: 0;
  padding: 0 2px clamp(22px, 3vh, 30px);
}

/* --- "What's Included" summary card --- */
.incl-card {
  margin-top: clamp(50px, 8vh, 100px);
  border-radius: 24px;
  padding: clamp(30px, 4vw, 56px);
  text-align: center;
}
.incl-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0 0 clamp(22px, 3vh, 32px);
}
/* Six premium category cards, laid out in a responsive grid */
.incl-cats {
  margin: 0 0 clamp(28px, 4vh, 40px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;             /* each card fits its own content */
  gap: clamp(16px, 2vw, 24px);
  text-align: left;
}
.incl-cat {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: clamp(20px, 2.2vw, 30px);
  box-shadow: 0 12px 30px -22px rgba(31, 31, 31, 0.28);
}
.incl-cat__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0 0 clamp(12px, 1.6vh, 18px);
}
.incl-cat__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.incl-cat__list li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-text);
}
.incl-cat__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
  font-weight: 700;
}

/* --- Replayable reveal (driven by .chapter.is-inview) --- */
.chapter [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}
.chapter.is-inview [data-reveal] {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .rv-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-wall > .rv-cell:nth-child(3n + 2),
  .rv-wall > .rv-cell:nth-child(3n) { margin-top: 0; }
  .rv-wall > .rv-cell:nth-child(2n) { margin-top: clamp(20px, 3vw, 38px); }
}
@media (max-width: 900px) {
  .incl-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .rv-wall { grid-template-columns: 1fr; }
  .rv-wall > .rv-cell { margin-top: 0; }
  .incl-cats { grid-template-columns: 1fr; }
}

/* Reduced motion: present everything, keep accordion instant */
@media (prefers-reduced-motion: reduce) {
  .chapter [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .faq__panel,
  .faq__icon::after,
  .rv-card { transition: none !important; }
}

/* ===============================================================
   SECTION 7 + FOOTER — PURCHASE-INFORMATION CLOSE
   FAQ, "What's Included" and the Final CTA share a deeper warm
   stone so the page visibly enters its purchase-information
   chapter. Testimonials (Section 5) keep their lighter stone.
   =============================================================== */
.chapter.faq,
.chapter.cta-final {
  background-color: var(--color-stone-warm);
}

/* --- Final CTA — generous breathing room, centred --- */
.cta-final {
  text-align: center;
  padding-top: clamp(84px, 14vh, 176px);
  padding-bottom: clamp(92px, 16vh, 196px);
}
.cta-final__inner { max-width: 760px; }
.cta-final__copy {
  margin: clamp(18px, 2.6vh, 30px) auto 0;
  max-width: 620px;
}
.cta-final__copy p {
  font-family: var(--font-sans);
  color: var(--color-text-soft);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
  margin: 0;
}
.cta-final__copy p + p { margin-top: 1.1em; }
.cta-final__actions {
  margin-top: clamp(32px, 4.5vh, 54px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}
.cta-final__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 250ms var(--ease);
}
.cta-final__link span { transition: transform 250ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .cta-final__link:hover { color: var(--color-gold); }
  .cta-final__link:hover span { transform: translateX(4px); }
}

/* --- Footer — minimal, premium, same warm-stone ground --- */
.site-footer {
  /* Chapter 4 — returns to the original warm cream, rising over the stone */
  background-color: var(--color-bg);
  padding: clamp(56px, 8vh, 92px) var(--container-pad) clamp(28px, 4vh, 40px);
}
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(36px, 5vw, 72px);
}
.site-footer__logo {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  color: var(--color-text);
}
.site-footer__tagline {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--color-text-soft);
  margin: 12px 0 0;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.site-footer__heading {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 16px;
}
.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.site-footer__col a {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--color-text-soft);
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__col a:hover { color: var(--color-gold); }
}
.site-footer__bottom {
  max-width: 1180px;
  margin: clamp(40px, 6vh, 68px) auto 0;
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid rgba(31, 31, 31, 0.10);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer__copy,
.site-footer__credit {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-text-soft);
  margin: 0;
}

@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 34px; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .site-footer__cols { grid-template-columns: 1fr; }
}

/* ===============================================================
   SCROLL-CONTROLLED TEXT REVEAL — Sections 5-7 + footer
   Hidden/animated states apply only when the JS engine is active
   (html.reveal-on). Without it — no JS or prefers-reduced-motion —
   nothing is hidden and the full text shows immediately.
   =============================================================== */
/* Complete text for assistive tech; visual split is aria-hidden. */
.rt__sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.rt__w { display: inline-block; white-space: nowrap; }
.rt__l { display: inline-block; }

/* --- Scrubbed letters/words: one --p drives opacity, rise, blur --- */
.reveal-on .rt--scrub .rt__l {
  --lp: clamp(0, calc((var(--p, 0) * (var(--n) + var(--f)) - var(--i)) / var(--f)), 1);
  opacity: calc(0.1 + 0.9 * var(--lp));
  transform: translateY(calc((1 - var(--lp)) * var(--rise, 14px)));
  filter: blur(calc((1 - var(--lp)) * var(--blur, 8px)));
}
.reveal-on .rt--scrub:not(.is-revealed) .rt__l { will-change: opacity, transform, filter; }
.reveal-on .rt--scrub.is-revealed .rt__l {
  opacity: 1; transform: none; filter: none; will-change: auto;
}

/* --- Timed cascade: testimonial review words (driven by card) --- */
.reveal-on .rt--timed .rt__l {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(3px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.reveal-on .rv-cell.is-telling .rt--timed .rt__l {
  opacity: 1; transform: none; filter: none;
  transition-delay: calc(160ms + var(--i) * 20ms);
}

/* --- Testimonial card: fade + rise, then name/event, then source --- */
.reveal-on .rv-cell {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-on .rv-cell.is-telling { opacity: 1; transform: none; }
.reveal-on .rv-name,
.reveal-on .rv-event,
.reveal-on .rv-source {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal-on .rv-cell.is-telling .rv-name   { opacity: 1; transform: none; transition-delay: 0.48s; }
.reveal-on .rv-cell.is-telling .rv-event  { opacity: 1; transform: none; transition-delay: 0.54s; }
.reveal-on .rv-cell.is-telling .rv-source { opacity: 1; transform: none; transition-delay: 0.72s; }

/* --- What's Included: category-card stagger --- */
.reveal-on .incl-cat {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-on .incl-card.is-in .incl-cat {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* --- Buttons + secondary link: fade + rise (after nearby text) --- */
.reveal-on .rt-btn {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-on .rt-btn.is-in { opacity: 1; transform: none; }

/* --- Footer: staggered fade + rise --- */
.reveal-on .site-footer .rt-fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-on .site-footer.is-in .rt-fade {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i, 0) * 40ms);
}

/* Thundering AI credit link — inherits footer typography */
.site-footer__credit-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__credit-link:hover { color: var(--color-text); border-bottom-color: currentColor; }
}
.site-footer__credit-link:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Reduced motion: never hide, never scrub — full readable text. */
@media (prefers-reduced-motion: reduce) {
  .rt__l,
  .rv-cell,
  .rv-name, .rv-event, .rv-source,
  .incl-cat,
  .rt-btn,
  .site-footer .rt-fade {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ===============================================================
   SHARED HERO + SECTION 2 ENVIRONMENT  +  LAYERED CHAPTER TRANSITION
   Reusable system so future pages can layer chapters the same way.
   =============================================================== */
:root {
  --chapter-radius: 30px;    /* restrained top corners of an incoming chapter */
  --chapter-overlap: 54px;   /* how far the incoming chapter covers the previous */
}

/* --- Chapter 1: one cream ground + one falling-object layer for Hero + Section 2 --- */
.hero-chapter {
  position: relative;
  isolation: isolate;               /* contain the back/content/front z-index tiers */
  background-color: var(--color-bg);
  overflow: hidden;                 /* clip drifting objects — no horizontal overflow */
}
/* The shared object layers (#itemsBack / #itemsFront) keep their existing
   .hero__items styling: position:absolute; inset:0; overflow:hidden;
   pointer-events:none — now measured against .hero-chapter (their nearest
   positioned ancestor), so they span the full height of the Hero AND
   Section 2. They are siblings of .hero, so the Hero's own styling — layout,
   overflow and all — is completely unchanged. */

/* --- Layered Chapter Transition: incoming chapter rises over the previous --- */
.chapter-cover {
  position: relative;
  z-index: 2;                        /* sits above the previous (cream) chapter */
  margin-top: calc(-1 * var(--chapter-overlap));  /* overlap = the "cover" */
  border-top-left-radius: var(--chapter-radius);
  border-top-right-radius: var(--chapter-radius);
  overflow: hidden;                  /* clip inner backgrounds to the rounded top */
  box-shadow: 0 -18px 46px -22px rgba(31, 31, 31, 0.20);  /* soft upward depth */
}
.chapter-cover--stone { background-color: var(--color-stone); }
.chapter-cover--footer {
  z-index: 3;                        /* above the stone chapter it covers */
  background-color: var(--color-bg);
}

/* Restrain the treatment on small screens so it never reads as a floating card */
@media (max-width: 640px) {
  :root {
    --chapter-radius: 16px;
    --chapter-overlap: 34px;
  }
  .chapter-cover { box-shadow: 0 -12px 30px -18px rgba(31, 31, 31, 0.18); }
}

/* Reduced motion: keep the clean layered look, no scroll-driven motion is used
   here (the cover is natural document flow), so nothing extra to disable. */

/* Section 2 readability: a very soft localized cream wash behind the text
   keeps the copy clean over the shared falling objects, while the objects
   stay clearly visible around it (connecting Section 2 to the Hero). */
.showcase__inner { position: relative; z-index: 0; }
.showcase__inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1040px, 122%);
  height: min(1060px, 118%);
  background: radial-gradient(
    ellipse at center,
    rgba(247, 242, 232, 0.62) 0%,
    rgba(247, 242, 232, 0.30) 44%,
    rgba(247, 242, 232, 0) 70%
  );
  pointer-events: none;
}
