/* ==========================================================================
   Achba Iashta — main page styles
   Direction: dark cinematic editorial (Zorah) + pinned wine showcase (Klimt)
   + colour-shifting sections and scroll-linked manifesto (BRAND).
   Sizing is fluid from 320px phones to 4K: type and the content column grow with the
   viewport (clamped), so 2K/4K screens get a proportionally larger page, not a small island.
   ========================================================================== */

:root {
  --ink: #0e0d0b;
  --ink-2: #161411;
  --ink-3: #1f1c18;
  --cream: #f2ebdd;
  --cream-2: #e4dccb;
  --stone: #9c9386;
  --stone-2: #6f675c;
  --gold: #c9a45c;
  --gold-2: #e3c686;
  --wine: #5a1e2b;

  --font-display: "Cormorant", "Times New Roman", serif;
  --font-text: "Onest", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Fluid scale: 1440px is the design width; values grow to ~2560px and stop by 4K */
  --container: min(2400px, max(1440px, 86vw));
  --gutter: clamp(16px, 2vw, 56px);
  --section-y: clamp(80px, 9vw, 220px);
  --nav-h: clamp(72px, 3.2vw + 42px, 128px);

  --fs-body: clamp(16px, 0.35vw + 12px, 22px);
  --fs-small: clamp(14px, 0.3vw + 10.5px, 19px);
  --fs-label: clamp(11px, 0.3vw + 6.7px, 16px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, address { margin: 0; }
address { font-style: normal; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-text);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--stone { color: var(--stone); }

.lede { font-size: clamp(17px, 1.4vw, 34px); line-height: 1.55; color: var(--cream-2); }
.copy { color: var(--stone); max-width: 52ch; }
.copy + .copy { margin-top: 1.2em; }
.copy strong { color: var(--cream); font-weight: 400; }

.num {
  font-family: var(--font-display);
  font-size: calc(var(--fs-label) * 1.18);
  letter-spacing: 0.18em;
  color: var(--gold);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section-y); }

/* ---------- Pill button ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  min-height: 48px;
  padding: 1.25em 2.3em;
  border: 1px solid rgba(201,164,92,.7);
  border-radius: 999px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  transition: background .5s var(--ease-out), color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.pill svg { width: 1.3em; height: 1.3em; transition: transform .5s var(--ease-out); }
.pill:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pill:hover svg { transform: translateX(4px); }
.pill--solid { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pill--solid:hover { background: var(--gold-2); border-color: var(--gold-2); }

/* ---------- Masked line reveals ---------- */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner { display: block; }
html.js .line__inner { transform: translateY(112%); }

/* Hero intro + manifesto CTA initial states (animated in by JS) */
html.js .hero [data-intro] { opacity: 0; transform: translateY(16px); }

/* Generic reveal: hidden until JS reveals; without JS everything is visible */
html.js [data-reveal] { opacity: 0; transform: translateY(32px); }
html.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }

/* Static path (reduced motion, or a CDN script failed): everything visible */
html.reduced-motion .line__inner,
html.reduced-motion [data-reveal],
html.reduced-motion .hero [data-intro] { opacity: 1; transform: none; transition: none; }

/* ---------- Photography grade (one treatment for every placeholder photo) ---------- */
img[data-parallax], .hero__img { filter: saturate(.8) contrast(1.05) brightness(.9); }
.story__fig, .terroir__fig, .winery__grid figure, .quote figure { position: relative; }
.story__fig::after, .terroir__fig::after, .winery__grid figure::after, .quote figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(14,13,11,.5));
}

/* ---------- Film grain (moved with transforms: composited, no full-screen repaints) ---------- */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 60;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  animation: grain 1.4s steps(4) infinite;
  will-change: transform;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-60px, 40px, 0); }
  50% { transform: translate3d(40px, -80px, 0); }
  75% { transform: translate3d(-20px, 60px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ---------- Curtain (covers long jumps so pinned sections don't fast-forward) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 49;
  background: var(--ink);
  opacity: 0; visibility: hidden;
  pointer-events: none;
}
.curtain.is-on { visibility: visible; pointer-events: auto; }

/* ---------- Preloader: the mark draws itself in ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
  text-align: center;
}
html:not(.js) .preloader { display: none; }
.preloader__inner { display: grid; justify-items: center; }
.preloader__logo { width: clamp(190px, 24vw, 340px); color: var(--cream); margin-bottom: clamp(18px, 3vh, 36px); }
.preloader__logo svg { display: block; width: 100%; height: auto; overflow: visible; }
/* while drawing, the logo sits exactly where the hero logo will be, so the photograph simply appears beneath it */
.preloader--placed .preloader__logo { position: fixed; margin: 0; color: #fff; }
.preloader--placed .preloader__logo svg { filter: drop-shadow(0 2px 22px rgba(0,0,0,.28)); }
.preloader--placed .preloader__sub { position: fixed; left: 0; right: 0; margin: 0; }
.preloader__sub { margin-top: 14px; font-size: var(--fs-label); letter-spacing: .26em; text-transform: uppercase; color: var(--stone); opacity: 0; }
.preloader__sub::after { content: attr(data-text); }
/* the 18+ question: shown under the drawn logo before the dark field lifts */
.preloader__gate:not([hidden]) { display: grid; justify-items: center; gap: 16px; padding: 0 20px; text-align: center; }
.preloader--asking .preloader__sub { display: none; }
.preloader--placed .preloader__gate { position: fixed; left: 0; right: 0; } /* top is set under the logo by main.js */
.preloader--asking { background: radial-gradient(56% 48% at 50% 62%, rgba(107,53,64,.5) 0%, rgba(58,24,36,.28) 50%, rgba(14,13,11,0) 100%), var(--ink); }
.gate__q { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(30px, 3.2vw, 56px); line-height: 1.1; color: var(--cream); }
.gate__note { margin: 0; max-width: 44ch; color: var(--stone); font-size: var(--fs-small); }
.gate__row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.gate__row .pill { cursor: pointer; font: inherit; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; }
.gate__denied { margin: 6px 0 0; max-width: 46ch; color: var(--cream-2); }
.gate__denied a { color: var(--gold-2); border-bottom: 1px solid rgba(227,198,134,.45); } /* drawn from the attribute: a fading caption is not a text node for contrast checks */

/* ---------- Navigation ---------- */
/* Château-style header (after chateau-margaux.com):
   over the hero it is transparent with light type; hover or click a section and the bar fills
   with paper colour, the type turns ink and a row of cards drops beneath it. Past the hero the
   bar hides while scrolling down and comes back as a paper-coloured bar when scrolling up. */
:root {
  --paper: #f6f5f2;
  --paper-2: #ebe8e2;
  --paper-ink: #46403c;
  --paper-ink-2: #776e66;
  --sand: #cab57e;
  --sand-deep: #9d8550;
  --nav-ease: cubic-bezier(.22, .61, .36, 1);
  --sheet-ease: cubic-bezier(.65, 0, .35, 1);
}
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  color: #f0f0ee;
  isolation: isolate;
  transition: color .5s var(--nav-ease), background-color .5s var(--nav-ease), height .6s var(--ease-out), translate .6s var(--ease-out);
}
.nav::before { /* a soft shade so light type reads over bright photographs */
  content: ""; position: absolute; inset: 0 0 -90% 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,9,8,.52) 0%, rgba(10,9,8,.26) 45%, rgba(10,9,8,0) 100%);
  transition: opacity .5s var(--nav-ease);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(70,64,60,.12); opacity: 0; transition: opacity .5s;
}
.nav--scrolled { color: var(--paper-ink); background-color: var(--paper); }
.nav.is-open { color: var(--paper-ink); transition: color .35s var(--nav-ease) .06s, background-color .5s var(--nav-ease), height .6s var(--ease-out), translate .6s var(--ease-out); }
.nav.is-open::before, .nav--scrolled::before { opacity: 0; }
.nav--scrolled::after { opacity: 1; }
.nav.is-open::after { opacity: 0; }
.nav--scrolled { height: calc(var(--nav-h) * .8); }
.nav--hidden:not(.is-open) { translate: 0 -100%; }

.nav__mark { justify-self: start; display: flex; align-items: center; gap: clamp(10px, .9vw, 16px); color: inherit; }
.nav__mark svg { display: block; height: auto; overflow: visible; transition: width .6s var(--ease-out); }
.nav__mark-sign { width: clamp(30px, 1.2vw + 20px, 44px); stroke-width: .9; }
.nav__mark-word { width: clamp(78px, 3vw + 50px, 112px); }
.nav--scrolled .nav__mark-sign { width: clamp(26px, 1vw + 18px, 36px); }
.nav--scrolled .nav__mark-word { width: clamp(70px, 2.6vw + 44px, 96px); }

.nav__list { display: flex; justify-self: center; gap: clamp(26px, 2.6vw, 64px); }
.nav__trigger {
  position: relative; display: block;
  padding-block: 10px;
  font-family: var(--font-text); font-weight: 500;
  font-size: calc(var(--fs-label) * 1.3); letter-spacing: .02em; text-transform: uppercase;
  color: inherit; white-space: nowrap; cursor: pointer;
}
.nav__trigger::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px; background: currentColor;
  transition: right .45s var(--nav-ease);
}
.nav__trigger:hover::after, .nav__trigger:focus-visible::after, .nav__trigger[aria-expanded="true"]::after { right: 0; }
.nav:not(.is-open):not(.nav--scrolled) :is(.nav__trigger, .nav__cta, .lang-switch) { text-shadow: 0 1px 12px rgba(0,0,0,.28); }

.nav__right { justify-self: end; display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 1.4vw, 36px); }
.nav__cta {
  display: inline-flex; align-items: center; gap: .65em;
  padding-block: 10px;
  font-family: var(--font-text); font-weight: 500;
  font-size: calc(var(--fs-label) * 1.3); letter-spacing: .02em; text-transform: uppercase;
  color: var(--sand); white-space: nowrap;
  transition: color .5s var(--nav-ease);
}
.nav.is-open .nav__cta, .nav--scrolled .nav__cta { color: var(--sand-deep); }
.nav__cta svg { width: .85em; height: 1.35em; flex: none; }
.nav__cta:hover { color: currentColor; }
@media (max-width: 1400px) { .nav__cta { display: none; } }

/* Mega menu: one paper sheet behind the bar and the cards, unrolled from the top edge */
.mega {
  position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  background: var(--paper);
  padding: calc(var(--nav-h) + 6px) var(--gutter) clamp(30px, 2.8vw, 56px);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  box-shadow: 0 40px 60px -40px rgba(0,0,0,.35);
  transition: clip-path .55s var(--sheet-ease), visibility 0s linear .55s;
}
.nav--scrolled .mega { padding-top: calc(var(--nav-h) * .8 + 6px); }
/* opening: fast at first so the bar fills at once, then the cards area settles in; closing: ease-in */
.nav.is-open .mega { clip-path: inset(0 0 -60px 0); visibility: visible; transition: clip-path .7s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
.mega__panel { display: none; justify-content: center; gap: clamp(14px, 1.4vw, 30px); max-width: var(--container); margin: 0 auto; }
.mega__panel.is-active { display: flex; }
.mega__card {
  width: clamp(150px, 12.6vw, 270px);
  color: var(--paper-ink);
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s var(--nav-ease), transform .6s var(--nav-ease);
}
.nav.is-open .mega__panel.is-active .mega__card {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i, 0) * 50ms + 140ms);
}
.mega__img { display: block; aspect-ratio: 20 / 17; overflow: hidden; background: var(--paper-2); }
.mega__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.mega__card:hover .mega__img img, .mega__card:focus-visible .mega__img img { transform: scale(1.05); }
.mega__label {
  display: block; margin-top: 12px;
  font-family: var(--font-text); font-weight: 500;
  font-size: calc(var(--fs-label) * 1.2); letter-spacing: .02em; text-transform: uppercase;
  color: var(--paper-ink-2); transition: color .3s;
}
.mega__card:hover .mega__label, .mega__card:focus-visible .mega__label { color: var(--paper-ink); }
.wine-menu__copy { min-width: 0; }
.wine-menu__name {
  display: block; font-family: var(--font-text); font-weight: 500;
  font-size: clamp(16px, 1.25vw, 24px); line-height: 1.3;
  letter-spacing: .01em; text-transform: none; color: var(--paper-ink);
}
.wine-menu__style {
  display: block; margin-top: 5px; font-family: var(--font-text); font-weight: 400;
  font-size: clamp(12px, .85vw, 15px); line-height: 1.45;
  letter-spacing: 0; text-transform: none; color: var(--paper-ink-2);
}
.mega__panel--wines .mega__img { background: radial-gradient(60% 70% at 50% 60%, #fbfaf7, var(--paper-2)); }
.mega__panel--wines .mega__img img { object-fit: contain; padding: 10px 0 4px; }
.mega__panel--wines .mega__card:hover .mega__img img { transform: translateY(-4px) scale(1.03); }

/* Language switch (header, menu, footer) */
.lang-switch { display: flex; align-items: center; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; }
.lang-switch :is(a, button) {
  display: inline-flex; align-items: center; justify-content: center; /* links and the button share one box */
  text-decoration: none; font: inherit; background: none; border: 0;
  position: relative;
  min-width: 40px; height: 44px; padding: 0 6px; line-height: 1;
  color: inherit; opacity: .72; transition: color .4s, opacity .4s;
  letter-spacing: inherit; text-transform: inherit;
}
.lang-switch :is(a, button) + :is(a, button)::before { content: ""; position: absolute; left: 0; top: 50%; height: 1em; translate: 0 -50%; border-left: 1px solid currentColor; opacity: .35; }
.lang-switch :is(a, button)[aria-current="page"] { opacity: 1; color: var(--gold-2); }
.nav.is-open .lang-switch :is(a, button)[aria-current="page"], .nav--scrolled .lang-switch :is(a, button)[aria-current="page"], .menu .lang-switch :is(a, button)[aria-current="page"] { color: var(--sand-deep); }
.lang-switch :is(a, button):not([aria-disabled="true"]):hover { opacity: 1; }
.lang-switch :is(a, button)[aria-disabled="true"] { opacity: .32; cursor: default; }

.nav__burger { display: none; width: 48px; height: 48px; position: relative; color: inherit; }
.nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 1px; background: currentColor;
  transition: transform .5s var(--ease-out), opacity .3s;
}
.nav__burger span:nth-child(1) { top: 19px; }
.nav__burger span:nth-child(2) { top: 28px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Phone menu: a paper sheet; each section slides in its own list */
body.menu-open .nav { color: var(--paper-ink); background-color: transparent; translate: none; }
body.menu-open .nav::before, body.menu-open .nav::after { opacity: 0; }
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--paper); color: var(--paper-ink);
  overflow: hidden;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--sheet-ease), visibility 0s linear .7s;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--sheet-ease), visibility 0s; }
@media (min-width: 1201px) { .menu { display: none; } }
.menu__pane {
  position: absolute; inset: calc(var(--nav-h) + 20px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  overflow-y: auto;
  transition: transform .55s var(--nav-ease), opacity .45s var(--nav-ease), visibility 0s;
}
.menu__pane--sub { transform: translateX(104%); opacity: 0; visibility: hidden; transition: transform .55s var(--nav-ease), opacity .45s var(--nav-ease), visibility 0s linear .55s; }
.menu.is-sub .menu__pane--root { transform: translateX(-28%); opacity: 0; visibility: hidden; transition: transform .55s var(--nav-ease), opacity .4s var(--nav-ease), visibility 0s linear .55s; }
.menu__pane--sub.is-active { transform: none; opacity: 1; visibility: visible; transition: transform .55s var(--nav-ease), opacity .45s var(--nav-ease), visibility 0s; }
.menu__list li { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--nav-ease), transform .6s var(--nav-ease); }
body.menu-open .menu__list li { opacity: 1; transform: none; }
body.menu-open .menu__list li:nth-child(1) { transition-delay: .18s; }
body.menu-open .menu__list li:nth-child(2) { transition-delay: .23s; }
body.menu-open .menu__list li:nth-child(3) { transition-delay: .28s; }
body.menu-open .menu__list li:nth-child(4) { transition-delay: .33s; }
.menu__go {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  padding: 16px 0;
  font-family: var(--font-text); font-weight: 500;
  font-size: clamp(20px, 5.6vw, 28px); letter-spacing: .02em; text-transform: uppercase; text-align: left;
  color: var(--paper-ink);
}
.menu__go i, .menu__back i { flex: none; width: 11px; height: 11px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; rotate: 45deg; margin-right: 4px; }
.menu__cta { margin-top: 28px; justify-content: flex-start; color: var(--sand-deep); }
.menu__cta svg { width: 18px; height: 28px; flex: none; }
.menu__cta i { margin-left: auto; }
.menu__foot { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--paper-ink-2); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; }
.menu__foot .lang-switch { margin-right: -6px; }
.menu__back { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 10px 0; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--paper-ink-2); }
.menu__back i { rotate: -135deg; margin: 0 0 0 4px; }
.menu__title { margin: 14px 0 8px; font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 9vw, 52px); line-height: 1.05; color: var(--paper-ink); }
.menu__sublist a {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid rgba(70,64,60,.12);
  font-family: var(--font-text); font-weight: 500;
  font-size: clamp(16px, 4.4vw, 21px); letter-spacing: .02em; text-transform: uppercase;
  color: var(--paper-ink);
}
.menu__sublist--wines a { padding-block: 8px; }
.menu__sublist--wines img { width: 26px; height: 62px; object-fit: contain; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #2b2a1c center 58% / cover no-repeat; } /* blurred tiny copy shows while the photo loads */
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 58%;
  transform: scale(1.04); will-change: transform;
}
img.hero__img { filter: saturate(1.06) contrast(1.08) brightness(.93); } /* rich daylight, deep shade at the edges */
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(64% 42% at 50% 26%, rgba(10,9,8,.34), rgba(10,9,8,0) 72%),
    radial-gradient(90% 80% at 50% 55%, rgba(8,10,6,0) 45%, rgba(8,10,6,.48) 100%), /* the trees frame the view */
    linear-gradient(180deg, rgba(10,9,8,.16) 0%, rgba(10,9,8,0) 30%, rgba(10,9,8,0) 62%, rgba(10,9,8,.5) 100%);
}
.hero__mark {
  position: absolute; left: 50%; top: 47%; translate: -50% -50%;
  width: clamp(260px, 30vw, 560px); margin: 0;
}
.hero__arc { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 22px rgba(0,0,0,.28)); }
.hero__lockup { color: #fff; stroke-width: .583; }
.hero__line {
  position: absolute; left: 0; right: 0; bottom: clamp(26px, 4.5vh, 60px);
  padding-inline: var(--gutter);
  text-align: center;
  color: var(--cream); text-shadow: 0 1px 18px rgba(0,0,0,.35);
}
.hero__explore {
  display: inline-flex; flex-direction: column; align-items: center; gap: 14px;
  min-width: 44px; min-height: 44px; padding: 10px 20px;
  font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase;
  color: inherit; text-decoration: none; transition: color .35s ease;
}
.hero__explore-arrow { display: block; animation: explore-down 3.6s cubic-bezier(.22,1,.36,1) infinite; }
.hero__explore:hover { color: var(--gold); }
.hero__explore:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }
@keyframes explore-down {
  0%, 15%, 100% { transform: translateY(0); }
  55%, 70% { transform: translateY(6px); }
}
html.reduced-motion .hero__explore-arrow { animation: none; }
html.js:not(.reduced-motion) .hero__arc { opacity: 0; }

/* ---------- Hospitality ---------- */
/* ---------- The rule of the house: the table photograph, and the words set the way the wine titles are ---------- */
.manifesto { position: relative; isolation: isolate; background: var(--ink); color: var(--cream); overflow: hidden; }
.manifesto__media { position: absolute; inset: -8% 0; margin: 0; z-index: -2; }
.manifesto__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 64% 46%; filter: saturate(.84) contrast(1.05) brightness(.72); }
.manifesto__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 58% 62% at 50% 56%, rgba(14,13,11,.78) 0%, rgba(14,13,11,.5) 55%, rgba(14,13,11,0) 100%),
    linear-gradient(180deg, rgba(14,13,11,.6) 0%, rgba(14,13,11,.12) 26%, rgba(14,13,11,.12) 62%, rgba(14,13,11,.82) 100%);
}
.manifesto__stage {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--nav-h) + 16px); padding-bottom: clamp(40px, 6vh, 96px);
}
/* the words sit in the middle of the picture: one uppercase title, two short paragraphs, a quiet link, all centred */
.manifesto__copy { grid-row: 1 / -1; align-self: center; justify-self: center; max-width: min(100%, 1200px); text-align: center; padding-bottom: 4vh; }
.manifesto__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5.8vw, 140px); line-height: .94; letter-spacing: -.01em; text-transform: uppercase; color: rgba(242,235,221,.95); }
.manifesto__title .line { white-space: normal; text-wrap: balance; }
.manifesto__description { max-width: 46ch; margin: clamp(22px, 2.4vw, 44px) auto 0; font-size: calc(var(--fs-body) * 1.05); line-height: 1.6; color: rgba(242,235,221,.88); }
.manifesto__description + .manifesto__description { margin-top: .9em; }
.manifesto__action { margin: clamp(22px, 2.4vw, 40px) 0 0; }
.manifesto__link { display: inline-flex; align-items: baseline; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(227,198,134,.45); font-size: var(--fs-label); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); transition: border-color .4s var(--ease-out); }
.manifesto__link svg { width: 22px; height: 14px; align-self: center; transition: transform .35s var(--ease-out); }
.manifesto__link:hover { border-color: var(--gold-2); }
.manifesto__link:hover svg { transform: translateX(4px); }
@media (max-width: 900px) {
  .manifesto__media { inset: -6% 0; }
  .manifesto__media img { object-position: 60% 40%; filter: saturate(.84) contrast(1.05) brightness(.66); }
  .manifesto__overlay {
    background:
      radial-gradient(ellipse 80% 55% at 50% 55%, rgba(14,13,11,.7) 0%, rgba(14,13,11,0) 100%),
      linear-gradient(180deg, rgba(14,13,11,.6) 0%, rgba(14,13,11,.2) 28%, rgba(14,13,11,.3) 60%, rgba(14,13,11,.92) 100%);
  }
  .manifesto__stage { min-height: 96svh; padding-bottom: 48px; }
  .manifesto__copy { max-width: none; }
  .manifesto__title { font-size: clamp(40px, 11.5vw, 68px); }
}

/* ---------- Story ---------- */
.story { background: var(--ink); }
.story__quote { max-width: 46ch; margin: 0 auto clamp(56px, 6vw, 140px); text-align: center; }
.story__quote p { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(24px, 2.3vw, 60px); line-height: 1.26; color: var(--cream); text-wrap: balance; }
.story__quote cite { display: block; margin-top: clamp(14px, 1.2vw, 26px); font-family: var(--font-text); font-style: normal; font-size: var(--fs-label); letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.story__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
  border-top: 1px solid rgba(242,235,221,.1);
}
.story__card {
  min-width: 0;
  padding: clamp(40px, 5vw, 120px) clamp(24px, 4vw, 100px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(24px, 2vw, 44px);
}
.story__card + .story__card { border-left: 1px solid rgba(242,235,221,.1); }
.story__title {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  max-width: 100%; font-size: clamp(32px, 3vw, 80px); line-height: .98; letter-spacing: -0.005em;
}
.story__title .line { white-space: normal; text-wrap: balance; }
.story__card .copy { text-align: center; max-width: 46ch; }
/* the card's text: short paragraphs set left at a narrow measure, none longer than three lines */
.story__copy { max-width: 42ch; text-align: left; }
.story__copy .copy { text-align: left; max-width: none; }
.story__copy .copy + .copy { margin-top: 1em; }
.story__fig { width: 100%; aspect-ratio: 1582 / 994; overflow: hidden; margin-top: auto; }
.story__fig img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Wines (pinned 3D showcase) ---------- */
.wines {
  position: relative;
  color: var(--cream);
  --wine-bg: #3a1824;
  --glass: #1a0d12;
  --glass-alpha: 1;
  --label: #efe4cf;
  --label-ink: #2b1a1f;
  --cap: #7c1f33;
  --liquid: #4a1322;
}
.wines .eyebrow { color: var(--gold-2); }
.wines .eyebrow--stone, .wines__counter, .wines__details dt { color: rgba(242,235,221,.72); }
.wines__stage { position: relative; }
.wines__bg { position: absolute; inset: 0; background: var(--wine-bg); }
.wines.is-jumping .wines__bg { transition: background-color .6s var(--ease-in-out); }
.wines__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(42% 52% at 50% 56%, rgba(255,255,255,.10), transparent 72%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.35));
  -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
}
.wines__frame {
  --wine-title-size: clamp(56px, 9.2vw, 260px);
  --wine-title-inset: clamp(0px, 5vw, 120px);
  --wine-index-width: calc(var(--wine-title-size) * .42);
  --wine-title-gap: clamp(104px, 9vw, 220px);
  --wine-name-left: calc(var(--wine-title-inset) + var(--wine-index-width));
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 30vw) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto auto;
  align-items: center;
  padding: calc(var(--nav-h) + 16px) var(--gutter) clamp(28px, 3vh, 56px);
  max-width: var(--container); margin: 0 auto; width: 100%;
}
.wines__head { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: baseline; gap: 24px; position: relative; z-index: 4; }
.wines__counter { font-family: var(--font-display); font-size: calc(var(--fs-label) * 1.3); letter-spacing: .2em; white-space: nowrap; }
/* Cormorant's old-style figures read «01» as «o1» */
.wines__counter, .wines__title .idx, .num, .stat__num { font-variant-numeric: lining-nums tabular-nums; } /* equal-width digits: 01 and 06 take the same room */
.wines__counter b { color: var(--cream); font-weight: 500; }
.wines__counter i { font-style: normal; }

.wines__title {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 20%;
  text-align: left; /* both words share the bottle's centred axis */
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--wine-title-size); line-height: .9; letter-spacing: -0.015em; text-transform: uppercase;
  color: rgba(242,235,221,.92);
  pointer-events: none; /* no z-index here: the name sits in front of the bottle, the style line behind it (see the lockup rules) */
  white-space: nowrap;
  transition: opacity .35s var(--ease-out);
}
.wines__title .idx { font-size: .28em; letter-spacing: .08em; vertical-align: .9em; margin-right: .3em; color: var(--gold-2); font-weight: 400; display: inline-block; }
.wines__title .name { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.wines__title .name > span { display: grid; grid-template-columns: minmax(0, 1fr) var(--wine-title-gap) minmax(0, 1fr); will-change: transform; }
/* A reserved centre column leaves the glass clear. The first word, style and
   tasting note retain their shared left anchor through every wine change. */
.wines__title .lockup { display: grid; grid-template-columns: minmax(0, 1fr) var(--wine-title-gap) minmax(0, 1fr); align-items: baseline; }
.wines__title .lockup .row { display: contents; }
.wines__title .idx { grid-column: 1; grid-row: 1; position: absolute; left: calc(var(--wine-name-left) - var(--wine-index-width)); top: .7em; bottom: auto; z-index: 3; margin-right: 0; }
.wines__title .name { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 3; width: 100%; }
.wines__title .name__word:first-child { grid-column: 1; justify-self: end; }
.wines__title .name__word:last-child { grid-column: 3; justify-self: start; }
.wines__title .style-line { grid-column: 1; grid-row: 2; justify-self: start; margin-left: var(--wine-name-left); position: relative; z-index: 1; transition: opacity .35s var(--ease-out); }
.style-line {
  display: block;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: .32em; line-height: 1; letter-spacing: .015em; text-transform: none;
  color: var(--gold-2);
  margin-top: .06em; padding-left: .06em;
}
.style-line .dot { color: rgba(227,198,134,.55); padding: 0 .28em; font-style: normal; }
.wines .style-line__extra { display: block; margin-top: .24em; }
.wines__cardname { display: none; }

.wines__bottle {
  grid-column: 2; grid-row: 2; align-self: center; justify-self: center;
  position: relative; z-index: 2;
  height: min(74svh, calc(100svh - var(--nav-h) - clamp(150px, 16vh, 260px)));
  aspect-ratio: 1 / 2.6;
  transition: opacity .35s var(--ease-out);
}
/* The still is rendered with the same camera as the 3D bottle, so the handover does not jump */
.wines__still { position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; translate: -50% 0; transition: opacity .8s var(--ease-out); }
.wines__gl { position: absolute; top: 0; bottom: 0; left: 50%; width: 200%; translate: -50% 0; pointer-events: none; }
.wines__gl canvas { width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1s var(--ease-out); }
.wines.is-3d .wines__gl canvas { opacity: 1; }
.wines.is-3d .wines__still { opacity: 0 !important; visibility: hidden; transition: opacity .8s var(--ease-out), visibility 0s linear .8s; }

/* A hard fling through the pinned wines: the bottle and text step aside instead of strobing */
.wines.is-flying :is(.wines__bottle, .wines__title, .wines__panel.is-active) { opacity: 0 !important; }

.wines__panel {
  grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 30vw) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: end;
  z-index: 3;
  /* stops above the wine buttons and the "where to buy" line */
  position: absolute; inset: 0 0 clamp(120px, 17vh, 280px) 0; padding: inherit; padding-top: 0; padding-bottom: 0;
  pointer-events: none;
}
.wines__panel > * { pointer-events: auto; }
.wines__media { display: none; }
.wines__notes { grid-column: 1; align-self: end; padding-bottom: 4vh; max-width: 30ch; }
@media (min-width: 901px) {
  /* The panel adds a second gutter; compensate so notes share the name's column. */
  html.js .wines:not(.wines--stacked) .wines__notes {
    margin-left: calc(var(--wine-name-left) - var(--gutter));
    width: var(--wine-brand-width, 30ch);
    max-width: none;
  }
}
.wines__notes p { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(22px, 2.1vw, 56px); line-height: 1.25; color: var(--cream); }
.wines__details { grid-column: 3; align-self: end; padding-bottom: 4vh; max-width: 34ch; justify-self: end; font-size: clamp(15px, .45vw + 9px, 24px); }
.wines__details h3 { font-family: var(--font-text); font-weight: 500; font-size: 1em; letter-spacing: .02em; color: var(--cream); margin-bottom: .7em; }
.wines__details h3 a { border-bottom: 1px solid rgba(201,164,92,.45); transition: color .4s var(--ease-out), border-color .4s var(--ease-out); } /* the wine's own page */
.wines__details h3 a:hover { color: var(--gold-2); border-color: var(--gold-2); }
.wines__details p { color: var(--cream-2); font-size: 1em; }
.wines__details p + p { margin-top: .8em; }
.wines__details dl { display: grid; grid-template-columns: auto 1fr; gap: .45em 1.4em; margin-top: 1.3em; font-size: calc(var(--fs-label) * 1.08); letter-spacing: .14em; text-transform: uppercase; }
.wines__details dd { margin: 0; color: var(--cream); }

html.js .wines:not(.wines--stacked) .wines__panel { opacity: 0; visibility: hidden; }
html.js .wines:not(.wines--stacked) .wines__panel.is-active { visibility: visible; }

.wines__nav {
  grid-column: 1 / -1; grid-row: 3;
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
  position: relative; z-index: 4;
}
.wines__nav button {
  min-height: 44px; padding: .9em 1.6em; border-radius: 999px;
  border: 1px solid rgba(242,235,221,.22);
  font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--cream-2);
  transition: background .5s, color .5s, border-color .5s;
  white-space: nowrap;
}
.wines__nav button[aria-current="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.wines__nav button:hover { border-color: var(--cream); }
.wines__where { grid-column: 1 / -1; grid-row: 4; text-align: center; margin-top: 14px; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: rgba(242,235,221,.6); position: relative; z-index: 4; }

/* Stacked wines: phones, reduced motion, no JS, or a CDN script failed.
   One card per wine in its own colour: bottle, name, notes, details. */
:is(.wines--stacked, html:not(.js) .wines) .wines__bg { display: none; }
:is(.wines--stacked, html:not(.js) .wines) .wines__stage { background: var(--ink); }
:is(.wines--stacked, html:not(.js) .wines) .wines__frame { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-top: var(--section-y); padding-bottom: 0; }
:is(.wines--stacked, html:not(.js) .wines) .wines__frame > * { min-width: 0; }
:is(.wines--stacked, html:not(.js) .wines) .wines__head { order: 0; margin-bottom: 22px; }
:is(.wines--stacked, html:not(.js) .wines) .wines__counter,
:is(.wines--stacked, html:not(.js) .wines) .wines__title,
:is(.wines--stacked, html:not(.js) .wines) .wines__bottle { display: none; }
/* the wine buttons ride along at the top while the cards scroll, and follow the card in view */
:is(.wines--stacked, html:not(.js) .wines) .wines__nav {
  order: 1; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  position: sticky; top: 0; z-index: 5;
  margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter);
  background: rgba(14,13,11,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  -webkit-overflow-scrolling: touch;
}
:is(.wines--stacked, html:not(.js) .wines) .wines__nav::-webkit-scrollbar { display: none; }
:is(.wines--stacked, html:not(.js) .wines) .wines__nav button { flex: none; }
:is(.wines--stacked, html:not(.js) .wines) .wines__panel {
  order: 2;
  position: relative; inset: auto; opacity: 1; visibility: visible; pointer-events: auto;
  display: grid; grid-template-columns: 1fr; grid-template-areas: "media" "name" "notes" "details";
  align-items: start; gap: 0;
  margin-inline: calc(-1 * var(--gutter));
  padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(44px, 8vw, 88px);
  /* each card eases into the next card's colour across its foot (--c-next from main.js) */
  --card: var(--c, var(--wine-bg));
  --card-prev: var(--card);
  --card-next: var(--c-next, var(--card));
  --card-bleed: clamp(96px, 16vh, 200px);
  background:
    radial-gradient(70% 46% at 50% 26%, rgba(255,255,255,.09), transparent 70%),
    var(--card);
  scroll-margin-top: 64px;
}
@supports (color: color-mix(in srgb, red, blue)) {
  :is(.wines--stacked, html:not(.js) .wines) .wines__panel {
    background:
      radial-gradient(70% 46% at 50% 26%, rgba(255,255,255,.09), transparent 70%),
      linear-gradient(to bottom,
        var(--card-prev) 0%,
        color-mix(in srgb, var(--card) 5%, var(--card-prev)) 15%,
        color-mix(in srgb, var(--card) 18%, var(--card-prev)) 30%,
        color-mix(in srgb, var(--card) 50%, var(--card-prev)) 50%,
        color-mix(in srgb, var(--card) 82%, var(--card-prev)) 70%,
        color-mix(in srgb, var(--card) 95%, var(--card-prev)) 85%,
        var(--card) 100%) 0 0 / 100% var(--card-bleed) no-repeat,
      linear-gradient(to bottom,
        var(--card) 0%,
        color-mix(in srgb, var(--card-next) 5%, var(--card)) 15%,
        color-mix(in srgb, var(--card-next) 18%, var(--card)) 30%,
        color-mix(in srgb, var(--card-next) 50%, var(--card)) 50%,
        color-mix(in srgb, var(--card-next) 82%, var(--card)) 70%,
        color-mix(in srgb, var(--card-next) 95%, var(--card)) 85%,
        var(--card-next) 100%) 0 100% / 100% var(--card-bleed) no-repeat,
      var(--card);
  }
}
/* first card: rises out of the ink under the button row, with room for the bottle to clear the fade */
:is(.wines--stacked, html:not(.js) .wines) .wines__bottle + .wines__panel {
  --card-prev: var(--ink);
  padding-top: calc(clamp(28px, 6vw, 72px) + var(--card-bleed) * .6);
}
/* last card: settles into ink above the «where to try» line */
:is(.wines--stacked, html:not(.js) .wines) .wines__panel:has(+ .wines__nav) {
  --card-next: var(--ink);
  padding-bottom: calc(clamp(44px, 8vw, 88px) + 6vh);
}
:is(.wines--stacked, html:not(.js) .wines) .wines__panel::before {
  content: attr(data-name);
  grid-area: name;
  display: block; margin: 8px 0 16px;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(40px, 11vw, 96px); line-height: .95; letter-spacing: -0.01em; color: rgba(242,235,221,.94);
}
/* the cards carry a real name block with the style line, so the pseudo-element name steps aside */
:is(.wines--stacked, html:not(.js) .wines) .wines__panel::before { content: none; }
:is(.wines--stacked, html:not(.js) .wines) .wines__cardname {
  display: flex; flex-direction: column; align-items: flex-start;
  grid-area: name; margin: 8px 0 16px;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(40px, 11vw, 96px); line-height: .95; letter-spacing: -0.01em; color: rgba(242,235,221,.94);
}
:is(.wines--stacked, html:not(.js) .wines) .wines__cardname .style-line { font-weight: 400; font-size: .48em; margin-top: .16em; padding-left: .04em; }
:is(.wines--stacked, html:not(.js) .wines) .wines__media {
  grid-area: media;
  display: flex; align-items: center; justify-content: center;
  height: clamp(300px, 92vw, 520px);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.wines__media img, .wines__media svg { height: 100%; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; flex: none; }
.wines__media img { opacity: 0; transition: opacity .9s var(--ease-out); }
.wines__media img.is-ready { opacity: 1; }
.wines__media svg { height: 92%; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
:is(.wines--stacked, html:not(.js) .wines) .wines__notes { grid-area: notes; margin-bottom: 22px; padding-bottom: 0; max-width: 34ch; }
:is(.wines--stacked, html:not(.js) .wines) .wines__notes p { font-size: clamp(20px, 5.4vw, 34px); }
:is(.wines--stacked, html:not(.js) .wines) .wines__details { grid-area: details; padding-bottom: 0; max-width: 46ch; justify-self: start; }
:is(.wines--stacked, html:not(.js) .wines) .wines__details dl { grid-template-columns: auto 1fr; }
:is(.wines--stacked, html:not(.js) .wines) .wines__where { order: 3; text-align: left; margin: 0; padding: 28px 0 var(--section-y); }

/* Wider stacked layout (tablets, reduced-motion desktops): bottle beside the text */
@media (min-width: 700px) {
  :is(.wines--stacked, html:not(.js) .wines) .wines__panel {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    grid-template-areas: "media name" "media notes" "media details";
    column-gap: clamp(24px, 4vw, 96px);
    align-content: center;
  }
  :is(.wines--stacked, html:not(.js) .wines) .wines__cardname { align-self: end; }
  :is(.wines--stacked, html:not(.js) .wines) .wines__media { height: clamp(380px, 46vw, 760px); margin: 0; }
}

/* ---------- Terroir ---------- */
.terroir { background: var(--ink); isolation: isolate; }
.terroir .eyebrow { color: var(--gold-2); } /* the lighter gold reads on the wine tail */
/* the last wine colour flows out of the stage and decays into ink over half a screen; it sits behind every line of copy */
.terroir::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: -1; pointer-events: none;
  height: var(--bleed-long);
  background: var(--last-wine-bg, #6b3540);
  -webkit-mask-image: var(--fade-down); mask-image: var(--fade-down);
}
html:not(.js) .terroir::before { display: none; }
.wines--stacked + .terroir::before { display: none; }
.terroir__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 160px); align-items: center; position: relative; }
.terroir__copy { display: flex; flex-direction: column; gap: clamp(22px, 1.8vw, 40px); padding-right: clamp(0px, 4vw, 100px); }
.terroir__copy .pill { align-self: flex-start; }
.terroir__text .copy + .copy { margin-top: 1em; }
.terroir__title { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: clamp(40px, 3.5vw, 96px); line-height: .96; letter-spacing: -0.01em; }
.terroir__title em { text-transform: none; font-style: italic; font-weight: 400; }
.terroir__fig { aspect-ratio: 4 / 5; overflow: hidden; }
.terroir__fig img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.terroir__fig figcaption { position: absolute; left: 20px; bottom: 18px; right: 20px; z-index: 1; font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: rgba(242,235,221,.8); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 160px); border-top: 1px solid rgba(242,235,221,.12); border-bottom: 1px solid rgba(242,235,221,.12); }
.stat { padding: clamp(24px, 2.2vw, 56px) 24px clamp(24px, 2.2vw, 56px) 0; border-right: 1px solid rgba(242,235,221,.08); }
.stat + .stat { padding-left: clamp(16px, 1.6vw, 40px); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 5vw, 130px); line-height: 1; color: var(--cream); }
.stat__num small { font-size: .42em; color: var(--gold); margin-left: 4px; }
.stat__label { margin-top: 10px; font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }

/* ---------- Winery ---------- */
.winery { background: var(--ink-2); isolation: isolate; }
/* the head is one grid: the eyebrow across the top, then the title and the copy starting on the same line */
.winery__head { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 0 clamp(32px, 6vw, 160px); align-items: start; margin-bottom: clamp(48px, 5vw, 110px); }
.winery__head > div:first-child { display: contents; }
.winery__head > div:first-child > .eyebrow { grid-column: 1 / -1; grid-row: 1; }
.winery__title { grid-column: 1; grid-row: 2; }
.winery__head > div:last-child { grid-column: 2; grid-row: 2; padding-top: .18em; }
.winery__title { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: clamp(40px, 3.5vw, 96px); line-height: .96; }
.winery__title em { text-transform: uppercase; font-style: normal; font-weight: 500; }
/* two lines, as written: a line of these titles never wraps on a desktop */
@media (min-width: 901px) { .terroir__title .line, .winery__title .line { white-space: nowrap; } }
.winery__head > div:first-child > .eyebrow { display: block; margin-bottom: clamp(22px, 1.8vw, 40px); }
.winery__spec { margin-top: 18px; text-transform: none; letter-spacing: .06em; font-size: calc(var(--fs-label) * 1.1); }
/* three photographs in one even row, same height, same crop */
.winery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); align-items: stretch; }
.winery__grid figure { overflow: hidden; aspect-ratio: 3 / 4; }
.winery__grid img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.winery__grid figcaption { position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 1; font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: rgba(242,235,221,.8); }

.quote {
  margin-top: clamp(56px, 7vw, 170px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 160px); align-items: center;
}
.quote blockquote p { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(26px, 3vw, 76px); line-height: 1.25; }
.quote cite { display: block; margin-top: 18px; font-style: normal; font-size: var(--fs-label); letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.quote figure { aspect-ratio: 5 / 4; overflow: hidden; }
.quote img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
/* what grows in Labra: an eyebrow, one short line, and the varieties as a ruled list */
.grows { display: flex; flex-direction: column; gap: clamp(18px, 1.4vw, 32px); align-self: center; }
.grows__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2vw, 40px); line-height: 1.05; color: var(--cream); }
.grows__lead { max-width: 44ch; color: var(--cream-2); }
.grows .copy + .copy { margin-top: .9em; }
.grows .copy { max-width: 44ch; }
.grows__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 2.4vw, 48px); border-top: 1px solid rgba(242,235,221,.12); }
.grows__list li { display: flex; flex-direction: column; gap: 6px; padding: clamp(14px, 1vw, 22px) 0; border-bottom: 1px solid rgba(242,235,221,.12); }
.grows__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 1.35vw, 32px); line-height: 1.1; color: var(--cream); }
.grows__note { color: var(--stone); font-size: var(--fs-small); line-height: 1.5; }

/* ---------- Visit ---------- */
/* the visit, like the manifesto: one centred block in the middle of the photograph */
.visit { position: relative; min-height: 92svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.visit__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink-2); }
.visit__media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.visit::before {
  content: ""; position: absolute; inset: -2px 0 0; z-index: -1;
  background:
    radial-gradient(ellipse 58% 62% at 50% 54%, rgba(14,13,11,.78) 0%, rgba(14,13,11,.5) 55%, rgba(14,13,11,0) 100%),
    linear-gradient(180deg, rgba(14,13,11,.4) 0%, rgba(14,13,11,.25) 30%, rgba(14,13,11,.5) 60%, rgba(14,13,11,.9) 100%);
}
.visit__content { display: grid; grid-template-columns: 1fr; justify-items: center; gap: clamp(28px, 2.6vw, 48px); padding-top: calc(var(--nav-h) + 8vh); padding-bottom: clamp(48px, 7vw, 160px); text-align: center; }
.visit__main { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 1.6vw, 40px); }
/* each paragraph is one full line on a desktop; phones wrap as usual */
.visit__text { width: 100%; margin: 0 auto; text-align: center; }
.visit__main .copy { max-width: none; color: var(--cream-2); text-align: center; white-space: nowrap; }
@media (max-width: 1100px) { .visit__main .copy { white-space: normal; text-wrap: pretty; } }
.visit__text .copy + .copy { margin-top: 1em; }
.visit__title { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: clamp(44px, 8vw, 220px); line-height: .9; letter-spacing: -0.01em; }
.visit__title em { text-transform: none; font-style: italic; font-weight: 400; }
.visit__welcome { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(18px, 1.6vw, 42px); color: var(--cream-2); }
.visit__welcome span:last-child { font-family: var(--font-text); font-style: normal; font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-left: 6px; }
.visit__aside { display: flex; flex-direction: column; gap: 22px; justify-self: center; align-items: center; }
@media (min-width: 601px) { .visit__aside .pill { white-space: nowrap; } }

/* ---------- Footer ---------- */
/* the photo above already ends in ink, so the footer has no top rule: it was the last hard line */
.footer { background: var(--ink); padding: clamp(48px, 5vw, 100px) 0 max(24px, env(safe-area-inset-bottom)); }
.footer__grid { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; align-items: start; gap: clamp(32px, 5vw, 100px); }
.footer__brand { min-width: 0; }
.footer__lockup { width: clamp(150px, 12vw, 230px); color: var(--cream); stroke-width: .583; }
.footer__lockup svg { display: block; width: 100%; height: auto; overflow: visible; }
.footer__tag { margin-top: 24px; color: var(--stone); max-width: 30ch; font-size: var(--fs-small); line-height: 1.8; }
.footer h3 { font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 500; }
.footer__links a { display: inline-flex; gap: 14px; align-items: baseline; padding-block: 7px; color: var(--cream-2); font-size: var(--fs-small); transition: color .4s; }
.footer__links a:hover { color: var(--gold-2); }
.footer address { color: var(--stone); font-size: var(--fs-small); line-height: 1.85; }
.footer address a { display: inline-block; color: var(--cream-2); padding-block: 6px; overflow-wrap: anywhere; }
.footer address a:hover { color: var(--gold-2); }
.footer address + address { margin-top: 20px; }
.footer__legal { margin-top: clamp(36px, 4vw, 72px); padding-top: 20px; border-top: 1px solid rgba(242,235,221,.1); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 32px; font-size: var(--fs-label); line-height: 1.6; color: var(--stone); }
.footer__lang { grid-column: 2; grid-row: 1; }
.footer__responsibility { grid-column: 1 / -1; grid-row: 2; }
.footer__legal > a { grid-column: 3; grid-row: 1; color: var(--cream-2); padding-block: 12px; }
.footer__legal > a:hover { color: var(--gold-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__list { display: none; }
  .nav__right .nav__lang { display: none; }
  .nav__burger { display: block; margin-right: -12px; }
  .mega { display: none; }
}

@media (max-width: 1100px) {
  .wines__frame { grid-template-columns: minmax(0,1fr) minmax(200px, 32vw) minmax(0,1fr); }
  .wines__panel { grid-template-columns: minmax(0,1fr) minmax(200px, 32vw) minmax(0,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 40px; }
  .footer__tag { margin-top: 0; }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; }

  .hero__mark { width: min(64vw, 65svh, 460px); }

  .story__grid { grid-template-columns: 1fr; }
  .story__card + .story__card { border-left: 0; border-top: 1px solid rgba(242,235,221,.1); }

  .wines .eyebrow--stone { display: none; }

  .terroir__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 24px 16px 24px 0; border-bottom: 1px solid rgba(242,235,221,.08); }
  .stat:nth-child(2n) { border-right: 0; padding-left: 16px; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }

  .winery__head { grid-template-columns: 1fr; }
  .winery__head > div:first-child > .eyebrow { grid-column: 1; }
  .winery__title { grid-row: 2; }
  .winery__head > div:last-child { grid-column: 1; grid-row: 3; padding-top: clamp(20px, 3vw, 32px); }
  .winery__grid { grid-template-columns: 1fr 1fr; }
  .winery__grid figure:nth-child(3) { display: none; }
  .quote { grid-template-columns: 1fr; }

  .visit__content { grid-template-columns: 1fr; }

}

/* Portrait tablets: display type a step up from the phone sizes */
@media (min-width: 601px) and (max-width: 900px) {
  .story__title { font-size: clamp(44px, 7vw, 64px); }
  .quote blockquote p { font-size: clamp(28px, 4.2vw, 40px); max-width: 24ch; }
  .grows__list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero__mark { width: 96vw; top: calc(var(--nav-h) + 7vh); }
  .hero__img { object-position: center 54%; } /* keep the mural centered in the portrait crop */
  .hero__line { bottom: max(24px, env(safe-area-inset-bottom)); }
  .hero__mark { width: clamp(230px, 64vw, 340px); top: 44%; }
  .copy, .wines__details p, .visit__main .copy { hyphens: auto; -webkit-hyphens: auto; }
  .story__title { font-size: clamp(28px, 8.4vw, 48px); } /* each forced line stays one line at 360–430px */
  .story__card { padding-left: 0; padding-right: 0; } /* the full container width, so three lines stay three */
  .terroir__title, .winery__title { font-size: clamp(30px, 7.8vw, 48px); }
  .manifesto__title { font-size: clamp(28px, 8.6vw, 44px); }
  .visit__title { font-size: clamp(40px, 12.5vw, 72px); }
  .winery__grid { grid-template-columns: 1fr; }
  .winery__grid figure:nth-child(2) { margin-top: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__brand { display: block; }
  .footer__tag { margin-top: 20px; }
  .footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .footer__legal { grid-template-columns: 1fr auto; gap: 12px 16px; }
  .footer__legal > span:first-child { grid-column: 1 / -1; }
  .footer__lang { grid-column: 1; grid-row: 2; justify-self: start; }
  .footer__legal > a { grid-column: 2; grid-row: 2; }
  .footer__responsibility { grid-row: 3; }
  .footer__legal .lang-switch { margin-left: -6px; }
}

/* Short landscape screens (laptops at 1280×720 and similar): keep the wine stage inside the viewport */
@media (min-width: 901px) and (max-height: 760px) {
  .wines__notes, .wines__details { padding-bottom: 2vh; }
  .wines__details dl { margin-top: .9em; }
  .wines__title { top: 18%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__explore-arrow { animation: none; }
  .hero__explore { transition: none; }
  .grain { animation: none; }
  html.js [data-reveal], html.js .hero [data-intro] { opacity: 1; transform: none; transition: none; }
  html.js .line__inner { transform: none; }
  .hero__img { transform: none; opacity: 1; }
  .pill, .pill svg { transition: none; }
}

/* Supplied Labra photography: preserve the building, toast and table in their crops. */
.hero__img { object-position: center 54%; }
.manifesto__media img { object-position: 54% 47%; }
@media (max-width: 900px) {
  .manifesto__media img { object-position: 52% 43%; }
}

/* Keep the archival portrait complete: no parallax crop of face or hands. */
.story__fig--heritage img { filter: none; }
.story__fig--heritage::after { display: none; }

/* ---------- Section seams: «tonal bleed». No section meets the next on a hard line; every seam is a long,
   eased change of tone (a third of a screen; half a screen where the wine colour hands over).
   One easing curve and two lengths, used at every seam. Chosen on 22 October 2026 from four options. ---------- */
:root {
  --bleed: clamp(200px, 32vh, 440px);        /* a standard seam */
  --bleed-long: clamp(280px, 50vh, 620px);   /* the wine colour leaving; ink to ink-2 */
  --bleed-story: clamp(160px, 24vh, 320px);  /* the wine colour arriving under the story cards */

  /* Eased alpha ramp (ease-in-out, sampled at 16 stops): a linear ramp shows a visible
     "start" and "end" line and reads as a smear; this one has no visible ends. */
  --fade-down: linear-gradient(to bottom,
    rgb(0 0 0) 0%, rgb(0 0 0 / .987) 8.1%, rgb(0 0 0 / .951) 15.5%, rgb(0 0 0 / .896) 22.5%,
    rgb(0 0 0 / .825) 29%, rgb(0 0 0 / .741) 35.3%, rgb(0 0 0 / .648) 41.2%, rgb(0 0 0 / .55) 47.1%,
    rgb(0 0 0 / .45) 52.9%, rgb(0 0 0 / .352) 58.8%, rgb(0 0 0 / .259) 64.7%, rgb(0 0 0 / .175) 71%,
    rgb(0 0 0 / .104) 77.5%, rgb(0 0 0 / .049) 84.5%, rgb(0 0 0 / .013) 91.9%, rgb(0 0 0 / 0) 100%);
  --fade-up: linear-gradient(to top,
    rgb(0 0 0) 0%, rgb(0 0 0 / .987) 8.1%, rgb(0 0 0 / .951) 15.5%, rgb(0 0 0 / .896) 22.5%,
    rgb(0 0 0 / .825) 29%, rgb(0 0 0 / .741) 35.3%, rgb(0 0 0 / .648) 41.2%, rgb(0 0 0 / .55) 47.1%,
    rgb(0 0 0 / .45) 52.9%, rgb(0 0 0 / .352) 58.8%, rgb(0 0 0 / .259) 64.7%, rgb(0 0 0 / .175) 71%,
    rgb(0 0 0 / .104) 77.5%, rgb(0 0 0 / .049) 84.5%, rgb(0 0 0 / .013) 91.9%, rgb(0 0 0 / 0) 100%);
}
@media (max-width: 900px) {
  :root { --bleed: clamp(140px, 24vh, 240px); }
}

/* ---------- Seam 1: hero → manifesto ---------- */
/* The hero's last third settles into ink (a layer above the photo and its overlay, below the line). */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: var(--bleed);
  background: var(--ink);
  -webkit-mask-image: var(--fade-up); mask-image: var(--fade-up);
  pointer-events: none;
}

/* ---------- Seams 1 and 2: the manifesto photograph rises out of ink and sinks back into it ---------- */
/* One layer over the photo and its overlay: ink, masked to an eased band at the top and at the bottom. */
.manifesto::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  -webkit-mask-image: var(--fade-down), var(--fade-up); mask-image: var(--fade-down), var(--fade-up);
  -webkit-mask-size: 100% var(--bleed); mask-size: 100% var(--bleed);
  -webkit-mask-position: 0 0, 0 100%; mask-position: 0 0, 0 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  pointer-events: none;
}
/* manifesto → story is now ink meeting ink; the story's own hairline opens the section. */

/* ---------- Seam 3: story → wines (desktop pinned stage) ---------- */
/* The first wine colour rises out of the story's foot, so the stage arrives on its own colour.
   The colour is set from the catalogue by main.js (--first-wine-bg); the fallback is wine 1. */
@media (min-width: 901px) {
  html.js:not(.reduced-motion) .story:has(+ .wines:not(.wines--stacked)) {
    padding-bottom: var(--bleed-story); /* a quarter screen: enough for the colour to rise, not a gap */
    isolation: isolate;
  }
  html.js:not(.reduced-motion) .story:has(+ .wines:not(.wines--stacked))::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
    height: var(--bleed-story);
    background: var(--first-wine-bg, #3a1824);
    -webkit-mask-image: var(--fade-up); mask-image: var(--fade-up);
    pointer-events: none;
  }
  /* The wine buttons and the «where to try» line get air below them; the colour then carries on
     into the terroir instead of stopping under the caption. */
  html.js:not(.reduced-motion) .wines:not(.wines--stacked) .wines__frame {
    padding-bottom: clamp(28px, 3.5vh, 64px); /* 3.5vh keeps the pinned stage inside a 1440×900 or 1366×768 screen */
  }
}

/* ---------- Seam 5: terroir → winery ---------- */
/* Ink eases into ink-2 across the winery's top half screen, under the padding and the head. */
.winery::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  height: var(--bleed-long);
  background: var(--ink);
  -webkit-mask-image: var(--fade-down); mask-image: var(--fade-down);
  pointer-events: none;
}

/* ---------- Seams 6 and 7: winery → visit → footer ---------- */
/* Ink-2 (the winery's colour) at the top, ink (the footer's) at the bottom, each in an eased band. */
.visit::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(var(--ink-2), var(--ink-2)) 0 0 / 100% 50% no-repeat, var(--ink);
  -webkit-mask-image: var(--fade-down), var(--fade-up); mask-image: var(--fade-down), var(--fade-up);
  -webkit-mask-size: 100% var(--bleed); mask-size: 100% var(--bleed);
  -webkit-mask-position: 0 0, 0 100%; mask-position: 0 0, 0 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  pointer-events: none;
}

/* keyboard users jump past the navigation to the first section */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--cream); color: var(--ink); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; border-radius: 999px; }
.skip-link:focus { top: 16px; }

/* the footer's inactive language links read against ink (contrast 4.5:1 and above) */
.footer__legal .lang-switch :is(a, button) { opacity: 1; color: rgba(242,235,221,.72); }
.footer__legal .lang-switch [aria-current="page"] { color: var(--gold-2); }

/* ---------- Call card: on a computer a tel: link opens nothing, so the booking buttons show the number instead ---------- */
.call-card { position: fixed; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 120; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  width: min(92vw, 420px); padding: 26px 28px 24px; border-radius: 18px; background: rgba(14,13,11,.96); color: var(--cream);
  border: 1px solid rgba(227,198,134,.35); box-shadow: 0 30px 70px rgba(0,0,0,.55); text-align: center; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.call-card.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.call-card[hidden] { display: none; }
.call-card__status { font-size: var(--fs-small); color: var(--cream-2); }
.call-card__status:not(:empty) { margin-top: 16px; }
.call-card__title { font-size: var(--fs-label); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.call-card__number { display: block; margin: 10px 0 18px; font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 2.4vw, 44px); line-height: 1; color: var(--cream); text-decoration: none; letter-spacing: .02em; font-variant-numeric: lining-nums tabular-nums; }
.call-card__row { display: flex; gap: 12px; justify-content: center; }
.call-card__row button { font: inherit; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(227,198,134,.6); background: none; color: var(--gold-2); cursor: pointer; }
.call-card__row button:hover { background: rgba(227,198,134,.1); }
.call-card__row button.is-done { color: var(--cream); border-color: rgba(242,235,221,.4); }

/* ---------- «Найти рядом»: a compass that breathes at the bottom right and leads to the nearest Magnit ---------- */
.finder { position: fixed; right: clamp(16px, 2.2vw, 40px); bottom: clamp(16px, 2.2vw, 36px); z-index: 90; display: flex; align-items: center; flex-direction: row-reverse; gap: 0; color: var(--gold-2); text-decoration: none;
  opacity: 1; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
body.is-loading .finder, body.menu-open .finder { opacity: 0; pointer-events: none; transform: translateY(8px); }
.finder__disc { position: relative; z-index: 2; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(14,13,11,.72); border: 1px solid rgba(227,198,134,.6); box-shadow: 0 14px 34px rgba(0,0,0,.45), inset 0 0 0 1px rgba(14,13,11,.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .4s var(--ease-out), border-color .4s var(--ease-out), transform .5s var(--ease-out); }
.finder__disc svg { transition: transform 1.2s var(--ease-out); }
.finder:hover .finder__disc { background: rgba(58,24,36,.9); border-color: var(--gold-2); }
.finder:hover .finder__disc svg { transform: translateY(-2px); }
/* the pulse: two rings leaving the disc, one a beat after the other */
.finder__ring { position: absolute; right: 0; bottom: 0; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(227,198,134,.75); opacity: 0; pointer-events: none; animation: finder-pulse 3.6s cubic-bezier(.2,.6,.3,1) infinite; }
.finder__ring--late { animation-delay: 1.2s; }
@keyframes finder-pulse { 0% { transform: scale(1); opacity: .6; } 70% { transform: scale(2.1); opacity: 0; } 100% { transform: scale(2.1); opacity: 0; } }
/* the label slides out on hover (and stays on wide screens when the pointer is over it) */
.finder__label { position: relative; z-index: 1; max-width: 0; overflow: hidden; white-space: nowrap; padding: 0; margin-right: -29px; padding-right: 29px;
  height: 58px; display: inline-flex; align-items: center; border-radius: 999px 0 0 999px; background: rgba(14,13,11,.82); border: 1px solid rgba(227,198,134,.35); border-right: 0;
  font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); opacity: 0; transition: max-width .55s var(--ease-out), padding .55s var(--ease-out), opacity .4s var(--ease-out); }
.finder:hover .finder__label, .finder:focus-visible .finder__label { max-width: 220px; padding-left: 22px; padding-right: 36px; opacity: 1; }
@media (hover: none) { .finder__label { display: none; } }
@media (prefers-reduced-motion: reduce) { .finder__ring { animation: none; } }
/* the card the compass opens */
.finder-card { position: fixed; right: clamp(16px, 2.2vw, 40px); bottom: calc(clamp(16px, 2.2vw, 36px) + 76px); z-index: 91; width: min(92vw, 400px); padding: 24px 26px 22px; border-radius: 18px;
  background: rgba(14,13,11,.96); color: var(--cream); border: 1px solid rgba(227,198,134,.35); box-shadow: 0 30px 70px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.finder-card:not([hidden]) { display: block; }
.finder-card.is-on { opacity: 1; transform: none; pointer-events: auto; }
.finder-card__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 1.8vw, 32px); line-height: 1.1; color: var(--cream); }
.finder-card__text { margin: 0 0 18px; color: var(--stone); font-size: var(--fs-small); line-height: 1.55; }
.finder-card__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.finder-card__row .pill { font-size: var(--fs-label); padding: 12px 18px; }
.finder-card__close { margin-left: auto; font: inherit; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; background: none; border: 0; color: var(--stone); cursor: pointer; }
.finder-card__close:hover { color: var(--cream); }
@media (max-width: 600px) { .finder-card { right: 12px; left: 12px; width: auto; } }

/* ---------- Phone deck (GSAP, <=900px): one wine on stage. The pill row stays under the top edge; a swipe over
   the card or an arrow key turns to the next wine. Only the wine on stage is visible; the others wait in the same
   cell. Reduced motion and no-GSAP keep the stacked cards above. ---------- */
.wines--deck .wines__stage { background: var(--ink); overflow: clip; } /* clip, not hidden: hidden would make the stage a scroll container and the pill row would stick to it instead of the page */
@supports not (overflow: clip) {
  .wines--deck .wines__stage { overflow: visible; }
  .wines--deck .wines__panel { overflow: hidden; }
}
.wines--deck .wines__bg { display: block; }
.wines--deck .wines__bg::after {
  background:
    radial-gradient(64% 30% at 50% 30%, rgba(255,255,255,.11), transparent 72%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.32));
}
/* the story's ink settles into the first wine colour across the top of the stage */
.wines--deck .wines__stage::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: 1; pointer-events: none;
  height: var(--bleed); background: var(--ink);
  -webkit-mask-image: var(--fade-down); mask-image: var(--fade-down);
}
.wines--deck .wines__frame {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto;
  align-items: start; min-height: 100svh;
  padding: calc(var(--nav-h) + 8px) var(--gutter) 0;
}
.wines--deck .wines__frame > * { min-width: 0; }
.wines--deck .wines__head { grid-row: 1; grid-column: 1; margin-bottom: 6px; }
.wines--deck .wines__title, .wines--deck .wines__bottle { display: none; }
/* the pills: one row, scrolled sideways, frosted in the wine's own colour, the active one brought to the middle */
.wines--deck .wines__nav {
  grid-row: 2; grid-column: 1;
  justify-content: flex-start; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none;
  position: sticky; top: 0; z-index: 6;
  margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter) 12px;
  background: var(--wine-bg);
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 36px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 36px), transparent 100%);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and (color: color-mix(in srgb, red 50%, transparent)) {
  .wines--deck .wines__nav { background: color-mix(in srgb, var(--wine-bg) 76%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.wines--deck .wines__nav::-webkit-scrollbar { display: none; }
.wines--deck .wines__nav button { flex: none; }
/* the cards share one cell; the one on stage is visible, the one leaving stays until its slide is over */
.wines--deck .wines__panel {
  grid-row: 3; grid-column: 1;
  position: relative; inset: auto; padding: 0; z-index: 1;
  display: grid; grid-template-columns: 1fr; grid-template-areas: "media" "name" "notes" "details";
  gap: 0; align-items: start; align-content: start;
  opacity: 0; visibility: hidden; pointer-events: none;
  touch-action: pan-y pinch-zoom;
}
html.js .wines--deck .wines__panel.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; } /* outranks the desktop rule that hides the panels (html.js .wines:not(.wines--stacked) .wines__panel) */
.wines--deck .wines__media {
  grid-area: media;
  display: flex; align-items: flex-end; justify-content: center;
  position: relative; height: min(46svh, 440px); margin: 6px 0 20px;
  overflow: visible;
}
.wines--deck .wines__media::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 42%; height: 18px; translate: -50% 0;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent); pointer-events: none;
}
.wines--deck .wines__media img {
  height: 100%; width: auto; max-width: none; opacity: 1; transition: none;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.4));
  transform-origin: 50% 86%; will-change: transform, opacity;
  position: relative; z-index: 1;
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.wines--deck .wines__cardname {
  grid-area: name;
  display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(36px, 10.5vw, 60px); line-height: .95; letter-spacing: -0.01em; color: rgba(242,235,221,.94);
}
.wines--deck .wines__cardname .style-line { font-weight: 400; font-size: .46em; margin-top: .22em; padding-left: 0; }
.wines--deck .wines__notes { grid-area: notes; align-self: start; justify-self: stretch; padding: 0; margin: 16px 0 0; max-width: none; text-align: center; }
.wines--deck .wines__notes p { font-size: clamp(18px, 4.9vw, 28px); text-wrap: balance; }
.wines--deck .wines__details {
  grid-area: details;
  display: flex; flex-direction: column; align-self: start; justify-self: stretch;
  padding: 0; margin-top: 24px; max-width: none; font-size: 15px;
}
/* on phones the wine's own page is reached from a pill after the facts (the heading is the link) */
.wines--deck .wines__details h3 { display: block; order: 2; margin: 22px 0 0; text-align: center; font-size: 1em; }
.wines--deck .wines__details h3 a { display: inline-flex; align-items: center; min-height: 44px; padding: .9em 1.6em; border: 1px solid rgba(201,164,92,.7); border-radius: 999px;
  font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); text-decoration: none; border-bottom: 1px solid rgba(201,164,92,.7); }
.wines--deck .wines__details dl {
  order: -1; margin: 0 0 22px; padding: 18px 0;
  border-top: 1px solid rgba(242,235,221,.14); border-bottom: 1px solid rgba(242,235,221,.14);
  grid-template-columns: auto 1fr; gap: .6em 1.4em; font-size: calc(var(--fs-label) * 1.02);
}
.wines--deck .wines__details p { color: var(--cream-2); text-wrap: pretty; }
.wines--deck .wines__where { grid-row: 4; grid-column: 1; text-align: center; margin: 0; padding: 30px 0 var(--section-y); letter-spacing: .12em; text-wrap: balance; }

/* ---------- Phones: the finder badge, the stats row, the winery photographs ---------- */
/* the badge steps aside over the footer's last row so «Наверх» and the legal line stay clear */
body.at-foot .finder { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility 0s linear .5s; }
@media (max-width: 600px) {
  .finder { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .finder__disc, .finder__ring { width: 50px; height: 50px; }
  .finder__disc svg { width: 20px; height: 20px; }
  .finder-card { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 66px); }

  /* three figures in one row instead of two and a stray */
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat__label { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
  .stat, .stat + .stat { padding: 22px 10px 22px 0; border-bottom: 0; border-right: 1px solid rgba(242,235,221,.08); }
  .stat + .stat, .stat:nth-child(2n) { padding-left: 14px; border-right: 1px solid rgba(242,235,221,.08); }
  .stat:last-child { border-right: 0; }
  .stat__num { font-size: clamp(30px, 9.6vw, 44px); }
  .stat__num small { font-size: .5em; margin-left: 2px; }
  .stat__label { font-size: calc(var(--fs-label) * .9); letter-spacing: .14em; }

  /* the three photographs swipe sideways, the next one peeking in */
  .winery__grid {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
  }
  .winery__grid::-webkit-scrollbar { display: none; }
  .winery__grid figure, .winery__grid figure:nth-child(3) { display: block; flex: 0 0 min(78vw, 360px); scroll-snap-align: start; margin: 0; }
}

/* ---------- «18+»: the age mark in the footer legal row ---------- */
.age-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 14px; vertical-align: middle;
  border: 1px solid rgba(242,235,221,.45); border-radius: 50%; font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--cream-2); font-variant-numeric: lining-nums; }

/* the word «Магнит» in the wines line opens the finder card */
.wines__where a { color: var(--cream); border-bottom: 1px solid rgba(242,235,221,.4); text-decoration: none; }
.wines__where a:hover { color: var(--gold-2); border-color: var(--gold-2); }

/* ---------- Phones: winery → visit. The grapes photograph runs edge to edge and dissolves straight into the
   restaurant; the long ink band and the section padding left a black void between the two photographs. ---------- */
@media (max-width: 900px) {
  .winery { padding-bottom: 0; }
  .quote figure { margin: clamp(28px, 6vw, 48px) calc(-1 * var(--gutter)) 0; aspect-ratio: 4 / 5;
    -webkit-mask-image: linear-gradient(#000 58%, transparent 100%); mask-image: linear-gradient(#000 58%, transparent 100%); }
  .visit::after { -webkit-mask-size: 100% 72px, 100% var(--bleed); mask-size: 100% 72px, 100% var(--bleed); }
  .visit__content { padding-top: calc(var(--nav-h) + 3vh); }
}

/* ---------- Phones: no short line takes three rows (measured 23 October at 360/375/390) ---------- */
@media (max-width: 600px) {
  .wines__where { letter-spacing: .1em; }
  .grows__list { grid-template-columns: 1fr; }
  .stat__label { letter-spacing: .08em; font-size: calc(var(--fs-label) * .88); }
}

/* Full-viewport Labra opening. Each crop keeps the range in the photographic frame. */
.hero--labra {
  min-height: 0; height: 100svh; height: 100dvh; background: #161713;
}
.hero--labra .hero__img { object-position: center 50%; filter: none; }
.hero--labra .hero__media { background-position: center; }
.hero--labra .hero__overlay {
  background: linear-gradient(180deg, rgb(9 9 8 / .38), transparent 24%, transparent 80%, rgb(9 9 8 / .22));
}
.hero--labra::after { height: 9%; }
.hero--labra .hero__mark {
  top: 46%; width: 29vw; color: var(--cream); text-align: center;
}
.hero--labra .hero__tamga {
  display: block; width: min(10vw, 18vh); height: auto; margin: 0 auto min(2.1vw, 4vh);
  color: inherit; fill: currentColor; stroke-width: .583; overflow: visible;
}
.hero--labra .hero__name {
  margin: 0; font-family: var(--font-display); font-size: min(7.6vw, 13.5vh);
  font-weight: 400; line-height: .88; letter-spacing: .025em;
}
.hero--labra .hero__line { bottom: max(22px, 3.8vh); }
.preloader--labra .preloader__logo { color: var(--cream); }
@media (max-aspect-ratio: 1/1) {
  .hero--labra .hero__mark { top: 22%; width: 84vw; }
  .hero--labra .hero__tamga { width: min(19vw, 12vh); margin-bottom: 2.5vh; }
  .hero--labra .hero__name { font-size: min(18vw, 10.5vh); }
}
@media (max-aspect-ratio: 3/5) {
  .hero--labra .hero__img { object-position: center 75%; }
  .hero--labra .hero__mark { top: 28%; width: 86vw; }
  .hero--labra .hero__tamga { width: min(26vw, 12.5vh); margin-bottom: 3vh; }
  .hero--labra .hero__name { font-size: min(23vw, 11.5vh); }
}
@media (max-height: 600px) {
  .hero--labra .hero__explore { font-size: 10px; gap: 6px; padding-block: 4px; }
  .hero--labra .hero__explore-arrow { height: 27px; }
  .hero--labra .hero__line { bottom: max(14px, env(safe-area-inset-bottom)); }
}

