/* ==========================================================================
   Shree Jain Marriage — website styles
   Sections: tokens · base · layout · header · hero · features · stories ·
             testimonials · about · contact · footer · legal pages · motion
   ========================================================================== */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --wine-900: #3a0d19;
  --wine-800: #4f1222;
  --wine-700: #66182d;
  --wine-600: #7d2139;
  --wine-500: #9a2f4a;
  --gold-600: #a8844a;
  --gold-500: #c3a06a;
  --gold-400: #d8bd8f;
  --gold-200: #efe2c7;
  --ivory:    #fcf8f2;
  --cream:    #f6eee2;
  --blush:    #f3e1db;
  --ink:      #2b1a1f;
  --ink-soft: #5e4a50;
  --line:     rgba(102, 24, 45, 0.12);
  --white:    #ffffff;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(4.5rem, 10vw, 8rem);

  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(58, 13, 25, 0.06), 0 2px 8px rgba(58, 13, 25, 0.04);
  --shadow:    0 10px 30px -12px rgba(58, 13, 25, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(58, 13, 25, 0.35);

  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h:  76px;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 1px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.975rem, 0.94rem + 0.15vw, 1.05rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

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

button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--wine-800);
}

p { margin: 0 0 var(--space-4); }

::selection { background: var(--wine-700); color: var(--ivory); }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--wine-800);
  color: var(--ivory);
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space-4); }

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

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: var(--section-y); position: relative; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--space-4);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
}
.section-title em {
  font-style: italic;
  color: var(--wine-600);
}

.ornament {
  display: block;
  width: 120px;
  height: 18px;
  margin: var(--space-5) auto 0;
  color: var(--gold-500);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--wine-700);
  --btn-fg: var(--ivory);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: 0 var(--space-6);
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-500);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover { color: var(--wine-900); border-color: var(--gold-500); box-shadow: var(--shadow); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ivory);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ── Scroll progress ─────────────────────────────────────────────────────── */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--ivory);
  transition: background-color 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft), color 0.4s var(--ease-soft), height 0.4s var(--ease-soft);
}
.site-header.is-scrolled { --header-h: 74px; }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  transition: max-width 0.6s var(--ease-out), padding 0.6s var(--ease-out), background-color 0.5s, box-shadow 0.5s, border-color 0.5s, min-height 0.5s;
  border: 1px solid transparent;
  border-radius: 999px;
}
/* Floating pill once scrolled */
.site-header.is-scrolled .container {
  max-width: 1020px;
  min-height: 56px;
  padding-inline: 0.75rem 1.25rem;
  background: rgba(42, 8, 18, 0.82);
  border-color: rgba(216, 189, 143, 0.22);
  box-shadow: 0 14px 34px -14px rgba(26, 6, 12, 0.6);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.site-header.is-scrolled .brand-mark { width: 34px; height: 34px; }
.site-header.is-scrolled .brand-name small { display: none; }
.site-header.is-scrolled .brand-name { font-size: 1.25rem; }
@media (max-width: 1080px) {
  .site-header.is-scrolled .container { width: calc(100% - 20px); }
}
/* backdrop-filter would make the pill the containing block of the fixed mobile menu */
.nav-open .site-header .container,
.nav-open .site-header.is-scrolled .container {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  position: relative;
  z-index: 2;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--gold-400);
  transition: transform 0.6s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(45deg); }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--space-2) 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.88;
  transition: opacity 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-link:hover,
.nav-link.is-active { opacity: 1; }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  min-height: 42px;
  padding: 0 var(--space-5);
  font-size: 0.75rem;
}
.site-header:not(.is-scrolled) .nav-cta {
  --btn-bg: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), opacity 0.3s, top 0.3s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22.5px; width: 16px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22.5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-open .site-header { color: var(--ivory); }
  .nav-open .site-header .brand-mark { color: var(--gold-400); }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 1rem) clamp(1.5rem, 8vw, 3rem) 2rem;
    background:
      radial-gradient(120% 70% at 100% 0%, rgba(195, 160, 106, 0.18), transparent 60%),
      var(--wine-900);
    color: var(--ivory);
    clip-path: circle(0% at calc(100% - 40px) 38px);
    visibility: hidden;
    transition: clip-path 0.7s var(--ease-out), visibility 0s linear 0.7s;
  }
  .nav-open .site-nav {
    clip-path: circle(150% at calc(100% - 40px) 38px);
    visibility: visible;
    transition: clip-path 0.7s var(--ease-out), visibility 0s;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .nav-list li {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }
  .nav-open .nav-list li { opacity: 1; transform: none; }
  .nav-open .nav-list li:nth-child(1) { transition-delay: 0.15s; }
  .nav-open .nav-list li:nth-child(2) { transition-delay: 0.21s; }
  .nav-open .nav-list li:nth-child(3) { transition-delay: 0.27s; }
  .nav-open .nav-list li:nth-child(4) { transition-delay: 0.33s; }
  .nav-open .nav-list li:nth-child(5) { transition-delay: 0.39s; }
  .nav-open .nav-list li:nth-child(6) { transition-delay: 0.45s; }
  .nav-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    padding: var(--space-1) 0;
  }
  .site-nav .nav-cta { margin-top: var(--space-5); --btn-bg: var(--gold-500); --btn-fg: var(--wine-900); border-color: var(--gold-500); }
  .nav-drawer-meta {
    display: block;
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: rgba(252, 248, 242, 0.7);
    opacity: 0;
    transition: opacity 0.5s 0.5s;
  }
  .nav-open .nav-drawer-meta { opacity: 1; }
  .nav-drawer-meta a { display: block; padding: var(--space-1) 0; color: var(--gold-400); }
}
@media (min-width: 961px) {
  .nav-drawer-meta { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ivory);
  background: var(--wine-900);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  transform: scale(1.12);
  animation: kenburns 22s var(--ease-soft) forwards;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(42, 8, 18, 0.92) 0%, rgba(58, 13, 25, 0.78) 38%, rgba(58, 13, 25, 0.25) 75%, rgba(58, 13, 25, 0.15) 100%),
    linear-gradient(0deg, rgba(42, 8, 18, 0.7) 0%, transparent 35%);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  width: 60vmax;
  height: 60vmax;
  left: -20vmax;
  top: -20vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 160, 106, 0.22), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
  padding-block: calc(var(--header-h) + 3rem) 7rem;
}
.hero .eyebrow { color: var(--gold-400); }
.hero .eyebrow::after { display: none; }
.hero-title {
  font-size: clamp(2.9rem, 1.6rem + 6vw, 6rem);
  font-weight: 400;
  line-height: 1.02;
  color: var(--ivory);
  margin-bottom: var(--space-5);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title .accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--gold-400) 0%, #f6e7c8 30%, var(--gold-500) 55%, #f6e7c8 80%, var(--gold-400) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
.hero-lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-style: italic;
  color: var(--gold-200);
  margin-bottom: var(--space-4);
}
.hero-text {
  max-width: 520px;
  color: rgba(252, 248, 242, 0.82);
}
.hero-text p { margin-bottom: var(--space-2); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.hero-actions .btn:not(.btn--ghost) { --btn-bg: var(--gold-500); --btn-fg: var(--wine-900); }
.hero-actions .btn:not(.btn--ghost)::before { background: var(--ivory); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(252, 248, 242, 0.7);
}
.scroll-cue span {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold-400), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 1px; height: 50%;
  background: var(--ivory);
  animation: scroll-line 2.2s var(--ease-soft) infinite;
}

.hero-meta {
  position: absolute;
  left: 0; right: 0; bottom: 2.1rem;
  pointer-events: none;
}
.hero-meta .container {
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(252, 248, 242, 0.55);
}
@media (max-width: 720px), (max-height: 640px) { .hero-meta, .scroll-cue { display: none; } }

/* Hero entrance (JS adds .is-ready to <html>; without JS, content is visible) */
.js .hero [data-enter] { opacity: 0; transform: translateY(28px); }
.js .hero-title .line > span { transform: translateY(110%); opacity: 1; }
.is-ready .hero [data-enter] {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.is-ready .hero-title .line > span {
  transform: none;
  transition: transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}

@media (max-width: 720px) {
  .hero { align-items: flex-end; }
  .hero::before {
    background: linear-gradient(0deg, rgba(42, 8, 18, 0.96) 0%, rgba(58, 13, 25, 0.82) 50%, rgba(58, 13, 25, 0.35) 100%);
  }
  .hero-media img { object-position: 70% 50%; }
  .hero-content { padding-bottom: 6.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ── Features ────────────────────────────────────────────────────────────── */
.features {
  position: relative;
  z-index: 2;
  margin-top: -4.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.feature {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  transition: background-color 0.5s var(--ease-out);
}
.feature + .feature { border-left: 1px solid var(--line); }
.feature::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--wine-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.feature:hover { background: var(--ivory); }
.feature:hover::after { transform: scaleX(1); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: var(--space-5);
  border-radius: 50%;
  border: 1px solid var(--gold-400);
  color: var(--wine-700);
  background: linear-gradient(145deg, var(--ivory), var(--gold-200));
  transition: transform 0.6s var(--ease-out), background 0.5s;
}
.feature:hover .feature-icon { transform: translateY(-4px) rotate(-6deg); }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 {
  font-size: 1.6rem;
  margin-bottom: var(--space-3);
}
.feature p { color: var(--ink-soft); margin: 0; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .feature {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--space-5);
    align-items: start;
  }
  .feature-icon { grid-row: span 2; margin-bottom: 0; }
}
@media (max-width: 420px) {
  .feature { grid-template-columns: 1fr; }
  .feature-icon { margin-bottom: var(--space-4); }
}

/* ── Happy stories ───────────────────────────────────────────────────────── */
.stories { background: var(--ivory); }
.stories { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.stories .section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  max-width: 1080px;
  margin-inline: auto;
}
.story {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}
.story-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  position: relative;
}
.story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 1.2s var(--ease-out), filter 0.8s;
}
.story-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(58, 13, 25, 0.75), transparent 55%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.story-btn:hover img,
.story-btn:focus-visible img { transform: scale(1.06); }
.story-btn:hover::after,
.story-btn:focus-visible::after { opacity: 1; }
.story-zoom {
  position: absolute;
  z-index: 1;
  right: var(--space-4);
  bottom: var(--space-4);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--wine-700);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.story-zoom svg { width: 18px; height: 18px; }
.story-btn:hover .story-zoom,
.story-btn:focus-visible .story-zoom { opacity: 1; transform: none; }
.story::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  border: 1px solid rgba(239, 226, 199, 0.7);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.story:hover::before { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .stories-grid { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
}
/* Phones: swipeable row instead of a tall stack */
@media (max-width: 560px) {
  .stories-grid {
    display: flex;
    gap: 0.75rem;
    margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem));
    padding: 0.25rem clamp(1rem, 4vw, 2rem) 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(1rem, 4vw, 2rem);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .stories-grid::-webkit-scrollbar { display: none; }
  .story { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Lightbox */
.lightbox {
  width: min(92vw, 900px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(26, 6, 12, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox[open] { animation: zoom-in 0.5s var(--ease-out); }
.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--wine-900);
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-3);
  color: var(--ivory);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.icon-btn:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--wine-900); }
.icon-btn svg { width: 18px; height: 18px; }
.lightbox-nav { display: flex; gap: var(--space-2); }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonials {
  color: var(--ivory);
  background:
    radial-gradient(80% 60% at 15% 0%, rgba(195, 160, 106, 0.16), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(154, 47, 74, 0.45), transparent 60%),
    var(--wine-800);
  overflow: hidden;
}
.testimonials .section-title { color: var(--ivory); }
.testimonials .section-title em { color: var(--gold-400); }
.testimonials .eyebrow { color: var(--gold-400); }
.testimonials-mandala {
  position: absolute;
  right: -180px;
  top: 50%;
  width: 520px;
  height: 520px;
  margin-top: -260px;
  color: var(--gold-500);
  opacity: 0.09;
  animation: spin 120s linear infinite;
  pointer-events: none;
}

.carousel {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
}
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform 0.8s var(--ease-out);
  will-change: transform;
}
.quote {
  flex: 0 0 100%;
  margin: 0;
  padding: 0 clamp(0rem, 4vw, 3rem);
  text-align: center;
}
.quote-mark {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto var(--space-5);
  color: var(--gold-500);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.15rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--ivory);
}
.quote figcaption {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  text-align: left;
}
.quote figcaption img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
}
.quote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.quote cite + span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.carousel-dots { display: flex; gap: var(--space-2); }
.carousel-dot {
  position: relative;
  width: 34px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel-dot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  background: rgba(252, 248, 242, 0.25);
}
.carousel-dot::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
}
.carousel-dot[aria-current="true"]::after {
  animation: dot-fill var(--autoplay, 5s) linear forwards;
}
.carousel.is-paused .carousel-dot[aria-current="true"]::after,
.carousel.no-autoplay .carousel-dot[aria-current="true"]::after {
  animation: none;
  transform: scaleX(1);
}

/* ── About ───────────────────────────────────────────────────────────────── */
.about { background: var(--cream); overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about .section-head { text-align: left; margin: 0 0 var(--space-6); }
.about .eyebrow::after { display: none; }
.about-text p { color: var(--ink-soft); }
.about-text .eyebrow { color: var(--gold-600); }
.about-text > header + p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.45;
  color: var(--wine-800);
}
.about-points {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.about-points li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 500;
}
.about-points svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold-600); }

.stats {
  position: relative;
  display: grid;
  gap: var(--space-5);
}
.stat {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat:nth-child(2) {
  margin-left: clamp(0rem, 6vw, 4rem);
  background: var(--wine-700);
  color: var(--ivory);
}
.stat:nth-child(2) h3 { color: var(--gold-200); }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--wine-700);
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: "lnum" 1, "pnum" 1;
}
.stat:nth-child(2) .stat-number { color: var(--gold-400); }
.stat h3 {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stat-ring {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  color: var(--gold-500);
  opacity: 0.18;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { margin-left: 0; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact { background: var(--ivory); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.contact-form {
  padding: clamp(1.75rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-content: start;
}
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input,
.field textarea {
  width: 100%;
  padding: 1.4rem 0 0.55rem;
  border: 0;
  border-bottom: 1px solid rgba(43, 26, 31, 0.2);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field label {
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-size: 1rem;
  color: var(--ink-soft);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.35s var(--ease-out), color 0.35s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.15rem) scale(0.78);
  color: var(--gold-600);
  letter-spacing: 0.06em;
}
.field-line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--wine-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.field textarea ~ .field-line { bottom: 6px; }
.field input:focus ~ .field-line,
.field textarea:focus ~ .field-line { transform: scaleX(1); }
.field-error {
  display: block;
  min-height: 1.2em;
  margin-top: var(--space-1);
  font-size: 0.8rem;
  color: #b3261e;
}
.field.has-error input,
.field.has-error textarea { border-bottom-color: #b3261e; }
.field.has-error { animation: shake 0.4s; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}
.form-status {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.9rem;
}
.form-status.is-success { color: #1e6b3a; }
.form-status.is-error { color: #b3261e; }
.btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading svg { display: none; }

.contact-info {
  position: relative;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  color: var(--ivory);
  background:
    linear-gradient(160deg, rgba(58, 13, 25, 0.9), rgba(102, 24, 45, 0.94)),
    url("../images/background.jpg") center / cover;
  overflow: hidden;
}
.contact-info h3 {
  font-size: 2rem;
  color: var(--ivory);
  margin-bottom: var(--space-6);
}
.info-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.info-item:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.info-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(216, 189, 143, 0.5);
  color: var(--gold-400);
}
.info-icon svg { width: 18px; height: 18px; }
.info-item small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.info-item a,
.info-item address {
  font-style: normal;
  word-break: break-word;
}
.info-item a { background: linear-gradient(var(--gold-400), var(--gold-400)) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease-out); }
.info-item a:hover { background-size: 100% 1px; }
.contact-note {
  margin: var(--space-6) 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-200);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact-form { grid-template-columns: 1fr; }
  .form-footer .btn { width: 100%; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 var(--space-6);
  background: var(--wine-900);
  color: rgba(252, 248, 242, 0.72);
  font-size: 0.925rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-7);
}
.site-footer .brand { color: var(--ivory); margin-bottom: var(--space-4); }
.site-footer .brand-mark { color: var(--gold-400); }
.footer-tagline {
  max-width: 340px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold-200);
}
.footer-title {
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-links a { transition: color 0.3s, padding-left 0.4s var(--ease-out); }
.footer-links a:hover { color: var(--ivory); padding-left: 6px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}
.footer-bottom a:hover { color: var(--ivory); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--wine-700);
  color: var(--ivory);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out), visibility 0s 0.4s, background-color 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--wine-600); }
.to-top > svg:first-child { width: 18px; height: 18px; }
.to-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.to-top-ring circle {
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 2;
  stroke-dasharray: 150.8;
  stroke-dashoffset: 150.8;
}

/* ── Legal pages ─────────────────────────────────────────────────────────── */
.legal-page .site-header { color: var(--ink); background: rgba(252, 248, 242, 0.92); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.legal-page .brand-mark { color: var(--wine-700); }
.legal-page .site-header .nav-cta { --btn-bg: var(--wine-700); --btn-fg: var(--ivory); border-color: var(--wine-700); flex-shrink: 0; }
.legal-page .brand { min-width: 0; }
@media (max-width: 480px) {
  .legal-page .brand-name small { display: none; }
  .legal-page .brand-name { font-size: 1.2rem; }
  .legal-page .site-header .nav-cta { padding: 0 var(--space-4); }
}
.legal-hero {
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 5rem)) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(195, 160, 106, 0.2), transparent 70%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem); }
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.legal-tabs a {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.legal-tabs a:hover { border-color: var(--gold-500); }
.legal-tabs a[aria-current="page"] { background: var(--wine-700); border-color: var(--wine-700); color: var(--ivory); }

.legal {
  max-width: 860px;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-y);
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.legal h1, .legal h2, .legal h3, .legal h4 { color: var(--wine-800); }
.legal h1 { font-size: 2.4rem; margin-bottom: var(--space-5); }
.legal h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin: var(--space-7) 0 var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.4rem; margin: var(--space-6) 0 var(--space-2); }
.legal h4 { font-size: 1.6rem; margin: var(--space-7) 0 var(--space-3); }
.legal > h2:first-child, .legal > h1:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal b, .legal strong { color: var(--ink); }
.legal a { color: var(--wine-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-500); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: var(--space-2); }
.legal .box {
  margin: var(--space-4) 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.legal .box h3:first-child { margin-top: 0; }
.legal .table-wrap { overflow-x: auto; margin: var(--space-5) 0; -webkit-overflow-scrolling: touch; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9rem; }
.legal th, .legal td { padding: var(--space-3); border: 1px solid var(--line); vertical-align: top; text-align: left; }
.legal th { background: var(--cream); color: var(--wine-800); font-weight: 600; }

/* ── Scroll reveal ───────────────────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="left"]  { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"]  { transform: scale(0.94); }
.js [data-reveal="clip"]  { opacity: 1; transform: none; }
/* Clip the child, not the observed element — a fully clipped target never reports as intersecting */
.js [data-reveal="clip"] > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.ornament path { stroke-dasharray: 260; stroke-dashoffset: 260; }
.is-in .ornament path,
.ornament.is-in path { stroke-dashoffset: 0; transition: stroke-dashoffset 2s var(--ease-out) 0.3s; }
.no-js .ornament path { stroke-dashoffset: 0; }

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes kenburns { to { transform: scale(1); } }
@keyframes drift { to { transform: translate(18vmax, 12vmax); } }
@keyframes shimmer { to { background-position: -250% 0; } }
@keyframes scroll-line { to { top: 110%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.94); } }
@keyframes dot-fill { to { transform: scaleX(1); } }
@keyframes shake {
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

/* ==========================================================================
   Motion layer (effects.js + p5.js)
   ========================================================================== */

/* ── Preloader ───────────────────────────────────────────────────────────── */
.preloader { display: none; }
.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(195, 160, 106, 0.16), transparent 70%),
    var(--wine-900);
  color: var(--gold-400);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-out);
  animation: preloader-failsafe 0s 4.5s forwards;
}
.is-loaded .preloader { clip-path: inset(0 0 100% 0); }
.preloader-inner { text-align: center; transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.is-loaded .preloader-inner { opacity: 0; transform: translateY(-24px); }
.preloader-mark { display: block; width: 88px; height: 88px; margin: 0 auto; }
.preloader-mark * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s var(--ease-out) forwards; }
.preloader-mark circle:nth-of-type(1) { animation-delay: 0.25s; }
.preloader-mark circle:nth-of-type(2) { animation-delay: 0.4s; }
.preloader-name {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ivory);
  letter-spacing: 0.5em;
  opacity: 0;
  animation: tracking-in 1.4s 0.3s var(--ease-out) forwards;
}
.preloader-bar {
  position: relative;
  display: block;
  width: 140px;
  height: 1px;
  margin: 1.25rem auto 0;
  overflow: hidden;
  background: rgba(216, 189, 143, 0.25);
}
.preloader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  animation: dot-fill 1.5s var(--ease-soft) forwards;
}

/* ── Canvases ────────────────────────────────────────────────────────────── */
.hero-canvas,
.mandala-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-canvas { z-index: -1; }
.hero-canvas canvas,
.mandala-canvas canvas { display: block; }
.hero-canvas.is-live,
.mandala-canvas.is-live { animation: fade-in 1.6s var(--ease-soft); }
.mandala-canvas { z-index: 0; }
.mandala-canvas.is-live + .testimonials-mandala { display: none; }
.testimonials .container { position: relative; z-index: 1; }

/* ── Hero title: letters + flourish ──────────────────────────────────────── */
.js .hero-title .is-split { transform: none !important; }
.hero-title .char { display: inline-block; }
.js .hero-title .char {
  opacity: 0;
  transform: translateY(0.9em) rotate(10deg) scale(0.9);
  transform-origin: left bottom;
  filter: blur(8px);
}
.is-ready .hero-title .char {
  opacity: 1;
  transform: none;
  filter: none;
  transition: transform 1.1s var(--ease-out), opacity 0.8s var(--ease-soft), filter 0.9s var(--ease-soft);
  transition-delay: calc(var(--d, 0s) + var(--i) * 45ms);
}
.hero-flourish {
  display: block;
  width: min(320px, 72%);
  height: auto;
  margin-top: 0.1em;
  color: var(--gold-400);
}
.js .hero-flourish path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-ready .hero-flourish path { stroke-dashoffset: 0; transition: stroke-dashoffset 2s var(--ease-out) 1.1s; }

/* ── Section titles: word mask reveal ────────────────────────────────────── */
.section-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.08em 0.14em 0;
  margin-bottom: -0.14em;
}
.section-title .w > * { display: inline-block; }
.js .section-title .w > * {
  transform: translateY(115%) rotate(6deg);
  transform-origin: left bottom;
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(0.15s + var(--i) * 120ms);
}
.is-in .section-title .w > * { transform: none; }

/* ── Stronger scroll reveal ──────────────────────────────────────────────── */
.js [data-reveal] {
  transform: translateY(56px);
  transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="left"]  { transform: translateX(-70px); }
.js [data-reveal="right"] { transform: translateX(70px); }
.js [data-reveal="zoom"]  { transform: scale(0.9) translateY(30px); }
.js [data-reveal="clip"]  { transform: none; }

/* Features cascade in after the card lands */
.js .features-grid .feature { opacity: 0; transform: translateY(40px); }
.features-grid.is-in .feature {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), background-color 0.5s var(--ease-out);
}
.features-grid.is-in .feature:nth-child(1) { transition-delay: 0.25s, 0.25s, 0s; }
.features-grid.is-in .feature:nth-child(2) { transition-delay: 0.4s, 0.4s, 0s; }
.features-grid.is-in .feature:nth-child(3) { transition-delay: 0.55s, 0.55s, 0s; }

/* Story photos settle from a zoom as the curtain opens */
.js .story img { transform: scale(1.35); }
.story.is-in img { transform: scale(1); transition: transform 1.8s var(--ease-out), filter 0.8s; }
.story.is-in .story-btn:hover img,
.story.is-in .story-btn:focus-visible img { transform: scale(1.07); transition-duration: 1.2s; }

/* About bullets slide in one by one */
.js .about-points li { opacity: 0; transform: translateX(-24px); }
.is-in .about-points li { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
.is-in .about-points li:nth-child(1) { transition-delay: 0.5s; }
.is-in .about-points li:nth-child(2) { transition-delay: 0.65s; }
.is-in .about-points li:nth-child(3) { transition-delay: 0.8s; }

/* ── Tilt glare ──────────────────────────────────────────────────────────── */
.feature::before,
.story::after,
.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.45), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.4s;
}
.is-tilting.feature::before,
.is-tilting.story::after,
.is-tilting.stat::before { opacity: 1; }

/* Magnetic buttons use the `translate` property so they compose with transforms */
.btn, .nav-toggle, .icon-btn { transition-property: color, border-color, transform, box-shadow, background-color, translate; }
.btn, .icon-btn { translate: 0 0; }

/* ── Marquee ─────────────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  padding-top: clamp(3rem, 7vw, 5rem);
  background: var(--ivory);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4.75rem);
  font-style: italic;
  line-height: 1.1;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span,
.marquee-track i { padding-right: clamp(1.25rem, 3vw, 2.5rem); }
.marquee-track span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(102, 24, 45, 0.4);
}
.marquee-track span:nth-of-type(even) { color: var(--wine-700); -webkit-text-stroke: 0; }
.marquee-track i { font-style: normal; font-size: 0.45em; color: var(--gold-500); }

/* ── Cursor follower (desktop) ───────────────────────────────────────────── */
.cursor {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.is-on { opacity: 1; }
.cursor-ring,
.cursor-dot { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid var(--wine-600);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), background-color 0.35s, border-color 0.35s;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--wine-600); }
.cursor.is-hot .cursor-ring {
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border-color: var(--gold-500);
  background: rgba(195, 160, 106, 0.14);
}
.cursor.is-dark .cursor-ring { border-color: var(--gold-400); }
.cursor.is-dark .cursor-dot { background: var(--gold-400); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes tracking-in { to { letter-spacing: 0.06em; opacity: 1; } }
@keyframes preloader-failsafe { to { visibility: hidden; opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Small phones (iPhone mini / SE) ─────────────────────────────────────── */
html, body { overflow-x: clip; }
@media (max-width: 720px) {
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(40px); }
}
@media (max-width: 400px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.2rem; }
  .brand-name small { font-size: 0.55rem; letter-spacing: 0.26em; }
  .site-header.is-scrolled .container { padding-inline: 0.6rem 0.4rem; min-height: 52px; }
  .hero-content { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 5.5rem; }
  .hero-title { font-size: clamp(2.35rem, 11.5vw, 2.9rem); }
  .hero-lead { font-size: 1.3rem; }
  .hero-actions { margin-top: var(--space-6); gap: var(--space-3); }
  .btn { min-height: 48px; padding: 0 var(--space-5); font-size: 0.8rem; }
  .section-title { font-size: clamp(2rem, 10vw, 2.4rem); }
  .eyebrow { letter-spacing: 0.2em; font-size: 0.68rem; }
  .eyebrow::before, .eyebrow::after { width: 18px; }
  .feature { padding: 1.5rem 1.25rem; }
  .quote blockquote { font-size: 1.3rem; }
  .quote figcaption img { width: 52px; height: 52px; }
  .carousel-controls { gap: var(--space-3); }
  .stat { padding: 1.5rem; }
  .contact-form, .contact-info { padding: 1.5rem 1.25rem; }
  .info-item a, .info-item address { font-size: 0.92rem; }
  .footer-grid { gap: var(--space-6); }
  .marquee-track { font-size: 1.9rem; }
  .to-top { width: 46px; height: 46px; }
}
@media (max-width: 400px) { .hide-xs { display: none; } }
@media (max-width: 340px) {
  .brand-name small { display: none; }
  .hero-actions .btn { padding: 0 var(--space-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .legal-tabs a { padding: var(--space-2) var(--space-4); font-size: 0.8rem; }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .hero-glow, .preloader, .cursor { display: none !important; }
  .hero-media img { transform: none; }
}
