/* =========================================================
   WINE BRIDGE — European Heritage Luxury
   Phase 2: design system + header + hero
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette (from brief) */
  --burgundy: #401824;
  --forest: #162820;
  --gold: #C7A574;
  --ivory: #F7F0E5;
  --espresso: #24161A;

  /* Derived tones */
  --burgundy-deep: #2C1018;
  --gold-soft: #E3CDA4;          /* italic accents on dark photography */
  --gold-line: rgba(199, 165, 116, .55);
  --gold-hair: rgba(199, 165, 116, .28);
  --ivory-80: rgba(247, 240, 229, .82);
  --ivory-60: rgba(247, 240, 229, .62);
  --ivory-30: rgba(247, 240, 229, .30);
  --ink-muted: #6B5A57;

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display: clamp(3.1rem, 1.4rem + 7.2vw, 9.6rem);
  --fs-h2: clamp(2.4rem, 1.6rem + 3.4vw, 5rem);
  --fs-lead: clamp(1rem, .92rem + .35vw, 1.2rem);
  --fs-label: .6875rem;          /* 11px */
  --tracking-label: .32em;

  /* Space */
  --gutter: clamp(20px, 4.2vw, 72px);
  --header-h: 104px;
  --header-h-scrolled: 76px;

  /* Motion */
  --ease-lux: cubic-bezier(.22, .8, .2, 1);
  --ease-curtain: cubic-bezier(.76, 0, .24, 1);
  --dur-fast: .45s;
  --dur: .9s;
  --dur-slow: 1.6s;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }
em, i { font-style: italic; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 18px; background: var(--ivory); color: var(--espresso);
  font-size: 13px; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease-lux);
}
.skip-link:focus { transform: none; }

/* ---------- 3. Shared components ---------- */

/* Uppercase label with leading gold rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow__rule { display: inline-block; width: 44px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow--center { justify-content: center; }
.eyebrow--dark { color: #8C6A3E; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 36px;
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  overflow: hidden; isolation: isolate;
  transition: color var(--dur-fast) var(--ease-lux), border-color var(--dur-fast) var(--ease-lux);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .7s var(--ease-lux);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn__label { position: relative; }
.btn--sm { min-height: 44px; padding: 0 24px; }

.btn--gold { background: var(--gold); color: var(--espresso); border-color: var(--gold); }
.btn--gold::before { background: var(--ivory); }
.btn--gold:hover { border-color: var(--ivory); }

.btn--outline { color: var(--ivory); border-color: rgba(247, 240, 229, .55); }
.btn--outline::before { background: var(--ivory); }
.btn--outline:hover, .btn--outline:focus-visible { color: var(--burgundy); border-color: var(--ivory); }

.btn--ghost { color: var(--ivory); border-color: var(--ivory-30); }
.btn--ghost::before { background: rgba(247, 240, 229, .1); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 44px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory);
}
.link-arrow span { position: relative; padding: 6px 0; }
.link-arrow span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(.35); transform-origin: left; transition: transform .6s var(--ease-lux);
}
.link-arrow svg { color: var(--gold); transition: transform .6s var(--ease-lux); }
.link-arrow:hover span::after, .link-arrow:focus-visible span::after { transform: scaleX(1); }
.link-arrow:hover svg, .link-arrow:focus-visible svg { transform: translateX(8px); }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  color: var(--ivory);
  transition: background-color .6s var(--ease-lux), backdrop-filter .6s var(--ease-lux), transform .6s var(--ease-lux);
}
.site-header::after {               /* hairline appears on scroll */
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px;
  background: var(--gold-hair); transform: scaleX(0); transition: transform .9s var(--ease-lux);
}
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  height: var(--header-h); padding: 0 var(--gutter);
  transition: height .6s var(--ease-lux);
}
.site-header.is-scrolled {
  background-color: rgba(36, 22, 26, .88);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}
.site-header.is-scrolled::after { transform: scaleX(1); }
.site-header.is-scrolled .site-header__inner { height: var(--header-h-scrolled); }
.site-header.is-hidden { transform: translateY(-100%); }

/* Intro state */
.site-header { opacity: 0; }
body.is-intro .site-header { opacity: 1; transition: opacity 1.2s var(--ease-lux) .9s, background-color .6s var(--ease-lux), transform .6s var(--ease-lux); }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav__link {
  position: relative; display: inline-block; padding: 10px 0;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ivory-80); text-decoration: none; white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-lux);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-lux);
}
.nav__link:hover, .nav__link:focus-visible, .nav__link.is-current { color: var(--ivory); }
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }

/* Wordmark */
.wordmark {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ivory); text-align: center;
}
.wordmark__name {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, .9rem + .8vw, 1.6rem);
  line-height: 1; letter-spacing: .38em; text-transform: uppercase; margin-right: -.38em;
}
.wordmark__sub {
  display: flex; align-items: center; gap: 10px;
  font-size: 8.5px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; margin-right: -.42em;
  color: var(--gold);
  transition: opacity .5s var(--ease-lux), max-height .5s var(--ease-lux);
  max-height: 14px; overflow: hidden;
}
.wordmark__sub::before, .wordmark__sub::after { content: ""; width: 18px; height: 1px; background: var(--gold-line); }
.site-header.is-scrolled .wordmark__sub { opacity: 0; max-height: 0; }

.site-header__end { display: flex; align-items: center; justify-content: flex-end; gap: clamp(20px, 2.4vw, 36px); }

/* Menu toggle (hidden on desktop) */
.menu-toggle {
  display: none; align-items: center; gap: 14px; min-height: 44px; padding: 0 2px;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--ivory);
  position: relative; z-index: 2;
}
.menu-toggle__bars { position: relative; width: 28px; height: 10px; }
.menu-toggle__bars span {
  position: absolute; left: 0; height: 1px; background: currentColor;
  transition: transform .6s var(--ease-lux), width .6s var(--ease-lux), top .6s var(--ease-lux);
}
.menu-toggle__bars span:first-child { top: 0; width: 100%; }
.menu-toggle__bars span:last-child { top: 9px; width: 64%; }
.menu-toggle:hover .menu-toggle__bars span:last-child { width: 100%; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 5px; transform: rotate(20deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 5px; width: 100%; transform: rotate(-20deg); }

/* ---------- 6. Full-screen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 55; color: var(--ivory); visibility: hidden; }
.menu[hidden] { display: block; }       /* keep in DOM for transitions; visibility controls access */
.menu.is-open { visibility: visible; }
.menu__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(64, 24, 36, .9), transparent 60%),
    var(--espresso);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-curtain);
}
.menu.is-open .menu__bg { clip-path: inset(0 0 0 0); }
.menu__inner {
  position: relative; height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(var(--header-h-scrolled) + 40px) var(--gutter) 40px;
}
.menu__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.menu__list li { border-bottom: 1px solid var(--gold-hair); overflow: hidden; }
.menu__list a {
  display: flex; align-items: baseline; gap: 22px; padding: 14px 0;
  text-decoration: none; color: var(--ivory);
  transform: translateY(110%); opacity: 0;
  transition: transform .9s var(--ease-lux), opacity .9s var(--ease-lux), color .4s;
}
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu.is-open .menu__list li:nth-child(1) a { transition-delay: .25s; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .31s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .37s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .43s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .49s; }
.menu.is-open .menu__list li:nth-child(6) a { transition-delay: .55s; }
.menu__num { font-size: var(--fs-label); letter-spacing: .2em; color: var(--gold); min-width: 2.2em; }
.menu__text { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 1.4rem + 4vw, 4.2rem); line-height: 1.05; }
.menu__text em { color: var(--gold-soft); }
.menu__list a:hover .menu__text, .menu__list a:focus-visible .menu__text { color: var(--gold-soft); }
.menu__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  opacity: 0; transition: opacity .8s var(--ease-lux);
}
.menu.is-open .menu__foot { opacity: 1; transition-delay: .65s; }
.menu__contact { font-size: 13px; letter-spacing: .08em; color: var(--ivory-60); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 680px;
  color: var(--ivory);
  overflow: hidden;
  background: var(--burgundy-deep);
}

/* Photography */
.hero__media { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 2.2s ease-in-out;
  /* Graceful fallback if a photograph ever fails to load */
  background:
    radial-gradient(80% 60% at 70% 30%, rgba(199, 165, 116, .18), transparent 60%),
    linear-gradient(160deg, #4A1E2A 0%, var(--burgundy-deep) 55%, #1B2A22 100%);
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%);
  transform: scale(1.14);
  filter: saturate(.86) contrast(1.04);
  will-change: transform;
}
.hero__slide img.is-broken { visibility: hidden; }
.hero__slide.is-active img { animation: kenburns 14s linear forwards; }
body:not(.is-intro) .hero__slide.is-active img { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(0, 0, 0); } to { transform: scale(1.02) translate3d(-1%, -.6%, 0); } }

/* Hero video: covers the frame; the poster sits underneath as the figure's own background,
   so there is never a black or empty frame while the video loads (or if it can't play). */
.hero__slide--video {
  background: var(--burgundy-deep) url("../video/hero-poster.jpg") center / cover no-repeat;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  background: transparent;
  pointer-events: none;
}
.hero__video::-webkit-media-controls { display: none !important; }
.hero__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero__status { margin-left: auto; }
@media (max-width: 767px) {
  .hero__slide--video { background-image: url("../video/hero-poster-960.jpg"); }
}

/* Cinematic burgundy grade + legibility veil */
.hero__veil { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__veil::before {        /* colour grade */
  content: ""; position: absolute; inset: 0;
  background: var(--burgundy); mix-blend-mode: multiply; opacity: .5;
}
.hero__veil::after {         /* readability gradients */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 22, 26, .62) 0%, rgba(36, 22, 26, 0) 26%),
    linear-gradient(0deg, rgba(36, 22, 26, .92) 0%, rgba(44, 16, 24, .55) 32%, rgba(44, 16, 24, 0) 62%),
    linear-gradient(90deg, rgba(36, 22, 26, .55) 0%, rgba(36, 22, 26, 0) 58%);
}
.hero__grain {
  position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Vertical edge text */
.hero__vertical {
  position: absolute; z-index: 4; right: calc(var(--gutter) - 4px); top: 50%;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  font-size: 10px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--ivory-60);
  display: flex; align-items: center; gap: 18px;
}
.hero__vertical::before { content: ""; width: 1px; height: 56px; background: var(--gold-line); }
.hero__vertical i { font-family: var(--serif); font-size: 13px; letter-spacing: .12em; text-transform: none; color: var(--gold-soft); }

/* Content */
.hero__content {
  position: absolute; z-index: 5;
  left: var(--gutter); right: calc(var(--gutter) + 40px);
  bottom: clamp(118px, 15vh, 170px);
}
.hero__eyebrow { margin-bottom: clamp(22px, 3.4vh, 36px); }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: .93;
  letter-spacing: -.018em;
  color: var(--ivory);
  text-wrap: balance;
}
.hero__title em { font-weight: 300; color: var(--gold-soft); letter-spacing: -.01em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line--indent { padding-left: 1.25em; }
.hero__title .line__inner { display: inline-block; transform: translateY(110%); }

.hero__lower {
  display: grid;
  grid-template-columns: minmax(0, 31rem);
  grid-template-areas: "orn" "lead" "ctas";
  justify-content: start;
  row-gap: 26px;
  margin-top: clamp(28px, 4.4vh, 48px);
  padding-left: calc(var(--fs-display) * 1.25);  /* aligns with the indented line */
}
.hero__ornament { grid-area: orn; color: var(--gold); line-height: 0; }
.hero__lead {
  grid-area: lead;
  font-size: var(--fs-lead); font-weight: 300; line-height: 1.7; color: var(--ivory-80);
  max-width: 30rem;
}
.hero__ctas { grid-area: ctas; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }

/* Bottom bar */
.hero__meta {
  position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--ivory-60);
  pointer-events: none;
}
.hero__counter { display: flex; align-items: center; gap: 14px; color: var(--ivory); font-variant-numeric: tabular-nums; }
.hero__count-track { position: relative; width: 72px; height: 1px; background: var(--ivory-30); overflow: hidden; }
.hero__count-fill { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero__count-fill.is-running { animation: fill var(--slide-ms, 7000ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.hero__caption {
  margin-right: auto; padding-left: 26px; position: relative;
  font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: .06em; text-transform: none; color: var(--ivory-80);
  transition: opacity .6s var(--ease-lux);
}
.hero__caption::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--gold-line); }
.hero__caption.is-swapping { opacity: 0; }

/* Scroll cue */
.scroll-cue {
  position: absolute; z-index: 6; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding-top: 10px;
  text-decoration: none; color: var(--ivory-60);
  font-size: 9.5px; font-weight: 500; letter-spacing: .38em; text-transform: uppercase;
}
.scroll-cue__text { margin-right: -.38em; transition: color .4s; }
.scroll-cue:hover .scroll-cue__text { color: var(--ivory); }
.scroll-cue__line { position: relative; width: 1px; height: 64px; background: var(--ivory-30); overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--gold);
  transform: translateY(-100%); animation: cue 2.6s var(--ease-lux) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* Hero entrance choreography (runs when body gets .is-intro) */
[data-reveal] { opacity: 0; transform: translateY(18px); }
body.is-intro [data-reveal] { opacity: 1; transform: none; transition: opacity 1.4s var(--ease-lux), transform 1.4s var(--ease-lux); }
body.is-intro .hero__eyebrow { transition-delay: .15s; }
body.is-intro .hero__title .line__inner { transform: none; transition: transform 1.5s var(--ease-lux); }
body.is-intro .hero__title .line:nth-child(1) .line__inner { transition-delay: .3s; }
body.is-intro .hero__title .line:nth-child(2) .line__inner { transition-delay: .45s; }
body.is-intro .hero__title .line:nth-child(3) .line__inner { transition-delay: .6s; }
body.is-intro .hero__ornament { transition-delay: 1.05s; }
body.is-intro .hero__lead { transition-delay: 1.15s; }
body.is-intro .hero__ctas { transition-delay: 1.3s; }
body.is-intro .hero__meta { transition-delay: 1.5s; }
body.is-intro .scroll-cue { transition-delay: 1.7s; }
.scroll-cue[data-reveal] { transform: translate(-50%, 18px); }
body.is-intro .scroll-cue[data-reveal] { transform: translateX(-50%); }
.hero__vertical { opacity: 0; transition: opacity 1.6s var(--ease-lux) 1.6s; }
body.is-intro .hero__vertical { opacity: 1; }

/* ---------- 8. Age gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 24px;
  color: var(--ivory);
  opacity: 0; transition: opacity .9s var(--ease-lux);
}
.gate[hidden] { display: none; }
.gate.is-visible { opacity: 1; }
.gate__media {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 22, 26, .7), rgba(36, 22, 26, .92)),
    linear-gradient(0deg, rgba(64, 24, 36, .55), rgba(64, 24, 36, .55)),
    url("https://images.pexels.com/photos/51947/tuscany-grape-field-nature-51947.jpeg?auto=compress&cs=tinysrgb&w=1920") center 60% / cover no-repeat,
    var(--burgundy-deep);
}
.gate__panel {
  position: relative; width: 100%; max-width: 520px;
  padding: clamp(40px, 6vw, 64px) clamp(26px, 5vw, 56px);
  text-align: center;
  border: 1px solid var(--gold-hair);
  background: rgba(36, 22, 26, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(16px); transition: transform 1.1s var(--ease-lux);
}
.gate.is-visible .gate__panel { transform: none; }
.gate__panel::before {   /* inner hairline frame */
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(199, 165, 116, .14); pointer-events: none;
}
.gate__title {
  margin: 22px 0 14px;
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); line-height: 1.02;
}
.gate__title em { color: var(--gold-soft); }
.gate__desc { color: var(--ivory-80); font-weight: 300; }
.gate__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.gate__actions .btn { padding: 0 16px; }
.gate__no { margin-top: 18px; color: var(--gold-soft); font-size: 14px; }
.gate__no[hidden] { display: none; }
.gate__legal { margin-top: 26px; font-size: 12px; line-height: 1.6; color: var(--ivory-60); }
.gate__legal a { color: var(--ivory-80); text-underline-offset: 3px; text-decoration-color: var(--gold-line); }

/* ---------- 9. Homepage sections ---------- */

/* Shared section rhythm */
:root {
  --fs-section: clamp(2.7rem, 1.3rem + 4.6vw, 6rem);
  --sec-pad: clamp(104px, 11vw, 200px);
  --ivory-2: #EFE5D4;
  --hair-dark: rgba(64, 24, 36, .16);
  --ink-soft: #5E4B4C;
}
main > section { position: relative; scroll-margin-top: 0; }

.display {
  font-family: var(--serif); font-weight: 300; font-size: var(--fs-section);
  line-height: .98; letter-spacing: -.016em;
}
.display em { font-weight: 300; }
.display .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.display .line--indent { padding-left: 1.1em; }

/* Scroll-reveal primitives (activated by JS adding .is-in) */
.js [data-anim="fade"] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.2s var(--ease-lux), transform 1.2s var(--ease-lux); }
.js [data-anim="fade"].is-in { opacity: 1; transform: none; }
.js [data-anim="lines"] .line__inner { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform 1.4s var(--ease-lux); }
.js [data-anim="lines"] .line:nth-child(2) .line__inner { transition-delay: .12s; }
.js [data-anim="lines"].is-in .line__inner { transform: none; }

.mask { margin: 0; overflow: hidden; position: relative; background: #2C1C1F; }
.mask img { width: 100%; height: 100%; object-fit: cover; }
/* The clip sits on the image, not the observed figure, so the figure stays measurable */
.mask { background: transparent; }
.js [data-anim="mask"] img { clip-path: inset(100% 0 0 0); transform: scale(1.22); transition: clip-path 1.6s var(--ease-curtain), transform 2.2s var(--ease-lux); }
.js [data-anim="mask"].is-in img { clip-path: inset(0 0 0 0); transform: scale(1.0001); }

/* Buttons used on light / burgundy grounds */
.btn--burgundy { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.btn--burgundy::before { background: var(--espresso); }

/* Light-ground text link */
.story .link-arrow, .trade .link-arrow, .faq .link-arrow { color: var(--burgundy); }

/* ===== 02 · Our Story ===== */
.story { background: var(--ivory); color: var(--espresso); padding: var(--sec-pad) var(--gutter) calc(var(--sec-pad) * .8); }
.story__grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start;
}
.story__text { grid-column: 1 / span 6; }
.story__title { margin: 30px 0 clamp(36px, 4vw, 56px); color: var(--espresso); }
.story__title em { color: var(--burgundy); }
.story__body { max-width: 34rem; margin-left: clamp(0px, 8vw, 128px); display: grid; gap: 22px; color: var(--ink-soft); font-weight: 300; font-size: 1.03rem; line-height: 1.8; }
.story__lede { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.5; color: var(--espresso); font-weight: 400; }
.dropcap {
  float: left; font-family: var(--serif); font-weight: 300; font-size: 4.6em; line-height: .78;
  padding: .06em .12em 0 0; color: var(--burgundy);
}
.story__quote {
  margin: clamp(44px, 5vw, 72px) 0 0 clamp(0px, 8vw, 128px); padding: 4px 0 4px 28px; max-width: 30rem;
  border-left: 1px solid var(--gold);
}
.story__quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.55rem); line-height: 1.45; color: var(--burgundy); }
.story__quote cite { display: block; margin-top: 14px; font-style: normal; font-size: var(--fs-label); letter-spacing: .28em; text-transform: uppercase; color: #8C6A3E; }

.story__media { grid-column: 8 / span 5; position: relative; padding-top: clamp(40px, 7vw, 120px); margin-bottom: 7%; }
.story__main { aspect-ratio: 4 / 5.2; }
.story__inset {
  position: absolute; left: -16%; bottom: -7%; width: 44%; aspect-ratio: 1 / 1.08;
  outline: 12px solid var(--ivory);
}
.story__caption {
  margin-top: 18px; display: flex; gap: 14px; justify-content: flex-end;
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-soft);
}
.story__caption span { font-family: var(--sans); font-style: normal; font-size: var(--fs-label); letter-spacing: .26em; text-transform: uppercase; color: #8C6A3E; padding-top: 3px; }

.story__pillars {
  max-width: 1440px; margin: clamp(80px, 9vw, 150px) auto 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair-dark);
}
.story__pillars li { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 8px; padding: 34px clamp(16px, 3vw, 48px) 0 0; }
.story__pillars li + li { padding-left: clamp(16px, 3vw, 48px); border-left: 1px solid var(--hair-dark); }
.pillar__num { grid-row: span 2; font-family: var(--serif); font-size: 1rem; color: var(--gold); padding-top: 9px; letter-spacing: .1em; }
.pillar__name { font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); font-weight: 400; line-height: 1.1; color: var(--espresso); }
.pillar__text { font-size: .95rem; font-weight: 300; color: var(--ink-soft); max-width: 22rem; }

/* ===== 03 · The Journey ===== */
.journey { background: var(--espresso); color: var(--ivory); padding: var(--sec-pad) var(--gutter); overflow: hidden; }
.journey__head {
  max-width: 1440px; margin: 0 auto clamp(72px, 9vw, 140px);
  display: grid; grid-template-columns: 7fr 4fr; column-gap: clamp(24px, 6vw, 120px); align-items: end;
}
.journey__head .eyebrow { grid-column: 1 / -1; margin-bottom: 30px; }
.journey__title em { color: var(--gold-soft); }
.journey__intro { color: var(--ivory-60); font-weight: 300; font-size: 1.05rem; line-height: 1.8; max-width: 26rem; padding-bottom: 12px; }

.journey__steps { position: relative; max-width: 1280px; margin: 0 auto; padding: 0; list-style: none; --progress: 0; }
.journey__steps::before, .journey__steps::after {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-.5px);
}
.journey__steps::before { background: rgba(199, 165, 116, .18); }
.journey__steps::after { background: var(--gold); transform-origin: top; transform: translateX(-.5px) scaleY(var(--progress)); }

.step {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 9vw, 150px); align-items: center;
}
.step + .step { margin-top: clamp(80px, 10vw, 160px); }
.step::before {   /* node on the line */
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; z-index: 1;
  border: 1px solid var(--gold); background: var(--espresso); transform: translate(-50%, -50%) rotate(45deg);
  transition: background-color .8s var(--ease-lux);
}
.step.is-in::before { background: var(--gold); }
.step__media { aspect-ratio: 5 / 4; }
.step--flip .step__media { order: 2; aspect-ratio: 4 / 5; width: 82%; justify-self: start; }
.step:not(.step--flip) .step__media { width: 100%; }
.step__text { position: relative; max-width: 27rem; }
.step--flip .step__text { justify-self: end; text-align: left; }
.step__num {
  display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(4.5rem, 3rem + 5vw, 8.5rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(199, 165, 116, .7); margin-bottom: 26px;
}
.step__kicker { font-size: var(--fs-label); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.step__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 1.5rem + 1.6vw, 3.1rem); line-height: 1.04; margin-bottom: 20px; }
.step__title em { color: var(--gold-soft); }
.step__text > p:last-child { color: var(--ivory-60); font-weight: 300; line-height: 1.8; }
.js [data-anim="step"] .step__text { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1.3s var(--ease-lux) .25s, transform 1.3s var(--ease-lux) .25s; }
.js [data-anim="step"].is-in .step__text { opacity: 1; transform: none; }

/* ===== 04 · For European Vineyards ===== */
.estates { min-height: 100vh; min-height: 100svh; color: var(--ivory); display: flex; align-items: center; overflow: hidden; background: var(--burgundy-deep); }
.estates__bg { position: absolute; inset: 0; overflow: hidden; }
.estates__bg img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; filter: saturate(.8); will-change: transform; }
.estates__bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--burgundy); mix-blend-mode: multiply; opacity: .72; }
.estates__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(36, 22, 26, .9) 0%, rgba(36, 22, 26, .62) 42%, rgba(36, 22, 26, .1) 78%),
              linear-gradient(0deg, rgba(36, 22, 26, .6), transparent 40%);
}
.estates__inner { position: relative; z-index: 2; width: 100%; max-width: 1440px; margin: 0 auto; padding: var(--sec-pad) var(--gutter); }
.estates__panel { max-width: 40rem; }
.estates__langs { margin: 26px 0 22px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-soft); opacity: .9; }
.estates__title em { color: var(--gold-soft); }
.estates__text { margin-top: 32px; max-width: 32rem; color: var(--ivory-80); font-weight: 300; font-size: 1.05rem; line-height: 1.8; }
.estates__list { list-style: none; margin: 40px 0 44px; padding: 0; max-width: 32rem; }
.estates__list li {
  display: flex; align-items: baseline; gap: 22px; padding: 18px 0;
  border-top: 1px solid var(--gold-hair);
  font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .4vw, 1.35rem); color: var(--ivory);
}
.estates__list li:last-child { border-bottom: 1px solid var(--gold-hair); }
.estates__n { font-family: var(--sans); font-size: var(--fs-label); letter-spacing: .2em; color: var(--gold); }
.estates__credit {
  position: absolute; right: var(--gutter); bottom: 40px;
  font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--ivory-60);
  display: flex; align-items: center; gap: 12px;
}
.estates__credit::before { content: ""; width: 28px; height: 1px; background: var(--gold-line); }

/* ===== 05 · For Trade ===== */
.trade { background: var(--ivory-2); color: var(--espresso); padding: var(--sec-pad) var(--gutter); overflow: hidden; }
.trade__grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center;
}
.trade__text { grid-column: 1 / span 6; padding-right: clamp(0px, 3vw, 56px); }
.trade__title { margin: 30px 0 32px; font-size: clamp(2.4rem, 1.2rem + 3.2vw, 4.4rem); }
.trade__title em { color: var(--burgundy); }
.trade__lede { max-width: 31rem; color: var(--ink-soft); font-weight: 300; font-size: 1.05rem; line-height: 1.8; }
.trade__features { margin: 44px 0; }
.trade__features div { padding: 20px 0; border-top: 1px solid var(--hair-dark); display: grid; grid-template-columns: 1fr; gap: 4px; }
.trade__features div:last-child { border-bottom: 1px solid var(--hair-dark); }
.trade__features dt { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .5vw, 1.6rem); color: var(--espresso); line-height: 1.2; }
.trade__features dd { margin: 0; font-size: .95rem; font-weight: 300; color: var(--ink-soft); }
.trade__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; }
.trade__note { flex: 1 1 16rem; font-size: .88rem; line-height: 1.65; color: var(--ink-soft); font-weight: 300; }

.trade__collage { grid-column: 7 / span 6; position: relative; height: clamp(520px, 48vw, 720px); }
.trade__img { position: absolute; }
.trade__img--a { left: 4%; top: 0; width: 50%; aspect-ratio: 3 / 4.3; }
.trade__img--b { right: 0; top: 9%; width: 38%; aspect-ratio: 4 / 5; }
.trade__img--c { right: 8%; bottom: 0; width: 60%; aspect-ratio: 16 / 10.5; outline: 12px solid var(--ivory-2); z-index: 2; }
.trade__mark { display: none; }

/* ===== 06 · For Enthusiasts ===== */
.enthusiasts { background: var(--forest); color: var(--ivory); padding: var(--sec-pad) var(--gutter); overflow: hidden; }
.enthusiasts::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 55%, rgba(199, 165, 116, .08), transparent 70%);
}
.enthusiasts__head { position: relative; text-align: center; max-width: 1100px; margin: 0 auto clamp(56px, 7vw, 104px); }
.enthusiasts__title { margin-top: 30px; }
.enthusiasts__title em { color: var(--gold-soft); }

.enthusiasts__arches {
  position: relative; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: clamp(14px, 3vw, 48px); align-items: end;
}
.arch { margin: 0; position: relative; overflow: hidden; border-radius: 999px 999px 0 0; background: #0F1D17; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--side { aspect-ratio: 3 / 4.5; margin-bottom: clamp(30px, 6vw, 90px); }
.arch--center { aspect-ratio: 3 / 4.2; }
.arch::after { content: ""; position: absolute; inset: 10px 10px 0; border: 1px solid rgba(227, 205, 164, .35); border-bottom: 0; border-radius: inherit; pointer-events: none; }
.arch { background: transparent; }
.js [data-anim="arch"] img { clip-path: inset(100% 0 0 0); transform: scale(1.2); transition: clip-path 1.7s var(--ease-curtain), transform 2.4s var(--ease-lux); }
.js [data-anim="arch"].is-in img { clip-path: inset(0 0 0 0); transform: scale(1.0001); }
.js [data-anim="arch"]::after { opacity: 0; transition: opacity 1.2s var(--ease-lux) 1s; }
.js [data-anim="arch"].is-in::after { opacity: 1; }
.js .enthusiasts__arches .arch:nth-child(1) img { transition-delay: .15s; }
.js .enthusiasts__arches .arch:nth-child(3) img { transition-delay: .3s; }

.enthusiasts__foot {
  position: relative; max-width: 1320px; margin: clamp(56px, 7vw, 100px) auto 0;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px clamp(40px, 8vw, 140px); align-items: end;
  padding-top: 40px; border-top: 1px solid rgba(227, 205, 164, .2);
}
.enthusiasts__text { font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.9rem); line-height: 1.45; color: var(--ivory); }
.enthusiasts__cta { display: grid; gap: 16px; justify-items: start; }
.enthusiasts__note { font-size: .88rem; line-height: 1.65; color: var(--ivory-60); font-weight: 300; }

/* ===== 07 · Early Access ===== */
.access { background: var(--burgundy); color: var(--ivory); padding: var(--sec-pad) var(--gutter); overflow: hidden; }
.access__bg { position: absolute; inset: 0; }
.access__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: saturate(.7); opacity: .55; }
.access__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(64, 24, 36, .82) 0%, rgba(64, 24, 36, .93) 45%, var(--burgundy) 70%);
}
.access__grid {
  position: relative; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center;
}
.access__intro { grid-column: 1 / span 5; }
.access__title { margin: 30px 0 32px; }
.access__title em { color: var(--gold-soft); }
.access__text { max-width: 28rem; color: var(--ivory-80); font-weight: 300; font-size: 1.05rem; line-height: 1.8; }
.access__contact { margin-top: 28px; font-size: .92rem; color: var(--ivory-60); }
.access__contact a { color: var(--ivory); text-decoration-color: var(--gold-line); text-underline-offset: 4px; }

.invite { grid-column: 7 / span 6; }
.invite__frame {
  position: relative; padding: clamp(44px, 5vw, 68px) clamp(24px, 4.4vw, 64px) clamp(36px, 4vw, 56px);
  border: 1px solid var(--gold-line);
  background: rgba(36, 22, 26, .38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.invite__frame::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(199, 165, 116, .16); pointer-events: none; }
.invite__label {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  padding: 0 18px; background: var(--burgundy);
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold-soft); white-space: nowrap;
}

.wl { display: grid; gap: 30px; }
.roles { border: 0; margin: 0; padding: 0; min-width: 0; }
.roles__legend { padding: 0; margin-bottom: 16px; font-size: var(--fs-label); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.roles__options { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--gold-hair); }
.roles__options input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.roles__options label {
  position: relative; display: grid; gap: 6px; align-content: center; min-height: 92px; padding: 16px 14px;
  text-align: center; cursor: pointer; color: var(--ivory-80);
  transition: background-color .5s var(--ease-lux), color .5s var(--ease-lux);
}
.roles__options input + label ~ label { border-left: 1px solid var(--gold-hair); }
.roles__num { font-family: var(--serif); font-size: .95rem; color: var(--gold); letter-spacing: .1em; }
.roles__name { font-family: var(--serif); font-size: clamp(1.05rem, .95rem + .35vw, 1.3rem); line-height: 1.15; }
.roles__options label::after {
  content: ""; position: absolute; left: 50%; bottom: 10px; width: 22px; height: 1px; background: var(--gold);
  transform: translateX(-50%) scaleX(0); transition: transform .5s var(--ease-lux);
}
.roles__options label:hover { background: rgba(199, 165, 116, .06); color: var(--ivory); }
.roles__options input:checked + label { background: rgba(199, 165, 116, .13); color: var(--ivory); }
.roles__options input:checked + label::after { transform: translateX(-50%) scaleX(1); }
.roles__options input:focus-visible + label { outline: 1px solid var(--gold); outline-offset: -5px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { position: relative; display: grid; }
.field[hidden] { display: none; }
.field input {
  width: 100%; height: 56px; padding: 20px 0 6px; border: 0; border-bottom: 1px solid var(--ivory-30); border-radius: 0;
  background: transparent; color: var(--ivory); font: 300 1.02rem/1.2 var(--sans); outline: none;
  transition: border-color .4s var(--ease-lux);
}
.field input:focus { border-bottom-color: var(--gold); }
.field input[aria-invalid="true"] { border-bottom-color: var(--gold-soft); }
.field label {
  position: absolute; left: 0; top: 22px; pointer-events: none;
  font-size: .95rem; font-weight: 300; color: var(--ivory-60);
  transform-origin: left top; transition: transform .4s var(--ease-lux), color .4s, letter-spacing .4s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label {
  transform: translateY(-20px) scale(.72); letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.field__err { min-height: 0; margin-top: 6px; font-size: .8rem; color: var(--gold-soft); }
.field__err:empty { display: none; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ivory); transition: background-color 9999s; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; cursor: pointer; font-size: .86rem; line-height: 1.6; color: var(--ivory-80); font-weight: 300; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box { width: 18px; height: 18px; margin-top: 2px; border: 1px solid var(--gold); position: relative; transition: background-color .3s; }
.consent__box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--espresso); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease-lux); }
.consent input:checked + .consent__box { background: var(--gold); }
.consent input:checked + .consent__box::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible + .consent__box { outline: 1px solid var(--gold); outline-offset: 3px; }
.consent a { color: var(--ivory); text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
.field__err--consent { margin-top: -18px; }

.wl__status { font-size: .9rem; line-height: 1.6; color: var(--gold-soft); }
.wl__status:empty { display: none; }
.wl__status a { color: var(--ivory); }
.wl__submit { width: 100%; min-height: 60px; }
.wl__submit[disabled] { opacity: .65; cursor: progress; }

.wl__ok { text-align: center; padding: 30px 0 10px; outline: none; }
.wl__ok[hidden] { display: none; }
.wl__ok-mark { color: var(--gold); display: inline-block; margin-bottom: 22px; }
.wl__ok-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1.05; margin-bottom: 14px; }
.wl__ok-title em { color: var(--gold-soft); }
.wl__ok p { color: var(--ivory-80); font-weight: 300; }

/* ===== 08 · FAQ ===== */
.faq { background: var(--ivory); color: var(--espresso); padding: var(--sec-pad) var(--gutter); }
.faq__grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start;
}
.faq__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h-scrolled) + 48px); }
.faq__title { margin: 30px 0 28px; font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5rem); }
.faq__title em { color: var(--burgundy); }
.faq__more { font-size: .95rem; line-height: 1.7; color: var(--ink-soft); font-weight: 300; max-width: 22rem; }
.faq__more a { color: var(--burgundy); text-underline-offset: 4px; text-decoration-color: var(--gold); }

.faq__list { grid-column: 6 / span 7; border-top: 1px solid var(--hair-dark); }
.qa { border-bottom: 1px solid var(--hair-dark); }
.qa summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 48px 1fr 28px; align-items: center; gap: 12px;
  padding: clamp(24px, 2.6vw, 34px) 0;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: -2px; }
.qa__n { font-size: var(--fs-label); letter-spacing: .2em; color: #8C6A3E; }
.qa__q { font-family: var(--serif); font-size: clamp(1.4rem, 1.15rem + .8vw, 2rem); line-height: 1.2; color: var(--espresso); transition: color .4s; }
.qa summary:hover .qa__q { color: var(--burgundy); }
.qa__icon { position: relative; width: 22px; height: 22px; justify-self: end; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--burgundy); transition: transform .6s var(--ease-lux); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 40px 32px 60px; max-width: 44rem; color: var(--ink-soft); font-weight: 300; font-size: 1.02rem; line-height: 1.8; }
.qa__a a { color: var(--burgundy); text-underline-offset: 4px; text-decoration-color: var(--gold); }

/* ===== 09 · Footer ===== */
.footer { background: var(--espresso); color: var(--ivory-80); padding: clamp(88px, 9vw, 140px) var(--gutter) 36px; overflow: hidden; }
.footer__top {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 48px clamp(24px, 4vw, 64px);
}
.footer__statement { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem); line-height: 1.08; color: var(--ivory); max-width: 20ch; margin-bottom: 36px; }
.footer__statement em { color: var(--gold-soft); }
.footer__head { margin-bottom: 20px; font-size: var(--fs-label); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer__col a, .footer__muted { display: inline-block; padding: 6px 0; font-size: .95rem; font-weight: 300; color: var(--ivory-80); text-decoration: none; position: relative; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-lux); }
.footer__col a:hover { color: var(--ivory); }
.footer__col a:hover::after, .footer__col a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.footer__muted { color: var(--ivory-60); font-family: var(--serif); font-style: italic; font-size: 1rem; }

.footer__word {
  max-width: 1440px; margin: clamp(64px, 8vw, 120px) auto 0; padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--gold-hair);
  font-family: var(--serif); font-weight: 300; font-size: clamp(4.2rem, 1rem + 15.5vw, 17rem); line-height: .82; letter-spacing: -.03em;
  color: var(--ivory); white-space: nowrap; text-align: center; padding-bottom: .12em;
}
.footer__word em { color: var(--gold-soft); }
.footer__legal {
  max-width: 1440px; margin: clamp(36px, 4vw, 56px) auto 0; padding-top: 24px; border-top: 1px solid var(--gold-hair);
  display: grid; gap: 6px; font-size: .8rem; line-height: 1.6; color: var(--ivory-60);
}
.footer__legal-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 10px; }
.footer__top-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory-80); text-decoration: none; letter-spacing: .2em; text-transform: uppercase; font-size: var(--fs-label); }
.footer__top-link svg { color: var(--gold); transition: transform .5s var(--ease-lux); }
.footer__top-link:hover svg { transform: translateY(-4px); }

/* ===== Section responsiveness ===== */
@media (max-width: 1180px) {
  .story__text { grid-column: 1 / span 7; }
  .story__media { grid-column: 8 / span 5; }
  .story__inset { left: -14%; width: 46%; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .story__grid, .trade__grid, .access__grid, .faq__grid { grid-template-columns: 1fr; }
  .story__text, .story__media, .trade__text, .trade__collage, .access__intro, .invite, .faq__head, .faq__list { grid-column: 1 / -1; }
  .story__body, .story__quote { margin-left: 0; }
  .story__media { padding-top: 64px; max-width: 620px; margin-left: auto; width: 82%; }
  .story__inset { left: -20%; width: 44%; }
  .story__pillars { grid-template-columns: 1fr; }
  .story__pillars li, .story__pillars li + li { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--hair-dark); }

  .journey__head { grid-template-columns: 1fr; row-gap: 28px; }
  .journey__steps::before, .journey__steps::after { left: 6px; }
  .step, .step--flip { grid-template-columns: 1fr; row-gap: 36px; padding-left: 48px; }
  .step::before { left: 6px; top: 0; }
  .step--flip .step__media, .step:not(.step--flip) .step__media { order: 0; width: 100%; aspect-ratio: 16 / 11; }
  .step--flip .step__text { justify-self: start; }

  .trade__collage { margin-top: 72px; height: clamp(460px, 90vw, 720px); }
  .access__intro { margin-bottom: 64px; }
  .access__bg::after { background: linear-gradient(180deg, rgba(64, 24, 36, .8), rgba(64, 24, 36, .95) 40%, var(--burgundy)); }
  .faq__head { position: static; margin-bottom: 40px; }
  .enthusiasts__foot { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --sec-pad: 96px; }
  .eyebrow { letter-spacing: .22em; gap: 12px; font-size: 10px; }
  .eyebrow__rule { width: 26px; }
  .display .line--indent { padding-left: .5em; }
  .story__media { width: 100%; padding-top: 56px; }
  .story__main { width: 78%; margin-left: auto; }
  .story__inset { left: 0; bottom: 14%; width: 44%; outline-width: 8px; }
  .story__caption { justify-content: flex-start; }
  .step, .step--flip { padding-left: 34px; }
  .step__num { font-size: 4rem; margin-bottom: 18px; }

  .estates__bg::after { background: linear-gradient(180deg, rgba(36, 22, 26, .55) 0%, rgba(36, 22, 26, .85) 45%, rgba(36, 22, 26, .92) 100%); }
  .estates__credit { bottom: 28px; }

  .trade__collage { height: 128vw; }
  .trade__img--a { left: 0; width: 58%; }
  .trade__img--b { width: 40%; top: 14%; }
  .trade__img--c { right: 0; width: 78%; outline-width: 8px; }
  .trade__cta .btn { width: 100%; }

  .enthusiasts__arches { grid-template-columns: 1fr 1fr; }
  .arch--center { grid-column: 1 / -1; grid-row: 1; width: 78%; justify-self: center; }
  .arch--side { margin-bottom: 0; }
  .arch::after { inset: 6px 6px 0; }

  .invite__frame { padding-left: 20px; padding-right: 20px; }
  .roles__options { grid-template-columns: 1fr; }
  .roles__options label { min-height: 60px; grid-template-columns: 34px 1fr; text-align: left; align-items: center; padding: 14px 18px; }
  .roles__options input + label ~ label { border-left: 0; border-top: 1px solid var(--gold-hair); }
  .roles__options label::after { left: auto; right: 18px; bottom: 50%; transform: scaleX(0); }
  .roles__options input:checked + label::after { transform: scaleX(1); }
  .fields { grid-template-columns: 1fr; gap: 18px; }

  .qa summary { grid-template-columns: 34px 1fr 22px; }
  .qa__a p { padding: 0 0 28px 46px; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > .footer__col:last-child { grid-column: 1 / -1; }
  .footer__legal-end { flex-direction: column; }
}

/* ---------- 10. Responsive ---------- */

/* Large desktop */
@media (min-width: 1440px) {
  :root { --header-h: 112px; }
}

/* Laptop & below: collapse primary nav into the menu */
@media (max-width: 1180px) {
  .nav--primary, .nav__link--faq { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .wordmark { align-items: flex-start; grid-column: 1; }
  .site-header__end { grid-column: 3; }
  .wordmark__sub::before, .wordmark__sub::after { display: none; }
}

/* Tablet */
@media (max-width: 1023px) {
  :root { --header-h: 92px; --header-h-scrolled: 70px; }
  .hero__lower { padding-left: calc(var(--fs-display) * .9); grid-template-columns: minmax(0, 30rem); grid-template-areas: "lead" "ctas"; }
  .hero__ornament { display: none; }
  .hero__title .line--indent { padding-left: .9em; }
  .hero__vertical { display: none; }
  .hero__content { right: var(--gutter); }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --header-h: 76px; --header-h-scrolled: 64px; --fs-display: clamp(2.9rem, 1.2rem + 9.6vw, 4.6rem); }
  .header-cta { display: none; }
  .menu-toggle__label { display: none; }
  .wordmark__name { letter-spacing: .3em; margin-right: -.3em; }
  .wordmark__sub { font-size: 7.5px; letter-spacing: .34em; }
  .hero__eyebrow { font-size: 10px; letter-spacing: .24em; gap: 12px; }
  .hero__eyebrow .eyebrow__rule { width: 24px; }

  .hero { min-height: 600px; }
  .hero__content { bottom: 104px; }
  .hero__title { line-height: .96; }
  .hero__title .line--indent { padding-left: .55em; }
  .hero__lower { padding-left: 0; row-gap: 26px; margin-top: 24px; }
  .hero__lead { font-size: 1rem; max-width: 34ch; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero__ctas .btn { width: 100%; }
  .hero__ctas .link-arrow { justify-content: center; }
  .hero__slide img { object-position: var(--focus-m, 62% 50%); }

  .hero__meta { bottom: 24px; }
  .hero__count-track { width: 40px; }
  .hero__status { display: none; }
  .scroll-cue { left: auto; right: var(--gutter); transform: none; }
  .scroll-cue[data-reveal], body.is-intro .scroll-cue[data-reveal] { transform: none; }
  .scroll-cue__text { display: none; }
  .scroll-cue__line { height: 48px; }
  .hero__caption { display: none; }
  .hero__meta { right: auto; }
  .gate__actions { grid-template-columns: 1fr; }
}

/* Short landscape screens */
@media (max-height: 720px) and (min-width: 768px) {
  .hero__content { bottom: 96px; }
  :root { --fs-display: clamp(3rem, 11vh, 7rem); }
}

/* Very small phones */
@media (max-width: 359px) {
  :root { --fs-display: 2.6rem; }
  .eyebrow { letter-spacing: .24em; }
  .eyebrow__rule { width: 28px; }
}


/* ---------- 12. Motion layer (GSAP + ScrollTrigger + Lenis) ---------- */
/* Lenis */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* In motion mode GSAP owns these properties; CSS transitions are switched off so they never fight a tween.
   Start states still come from the .js rules above, so nothing flashes before GSAP takes over,
   and main.js removes .motion (restoring the CSS reveals) if the motion layer fails. */
.motion [data-anim="fade"],
.motion [data-anim="lines"] .line__inner,
.motion [data-anim="lines"] .w,
.motion [data-anim="mask"] img,
.motion [data-anim="arch"] img,
.motion [data-anim="step"] .step__text,
.motion .hero [data-reveal],
.motion .hero__title .line__inner,
.motion .hero__vertical,
.motion .hero__media,
.motion .hero__content,
.motion [data-parallax] { transition: none !important; }
.motion .site-header { transition: background-color .6s var(--ease-lux), transform .6s var(--ease-lux), -webkit-backdrop-filter .6s, backdrop-filter .6s; }
.motion [data-anim="lines"] .w { display: inline-block; will-change: transform; }

/* Image hover zoom once an image has finished revealing (desktop pointers only) */
@media (hover: hover) and (pointer: fine) {
  .motion .mask.is-revealed > img,
  .motion .arch.is-revealed > img { transition: transform 1.4s var(--ease-lux) !important; }
  .motion .mask.is-revealed:hover > img,
  .motion .arch.is-revealed:hover > img { transform: scale(1.045); }
}

/* Buttons: refined hover feedback (magnetic offset is applied by motion.js) */
.btn { transition: color var(--dur-fast) var(--ease-lux), border-color var(--dur-fast) var(--ease-lux), box-shadow .6s var(--ease-lux); }
.btn--gold:hover { box-shadow: 0 0 0 1px rgba(199, 165, 116, .35); }
.btn--outline:hover, .btn--burgundy:hover { box-shadow: 0 0 0 1px rgba(199, 165, 116, .25); }
.btn__label { display: inline-block; will-change: transform; }

/* ---------- 13. Custom cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; opacity: 0; display: none; --c: var(--ivory); --c-fill: rgba(247, 240, 229, .08); }
.cursor * { pointer-events: none; }
html.has-cursor .cursor { display: block; }
.cursor.is-light { --c: #8C6A3E; --c-fill: rgba(140, 106, 62, .08); }
.cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.cursor__ring::before, .cursor__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__ring::before {
  width: 34px; height: 34px; border: 1px solid var(--c); opacity: .55; background: transparent;
  transition: width .55s var(--ease-lux), height .55s var(--ease-lux), opacity .4s, background-color .4s, border-color .4s;
}
.cursor__dot::before { width: 5px; height: 5px; background: var(--c); transition: transform .4s var(--ease-lux), background-color .4s; }

.cursor[data-state="link"] .cursor__ring::before { width: 46px; height: 46px; opacity: .85; }
.cursor[data-state="button"] .cursor__ring::before { width: 64px; height: 64px; opacity: .9; background: var(--c-fill); }
.cursor[data-state="button"] .cursor__dot::before { transform: translate(-50%, -50%) scale(0); }
.cursor[data-state="image"] .cursor__ring::before { width: 92px; height: 92px; opacity: .7; }
.cursor[data-state="image"] .cursor__dot::before { transform: translate(-50%, -50%) scale(.6); }
.cursor[data-state="text"] { opacity: 0 !important; }
.cursor.is-down .cursor__ring::before { width: 26px; height: 26px; }

/* Hide the native pointer only while the custom cursor is live; keep text fields native */
html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button,
html.has-cursor label, html.has-cursor summary, html.has-cursor [role="button"] { cursor: none; }
html.has-cursor input:not([type="checkbox"]):not([type="radio"]), html.has-cursor textarea, html.has-cursor select { cursor: text; }


/* ---------- 14. Preloader — "The Wine Reveal" ---------- */
html { scrollbar-gutter: stable; }               /* no layout shift when scrolling is locked/unlocked */
html.pl-active { background: var(--burgundy); overflow: hidden; }
html.pl-active body { overflow: hidden; }   /* released by JS; the inline head script also releases it after 6.5s */

.preloader { display: none; }
.js.pl-active .preloader { display: block; }
.preloader {
  position: fixed; inset: 0; z-index: 380; pointer-events: none;
  /* Failsafe: even if every script fails, the loader leaves by itself */
  animation: plFailsafe .8s ease 6s forwards;
}
.js.pl-active .preloader { pointer-events: auto; }
@keyframes plFailsafe { to { opacity: 0; visibility: hidden; } }
html.pl-done .preloader { display: none !important; }

.preloader__half { position: absolute; inset: 0; will-change: transform; }
.preloader__half--l { clip-path: inset(0 calc(50% - 1px) 0 0); }   /* 1px overlap: no hairline seam */
.preloader__half--r { clip-path: inset(0 0 0 calc(50% - 1px)); }

.preloader__scene {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 46%, rgba(86, 34, 48, .55), transparent 72%),
    var(--burgundy);
}
.preloader__scene::after {          /* fine grain for atmospheric depth */
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.preloader__flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-flow { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .16; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.pl-flow + .pl-flow { opacity: .09; }
.pl-ripple { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0; vector-effect: non-scaling-stroke; }

.preloader__stage {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: max-content; max-width: 92vw;
}
.preloader__word {
  display: flex; align-items: flex-end; justify-content: center;
  font-family: var(--serif); font-weight: 300; color: var(--ivory);
  font-size: clamp(1.9rem, 1rem + 4.4vw, 4.4rem); line-height: 1;
}
.pl-m { display: inline-block; overflow: hidden; padding: .06em .19em .04em; margin: 0 -.0em; }
.pl-c { display: inline-block; transform: translateY(105%); }
.pl-gap { display: inline-block; width: .42em; }
.preloader__line { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; width: clamp(200px, 30vw, 380px); height: 14px; margin: clamp(18px, 2.6vh, 28px) 0 clamp(16px, 2.2vh, 24px); }
.pl-rule { flex: 1; height: 1px; background: var(--gold); transform: scaleX(0); }
.pl-rule--l { transform-origin: right center; }
.pl-rule--r { transform-origin: left center; }
.pl-gem { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; overflow: visible; fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0; transform: scale(0) rotate(-45deg); }
.preloader__tag { overflow: hidden; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1rem, .9rem + .5vw, 1.35rem); letter-spacing: .06em; color: var(--gold-soft); }
.preloader__tag span { display: inline-block; opacity: 0; transform: translateY(60%); }

@media (max-width: 767px) {
  .pl-m { padding-left: .1em; padding-right: .1em; }
  .pl-gap { width: .3em; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none !important; }
}

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero__slide img, .hero__slide.is-active img { transform: scale(1.04); animation: none !important; }
  .cursor { display: none !important; }
  .scroll-cue__line::after { transform: none; }
}
