/* =========================================================
   MILI FRESH, base tokens + header
   ========================================================= */
:root {
  --forest: #0B2D24;
  --moss: #184D39;
  --gold: #D6AF56;
  --gold-soft: #E7C987;
  --cream: #F4EFE3;
  --ink: #0F241D;

  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 84px;
  --header-h-small: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-small) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
html[lang="hi"] body { font-family: "Noto Sans Devanagari", var(--font-body); }
body.menu-open { overflow: hidden; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--forest);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- Header shell ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--cream);
  transition: transform .45s var(--ease), background-color .35s ease, box-shadow .35s ease;
}
.site-header::before {            /* frosted layer, fades in on scroll */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 45, 36, .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  opacity: 0; transition: opacity .35s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(214, 175, 86, .22); }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  max-width: 1280px; margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: height .35s var(--ease);
}
.site-header.is-scrolled .header-inner { height: var(--header-h-small); }

/* ---------- Brand + seal (the memorable moment) ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.seal { width: 42px; height: 42px; transition: width .35s var(--ease), height .35s var(--ease); }
.is-scrolled .seal { width: 34px; height: 34px; }
.seal circle, .seal path { fill: none; stroke: var(--gold); }
.seal-ring { stroke-width: 1.6; }
.seal-dash { stroke-width: 1; stroke-dasharray: 2 3.2; opacity: .75; }
.seal-check { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wordmark { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: .01em; line-height: 1; }

/* One orchestrated load sequence: the seal is "stamped", then the check draws. */
@media (prefers-reduced-motion: no-preference) {
  .seal { animation: stamp .7s var(--ease) .15s both; transform-origin: 50% 50%; }
  .seal-check { stroke-dasharray: 30; animation: draw .55s ease-out .75s both; }
  .wordmark { animation: fade-in .6s ease .45s both; }
}
@keyframes stamp {
  0%   { opacity: 0; transform: scale(1.7) rotate(-14deg); }
  60%  { opacity: 1; transform: scale(.94) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Nav ---------- */
.nav ul { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav a:not(.cta) {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: .95rem; font-weight: 500; color: rgba(244, 239, 227, .82);
  transition: color .25s ease;
}
.nav a:not(.cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:not(.cta):hover { color: var(--cream); }
.nav a:not(.cta):hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--gold-soft); }
.nav-cta { display: none; }

/* ---------- Right side ---------- */
.actions { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid rgba(244, 239, 227, .22);
}
.lang button {
  min-width: 38px; padding: 5px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: rgba(244, 239, 227, .7);
  transition: background-color .25s ease, color .25s ease;
}
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--forest); }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 999px;
  background: var(--gold); color: var(--forest);
  font-size: .92rem; font-weight: 600; white-space: nowrap;
  transition: background-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.cta:hover { background: var(--gold-soft); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(214, 175, 86, .28); }
.cta:active { transform: translateY(0); }

/* ---------- Scroll progress ---------- */
.progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0); transform-origin: left;
}

/* ---------- Burger (mobile only) ---------- */
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; }
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.8px; background: var(--cream);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .cta-desktop { display: none; }
  .burger { display: block; }

  .nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--forest);
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) clamp(24px, 8vw, 48px) 40px;
    display: flex; flex-direction: column; justify-content: center;
    clip-path: circle(0 at calc(100% - 44px) 40px);
    visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s linear .7s;
  }
  .menu-open .nav {
    clip-path: circle(150% at calc(100% - 44px) 40px);
    visibility: visible; transition: clip-path .7s var(--ease), visibility 0s;
  }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav a:not(.cta) {
    font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.8rem);
    color: var(--cream); padding: 6px 0;
  }
  .nav a:not(.cta)::after { display: none; }
  .nav a.is-active { color: var(--gold); }
  .nav-cta { display: block; margin-top: 28px; }
  .nav-cta .cta { padding: 14px 28px; font-size: 1rem; }
}

@media (max-width: 420px) {
  .wordmark { font-size: 1.3rem; }
  .lang button { min-width: 34px; padding: 5px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .header-inner, .nav, .nav a::after, .burger span { transition-duration: .01s; }
}

/* ---------- PLACEHOLDER sections (delete later) ---------- */
.ph { min-height: 80vh; display: grid; place-items: center; font-family: var(--font-display); font-size: 2rem; }
.ph:nth-child(even) { background: #ebe4d3; }

/* =========================================================
   PROBLEM SECTION
   ========================================================= */
html[lang="hi"] { --font-display: "Noto Sans Devanagari", var(--font-body); }
html[lang="hi"] .problem-title,
html[lang="hi"] .problem-item h3,
html[lang="hi"] .problem-close { font-weight: 600; }

.problem {
  position: relative; background: var(--cream);
  padding: clamp(96px, 14vw, 180px) 0 clamp(96px, 12vw, 160px);
}
.problem-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 120px);
}
.problem-left { position: sticky; top: calc(var(--header-h-small) + 6vh); align-self: start; }

/* Heading: lines rise out of a mask, once */
.problem-title {
  margin: 0 0 24px; color: var(--forest);
  font: 400 clamp(2.6rem, 5.4vw, 4.6rem)/1.04 var(--font-display); letter-spacing: -.01em;
}
html[lang="hi"] .problem-title { line-height: 1.3; }
.reveal-line { display: block; overflow: hidden; padding-bottom: .08em; }
.reveal-line > span { display: block; }
.problem-intro { margin: 0; max-width: 34ch; font-size: 1.1rem; line-height: 1.6; color: rgba(15, 36, 29, .72); }

.js .reveal-line > span { transform: translateY(108%); transition: transform 1.1s var(--ease) calc(var(--d, 0) * 1s); }
.js .problem.in .reveal-line > span { transform: none; }
.js .problem-intro { opacity: 0; transform: translateY(14px); transition: opacity .9s ease .35s, transform .9s var(--ease) .35s; }
.js .problem.in .problem-intro { opacity: 1; transform: none; }

/* Gauge */
.gauge-wrap { margin-top: clamp(28px, 5vh, 56px); max-width: 380px; }
.gauge { display: block; width: 100%; height: auto; overflow: visible; }
.g-track { fill: none; stroke: rgba(24, 77, 57, .22); stroke-width: 2; stroke-linecap: round; }
.g-ticks line { stroke: var(--moss); stroke-width: 1.5; stroke-linecap: round; opacity: .45; }
.g-zone {
  fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; opacity: .45;
  transition: opacity .6s ease, stroke-width .6s var(--ease), filter .6s ease;
}
.g-needle line { stroke: var(--forest); stroke-width: 3; stroke-linecap: round; }
.g-hub { fill: var(--gold); stroke: var(--forest); stroke-width: 3; }

.js .g-track { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.7s var(--ease) .3s; }
.js .problem.in .g-track { stroke-dashoffset: 0; }
.js .g-ticks line { opacity: 0; transition: opacity .5s ease calc(var(--i) * 70ms + .9s); }
.js .problem.in .g-ticks line { opacity: .45; }

.problem.is-resolved .g-zone { opacity: 1; stroke-width: 9; filter: drop-shadow(0 0 7px rgba(214, 175, 86, .9)); }

.gauge-caption {
  display: flex; align-items: center; gap: 0; margin: 18px 0 0; min-height: 2.4rem; color: var(--forest);
  font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.2 var(--font-display);
  transition: opacity .16s ease, transform .16s ease;
}
.gauge-caption.is-swapping { opacity: 0; transform: translateY(6px); }
.cap-check { width: 0; height: 26px; overflow: hidden; opacity: 0; transition: width .45s var(--ease), opacity .45s ease, margin .45s var(--ease); }
.cap-check svg { display: block; width: 26px; height: 26px; }
.problem.is-resolved .cap-check { width: 26px; margin-right: 10px; opacity: 1; }

/* List with a gold rail that fills as you scroll */
.problem-list { --gutter: 48px; position: relative; padding-left: var(--gutter); }
.problem-list::before, .problem-list::after {
  content: ""; position: absolute; left: 6px; top: 40px; bottom: 40px; width: 1.5px;
}
.problem-list::before { background: rgba(24, 77, 57, .18); }
.problem-list::after { background: var(--gold); transform-origin: top; transform: scaleY(var(--p, 0)); }

.problem-item { --pad: clamp(28px, 5vh, 52px); position: relative; padding: var(--pad) 0; }
.problem-item::before {
  content: ""; position: absolute; left: calc(var(--gutter) * -1); top: calc(var(--pad) + 14px);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--cream); border: 1.5px solid var(--moss);
  transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease, transform .4s var(--ease);
}
.problem-item.is-passed::before, .problem-item.is-current::before { background: var(--gold); border-color: #B58E35; }
.problem-item.is-current::before { transform: scale(1.2); box-shadow: 0 0 0 7px rgba(214, 175, 86, .25); }

.problem-item h3 {
  margin: 0 0 12px; color: var(--forest);
  font: 400 clamp(1.8rem, 3.1vw, 2.7rem)/1.12 var(--font-display);
}
.problem-item p { margin: 0; max-width: 44ch; font-size: 1.08rem; line-height: 1.6; color: rgba(15, 36, 29, .75); }

.js .problem-item h3, .js .problem-item p, .js .problem-close { opacity: .28; transition: opacity .55s ease; }
.js .problem-item.is-current h3, .js .problem-item.is-current p,
.js .problem.is-resolved .problem-close { opacity: 1; }

.problem-close {
  margin: clamp(40px, 8vh, 90px) 0 0; color: var(--forest);
  font: 400 clamp(1.8rem, 3.2vw, 2.8rem)/1.2 var(--font-display); max-width: 18ch;
}
.problem-close::before { content: ""; display: block; width: 64px; height: 2px; margin-bottom: 24px; background: var(--gold); }

/* Mobile: the gauge becomes a slim sticky strip above the list */
@media (max-width: 900px) {
  .problem-inner { display: block; }
  .problem-left { display: contents; }
  .gauge-wrap {
    position: sticky; z-index: 5; max-width: none; margin: 24px 0 4px; padding: 10px 0 18px;
    top: calc(var(--header-h-small) + env(safe-area-inset-top, 0px));
    background: linear-gradient(var(--cream) 78%, rgba(244, 239, 227, 0));
  }
  .gauge { width: min(220px, 62%); margin: 0 auto; }
  .gauge-caption { justify-content: center; margin-top: 10px; font-size: 1.25rem; }
  .problem-list { --gutter: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal-line > span, .js .problem-intro { transform: none; opacity: 1; transition: none; }
  .js .g-track { stroke-dashoffset: 0; transition: none; }
  .js .g-ticks line { opacity: .45; transition: none; }
  .problem-item::before, .gauge-caption, .g-zone, .cap-check { transition-duration: .01s; }
}

/* =========================================================
   VERIFICATION SECTION (scroll-built line -> green tick)
   ========================================================= */
:root { --green: #3CCB84; --green-soft: #8FE3B8; }

.verify { position: relative; background: var(--forest); color: var(--cream); }
.js .verify { height: 520vh; height: 520svh; }

.verify-stage {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(60% 46% at 50% 66%, rgba(24, 77, 57, .6), transparent 72%),
    var(--forest);
}
.js .verify-stage { position: sticky; top: 0; }

.verify-head {
  position: absolute; z-index: 3; max-width: 760px;
  left: clamp(20px, 4vw, 48px); top: calc(var(--header-h) + 3vh);
}
.verify-title {
  margin: 0; font: 400 clamp(2rem, 4.4vw, 3.8rem)/1.06 var(--font-display); letter-spacing: -.01em;
}
html[lang="hi"] .verify-title { line-height: 1.3; font-weight: 600; }
.js .verify.in .reveal-line > span { transform: none; }

/* SVG layer */
.verify-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.verify-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.v-track { stroke: rgba(244, 239, 227, .2); stroke-width: 2; stroke-dasharray: .1 9; }
.v-gold  { stroke: var(--gold); stroke-width: 3.5; }
.v-green { stroke: var(--green); stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(60, 203, 132, .55)); }
.v-halo { fill: var(--gold); opacity: 0; }
.v-head { fill: #fff; opacity: 0; }

.v-node { fill: var(--forest); stroke: rgba(244, 239, 227, .4); stroke-width: 2; transition: fill .4s ease, stroke .4s ease; }
.v-node.is-on { fill: var(--green); stroke: var(--green); }
.v-pulse { fill: none; stroke: var(--green); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.v-pulse.go { animation: v-pulse .95s ease-out; }
@keyframes v-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(3.6); } }

.v-tick .t-ring { fill: rgba(60, 203, 132, 0); stroke: rgba(214, 175, 86, .4); stroke-width: 2; transition: stroke .5s ease, fill .6s ease; }
.v-tick .t-check { stroke: var(--green); stroke-width: 4.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke .4s ease; }
.v-tick.is-live .t-ring { stroke: var(--green); }
.v-tick.is-solid .t-ring { fill: var(--green); }
.v-tick.is-solid .t-check { stroke: var(--forest); }
.v-tick.is-solid { filter: drop-shadow(0 0 22px rgba(60, 203, 132, .55)); }

/* Cards */
.v-cards { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.v-card {
  width: 236px; padding: 16px 18px 18px; border-radius: 14px;
  background: rgba(244, 239, 227, .045); border: 1px solid rgba(244, 239, 227, .12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: .3; translate: 0 14px;
  transition: opacity .6s ease, translate .7s var(--ease), border-color .6s ease, background-color .6s ease;
}
.js .v-card { position: absolute; transform: translate(-50%, 40px); }
.js .v-card.above { transform: translate(-50%, calc(-100% - 40px)); }
.v-mobile .v-card { transform: translateY(-50%); padding: 12px 14px 13px; }
.v-card.is-on { opacity: 1; translate: 0 0; border-color: rgba(60, 203, 132, .5); background: rgba(60, 203, 132, .07); }

.v-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; min-height: 30px; }
.v-card h3 { margin: 0; font: 600 1.02rem/1.2 var(--font-body); }
.v-card p { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(244, 239, 227, .7); }
.v-read { display: inline-flex; align-items: baseline; gap: 4px; }
.ro { font: 600 1.05rem/1 var(--font-body); font-variant-numeric: tabular-nums; color: rgba(244, 239, 227, .45); transition: color .4s ease; }
.ro-code { font-size: .8rem; letter-spacing: .04em; }
.unit { font-size: .75rem; color: rgba(244, 239, 227, .5); }
.v-card.is-on .ro { color: var(--green-soft); }

.ro-q {
  position: relative; display: inline-flex; align-items: center; gap: 6px; overflow: hidden;
  min-width: 74px; height: 26px; padding: 0 10px; border-radius: 7px; justify-content: center;
  border: 1px dashed rgba(244, 239, 227, .28); color: rgba(244, 239, 227, .5); font-size: .8rem; font-weight: 600;
}
.ro-q .q-check, .ro-q .q-text { display: none; }
.ro-q.passed { border-style: solid; border-color: rgba(60, 203, 132, .7); color: var(--green-soft); }
.ro-q.passed .q-idle { display: none; }
.ro-q.passed .q-check, .ro-q.passed .q-text { display: inline-block; }
.scanbar { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--green); box-shadow: 0 0 10px var(--green); opacity: 0; }
.ro-q.scan .scanbar { animation: v-scan .7s ease-in-out; }
@keyframes v-scan { from { left: 0; opacity: 1; } to { left: 100%; opacity: .4; } }

/* Final state */
.verify-final {
  position: absolute; left: 50%; z-index: 3; width: min(560px, 86vw); text-align: center;
  opacity: 0; translate: -50% 16px; transition: opacity .8s ease, translate .9s var(--ease);
}
.verify-final.is-on { opacity: 1; translate: -50% 0; }
.final-title { margin: 0 0 10px; font: 400 clamp(2rem, 4vw, 3.2rem)/1.1 var(--font-display); }
html[lang="hi"] .final-title { font-weight: 600; }
.final-sub { margin: 0 auto; max-width: 44ch; font-size: 1.05rem; line-height: 1.6; color: rgba(244, 239, 227, .75); }

/* Scroll cue */
.verify-hint {
  position: absolute; z-index: 3; left: 50%; translate: -50% 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0;
  font-size: .92rem; color: rgba(244, 239, 227, .7); text-align: center; transition: opacity .5s ease;
}
.verify-hint.is-gone { opacity: 0; }
.hint-line { position: relative; width: 1.5px; height: 38px; background: rgba(244, 239, 227, .2); overflow: hidden; }
.hint-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold); animation: v-cue 1.8s ease-in-out infinite; }
@keyframes v-cue { to { top: 110%; } }

/* Mobile */
@media (max-width: 900px) {
  .verify-head { top: calc(var(--header-h-small) + 14px); right: 20px; }
  .verify-title { font-size: clamp(1.7rem, 7.4vw, 2.3rem); }
  .v-card h3 { font-size: .98rem; }
  .v-card p { font-size: .82rem; line-height: 1.45; }
}

/* Reduced motion: no pinning, everything already shown */
.verify.is-static { height: auto; }
.verify.is-static .verify-stage { position: relative; }
.verify.is-static .verify-final { top: auto !important; bottom: 5vh; }
.verify.is-static .verify-hint { display: none; }
@media (prefers-reduced-motion: reduce) {
  .v-card, .verify-final { transition-duration: .01s; }
  .hint-line::after, .v-pulse.go, .ro-q.scan .scanbar { animation: none; }
}

/* =========================================================
   WAITLIST SECTION
   ========================================================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.wait { background: var(--cream); padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; }
.wait-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 6vw, 96px);
  grid-template-areas: "phone head" "phone form"; align-items: center;
}
.wait-head { grid-area: head; align-self: end; }
.wait-phone { grid-area: phone; grid-row: 1 / span 2; }
.wait-formwrap { grid-area: form; align-self: start; }

.wait-title { margin: 0 0 20px; color: var(--forest); font: 400 clamp(2.4rem, 4.8vw, 4.2rem)/1.04 var(--font-display); letter-spacing: -.01em; }
html[lang="hi"] .wait-title { line-height: 1.3; font-weight: 600; }
.js .wait.in .reveal-line > span { transform: none; }
.wait-sub { margin: 0 0 32px; max-width: 38ch; font-size: 1.12rem; line-height: 1.6; color: rgba(15, 36, 29, .75); }

/* Form */
.wait-form { max-width: 460px; }
.seg { display: inline-flex; padding: 4px; margin-bottom: 16px; border-radius: 999px; background: rgba(24, 77, 57, .09); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 9px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500; cursor: pointer; color: rgba(15, 36, 29, .7); transition: background-color .3s ease, color .3s ease; }
.seg input:checked + label { background: var(--forest); color: var(--cream); }
.seg input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.wait-input {
  width: 100%; height: 58px; padding: 0 20px; border-radius: 16px; font: 500 1.05rem var(--font-body); color: var(--ink);
  background: #fff; border: 1.5px solid rgba(24, 77, 57, .28); transition: border-color .25s ease, box-shadow .25s ease;
}
.wait-input::placeholder { color: rgba(15, 36, 29, .45); }
.wait-input:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 4px rgba(214, 175, 86, .35); }
.wait-input.is-bad { border-color: #B3402F; }
.wait-btn { width: 100%; height: 58px; margin-top: 12px; font-size: 1.02rem; }
.wait-btn[disabled] { opacity: .6; cursor: progress; }
.wait-msg { min-height: 1.4em; margin: 10px 0 0; font-size: .92rem; color: #B3402F; }
.wait-note { margin: 4px 0 0; font-size: .85rem; color: rgba(15, 36, 29, .6); }

.wait-done { max-width: 460px; }
.wait-done[hidden] { display: none; }
.done-t { margin: 16px 0 6px; color: var(--forest); font: 400 2rem/1.15 var(--font-display); }
html[lang="hi"] .done-t { font-weight: 600; }
.done-d { margin: 0; font-size: 1.05rem; color: rgba(15, 36, 29, .75); }
.dn-check { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dn-draw .6s ease-out .15s forwards; }
@keyframes dn-draw { to { stroke-dashoffset: 0; } }

/* Phone stage */
.phone-stage { --s: 1; position: relative; display: grid; justify-items: center; height: calc(660px * var(--s)); padding-top: calc(20px * var(--s)); }
.phone-stage::before, .phone-stage::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; translate: -50% -50%; }
.phone-stage::before { width: 440px; height: 440px; background: radial-gradient(circle at 30% 25%, var(--moss), var(--forest) 70%); }
.phone-stage::after { width: 500px; height: 500px; border: 1px solid rgba(214, 175, 86, .55); }

.phone {
  position: relative; z-index: 2; width: 300px; height: 620px; padding: 10px; border-radius: 52px;
  background: linear-gradient(145deg, #333936, #0c0f0d);
  box-shadow: 0 0 0 1.5px rgba(214, 175, 86, .6), 0 50px 80px -24px rgba(11, 45, 36, .6), inset 0 0 0 2px rgba(255, 255, 255, .07);
  transform: scale(var(--s)); transform-origin: top center;
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #1c211e; }
.phone::before { left: -3px; top: 120px; height: 48px; }
.phone::after { right: -3px; top: 160px; height: 72px; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #FAF7F0; color: var(--ink); font-size: 12px; transition: opacity .5s ease; }
.screen.fade { opacity: 0; }
.island { position: absolute; z-index: 10; top: 10px; left: 50%; translate: -50% 0; width: 86px; height: 25px; border-radius: 20px; background: #0b0d0c; }
.status { position: absolute; z-index: 9; top: 0; left: 0; right: 0; height: 44px; padding: 14px 26px 0; display: flex; justify-content: space-between; font-size: 12px; background: #FAF7F0; }
.status i { width: 22px; height: 10px; margin-top: 3px; border-radius: 3px; background: var(--forest); }
.app-top { position: absolute; z-index: 8; top: 44px; left: 0; right: 0; height: 50px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; background: #FAF7F0; box-shadow: 0 1px 0 rgba(15, 36, 29, .07); }
.app-logo { display: inline-flex; align-items: center; gap: 6px; font: 400 17px var(--font-display); color: var(--forest); }
.app-logo svg { width: 20px; height: 20px; }
.app-slot { padding: 5px 9px; border-radius: 999px; background: rgba(60, 203, 132, .15); color: #14683F; font-size: 10px; font-weight: 600; }

.app-view { position: absolute; top: 94px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.app-scroll { padding: 12px 14px 130px; will-change: transform; }
.a-search { height: 36px; padding: 0 12px; display: flex; align-items: center; border-radius: 12px; background: #fff; border: 1px solid rgba(15, 36, 29, .1); color: rgba(15, 36, 29, .45); }
.a-chips { display: flex; gap: 6px; margin: 10px 0; }
.a-chips span { padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid rgba(15, 36, 29, .1); font-weight: 500; }
.a-chips .on, .wsel .on { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.a-shop { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: rgba(24, 77, 57, .08); }
.a-shop b { display: block; font-size: 12px; }
.a-shop small { color: rgba(15, 36, 29, .6); font-size: 10px; }
.a-shop em { font-style: normal; font-weight: 700; font-size: 13px; padding: 5px 8px; border-radius: 8px; background: var(--gold); color: var(--forest); }
.a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pc { padding: 8px; border-radius: 14px; background: #fff; border: 1px solid rgba(15, 36, 29, .08); }
.pc img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.pc h4 { margin: 8px 0 1px; font-size: 12px; }
.pc p { margin: 0 0 6px; font-size: 10px; color: rgba(15, 36, 29, .6); }
.wsel { display: flex; gap: 4px; margin-bottom: 8px; }
.wsel span { padding: 3px 7px; border-radius: 6px; font-size: 10px; font-weight: 600; border: 1px solid rgba(15, 36, 29, .15); }
.prow { display: flex; align-items: center; justify-content: space-between; }
.prow b { font-size: 13px; }
.add, .a-btn { position: relative; font: 700 11px var(--font-body); border-radius: 9px; border: 1.5px solid #14683F; color: #14683F; background: #fff; transition: background-color .3s, color .3s; }
.add { min-width: 52px; height: 28px; padding: 0 8px; }
.add .a2, .a-btn .a2 { display: none; }
.add.is-added, .a-btn.is-added { background: #14683F; color: #fff; }
.is-added .a1 { display: none; }
.is-added .a2 { display: inline; }
.a-h { margin: 18px 0 8px; font: 400 16px var(--font-display); color: var(--forest); }
.a-meal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.a-meal span { display: grid; justify-items: center; gap: 4px; font-size: 10px; font-weight: 500; text-align: center; }
.a-meal img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.a-btn { width: 100%; height: 38px; margin-top: 10px; font-size: 12px; }
.a-btn.dark { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.a-btn.dark.is-added { background: #14683F; }
.a-slots { display: flex; gap: 8px; }
.a-slots span { flex: 1; padding: 9px 6px; border-radius: 10px; text-align: center; font-weight: 600; background: #fff; border: 1.5px solid rgba(15, 36, 29, .12); transition: border-color .3s, background-color .3s; }
.a-slots span.on { border-color: #14683F; background: rgba(60, 203, 132, .14); }
.a-ver { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.a-ver li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid rgba(15, 36, 29, .08); opacity: .4; transition: opacity .4s ease, border-color .4s ease; font-weight: 600; }
.a-ver i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(15, 36, 29, .3); transition: background-color .3s, border-color .3s; }
.a-ver b { margin-left: auto; font-size: 11px; color: #14683F; }
.a-ver li.on { opacity: 1; border-color: rgba(60, 203, 132, .6); }
.a-ver li.on i { background: #3CCB84 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.5' fill='none' stroke='%230B2D24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; border-color: #3CCB84; }
.a-cart { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; justify-content: space-between; padding: 13px 16px; border-radius: 16px; background: var(--forest); color: var(--cream); font-weight: 600; box-shadow: 0 10px 24px rgba(11, 45, 36, .35); translate: 0 90px; opacity: 0; transition: translate .5s var(--ease), opacity .4s ease; }
.a-cart.show { translate: 0 0; opacity: 1; }
.touch { position: absolute; z-index: 5; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(214, 175, 86, .55); border: 2px solid rgba(214, 175, 86, .9); opacity: 0; scale: .6; transition: left .6s var(--ease), top .6s var(--ease), opacity .3s, scale .25s; pointer-events: none; }
.touch.on { opacity: 1; scale: 1; }
.touch.press { scale: .7; }

/* Floating chips sync with the demo */
.phone-chips { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 3; pointer-events: none; }
.fchip { position: absolute; padding: 11px 16px; border-radius: 14px; background: #fff; color: var(--forest); font-size: .9rem; font-weight: 600; box-shadow: 0 14px 34px -10px rgba(11, 45, 36, .4); border: 1px solid rgba(24, 77, 57, .14); opacity: 0; translate: 0 14px; scale: .94; transition: opacity .5s ease, translate .6s var(--ease), scale .6s var(--ease); }
.fchip::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #3CCB84; }
.fchip.is-on { opacity: 1; translate: 0 0; scale: 1; }
.fchip[data-k="meal"] { left: calc(50% - 300px); top: 40%; }
.fchip[data-k="weight"] { left: calc(50% + 130px); top: 24%; }
.fchip[data-k="seal"] { left: calc(50% + 120px); top: 64%; }
.phone-note { margin: 4px 0 0; text-align: center; font-size: .82rem; color: rgba(15, 36, 29, .55); }

@media (max-width: 1100px) {
  .fchip[data-k="meal"] { left: calc(50% - 250px); }
  .fchip[data-k="weight"] { left: calc(50% + 110px); }
  .fchip[data-k="seal"] { left: calc(50% + 100px); }
  .fchip { font-size: .82rem; padding: 9px 12px; }
}
@media (max-width: 900px) {
  .wait-inner { grid-template-columns: 1fr; grid-template-areas: "head" "phone" "form"; gap: 8px; }
  .wait-phone { grid-row: auto; margin: 12px 0 24px; }
  .wait-head { align-self: start; }
  .phone-stage { --s: .9; }
  .phone-chips { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
  .phone-stage { height: auto; display: block; }
  .phone-stage .phone { margin: calc(20px * var(--s)) auto calc(-620px * (1 - var(--s))); }
  .phone-stage::before { width: 360px; height: 360px; top: calc(20px + 310px * var(--s)); }
  .phone-stage::after { width: 410px; height: 410px; top: calc(20px + 310px * var(--s)); }
  .fchip { position: relative; left: auto !important; top: auto !important; }
  .wait-form, .wait-done { max-width: none; }
}
@media (max-width: 380px) { .phone-stage { --s: .8; } }
@media (prefers-reduced-motion: reduce) { .fchip, .a-cart, .touch, .screen { transition-duration: .01s; } .dn-check { animation: none; stroke-dashoffset: 0; } }

/* =========================================================
   MILI FRESH, hero
   Sequence: words rise -> food flies in from the left and hits the
   screen (flash, shockwave, shake, blur) -> settles beside the headline.
   Base styles are the FINAL state, so skipping / reduced motion / no-JS
   all land on the finished composition.
   ========================================================= */
.hero {
  --fly-delay: 2s;
  --fly-dur: 2.1s;
  --hit-t: calc(var(--fly-delay) + var(--fly-dur) * .52);   /* the moment of impact */
  --p: 0;                                                   /* scroll progress (set by JS) */
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  background: var(--forest); color: var(--cream);
}

/* ---------- Background ---------- */
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(110% 90% at 78% 42%, #1b5a42 0%, var(--moss) 28%, var(--forest) 68%);
}
.hero-bg::before {                          /* big gold ring behind the plate */
  content: ""; position: absolute; right: -14vmin; top: 50%; translate: 0 -50%;
  width: 96vmin; height: 96vmin; border-radius: 50%;
  border: 1px solid rgba(214, 175, 86, .24); z-index: 1;
}
.hero-bg::after {                           /* keeps the headline readable over the photo */
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(11, 45, 36, .9) 0%, rgba(11, 45, 36, .55) 52%, rgba(11, 45, 36, .15) 100%),
    linear-gradient(0deg, rgba(11, 45, 36, .7) 0%, transparent 28%);
}
.hero-back {                                /* the same photo, blurred, appears on impact */
  position: absolute; left: -10%; top: -10%; width: 120%; height: 120%;
  object-fit: cover; filter: blur(34px) saturate(1.2);
  opacity: .42; transform: scale(1.15);
}
.hero-back:not([src]) { display: none; }

/* ---------- Layout ---------- */
.hero-stage { width: 100%; }
.hero-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: calc(var(--header-h) + 28px) clamp(20px, 4vw, 48px) 56px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(16px, 3vw, 56px);
}

/* ---------- Copy ---------- */
.hero-copy-in { transform: translate3d(0, calc(var(--p) * -50px), 0); }
.hero-title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.2rem, 8.4vw, 8.2rem); line-height: .94; letter-spacing: -.015em;
}
html[lang="hi"] .hero-title { font-weight: 600; line-height: 1.3; font-size: clamp(2.8rem, 6.8vw, 6.2rem); letter-spacing: 0; }
.hero-line {
  display: flex; align-items: center; gap: .16em;
  overflow: hidden; padding: .06em .08em .1em 0; margin-bottom: -.02em;
}
.hero-line .w { display: block; transform-origin: 0 100%; }
.hero-tick { width: .6em; height: .6em; flex: none; }
.hero-tick circle, .hero-tick path {
  fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.hero-tick circle { stroke-width: 2.2; }
.hero-tick path { stroke-width: 4.2; }

.hero-sub {
  max-width: 33em; margin: 26px 0 0;
  font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.65; color: rgba(244, 239, 227, .84);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.hero-actions .cta { padding: 15px 30px; font-size: 1.02rem; }
.hero-link { position: relative; padding: 8px 0; font-weight: 600; color: var(--cream); }
.hero-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px;
  background: var(--gold); transform-origin: left; transition: transform .35s var(--ease);
}
.hero-link:hover::after { transform: scaleX(.55); }

/* ---------- The food ---------- */
.hero-visual { position: relative; justify-self: center; width: min(100%, 560px); aspect-ratio: 1; }
.hero-food { position: absolute; inset: 0; z-index: 3; will-change: transform; }
.hero-par {
  position: absolute; inset: 0;
  transform: translate3d(0, calc(var(--p) * 70px), 0) rotate(calc(var(--p) * 18deg)) scale(calc(1 + var(--p) * .08));
}
.hero-plate {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--moss), var(--forest) 72%);
  box-shadow: 0 0 0 1px rgba(214, 175, 86, .5), 0 50px 90px -20px rgba(0, 0, 0, .55), 0 0 120px rgba(214, 175, 86, .14);
  animation: h-bob 8s ease-in-out infinite;
}
.hero-plate img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero.no-photo .hero-plate img { display: none; }
.hero-plate::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(214, 175, 86, .55);
}
.hero-plate::after {
  content: ""; position: absolute; inset: -30px; border-radius: 50%;
  border: 1px dashed rgba(214, 175, 86, .5); animation: h-spin 70s linear infinite;
}
/* Using a transparent PNG cut-out instead of a round photo?
   Add class "is-cutout" to .hero-plate in index.html. */
.hero-plate.is-cutout { background: none; box-shadow: none; }
.hero-plate.is-cutout img { border-radius: 0; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .5)); }
.hero-plate.is-cutout::before, .hero-plate.is-cutout::after { display: none; }

.hero-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(244, 239, 227, .96); color: var(--forest);
  font-size: .92rem; font-weight: 600; box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}
.hero-chip i { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green); }
.hero-chip i::after {
  content: ""; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px;
  border: solid var(--forest); border-width: 0 2.4px 2.4px 0; transform: rotate(40deg);
}
.hero-chip.c1 { left: -7%; top: 15%; }
.hero-chip.c2 { right: -3%; bottom: 13%; }

/* ---------- Impact effects ---------- */
.hero-fx { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.hero-flash {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), rgba(255, 244, 214, .9), rgba(214, 175, 86, .35) 28%, transparent 62%);
}
.hero-wave {
  --w: min(60vmin, 520px);
  position: absolute; left: var(--cx, 50%); top: var(--cy, 50%);
  width: var(--w); height: var(--w); margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2);
  border-radius: 50%; border: 2px solid rgba(231, 201, 135, .85); opacity: 0;
}
.hero-wave.w2 { --w: min(44vmin, 380px); border-color: rgba(244, 239, 227, .6); }
.spark {
  position: absolute; left: var(--cx, 50%); top: var(--cy, 50%);
  width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2);
  border-radius: 50%; background: var(--c); opacity: 0;
}

/* ---------- Idle ---------- */
@keyframes h-bob  { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(1.2deg); } }
@keyframes h-spin { to { transform: rotate(360deg); } }

/* ---------- Before the sequence starts (JS only) ---------- */
.js .hero:not(.is-play):not(.is-done) .hero-stage { visibility: hidden; animation: h-failsafe 0s 4.5s forwards; }
.js .hero:not(.is-play):not(.is-done) .hero-bg::before { opacity: 0; }
@keyframes h-failsafe { to { visibility: visible; } }

/* ---------- The sequence ---------- */
.hero.is-play .hero-bg::before { animation: h-ring 1.8s var(--ease) .1s both; }
.hero.is-play .hero-line .w { animation: h-rise 1.05s var(--ease) calc(.35s + var(--i, 0) * .17s) both; }
.hero.is-play .hero-tick circle { animation: h-draw .7s ease-out 1.15s both; }
.hero.is-play .hero-tick path { animation: h-draw .45s ease-out 1.7s both; }
.hero.is-play .hero-sub { animation: h-fade .9s var(--ease) 1.35s both; }
.hero.is-play .hero-actions { animation: h-fade .9s var(--ease) 1.55s both; }

/* 1) food flies in from the left, accelerating into the screen */
.hero.is-play .hero-food { animation: h-fly var(--fly-dur) linear var(--fly-delay) both; }
/* 2) impact */
.hero.is-play .hero-copy  { animation: h-blur 2.4s var(--ease) var(--hit-t) both; }
.hero.is-play .hero-stage { animation: h-shake .6s linear var(--hit-t) both; }
.hero.is-play .hero-back  { animation: h-back 1.8s var(--ease) var(--hit-t) both; }
.hero.is-play .hero-flash { animation: h-flash .75s ease-out var(--hit-t) both; }
.hero.is-play .hero-wave  { animation: h-wave 1.2s cubic-bezier(.1, .7, .2, 1) var(--hit-t) both; }
.hero.is-play .hero-wave.w2 { animation-delay: calc(var(--hit-t) + .12s); }
.hero.is-play .spark      { animation: h-spark 1s cubic-bezier(.1, .75, .25, 1) calc(var(--hit-t) + var(--sd, 0s)) both; }
/* 3) proof chips pop in once it has settled */
.hero.is-play .hero-chip  { animation: h-pop .7s cubic-bezier(.34, 1.56, .64, 1) calc(var(--hit-t) + 1.1s + var(--k, 0) * .18s) both; }

@keyframes h-ring { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes h-rise {
  from { transform: translateY(112%) rotate(5deg); filter: blur(8px); opacity: 0; }
  to   { transform: none; filter: blur(0); opacity: 1; }
}
@keyframes h-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes h-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@keyframes h-fly {
  0%   { opacity: 0; filter: blur(10px);
         transform: translate(var(--fx), var(--fy)) scale(.26) rotate(-380deg);
         animation-timing-function: cubic-bezier(.5, 0, .85, .4); }
  5%   { opacity: 1; }
  52%  { opacity: 1; filter: blur(0);                                  /* HIT: big, centre of the screen */
         transform: translate(var(--dx), var(--dy)) scale(var(--hit)) rotate(-14deg);
         animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  58%  { filter: blur(0);                                              /* pressed into the glass */
         transform: translate(var(--dx), var(--dy)) scale(calc(var(--hit) * 1.05)) rotate(-11deg);
         animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  86%  { filter: blur(0); transform: translate(0, 0) scale(.975) rotate(1.5deg);
         animation-timing-function: ease-in-out; }
  100% { opacity: 1; filter: blur(0); transform: translate(0, 0) scale(1) rotate(0deg); }
}
@keyframes h-blur {
  0%   { filter: blur(0); opacity: 1; }
  7%   { filter: blur(16px); opacity: .35; }
  48%  { filter: blur(13px); opacity: .4; }
  100% { filter: blur(0); opacity: 1; }
}
@keyframes h-shake {
  0%, 100% { transform: none; }
  10% { transform: translate(-12px, 8px) rotate(-.4deg); }
  22% { transform: translate(10px, -9px) rotate(.35deg); }
  36% { transform: translate(-7px, 5px); }
  50% { transform: translate(5px, -4px); }
  66% { transform: translate(-3px, 2px); }
  82% { transform: translate(1px, -1px); }
}
@keyframes h-back  { from { opacity: 0; transform: scale(1.5); } to { opacity: .42; transform: scale(1.15); } }
@keyframes h-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes h-wave  { 0% { opacity: .9; transform: scale(.15); border-width: 6px; } 100% { opacity: 0; transform: scale(3.6); border-width: 1px; } }
@keyframes h-spark {
  0%   { opacity: 1; transform: translate(0, 0) scale(1.4); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.2); }
}
@keyframes h-pop { from { opacity: 0; transform: translateY(14px) scale(.7); } to { opacity: 1; transform: none; } }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding-top: calc(var(--header-h) + 24px); padding-bottom: 64px; }
  .hero-title { font-size: clamp(3.2rem, 15vw, 6.4rem); }
  html[lang="hi"] .hero-title { font-size: clamp(2.8rem, 12.5vw, 5.2rem); }
  .hero-visual { width: min(80vw, 400px); }
  .hero-bg::before { right: -40vmin; top: 70%; }
  .hero-plate::before { inset: -10px; }
  .hero-plate::after { inset: -22px; }
  .hero-chip { font-size: .8rem; padding: 8px 12px 8px 9px; gap: 8px; }
  .hero-chip i { width: 18px; height: 18px; }
  .hero-chip i::after { left: 6px; top: 3px; width: 4px; height: 8px; border-width: 0 2px 2px 0; }
  .hero-chip.c1 { left: -6%; top: 4%; }
  .hero-chip.c2 { right: -6%; bottom: 2%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero *, .hero *::before, .hero *::after { animation: none !important; }
  .hero-copy-in, .hero-par { transform: none; }
}

/* =========================================================
   DIFFERENCE SECTION
   ========================================================= */
.diff {
  position: relative; overflow: hidden; color: var(--ink);
  padding: clamp(88px, 11vw, 160px) 0;
  background:
    radial-gradient(60% 40% at 90% 0%, rgba(214, 175, 86, .16), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(24, 77, 57, .10), transparent 70%),
    #EDE6D4;
}
.diff-inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* Heading */
.diff-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 80px); }
.diff-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8A6A1F;
}
.diff-eyebrow::before { content: ""; width: 36px; height: 1.5px; background: var(--gold); }
.diff-title { margin: 0 0 22px; color: var(--forest); font: 400 clamp(2.6rem, 5.6vw, 5rem)/1.02 var(--font-display); letter-spacing: -.015em; }
html[lang="hi"] .diff-title { line-height: 1.3; font-weight: 600; }
.d-line { display: block; overflow: hidden; padding-bottom: .08em; }
.d-line > span { display: block; }
.d-line:nth-child(2) > span { color: var(--moss); font-style: italic; }
html[lang="hi"] .d-line:nth-child(2) > span { font-style: normal; }
.diff-intro { margin: 0; max-width: 54ch; font-size: 1.14rem; line-height: 1.65; color: rgba(15, 36, 29, .75); }

/* Bento grid */
.diff-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.d-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  grid-column: span 2; padding: 28px 28px 32px; border-radius: 26px;
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(24, 77, 57, .12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
  transition: transform .45s var(--ease), box-shadow .45s ease, border-color .45s ease;
}
.d-card::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 175, 86, .28), transparent 65%); opacity: 0; transition: opacity .5s ease;
}
.d-card:hover { transform: translateY(-6px); border-color: rgba(214, 175, 86, .7); box-shadow: 0 28px 50px -24px rgba(11, 45, 36, .4); }
.d-card:hover::before { opacity: 1; }
.d-card > * { position: relative; }

.d-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; padding-bottom: 38px; }
.d-ico {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: rgba(24, 77, 57, .09); transition: background-color .4s ease, transform .5s var(--ease);
}
.d-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--forest); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.d-card:hover .d-ico { background: var(--gold); transform: rotate(-6deg) scale(1.05); }
.d-num { font: 400 1.05rem var(--font-display); letter-spacing: .06em; color: rgba(15, 36, 29, .35); }

.d-card h3 { margin: 0 0 10px; color: var(--forest); font: 400 clamp(1.6rem, 2.3vw, 2.05rem)/1.12 var(--font-display); letter-spacing: -.005em; }
html[lang="hi"] .d-card h3 { font-weight: 600; line-height: 1.3; }
.d-card p { margin: 0; font-size: 1rem; line-height: 1.62; color: rgba(15, 36, 29, .74); }

/* Lead card */
.d-card--lead {
  grid-column: span 4; min-height: 340px; padding: clamp(28px, 3.4vw, 44px);
  background: radial-gradient(120% 120% at 80% 0%, #1b5a42 0%, var(--moss) 35%, var(--forest) 80%);
  border-color: rgba(214, 175, 86, .45);
}
.d-card--lead::after {
  content: ""; position: absolute; right: -90px; bottom: -110px; width: 340px; height: 340px; border-radius: 50%;
  border: 1px dashed rgba(214, 175, 86, .5);
  box-shadow: 0 0 0 26px rgba(214, 175, 86, .05), 0 0 0 27px rgba(214, 175, 86, .25);
}
.d-card--lead h3 { color: var(--cream); font-size: clamp(2.1rem, 3.6vw, 3.2rem); }
.d-card--lead p { max-width: 44ch; font-size: 1.1rem; color: rgba(244, 239, 227, .82); }
.d-card--lead .d-ico { background: var(--gold); }
.d-card--lead .d-ico svg { stroke: var(--forest); }
.d-card--lead .d-num { color: rgba(214, 175, 86, .8); }
.d-card--lead:hover .d-ico { background: var(--gold-soft); }

/* Sourcing card: decorative label */
.d-label {
  display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 12px 14px;
  border-radius: 12px; border: 1.5px dashed rgba(24, 77, 57, .3); background: rgba(244, 239, 227, .7);
}
.d-bars {
  flex: none; width: 54px; height: 30px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--forest) 0 2px, transparent 2px 4px, var(--forest) 4px 5px, transparent 5px 8px, var(--forest) 8px 11px, transparent 11px 13px);
}
.d-lines { flex: 1; display: grid; gap: 7px; }
.d-lines i { display: block; height: 4px; border-radius: 3px; background: rgba(24, 77, 57, .22); }
.d-lines i:nth-child(1) { width: 100%; }
.d-lines i:nth-child(2) { width: 72%; }
.d-lines i:nth-child(3) { width: 46%; background: var(--gold); }

/* Comparison table */
.diff-table-wrap {
  margin-top: clamp(44px, 6vw, 84px); overflow-x: auto; border-radius: 26px;
  background: #fff; border: 1px solid rgba(24, 77, 57, .15); box-shadow: 0 30px 60px -36px rgba(11, 45, 36, .35);
}
.diff-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; text-align: left; }
.diff-table th, .diff-table td { padding: 20px 26px; font-size: 1rem; line-height: 1.5; vertical-align: middle; border-bottom: 1px solid rgba(24, 77, 57, .09); }
.diff-table tbody tr:last-child th, .diff-table tbody tr:last-child td { border-bottom: 0; }
.diff-table thead th { padding-top: 24px; padding-bottom: 24px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(15, 36, 29, .55); }
.diff-table tbody th { width: 21%; font-weight: 600; color: var(--forest); }
.diff-table td { color: rgba(15, 36, 29, .62); }
.diff-table .is-mili { background: rgba(214, 175, 86, .15); color: var(--forest); font-weight: 600; }
.diff-table tbody td.is-mili { position: relative; padding-left: 62px; }
.diff-table tbody td.is-mili::before {
  content: ""; position: absolute; left: 26px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--green, #3CCB84) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.5' fill='none' stroke='%230B2D24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.diff-table thead th.is-mili { background: var(--forest); color: var(--gold); border-bottom-color: var(--forest); }
.diff-table thead th:last-child { border-top-right-radius: 25px; }

/* Closing band */
.diff-close {
  position: relative; overflow: hidden; margin-top: clamp(44px, 6vw, 84px);
  padding: clamp(36px, 5.5vw, 80px) clamp(26px, 5vw, 72px); border-radius: 30px; text-align: center;
  color: var(--cream);
  background: radial-gradient(100% 140% at 50% 0%, #1b5a42 0%, var(--moss) 30%, var(--forest) 75%);
  border: 1px solid rgba(214, 175, 86, .4);
}
.diff-close::before, .diff-close::after {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; translate: -50% -50%; pointer-events: none;
}
.diff-close::before { width: min(115%, 900px); aspect-ratio: 1; border: 1px solid rgba(214, 175, 86, .22); }
.diff-close::after  { width: min(80%, 620px);  aspect-ratio: 1; border: 1px dashed rgba(214, 175, 86, .3); }
.diff-close > * { position: relative; z-index: 1; }
.diff-tag { margin: 0 auto 18px; max-width: 18ch; font: 400 clamp(2.2rem, 5vw, 4.4rem)/1.08 var(--font-display); letter-spacing: -.01em; }
html[lang="hi"] .diff-tag { font-weight: 600; line-height: 1.3; }
.diff-tagsub { margin: 0 auto 22px; max-width: 52ch; font-size: 1.08rem; line-height: 1.65; color: rgba(244, 239, 227, .8); }
.diff-stores {
  display: inline-block; margin: 0; padding: 10px 20px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: var(--gold-soft);
  background: rgba(214, 175, 86, .12); border: 1px solid rgba(214, 175, 86, .4);
}

/* Scroll reveal */
.diff.is-ready .d-line > span { transform: translateY(108%); transition: transform 1.1s var(--ease); }
.diff.is-ready .d-line:nth-child(2) > span { transition-delay: .12s; }
.diff.is-ready .diff-eyebrow, .diff.is-ready .diff-intro,
.diff.is-ready .d-card, .diff.is-ready .diff-table-wrap, .diff.is-ready .diff-close {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease calc(var(--k, 0) * .1s + .2s), transform .8s var(--ease) calc(var(--k, 0) * .1s + .2s), box-shadow .45s ease, border-color .45s ease;
}
.diff.in .d-line > span { transform: none; }
.diff.in .diff-eyebrow, .diff.in .diff-intro,
.diff.in .d-card, .diff.in .diff-table-wrap, .diff.in .diff-close { opacity: 1; transform: none; }
.diff.in .d-card:hover { transform: translateY(-6px); transition-delay: 0s; }

/* Tablet / mobile */
@media (max-width: 1000px) {
  .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-card, .d-card--span2 { grid-column: span 1; }
  .d-card--lead { grid-column: span 2; min-height: 300px; }
}
@media (max-width: 640px) {
  .diff-grid { grid-template-columns: 1fr; }
  .d-card, .d-card--span2, .d-card--lead { grid-column: auto; min-height: 0; }
  .d-top { padding-bottom: 26px; }
  .diff-table th, .diff-table td { padding: 16px 18px; }
  .diff-table tbody td.is-mili { padding-left: 54px; }
  .diff-table tbody td.is-mili::before { left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .d-card, .d-ico, .d-card::before { transition: none; }
}