/* =========================================================
   Ibidudu’s — colour-blocked, photo-led, full of motion
   ========================================================= */

:root {
  /* brand */
  --sun: #ffd21f;
  --sun-hot: #ffbf0f;
  --leaf: #0b7a3b;
  --leaf-hi: #13a04f;
  --forest: #053a1d;
  --chili: #d91e17;
  --chili-hi: #ff3b2f;
  --ice: #f4faff;
  /* night */
  --navy: #0a1124;
  --navy-2: #111a35;
  --coal: #16171c;

  --display: 'Bagel Fat One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

/* ---------- section colour schemes ---------- */
.sc-sun    { --bg: var(--sun);    --fg: var(--forest); --head: var(--forest); --pop: var(--chili); --line: var(--forest); --btn: var(--forest); --btn-fg: var(--sun); }
.sc-leaf   { --bg: var(--leaf);   --fg: #fff;          --head: var(--sun);    --pop: var(--sun);   --line: #fff;          --btn: var(--sun);    --btn-fg: var(--forest); }
.sc-chili  { --bg: var(--chili);  --fg: #fff;          --head: #fff;          --pop: var(--sun);   --line: #fff;          --btn: var(--sun);    --btn-fg: var(--forest); }
.sc-forest { --bg: var(--forest); --fg: #fff;          --head: var(--sun);    --pop: var(--chili-hi); --line: #fff;       --btn: var(--sun);    --btn-fg: var(--forest); }

[data-theme='dark'] .sc-sun    { --bg: var(--navy);   --fg: var(--ice); --head: var(--sun);      --pop: var(--chili-hi); --line: var(--ice); --btn: var(--sun);      --btn-fg: var(--navy); }
[data-theme='dark'] .sc-leaf   { --bg: var(--coal);   --fg: var(--ice); --head: #39d27c;         --pop: var(--sun);      --line: var(--ice); --btn: #39d27c;         --btn-fg: var(--coal); }
[data-theme='dark'] .sc-chili  { --bg: var(--navy-2); --fg: var(--ice); --head: var(--chili-hi); --pop: var(--sun);      --line: var(--ice); --btn: var(--chili-hi); --btn-fg: #fff; }
[data-theme='dark'] .sc-forest { --bg: #070b18;       --fg: var(--ice); --head: var(--sun);      --pop: var(--chili-hi); --line: var(--ice); --btn: var(--sun);      --btn-fg: var(--navy); }
[data-theme='dark'] .cook.sc-sun { --bg: var(--coal); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  background: var(--sun);
  color: var(--forest);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[data-theme='dark'] body { background: var(--navy); color: var(--ice); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--chili); color: #fff; }

section, footer { position: relative; background: var(--bg); color: var(--fg); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--forest); color: var(--sun); padding: 10px 16px; border-radius: 99px; font-weight: 800; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--chili); outline-offset: 3px; border-radius: 6px; }
[data-theme='dark'] :focus-visible { outline-color: var(--sun); }

/* ---------- wavy, flowing section tops ---------- */
.wave::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -38px;
  height: 40px;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C25 22 25 6 50 6s25 16 50 16 25-16 50-16 25 16 50 16v18z'/%3E%3C/svg%3E") 0 0 / 200px 40px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C25 22 25 6 50 6s25 16 50 16 25-16 50-16 25 16 50 16v18z'/%3E%3C/svg%3E") 0 0 / 200px 40px repeat-x;
  animation: wave 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes wave { to { -webkit-mask-position: 200px 0; mask-position: 200px 0; } }

/* ---------- buttons ---------- */
.btn {
  --b: var(--btn); --t: var(--btn-fg);
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95em 1.5em;
  border-radius: 99px;
  border: 3px solid var(--b);
  background: var(--b);
  color: var(--t);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--spring), background .25s, color .25s, box-shadow .35s var(--spring);
  box-shadow: 0 0 0 0 var(--fg);
}
.btn:hover { box-shadow: 5px 6px 0 0 var(--fg); }
.btn:active { box-shadow: 1px 1px 0 0 var(--fg); }
.btn .arr { display: inline-block; transition: transform .35s var(--spring); }
.btn:hover .arr { transform: translateX(5px); }
.btn--sun { --b: var(--sun); --t: var(--forest); }
[data-theme='dark'] .btn--sun { --b: var(--btn); --t: var(--btn-fg); }
.btn--pop { --b: var(--chili); --t: #fff; }
.btn--line { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--line:hover { background: var(--line); color: var(--bg); }
.btn--sm { padding: .6em 1.15em; font-size: .92rem; border-width: 2px; }

/* ---------- intro ---------- */
.intro { display: none; }
.js .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 90;
  background: var(--sun);
  color: var(--forest);
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 1s var(--out);
}
[data-theme='dark'] .intro { background: var(--navy); color: var(--sun); }
.intro.out { clip-path: circle(0% at 50% 50%); pointer-events: none; }
.intro.gone { display: none; }
.intro-word { display: flex; font-family: var(--display); font-size: clamp(3rem, 12vw, 9rem); line-height: 1; position: relative; z-index: 1; text-shadow: 0 6px 0 var(--sun); }
[data-theme='dark'] .intro-word { text-shadow: 0 6px 0 var(--navy); }
.intro-word span { display: inline-block; transform: translateY(120%) scale(.6); opacity: 0; animation: pop-in .7s var(--spring) forwards; }
.intro-word span:nth-child(1) { animation-delay: .05s } .intro-word span:nth-child(2) { animation-delay: .1s }
.intro-word span:nth-child(3) { animation-delay: .15s } .intro-word span:nth-child(4) { animation-delay: .2s }
.intro-word span:nth-child(5) { animation-delay: .25s } .intro-word span:nth-child(6) { animation-delay: .3s }
.intro-word span:nth-child(7) { animation-delay: .35s } .intro-word span:nth-child(8) { animation-delay: .4s }
.intro-word span:nth-child(9) { animation-delay: .45s }
.intro-chip { --c: clamp(140px, 22vw, 260px); position: absolute; width: var(--c); left: 50%; top: 50%; margin: calc(var(--c) / -2) 0 0 calc(var(--c) / -2); animation: intro-chip 1.4s var(--out) both; }
@keyframes pop-in { to { transform: none; opacity: 1; } }
@keyframes intro-chip { from { transform: scale(0) rotate(-200deg); } to { transform: scale(1.35) rotate(0); } }

/* ---------- cursor follower ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 80;
    width: 16px; height: 16px; margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: var(--chili);
    color: #fff;
    pointer-events: none;
    transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), background .2s, opacity .2s, border-color .2s;
    border: 2px solid transparent;
  }
  .cursor span { font-weight: 800; font-size: .82rem; opacity: 0; transition: opacity .2s; white-space: nowrap; }
  .cursor.big { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .cursor.big span { opacity: 1; }
  .cursor.link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: transparent; border-color: var(--chili); }
  .cursor.hide { opacity: 0; }
  [data-theme='dark'] .cursor { background: var(--sun); color: var(--navy); }
  [data-theme='dark'] .cursor.link { background: transparent; border-color: var(--sun); }
}

/* ---------- fx layer (flying chips) ---------- */
.fx { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.fx img { position: absolute; left: 0; top: 0; width: 64px; will-change: transform; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.fx .boom {
  position: absolute; left: 0; top: 0;
  font-family: var(--display); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1;
  color: var(--chili);
  -webkit-text-stroke: 6px var(--forest); paint-order: stroke fill;
  text-shadow: 4px 5px 0 var(--forest);
  white-space: nowrap;
  animation: boom .9s var(--out) forwards;
}
[data-theme='dark'] .fx .boom { color: var(--sun); -webkit-text-stroke-color: var(--navy); text-shadow: 4px 5px 0 var(--chili-hi); }
@keyframes boom {
  0% { transform: translate(-50%, -50%) scale(.2) rotate(var(--rot)); opacity: 1; }
  25% { transform: translate(-50%, -80%) scale(1.15) rotate(var(--rot)); }
  70% { opacity: 1; }
  100% { transform: translate(-50%, -150%) scale(1) rotate(var(--rot)); opacity: 0; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 60;
  left: 50%; top: 14px;
  width: min(1180px, calc(100% - 24px));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 22px;
  border-radius: 99px;
  background: #fff;
  color: var(--forest);
  box-shadow: 0 10px 30px -12px rgba(5, 58, 29, .35);
  transition: transform .5s var(--out);
}
[data-theme='dark'] .nav { background: var(--navy-2); color: var(--ice); box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.nav.tuck { transform: translate(-50%, -140%); }
.logo { font-family: var(--display); font-size: 1.45rem; text-decoration: none; line-height: 1; color: var(--leaf); }
[data-theme='dark'] .logo { color: var(--sun); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .95rem; padding: .5em .9em; border-radius: 99px; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--sun); color: var(--forest); }
[data-theme='dark'] .nav-links a:hover { background: var(--ice); color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid currentColor; background: transparent; cursor: pointer;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; position: absolute; transition: transform .6s var(--spring), opacity .3s; }
.theme .moon { fill: currentColor; stroke: none; transform: translateY(150%) rotate(-90deg); opacity: 0; }
[data-theme='dark'] .theme .sun { transform: translateY(-150%) rotate(90deg); opacity: 0; }
[data-theme='dark'] .theme .moon { transform: none; opacity: 1; }
.nav .btn { --fg: var(--forest); }
[data-theme='dark'] .nav .btn { --fg: var(--ice); }

/* ---------- shared type ---------- */
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; display: flex; align-items: center; gap: .8em; }
.eyebrow b { display: inline-grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--pop); color: var(--bg); letter-spacing: 0; }
.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.01em;
  color: var(--head);
}
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; }

/* word reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translateY(110%) rotate(6deg); transition: transform .9s var(--out); transition-delay: calc(var(--i) * 70ms); }
.in .w > span { transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(34px) scale(.97); transition: opacity .7s var(--out), transform .9s var(--spring); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 2vw;
  padding: 120px var(--gutter) 150px;
  overflow: hidden;
  cursor: pointer;
}
.hero-copy { position: relative; z-index: 3; }
.kicker { display: inline-flex; align-items: center; gap: .6em; font-weight: 800; font-size: .95rem; padding: .45em 1em .45em .75em; border-radius: 99px; background: var(--forest); color: var(--sun); }
[data-theme='dark'] .kicker { background: var(--sun); color: var(--navy); }
.dot { width: .65em; height: .65em; border-radius: 50%; background: var(--chili-hi); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); } }

.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.4rem, 8.4vw, 8.8rem);
  line-height: .86;
  letter-spacing: -.015em;
  color: var(--head);
  margin: .3em 0 .32em;
}
.line { display: block; overflow: hidden; padding: .05em .1em .08em 0; margin-bottom: -.06em; }
.li { display: inline-block; transform: translateY(115%); transition: transform 1s var(--out); }
.line:nth-child(2) .li { transition-delay: .08s } .line:nth-child(3) .li { transition-delay: .16s } .line:nth-child(4) .li { transition-delay: .24s }
.ready .li { transform: none; }
.loud { color: var(--pop); }
.loud span { display: inline-block; animation: jiggle 1.8s ease-in-out infinite; transform-origin: 50% 80%; }
.loud span:nth-child(2) { animation-delay: .07s } .loud span:nth-child(3) { animation-delay: .14s } .loud span:nth-child(4) { animation-delay: .21s } .loud span:nth-child(5) { animation-delay: .28s }
@keyframes jiggle { 0%, 60%, 100% { transform: none; } 66% { transform: translateY(-10%) rotate(-8deg); } 74% { transform: translateY(3%) rotate(6deg); } 82% { transform: rotate(-3deg); } }
.smooth { font-family: var(--serif); font-style: italic; font-size: 1.18em; letter-spacing: -.02em; line-height: .78; position: relative; padding-right: .1em; }
.smooth::after { content: ''; position: absolute; left: 2%; right: 8%; bottom: .04em; height: .08em; border-radius: 99px; background: var(--pop); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--out) .9s; }
.ready .smooth::after { transform: scaleX(1); }
.hero-sub { font-size: clamp(1.05rem, 1.35vw, 1.25rem); font-weight: 600; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-art { position: relative; z-index: 2; height: min(72vh, 700px); width: 100%; }
.hero-art .depth { position: absolute; inset: 0; will-change: transform; pointer-events: none; }
.burst { position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; translate: -50% -50%; animation: spin-plain 70s linear infinite; z-index: 0; }
.burst path { fill: var(--sun-hot); }
[data-theme='dark'] .burst path { fill: var(--navy-2); }

.pack { position: absolute; filter: drop-shadow(0 30px 30px rgba(5, 58, 29, .35)); transition: transform 1.2s var(--spring), opacity .6s; opacity: 0; }
[data-theme='dark'] .pack { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .65)); }
.pack--a { width: 52%; left: 6%; top: 4%; transform: translateY(40%) rotate(-30deg); transition-delay: .25s; }
.pack--b { width: 44%; right: 2%; top: 0; transform: translateY(40%) rotate(30deg); transition-delay: .4s; }
.pack--c { width: 36%; left: 44%; top: 42%; border-radius: 18px; transform: translateY(60%) rotate(20deg); transition-delay: .55s; border: 5px solid #fff; }
[data-theme='dark'] .pack--c { border-color: var(--navy-2); }
.ready .pack { opacity: 1; }
.ready .pack--a { transform: rotate(-9deg); }
.ready .pack--b { transform: rotate(10deg); }
.ready .pack--c { transform: rotate(5deg); }

.hero-art .chip-f { inset: auto; left: var(--x); top: var(--y); width: var(--s); height: var(--s); }
.chip-f img { width: 100%; filter: drop-shadow(0 12px 12px rgba(5,58,29,.3)); animation: bob 5s ease-in-out infinite; animation-delay: var(--d); scale: 0; transition: scale .9s var(--spring) .7s; }
.ready .chip-f img { scale: 1; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -16px; rotate: 20deg; } }

.hero-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 110px; display: flex; justify-content: flex-end; align-items: flex-end; z-index: 4; pointer-events: none; }
.hero-foot > * { pointer-events: auto; }
.tap-pill { margin-top: 22px; display: inline-flex; align-items: center; gap: .6em; padding: .55em 1.1em .55em .8em; border-radius: 99px; background: #fff; color: var(--forest); font-weight: 800; font-size: .9rem; box-shadow: 0 8px 20px -10px rgba(5,58,29,.5); }
[data-theme='dark'] .tap-pill { background: var(--ice); color: var(--navy); }
.tap-pill.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.14) rotate(-3deg); } }
.tap-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chili); box-shadow: 0 0 0 0 var(--chili); animation: ring 1.6s infinite; }
@keyframes ring { to { box-shadow: 0 0 0 12px transparent; } }
.seal { position: relative; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; background: var(--chili); color: #fff; text-decoration: none; transition: transform .4s var(--spring); }
.seal:hover { transform: scale(1.08) rotate(-8deg); }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin-plain 14s linear infinite; }
.seal text { font-family: var(--body); font-weight: 800; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; fill: #fff; }
.seal-arrow { font-size: 1.7rem; font-weight: 800; animation: nudge 1.6s ease-in-out infinite; }
@keyframes spin-plain { to { rotate: 360deg; } }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* =========================================================
   TAPES
   ========================================================= */
.tapes { position: relative; z-index: 5; height: 190px; margin: -95px 0 -95px; pointer-events: none; overflow: hidden; }
.tape { position: absolute; left: -5%; right: -5%; top: 50%; padding: 14px 0; overflow: hidden; }
.tape--a { background: var(--chili); color: var(--sun); transform: translateY(-50%) rotate(-3.2deg); z-index: 2; box-shadow: 0 10px 20px -10px rgba(0,0,0,.35); }
.tape--b { background: var(--forest); color: #fff; transform: translateY(-50%) rotate(2.6deg); }
[data-theme='dark'] .tape--a { background: var(--sun); color: var(--navy); }
[data-theme='dark'] .tape--b { background: var(--chili-hi); color: #fff; }
.tape-track { display: flex; align-items: center; gap: 28px; width: max-content; will-change: transform; }
.tape span { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.tape img { width: 46px; height: 46px; animation: spin-plain 4s linear infinite; }
.tape i { font-style: normal; font-size: 1.6rem; color: var(--sun); }
[data-theme='dark'] .tape i { color: var(--navy); }

/* =========================================================
   PRODUCT SECTIONS
   ========================================================= */
.split { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1300px; margin: 0 auto; }
.chips, .rica { padding: clamp(150px, 16vw, 220px) var(--gutter) clamp(110px, 12vw, 170px); overflow-x: clip; }
.copy { max-width: 560px; }
.copy > * + * { margin-top: 24px; }
.copy .title { margin-top: 16px; }

/* giant scrolling word */
.bigword { position: absolute; top: 120px; left: 0; z-index: 0; white-space: nowrap; pointer-events: none; }
.bigword span {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(9rem, 22vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--leaf-hi);
  will-change: transform;
}
[data-theme='dark'] .bigword span { -webkit-text-stroke-color: #2a2c36; }
.bigword .swap { animation: wordswap .7s var(--spring); }
@keyframes wordswap { 0% { opacity: 0; scale: 1 .2; } }

/* switch */
.switch { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px; border-radius: 99px; border: 3px solid var(--line); }
.switch button { position: relative; z-index: 1; border: 0; background: none; padding: .7em 1.6em; font-weight: 800; font-size: 1.05rem; cursor: pointer; border-radius: 99px; transition: color .35s; color: var(--fg); }
.switch button[aria-pressed='true'] { color: var(--bg); }
.switch-knob { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 99px; background: var(--line); transition: transform .55s var(--spring); }
[data-variety='unripe'] .switch-knob, [data-size='2kg'] .switch--size .switch-knob { transform: translateX(100%); }

/* chips showcase */
.showcase { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; cursor: pointer; }
.blob { position: absolute; inset: 8%; background: var(--sun); border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; animation: blob 10s ease-in-out infinite; transition: background .6s; }
[data-variety='unripe'] .blob { background: #fff; }
[data-theme='dark'] .blob { background: var(--chili); }
[data-theme='dark'] [data-variety='unripe'] .blob { background: var(--leaf); }
@keyframes blob {
  25% { border-radius: 58% 42% 40% 60% / 60% 55% 45% 40%; rotate: 20deg; }
  50% { border-radius: 40% 60% 55% 45% / 40% 60% 40% 60%; rotate: -10deg; scale: 1.04; }
  75% { border-radius: 60% 40% 45% 55% / 55% 45% 60% 40%; rotate: 10deg; }
}
.orbit { position: absolute; inset: -4%; animation: spin-plain 28s linear infinite; }
.orbit .o { position: absolute; width: 21%; filter: drop-shadow(0 10px 10px rgba(0,0,0,.3)); transition: transform .5s var(--spring); }
.o1 { left: 2%; top: 12%; } .o2 { right: 0; top: 8%; } .o3 { right: 4%; bottom: 10%; } .o4 { left: 4%; bottom: 6%; }
.orbit .o.pop { transform: scale(0) rotate(180deg); }
.pack-swap { position: absolute; inset: 6% 18%; will-change: transform; }
.pack-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.35)); transform: translateX(130%) rotate(25deg); opacity: 0; transition: transform .9s var(--spring), opacity .4s; }
.pack-img.is-on { transform: rotate(-4deg); opacity: 1; }
.pack-img.is-out { transform: translateX(-130%) rotate(-25deg); opacity: 0; }
.showcase.squish .pack-img.is-on { animation: squish .45s var(--spring); }
@keyframes squish { 30% { scale: .93 1.06; } 60% { scale: 1.04 .96; } }

/* badges */
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: .84rem; line-height: 1.1;
  color: #fff; border: 4px solid var(--sun);
  box-shadow: 0 8px 16px -8px rgba(0,0,0,.4);
  transition: transform .5s var(--spring);
}
.badge--chili { background: var(--chili); }
.badge--forest { background: var(--forest); }
[data-theme='dark'] .badge--forest { background: var(--leaf); }
.badge:nth-child(1) { transform: rotate(-8deg); } .badge:nth-child(2) { transform: rotate(5deg) translateY(-6px); } .badge:nth-child(3) { transform: rotate(-3deg); }
.badge:hover { transform: rotate(14deg) scale(1.12); }
.badges.in .badge { animation: badge-in .8s var(--spring) both; }
.badges.in .badge:nth-child(2) { animation-delay: .1s } .badges.in .badge:nth-child(3) { animation-delay: .2s }
@keyframes badge-in { from { scale: 0; rotate: -120deg; } }
.ingredients { font-weight: 600; }
.ingredients b { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-right: .6em; color: var(--pop); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- RICA ---------- */
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.eq { display: inline-flex; flex-direction: column; padding: .7em 1.3em; border-radius: 20px; font-size: 1.12rem; background: #fff; color: var(--forest); line-height: 1.2; }
.eq b { font-weight: 800; }
.eq i { font-family: var(--serif); font-size: 1.15rem; }
.eq--res { background: var(--sun); justify-content: center; }
.eq--res b { font-family: var(--display); font-weight: 400; font-size: 2rem; }
[data-theme='dark'] .eq { background: var(--coal); color: var(--ice); }
[data-theme='dark'] .eq--res { background: var(--sun); color: var(--navy); }
.op { font-family: var(--display); font-size: 2rem; color: var(--pop); }
.equation.in > * { animation: badge-in .7s var(--spring) both; }
.equation.in > :nth-child(2) { animation-delay: .08s } .equation.in > :nth-child(3) { animation-delay: .16s }
.equation.in > :nth-child(4) { animation-delay: .24s } .equation.in > :nth-child(5) { animation-delay: .34s }
.ticks { display: grid; gap: 8px; font-weight: 700; font-size: 1.1rem; }
.ticks li { display: flex; align-items: center; gap: .7em; }
.ticks li::before { content: '✓'; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--pop); color: var(--bg); font-weight: 800; font-size: .9em; }

.rica-art { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 600px; justify-self: center; }
.plate { position: absolute; width: 92%; left: 8%; bottom: 0; z-index: 2; filter: drop-shadow(0 30px 30px rgba(0,0,0,.4)); will-change: transform; pointer-events: none; }
.flip { position: absolute; left: 12%; top: 0; width: 58%; aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1400px; z-index: 1; transition: transform .7s var(--spring); }
[data-size='2kg'] .flip { transform: scale(1.08) rotate(2deg); }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--spring); transform: rotate(-6deg); }
.flip.flipped .flip-inner { transform: rotateY(180deg) rotate(6deg); }
.face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; border: 6px solid #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 10px 14px 0 var(--forest); }
[data-theme='dark'] .face { border-color: var(--coal); box-shadow: 10px 14px 0 #000; }
.face--back { transform: rotateY(180deg); }
.flip:hover .flip-inner { transform: rotate(-2deg) scale(1.02); }
.flip.flipped:hover .flip-inner { transform: rotateY(180deg) rotate(2deg) scale(1.02); }
.stamp {
  position: absolute; right: 6%; top: 8%; z-index: 3;
  display: grid; place-items: center;
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--sun); color: var(--forest);
  font-family: var(--display); font-size: 1.8rem;
  border: 4px solid var(--forest);
  rotate: 12deg;
  pointer-events: none;
}
.stamp.pop { animation: stamp .6s var(--spring); }
@keyframes stamp { 0% { scale: 0; rotate: -200deg; } }
.flip-hint { position: absolute; right: 2%; top: 36%; font-weight: 800; font-size: .9rem; background: #fff; color: var(--forest); padding: .45em 1em; border-radius: 99px; rotate: 6deg; z-index: 3; pointer-events: none; animation: hint 2.4s ease-in-out infinite; }
[data-theme='dark'] .flip-hint { background: var(--ice); color: var(--navy); }
@keyframes hint { 50% { translate: 0 -6px; } }

/* =========================================================
   HOW TO COOK — stacking cards
   ========================================================= */
.cook { padding: clamp(120px, 12vw, 170px) var(--gutter) clamp(90px, 10vw, 140px); }
.cook-head { max-width: 1100px; margin: 0 auto 36px; }
.cook-head .title { margin-top: 16px; }
.stack { max-width: 1100px; margin: 0 auto; display: grid; gap: 28px; }
.card {
  position: sticky;
  top: calc(96px + var(--i) * 14px);
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  min-height: min(50vh, 400px);
  padding: clamp(26px, 4vw, 56px);
  border-radius: 36px;
  box-shadow: 0 -14px 30px -18px rgba(0,0,0,.35);
  transform-origin: 50% 0;
  will-change: transform;
}
.card--forest { background: var(--forest); color: #fff; --ink: var(--sun); }
.card--chili { background: var(--chili); color: #fff; --ink: var(--sun); }
.card--leaf { background: var(--leaf); color: #fff; --ink: var(--sun); }
.card--ice { background: #fff; color: var(--forest); --ink: var(--chili); }
[data-theme='dark'] .card--forest { background: var(--navy-2); color: var(--ice); }
[data-theme='dark'] .card--ice { background: var(--ice); color: var(--navy); }
.num { font-family: var(--display); font-size: clamp(4.5rem, 10vw, 9rem); line-height: .8; color: var(--ink); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 3.6rem); line-height: .95; margin-bottom: .3em; }
.card p { font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 600; max-width: 26em; }
.ico { width: clamp(80px, 11vw, 140px); height: auto; fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.card--serve { grid-template-columns: auto 1fr; }
.card--serve img { grid-column: 1 / -1; width: min(100%, 620px); justify-self: center; margin-top: -10px; filter: drop-shadow(0 26px 24px rgba(0,0,0,.4)); }

/* icon micro-animations */
.ico-boil .b { animation: bubble 1.6s ease-in infinite; }
.ico-boil .b2 { animation-delay: .5s } .ico-boil .b3 { animation-delay: 1s }
@keyframes bubble { 0% { transform: translateY(8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
.ico-paste .whisk { transform-origin: 40px 42px; animation: whisk 1s ease-in-out infinite; }
@keyframes whisk { 50% { transform: rotate(-22deg) translateX(-4px); } }
.ico-stir .spoon { transform-origin: 40px 46px; animation: stir 1.8s ease-in-out infinite; }
.ico-stir .swirl { stroke-dasharray: 40; animation: dash 1.8s linear infinite; }
@keyframes stir { 50% { transform: rotate(-30deg); } }
@keyframes dash { to { stroke-dashoffset: -80; } }
.ico-adjust .k1 { animation: slide 2.2s ease-in-out infinite; }
.ico-adjust .k2 { animation: slide 2.2s ease-in-out infinite reverse; }
@keyframes slide { 50% { transform: translateX(18px); } }
.ico-steam .s { animation: steam 2s ease-in-out infinite; }
.ico-steam .s2 { animation-delay: .4s } .ico-steam .s3 { animation-delay: .8s }
@keyframes steam { 0% { transform: translateY(6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }

/* =========================================================
   ORDER / FOOTER
   ========================================================= */
.order { padding: clamp(120px, 12vw, 170px) var(--gutter) 28px; overflow-x: clip; min-height: 100svh; display: flex; }
.rain { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.rain img { position: absolute; left: 0; top: 0; width: 70px; will-change: transform; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.order-inner { position: relative; z-index: 2; width: 100%; max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; }
.hungry { font-family: var(--display); font-weight: 400; font-size: clamp(5rem, 19vw, 19rem); line-height: .85; color: var(--head); display: flex; letter-spacing: -.02em; overflow: hidden; padding: .04em 0 .08em; }
.hungry span { display: inline-block; transition: transform .7s var(--spring), color .2s; transform: translateY(var(--ty, 0)); }
.js .hungry span { --ty: 115%; }
.js .hungry.in span { --ty: 0%; }
.hungry span:hover { transform: translateY(-10%) rotate(-8deg); color: var(--pop); transition-delay: 0s !important; }
.hungry span:nth-child(2) { transition-delay: .04s } .hungry span:nth-child(3) { transition-delay: .08s } .hungry span:nth-child(4) { transition-delay: .12s }
.hungry span:nth-child(5) { transition-delay: .16s } .hungry span:nth-child(6) { transition-delay: .2s } .hungry span:nth-child(7) { transition-delay: .24s; color: var(--pop); }
.order-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.1; margin: .4em 0 1.2em; max-width: 22em; }
.order-links { display: grid; gap: 14px; }
.big-link {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 20px;
  padding: 22px 28px;
  border: 3px solid var(--line);
  border-radius: 99px;
  text-decoration: none;
  isolation: isolate;
  background: var(--bg);
  transition: color .3s;
}
.big-link::before { content: ''; position: absolute; inset: 0; background: var(--btn); transform: translateY(101%); transition: transform .55s var(--out); z-index: -1; }
.big-link:hover::before { transform: none; }
.big-link:hover { color: var(--btn-fg); }
.bl-label { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.bl-value { font-family: var(--display); font-size: clamp(1.4rem, 3.6vw, 3rem); line-height: 1.05; overflow-wrap: anywhere; }
.bl-arrow { font-size: 2rem; font-weight: 800; transition: transform .45s var(--spring); }
.big-link:hover .bl-arrow { transform: rotate(45deg) scale(1.2); }
.foot { margin-top: auto; padding-top: 60px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; font-weight: 700; font-size: .92rem; }
.foot-logo { font-family: var(--display); font-size: 1.5rem; color: var(--head); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--head); }

/* ---------- theme view transition (circle wipe) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vt-in .8s var(--out); }
@keyframes vt-in { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); } to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0)); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 104px; padding-bottom: 190px; gap: 0; }
  .hero-art { height: min(62vh, 520px); max-width: 560px; justify-self: center; margin-top: 16px; }
  .hero-foot { bottom: 104px; }
  .split { grid-template-columns: 1fr; }
  .split--flip .rica-art { order: -1; }
  .showcase, .rica-art { max-width: 480px; }
  .card { grid-template-columns: auto 1fr; }
  .card .ico { justify-self: end; }
  .card-text { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding-left: 16px; }
  .logo { font-size: 1.25rem; }
  .hero-title { font-size: clamp(3rem, 16.5vw, 5rem); }
  .hero { padding-bottom: 170px; }
  .hero-art { height: 92vw; }
  .hero-foot { bottom: 84px; }
  .hero-art .chip-f { width: calc(var(--s) * .62); height: calc(var(--s) * .62); }
  .seal { width: 92px; height: 92px; }
  .seal text { font-size: 10px; }
  .tapes { height: 140px; margin: -70px 0; }
  .tape { padding: 10px 0; }
  .tape img { width: 34px; height: 34px; }
  .badge { width: 92px; height: 92px; font-size: .76rem; }
  .stamp { width: 76px; height: 76px; font-size: 1.35rem; }
  .flip-hint { font-size: .78rem; }
  .big-link { grid-template-columns: 1fr auto; padding: 18px 22px; border-radius: 28px; }
  .bl-label { grid-column: 1 / -1; }
  .card { border-radius: 28px; top: calc(84px + var(--i) * 10px); }
  .hero-cta .btn, .cta-row .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .w > span, .li { transform: none; }
  .js .hungry span { --ty: 0%; }
  .card { position: relative; top: auto; }
}
