/* ============================================================
   meltX — "The Pour Line"
   Build contract: design-plan.md. Tokens only — no raw hexes
   below the :root block.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette — every color traces to a chocolate-making stage */
  --cocoa-butter: #F6EFE3; /* pressed cocoa butter — the one cream */
  --caramel-170:  #C98B45; /* sugar at 170°C — pour line, buttons; NEVER small text on cream (2.53:1) */
  --cacao-72:     #2E1D13; /* 72% couverture — body text, dark bands (14.1:1 on cream) */
  --roasted-nib:  #7E3F1C; /* cracked nib after a 220°C roast — links, focus (7.03:1 on cream) */
  --crown-black:  #19100A; /* 90%+ royal-black couverture — crownX grounds only */
  --crown-gold:   #D2A62C; /* gold leaf — crownX only, forbidden on cream (8.24:1 on crown-black) */

  /* Derived — always via color-mix, never new hexes */
  --hairline: color-mix(in oklab, var(--caramel-170) 42%, var(--cocoa-butter));
  --ink-soft: color-mix(in oklab, var(--cacao-72) 82%, var(--cocoa-butter));
  --cream-soft: color-mix(in oklab, var(--cocoa-butter) 88%, var(--cacao-72));
  --gold-hi: color-mix(in oklab, var(--crown-gold), white 25%);
  --gold-lo: color-mix(in oklab, var(--crown-gold), black 20%);
  --shadow-umbra: color-mix(in srgb, var(--cacao-72) 36%, transparent);
  --shadow-glow: color-mix(in srgb, var(--caramel-170) 22%, transparent);

  /* Fraunces build constants — the anti-template guardrail.
     Every heading above body size consumes these; nothing ships
     at default opsz, or the concept dies invisibly. */
  --display-opsz: 144;
  --display-soft: 75;
  --display-wght: 620;

  /* Type: Fraunces (display) + Spectral (body) + Karla (UI).
     Fraunces' SOFT axis literally melts letterforms at opsz 144 —
     the type IS the brand thesis. Spectral gives the narrative an
     editorial, chocolatier-house voice (client-directed premium
     upgrade, 2026-07-19); Karla is demoted to the tactile layer —
     buttons, eyebrows, nav, forms — where a grotesque earns its
     keep. Bodoni Moda appears only inside crownX on products.html. */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Spectral", Georgia, "Times New Roman", serif;
  --font-ui: "Karla", system-ui, "Segoe UI", Arial, sans-serif;

  /* Scale: perfect fourth (1.333) on 17px body, stepping to 1.25 below 480px */
  --step--1: clamp(0.75rem, 0.72rem + 0.15vw, 0.8rem);
  --step-0:  clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --step-1:  clamp(1.25rem, 1.14rem + 0.5vw, 1.41rem);
  --step-2:  clamp(1.56rem, 1.35rem + 0.9vw, 1.89rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.5vw, 2.51rem);
  --step-4:  clamp(2.44rem, 1.9rem + 2.3vw, 3.35rem);
  --step-hero: clamp(2.75rem, 7.5vw, 4.75rem);

  /* Motion: one viscous voice. crownX multiplies every duration
     by 1.4 (tempo law) and bans bounce. */
  --ease-viscous: cubic-bezier(0.6, 0, 0.2, 1);
  --tempo: 1;
  --t-quick: calc(220ms * var(--tempo));
  --t-base: calc(450ms * var(--tempo));
  --t-slow: calc(700ms * var(--tempo));

  --shadow-card: 0 1px 0 var(--hairline), 0 10px 24px -14px var(--shadow-umbra);
  --shadow-lift: 0 8px 18px -8px var(--shadow-glow), 0 26px 52px -22px var(--shadow-umbra);

  --nav-h: 4.25rem;
  --container: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius-master: 12px;

  --focus-ring: var(--roasted-nib);
  accent-color: var(--roasted-nib);
  color-scheme: light;
}

@property --scroll-progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --h1-soft {
  syntax: "<number>";
  inherits: false;
  initial-value: 75;
}

/* Native scroll-driven progress where supported; main.js only
   writes the property when this is unavailable. */
@supports (animation-timeline: scroll()) {
  html {
    animation: pour-progress linear;
    animation-timeline: scroll(root);
  }
  @keyframes pour-progress {
    from { --scroll-progress: 0; }
    to   { --scroll-progress: 1; }
  }
}

/* ---------- 2. Reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cocoa-butter);
  color: var(--cacao-72);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { scrollbar-color: var(--caramel-170) var(--cocoa-butter); }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[class], ol[class] { list-style: none; padding: 0; }
::selection { background: var(--caramel-170); color: var(--cacao-72); }

/* Grain — one static feTurbulence data-URI, computed once */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0 0 0 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: var(--display-wght);
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" var(--display-soft);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p  { max-width: 65ch; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--roasted-nib);
  margin-bottom: 0.9rem; /* one consistent eyebrow→heading beat */
}
.on-dark .eyebrow { color: var(--caramel-170); }

.lede { font-size: var(--step-1); line-height: 1.5; }

/* ---------- 4. Links, buttons, focus ---------- */
a { color: var(--roasted-nib); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.on-dark a { color: var(--cocoa-butter); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--caramel-170); }

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 200;
  padding: 0.6em 1em;
  background: var(--cacao-72);
  color: var(--cocoa-butter);
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transform: translateY(-130%);
  transition: transform var(--t-quick) var(--ease-viscous);
}
.skip-link:focus-visible { transform: none; }

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

/* Melt-underline: drawn caramel line + fattening droplet */
.melt-link {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  color: var(--cacao-72);
  text-decoration: none;
  background-image: linear-gradient(var(--caramel-170), var(--caramel-170));
  background-repeat: no-repeat;
  background-position: left calc(100% - 1px);
  background-size: 0% 2px;
  transition: background-size var(--t-quick) var(--ease-viscous);
}
.melt-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50% 50% 50% 2px;
  background: var(--caramel-170);
  transform: scale(0) rotate(45deg);
  transition: transform var(--t-quick) var(--ease-viscous);
}
.melt-link:hover, .melt-link[aria-current="page"] { background-size: 100% 2px; }
.melt-link:hover::after, .melt-link[aria-current="page"]::after {
  transform: scale(1.3) rotate(45deg);
}
.on-dark .melt-link { color: var(--cocoa-butter); }

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.55em;
  border: 2px solid transparent;
  border-radius: var(--radius-master);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform var(--t-quick) var(--ease-viscous),
    box-shadow var(--t-quick) var(--ease-viscous),
    background-color var(--t-quick) var(--ease-viscous),
    color var(--t-quick) var(--ease-viscous);
}
/* Sheen sweep — a slow gloss pass, like light over tempered chocolate */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg,
    transparent,
    color-mix(in srgb, white 38%, transparent),
    transparent);
  transform: skewX(-18deg) translateX(0);
  transition: transform var(--t-slow) var(--ease-viscous);
  pointer-events: none;
}
.btn:hover::before { transform: skewX(-18deg) translateX(340%); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 6px -4px var(--shadow-umbra); }
.btn svg { flex: none; }

.btn-primary {
  background: var(--caramel-170);
  color: var(--cacao-72);
  box-shadow: 0 10px 22px -12px var(--shadow-glow), 0 16px 30px -18px var(--shadow-umbra);
}
.btn-primary:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }

.btn-outline { border-color: var(--roasted-nib); color: var(--roasted-nib); background: transparent; }
.btn-outline:hover { background: var(--roasted-nib); color: var(--cocoa-butter); }

.on-dark .btn-outline { border-color: var(--caramel-170); color: var(--caramel-170); }
.on-dark .btn-outline:hover { background: var(--caramel-170); color: var(--cacao-72); }

/* ---------- 5. Layout primitives ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
/* Spacing scale: 0.9rem eyebrow→heading · --head-gap heading→body ·
   clamp(4–7.5rem) between sections */
:root { --head-gap: clamp(2.2rem, 5vw, 3.2rem); }
.teaser-grid, .sourcing-row, .contact-grid { margin-top: var(--head-gap); }
.on-dark { background: var(--cacao-72); color: var(--cocoa-butter); }
.on-dark p { color: var(--cream-soft); }
main { position: relative; }

/* ---------- 6. Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cocoa-butter);
  border-bottom: 1px solid var(--hairline);
  height: var(--nav-h);
  transition: background-color var(--t-base) var(--ease-viscous), box-shadow var(--t-base) var(--ease-viscous);
}
/* Elevated nav once the page is moving; the glass blur is a desktop
   luxury — on phones it costs frames, so they get solid + shadow */
html.scrolled .site-nav {
  box-shadow: 0 14px 34px -24px var(--shadow-umbra);
}
@media (min-width: 720px) {
  html.scrolled .site-nav {
    background: color-mix(in srgb, var(--cocoa-butter) 86%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  text-decoration: none;
  color: var(--cacao-72);
}
.brand-melt {
  font-family: var(--font-display);
  font-weight: var(--display-wght);
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" 100;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-x { width: 1.35rem; height: 1.75rem; align-self: center; margin-top: 0.35rem; }
.brand-x .x-stroke { fill: var(--caramel-170); }
.brand-drop {
  fill: var(--caramel-170);
  transform-box: fill-box;
  transform-origin: top center;
  transition: transform var(--t-base) var(--ease-viscous);
}
html.scrolled:not(.reduced) .brand-drop { transform: scaleY(1.28); }

.nav-links { display: flex; gap: clamp(1rem, 3vw, 2.25rem); align-items: center; }
.nav-links .melt-link { font-family: var(--font-ui); font-weight: 500; font-size: var(--step-0); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 130;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--cacao-72);
  border-radius: 2px;
  transition: transform var(--t-quick) var(--ease-viscous), opacity var(--t-quick), background-color var(--t-quick);
}

@media (max-width: 719.98px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: var(--cacao-72);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--t-base) var(--ease-viscous), visibility 0s var(--t-base);
  }
  .nav-links .melt-link {
    color: var(--cocoa-butter);
    font-family: var(--font-display);
    font-variation-settings: "opsz" var(--display-opsz), "SOFT" var(--display-soft);
    font-weight: var(--display-wght);
    font-size: var(--step-2);
    opacity: 0;
    transform: translateY(0.4em) scaleY(0.98);
    transform-origin: top;
    transition: opacity var(--t-base) var(--ease-viscous), transform var(--t-base) var(--ease-viscous);
  }
  html.menu-open .nav-links {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--t-base) var(--ease-viscous);
  }
  html.menu-open .nav-links .melt-link { opacity: 1; transform: none; }
  html.menu-open .nav-links .melt-link:nth-child(1) { transition-delay: 60ms; }
  html.menu-open .nav-links .melt-link:nth-child(2) { transition-delay: 130ms; }
  html.menu-open .nav-links .melt-link:nth-child(3) { transition-delay: 200ms; }
  html.menu-open .nav-links .melt-link:nth-child(4) { transition-delay: 270ms; }
  html.menu-open .nav-toggle span { background: var(--cocoa-butter); }
  html.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  html.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  html.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  html.menu-open body { overflow: hidden; }
  /* The menu lives in the nav's stacking context (z 100), below the
     fixed progress bar (z 110) — park the bar while the menu is up */
  html.menu-open .pour-bar, html.menu-open .pour-bar-drop { visibility: hidden; }
  html.menu-open .nav-links :focus-visible { outline-color: var(--caramel-170); }
}

/* ---------- 7. The Pour Line ---------- */
/* Fixed right-rail thread: scroll progress IS the signature. */
.pour-rail {
  position: fixed;
  top: 0;
  right: 14px;
  z-index: 95;
  width: 28px;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  transition: opacity 200ms var(--ease-viscous);
}
html.pour-handoff .pour-rail { opacity: 0; }
.pour-rail .rail-path {
  fill: none;
  stroke: var(--caramel-170);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--scroll-progress, 0));
}
.pour-rail .rail-drop { fill: var(--caramel-170); }
/* Gooey only on the droplet group, desktop pointer:fine only */
@media (pointer: fine) {
  html:not(.reduced) .pour-rail .rail-drop-goo { filter: url(#rail-goo); }
}
/* No-JS ships the settled brand mark */
html:not(.js-pour) .pour-rail .rail-path { stroke-dashoffset: 0; }
html:not(.js-pour) .pour-rail .rail-drop { display: none; }

/* Mobile: the thread becomes a top-edge caramel progress bar */
.pour-bar, .pour-bar-drop { display: none; }
@media (max-width: 719.98px) {
  /* Grain is a desktop luxury too — phones keep their frames */
  body::after { display: none; }
  .pour-rail { display: none; }
  .pour-bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 110;
    width: 100%;
    height: 3px;
    background: var(--caramel-170);
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left;
  }
  .pour-bar-drop {
    display: block;
    position: fixed;
    top: 0;
    left: -8px;
    z-index: 110;
    width: 8px;
    height: 8px;
    background: var(--caramel-170);
    border-radius: 2px 50% 50% 50%;
    transform: translateX(calc(var(--scroll-progress, 0) * 100vw)) rotate(45deg);
    transform-origin: center;
  }
  html:not(.js-pour) .pour-bar { transform: scaleX(1); }
  html:not(.js-pour) .pour-bar-drop { display: none; }
}

/* Drip dividers: cream pouring into a dark section.
   Ration: max two full dividers per page; products gets exactly one. */
.pour-divider {
  position: absolute;
  top: -2px; /* overlap kills fractional-zoom seams */
  left: 0;
  width: 100%;
  height: clamp(64px, 9vw, 122px);
  pointer-events: none;
}
.pour-divider svg { width: 100%; height: 100%; }
.pour-divider .band, .pour-divider .finger { fill: var(--cocoa-butter); }
.pour-divider .finger {
  transform-box: fill-box;
  transform-origin: top;
  transition: transform var(--t-slow) var(--ease-viscous);
}
html.js-pour:not(.reduced) .pour-divider:not(.is-poured) .finger { transform: scaleY(0.15); }
/* nth-of-type counts the band path too: fingers are paths 2–6 */
.pour-divider .finger:nth-of-type(3) { transition-delay: 80ms; }
.pour-divider .finger:nth-of-type(4) { transition-delay: 160ms; }
.pour-divider .finger:nth-of-type(5) { transition-delay: 240ms; }
.pour-divider .finger:nth-of-type(6) { transition-delay: 320ms; }

.has-divider { position: relative; padding-top: clamp(96px, 13vw, 176px); }

/* In-flow pour segments (craft strip, About timeline) */
.pour-segment .seg-path {
  fill: none;
  stroke: var(--caramel-170);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1200ms var(--ease-viscous);
}
html.js-pour:not(.reduced) [data-pour-section]:not(.is-drawn) .seg-path { stroke-dashoffset: 1; }
.pour-segment .seg-node {
  fill: var(--cocoa-butter);
  stroke: var(--caramel-170);
  stroke-width: 2.5;
  transition: fill var(--t-base) var(--ease-viscous);
}
[data-pour-section].is-drawn .seg-node { fill: var(--caramel-170); }
.seg-drop-in { fill: var(--caramel-170); }

/* ---------- 8. Settle reveals — the pour vocabulary ---------- */
.settle {
  transition:
    opacity var(--t-base) var(--ease-viscous),
    transform var(--t-base) var(--ease-viscous);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js-pour:not(.reduced) .settle:not(.is-in) {
  opacity: 0;
  transform: scaleY(0.98) translateY(6px);
  transform-origin: top;
}

/* ---------- 9. Hero + orchestrated pour (index) ---------- */
.hero {
  position: relative;
  min-height: max(560px, calc(100svh - var(--nav-h)));
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.hero > .container { width: 100%; }
/* 640px: the 560px floor + nav no longer fit; release the floor */
@media (max-height: 640px) {
  .hero { min-height: 0; padding-block: 5rem 4rem; }
}
.hero-eyebrow { margin-bottom: 1.2rem; }
.hero-title {
  font-size: var(--step-hero);
  max-width: 11em;
}
.hero-line { display: block; width: fit-content; }
/* The thesis word, poured: italic Fraunces at full SOFT */
.melt-word {
  font-style: italic;
  color: var(--roasted-nib);
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" 100;
}
.hero-sub { margin-top: 1.5rem; max-width: 44ch; font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }
.hero-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 479.98px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

.hero-pour-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.hero-drop-g { transform: translateX(var(--drop-x, 18vw)); }
.hero-drop { fill: var(--caramel-170); }
.hero-pool-g { transform: translate(var(--drop-x, 18vw), var(--pool-y, 46vh)); }
.hero-pool {
  fill: var(--caramel-170);
  transform-box: fill-box;
  transform-origin: center;
}
/* The pour is transient: once it tips into the rail, drop and pool are gone.
   They exist visually only while .pour-run animates them. */
.hero-drop, .hero-pool { opacity: 0; }
@media (pointer: fine) {
  html:not(.reduced) .hero-goo { filter: url(#hero-goo); }
}

/* Choreography — start states exist only between .js-pour and .pour-done */
html.js-pour:not(.pour-done) .hero-eyebrow,
html.js-pour:not(.pour-done) .hero-sub,
html.js-pour:not(.pour-done) .hero-cta { opacity: 0; }
html.js-pour:not(.pour-done) .hero-line { clip-path: inset(-5% 100% -12% 0); }
html.js-pour:not(.pour-done) .rail-drop { opacity: 0; }

html.pour-run .brand-drop { animation: pour-drip-stretch 260ms var(--ease-viscous) both; }
html.pour-run .hero-drop { animation: pour-drop-fall 380ms cubic-bezier(0.45, 0, 0.85, 0.55) 240ms both; }
html.pour-run .hero-pool {
  animation:
    pour-pool-spread 480ms var(--ease-viscous) 590ms both,
    pour-fade-out 340ms var(--ease-viscous) 1320ms forwards;
}
html.pour-run .hero-line { animation: pour-line-reveal 650ms var(--ease-viscous) both; }
html.pour-run .hero-line + .hero-line { animation-delay: 940ms; }
html.pour-run .hero-line:first-child { animation-delay: 760ms; }
html.pour-run .hero-eyebrow { animation: pour-settle-in 450ms var(--ease-viscous) 1060ms both; }
html.pour-run .hero-sub { animation: pour-settle-in 450ms var(--ease-viscous) 1180ms both; }
html.pour-run .hero-cta { animation: pour-settle-in 450ms var(--ease-viscous) 1300ms both; }
html.pour-run .rail-drop { animation: pour-fade-in 300ms var(--ease-viscous) 1380ms both; }

@keyframes pour-drip-stretch {
  0% { transform: scaleY(1); }
  55% { transform: scaleY(2.1); }
  100% { transform: scaleY(1.1); }
}
@keyframes pour-drop-fall {
  0% { opacity: 1; transform: translateY(0); }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translateY(var(--pool-y, 46vh)); }
}
@keyframes pour-pool-spread {
  0% { opacity: 1; transform: scaleX(0.02); }
  100% { opacity: 1; transform: scaleX(1); }
}
@keyframes pour-line-reveal {
  from { clip-path: inset(-5% 100% -12% 0); }
  to { clip-path: inset(-5% -2% -12% 0); }
}
@keyframes pour-settle-in {
  from { opacity: 0; transform: scaleY(0.98) translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes pour-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pour-fade-out { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 719.98px) {
  /* Sub-800ms mobile moment: drip elongate → headline clip → bar glint.
     Last animation ends at 760ms; the JS cutoff fires at 950ms. */
  html.pour-run .brand-drop { animation-duration: 200ms; }
  html.pour-run .hero-drop, html.pour-run .hero-pool { animation: none; opacity: 0; }
  html.pour-run .hero-line:first-child { animation-delay: 160ms; animation-duration: 450ms; }
  html.pour-run .hero-line + .hero-line { animation-delay: 280ms; animation-duration: 450ms; }
  html.pour-run .hero-eyebrow { animation-delay: 340ms; animation-duration: 300ms; }
  html.pour-run .hero-sub { animation-delay: 400ms; animation-duration: 300ms; }
  html.pour-run .hero-cta { animation-delay: 460ms; animation-duration: 300ms; }
  html.pour-run .pour-bar-drop { animation: pour-fade-in 240ms var(--ease-viscous) 520ms both; }
}

/* ---------- 10. Home sections ---------- */
/* The ticker between story and teaser is thin — halve the section
   padding on both sides so it doesn't float in dead air */
.story { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.teaser { padding-top: clamp(2.5rem, 5vw, 4rem); }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 767.98px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-grid .manifesto { position: static; }
}
.manifesto {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  padding-top: 0.25em; /* optically aligns cap-height with the copy's first line */
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" var(--display-soft);
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--roasted-nib);
}
.story-copy p + p { margin-top: 1.2em; }
.story-art { margin-top: 2.2rem; max-width: 300px; }

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}
/* Reveals live on wrappers so component transitions (hover lift,
   press) never fight the .settle transition on the same element */
.teaser-grid > .settle { display: grid; }
.wa-wrap { margin-top: 3rem; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-base) var(--ease-viscous), box-shadow var(--t-base) var(--ease-viscous);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card .btn { margin-top: auto; align-self: start; }
.card h3 { display: flex; align-items: baseline; gap: 2px; }

.card-peanut {
  /* Playful register: a touch of spring on the lift (bounce is banned
     only inside crownX) */
  transition: transform 500ms cubic-bezier(0.3, 1.25, 0.5, 1), box-shadow var(--t-base) var(--ease-viscous);
  border-radius: 24px;
  background:
    radial-gradient(130% 110% at 18% 0%,
      color-mix(in oklab, var(--caramel-170) 14%, var(--cocoa-butter)),
      var(--cocoa-butter) 62%);
}
/* ---------- Product cards: order directly on WhatsApp ---------- */
.card-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 176px;
  margin-bottom: 0.4rem;
  border-radius: 16px;
  overflow: hidden; /* the peanuts stay inside the frame */
  border: 1px solid var(--hairline);
  background: radial-gradient(120% 120% at 30% 15%,
    color-mix(in oklab, var(--caramel-170) 18%, var(--cocoa-butter)),
    color-mix(in oklab, var(--caramel-170) 5%, var(--cocoa-butter)) 70%);
}
.card-media .card-art { width: min(185px, 72%); }
.card-crown .card-media {
  border-radius: 2px;
  border-color: color-mix(in srgb, var(--crown-gold) 35%, transparent);
  background:
    radial-gradient(120% 100% at 50% 0%,
      color-mix(in srgb, var(--crown-gold) 8%, transparent), transparent 62%),
    color-mix(in oklab, var(--crown-black), white 3%);
}
.card-crown .card-media::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid color-mix(in srgb, var(--crown-gold) 45%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.card-crown .card-media .crown-numeral { font-size: var(--step-4); z-index: 1; }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35em 0.85em;
  border-radius: 999px;
  background: var(--caramel-170);
  color: var(--cacao-72);
}
.card-crown .card-badge {
  background: transparent;
  border: 1px solid var(--crown-gold);
  color: var(--crown-gold);
  border-radius: 2px;
}
.product-card h3 { margin-top: 0.35rem; }
.card-meta {
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid color-mix(in srgb, var(--hairline) 60%, transparent);
  padding-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.card-crown .card-meta { border-top-color: color-mix(in srgb, var(--crown-gold) 22%, transparent); }
.product-card .btn { margin-top: auto; }
.card-crown .card-meta { color: var(--cream-soft); }
.card-price {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.card-crown .card-price, .crown-scope .card-price { color: var(--cream-soft); }
.product-card .btn { width: 100%; justify-content: center; }
.card-crown.product-card .btn { border: 2px solid var(--crown-gold); color: var(--crown-gold); border-radius: 2px; }
.card-crown.product-card .btn:hover { background: var(--crown-gold); color: var(--crown-black); }
.card-more {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  align-self: center;
  margin-top: 0.2rem;
}

.card-crown {
  --tempo: 1.4;
  --focus-ring: var(--crown-gold);
  border-radius: 2px;
  background: var(--crown-black);
  color: var(--cocoa-butter);
  border-color: color-mix(in srgb, var(--crown-gold) 40%, transparent);
}
.card-crown p { color: var(--cream-soft); }
.card-crown::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)) 1;
  pointer-events: none;
}
.crown-numeral {
  font-family: "Bodoni Moda", "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: var(--step-3);
  color: var(--crown-gold);
  line-height: 1;
  /* Bodoni loads only on products.html; when Fraunces renders this on
     index, keep the display constants (Bodoni ignores SOFT, clamps opsz) */
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" var(--display-soft);
}
.card-crown .btn { border-radius: 2px; border-color: var(--crown-gold); color: var(--crown-gold); }
.card-crown .btn:hover { background: var(--crown-gold); color: var(--crown-black); }
.card-peanut .btn { border-radius: 999px; }

.sub-brand {
  font-family: var(--font-display);
  font-weight: var(--display-wght);
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" 100;
  letter-spacing: -0.02em;
}
.sub-x { display: inline-block; width: 0.62em; height: 0.8em; }
.card-peanut .sub-x path, .peanut-scope .sub-x path { fill: var(--roasted-nib); }
.card-crown .sub-x path, .crown-scope .sub-x path { fill: var(--crown-gold); }

/* Craft strip */
.craft { position: relative; }
.craft-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: var(--head-gap); }
.craft-strip { position: relative; }
.craft-strip .pour-segment {
  position: absolute;
  inset: 0;
}
.craft-strip .pour-segment.horizontal { width: 100%; height: 60px; bottom: auto; }
.craft-strip .pour-segment.vertical { display: none; width: 2.2rem; height: 100%; right: auto; left: 0.2rem; }
.craft-head .seg-drop-in { flex: none; align-self: center; }
.craft-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.craft-step { text-align: center; padding-top: 3.4rem; }
.craft-step .craft-icon {
  width: 56px;
  height: 56px;
  margin: 0.6rem auto 0.9rem;
  color: var(--cacao-72);
}
.craft-icon .accent { stroke: var(--roasted-nib); }
.craft-step h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.craft-step p { font-size: var(--step-0); color: var(--ink-soft); margin-inline: auto; max-width: 24ch; }
@media (max-width: 719.98px) {
  .craft-steps { grid-template-columns: 1fr; gap: 2.4rem; text-align: left; }
  .craft-step { text-align: left; padding-top: 0; padding-left: 3.2rem; }
  .craft-step .craft-icon { margin: 0 0 0.7rem; }
  .craft-step p { margin-inline: 0; }
  .craft-strip .pour-segment.horizontal { display: none; }
  .craft-strip .pour-segment.vertical { display: block; }
}

/* Closing CTA band */
.cta-band { text-align: center; }
.cta-band .lede { margin-inline: auto; margin-top: 1rem; }
.cta-band .btn { margin-top: 2rem; }
.cta-final-drop { margin: 2.6rem auto 0; width: 18px; color: var(--caramel-170); }

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--cacao-72);
  color: var(--cocoa-butter);
  border-top: 1px solid color-mix(in srgb, var(--caramel-170) 30%, transparent);
  padding-block: 3.5rem 2rem;
}
.site-footer .brand { color: var(--cocoa-butter); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-tag { margin-top: 0.9rem; color: var(--cream-soft); max-width: 30ch; }
.site-footer .melt-link, .site-footer ul { font-family: var(--font-ui); }
.site-footer h2 {
  font-family: var(--font-ui);
  font-variation-settings: normal;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel-170);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li + li { margin-top: 0.55rem; }
.site-footer .melt-link { color: var(--cocoa-butter); font-weight: 500; }
/* The about.html footer receives the second drip divider; restate the
   clearance here because .site-footer's padding-block wins the cascade. */
.site-footer.has-divider { padding-top: clamp(96px, 13vw, 176px); }
.site-footer :focus-visible { outline-color: var(--caramel-170); }
.footer-fine {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--cocoa-butter) 16%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--cream-soft);
}
@media (max-width: 719.98px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- 12. Products ---------- */
.products-head { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3.5rem); }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 62vh;
}
@media (max-width: 899.98px) { .product-hero { grid-template-columns: 1fr; } }

.peanut-scope {
  background:
    radial-gradient(120% 130% at 78% 12%,
      color-mix(in oklab, var(--caramel-170) 12%, var(--cocoa-butter)),
      var(--cocoa-butter) 58%);
}
.peanut-scope .btn-primary { border-radius: 999px; }
.flavor-notes { margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.flavor-notes li {
  font-style: italic;
  font-weight: 500;
  width: fit-content;
}
.flavor-notes .drizzle { display: block; margin-top: 2px; width: 100%; height: 7px; color: var(--caramel-170); }
.product-art { width: min(440px, 100%); margin-inline: auto; }
@media (pointer: fine) {
  html:not(.reduced) .peanut-cluster { transition: transform var(--t-slow) var(--ease-viscous); }
  html:not(.reduced) .product-hero:hover .peanut-cluster { transform: translateY(-8px) rotate(-1.2deg); }
}

/* crownX tempo law: custom properties resolve where declared, so the
   :root tokens must be re-derived inside the crown scopes for the
   1.4x multiplier to actually reach any transition. */
.crown-scope, .card-crown {
  --tempo: 1.4;
  --t-quick: calc(220ms * var(--tempo));
  --t-base: calc(450ms * var(--tempo));
  --t-slow: calc(700ms * var(--tempo));
}

/* crownX — the register shift: darker ground, gold, Bodoni, 1.4x tempo, no bounce */
.crown-scope {
  --tempo: 1.4;
  --focus-ring: var(--crown-gold);
  background: var(--crown-black);
  color: var(--cocoa-butter);
  text-align: center;
}
.crown-scope p { color: var(--cream-soft); margin-inline: auto; }
.crown-scope .eyebrow { color: var(--crown-gold); }
.crown-title {
  font-family: "Bodoni Moda", "Fraunces", Georgia, serif;
  font-variation-settings: normal;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--crown-gold);
}
.gold-rule {
  width: min(220px, 40%);
  height: 1px;
  margin: 1.6rem auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold-hi) 30%, var(--gold-lo) 70%, transparent);
}
.crown-scope .product-art { margin-block: 1.5rem; }
.ledger {
  margin: 1.8rem auto 0;
  max-width: 24rem;
  text-align: left;
}
.ledger li { display: flex; align-items: baseline; gap: 0.6em; }
.ledger li + li { margin-top: 0.7rem; }
.ledger .dots {
  flex: 1;
  min-width: 2rem;
  border-bottom: 1px dotted color-mix(in srgb, var(--crown-gold) 55%, transparent);
  transform: translateY(-0.28em);
}
.ledger .amt {
  font-family: "Bodoni Moda", "Fraunces", Georgia, serif;
  font-weight: 700;
  color: var(--crown-gold);
}
.btn-crown {
  border: 2px solid var(--crown-gold);
  border-radius: 2px;
  color: var(--crown-gold);
  background: transparent;
}
.btn-crown:hover { background: var(--crown-gold); color: var(--crown-black); }
.crown-scope .btn { margin-top: 2.2rem; }

/* Register-shift divider: caramel fingers grade to gold as cream pours into crown-black */
.crown-scope .pour-divider .band { fill: var(--cocoa-butter); }
.crown-scope .pour-divider .finger:nth-of-type(2) { fill: var(--caramel-170); }
.crown-scope .pour-divider .finger:nth-of-type(3) { fill: color-mix(in oklab, var(--caramel-170) 75%, var(--crown-gold)); }
.crown-scope .pour-divider .finger:nth-of-type(4) { fill: color-mix(in oklab, var(--caramel-170) 50%, var(--crown-gold)); }
.crown-scope .pour-divider .finger:nth-of-type(5) { fill: color-mix(in oklab, var(--caramel-170) 25%, var(--crown-gold)); }
.crown-scope .pour-divider .finger:nth-of-type(6) { fill: var(--crown-gold); }

.pair-band { text-align: center; }
.pair-band .btn { margin-top: 1.8rem; }

/* ---------- 13. About ---------- */
.about-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem); }
.about-head h1 {
  font-size: var(--step-hero);
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" var(--h1-soft, 75);
  transition: font-variation-settings 400ms var(--ease-viscous);
}
.about-head .lede { margin-top: 1.2rem; color: var(--ink-soft); }

.origin { position: relative; }
.origin-copy { grid-column: 2; max-width: 65ch; }
.origin-copy p + p { margin-top: 1.2em; }
.origin-copy .dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: var(--display-wght);
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" 100;
  font-size: 3.1em;
  float: left;
  line-height: 0.82;
  padding-right: 0.12em;
  color: var(--roasted-nib);
}
.origin-grid {
  position: relative;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
}
/* Absolute: an in-flow SVG's intrinsic ratio would stretch the grid row */
.origin-grid .pour-segment {
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: 4rem;
  height: 100%;
}
.timeline-notes { margin-top: 2.2rem; display: grid; gap: 1.1rem; }
.timeline-notes li strong { font-weight: 700; }
.timeline-notes li { color: var(--ink-soft); font-size: var(--step-0); }
@media (max-width: 599.98px) {
  .origin-grid { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .origin-grid .pour-segment { width: 2.2rem; }
}

.philosophy { text-align: center; }
.stat-row {
  margin-top: var(--head-gap);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2.5rem;
}
.stat .figure {
  font-family: var(--font-display);
  font-weight: var(--display-wght);
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" var(--display-soft);
  font-size: var(--step-4);
  line-height: 1;
  color: var(--caramel-170);
}
.stat p { margin: 0.8rem auto 0; max-width: 24ch; color: var(--cream-soft); }

.sourcing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}
.sourcing-item .vignette { width: 84px; height: 84px; color: var(--roasted-nib); margin-bottom: 1rem; }
.sourcing-item h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.sourcing-item p { color: var(--ink-soft); }

.melt-meaning { text-align: center; }
.melt-meaning .lede { margin-inline: auto; margin-top: 1.4rem; }
.melt-meaning .degree {
  font-family: var(--font-display);
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" 100;
  font-weight: var(--display-wght);
  color: var(--roasted-nib);
  font-size: 1.15em;
}

/* ---------- 14. Contact ---------- */
.contact-head { padding-block: clamp(3.5rem, 7vw, 5.5rem) 1rem; }
.contact-head .lede { margin-top: 1rem; color: var(--ink-soft); }

.wa-card {
  display: block;
  padding: clamp(2rem, 5vw, 3.2rem);
  border-radius: 18px;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--caramel-170), white 10%),
    var(--caramel-170) 55%,
    color-mix(in oklab, var(--caramel-170), black 8%));
  color: var(--cacao-72);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-quick) var(--ease-viscous), box-shadow var(--t-quick) var(--ease-viscous);
}
.wa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.wa-card:active { transform: translateY(2px) scaleY(0.985); transform-origin: bottom; box-shadow: 0 3px 8px -6px var(--shadow-umbra); }
.wa-card .wa-title {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: var(--display-wght);
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" var(--display-soft);
  font-size: var(--step-3);
  line-height: 1.1;
}
.wa-card .wa-micro { margin-top: 0.7rem; font-style: italic; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (max-width: 767.98px) { .contact-grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.45rem; margin-bottom: 1.3rem; }
.field label { font-family: var(--font-ui); font-weight: 700; font-size: var(--step-0); }
.field input, .field textarea { font-family: var(--font-ui); }
.field input, .field textarea {
  /* Field boundary must clear 3:1 (WCAG 1.4.11) — hairline is too soft here */
  border: 1px solid var(--roasted-nib);
  border-radius: 8px;
  background: var(--cocoa-butter);
  padding: 0.75em 0.9em;
  transition: border-color var(--t-quick) var(--ease-viscous);
}
.field input:hover, .field textarea:hover { border-color: var(--cacao-72); }
.field ::placeholder { color: var(--ink-soft); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--roasted-nib);
}
.field textarea { min-height: 9rem; resize: vertical; }

.contact-aside h2 { font-size: var(--step-2); margin-bottom: 0.8rem; }
.contact-aside ul { margin-top: 0.5rem; }
.contact-aside li + li { margin-top: 0.6rem; }
.contact-aside .plain { color: var(--ink-soft); margin-top: 1.6rem; }

/* ---------- 15. Parallax decor ---------- */
[data-parallax] { will-change: transform; }

/* ---------- 15a. Drip page transitions ----------
   A cacao panel with drip fingers pours down over the old page and
   pours away off the new one. Armed pre-paint via html.wiped. */
.page-wipe {
  position: fixed;
  left: 0;
  right: 0;
  top: -130vh;
  height: 130vh;
  z-index: 300;
  background: var(--cacao-72);
  pointer-events: none;
  /* Resting: pulled up so the drip fingers sit above the viewport */
  transform: translateY(-90px);
}
.page-wipe .wipe-drips {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: clamp(44px, 7vw, 84px);
}
html.wiped .page-wipe { transform: translateY(130vh); }
html.wipe-out .page-wipe {
  transform: translateY(130vh);
  transition: transform 400ms var(--ease-viscous);
}
html.wiped.wipe-done .page-wipe {
  transform: translateY(265vh);
  transition: transform 560ms var(--ease-viscous);
}
html.reduced .page-wipe, html:not(.js-pour) .page-wipe { display: none; }

/* ---------- 15c. Craft ticker — the facts, poured in a loop ---------- */
.craft-ticker {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  padding-block: 1rem;
}
.ticker-track {
  display: flex;
  align-items: baseline;
  gap: 2.6rem;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" 100;
  font-size: var(--step-1);
  color: var(--roasted-nib);
  animation: ticker 32s linear infinite;
}
.ticker-track i { font-style: normal; color: var(--caramel-170); }
@keyframes ticker { to { transform: translateX(-50%); } }
/* Only spends frames while actually on screen */
html.js-pour .craft-ticker:not(.in-view) .ticker-track { animation-play-state: paused; }
html.reduced .ticker-track { animation: none; }

/* ---------- 15d. Ambient depth ---------- */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(90% 70% at 72% 16%,
    color-mix(in srgb, var(--caramel-170) 9%, transparent), transparent 62%);
}
.hero-blob { position: absolute; width: clamp(90px, 12vw, 180px); pointer-events: none; }
.on-dark, .crown-scope, .site-footer {
  background-image: radial-gradient(120% 90% at 50% 0%,
    color-mix(in srgb, var(--cocoa-butter) 5%, transparent), transparent 55%);
}
.card-crown::before { transition: filter var(--t-slow) var(--ease-viscous); }
.card-crown:hover::before { filter: brightness(1.25); }

/* ---------- 15e. Droplet cursor (desktop, enhanced only) ---------- */
.cursor-drop {
  position: fixed;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50% 50% 58% 50%;
  background: var(--caramel-170);
  opacity: 0.6;
  z-index: 260;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 15b. Premium motion layer (GSAP + Lenis, progressive) ----------
   When the CDN frameworks load, main.js stamps .gsap on <html> and GSAP
   owns the reveals — the CSS transition system stands down. Without the
   CDN (offline, blocked), everything falls back to the IO + CSS path. */
html.gsap { scroll-behavior: auto; } /* Lenis owns scrolling */
html.gsap .settle { transition: none; }
/* Magnetic buttons: GSAP writes inline transforms — CSS must not
   double-smooth them */
html.gsap .btn { transition-property: box-shadow, background-color, color; }

/* ---------- 16. Reduced motion — everything collapses, no exemptions ---------- */
html.reduced * { scroll-behavior: auto; }
html.reduced .settle,
html.reduced .pour-divider .finger,
html.reduced .brand-drop,
html.reduced .card,
html.reduced .btn,
html.reduced .wa-card,
html.reduced .nav-links,
html.reduced .nav-links .melt-link,
html.reduced .nav-toggle span,
html.reduced .peanut-cluster { transition: none !important; animation: none !important; }
html.reduced .settle { opacity: 1 !important; transform: none !important; }
html.reduced .nav-links .melt-link { transform: none !important; transition-delay: 0ms !important; }
html.reduced .pour-rail { opacity: 1 !important; transition: none !important; }
html.reduced .btn::before { display: none; }
html.reduced .site-nav { transition: none; }
html.reduced .card-peanut { transition: none !important; }
html.reduced .pour-divider .finger { transform: none !important; }
html.reduced .pour-rail .rail-path { stroke-dashoffset: 0 !important; }
html.reduced .pour-rail .rail-drop { display: none; }
html.reduced .pour-bar { transform: scaleX(1) !important; }
html.reduced .pour-bar-drop { display: none !important; }
html.reduced .pour-segment .seg-path { stroke-dashoffset: 0 !important; transition: none !important; }
html.reduced .pour-segment .seg-node { fill: var(--caramel-170) !important; transition: none !important; }
html.reduced .about-head h1 { font-variation-settings: "opsz" var(--display-opsz), "SOFT" 75 !important; transition: none !important; }
html.reduced.pour-run .hero-eyebrow,
html.reduced.pour-run .hero-sub,
html.reduced.pour-run .hero-cta,
html.reduced.pour-run .hero-line,
html.reduced.pour-run .hero-title { animation: pour-fade-in 400ms ease both !important; clip-path: none !important; }
html.reduced .hero-drop, html.reduced .hero-pool { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
