/* =========================================================================
   VAELORA — style.css
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #E6EAE6;            /* cool pearl grey, sampled from hero frame 1's corners */
  --bg-rgb: 230, 234, 230;
  --bg-2: #DDE2E0;
  --ink: #17161C;
  --muted: #5E6463;
  --accent: #6E1F2E;        /* deep oxblood */
  --accent-soft: #B98A92;
  --glass: rgba(255, 255, 255, 0.45);
  --line: rgba(110, 31, 46, 0.18);

  --font-display: "Italiana", "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-body: clamp(0.75rem, 0.7rem + 0.22vw, 0.875rem);       /* 12 → 14px */
  --fs-small: clamp(0.6875rem, 0.66rem + 0.1vw, 0.75rem);     /* 11 → 12px */
  --fs-lead: clamp(0.875rem, 0.82rem + 0.3vw, 1.0625rem);
  --fs-mega: clamp(3.5rem, 14vw, 13rem);
  --fs-d2: clamp(2.1rem, 1.2rem + 4.6vw, 5.5rem);
  --fs-d3: clamp(1.6rem, 1rem + 2.6vw, 3.25rem);
  --fs-serif-i: clamp(1.1rem, 0.95rem + 0.7vw, 1.6rem);

  --gutter: clamp(16px, 4vw, 64px);
  --nav-h: clamp(60px, 4vw + 44px, 80px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --arch: 999px 999px 40% 40%;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; background: var(--bg); }
html { overflow-x: hidden; }   /* older Safari ignores clip; on the root this only affects the viewport */
@supports (overflow: clip) { html { overflow-x: clip; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, canvas, svg { 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; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Scrollbar: a slim oxblood pill on the pearl page ----------
   Native scrolling is kept (no JS scrollbar); only its look changes. Chromium/Safari use the
   ::-webkit-scrollbar parts — setting the standard scrollbar-color there would make Chrome
   ignore them, so the standard properties are only applied where those parts don't exist. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  min-height: 56px;
  background: rgba(23, 22, 28, 0.28);      /* cool ink-grey at rest (oxblood at 45% read pink) */
  border: 3px solid var(--bg);             /* inset from the edges → a 4px pill */
  border-radius: 999px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--accent); border-width: 2px; }   /* oxblood on hover/drag */
::-webkit-scrollbar-thumb:active { background-color: var(--accent); border-width: 2px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: var(--bg); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: rgba(23, 22, 28, 0.32) var(--bg); }
}

/* Capture mode (?capture=1): a still, deterministic page for frame-by-frame recording */
html.is-capture { scrollbar-width: none; }
html.is-capture::-webkit-scrollbar { display: none; width: 0; height: 0; }
.is-capture, .is-capture * { cursor: none !important; }
.is-capture *, .is-capture *::before, .is-capture *::after { transition: none !important; animation: none !important; }
.is-capture .preloader { display: none !important; }
.is-capture .mcar__track { scroll-snap-type: none; }

/* Lenis (inlined from lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.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;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Type primitives ---------- */
.eyebrow {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.display-2, .display-3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.04;
}
.display-2 { font-size: var(--fs-d2); }
.display-3 { font-size: var(--fs-d3); }
/* SplitText mask wrappers need a little room for descenders */
.split-lines .line-mask, .split-lines [class*="-mask"] { padding-bottom: 0.04em; }

.section { padding: clamp(3.5rem, 8svh, 7.5rem) var(--gutter); }   /* ≈8vh each side → ≤ ~16vh between sections */
.section-head { text-align: center; max-width: 900px; margin: 0 auto clamp(3rem, 2rem + 5vw, 7rem); }
.section-head .eyebrow { margin-bottom: 1.4em; }
.section-head__sub { margin-top: 1.6em; color: var(--muted); }
.section-head--tight { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.circle-btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--fs-small); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink);
}
.circle-btn__ring {
  flex: none;
  display: grid; place-items: center;
  width: clamp(44px, 2.2vw + 36px, 58px); aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transition: background-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.circle-btn svg, .text-link svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.4s var(--ease), transform 0.5s var(--ease);
}
@media (hover: hover) {
  .circle-btn:hover .circle-btn__ring { background: var(--accent); }
  .circle-btn:hover svg { stroke: #fff; transform: translateX(2px); }
}
.circle-btn:active .circle-btn__ring { transform: scale(0.94); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid var(--accent);
}
@media (hover: hover) { .text-link:hover svg { transform: translateX(4px); } }

.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .icon-btn:hover svg { stroke: var(--accent); } }

/* =========================================================================
   0. PRELOADER
   ========================================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  background: var(--bg);
}
.preloader__inner {
  /* as wide as the wordmark (never narrower than the bar's 320px), so the bar spans it */
  width: max-content; min-width: min(320px, 70vw); max-width: 92vw;
  text-align: center;
}
.preloader__word {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4.5rem);
  letter-spacing: 0.24em;
  margin-right: -0.24em;          /* optically re-centre tracked text */
  line-height: 1;
  white-space: nowrap;            /* split letters are inline-blocks: never break between them */
}
.preloader__bar { position: relative; height: 1px; margin: 28px 0 12px; background: var(--line); overflow: hidden; }
.preloader__fill {
  position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.3s linear;
}
.preloader__meta {
  display: flex; justify-content: space-between;
  font-size: var(--fs-small); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
html:not(.js) .preloader { display: none; }

/* =========================================================================
   1. NAV
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80;
  height: var(--nav-h);
  background: rgb(var(--nav-rgb, var(--bg-rgb)));      /* follows the hero frame tone while the hero is on screen */
}
.nav__inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  letter-spacing: 0.32em;
}
.nav__links { display: flex; gap: clamp(1.5rem, 3vw, 3rem); }
.nav__links a {
  position: relative;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__icons { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }

.nav.is-scrolled { background: rgba(var(--nav-rgb, var(--bg-rgb)), 0.92); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 1024px) {
    .nav.is-scrolled {
      background: rgba(var(--nav-rgb, var(--bg-rgb)), 0.7);
      -webkit-backdrop-filter: blur(16px) saturate(140%);
      backdrop-filter: blur(16px) saturate(140%);
    }
  }
}

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.menu-open .burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-h) var(--gutter) 32px;
  background: var(--bg);
  visibility: hidden; opacity: 0;
}
.menu__links { display: grid; gap: 0.2em; }
.menu__links a {
  display: block; overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 13vw, 4.5rem);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.15;
}
.menu__links a span { display: inline-block; }
.menu__foot { position: absolute; left: var(--gutter); bottom: 32px; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; font-size: var(--fs-small); }

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .burger { display: block; }
}
@media (max-width: 767px) {
  .nav__icons .icon-btn:not(:last-of-type) { display: none; }   /* keep bag + burger */
}

/* =========================================================================
   2. HERO
   ========================================================================= */
.hero { position: relative; }
.hero__stage {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  /* The video's own background dims during the splash (≈229 → ≈205 → ≈229). The stage takes
     the tone of the frame being shown (sampled per frame in main.js), so the frame's edge and
     the page around it are always the same colour — no box at 0%, 50% or 100%. */
  background: rgb(var(--hero-rgb, var(--bg-rgb)));
  isolation: isolate;
  /* Frame box + word size, written by main.js (layoutHero). Fallbacks keep a sane layout. */
  --frame-x: 30vw; --frame-y: calc(var(--nav-h) + 8px);
  --frame-w: 40vw; --frame-h: calc(100svh - var(--nav-h) - 72px);
  --word-size: var(--fs-mega); --word-gap: clamp(16px, 2.5vw, 48px);
}
.notes__stage::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: 2;
  pointer-events: none; display: none;
}

/* "VAE" | bottle | "LORA" — the groups sit outside the frame box, never on the glass */
.hero__word {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: var(--word-size);
  line-height: 1;
  letter-spacing: 0.06em;
  color: rgba(23, 22, 28, 0.85);       /* --ink at 85% */
  white-space: nowrap;
}
.hero__word-l, .hero__word-r {
  position: absolute;
  top: calc(var(--frame-y) + var(--frame-h) * 0.5);
  margin-top: -0.5em;
}
.hero__word-l { right: calc(100% - var(--frame-x) + var(--word-gap)); margin-right: -0.06em; }
.hero__word-r { left: calc(var(--frame-x) + var(--frame-w) + var(--word-gap)); }
.hero__word .char { display: inline-block; }

/* Stacked (phones, portrait tablets): the whole word sits above the bottle */
.hero--stacked .hero__word {
  inset: calc(var(--nav-h) + 6px) 0 auto;
  display: flex; justify-content: center;
}
.hero--stacked .hero__word-l, .hero--stacked .hero__word-r { position: static; margin-top: 0; }
.hero--stacked .hero__word-r { margin-right: -0.06em; }

.seq-canvas, .seq-static {
  position: absolute; inset: 0; z-index: 1;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;   /* notes: lets the white backdrop become the page grey */
}
/* Hero: the canvas (and the reduced-motion still) is exactly the frame box, and its
   edges dissolve into the page through a radial mask — no box edge, no hard splash cut. */
.hero__canvas, .hero .seq-static {
  inset: auto;
  left: var(--frame-x); top: var(--frame-y);
  width: var(--frame-w); height: var(--frame-h);
  object-fit: contain; mix-blend-mode: normal;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at center, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at center, #000 60%, transparent 100%);
}
.seq-static[hidden] { display: none; }

.hero__variants {
  position: absolute; z-index: 2;
  left: var(--gutter); top: 0; bottom: 0;
  display: grid; align-content: center; gap: clamp(14px, 2vw, 24px);
}
.variant { display: grid; justify-items: center; gap: 12px; }
.variant__img {
  width: 90px; height: 120px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.variant__img img { height: 70%; width: auto; max-width: 72%; object-fit: contain; }
.variant__name { font-size: var(--fs-small); letter-spacing: 0.3em; text-transform: uppercase; margin-right: -0.3em; }
@media (hover: hover) {
  .variant:hover .variant__img { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(23, 22, 28, 0.08); }
}

.hero__aside {
  position: absolute; z-index: 3;
  right: var(--gutter); top: 64%;         /* lower third, editorial */
  width: max-content;
  display: grid; gap: 22px;
}
.hero__line {
  max-width: 220px;
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 0.84rem + 0.1vw, 0.9375rem);   /* 14 → 15px */
  line-height: 1.6;
  color: var(--muted);
}
.hero__aside .circle-btn { font-size: 12px; white-space: nowrap; }
.hero__aside .circle-btn__ring { width: 48px; }

.hero__hint {
  position: absolute; z-index: 3; left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink);
  margin-right: -0.3em;
  white-space: nowrap;
}
.hero__hint i { width: 1px; height: 24px; background: var(--accent); transform-origin: top; animation: hint 2.2s var(--ease) infinite; }
@keyframes hint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 767px), (max-width: 1023px) and (orientation: portrait) {
  .hero__variants { top: auto; bottom: calc(150px + env(safe-area-inset-bottom)); gap: 12px; }
  .variant__img { width: 46px; height: 61px; }
  .variant__name { font-size: 10px; }
  .hero__aside {
    top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); left: var(--gutter); right: var(--gutter);
    width: auto;
    grid-template-columns: 1fr auto; align-items: center; gap: 16px;
    padding: 16px 16px 16px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
  }
  .hero__aside .circle-btn__label { display: none; }
  .hero__line { font-size: 13px; max-width: none; }
}

/* =========================================================================
   3. SIGNATURE COLLECTION
   ========================================================================= */
.collection {
  --pad: clamp(20px, 5vw, 80px);
  padding-inline: var(--pad);
  /* Curtain: main.js pulls this section up over the pinned hero for the hero's last 15%,
     so it needs to paint above it, on the page grey. */
  position: relative; z-index: 2;
  background: var(--bg);
}
.collection--curtain::before {                 /* soft leading edge, so no line shows over the hero */
  content: ""; position: absolute; left: 0; right: 0; top: -14svh; height: 14svh;
  background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0), var(--bg));
  pointer-events: none;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  max-width: 1440px; margin: 0 auto;
  perspective: 1200px;
}
.card { transform-style: preserve-3d; }
.card__arch {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--arch);
  border: 1px solid transparent;            /* oxblood appears on hover only */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), var(--bg-2));
  transform-style: preserve-3d;
  transition: border-color 0.5s var(--ease);
}
.card__arch::after {             /* soft contact shadow on the shared baseline */
  content: ""; position: absolute; left: 24%; right: 24%; bottom: 12%; height: 4%;
  border-radius: 50%; background: rgba(23, 22, 28, 0.2); filter: blur(10px);
}
/* Images are trimmed to the bottle, so height = the glass itself. Every bottle is 68% of the
   card tall, standing on a baseline 14% above the bottom edge (cap ≥ 18% below the arch top).
   Wide bottles are capped at 80% of the card width and simply come out a little shorter. */
.card__bottle {
  position: absolute; z-index: 1;
  left: 0; right: 0; bottom: 14%; margin: 0 auto;
  height: 68%; width: auto; max-width: 80%;
  object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 18px 24px rgba(23, 22, 28, 0.12));
}
.card__meta { display: grid; justify-items: center; gap: 4px; margin-top: 22px; text-align: center; }
.card__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.6rem);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.card__price { color: var(--muted); letter-spacing: 0.08em; }
.card__price span { color: inherit; font-weight: inherit; }
@media (hover: hover) { .card:hover .card__arch { border-color: var(--accent); } }

@media (max-width: 1023px) and (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
}
@media (max-width: 767px) {
  .cards {
    display: flex; gap: clamp(16px, 2vw, 32px);
    margin: 0 calc(var(--pad) * -1);
    padding: 8px var(--pad) 24px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 min(68vw, 300px); scroll-snap-align: center; }
}

/* =========================================================================
   4. THE ART OF FINE FRAGRANCE
   ========================================================================= */
.art.section { padding-bottom: 2svh; }   /* the notes heading below already sits nav + 2svh into its stage */
.art {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(3rem, 7vw, 9rem);
  max-width: 1440px; margin: 0 auto;
}
.art__media { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; }
.art__circle { position: absolute; inset: 0; overflow: hidden; clip-path: circle(50% at 50% 50%); }
.art__circle img { width: 100%; height: 100%; object-fit: cover; }
.art__ring { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; overflow: visible; }
.art__ring circle { fill: none; stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }

.art__text { max-width: 560px; }
.art__text .display-2, .moment__text .display-2 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.4rem); }
.art__text .eyebrow { margin-bottom: 1.4em; }
.art__text .display-2 { margin-bottom: 0.8em; }
.art__p { color: var(--muted); font-size: var(--fs-lead); margin-bottom: 1.2em; line-height: 1.75; }
.art__sign { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-serif-i); color: var(--accent); margin-top: 1.6em; }

@media (max-width: 767px) {
  .art { grid-template-columns: 1fr; }
  .art__media { width: 86%; }
  .art__text { text-align: center; margin: 0 auto; }
}

/* =========================================================================
   5. THE ESSENCE (notes)
   ========================================================================= */
.notes__stage {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--bg);    /* one shared pearl grey everywhere (frame 1 corners: #E5EAE8, ≈ identical) */
  isolation: isolate;
}
.notes__head { position: absolute; z-index: 3; top: calc(var(--nav-h) + 2svh); left: 0; right: 0; text-align: center; padding: 0 var(--gutter); }
.notes__head .eyebrow { margin-bottom: 0.8em; }

/* Frame box: position/size written by main.js (layoutNotes). It starts below the heading
   and grows to ~80% of the viewport height once the heading has faded (transform only). */
.notes__visual {
  position: absolute; z-index: 1;
  left: var(--nv-x, 10vw); top: var(--nv-y, 20svh);
  width: var(--nv-w, 80vw); height: var(--nv-h, 60svh);
  transform-origin: 50% 0;
}
.notes__visual .seq-canvas, .notes__visual .seq-static {
  inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  /* Darken: the ring behind shows through the empty grey but not through the glass or
     the ingredients — it reads as an orbit *behind* the composition. */
  mix-blend-mode: darken;
  /* Soft radial dissolve like the hero, stretched vertically because the floating cap
     and the base touch the top/bottom of the source frame; a short linear fade softens
     any ingredient the source itself cuts at the top or bottom edge. */
  -webkit-mask-image: radial-gradient(ellipse 60% 110% at center, #000 55%, transparent 100%), linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 60% 110% at center, #000 55%, transparent 100%), linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
.notes__ring {
  position: absolute; z-index: 0; left: 50%; top: 50%;
  width: var(--ring-d, 90%); height: var(--ring-d, 90%);
  transform: translate(-50%, -50%) rotate(-90deg);
  max-width: none;               /* the orbit is wider than the frame box */
  overflow: visible; pointer-events: none;
}
.notes__ring circle {
  /* viewBox is set to the ring's pixel size by main.js, so 1 unit = 1px and the
     pathLength-based dash (draw-on) behaves (non-scaling-stroke would break it) */
  fill: none; stroke: var(--accent); stroke-opacity: 0.4; stroke-width: 1;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.notes__visual .seq-canvas { z-index: 1; }

/* Labels: tiny oxblood tag + italic note name, a hairline connector to the ingredient.
   Left/top and connector length are set by main.js from the ingredient anchors. */
.notes__list { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.note { position: absolute; display: flex; align-items: center; gap: 12px; transform: translateY(-50%); }
.note--top, .note--base { flex-direction: row-reverse; }
.note__line { width: var(--line-w, 80px); height: 2px; overflow: visible; flex: none; }
.note__line path { fill: none; stroke: var(--accent); stroke-opacity: 0.7; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.note__body {
  display: grid; gap: 4px;
  /* no pill: a soft halo in the section colour keeps it legible over the ingredients */
  text-shadow: 0 0 10px var(--bg), 0 0 18px var(--bg), 0 0 2px var(--bg);
}
.note--heart .note__body { text-align: left; }
.note--top .note__body, .note--base .note__body { text-align: right; }
.note__tier { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.note__name { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.15; color: var(--ink); white-space: nowrap; }

/* Stacked (phones, portrait tablets): no connectors, a clean list under the canvas */
.notes--stacked .notes__head .display-3 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.notes--stacked .notes__visual .seq-canvas, .notes--stacked .notes__visual .seq-static {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at center, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 70% at center, #000 55%, transparent 100%);
}
.notes--stacked .notes__list {
  inset: auto var(--gutter) calc(18px + env(safe-area-inset-bottom));
  max-width: 420px; margin-inline: auto;
  display: grid; gap: 12px;
}
.notes--stacked .note {
  position: static; transform: none;
  flex-direction: row; justify-content: center;
}
.notes--stacked .note__line { display: none; }

/* Phones: the frame is drawn full-bleed (width = screen width), so only the top and bottom
   need fading (10%); main.js adds a hairline 4% side fade inside the canvas as a safety net.
   Section colour = notes-m frame 1's left/right edge pixels at mid-height (#E7EAE8), eased
   in from / out to the page grey at the very top and bottom of the section. */
.notes--phone.notes__stage {
  background: linear-gradient(180deg, var(--bg) 0, #E7EAE8 10svh, #E7EAE8 90svh, var(--bg) 100%);
}
.notes--phone .notes__visual .seq-canvas {
  mix-blend-mode: normal;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.notes--phone .notes__visual .seq-static {        /* reduced motion: same width-fit look */
  mix-blend-mode: normal;
  object-fit: cover; object-position: 50% 35%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%), linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%), linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}
.notes--phone .notes__ring { display: none; }
.notes--phone .notes__head { text-shadow: 0 0 12px var(--bg), 0 0 24px var(--bg); }
/* TOP / HEART / BASE as one centred row so all three fit under an ~80svh canvas */
.notes--phone .notes__list {
  inset: auto var(--gutter);
  max-width: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px;
}
.notes--phone .note__name { font-size: clamp(14px, 4.1vw, 17px); white-space: normal; line-height: 1.15; }
.notes--phone .note { align-items: flex-start; }      /* tags line up even when a name wraps */
.notes--stacked .note__body { text-align: center; gap: 2px; }
.notes--stacked .note__name { font-size: 18px; }

/* =========================================================================
   6. THE ULTIMATE COLLECTION — 3D carousel
   ========================================================================= */
.ultimate { position: relative; z-index: 2; background: var(--bg); }   /* may rise over the notes pin's empty bottom band */
.ultimate__stage {
  position: relative;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: calc(var(--nav-h) + 8px) 0 clamp(16px, 3svh, 32px);   /* heading right under the nav */
  overflow: hidden;
  background: var(--bg);
}
.ultimate .section-head { padding: 0 var(--gutter); margin-bottom: 48px; }   /* ≥48px above the tallest cap */
.ultimate .section-head .eyebrow { margin-bottom: 1em; }
.ultimate .display-2 { font-size: clamp(1.8rem, 1rem + 2.4vw, 3.5rem); }
@media (min-width: 768px) { .ultimate .display-2 { white-space: nowrap; } }

/* Cylinder of six: positions are projected in main.js (rotateY(i·60°), perspective 1600px)
   and written as 2D transforms so z-index can order them. Its height = the front bottle's. */
.carousel {
  position: relative;
  flex: none; width: 100%; height: var(--ch, 300px);
  perspective: 1600px;
  touch-action: pan-y;          /* vertical page scroll stays native; we read horizontal swipes */
  user-select: none; -webkit-user-select: none;
}
.carousel__ring { position: absolute; inset: 0; }
.carousel__item {
  position: absolute; left: 50%; top: 0;
  width: var(--cw, 200px); height: var(--ch, 250px);
  margin-left: calc(var(--cw, 200px) / -2);
  transform-origin: 50% 100%;      /* scale from the base: every bottle stands on one baseline */
}
/* Soft floor shadow under the front bottle only (fades out while rotating) */
.carousel__shadow {
  position: absolute; left: 50%; bottom: calc(var(--ch, 250px) * 0.055);
  width: calc(var(--cw, 200px) * 0.7); height: calc(var(--ch, 250px) * 0.06);
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(23, 22, 28, 0.26), rgba(23, 22, 28, 0.1) 60%, transparent);
  z-index: 95; pointer-events: none;
}
.carousel__item img {
  width: 100%; height: 100%; object-fit: contain;
  object-position: 50% 100%;       /* trimmed bottles stand on the item's base */
  pointer-events: none;
  -webkit-user-drag: none;
}
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 56px); margin-top: 32px; }   /* ≥32px under the front base */
.carousel__caption { min-width: 220px; text-align: center; }
.carousel__name { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1vw, 2rem); letter-spacing: 0.16em; text-transform: uppercase; margin-right: -0.16em; }
.carousel__price { color: var(--muted); letter-spacing: 0.1em; }

@media (max-width: 767px) {
  .carousel__caption { min-width: 0; flex: 1; }
}

/* ---------- Phones: swipe carousel (built by main.js, replaces the 3D ring) ---------- */
.ultimate--swipe .ultimate__stage {          /* a normal section: no pin, no fixed height */
  height: auto;
  padding: clamp(4rem, 14vw, 6rem) 0;
  overflow: visible;
}
.ultimate--swipe .section-head { margin-bottom: 32px; }            /* heading → bottles */
.ultimate--swipe .carousel,
.ultimate--swipe .carousel__controls { display: none; }

.mcar { width: 100%; }
.mcar__track {
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-inline: 14vw;                      /* 72vw slides → neighbours peek 14vw each side */
  scrollbar-width: none;
  -webkit-tap-highlight-color: transparent;
}
.mcar__track::-webkit-scrollbar { display: none; }
.mcar__track:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.mcar__slide { flex: 0 0 72vw; margin: 0; scroll-snap-align: center; }
/* Fixed box, bottles contained and standing on the box's base (as in the signature cards) */
.mcar__box {
  height: 42svh; width: 100%;
  transform-origin: 50% 100%;
}
.mcar__box img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 100%;
  pointer-events: none; -webkit-user-drag: none; user-select: none;
}
.mcar__caption { margin-top: 24px; padding: 0 var(--gutter); text-align: center; }   /* bottles → name */
.mcar__name {
  font-family: var(--font-display); font-size: clamp(1.3rem, 5.5vw, 1.7rem);
  letter-spacing: 0.16em; margin-right: -0.16em; text-transform: uppercase; line-height: 1.2;
}
.mcar__price { color: var(--muted); letter-spacing: 0.1em; margin-top: 2px; }
.mcar__nav {
  margin-top: 20px;                          /* price → arrows/dots */
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.mcar__arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  transition: opacity 0.3s var(--ease), background-color 0.3s var(--ease);
}
.mcar__arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.mcar__arrow:active { background: var(--accent); }
.mcar__arrow:active svg { stroke: #fff; }
.mcar__arrow:disabled { opacity: 0.3; cursor: default; }
.mcar__dots { display: flex; }
.mcar__dot { width: 22px; height: 32px; display: grid; place-items: center; }   /* comfy tap target */
.mcar__dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(23, 22, 28, 0.22);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.mcar__dot.is-active::before { background: var(--accent); transform: scale(1.35); }

/* =========================================================================
   7. MADE FOR EVERY MOMENT
   ========================================================================= */
.moment.section { position: relative; z-index: 2; background: var(--bg); }   /* may rise over the pinned carousel's empty bottom band */
.moment {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center;
  gap: clamp(3rem, 6vw, 8rem);
  max-width: 1440px; margin: 0 auto;
}
.moment__text { max-width: 520px; }
.moment__text .eyebrow { margin-bottom: 1.4em; }
.moment__text .display-2 { margin-bottom: 0.7em; }
.moment__p { color: var(--muted); font-size: var(--fs-lead); line-height: 1.75; }
.moment__list { display: grid; gap: 14px; margin: 2em 0 2.6em; }
.moment__list li { position: relative; padding-left: 28px; }
.moment__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--accent);
}

.moment__cluster { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 680px; justify-self: center; }
.bubble { position: absolute; border-radius: 50%; overflow: hidden; aspect-ratio: 1; background: var(--bg-2); }
.bubble img { width: 100%; height: 100%; object-fit: cover; }
.bubble--a { width: 62%; right: 0; top: 4%; }
.bubble--b { width: 40%; left: 0; top: 36%; }
.bubble--c { width: 31%; right: 14%; bottom: 0; }
.moment__cluster::before {     /* hairline orbit behind the cluster */
  content: ""; position: absolute; left: 10%; top: 12%; width: 80%; aspect-ratio: 1;
  border: 1px solid var(--line); border-radius: 50%;
}

@media (max-width: 767px) {
  .moment { grid-template-columns: 1fr; }
  .moment__text { text-align: center; margin: 0 auto; }
  .moment__list { text-align: left; max-width: 300px; margin-inline: auto; }
}

/* =========================================================================
   8. FOOTER
   ========================================================================= */
.footer { padding: clamp(3rem, 8svh, 6rem) 0 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer__contact {
  display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: clamp(2rem, 4vw, 5rem);
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
}
.footer__contact .eyebrow { display: block; margin-bottom: 1em; }
.footer__addr { font-size: var(--fs-lead); line-height: 1.6; }
.footer__addr a { border-bottom: 1px solid var(--line); }
.newsletter__row { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.newsletter input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px;      /* 16px stops iOS zoom-on-focus */
  background: transparent; border: 0; outline: 0; color: var(--ink); padding: 8px 0;
}
.newsletter input::placeholder { color: var(--muted); }
.newsletter__done { display: none; margin-top: 10px; color: var(--accent); }
.newsletter.is-done .newsletter__done { display: block; }

.footer__gallery {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 2vw, 32px);
  padding: clamp(4rem, 8vw, 8rem) var(--gutter) clamp(2rem, 4vw, 4rem);
}
.g-item { flex: 0 0 auto; width: clamp(120px, 14vw, 230px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bg-2); }
.g-item--lg { width: clamp(160px, 20vw, 330px); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .g-item:hover img { transform: scale(1.06); } }

.footer__mark { overflow: hidden; text-align: center; line-height: 0.82; padding-top: 0.05em; }
.footer__mark span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 19vw, 22rem);
  letter-spacing: 0.04em; margin-right: -0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.footer__bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: var(--fs-small); letter-spacing: 0.08em;
}
.footer__bar nav { display: flex; gap: 24px; }
@media (hover: hover) { .footer__bar a:hover { color: var(--accent); } }

@media (max-width: 1023px) {
  .footer__contact { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .footer__contact { grid-template-columns: 1fr; text-align: center; }
  .newsletter__row { text-align: left; }
  .footer__gallery {
    justify-content: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-inline: var(--gutter);
  }
  .footer__gallery::-webkit-scrollbar { display: none; }
  .g-item { width: 38vw; scroll-snap-align: center; }
  .g-item--lg { width: 50vw; }
  .footer__bar { justify-content: center; text-align: center; }
}

/* =========================================================================
   will-change only while a section is active (toggled by ScrollTrigger)
   ========================================================================= */
.is-active .hero__word-l,
.is-active .hero__word-r,
.is-active .card,
.is-active .card__bottle,
.is-active .carousel__item img,
.is-active .bubble { will-change: transform, opacity; }

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero__hint i { animation: none; transform: scaleY(1); }
  .notes__ring circle, .note__line path { stroke-dashoffset: 0; }
}
