/* =====================================================================
   Domaine Côte Noir — a Quantum Pixel flagship showcase
   Palette: noir · bordeaux · aged gold · bone · cream
   Type: Fraunces (display) · Hanken Grotesk (text)
   ===================================================================== */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --noir: #0E0A0B;
  --noir-2: #140E10;
  --slate: #241E20;
  --bordeaux: #3A0A12;
  --bordeaux-700: #5A1320;
  --bordeaux-bright: #8A1C2E;
  --gold: #C2A063;
  --gold-soft: #D8BE8E;
  --bone: #ECE4D6;
  --cream: #F6F1E7;
  --muted: #9A8E85;
  --muted-2: #756B65;

  --ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-text: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --maxw: 1320px;
  --gutter: clamp(1.25rem, 5vw, 5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.9s;

  --grain-op: 0.05;
}

html { -webkit-text-size-adjust: 100%; }
html.js { scroll-behavior: auto; }
html:not(.js) { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--bone);
  font-family: var(--ff-text);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--bordeaux-bright); color: var(--cream); }

/* Keyboard focus — visible even with the custom cursor active */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.btn:focus-visible { outline-offset: 4px; }

/* ---------- Vignette + grain overlays ---------- */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
  background: radial-gradient(120% 90% at 50% 35%, transparent 55%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}

.grain {
  position: fixed; inset: -50%;
  z-index: 61;
  pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-6%, 4%); }
  40%  { transform: translate(4%, -8%); }
  60%  { transform: translate(-3%, 6%); }
  80%  { transform: translate(7%, 3%); }
  100% { transform: translate(0,0); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 80; pointer-events: none;
  background: rgba(236,228,214,0.06);
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--bordeaux-bright), var(--gold));
  transform-origin: left;
}

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; display: none; }
.cursor__dot,
.cursor__ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot { width: 6px; height: 6px; background: var(--gold); }
.cursor__ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(194,160,99,0.55);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(194,160,99,0.08); border-color: rgba(216,190,142,0.8); }
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor__label {
  position: absolute; top: 0; left: 0;
  transform: translate(-50%, -50%);
  font-family: var(--ff-text); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cream);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor { display: block; }
  html.has-cursor body,
  html.has-cursor a,
  html.has-cursor button { cursor: none; }
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  background: var(--gold); color: var(--noir); padding: 0.6rem 1rem;
  border-radius: 4px; font-size: 0.85rem; transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared atoms ---------- */
.eyebrow {
  font-family: var(--ff-text);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--light { color: var(--gold-soft); }
.eyebrow--dark { color: var(--bordeaux-bright); }

.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--ff-text); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.05em 2em; border-radius: 100px;
  position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transition: transform 0.6s var(--ease);
}
.btn--gold { color: var(--noir); background: var(--gold); }
.btn--gold::before { background: var(--gold-soft); transform: translateY(101%); }
.btn--gold:hover::before { transform: translateY(0); }
.btn--dark { color: var(--cream); border: 1px solid rgba(58,10,18,0.5); }
.btn--dark::before { background: var(--bordeaux); transform: translateY(101%); }
.btn--dark:hover { color: var(--cream); }
.btn--dark:hover::before { transform: translateY(0); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.2vw, 1.6rem) var(--gutter);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(14,10,11,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  padding-top: 0.85rem; padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(194,160,99,0.12);
}
.nav__mark { display: flex; align-items: center; gap: 0.7rem; }
.nav__mark-glyph {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold);
  font-family: var(--ff-display); font-size: 0.95rem; letter-spacing: 0.02em;
  color: var(--gold);
}
.nav__mark-text { font-family: var(--ff-display); font-size: 1.02rem; letter-spacing: 0.01em; color: var(--bone); }
.nav__links { display: none; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav__links a {
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone); position: relative; padding: 0.3rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.4s var(--ease);
}
.nav__links a:hover { color: var(--gold-soft); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  display: none;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid rgba(194,160,99,0.4); border-radius: 100px;
  padding: 0.7em 1.4em; color: var(--gold-soft);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__cta:hover { background: var(--gold); color: var(--noir); }

.nav__toggle { display: grid; gap: 6px; width: 44px; height: 44px; align-content: center; justify-items: end; }
.nav__toggle span { height: 1.5px; width: 30px; background: var(--bone); transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 65;
  background: var(--noir-2);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
  pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__inner { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__inner a {
  font-family: var(--ff-display); font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 300; color: var(--bone); line-height: 1.25;
  transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}
.menu__inner a:hover { color: var(--gold); padding-left: 0.5rem; }
.menu__cta { color: var(--gold) !important; }
.menu__foot { margin-top: 2.5rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__canvas, .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg {
  z-index: 0;
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(138,28,46,0.30), transparent 60%),
    radial-gradient(90% 80% at 20% 90%, rgba(58,10,18,0.55), transparent 65%),
    linear-gradient(180deg, #120A0C 0%, #0E0A0B 60%, #0B0708 100%);
}
.hero__canvas { z-index: 1; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(14,10,11,0.4) 0%, transparent 25%, transparent 60%, rgba(14,10,11,0.85) 100%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.hero__eyebrow {
  font-size: clamp(0.65rem, 0.6rem + 0.4vw, 0.8rem);
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
.hero__title {
  font-family: var(--ff-display); font-weight: 300;
  font-size: clamp(3.4rem, 13vw, 11rem); line-height: 0.92;
  letter-spacing: -0.02em; color: var(--bone);
}
.hero__title-line { display: block; overflow: hidden; }
.hero__title-line--accent { font-style: italic; color: var(--gold-soft); }
.hero__title-line > span { display: inline-block; }
.hero__line {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  font-family: var(--ff-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.05rem, 0.9rem + 1vw, 1.6rem); color: var(--muted);
  letter-spacing: 0.01em;
}
.hero__cue {
  position: absolute; bottom: clamp(1.6rem, 4vh, 3rem); left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
}
.hero__cue-line { width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__cue-line::after { content: ""; position: absolute; top: -60%; left: 0; width: 100%; height: 60%; background: var(--gold); animation: cue 2.4s var(--ease-soft) infinite; }
@keyframes cue { 0% { transform: translateY(0); } 100% { transform: translateY(280%); } }

/* =====================================================================
   Section base
   ===================================================================== */
section { position: relative; }
.cellar__content, .seasons__intro, .vintages__intro, .allocation__inner { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* MANIFESTO — 3D bottle as a full-bleed background, copy layered on top */
.manifesto { position: relative; min-height: 100vh; display: flex; align-items: center; padding: clamp(5rem, 12vh, 9rem) var(--gutter); overflow: hidden; }
.manifesto .eyebrow { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.manifesto__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.manifesto__glow {
  position: absolute; inset: 0;
  background: radial-gradient(40% 48% at 70% 50%, rgba(138,28,46,0.30), rgba(58,10,18,0.08) 50%, transparent 74%);
}
.manifesto__bottle { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.manifesto__bottle.is-ready { opacity: 1; }
.manifesto__copy { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin-inline: auto; }
.manifesto__text {
  font-family: var(--ff-display); font-weight: 300;
  font-size: clamp(1.7rem, 1rem + 3.6vw, 4rem); line-height: 1.22;
  letter-spacing: -0.01em; color: var(--bone); max-width: 22ch;
}
.manifesto__text .word { display: inline-block; }
@media (max-width: 640px) {
  .manifesto__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(14,10,11,0.78) 0%, rgba(14,10,11,0.35) 55%, transparent 100%);
  }
}

/* =====================================================================
   THE SLOPE
   ===================================================================== */
.slope { position: relative; min-height: 100vh; display: grid; align-items: end; padding: var(--gutter); overflow: hidden; }
.slope__media { position: absolute; inset: 0; z-index: 0; }
.slope__img, .slope__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slope__img { z-index: 0; }
.slope__canvas { z-index: 1; opacity: 0; transition: opacity 1s var(--ease); }
.slope__canvas.is-ready { opacity: 1; }
.slope__veil { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(11,7,8,0.5) 0%, transparent 30%, rgba(11,7,8,0.4) 60%, rgba(11,7,8,0.92) 100%); }
.slope__content { position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin: 0 auto; padding-bottom: clamp(2rem, 6vh, 5rem); }
.slope__title {
  font-family: var(--ff-display); font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4.2rem); line-height: 1.04;
  letter-spacing: -0.01em; color: var(--cream); margin: 1.2rem 0 1.6rem; max-width: 16ch;
}
.slope__body { max-width: 46ch; color: var(--bone); }
.slope__data { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin-top: clamp(2.5rem, 6vw, 4rem); max-width: 720px; }
.slope__stat { border-top: 1px solid rgba(194,160,99,0.3); padding-top: 0.85rem; }
.slope__stat dt { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; }
.slope__stat dd { font-family: var(--ff-display); font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.5rem); color: var(--bone); }

/* =====================================================================
   SEASONS (horizontal)
   ===================================================================== */
.seasons { padding: clamp(6rem, 14vh, 11rem) 0; }
.seasons__intro { padding: 0 var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.seasons__heading { font-family: var(--ff-display); font-weight: 300; font-size: clamp(2rem, 1.3rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--bone); margin-top: 1rem; }
.seasons__viewport { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.seasons__viewport::-webkit-scrollbar { display: none; }
.seasons__track { display: flex; gap: clamp(1rem, 2vw, 2rem); padding: 0 var(--gutter); width: max-content; scroll-snap-type: x mandatory; }
.season { scroll-snap-align: center; width: min(82vw, 440px); flex: 0 0 auto; }
.season__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; }
.season__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.season:hover .season__media img { transform: scale(1.05); }
.season__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,7,8,0.75)); }
.season__text { padding-top: 1.4rem; }
.season__index { font-family: var(--ff-display); font-style: italic; font-size: 0.95rem; color: var(--gold); }
.season__text h3 { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); color: var(--bone); margin: 0.25rem 0 0.7rem; letter-spacing: -0.01em; }
.season__text p { font-size: 0.96rem; color: var(--muted); max-width: 38ch; }

/* =====================================================================
   CELLAR
   ===================================================================== */
.cellar { padding: clamp(6rem, 14vh, 11rem) var(--gutter); display: grid; gap: clamp(3rem, 6vw, 6rem); }
.cellar__media { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2vw, 1.6rem); }
.cellar__fig { overflow: hidden; border-radius: 2px; }
.cellar__fig img { width: 100%; height: 100%; object-fit: cover; }
.cellar__fig--tall { aspect-ratio: 4 / 3; }
.cellar__fig--wide { aspect-ratio: 16 / 9; }
.cellar__title { font-family: var(--ff-display); font-weight: 300; font-size: clamp(2rem, 1.3rem + 3vw, 4rem); line-height: 1.04; letter-spacing: -0.01em; color: var(--bone); margin: 1rem 0 1.4rem; max-width: 16ch; }
.cellar__body { max-width: 48ch; color: var(--bone); }
.counters { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.counter { border-top: 1px solid rgba(194,160,99,0.3); padding-top: 1rem; }
.counter__num { display: block; font-family: var(--ff-display); font-weight: 300; font-size: clamp(2.6rem, 2rem + 3vw, 4.6rem); line-height: 1; color: var(--gold-soft); letter-spacing: -0.02em; }
.counter__label { display: block; margin-top: 0.6rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee { overflow: hidden; border-top: 1px solid rgba(194,160,99,0.14); border-bottom: 1px solid rgba(194,160,99,0.14); padding: clamp(1.2rem, 2.5vw, 2rem) 0; }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; align-items: center; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--ff-display); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 1rem + 1.6vw, 2.4rem); color: var(--bone); white-space: nowrap; }
.marquee__track span[aria-hidden] { color: var(--gold); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =====================================================================
   VINTAGES (horizontal)
   ===================================================================== */
.vintages { padding: clamp(6rem, 14vh, 11rem) 0; background: linear-gradient(180deg, var(--noir) 0%, #0B0708 100%); }
.vintages__intro { padding: 0 var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.vintages__heading { font-family: var(--ff-display); font-weight: 300; font-size: clamp(2rem, 1.3rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--bone); margin-top: 1rem; max-width: 24ch; }
.vintages__viewport { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vintages__viewport::-webkit-scrollbar { display: none; }
.vintages__track { display: flex; gap: clamp(1rem, 1.8vw, 1.8rem); padding: 0 var(--gutter); width: max-content; scroll-snap-type: x mandatory; }
.vintage {
  scroll-snap-align: center; width: min(84vw, 420px); flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(36,30,32,0.55), rgba(20,14,16,0.55));
  border: 1px solid rgba(194,160,99,0.16); border-radius: 3px;
  padding: clamp(1.8rem, 3vw, 2.6rem); display: flex; flex-direction: column;
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease), background 0.5s var(--ease);
}
.vintage:hover { border-color: rgba(194,160,99,0.5); transform: translateY(-6px); }
.vintage__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.vintage__year { font-family: var(--ff-display); font-weight: 300; font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); color: var(--bone); line-height: 1; letter-spacing: -0.01em; }
.vintage__name { font-family: var(--ff-display); font-style: italic; font-size: 1.1rem; color: var(--gold); }
.vintage__blend { margin-top: 1.2rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }
.vintage__note { margin-top: 1rem; color: var(--bone); font-size: 0.98rem; flex: 1; }
.vintage__meta { display: flex; gap: 2.5rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(194,160,99,0.18); }
.vintage__meta dt { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.vintage__meta dd { font-family: var(--ff-display); font-size: 1.05rem; color: var(--bone); }
.vintage--declined { background: transparent; border-style: dashed; border-color: rgba(140,128,121,0.35); }
.vintage--declined .vintage__year, .vintage--declined .vintage__name { color: var(--muted); }
.vintage--declined .vintage__note { color: var(--muted); font-style: italic; }
.vintage--glass { width: min(70vw, 320px); padding: 0; border: none; background: none; overflow: hidden; border-radius: 3px; }
.vintage--glass img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   THE TABLE (light interlude)
   ===================================================================== */
.table { background: var(--cream); color: var(--noir); display: grid; gap: 0; overflow: hidden; }
.table__media { position: relative; min-height: 56vh; overflow: hidden; }
.table__media img { position: absolute; inset: 0; width: 100%; height: 110%; object-fit: cover; }
.table__content { padding: clamp(4rem, 10vh, 8rem) var(--gutter); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.table__title { font-family: var(--ff-display); font-weight: 300; font-size: clamp(2rem, 1.3rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; color: #20140F; margin: 1rem 0 1.4rem; max-width: 16ch; }
.table__body { max-width: 44ch; color: #4A3B33; }
.table__detail { margin-top: 1.6rem; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bordeaux-700); }
.table .btn--dark { margin-top: 2.4rem; border-color: rgba(58,10,18,0.4); color: #20140F; }
.table .btn--dark:hover { color: var(--cream); }

/* =====================================================================
   ALLOCATION
   ===================================================================== */
.allocation { padding: clamp(6rem, 14vh, 12rem) var(--gutter); background: linear-gradient(180deg, #0B0708, var(--noir)); }
.allocation__inner { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.allocation__title { font-family: var(--ff-display); font-weight: 300; font-size: clamp(2rem, 1.3rem + 3vw, 3.8rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--bone); margin: 1rem 0 1.4rem; max-width: 14ch; }
.allocation__body { max-width: 44ch; color: var(--muted); }
.allocation__form { display: grid; gap: 1.8rem; max-width: 560px; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--bone);
  background: transparent; border: none; border-bottom: 1px solid rgba(194,160,99,0.3);
  padding: 0.7rem 0; transition: border-color 0.4s var(--ease);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 2.4rem; }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 1.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C2A063' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.2rem center;
}
.field select option { background: var(--noir-2); color: var(--bone); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.allocation__form .btn { justify-self: start; margin-top: 0.6rem; }
.allocation__status { font-size: 0.9rem; color: var(--gold-soft); min-height: 1.2rem; }
.allocation__status.is-error { color: var(--bordeaux-bright); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { padding: clamp(4rem, 9vh, 7rem) var(--gutter) 2.5rem; border-top: 1px solid rgba(194,160,99,0.14); }
.footer__top { display: grid; gap: 3rem; max-width: var(--maxw); margin: 0 auto; }
.footer__mark { font-family: var(--ff-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); color: var(--bone); }
.footer__line { margin-top: 0.8rem; color: var(--muted); max-width: 34ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.8rem; }
.footer__nav a { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.3s var(--ease); }
.footer__nav a:hover { color: var(--gold); }
.footer__contact p { color: var(--muted); font-size: 0.92rem; }
.footer__contact a { color: var(--gold-soft); font-size: 0.92rem; }
.footer__base {
  max-width: var(--maxw); margin: clamp(3rem, 6vw, 5rem) auto 0; padding-top: 1.8rem;
  border-top: 1px solid rgba(194,160,99,0.1);
  display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;
}
.footer__note { font-size: 0.78rem; color: var(--muted-2); letter-spacing: 0.04em; }
.footer__qp { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color 0.4s var(--ease); }
.footer__qp strong { color: var(--gold); font-weight: 500; }
.footer__qp:hover { color: var(--bone); }

/* =====================================================================
   Reveal + split states (JS-enabled only)
   ===================================================================== */
.anim [data-reveal] { opacity: 0; transform: translateY(28px); will-change: transform, opacity; }
.anim [data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; }
.anim [data-split] .word > span { display: inline-block; transform: translateY(110%); will-change: transform; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (min-width: 760px) {
  .cellar__media { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .cellar__fig--wide { margin-top: 4rem; }
  .counters { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .footer__base { flex-direction: row; justify-content: space-between; align-items: center; }
  .table { grid-template-columns: 1fr 1fr; }
  .table__media { min-height: 100%; }
  .allocation__inner { grid-template-columns: 1fr 1fr; align-items: center; }
}

@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .menu { display: none; }

  .slope__data { gap: 2rem 3rem; }

  /* Horizontal pinned sections take over from native scroll on desktop:
     the viewport clips its wide track (GSAP translates the track on scroll) */
  .seasons__viewport, .vintages__viewport { overflow: hidden; }
  .seasons__track, .vintages__track { scroll-snap-type: none; }

  /* Seasons: the section pins for the horizontal scroll, so make it a fixed
     100vh flex column. Each photo then flexes to fill the space left under the
     heading and the caption stays in view — previously the image (3/4 ratio)
     pushed the description below the fold of the pinned viewport. */
  .seasons { height: 100vh; padding-top: clamp(3rem, 7vh, 5.5rem); padding-bottom: clamp(2rem, 5vh, 4rem); display: flex; flex-direction: column; }
  .seasons__intro { flex: 0 0 auto; padding-bottom: clamp(1.5rem, 3.5vw, 3rem); }
  .seasons__viewport { flex: 1 1 auto; min-height: 0; }
  .seasons__track { height: 100%; align-items: stretch; }
  .season { display: flex; flex-direction: column; height: 100%; }
  .season__media { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
  .season__text { flex: 0 0 auto; padding-top: 1.2rem; }
}

/* =====================================================================
   Reduced motion — everything visible, motion stilled
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
  .marquee__track { animation: none; }
  .hero__cue-line::after { animation: none; }
  .hero__canvas { opacity: 1; }
}
