/* =========================================================
   Granolza — main stylesheet
   RTL-first (Arabic), mirrors to LTR via logical properties.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --cream: #FFF8EC;
  --paper: #F6EBDD;
  --oat: #EBD3AE;
  --kraft: #E2C29A;
  --orange: #E0702E;
  --orange-ink: #B04A14;          /* orange that passes AA for small text on cream */
  --honey: #F3A93C;
  --choc: #2E1A10;
  --choc-2: #4A2C1A;
  --seed: #6F8A3A;
  --berry: #9E2A4B;
  --berry-soft: #F6D0D9;
  --muted: #7A5A47;
  --line: rgba(46, 26, 16, .12);

  --font-display: 'Baloo Bhaijaan 2', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Aref Ruqaa', 'IBM Plex Sans Arabic', serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --nav-h: 88px;
  --radius: 28px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-lg: 0 30px 60px -28px rgba(46, 26, 16, .45);
  --shadow-md: 0 14px 30px -14px rgba(46, 26, 16, .35);
}
html[lang="en"] { --font-hand: 'Caveat', cursive; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--choc);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* paper grain over everything (static texture, cheap to composite) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: url("../img/grain.png") repeat;
  opacity: .28;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; }
p { text-wrap: pretty; }
h1, h2, h3, .title { text-wrap: balance; }
::selection { background: var(--orange); color: var(--cream); }
[hidden] { display: none !important; }
html.sheet-open, html.menu-open { overflow: hidden; }

:focus-visible { outline: 3px solid var(--choc); outline-offset: 3px; border-radius: 8px; }
.hero :focus-visible, .reviews :focus-visible, .menu :focus-visible { outline-color: var(--cream); }
.bowl :focus-visible, .footer :focus-visible { outline-color: var(--honey); }

.skip-link {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 10001;
  background: var(--choc); color: var(--cream); padding: 10px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  translate: 0 -200%; transition: translate .3s var(--ease-out);
}
.skip-link:focus { translate: 0 0; }

/* ---------- 3. Utilities ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
/* .icon--flip = points "forward" in reading order; .icon--rev = points backward */
[dir="rtl"] .icon--flip { transform: scaleX(-1); }
.icon--rev { rotate: 180deg; }
/* The logo wordmark as a recolourable mask: inherits `color` */
.wordmark {
  display: block;
  aspect-ratio: 2200 / 575;
  background: currentColor;
  -webkit-mask: url("../img/wordmark.svg") center / contain no-repeat;
  mask: url("../img/wordmark.svg") center / contain no-repeat;
}

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--choc);
  --btn-fg: var(--cream);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px;
  padding: .85em 1.55em;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: scale .4s var(--ease-spring), box-shadow .4s var(--ease-out), color .3s;
  box-shadow: 0 10px 24px -12px rgba(46, 26, 16, .55);
}
.btn::before {             /* liquid fill on hover */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover, var(--orange));
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--btn-hover-fg, var(--choc)); box-shadow: 0 16px 30px -14px rgba(46, 26, 16, .6); }
.btn:active { scale: .97; }
.btn--sm { min-height: 42px; padding: .55em 1.2em; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--choc { --btn-bg: var(--choc); --btn-fg: var(--cream); }
.btn--orange { --btn-bg: var(--orange); --btn-fg: var(--choc); --btn-hover: var(--cream); }
.btn--berry { --btn-bg: var(--berry); --btn-fg: var(--cream); --btn-hover: var(--choc); --btn-hover-fg: var(--cream); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--choc); --btn-hover: var(--choc); --btn-hover-fg: var(--cream);
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--choc); }
.btn--insta { --btn-bg: linear-gradient(120deg, #833AB4, #C13584 55%, #D23A6E); --btn-fg: #fff; --btn-hover: var(--choc); --btn-hover-fg: var(--cream); background: var(--btn-bg); }
.btn--wa { --btn-bg: #0A6E5F; --btn-fg: #fff; --btn-hover: var(--choc); --btn-hover-fg: #fff; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.pill-btn {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 42px; padding: 0 1em;
  border-radius: 999px;
  border: 2px solid currentColor;
  font-weight: 700; font-size: .92rem;
  transition: background .3s, color .3s;
}
.pill-btn:hover { background: var(--choc); color: var(--cream); border-color: var(--choc); }
.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  transition: background .3s, color .3s, transform .4s var(--ease-spring);
}
.icon-btn:hover { background: rgba(46, 26, 16, .08); }
.icon-btn--lg { width: 56px; height: 56px; border: 2px solid currentColor; }
.icon-btn--lg:hover { background: var(--choc); color: var(--cream); border-color: var(--choc); }
.icon-btn .icon { width: 22px; height: 22px; }

/* ---------- 5. Shared type & decorations ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 700; font-size: .95rem;
  color: var(--orange-ink);
  margin-bottom: .9rem;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--honey); }
.eyebrow--choc { color: var(--choc); }
.eyebrow__dot { display: none; }

.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -.01em;
}
html[lang="ar"] .title { letter-spacing: 0; line-height: 1.22; }
.title em {
  font-family: var(--font-hand);
  font-style: normal;
  font-weight: 700;
  color: var(--orange);
  font-size: 1.04em;
}
html[lang="en"] .title em { font-size: 1.12em; }

.hand-note {
  display: inline-flex; align-items: flex-start; gap: 4px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1.1;
  color: var(--choc);
  white-space: nowrap;
  rotate: -6deg;
}
.hand-note__arrow { width: 64px; height: 40px; color: currentColor; flex: none; margin-top: .4em; }
[dir="rtl"] .hand-note__arrow { transform: scaleX(-1); }

.spin-badge { position: absolute; width: clamp(96px, 10vw, 150px); aspect-ratio: 1; }
.spin-badge > svg:first-child { width: 100%; height: 100%; animation: spin 18s linear infinite; overflow: visible; }
.spin-badge text { direction: ltr; unicode-bidi: plaintext; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 2px; fill: currentColor; }
.spin-badge__core { position: absolute; inset: 31%; width: 38%; height: 38%; animation: bob 4s ease-in-out infinite; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes wobble { 0%, 100% { rotate: 10deg; } 50% { rotate: -6deg; } }

.sticker {
  display: grid; place-content: center; text-align: center;
  width: clamp(104px, 9vw, 136px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange); color: var(--choc);
  font-family: var(--font-display);
  line-height: 1;
  box-shadow: var(--shadow-md);
  animation: wobble 7s ease-in-out infinite;
}
.sticker strong { font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 800; }
.sticker span { font-size: 1rem; font-weight: 700; margin-top: 4px; }

/* ---------- 6. Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--choc); color: var(--cream);
  animation: preloader-failsafe .6s ease 6s forwards;   /* if JS dies, never trap the page */
  will-change: transform;
}
.js.is-returning .preloader__inner { visibility: hidden; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
.preloader__inner { display: grid; justify-items: center; gap: 6px; text-align: center; }
.preloader__mark { width: clamp(120px, 14vw, 180px); }
.preloader__temp {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(6rem, 21vw, 15rem);
  line-height: .95;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: flex-start;
}
.preloader__deg { font-size: .5em; margin-top: .12em; color: var(--honey); }
.preloader__label { font-weight: 600; opacity: .8; }
.preloader__bar { width: min(260px, 60vw); height: 4px; border-radius: 4px; background: rgba(255, 248, 236, .15); overflow: hidden; margin-top: 10px; }
.preloader__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--honey), var(--orange)); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .preloader__bar span { transform-origin: right; }

/* ---------- 7. Nav & menu ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 62px;
  padding-inline: 22px 10px;
  border-radius: 999px;
  transition: background .45s var(--ease-out), box-shadow .45s var(--ease-out), backdrop-filter .45s;
}
.nav.is-scrolled .nav__inner {
  background: rgba(255, 248, 236, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 30px -16px rgba(46, 26, 16, .35), inset 0 0 0 1px rgba(46, 26, 16, .06);
}
.nav__logo { display: block; color: var(--choc); transition: color .4s; }
.nav.is-scrolled .nav__logo { color: var(--orange); }
.nav__logo .wordmark { width: clamp(108px, 9.4vw, 138px); }
.nav__links { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav__links a {
  position: relative;
  font-weight: 600; font-size: .98rem;
  text-decoration: none;
  padding-block: 6px;
}
.nav__links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: var(--origin-end, right);
  transition: transform .45s var(--ease-out);
}
[dir="ltr"] .nav__links a::after { transform-origin: left; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.lang-btn { min-width: 52px; justify-content: center; }
.bag-btn .icon { width: 24px; height: 24px; }
.bag-btn__count {
  position: absolute; top: 2px; inset-inline-end: 0;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--choc); color: var(--cream);
  font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--orange);
}
.nav.is-scrolled .bag-btn__count { box-shadow: 0 0 0 2px var(--cream); }
.menu-btn { display: none; }
.menu-btn__lines { display: grid; gap: 6px; width: 22px; }
.menu-btn__lines span { display: block; height: 2.4px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-out); }
.menu-open .menu-btn__lines span:first-child { transform: translateY(4.2px) rotate(45deg); }
.menu-open .menu-btn__lines span:last-child { transform: translateY(-4.2px) rotate(-45deg); }
.nav__progress { position: absolute; inset: 0 0 auto 0; height: 3px; }
.nav__progress span { display: block; height: 100%; background: var(--choc); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .nav__progress span { transform-origin: left; }

.menu {
  position: fixed; inset: 0; z-index: 990;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 4vh) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--orange); color: var(--choc);
  overflow-y: auto;
}
.menu__links { display: grid; gap: 2px; }
.menu__links a {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.3rem, 10vw, 4rem); line-height: 1.25;
  text-decoration: none;
}
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.menu__insta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 700px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34vw) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 24px;
  padding: calc(var(--nav-h) + 12px) var(--gutter) clamp(112px, 14vh, 150px);
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, #EE8A48 0%, transparent 70%),
    var(--orange);
  color: var(--choc);
  overflow: clip;
  isolation: isolate;
}
.hero__mark {
  position: absolute; inset-inline: 0; top: 40%;
  translate: 0 -50%;
  display: flex; justify-content: center;
  color: var(--cream);
  z-index: 1;
  pointer-events: none;
}
.hero__mark .wordmark { width: min(94vw, 1500px); }

.floaters { position: absolute; inset: 0; pointer-events: none; }
.floater {
  position: absolute;
  inset-inline-start: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  rotate: var(--r);
  animation: bob var(--t, 6s) ease-in-out infinite;
  filter: drop-shadow(0 10px 10px rgba(74, 34, 10, .28));
  will-change: transform;
}
.floater:nth-child(3n) { animation-delay: -2s; }
.floater:nth-child(3n + 1) { animation-delay: -4s; }
.f-back { z-index: 0; opacity: .9; filter: drop-shadow(0 6px 6px rgba(74, 34, 10, .18)) blur(.6px); }
.f-mid { z-index: 2; }
.f-front { z-index: 4; }

.hero__product {
  position: absolute; left: 50%; top: 52%;
  height: min(64vh, 640px);
  aspect-ratio: 900 / 881;
  translate: -50% -50%;
  z-index: 3;
}
.hero__jar {
  display: block; width: 100%; height: 100%;
  cursor: grab;
  border-radius: 30px;
  will-change: transform;
}
.hero__jar:active { cursor: grabbing; }
.hero__jar img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 40px 40px rgba(74, 30, 6, .35));
  pointer-events: none;
}
.hero__badge { top: 2%; inset-inline-end: -6%; color: var(--choc); z-index: 2; }

.hero__copy { grid-column: 1; grid-row: 2; align-self: end; z-index: 5; max-width: 30rem; }
.hero__eyebrow { color: var(--cream); margin-bottom: .6rem; }
.hero__eyebrow::before { background: var(--cream); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.6vw, 4.9rem);
  line-height: 1;
  letter-spacing: -.015em;
}
html[lang="ar"] .hero__title { letter-spacing: 0; line-height: 1.12; }
.hero__title .line { display: block; overflow: clip; padding-block: .08em .16em; margin-block: -.08em -.16em; }
.hero__title .line__in { display: inline-block; }
.hero__title-big { font-size: 1.42em; color: var(--cream); }
@media (min-width: 900px) {
  /* "Goodness" is wider than "الخير": cap it to the column width */
  html[lang="en"] .hero__title-big { font-size: min(1.42em, 5.6vw); }
}

.hero__side { grid-column: 3; grid-row: 2; align-self: end; justify-self: end; z-index: 5; max-width: 23rem; }
.hero__sub { font-size: 1.04rem; line-height: 1.75; margin-bottom: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero .btn--ghost { color: var(--choc); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; font-weight: 600; }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { width: 18px; height: 18px; }
.hero__trust { --bg: var(--orange); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 20px;
  box-shadow: inset 0 0 0 2px var(--choc);
  z-index: 5;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--choc);
  animation: scrollcue 1.8s var(--ease-out) infinite;
}
@keyframes scrollcue { 0% { translate: 0 0; opacity: 0; } 30% { opacity: 1; } 100% { translate: 0 16px; opacity: 0; } }

/* jar shake particles */
.spill { position: absolute; left: 50%; top: 18%; width: 34px; height: 34px; margin: -17px 0 0 -17px; z-index: 6; pointer-events: none; }

/* ---------- 9. Marquees ---------- */
.marquees { position: relative; z-index: 6; overflow-x: clip; margin-block: clamp(-64px, -5vw, -40px) clamp(-30px, -2vw, -16px); pointer-events: none; }
.marquee {
  width: 112vw; margin-inline: -6vw;
  overflow: hidden;
  padding-block: clamp(12px, 1.4vw, 20px);
  white-space: nowrap;
  box-shadow: 0 18px 30px -20px rgba(46, 26, 16, .5);
}
.marquee--choc { background: var(--choc); color: var(--cream); rotate: -2.4deg; position: relative; z-index: 2; }
.marquee--cream { background: var(--honey); color: var(--choc); rotate: 1.8deg; margin-top: clamp(-34px, -2.4vw, -20px); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  padding-inline: clamp(14px, 1.6vw, 26px);
}
.marquee--cream .marquee__item { text-transform: uppercase; letter-spacing: .06em; font-size: clamp(1.1rem, 2vw, 1.8rem); }
.marquee__sep { width: clamp(28px, 2.8vw, 42px); height: clamp(28px, 2.8vw, 42px); flex: none; }
.marquee__sep--star { width: clamp(16px, 1.6vw, 24px); height: clamp(16px, 1.6vw, 24px); }

/* ---------- 10. What's inside ---------- */
.inside {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: clamp(110px, 15vh, 150px) var(--gutter) clamp(28px, 5vh, 52px);
  background:
    radial-gradient(ellipse 40% 45% at 50% 58%, rgba(243, 169, 60, .22), transparent 70%),
    var(--cream);
}
.inside__head { text-align: center; max-width: 54rem; margin: 0 auto; }
.inside__head .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.inside__head .title { font-size: clamp(2.1rem, 4.4vw, 4rem); }
.inside__stage {
  position: relative;
  flex: 1;
  width: 100%; max-width: 1240px;
  margin: clamp(16px, 3vh, 40px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 30vw) minmax(0, 1fr);
  grid-template-areas: "a jar d" "b jar e" "c jar f";
  align-items: center;
  column-gap: clamp(16px, 3vw, 56px);
  row-gap: clamp(8px, 2vh, 22px);
}
.ing-list { display: contents; }
.ing:nth-child(1) { grid-area: a; } .ing:nth-child(2) { grid-area: b; } .ing:nth-child(3) { grid-area: c; }
.ing:nth-child(4) { grid-area: d; } .ing:nth-child(5) { grid-area: e; } .ing:nth-child(6) { grid-area: f; }
.inside__jar { grid-area: jar; position: relative; width: 100%; aspect-ratio: 900 / 881; }
.inside__glow {
  position: absolute; inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 112, 46, .28), transparent 62%);
}
.jar-part { position: absolute; inset: 0; }
.jar-part img { width: 100%; height: 100%; object-fit: contain; }
.jar-part--body { clip-path: inset(17.2% 0 0 0); filter: drop-shadow(0 30px 30px rgba(74, 30, 6, .25)); }
.jar-part--lid { clip-path: inset(0 0 82.6% 0); z-index: 2; will-change: transform; }

.ing { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); }
.ing:nth-child(-n + 3) { flex-direction: row-reverse; text-align: end; }
.ing__pile { position: relative; flex: none; width: clamp(96px, 8.4vw, 124px); height: clamp(80px, 7vw, 100px); }
.piece {
  position: absolute;
  inset-inline-start: var(--px); top: var(--py);
  width: calc(var(--ps) * .9); height: calc(var(--ps) * .9);
  rotate: var(--pr);
  filter: drop-shadow(0 8px 8px rgba(74, 34, 10, .22));
}
.ing__text h3 { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 800; color: var(--choc); margin-bottom: 2px; }
.ing__text h3::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c); margin-inline-end: 8px; translate: 0 -2px;
}
.ing:nth-child(-n + 3) .ing__text h3::before { display: none; }
.ing:nth-child(-n + 3) .ing__text h3::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c); margin-inline-start: 8px; translate: 0 -2px;
}
.ing__text p { color: var(--muted); font-size: clamp(.9rem, 1vw, 1rem); line-height: 1.55; max-width: 24ch; }
.ing:nth-child(-n + 3) .ing__text p { margin-inline-start: auto; }
.ing--love .ing__text h3 { color: var(--orange-ink); }
.inside__foot {
  text-align: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  margin-top: clamp(12px, 2vh, 24px);
}

/* ---------- 11. Story ---------- */
.story {
  position: relative;
  padding: clamp(100px, 15vh, 170px) 0 clamp(70px, 10vh, 120px);
  background: var(--paper);
}
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.story__copy .lead { font-size: 1.15rem; font-weight: 500; margin-top: 18px; }
.story__copy p + p { margin-top: 14px; color: var(--muted); }
.story__copy .title { margin-bottom: 4px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.value {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease-spring), box-shadow .4s;
}
.value:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md); }
.value__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--orange); color: var(--choc); }
.value__icon .icon { width: 22px; height: 22px; }
.value h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.value p { font-size: .88rem; color: var(--muted); margin: 0 !important; }

.story__media { position: relative; min-height: clamp(420px, 44vw, 600px); }
.photo { position: absolute; margin: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.photo--main { inset-inline-start: 0; top: 4%; width: 84%; aspect-ratio: 614 / 527; rotate: -2.5deg; }
.photo--small {
  inset-inline-end: 0; bottom: 0;
  width: 38%; aspect-ratio: 292 / 420;
  rotate: 5deg;
  border: 8px solid #fff;
  border-radius: 24px;
  background: #fff;
}
.photo__tape {
  position: absolute; top: -14px; left: 50%; translate: -50% 0;
  width: 120px; height: 32px;
  background: rgba(255, 248, 236, .78);
  rotate: -5deg;
  box-shadow: 0 2px 8px rgba(46, 26, 16, .12);
}
.story__sticker { position: absolute; top: -2%; inset-inline-end: 8%; z-index: 2; }
.story__note { position: absolute; bottom: 6%; inset-inline-start: 2%; z-index: 2; color: var(--orange-ink); }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(64px, 11vh, 130px);
  border-top: 2px solid var(--line);
}
.stat { padding: 30px 14px 0; text-align: center; }
.stat + .stat { border-inline-start: 2px solid var(--line); }
.stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 7vw, 6.2rem); line-height: 1;
  color: var(--orange-ink);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: .5em; }
.stat__num [data-count] { display: inline-block; }
.stat__label { font-weight: 600; margin-top: 8px; max-width: 18ch; margin-inline: auto; line-height: 1.4; }

/* ---------- 12. Flavors ---------- */
.flavors { padding: clamp(100px, 15vh, 170px) 0 clamp(80px, 12vh, 140px); background: var(--cream); }
.section-head { text-align: center; max-width: 52rem; margin-bottom: clamp(44px, 8vh, 90px); }
.section-head .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head__desc { color: var(--muted); font-size: 1.1rem; max-width: 36rem; margin: 14px auto 0; }

.flavor-stack { display: grid; gap: clamp(28px, 5vh, 56px); }
.flavor {
  --card-bg: var(--orange);
  --card-ink: var(--choc);
  --shade: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 52px);
  padding: clamp(14px, 1.4vw, 22px);
  border-radius: 44px;
  background: var(--card-bg);
  color: var(--card-ink);
  box-shadow: 0 40px 70px -40px rgba(46, 26, 16, .55);
  transform-origin: 50% 0;
}
.flavor::after {           /* darkens a card as the next one stacks over it */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--choc); opacity: var(--shade); pointer-events: none;
}
.flavor--classic { --card-bg: var(--orange); }
.flavor--berry { --card-bg: var(--berry-soft); --card-ink: #6E1530; }
.flavor--gift { --card-bg: var(--kraft); }
.flavor__media { position: relative; border-radius: 32px; overflow: hidden; min-height: 320px; background: rgba(0, 0, 0, .06); }
.flavor__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.flavor:hover .flavor__media img { transform: scale(1.05); }
.flavor__badge {
  position: absolute; top: 16px; inset-inline-start: 16px;
  padding: .45em 1em;
  border-radius: 999px;
  background: var(--cream); color: var(--choc);
  font-weight: 700; font-size: .85rem;
  box-shadow: var(--shadow-md);
}
.flavor__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(12px, 2.6vw, 44px) clamp(4px, 1.2vw, 20px); }
.flavor__num { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; opacity: .55; direction: ltr; align-self: flex-start; }
.flavor__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.08; margin: .25em 0 .45em; }
html[lang="ar"] .flavor__name { line-height: 1.2; }
.flavor__desc { font-size: 1.08rem; line-height: 1.75; max-width: 44ch; opacity: .92; }
.flavor__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.flavor__tags li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  font-weight: 700; font-size: .92rem;
}
[dir="rtl"] .flavor__tags li { padding: 7px 11px 7px 15px; }
.flavor__tags svg { width: 22px; height: 22px; }
.flavor__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 2px dashed color-mix(in srgb, currentColor 28%, transparent);
}
.flavor__size { font-weight: 700; }
.flavor__deco {
  position: absolute; inset-inline-start: var(--x); top: var(--y);
  width: var(--s); height: var(--s); rotate: var(--r);
  pointer-events: none;
  filter: drop-shadow(0 12px 12px rgba(46, 26, 16, .25));
  z-index: 2;
}

/* ---------- 13. Build your bowl ---------- */
.bowl {
  position: relative;
  padding: clamp(100px, 15vh, 170px) 0;
  background:
    radial-gradient(ellipse 50% 60% at 75% 50%, rgba(224, 112, 46, .16), transparent 70%),
    var(--choc);
  color: var(--cream);
  overflow: clip;
}
[dir="rtl"] .bowl { background: radial-gradient(ellipse 50% 60% at 25% 50%, rgba(224, 112, 46, .16), transparent 70%), var(--choc); }
.bowl__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.bowl__lead { font-size: 1.12rem; color: rgba(255, 248, 236, .78); margin: 14px 0 34px; }
.bowl .title em { color: var(--honey); }
.opt-group { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.opt-group legend { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; padding: 0; }
.opt-group__n {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange); color: var(--choc);
  font-size: .82rem; font-weight: 800;
}
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 248, 236, .22);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease-spring);
}
.opt:hover { box-shadow: inset 0 0 0 2px rgba(255, 248, 236, .6); }
.opt:active { transform: scale(.96); }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt:has(input:checked) { background: var(--cream); color: var(--choc); box-shadow: inset 0 0 0 2px var(--cream); }
.opt:has(input:focus-visible) { outline: 3px solid var(--honey); outline-offset: 3px; }
.opt svg { width: 22px; height: 22px; flex: none; }
.bowl__result {
  margin-top: 30px;
  padding: 22px 24px 24px;
  border-radius: 26px;
  background: rgba(255, 248, 236, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 236, .12);
}
.bowl__label { font-size: .9rem; color: rgba(255, 248, 236, .6); font-weight: 600; }
.bowl__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.25;
  color: var(--honey);
  margin: 4px 0 18px;
  min-height: 2.5em;
}
.bowl__name small { display: block; font-family: var(--font-hand); font-size: .7em; color: var(--cream); opacity: .85; margin-top: 2px; }
.bowl__stage { position: relative; display: grid; place-items: center; }
.bowl__glow {
  position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 112, 46, .55) 0%, rgba(224, 112, 46, .15) 45%, transparent 68%);
}
.glass { position: relative; z-index: 1; width: min(100%, 430px); height: auto; overflow: visible; }
.glass__back { fill: rgba(255, 248, 236, .07); stroke: rgba(255, 248, 236, .2); stroke-width: 2; }
.glass__front { stroke: rgba(255, 248, 236, .55); stroke-width: 2.5; }
.glass__shine { stroke: rgba(255, 255, 255, .5); stroke-width: 7; stroke-linecap: round; fill: none; }
.glass__rim { fill: rgba(255, 248, 236, .08); stroke: rgba(255, 248, 236, .6); stroke-width: 2.5; }
.bowl__shadow { width: 64%; height: 28px; margin-top: -26px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .5), transparent 70%); }

/* ---------- 14. Gallery ---------- */
.gallery { padding: clamp(100px, 14vh, 150px) 0 clamp(60px, 9vh, 100px); background: var(--cream); overflow: clip; }
.gallery__pin { display: flex; flex-direction: column; gap: clamp(24px, 4.5vh, 52px); }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; }
.gallery__desc { color: var(--muted); font-size: 1.08rem; max-width: 26rem; }
.gallery__viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__track { display: flex; align-items: flex-start; gap: clamp(16px, 2vw, 30px); width: max-content; padding-inline: var(--gutter); will-change: transform; }
.shot { flex: none; scroll-snap-align: center; }
.shot:nth-child(even) { margin-top: clamp(24px, 6vh, 70px); }
.shot__btn {
  display: block;
  height: clamp(260px, 48vh, 520px);
  aspect-ratio: var(--ar, 1);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
}
.shot--wide { --ar: 941 / 780; }
.shot--sq { --ar: 615 / 581; }
.shot--tall { --ar: 362 / 581; }
.shot__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.shot__btn:hover img { transform: scale(1.06); }
.shot__cap {
  font-family: var(--font-hand); font-weight: 700;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  color: var(--orange-ink);
  margin-top: 12px;
  rotate: -2deg;
}
.gallery__progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; display: none; }
.gallery__progress span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .gallery__progress span { transform-origin: left; }

/* ---------- 15. Reviews ---------- */
.reviews { padding: clamp(100px, 15vh, 170px) 0; background: var(--orange); color: var(--choc); overflow: clip; }
.reviews__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.reviews .eyebrow::before { background: var(--choc); }
.reviews__desc { font-size: 1.12rem; margin-top: 14px; }
.reviews__controls { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.reviews__count { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; direction: ltr; min-width: 3.6ch; text-align: center; }
.review-stack { display: grid; gap: 18px; width: 100%; max-width: 560px; margin-inline: auto; }
.review {
  display: flex; flex-direction: column;
  margin: 0;
  padding: clamp(26px, 3vw, 46px);
  border-radius: 34px;
  background: var(--cream);
  box-shadow: 0 30px 50px -28px rgba(46, 26, 16, .55);
}
.review__stars { display: flex; gap: 3px; color: var(--orange); }
.review__stars svg { width: 22px; height: 22px; }
.review__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.55; margin: 18px 0 24px; flex: 1; }
.review__author { display: flex; align-items: center; gap: 14px; }
.review__avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--choc); color: var(--cream); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; flex: none; }
.review cite { display: block; font-style: normal; font-weight: 700; line-height: 1.3; }
.review small { color: var(--muted); font-size: .9rem; }
/* stacked deck once JS + GSAP are available */
.has-gsap .review-stack { display: block; position: relative; height: clamp(360px, 46vh, 430px); touch-action: pan-y; }
.has-gsap .review { position: absolute; inset: 0; cursor: grab; user-select: none; will-change: transform; }
.has-gsap .review:active { cursor: grabbing; }
.reviews__controls { display: none; }
.has-gsap .reviews__controls { display: flex; }

/* ---------- 16. Instagram ---------- */
.insta { position: relative; padding: clamp(120px, 20vh, 220px) 0; background: var(--cream); overflow: clip; text-align: center; }
.insta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.insta .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.insta__handle {
  display: inline-block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 12.5vw, 11.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-decoration: none;
  color: transparent;
  background:
    linear-gradient(var(--orange), var(--orange)) no-repeat 0 100% / 0% 100%,
    linear-gradient(var(--choc), var(--choc));
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size .9s var(--ease-out);
  padding-inline: .05em;
}
.insta__handle:hover, .insta__handle:focus-visible { background-size: 100% 100%, auto; }
.insta__desc { color: var(--muted); font-size: 1.12rem; max-width: 34rem; margin: 18px 0 30px; }
.polaroid {
  position: absolute; z-index: 1;
  width: clamp(130px, 15vw, 230px);
  padding: 10px 10px 36px;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  margin: 0;
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid--a { top: 10%; inset-inline-start: 5%; rotate: -8deg; }
.polaroid--b { bottom: 8%; inset-inline-end: 6%; rotate: 7deg; }
.polaroid--c { top: 12%; inset-inline-end: 12%; rotate: 5deg; width: clamp(100px, 11vw, 170px); }

/* ---------- 17. Footer ---------- */
.footer { position: relative; background: var(--choc); color: var(--cream); padding-top: clamp(80px, 12vh, 130px); overflow: clip; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 50px; }
.footer__cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 4.3rem); line-height: 1.12; margin-bottom: 26px; max-width: 14ch; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer h3 { font-size: 1rem; color: var(--honey); margin-bottom: 16px; }
.footer__cols ul { display: grid; gap: 10px; list-style: none; padding: 0; }
.footer__cols a, .footer__item { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 248, 236, .82); text-decoration: none; transition: color .3s; }
.footer__cols a:hover { color: var(--orange); }
.footer__cols .icon { width: 18px; height: 18px; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap;
  margin-top: clamp(50px, 8vh, 90px);
  padding-block: 22px;
  border-top: 1px solid rgba(255, 248, 236, .14);
  font-size: .9rem;
  color: rgba(255, 248, 236, .66);
}
.footer__mark { color: var(--orange); display: flex; justify-content: center; margin-bottom: -4.6vw; }
.footer__mark .wordmark { width: 96vw; }

/* ---------- 18. Overlays: sheet, lightbox, toast, cursor ---------- */
.sheet {
  margin: 0; margin-inline-start: auto;
  width: min(460px, 100vw); max-width: 100vw;
  height: 100dvh; max-height: 100dvh;
  padding: 0; border: 0;
  background: var(--cream); color: var(--choc);
  box-shadow: 0 0 80px rgba(0, 0, 0, .3);
  translate: 0 0;
  transition: translate .6s var(--ease-out), overlay .6s allow-discrete, display .6s allow-discrete;
}
.sheet:not([open]) { translate: 100% 0; }
[dir="rtl"] .sheet:not([open]) { translate: -100% 0; }
@starting-style {
  .sheet[open] { translate: 100% 0; }
  [dir="rtl"] .sheet[open] { translate: -100% 0; }
}
.sheet::backdrop { background: rgba(28, 15, 9, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet__panel { display: flex; flex-direction: column; height: 100%; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-family: var(--font-display); font-size: 1.9rem; }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px; display: grid; align-content: start; gap: 18px; }
.sheet__empty { padding: 18px; border-radius: 18px; background: var(--paper); font-weight: 600; text-align: center; }
.sheet__items, .sheet__quick { display: grid; gap: 10px; }
.sheet__subtitle { font-weight: 700; color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.line-item {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.line-item img { width: 62px; height: 62px; border-radius: 14px; object-fit: cover; }
.line-item__name { font-weight: 700; line-height: 1.3; }
.line-item__size { font-size: .85rem; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--paper); }
.stepper button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: background .25s; }
.stepper button:hover { background: var(--cream); }
.stepper .icon { width: 16px; height: 16px; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 800; }
.quick-item {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px; border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.quick-item img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.quick-item span { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.quick-item .icon-btn { background: var(--choc); color: var(--cream); width: 38px; height: 38px; }
.quick-item .icon-btn:hover { background: var(--orange); color: var(--choc); }
.sheet__note { display: grid; gap: 8px; font-weight: 600; font-size: .95rem; }
.sheet__note textarea {
  width: 100%; resize: vertical; min-height: 64px;
  padding: 12px 14px; border-radius: 16px;
  border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-weight: 400; color: inherit;
}
.sheet__note textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.sheet__preview summary { cursor: pointer; font-weight: 700; color: var(--muted); font-size: .92rem; }
.sheet__preview pre {
  margin: 10px 0; padding: 14px; border-radius: 14px;
  background: var(--paper);
  font-family: var(--font-body); font-size: .9rem; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}
.sheet__foot { display: grid; gap: 10px; padding: 18px 24px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); }
.sheet__hint { font-size: .85rem; color: var(--muted); text-align: center; line-height: 1.5; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--cream);
}
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 20px; }
.lightbox::backdrop { background: rgba(24, 13, 8, .92); }
.lightbox__fig { display: grid; justify-items: center; gap: 14px; margin: 0; }
.lightbox__fig img { max-width: min(100%, 1100px); max-height: 78dvh; width: auto; border-radius: 22px; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.lightbox__fig figcaption { font-family: var(--font-hand); font-weight: 700; font-size: 1.5rem; color: var(--honey); }
.lightbox__close { position: absolute; top: 16px; inset-inline-end: 16px; color: var(--cream); background: rgba(255, 248, 236, .1); }
.lightbox__nav { color: var(--cream); }
.lightbox__nav:hover { background: var(--cream); color: var(--choc); border-color: var(--cream); }

.toast {
  position: fixed; inset: auto; left: 50%; bottom: 24px;
  margin: 0; border: 0;
  translate: -50% calc(100% + 48px);
  visibility: hidden;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--choc); color: var(--cream);
  font-weight: 600;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
  z-index: 10000;
  transition: translate .55s var(--ease-out), visibility 0s linear .55s;
  overflow: visible;
}
.toast.is-on { translate: -50% 0; visibility: visible; transition: translate .55s var(--ease-out), visibility 0s; }
.toast .icon { width: 20px; height: 20px; color: var(--honey); }

.cursor { position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none; }
.cursor span {
  display: grid; place-items: center;
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--choc); color: var(--cream);
  font-weight: 700; font-size: .92rem; text-align: center; line-height: 1.2;
  scale: 0;
  transition: scale .4s var(--ease-out);
}
.cursor.is-on span { scale: 1; }

.fly-dot {
  position: fixed; top: 0; left: 0; z-index: 9600;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: center / cover no-repeat var(--paper);
  box-shadow: 0 0 0 3px #fff, var(--shadow-md);
  pointer-events: none;
}

/* ---------- 19. Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- 20. Responsive ---------- */
/* Desktop-only motion layouts (must match the JS breakpoint) */
@media (min-width: 1000px) and (min-height: 620px) {
  .flavor { position: sticky; top: calc(var(--nav-h) + 16px + var(--i) * 24px); min-height: min(560px, calc(100svh - var(--nav-h) - 120px)); }
  .has-motion .gallery__viewport { overflow: visible; scroll-snap-type: none; }
  .has-motion .gallery__progress { display: block; }
  .has-motion .gallery { padding-block: 0; }
  .has-motion .gallery__pin { min-height: 100svh; justify-content: center; padding-block: calc(var(--nav-h) + 10px) 40px; }
  .has-motion .shot__btn { height: clamp(260px, 46vh, 500px); }
}

@media (max-width: 1180px) {
  .nav__links { display: none; }
  .menu-btn { display: inline-grid; }
}

@media (max-width: 999px), (max-height: 619px) {
  .inside { min-height: 0; }
  .inside__stage { display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .inside__jar { width: min(68vw, 330px); }
  .ing-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; width: 100%; max-width: 760px; }
  .ing-list > .ing:nth-child(n) { grid-area: auto; flex-direction: row; text-align: start; }
  .ing:nth-child(-n + 3) .ing__text h3::before { display: inline-block; }
  .ing:nth-child(-n + 3) .ing__text h3::after { display: none; }
  .ing:nth-child(-n + 3) .ing__text p { margin-inline-start: 0; }
}

@media (max-width: 999px) {
  .story__grid, .bowl__grid, .reviews__grid, .footer__top { grid-template-columns: minmax(0, 1fr); }
  .story__media { min-height: 0; aspect-ratio: 1 / .92; max-width: 640px; width: 100%; margin-inline: auto; }
  .flavor { grid-template-columns: minmax(0, 1fr); }
  .flavor__media { min-height: 0; aspect-ratio: 4 / 3; }
  /* phone/tablet: heading → glass → options, so the glass stays in view while choosing */
  .bowl__grid { gap: 0; }
  .bowl__copy { display: contents; }
  .bowl__copy > .eyebrow { order: 1; justify-self: start; }
  .bowl__copy > .title { order: 2; }
  .bowl__lead { order: 3; margin-bottom: 8px; }
  .bowl__stage { order: 4; width: min(100%, 300px); margin: 0 auto 26px; }
  .bowl__form { order: 5; }
  .bowl__result { order: 6; }
  .reviews__copy { text-align: center; }
  .reviews__copy .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
  .reviews__controls { justify-content: center; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 2px solid var(--line); margin-top: 26px; }
}

@media (max-width: 899px) {
  :root { --nav-h: 76px; }
  .hero {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    min-height: 0;
    padding-top: calc(var(--nav-h) + 4px);
    padding-bottom: 72px;
  }
  .hero__mark { position: relative; inset: auto; top: auto; translate: none; order: 1; margin-top: 3vh; }
  .hero__mark .wordmark { width: 90vw; }
  .hero__product { position: relative; left: auto; top: auto; translate: none; order: 2; height: auto; width: min(72vw, 420px); margin-top: -13vw; }
  .hero__copy { order: 3; max-width: 34rem; margin-top: 14px; }
  .hero__side { order: 4; max-width: 34rem; justify-self: auto; margin-top: 14px; }
  .hero__eyebrow { justify-content: center; }
  .hero__ctas, .hero__trust { justify-content: center; }
  .hero__badge { inset-inline-end: -10%; top: -2%; width: 92px; }
  .floater { inset-inline-start: var(--mx, var(--x)); top: var(--my, calc(var(--y) * .62)); }
  .f-mid { display: none; }
  .hero__scroll { display: none; }
  .nav__cta { display: none; }
  .nav__inner { padding-inline: 16px 6px; height: 56px; }
}

@media (max-width: 640px) {
  body { font-size: .98rem; }
  .ing-list { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); }
  .flavor { border-radius: 32px; }
  .flavor__media { border-radius: 24px; }
  .flavor__foot .btn { width: 100%; }
  .flavor__deco { display: none; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .polaroid--c { display: none; }
  .polaroid--a { top: 3%; inset-inline-start: -6%; }
  .polaroid--b { bottom: 2%; inset-inline-end: -6%; }
  .story__sticker { top: -6%; }
  .story__note { font-size: 1.05rem; bottom: 3%; inset-inline-start: 6%; }
  .story__note .hand-note__arrow { width: 44px; height: 28px; }
  .marquee--choc { rotate: -3deg; }
  .marquee--cream { rotate: 2.4deg; }
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); padding: 60px 12px 20px; }
  .lightbox__nav { display: none; }
  .toast { border-radius: 20px; bottom: 16px; }
  .shot__btn { height: min(62vw, 340px); border-radius: 22px; }
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .preloader { display: none; }
}
