/* ============================================
   NYATHI HERBAL LIQUEUR — Scroll-Driven Website
   ============================================ */

/* --- Black Mango ExtraBold — emphasis display font --- */
@font-face {
  font-family: 'Black Mango';
  src: url('../fonts/blackmango-extrabold-webfont.woff2') format('woff2'),
       url('../fonts/blackmango-extrabold-webfont.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0c0a07; /* warm near-black (was flat #0a0a0a) — subtle heritage warmth */
  --bg-warm: #1a1410;

  /* Green palette — neon bright solids */
  --text-primary: #39FF8E;
  --accent: #00FFB2;
  --accent-deep: #00CC8E;
  --accent-soft: rgba(57, 255, 142, 0.15);
  --text-on-dark: #f0ede8;
  --brand-red: #ee3b23;

  /* Typography — 3 families, clear roles */
  --font-hero: 'Black Mango', 'Syne', -apple-system, 'Segoe UI', sans-serif;
  --font-story: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace; /* Unemphasised narrative */
  --font-emphasis: 'Black Mango', 'Syne', sans-serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;   /* UI, labels, micro */

  /* Story palette */
  --text-story-pale: #A0E4BF;

  /* Type scale — balanced for 3-line scroll display */
  --text-hero: clamp(3.5rem, 9vw, 8rem);
  --text-emphasis: clamp(2rem, 5.5vw, 4rem);
  --text-story: clamp(0.9rem, 1.6vw, 1.3rem);
  --text-connector: clamp(0.75rem, 1.2vw, 1rem);
  --text-label: 0.7rem;
  --text-micro: 0.6rem;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background: var(--bg-dark);
}

a { color: inherit; text-decoration: none; }

/* Skip link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Film Grain (cinematic delight) --- */
#film-grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grainShift 0.5s steps(4) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, -3%); }
  50% { transform: translate(3%, 1%); }
  75% { transform: translate(-1%, 3%); }
  100% { transform: translate(2%, -2%); }
}

/* --- Age Gate --- */
#age-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #F4EBDD; /* light beige */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s var(--ease-out-expo);
}

/* Large centered pattern — mirrors the brand-band treatment */
#age-gate::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url("../images/pattern-design.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(160vh, 160vw) auto;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

#age-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(244, 235, 221, 0.3) 0%, rgba(244, 235, 221, 0.85) 80%);
  pointer-events: none;
  z-index: 0;
}

.age-gate-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 90%;
  padding: 2rem;
  text-align: center;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#age-gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* Already verified this session (set pre-paint by the inline head script) — remove
   the gate entirely from the first frame so it never flashes on refresh/navigation. */
html.age-verified #age-gate { display: none !important; }

.age-gate-logo {
  display: block;
  width: clamp(180px, 28vw, 240px);
  height: auto;
  margin-bottom: 2.5rem;
}

.age-gate-question {
  font-family: var(--font-hero);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  color: #002106;
  margin-bottom: 2rem;
}

.age-gate-buttons { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; margin: 0 auto 2rem; }
.age-gate-buttons .ornate-btn {
  --ornate-fill: #FAF2EC;
  --ornate-stroke: #002106;
  --ornate-ink: #002106;
}

.age-btn { /* sizing now handled by .ornate-btn; keep this class hook for JS */ }

.age-gate-legal {
  font-size: var(--text-micro);
  color: rgba(0, 33, 6, 0.65);
  line-height: 1.6;
  max-width: 520px;
  margin-inline: auto;
}

/* --- Loader --- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #F4EBDD;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s var(--ease-out-expo);
}

#loader::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url("../images/pattern-design.svg");
  background-repeat: repeat;
  background-position: center center;
  background-size: clamp(900px, 120vw, 1600px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

#loader::after {
  display: none;
}

#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-ring {
  position: relative;
  width: 96px;
  height: 96px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-emblem {
  width: 84px;
  height: 84px;
  display: block;
  animation: loaderEmblemPulse 2.2s ease-in-out infinite;
}

@keyframes loaderEmblemPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.05); opacity: 1; }
}

.loader-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.loader-progress__track,
.loader-progress__bar {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.loader-progress__track {
  stroke: rgba(0, 33, 6, 0.15);
}

.loader-progress__bar {
  stroke: #002106;
  stroke-dasharray: 465;
  stroke-dashoffset: 465;
  transition: stroke-dashoffset 0.2s ease;
}

#loader-percent {
  position: relative;
  z-index: 2;
  font-family: var(--font-story);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #002106;
}

/* --- Header — show on scroll up, hide on scroll down --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 3vw;
  text-align: center;
  pointer-events: none;
  background: none;
}

.site-header.is-visible {
  pointer-events: auto;
}

.nav-logo {
  display: inline-block;
}

.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-logo:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }

/* --- Brand switcher (Nyathi Corporation umbrella) — additive, sits to the
   right of the centered logo so the existing header layout is undisturbed --- */
.brand-switch {
  position: absolute;
  top: 50%;
  right: 3vw;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(240, 237, 232, 0.28);
  border-radius: 980px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand-switch a {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 980px;
  color: rgba(240, 237, 232, 0.7);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.brand-switch a:hover { color: var(--text-on-dark); }
.brand-switch a.is-current {
  background: var(--accent);
  color: var(--bg-dark);
}
@media (max-width: 600px) {
  /* Stack the header: logo on top, brand switcher centered directly beneath it */
  .site-header nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .brand-switch {
    position: static;
    transform: none;
    margin-top: 0.7rem;
    align-self: center;
  }
}

/* --- Corporate umbrella footer line --- */
.footer-corp {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(0, 33, 6, 0.45);
}
.footer-corp a {
  color: rgba(0, 33, 6, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-corp a:hover { color: var(--brand-red); }

/* --- Dev Frame Counter --- */
#frame-counter {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.85);
  color: #00ff88;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  line-height: 1.5;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

#frame-counter #scroll-pct { color: #ffaa00; font-size: 12px; }

/* --- Canvas --- */
.canvas-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* Use large-viewport units so canvas is always sized to URL-bar-hidden height.
     Prevents iOS Safari jump when address/tool bars show or hide during scroll. */
  height: 100vh;
  height: 100lvh;
  z-index: 1;
  transition: transform 0.4s ease-out;
}
#canvas { width: 100%; height: 100%; display: block; }

/* ============================================
   HERO — Urbanist 900 (Black), geometric display
   ============================================ */
.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 5vw;
}

/* Hero logo — visible initially, scrolls up with hero */
.hero-logo {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0; /* hidden until GSAP entrance — prevents flash-on-reload */
}

.hero-logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* Hero badge — sits above heading with breathing room, flanked by spinning leaves */
.hero-badge {
  opacity: 0;
  transform: translateY(30px);
  margin-bottom: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 1.2vw, 1rem);
}

.hero-badge__img {
  height: clamp(34px, 4.8vw, 52px);
  width: auto;
  display: block;
}

.hero-badge__leaf {
  display: block;
  height: clamp(11px, 1.5vw, 18px);
  width: auto;
  opacity: 0;
  transform: rotate(-180deg) scale(0.4);
  transform-origin: 50% 50%;
}

.hero-badge__leaf--right {
  transform: rotate(180deg) scale(0.4) scaleX(-1);
}

/* Chip row — HERBAL  [chip]  LIQUEUR */
.hero-chip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 1.6vw, 1.1rem);
  margin-top: 1.25rem;
}

.hero-chip-word {
  font-family: var(--font-story); /* JetBrains Mono */
  font-size: clamp(0.55rem, 0.72vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 1.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(8px);
}

.hero-chip-word--left { padding-left: 1.1em; /* optical trim for letter-spacing */ }

/* Nyathi chip — JS-driven spin-in then bounce */
.hero-chip {
  width: clamp(38px, 4.5vw, 52px);
  height: clamp(38px, 4.5vw, 52px);
  flex-shrink: 0;
  opacity: 0; /* hidden until GSAP entrance — prevents flash-on-reload */
}

.hero-chip img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-heading {
  font-family: var(--font-hero);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
  margin-bottom: 2rem;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

.hero-heading span {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
}

.hero-heading .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) rotate(3deg);
  filter: blur(6px);
}

/* "Africa" word — clean white fill (red stroke removed: it fringed the text and
   hurt legibility over the film) */
.hero-heading span:last-child .char {
  color: var(--text-on-dark);
}

/* --- Scroll CTA — morph arrow + label, anchored bottom --- */
.scroll-cta {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.scroll-arrow {
  width: 26px;
  height: 26px;
  color: var(--accent);
  transform-origin: 50% 50%;
}

.scroll-cta-label {
  font-family: var(--font-story); /* JetBrains Mono */
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

@keyframes fadeInUp { to { opacity: 1; } }
@keyframes chipBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes arrowBob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(5px); opacity: 1; }
}

@keyframes arrowBounce {
  0%   { transform: translateY(-4px) scaleY(0.9); opacity: 0.6; }
  25%  { transform: translateY(0)    scaleY(1.05); opacity: 1; }
  50%  { transform: translateY(10px) scaleY(0.92); opacity: 1; }
  70%  { transform: translateY(2px)  scaleY(1.08); opacity: 0.9; }
  100% { transform: translateY(-4px) scaleY(0.9); opacity: 0.6; }
}

/* Per-letter zoom wave on "Scroll slowly" — animated by JS (GSAP) */
.scroll-cta-label .sc-l {
  display: inline-block;
  transform-origin: 50% 60%;
  will-change: transform;
}

/* Burst-out particle sparks — spawned by JS when hero exits */
.burst-spark {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 40;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 6px currentColor);
}

/* --- Dark Overlay --- */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: var(--bg-dark);
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   STORY LAYER — 3-line scroll-driven narrative
   ============================================ */
#story-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.story-segment {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  padding: 0 8vw;
  will-change: transform, opacity, filter;
  transition: transform 0.12s ease-out, opacity 0.12s ease-out, filter 0.15s ease-out;
}

/* --- Story words: JetBrains Mono, monospace narrative --- */
.story-words {
  font-family: var(--font-story);
  font-size: var(--text-story);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.5;
  letter-spacing: 0;
  text-shadow:
    0 2px 30px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(0, 0, 0, 0.5);
}

/* --- Connector "&" — mono, softer --- */
.story-connector {
  font-family: var(--font-story);
  font-size: var(--text-connector);
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* --- Emphasis words: Black Mango ExtraBold, CAPS, clean white (red stroke removed:
   2.5px outline fringed the letters and hurt legibility over the film) --- */
.story-word-hero {
  font-family: var(--font-emphasis);
  font-size: var(--text-emphasis);
  font-weight: 800;
  color: #ffffff;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

/* Unemphasised text — no card, clean floating text */
.story-words,
.story-connector {
  background: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Emphasis dust particles use green accent */
.story-emphasis .dust {
  background: var(--accent);
}

/* Non-emphasis dust — soft white shimmer */
.dust.dust-white {
  background: rgba(255, 255, 255, 0.6);
}

/* --- Word wrapping — keeps whole words together, prevents mid-letter line breaks --- */
.word-wrap {
  display: inline-block;
  white-space: nowrap;
}

/* --- Character spans + dust particles --- */
.story-segment .char {
  display: inline-block;
}

.dust {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-primary);
  pointer-events: none;
}

.story-emphasis .dust {
  background: var(--accent);
}

/* --- Scroll Container --- */
#scroll-container {
  position: relative;
  z-index: 5;
  height: 1200vh;
}

/* --- Orange Frame Border + Corners — always on top --- */
#orange-frame {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  border: 12px solid var(--brand-red);
}

.frame-corner {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  width: 32px;
  height: 32px;
}

.frame-corner img {
  width: 100%;
  height: 100%;
  display: block;
}

.frame-corner--tl { top: 14px; left: 14px; transform: rotate(90deg); }
.frame-corner--tr { top: 14px; right: 14px; transform: rotate(180deg); }
.frame-corner--br { bottom: 14px; right: 14px; transform: rotate(270deg); }
.frame-corner--bl { bottom: 14px; left: 14px; }

/* ============================================
   END SECTION — After scroll story
   ============================================ */
/* --- Stat Bar — Fixed HUD at bottom of frame --- */
#stat-bar {
  position: fixed;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  gap: 3rem;
  pointer-events: none;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(15px) scale(0.92);
}

.stat-item svg {
  color: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

.stat-val {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.5);
}

/* --- End Section — overlaps scroll container to prevent any black gap --- */
#end-section {
  position: relative;
  z-index: 20;
  background: rgba(251, 242, 236, 0.22); /* cream, very transparent */
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  margin-top: -50vh;
  padding: 200px 5vw 0;
  overflow: hidden;
  isolation: isolate;
}

/* Pattern overlay — large, oversized for rotate/scale room, clipped by section */
.end-pattern {
  position: absolute;
  inset: -120%;
  background-image: url("../images/pattern-design.svg");
  background-repeat: repeat;
  background-size: 2600px auto;
  background-position: center center;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  transform-origin: center center;
  will-change: transform;
}

#end-section > .end-cta,
#end-section > .site-footer { position: relative; z-index: 1; }

/* --- CTA Block --- */
.end-cta {
  text-align: center;
  padding: 4vh 5vw 4vh;
  max-width: 1320px;
  margin: 0 auto;
}

/* Elements that should still sit in a narrower reading column */
.end-cta > .end-heading,
.end-cta > .end-emblem,
.end-cta > .stat-row,
.end-cta > .thambisa-nyathi,
.end-cta > .tame-buffalo,
.end-cta > .best-chilled,
.end-cta > .end-btn,
.end-cta > .end-chip {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.end-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.end-emblem {
  display: block;
  width: clamp(48px, 6vw, 72px);
  height: auto;
  margin: 3.5rem auto 2.75rem;
  opacity: 0;
  transform: translateY(20px);
}

.end-heading {
  font-family: var(--font-emphasis);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #002106; /* dark forest — matches brand asset */
  margin-bottom: 3.5rem;
}

.end-heading span {
  display: inline-block;
}

.end-heading .char {
  display: inline-block;
  opacity: 0;
  will-change: transform, filter;
}

/* --- Ornate plaque container (paragraph, Story Container SVG) --- */
.ornate-plaque {
  --ornate-fill: #FAF2EC;
  --ornate-stroke: #002106;
  --plaque-aspect: 401.5 / 366.5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(94%, 400px);
  aspect-ratio: var(--plaque-aspect);
  margin: 0 auto 2.25rem;
  padding: 10% 11% 11%;
  isolation: isolate;
  box-sizing: border-box;
}

.ornate-plaque__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.ornate-plaque__decor {
  fill: var(--ornate-fill);
  stroke: var(--ornate-stroke);
  stroke-width: 0.85;
  stroke-miterlimit: 10;
}

.ornate-plaque__outer {
  fill: var(--ornate-fill);
  stroke: var(--ornate-stroke);
  stroke-width: 1.6;
  stroke-miterlimit: 10;
}

.ornate-plaque__inner {
  fill: var(--ornate-fill);
  stroke: var(--ornate-stroke);
  stroke-width: 0.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Content column with crowns flanking the paragraph */
.ornate-plaque__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
}


.ornate-plaque__crown {
  width: 18%;
  max-width: 68px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.ornate-plaque__crown--bottom { transform: scaleY(-1); }

/* --- Two-column layout: plaque | carousel --- */
.end-two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  width: min(96%, 1200px);
  margin: 0 auto 2rem;
}

.end-two-col .end-sub-plaque {
  margin: 0;
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

.end-two-col .image-carousel {
  margin: 0;
  width: min(100%, 380px);
  justify-self: start;
}

@media (max-width: 760px) {
  .end-two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Image Carousel --- */
.image-carousel {
  width: min(85%, 400px);
  margin: 1.5rem auto 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  user-select: none;
  touch-action: pan-y;
}

.ic-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  perspective: 1400px;
  /* NOTE: no `transform-style: preserve-3d` — in a shared 3D space the browser
     depth-sorts the cards and ignores z-index, so rotated neighbours poke in
     front of the active card. Flat compositing keeps the perspective tilt while
     honouring the z-index set by the JS (active card stays on top). */
}

.ic-stage .ic-card {
  aspect-ratio: 4 / 5;
}

.ic-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid var(--brand-red, #E8743B);
  background: #0D3B10;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
  transform-style: flat;
  cursor: grab;
  opacity: 0;
  pointer-events: none;
}

.ic-card:active { cursor: grabbing; }

.ic-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.ic-card__img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ic-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-emphasis);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 700;
  color: rgba(250, 242, 236, 0.6);
  background:
    repeating-linear-gradient(45deg,
      rgba(250, 242, 236, 0.05) 0 14px,
      transparent 14px 28px),
    linear-gradient(160deg, #0D3B10 0%, #002106 100%);
}

.ic-dots {
  display: flex;
  gap: 0.55rem;
  padding: 0;
}

.ic-dot {
  appearance: none;
  background: transparent;
  border: 1.5px solid rgba(0, 33, 6, 0.35);
  width: 10px;
  height: 10px;
  position: relative;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.ic-dot::after {
  content: "";
  position: absolute;
  inset: -14px;
}
.ic-dot:hover { border-color: rgba(0, 33, 6, 0.7); }
.ic-dot.is-active {
  /* warm amber accent so the active slide reads at a glance (was green-on-green,
     same hue as the inactive dots — no contrast). Matches the brand focus ring. */
  background: #E8743B;
  border-color: #E8743B;
  transform: scale(1.2);
}

.ic-dot:focus-visible {
  outline: 2px solid var(--brand-red, #E8743B);
  outline-offset: 3px;
}

/* --- Small-container stat row (under the story plaque) --- */
.stat-row {
  list-style: none;
  padding: 0;
  /* was -1rem top (pulled the 4 pods up against the recipes) — give the section room */
  margin: 3rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  width: min(90%, 340px);
}

.stat-pod {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  isolation: isolate;
}

.stat-pod__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.stat-pod__outer {
  fill: #FAF2EC;
  stroke: #002106;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-pod__inner {
  fill: #FAF2EC;
  stroke: #002106;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-pod__val {
  position: relative;
  z-index: 1;
  font-family: var(--font-story); /* JetBrains Mono */
  font-size: clamp(0.55rem, 1.05vw, 0.7rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #002106;
  text-align: center;
  text-transform: uppercase;
}

/* Chip under Get In Touch button */
.end-chip {
  display: block;
  width: clamp(38px, 4.5vw, 52px);
  height: auto;
  margin: 4rem auto 0.5rem;
  opacity: 0.85;
}

/* Marks at the bottom of the page — best-chilled + chip, outside any section */
.page-end-marks {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 1rem 1rem;
}

.best-chilled--bottom {
  width: 220px;
  max-width: 70%;
  height: auto;
  margin: 0;
}

.end-chip--bottom {
  width: clamp(42px, 5vw, 56px);
  margin: 0;
  opacity: 0.9;
}

/* --- Brand Band — full-width section with beige + tiled pattern --- */
.brand-band {
  position: relative;
  width: calc(100% + 10vw);
  margin-left: -5vw;
  margin-right: -5vw;
  margin-top: 4rem;
  padding: clamp(6rem, 14vh, 11rem) 5vw;
  background-color: #F4EBDD; /* light beige */
  border-top: 6px solid #002106;
  border-bottom: 6px solid #002106;
  border-image: linear-gradient(to right, #002106 0%, #40ad48 50%, #002106 100%) 1;
  overflow: hidden;
  z-index: 10000;
}

/* Product hero image — inside brand band, below badges */
.brand-band__hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 3 / 4;
}

.brand-band__hero-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: transform;
}

/* Product shot (left, small) + recipes (right), side by side */
.brand-band__duo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 1rem auto 1.5rem;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.brand-band__duo .brand-band__hero-img {
  flex: 0 0 auto;
  width: clamp(300px, 48%, 460px);
  /* Source is 1600×893 (landscape) — a 3/4 portrait frame cropped it brutally.
     A 16/10 frame shows almost the whole product shot. */
  aspect-ratio: 16 / 10;
  margin: 0;
}
.brand-band__duo .brand-band__hero-img img { object-position: center center; }
.brand-band__duo .recipes {
  flex: 1 1 auto;
  width: auto;
  max-width: 520px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand-band__duo .recipes .recipes__track { width: 100%; }
.brand-band__duo .recipes .recipes__dots { justify-content: center; width: 100%; }
@media (max-width: 700px) {
  .brand-band__duo { flex-direction: column; }
  .brand-band__duo .brand-band__hero-img { width: min(70%, 240px); }
  .brand-band__duo .recipes { width: 100%; }
}

/* Parallax pattern layer — very subtle behind content */
.brand-band__bg {
  position: absolute;
  top: -25%;
  left: 0;
  right: 0;
  height: 150%;
  background-image: url("../images/pattern-design.svg");
  background-repeat: repeat;
  background-size: clamp(1100px, 130vw, 1900px);
  background-position: 70% center;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
  opacity: 0.22;
}

/* --- Recipes Carousel --- */
.recipes {
  position: relative;
  z-index: 1;
  width: min(92%, 520px);
  margin: 1.5rem auto;
  text-align: center;
}

.recipes__heading {
  font-family: var(--font-story);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #002106;
  margin-bottom: 1.25rem;
  opacity: 0.6;
  text-align: center; /* centred over the whole recipes section */
}

.recipes__track {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #FAF2EC;
  border-radius: 12px;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(0, 33, 6, 0.1);
  /* let the browser keep vertical page scroll but hand horizontal drags to the
     swipe handler, so a sideways swipe on mobile isn't cancelled as a scroll */
  touch-action: pan-y;
  /* Stack EVERY card in the same grid cell. The track sizes to the tallest card
     (so it never reflows when you switch) and the cards simply cross-fade in
     place — no position swap, no jump to the corner. */
  display: grid;
}

.recipes__card {
  grid-area: 1 / 1;          /* all cards occupy the one cell, perfectly overlapped */
  width: 100%;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  box-sizing: border-box;
  /* pure cross-fade — slow + smooth, so each recipe gently dissolves out while
     the next dissolves in (no slide, stays in place). */
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipes__card.is-active {
  opacity: 1;
  pointer-events: auto;
}

.recipes__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  /* leave room for the floating top-right controls (arrows + 01/05 counter) */
  padding-right: 7rem;
}

.recipes__name {
  font-family: var(--font-story);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  color: #002106;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Top-right control cluster: prev / next arrows to the LEFT of the 01 / 05
   counter, floating over the recipe card. */
.recipes__controls {
  position: absolute;
  top: clamp(0.9rem, 2.4vw, 1.35rem);
  right: clamp(0.9rem, 2.4vw, 1.4rem);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 6;
}
.recipes__controls .recipe-arrow {
  width: 27px;
  height: 27px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px -8px rgba(0, 33, 6, 0.5);
}
.recipes__controls .recipe-arrow::before {
  width: 7px;
  height: 7px;
}
.recipes__counter {
  font-family: var(--font-story);
  font-size: clamp(0.6rem, 0.75vw, 0.7rem);
  font-weight: 500;
  color: var(--brand-red);
  letter-spacing: 0.05em;
  height: 1.3em;
  line-height: 1.3;
  margin-right: 0.15rem;
  white-space: nowrap;
}

.recipes__counter-num {
  display: block;
}

.recipes__ingredients {
  list-style: none;
  padding: 1rem 0.85rem;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 33, 6, 0.045);
  border-radius: 8px;
}

.recipes__ingredients li {
  font-family: var(--font-story);
  font-size: clamp(0.62rem, 0.75vw, 0.72rem);
  font-weight: 400;
  color: #002106;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.recipes__ingredients li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: url("../images/mini-leaf.svg") center / contain no-repeat;
}

.recipes__method {
  font-family: var(--font-story);
  font-size: clamp(0.65rem, 0.8vw, 0.75rem);
  font-weight: 400;
  line-height: 1.7;
  color: #002106;
  opacity: 0.8;
  margin: 0;
}

.recipes__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.recipes__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 0;
  background: #002106;
  cursor: pointer;
  padding: 0;
  opacity: 0.2;
  transition: opacity 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
  /* Touch target: visually small but tappable */
  position: relative;
}
.recipes__dot::after {
  content: "";
  position: absolute;
  inset: -16px;
}

.recipes__dot.is-active {
  background: #002106;
  opacity: 0.6;
  width: 16px;
  border-radius: 3px;
}

.recipes__dot:hover {
  opacity: 0.45;
}

/* --- Recipes: dynamic BENTO grid ---
   A large product-image tile plus recipe cards of varied sizes (not a rigid
   2-column split). Cards reuse the ORIGINAL recipe styling — name + leaf-bullet
   ingredients + method — with no numbers and no badges. */
.recipes--bento {
  text-align: left;
  width: 100%;
  max-width: 1060px;
  /* Own container — frosted glass: the SAME faint tint as the ingredient panels,
     transparent, with the brand-band pattern blurred behind it. */
  background: rgba(0, 33, 6, 0.045);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 33, 6, 0.1);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 20px 44px -30px rgba(0, 33, 6, 0.45);
}
/* Image (left) + recipe slider (right). The grid is TWO rows: the image fills
   the top row and the 4 stat pods sit in the bottom-left cell, while the slider
   spans BOTH rows on the right. align-items:stretch + the 1fr image row mean the
   image auto-resizes so its bottom always meets the pods — and the pods' bottom
   always lines up with the slider's bottom — no matter how tall the active
   recipe card is. */
.recipe-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(0.9rem, 2.2vw, 1.5rem);
  /* stretch: the image column matches the slider's height, so the image's bottom
     lines up with the nav dots at the bottom of the slider. */
  align-items: stretch;
  width: 100%;
}
.recipe-bento__img {
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0, 33, 6, 0.12);
  background: #faf2ec;
}
.recipe-bento__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.recipe-slider {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* Full-width track; bare chevrons sit just inside its left/right edges (no box) */
.recipe-slider__row {
  position: relative;
}
.recipe-slider__row .recipes__track {
  width: 100%;
}
/* Prev / next now flank the dots in the nav row — modern circular glass buttons
   with a CSS-drawn chevron (no more bare ‹ › glyphs floating over the card). */
.recipe-slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.recipe-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(0, 33, 6, 0.18);
  background: rgba(250, 242, 236, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  color: #002106;
  font-size: 0;          /* hide any glyph; the chevron is drawn below */
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 6px 16px -10px rgba(0, 33, 6, 0.5);
  transition: background 0.25s ease, border-color 0.25s ease,
              transform 0.2s ease, box-shadow 0.25s ease;
}
.recipe-arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 1px;
}
.recipe-arrow--prev::before { transform: rotate(135deg); margin-left: 3px; }
.recipe-arrow--next::before { transform: rotate(-45deg); margin-right: 3px; }
.recipe-arrow:hover {
  background: #fff;
  border-color: rgba(0, 33, 6, 0.32);
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 10px 22px -12px rgba(0, 33, 6, 0.55);
}
.recipe-arrow:active { transform: scale(0.9); }
.recipe-arrow:focus-visible { outline: 2px solid #002106; outline-offset: 2px; }


/* Card box — original beige style (content uses .recipes__name/__ingredients/
   __method, defined above, for the leaf bullets + ingredient panel). */
.recipe-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(0.9rem, 1.4vw, 1.25rem);
  background: #faf2ec;
  border: 1px solid rgba(0, 33, 6, 0.1);
  border-radius: 12px;
  text-align: left;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
.recipe-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 33, 6, 0.22);
  box-shadow: 0 14px 30px -16px rgba(0, 33, 6, 0.4);
}
.recipe-card .recipes__name { margin: 0; }
.recipe-card .recipes__ingredients { margin: 0; }
.recipe-card .recipes__method { margin: 0; }

@media (max-width: 860px) {
  /* Single column: image (with its 3:2 frame back) stacked over the slider. */
  .recipe-bento {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .recipe-bento__img { aspect-ratio: 3 / 2; }
}

/* Slightly darker beige tint above background, behind pattern */
.brand-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(150, 130, 100, 0.18);
  pointer-events: none;
  z-index: 0;
}

.brand-band__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Chip at the top of the brand band, above Thambisa Nyathi */
.brand-band__chip {
  display: block;
  width: clamp(58px, 5.5vw, 82px);
  height: auto;
  margin: 0 auto 0.5rem;
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
  transform-origin: 50% 50%;
}

/* Thambisa Nyathi wordmark — smaller on desktop (px cap reduced) */
.thambisa-nyathi {
  display: block;
  width: min(56%, 360px);
  height: auto;
  margin: 0 auto;
}

/* Tame the Buffalo badge — smaller on desktop (px cap reduced) */
.tame-buffalo {
  display: block;
  width: min(68%, 480px);
  height: auto;
  margin: calc(-2rem + 20px) auto 0.75rem;
}

/* Space above the button */
.end-cta > .end-btn {
  margin-top: 2.5rem;
  margin-inline: auto;
  align-self: center;
}

/* Best-served-chilled below the back-to-top button, close to footer */
.best-chilled.best-chilled--footer {
  display: block;
  width: 220px;
  max-width: 55%;
  height: auto;
  /* negative top pulls the badge up closer to the 4 icons (offsets the parent
     brand-band__inner flex gap) */
  margin: -0.75rem auto 0;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

/* Darker-beige variant of the ornate button used on the light-beige band */
.ornate-btn--dark {
  --ornate-fill: #C9B796; /* darker beige */
  --ornate-stroke: #002106;
}

/* Gradient shimmer on Get In Touch button — white to light beige sweep */
.end-btn .ornate-btn__outer,
.end-btn .ornate-btn__inner-line {
  fill: url(#btn-gradient-sweep);
}

/* Cross-brand CTA to the Pure Vodka brand — monochrome to echo that site's
   black/silver identity. Sits below the back-to-top control, above the footer. */
.pv-discover {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0.25rem 5vw 1.75rem;
}
.pv-discover__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 2.4rem;
  background: #0b0b0d;
  color: #f6f5f3;
  border: 1px solid #0b0b0d;
  border-radius: 980px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.35s var(--ease-out-quart), color 0.35s var(--ease-out-quart), transform 0.35s var(--ease-out-quart);
}
.pv-discover__arrow { transition: transform 0.35s var(--ease-out-quart); }
.pv-discover__btn:hover {
  background: transparent;
  color: #0b0b0d;
  transform: translateY(-2px);
}
.pv-discover__btn:hover .pv-discover__arrow { transform: translateX(4px); }
.pv-discover__btn:focus-visible { outline: 2px solid #0b0b0d; outline-offset: 4px; }

/* Delivery info under the Get In Touch button */
.end-delivery-note {
  margin: 1.1rem auto 0;
  max-width: 460px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(0, 33, 6, 0.7);
}
.end-delivery-note strong { color: #002106; font-weight: 600; }

/* Best Served Chilled strip — sized to button's visible width */
.best-chilled {
  display: block;
  width: 280px;
  max-width: 90%;
  height: auto;
  margin: 0.75rem auto 1.75rem;
  opacity: 0;
  transform: translateY(20px);
}

/* Reveal: scroll-driven fade-ins */
.end-sub-plaque,
.stat-row .stat-pod,
.end-btn {
  opacity: 0;
  transform: translateY(20px);
}

/* Second sentence — small gap, not a full blank line */
.end-sub__p2 {
  display: block;
  margin-top: 0.5em;
}

.end-sub {
  position: relative;
  z-index: 1;
  font-family: var(--font-story); /* JetBrains Mono */
  font-size: clamp(0.7rem, 0.85vw, 0.82rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: #002106;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
}


.end-btn {
  /* Reveal-animation initial state — visuals handled by .ornate-btn */
  opacity: 0;
  transform: translateY(20px);
  padding-left: 6.5rem;
  padding-right: 6.5rem;
  min-width: 340px;
}

/* (Stats moved to #stat-bar fixed HUD) */

/* --- Contact Box --- */
.contact-box {
  max-width: 520px;
  margin: 0 auto 3vh;
  padding: 0 5vw;
  opacity: 0;
  transform: translateY(25px);
}

.contact-inner {
  border: 1px solid rgba(0, 255, 178, 0.15);
  padding: 3rem;
  text-align: center;
  background: rgba(0, 255, 178, 0.02);
}

.contact-heading {
  font-family: var(--font-emphasis);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-translation {
  font-family: var(--font-story);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  color: rgba(57, 255, 142, 0.5);
  margin-bottom: 2rem;
  font-style: italic;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-on-dark);
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.contact-link:hover {
  opacity: 1;
  color: var(--accent);
}

.contact-link:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.contact-link svg { color: var(--accent); opacity: 0.6; flex-shrink: 0; }

.contact-note {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.2);
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 20;
  background: transparent;
  text-align: center;
  padding: 3rem 5vw;
}

/* --- Back to top button — matches scroll-cta aesthetic --- */
.back-to-top {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem auto 1.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #002106;
  transition: transform 0.25s var(--ease-out-quart), color 0.2s ease;
}

.back-to-top__arrow {
  color: inherit;
  animation: arrowBobUp 2.2s ease-in-out infinite;
}

.back-to-top__label {
  font-family: var(--font-story); /* JetBrains Mono */
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.75;
}

.back-to-top:hover { transform: translateY(-3px); color: #00551a; }
.back-to-top:hover .back-to-top__label { opacity: 1; }
.back-to-top:active { transform: translateY(0) scale(0.97); }
.back-to-top:focus-visible { outline: 2px solid #002106; outline-offset: 6px; border-radius: 2px; }

@keyframes arrowBobUp {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.footer-brand {
  display: block;
  font-family: var(--font-hero);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.footer-legal {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: 400;
  color: rgba(0, 33, 6, 0.45);
  margin-bottom: 0.5rem;
}

.footer-warning {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red);
  opacity: 0.75;
}

/* Hide mobile-only break on desktop */
.mobile-break { display: none; }

/* Alcohol warning — absolute bottom of brand-band */
.footer-warning--band {
  position: absolute;
  bottom: clamp(0.75rem, 1.5vh, 1.25rem);
  left: 0;
  right: 0;
  color: #8B2500;
  opacity: 0.65;
  text-align: center;
  font-size: clamp(0.55rem, 0.7vw, 0.65rem);
  margin: 0;
  z-index: 2;
}

/* ═══════════════════════════════════════════════
   ORNATE BUTTON — inline SVG frame + label overlay
   ═══════════════════════════════════════════════ */
.ornate-btn {
  --ornate-fill: #FAF2EC;
  --ornate-stroke: #002106;
  --ornate-ink: #002106;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 3.5rem;
  min-height: 62px;
  min-width: 220px;
  width: auto;
  max-width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--ornate-ink);
  font-family: var(--font-emphasis);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  isolation: isolate;
  box-sizing: border-box;
  transition: transform 0.25s var(--ease-out-quart), filter 0.3s ease;
}

.ornate-btn__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.ornate-btn__outer {
  fill: var(--ornate-fill);
  stroke: var(--ornate-stroke);
  stroke-width: 1.25;
  stroke-miterlimit: 10;
}

.ornate-btn__inner-line {
  fill: var(--ornate-fill);
  stroke: var(--ornate-stroke);
  stroke-width: 0.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ornate-btn__label {
  position: relative;
  z-index: 2;
  white-space: nowrap;
}


.ornate-btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 22px rgba(0, 33, 6, 0.35));
}
.ornate-btn:active { transform: translateY(0) scale(0.98); }
.ornate-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* Ghost variant */
.ornate-btn--ghost {
  --ornate-fill: transparent;
  --ornate-stroke: rgba(240, 237, 232, 0.55);
  --ornate-ink: rgba(240, 237, 232, 0.75);
  min-width: 140px;
}
.ornate-btn--ghost:hover {
  --ornate-stroke: rgba(240, 237, 232, 0.85);
  --ornate-ink: rgba(240, 237, 232, 0.95);
  filter: none;
  transform: translateY(-1px);
}

/* --- Mobile --- */
@media (max-width: 768px) {
  #scroll-container { height: 900vh; }

  .hero-heading {
    font-size: clamp(3rem, 14vw, 6rem);
    letter-spacing: -0.02em;
  }

  .hero-overlay { padding: 0 6vw; }

  .story-words { font-size: clamp(0.95rem, 3.2vw, 1.2rem); }
  .story-word-hero { font-size: clamp(1.6rem, 7.5vw, 3.2rem); white-space: nowrap; }
  .story-connector { font-size: clamp(0.8rem, 2.4vw, 1rem); }
  .story-segment { padding: 0 6vw; }

  .site-header { padding: 1rem 4vw; }

  /* Mobile orange frame — PINNED to the small viewport (svh) so it never shifts
     when the browser's URL bar shows/hides on scroll. With plain bottom:0 the
     frame's bottom edge tracks the growing/shrinking viewport and visibly slides
     as you scroll down; a constant svh height holds it perfectly still. The
     bottom corners are anchored to the same stable line (vh fallback first). */
  #orange-frame {
    border-width: 8px;
    bottom: auto;
    height: 100vh;
    height: 100svh;
  }
  .frame-corner { width: 24px; height: 24px; }
  .frame-corner--tl, .frame-corner--tr, .frame-corner--br, .frame-corner--bl { top: auto; left: auto; right: auto; bottom: auto; }
  .frame-corner--tl { top: 10px; left: 10px; }
  .frame-corner--tr { top: 10px; right: 10px; }
  .frame-corner--br { right: 10px; top: calc(100vh - 34px); top: calc(100svh - 34px); }
  .frame-corner--bl { left: 10px; top: calc(100vh - 34px); top: calc(100svh - 34px); }

  /* End section mobile — take the whole viewport */
  .end-heading { font-size: clamp(1.5rem, 7vw, 2.4rem); white-space: normal; }
  .contact-inner { padding: 2rem 1.5rem; }
  #end-section {
    margin-top: -20vh;
    padding: 0 4vw;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .end-cta {
    padding: 2vh 4vw 3vh;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .end-pattern { background-size: 1300px auto; inset: -100%; }
  .mobile-break { display: inline; }

  /* Stat bar mobile */
  #stat-bar { gap: 1.5rem; bottom: 1.5rem; flex-wrap: wrap; justify-content: center; padding: 0 4vw; }
  .stat-item svg { width: 16px; height: 16px; }
  .stat-val { font-size: 0.55rem; }

  #frame-counter {
    bottom: 1rem;
    right: 1rem;
    font-size: 12px;
    padding: 8px 12px;
  }

  .ornate-btn {
    padding: 1rem 2.25rem;
    min-width: 0;
    width: auto;
    max-width: max-content;
    min-height: 52px;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }
  .ornate-btn--ghost { min-width: 0; }
  /* Center the end-section button, don't let it stretch */
  .end-cta .ornate-btn { align-self: center; }
  .end-btn { padding-left: 3.25rem; padding-right: 3.25rem; min-width: 260px; }
  .best-chilled { width: 220px; }

  .tame-buffalo { width: min(90%, 340px); }

  /* Recipes mobile */
  .recipes { width: 100%; }
  .recipes__track { padding: 0.85rem; }
  .recipes__name { font-size: 0.9rem; }
  .recipes__counter { top: 0.85rem; right: 0.85rem; }
  .recipes__method { font-size: 0.68rem; }
  .recipes__ingredients li { font-size: 0.65rem; }

  /* Disclaimer readable on mobile */
  .footer-warning--band { font-size: 0.55rem; }

  /* Stat pods mobile */
  .stat-pod { width: 40px; height: 40px; }
  .stat-row { gap: 0.3rem; width: min(95%, 220px); }

  /* Hero image prevent horizontal scroll */
}

/* ═══════════════════════════════════════════════════════
   Persistent scroll cue + bottom-left Pace Meter
   ═══════════════════════════════════════════════════════ */

/* ───── Pace Widget (bottom-center) ─────
   Starts as "Scroll slowly" hint (letter-wave); swaps to live meter on first scroll.
   No container background — just content on the page. */
.pace-widget {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 10px);
  z-index: 10010;
  display: grid;           /* stack hint + meter in same grid cell */
  grid-template: 1fr / 1fr;
  align-items: center;
  justify-items: center;
  color: var(--accent, #FAF2EC);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.9,.3,1);
  pointer-events: none;
  --pace-accent: #b8b0a0;
}
.pace-widget.is-visible { opacity: 1; transform: translate(-50%, 0); }
.pace-widget > .pace-hint,
.pace-widget > .pace-meter {
  grid-area: 1 / 1;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(.2,.9,.3,1);
}
/* Initial: hint visible, meter hidden + below */
.pace-widget.is-hint  > .pace-hint  { opacity: 1; transform: translateY(0); }
.pace-widget.is-hint  > .pace-meter { opacity: 0; transform: translateY(10px); pointer-events: none; }
/* After scroll starts: meter visible, hint fades up and out */
.pace-widget.is-meter > .pace-hint  { opacity: 0; transform: translateY(-8px); }
.pace-widget.is-meter > .pace-meter { opacity: 1; transform: translateY(0); }

/* Scroll-slowly hint (intro) — no container background */
.pace-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent, #FAF2EC);
}
.pace-hint__arrow {
  color: var(--accent, #FAF2EC);
}
.pace-hint__label {
  font-family: var(--font-story, "JetBrains Mono", monospace);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #FAF2EC);
}

/* ───── Pace Meter (no container bg) ───── */
.pace-meter {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 148px;
  color: var(--accent, #FAF2EC);
  --pace-accent: #8adf8f;
}
.pace-meter.is-idle    { --pace-accent: #b8b0a0; }
.pace-meter.is-good    { --pace-accent: #8adf8f; }
.pace-meter.is-fast    { --pace-accent: #f2b368; }
.pace-meter.is-toofast { --pace-accent: #e87a56; animation: paceShake 0.45s ease-in-out; }

@keyframes paceShake {
  0%, 100% { transform: translateY(0); }
  20% { transform: translate(-2px, -1px); }
  40% { transform: translate(2px, 1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 0); }
}

.pace-meter__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-story, "JetBrains Mono", monospace);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
.pace-meter__dotled {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pace-accent);
  box-shadow: 0 0 8px var(--pace-accent);
  transition: background 0.35s ease, box-shadow 0.35s ease;
  animation: paceLedPulse 1.8s ease-in-out infinite;
}
@keyframes paceLedPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
.pace-meter__label { opacity: 0.85; flex: 1; }
.pace-meter__status {
  font-weight: 600;
  color: var(--pace-accent);
  letter-spacing: 0.14em;
  transition: color 0.35s ease;
}

.pace-meter__track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(250, 242, 236, 0.12);
  overflow: visible;
}
.pace-meter__zone {
  position: absolute;
  top: 0; bottom: 0;
  left: 22%; width: 32%;
  border-radius: 999px;
  background: linear-gradient(to right,
    rgba(138, 223, 143, 0.0) 0%,
    rgba(138, 223, 143, 0.55) 50%,
    rgba(138, 223, 143, 0.0) 100%);
}
.pace-meter__ticks {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    rgba(250, 242, 236, 0.18) 0 1px,
    transparent 1px calc(100% / 10));
  background-size: 100% 100%;
  border-radius: 999px;
  opacity: 0.35;
}
.pace-meter__needle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px; height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--pace-accent);
  box-shadow:
    0 0 0 2px rgba(0, 33, 6, 0.9),
    0 0 14px var(--pace-accent);
  transform: translateX(0);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

@media (max-width: 520px) {
  .pace-meter { min-width: 128px; padding: 0.45rem 0.6rem 0.5rem; }
  .pace-cue   { bottom: 0.85rem; }
  /* Keep "Scroll slowly, buffalo ahead" on a single line on phones */
  .scroll-cta-label {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
}

/* ═══════════════════════════════════════════════
   Accessibility — reduced motion
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #film-grain { display: none; }
  .story-segment { will-change: auto; }

  /* The recipe cross-fade is a core interaction (not decorative motion), so keep
     it slow + smooth even under reduced-motion — otherwise the global override
     above snaps it instantly. */
  .recipes__card {
    transition-duration: 1s !important;
  }
}
