/* ==========================================================================
   Vintner — components
   Navbar · menu · footer · buttons · forms · tags · bottle · cards · figure
   accordion · tabs · specs · vintages · map · stats · toast · modal · cart
   cursor · page curtain · loader
   ========================================================================== */

/* ---------- Navbar --------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--gutter);
  transition: background 0.5s var(--ease-out), transform 0.6s var(--ease-out), backdrop-filter 0.5s;
}
.nav.is-solid { background: color-mix(in srgb, var(--c-lees) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__side { display: flex; align-items: center; gap: var(--s-6); }
.nav__side--end { justify-content: flex-end; }
.nav__links { display: none; gap: var(--s-6); }
.nav__link { position: relative; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding-block: 0.4rem; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--accent-text); }
.nav__cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: border-color 0.3s, background 0.3s; }
.nav__cart:hover { border-color: var(--line-strong); }
.nav__cart svg { width: 20px; height: 20px; }
.nav__count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 0.68rem; font-weight: 700; display: grid; place-items: center; }
.nav__burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.nav__burger span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform 0.5s var(--ease-out), opacity 0.3s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav .nav__cta { display: none; }
@media (min-width: 1000px) { .nav__links { display: flex; } .nav__burger { display: none; } .nav .nav__cta { display: inline-flex; } }

.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; gap: 0.35rem; }
.logo__name { font-family: var(--font-display); font-style: italic; font-size: 1.85rem; letter-spacing: -0.02em; font-weight: 380; }
.logo__sub { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; color: var(--fg-muted); padding-left: 0.42em; }

/* ---------- Full-screen menu ----------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--c-lees-deep);
  display: grid; grid-template-rows: 1fr auto; padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.9s var(--ease-pour), visibility 0s 0.9s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.9s var(--ease-pour); }
.menu__list { display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; }
.menu__link { display: flex; align-items: baseline; gap: 1.25rem; font-family: var(--font-display); font-size: clamp(2.6rem, 9vw, 6.5rem); line-height: 1.02; letter-spacing: -0.03em; padding-block: 0.1em; opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.8s var(--ease-out), color 0.3s; }
.menu.is-open .menu__link { opacity: 1; transform: none; transition-delay: calc(0.25s + var(--i, 0) * 0.06s); }
.menu__link small { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--fg-muted); font-weight: 600; }
.menu__link:hover { color: var(--accent-text); font-style: italic; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--fg-muted); font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }

/* ---------- Footer ----------------------------------------------------------- */
.footer { background: var(--c-lees-deep); border-top: 1px solid var(--line); padding-top: var(--s-9); overflow: hidden; }
.footer__grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; padding-bottom: var(--s-8); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.05; max-width: 14ch; }
.footer__col h4 { font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--s-4); font-weight: 600; }
.footer__col li + li { margin-top: 0.6rem; }
.footer__col a { color: var(--fg); transition: color 0.3s; }
.footer__col a:hover { color: var(--accent-text); }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: var(--s-5); border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--fg-muted); }
.footer__legal { max-width: 70ch; font-size: 0.78rem; }

/* ---------- Buttons ----------------------------------------------------------------------- */
/* Sober: a flat burgundy rectangle with a small arrow. On hover the fill turns cream and the arrow moves on. */
.btn {
  --accent: var(--w-red); --on-accent: var(--w-red-on); --accent-text: var(--w-red-text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  height: 3.2rem; padding: 0 1.6rem; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s;
}
.btn:hover, .btn:focus-visible { background: var(--fg); border-color: var(--fg); color: var(--c-lees); }
.btn:active { transform: translateY(1px); }
.btn__label { position: relative; }
.btn__icon { flex: none; width: 1rem; height: 1rem; padding: 0; background: none; color: inherit; transition: transform 0.5s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--fg); border-color: var(--fg); color: var(--c-lees); }
.btn--paper { background: var(--c-paper); border-color: var(--c-paper); color: var(--c-paper-ink); }
.btn--paper:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* Line button: no box, a rule underneath and a thin arrow */
.btn--line { background: transparent; border: 0; border-radius: 0; border-bottom: 1px solid var(--line-strong); color: var(--fg); padding: 0 0 0.55rem; height: auto; gap: 0.8rem; }
.btn--line:hover, .btn--line:focus-visible { background: transparent; border-color: var(--fg); color: var(--fg); }
.btn--line .btn__arrow { width: 1rem; height: 1rem; transition: transform 0.5s var(--ease-out); }
.btn--line:hover .btn__arrow { transform: translateX(6px); }
.btn--sm { height: 2.6rem; padding: 0 1.2rem; font-size: 0.68rem; gap: 0.8rem; }
.btn--lg { height: 3.7rem; padding: 0 2.1rem; font-size: 0.78rem; }
.btn--block { width: 100%; justify-content: space-between; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { color: transparent; }
.btn.is-loading .btn__label::after { content: ""; position: absolute; left: calc(50% - 0.55rem); top: calc(50% - 0.55rem); width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--on-accent); border-top-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-circle { position: relative; display: inline-grid; place-items: center; width: 7rem; height: 7rem; border-radius: 50%; border: 1px solid var(--line-strong); text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; overflow: hidden; isolation: isolate; transition: color 0.4s, border-color 0.4s; }
.btn-circle::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); border-radius: 50% 50% 0 0 / 30% 30% 0 0; transition: transform 0.7s var(--ease-pour), border-radius 0.7s; }
.btn-circle:hover { color: var(--on-accent); border-color: var(--accent); }
.btn-circle:hover::before { transform: none; border-radius: 0; }

.link { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; padding-block: 0.3rem; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform 0.6s var(--ease-out); }
.link:hover::after { animation: link-draw 0.8s var(--ease-out); }
@keyframes link-draw { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }
.link--inline { font-size: inherit; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--accent-text); }

/* ---------- Tags & badges ------------------------------------------------------ */
.tag { display: inline-flex; align-items: center; gap: 0.45rem; height: 1.85rem; padding-inline: 0.85rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.tag--solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tag--soft { border-color: var(--line); color: var(--fg-muted); }
.dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 12px var(--accent); }
.dot--red { --accent: var(--w-red); } .dot--rose { --accent: var(--w-rose); } .dot--amber { --accent: var(--w-amber); } .dot--verjus { --accent: var(--w-verjus); }

/* ---------- Forms ---------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field__label { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-muted); }
.field__hint { font-size: 0.82rem; color: var(--fg-muted); }
.field__error { display: none; font-size: 0.82rem; color: var(--c-danger); }
.field.is-invalid .field__error { display: block; }
.input, .select, .textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0; padding: 0.85rem 0; font-size: 1.1rem;
  transition: border-color 0.3s, box-shadow 0.3s; appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--fg-muted); opacity: 0.7; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 1px 0 0 var(--accent-text); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--c-danger); }
.textarea { min-height: 7.5rem; resize: vertical; }
.select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23efe4d2' stroke-width='1.4'><path d='M1 1l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 1.75rem; }
.select option { background: var(--c-cask); color: var(--c-bone); }
.input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.9) sepia(0.3); cursor: pointer; }

.choice { --accent: var(--w-red); --on-accent: var(--w-red-on); position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 0.6rem; height: 2.75rem; padding-inline: 1.2rem; border: 1px solid var(--field-line); border-radius: var(--r-pill); font-size: 0.9rem; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.choice:hover span { border-color: var(--line-strong); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.check { display: flex; align-items: flex-start; gap: 0.85rem; cursor: pointer; font-size: 0.95rem; }
.check input { position: absolute; opacity: 0; }
.check__box { flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; border: 1px solid var(--field-line); display: grid; place-items: center; transition: background 0.3s, border-color 0.3s; }
.check__box svg { width: 0.8rem; height: 0.8rem; stroke: var(--on-accent); stroke-width: 2.4; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.4s var(--ease-out); }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.qty { display: inline-flex; align-items: center; height: 3rem; border: 1px solid var(--field-line); border-radius: var(--r-pill); }
.qty button { width: 3rem; height: 100%; font-size: 1.2rem; border-radius: var(--r-pill); transition: background 0.3s; }
.qty button:hover { background: var(--bg-lift); }
.qty output { min-width: 2rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Wine card ---------------------------------------------------------------- */
.wine-card { position: relative; display: flex; flex-direction: column; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.5s, transform 0.6s var(--ease-out); }
.wine-card:hover { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.wine-card__stage { position: relative; display: grid; place-items: end center; aspect-ratio: 4 / 4.6; overflow: hidden; overflow: hidden; background: radial-gradient(70% 55% at 50% 62%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 72%); transition: background 0.6s; }
.wine-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.wine-card:hover .wine-card__img { transform: scale(1.06); }
.wine-card__vintage { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.wine-card__badge { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.wine-card__body { padding: 1.25rem 1.4rem 1.5rem; display: grid; gap: 0.35rem; border-top: 1px solid var(--line); }
.wine-card__meta { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-muted); font-weight: 600; }
.wine-card__name { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.05; letter-spacing: -0.02em; }
.wine-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.8rem; }
.wine-card__price { font-variant-numeric: lining-nums tabular-nums; font-weight: 600; }
.wine-card__add { --accent: var(--w-red); --on-accent: var(--w-red-on); width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background 0.4s, color 0.4s, transform 0.5s var(--ease-out), border-color 0.4s; }
.wine-card__add:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(90deg); }
.wine-card__add svg { width: 1rem; height: 1rem; }
.wine-card.is-soldout .wine-card__img { opacity: 0.45; filter: grayscale(0.9); }

/* ---------- Figure + "pour" image reveal ---------------------------------------------- */
.figure { position: relative; overflow: hidden; background: var(--bg-raised); border-radius: var(--r-sm); }
.figure img, .figure video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.figure__ph { z-index: 0; }
.figure--vault { border-radius: var(--r-vault); }
.figure--tall { aspect-ratio: 3 / 4; } .figure--wide { aspect-ratio: 16 / 10; } .figure--square { aspect-ratio: 1; }
.figure__cap { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; }
.figure__grade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7)), linear-gradient(0deg, transparent, transparent); pointer-events: none; }
.figure__ph { position: absolute; inset: 0; background: var(--ph, linear-gradient(160deg, #3a2a1c, #14090b)); } /* shown until the photo exists */
/* the liquid level: --lvl (px) and --wx (px) are driven by motion.js; --h is the element height */
.js [data-pour]:not(.is-poured) {
  -webkit-mask-image: var(--wave), linear-gradient(#000, #000); mask-image: var(--wave), linear-gradient(#000, #000);
  -webkit-mask-repeat: repeat-x, no-repeat; mask-repeat: repeat-x, no-repeat;
  -webkit-mask-size: 560px 26px, 100% var(--lvl, 0px); mask-size: 560px 26px, 100% var(--lvl, 0px);
  -webkit-mask-position: var(--wx, 0px) calc(var(--h, 600px) - var(--lvl, 0px) - 25px), 0 100%;
  mask-position: var(--wx, 0px) calc(var(--h, 600px) - var(--lvl, 0px) - 25px), 0 100%;
  --wave: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='560' height='26' viewBox='0 0 560 26'><path d='M0 13 C70 0 210 0 280 13 S490 26 560 13 V26 H0Z' fill='black'/></svg>");
}

/* ---------- Experience / event cards ------------------------------------------------------ */
.xp-card { position: relative; display: grid; gap: 1.25rem; }
.xp-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-sm); }
.xp-card__media img, .xp-card__media .figure__ph { transition: transform 1.2s var(--ease-out); width: 100%; height: 100%; object-fit: cover; }
.xp-card__media img { position: relative; z-index: 1; }
.xp-card:hover .xp-card__media img, .xp-card:hover .xp-card__media .figure__ph { transform: scale(1.06); }
.xp-card__price { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; background: var(--c-paper); color: var(--c-paper-ink); border-radius: var(--r-pill); padding: 0.45rem 1rem; font-weight: 700; font-size: 0.85rem; }
.xp-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.85rem; color: var(--fg-muted); }
.xp-card__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.05; }

.event-row { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: var(--s-5); align-items: center; padding-block: 1.5rem; border-top: 1px solid var(--line); transition: padding 0.5s var(--ease-out), background 0.4s; }
.event-row:last-child { border-bottom: 1px solid var(--line); }
.event-row:hover { padding-inline: 1rem; background: var(--bg-raised); }
.event-row__date { font-family: var(--font-display); line-height: 0.9; text-align: center; }
.event-row__date b { display: block; font-size: 2.8rem; font-weight: 400; }
.event-row__date span { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; }
.event-row__title { font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.1; }
@media (max-width: 640px) { .event-row { grid-template-columns: 4rem 1fr; } .event-row > :last-child { grid-column: 2; } }

/* ---------- Accordion & tabs ----------------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; text-align: left; font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.15; }
.acc__icon { position: relative; flex: none; width: 1.1rem; height: 1.1rem; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; inset: 50% 0 auto 0; height: 1px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(0); }
.acc__btn:hover { color: var(--accent-text); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease-out); }
.acc__panel > div { overflow: hidden; }
.acc__btn[aria-expanded="true"] + .acc__panel { grid-template-rows: 1fr; }
.acc__body { padding-bottom: 1.6rem; color: var(--fg-muted); max-width: 62ch; }

.tabs__list { display: flex; gap: var(--s-6); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs__tab { position: relative; padding: 0.9rem 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); white-space: nowrap; transition: color 0.3s; }
.tabs__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent-text); transform: scaleX(0); transition: transform 0.5s var(--ease-out); }
.tabs__tab[aria-selected="true"] { color: var(--fg); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__panel { padding-top: var(--s-6); }
.tabs__panel[hidden] { display: none; }

/* ---------- Tech sheet ------------------------------------------------------------------------------ */
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 0.95rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-muted); padding-right: 1rem; }
.meter { display: flex; align-items: center; gap: 0.35rem; }
.meter i { width: 1.4rem; height: 0.4rem; border-radius: 0; background: var(--line-strong); opacity: 0.35; }
.meter i.on { background: var(--accent-text); opacity: 1; }

/* ---------- Vintages timeline (horizontal) -------------------------------------------------------------- */
.vintages { position: relative; overflow: hidden; }
.vintages__track { display: flex; gap: 0; width: max-content; padding-inline: var(--gutter); }
.vintage { position: relative; flex: none; width: clamp(18rem, 32vw, 30rem); padding: 4.5rem 2.2rem 2rem 0; border-top: 1px solid var(--line-strong); }
.vintage::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.vintage__year { font-family: var(--font-display); font-size: clamp(4.5rem, 9vw, 8.5rem); line-height: 0.85; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); transition: color 0.6s, -webkit-text-stroke-color 0.6s; }
.vintage.is-active .vintage__year { color: var(--accent-text); -webkit-text-stroke-color: transparent; }
.vintage__note { margin-top: 1.25rem; color: var(--fg-muted); max-width: 30ch; }
.vintage__meta { margin-top: 1.1rem; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--accent-text); }

/* ---------- Stats, quote, rule ------------------------------------------------------------------------------------ */
.quote { font-family: var(--font-display); font-style: italic; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.025em; }
.quote cite { display: block; margin-top: 1.5rem; font-family: var(--font-body); font-style: normal; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-muted); font-weight: 600; }
.rule { display: flex; align-items: center; gap: 1rem; color: var(--fg-muted); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Toast, modal, drawer ---------------------------------------------------------------------------------------- */
.toast-region { position: fixed; z-index: var(--z-toast); right: var(--gutter); bottom: var(--gutter); display: grid; gap: 0.75rem; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 0.9rem; min-width: 18rem; max-width: 26rem; padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--c-paper); color: var(--c-paper-ink); box-shadow: var(--shadow-pop); animation: toast-in 0.7s var(--ease-out) both; pointer-events: auto; }
.toast.is-leaving { animation: toast-out 0.5s var(--ease-in-out) both; }
.toast__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--gutter); background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s 0.5s; }
.modal.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s; }
.modal__box { position: relative; width: min(34rem, 100%); max-height: 100%; overflow: auto; padding: clamp(1.75rem, 5vw, 3rem); text-align: center; background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--r-md); transform: translateY(30px) scale(0.97); transition: transform 0.7s var(--ease-out); }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 0.75rem; right: 0.75rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; }
.modal__close:hover { background: var(--bg-lift); }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-modal); width: min(26rem, 100%); display: flex; flex-direction: column; background: var(--bg-raised); border-left: 1px solid var(--line-strong); transform: translateX(101%); visibility: hidden; transition: transform 0.8s var(--ease-pour), visibility 0s 0.8s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.8s var(--ease-pour); }
.drawer__head, .drawer__foot { padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.drawer__head { border-bottom: 1px solid var(--line); }
.drawer__foot { border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.drawer__body { flex: 1; overflow: auto; padding: 1.5rem; display: grid; align-content: start; gap: 1.25rem; }
.cart-line { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: center; }
.cart-line img { width: 3.2rem; aspect-ratio: 0.583; object-fit: cover; border-radius: 0; background: #000; }
.cart-line__name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; }
.progress { height: 3px; border-radius: 0; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); transition: width 0.9s var(--ease-out); }
.scrim { position: fixed; inset: 0; z-index: calc(var(--z-modal) - 1); background: rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s 0.5s; }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s; }

/* ---------- Wine switcher (changes the page accent) ---------------------------------------------------------------------------------- */
.switcher { display: inline-flex; gap: 0.5rem; padding: 0.4rem; border: 1px solid var(--line); border-radius: var(--r-pill); }
.switcher button { display: inline-flex; align-items: center; gap: 0.55rem; height: 2.5rem; padding-inline: 1rem; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); transition: background 0.4s, color 0.4s; }
.switcher button[aria-pressed="true"] { background: var(--bg-lift); color: var(--fg); }

/* ---------- Custom cursor (fine pointers only) ------------------------------------------------------------------------------------------ */
.cursor { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1px solid var(--fg); pointer-events: none; display: grid; place-items: center; opacity: 0; mix-blend-mode: difference; transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out), opacity 0.3s, background 0.3s; }
.cursor.is-on { opacity: 1; }
.cursor__label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-lees); opacity: 0; transition: opacity 0.3s; }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--c-bone); border-color: var(--c-bone); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Page transition: wine rises and drains ----------------------------------------------------------------------------------------------- */
.curtain { position: fixed; inset: 0; z-index: var(--z-curtain); pointer-events: none; transform: translateY(101%); display: grid; place-items: center; color: var(--on-accent); }
.curtain::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: var(--accent); }
.curtain__wave { position: absolute; left: 0; width: 100%; height: 26px; overflow: hidden; color: var(--accent); }
.curtain__wave--top { top: -25px; } .curtain__wave--bottom { bottom: -25px; transform: scaleY(-1); }
.curtain__wave svg { width: 4480px; max-width: none; height: 100%; animation: wave-drift 8s linear infinite; }
@keyframes wave-drift { to { transform: translateX(-50%); } }
.curtain__logo { position: relative; font-weight: 400; line-height: normal; font-variation-settings: var(--fv-display); font-family: var(--font-display); font-style: italic; font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -0.03em; }
.curtain:not([data-state]) { visibility: hidden; }
.curtain[data-state="cover"] { pointer-events: all; }

/* ---------- Loader (first visit) ------------------------------------------------------------------------------------------------------------------------ */
.loader { position: fixed; inset: 0; z-index: calc(var(--z-curtain) + 1); display: grid; place-items: center; background: var(--c-lees-deep); transition: opacity 0.6s, visibility 0s 0.6s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__glass { position: relative; width: 180px; height: 240px; }
.loader__glass svg { width: 100%; height: 100%; overflow: visible; }
.loader__fill { transform-origin: 50% 100%; }
.loader__count { position: absolute; bottom: 8vh; left: 0; right: 0; text-align: center; font-size: var(--fs-label); letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* ---------- Styleguide-only helpers ------------------------------------------------------------------------------------------------------------------------------- */
.sg-nav { position: sticky; top: 0; z-index: 90; background: color-mix(in srgb, var(--c-lees) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sg-nav ul { display: flex; gap: 1.6rem; overflow-x: auto; padding-block: 0.9rem; scrollbar-width: none; }
.sg-nav a { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); white-space: nowrap; }
.sg-nav a:hover { color: var(--fg); }
.sg-block { padding-block: var(--s-8); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 3.5rem); }
.sg-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
.sg-head h2 { font-size: var(--fs-h2); }
.sg-note { font-size: 0.85rem; color: var(--fg-muted); }
.sg-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.78rem; color: var(--accent-text); background: var(--bg-raised); padding: 0.15rem 0.45rem; border-radius: 0; }
.sg-swatch { display: grid; gap: 0.6rem; }
.sg-swatch i { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); border: 1px solid var(--line); }
.sg-swatch b { font-weight: 600; font-size: 0.92rem; }
.sg-swatch small { color: var(--fg-muted); font-family: ui-monospace, Menlo, monospace; font-size: 0.74rem; }
.sg-demo { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-raised); }

/* ==========================================================================
   Home
   ========================================================================== */
.cols { display: grid; gap: var(--col-gap); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols--84 { grid-template-columns: 2fr 1fr; }
  .cols--57 { grid-template-columns: 5fr 7fr; }
  .cols--align-center { align-items: center; }
}
@media (min-width: 560px) and (max-width: 899px) { .cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: max(100svh, 680px); display: grid; align-items: end; overflow: hidden; background: var(--c-lees-deep); }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; animation: hero-in 1.6s var(--ease-out) both; }
@keyframes hero-in { from { opacity: 0; } }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__kb { position: absolute; inset: -4%; }
/* Background slider: soft cross-fade, the copy on top never changes */
.hero__kb .hero__slide { position: absolute; inset: 0; opacity: 0; z-index: 0; }
/* only the two visible slides animate, so the browser never keeps four huge layers alive */
.hero__kb .hero__slide.is-active, .hero__kb .hero__slide.is-prev { animation: hero-drift 24s ease-in-out infinite alternate; }
/* The incoming slide fades in ON TOP of the outgoing one, which stays fully opaque beneath it: no dip to the page colour mid-fade */
.hero__kb .hero__slide.is-prev { opacity: 1; z-index: 1; }
.hero__kb .hero__slide.is-active { opacity: 1; z-index: 2; transition: opacity 2.2s ease-in-out; }
@keyframes hero-drift { from { transform: scale(1.02) translate3d(-1%, 0.5%, 0); } to { transform: scale(1.1) translate3d(1.2%, -1%, 0); } }
/* drifting light and mist over the photograph */
/* soft drifting light (plain alpha, no blend mode: blend modes on huge animated layers cause paint glitches) */
.hero__mist { position: absolute; inset: -20%; pointer-events: none; }
.hero__mist--a { background: radial-gradient(38% 26% at 30% 62%, rgba(255, 232, 196, 0.2), transparent 70%), radial-gradient(30% 22% at 68% 44%, rgba(255, 214, 160, 0.14), transparent 70%); animation: mist-a 28s ease-in-out infinite alternate; }
.hero__mist--b { background: radial-gradient(45% 20% at 60% 70%, rgba(255, 244, 224, 0.13), transparent 70%), radial-gradient(26% 30% at 18% 38%, rgba(255, 200, 140, 0.1), transparent 70%); animation: mist-b 38s ease-in-out infinite alternate; }
@keyframes mist-a { from { transform: translate3d(-7%, 2%, 0) scale(1); } to { transform: translate3d(7%, -3%, 0) scale(1.12); } }
@keyframes mist-b { from { transform: translate3d(6%, -2%, 0) scale(1.1); } to { transform: translate3d(-8%, 3%, 0) scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.05) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 1) 100%); }
.hero__inner { padding-block: calc(var(--nav-h) + 2.5rem) 2rem; display: grid; gap: var(--s-5); }
.hero__title { font-family: var(--font-display); font-weight: 340; font-variation-settings: var(--fv-display); font-size: clamp(3rem, min(7.6vw, 14vh), 8rem); line-height: 0.92; letter-spacing: -0.035em; white-space: nowrap; }
@media (max-width: 700px) { .hero__title { white-space: normal; font-size: clamp(3.4rem, 17vw, 5.5rem); } }
.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-6); }
.hero__lead { max-width: 42ch; font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.08rem); line-height: 1.55; color: color-mix(in srgb, var(--fg) 82%, transparent); }
.hero__meta { display: flex; gap: 0.5rem 2.25rem; flex-wrap: wrap; width: 100%; font-size: 0.9rem; color: var(--fg-muted); }
.hero__meta span { display: inline-flex; align-items: baseline; gap: 0.45rem; }
.hero__meta b { font-family: var(--font-display); font-style: italic; font-weight: 340; font-size: 1.35rem; color: var(--accent-text); line-height: 1; }
@media (max-height: 760px) { .hero__meta { display: none; } }
.hero__next { display: inline-flex; align-items: center; gap: 0.9rem; padding: 0.7rem 1.2rem 0.7rem 0.8rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: 0.82rem; backdrop-filter: blur(8px); background: color-mix(in srgb, var(--c-lees) 45%, transparent); transition: border-color 0.3s; }
.hero__next:hover { border-color: var(--accent-text); }
.hero__next .dot { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

/* Statement + stats */
.statement { font-family: var(--font-display); font-weight: 360; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.015em; max-width: 20ch; }
/* Facts as numbers inside thin circles, generously spaced, label underneath */
.figures { display: flex; flex-wrap: wrap; gap: 2.5rem clamp(2rem, 6vw, 6rem); margin-top: var(--s-10); }
.figures li { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; width: 9.5rem; text-align: center; font-size: 0.92rem; line-height: 1.35; color: var(--fg-muted); }
.figures em { display: grid; place-items: center; width: 8.5rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 2.3rem; line-height: 1; letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: lining-nums; transition: background 0.6s var(--ease-out), color 0.6s, border-color 0.6s, transform 0.8s var(--ease-out); }
.figures li:hover em { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.05); }

/* Wine chooser: list on the left, real bottle photograph on the right, page accent follows */
.chooser { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .chooser { grid-template-columns: 5fr 6fr; align-items: center; gap: var(--s-9); } .chooser__stagewrap { order: 2; } }
.chooser__row { border-top: 1px solid var(--line); }
.chooser__row:last-child { border-bottom: 1px solid var(--line); }
.chooser__item { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: baseline; width: 100%; padding: 1.4rem 0; text-align: left; transition: padding 0.6s var(--ease-out), color 0.4s; }
.chooser__num { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label); color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.chooser__name { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.015em; }
.chooser__item:hover { color: var(--accent-text); }
.chooser__item[aria-selected="true"] { padding-left: 0.75rem; }
.chooser__item[aria-selected="true"] .chooser__name { font-style: italic; color: var(--accent-text); }
.chooser__item[aria-selected="true"] .chooser__num { color: var(--accent-text); }
.chooser__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease-out); }
.chooser__item[aria-selected="true"] + .chooser__detail { grid-template-rows: 1fr; }
.chooser__detail > div { overflow: hidden; }
.chooser__body { padding: 0 0 1.75rem 3.75rem; display: grid; gap: 1.1rem; max-width: 46ch; }
.chooser__facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.82rem; color: var(--fg-muted); }
.chooser__buy { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.chooser__price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; font-variant-numeric: lining-nums; }
.wine-stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: #000; border: 1px solid var(--line); container-type: inline-size; }
.wine-stage__item { position: absolute; inset: 0; opacity: 0; transform: scale(1.07); transition: opacity 1s var(--ease-out), transform 1.6s var(--ease-out); }
.wine-stage__item.is-active { opacity: 1; transform: none; }
.wine-stage__item img { width: 100%; height: 100%; object-fit: cover; }
.wine-stage__item--blend img { mix-blend-mode: screen; }
.wine-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,0.45), transparent 35%); }
.wine-stage__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1.4rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); }
.wine-stage__cap .tag { backdrop-filter: blur(6px); }

/* Estate */
.estate__media { position: relative; }
.facts { display: grid; gap: 0; margin-top: var(--s-6); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; border-top: 1px solid var(--line); font-size: 0.95rem; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts span:first-child { color: var(--fg-muted); }

/* Full-bleed quote band */
.band { position: relative; isolation: isolate; min-height: min(90vh, 760px); display: grid; place-items: center; overflow: hidden; text-align: center; }
.band__bg { position: absolute; inset: -12% 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.9)); }
.band .quote { max-width: 24ch; margin-inline: auto; font-size: var(--fs-h2); }

/* Final call to action */
.cta__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-display-l); line-height: 0.9; letter-spacing: -0.02em; }

/* ---------- Photo tour: hotspots on a photograph of the vineyards ------------------------------ */
/* Full-bleed photo tour: breaks out of the container; the frame opens from an inset to the whole viewport while scrolling in */
.tour { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: max(88vh, 560px); overflow: hidden; background: #000; clip-path: inset(var(--ty, 0%) var(--tx, 0%)); }
.tour > img { width: 100%; height: 100%; object-fit: cover; }
.tour::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14,8,9,0.25), transparent 30%, rgba(14,8,9,0.7)); }
.hotspot { position: absolute; z-index: 3; left: var(--x); top: var(--y); width: 2.9rem; height: 2.9rem; margin: -1.45rem 0 0 -1.45rem; border-radius: 50%; background: color-mix(in srgb, var(--hs, var(--accent)) 82%, transparent); border: 1px solid rgba(255,255,255,0.85); display: grid; place-items: center; color: #fff; font-size: 0.72rem; font-weight: 700; transition: transform 0.5s var(--ease-out), background 0.4s; backdrop-filter: blur(4px); }
.hotspot::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--hs, var(--accent)); animation: hs-ring 2.6s ease-out infinite; }
@keyframes hs-ring { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
.hotspot:hover, .hotspot.is-active { transform: scale(1.18); background: var(--hs, var(--accent)); }
.hotspot span { position: absolute; left: 50%; bottom: calc(100% + 0.7rem); transform: translate(-50%, 6px); white-space: nowrap; padding: 0.35rem 0.8rem; border-radius: var(--r-pill); background: var(--c-paper); color: var(--c-paper-ink); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; transition: opacity 0.35s, transform 0.5s var(--ease-out); pointer-events: none; }
.hotspot:hover span, .hotspot.is-active span, .hotspot:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.tour__info { position: absolute; z-index: 4; left: max(1.5rem, var(--gutter)); bottom: 2.5rem; max-width: min(26rem, calc(100% - 3rem)); padding: 1.4rem 1.6rem; border-radius: var(--r-md); background: color-mix(in srgb, var(--c-lees) 78%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); display: grid; gap: 0.5rem; }
@media (max-width: 899px) { .tour { height: 78vh; } .tour > img { object-position: 40% 50%; } }

/* ---------- Full-width 3D carousel: flat cards, tilted and skewed by their distance from the centre ------------------ */
.ring { position: relative; min-height: 100vh; display: grid; align-content: center; gap: var(--s-6); padding-block: var(--s-8); overflow: hidden; background: radial-gradient(60% 55% at 50% 52%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.ring__bg { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%); text-align: center; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(8rem, 26vw, 26rem); line-height: 0.8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--line); white-space: nowrap; pointer-events: none; user-select: none; }
.ring__scene { position: relative; width: 100%; height: min(58vh, 560px); display: grid; place-items: center; perspective: 1900px; perspective-origin: 50% 50%; touch-action: pan-y; cursor: grab; }
.ring__scene.is-drag { cursor: grabbing; }
.ring__stage { position: relative; --cw: clamp(260px, 40vw, 680px); width: 100%; height: calc(var(--cw) * 0.5); transform-style: preserve-3d; }
.ring__card { position: absolute; top: 0; left: 50%; width: var(--cw); height: 100%; margin-left: calc(var(--cw) / -2); border-radius: 999px 999px 0 0; overflow: hidden; background: #000; filter: brightness(calc(0.3 + 0.7 * var(--f, 1))); box-shadow: 0 40px 70px -24px rgba(0,0,0,0.9); cursor: pointer; will-change: transform; }
.ring__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; will-change: transform; }
.ring__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,8,9,0.85)); }
.ring__tag { position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.1rem; text-align: center; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; }
.ring__foot { display: grid; gap: var(--s-5); align-items: end; }
@media (min-width: 800px) { .ring__foot { grid-template-columns: 1fr auto; } }
.ring__cap { display: grid; gap: 0.6rem; max-width: 48ch; min-height: 8.5rem; }
.ring__cap h3 { font-size: var(--fs-h2); line-height: 1; }
.ring__nav { display: flex; align-items: center; gap: 1rem; }
.ring__nav button { width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.ring__nav button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ring__nav svg { width: 1.2rem; height: 1.2rem; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(68vh, 640px); overflow: hidden; background: var(--c-lees-deep); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.2) 65%, rgba(0,0,0,0.05)), linear-gradient(180deg, rgba(0,0,0,0.45), transparent 35%); }
.page-hero__inner { padding-block: calc(var(--nav-h) + 4rem) 3rem; display: grid; gap: var(--s-5); }
.page-hero__title { font-family: var(--font-display); font-weight: 340; font-variation-settings: var(--fv-display); font-size: clamp(3.2rem, min(8vw, 14vh), 8.5rem); line-height: 0.95; letter-spacing: -0.035em; max-width: 14ch; }
.page-hero__lead { max-width: 44ch; font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem); color: color-mix(in srgb, var(--fg) 82%, transparent); }
.split { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-10); } .split--flip > :first-child { order: 2; } .split--wide { grid-template-columns: 7fr 5fr; } }

/* Wines page: one block per label */
.wine-row { display: grid; gap: var(--s-7); padding-block: var(--s-9); border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
@media (min-width: 900px) { .wine-row { grid-template-columns: 5fr 7fr; gap: var(--s-10); align-items: start; } .wine-row--flip { grid-template-columns: 7fr 5fr; } .wine-row--flip > .wine-row__media { order: 2; } }
.wine-row__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
@media (min-width: 900px) { .wine-row__media { position: sticky; top: 6.5rem; } }
.wine-row__media img { width: 100%; height: 100%; object-fit: cover; }
.wine-row__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,0.45), transparent 35%); }
.wine-row__head { display: grid; gap: 0.8rem; margin-bottom: var(--s-6); }
.wine-row__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: var(--s-6); }
.price { font-family: var(--font-display); font-size: 2rem; font-weight: 400; font-variant-numeric: lining-nums; }

/* Shop */
.shopbar { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; justify-content: space-between; padding-block: var(--s-5); border-block: 1px solid var(--line); margin-bottom: var(--s-8); }
.shop-grid { display: grid; gap: var(--col-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.wine-card__meta + .wine-card__name { margin-top: 0.1rem; }
.perks { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: var(--s-9); }
.perks li { display: grid; gap: 0.4rem; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.perks b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }

/* Visits: experiences and booking */
.xp-list { display: grid; gap: var(--s-9); }
.xp-row { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .xp-row { grid-template-columns: 1fr 1fr; gap: var(--s-9); } .xp-row:nth-child(even) .xp-row__media { order: 2; } }
.xp-row__media { aspect-ratio: 1; overflow: hidden; }
.xp-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.xp-row:hover .xp-row__media img { transform: scale(1.05); }
.booking { display: grid; gap: var(--s-8); }
@media (min-width: 960px) { .booking { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.cal { border: 1px solid var(--line); padding: 1.25rem; }
.cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cal__head b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.cal__head button { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-strong); transition: background 0.3s; }
.cal__head button:hover { background: var(--bg-lift); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__dow { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); padding-block: 0.4rem; }
.cal__day { aspect-ratio: 1; display: grid; place-items: center; font-variant-numeric: tabular-nums; transition: background 0.3s, color 0.3s; }
.cal__day:not(:disabled):hover { background: var(--bg-lift); }
.cal__day:disabled { color: var(--fg-muted); opacity: 0.35; cursor: not-allowed; }
.cal__day[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.slots { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Estate */
.timeline-v { display: grid; gap: 0; }
.timeline-v li { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s-5); padding-block: var(--s-6); border-top: 1px solid var(--line); }
.timeline-v li:last-child { border-bottom: 1px solid var(--line); }
.timeline-v time { font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--accent-text); line-height: 1; }
.timeline-v h3 { font-size: var(--fs-h4); margin-bottom: 0.4rem; }
.family { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.family article { padding: var(--s-6); background: var(--bg-raised); border: 1px solid var(--line); display: grid; gap: 0.6rem; }
.family h3 { font-size: var(--fs-h3); }

/* Contact + 404 + licenses */
.contact { display: grid; gap: var(--s-8); }
@media (min-width: 960px) { .contact { grid-template-columns: 5fr 7fr; gap: var(--s-9); } }
.contact dl { display: grid; gap: var(--s-5); }
.contact dt { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-muted); font-weight: 700; margin-bottom: 0.3rem; }
.err { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.err__code { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(9rem, 32vw, 28rem); line-height: 0.8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.legal h2 { font-size: var(--fs-h3); margin-block: var(--s-8) var(--s-4); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; padding: 0.8rem 0.6rem 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-muted); }
.legal a { color: var(--accent-text); }

/* ---------- Wines: editorial bordered grid, each cell opens a sheet --------------------------------------------- */
.wgrid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
@media (min-width: 640px) { .wgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .wgrid { grid-template-columns: repeat(4, 1fr); } }
.wcell { position: relative; display: flex; flex-direction: column; text-align: left; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transition: background 0.5s var(--ease-out); }
.wcell:hover, .wcell:focus-visible { background: var(--bg-raised); }
.wcell__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.wcell__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.wcell:hover .wcell__img img { transform: scale(1.06); }
.wcell__num { position: absolute; left: 1.1rem; top: 1rem; z-index: 2; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.wcell__body { display: grid; gap: 0.4rem; padding: 1.4rem 1.5rem 1.7rem; flex: 1; }
.wcell__sub { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--fg-muted); font-weight: 600; }
.wcell__name { font-family: var(--font-display); font-weight: 360; font-variation-settings: var(--fv-display); font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.03em; }
.wcell__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; font-size: 0.85rem; color: var(--fg-muted); }
.wcell__plus { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background 0.4s, transform 0.5s var(--ease-out), color 0.4s; }
.wcell:hover .wcell__plus { background: var(--w-red); border-color: var(--w-red); color: var(--w-red-on); transform: rotate(90deg); }
.wcell__plus svg { width: 0.9rem; height: 0.9rem; }

.sheet { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; justify-content: flex-end; visibility: hidden; pointer-events: none; transition: visibility 0s 0.9s; }
.sheet.is-open { visibility: visible; pointer-events: auto; transition: none; }
.sheet__panel { position: relative; width: min(1180px, 100%); height: 100%; max-height: 100dvh; overflow: hidden; background: var(--bg); border-left: 1px solid var(--line-strong); display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; transform: translateX(101%); transition: transform 0.9s var(--ease-pour); }
.sheet.is-open .sheet__panel { transform: none; }
@media (min-width: 900px) { .sheet__panel { grid-template-columns: 5fr 7fr; grid-template-rows: 1fr; } }
.sheet__media { position: relative; background: #000; min-height: 38vh; min-width: 0; overflow: hidden; }
.sheet__media img { width: 100%; height: 100%; object-fit: cover; }
.sheet__body { min-height: 0; max-height: 100dvh; overscroll-behavior: contain; overflow-y: auto; padding: clamp(1.5rem, 4vw, 3.5rem); padding-top: 5rem; display: grid; align-content: start; gap: var(--s-5); }
.sheet__close { position: absolute; z-index: 5; top: 1rem; right: 1rem; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--c-lees) 70%, transparent); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background 0.3s; }
.sheet__close:hover { background: var(--w-red); border-color: var(--w-red); }

/* Header without a photo: plain page colour, text only */
.page-hero--plain { min-height: 0; }
.page-hero--plain::before { display: none; }
.page-hero--plain .page-hero__inner { padding-block: calc(var(--nav-h) + 5rem) 2rem; }
.page-hero--plain + .section { padding-top: var(--s-6); }

@media (min-width: 900px) { .sheet__media { min-height: 0; } .sheet__body .display-l { font-size: clamp(3rem, 6vw, 5.5rem); } }
@media (max-height: 800px) { .sheet__body { padding-top: 4rem; gap: var(--s-4); } }

/* Home statement: starts pure black (continuing the hero's dark foot) and melts into burgundy for the section below */
#story { background: linear-gradient(180deg, #000 0%, #000 6%, var(--bg) 100%); }

/* Event thumbnails: a circular photo that follows the pointer while hovering the list */
.event-thumb { position: fixed; left: 0; top: 0; z-index: calc(var(--z-cursor) - 1); width: clamp(150px, 15vw, 230px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.5); transition: opacity 0.4s var(--ease-out), scale 0.6s var(--ease-out); border: 0; box-shadow: var(--shadow-pop); will-change: transform; }
.event-thumb.is-on { opacity: 1; }
.event-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s; }
.event-thumb img.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse) { .event-thumb { display: none; } }

/* ---- Hero layouts: every header arranges its actions differently ---- */
/* Home: lead on the left, actions stacked in a column on the right */
.hero__foot { align-items: flex-end; }
.hero__actions { display: grid; gap: 0.9rem; justify-items: start; width: fit-content; max-width: 100%; }
.hero__btns { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-self: start; }
.hero__actions .hero__next { justify-self: start; }
.hero__actions .btn--block { justify-self: stretch; }
@media (max-width: 800px) { .hero__actions { width: 100%; } }

.hactions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
/* Shop: centred composition, actions centred under the lead */
.page-hero--center .page-hero__inner { justify-items: center; text-align: center; }
.page-hero--center .page-hero__title { max-width: 16ch; }
.page-hero--center .page-hero__lead { max-width: 50ch; }
.page-hero--center .hactions { justify-content: center; }
/* Visits: title on the left, actions resting on the base at the right */
.page-hero--split .hactions .btn--block { width: auto; display: inline-flex; }
@media (min-width: 900px) {
  .page-hero--split .page-hero__inner { grid-template-columns: 1fr auto; align-items: end; column-gap: var(--s-9); }
  .page-hero--split .page-hero__inner > .label { grid-column: 1 / -1; }
  .page-hero--split .page-hero__title { grid-column: 1; }
  .page-hero--split .hactions { grid-column: 2; justify-content: flex-end; padding-bottom: 1rem; }
}
/* Estate: text at the bottom, actions run along a ruled bar at the very foot of the header */
.page-hero--bar .page-hero__inner { padding-bottom: 0; }
.page-hero--bar .hactions { width: 100%; justify-content: space-between; margin-top: var(--s-6); padding-block: 1.4rem; border-top: 1px solid var(--line-strong); }
/* Events: title anchored at the top, a round action sits on the right edge */
@media (min-width: 900px) { .page-hero--circle .page-hero__inner { position: relative; } .page-hero--circle .hactions { position: absolute; right: var(--gutter); bottom: 3rem; } }

/* Pinned wine chooser: the section fills the viewport while scroll steps through the wines */
#wines.is-pinned { min-height: 100vh; display: grid; align-content: center; padding-block: calc(var(--nav-h) + 1rem) 2rem; }
#wines.is-pinned .row--between { margin-bottom: var(--s-5); }
#wines.is-pinned .wine-stage { aspect-ratio: auto; height: min(68vh, 640px); }
#wines.is-pinned .h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); }
#wines.is-pinned .chooser__name { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
#wines.is-pinned .chooser__item { padding-block: 0.8rem; }
#wines.is-pinned .chooser__body { padding-bottom: 1rem; gap: 0.8rem; }
#wines.is-pinned .chooser { gap: var(--s-7); }

/* Carousel on short screens: tighter stack so title, cards and caption all fit above the fold */
.ring { padding-block: calc(var(--nav-h) + 0.5rem) 1.5rem; gap: var(--s-4); align-content: space-between; }
.ring .h1 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); }
.ring__scene { height: min(46vh, 480px); }
.ring__stage { --cw: clamp(240px, min(40vw, 78vh), 680px); }
.ring__cap { min-height: 0; gap: 0.4rem; }
.ring__cap h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.ring__cap p { font-size: 0.95rem; max-width: 52ch; }
@media (max-height: 800px) { .ring__scene { height: min(40vh, 380px); } .ring .container:first-of-type .label { margin-bottom: 0; } }

/* Wine chooser: tall portrait image, text column stays left-aligned */
@media (min-width: 960px) { .chooser { grid-template-columns: 1fr minmax(320px, 440px); justify-content: center; gap: var(--s-10); } }
.wine-stage { aspect-ratio: 3 / 4.4; }
#wines.is-pinned .wine-stage { aspect-ratio: auto; height: min(76vh, 700px); width: 100%; }
#wines.is-pinned .chooser__item { padding-block: 0.65rem; }
#wines.is-pinned { padding-block: calc(var(--nav-h) - 1rem) 1rem; }
#wines.is-pinned .wine-stage { height: min(66vh, 600px); }
#wines.is-pinned .chooser__item { padding-block: 0.5rem; }
#wines.is-pinned .chooser__name { font-size: clamp(1.8rem, 3vw, 2.5rem); }
#wines.is-pinned .chooser__body { padding-bottom: 0.9rem; gap: 0.6rem; }
#wines.is-pinned .row--between { margin-bottom: var(--s-3); }
/* The full-bleed tour sits flush against the next section: no band of the sunk colour below it */
#parcels { padding-bottom: 0; }
#parcels + .vintages, #parcels + section { margin-top: 0; }
/* Hero: the lead hugs the title; only the action column sits at the base */
.hero__inner { gap: var(--s-4); }
.hero__foot .hero__lead { align-self: flex-start; margin-top: 0; }
.hero__foot .hero__actions { align-self: flex-end; }

/* Arch thumbnail (vintages): taller than wide, round top, flat base */
.event-thumb--arch { width: clamp(150px, 14vw, 210px); aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; }
/* Quote band on phones: a short band instead of a tall screen */
@media (max-width: 700px) {
  .band { min-height: 0; padding-block: 4.5rem; }
  .band__bg { inset: 0; }
  .band .quote { font-size: clamp(1.9rem, 8vw, 2.6rem); max-width: 18ch; }
}
/* Event rows on phones: the chip keeps its own width (inline), never stretches */
@media (max-width: 640px) { .event-row > .tag { justify-self: start; align-self: start; width: auto; margin-top: 0.4rem; } }

/* Phones: the whole sheet scrolls as one page (photo first, then text), not a fixed photo over a small text window */
@media (max-width: 899px) {
  .sheet__panel { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .sheet__media { min-height: 0; height: 62vw; max-height: 55vh; }
  .sheet__body { overflow: visible; max-height: none; padding-top: var(--s-6); padding-bottom: var(--s-8); }
  .sheet__close { position: fixed; }
}
/* Shop filters on phones: one row of chips that scrolls sideways, bleeding to the screen edge */
@media (max-width: 700px) {
  .shopbar [data-filter] { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; width: calc(100% + var(--gutter) * 2); }
  .shopbar [data-filter]::-webkit-scrollbar { display: none; }
  .shopbar [data-filter] .choice { flex: none; scroll-snap-align: start; }
}

/* Page headers: legible nav (top scrim) + low base gradient fading into the next section's colour */
.page-hero, .hero { --hero-next: var(--bg); }
.page-hero:has(+ .section--sunk), .hero:has(+ .section--sunk) { --hero-next: var(--bg-sunk); }
.page-hero:has(+ .section--raised), .hero:has(+ .section--raised) { --hero-next: var(--bg-raised); }
.page-hero:not(.page-hero--plain)::before { background: linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.2) 65%, rgba(0,0,0,0.05)), linear-gradient(180deg, rgba(10,4,6,0.78) 0, rgba(10,4,6,0.45) calc(var(--nav-h) + 1.5rem), transparent 38%); }
.page-hero:not(.page-hero--plain)::after, .hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 50%; z-index: -1; pointer-events: none; background: linear-gradient(0deg, var(--hero-next) 0%, var(--hero-next) 6%, color-mix(in srgb, var(--hero-next) 85%, transparent) 25%, color-mix(in srgb, var(--hero-next) 55%, transparent) 50%, color-mix(in srgb, var(--hero-next) 22%, transparent) 75%, transparent 100%); }
