/* ==========================================================
   ZĒMA — Ethiopian Drinks · premium concept
   Palette engine: every section sets --c1..--c5 (+ --bg/--ink)
   and the whole page tweens between them while scrolling.
   ========================================================== */

:root {
  /* live palette (tweened by GSAP) — starts on TEJ */
  --bg: #120a03;
  --c1: #1a0f05;
  --c2: #6b3a0e;
  --c3: #c8811b;
  --c4: #f2c14e;
  --c5: #fff3d6;
  --ink: #fff3d6;
  --muted: rgba(255, 243, 214, 0.58);
  --line: rgba(255, 243, 214, 0.14);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --ethi: "Noto Serif Ethiopic", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 64px);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

html { background: var(--bg); }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
::selection { background: var(--c4); color: var(--c1); }

/* ---------- ambient layers ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 90;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.aura {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 78% 18%, color-mix(in srgb, var(--c3) 38%, transparent), transparent 60%),
    radial-gradient(50vmax 50vmax at 12% 88%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 62%),
    radial-gradient(40vmax 40vmax at 50% 50%, color-mix(in srgb, var(--c4) 10%, transparent), transparent 70%);
}

.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c4) 22%, transparent), transparent 65%);
  mix-blend-mode: screen;
  will-change: transform;
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--c4);
  mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
  will-change: transform;
}
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (hover: none) { .cursor, .cursor-glow { display: none; } }

main { position: relative; z-index: 2; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: #0b0603;
}
.loader__inner { display: grid; gap: 28px; justify-items: center; }
.loader__swatches { display: flex; gap: 10px; }
.loader__swatches span {
  width: 54px; height: 54px; border-radius: 14px;
  transform: translateY(30px) scale(.6); opacity: 0;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
}
.loader__word {
  font-family: var(--serif); font-size: clamp(48px, 8vw, 110px);
  letter-spacing: .04em; color: #fff3d6; overflow: hidden; line-height: 1;
}
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__count {
  font-size: 12px; letter-spacing: .3em; color: rgba(255,243,214,.5);
  font-variant-numeric: tabular-nums;
}

/* ---------- age gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  opacity: 0; visibility: hidden;
}
.gate__card {
  text-align: center; padding: 56px 48px; max-width: 520px; width: calc(100% - 40px);
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c2) 35%, transparent), color-mix(in srgb, var(--c1) 70%, transparent));
}
.gate__eth { font-family: var(--ethi); font-size: 22px; color: var(--c4); margin-bottom: 14px; }
.gate__title { font-family: var(--serif); font-size: clamp(36px, 5vw, 54px); line-height: 1.02; margin-bottom: 14px; }
.gate__text { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 30px; }
.gate__row { display: flex; gap: 12px; justify-content: center; }
.gate__note { margin-top: 22px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn--solid { background: var(--c4); color: var(--c1); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c5); border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--ghost:hover { color: var(--c1); }
.btn__arrow { transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: transform .7s var(--ease), background .5s;
}
.nav.hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 28px; letter-spacing: .06em; }
.nav__logo small { font-family: var(--ethi); font-size: 14px; color: var(--c4); letter-spacing: 0; }
.nav__links {
  display: flex; gap: 6px; padding: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--c1) 45%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav__links a {
  padding: 10px 18px; border-radius: 999px; font-size: 13px; color: var(--muted);
  transition: color .3s, background .3s;
}
.nav__links a:hover { color: var(--ink); background: color-mix(in srgb, var(--c5) 8%, transparent); }
.nav .btn { height: 44px; padding: 0 20px; font-size: 12px; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- shared ---------- */
.section { position: relative; padding: 0 var(--pad); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--c4);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, min(8.4vw, 13vh), 150px); line-height: .92; letter-spacing: -.02em;
}
.display em { font-style: italic; color: var(--c4); }
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.line-mask > span { display: block; will-change: transform; }

/* ---------- hero ---------- */
.hero {
  height: 100vh; min-height: 720px;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  padding-top: 80px;
  overflow: hidden;
}
.hero__ethi {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ethi); font-weight: 700;
  font-size: clamp(260px, 44vw, 720px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--c4) 22%, transparent);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.hero__copy { position: relative; z-index: 3; }
.hero__copy .eyebrow { margin-bottom: 28px; }
.hero__sub {
  margin-top: 26px; max-width: 440px;
  color: var(--muted); font-size: 16px; line-height: 1.65;
}
.hero__cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero__stage {
  position: relative; z-index: 2; height: 100%; perspective: 1200px;
  display: grid; place-items: center;
}
.hero__bottle { width: min(30vw, 36vh, 360px); will-change: transform; filter: drop-shadow(0 60px 80px rgba(0,0,0,.55)); }
.hero__halo {
  position: absolute; width: min(48vw, 620px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c4) 55%, transparent) 0%, color-mix(in srgb, var(--c3) 25%, transparent) 35%, transparent 68%);
  filter: blur(10px);
}
.hero__ring {
  position: absolute; width: min(42vw, 540px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--c4) 30%, transparent);
}
.hero__ring--2 { width: min(52vw, 680px); border-style: dashed; opacity: .4; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.drop {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c5), var(--c4) 40%, var(--c3) 75%);
  box-shadow: 0 10px 30px -6px color-mix(in srgb, var(--c3) 70%, transparent);
  will-change: transform;
}

.hero__meta {
  position: absolute; bottom: 36px; left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; align-items: end;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  z-index: 3;
}
.scroll-cue { display: flex; align-items: center; gap: 14px; }
.scroll-cue__bar { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue__bar::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--c4); animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; height: auto; min-height: 100vh; padding-bottom: 140px; }
  .hero__stage { height: 60vh; }
  .hero__bottle { width: 62vw; }
  .hero__halo, .hero__ring { width: 90vw; }
  .hero__ring--2 { width: 110vw; }
}

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0; white-space: nowrap;
}
.marquee__track { display: inline-flex; gap: 56px; will-change: transform; }
.marquee__track span { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 64px); display: inline-flex; align-items: center; gap: 56px; }
.marquee__track .eth { font-family: var(--ethi); color: var(--c4); font-size: .8em; }
.marquee__track i { width: 10px; height: 10px; border-radius: 50%; background: var(--c3); display: inline-block; }

/* ---------- palette ---------- */
.palette { padding-top: 18vh; padding-bottom: 18vh; }
.palette__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 80px; }
.palette__head p { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 440px; justify-self: end; }
.palette__rows { display: grid; gap: 14px; }
.prow {
  display: grid; grid-template-columns: 220px 1fr 150px; align-items: center; gap: 28px;
  padding: 18px 22px; border-radius: 24px;
  border: 1px solid var(--line);
  transition: background .6s var(--ease), border-color .6s var(--ease), transform .6s var(--ease);
  cursor: pointer;
}
.prow:hover, .prow.active { background: color-mix(in srgb, var(--c5) 5%, transparent); border-color: color-mix(in srgb, var(--c4) 45%, transparent); }
.prow__name { font-family: var(--serif); font-size: 40px; line-height: 1; }
.prow__name small { display: block; font-family: var(--ethi); font-size: 15px; color: var(--muted); margin-top: 6px; }
.prow__sw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sw {
  height: 76px; border-radius: 16px; position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 18px 36px -18px rgba(0,0,0,.7);
  transition: transform .6s var(--ease), flex .6s var(--ease);
}
.prow:hover .sw { transform: translateY(-4px); }
.prow:hover .sw:nth-child(2) { transition-delay: .03s; }
.prow:hover .sw:nth-child(3) { transition-delay: .06s; }
.prow:hover .sw:nth-child(4) { transition-delay: .09s; }
.prow:hover .sw:nth-child(5) { transition-delay: .12s; }
.sw span {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 11px; letter-spacing: .08em; font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateY(6px); transition: all .5s var(--ease);
}
.prow:hover .sw span { opacity: .85; transform: none; }
.prow__tag { justify-self: end; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: right; line-height: 1.6; }
.prow__tag b { display: block; color: var(--c4); font-weight: 600; }
@media (max-width: 860px) {
  .palette__head { grid-template-columns: 1fr; }
  .palette__head p { justify-self: start; }
  .prow { grid-template-columns: 1fr; }
  .prow__tag { justify-self: start; text-align: left; }
  .sw { height: 54px; }
}

/* ---------- story (pinned, scroll-scrubbed) ---------- */
.story { height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; }
.story__left { position: relative; height: 60vh; }
.chapter { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.chapter__num { font-size: 12px; letter-spacing: .3em; color: var(--c4); margin-bottom: 26px; }
.chapter__title { font-family: var(--serif); font-size: clamp(48px, min(7.6vw, 12vh), 132px); line-height: .92; letter-spacing: -.02em; }
.chapter__title em { font-style: italic; color: var(--c4); }
.chapter__text { margin-top: 28px; max-width: 420px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.story__right { position: relative; height: 100%; display: grid; place-items: center; }
.story__bottle { width: min(26vw, 32vh, 300px); will-change: transform; filter: drop-shadow(0 50px 70px rgba(0,0,0,.6)); }
.story__progress {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: grid; gap: 14px;
}
.story__progress i { display: block; width: 2px; height: 46px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.story__progress i b { position: absolute; inset: 0; background: var(--c4); transform: scaleY(0); transform-origin: top; }
.story__ingredient {
  position: absolute; font-family: var(--ethi); font-size: clamp(120px, 18vw, 300px);
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c4) 25%, transparent);
  pointer-events: none;
}
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .story__left { height: 100%; order: 2; }
  .story__bottle { width: 34vw; }
}

/* ---------- collection (horizontal) ---------- */
.collection { height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 80px 0 0; }
.collection__head { padding: 0 var(--pad); display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.collection__head .display { font-size: clamp(44px, min(6vw, 10vh), 110px); }
.collection__count { font-size: 12px; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; }
.collection__track { display: flex; gap: 24px; padding: 0 var(--pad); will-change: transform; width: max-content; }
.card {
  --k1: #000; --k2: #333; --k3: #666; --k4: #999; --k5: #fff;
  position: relative; flex: none;
  width: clamp(320px, 36vw, 540px); height: 70vh; min-height: 500px;
  border-radius: 32px; overflow: hidden; padding: 34px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(90% 70% at 70% 30%, color-mix(in srgb, var(--k4) 55%, transparent), transparent 70%),
    linear-gradient(160deg, var(--k2), var(--k1));
  color: var(--k5);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.07);
  transition: transform .8s var(--ease);
}
.card:hover { transform: translateY(-10px); }
.card__top { display: flex; justify-content: space-between; align-items: start; position: relative; z-index: 2; }
.card__badge {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  padding: 8px 12px; border-radius: 999px; background: color-mix(in srgb, var(--k5) 14%, transparent);
  backdrop-filter: blur(8px);
}
.card__badge.hot { background: var(--k4); color: var(--k1); }
.card__idx { font-family: var(--serif); font-size: 22px; opacity: .6; }
.card__bottle {
  position: absolute; left: 50%; top: 9%; height: 46%;
  transform: translateX(-50%);
  filter: drop-shadow(0 40px 50px rgba(0,0,0,.55));
  transition: transform 1s var(--ease);
}
.card__bottle svg { height: 100%; width: auto; }
.card:hover .card__bottle { transform: translateX(-50%) translateY(-3%) rotate(-4deg) scale(1.05); }
.card__bottom { position: relative; z-index: 2; }
.card__name { font-family: var(--serif); font-size: clamp(40px, min(4.2vw, 8vh), 72px); line-height: .9; display: flex; align-items: baseline; gap: 16px; }
.card__name small { font-family: var(--ethi); font-size: .38em; opacity: .7; }
.card__desc { margin-top: 12px; font-size: 14px; line-height: 1.55; opacity: .72; max-width: 360px; }
.card__notes { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.card__notes span { font-size: 11px; letter-spacing: .1em; padding: 7px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--k5) 22%, transparent); }
.card__strip { display: flex; height: 6px; margin-top: 22px; border-radius: 6px; overflow: hidden; }
.card__strip i { flex: 1; }
.card--end {
  background: none; box-shadow: none; border: 1px dashed var(--line); color: var(--ink);
  justify-content: center; align-items: start; gap: 18px;
}

/* ---------- ceremony ---------- */
.ceremony { height: 100vh; overflow: hidden; display: grid; place-items: center; }
.ceremony__center { position: relative; z-index: 2; display: grid; place-items: center; }
.ceremony__can { width: min(17vw, 24vh, 200px); filter: drop-shadow(0 50px 60px rgba(0,0,0,.7)); will-change: transform; }
.steam { position: absolute; top: -32%; left: 50%; transform: translateX(-50%); width: 140px; opacity: .55; }
.steam path { stroke: var(--c5); stroke-width: 2; fill: none; stroke-linecap: round; filter: blur(3px); }
.round {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad); pointer-events: none;
}
.round__l { justify-self: start; }
.round__r { justify-self: end; max-width: 360px; text-align: left; }
.round__num { font-size: 12px; letter-spacing: .3em; color: var(--c4); margin-bottom: 18px; }
.round__name { font-family: var(--serif); font-size: clamp(64px, min(10vw, 17vh), 180px); line-height: .9; }
.round__name small { display: block; font-family: var(--ethi); font-size: .28em; color: var(--c4); margin-top: 10px; }
.round__r p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.round__r h4 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 12px; }
.ceremony__label { position: absolute; top: 14vh; left: 0; right: 0; text-align: center; z-index: 3; }
.bean {
  position: absolute; width: 34px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c4), var(--c3) 45%, var(--c2));
  box-shadow: inset -4px -6px 10px rgba(0,0,0,.4), 0 14px 30px -8px rgba(0,0,0,.6);
  will-change: transform;
}
.bean::after {
  content: ""; position: absolute; left: 50%; top: 12%; bottom: 12%; width: 3px; margin-left: -1.5px;
  background: color-mix(in srgb, var(--c1) 80%, transparent); border-radius: 3px;
  transform: rotate(8deg);
}
@media (max-width: 860px) {
  .round { grid-template-columns: 1fr; align-content: space-between; padding-top: 20vh; padding-bottom: 8vh; }
  .ceremony__can { width: 30vw; }
}

/* ---------- manifesto ---------- */
.manifesto { padding-top: 24vh; padding-bottom: 24vh; }
.manifesto__text {
  font-family: var(--serif); font-size: clamp(38px, 5.4vw, 92px); line-height: 1.04; letter-spacing: -.015em;
  max-width: 1400px;
}
.manifesto__text .w { opacity: .14; transition: none; }
.manifesto__text .eth { font-family: var(--ethi); color: var(--c4); font-size: .7em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 16vh; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.stat { background: var(--bg); padding: 34px 28px; }
.stat__n { font-family: var(--serif); font-size: clamp(48px, 5vw, 84px); line-height: 1; color: var(--c4); }
.stat__l { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- waitlist ---------- */
.waitlist { padding-top: 18vh; padding-bottom: 18vh; text-align: center; }
.waitlist .display { margin: 26px auto 0; max-width: 1100px; }
.waitlist p { color: var(--muted); max-width: 520px; margin: 28px auto 0; font-size: 17px; line-height: 1.65; }
.form {
  margin: 48px auto 0; max-width: 560px; display: flex; gap: 8px; padding: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--c5) 5%, transparent);
  backdrop-filter: blur(10px);
}
.form input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink);
  font: inherit; font-size: 15px; padding: 0 20px;
}
.form input::placeholder { color: var(--muted); }
.form__ok { margin-top: 20px; font-size: 13px; letter-spacing: .12em; color: var(--c4); opacity: 0; }
.choose { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.choose label { cursor: pointer; }
.choose input { display: none; }
.choose span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); transition: all .4s var(--ease);
}
.choose input:checked + span { background: var(--c4); color: var(--c1); border-color: var(--c4); }

/* ---------- footer ---------- */
.footer { padding: 0 var(--pad) 36px; overflow: hidden; }
.footer__word {
  font-family: var(--serif); font-size: 27vw; line-height: .8; letter-spacing: -.03em;
  text-align: center; margin: 0 -2vw;
  background: linear-gradient(180deg, var(--c4), color-mix(in srgb, var(--c3) 30%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__row {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__ring--2, .scroll-cue__bar::after { animation: none; }
}

@media (max-height: 820px) { .scroll-cue { display: none; } .hero__meta { justify-content: flex-end; } }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 10%, transparent);
  opacity: 0; transition: opacity .5s var(--ease);
}
.nav.solid::before { opacity: .92; }

/* ================= v6: 3D stage, realistic loader, modes, mobile ================= */
#stage {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5;
  pointer-events: none;
}
#stage.over { z-index: 210; }
html.mode-anim, html.mode-anim * { transition: background-color .7s var(--ease), color .7s var(--ease), border-color .7s var(--ease) !important; }

/* anchors: invisible boxes the 3D products are fitted to */
.anchor { position: relative; z-index: 2; aspect-ratio: 1 / 2; }
.anchor--hero { height: min(66vh, 620px); }
.anchor--story { height: min(64vh, 600px); }
.anchor--can { height: min(56vh, 520px); aspect-ratio: 1 / 2.4; }
.anchor--fallback { display: grid; place-items: center; }
.anchor--fallback span { font-family: var(--ethi); font-size: 140px; color: var(--c4); opacity: .8; }
.hero__bottle, .story__bottle, .ceremony__can { display: none; }
.hero__say {
  position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; z-index: 6;
}
.hero__say i { font-style: normal; color: var(--c4); letter-spacing: .05em; text-transform: none; }

/* loader */
.loader {
  position: fixed; inset: 0; z-index: 200; display: block;
  background: var(--bg);
}
.loader__glow {
  position: absolute; left: 50%; top: 47%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c4) 34%, transparent), color-mix(in srgb, var(--c3) 12%, transparent) 40%, transparent 70%);
}
.loader__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); z-index: 230; }
.loader__bar i { position: absolute; inset: 0; background: var(--c4); transform-origin: left; transform: scaleX(0); }
.loader__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: max(28px, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: end; z-index: 230;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.loader__status { display: grid; gap: 10px; }
.loader__status b { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 9vw, 120px); line-height: .8; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.loader__brand { font-family: var(--serif); font-size: 26px; letter-spacing: .08em; color: var(--ink); text-transform: none; }
.loader__brand small { font-family: var(--ethi); font-size: 14px; color: var(--c4); }

/* nav right cluster, mode toggle, burger */
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__icon, .mode {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink);
  background: color-mix(in srgb, var(--c1) 40%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .4s, transform .5s var(--ease);
}
.nav__icon:hover, .mode:hover { border-color: var(--c4); }
.mode__sun {
  width: 16px; height: 16px; border-radius: 50%; position: relative;
  background: var(--c4); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c4) 25%, transparent);
  transition: transform .7s var(--ease), background .5s;
}
html[data-mode="dark"] .mode__sun::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  left: 5px; top: -4px; background: color-mix(in srgb, var(--c1) 100%, transparent);
}
html[data-mode="dark"] .mode__sun { box-shadow: none; transform: rotate(-20deg); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .6s var(--ease); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }
.menu-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 79; background: var(--bg);
  clip-path: inset(0 0 100% 0);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--pad) max(32px, env(safe-area-inset-bottom));
}
.menu nav { display: grid; gap: 6px; }
.menu nav a { font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); line-height: 1.05; display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding: 8px 0 14px; }
.menu nav a span { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; color: var(--c4); }
.menu__foot .btn { width: 100%; justify-content: center; }

/* cards: rendered product images */
.card__bottle { width: auto; }
.card__bottle img { height: 100%; width: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.card__bottle { height: 52%; top: 6%; }
.card__fallback { font-family: var(--ethi); font-size: 110px; color: var(--k4); opacity: .55; height: 100%; display: grid; place-items: center; }
.card__name em { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .12em; opacity: .6; align-self: center; }
html[data-mode="light"] .card { box-shadow: 0 30px 60px -30px rgba(60,40,20,.35), inset 0 0 0 1px rgba(0,0,0,.05); }
html[data-mode="light"] .card__notes span { border-color: color-mix(in srgb, var(--k5) 18%, transparent); }

/* pantry */
.pantry { padding-top: 16vh; padding-bottom: 12vh; }
.pantry__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.pantry__head .eyebrow { margin-bottom: 22px; }
.pantry__head p { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 460px; justify-self: end; }
.pantry__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pitem {
  display: flex; flex-direction: column; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel, rgba(255,255,255,.03));
  transition: transform .8s var(--ease), border-color .5s;
}
.pitem:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--c4) 50%, transparent); }
.pitem__img {
  aspect-ratio: 5 / 6; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 40%, color-mix(in srgb, var(--p3) 30%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--p1) 45%, transparent), transparent);
}
.pitem__img img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s var(--ease); }
.pitem:hover .pitem__img img { transform: scale(1.05) rotate(-2deg); }
.pitem__fallback { font-family: var(--ethi); font-size: 80px; color: var(--p3); opacity: .6; }
.pitem__meta { display: flex; justify-content: space-between; gap: 12px; padding: 20px 22px 6px; }
.pitem__meta h4 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; }
.pitem__meta p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.pitem__meta b { font-weight: 600; font-size: 15px; }
.pitem__notes { padding: 0 22px 22px; font-size: 12.5px; color: var(--c4); letter-spacing: .02em; }
.pantry__cta { text-align: center; margin-top: 48px; }

/* light mode refinements */
html[data-mode="light"] .grain { opacity: .05; mix-blend-mode: multiply; }
html[data-mode="light"] .cursor-glow { mix-blend-mode: multiply; opacity: .35; }
html[data-mode="light"] .hero__halo { background: radial-gradient(circle, color-mix(in srgb, var(--c3) 38%, transparent), color-mix(in srgb, var(--c2) 40%, transparent) 40%, transparent 70%); }
html[data-mode="light"] .drop { box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--c4) 50%, transparent); }
html[data-mode="light"] .aura {
  background:
    radial-gradient(60vmax 60vmax at 78% 18%, color-mix(in srgb, var(--c2) 80%, transparent), transparent 60%),
    radial-gradient(50vmax 50vmax at 12% 88%, color-mix(in srgb, var(--c3) 22%, transparent), transparent 62%);
}
html[data-mode="light"] .sw { box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 14px 28px -18px rgba(60,40,20,.5); }
html[data-mode="light"] .bean { box-shadow: inset -4px -6px 10px rgba(0,0,0,.3), 0 14px 26px -10px rgba(60,40,20,.45); }
html[data-mode="light"] .footer__word { background: linear-gradient(180deg, var(--c4), color-mix(in srgb, var(--c3) 25%, transparent)); -webkit-background-clip: text; background-clip: text; }

/* =================== tablet & phone =================== */
@media (max-width: 1100px) {
  .pantry__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --pad: 20px; }
  .nav { padding: 14px var(--pad); padding-top: max(14px, env(safe-area-inset-top)); }
  .nav__cta, .nav__icon { display: none; }
  .burger { display: block; }
  .nav__logo { font-size: 24px; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 96px; padding-bottom: 40px; height: 100svh; min-height: 640px; align-items: start; }
  .hero__copy { order: 1; }
  .hero__stage { order: 2; height: 100%; min-height: 0; }
  .hero .display { font-size: clamp(44px, 13.5vw, 64px); }
  .hero__sub { display: none; }
  .hero__cta { margin-top: 18px; }
  .hero__cta .btn { height: 46px; padding: 0 18px; font-size: 11.5px; }
  .anchor--hero { height: min(40svh, 380px); }
  .hero__halo { width: 80vw; } .hero__ring { width: 70vw; } .hero__ring--2 { width: 92vw; }
  .hero__meta { display: none; }
  .hero__say { bottom: 0; }
  .hero__ethi { font-size: 70vw; top: 62%; }

  .palette { padding-top: 12vh; padding-bottom: 12vh; }
  .palette__head { margin-bottom: 36px; }
  .prow { padding: 16px; gap: 14px; }
  .prow__name { font-size: 34px; display: flex; align-items: baseline; gap: 12px; }
  .prow__name small { margin-top: 0; }
  .prow__sw { gap: 6px; }
  .sw { height: 48px; border-radius: 12px; }
  .sw span { display: none; }

  .story { grid-template-columns: 1fr; grid-template-rows: 46% 54%; height: 100svh; padding-top: 70px; }
  .story__right { order: 1; height: 100%; }
  .story__left { order: 2; height: 100%; }
  .anchor--story { height: min(38svh, 340px); }
  .chapter { justify-content: flex-start; padding-top: 8px; }
  .chapter__title { font-size: clamp(40px, 12vw, 58px); }
  .chapter__text { font-size: 15px; margin-top: 16px; }
  .chapter__num { margin-bottom: 14px; }
  .story__progress { right: 0; top: 40%; }
  .story__progress i { height: 28px; }
  .story__ingredient { font-size: 46vw; }

  .collection { padding-top: 70px; height: 100svh; }
  .collection__head { flex-direction: column; align-items: start; gap: 8px; margin-bottom: 18px; }
  .card { width: 82vw; height: min(68svh, 560px); min-height: 0; padding: 22px; border-radius: 26px; }
  .card__desc { font-size: 13px; }
  .card__bottle { height: 44%; }

  .ceremony { height: 100svh; }
  .round { grid-template-columns: 1fr; align-content: space-between; padding: 16svh var(--pad) 7svh; }
  .round__l { text-align: left; }
  .round__name { font-size: clamp(56px, 17vw, 84px); }
  .round__r { max-width: none; }
  .round__r h4 { font-size: 24px; margin-bottom: 6px; }
  .round__r p { font-size: 14.5px; }
  .anchor--can { height: min(34svh, 300px); }
  .ceremony__label { top: 11svh; }

  .pantry__head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
  .pantry__head p { justify-self: start; font-size: 15px; }
  .pantry__grid { gap: 12px; }
  .pitem { border-radius: 20px; }
  .pitem__meta { padding: 14px 14px 4px; flex-direction: column; gap: 6px; }
  .pitem__meta h4 { font-size: 22px; }
  .pitem__notes { padding: 0 14px 16px; font-size: 11.5px; }

  .manifesto { padding-top: 14vh; padding-bottom: 14vh; }
  .stats { margin-top: 10vh; }
  .stat { padding: 24px 18px; }

  .waitlist { padding-top: 12vh; padding-bottom: 12vh; }
  .form { flex-direction: column; border-radius: 26px; }
  .form input { height: 50px; }
  .form .btn { justify-content: center; }

  .footer__row { flex-direction: column; gap: 10px; padding-bottom: env(safe-area-inset-bottom); }
  .gate__card { padding: 40px 24px; }
  .gate__row { flex-direction: column; }
  .gate__row .btn { justify-content: center; }
  .loader__status b { font-size: 64px; }
}
@media (max-width: 380px) {
  .pantry__grid { grid-template-columns: 1fr 1fr; }
  .hero .display { font-size: 42px; }
}
.footer__word { line-height: .95; padding-top: .06em; }
html[data-mode="light"] .drop { background: radial-gradient(circle at 35% 30%, #fff6dc, #f2c14e 40%, #c8811b 78%); }
@media (max-width: 860px) {
  .anchor--can { height: min(30svh, 260px); }
  .ceremony__center { margin-top: -6svh; }
}
