/* ============================================================
   KSHN — Page layout patterns
   ============================================================ */

/* ---------------- Hero: "The Lineup" — the products ARE the hero ----------------
   No copy block. The state's flavors rise up from below the fold as a row of
   interactive 3D tins (staggered arrival, then idle float). Middle tin sits open. */
.hero {
  position: relative; color: var(--ink);
  min-height: clamp(620px, 96svh, 940px);
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.hero-deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* The cursor parallax writes `transform` on these two layers every frame and
   snapped them straight back to centre on mouseleave — the clouds visibly
   jumped. Easing the write turns that into a glide. */
@media (prefers-reduced-motion: no-preference) {
  .hero-deco, [data-parallax="clouds"] {
    transition: transform .55s cubic-bezier(.22, .61, .36, 1), opacity .55s ease-out;
  }
}
.hero-sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 70%, var(--paper-2) 100%); }
/* soft warm glow behind the products (the brand's sunset, used as a whisper) */
.hero-sun {
  position: absolute; left: 50%; top: 34%; width: min(70vw, 760px); aspect-ratio: 1;
  translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--brand-orange-rgb) / .22), rgb(var(--brand-orange-rgb) / .09) 48%, rgb(var(--glass-color-rgb) / 0) 72%);
  filter: blur(10px);
}
@media (prefers-reduced-motion: no-preference) { .hero-sun { animation: sunRise 6s var(--ease) both; } }
@keyframes sunRise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-haze { display: none; }

/* split layout: copy column left, 3D tin cluster right */
.hero-split-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; width: 100%;
  padding-block: clamp(5.5rem, 10vh, 7rem) clamp(3rem, 6vh, 4.5rem);
}
/* grid items default to min-width:auto, which lets long content force the
   column past the viewport on small phones — every split child must shrink */
.hero-split-grid > *, .formula-grid > *, .anatomy-grid > *, .split > * { min-width: 0; }
.hero-title {
  position: relative; z-index: 2;
  font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.03em;
  max-width: 15ch; margin: .7rem 0 0; text-wrap: balance;
}
.hero-sub {
  position: relative; z-index: 2;
  color: var(--ink-soft); font-weight: 500;
  font-size: clamp(.95rem, 1.4vw, 1.12rem); line-height: 1.55;
  max-width: 48ch; margin: 1rem 0 0; text-wrap: pretty;
}
.hero-hint {
  display: inline-block; margin-top: 1.6rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-hint::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--burnt); margin-right: .5em; vertical-align: middle; }
/* touch has no hover — the formula callouts render open on phones, so the
   "hover a label" hint is meaningless there */
@media (hover: none) { section[data-screen-label="Why KSHN"] .hero-hint { display: none; } }

/* the right stage: ghost wordmark behind a 3-over-2 cluster of tins */
.hero-stage3 { position: relative; height: clamp(430px, 58vh, 620px); }
.hero-stage3 .hero-clouds { position: absolute; inset: -10% -6%; z-index: 0; pointer-events: none; }
.hero-stage3 .hero-wordmark { top: 50%; font-size: clamp(4rem, 12vw, 9.5rem); }
.hero-cluster-mount, .hero3d.hero-cluster-mount { position: relative; z-index: 1; width: 100%; height: 100%; }
.hero-cluster { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; height: 100%; }
/* sequenced entrance: each tin transitions in when its model is ready
   (.is-in is granted one by one by Hero3D). Springy settle + de-blur, with
   odd/even cells sweeping in from opposite sides. */
.hero-tin {
  position: relative; opacity: 0;
  transform: translate(-4vw, 16vh) scale(.7) rotate(-10deg);
  filter: blur(10px);
  transition:
    opacity .55s var(--ease),
    filter .8s var(--ease),
    transform .95s cubic-bezier(.22, 1.36, .3, 1);
  will-change: transform, opacity, filter;
}
.hero-tin:nth-child(even) { transform: translate(4vw, 16vh) scale(.7) rotate(9deg); }
.hero-tin.is-in { opacity: 1; transform: none; filter: blur(0); }
/* blur transitions over WebGL canvases are expensive on mobile GPUs — keep
   the rise, drop the blur, shorten the travel */
@media (max-width: 880px) {
  .hero-tin, .hero-tin:nth-child(even) {
    filter: none;
    transform: translate(0, 9vh) scale(.86);
    transition: opacity .5s var(--ease), transform .7s var(--ease);
  }
  .hero-tin.is-in { filter: none; transform: none; }
}
/* 3 on the shelf, 2 nestled below — small offsets keep it organic, not gridded */
.hero-tin:nth-child(1) { grid-column: 1 / 3; grid-row: 1; translate: 0 6%; }
.hero-tin:nth-child(2) { grid-column: 3 / 5; grid-row: 1; translate: 0 -2%; }
.hero-tin:nth-child(3) { grid-column: 5 / 7; grid-row: 1; translate: 0 7%; }
.hero-tin:nth-child(4) { grid-column: 2 / 4; grid-row: 2; translate: -4% 2%; }
.hero-tin:nth-child(5) { grid-column: 4 / 6; grid-row: 2; translate: 4% 4%; }
@keyframes tinArrive {
  from { opacity: 0; transform: translateY(14vh) scale(.82) rotate(-3deg); }
  to { opacity: 1; transform: none; }
}
.hero-tin-bob { height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-tin-bob { animation: tinBob 7s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-tin { opacity: 1; transform: none; transition: none; }
}
/* the traveler's hero anchor: a stable, unanimated cell (the traveler itself
   does the entrance — an animated anchor would throw its measurements off) */
.hero-tin-slot { width: 100%; height: 100%; }
.hero-tin:has(.hero-tin-slot) { opacity: 1; transform: none; transition: none; }

/* the traveling tin: a document-absolute host pinned at its start box and
   steered per scroll frame with a compositor transform (never layout) */
.traveler {
  position: absolute; z-index: 50; pointer-events: none;
  will-change: transform;
}
/* the entrance rides the INNER bob wrapper, never the host — a transform
   animation on the host would override the steering's inline transform (CSS
   animations beat inline styles) and the tin would ignore scroll for 1.25s,
   then pop. The bob starts after the entrance so they don't fight. */
.traveler.arrive .traveler-bob { animation: travelerArrive 1s var(--ease) .25s backwards; }
.traveler model-viewer { pointer-events: auto; }
.traveler .traveler-bob { width: 100%; height: 100%; }
/* the perpetual float bob re-composites the (big, high-DPR) WebGL tin layer
   every frame — fine on desktop, a constant tax on phone GPUs. Desktop only;
   phones keep the finite entrance (base .arrive rule) then sit still. */
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  .traveler .traveler-bob { animation: travelerBob 7s ease-in-out -1.7s infinite; }
  .traveler.arrive .traveler-bob {
    animation: travelerArrive 1s var(--ease) .25s backwards, travelerBob 7s ease-in-out 1.25s infinite;
  }
}
.hero-split .hero-cta { position: relative; z-index: 2; margin-top: 1.8rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* small screens: copy stacks on top; the cluster becomes ONE centered tin
   (the traveler — it spins 360° and departs down the page on scroll) */
@media (max-width: 880px) {
  .hero { min-height: clamp(560px, 90svh, 780px); }
  .hero-split-grid { grid-template-columns: 1fr; gap: 1.2rem; padding-top: clamp(5rem, 14vw, 6rem); }
  /* a legacy rule gives .hero-copy order:1 — keep the copy above the tin */
  .hero-split .hero-copy { order: 0; }
  .hero-split .hero-stage3 { order: 1; }
  .hero-stage3 { height: clamp(360px, 56vh, 520px); }
  .hero-cluster { display: grid; place-items: center; }
  /* big, bold hero tin on phones (it travels down into the science section) */
  .hero-tin { width: min(96vw, 480px); height: 100%; translate: 0 0; grid-column: auto; grid-row: auto; }
}

/* hero content plays its entrance on load; base state is VISIBLE so it never gets stuck hidden */
.hero .anim { opacity: 1; transform: none; animation: heroUp .85s var(--ease) backwards; }
.hero .anim.d1 { animation-delay: .12s; }
.hero .anim.d2 { animation-delay: .24s; }
.hero .anim.d3 { animation-delay: .36s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } }
@media (prefers-reduced-motion: reduce) { .hero .anim { animation: none; } }

/* layout */
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(5.5rem, 10vw, 7rem) clamp(3.5rem, 6vw, 4.5rem);
}
.hero-copy { position: relative; z-index: 2; }
.hero .display { color: var(--ink); max-width: 16ch; }
.hero .lead { color: var(--ink-soft); max-width: 46ch; margin-top: 1.2rem; }
.hero .hero-cta { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.hero .hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero .hero-stats div b { font-family: var(--display); font-size: 1.6rem; display: block; }
.hero .hero-stats div span { font-size: .82rem; opacity: .9; text-transform: uppercase; letter-spacing: .1em; }
/* ---------------- Product showcase (interior pages, e.g. pouches hero) ---------------- */
.hero-showcase {
  position: relative; height: clamp(420px, 52vw, 640px);
  display: grid; place-items: center;
  padding: clamp(20px, 3vw, 36px) clamp(12px, 2vw, 28px) clamp(40px, 5vw, 56px);
}

/* ghost-type layer behind the product (parallax target; clouds removed in reskin) */
.hero-clouds { position: absolute; inset: -16% -8%; z-index: 0; will-change: transform; }
.hero-clouds .cloud { display: none; }

.hero-wordmark {
  position: absolute; left: 50%; top: 40%; translate: -50% -50%;
  font-family: var(--display); font-weight: 700; letter-spacing: -.04em;
  font-size: clamp(4rem, 13vw, 9rem); line-height: 1; color: var(--ink);
  opacity: .05;
  user-select: none; white-space: nowrap;
}

/* decorations must never steal hover from the 3D tins */
.hero-clouds, .hero-showcase .squiggle { pointer-events: none; }
.hero3d { position: relative; z-index: 1; width: 100%; height: 100%; }
@keyframes tinBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes travelerArrive {
  from { opacity: 0; transform: translateY(calc(14vh / var(--tin-s, 1))) scale(.82) rotate(-3deg); }
  to { opacity: 1; transform: none; }
}
@keyframes travelerBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(-12px / clamp(0.45, var(--tin-s, 1), 1))); }
}

/* ---------------- Function-First Formula: copy left, annotated film right ----------------
   The vertical film sits in a portrait stage; curved leader lines run from
   labels to dots that TOUCH the film (lines render above it). Hover/focus/tap
   a label for the why. */
.formula-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.formula-copy .lead { max-width: 44ch; }
.formula { position: relative; }
.formula-glow {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 0;
  width: min(720px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--brand-blue-rgb) / .22), rgb(var(--brand-blue-rgb) / .07) 55%, transparent 75%);
  filter: blur(26px);
}
.formula-stage { position: relative; z-index: 1; aspect-ratio: 700 / 800; max-width: 640px; margin-inline: auto; }
/* lines sit ABOVE the film so they visibly land on it */
.formula-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.formula-lines path {
  fill: none; stroke: var(--c-sky); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .7s var(--ease);
}
.formula.in .formula-lines path { stroke-dashoffset: 0; }
.formula.in .formula-lines path:nth-child(2) { transition-delay: .08s; }
.formula.in .formula-lines path:nth-child(3) { transition-delay: .16s; }
.formula.in .formula-lines path:nth-child(4) { transition-delay: .24s; }
.formula.in .formula-lines path:nth-child(5) { transition-delay: .32s; }
.formula.in .formula-lines path:nth-child(6) { transition-delay: .4s; }
.formula.in .formula-lines path:nth-child(7) { transition-delay: .48s; }
/* the pouch stage: a square box mid-stage that the traveling pouch docks into
   (and where the fallback pouch renders); the callout dots touch its edges */
.formula-pouch {
  /* Down 18% from 46%, to read at the product's real size against the
     annotations. Centre held at 50%/43.6% so the leader lines and dots — which
     were pulled in by the same factor — still meet its box. */
  position: absolute; left: 31%; top: 27%; width: 38%; aspect-ratio: 1;
  z-index: 1;
}
.formula-pouch model-viewer { width: 100%; height: 100%; }
/* "All Natural" is the claim the client wants carried loudest of the seven, so
   its label sits heavier and larger and its dot is bigger with a soft halo.
   The colour stays with its siblings: tinting it brand blue dropped it to a
   mid-tone on the light sky and it read as disabled rather than emphasised. */
.callout.is-key .co-label { font-weight: 800; font-size: 1.08em; letter-spacing: .005em; }
.callout.is-key .co-dot { width: 13px; height: 13px; background: var(--c-green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-green) 26%, transparent); }
.callout.is-key:hover .co-dot, .callout.is-key:focus-within .co-dot { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c-green) 22%, transparent); }

/* ---- home page rhythm --------------------------------------------------
   Every .section carried a full --sect-y (up to 140px), so any two of them put
   ~280px between their headings and the page read as a series of islands.
   Retuning the token closes every seam at once rather than patching pairs.
   Applied to every design page, not just home — the same gap was there. */
[data-flow], [data-home] { --sect-y: clamp(32px, 4vw, 64px); }

/* ---- About page: spacing only; the all-white copy lives in vibe.css, which
   loads after this file and would otherwise win. Halved again on top of the
   site-wide value. */
[data-about] { --sect-y: clamp(18px, 2.1vw, 34px); }
[data-about] .band.sunset-band { padding-block: clamp(3.5rem, 6vw, 5rem) clamp(1.2rem, 2.5vw, 2rem); }
/* the hero and the pinned science stage set their own padding */
[data-home] .anatomy { padding-bottom: clamp(24px, 3.4vw, 56px); }
/* the pouch's traveling host starts invisible (it appears at science phase 3);
   it sits ABOVE the tin so it reads as popping out of the open mouth */
.traveler.pouch-host { opacity: 0; transition: opacity .35s var(--ease); z-index: 55; }
.callout { position: absolute; inset: 0; pointer-events: none; }
.co-dot {
  position: absolute; left: var(--dx); top: var(--dy); translate: -50% -50%;
  width: 13px; height: 13px; border-radius: 50%; background: var(--c-sky);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-blue) 25%, transparent);
  pointer-events: auto; cursor: pointer; z-index: 3;
  transition: transform .2s var(--ease);
}
.callout:hover .co-dot { transform: scale(1.25); }
@media (prefers-reduced-motion: no-preference) {
  .co-dot { animation: dotPulse 2.6s ease-in-out infinite; }
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgb(var(--brand-blue-rgb) / .25); }
  50% { box-shadow: 0 0 0 9px rgb(var(--brand-blue-rgb) / .12); }
}
.co-label {
  position: absolute; left: var(--lx); top: var(--ly); translate: -50% -50%;
  pointer-events: auto; z-index: 3;
  font-family: var(--display); font-weight: 700; font-size: clamp(.85rem, 1.35vw, 1.08rem);
  color: var(--ink); line-height: 1.15; text-align: center; max-width: 12ch;
  padding: .2em .35em; border-radius: 8px;
  transition: color .2s var(--ease);
}
.co-label:hover { color: var(--burnt); }
.co-info {
  position: absolute; left: var(--lx); top: calc(var(--ly) + 2.4rem); translate: -50% 0;
  z-index: 4; width: max-content; max-width: 230px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: .6rem .8rem; font-size: .84rem; line-height: 1.45; color: var(--ink-soft);
  box-shadow: var(--sh-md); text-align: left;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.callout:hover .co-info,
.callout:focus-within .co-info,
.callout.open .co-info { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .co-dot { animation: none; }
  .co-info { transition: none; }
  .formula-lines path { stroke-dashoffset: 0 !important; transition: none; }
}

/* small screens: copy stacks on top, then the pouch + a plain annotated list */
@media (max-width: 760px) {
  .formula-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .formula-stage { aspect-ratio: auto; max-width: none; display: flex; flex-direction: column; gap: .6rem; }
  .formula-lines, .co-dot { display: none; }
  .formula-pouch { position: relative; left: auto; top: auto; width: 100%; aspect-ratio: 4 / 3; }
  .callout { position: static; pointer-events: auto; padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
  .callout:last-child { border-bottom: 0; }
  .co-label { position: static; translate: none; max-width: none; text-align: left; padding: 0; display: block; }
  .co-info {
    position: static; translate: none; opacity: 1; transform: none; pointer-events: auto;
    border: 0; box-shadow: none; background: none; padding: .15rem 0 0; max-width: none; width: auto;
  }
}

/* ---------------- Inside the Session: pinned science act ----------------
   200svh section, 100svh sticky stage; scroll scrubs the tin while the
   .acard annotations activate via .phase-N classes from use-scroll-scrub. */
/* .dark sets overflow:hidden, which would turn the section into the sticky
   containing block and kill the pin — the pin stage clips instead */
.anatomy.dark, .anatomy { min-height: 200svh; position: relative; overflow: visible; }
.anatomy-pin {
  position: sticky; top: 0; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding-block: clamp(2.5rem, 5vh, 4rem);
}
.anatomy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.anatomy-stage { position: relative; height: clamp(420px, 44vw, 580px); }
.anatomy-stage #anatomy3d-mount { position: relative; z-index: 1; width: 100%; height: 100%; }
.anatomy-glow {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--c-aqua-rgb) / .22), rgb(var(--c-teal-rgb) / .08) 55%, transparent 75%);
  filter: blur(30px);
}
.anatomy-copy .h2 { color: var(--text-light); margin-top: .7rem; }
.anatomy-cards { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.6rem; }
.acard {
  background: color-mix(in srgb, var(--glass-color) 6%, transparent); border: 1px solid var(--line-dark); border-radius: 12px;
  padding: 1rem 1.2rem; color: var(--text-light);
  opacity: .35; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.acard .ak { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--peach); margin-bottom: .35rem; }
.acard :is(h3, h4) { color: var(--text-light); font-size: 1.1rem; }
.acard p { color: color-mix(in srgb, var(--glass-color) 72%, transparent); font-size: .92rem; margin: .35rem 0 0; }
.anatomy.phase-1 .acard[data-phase="1"],
.anatomy.phase-2 .acard[data-phase="2"],
.anatomy.phase-3 .acard[data-phase="3"] { opacity: 1; transform: none; }

/* DRAW: the onset curves stroke themselves when phase 1 lands */
.onset-chart { width: 100%; height: auto; margin-top: .8rem; display: block; }
.onset-chart .oc-edible, .onset-chart .oc-kshn {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease);
}
.onset-chart .oc-kshn { transition-delay: .3s; }
.onset-chart .oc-dot { transform: scale(0); transform-origin: center; transform-box: fill-box; transition: transform .35s var(--ease) 1.4s; }
.anatomy.phase-1 .oc-edible, .anatomy.phase-1 .oc-kshn { stroke-dashoffset: 0; }
.anatomy.phase-1 .oc-dot { transform: scale(1); }

/* mobile: pinned and scrubbed EXACTLY like desktop, in a compact single
   column — one phase card visible at a time so the pin fits 100svh */
@media (max-width: 880px) {
  /* clear the sticky navbar (~5rem tall) so nothing hides behind it */
  .anatomy-pin { align-items: flex-start; padding-top: 5rem; }
  .anatomy-grid { grid-template-columns: 1fr; gap: .3rem; align-items: start; }
  /* heading + phase cards ride UP TOP (just under the navbar, always visible);
     the tin docks BELOW them, BIG, and scrubs open as you scroll */
  .anatomy-grid > .anatomy-copy { order: 0; }
  /* full-bleed + tall: the burst needs headroom and the tin needs size — a
     viewport-wide, tall stage gives the desktop-proven 262% open framing room
     to breathe while the tin still reads big. No overlap with the card. */
  .anatomy-grid > .anatomy-stage {
    order: 1; height: clamp(400px, 60svh, 580px);
    width: 100vw; margin-left: calc(50% - 50vw);
  }
  .anatomy-copy .h2 { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  /* compact the phase card so the tin gets the room */
  .anatomy-cards { position: relative; min-height: 190px; margin-top: .6rem; }
  .acard { padding: .8rem 1rem; }
  .acard p { font-size: .84rem; line-height: 1.38; }
  .acard :is(h3, h4) { font-size: 1rem; }
  /* swap-in-place: only the CURRENT phase's card is visible (stacked cards
     ghost each other's text otherwise) */
  .anatomy-cards .acard { position: absolute; left: 0; right: 0; top: 0; opacity: 0; }
  .anatomy.phase-2 .acard[data-phase="1"] { opacity: 0; transform: translateY(-10px); pointer-events: none; }
  .anatomy.phase-3 .acard[data-phase="2"] { opacity: 0; transform: translateY(-10px); pointer-events: none; }
  /* shorter chart so the phase-1 card fits small phones */
  .onset-chart { max-height: 96px; }
  /* keep the pinned content within one viewport */
  .anatomy-copy > .btn { display: none; }
}

/* reduced motion: unpinned, everything visible, curves pre-drawn */
@media (prefers-reduced-motion: reduce) {
  .anatomy { min-height: auto; }
  .anatomy-pin { position: static; min-height: auto; padding-block: var(--sect-y); align-items: center; }
  .anatomy-stage { height: clamp(340px, 70vw, 460px); }
  .anatomy-cards { min-height: 0; }
  .anatomy-cards .acard, .acard { position: static; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  .anatomy-copy > .btn { display: inline-flex; }
  .onset-chart .oc-edible, .onset-chart .oc-kshn { stroke-dashoffset: 0; transition: none; }
  .onset-chart .oc-dot { transform: scale(1); transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 880px) {
  .anatomy-grid { grid-template-columns: 1fr; }
}

/* tin cluster */
.tin-cluster { position: relative; z-index: 1; width: 100%; height: 100%; will-change: transform; perspective: 1100px; }
.tin {
  position: absolute; left: 50%; top: 50%;
  width: 46%; aspect-ratio: 1 / 1.04;
  --rot: 0deg; --scl: 1;
  transform:
    translate(calc(-50% + var(--driftX, 0px) + var(--proxX, 0px)),
              calc(-50% + var(--driftY, 0px) + var(--proxY, 0px)))
    rotate(var(--rot)) scale(var(--scl));
  transition: filter .4s var(--ease);
}
.tin__bob { width: 100%; height: 100%; transform-style: preserve-3d; }
.tin__can { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease); }

/* soft ground shadow */
.tin__shadow {
  position: absolute; left: 50%; bottom: -7%; translate: -50% 0;
  width: 78%; height: 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--shadow-color-rgb) / .5), transparent 72%);
  filter: blur(5px); z-index: -1;
}

/* cylinder side wall (V0.3 black tin; brand blue + orange rim lights) */
.tin__side {
  position: absolute; left: 4%; right: 4%; top: 30%; bottom: 5%;
  border-radius: 46% 46% 48% 48% / 16% 16% 22% 22%;
  background:
    linear-gradient(90deg, var(--near-black) 0%, var(--tin-side-2) 20%, var(--tin-side-highlight) 49%, var(--tin-side-4) 80%, var(--tin-side-edge) 100%);
  box-shadow:
    inset 0 -10px 22px color-mix(in srgb, var(--shadow-color) 50%, transparent), inset 0 6px 14px color-mix(in srgb, var(--glass-color) 5%, transparent),
    inset 13px 0 26px -10px color-mix(in srgb, var(--brand-blue) 40%, transparent), inset -13px 0 26px -12px color-mix(in srgb, var(--brand-orange) 34%, transparent);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: .35em; padding-bottom: 11%;
}
.tin__side::after { /* vertical sheen */
  content: ""; position: absolute; left: 24%; top: 0; bottom: 0; width: 14%;
  background: linear-gradient(90deg, rgb(var(--glass-color-rgb) / 0), rgb(var(--glass-color-rgb) / .16), rgb(var(--glass-color-rgb) / 0));
}
.tin__name {
  font-family: var(--display); font-weight: 700; letter-spacing: .02em;
  font-size: clamp(.6rem, 1.7vw, .92rem); color: var(--accent); white-space: nowrap;
  text-shadow: 0 1px 6px color-mix(in srgb, var(--shadow-color) 50%, transparent); z-index: 1;
}
.tin__dots {
  display: inline-flex; align-items: center; gap: .4em; z-index: 1; white-space: nowrap;
  font-family: var(--body); font-weight: 700; letter-spacing: .06em;
  font-size: clamp(.36rem, .95vw, .5rem); color: color-mix(in srgb, var(--glass-color) 72%, transparent);
}
.tin__dots i { width: .42em; height: .42em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
/* back tins are smaller — shrink their labels so nothing clips */
.tin--back .tin__name { font-size: clamp(.44rem, 1.18vw, .66rem); letter-spacing: 0; }
.tin--back .tin__dots { font-size: clamp(.3rem, .76vw, .42rem); }

/* colored gradient rim ring just under the lid */
.tin__rim {
  position: absolute; left: 2%; right: 2%; top: 24%; height: 16%;
  border-radius: 50%; background: var(--rim);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--shadow-color) 32%, transparent), 0 0 22px -4px var(--accent);
}

/* top lid ellipse with logo */
.tin__lid {
  position: absolute; left: 5%; right: 5%; top: 4%; height: 40%;
  border-radius: 50%;
  background:
    radial-gradient(120% 150% at 50% 18%, var(--tin-lid-1) 0%, var(--tin-lid-2) 58%, var(--tin-lid-3) 100%);
  box-shadow:
    inset 0 2px 4px color-mix(in srgb, var(--glass-color) 18%, transparent),
    inset 0 -6px 14px color-mix(in srgb, var(--shadow-color) 50%, transparent),
    0 6px 16px color-mix(in srgb, var(--shadow-color) 30%, transparent);
  display: grid; place-items: center; transform: translateZ(1px);
}
.tin__lid::before { /* rim highlight on lid edge */
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--glass-color) 10%, transparent);
}
.tin__lid::after { /* glossy environment reflection sweep */
  content: ""; position: absolute; left: 12%; top: 7%; width: 56%; height: 32%;
  border-radius: 50%; transform: rotate(-14deg);
  background: linear-gradient(120deg, rgb(var(--glass-color-rgb) / .5), rgb(var(--glass-color-rgb) / 0) 68%);
  filter: blur(2px); pointer-events: none;
}
.tin__logo { width: 58%; height: 58%; color: var(--text-light); opacity: .9; }

/* depth staggering — position + art transform via vars (JS drives drift/prox) */
.tin--front { width: 50%; z-index: 3; left: 56%; top: 58%; --rot: -7deg; --scl: 1; }
.tin--front .tin__shadow { filter: blur(7px); }
.tin--back  { width: 38%; z-index: 1; filter: saturate(.92) brightness(.96); }
.tin--spearmint { left: 24%; top: 34%; --rot: 9deg; --scl: .96; z-index: 2; }
.tin--citrus    { left: 76%; top: 26%; --rot: -13deg; --scl: .86; filter: blur(.4px) saturate(.9); }
.tin.is-near { filter: drop-shadow(0 0 26px color-mix(in srgb, var(--glass-color) 45%, transparent)) brightness(1.05); }

/* idle bob lives on its own layer so it never collides with art/drift/tilt transforms */
@media (prefers-reduced-motion: no-preference) {
  .tin--front .tin__bob     { animation: bobA 7s ease-in-out infinite; }
  .tin--spearmint .tin__bob { animation: bobB 8.5s ease-in-out -1.5s infinite; }
  .tin--citrus .tin__bob    { animation: bobC 9.5s ease-in-out -3s infinite; }
}
@keyframes bobA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes bobB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bobC { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-19px); } }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .hero { align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: clamp(1rem, 5vw, 2rem); padding-top: clamp(5rem, 16vw, 7rem); }
  .hero-copy { order: 1; }
  .hero-showcase { order: 2; height: clamp(300px, 64vw, 420px); margin-top: -1rem; }
  .hero-wordmark { top: 34%; }
}
@media (max-width: 560px) {
  .hero-showcase { height: 300px; }
  .tin { width: 50%; }
  .tin--front { width: 56%; left: 54%; top: 60%; }
  .tin--spearmint { left: 22%; top: 36%; }
  .tin--citrus { left: 80%; top: 30%; }
  .hero-wordmark { font-size: clamp(3.4rem, 22vw, 6rem); }
}

/* ---------------- Generic section header ---------------- */
.sect-head { max-width: 60ch; }
.sect-head.center { margin-inline: auto; text-align: center; }
.sect-head .h2 { margin-top: .7rem; }
.sect-head p { margin-top: 1rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .g-5 { grid-template-columns: repeat(3, 1fr); } .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4, .g-5 { grid-template-columns: 1fr; } }

/* the flavor carousel: a swipeable snap rail at every size, edge-faded,
   alternating rhythm, cursor-tilt cards (data-tilt via home.js) */
.lineup {
  display: flex; gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 1.4rem .4rem 1.8rem;
  margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x);
  scrollbar-width: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask-color) 4%, var(--mask-color) 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--mask-color) 4%, var(--mask-color) 96%, transparent);
}
.lineup:active { cursor: grabbing; }
.lineup::-webkit-scrollbar { display: none; }
.lineup > * { flex: 0 0 clamp(260px, 25vw, 330px); scroll-snap-align: center; }
.lineup .flavor-card { border-radius: var(--r-xl); border: 0; box-shadow: 0 16px 44px -24px color-mix(in srgb, var(--shadow-color) 35%, transparent); }

/* Pick Your Vibe — product cards on the flavor's brand gradient with the
   state's availability map behind the live 3D tin, white info bar with the
   flavor-colored name and a black SHOP pill */
.vibe-ultra {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .9rem;
  background: var(--vc-grad, var(--paper-2)); padding: 1rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.vibe-ultra:hover { transform: translateY(-6px); box-shadow: 0 26px 54px -26px color-mix(in srgb, var(--shadow-color) 45%, transparent); }
.vu-media { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.vu-media .prod-fallback { width: 78%; }
.vu-media img {
  position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain;
  transform: rotate(-12deg); opacity: 0;
  filter: drop-shadow(0 26px 26px color-mix(in srgb, var(--shadow-color) 30%, transparent));
  transition: transform .45s var(--ease), opacity .4s var(--ease);
}
.vu-media.has-photo img { opacity: 1; }
.vu-media.has-photo .prod-fallback { display: none; }
.vibe-ultra:hover .vu-media img { transform: rotate(-6deg) scale(1.05); }
/* 3D variant: a live tin model fills the media box; the state's availability
   map spans the WHOLE card behind everything — oversized, anchored right and
   bleeding off the edge as a darker shade of the same gradient (multiply),
   like the brand square renders */
.vu-map {
  position: absolute; top: -4%; left: 0; width: 100%; height: 108%;
  object-fit: contain; object-position: center;
  mix-blend-mode: multiply; opacity: .95;
  filter: brightness(.72) saturate(1.05);
  pointer-events: none;
}
.vu-media-3d, .vibe-ultra .vu-bar { position: relative; z-index: 1; }
/* push the whole 3D canvas down so the tin rides the middle of the card */
.vu-media-3d { margin-top: 13%; }
.vu-media-3d model-viewer { position: relative; z-index: 1; }
.vu-bar {
  display: flex; align-items: center; gap: .8rem;
  background: var(--paper); border-radius: 14px; padding: .85rem 1rem;
  box-shadow: 0 8px 22px -16px color-mix(in srgb, var(--shadow-color) 30%, transparent);
}
.vu-names { min-width: 0; }
.vu-flavor {
  display: block; font-family: var(--display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem;
  line-height: 1.15;
  /* accent hue pulled toward ink so light flavors (citrus, sweetmint) keep
     readable contrast on the white bar */
  color: color-mix(in srgb, var(--accent, var(--burnt)) 68%, var(--ink));
}
.vu-cat {
  display: block; margin-top: .15rem; font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 760px) {
  .vu-shop { padding: .55em .9em; font-size: .8rem; }
  .vu-bar { padding: .75rem .85rem; }
}
.vu-shop {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: .45em;
  background: var(--ink); color: var(--text-light); border-radius: 999px; padding: .62em 1.1em;
  font-family: var(--display); font-weight: 700; font-size: .85rem;
  transition: gap .25s var(--ease);
}
.vibe-ultra:hover .vu-shop { gap: .7em; }
.vu-shop svg { width: 16px; height: 16px; }
.lineup .flavor-card .fc-media { aspect-ratio: 1 / 1.06; }
.lineup .flavor-card .fc-photo { transition: transform .5s var(--ease); }
.lineup .flavor-card:hover { transform: translateY(-10px); box-shadow: 0 34px 70px -30px color-mix(in srgb, var(--shadow-color) 45%, transparent); }
.lineup .flavor-card:hover .fc-photo { transform: scale(1.07); }
.lineup .flavor-card .fc-name { font-size: 1.45rem; }
@media (prefers-reduced-motion: reduce) {
  .lineup .flavor-card:hover { transform: none; }
  .lineup .flavor-card:hover .fc-photo { transform: none; }
}
@media (max-width: 760px) { .lineup > * { flex: 0 0 78%; } }

/* journal carousel (more than three picked articles): same rail mechanics as
   the flavor lineup — swipe on mobile, arrow buttons on desktop */
.journal-rail {
  display: flex; gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-block: .5rem 1.2rem; margin-top: clamp(2rem, 4vw, 3rem);
  mask-image: linear-gradient(90deg, transparent 0, var(--mask-color) 2.5%, var(--mask-color) 97.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--mask-color) 2.5%, var(--mask-color) 97.5%, transparent 100%);
}
.journal-rail::-webkit-scrollbar { display: none; }
.journal-rail > * { flex: 0 0 clamp(280px, 28vw, 360px); scroll-snap-align: center; }
@media (max-width: 760px) { .journal-rail > * { flex: 0 0 82%; } }
.jr-nav { margin-top: .2rem; }

/* carousel nav row: pill arrows left, shop CTA right */
.lineup-nav { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; }
.lnav {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  font-size: 1.15rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.lnav:hover { background: var(--ink); color: var(--text-light); transform: translateY(-2px); }
@media (max-width: 760px) { .lnav { display: none; } .lineup-nav .btn { margin-inline: auto !important; } }

/* ---------------- Two-up / Best of both worlds ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
/* ruled diptych: two sharp panels butted at one seam, a VS pill straddling it */
.versus { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.versus .vcard { background: var(--paper-2); border: 1px solid var(--line); border-radius: 0; padding: 1.6rem 1.4rem; }
.versus .vcard + .vcard { border-left: 0; }
.versus .vc-title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .8rem; }
.versus .vcard ul li { padding: .4rem 0 .4rem 1.4rem; position: relative; font-size: .94rem; color: var(--ink-soft); }
.versus .vcard ul li::before { content: ""; position: absolute; left: 0; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); opacity: .5; }
/* DRAW: strikes draw across the smoking list when the diptych reveals.
   One line each — a wrapped item puts the strike between its lines. */
.versus .strike { text-decoration: none; white-space: nowrap; }
.versus .strike::after {
  content: ""; position: absolute; left: 1.4rem; right: 18%; top: 50%; height: 1.5px;
  background: var(--ink-soft); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.versus.in .strike:nth-child(1)::after { transform: scaleX(1); transition-delay: .35s; }
.versus.in .strike:nth-child(2)::after { transform: scaleX(1); transition-delay: .47s; }
.versus.in .strike:nth-child(3)::after { transform: scaleX(1); transition-delay: .59s; }
.versus.in .strike:nth-child(4)::after { transform: scaleX(1); transition-delay: .71s; }
.versus .vcard.win { background: var(--flavor, var(--sunset-warm)); color: var(--text-light); border-color: transparent; transition: filter .2s var(--ease); }
.versus .vcard.win:hover { filter: saturate(1.15); }
.versus .vcard.win .vc-title { color: var(--text-light); }
.versus .vcard.win ul li { color: color-mix(in srgb, var(--glass-color) 94%, transparent); }
.versus .vcard.win ul li::before { background: var(--paper); opacity: 1; }
.versus .vs-pill {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  padding: .45em .9em; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--ink);
  box-shadow: var(--sh-sm);
  transform: scale(.6); opacity: 0; transition: transform .35s var(--ease) .35s, opacity .35s var(--ease) .35s;
}
.versus.in .vs-pill { transform: scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .versus .strike::after { transform: scaleX(1) !important; transition: none; }
  .versus .vs-pill { transform: scale(1); opacity: 1; transition: none; }
  .versus .vcard.win, .versus .vcard.win:hover { filter: none; transition: none; }
}
@media (max-width: 720px) {
  .versus { grid-template-columns: 1fr; }
  .versus .vcard + .vcard { border-left: 1px solid var(--line); border-top: 0; }
  .versus .vs-pill { display: none; }
}

/* ---------------- KSHN vs. other formats — comparison matrix ----------------
   A 6-column scoreboard (format + 5 metrics). Cells are bright frosted tiles
   on the section's brand-sky wash; the KSHN row is the coloured "winner" line
   (each cell a brand hue, dark text for AA contrast). Scrolls horizontally on
   narrow screens so the full matrix survives on mobile. */
.cmp-head { max-width: 64ch; }
.cmp { margin-top: clamp(1.5rem, 4vw, 2.4rem); }
.cmp-swipe {
  display: none; margin: 0 0 .5rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--glass-color) 90%, transparent);
}
.cmp-scroll { overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.cmp-grid {
  display: grid;
  grid-template-columns: minmax(118px, 1.15fr) repeat(5, minmax(112px, 1fr));
  gap: 8px; min-width: 680px;
}
.cmp-cell {
  display: flex; flex-direction: column; justify-content: center; gap: .18rem;
  background: color-mix(in srgb, var(--glass-color) 94%, transparent); border-radius: 12px;
  padding: .78rem .85rem; min-height: 64px; color: var(--ink);
}
.cmp-cell b { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.12; }
.cmp-cell small {
  font-size: .64rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.cmp-colhead {
  background: var(--brand-blue-deep); color: var(--text-light); min-height: 0; padding: .68rem .85rem;
  font-family: var(--display); font-weight: 700; font-size: .73rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.cmp-corner { background: transparent; min-height: 0; }
.cmp-rowhead {
  background: color-mix(in srgb, var(--glass-color) 82%, transparent);
  font-family: var(--display); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .03em;
}
.cmp-cell.is-kshn {
  background: var(--k, var(--brand-blue)); color: var(--ink);
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--shadow-color) 50%, transparent);
}
.cmp-cell.is-kshn small { color: color-mix(in srgb, var(--ink) 60%, transparent); }
@media (max-width: 700px) {
  .cmp-swipe { display: block; }
}

/* ---------------- Ambient proof: one oversized pull-quote at a time ---------------- */
.proof { border-block: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.2rem) 0; }
.proof-stage { position: relative; min-height: clamp(170px, 22vw, 230px); }
.pquote {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.pquote.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pquote blockquote {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.18; letter-spacing: -.02em;
  color: var(--ink); max-width: 26ch; position: relative; padding-left: .9em;
}
.pquote blockquote::before { content: "“"; position: absolute; left: 0; top: -.08em; color: var(--burnt); }
.pquote figcaption { display: flex; align-items: center; gap: .6rem; margin-top: 1.1rem; font-size: .9rem; color: var(--ink-soft); }
.pquote figcaption .av { width: 26px; height: 26px; border-radius: 50%; background: var(--flavor, var(--sunset-warm)); flex: none; }
.pquote figcaption b { color: var(--ink); font-family: var(--display); }
.pquote figcaption i { font-style: normal; color: var(--burnt); letter-spacing: .12em; }
.proof-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.proof-dots { display: flex; gap: .5rem; }
/* 44px touch targets (a11y) — the visible dot is the ::after, the button is the hit area */
.proof-dots button { width: 44px; height: 44px; margin: -14px; padding: 0; background: none; display: grid; place-items: center; }
.proof-dots button::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.proof-dots button.on::after { background: var(--ink); transform: scale(1.2); }
.proof-tag { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
/* phones: the one-at-a-time quote is absolutely placed, so a short stage floor
   lets a long quote collide with the dots below — give it more room */
@media (max-width: 560px) { .proof-stage { min-height: 300px; } }
@media (prefers-reduced-motion: reduce) {
  .proof-stage { min-height: 0; }
  .pquote { position: static; opacity: 1; transform: none; pointer-events: auto; padding-block: 1rem; border-bottom: 1px solid var(--line); }
  .pquote:last-child { border-bottom: 0; }
  .proof-dots { display: none; }
}

/* ---------------- Checklist ---------------- */
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; }
.checklist li .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--flavor, var(--sunset-warm)); color: var(--text-light); flex: none; display: grid; place-items: center; margin-top: 2px; }
.checklist li .ck svg { width: 15px; }
.checklist li b { font-family: var(--display); font-weight: 600; }
.checklist li span { display: block; font-size: .9rem; color: var(--ink-soft); }
.dark .checklist li span { color: color-mix(in srgb, var(--glass-color) 66%, transparent); }

/* ---------------- Usage steps ---------------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
/* DRAW: a connector rules through the numerals when the row reveals */
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 2.6rem; height: 1px;
  background: var(--line); transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease) .2s; z-index: 1;
}
.steps.in::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .steps::before { transform: scaleX(1) !important; transition: none; } }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; position: relative; z-index: 2; }
/* The oversized number used to hold the top of the card and the icon sat small
   underneath it. The icon now takes that space and the copy runs directly under
   it; the number keeps its gradient but steps aside into the corner. */
.step .num {
  position: absolute; top: 1.1rem; right: 1.25rem; z-index: 1;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1; background: var(--flavor, var(--sunset-warm));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step .ic {
  width: clamp(84px, 9vw, 124px); aspect-ratio: 1; height: auto;
  margin: 0 0 1rem; color: var(--burnt);
}
.step .ic img { width: 100%; height: 100%; object-fit: contain; }
.step :is(h3, h4) { font-size: 1.15rem; }
.step p { font-size: .9rem; color: var(--ink-soft); margin: .3rem 0 0; }
.step .step-foot { display: block; margin-top: .6rem; font-size: .78rem; color: var(--ink-soft); font-style: italic; }

/* ---- Homepage ritual: no cards, one axis --------------------------------
   The steps sat on white cards with their copy left-aligned, under a centred
   section heading — so the column contents never lined up with the title
   above them. The cards are gone and everything centres on the heading's
   axis. Scoped to the homepage: the flavor pages reuse .step with their own
   cards and must keep them. */
[data-home] section[data-screen-label="How it works"] .step {
  background: none; border: 0; box-shadow: none;
  padding: 0 clamp(.4rem, 1.4vw, 1rem); text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
/* without a card there is no corner to anchor the number in, so it leads the
   column instead, centred over its icon */
[data-home] section[data-screen-label="How it works"] .step .num {
  position: static; order: 0; margin: 0 0 .65rem;
}
/* A true square the artwork cannot stretch. The tile relied on aspect-ratio
   with height:auto, which content is allowed to override — the Toss It art is
   taller than wide (133x150), so once it loaded that tile grew to 124x134 and
   dropped its title 11px below the other two. */
[data-home] section[data-screen-label="How it works"] .step .ic {
  order: 1; margin: 0 0 1.1rem;
  height: clamp(84px, 9vw, 124px); min-height: 0;
  display: grid; place-items: center; overflow: hidden;
}
[data-home] section[data-screen-label="How it works"] .step .ic img {
  width: 100%; height: 100%; min-height: 0; object-fit: contain;
}
[data-home] section[data-screen-label="How it works"] .step :is(h3, h4) { order: 2; }
[data-home] section[data-screen-label="How it works"] .step p { order: 3; max-width: 30ch; }
[data-home] section[data-screen-label="How it works"] .step .step-foot { order: 4; }
/* the connector now runs through the icon tiles, which are opaque, so it only
   shows in the gaps between them and reads as 1 -> 2 -> 3 */
[data-home] section[data-screen-label="How it works"] .steps::before {
  /* numeral height + its gap + half the icon tile, minus half the rule — the
     same clamps the numeral and tile use, so it stays centred at every width */
  top: calc(clamp(1.5rem, 2.4vw, 2.1rem) + .65rem + clamp(84px, 9vw, 124px) / 2 - 1px);
  background: color-mix(in srgb, var(--glass-color) 55%, transparent); height: 2px;
}

/* ---------------- Testimonials ---------------- */
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.quote .stars { color: var(--peach); letter-spacing: 2px; }
.quote p { font-size: 1.08rem; line-height: 1.55; font-weight: 500; }
.quote .who { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--sunset-warm); flex: none; }
.quote .who b { font-family: var(--display); display: block; }
.quote .who span { font-size: .85rem; color: var(--ink-soft); }

/* ---------------- Instagram reel ---------------- */
/* square crops auto-scroll left in a seamless loop (a live IG reel); the track
   is two identical runs, so translateX(-50%) wraps with no seam. Pauses on
   hover; falls back to a manual swipe strip under reduced motion. */
.ig-strip {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask-color) 3.5%, var(--mask-color) 96.5%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--mask-color) 3.5%, var(--mask-color) 96.5%, transparent);
}
.ig-track { display: flex; gap: 2px; width: max-content; animation: igScroll var(--ig-dur, 48s) linear infinite; }
.ig-strip:hover .ig-track { animation-play-state: paused; }
/* rounded like every other tile on the site */
.ig-cell { position: relative; flex: 0 0 auto; width: clamp(150px, 20vw, 232px); aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; }
.ig-cell .ph { border-radius: var(--r-md); height: 100%; }
.ig-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.ig-cell::after { content: ""; position: absolute; inset: 0; background: transparent; transition: .25s; }
.ig-cell:hover::after { background: color-mix(in srgb, var(--shadow-color) 22%, transparent); }
@keyframes igScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 920px) { .ig-cell { width: clamp(132px, 44vw, 200px); } }
@media (prefers-reduced-motion: reduce) {
  .ig-strip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ig-strip::-webkit-scrollbar { display: none; }
  .ig-track { animation: none; }
  .ig-cell { scroll-snap-align: start; }
}
/* Follow CTA sits below the reel (always present, not part of the loop) */
.ig-follow-row { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ---------------- Page hero band (interior pages) ---------------- */
.band { position: relative; overflow: hidden; color: var(--text-light); padding-block: clamp(7rem, 14vw, 11rem) clamp(3rem,6vw,5rem); }
.band.flavor-band { background: var(--flavor); }
/* interior heroes: deep premium band with a whisper of the brand sunset
   (overridden to the light sky under the sky skin) */
.band.sky-band, .band.sunset-band {
  background:
    radial-gradient(90% 130% at 88% -20%, rgb(var(--brand-orange-rgb) / .32) 0%, rgb(var(--brand-orange-rgb) / 0) 52%),
    radial-gradient(120% 150% at 12% 110%, rgb(var(--brand-blue-rgb) / .30) 0%, rgb(var(--brand-blue-rgb) / 0) 64%),
    var(--night);
}
.band.warm-band { background: var(--sunset-warm); }
.band .display, .band .h1 { color: var(--text-light); }
.band .lead { color: color-mix(in srgb, var(--glass-color) 95%, transparent); }
.band-art { position: absolute; right: -6%; top: 50%; translate: 0 -50%; width: min(40vw, 420px); opacity: .9; }

/* ---------------- Flavor detail product facts ---------------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts .fact { background: var(--paper); padding: 1.3rem; }
.facts .fact span { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; }
.facts .fact b { font-family: var(--display); font-size: 1.4rem; display: block; margin-top: .25rem; }

/* ============================================================
   /pouches/[flavor] — vibrant flavor pages. The body rides the blue flow
   (data-flow on <main>); the hero keeps its brand gradient; the fact / detail /
   step cards carry the ACTIVE flavor's colour via --f1..--f4 / --flavor.
   ============================================================ */
[data-flavor-root] .facts { background: color-mix(in srgb, var(--f1) 28%, var(--line)); }
[data-flavor-root] .facts .fact { background: color-mix(in srgb, var(--f1) 6%, var(--paper)); }
[data-flavor-root] .facts .fact b { color: color-mix(in srgb, var(--f1) 76%, var(--ink)); }
/* detail tiles: flavor top-bar + coloured heading + hover lift */
[data-flavor-root] .grid.g-3 .tile {
  position: relative; overflow: hidden; background: color-mix(in srgb, var(--f1) 6%, var(--paper));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
[data-flavor-root] .grid.g-3 .tile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--flavor); }
[data-flavor-root] .grid.g-3 .tile :is(h3, h4) { color: color-mix(in srgb, var(--f1) 76%, var(--ink)); }
[data-flavor-root] .grid.g-3 .tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px -26px color-mix(in srgb, var(--f1) 42%, color-mix(in srgb, var(--shadow-color) 50%, transparent)); }
[data-flavor-root] [data-others] .flavor-card { box-shadow: 0 18px 44px -26px color-mix(in srgb, var(--shadow-color) 42%, transparent); }
@media (prefers-reduced-motion: reduce) { [data-flavor-root] .grid.g-3 .tile:hover { transform: none; } }

/* ---- "Four steps. That's it." — clean cards: flavour icon chip + step number ---- */
[data-flavor-root] .steps { grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, 1.8vw, 1.4rem);
  align-items: stretch; padding-bottom: 0; }
[data-flavor-root] .steps::before { display: none; } /* no connector line */
[data-flavor-root] .step { position: relative; overflow: hidden; border: 0; display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2rem) 1.3rem clamp(1.4rem, 2.4vw, 1.7rem); border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--f1) 6%, var(--paper));
  box-shadow: 0 16px 38px -24px color-mix(in srgb, var(--f1) 42%, color-mix(in srgb, var(--shadow-color) 50%, transparent));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
[data-flavor-root] .step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--flavor); }
/* flavour-gradient icon chip with a white line-SVG */
[data-flavor-root] .step .ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px;
  margin: .1rem 0 1rem; color: var(--text-light); background: var(--flavor);
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--f1) 60%, color-mix(in srgb, var(--shadow-color) 50%, transparent));
  transition: transform .3s var(--ease); }
[data-flavor-root] .step .ic svg { width: 28px; height: 28px; }
/* step number: a subtle flavour-gradient figure in the top-right corner */
[data-flavor-root] .step .num { position: absolute; top: clamp(1rem, 2vw, 1.4rem); right: 1.2rem; margin: 0; line-height: 1;
  font-size: 1.7rem; opacity: .5; -webkit-text-stroke: 0;
  background: var(--flavor); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; }
[data-flavor-root] .step :is(h3, h4) { font-size: 1.12rem; color: color-mix(in srgb, var(--f1) 74%, var(--ink)); }
[data-flavor-root] .step p { font-size: .9rem; color: var(--ink-soft); margin-top: .35rem; }
[data-flavor-root] .step:hover { transform: translateY(-6px);
  box-shadow: 0 28px 48px -26px color-mix(in srgb, var(--f1) 46%, color-mix(in srgb, var(--shadow-color) 50%, transparent)); }
[data-flavor-root] .step:hover .ic { transform: scale(1.06) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) { [data-flavor-root] .step:hover, [data-flavor-root] .step:hover .ic { transform: none; } }
@media (max-width: 860px) { [data-flavor-root] .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { [data-flavor-root] .steps { grid-template-columns: 1fr; } }

/* ---------------- Legal documents (Privacy, Terms) ---------------- */
.legal { max-width: 800px; margin-inline: auto; color: var(--ink); }
.legal-updated { margin-top: 1rem; font-size: .9rem; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.legal h2 {
  font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  margin: 2.4rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.02rem; font-weight: 700; margin: 1.3rem 0 .4rem; color: var(--ink); }
.legal p { font-size: .98rem; line-height: 1.7; color: var(--ink-soft); margin: .6rem 0; }
.legal ul { margin: .6rem 0 .6rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.legal li { font-size: .98rem; line-height: 1.6; color: var(--ink-soft); list-style: disc; }
.legal a { color: var(--crimson); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal .legal-ack {
  margin-top: 2.4rem; padding: 1.1rem 1.3rem; border-radius: var(--r-md);
  background: var(--paper-2); font-weight: 600; color: var(--ink); line-height: 1.6;
}

/* ingredient cards (dark) */
.ing-card { position: relative; overflow: hidden; background: linear-gradient(180deg, rgb(var(--glass-color-rgb) / .09), rgb(var(--glass-color-rgb) / .045)); border: 1px solid color-mix(in srgb, var(--glass-color) 16%, transparent); border-radius: var(--r-md); padding: 1.6rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.ing-card .n { width: 44px; height: 44px; border-radius: 12px; background: var(--flavor, var(--sunset-warm)); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--text-light); margin-bottom: 1rem; }
.ing-card :is(h3, h4) { color: var(--text-light); font-size: 1.15rem; }
.ing-card p { color: color-mix(in srgb, var(--glass-color) 88%, transparent); font-size: .92rem; margin-top: .5rem; line-height: 1.55; }

/* ---------------- About · Science rework: onset race + proof steps ---------------- */
.proof-grid { list-style: none; margin: 0; padding: 0; }
.ing-card.proof { padding-top: 1.9rem; }
.ing-card.proof > * { position: relative; z-index: 1; }
.ing-card.proof:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--glass-color) 30%, transparent); box-shadow: 0 22px 46px -26px color-mix(in srgb, var(--shadow-color) 60%, transparent); }
.ing-card.proof:focus-within { border-color: color-mix(in srgb, var(--glass-color) 30%, transparent); }
.proof--feature { border-color: color-mix(in srgb, var(--brand-teal) 40%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-teal) 18%, transparent); }
/* Same language as the homepage ritual steps: the visual leads the card, the
   copy sits under it and the number steps into the corner instead of holding
   the whole top of the card. */
/* `.ing-card.proof > *` sets position:relative at (0,2,0) and was beating a
   plain .ghost-num rule — the `right` offset then nudged the number LEFT
   instead of anchoring it to the corner. */
.ing-card.proof > .ghost-num {
  position: absolute; top: .9rem; right: 1.1rem; left: auto; z-index: 1;
  font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--glass-color) 42%, transparent);
  pointer-events: none;
}
.proof-ic {
  display: grid; place-items: center;
  width: clamp(72px, 7.5vw, 104px); aspect-ratio: 1;
  padding: clamp(12px, 1.3vw, 18px); margin: 0 0 1rem;
  border-radius: clamp(20px, 2.2vw, 28px); background: var(--sky-grad);
  color: var(--text-light); box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--shadow-color) 45%, transparent);
}
.proof-ic svg { width: 100%; height: 100%; }
/* card 2's droplet is its visual — same tile as its siblings so the three
   cards read as one set */
.ing-card.proof .droplet {
  margin: 0 0 1rem; height: clamp(72px, 7.5vw, 104px);
  width: clamp(72px, 7.5vw, 104px); justify-content: center; gap: .35rem;
  padding: clamp(10px, 1.1vw, 15px);
  border-radius: clamp(20px, 2.2vw, 28px); background: var(--sky-grad);
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--shadow-color) 45%, transparent);
}
.ing-card.proof .droplet .drop-big { background: var(--paper); }
.ing-card.proof .droplet .drop-mist i { background: color-mix(in srgb, var(--glass-color) 85%, transparent); }
.ing-card.proof .droplet .drop-arrow { background: color-mix(in srgb, var(--glass-color) 60%, transparent); }
.kchip { display: inline-block; margin-top: 1.1rem; padding: .42em .9em; border-radius: 999px; background: var(--brand-blue-deep); color: var(--text-light); font-family: var(--display); font-weight: 700; font-size: .74rem; letter-spacing: .02em; }
/* droplet: one big drop shatters into nano-mist */
.droplet { display: flex; align-items: center; gap: .55rem; height: 34px; margin: .9rem 0 .1rem; }
.drop-big { flex: none; width: 24px; height: 28px; background: var(--brand-teal); border-radius: 60% 60% 55% 55% / 70% 70% 45% 45%; }
.drop-arrow { flex: none; position: relative; width: 20px; height: 2px; background: color-mix(in srgb, var(--glass-color) 40%, transparent); }
.drop-arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border-left: 6px solid color-mix(in srgb, var(--glass-color) 40%, transparent); border-block: 4px solid transparent; }
.drop-mist { display: inline-flex; align-items: center; gap: 5px; }
.drop-mist i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-teal); opacity: .85; }
.drop-mist i:nth-child(even) { width: 5px; height: 5px; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .proof-grid.in .drop-mist i { animation: mistFloat 2.6s var(--ease) infinite; }
  .proof-grid.in .drop-mist i:nth-child(2) { animation-delay: .15s; }
  .proof-grid.in .drop-mist i:nth-child(3) { animation-delay: .3s; }
  .proof-grid.in .drop-mist i:nth-child(4) { animation-delay: .45s; }
  .proof-grid.in .drop-mist i:nth-child(5) { animation-delay: .6s; }
  .proof-grid.in .drop-mist i:nth-child(6) { animation-delay: .75s; }
}
@keyframes mistFloat { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: .95; } }

/* the onset race */
.onset-race { max-width: 720px; margin-top: clamp(2rem, 5vw, 3.4rem); }
.race-lane-row { display: grid; grid-template-columns: 148px 1fr 74px; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.race-name { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-light); font-family: var(--display); font-weight: 600; font-size: .96rem; }
.race-lane-row--muted .race-name { color: color-mix(in srgb, var(--glass-color) 90%, transparent); }
.race-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-teal) 20%, transparent); }
.race-dot--edible { background: color-mix(in srgb, var(--glass-color) 45%, transparent); box-shadow: none; }
.race-track { position: relative; height: 14px; border-radius: 999px; background: color-mix(in srgb, var(--glass-color) 14%, transparent); }
.race-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; }
.race-fill--kshn { background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal)); transition: width 1.2s var(--ease); }
.race-fill--edible { background: color-mix(in srgb, var(--glass-color) 30%, transparent); transition: width 3.8s linear; }
.onset-race.in .race-fill--kshn { width: 28%; }
.onset-race.in .race-fill--edible { width: 100%; }
/* inhaled methods hit near-instant — short bars (min width keeps them visible) */
.race-fill--dab, .race-fill--joint { background: color-mix(in srgb, var(--glass-color) 30%, transparent); transition: width 1s var(--ease); }
.onset-race.in .race-fill--dab { width: 4%; }
.onset-race.in .race-fill--joint { width: 7%; }
.race-flag { position: absolute; left: 28%; top: 50%; translate: 8px -50%; white-space: nowrap; opacity: 0; background: var(--crimson); color: var(--text-light); font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: .02em; padding: .32em .7em; border-radius: 999px; transition: opacity .45s var(--ease) 1s; }
.onset-race.in .race-flag { opacity: 1; }
.race-time { text-align: right; color: var(--text-light); font-family: var(--display); font-weight: 700; font-size: .9rem; }
.race-time b { display: block; font-size: 1.3rem; line-height: 1; }
.race-lane-row--muted .race-time { color: color-mix(in srgb, var(--glass-color) 90%, transparent); }
.race-scale { display: grid; grid-template-columns: 148px 1fr 74px; }
.race-scale .ticks { grid-column: 2; display: flex; justify-content: space-between; color: color-mix(in srgb, var(--glass-color) 90%, transparent); font-size: .72rem; }
.race-caption { margin-top: 1.4rem; color: color-mix(in srgb, var(--glass-color) 92%, transparent); font-size: .96rem; max-width: 60ch; }
.race-caption b { color: var(--text-light); }
@media (prefers-reduced-motion: reduce) {
  .race-fill, .race-flag { transition: none; }
}
@media (max-width: 620px) {
  .race-lane-row { grid-template-columns: 1fr auto; grid-template-areas: "name time" "track track"; row-gap: .5rem; }
  .race-name { grid-area: name; }
  .race-time { grid-area: time; }
  .race-track { grid-area: track; }
  .race-time b { display: inline; font-size: 1rem; }
  .race-scale { grid-template-columns: 1fr; }
  .race-scale .ticks { grid-column: 1; }
  .ghost-num { font-size: 5rem; }
}

/* ---------------- Contact · FAQ: color-coded masonry accordion ----------------
   19 answers, each tagged with a brand color (--fqc set inline per card);
   native <details> so it needs no JS. Cards flow in CSS columns like the
   gallery masonry. */
.faq-legend { display: flex; gap: .6rem 1.2rem; flex-wrap: wrap; justify-content: center; margin-top: 1.2rem; }
.faq-legend span {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--display); font-weight: 600; font-size: .82rem; color: var(--ink-soft);
}
.faq-legend span::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--fqc); }
.faq-masonry { columns: 3 300px; column-gap: 1rem; max-width: 1080px; margin-inline: auto; }
.faq-card {
  break-inside: avoid; margin-bottom: 1rem; border-radius: var(--r-md);
  background: var(--paper); border-left: 5px solid var(--fqc);
  box-shadow: var(--sh-sm); overflow: hidden;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.faq-card:hover { box-shadow: 0 16px 34px -20px color-mix(in srgb, var(--fqc) 65%, var(--shadow-color)); transform: translateY(-2px); }
.faq-card summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1rem 2.6rem 1rem 1.15rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink);
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after {
  content: ""; position: absolute; right: 1rem; top: 1.05rem; width: 20px; height: 20px;
  border-radius: 50%; background: color-mix(in srgb, var(--fqc) 16%, var(--paper));
  /* the plus: two strokes drawn with gradients so it animates to a minus */
  background-image:
    linear-gradient(var(--fqc), var(--fqc)),
    linear-gradient(var(--fqc), var(--fqc));
  background-repeat: no-repeat;
  background-size: 10px 2px, 2px 10px;
  background-position: center, center;
  transition: transform .3s var(--ease);
}
.faq-card[open] summary::after { transform: rotate(45deg); }
.faq-card summary:focus-visible { outline: 3px solid var(--fqc); outline-offset: -3px; border-radius: var(--r-md); }
.faq-card p { padding: 0 1.15rem 1.1rem; margin: 0; font-size: .93rem; color: var(--ink-soft); line-height: 1.55; }
.faq-foot { text-align: center; margin-top: 2rem; color: var(--ink-soft); font-size: .95rem; }
/* links inside the FAQ match the surrounding text exactly (client request) —
   only a plain underline marks them as links */
.faq-link { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .faq-card, .faq-card summary::after { transition: none; }
  .faq-card:hover { transform: none; }
}

/* shared brand color-bar — cohesion device across Science + Values */
.kbar { display: inline-block; width: 64px; height: 4px; margin-top: 1.1rem; border-radius: 2px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal) 55%, var(--brand-orange)); }

/* ---------------- About · Values rework ---------------- */
/* (the gradient underline under these headings was removed on client request) */
.values-head { position: relative; display: inline-block; }
/* each value carries its own brand color (blue / orange / green): fat top
   color-bar, gradient icon coin, big outline ghost numeral, and a playful
   sticker tilt that straightens + lifts on hover */
.value-tile {
  position: relative; overflow: hidden; padding-top: 2.6rem; border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), rotate .3s var(--ease), background .35s var(--ease);
}
.values-grid .value-tile:nth-child(1) { --vc1: var(--brand-blue); --vc2: var(--brand-blue-deep); rotate: -1.2deg; }
.values-grid .value-tile:nth-child(2) { --vc1: var(--brand-orange); --vc2: var(--orange-deep); }
.values-grid .value-tile:nth-child(3) { --vc1: var(--value-green); --vc2: var(--c-forest); rotate: 1.2deg; }
.value-tile::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--vc1), var(--vc2));
}
.value-tile:hover {
  rotate: 0deg; transform: translateY(-6px);
  background: color-mix(in srgb, var(--vc1) 9%, var(--paper));
  box-shadow: 0 26px 50px -26px color-mix(in srgb, var(--vc1) 60%, transparent);
}
.value-folio {
  position: absolute; top: -.12em; right: .08em; z-index: 0; pointer-events: none;
  font-family: var(--display); font-weight: 800; font-size: 5.4rem; line-height: 1;
  color: color-mix(in srgb, var(--vc1) 88%, transparent); -webkit-text-stroke: 0;
}
.value-tile > * { position: relative; z-index: 1; }
.value-ic {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(140deg, var(--vc1), var(--vc2)); color: var(--text-light);
  box-shadow: 0 12px 24px -12px var(--vc1), inset 0 0 0 2px color-mix(in srgb, var(--glass-color) 28%, transparent);
  rotate: -6deg; margin-bottom: 1.1rem;
  transition: rotate .3s var(--ease), scale .3s var(--ease);
}
.value-tile:hover .value-ic { rotate: 4deg; scale: 1.08; }
.value-ic svg { width: 28px; height: 28px; }
@media (prefers-reduced-motion: reduce) {
  .value-tile, .values-grid .value-tile:nth-child(1), .values-grid .value-tile:nth-child(3) { rotate: 0deg; transition: none; }
  .value-tile:hover { transform: none; }
  .value-ic { transition: none; }
}

/* ---------------- About · Mission video placeholder ----------------
   Enlarged to hold a real 16:9 film: the mission row gives the tile the wider
   column and the tile takes a 16:9 frame. Stacks full-width on small screens. */
.mission-split { grid-template-columns: 1fr 1.4fr; }
@media (max-width: 820px) { .mission-split { grid-template-columns: 1fr; } }
.mission-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; box-shadow: var(--sh-lg); background: radial-gradient(120% 140% at 78% 8%, rgb(var(--glass-color-rgb) / .35) 0%, rgb(var(--glass-color-rgb) / 0) 62%), linear-gradient(165deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%); }
.mission-video::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 90% at 50% 40%, transparent, rgb(var(--shadow-color-rgb) / .5)); pointer-events: none; }
.mv-play { position: absolute; z-index: 2; top: 50%; left: 50%; translate: -50% -50%; width: clamp(66px, 9vw, 88px); height: clamp(66px, 9vw, 88px); border-radius: 50%; display: grid; place-items: center; color: var(--text-light); background: color-mix(in srgb, var(--glass-color) 16%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--glass-color) 55%, transparent); backdrop-filter: blur(6px); transition: transform .3s var(--ease), background .3s var(--ease); }
.mv-play svg { width: 36%; height: 36%; margin-left: 9%; }
.mv-play::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--glass-color) 32%, transparent); }
.mission-video:hover .mv-play { transform: translate(-50%, -50%) scale(1.06); background: color-mix(in srgb, var(--glass-color) 26%, transparent); }
.mv-tag { position: absolute; z-index: 2; left: 0; bottom: 0; padding: clamp(1.1rem, 2.6vw, 1.7rem); color: var(--text-light); }
.mv-tag .eyebrow { color: var(--brand-teal); }
.mv-tag b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); margin-top: .3rem; letter-spacing: -.01em; }
@media (prefers-reduced-motion: no-preference) {
  .mv-play::before { animation: mvPulse 2.8s var(--ease) infinite; }
}
@keyframes mvPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }

/* ---------------- Locations ---------------- */
.loc-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 880px) { .loc-wrap { grid-template-columns: 1fr; }
  /* phones: the decorative map was ~560px+ of dead space, and the list's own
     560px scroll box trapped the page scroll — let both size to content */
  .loc-map { min-height: clamp(300px, 42vh, 420px); }
  .loc-list { max-height: none; overflow: visible; }
}
.loc-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.loc-search { padding: 1.1rem; border-bottom: 1px solid var(--line); display: flex; gap: .5rem; }
.loc-search .input { padding: .7em 1em; }
.loc-list { max-height: clamp(520px, 72vh, 780px); overflow-y: auto; }
/* rows are real <button>s (keyboard + screen-reader reachable) */
.loc-item { width: 100%; text-align: left; align-items: center; font-size: inherit; color: inherit; padding: 1.1rem; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; display: flex; gap: .8rem; }
.loc-item:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.loc-item:hover, .loc-item.active { background: var(--flavor-soft); }
.loc-item .pin { width: 34px; height: 34px; border-radius: 10px; background: var(--flavor, var(--sunset-warm)); color: var(--text-light); flex: none; display: grid; place-items: center; }
.loc-item .pin svg { width: 18px; }
.loc-item b { font-family: var(--display); display: block; }
.loc-item small { color: var(--ink-soft); font-size: .85rem; }
/* carried flavors (admin-managed per store) */
.loc-flavors { display: flex; flex-wrap: wrap; gap: .3rem .55rem; margin-top: .4rem; }
.loc-fl { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-soft); }
.loc-fl i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.loc-item .dist { margin-left: auto; font-weight: 700; color: var(--burnt); font-size: .85rem; white-space: nowrap; }
.loc-map { position: relative; min-height: clamp(560px, 72vh, 780px); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 32%, var(--line)); box-shadow: 0 30px 62px -34px color-mix(in srgb, var(--shadow-color) 42%, transparent);
  background:
    radial-gradient(circle at 20% 22%, rgb(var(--brand-teal-rgb) / .34), transparent 40%),
    radial-gradient(circle at 82% 30%, rgb(var(--brand-orange-rgb) / .18), transparent 40%),
    radial-gradient(circle at 68% 78%, rgb(var(--value-green-rgb) / .22), transparent 44%),
    radial-gradient(120% 90% at 90% 100%, rgb(var(--brand-blue-rgb) / .30), transparent 55%),
    repeating-linear-gradient(0deg, rgb(var(--brand-blue-rgb) / .07) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgb(var(--brand-blue-rgb) / .07) 0 1px, transparent 1px 46px),
    linear-gradient(180deg, var(--map-bg-1), var(--map-bg-2));
}
/* the Leaflet canvas fills the framed map panel; the gradient behind it shows
   while tiles load (and if the map never loads, as a graceful backdrop) */
.loc-map .loc-canvas { position: absolute; inset: 0; z-index: 1; background: transparent; }
/* neutral ground so a partially-loaded tile grid reads as a map, not as the
   decorative gradient bleeding through */
.loc-map .leaflet-container { width: 100%; height: 100%; background: var(--map-tile-bg); font: inherit; }
.loc-map .leaflet-control-attribution { font-size: .68rem; background: color-mix(in srgb, var(--glass-color) 82%, transparent); }
/* brand pin (a divIcon, so it inherits the design's colors) */
.kshn-pin { color: var(--crimson); transition: transform .2s; }
.kshn-pin svg { width: 30px; height: 30px; filter: drop-shadow(0 3px 5px color-mix(in srgb, var(--shadow-color) 30%, transparent)); }
.kshn-pin:hover, .kshn-pin.active { transform: scale(1.25); z-index: 2; }
.kshn-pin.active { color: var(--burnt); }
.loc-empty, .loc-loading { padding: 3rem 1.4rem; text-align: center; color: var(--ink-soft); }
.loc-map .map-load { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--ink-soft); background: color-mix(in srgb, var(--glass-color) 72%, transparent); backdrop-filter: blur(2px); z-index: 3; }
.loc-map .map-load[hidden] { display: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--burnt); margin: 0 auto 1rem; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* store-locator: coloured clouds drift behind the (bigger) map, a legend + live
   store count sits above it, and the panel/map ride above the cloud layer */
.loc-sec { position: relative; isolation: isolate; overflow: hidden; }
.loc-sec > .wrap { position: relative; z-index: 1; }
.loc-clouds { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.loc-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.2rem; }
.loc-badge { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--brand-blue-deep); background: color-mix(in srgb, var(--brand-blue) 12%, var(--paper));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-blue) 24%, transparent); padding: .5em 1em; border-radius: 999px; }

/* Market switch under the legend. The header toggle is easy to miss, and a
   visitor looking at another state's shops can read that as "not sold here". */
.loc-markets { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .8rem; margin-top: .9rem; }
.lm-label {
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft);
}
.lm-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.lm-opt {
  font-family: var(--display); font-weight: 700; font-size: .92rem;
  padding: .5em 1.05em; min-height: 42px; border-radius: 999px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.lm-opt:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); }
.lm-opt.on { background: var(--brand-blue-deep); color: var(--text-light); border-color: transparent; }
.loc-badge .lb-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 4px color-mix(in srgb, var(--crimson) 22%, transparent); }
.loc-count { font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--ink); }
.loc-count b { color: var(--brand-blue-deep); }


/* ---------------- News ---------------- */
.feat-post { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
@media (max-width: 820px) { .feat-post { grid-template-columns: 1fr; } }
.feat-post .fp-body { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .35em .8em; border-radius: var(--r-pill); background: var(--flavor-soft); color: var(--crimson); }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.post-card .pc-body { padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem; }
.post-card h3 { font-size: 1.25rem; }
.post-card .meta { font-size: .85rem; color: var(--ink-soft); }
/* editorial variant (home journal): sharp blocks, title underline grows on hover */
.post-card.edge { border-radius: 0; }
.post-card.edge h3 { display: inline; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%; transition: background-size .35s var(--ease); }
.post-card.edge:hover h3 { background-size: 100% 2px; }

/* ============================================================
   /pouches — interactive flavor-lineup hero + all-circle system.
   The tin lineup fires the documented flavor-wash (applyFlavorVars → --f1..--f4),
   so the halo and heading bar retint live. Motion transform/opacity only.
   ============================================================ */
.flavor-hero { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(620px, 92svh, 880px); display: flex; align-items: center; text-align: center; padding-block: clamp(4rem, 9vh, 6.5rem); }
/* colored flavor hue removed per design — the hero sits on the page flow; only
   the .fh-bar under the title still retints per flavor. */
.flavor-hero .fh-wash { display: none; }
.flavor-hero .fh-halo { display: none; }
.fh-inner { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.fh-eyebrow { color: var(--brand-blue-deep); }
/* the lineup eyebrow sits on white — same AA-safe blue as the hero eyebrow */
#lineup .eyebrow { color: var(--brand-blue-deep); }
.fh-title { font-size: clamp(2.6rem, 7vw, 5rem); line-height: .98; letter-spacing: -.03em; margin: .3rem 0 0; color: var(--ink); }
.fh-bar { display: inline-block; width: clamp(72px, 12vw, 104px); height: 5px; border-radius: 3px; margin: 1rem 0 .2rem; transition: background .6s var(--ease);
  background: linear-gradient(90deg, var(--f1, var(--brand-blue)), var(--f2, var(--brand-teal)) 40%, var(--f3, var(--brand-orange)) 74%, var(--f4, var(--sunset-red-orange))); }
.fh-lead { color: var(--ink-soft); max-width: 46ch; margin: .3rem auto 0; }

/* drifting cloud layer — more clouds behind the dial (reuses the vibeCross drift) */
.fh-clouds { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fh-cloud { position: absolute; left: 0; -webkit-mask: url("/design/vibe/cloud-solid.svg") no-repeat center / contain; mask: url("/design/vibe/cloud-solid.svg") no-repeat center / contain; background: var(--cloud-c, var(--brand-teal)); aspect-ratio: 54 / 25; }
.fh-cloud--1 { width: clamp(150px, 19vw, 320px); top: 7%; opacity: .85; }
.fh-cloud--2 { width: clamp(100px, 13vw, 220px); top: 23%; opacity: .75; }
.fh-cloud--3 { width: clamp(120px, 15vw, 270px); bottom: 16%; opacity: .8; }
.fh-cloud--4 { width: clamp(90px, 11vw, 180px); top: 56%; opacity: .7; }
.fh-cloud--5 { width: clamp(110px, 14vw, 240px); top: 40%; opacity: .75; }
@media (prefers-reduced-motion: no-preference) {
  .fh-cloud { animation: kshnFloat 12s ease-in-out infinite alternate; animation-delay: var(--cdl, 0s); will-change: transform; }
  /* delays span the full cycle so the five clouds sit spread left→right across
     the whole hero at any moment (never bunched on one side) as they drift */
  .fh-cloud--1 { --cd: 150s; --cdl: -16s; }
  .fh-cloud--2 { --cd: 168s; --cdl: -53s; }
  .fh-cloud--3 { --cd: 158s; --cdl: -74s; }
  .fh-cloud--4 { --cd: 176s; --cdl: -120s; }
  .fh-cloud--5 { --cd: 162s; --cdl: -140s; }
}

/* ---- Flavor lineup: the five real tins stand side by side on a shelf.
   Hovering/focusing a tin (or the idle auto-cycle) lifts it and fires the
   flavor-wash (applyFlavorVars → --f1..--f4), so the hero halo and heading bar
   retint together. Names stay visible; the active one lights up. Transform/opacity only. */
.flavor-lineup { display: flex; flex-wrap: nowrap; align-items: flex-end; justify-content: center; gap: clamp(.35rem, 1.8vw, 1.4rem);
  margin: clamp(1.4rem, 4vw, 2.4rem) auto .2rem; padding: 1.8rem .5rem .4rem; max-width: 900px; }
/* flex:1 1 0 + a max-width keeps all five tins on ONE line at every width
   (they shrink together, never wrap); the active one lifts above its neighbours */
.fl-tin { flex: 1 1 0; min-width: 0; max-width: clamp(96px, 15vw, 172px); position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: .55rem; text-decoration: none; }
.fl-tin:hover, .fl-tin:focus-visible, .fl-tin.is-on { z-index: 3; }
.fl-stage { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; isolation: isolate; }
/* flavor-colour spotlight behind the active tin */
.fl-stage::before { content: ""; position: absolute; inset: 6%; z-index: 0; border-radius: 50%; filter: blur(18px); opacity: 0;
  transition: opacity .35s var(--ease), background .6s var(--ease);
  background: radial-gradient(circle, color-mix(in srgb, var(--f1, var(--brand-teal)) 55%, transparent), transparent 68%); }
/* soft ground shadow the tin sits on — light, so no dark blob reads behind it */
.fl-stage::after { content: ""; position: absolute; left: 50%; bottom: 1%; translate: -50% 0; width: 52%; height: 12px; z-index: 0;
  border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgb(var(--shadow-color-rgb) / .14), transparent 72%); filter: blur(4px);
  transition: width .35s var(--ease), opacity .35s var(--ease); }
.fl-prod { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transform-origin: bottom center;
  transition: transform .35s var(--ease), filter .35s var(--ease); filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--shadow-color) 14%, transparent)); }
.fl-tin:hover .fl-prod, .fl-tin:focus-visible .fl-prod, .fl-tin.is-on .fl-prod {
  transform: translateY(-14px) scale(1.12); filter: drop-shadow(0 18px 24px color-mix(in srgb, var(--shadow-color) 22%, transparent)); }
.fl-tin:hover .fl-stage::before, .fl-tin:focus-visible .fl-stage::before, .fl-tin.is-on .fl-stage::before { opacity: 1; }
.fl-tin:hover .fl-stage::after, .fl-tin:focus-visible .fl-stage::after, .fl-tin.is-on .fl-stage::after { width: 46%; opacity: .68; }
.fl-name { font-family: var(--display); font-weight: 700; font-size: clamp(.72rem, 1.5vw, .86rem); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft); transition: color .25s var(--ease); }
.fl-tin:hover .fl-name, .fl-tin:focus-visible .fl-name, .fl-tin.is-on .fl-name { color: var(--brand-blue-deep); }
.fl-tin:focus-visible { outline: 3px solid var(--brand-blue-deep); outline-offset: 4px; border-radius: 14px; }

.fd-note { margin: 1.4rem auto 0; font-family: var(--display); font-size: .95rem; color: var(--ink); min-height: 1.4em; }
.fd-note b { color: var(--brand-blue-deep); }
.fh-cta { margin-top: clamp(1.2rem, 3.5vw, 2rem); display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .fl-prod { transition: filter .2s linear; }
  .fl-tin:hover .fl-prod, .fl-tin:focus-visible .fl-prod, .fl-tin.is-on .fl-prod { transform: none; filter: drop-shadow(0 20px 26px color-mix(in srgb, var(--shadow-color) 42%, transparent)); }
}

/* circular flavor card (Pick Your Vibe grid on /pouches) */
.flavor-card.fcc { text-align: left; }
.flavor-card.fcc .fcc-media { aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: var(--fc-grad); }
.fcc-prod { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.flavor-card.fcc:hover .fcc-prod { transform: scale(1.05); }
.fcc-go { position: absolute; top: .9rem; right: .9rem; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--glass-color) 92%, transparent); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: .3s var(--ease); box-shadow: var(--sh-sm); z-index: 3; }
.flavor-card.fcc .fcc-go svg { width: 1.15em; height: 1.15em; }
.flavor-card.fcc:hover .fcc-go { opacity: 1; transform: none; }
.fc-notes { font-size: .82rem; color: var(--ink-soft); line-height: 1.4; }
.fc-dots { display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; }
.fc-dots i { width: 15px; height: 15px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--glass-color) 60%, transparent), 0 1px 3px color-mix(in srgb, var(--shadow-color) 25%, transparent); }
@media (prefers-reduced-motion: reduce) { .flavor-card.fcc:hover .fcc-prod { transform: none; } }

/* "Mystery flavor" tile — closes the lineup grid, links to the suggestion form */
.mystery-card .fcc-media.mystery-media { display: grid; place-items: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand-blue) 18%, var(--paper)), color-mix(in srgb, var(--brand-teal) 28%, var(--paper))); }
.mystery-card .fcc-media.mystery-media::before { content: ""; position: absolute; inset: 14px; border-radius: 16px;
  border: 2px dashed color-mix(in srgb, var(--brand-blue) 45%, transparent); transition: inset .35s var(--ease), border-color .3s var(--ease); }
.mystery-card:hover .fcc-media.mystery-media::before { inset: 10px; border-color: color-mix(in srgb, var(--brand-blue) 70%, transparent); }
.mystery-q { position: relative; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 9vw, 5rem); line-height: 1;
  color: color-mix(in srgb, var(--brand-blue-deep) 60%, var(--text-light)); transition: transform .35s var(--ease); }
.mystery-card:hover .mystery-q { transform: scale(1.08); }
.mystery-card .fc-name { color: var(--brand-blue-deep); }
.mystery-card .fc-meta .fc-mg { font-weight: 700; color: var(--brand-blue-deep); }
@media (prefers-reduced-motion: reduce) { .mystery-card:hover .mystery-q { transform: none; } }

/* benefit feature cards — icon · stat · title · detail, coloured per benefit */
.benefit-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.9rem, 2vw, 1.4rem); }
.bcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
  padding: clamp(1.2rem, 2.4vw, 1.7rem); border-radius: var(--r-lg); background: color-mix(in srgb, var(--glass-color) 92%, transparent); overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc1) 22%, transparent), 0 16px 34px -22px color-mix(in srgb, var(--shadow-color) 45%, transparent);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.bcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--bc1), var(--bc2)); }
.bcard-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-top: .2rem;
  background: linear-gradient(140deg, var(--bc1), var(--bc2)); box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--bc1) 70%, color-mix(in srgb, var(--shadow-color) 50%, transparent)); }
.bcard-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--text-light); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bcard-stat { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1; color: color-mix(in srgb, var(--bc1) 80%, var(--ink)); margin-top: .35rem; }
.bcard-title { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.bcard-body { font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.bcard:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc1) 40%, transparent), 0 26px 46px -24px color-mix(in srgb, var(--bc1) 45%, color-mix(in srgb, var(--shadow-color) 50%, transparent)); }
@media (prefers-reduced-motion: reduce) { .bcard:hover { transform: none; } }

/* This Season's Best Sellers — display-shelf cards (CSS placeholder until a photo is uploaded in the dashboard) */
.best-sellers .bs-eyebrow { color: var(--brand-blue-deep); letter-spacing: .18em; }
.bs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 3rem); max-width: 720px; margin: clamp(2rem, 4vw, 3rem) auto 0; }
.bshelf { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
.bshelf-media { position: relative; width: 100%; aspect-ratio: 3 / 5; border-radius: var(--r-lg); overflow: hidden;
  background: color-mix(in srgb, var(--brand-blue) 8%, var(--paper)); box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--shadow-color) 50%, transparent); }
.bshelf-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bshelf-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 7%; padding: 12% 14%;
  background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--brand-blue) 10%, var(--paper))); }
.bshelf-ph b { font-family: var(--display); font-weight: 800; letter-spacing: .05em; font-size: clamp(1rem, 3vw, 1.5rem);
  color: color-mix(in srgb, var(--brand-blue-deep) 62%, var(--text-light)); }
.bshelf-ph i { display: block; width: 100%; height: 17%; border-radius: 8px; background: color-mix(in srgb, var(--brand-blue) 13%, var(--paper));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-blue) 22%, transparent); }
.bshelf-ph em { margin-top: auto; font-style: normal; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--brand-blue-deep) 55%, var(--text-light)); }
.bshelf figcaption { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.bshelf-name { font-family: var(--display); font-size: clamp(1.1rem, 2.6vw, 1.35rem); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.bshelf-str { font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .05em; color: var(--brand-blue-deep);
  background: color-mix(in srgb, var(--brand-blue) 12%, var(--paper)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-blue) 22%, transparent);
  padding: .42em .95em; border-radius: 999px; }
@media (max-width: 520px) { .bshelf-media { aspect-ratio: 3 / 4.6; } }

/* flavor-suggestion form card */
.suggest-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: 0 26px 60px -32px color-mix(in srgb, var(--shadow-color) 45%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--brand-blue) 12%, transparent); }

/* contact page: a cut-out lifestyle figure anchored to the bottom-right for life */
.contact-sec { position: relative; overflow: hidden; }
@media (min-width: 981px) { .contact-sec { min-height: 640px; } }
.contact-sec > .wrap { position: relative; z-index: 1; }
/* in front of the (sparse) bottom-right area so she reads as a clear feature */
.contact-figure { position: absolute; right: clamp(0px, 3vw, 64px); bottom: 0; z-index: 2; pointer-events: none;
  width: clamp(260px, 30vw, 460px); height: auto; filter: drop-shadow(0 20px 32px color-mix(in srgb, var(--shadow-color) 28%, transparent)); }
@media (max-width: 980px) { .contact-figure { display: none; } }

/* news packaging showcase — the "Elevate Every Experience" render */
.np-split { align-items: center; }
.news-pack .np-media { margin: 0 auto; max-width: 420px; }
.news-pack .np-media img { display: block; width: 100%; height: auto; border-radius: var(--r-lg);
  box-shadow: 0 36px 72px -32px color-mix(in srgb, var(--shadow-color) 55%, transparent); transition: transform .4s var(--ease); }
.news-pack .np-media:hover img { transform: translateY(-6px) rotate(-.6deg); }
@media (prefers-reduced-motion: reduce) { .news-pack .np-media:hover img { transform: none; } }

/* FAQ section surface — a light brand wash so the colour-coded tiles pop
   (overrides the [data-flow] blue so the tiles aren't lost on blue-on-blue) */
.faq-sec { background: linear-gradient(180deg, color-mix(in srgb, var(--brand-blue) 6%, var(--paper)) 0%, color-mix(in srgb, var(--brand-teal) 15%, var(--paper)) 100%) !important; }

/* Education page: full-bleed image banner + the four-step ritual */
.edu-banner { line-height: 0; }
.edu-banner img { display: block; width: 100%; height: auto; }

/* Pouching-101 hero: the vertical panels stuck edge-to-edge, scrolling forever */
.edu-carousel { overflow: hidden; width: 100%; line-height: 0; background: var(--bg-footer); }
.ec-track { display: flex; width: max-content; }
.ec-slide { height: clamp(340px, 48vh, 580px); width: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .ec-track { animation: ecScroll 55s linear infinite; will-change: transform; }
  .edu-carousel:hover .ec-track { animation-play-state: paused; }
}
@keyframes ecScroll { to { transform: translateX(-50%); } }
/* the panels auto-scroll infinitely on EVERY device (mobile included). Only
   reduced-motion falls back to a manual swipe strip. */
@media (prefers-reduced-motion: reduce) {
  .edu-carousel { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .ec-track { animation: none; }
  .ec-slide { scroll-snap-align: center; }
}
.edu-steps { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.9rem, 2vw, 1.4rem); }
.edu-steps li { position: relative; display: flex; flex-direction: column; gap: .3rem; overflow: hidden;
  background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.2rem, 2.4vw, 1.7rem);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 22%, transparent), 0 16px 34px -22px color-mix(in srgb, var(--shadow-color) 45%, transparent); }
.edu-steps li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--sc); }
.edu-steps .es-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .5rem;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--text-light); background: var(--sc); }
.edu-steps b { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.edu-steps li span:last-child { font-size: .9rem; line-height: 1.45; color: var(--ink-soft); }
@media (max-width: 760px) { .edu-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .edu-steps { grid-template-columns: 1fr; } }

/* CTA flavor spectrum */
.cta-orbits { display: flex; justify-content: center; gap: .7rem; margin-bottom: 1.4rem; }
.cta-orbits i { width: 26px; height: 26px; border-radius: 50%; display: block; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--shadow-color) 60%, transparent), inset 0 0 0 2px color-mix(in srgb, var(--glass-color) 35%, transparent); }
/* the five official flavor colors (Guidelines V0.3 secondary palette) */
.cta-orbits i:nth-child(1) { background: linear-gradient(135deg, var(--sunset-red-orange), var(--crimson)); }
.cta-orbits i:nth-child(2) { background: linear-gradient(135deg, var(--value-green), var(--c-forest)); }
.cta-orbits i:nth-child(3) { background: linear-gradient(135deg, var(--c-magenta), var(--c-purple)); }
.cta-orbits i:nth-child(4) { background: linear-gradient(135deg, var(--c-aqua), var(--c-teal)); }
.cta-orbits i:nth-child(5) { background: linear-gradient(135deg, var(--c-gold), var(--cloud-orange)); }
@media (prefers-reduced-motion: no-preference) {
  .cta-orbits i { animation: ctaBob 3.2s var(--ease) infinite; }
  .cta-orbits i:nth-child(2) { animation-delay: .18s; }
  .cta-orbits i:nth-child(3) { animation-delay: .36s; }
  .cta-orbits i:nth-child(4) { animation-delay: .54s; }
  .cta-orbits i:nth-child(5) { animation-delay: .72s; }
}
@keyframes ctaBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 760px) { .benefit-cards { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 460px) { .benefit-cards { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .flavor-lineup { gap: .35rem .5rem; padding-top: 1.2rem; } .fl-tin { width: clamp(64px, 17.5vw, 96px); } }
/* small phones: five tins in one row crush below ~54px and the names collide —
   wrap to a 3+2 grid so each tin stays legible and names never overlap */
@media (max-width: 430px) {
  .flavor-lineup { flex-wrap: wrap; justify-content: center; gap: .7rem .4rem; }
  .fl-tin { flex: 0 0 28%; max-width: 30%; }
  .fl-name { white-space: nowrap; }
}
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { padding: .45em .9em; border-radius: var(--r-pill); font-weight: 600; font-size: .85rem; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: .2s; }
.pill:hover, .pill.on { background: var(--ink); color: var(--text-light); box-shadow: none; }
@media (pointer: coarse) { .pill { min-height: 44px; display: inline-flex; align-items: center; } }

/* article */
.article { max-width: 720px; margin-inline: auto; }
.article p { margin: 1.2rem 0; font-size: 1.12rem; line-height: 1.7; }
.article h2 { margin: 2.4rem 0 1rem; }
.article blockquote { border-left: 4px solid var(--burnt); padding-left: 1.2rem; margin: 1.8rem 0; font-size: 1.3rem; font-family: var(--display); font-weight: 500; }
/* CMS article bodies can hold arbitrary tables / code / embeds — keep them from
   overflowing the phone viewport (body clips overflow-x, which hides content) */
.article :is(table, pre) { display: block; max-width: 100%; overflow-x: auto; }
.article img { height: auto; }
.article iframe, .article video { max-width: 100%; }

/* About timeline */
.timeline { display: grid; gap: 1.2rem; }
.tl { display: grid; grid-template-columns: 110px 1fr; gap: 1.4rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.tl .yr { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--burnt); }
.tl :is(h3, h4) { margin-bottom: .3rem; }
.tl p { color: var(--ink-soft); margin: 0; }
@media (max-width: 560px) { .tl { grid-template-columns: 1fr; gap: .4rem; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-row .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--flavor-soft); color: var(--burnt); display: grid; place-items: center; flex: none; }
.info-row b { font-family: var(--display); display: block; }
.info-row span { color: var(--ink-soft); font-size: .92rem; }
/* Contact: the accounts as tappable targets rather than one text link. Sized
   to the 44px minimum for touch, and a little over it. */
.contact-socials { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .6rem; }
.contact-socials a {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .22s var(--ease), background .22s var(--ease),
              color .22s var(--ease), box-shadow .22s var(--ease);
}
.contact-socials a:hover, .contact-socials a:focus-visible {
  background: var(--brand-blue-deep); color: var(--text-light);
  box-shadow: none; transform: translateY(-2px);
}
.contact-socials svg { width: 21px; height: 21px; display: block; }

/* ============================================================
   ABOUT — client round 2: clouds everywhere, absorption journey,
   lifestyle photos, peeking Kushy Yeti.
   ============================================================ */
/* drifting-cloud layer inside hero bands / content sections. Unlike the
   pouches hero (.fh-clouds, z-index:-1), bands paint their own background, so
   the layer sits at z:0 with the .wrap content lifted above it. */
.band-clouds { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.band > .wrap { position: relative; z-index: 1; }
.has-clouds { position: relative; overflow: hidden; }
.has-clouds > .wrap { position: relative; z-index: 1; }

/* ---- Life, pouched: lifestyle photo grid ---- */
.life-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, 1.6vw, 1.2rem); margin-top: clamp(2rem, 4vw, 3rem); }
.life-card { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--shadow-color) 40%, transparent); }
.life-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.life-card:hover img { transform: scale(1.06); }
.life-card figcaption {
  position: absolute; left: .7rem; right: .7rem; bottom: .7rem;
  background: color-mix(in srgb, var(--glass-color) 92%, transparent); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: .85rem;
  padding: .5rem .75rem; border-radius: 10px;
}
/* editorial rhythm: alternate cards drop slightly on wide screens */
@media (min-width: 761px) {
  .life-card:nth-child(even) { translate: 0 18px; }
}
@media (max-width: 760px) { .life-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Kushy Yeti pokes his head out of the values section ---- */
.yeti-peek { position: absolute; right: 4%; bottom: -4px; width: clamp(120px, 15vw, 190px); z-index: 2; pointer-events: none; }
.yeti-peek img { width: 100%; display: block; transform: translateY(102%); transition: transform 1s cubic-bezier(.34, 1.4, .4, 1); filter: drop-shadow(0 12px 24px color-mix(in srgb, var(--shadow-color) 28%, transparent)); }
.yeti-peek.in img { transform: translateY(36%) rotate(-4deg); }
@media (prefers-reduced-motion: no-preference) {
  /* waves hello as he arrives, then settles into the idle sway */
  .yeti-peek.in img { animation: yetiWave 1.5s ease-in-out 1s 2, yetiSway 5s ease-in-out 4s infinite; }
}
@keyframes yetiSway {
  0%, 100% { transform: translateY(36%) rotate(-4deg); }
  50% { transform: translateY(31%) rotate(-1.5deg); }
}

/* ---- The absorption journey (replaces the onset-race bars) ----
   Two lanes: KSHN nano-droplets go gums -> blood -> head; an edible detours
   stomach -> liver (11-hydroxy-THC conversion) -> head. Dots stream along the
   segments; everything transform/opacity, off under reduced motion. */
/* Runs the full width of its wrap: this is the primary educational piece on
   the page, not a sidebar note. */
.absorb-journey { max-width: none; width: 100%; margin-top: clamp(2rem, 5vw, 3.2rem); display: grid; gap: 1rem; }
.aj-lane {
  background: color-mix(in srgb, var(--glass-color) 94%, transparent); border-radius: var(--r-lg);
  padding: 1.05rem 1.25rem 1.15rem;
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--shadow-color) 35%, transparent);
}
.aj-meta { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.aj-meta > b { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.aj-sub { color: var(--ink-soft); font-size: .88rem; }
.aj-time { margin-left: auto; font-family: var(--display); font-weight: 700; color: var(--journey-blue); }
.aj-time b { font-size: 1.35rem; }
.aj-lane--edible .aj-time { color: var(--edible-brown); }
.aj-flow { display: flex; align-items: flex-start; gap: .5rem; margin-top: .95rem; }
.aj-node {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); max-width: 64px; text-align: center;
}
.aj-node small { font-size: .58rem; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--ink-soft); margin-top: -2px; }
.aj-ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--paper-2); color: var(--journey-blue); box-shadow: inset 0 0 0 1.5px var(--line);
}
.aj-ic svg { width: 22px; height: 22px; }
.aj-lane--edible .aj-ic { color: var(--journey-slate); }
/* was amber on cream, which read as a warning next to its neighbours; the
   liver now wears the same white tile as the rest of the lane */
.aj-node--liver .aj-ic { color: var(--journey-slate); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.aj-node--lit .aj-ic { color: var(--text-light); background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal)); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand-blue) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .aj-node--lit .aj-ic { animation: ajGlow 2s ease-in-out infinite; }
}
@keyframes ajGlow {
  0%, 100% { box-shadow: 0 6px 16px -6px rgb(var(--brand-blue-rgb) / .6); }
  50% { box-shadow: 0 6px 22px -4px rgb(var(--brand-blue-rgb) / .95); }
}
/* connecting segments + the traveling particles */
.aj-seg { position: relative; flex: 1 1 0; min-width: 26px; height: 4px; border-radius: 2px; margin-top: 19px; background: linear-gradient(90deg, rgb(var(--brand-blue-rgb) / .28), rgb(var(--brand-teal-rgb) / .28)); overflow: visible; }
.aj-lane--edible .aj-seg { background: color-mix(in srgb, var(--shadow-color) 12%, transparent); }
.aj-seg i { position: absolute; top: 50%; left: 0; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--sky-deep); }
.aj-lane--edible .aj-seg i { width: 9px; height: 9px; margin-top: -4.5px; background: var(--edible-amber); }
@media (prefers-reduced-motion: no-preference) {
  .aj-seg i { animation: ajFlow var(--ajd, 2.1s) linear infinite; animation-delay: var(--ajdl, 0s); }
  .aj-lane--edible .aj-seg i { --ajd: 4.6s; }
}
@keyframes ajFlow {
  0% { left: -3%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.aj-note { margin: .85rem 0 0; font-size: .87rem; line-height: 1.55; color: var(--ink-soft); }
.aj-note b, .aj-note em { color: var(--ink); font-style: normal; }
@media (max-width: 560px) {
  .aj-ic { width: 36px; height: 36px; border-radius: 10px; }
  .aj-ic svg { width: 19px; height: 19px; }
  .aj-seg { margin-top: 16px; min-width: 14px; }
  .aj-node { font-size: .58rem; max-width: 54px; }
  .aj-lane { padding: .9rem .9rem 1rem; }
}

/* ---- "not an edible 10mg" ride note (site-wide education strip) ----
   The merry-go-round line: appears on home, /pouches, flavor pages, locations
   and the shared FAQ. White card so it reads on the blue flow and on paper. */
.ride-note {
  max-width: 660px; margin: clamp(1.5rem, 3vw, 2.1rem) auto 0;
  background: color-mix(in srgb, var(--glass-color) 94%, transparent); border-radius: var(--r-md);
  padding: .95rem 1.15rem; box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--shadow-color) 35%, transparent);
  text-align: left;
}
.ride-note p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ink-soft); }
.ride-note p b { color: var(--ink); }
/* left-aligned contexts (home comparison head, flavor details) keep it flush left */
.cmp-head .ride-note, [data-flavor-root] .ride-note, .flavor-shell .ride-note { margin-inline: 0; }

/* ============================================================
   EDUCATION — "Pouching 101", five interactive sections.
   Replaces the seven flat WebP panels: everything here is real
   text (indexable, translatable, editable) with the motion the
   panels only implied. Behaviour: public/design/education.js
   ============================================================ */

/* --- shared sky ground -------------------------------------------------- */
/* NOTE: the steps section is `.p101-steps`, NOT `.edu-steps` — that class is
   already taken by an unrelated 4-column white card grid further up this file.
   NOTE ON BACKGROUNDS: under the sky skin vibe.css forces sections transparent
   so the page wash shows through, and only `.edu-truth`/`.edu-design` opt out
   of that (see the :not() list there). The other three deliberately inherit
   the wash — do not add a background here expecting it to paint. */
.edu-hero, .edu-truth, .edu-design, .p101-steps, .edu-poucher {
  position: relative; overflow: hidden; color: var(--text-light);
}
.edu-hero .h2, .edu-truth .h2, .edu-design .h2, .p101-steps .h2, .edu-poucher .h2 { color: var(--text-light); }

/* --- 1 · hero ----------------------------------------------------------- */
.edu-hero { padding-block: clamp(4.5rem, 11vw, 8rem); }
.eh-sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.eh-cloud {
  position: absolute; display: block;
  -webkit-mask: url("/design/vibe/cloud-solid.svg") no-repeat center / contain;
  mask: url("/design/vibe/cloud-solid.svg") no-repeat center / contain;
  aspect-ratio: 54 / 25; background: var(--c, var(--paper)); opacity: 1;
}
.eh-cloud--1 { width: clamp(120px, 15vw, 240px); top: 12%; left: 6%;  --c: var(--c-magenta); }
.eh-cloud--2 { width: clamp(70px, 8vw, 130px);   top: 20%; right: 12%; --c: var(--c-lime); }
.eh-cloud--3 { width: clamp(150px, 19vw, 300px); bottom: -4%; left: -3%; --c: var(--c-purple); }
/* kept away from the bottom-right corner: the hand's shapes are filled with the
   flat sky colour, so a coloured cloud drifting behind it would show the fills */
.eh-cloud--4 { width: clamp(80px, 9vw, 150px);   bottom: 12%; left: 24%; --c: var(--brand-orange); }
.eh-cloud--5 { width: clamp(90px, 11vw, 180px);  top: 54%; left: 42%;  --c: var(--brand-teal); opacity: .82; }
@media (prefers-reduced-motion: no-preference) {
  .eh-cloud { animation: ehFloat var(--d, 13s) ease-in-out var(--dl, 0s) infinite; will-change: transform; }
  /* Each cloud carries its own distance and heading. A shared 14px/-18px made
     the whole sky slide as one block, which reads as a jitter, not weather. */
  .eh-cloud--1 { --d: 22s; --dx:  64px; --dy: -26px; }
  .eh-cloud--2 { --d: 17s; --dl: -3s; --dx: -48px; --dy:  20px; }
  .eh-cloud--3 { --d: 26s; --dl: -6s; --dx:  82px; --dy:  18px; }
  .eh-cloud--4 { --d: 19s; --dl: -2s; --dx: -56px; --dy: -22px; }
  .eh-cloud--5 { --d: 24s; --dl: -8s; --dx:  70px; --dy:  24px; }
}
@keyframes ehFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(var(--dx, 14px), var(--dy, -18px), 0); }
}
/* hero accent: the line-art hand presenting a pouch, bottom right.
   /design/vibe/hand-pouch.webp is white line art on transparency (derived from
   the supplied hand-pouch.png), so it needs no backing colour and sits on any
   surface. */
.eh-hand {
  position: absolute; right: clamp(.5rem, 4vw, 4.5rem); bottom: 4%;
  width: clamp(140px, 18vw, 260px); z-index: 1; pointer-events: none;
}
.eh-hand img { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .eh-hand { animation: ehFloat 9s ease-in-out -4s infinite; }
}
@media (max-width: 760px) { .eh-hand { width: 132px; right: -.5rem; opacity: .85; } }
.eh-inner { position: relative; z-index: 1; text-align: center; }
.eh-kicker {
  font-family: var(--display); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: clamp(.8rem, 1.5vw, 1.05rem);
  display: flex; gap: clamp(1.2rem, 5vw, 4rem); justify-content: center; flex-wrap: wrap; margin: 0;
}
.eh-title {
  font-family: var(--display); font-weight: 700; line-height: .92; margin: .6rem 0 0;
  font-size: clamp(2.6rem, 8vw, 5.4rem); letter-spacing: -.01em;
}
.eh-101 { display: block; font-size: clamp(4.5rem, 17vw, 12rem); line-height: .88; }
/* the banner "breathes" on hover/focus */
.eh-banner {
  position: relative; margin: clamp(2rem, 5vw, 3.4rem) auto 0; max-width: 620px;
  background: var(--paper); color: var(--ink); border-radius: 18px;
  padding: clamp(1.5rem, 3.5vw, 2.3rem) clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: 0 26px 50px -28px color-mix(in srgb, var(--shadow-color) 50%, transparent); outline: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.eh-badge {
  position: absolute; top: -.85rem; left: clamp(1.2rem, 4vw, 2.2rem);
  background: var(--c-magenta, var(--c-magenta)); color: var(--text-light); border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; padding: .42rem .95rem;
  transform: rotate(-4deg);
}
.eh-banner-copy p { margin: 0 0 .7rem; line-height: 1.5; }
.eh-banner-copy p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .eh-banner:hover, .eh-banner:focus-visible { animation: ehBreathe 3.2s ease-in-out infinite; }
  .eh-banner:hover { box-shadow: 0 34px 62px -26px color-mix(in srgb, var(--shadow-color) 55%, transparent); }
}
@keyframes ehBreathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.022) translateY(-5px); }
}

/* --- 2 · the simple truth ----------------------------------------------
   A compact scrolling infographic, laid out to the reference frame: one flat
   blue canvas, the heading up top, and the copy zig-zagging down a NARROW
   centre column (left / right / left / right) in small, low-opacity caps —
   the payoff at the bottom in full white. A couple of clouds and the hand
   bleed past the edges; a pouch sits beside stages 2 and 4. Every position is
   a percentage of the frame, so the composition scales as one picture. */
.edu-truth {
  position: relative; overflow: hidden;
  /* Flat brand blue, per the brief that the whole page and its sections be
     #13ace3. This was #0f7ba9, chosen to hold white copy above 4.5:1; on
     #13ace3 white measures 2.61:1, so the copy here no longer meets AA. */
  background: var(--brand-blue);
  /* a 2:1 frame. Set as a height, NOT aspect-ratio + min-height: once the
     min-height wins, aspect-ratio re-derives the WIDTH from it and the section
     grows past the viewport (1120px wide at 1024px). */
  height: clamp(560px, 50vw, 820px);
}
.et-canvas { position: absolute; inset: 0; z-index: 1; }

/* every placed element is centred on its (left, top) point */
.et-title, .et-stage, .et-pouch3d {
  position: absolute; translate: -50% -50%; margin: 0;
}

.et-title {
  left: 44%; top: 11%;
  width: max-content; max-width: 90vw; text-align: center;
  color: var(--text-light); letter-spacing: .01em; text-transform: capitalize;
  font-size: clamp(1.6rem, 3.1vw, 2.75rem);
}

/* --- the copy path ------------------------------------------------------ */
.et-stage {
  /* the copy sits inside a white KSHN cloud outline (::before below), so the
     box carries padding for the bumps along its top edge */
  /* The cloud's crown takes roughly the top 45% of the shape, so the copy sits
     below it: a wider box keeps the wrap short and the top pad clears the
     bumps rather than letting the first line cross the outline. */
  /* The cloud narrows toward its crown — at the height of the first line the
     shape is only ~76% of its full width — so the side padding has to clear
     the shoulders, not just the crown, or a long opening line pokes out. */
  width: min(38ch, 84vw); text-align: center;
  padding: 4.6em 3.6em 1.5em;
  isolation: isolate;
  font-size: clamp(.7rem, 1.08vw, 1rem); line-height: 1.5;
  letter-spacing: .06em; text-transform: uppercase;
  /* Full white, measured 4.68:1 on the panel — AA for normal-size text. The
     reference fades this copy back, but at 50% white it measured 1.36:1 and
     even 88% only reaches 3.99:1, which this size/weight does not qualify for.
     The hierarchy is carried by size and letter-spacing instead of opacity. */
  color: var(--text-light);
  /* fades and lifts in as the visitor reaches it (education.js) */
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
/* The shipped cloud-outline.svg is stroked with a warm gradient and a fixed
   ratio; this is the same path in white with preserveAspectRatio='none' so it
   stretches to whatever the copy needs, and non-scaling-stroke so the outline
   keeps an even weight while it does. */
.et-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 58.06 29.53' preserveAspectRatio='none'><path fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' vector-effect='non-scaling-stroke' d='M54.06,25.28,0,25.53c-.56-13,11.24-13.13,11.24-13.13,1.27-7.84,8.8-6.13,8.8-6.13C21.51,2.22,25.53,0,30.73,0c0,0,9.05-.75,11.77,10.36C42.5,10.37,53.56,10.7,54.06,25.28Z'/></svg>") no-repeat center / 100% 100%;
}
.et-stage b { display: block; font-family: var(--display); font-weight: 700; letter-spacing: .07em; }
.et-stage.in { opacity: 1; transform: none; }
/* the zig-zag, measured off the reference frame */
.et-stage--1 { left: 36%; top: 34%; }
.et-stage--2 { left: 55%; top: 50%; }
.et-stage--3 { left: 35%; top: 69%; }
/* the payoff sits at the end of the journey; it used to be set larger, but the
   brief is one type size across all four */
.et-stage--4 { left: 52%; top: 86%; }

/* --- the pouches beside stages 2 and 4 --------------------------------- */
/* stage 2: the 3D pouch from the home page, small and tilted like the artwork */
.et-pouch3d {
  left: 43%; top: 50%; width: clamp(64px, 8.5vw, 130px); aspect-ratio: 1;
  z-index: 2; pointer-events: none;
}
.et-pouch3d-mount { width: 100%; height: 100%; }
.et-pouch3d model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .et-pouch3d { animation: etPouchFloat 6s ease-in-out infinite; }
}
@keyframes etPouchFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
/* Stage 4: the payoff pouch, sitting to the LEFT of its line. Smaller than the
   one at stage 2 and floating on its own beat, so the pair reads as one pouch
   seen twice rather than a repeat. At 39% its right edge ran into the copy
   (measured at 1440, 1024 and 900); 35% clears the line at every width while
   still sitting clear of stage 3 above it. */
.et-pouch3d--b { left: 35%; top: 86%; width: clamp(56px, 7vw, 108px); animation-delay: -3s; }

/* --- decorations: clouds off the edges, the hand peeking in from above --- */
.et-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.et-cloud {
  position: absolute; display: block; will-change: transform;
  -webkit-mask: url("/design/vibe/cloud-solid.svg") no-repeat center / contain;
  mask: url("/design/vibe/cloud-solid.svg") no-repeat center / contain;
  aspect-ratio: 54 / 25;
}
.et-cloud--sky     { width: 19%; right: 5%;  top: 4%;   background: var(--cloud-sky-light); --d: 21s; --dx:  58px; --dy: -20px; }
.et-cloud--pink-sm { width: 7%;  left: 72%;  top: 66%;  background: var(--cloud-pink-small); --d: 17s; --dl: -5s;  --dx: -44px; --dy:  22px; }
.et-cloud--pink-lg { width: 18%; left: 9%;   top: 82%;  background: var(--cloud-pink-deep); --d: 25s; --dl: -11s; --dx:  74px; --dy:  16px; }
.et-cloud--teal    { width: 6%;  left: 11%;  top: 84%;  background: var(--cloud-teal); --d: 19s; --dl: -7s;  --dx: -52px; --dy: -18px; }
/* These only ever moved while the visitor was scrolling — education.js drove
   them off scroll progress and nothing else. The parallax now rides the
   `translate` property and this drift rides `transform`, so the two compose
   instead of one clobbering the other. */
@media (prefers-reduced-motion: no-preference) {
  .et-cloud, .et-hand { animation: ehFloat var(--d, 20s) ease-in-out var(--dl, 0s) infinite; }
  .et-hand { --d: 23s; --dl: -4s; --dx: 30px; --dy: 18px; }
}
/* the hero's hand continues into this frame: rotated so the pouch points
   down, and pushed above the top edge so only the pouch and fingertips show */
.et-hand {
  position: absolute; left: 67%; top: -14%; width: 12%; will-change: transform;
  rotate: 168deg; opacity: .95;
}
.et-hand img { width: 100%; height: auto; display: block; }

@media (max-width: 860px) {
  /* the absolute zig-zag would overlap on a phone; fall back to a column */
  .edu-truth { height: auto; padding-block: clamp(3rem, 9vw, 4.5rem); }
  .et-canvas { position: relative; inset: auto; display: flex; flex-direction: column; align-items: center; gap: clamp(1.5rem, 5vw, 2.4rem); padding-inline: 6vw; }
  .et-title, .et-pouch3d { position: static; translate: none; }
  /* Relative, not static: the stage leaves the absolute zig-zag but stays the
     containing block for its cloud ::before — as static, all four clouds
     resolved against the section and stretched into one giant shape. The
     zig-zag's left/top then have to be cleared too, or relative positioning
     reads them as offsets and pushes each cloud off to the right. */
  .et-stage { position: relative; translate: none; left: auto; top: auto; }
  .et-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .et-stage { width: min(32ch, 86vw); font-size: .82rem; }
  .et-stage--4 { color: var(--text-light); }
  .et-pouch3d { width: min(150px, 40vw); }
  /* one WebGL context is enough on a phone */
  .et-pouch3d--b { display: none; }
  .et-hand { display: none; }
  /* The cloud spots are percentages of the desktop FRAME; once the copy is a
     full-width column there is no margin left for them and they land on the
     text (measured at 320/360/390). Keep only the top-right corner cloud,
     which sits above the title's padding. */
  .et-cloud--pink-sm, .et-cloud--pink-lg, .et-cloud--teal { display: none; }
  .et-cloud--sky { width: 26%; right: -12%; top: -3%; }
}
/* Without JavaScript the stages never receive `.in`, so they would stay at
   opacity:0 — reveal them outright. (The site's shared `.reveal` convention in
   base.css has the same gap; this only covers the education infographic.) */
@media (scripting: none) {
  .et-stage, .et-stage.in { opacity: 1; transform: none; transition: none; }
  .ed-band::before { background: color-mix(in srgb, var(--glass-color) 30%, transparent); }
}

/* --- 3 · better by design ----------------------------------------------
   Four pouch-shaped bands (wavy-edged, NOT pills) stacked down the middle.
   They rest faded; the one the visitor has scrolled to lights up white (so
   does any hovered one), and once the last is lit a line grows out of its
   base to meet the 4-steps trail in the next section. */
.edu-design {
  --ed-pad: clamp(4rem, 9vw, 7rem);
  padding-block: clamp(4rem, 9vw, 7rem) var(--ed-pad);
  /* was its own gradient ground; now the one flat brand blue */
  background: var(--brand-blue);
}
.edu-design .wrap { position: relative; z-index: 1; }
.ed-title { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.4rem); text-transform: capitalize; letter-spacing: .01em; }
.ed-list { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 620px; display: flex; flex-direction: column; gap: clamp(.9rem, 2.2vw, 1.4rem); }
.ed-band {
  position: relative; z-index: 0; cursor: default; outline: none; text-align: center;
  padding: clamp(1.1rem, 2.6vw, 1.6rem) clamp(1.2rem, 3vw, 2rem);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: clamp(.78rem, 1.3vw, .98rem); line-height: 1.5;
  color: color-mix(in srgb, var(--glass-color) 55%, transparent);
  transition: color .4s var(--ease), transform .4s var(--ease);
}
/* the pouch silhouette is a stretched SVG mask on a BACKDROP layer — masking
   the <li> itself would clip its own text at the wavy edges */
.ed-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--glass-color) 16%, transparent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'><path d='M4 6C20 2 40 8 50 4 60 0 80 6 96 3c3 0 4 2 4 5v24c0 3-1 5-4 5-16-3-36 3-46-1S20 38 4 34c-3 0-4-2-4-5V11c0-3 1-5 4-5z' fill='%23000'/></svg>") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'><path d='M4 6C20 2 40 8 50 4 60 0 80 6 96 3c3 0 4 2 4 5v24c0 3-1 5-4 5-16-3-36 3-46-1S20 38 4 34c-3 0-4-2-4-5V11c0-3 1-5 4-5z' fill='%23000'/></svg>") center / 100% 100% no-repeat;
  transition: background .4s var(--ease);
}
/* lit by scroll (JS) or by rollover: the pouch turns white and lifts a touch */
.ed-band.lit, .ed-band:hover, .ed-band:focus-visible { color: var(--brand-blue-deep); transform: translateY(-2px); }
.ed-band.lit::before, .ed-band:hover::before, .ed-band:focus-visible::before { background: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .ed-band:hover, .ed-band:focus-visible { animation: edSway 2.4s ease-in-out infinite; }
}
@keyframes edSway {
  0%, 100% { transform: translateY(-2px) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-.6deg); }
}
/* the line that grows from the last band's base as the visitor scrolls on
   (JS drives --tail 0..1); its height equals the section's bottom padding so
   it reaches the edge where the 4-steps trail picks it up */
.ed-tail {
  position: absolute; left: 50%; top: 100%; width: 3px; height: var(--ed-pad);
  margin-left: -1.5px; background: var(--paper); border-radius: 2px; opacity: .85;
  transform-origin: top; transform: scaleY(var(--tail, 0));
}
.ed-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ed-cloud {
  position: absolute; display: block;
  -webkit-mask: url("/design/vibe/cloud-solid.svg") no-repeat center / contain;
  mask: url("/design/vibe/cloud-solid.svg") no-repeat center / contain;
  aspect-ratio: 54 / 25;
}
.ed-cloud--orange   { width: clamp(70px, 8vw, 120px);   left: -1%;  top: 28%;    background: var(--c-gold); }
.ed-cloud--green-sm { width: clamp(44px, 5vw, 70px);    right: 12%; top: 54%;    background: var(--c-forest); }
.ed-cloud--green-lg { width: clamp(120px, 15vw, 220px); right: 6%;  bottom: 8%;  background: var(--c-emerald); }
/* The band list is 620px wide and centred, so these edge clouds only clear it
   on wide screens; below that they sit on the copy (measured at 768/390/320).
   Keep just the bottom-right one, pushed mostly off the edge. */
@media (max-width: 1080px) {
  .ed-cloud--orange, .ed-cloud--green-sm { display: none; }
  .ed-cloud--green-lg { width: clamp(110px, 22vw, 200px); right: -8%; bottom: -4%; }
}

/* --- 4 · four steps ----------------------------------------------------- */
.p101-steps { padding-block: clamp(4rem, 9vw, 7rem); }
.es-title { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.p101-steps .wrap { position: relative; z-index: 1; }
.es-stage { position: relative; max-width: 760px; margin-inline: auto; }
/* spans the SECTION (not the stage) so the trail can start at the top edge,
   where the line from "Better by design" arrives */
.es-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.es-trail path {
  fill: none; stroke: var(--text-light); stroke-width: 3; stroke-linecap: round; opacity: .85;
  /* JS drives --draw 0..1 as the section scrolls */
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 0));
}
.es-list { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(1rem, 3vw, 2rem); }
.es-step { display: flex; outline: none; }
.es-step--1 { justify-content: flex-start; }
.es-step--2 { justify-content: flex-end; }
.es-step--3 { justify-content: flex-start; padding-left: clamp(0rem, 6vw, 4rem); }
.es-step--4 { justify-content: flex-end; padding-right: clamp(0rem, 4vw, 3rem); }
/* The cloud is a masked BACKDROP layer, never a mask on the box itself:
   masking the element would clip its own text (the captions vanished). */
.es-cloud {
  position: relative; z-index: 0; display: block; text-align: center;
  color: var(--text-light); cursor: default; background: none;
  width: clamp(210px, 32vw, 280px); padding: clamp(2.9rem, 5.5vw, 3.8rem) 1.5rem 1.7rem;
  transition: transform .45s var(--ease);
}
.es-cloud::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  -webkit-mask: url("/design/vibe/cloud-solid.svg") no-repeat center / 100% 100%;
  mask: url("/design/vibe/cloud-solid.svg") no-repeat center / 100% 100%;
  background: var(--tone, var(--c-emerald));
}
.es-cloud > * { position: relative; z-index: 1; }
.es-cloud[data-tone="green"]  { --tone: var(--c-emerald); }
.es-cloud[data-tone="pink"]   { --tone: var(--c-magenta); }
.es-cloud[data-tone="orange"] { --tone: var(--c-gold); }
.es-cloud[data-tone="purple"] { --tone: var(--c-purple); }
.es-cloud b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.7rem); }
.es-cloud small { display: block; margin-top: .3rem; font-size: .78rem; line-height: 1.35; opacity: .95; }
/* rollover: grows and bobs, as if floating in place */
@media (prefers-reduced-motion: no-preference) {
  .es-step:hover .es-cloud, .es-step:focus-visible .es-cloud { animation: esBob 2.6s ease-in-out infinite; }
}
.es-step:hover .es-cloud, .es-step:focus-visible .es-cloud { transform: scale(1.07); }
@keyframes esBob {
  0%, 100% { transform: scale(1.07) translateY(0) rotate(0deg); }
  50%      { transform: scale(1.07) translateY(-9px) rotate(-1.2deg); }
}

/* --- 5 · which poucher -------------------------------------------------- */
.edu-poucher { padding-block: clamp(4rem, 9vw, 7rem); }
.ep-title { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
/* Two-part horizontal split, alternating: the icon leads on odd rows and the
   copy leads on even ones, so the eye zig-zags down the list. */
.ep-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 980px;
  display: flex; flex-direction: column; gap: clamp(1.8rem, 4.5vw, 3.2rem);
}
.ep-item {
  outline: none; cursor: default;
  display: grid; grid-template-columns: minmax(0, 26%) minmax(0, 1fr);
  align-items: center; gap: clamp(1.2rem, 4vw, 3.2rem); text-align: left;
}
.ep-item:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 26%); }
.ep-item:nth-child(even) .ep-ic { order: 2; }
.ep-item:nth-child(even) .ep-copy { order: 1; text-align: right; }
.ep-ic {
  display: block; width: 100%; max-width: 190px; color: var(--text-light);
  transition: transform .38s var(--ease);
}
.ep-item:nth-child(even) .ep-ic { margin-left: auto; }
.ep-ic svg { width: 100%; height: auto; display: block; }
.ep-item:hover .ep-ic, .ep-item:focus-visible .ep-ic { transform: translateY(-4px) rotate(-2deg); }
.ep-copy { display: block; }
.ep-bar {
  /* One fixed width for all four. Left to hug their text they came out 189 /
     209 / 193 / 190px — close enough to look like a mistake rather than a
     deliberate rhythm. Sized to clear the longest label. */
  display: inline-block; width: min(17rem, 100%);
  background: var(--paper); border-radius: 10px;
  padding: .5rem 1.1rem; font-family: var(--display); font-weight: 700;
  font-size: clamp(.98rem, 2vw, 1.22rem); color: var(--tone, var(--ink));
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}
.ep-bar[data-tone="orange"] { --tone: var(--brand-orange); }
.ep-bar[data-tone="lime"]   { --tone: var(--c-lime); }
.ep-bar[data-tone="pink"]   { --tone: var(--c-magenta); }
.ep-bar[data-tone="green"]  { --tone: var(--c-emerald); }
.ep-desc { display: block; margin-top: .7rem; font-size: clamp(.95rem, 1.9vw, 1.12rem); line-height: 1.45; color: color-mix(in srgb, var(--glass-color) 90%, transparent); transition: transform .38s var(--ease); max-width: 34ch; }
.ep-item:nth-child(even) .ep-desc { margin-left: auto; }
/* rollover: the bar grows and lifts off the page, text follows */
.ep-item:hover .ep-bar, .ep-item:focus-visible .ep-bar {
  transform-origin: left center;
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 18px 30px -14px color-mix(in srgb, var(--shadow-color) 55%, transparent);
}
.ep-item:nth-child(even):hover .ep-bar, .ep-item:nth-child(even):focus-visible .ep-bar { transform-origin: right center; }
.ep-item:hover .ep-desc, .ep-item:focus-visible .ep-desc { transform: translateY(4px); }

/* ============================================================
   EDUCATION — the xylitol close. Was three flat WebP panels in a
   carousel, then hand-built markup; now the supplied strip artwork
   with its background knocked out, over a live sky. Only the clouds
   and the mark are real elements — every word lives in the picture
   and is carried by its alt text.
   ============================================================ */

.xy {
  position: relative; overflow: hidden; color: var(--text-light);
  /* the artwork's background is knocked out, so this shows through it */
  background: var(--brand-blue);
}
/* The artwork is centred in the sky and scales fluidly with the viewport. */
.xy-close { display: grid; place-items: center; padding-block: clamp(.6rem, 2vw, 2rem); }
.xy-stage { position: relative; width: 100%; max-width: 1920px; margin-inline: auto; }
.xy-art { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
/* Below this the strip's 2.41:1 makes the baked-in copy unreadable — at 390px
   the whole infographic is 162px tall. It holds a legible floor and pans
   sideways instead; above 680px there is no scroller at all. */
@media (max-width: 680px) {
  .xy-close { overflow-x: auto; overscroll-behavior-x: contain; }
  .xy-stage { min-width: 680px; }
}

/* --- the sky: clouds drift behind the knocked-out artwork ---------------- */
/* clips its own drift: xyDrift shifts clouds +18px, and with the strip now an
   overflow-x:auto scroller that showed up as a stray horizontal scrollbar */
.xy-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.xy-cloud {
  position: absolute; display: block; aspect-ratio: 54 / 25;
  -webkit-mask: url("/design/vibe/cloud-solid.svg") no-repeat center / contain;
  mask: url("/design/vibe/cloud-solid.svg") no-repeat center / contain;
  background: var(--paper);
}
/* the outline variant uses the stroked cloud, so only its rim paints */
.xy-cloud.is-outline {
  -webkit-mask-image: url("/design/vibe/cloud-outline.svg");
  mask-image: url("/design/vibe/cloud-outline.svg");
}
@media (prefers-reduced-motion: no-preference) {
  .xy-cloud { animation: xyDrift var(--d, 26s) ease-in-out var(--dl, 0s) infinite; will-change: transform; }
}
/* Each cloud carries its own distance and direction, so the field never drifts
   as one block. The old fixed 18px/-14px was too small to read as movement. */
@keyframes xyDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(var(--dx, 60px), var(--dy, -22px), 0); }
}
/* Percentages are of the strip, so the field reads as one sky. Brighter along
   the bottom, where the gradient goes pale and they read as haze. */
.xy-cloud--a { width: 11%; left: 1%;   top: 66%; opacity: .52; --d: 30s; --dx:  72px; --dy: -18px; }
.xy-cloud--b { width:  8%; left: 1%;   top: 3%;  opacity: .42; --d: 38s; --dl: -8s;  --dx:  96px; --dy:  14px; }
.xy-cloud--c { width:  9%; left: 25%;  bottom: 2%; opacity: .55; --d: 26s; --dl: -15s; --dx: -58px; --dy: -20px; }
.xy-cloud--d { width:  6%; left: 37%;  top: 86%; opacity: .46; --d: 34s; --dl: -4s;  --dx:  64px; --dy:  16px; }
.xy-cloud--e { width: 10%; left: 58%;  top: 2%;  opacity: .40; --d: 42s; --dl: -12s; --dx: 110px; --dy: -12px; }
.xy-cloud--f { width:  6%; left: 52%;  bottom: 1%; opacity: .50; --d: 30s; --dl: -20s; --dx: -70px; --dy:  18px; }
.xy-cloud--g { width:  5%; left: 0%;   top: 28%; opacity: .38; --d: 36s; --dl: -6s;  --dx:  84px; --dy: -24px; }
.xy-cloud--h { width: 10%; right: 11%; top: 1%;  opacity: .46; --d: 40s; --dl: -18s; --dx: -92px; --dy:  16px; }
.xy-cloud--i { width:  8%; right: 2%;  top: 7%;  opacity: .44; --d: 32s; --dl: -3s;  --dx: -66px; --dy: -18px; }
.xy-cloud--j { width:  7%; right: 0%;  top: 36%; opacity: .38; --d: 28s; --dl: -11s; --dx: -54px; --dy:  22px; }
.xy-cloud--k { width: 10%; right: 27%; bottom: 5%; opacity: .50; --d: 44s; --dl: -16s; --dx: 104px; --dy: -14px; }
.xy-cloud--l { width:  9%; right: 1%;  bottom: 2%; opacity: .42; --d: 34s; --dl: -9s;  --dx: -78px; --dy: -20px; }
.xy-cloud--m { width:  6%; left: 30%;  top: 12%; opacity: .34; --d: 30s; --dl: -22s; --dx:  68px; --dy:  20px; }

/* --- the mark ------------------------------------------------------------ */
/* The artwork has no logo. Placed off the reference: centred under the two
   feature columns, not flush to the edge. The shipped file is full-colour. */
.xy-logo {
  position: absolute; z-index: 2; right: 11.6%; bottom: 4%; width: 7.8%; height: auto;
  filter: brightness(0) invert(1);
}

/* Cushy's hello: a tilt-and-lift wave off his resting pose. The art is one
   flat image, so the wave is the whole character rocking rather than an arm. */
@keyframes yetiWave {
  0%, 100% { transform: translateY(36%) rotate(-4deg); }
  25%      { transform: translateY(30%) rotate(-13deg); }
  50%      { transform: translateY(32%) rotate(1deg); }
  75%      { transform: translateY(30%) rotate(-11deg); }
}

/* Phones: the split stacks and everything centres again. */
@media (max-width: 700px) {
  .ep-item, .ep-item:nth-child(even) { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1rem; }
  .ep-item:nth-child(even) .ep-ic { order: 0; margin-left: 0; }
  .ep-item:nth-child(even) .ep-copy { order: 1; text-align: center; }
  .ep-item:nth-child(even) .ep-desc { margin-inline: auto; }
  .ep-ic { max-width: 132px; }
  .ep-desc { margin-inline: auto; }
  .ep-item:hover .ep-bar, .ep-item:focus-visible .ep-bar { transform-origin: center; }
}
