/* ==========================================================================
   AROMATIX: chaptered scroll story
   Palette sampled from the parfum itself: crystal mist, sea-glass, aqua
   liquid, deep teal. No gold in the interface.
   ========================================================================== */

:root {
  --mist: #eef5f3;
  --mist-2: #e3efec;
  --seaglass: #c7e5e0;
  --aqua-light: #7fd6d2;
  --aqua: #3dbab5;
  --aqua-deep: #2fa7a6;
  --teal: #127a7c;
  --deep: #0b3a3e;
  --ink: #082528;
  --night: #06191b;
  --petal: #fbfbf8;
  --text: #0b2a2d;
  --muted: #4d6a6b;
  --muted-light: #9fc7c3;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --radius-panel: clamp(20px, 3vw, 36px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

body {
  background: var(--mist);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.is-hidden { display: none; }

/* ---------- Shared type ---------- */
.giant-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(5.5rem, 25vw, 23rem);
  line-height: 0.8;
  letter-spacing: -0.045em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--mist);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.btn-dark:hover { transform: translateY(-2px); background: var(--deep); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--mist);
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.loader-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: 28px;
  letter-spacing: 0.24em;
  color: var(--teal);
}
.loader-bar-wrap { width: 180px; height: 2px; background: var(--seaglass); border-radius: 2px; overflow: hidden; }
.loader-bar { width: 0; height: 100%; background: var(--teal); transition: width 0.2s; }
.loader-percent { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  color: var(--ink);
  transition: color 0.4s;
}
.site-header.on-dark { color: var(--mist); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg { width: 22px; height: 22px; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: 17px;
  letter-spacing: 0.22em;
}

.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav-link {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover,
.nav-link.active { opacity: 1; }
.nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.7;
  transition: opacity 0.25s;
}
.btn-icon:hover { opacity: 1; }
.btn-pill {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--mist);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.4s, color 0.4s;
}
.site-header.on-dark .btn-pill { background: var(--mist); color: var(--ink); }

/* ---------- Chapters: pinned stages ---------- */
.chapter { position: relative; }
.chapter-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.chapter-bloom   { height: 300vh; z-index: 1; }
.chapter-distill { height: 350vh; z-index: 2; margin-top: -100vh; }
.chapter-spritz  { height: 250vh; z-index: 3; margin-top: -100vh; }
.chapter-notes   { height: 320vh; z-index: 4; }

.panel-rise > .chapter-sticky { border-radius: var(--radius-panel) var(--radius-panel) 0 0; }

.chapter-shade {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--night);
  opacity: 0;
  pointer-events: none;
}

.chapter-copy {
  position: absolute;
  z-index: 6;
  left: var(--gutter);
  top: clamp(96px, 20vh, 200px);
  max-width: 340px;
}
.chapter-copy .chapter-text { margin: 10px 0 20px; font-size: 15px; color: var(--muted); }
.chapter-copy.light .eyebrow { color: var(--muted-light); }
.chapter-copy.light .chapter-text { color: var(--muted-light); }

.chapter-num {
  float: left;
  margin: -6px 14px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 72px;
  line-height: 1;
  color: var(--teal);
  opacity: 0.4;
}
.chapter-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink);
}
.chapter-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.chapter-kicker span { font-weight: 400; opacity: 0.7; margin-right: 4px; }

/* ---------- Chapter 1: BLOOM ---------- */
.chapter-bloom > .chapter-sticky {
  /* Note window: arch + rail share these measurements so the rail hugs the arch */
  --arch-right: clamp(16px, 9vw, 160px);
  --arch-w: clamp(220px, 28vw, 430px);
  --dot: 52px;

  background:
    radial-gradient(ellipse 70% 60% at 50% 70%, rgba(199, 229, 224, 0.7), transparent 70%),
    var(--mist);
}

.bloom-arch {
  position: absolute;
  z-index: 0;
  right: var(--arch-right);
  bottom: 0;
  width: var(--arch-w);
  height: 74%;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--deep);
}
.arch-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch-caption {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  padding: 90px 26px 26px calc(var(--dot) / 2 + 24px);
  background: linear-gradient(to top, rgba(6, 25, 27, 0.92) 0%, rgba(6, 25, 27, 0.55) 55%, transparent 100%);
  color: var(--mist);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}
.arch-caption.out { opacity: 0; transform: translateY(12px); }
.arch-index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted-light);
}
.arch-index span { color: var(--aqua-light); }
.arch-note {
  margin: 2px 0 4px;
  font-family: var(--font-display);
  font-weight: 650;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.05;
}
.arch-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* Iridescent glass bubble: a slowly turning pink / lilac / aqua sheen inside,
   a crescent highlight, a glint, a pale rim and a soft lower reflection. */
.glass-orb {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.4) 0 42%, rgba(255, 255, 255, 0) 70%),
    #eadcff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    inset 0 0 16px rgba(170, 130, 240, 0.45),
    inset -14px -20px 34px rgba(150, 100, 220, 0.5),
    inset 12px 10px 28px rgba(140, 235, 240, 0.5),
    0 24px 44px rgba(120, 90, 170, 0.2);
}
.glass-orb::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20%;
  background: conic-gradient(from 200deg, #ffc2ec, #d6c4ff, #a8ecf4, #ffd9f2, #c4b2ff, #9fe3ee, #ffc2ec);
  filter: blur(10px);
  opacity: 0.85;
  animation: orb-sheen 10s linear infinite;
}
.glass-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 38% 21% at 64% 21%, rgba(255, 255, 255, 1) 0 30%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.85) 0 3%, rgba(255, 255, 255, 0) 9%),
    radial-gradient(ellipse 32% 14% at 34% 82%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 72%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.4) 72%, rgba(255, 255, 255, 0) 77%);
}

@keyframes orb-sheen {
  to { transform: rotate(360deg); }
}
.orb-a { width: clamp(70px, 9vw, 140px); aspect-ratio: 1; left: 9%; bottom: 16%; }
.orb-b { width: clamp(36px, 4.5vw, 70px); aspect-ratio: 1; right: 40%; top: 20%; }

#bloomWord {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 58%;
  color: var(--aqua-deep);
  transform: translate(-50%, -50%);
}

.bloom-bottle {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}
.bloom-bottle img {
  height: clamp(340px, 72vh, 860px);
  width: auto;
  filter: drop-shadow(0 40px 36px rgba(8, 37, 40, 0.28));
}

.petal-field { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.petal {
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 30px;
  border-radius: 0 100% 0 100%;
  background: radial-gradient(ellipse at 30% 25%, #ffffff 0%, var(--petal) 55%, #d5e8e4 100%);
  box-shadow: 0 6px 14px rgba(8, 37, 40, 0.14);
  will-change: transform;
}

/* Rail: dots sit ON the arch's left edge like beads, joined by a line that fills
   as you scroll. Each new image opens out of its dot, next to the caption. */
.note-rail {
  position: absolute;
  z-index: 6;
  right: calc(var(--arch-right) + var(--arch-w) - var(--dot) / 2);
  bottom: 26px;
  display: grid;
  gap: 22px;
  justify-items: end;
  --fill: 0;
}
.note-rail::before,
.note-rail::after {
  content: "";
  position: absolute;
  right: calc(var(--dot) / 2 - 1px);
  top: calc(var(--dot) / 2);
  width: 2px;
  border-radius: 2px;
}
.note-rail::before { bottom: calc(var(--dot) / 2); background: var(--seaglass); }
.note-rail::after {
  height: calc((100% - var(--dot)) * var(--fill));
  background: var(--aqua);
}
.note-rail li { position: relative; z-index: 1; }
.note-rail button {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 14px;
  text-align: right;
}
.note-rail img {
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(8, 37, 40, 0.18);
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}
.note-rail span {
  display: none; /* the arch caption names the note on larger screens */
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
  transition: color 0.3s, opacity 0.3s;
}
.note-rail li.active img {
  transform: scale(1.2);
  border-color: var(--aqua);
  box-shadow: 0 0 0 6px rgba(61, 186, 181, 0.18), 0 10px 22px rgba(8, 37, 40, 0.22);
}
.note-rail li.active span { color: var(--ink); opacity: 1; }
.note-rail button:hover img { transform: scale(1.1); }
.note-rail li.active button:hover img { transform: scale(1.2); }

.scroll-cue {
  position: absolute;
  z-index: 6;
  right: var(--gutter);
  bottom: clamp(24px, 7vh, 64px);
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue span {
  width: 1.5px; height: 34px;
  background: linear-gradient(var(--teal), transparent);
  animation: cue 1.8s var(--ease-out) infinite;
  transform-origin: top;
}

@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Chapter 2: DISTILL ---------- */
.chapter-distill > .chapter-sticky {
  background: var(--night);
  color: var(--mist);
  box-shadow: 0 -30px 80px rgba(6, 25, 27, 0.35);
}
#perfume-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.bubble-field { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bubble {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0 8%, rgba(127, 214, 210, 0.35) 30%, rgba(47, 167, 166, 0.08) 70%);
  border: 1px solid rgba(199, 229, 224, 0.45);
  will-change: transform;
}

.distill-stat {
  position: absolute;
  z-index: 6;
  right: var(--gutter);
  bottom: clamp(28px, 9vh, 90px);
  display: grid;
  justify-items: end;
  text-align: right;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1;
  color: var(--aqua-light);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* ---------- Chapter 3: SPRITZ ---------- */
.wave-edge {
  position: absolute;
  z-index: 7;
  top: 1px;
  left: 0;
  width: 100%;
  height: clamp(40px, 7vw, 100px);
  transform: translateY(-100%);
  fill: var(--mist);
  pointer-events: none;
}
.chapter-spritz > .chapter-sticky { background: var(--mist); border-radius: 0; }
.liquid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.splash-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.drop {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #e9fbf9, var(--aqua) 60%, var(--teal));
  will-change: transform, opacity;
}

.spritz-word {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 0;
  color: var(--deep);
  text-shadow: 0 10px 30px rgba(8, 37, 40, 0.18);
  will-change: transform;
}
.spritz-word .sparkle {
  position: absolute;
  top: 0.04em;
  right: -0.32em;
  font-size: 0.16em;
  color: var(--teal);
}

#spritzCopy {
  top: auto;
  bottom: clamp(28px, 9vh, 90px);
  color: var(--ink);
}

/* ---------- Chapter 4: FIND YOUR SCENT (dial + gems) ---------- */
.chapter-notes > .chapter-sticky {
  --dial: min(60vh, 38vw);
  background:
    radial-gradient(ellipse 50% 55% at 52% 58%, rgba(199, 229, 224, 0.75), transparent 70%),
    var(--mist);
}

.pour-stream {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 0;
  width: 15px;
  height: 0;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  /* Same flat colour as the bottom of the SPRITZ liquid (#liquidGrad) so the
     two streams join without a seam */
  background: #1d8f90;
}

.notes-head {
  position: absolute;
  z-index: 4;
  left: var(--gutter);
  top: clamp(84px, 13vh, 130px);
  max-width: 34vw;
}
.notes-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.notes-title .line { display: block; }
.notes-title .ch { display: inline-block; will-change: transform, opacity; }
.notes-sub { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Dial of tick marks, with the bottle in its centre */
.dial {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 56%;
  width: var(--dial);
  height: var(--dial);
  transform: translate(-50%, -50%);
}
.dial-ticks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-ticks line { stroke: var(--ink); stroke-linecap: round; transition: opacity 0.25s; }
.dial-marker {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(18, 122, 124, 0.15);
  opacity: 0;
}
.dial-count {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 14px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted);
  white-space: nowrap;
}
.dial-count span { color: var(--ink); }

/* Soft watercolour halo behind the bottle; its colour follows the active note */
.dial-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--halo) 0 36%, transparent 66%);
  filter: url("#watercolor");
  opacity: 0.8;
  transition: background 0.6s ease;
}
.dial[data-note="0"] { --halo: rgba(60, 110, 230, 0.42); }
.dial[data-note="1"] { --halo: rgba(240, 150, 190, 0.48); }
.dial[data-note="2"] { --halo: rgba(214, 166, 112, 0.46); }

/* Bottle: slides in from the left and settles in the centre (JS adds translateX) */
.dial-bottle {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.dial-bottle img {
  height: calc(var(--dial) * 0.8);
  width: auto;
  filter: drop-shadow(0 26px 26px rgba(8, 37, 40, 0.26));
}

/* Gems beside the note titles: cushion-cut stones in a prong setting
   (gem-top / gem-heart / gem-base .webp, cut from the supplied gem image) */
.gem-img {
  position: relative;
  display: block;
  width: 1.05em;
  height: 1.05em;
  object-fit: contain;
  filter: saturate(0.45) drop-shadow(0 4px 6px rgba(8, 37, 40, 0.15));
  opacity: 0.7;
  transition: transform 0.45s var(--ease-out), filter 0.45s, opacity 0.45s;
}
/* Ink bloom behind each gem: spreads in the stone's colour on hover and stays
   behind the active note (gem hover reference). */
.gem-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.gem-bloom {
  position: absolute;
  z-index: -1;
  width: 3.6em;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(118deg, transparent 36%, rgba(255, 255, 255, 0.45) 38%, transparent 41%,
      transparent 50%, rgba(255, 255, 255, 0.32) 52%, transparent 55%),
    radial-gradient(circle, var(--bloom) 0 34%, transparent 64%);
  filter: url("#inkbloom");
  opacity: 0;
  transform: scale(0.15) rotate(-12deg);
  transition: transform 0.9s var(--ease-out), opacity 0.6s ease;
  pointer-events: none;
}
.notes-list li:nth-child(1) { --bloom: rgba(52, 104, 228, 0.62); }
.notes-list li:nth-child(2) { --bloom: rgba(236, 140, 182, 0.66); }
.notes-list li:nth-child(3) { --bloom: rgba(212, 162, 108, 0.66); }
.notes-list button:hover .gem-bloom,
.notes-list li.is-active .gem-bloom {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Halo behind the bottle blooms open again each time the note changes */
.dial-halo.bloom { animation: halo-bloom 1.1s var(--ease-out); }

@keyframes halo-bloom {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.25); }
  to { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
}

.notes-list li.is-active .gem-img {
  opacity: 1;
  transform: scale(1.12) rotate(-6deg);
  filter: saturate(1.05) drop-shadow(0 8px 12px rgba(8, 37, 40, 0.3));
}
.notes-list button:hover .gem-img { opacity: 1; filter: saturate(0.9) drop-shadow(0 6px 10px rgba(8, 37, 40, 0.22)); }

/* Right-hand panel: Top / Heart / Base list + detail */
.notes-panel {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  top: 50%;
  width: min(28vw, 360px);
  transform: translateY(-40%);
}
.notes-list { margin: 10px 0 22px; }
.notes-list button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  line-height: 1.12;
  color: rgba(8, 37, 40, 0.22);
  transition: color 0.35s, transform 0.35s var(--ease-out);
}
.notes-list button:hover { color: rgba(8, 37, 40, 0.45); }
.notes-list li.is-active button { color: var(--ink); transform: translateX(6px); }
.note-detail { transition: opacity 0.25s ease, transform 0.35s var(--ease-out); }
.note-detail.out { opacity: 0; transform: translateY(10px); }
.note-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}
.note-name {
  margin: 6px 0 6px;
  font-family: var(--font-display);
  font-weight: 650;
  font-variation-settings: "SOFT" 100, "opsz" 48;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.15;
  color: var(--ink);
}
.note-text { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Acquire ---------- */
.acquire {
  position: relative;
  z-index: 5;
  padding: clamp(80px, 14vh, 150px) var(--gutter);
  background: var(--mist);
}
.acquire-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.acquire-visual {
  position: relative;
  height: clamp(360px, 62vh, 600px);
  overflow: clip;
  display: grid;
  place-items: end center;
}
.acquire-arch {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 420px);
  height: 88%;
  border-radius: 999px 999px 28px 28px;
  background: linear-gradient(180deg, var(--seaglass), var(--aqua) 140%);
}
#productHeroImg {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 96%;
  width: auto;
  filter: drop-shadow(0 30px 30px rgba(8, 37, 40, 0.28));
}
.batch-tag {
  position: absolute;
  top: 16%;
  right: 6%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.product-name {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.product-stars { font-size: 13px; color: var(--muted); }
.product-stars span { color: var(--teal); letter-spacing: 0.1em; margin-right: 6px; }
.product-desc { margin: 18px 0 28px; max-width: 460px; color: var(--muted); }
.size-label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; }
.size-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.size-btn {
  display: grid;
  gap: 2px;
  min-width: 108px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--seaglass);
  background: #fff;
  text-align: left;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.size-btn:hover { border-color: var(--aqua); }
.size-btn.active { background: var(--ink); border-color: var(--ink); color: var(--mist); }
.size-vol { font-weight: 700; font-size: 15px; }
.size-price { font-size: 12px; opacity: 0.75; }
.btn-large { padding: 16px 28px; font-size: 14px; }

/* ---------- Footer & toast ---------- */
.site-footer {
  position: relative;
  z-index: 5;
  padding: 56px var(--gutter);
  background: var(--ink);
  color: var(--mist);
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: 22px;
  letter-spacing: 0.24em;
}
.footer-tagline { margin: 6px 0 14px; color: var(--muted-light); font-size: 13px; }
.footer-copy { font-size: 11px; color: var(--muted-light); opacity: 0.7; }

.cart-toast {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--mist);
  box-shadow: 0 20px 50px rgba(6, 25, 27, 0.35);
  transform: translateY(160%);
  transition: transform 0.6s var(--ease-out);
}
.cart-toast.active { transform: translateY(0); }
.toast-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua); }
.toast-icon svg { width: 18px; height: 18px; fill: var(--ink); }

/* Fluid smoke cursor (fluid-cursor.js): full-screen, click-through, under the header */
.fluid-cursor {
  position: fixed;
  inset: 0;
  z-index: 45;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.toast-title { font-weight: 700; font-size: 14px; }
#toastDetail { font-size: 12px; color: var(--muted-light); }

/* ---------- Tablet & phone ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .chapter-copy { top: 84px; right: var(--gutter); max-width: 420px; }
  .chapter-copy .chapter-text { font-size: 14px; margin: 6px 0 14px; }
  .chapter-num { font-size: 52px; }
  .chapter-title { font-size: 22px; }

  .bloom-arch { right: 50%; transform: translateX(50%); width: 70vw; height: 52%; }
  #bloomWord { top: 50%; }
  .bloom-bottle { bottom: -4vh; }
  .bloom-bottle img { height: clamp(280px, 50vh, 560px); }
  .orb-a { left: 4%; bottom: 22%; }
  .orb-b { right: 8%; top: 38%; }
  .chapter-bloom > .chapter-sticky { --dot: 40px; }
  .note-rail {
    right: auto;
    left: var(--gutter);
    top: 290px;
    bottom: auto;
    grid-auto-flow: column;
    gap: 18px;
  }
  .note-rail::before,
  .note-rail::after { display: none; }
  .note-rail button { flex-direction: column; gap: 6px; text-align: center; }
  .note-rail span { display: block; font-size: 9px; letter-spacing: 0.14em; }
  .arch-caption { display: none; }
  .scroll-cue { display: none; }

  .distill-stat { bottom: 28px; }
  #spritzCopy { top: 84px; bottom: auto; }

  .chapter-notes > .chapter-sticky { --dial: min(74vw, 40vh); }
  .notes-head { max-width: none; right: var(--gutter); top: 80px; }
  .notes-title { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .notes-sub { margin-top: 6px; font-size: 13px; }
  .dial { top: 47%; }
  .dial-count { left: 50%; top: 100%; margin: 10px 0 0; transform: translateX(-50%); }
  .notes-panel { left: var(--gutter); right: var(--gutter); top: auto; bottom: 22px; width: auto; transform: none; }
  .notes-panel > .eyebrow { display: none; }
  .notes-list { display: flex; gap: 18px; margin: 0 0 10px; }
  .notes-list button { font-size: 1.5rem; }
  .notes-list li.is-active button { transform: none; }
  .note-name { font-size: 18px; margin: 4px 0; }
  .note-text { font-size: 13px; margin-bottom: 12px; }


  .acquire-inner { grid-template-columns: minmax(0, 1fr); }
  .acquire-visual { height: clamp(320px, 52vh, 460px); }

  .cart-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

@media (max-width: 420px) {
  .header-actions .btn-icon { width: 34px; height: 34px; }
  .brand span { font-size: 15px; letter-spacing: 0.18em; }
  .btn-pill { padding: 8px 14px; }
}

/* ---------- Reduced motion: no pinning, show each scene's settled state ---------- */
@media (prefers-reduced-motion: reduce) {
  .chapter { height: auto !important; margin-top: 0 !important; }
  .chapter-sticky { position: relative; }
  .scroll-cue span { animation: none; }
  .petal, .bubble, .drop { display: none; }
  .gem-bloom { transition: none; }
  .dial-halo.bloom { animation: none; }
  .glass-orb::before { animation: none; }
}
