/* =================================================================
   COCA-COLA CREATIONS: HALLOWEEN  —  style.css
   Phase 1: structure + styling (no motion).
   Motion (Lenis / GSAP / particles) layers on top in Phase 2.
   ================================================================= */

/* -----------------------------------------------------------------
   TOKENS
   ----------------------------------------------------------------- */
:root {
  /* Type — swap these two lines to change the whole system */
  --font-display: "Anton", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Base palette (all sections dark) */
  --bg: #0a0a0a;
  --bg-deep: #060606;
  --ink: #f5f5f6;
  --ink-dim: rgba(245, 245, 246, 0.6);
  --ink-faint: rgba(245, 245, 246, 0.38);

  /* Layout */
  --maxw: 1400px;
  --pad: clamp(20px, 5vw, 80px);

  /* Default accent (overridden per flavor) */
  --accent: #ffffff;
  --accent-rgb: 255, 255, 255;
}

/* -----------------------------------------------------------------
   RESET / BASE
   ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas { display: block; max-width: 100%; }

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

ul { list-style: none; }

/* Shared display heading treatment */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

/* Eyebrow label utility */
.eyebrow,
.flavor__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: clamp(0.62rem, 1vw, 0.78rem);
}

/* =================================================================
   1. HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  isolation: isolate;
}

/* Three-layer hero parallax. Sky + ledge share IDENTICAL box geometry so
   `cover` + `center 46%` scale them the same and the rock cutout registers
   exactly over the rock in the sky plate. The shared bleed gives the
   GSAP parallax translate room without exposing an edge. */
.hero__sky,
.hero__ledge {
  position: absolute;
  inset: -10% -6%;
  background-position: center 46%;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}
.hero__sky {
  background-color: #05060a;
  background-image: url("../assets/bg-without-ledge.png"); /* sky/atmosphere only — rock lives in .hero__ledge */
  z-index: -4;
}
.hero__ledge {
  background-image: url("../assets/bg-ledge-transparent.png");
  z-index: -3;
}

/* --- Ground fog: two blurred wisps drifting opposite directions, masked to
   the lower scene so it rolls over the ledge + cans' base, never the headline. */
.hero__fog {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 62%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 30%, #000 62%, #000 92%, transparent 100%);
}
.hero__fog-layer { position: absolute; bottom: -6%; left: -30%; width: 160%; height: 70%; will-change: transform; }
.hero__fog-layer--back {
  background:
    radial-gradient(40% 60% at 22% 70%, rgba(150, 170, 205, 0.10), transparent 70%),
    radial-gradient(46% 64% at 70% 78%, rgba(120, 140, 180, 0.09), transparent 72%);
  filter: blur(26px);
  opacity: 0.9;
  animation: fogDriftBack 34s linear infinite;
}
.hero__fog-layer--front {
  background:
    radial-gradient(38% 58% at 40% 82%, rgba(190, 205, 230, 0.12), transparent 68%),
    radial-gradient(44% 60% at 84% 86%, rgba(160, 180, 210, 0.10), transparent 70%);
  filter: blur(18px);
  opacity: 0.8;
  animation: fogDriftFront 23s linear infinite;
}
@keyframes fogDriftBack  { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(6%,-1.5%,0); } }
@keyframes fogDriftFront { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-7%,1.5%,0); } }

/* --- Moonlight-cast can shadows: flattened blurred pools under each can.
   In the DOM before the can <img>s so they sit behind. Faded in by main.js. */
.hero__can-shadow {
  position: absolute;
  bottom: 25.4%;
  width: clamp(96px, 10vw, 168px);
  height: clamp(16px, 2.4vw, 34px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55), rgba(0,0,0,0.30) 46%, transparent 74%);
  filter: blur(7px);
  pointer-events: none;
}
.hero__can-shadow--vanilla   { left: 33%; }
.hero__can-shadow--marmalade { left: 50%; }
.hero__can-shadow--potion    { left: 67%; }

/* Mood + text legibility wash */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 8%, rgba(180, 200, 235, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(5, 6, 12, 0.55) 0%, rgba(5, 6, 12, 0) 28%, rgba(5, 6, 12, 0.2) 62%, rgba(10, 10, 10, 0.95) 100%);
}

/* --- Cans on the ledge ---
   Each can PNG is a 4000x4000 square; the visible can occupies the centred
   27.5% width and its base sits at 87.6% of the frame height. Positioning the
   image centre therefore ~= positioning the can centre. Seat tuned by eye. */
.hero__cans {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* All three cans share one width + one BOTTOM anchor so their bases sit on the
   same Y line (level on the ledge). Even horizontal spacing via left %. */
.hero__can {
  position: absolute;
  width: var(--hero-can-w, 30vw);
  bottom: var(--hero-seat, 27%);
  transform: translateX(-50%);
  filter: drop-shadow(0 38px 42px rgba(0, 0, 0, 0.55));
  will-change: transform;
}
.hero__can--vanilla   { left: 33%; }
.hero__can--marmalade { left: 50%; }
.hero__can--potion    { left: 67%; }

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(2px, 0.6vh, 6px) var(--pad) 0; /* lifted so the headline clears the cans */
  width: 100%;
  max-width: 1280px;
}

/* logo PNGs ship pure-black on transparent -> invert to the intended white */
.hero__eyebrow {
  width: clamp(104px, 12vw, 128px);
  height: auto;
  margin: 0 auto clamp(6px, 1vh, 10px);
  opacity: 0.96;
  filter: invert(1) drop-shadow(0 2px 14px rgba(0, 0, 0, 0.9));
}

.hero__title {
  font-size: clamp(2.52rem, 7.29vw, 6.3rem); /* -10% from prior, lifted to clear the cans */
  letter-spacing: 0.004em;
  text-shadow: 0 6px 44px rgba(0, 0, 0, 0.65);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-dim);
}
.scroll-cue__label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
}
.scroll-cue__thread { position: relative; width: 20px; height: 60px; }
.scroll-cue__silk {
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 100%;
  transform: translateX(-50%) scaleY(0.12);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--ink-dim), rgba(245,245,246,0.04));
  animation: silkDrop 4.6s ease-in-out infinite;
}
.scroll-cue__spider {
  position: absolute;
  top: 0; left: 50%;
  width: 20px; height: 20px;
  margin-left: -10px; margin-top: 0;
  opacity: 0.9;
  background: center / contain no-repeat;
  background-image: url("../assets/scroll-spider.svg");
  transform: rotate(180deg);
  animation: spiderDrop 4.6s ease-in-out infinite;
}
@keyframes silkDrop {
  0%,8%    { transform: translateX(-50%) scaleY(0.12); }
  38%,64%  { transform: translateX(-50%) scaleY(1); }
  92%,100% { transform: translateX(-50%) scaleY(0.12); }
}
@keyframes spiderDrop {
  /* translateY first so positive = down in screen space; rotate keeps spider flipped. */
  0%,8%    { transform: translateY(0px) rotate(180deg); opacity: 0; }
  20%      { opacity: 0.9; }
  38%,64%  { transform: translateY(52px) rotate(180deg); opacity: 0.9; }
  92%,100% { transform: translateY(0px) rotate(180deg); opacity: 0; }
}

/* =================================================================
   FALLING LEAVES (parallax) — hero, film, payoff
   Containers are populated + animated by main.js initLeaves().
   ================================================================= */
.section-leaves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero   .section-leaves { z-index: 1; }  /* in front of cans, behind the headline */
.film   .section-leaves { z-index: 1; }
.payoff .section-leaves { z-index: 0; }  /* behind the cans + copy */
.leaf {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;             /* per-leaf width set inline by JS */
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  will-change: transform;
}

/* Section bridges: black seals between every section pair.
   Sit above any overflow from the section above (z-index:1). */
.section-bridge {
  position: relative;
  z-index: 1;
  height: clamp(48px, 6vw, 90px);
  background: var(--bg-deep);
}

/* =================================================================
   2. CONCEPT BEAT
   ================================================================= */
.beat {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(80px, 16vh, 200px) var(--pad);
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(255, 255, 255, 0.04), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 70%, var(--bg-deep) 100%);
}
.beat__inner { max-width: 940px; }
.beat__lockup {
  width: clamp(120px, 16vw, 190px);
  height: auto;
  margin: 0 auto clamp(28px, 5vh, 54px);
  opacity: 0.85;
  filter: invert(1); /* black logo PNG -> white */
}
.beat__line {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
}
.beat__line em {
  font-style: normal;
  color: #ff4c29; /* a single ember accent on the concept word */
}

/* =================================================================
   3–5. FLAVOR SECTIONS (shared)
   ================================================================= */
.flavor {
  position: relative;
  min-height: 100vh;
  overflow: visible;
  display: flex;
  align-items: center;
  padding: clamp(90px, 12vh, 140px) var(--pad);
  /* atmosphere: black top → flavor atmos center → back to deep black.
     Returns to #060606 by 82% so drip tips always hang over black. */
  background:
    radial-gradient(95% 70% at 72% 42%, rgba(var(--glow-rgb), var(--glow-a, 0.34)), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--atmos) 38%, var(--bg-deep) 72%, var(--bg-deep) 100%);
}
/* Black breathing-room floor: extends below the section so drip tips
   hang over solid black before the next section begins. Uses a pseudo
   so it doesn't affect overflow:visible on the section itself. */
.flavor::after {
  content: "";
  position: absolute;
  bottom: calc(-1 * clamp(80px, 10vw, 140px));
  left: 0;
  width: 100%;
  height: clamp(80px, 10vw, 140px);
  background: var(--bg-deep);
  z-index: 2;
  pointer-events: none;
}

/* Per-flavor theming */
.flavor--vanilla {
  --accent: #eef3f8;
  --accent-rgb: 238, 243, 248;
  --atmos: #15181f;
  --glow-rgb: 150, 180, 225;
  background:
    radial-gradient(55% 45% at 72% 50%, rgba(150, 180, 225, var(--glow-a, 0.32)), transparent 100%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep) 14%, #15181f 40%, #15181f 70%, var(--bg-deep) 86%, var(--bg-deep) 100%);
}
.flavor--marmalade {
  --accent: #ff4c29;
  --accent-rgb: 255, 76, 41;
  --atmos: #1c0a04;
  --glow-rgb: 255, 84, 36;
  background:
    radial-gradient(55% 45% at 72% 50%, rgba(255, 84, 36, var(--glow-a, 0.36)), transparent 100%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep) 14%, #1c0a04 40%, #1c0a04 70%, var(--bg-deep) 86%, var(--bg-deep) 100%);
}
.flavor--potion {
  --accent: #39b54a;
  --accent-rgb: 57, 181, 74;
  --atmos: #190032;
  --glow-rgb: 122, 24, 170;
  background:
    radial-gradient(55% 45% at 72% 50%, rgba(122, 24, 170, var(--glow-a, 0.40)), transparent 100%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep) 14%, #190032 40%, #190032 70%, var(--bg-deep) 86%, var(--bg-deep) 100%);
}

/* Decorative layers */
.flavor__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flavor__web {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(140px, 20vw, 330px);
  height: auto;
  z-index: 3;
  opacity: 0.85;
  pointer-events: none;
}

.flavor__thread {
  position: absolute;
  top: 0;
  right: clamp(36px, 8vw, 140px);
  height: clamp(120px, 22vh, 220px);
  width: 40px;
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.flavor__thread-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.55));
}
.flavor__spider {
  position: absolute;
  bottom: 0;
  width: clamp(26px, 3vw, 40px);
  height: auto;
  transform: rotate(180deg);
}
/* Staggered thread lengths: vanilla fully dropped, marmalade mid, potion just starting */
.flavor--vanilla  .flavor__thread { height: clamp(180px, 32vh, 320px); }
.flavor--marmalade .flavor__thread { height: clamp(120px, 22vh, 220px); }
.flavor--potion   .flavor__thread { height: clamp(80px, 14vh, 150px); }

.flavor__graphic {
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 42vw, 620px);
  height: auto;
  z-index: 1;
  opacity: 0.16;
  pointer-events: none;
  filter: drop-shadow(0 0 60px rgba(var(--glow-rgb), 0.4));
}
/* Marmalade pumpkin: larger and more opaque so it reads around the can. */
.flavor--marmalade .flavor__graphic {
  left: 70%;
  opacity: 0.35;
  transform: translate(-50%, -50%);
  width: clamp(360px, 56vw, 820px);
}

/* Stage + can */
.flavor__stage {
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: grid;
  place-items: center;
}
.flavor__stage::before {
  content: "";
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow-rgb), 0.45), transparent 62%);
  z-index: -1;
}
.flavor__can {
  /* Square PNG; visible can is ~72% of the frame height. To make the visible
     can ~80% of section height, the frame ~= 110vh. Capped by 72vw so it stays
     beside the copy on narrower desktops. (Step 8) */
  width: min(110vh, 72vw);
  max-width: none; /* override the global img max-width:100% so it can exceed the stage */
  height: auto;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.6));
}

/* Text */
.flavor__content {
  position: relative;
  z-index: 5;
  max-width: 520px;
}
.flavor__seal {
  width: clamp(58px, 7vw, 92px);
  height: auto;
  margin-bottom: clamp(16px, 2.4vh, 26px);
}
.flavor__eyebrow {
  color: var(--accent);
  margin-bottom: clamp(14px, 2vh, 22px);
}
.flavor__name {
  font-size: clamp(3rem, 8.5vw, 7rem);
  color: var(--ink);
  margin-bottom: clamp(18px, 2.4vh, 28px);
}
.flavor__name::after {
  /* accent rule under the name */
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin-top: clamp(18px, 2.4vh, 28px);
  background: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.8);
}
.flavor__copy {
  font-size: clamp(0.98rem, 1.42vw, 1.22rem);
  color: var(--ink-dim);
  white-space: nowrap;
}

/* Drip divider — now an INLINE <svg> so its clipPath can self-reveal (main.js).
   Full-bleed (100vw, edge-to-edge) so it is never side-clipped; the section is
   overflow:visible so the drip can run past the content box. preserveAspectRatio
   ="none" on the svg lets it fill the band width. The mask softens the top edge. */
.flavor__drip { display: none; }

/* =================================================================
   6. ANNOUNCEMENT FILM
   ================================================================= */
.film {
  position: relative;
  padding: clamp(90px, 16vh, 200px) var(--pad) clamp(48px, 6vw, 90px);
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(255, 255, 255, 0.05), transparent 70%),
    var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}
.film__stage {
  position: relative;
  z-index: 2; /* above .section-leaves */
  width: 100vw;
  margin-left: 0; /* align-items:center on .film already centers the 100vw stage edge-to-edge */
  max-width: none;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
  background: #000 center / cover no-repeat;
  isolation: isolate;
}
.film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom play button (no native HTML5 chrome exposed) */
.film__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(74px, 9vw, 108px);
  height: clamp(74px, 9vw, 108px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 14px 40px rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.film__play:hover { transform: scale(1.06); background: rgba(255, 76, 41, 0.6); }
.film__play-icon {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
}
.film__play.is-hidden { opacity: 0; visibility: hidden; }

.film__caption {
  position: relative;
  z-index: 2; /* above .section-leaves */
  margin-top: clamp(20px, 3vh, 34px);
  color: var(--ink-dim);
  text-align: center;
  font-size: clamp(0.98rem, 1.42vw, 1.22rem);
  letter-spacing: 0.02em;
}

/* =================================================================
   7. PAYOFF — collect all three
   ================================================================= */
.payoff {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px var(--pad) 0; /* tight top -> 40px gap from film (Step 12) */
  background:
    radial-gradient(60% 50% at 50% 70%, rgba(120, 60, 180, 0.18), transparent 70%),
    linear-gradient(180deg, var(--bg-deep) 0%, #0b0710 45%, var(--bg-deep) 100%);
}
.payoff__glow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(120vw, 1200px);
  aspect-ratio: 1.6;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 120, 60, 0.16), rgba(120, 40, 170, 0.12), transparent 72%);
  z-index: 0;
  pointer-events: none;
}
.payoff__cans {
  position: relative;     /* flex item, pinned to the bottom of the column */
  width: 100%;
  max-width: var(--maxw);
  height: clamp(520px, 82vh, 920px);
  margin-top: auto;       /* guarantees separation from the closing copy */
  order: 1;               /* ... reunited cans grounded at the bottom */
  z-index: 1;
  pointer-events: none;
  align-items: flex-end;
}
/* Payoff hero hierarchy: marmalade dominant, outer cans recede */
.payoff__can {
  position: absolute;
  bottom: 0;
  width: clamp(200px, 28vw, 420px);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.65));
}
.payoff__can--vanilla   { left: 24%; transform: translateX(-50%); }
.payoff__can--marmalade {
  left: 50%;
  transform: translateX(-50%);
  width: clamp(360px, 50vw, 760px);
  z-index: 2;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.75));
}
.payoff__can--potion    { left: 76%; transform: translateX(-50%); }

.payoff__content {
  position: relative;
  z-index: 3;
  width: 100%;
  order: 0; /* closing copy on top ... */
  padding-bottom: clamp(24px, 4vh, 48px);
}
.payoff__title {
  font-size: clamp(3.4rem, 12vw, 10rem);
  text-shadow: 0 8px 50px rgba(0, 0, 0, 0.7);
}
.payoff__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 3vw, 44px);
  margin: clamp(22px, 3.4vh, 38px) 0 clamp(14px, 2vh, 22px);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: clamp(0.66rem, 1.1vw, 0.86rem);
  color: var(--ink);
}
.payoff__list li { position: relative; }
.payoff__list li + li::before {
  content: "✦";
  position: absolute;
  left: clamp(-9px, -1.6vw, -24px);
  color: var(--ink-faint);
}
.payoff__sub {
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 1.42vw, 1.22rem);
  letter-spacing: 0.04em;
}

/* =================================================================
   8. FOOTER
   ================================================================= */
.footer {
  text-align: center;
  padding: clamp(60px, 10vh, 120px) var(--pad) clamp(40px, 6vh, 70px);
  background: var(--bg-deep);
  border: none;
  border-top: none;
  outline: none;
}
.footer__logo {
  width: clamp(120px, 14vw, 180px);
  height: auto;
  margin: 0 auto clamp(20px, 3vh, 30px);
  opacity: 0.9;
  filter: invert(1); /* black logo PNG -> white */
}
.footer__signoff {
  text-transform: uppercase;
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  letter-spacing: 0.28em;
  color: var(--ink-dim);
  margin-bottom: clamp(20px, 2.8vh, 28px);
}
.footer__back {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 3px;
  margin-bottom: clamp(20px, 2.8vh, 28px);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer__back:hover { color: #ff4c29; border-color: #ff4c29; }
.footer__disclaimer {
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* =================================================================
   RESPONSIVE  (mobile-first base above; layout shifts below)
   ================================================================= */

/* Phones: stack flavor content, shrink + recentre cans, calm the parallax */
@media (max-width: 760px) {
  .hero__sky,
  .hero__ledge { background-position: 60% 50%; }
  .hero__can { --hero-can-w: 40vw; bottom: var(--hero-seat, 30%); }
  .hero__can--vanilla   { left: 22%; }
  .hero__can--marmalade { left: 50%; }
  .hero__can--potion    { left: 78%; }
  .hero__title { font-size: clamp(2.6rem, 13vw, 4.4rem); }

  .flavor {
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    padding-bottom: clamp(150px, 26vh, 240px);
  }
  /* can sits centred-upper, text below it */
  .flavor__stage { position: relative; top: auto; left: auto; transform: none; margin: 0 auto clamp(26px, 5vh, 48px); }
  .flavor__can { width: clamp(160px, 52vw, 280px); }
  .flavor__graphic { top: 38%; left: 50%; width: clamp(240px, 78vw, 420px); opacity: 0.12; }
  .flavor__content { max-width: 100%; }
  .flavor__copy { max-width: 38ch; white-space: normal; }
  .flavor__web { width: clamp(120px, 38vw, 200px); }
  .flavor__thread { right: 10%; height: clamp(110px, 20vh, 180px); }

  .payoff__can { width: clamp(120px, 30vw, 200px); }
  .payoff__can--marmalade { width: clamp(132px, 33vw, 220px); }
  .payoff__cans { height: 56%; }
}

/* Larger desktops: give the two-column flavor layout more breathing room */
@media (min-width: 1100px) {
  .flavor { padding-inline: clamp(60px, 8vw, 130px); }
  .flavor__content { max-width: 560px; }
}

/* =================================================================
   MAX-WIDTH CAP — screens wider than 1600px
   Full-bleed sections (hero, flavor, film) keep their backgrounds
   edge-to-edge; only the content column is capped at 1600px.
   Dark/near-black sections (beat, payoff, footer) are capped whole.
   ================================================================= */
@media (min-width: 1600px) {
  /* Hero: content column already capped — bump to 1600px */
  .hero__content { max-width: 1600px; }

  /* Beat, payoff, footer: cap and centre the whole section */
  .beat,
  .payoff,
  footer { max-width: 1600px; margin-inline: auto; }

  /* Flavor: background stays full-bleed; side padding expands so the
     two-column layout never exceeds 1600px of usable content width.
     Formula: max(base 130px, half the viewport overhang) */
  .flavor {
    padding-inline: max(130px, calc((100vw - 1600px) / 2));
  }

  /* Film: same treatment — background edge-to-edge, content capped */
  .film {
    padding-inline: max(80px, calc((100vw - 1600px) / 2));
  }
}

/* =================================================================
   REDUCED MOTION
   Phase 1 is already static; this is the contract Phase 2 honours:
   no parallax, no particle canvases, content fully visible.
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .flavor__particles { display: none; }
  .section-leaves { display: none; }
  .hero__can { transform: translateX(-50%); } /* cans keep their resting transform */
  .hero__sky,
  .hero__ledge { transform: none; }
}

/* =================================================================
   PHASE 2 — MOTION
   Initial states are gated behind .js-motion (set by the <head> script
   only when motion is allowed AND JS runs). GSAP animates each to its
   rest state. If a CDN fails, main.js removes .js-motion so everything
   below is bypassed and the static layout shows.
   ================================================================= */

/* Lenis smooth-scroll base */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* Hero: eyebrow + title rise on load; cans assemble (transform via GSAP) */
.js-motion .hero__eyebrow { opacity: 0; transform: translateY(32px); }
/* hero__title opacity is controlled per-char by JS; keep it visible as container */
.js-motion .hero__title { opacity: 1; transform: none; }
.js-motion .hero__can { opacity: 0; }
.js-motion .hero__can-shadow { opacity: 0; }

/* Generic content reveals (GSAP animates y + opacity to rest) */
.js-motion .beat__lockup,
.js-motion .beat__line,
.js-motion .flavor__seal,
.js-motion .flavor__eyebrow,
.js-motion .flavor__name,
.js-motion .flavor__copy,
.js-motion .payoff__title,
.js-motion .payoff__list,
.js-motion .payoff__sub,
.js-motion .film__caption {
  opacity: 0;
  transform: translateY(34px);
}

/* Flavor stage pieces */
.js-motion .flavor__can { opacity: 0; }
.js-motion .flavor__graphic { opacity: 0; }
.js-motion .flavor__web { opacity: 0; }
.js-motion .flavor__spider { opacity: 0; }
.js-motion .flavor__thread-line { transform: scaleY(0); transform-origin: top center; }
.js-motion .flavor { --glow-a: 0.10; } /* blooms to ~0.42 at centre (scrub) */

/* Payoff cans + film stage */
.js-motion .payoff__can { opacity: 0; }
.js-motion .film__stage { opacity: 0; transform: translateY(42px) scale(0.985); }

/* =================================================================
   FOCUS RING — keyboard accessibility quality floor
   ================================================================= */
a:focus-visible,
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.film__play:focus-visible { border-radius: 50%; }

