/* Buono Buono — design-system tokens + page styles. Only transform/opacity animate. */
:root {
  /* --mustard is the accent token; it now carries the logo's earthy ochre (user request), the yellow lives on only as the Golden Cleanse juice colour. */
  --sage-mint: #A7D7C6; --buono-green: #0E4132; --buono-cream: #FCF6ED; --mustard: #9A6A28;
  --buono-ochre: #9A6A28; --terracotta: #C86B3C; --blush-beige: #E8D5C4; --charcoal: #2E2E2E;
  --sage-grey: #9CA89B; --green-deep: #0A3226; --mustard-hover: #7E561F; --ink-soft: #3F5A4F;
  --font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body: "Karla", "Work Sans", system-ui, sans-serif;
  --r: 24px; --r-sm: 16px; --pill: 999px;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --maxw: 88rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(.34, 1.3, .64, 1);
  --t-hero: clamp(3rem, 1.6rem + 6.4vw, 7.2rem);
  --t-xl: clamp(2.6rem, 1.8rem + 3.8vw, 4.8rem);
  --t-lg: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
  --t-md: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  --t-lede: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  --shadow-static: 0 10px 30px -14px rgba(14, 65, 50, .35), 0 2px 6px -2px rgba(14, 65, 50, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--sage-mint); color: var(--buono-green);
  font-family: var(--font-body); font-size: clamp(1rem, 0.96rem + 0.22vw, 1.0625rem); line-height: 1.6;
  letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--mustard); color: var(--buono-cream); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: .96; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
h2, h3 { font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.body { color: var(--ink-soft); max-width: 62ch; }
.lede { font-size: var(--t-lede); line-height: 1.5; max-width: 44ch; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* stages */
.act { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: clip; }
.ground { position: absolute; inset: 0; pointer-events: none; }

/* chrome */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); color: var(--buono-green); background: transparent; border-bottom: 1px solid transparent;
  transition: background 260ms var(--ease-out), border-color 260ms var(--ease-out), color 260ms var(--ease-out);
}
.bar.is-paper { background: var(--buono-cream); border-bottom-color: var(--sage-grey); }
.bar.is-dark { background: var(--buono-green); color: var(--buono-cream); }
.bar__left { display: flex; align-items: center; gap: 12px; }
/* Logo files are trimmed to the letterforms (2187×333), so the height here is the real cap height. */
.bar__logo { display: block; height: 36px; width: 237px; position: relative; }
.bar__logo img { position: absolute; left: 0; top: 0; height: 36px; width: auto; transition: opacity 200ms var(--ease-out); }
@media (max-width: 860px) { .bar__logo { height: 28px; width: 184px; } .bar__logo img { height: 28px; } }
.bar__logo .pri { opacity: 0; }
.bar.is-photo { color: var(--buono-cream); }
.bar.is-dark .bar__logo .rev, .bar.is-photo .bar__logo .rev { opacity: 0; }
.bar.is-dark .bar__logo .pri, .bar.is-photo .bar__logo .pri { opacity: 1; }
.cup { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: var(--pill); color: inherit; transition: transform 160ms var(--ease-out); }
.cup:active { transform: scale(.94); }
.cup svg { overflow: visible; }
.cup #cup-fill { transition: fill 420ms var(--ease-out); transform-origin: 14px 32px; transform: scaleY(0); }
.cup #cup-smile { opacity: 0; transition: opacity 300ms var(--ease-out); }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.bar nav a { font: 500 15px var(--font-body); text-decoration: none; padding: 10px 2px; border-bottom: 2px solid transparent; transition: border-color 140ms var(--ease-out); min-height: 44px; display: inline-flex; align-items: center; color: inherit; }
.bar nav a:hover { border-bottom-color: var(--mustard); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: var(--pill);
  background: var(--mustard); color: var(--buono-cream) !important; font: 600 15px var(--font-display); text-decoration: none; border: 0; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate; transition: transform 160ms var(--ease-out);
}
.pill::before { content: ""; position: absolute; inset: 0; background: var(--mustard-hover); transform: scaleX(0); transform-origin: 0 50%; transition: transform 220ms var(--ease-out); z-index: -1; }
@media (hover: hover) and (pointer: fine) { .pill:hover::before { transform: scaleX(1); } }
.pill:active { transform: scale(.97); }
.pill--lg { height: 54px; padding: 0 30px; font-size: 18px; }
.bar .pill { border-bottom: 0 !important; padding: 0 20px !important; }
.burger { display: none; width: 44px; height: 44px; place-items: center; background: transparent; border: 0; color: inherit; cursor: pointer; border-radius: var(--pill); }
.sheet { position: fixed; inset: 0; z-index: 70; background: var(--sage-mint); color: var(--buono-green); display: none; flex-direction: column; justify-content: space-between; padding: 96px var(--gutter) max(40px, env(safe-area-inset-bottom)); }
.sheet.is-open { display: flex; }
.sheet a { font: 600 40px/1.2 var(--font-display); text-decoration: none; padding: 8px 0; color: inherit; }
.sheet .close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font: 500 30px var(--font-display); cursor: pointer; border-radius: var(--pill); }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--mustard); color: var(--buono-cream); padding: 10px 16px; border-radius: var(--pill); font: 600 14px var(--font-display); text-decoration: none; }
.skip:focus { top: 12px; }
@media (max-width: 860px) { .bar nav { display: none; } .burger { display: grid; } }

/* shared */
.price { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--mustard); color: var(--buono-cream); font: 600 22px/1 var(--font-display); font-variant-numeric: tabular-nums; transition: transform 200ms var(--ease-spring); }
.price--sm { height: 32px; padding: 0 12px; font-size: 18px; }
.eyebrow { font: 700 12px/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--buono-ochre); margin: 0 0 14px; }
.link { color: inherit; text-decoration: none; border-bottom: 2px solid var(--mustard); padding-bottom: 2px; font: 500 17px var(--font-body); transition: color 140ms var(--ease-out); min-height: 44px; display: inline-flex; align-items: center; }
.link:hover { color: var(--buono-ochre); }
.sticker { position: absolute; z-index: 4; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 600 13px/1.1 var(--font-display); color: var(--buono-cream); background: var(--buono-ochre); box-shadow: var(--shadow-static); }
.sticker--mustard { background: var(--mustard); color: var(--buono-cream); }
.smile { display: block; overflow: visible; }
.cloud { display: block; width: 100%; height: clamp(34px, 5.5vw, 78px); }
.note { font: 500 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--sage-grey); }
.plane { position: absolute; will-change: transform; }
.plane img { max-width: none; width: 100%; height: auto; }
.tile { position: relative; border-radius: var(--r); overflow: hidden; }
.reveal { opacity: 0; }

/* A1 hero */
.hero-stage { background: var(--buono-green); }
.hero-photo { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 60%; }
.hero-photo picture { display: block; width: 100%; height: 100%; will-change: transform; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-scrim { position: absolute; inset: 0; z-index: 10; pointer-events: none; background: linear-gradient(180deg, rgba(14,65,50,.5) 0%, rgba(14,65,50,0) 26%), linear-gradient(0deg, rgba(14,65,50,.7) 0%, rgba(14,65,50,.35) 36%, rgba(14,65,50,0) 62%), linear-gradient(90deg, rgba(14,65,50,.35) 0%, rgba(14,65,50,0) 50%); }
.hero-copy { position: absolute; z-index: 20; left: var(--gutter); bottom: clamp(7rem, 16vh, 10rem); max-width: min(60rem, 66vw); color: var(--buono-cream); }
.hero-copy h1 { font-size: clamp(3rem, 1.4rem + 5vw, 6rem); }
.hero-copy .link { color: var(--buono-cream); }
.hero-copy h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-copy h1 .line > span { display: inline-flex; align-items: baseline; gap: .04em; }
.hero-copy h1 .smile { width: .58em; height: auto; transform: translateY(-.02em); }
.hero-copy .lede { margin-top: 1.5rem; }
.hero-copy .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 1.5rem; }
.hero-cloud { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 40; }
@media (max-width: 860px) {
  .hero-photo img { object-position: 50% 40%; }
  .hero-scrim { background: linear-gradient(180deg, rgba(14,65,50,.7) 0%, rgba(14,65,50,.3) 40%, rgba(14,65,50,0) 62%); }
  .hero-copy { bottom: clamp(6rem, 14vh, 9rem); max-width: none; right: var(--gutter); }
  .hero-copy h1 { font-size: var(--t-xl); }
}

/* ticker */
.ticker { position: relative; background: var(--sage-mint); overflow: hidden; }
.ticker__band { background: var(--buono-cream); }
.ticker__track { display: flex; width: max-content; padding: 26px 0 22px; animation: marquee 64s linear infinite; will-change: transform; }
@media (hover: hover) { .ticker:hover .ticker__track { animation-play-state: paused; } }
.ticker__item { display: flex; align-items: center; gap: 28px; padding: 0 14px; font: 500 22px/1 var(--font-display); color: var(--buono-green); white-space: nowrap; }
.ticker__cloud { position: relative; z-index: 2; margin-top: -1px; transform: scaleY(-1); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; width: auto; justify-content: center; flex-wrap: wrap; } .ticker__track > .dup { display: none; } }

/* A2 promise */
.promise-stage { background: var(--sage-mint); }
.promise-stage .ground { background: var(--buono-cream); opacity: 0; }
.promise { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 96px var(--gutter) 40px; height: 100%; }
.promise__tile { aspect-ratio: 4/5; max-height: 72vh; background: var(--sage-mint); display: grid; place-items: end center; margin: 0; }
.promise__tile img { width: 88%; height: auto; }
.promise h2 { font-size: var(--t-xl); max-width: 9ch; }
.facts { margin-top: 2rem; }
.fact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--sage-grey); }
.fact:last-child { border-bottom: 1px solid var(--sage-grey); }
.fact strong { font: 600 clamp(20px, 1.6vw, 24px)/1.2 var(--font-display); }
@media (max-width: 860px) {
  .promise { grid-template-columns: 1fr; padding: 84px var(--gutter) 24px; align-content: start; gap: 14px; }
  .promise__tile { aspect-ratio: 16/9; max-height: 28vh; }
  .promise__tile img { width: auto; height: 100%; }
  .fact { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
}

/* A3 rail */
.rail-stage { background: var(--buono-cream); display: flex; align-items: center; }
.rail-stage .ground { opacity: 0; }
.rail { position: relative; display: flex; gap: 24px; padding: 0 var(--gutter); align-items: stretch; will-change: transform; width: max-content; flex: none; }
.rail > * { flex: none; }
.rail__lead { width: min(38vw, 480px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.rail__lead h2 { font-size: var(--t-xl); }
.rail__lead p { max-width: 36ch; }
.juice { width: min(60vw, 700px); height: min(76vh, 700px); border-radius: var(--r); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 18px; padding: clamp(20px, 2.4vw, 30px); border: 1px solid rgba(14,65,50,.12); }
.juice__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.juice h3 { font: 600 clamp(30px, 3.4vw, 50px)/.98 var(--font-display); letter-spacing: -.025em; }
.juice__photo { position: relative; border-radius: var(--r-sm); overflow: hidden; background: rgba(252,246,237,.22); }
.juice__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 480ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .juice:hover .juice__photo img { transform: scale(1.03); } .juice:hover .price { transform: rotate(2deg); } }
.juice__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.juice__foot .benefit { font: 500 clamp(20px, 1.8vw, 26px)/1.2 var(--font-display); }
.juice__foot .ing { font-size: 15px; max-width: 34ch; }
.rail__note { width: min(40vw, 460px); display: flex; align-items: center; }
.rail__note p { max-width: 30ch; font: 500 var(--t-md)/1.3 var(--font-display); }
@media (max-width: 860px) { .rail__lead { width: 78vw; } .juice { width: 84vw; height: min(70vh, 620px); } .rail__note { width: 70vw; } }

/* A4 chiya */
.chiya { background: var(--buono-cream); padding-block: clamp(3rem, 7vw, 7rem); }
.chiya .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.chiya h2 { font-size: var(--t-lg); }
.chiya .body { margin-top: 1rem; }
.chiya__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.chiya__pills .price { font-size: 17px; gap: 10px; }
.chiya__tile { justify-self: end; width: min(100%, 380px); aspect-ratio: 4/5; background: var(--sage-mint); border-radius: 190px 190px var(--r) var(--r); display: grid; place-items: end center; margin: 0; }
.chiya__tile img { width: 78%; height: auto; }
@media (max-width: 860px) { .chiya .wrap { grid-template-columns: 1fr; } .chiya__tile { justify-self: start; width: 64%; } }

/* A5 peak */
.peak-stage { background: var(--buono-green); }
.peak-stage canvas, .peak-stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.peak-stage .poster { transition: opacity 400ms var(--ease-out); }
.peak-stage.is-ready .poster { opacity: 0; }
.peak-copy { position: absolute; z-index: 20; left: var(--gutter); bottom: clamp(3rem, 10vh, 7rem); max-width: min(36rem, 92vw); }
.panel { background: var(--buono-cream); color: var(--buono-green); border-radius: var(--r); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 14px; box-shadow: var(--shadow-static); }
.panel h2 { font-size: clamp(28px, 3vw, 42px); }
.panel h2 span { display: block; }
.panel .body { color: var(--charcoal); font-size: 16px; max-width: 52ch; }
.bites { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--sage-grey); display: grid; gap: 8px; }
.bites li { display: flex; align-items: center; gap: 10px; font: 500 18px/1.2 var(--font-display); }
.bites .dots { flex: 1; border-bottom: 2px dotted var(--sage-grey); transform: translateY(-4px); }
.peak .sticker { right: var(--gutter); bottom: 14vh; transform: rotate(6deg); }
.peak .note { position: absolute; right: var(--gutter); top: 84px; color: rgba(252,246,237,.7); }

/* A6 wall */
.wall-stage { background: var(--sage-mint); }
.wall { display: grid; place-items: center; text-align: center; padding: 0 16px; height: 100%; position: relative; }
.wall__centre { position: relative; z-index: 2; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.wall h2 { font-size: clamp(48px, 8.6vw, 124px); letter-spacing: -.04em; max-width: 11ch; font-weight: 700; }
.wall .smile { width: min(400px, 56vw); margin-top: -1vw; }
.wall p { margin-top: 12px; font-size: 15px; }
/* Washing line: a sagging cord across the top; each polaroid pivots where its string meets it.
   The line box (top 8vh, height 10vh) must match LINE_TOP / LINE_SAG in home.js. */
.polas { position: absolute; inset: 0; will-change: transform; --pw: clamp(140px, 17vw, 250px); }
.polas .line { position: absolute; left: -2%; width: 104%; top: 8vh; height: 10vh; overflow: visible; }
.polas .line path { fill: none; stroke: var(--buono-green); stroke-width: 2.5; stroke-opacity: .55; vector-effect: non-scaling-stroke; }
.pola { position: absolute; width: var(--pw); margin: 0 0 0 calc(var(--pw) / -2); will-change: transform; --len: 20vh; }
/* The rope is an SVG curve redrawn by home.js from the pin (0,0) to the peg; .swing carries peg + card and is moved to the rope's end. */
.pola .rope { position: absolute; left: 50%; top: 0; width: 2px; height: 2px; overflow: visible; }
.pola .rope path { fill: none; stroke: var(--buono-green); stroke-width: 2; stroke-opacity: .55; stroke-linecap: round; }
.pola .swing { position: absolute; left: 0; right: 0; top: var(--len); transform-origin: 50% 0; will-change: transform; }
.pola .peg { position: absolute; left: 50%; top: -12px; width: 14px; height: 30px; margin-left: -7px; border-radius: 7px; z-index: 2; background: var(--mustard); box-shadow: inset 0 0 0 1px rgba(14,65,50,.12), 0 1px 2px rgba(14,65,50,.25); }
.pola .peg::after { content: ""; position: absolute; left: 6px; top: 6px; width: 2px; height: 18px; border-radius: 1px; background: rgba(14,65,50,.35); }
.pola .card { position: relative; padding: 10px 10px 36px; background: var(--buono-cream); border: 1px solid rgba(14,65,50,.08); transform: rotate(var(--rot)); transform-origin: 50% 0; box-shadow: var(--shadow-static); cursor: grab; user-select: none; -webkit-user-select: none; }
.pola.is-drag .card { cursor: grabbing; }
.pola.is-drag .card, .pola .card:active { box-shadow: 0 18px 40px -18px rgba(14,65,50,.45), 0 2px 6px -2px rgba(14,65,50,.18); }
.pola img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.pola figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; font: 500 12px/1 var(--font-body); color: var(--charcoal); display: flex; justify-content: space-between; }
@media (max-width: 860px) { .polas { --pw: clamp(110px, 30vw, 150px); } .pola .peg { width: 11px; height: 24px; margin-left: -5.5px; top: -10px; } .pola .peg::after { left: 4.5px; top: 5px; height: 14px; } .wall h2 { font-size: clamp(40px, 12vw, 64px); } }

/* A7 story */
.story { background: var(--buono-cream); padding-block: clamp(4.5rem, 9vw, 11rem); }
.story .wrap { max-width: 64ch; }
.story h2 { font-size: var(--t-lg); margin-bottom: 1.5rem; }
.story p { color: var(--buono-green); font-size: 18px; line-height: 1.7; }
.story p + p { margin-top: 1rem; }

/* A8 close */
/* A8 footer: brand + newsletter on the left, link columns + social on the right, cream scallops on top */
.foot-wrap { position: relative; background: var(--buono-green); color: var(--buono-cream); }
.foot-cloud { position: absolute; left: 0; right: 0; top: -1px; transform: scaleY(-1); z-index: 1; pointer-events: none; }
.foot { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px clamp(32px, 6vw, 96px); padding: calc(clamp(34px, 5.5vw, 78px) + 3rem) var(--gutter) max(2.5rem, env(safe-area-inset-bottom)); max-width: var(--maxw); margin: 0 auto; }
.foot__brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.foot__brand img { height: 34px; width: auto; }
.foot__tag { display: inline-flex; align-items: center; gap: 10px; font: 500 18px var(--font-display); color: var(--sage-mint); margin: 0; }
.foot__legal { font-size: 14px; color: var(--sage-mint); margin: 6px 0 0; }
.dayone { display: grid; gap: 10px; margin-top: 10px; width: 100%; max-width: 440px; }
.dayone label { font: 500 20px/1.2 var(--font-display); }
.dayone .row { display: flex; align-items: center; background: var(--buono-cream); border-radius: var(--pill); padding: 5px 5px 5px 0; }
.dayone input { flex: 1; min-width: 0; height: 44px; padding: 0 20px; border: 0; background: transparent; color: var(--buono-green); font: 400 16px var(--font-body); border-radius: var(--pill); }
.dayone input::placeholder { color: var(--sage-grey); }
.dayone input:focus { outline: none; }
.dayone .row:focus-within { box-shadow: 0 0 0 3px var(--mustard); }
.dayone .go { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mustard); color: var(--buono-cream); display: grid; place-items: center; cursor: pointer; transition: transform 160ms var(--ease-out), background 140ms var(--ease-out); }
.dayone .go:hover { background: var(--mustard-hover); }
.dayone .go:active { transform: scale(.94); }
.foot__cols { display: grid; grid-template-columns: repeat(3, auto); gap: 28px clamp(28px, 4vw, 72px); justify-content: end; align-content: start; }
.foot__h { font: 700 12px/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--sage-mint); margin: 0 0 14px; }
.foot__cols .col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot__cols .col > .foot__h { margin-bottom: 4px; }
.foot__cols nav { display: grid; gap: 10px; }
.foot__cols a { color: inherit; text-decoration: none; font: 500 17px var(--font-body); min-height: 28px; display: inline-flex; align-items: center; transition: color 140ms var(--ease-out); }
.foot__cols a:hover { color: var(--sage-mint); } /* ochre on deep green is too low-contrast for a hover state */
.foot__cols p { margin: 0; font-size: 15px; }
.map { position: relative; width: min(400px, 86vw); aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; background: #8FC8B4; margin-bottom: 6px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.92) brightness(1.04); }
.map .tint { position: absolute; inset: 0; background: var(--sage-mint); mix-blend-mode: multiply; pointer-events: none; opacity: .9; }
.map .pin { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; border-radius: 50% 50% 50% 0; background: var(--mustard); transform: translate(-50%, -100%) rotate(-45deg); display: grid; place-items: center; pointer-events: none; box-shadow: var(--shadow-static); }
.map .pin svg { transform: rotate(45deg); width: 20px; }
.foot__social { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 6px; justify-content: flex-end; }
.foot__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--sage-mint); transition: color 140ms var(--ease-out), background 140ms var(--ease-out), transform 160ms var(--ease-out); }
.foot__social a:hover, .foot__social a:focus-visible { color: #fff; background: var(--brand); }
.foot__social li:nth-child(1) a { --brand: #E1306C; } /* Instagram */
.foot__social li:nth-child(2) a { --brand: #1877F2; } /* Facebook */
.foot__social li:nth-child(3) a { --brand: #010101; } /* TikTok */
.foot__social li:nth-child(4) a { --brand: #25D366; } /* WhatsApp */
.foot__social a:active { transform: scale(.94); }
.foot__social svg { width: 22px; height: 22px; display: block; }
@media (max-width: 860px) {
  .foot { grid-template-columns: 1fr; gap: 36px; }
  .foot__cols { grid-template-columns: 1fr 1fr; justify-content: start; }
  .foot__cols .col:first-child { grid-column: 1 / -1; }
  .foot__social { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  .plane, .polas, .pola, .rail, .map, .ticker__track { will-change: auto; }
}

/* v2 additions: hero sub-line + buttons, footer sub-line, four facts */
.hero-copy .lede { color: var(--buono-cream); opacity: .92; max-width: 40ch; }
.hero-copy .ctas .link { color: var(--buono-cream); }
.foot__sub { font-size: 15px; color: var(--sage-mint); margin: 0; max-width: 40ch; }
.facts--4 .fact { padding: 16px 0; }
.facts--4 .fact strong { font-size: clamp(19px, 1.5vw, 23px); }
.juice__foot .taste { font: 500 clamp(20px, 1.8vw, 26px)/1.2 var(--font-display); }
.pola .card img.cut { background: var(--sage-mint); object-fit: contain; padding: 8%; }
@media (max-width: 860px) { .hero-copy .ctas { gap: 14px; } .hero-copy .lede { font-size: 1rem; } }
.promise h2 { font-size: var(--t-lg); max-width: 14ch; }
.facts--4 { margin-top: 1.25rem; }
.juice__photo--flat { display: grid; place-items: center; }
.juice__smile { width: 46%; height: auto; opacity: .35; }
@media (max-width: 860px) { .promise h2 { font-size: var(--t-md); } }
/* Scroll-driven animations. Every scroll-linked motion here is tied 1:1 to native scroll and runs
   on the compositor, so it answers the wheel with zero lag. Each .act exposes a named view timeline;
   `contain` on a taller-than-viewport act spans exactly the pinned stretch (act top at viewport top
   to act bottom at viewport bottom). Two animations on one property use backwards/forwards fill so
   they never overlap. home.js runs a GSAP fallback where `animation-timeline` is unsupported. */

@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1.02); } }
@keyframes hero-drift { to { transform: translateY(-12vh) scale(1.1); } }
@keyframes copy-out { to { opacity: 0; transform: translateY(-40px); } }
@keyframes rail-pan { to { transform: translateX(calc(100vw - 100%)); } }
@keyframes centre-in { from { opacity: .6; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pola-drop { from { transform: translateY(-105vh); } to { transform: none; } }
@keyframes pola-lift { from { transform: none; } to { transform: translateY(-105vh); } }
@keyframes sticker-pop { from { opacity: 0; transform: rotate(6deg) scale(.9); } to { opacity: 1; transform: rotate(6deg) scale(1); } }
@keyframes cup-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* Rail ground colours: one keyframe set per layer so the crossfades never fight over opacity. */
@keyframes g0 { 0%, .5% { opacity: 0; } 12.5%, 22.3% { opacity: 1; } 34.3%, 100% { opacity: 0; } }
@keyframes g1 { 0%, 22.3% { opacity: 0; } 34.3%, 44% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes g2 { 0%, 44% { opacity: 0; } 56%, 65.7% { opacity: 1; } 77.7%, 100% { opacity: 0; } }
@keyframes g3 { 0%, 65.7% { opacity: 0; } 77.7%, 87.5% { opacity: 1; } 99.5%, 100% { opacity: 0; } }
@keyframes g4 { 0%, 87.5% { opacity: 0; } 99.5%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: hero-settle 1.6s cubic-bezier(.16, 1, .3, 1) both; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .act { view-timeline: --act block; }
    :root { --ease-scroll: cubic-bezier(.16, 1, .3, 1); }

    /* nav cup fills with the whole page; smiles in the last stretch */
    #cup-fill { animation: cup-fill linear both; animation-timeline: scroll(root); }
    #cup-smile { animation: fade-in linear both; animation-timeline: scroll(root); animation-range: 98.5% 100%; }

    /* A1 hero */
    .hero-photo { animation: hero-drift linear both; animation-timeline: --act; animation-range: contain; }
    .hero-copy { animation: copy-out ease-in both; animation-timeline: --act; animation-range: contain 50% contain 100%; }

    /* A2 promise */
    .promise__tile { animation: rise-in var(--ease-scroll) both; animation-timeline: --act; animation-range: contain 0% contain 30%; }
    .promise-stage .ground { animation: fade-in linear both; animation-timeline: --act; animation-range: contain 10% contain 70%; }
    .promise h2 { animation: rise-in var(--ease-scroll) both; animation-timeline: view(); animation-range: entry 20% entry 80%; }
    .fact { animation: rise-in var(--ease-scroll) both; animation-timeline: --act; }
    .fact:nth-child(1) { animation-range: contain 12% contain 30%; }
    .fact:nth-child(2) { animation-range: contain 30% contain 48%; }
    .fact:nth-child(3) { animation-range: contain 48% contain 66%; }
    .fact:nth-child(4) { animation-range: contain 66% contain 84%; }

    /* A3 rail: the strip pans until its right edge meets the viewport's */
    .rail { animation: rail-pan linear both; animation-timeline: --act; animation-range: contain; }
    .rail-stage .ground { animation: g0 linear both; animation-timeline: --act; animation-range: contain; }
    .rail-stage .ground:nth-child(2) { animation-name: g1; }
    .rail-stage .ground:nth-child(3) { animation-name: g2; }
    .rail-stage .ground:nth-child(4) { animation-name: g3; }
    .rail-stage .ground:nth-child(5) { animation-name: g4; }

    /* A4 chiya, A7 story: each block rises as it enters */
    .chiya .wrap > *, .story .wrap > * { animation: rise-in var(--ease-scroll) both; animation-timeline: view(); animation-range: entry 10% entry 70%; }

    /* A5 peak: the panel assembles while the sequence scrubs (canvas is drawn by home.js) */
    .peak-copy { animation: rise-in var(--ease-scroll) both; animation-timeline: --act; animation-range: contain 10% contain 24%; }
    .panel h2 span, .panel .body, .bites { animation: rise-in var(--ease-scroll) both; animation-timeline: --act; }
    .panel h2 span:nth-child(1) { animation-range: contain 14% contain 26%; }
    .panel h2 span:nth-child(2) { animation-range: contain 36% contain 48%; }
    .panel .body { animation-range: contain 50% contain 62%; }
    .bites { animation-range: contain 64% contain 78%; }
    .peak .sticker { animation: sticker-pop var(--ease-spring) both; animation-timeline: --act; animation-range: contain 80% contain 92%; }

    /* A6 wall: polaroids lower on their strings, hang, then lift away (swing is home.js) */
    .wall__centre { animation: centre-in var(--ease-scroll) both; animation-timeline: --act; animation-range: contain 0% contain 20%; }
    /* Drop and lift each span about half the act, so a card moves roughly one viewport per 0.7 screens of scroll. */
    /* Drop and lift are the same width (40% of the act) with mild curves, so a card never moves faster
       than ~1.5px per px of scroll in either direction; the lift used to be a quarter of the act and streaked. */
    .pola { animation: pola-drop cubic-bezier(.3, .5, .4, 1) backwards, pola-lift cubic-bezier(.45, .05, .55, .95) forwards; animation-timeline: --act, --act; }
    .pola:nth-of-type(1) { animation-range: contain 4% contain 44%, contain 58% contain 98%; }
    .pola:nth-of-type(2) { animation-range: contain 8% contain 48%, contain 60% contain 100%; }
    .pola:nth-of-type(3) { animation-range: contain 12% contain 52%, contain 62% contain 100%; }
    .pola:nth-of-type(4) { animation-range: contain 0% contain 40%, contain 56% contain 96%; }
    .pola:nth-of-type(5) { animation-range: contain 10% contain 50%, contain 61% contain 100%; }
    .pola:nth-of-type(6) { animation-range: contain 6% contain 46%, contain 59% contain 99%; }

    /* A8 footer */
    .foot__brand > *, .foot__cols > * { animation: rise-in var(--ease-scroll) both; animation-timeline: --act; animation-range: entry 20% entry 80%; }
  }
}
