/* =====================================================================
   Pickle Pioneers
   Brand tokens, layout, components, motion.
   Shape rule: buttons, chips and pills are full-pill; cards 28px;
   images 22px; inputs 14px.
   Z-index scale: nav 50, floating UI 60, banner 70, progress 80,
   grain 90, loader 100. Dialogs live in the top layer.
   ===================================================================== */

:root {
  --dill: #13261C;           /* brand ink, fixed */
  --brine: #CFE86A;          /* brand accent, fixed */
  --glass: #F3F5EC;          /* brand paper, fixed */

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --r-card: 28px;
  --r-img: 22px;
  --r-input: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --float-lift: 0px;

  --z-nav: 50; --z-float: 60; --z-banner: 70; --z-progress: 80; --z-grain: 90; --z-loader: 100;

  /* Crinkle edges (the chip's wavy cut) used as masks */
  --wave-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q10 0 20 10 T40 10 V20 H0Z'/%3E%3C/svg%3E");
  --wave-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H40 V10 Q30 20 20 10 T0 10Z'/%3E%3C/svg%3E");
}

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #F3F5EC;
  --bg-2: #E7ECDD;
  --surface: #FBFCF7;
  --surface-2: #EEF2E6;
  --paper: #FCFDF9;
  --ink: #13261C;
  --ink-2: #34473B;
  --muted: #5B6B5F;
  --line: rgb(19 38 28 / .12);
  --line-strong: rgb(19 38 28 / .26);
  --accent: var(--brine);
  --on-accent: var(--dill);
  --accent-ink: #4A6610;
  --btn-bg: var(--dill);
  --btn-fg: var(--glass);
  --btn-fill: var(--brine);
  --btn-fill-fg: var(--dill);
  --block-bg: var(--dill);
  --block-fg: var(--glass);
  --error: #A3321C;
  --disc: rgb(255 255 255 / .55);
  --shadow: 150 32% 18%;
  --tint-dill: #DCE8C8;
  --tint-sweet: #F1E4A6;
  --tint-hot: #F2D2A8;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D1611;
  --bg-2: #142019;
  --surface: #17251D;
  --surface-2: #1D2E24;
  --paper: #F4F6EF;
  --ink: #E9EFE1;
  --ink-2: #C3CFBF;
  --muted: #95A597;
  --line: rgb(233 239 225 / .1);
  --line-strong: rgb(233 239 225 / .24);
  --accent: var(--brine);
  --on-accent: var(--dill);
  --accent-ink: var(--brine);
  --btn-bg: var(--brine);
  --btn-fg: var(--dill);
  --btn-fill: var(--glass);
  --btn-fill-fg: var(--dill);
  --block-bg: #1B2E22;
  --block-fg: var(--ink);
  --error: #FF9E88;
  --disc: rgb(255 255 255 / .06);
  --shadow: 150 45% 2%;
  --tint-dill: #1C2E20;
  --tint-sweet: #2D2A14;
  --tint-hot: #352416;
}

@media (min-width: 960px) { :root { --nav-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  scrollbar-gutter: stable;
}
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Paper grain: fixed, non-interactive, so it never repaints on scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::after { opacity: .04; }

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--brine); color: var(--dill); }

.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.display {
  font-family: var(--f-display);
  font-weight: 780;
  font-stretch: 84%;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-wrap: balance;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: calc(var(--z-loader) + 1);
  padding: 12px 18px; border-radius: 999px; background: var(--dill); color: var(--glass);
  font-weight: 600; text-decoration: none; transition: top .3s var(--ease);
}
.skip:focus { top: 12px; }

/* Text links get the crinkle: a wavy underline */
.link, .section-lede a, .form__note a, .sheet__foot a, .cookie a, .form-done a, .prose a, .footer__grid a {
  text-decoration: underline wavy transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color .25s, color .25s;
}
.section-lede a, .form__note a, .sheet__foot a, .cookie a, .form-done a, .prose a { text-decoration-color: color-mix(in oklab, var(--accent-ink) 60%, transparent); }
@media (hover: hover) {
  .link:hover, .section-lede a:hover, .form__note a:hover, .sheet__foot a:hover, .cookie a:hover, .form-done a:hover, .prose a:hover, .footer__grid a:hover { text-decoration-color: var(--accent-ink); }
  .footer__grid a:hover { text-decoration-color: var(--brine); }
}

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px; --press: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: 0 1.55rem;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1 var(--f-body);
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transform: translate3d(var(--mx), var(--my), 0) scale(var(--press));
  transition: transform .55s var(--ease), color .4s var(--ease), box-shadow .3s;
}
/* The brine fill: rises from the bottom with a crinkle edge */
.btn::before {
  content: "";
  position: absolute;
  inset: -12px 0 0;
  z-index: -1;
  background: var(--fill, var(--btn-fill));
  -webkit-mask: var(--wave-up) 0 0 / 22px 12px repeat-x, linear-gradient(#000 0 0) 0 11px / 100% 100% no-repeat;
          mask: var(--wave-up) 0 0 / 22px 12px repeat-x, linear-gradient(#000 0 0) 0 11px / 100% 100% no-repeat;
  transform: translateY(105%);
  transition: transform .6s var(--ease);
}
.btn:active { --press: .97; transition-duration: .15s; }
.btn .i-arrow { width: 1.1em; height: 1.1em; transition: transform .45s var(--ease); }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); --fill: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: .9375rem; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--primary:hover { color: var(--btn-fill-fg); }
  .btn--ghost:hover { color: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .btn:hover::before { transform: translateY(0); }
  .btn:hover .i-arrow { transform: translateX(4px); }
}
.btn:disabled { cursor: progress; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s, box-shadow .25s, transform .3s var(--ease);
}
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) { .icon-btn:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line-strong); } }

.theme-toggle { position: relative; }
.theme-toggle .i { position: absolute; transition: transform .6s var(--spring), opacity .3s; }
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.4); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; }

/* Theme change: circular reveal from the toggle (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.vt-theme ::view-transition-group(*) { animation-duration: 0s; }

/* ---------- Brand mark ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font: 800 1.2rem/1 var(--f-display);
  font-stretch: 84%;
  letter-spacing: -.02em;
  -webkit-tap-highlight-color: transparent;
}
.brand__mark { width: 38px; height: 38px; border-radius: 50%; object-fit: contain; transition: transform .9s var(--ease); }
.brand__chip { fill: var(--brine); }
.brand__ring { fill: none; stroke: var(--dill); stroke-width: 6; }
.brand__seed { fill: var(--dill); }
@media (hover: hover) { .brand:hover .brand__mark { transform: rotate(120deg); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  height: var(--nav-h);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
          backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity .4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav__inner { position: relative; height: 100%; display: flex; align-items: center; gap: 20px; }
.nav__links { display: none; gap: 2px; }
.nav__links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .25s, background-color .25s;
}
.nav__links a[aria-current="true"] { color: var(--ink); background: color-mix(in oklab, var(--brine) 38%, transparent); }
@media (hover: hover) { .nav__links a:hover { color: var(--ink); background: var(--bg-2); } }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta { display: none; }
@media (min-width: 960px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__menu { display: none; }
}

/* ---------- Dialog base (menu + order sheet) ---------- */
dialog { padding: 0; border: 0; background: transparent; color: inherit; }
dialog::backdrop { background: rgb(6 12 8 / .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog[open]::backdrop { animation: fade-in .4s var(--ease); }
dialog.is-closing::backdrop { animation: fade-out .3s var(--ease-io) forwards; }

.menu:modal {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.menu[open] { animation: menu-in .5s var(--ease); }
.menu.is-closing { animation: menu-out .3s var(--ease-io) forwards; }
.menu__top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.menu__links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.menu__links a {
  font: 780 clamp(2.5rem, 11vw, 4rem)/1.1 var(--f-display);
  font-stretch: 84%;
  letter-spacing: -.03em;
  text-decoration: none;
  padding: 4px 0;
}
.menu__links a:active { color: var(--accent-ink); }
.menu__links a, .menu__foot { animation: rise .7s var(--ease) both; animation-delay: calc(120ms + var(--i) * 55ms); }
.menu__foot { display: grid; gap: 18px; flex: none; }
.menu__foot p { color: var(--muted); line-height: 1.8; }
.menu__foot a { text-decoration: none; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: grid;
  place-items: center;
  background: var(--dill);
  color: var(--glass);
  transition: transform .95s var(--ease-io) .2s;
}
.skip-loader .loader { display: none; }
.loader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  height: 28px;
  background: var(--dill);
  -webkit-mask: var(--wave-down) 0 0 / 56px 28px repeat-x;
          mask: var(--wave-down) 0 0 / 56px 28px repeat-x;
}
.is-loaded .loader { transform: translateY(calc(-100% - 40px)); }
.loader__inner { display: grid; justify-items: center; transition: opacity .4s .15s, transform .6s var(--ease) .1s; }
.is-loaded .loader__inner { opacity: 0; transform: translateY(-24px); }
.loader__lid { position: relative; width: 148px; height: 148px; display: grid; place-items: center; }
.loader__lid img { width: 112px; height: 112px; border-radius: 50%; animation: lid-twist 1.1s var(--ease-io) infinite alternate; }
.is-ready .loader__lid img { animation: lid-open .55s var(--ease) forwards; }
.loader__ring { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; }
.loader__track { stroke: rgb(243 245 236 / .12); stroke-width: 3; }
.loader__bar { stroke: var(--brine); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ring-fill 1.3s var(--ease) forwards; }
.is-ready .loader__bar { stroke-dashoffset: 0; animation: none; transition: stroke-dashoffset .3s var(--ease); }
.loader__msg { display: grid; margin-top: 26px; height: 1.5em; overflow: hidden; font-weight: 500; letter-spacing: .01em; color: rgb(243 245 236 / .8); }
.loader__msg span { grid-area: 1 / 1; text-align: center; opacity: 0; transform: translateY(100%); animation: msg 2.1s var(--ease) infinite; }
.loader__msg span:nth-child(2) { animation-delay: .7s; }
.loader__msg span:nth-child(3) { animation-delay: 1.4s; }

/* ---------- Progress, floating UI ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-progress);
  height: 4px;
  background: var(--brine);
  box-shadow: 0 1px 0 rgb(19 38 28 / .18);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom) + var(--float-lift));
  z-index: var(--z-float);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 14px 30px -12px hsl(var(--shadow) / .45), inset 0 0 0 1px var(--line);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.8);
  -webkit-tap-highlight-color: transparent;
  transition: opacity .35s, transform .55s var(--spring), bottom .5s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:active { transform: scale(.92); }
.to-top .i { width: 22px; height: 22px; transition: transform .4s var(--ease); }
@media (hover: hover) { .to-top:hover .i { transform: translateY(-3px); } }
.to-top__ring { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; }
.to-top__track { stroke: var(--line); stroke-width: 2.5; }
.to-top__bar { stroke: var(--accent-ink); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }

.mbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: none;
  transform: translateY(calc(100% + 40px));
  transition: transform .6s var(--ease);
}
.mbar .btn { min-height: 56px; justify-content: space-between; padding: 0 1.4rem; box-shadow: 0 16px 36px -10px hsl(var(--shadow) / .55); }
.mbar__price { display: inline-flex; align-items: center; gap: .5em; font-weight: 500; opacity: .85; }
@media (max-width: 959px) {
  .mbar { display: block; }
  .mbar.is-visible { transform: none; }
  .has-mbar { --float-lift: 68px; }
  .to-top { width: 50px; height: 50px; }
}
@media (max-width: 959px) and (min-width: 600px) { .mbar { left: 50%; right: auto; width: 440px; margin-left: -220px; } .has-mbar { --float-lift: 0px; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom) + var(--float-lift));
  z-index: var(--z-banner);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--block-bg);
  color: var(--block-fg);
  font-weight: 500;
  font-size: .9375rem;
  box-shadow: 0 16px 40px -12px hsl(var(--shadow) / .5);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px) scale(.96);
  transition: opacity .3s, transform .5s var(--spring);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .i { color: var(--brine); }

.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: var(--z-banner);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 14px;
  max-width: 460px;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px -20px hsl(var(--shadow) / .5), inset 0 0 0 1px var(--line);
  font-size: .9375rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(calc(100% + 24px));
  transition: transform .7s var(--ease), opacity .4s;
}
.cookie[hidden] { display: none; }
.cookie.is-visible { opacity: 1; transform: none; }
.cookie p { color: var(--ink-2); }
.cookie b { color: var(--ink); display: block; margin-bottom: 2px; }
.cookie__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brine); color: var(--dill); }
.cookie__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 600px) { .cookie { left: 24px; right: auto; bottom: calc(24px + env(safe-area-inset-bottom)); } }

/* Pickle-chip bounce loader */
.chips { display: inline-flex; gap: 7px; }
.chips i {
  width: 14px;
  height: 14px;
  background: var(--brine);
  -webkit-mask: url("../assets/favicon.svg") center / contain no-repeat;
          mask: url("../assets/favicon.svg") center / contain no-repeat;
  animation: chip-hop .9s var(--ease-io) infinite;
}
.chips i:nth-child(2) { animation-delay: .12s; }
.chips i:nth-child(3) { animation-delay: .24s; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 7.5vw, 112px); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 6vw, 72px); }
.section-head p, .section-lede { margin-top: 18px; max-width: 50ch; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.h2 { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4.25rem); }

.sticker {
  display: inline-block;
  padding: .02em .16em .06em;
  margin-inline: .03em;
  border-radius: .14em;
  background: var(--brine);
  color: var(--dill);
  line-height: 1;
  transform: rotate(-2.5deg);
  box-shadow: 0 .05em 0 rgb(19 38 28 / .22);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 .8125rem/1 var(--f-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(20px, 5vw, 56px)); padding-bottom: clamp(56px, 7vw, 96px); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2.75rem, 1.05rem + 5.1vw, 5.25rem); margin: 20px 0 22px; line-height: 1.04; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .w > span { display: inline-block; }
.lede { max-width: 42ch; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.55; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__art { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / .96; margin-inline: auto; }
.hero__disc { position: absolute; left: -4%; top: 4%; width: 92%; }
.hero__disc svg { width: 100%; height: auto; fill: var(--tint-dill); }
.hero__photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 70%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 80px -40px hsl(var(--shadow) / .55);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero__jar { position: absolute; left: -2%; bottom: 0; width: 60%; }
.hero__jar img { filter: drop-shadow(0 28px 34px hsl(var(--shadow) / .38)); }
.hero__seal { position: absolute; left: 6%; top: 2%; width: clamp(88px, 11vw, 144px); }
.hero__seal img { border-radius: 50%; filter: drop-shadow(0 16px 20px hsl(var(--shadow) / .3)); }

@media (min-width: 960px) {
  .hero { min-height: calc(100svh - 64px); display: grid; align-items: center; padding-bottom: 40px; }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 5vw, 88px); }
}
@media (max-width: 959px) {
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__art { max-width: 480px; }
}

/* Hero intro (after the loader) */
.js .hero__title .w > span { transform: translateY(108%); }
.js .hero__title .sticker { transform: rotate(-2.5deg) scale(0); }
.js .hero [data-intro] { opacity: 0; transform: translateY(26px); }
.js .hero .hero__photo[data-intro] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--r-card)); }
.js .hero .hero__jar[data-intro] { transform: translate(-12%, 18%) rotate(-10deg); }
.js .hero .hero__seal[data-intro] { transform: rotate(-160deg) scale(.4); }
.js .hero .hero__disc[data-intro] { transform: rotate(-30deg) scale(.85); }
.is-loaded .hero__title .w > span,
.js.is-loaded .hero [data-intro] {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease), transform 1.1s var(--ease), clip-path 1.2s var(--ease-io);
  transition-delay: calc(var(--d, 0) * 1ms + 60ms);
}
.js.is-loaded .hero .hero__photo[data-intro] { clip-path: inset(0 0 0 0 round var(--r-card)); }
.is-loaded .hero__title .sticker { transform: rotate(-2.5deg); transition: transform .8s var(--spring) calc(var(--d) * 1ms + 60ms); }
.js.is-loaded .hero .hero__seal[data-intro] { transition-duration: .8s, 1.4s; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  width: 108vw;
  margin: clamp(8px, 2vw, 24px) 0 0 -4vw;
  padding: clamp(14px, 2vw, 22px) 0;
  background: var(--brine);
  color: var(--dill);
  transform: rotate(-2deg);
  overflow: hidden;
  box-shadow: 0 20px 40px -30px hsl(var(--shadow) / .5);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); padding-right: clamp(18px, 2.4vw, 36px); }
.marquee span { font: 780 clamp(1.625rem, 1rem + 2.6vw, 3.25rem)/1 var(--f-display); font-stretch: 84%; letter-spacing: -.02em; white-space: nowrap; }
.mq-mark { width: clamp(26px, 2.8vw, 42px); height: auto; flex: none; fill: var(--dill); }
.mq-mark circle { fill: none; stroke: var(--brine); stroke-width: 6; }
.mq-mark circle + circle { fill: var(--brine); stroke: none; }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }

/* ---------- Flavors: sticky stack ---------- */
.stack { display: grid; gap: 24px; padding-bottom: 8px; }
.flavor {
  --top: calc(var(--nav-h) + 14px + var(--n) * 12px);
  position: sticky;
  top: var(--top);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: 4px 18px;
  align-items: center;
  border-radius: calc(var(--r-card) + 4px);
  background: var(--tint);
  overflow: hidden;
  transform-origin: 50% 0;
  transition: transform .8s var(--ease);
  box-shadow: 0 -1px 0 rgb(255 255 255 / .35) inset, 0 30px 60px -44px hsl(var(--shadow) / .6);
}
.flavor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #07100B;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s var(--ease);
}
.flavor.is-covered { transform: scale(.94); }
.flavor.is-covered::after { opacity: .16; }
.flavor__jar { position: relative; display: grid; place-items: center; align-self: stretch; perspective: 900px; }
.flavor__disc { position: absolute; width: 118%; max-width: none; fill: var(--disc); transition: transform 1.2s var(--ease); }
.flavor__jar img {
  position: relative;
  width: auto;
  max-height: 236px;
  filter: drop-shadow(0 22px 22px hsl(var(--shadow) / .32));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
}
.flavor__copy { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.flavor__name { font-size: clamp(1.875rem, 1.2rem + 3.4vw, 4.5rem); line-height: 1; }
.badge {
  display: inline-block;
  vertical-align: .55em;
  padding: .35em .7em;
  border-radius: 999px;
  background: var(--dill);
  color: var(--brine);
  font: 700 .75rem/1 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}
[data-theme="dark"] .badge { background: var(--brine); color: var(--dill); }
.heat { display: inline-flex; align-items: center; gap: 2px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.heat .i { width: 1.15em; height: 1.15em; opacity: .22; }
.heat span { margin-left: 8px; }
.heat[data-level="1"] .i:nth-child(1), .heat[data-level="3"] .i { opacity: 1; color: var(--ink); }
.flavor__desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 1rem; line-height: 1.55; max-width: 44ch; }
.flavor__facts { grid-column: 1 / -1; display: flex; gap: 28px; }
.flavor__facts div { display: grid; gap: 2px; }
.flavor__facts dt { font-size: .8125rem; color: var(--muted); }
.flavor__facts dd { font: 780 1.5rem/1 var(--f-display); font-stretch: 84%; }
.flavor__cta { grid-column: 1 / -1; }

/* Mobile card: jar beside name/heat, then description, facts, CTA */
@media (max-width: 767px) {
  .flavor__copy { display: contents; }
  .flavor__jar { grid-row: 1 / span 2; }
  .flavor__name { grid-column: 2; align-self: end; }
  .heat { grid-column: 2; align-self: start; flex-wrap: wrap; }
  .heat span { flex-basis: 100%; margin: 4px 0 0; }
  .flavor { padding: 20px; }
  .flavor__jar { margin: -6px 0 -6px -8px; }
  .flavor__desc { margin-top: 12px; }
  .flavor__facts { margin: 8px 0 8px; }
  .flavor__cta { width: 100%; }
}
@media (min-width: 768px) {
  .flavor {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    min-height: min(640px, calc(100svh - var(--top) - 28px));
    padding: clamp(32px, 4.5vw, 64px);
    gap: 40px;
  }
  .flavor__jar { order: 2; }
  .flavor__jar img { max-height: min(500px, calc(100svh - 280px)); }
  .flavor__copy { gap: 18px; }
  .flavor__desc { font-size: 1.125rem; }
  .flavor__facts { gap: 40px; margin: 6px 0 10px; }
  .flavor__facts dd { font-size: 2rem; }
}
@media (max-height: 560px) { .flavor { position: relative; top: auto; } }

/* ---------- Craft bento ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cell { position: relative; border-radius: var(--r-card); background: var(--surface); padding: 26px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.cell h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); }
.cell p { color: var(--ink-2); margin-top: 10px; }
.cell--photo, .cell--text, .cell--lids { grid-column: 1 / -1; }
.cell--photo { padding: 10px; display: flex; flex-direction: column; }
.cell__img { border-radius: calc(var(--r-card) - 10px); overflow: hidden; aspect-ratio: 4 / 4.4; flex: 1; }
.cell__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; transition: transform 1.4s var(--ease); }
.cell--photo figcaption { padding: 16px 12px 8px; font: 700 1.125rem/1.3 var(--f-display); font-stretch: 88%; }
.cell__icon { width: 36px; height: 36px; color: var(--accent-ink); margin-bottom: 22px; }
.cell--seal { background: var(--brine); color: var(--dill); box-shadow: none; display: grid; gap: 16px; align-content: space-between; }
.cell--seal p { color: rgb(19 38 28 / .78); }
.cell--seal img { width: clamp(76px, 20vw, 120px); border-radius: 50%; transition: transform 1s var(--spring); }
.cell--seal h3 { font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); }
.cell--stat { background: var(--block-bg); color: var(--block-fg); box-shadow: none; display: grid; align-items: end; }
.stat { display: grid; gap: 10px; }
.stat b { font-size: clamp(3rem, 2rem + 4.4vw, 5.5rem); color: var(--brine); line-height: .9; }
.stat span { color: color-mix(in oklab, var(--block-fg) 78%, transparent); line-height: 1.35; }
.cell--lids { background: var(--tint-dill); box-shadow: none; display: grid; gap: 18px; align-items: center; }
.lids { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.lids img { width: 40%; height: auto; min-width: 0; flex: none; filter: drop-shadow(0 18px 18px hsl(var(--shadow) / .3)); transition: transform .9s var(--ease); }
.lids img + img { margin-left: -10%; }
.lids img:nth-child(2) { margin-top: 12%; position: relative; z-index: 1; }
@media (hover: hover) {
  .cell--photo:hover .cell__img img { transform: scale(1.05); }
  .cell--seal:hover img { transform: rotate(28deg) scale(1.05); }
  .cell--lids:hover .lids img:first-child { transform: translate(-6px, -6px) rotate(-5deg); }
  .cell--lids:hover .lids img:nth-child(2) { transform: translateY(6px); }
  .cell--lids:hover .lids img:last-child { transform: translate(6px, -4px) rotate(4deg); }
}
@media (min-width: 640px) {
  .cell--lids { grid-template-columns: 1fr 1.1fr; }
}
@media (min-width: 900px) {
  .bento { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 16px; }
  .cell { padding: 34px; }
  .cell--photo { grid-column: 1; grid-row: 1 / span 3; padding: 12px; }
  .cell__img { aspect-ratio: auto; min-height: 420px; }
  .cell--text { grid-column: 2 / span 2; grid-row: 1; }
  .cell--seal { grid-column: 2; grid-row: 2; min-height: 290px; }
  .cell--stat { grid-column: 3; grid-row: 2; }
  .cell--lids { grid-column: 2 / span 2; grid-row: 3; }
}

/* ---------- Ordering ---------- */
.ordering__grid { display: grid; gap: 48px; }
.price { display: flex; align-items: baseline; gap: 14px; margin: 32px 0 28px; }
.price b { font-size: clamp(4.5rem, 3rem + 6vw, 8rem); line-height: .85; letter-spacing: -.04em; }
.price span { color: var(--muted); font-weight: 500; }
.options { display: grid; column-gap: 40px; border-top: 1px solid var(--line); }
.option { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.option h3 { font: 780 1.3125rem/1.2 var(--f-display); font-stretch: 88%; letter-spacing: -.01em; }
.option p { margin-top: 6px; color: var(--ink-2); font-size: 1rem; }
.option__icon { position: relative; width: 56px; height: 56px; display: grid; place-items: center; color: var(--dill); }
.option__chip { position: absolute; inset: 0; fill: var(--brine); transition: transform .9s var(--ease); }
.option__icon .i { position: relative; width: 24px; height: 24px; }
@media (hover: hover) { .option:hover .option__chip { transform: rotate(90deg) scale(1.06); } }
@media (min-width: 640px) { .options { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .ordering__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 88px; align-items: start; }
  .ordering__lead { position: sticky; top: calc(var(--nav-h) + 48px); }
  .options { margin-top: 8px; }
  .option { padding: 34px 0; }
}

/* ---------- Markets ---------- */
.markets__grid { display: grid; gap: 48px; align-items: center; }
.markets__copy { display: grid; gap: 22px; }
.markets__copy header { margin-bottom: 14px; }
.empty {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-card);
  border: 1.5px dashed var(--line-strong);
}
.empty__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); }
.empty h3 { font: 780 1.3125rem/1.2 var(--f-display); font-stretch: 88%; }
.empty p { margin: 6px 0 16px; color: var(--ink-2); }
.empty b { color: var(--ink); font-weight: 600; }

.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -44px hsl(var(--shadow) / .6);
}
/* Perforation notches */
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  left: 96px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }
.ticket__stub {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 20px 8px;
  border-radius: var(--r-card) 0 0 var(--r-card);
  background: var(--brine);
  color: var(--dill);
  border-right: 2px dashed rgb(19 38 28 / .3);
  text-align: center;
}
.ticket__dow, .ticket__year { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ticket__day { font-size: 1.75rem; line-height: 1; }
.ticket__body { padding: 22px 22px 24px 26px; }
.ticket__label { font-size: .875rem; font-weight: 600; color: var(--muted); }
.ticket h3 { margin-top: 6px; font: 780 1.3125rem/1.2 var(--f-display); font-stretch: 88%; }
.ticket__meta { display: grid; gap: 6px; margin-top: 14px; color: var(--ink-2); font-size: .9375rem; }
.ticket__meta li { display: flex; align-items: center; gap: 8px; }
.ticket__meta .i { color: var(--accent-ink); }
.ticket__note { margin-top: 14px; color: var(--ink-2); }

.flyer {
  display: block;
  width: min(100%, 440px);
  justify-self: center;
  border-radius: var(--r-img);
  overflow: hidden;
  box-shadow: 0 40px 70px -40px hsl(var(--shadow) / .6), 0 0 0 1px var(--line);
  transform: rotate(2.5deg);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.js .flyer[data-reveal] { transform: translateY(40px) rotate(6deg); }
.js .flyer[data-reveal].is-in { transform: rotate(2.5deg); }
@media (hover: hover) { .js .flyer.is-in:hover, .flyer:hover { transform: rotate(0) scale(1.02); } }
@media (min-width: 960px) {
  .markets__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 88px; }
  .ticket { grid-template-columns: 120px 1fr; }
  .ticket::before, .ticket::after { left: 120px; }
  .ticket__day { font-size: 2.125rem; }
  .ticket__body { padding: 28px 32px 30px 36px; }
}

/* ---------- Merch ---------- */
.merch__grid { display: grid; gap: 16px; }
.product { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-card); background: var(--surface); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.product__stage { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; margin: 10px 10px 0; border-radius: calc(var(--r-card) - 10px); background: var(--bg-2); overflow: hidden; }
.product__disc { position: absolute; width: 74%; fill: var(--disc); transition: transform 1.4s var(--ease); }
.product__stage img { position: relative; width: auto; max-height: 76%; filter: drop-shadow(0 26px 24px hsl(var(--shadow) / .32)); transition: transform .9s var(--ease); }
.product__stage .product__paddle { max-height: 82%; transform: rotate(-14deg); }
.product__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 26px 28px; }
.product h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.product p { color: var(--ink-2); max-width: 40ch; margin-bottom: 8px; }
@media (hover: hover) {
  .product:hover .product__disc { transform: rotate(80deg) scale(1.06); }
  .product:hover .product__stage img { transform: translateY(-10px) rotate(-3deg); }
  .product:hover .product__stage .product__paddle { transform: translateY(-10px) rotate(-6deg); }
}
@media (min-width: 768px) { .merch__grid { grid-template-columns: 1fr 1fr; gap: 20px; } .product__stage { aspect-ratio: 4 / 3; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 40px; }
.channels { display: grid; gap: 10px; margin-top: 32px; }
.channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 12px 12px 14px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s, transform .5s var(--ease);
}
.channel__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brine); color: var(--dill); }
.channel__text { display: grid; min-width: 0; }
.channel__text small { font-size: .8125rem; color: var(--muted); }
.channel__text a { font-weight: 600; text-decoration: none; }
@media (max-width: 420px) { .channel__text a { font-size: .9375rem; } }
.channel__text a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.channel { position: relative; }
.channel__go { color: var(--muted); margin-right: 12px; transition: transform .4s var(--ease); }
@media (hover: hover) {
  .channel:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); transform: translateY(-2px); }
  .channel:hover .channel__go { transform: translate(3px, -3px); color: var(--ink); }
}
.copy-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s, transform .3s var(--ease);
}
.copy-btn .i { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform .45s var(--spring), opacity .2s; }
.copy-btn__check { opacity: 0; transform: scale(.3); }
.copy-btn.is-copied { background: var(--brine); color: var(--dill); }
.copy-btn.is-copied .copy-btn__copy { opacity: 0; transform: scale(.3); }
.copy-btn.is-copied .copy-btn__check { opacity: 1; transform: none; }
.copy-btn:active { transform: scale(.9); }
@media (hover: hover) { .copy-btn:hover { background: color-mix(in oklab, var(--brine) 55%, var(--bg-2)); } }

.form-card { border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -60px hsl(var(--shadow) / .6); padding: clamp(22px, 4vw, 44px); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 600; font-size: .9375rem; }
.field__opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: var(--r-input);
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
@media (hover: hover) { .input:hover { border-color: color-mix(in oklab, var(--ink) 45%, transparent); } }
.input:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brine) 50%, transparent); }
.field.is-invalid .input { border-color: var(--error); }
.field.is-invalid .input:focus { box-shadow: 0 0 0 4px color-mix(in oklab, var(--error) 22%, transparent); }
.field__error { display: none; font-size: .875rem; font-weight: 500; color: var(--error); }
.field.is-invalid .field__error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__alert { display: none; padding: 12px 14px; border-radius: var(--r-input); background: color-mix(in oklab, var(--error) 12%, transparent); color: var(--error); font-size: .9375rem; font-weight: 500; }
.form[data-state="error"] .form__alert { display: block; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form__note { font-size: .875rem; color: var(--muted); }
.form .chips--btn { display: none; }
.form .chips--btn i { width: 12px; height: 12px; background: currentColor; }
.form[data-state="sending"] .chips--btn { display: inline-flex; }
.form[data-state="sending"] .form__label::after { content: "…"; }
.form[data-state="sending"] .i-arrow { display: none; }
.form-done { display: grid; justify-items: start; gap: 12px; padding: 12px 4px; animation: rise .7s var(--ease); }
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.form-done__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brine); color: var(--dill); margin-bottom: 6px; }
.form-done__icon .i { width: 26px; height: 26px; }
.form-done h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.form-done p { color: var(--ink-2); max-width: 44ch; margin-bottom: 8px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 88px; align-items: start; } }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow-x: clip;
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(64px, 9vw, 112px) 0 calc(32px + env(safe-area-inset-bottom));
  background: var(--block-bg);
  color: var(--block-fg);
}
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: 22px;
  background: var(--block-bg);
  -webkit-mask: var(--wave-up) 0 0 / 44px 22px repeat-x;
          mask: var(--wave-up) 0 0 / 44px 22px repeat-x;
}
.footer__word {
  /* Sized to span the container: the wordmark is ~4.5em wide at this width */
  font-size: min(calc((100vw - 2 * var(--gutter)) / 4.55), calc(1320px / 4.55));
  font-stretch: 76%;
  white-space: nowrap;
  line-height: .86;
  letter-spacing: -.045em;
  color: var(--brine);
}
.footer__grid { display: grid; gap: 36px; margin-top: clamp(40px, 6vw, 72px); padding-top: 36px; border-top: 1px solid color-mix(in oklab, var(--block-fg) 16%, transparent); }
.footer__tag { max-width: 30ch; font: 700 1.375rem/1.25 var(--f-display); font-stretch: 88%; }
.footer__h { font: 600 .875rem/1 var(--f-body); color: color-mix(in oklab, var(--block-fg) 62%, transparent); margin-bottom: 14px; }
.footer__grid ul { display: grid; gap: 10px; }
.footer__grid a { text-decoration-color: transparent; overflow-wrap: anywhere; }
.footer__legal { margin-top: 56px; font-size: .875rem; color: color-mix(in oklab, var(--block-fg) 62%, transparent); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Secondary pages ---------- */
.page-hero { padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(40px, 7vw, 96px)) 0 clamp(32px, 5vw, 64px); }
.page-hero h1 { margin-top: 16px; font-size: clamp(2.75rem, 1.5rem + 5vw, 5.5rem); }
.page-hero__sub { margin-top: 18px; max-width: 52ch; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }

.legal { display: grid; gap: 28px; padding-bottom: clamp(64px, 9vw, 128px); }
.toc { border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.toc summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc__caret { transition: transform .4s var(--ease); }
.toc[open] .toc__caret { transform: rotate(180deg); }
.toc ol { display: grid; gap: 2px; padding: 0 10px 12px; margin: 0; }
.toc a { display: block; padding: 8px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-size: .9375rem; transition: background-color .2s, color .2s; }
.toc a[aria-current="true"] { color: var(--ink); background: color-mix(in oklab, var(--brine) 38%, transparent); font-weight: 600; }
@media (hover: hover) { .toc a:hover { color: var(--ink); background: var(--bg-2); } }
.prose { max-width: 68ch; }
.prose section + section { margin-top: 44px; }
.prose h2 { font: 780 clamp(1.5rem, 1.25rem + 1vw, 1.875rem)/1.15 var(--f-display); font-stretch: 88%; letter-spacing: -.015em; margin-bottom: 14px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent-ink); }
.prose b { color: var(--ink); font-weight: 600; }
@media (min-width: 960px) {
  .legal { grid-template-columns: 260px minmax(0, 1fr); gap: 80px; align-items: start; }
  .toc { position: sticky; top: calc(var(--nav-h) + 28px); background: transparent; box-shadow: none; }
  .toc summary { display: none; }
  .toc ol { padding: 0; }
  .toc a { padding: 8px 14px; }
}

.nf { padding-bottom: clamp(96px, 14vw, 200px); }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Brand guide */
.brand-guide { display: grid; gap: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 128px); }
.bg-sec > h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); }
.bg-lede { margin-top: 14px; max-width: 58ch; color: var(--ink-2); font-size: 1.125rem; }
.logo-grid { display: grid; gap: 14px; margin-top: 36px; }
.logo-tile { display: grid; place-items: center; align-content: center; gap: 28px; min-height: 240px; padding: 32px 20px 20px; border-radius: var(--r-card); }
.logo-tile figcaption { font-size: .875rem; font-weight: 500; opacity: .75; }
.logo-tile--light { background: var(--glass); color: var(--dill); box-shadow: inset 0 0 0 1px rgb(19 38 28 / .1); }
.logo-tile--dark { background: var(--dill); color: var(--glass); }
.logo-tile--seal { background: #9CC6EF; color: var(--dill); }
.logo-tile--seal img { width: 140px; border-radius: 50%; }
.logo-tile--chip { background: var(--brine); color: var(--dill); }
.chip-xl { width: 120px; height: 120px; }
.logo-tile--chip .brand__chip { fill: var(--dill); }
.logo-tile--chip .brand__ring { stroke: var(--brine); }
.logo-tile--chip .brand__seed { fill: var(--brine); }
.brand--xl { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); gap: 14px; margin: 0; }
.brand--xl .brand__mark { width: 1.75em; height: 1.75em; }
.rules { display: grid; gap: 12px; margin-top: 28px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.rules .i { color: var(--accent-ink); margin-top: 3px; }
.bg-downloads { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 28px; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.swatch { position: relative; display: grid; grid-template-rows: auto auto; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.swatch--wide { grid-column: 1 / -1; }
.swatch__chip { display: flex; align-items: flex-end; min-height: 120px; padding: 16px 18px; font: 780 1.25rem/1 var(--f-display); font-stretch: 88%; box-shadow: inset 0 0 0 1px rgb(19 38 28 / .08); }
.swatch--wide .swatch__chip { min-height: 160px; font-size: 1.75rem; }
.swatch__meta { display: grid; gap: 4px; padding: 14px 64px 16px 18px; }
.swatch__meta b { font: 600 .9375rem/1.2 var(--f-body); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.swatch__meta small { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.swatch .copy-btn { position: absolute; right: 12px; bottom: 12px; }
.type-grid { display: grid; gap: 14px; margin-top: 36px; }
.type-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 18px; align-content: start; }
.type-card__name { font-weight: 600; color: var(--muted); font-size: .875rem; }
.type-specimen { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.type-body { font-size: 1.25rem; line-height: 1.5; }
.type-card__note { color: var(--ink-2); font-size: .9375rem; }
.crinkle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.crinkle-tile { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 200px; padding: 24px 16px 18px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.crinkle-tile > span { font-size: .875rem; font-weight: 500; color: var(--muted); }
.crinkle-tile svg { width: 96px; height: 96px; fill: var(--brine); }
.crinkle-tile--edge i { display: block; width: 100%; height: 72px; background: var(--block-bg); -webkit-mask: var(--wave-up) 0 0 / 40px 20px repeat-x, linear-gradient(#000 0 0) 0 19px / 100% 100% no-repeat; mask: var(--wave-up) 0 0 / 40px 20px repeat-x, linear-gradient(#000 0 0) 0 19px / 100% 100% no-repeat; border-radius: 0 0 14px 14px; }
.crinkle-sample { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.crinkle-link { font-weight: 600; text-decoration: underline wavy var(--accent-ink); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.voice-grid { display: grid; gap: 14px; margin-top: 36px; }
.voice { padding: 26px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; }
.voice h3 { font: 780 1.375rem/1.2 var(--f-display); font-stretch: 88%; margin-bottom: 4px; }
.voice p { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.voice .i { margin-top: 2px; }
.voice__do { color: var(--ink); }
.voice__do .i { color: var(--accent-ink); }
.voice__dont { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--muted) 60%, transparent); }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.photo-grid figure { display: grid; gap: 10px; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-img); background: var(--bg-2); }
.photo-grid figcaption { font-size: .875rem; color: var(--muted); }
@media (max-width: 599px) { .photo-grid { grid-template-columns: 1fr 1fr; } .photo-grid figure:last-child { grid-column: 1 / -1; } .photo-grid figure:last-child img { aspect-ratio: 16 / 10; } }
@media (min-width: 720px) {
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .swatch--wide, .swatch--half { grid-column: span 2; }
  .type-grid { grid-template-columns: 1.3fr 1fr; }
  .crinkle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .voice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Order sheet ---------- */
.sheet:modal {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overscroll-behavior: contain;
}
.sheet__panel {
  width: 100%;
  max-height: min(92dvh, 880px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px -20px rgb(0 0 0 / .35);
  padding-bottom: env(safe-area-inset-bottom);
  overflow: hidden;
  transition: transform .45s var(--ease);
}
.sheet[open] .sheet__panel { animation: sheet-up .6s var(--ease); }
.sheet.is-closing .sheet__panel { animation: sheet-down .34s var(--ease-io) forwards; }
.sheet__grab { flex: none; padding: 10px 16px 14px 22px; touch-action: none; cursor: grab; }
.sheet__handle { display: block; width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 999px; background: var(--line-strong); }
.sheet__head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.sheet__head h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); }
.sheet__head p { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }
.order { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px 28px; }
@media (min-width: 768px) {
  .sheet:modal { align-items: center; padding: 24px; }
  .sheet__panel { width: min(720px, 100%); max-height: min(88dvh, 860px); border-radius: 30px; }
  .sheet[open] .sheet__panel { animation: pop-in .55s var(--ease); }
  .sheet.is-closing .sheet__panel { animation: pop-out .28s var(--ease-io) forwards; }
  .sheet__handle { display: none; }
  .sheet__grab { padding: 24px 20px 18px 28px; cursor: auto; }
  .sheet__body { padding: 4px 28px 32px; }
  .order__bar { padding-inline: 28px; }
}

/* ---------- Order form ---------- */
.order__step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.order__h { padding: 0; font: 700 1.125rem/1.3 var(--f-display); letter-spacing: -.01em; margin-bottom: 4px; }
.order__err { margin-top: -6px; }
.order__step.is-invalid .order__err { display: block; }

/* Heat slider: native range input, so keyboard + screen readers work for free.
   Track colors are heat semantics (dill green to habanero orange), not decoration. */
.heat-slider { --heat-a: #7FA132; --heat-b: #E2B33A; --heat-c: #DD6230; --v: .5; --hot: 0; position: relative; padding-top: 84px; }
.heat-slider__input {
  --thumb-x: calc(20px + (100% - 40px) * var(--v));
  position: relative; z-index: 1;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y;
}
.heat-slider__input::-webkit-slider-runnable-track {
  height: 14px; border-radius: 999px;
  background: linear-gradient(90deg, transparent var(--thumb-x), color-mix(in oklab, var(--surface) 62%, transparent) var(--thumb-x)), linear-gradient(90deg, var(--heat-a), var(--heat-b) 50%, var(--heat-c));
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08);
}
.heat-slider__input::-moz-range-track {
  height: 14px; border-radius: 999px;
  background: linear-gradient(90deg, transparent var(--thumb-x), color-mix(in oklab, var(--surface) 62%, transparent) var(--thumb-x)), linear-gradient(90deg, var(--heat-a), var(--heat-b) 50%, var(--heat-c));
}
.heat-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 40px; height: 40px; margin-top: -13px; border: 0; border-radius: 50%;
  background: var(--dill) url("../assets/favicon.svg") center / 30px no-repeat;
  box-shadow: 0 0 0 4px var(--surface), 0 8px 18px -6px hsl(var(--shadow) / .6), 0 0 calc(var(--hot) * 26px) calc(var(--hot) * 4px) rgb(240 110 40 / calc(var(--hot) * .7));
  transform: rotate(var(--turn, 0deg));
  transition: scale .35s var(--spring);
}
.heat-slider__input::-moz-range-thumb {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--dill) url("../assets/favicon.svg") center / 30px no-repeat;
  box-shadow: 0 0 0 4px var(--surface), 0 8px 18px -6px hsl(var(--shadow) / .6);
  transition: transform .35s var(--spring);
}
.heat-slider__input::-moz-range-thumb { transform: rotate(var(--turn, 0deg)); }
.heat-slider__input:active::-webkit-slider-thumb { scale: 1.15; }
.heat-slider__input:active::-moz-range-thumb { scale: 1.15; }
.heat-slider__input:focus-visible { outline: none; }
.heat-slider__input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--accent-ink); }
.heat-slider__input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--accent-ink); }
.heat-slider__scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: .875rem; font-weight: 500; color: var(--muted); }

/* Panes: one step at a time */
.order__pane { display: grid; gap: 30px; }
.order__pane.is-entering { animation: rise .5s var(--ease); }
.order__pane--heat { gap: 6px; padding: 12px 0 8px; }
.order__pane[data-pane="reveal"] { gap: 16px; }
[data-next]:disabled { opacity: .45; cursor: wait; }
.order__pane--heat .order__h { color: var(--ink-2); font-weight: 600; font-size: 1rem; }

/* Fire: rides on the thumb, grows past the middle of the slider. Pure CSS shapes: teardrops + embers. */
.heat-slider__fire {
  position: absolute; left: calc(20px + (100% - 40px) * var(--v)); bottom: 40px;
  width: 80px; height: 120px; translate: -50% 0;
  transform-origin: 50% 100%; scale: calc(.35 + var(--hot) * .75); opacity: calc(var(--hot) * 2.2);
  pointer-events: none; filter: blur(.4px);
}
.heat-slider__fire i {
  position: absolute; left: 50%; bottom: 0; width: var(--w); height: var(--w); margin-left: calc(var(--w) / -2 + var(--x, 0px));
  transform-origin: 50% 100%; scale: 1 1.7; animation: flicker var(--t, .5s) ease-in-out infinite alternate;
}
.heat-slider__fire i::before {
  content: ""; position: absolute; inset: 0; border-radius: 0 50% 50% 50%; transform: rotate(45deg);
  background: radial-gradient(circle at 62% 62%, var(--c1) 12%, var(--c2) 78%);
}
.heat-slider__fire i:nth-child(1) { --w: 52px; --c1: #F7A23B; --c2: #DD4F24; --t: .55s; }
.heat-slider__fire i:nth-child(2) { --w: 36px; --c1: #FFD36B; --c2: #F2852E; --t: .42s; --x: -14px; animation-delay: -.2s; }
.heat-slider__fire i:nth-child(3) { --w: 32px; --c1: #FFD36B; --c2: #F2852E; --t: .47s; --x: 14px; animation-delay: -.1s; }
.heat-slider__fire i:nth-child(4) { --w: 24px; --c1: #FFF4C2; --c2: #FFC94D; --t: .36s; }
.heat-slider__fire b {
  position: absolute; left: calc(50% + var(--x)); bottom: 50px; width: 4px; height: 4px; border-radius: 50%;
  background: #FFC14D; box-shadow: 0 0 6px #F2852E; opacity: 0;
  animation: ember 1.3s ease-out infinite; animation-delay: var(--d);
}
.heat-slider__fire b:nth-child(5) { --x: -18px; --d: 0s; }
.heat-slider__fire b:nth-child(6) { --x: 10px; --d: -.4s; }
.heat-slider__fire b:nth-child(7) { --x: -4px; --d: -.8s; }
.heat-slider__fire b:nth-child(8) { --x: 20px; --d: -.2s; }
.heat-slider__fire b:nth-child(9) { --x: -12px; --d: -1s; }
.heat-slider__fire b:nth-child(10) { --x: 4px; --d: -.6s; }
[data-theme="dark"] .heat-slider__fire { mix-blend-mode: screen; }
.order__h:focus { outline: none; }

/* Reveal: three jars, a highlight shuffles across them and lands on the pick */
.reveal-stage { position: relative; }
.pop { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; visibility: hidden; }
.pop.is-shaking, .pop.is-burst { visibility: visible; }
.pop__jar { position: relative; width: 128px; transform-origin: 50% 100%; }
.pop__jar img { width: 100%; height: auto; filter: grayscale(1) contrast(1.25) drop-shadow(0 16px 18px hsl(var(--shadow) / .35)); transition: filter .35s var(--ease); }
.pop__body { clip-path: inset(13% 0 0 0); }
.pop__lid { position: absolute; inset: 0; clip-path: inset(0 0 87% 0); transform-origin: 50% 8%; }
.pop__q {
  position: absolute; left: 50%; top: 52%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brine); color: var(--dill);
  font: 800 1.75rem/1 var(--f-display); box-shadow: 0 6px 16px -6px hsl(var(--shadow) / .6); rotate: -8deg;
}
.pop.is-shaking .pop__jar { animation: rattle 1.5s linear both; }
.pop.is-shaking .pop__lid { animation: lid-jiggle .09s .55s ease-in-out infinite alternate; }
.pop.is-burst .pop__jar { animation: jar-burst .6s var(--spring) both; }
.pop.is-burst .pop__jar img { filter: none; }
.pop.is-burst .pop__lid { animation: lid-off .75s var(--ease) both; }
.pop.is-burst .pop__q { animation: q-out .3s var(--ease) both; }
.pop__flash { position: absolute; left: 50%; top: 40%; width: 220px; height: 220px; margin: -110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--brine) 85%, transparent), transparent 65%); opacity: 0; scale: 0; }
.pop.is-burst .pop__flash { animation: flash .6s var(--ease) both; }
.pop__chips { position: absolute; left: 50%; top: 38%; width: 0; height: 0; }
.pop__chips i {
  position: absolute; width: 18px; height: 18px; margin: -9px; opacity: 0; background: #7FA132;
  -webkit-mask: url("../assets/favicon.svg") center / contain no-repeat; mask: url("../assets/favicon.svg") center / contain no-repeat;
}
.pop__chips i:nth-child(3n) { background: var(--brine); }
.pop__chips i:nth-child(3n + 1) { background: #E2B33A; }
.pop.is-burst .pop__chips i { animation: chip-fly .9s cubic-bezier(.2, .8, .3, 1) both; }
.spot.is-waiting .spot__jar { opacity: 0; transition: none; animation: none; }
.spot { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 16px); align-items: end; padding-top: 18px; }
.spot__jar {
  position: relative; display: grid; justify-items: center; gap: 10px;
  padding: 18px 8px 14px; border: 0; border-radius: var(--r-img);
  background: var(--surface-2); color: inherit; cursor: pointer;
  transition: transform .45s var(--spring), opacity .4s var(--ease), background .3s, box-shadow .3s, filter .4s;
  animation: rise .6s var(--ease) backwards; animation-delay: calc(var(--n, 0) * 80ms);
}
.spot__jar:nth-child(2) { --n: 1; }
.spot__jar:nth-child(3) { --n: 2; }
.spot__jar:disabled { cursor: default; }
.spot__jar img { width: min(96px, 70%); height: auto; filter: drop-shadow(0 12px 14px hsl(var(--shadow) / .3)); transition: transform .45s var(--spring); }
.spot__label { font-weight: 600; font-size: .9375rem; line-height: 1.2; text-align: center; }
.spot__jar[data-key="dill"] { --tint: var(--tint-dill); }
.spot__jar[data-key="sweet"] { --tint: var(--tint-sweet); }
.spot__jar[data-key="hot"] { --tint: var(--tint-hot); }
/* Shuffle tick */
/* Landed */
.spot.is-landed .spot__jar:not(.is-picked) { opacity: .55; transform: scale(.92); filter: saturate(.6); }
.spot.is-landed .spot__jar.is-picked { opacity: 1; transition-property: transform, background, box-shadow; }
.spot.is-landed .spot__jar.is-picked { background: var(--tint); transform: translateY(-10px) scale(1.06); box-shadow: inset 0 0 0 2px var(--ink), 0 24px 40px -24px hsl(var(--shadow) / .7); }
.spot__jar.is-picked.is-pop img { animation: jar-swap .6s var(--spring); }
@media (hover: hover) { .spot.is-landed .spot__jar:not(.is-picked):hover { opacity: .9; transform: scale(.96); filter: none; } }
/* "Made for you" sticker stamps onto the recommended jar and stays there if they switch */
.spot__tag {
  position: absolute; top: -12px; left: 50%; z-index: 1;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--brine); color: var(--dill); font-size: .75rem; font-weight: 700;
  box-shadow: 0 6px 14px -6px hsl(var(--shadow) / .6);
  transform: translateX(-50%) rotate(-6deg) scale(0); opacity: 0;
}
.spot__jar.is-reco .spot__tag { opacity: 1; transform: translateX(-50%) rotate(-6deg); animation: stamp .55s var(--spring) .1s both; }
/* Chip burst on landing / switching */
.spot__burst { position: absolute; left: 50%; top: 42%; width: 0; height: 0; pointer-events: none; }
.spot__burst i {
  position: absolute; width: 14px; height: 14px; margin: -7px; background: var(--accent-ink); opacity: 0;
  -webkit-mask: url("../assets/favicon.svg") center / contain no-repeat; mask: url("../assets/favicon.svg") center / contain no-repeat;
}
.spot__jar.is-picked.is-pop .spot__burst i { animation: burst .8s var(--ease) both; }
.spot__burst i:nth-child(1) { --a: 0deg; } .spot__burst i:nth-child(2) { --a: 45deg; } .spot__burst i:nth-child(3) { --a: 90deg; } .spot__burst i:nth-child(4) { --a: 135deg; }
.spot__burst i:nth-child(5) { --a: 180deg; } .spot__burst i:nth-child(6) { --a: 225deg; } .spot__burst i:nth-child(7) { --a: 270deg; } .spot__burst i:nth-child(8) { --a: 315deg; }

.spot__info { display: grid; gap: 8px; justify-items: start; }
.spot__info.is-pop { animation: rise .5s var(--ease); }
.spot__name { margin: 0; font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.05; }
.spot__info .heat { grid-column: auto; flex-wrap: nowrap; }
.spot__info .heat span { flex-basis: auto; margin: 0 0 0 8px; }
.spot__desc { color: var(--ink-2); max-width: 50ch; }
.spot__hint { font-size: .875rem; font-weight: 600; color: var(--muted); margin-top: 6px; }

.cart { display: grid; gap: 8px; }
.cart__row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 8px 8px 8px 14px; border-radius: var(--r-input); background: var(--surface-2); transition: opacity .3s; }
.cart__row img { width: 28px; height: auto; }
.cart__row img, .cart__name { transition: opacity .3s; }
.cart__row.is-empty img, .cart__row.is-empty .cart__name { opacity: .5; }
.cart__name { font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 2px; }
.stepper { gap: 6px; }
.stepper__btn { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; line-height: 1; cursor: pointer; transition: transform .35s var(--spring), background .25s, color .25s, box-shadow .25s; }
.stepper__btn[data-step="-1"] { width: 34px; height: 34px; background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.stepper__btn[data-step="1"] {
  width: 44px; height: 44px; font-size: 1.5rem; font-weight: 600;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 0 8px 18px -10px hsl(var(--shadow) / .8);
}
@media (hover: hover) {
  .stepper__btn[data-step="1"]:not(:disabled):hover { background: var(--btn-fill); color: var(--btn-fill-fg); transform: scale(1.12) rotate(90deg); box-shadow: 0 12px 22px -10px hsl(var(--shadow) / .8), inset 0 0 0 2px var(--dill); }
  .stepper__btn[data-step="-1"]:not(:disabled):hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
}
.stepper__btn:active { transform: scale(.88); transition-duration: .1s; }
.stepper__btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--line); }
.stepper__btn[data-step="1"]:disabled { background: transparent; color: var(--muted); }
.stepper__n { display: inline-block; min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.stepper__n.is-pop { animation: count-bump .35s var(--spring); }

.choices { display: grid; gap: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-input); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .25s, background .25s, opacity .3s, transform .4s var(--spring); }
.choice__check { margin-left: auto; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--dill); color: var(--brine); scale: 0; transition: scale .4s var(--spring); }
.choice:has(input:checked) .choice__check { scale: 1; }
.choices:has(input:checked) .choice:not(:has(input:checked)):not(:has(input:disabled)) { opacity: .62; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: grid; line-height: 1.3; }
.choice small { color: var(--muted); font-size: .875rem; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--ink), 0 16px 30px -20px hsl(var(--shadow) / .8); background: color-mix(in oklab, var(--brine) 40%, var(--surface)); transform: scale(1.02); }
[data-theme="dark"] .choice:has(input:checked) { background: color-mix(in oklab, var(--brine) 18%, var(--surface)); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.order__step.is-invalid .choice { box-shadow: inset 0 0 0 1px var(--error); }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; background: transparent; box-shadow: inset 0 0 0 1px var(--line); filter: grayscale(1); }
@media (min-width: 600px) { .choices { grid-template-columns: 1fr 1fr; } }
select.input { appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B5F' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 44px; }

.order__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.order__next { margin-left: auto; }
.order__total { display: grid; line-height: 1.1; }
.order__total span { font-size: .875rem; color: var(--muted); }
.order__total b { font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.order[data-state="sending"] .chips--btn { display: inline-flex; }
.order[data-state="sending"] .form__label::after { content: "…"; }
.order[data-state="sending"] .i-arrow { display: none; }
.order .chips--btn { display: none; }
.order .chips--btn i { width: 12px; height: 12px; background: currentColor; }
.order[data-state="error"] .form__alert { display: block; }
.order-done { padding: 12px 28px 32px; }
.confetti { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: var(--ox); top: var(--oy); width: 8px; height: 13px; margin: -6px -4px; border-radius: 2px; }
.confetti i.is-chip { width: 16px; height: 16px; margin: -8px; border-radius: 0; -webkit-mask: url("../assets/favicon.svg") center / contain no-repeat; mask: url("../assets/favicon.svg") center / contain no-repeat; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal] .sticker { transform: rotate(-2.5deg) scale(.3); opacity: 0; transition: transform .8s var(--spring) .35s, opacity .3s .35s; }
.js [data-reveal].is-in .sticker { transform: rotate(-2.5deg); opacity: 1; }
.js .flavor__jar img { opacity: 0; translate: 0 40px; transition: opacity .8s var(--ease), translate 1.1s var(--ease), transform .6s var(--ease); }
.js .flavor.is-in .flavor__jar img { opacity: 1; translate: 0 0; }
.js .flavor__disc { transform: rotate(-60deg) scale(.7); }
.js .flavor.is-in .flavor__disc { transform: none; }

/* ---------- Scroll-driven motion (progressive enhancement) ---------- */
@supports (animation-timeline: scroll()) {
  .progress { animation: grow-x linear both; animation-timeline: scroll(root); }
  .to-top__bar { animation: ring-scroll linear both; animation-timeline: scroll(root); }
  @media (prefers-reduced-motion: no-preference) {
    .hero__photo img { animation: hero-pan linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__jar img { animation: jar-rise linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__seal img { animation: seal-spin linear both; animation-timeline: scroll(root); animation-range: 0 120vh; }
    .hero__disc svg { animation: disc-spin linear both; animation-timeline: scroll(root); animation-range: 0 120vh; }
  }
}

/* ---------- Keyframes ---------- */
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes flicker { from { transform: scale(1, 1) skewX(0deg); } 50% { transform: scale(.92, 1.08) skewX(2deg); } to { transform: scale(1.04, .9) skewX(-3deg); } }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -70px) scale(.4); } }
@keyframes rattle {
  0% { transform: none; }
  8% { transform: rotate(-2deg); } 14% { transform: rotate(2deg); } 20% { transform: rotate(-3deg); } 26% { transform: rotate(3deg); }
  32% { transform: translateY(-2px) rotate(-4deg); } 37% { transform: rotate(4deg); } 42% { transform: translateY(-4px) rotate(-6deg); } 47% { transform: rotate(6deg); }
  52% { transform: translateY(-6px) rotate(-7deg); } 56% { transform: rotate(7deg); } 60% { transform: translateY(-8px) rotate(-9deg); } 64% { transform: rotate(9deg); }
  68% { transform: translateY(-10px) rotate(-10deg); } 72% { transform: rotate(10deg); } 76% { transform: translateY(-12px) rotate(-11deg); } 80% { transform: rotate(11deg); }
  84% { transform: translateY(-14px) rotate(-12deg); } 88% { transform: rotate(12deg); } 93% { transform: translateY(-4px) rotate(-4deg); }
  100% { transform: scale(1.1, .9); }
}
@keyframes lid-jiggle { to { transform: translateY(-3px) rotate(3deg); } }
@keyframes jar-burst { 0% { transform: scale(1.1, .9); } 35% { transform: scale(.92, 1.12) translateY(-12px); } 100% { transform: none; } }
@keyframes lid-off { 0% { transform: none; opacity: 1; } 100% { transform: translate(70px, -190px) rotate(200deg); opacity: 0; } }
@keyframes q-out { to { scale: 0; rotate: 90deg; opacity: 0; } }
@keyframes flash { 0% { opacity: .9; scale: .2; } 100% { opacity: 0; scale: 1.6; } }
@keyframes chip-fly { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.2); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(var(--r)) scale(var(--s)); } }
@keyframes count-bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes stamp { from { opacity: 0; transform: translateX(-50%) rotate(-30deg) scale(2.2); } }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.4); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-90px) scale(1) rotate(180deg); } }
@keyframes jar-swap { from { opacity: 0; transform: translateY(18px) rotate(-8deg) scale(.85); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(28px) scale(.96); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ring-scroll { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes hero-pan { from { transform: scale(1.14) translateY(-4%); } to { transform: scale(1.14) translateY(5%); } }
@keyframes jar-rise { to { transform: translateY(-16%) rotate(-5deg); } }
@keyframes seal-spin { to { transform: rotate(200deg); } }
@keyframes disc-spin { to { transform: rotate(-50deg) scale(1.06); } }
@keyframes lid-twist { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes lid-open { to { transform: rotate(-320deg) scale(.8); } }
@keyframes ring-fill { to { stroke-dashoffset: 18; } }
@keyframes msg {
  0% { opacity: 0; transform: translateY(100%); }
  10%, 30% { opacity: 1; transform: none; }
  40%, 100% { opacity: 0; transform: translateY(-100%); }
}
@keyframes chip-hop {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-9px) rotate(90deg); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
  .flavor.is-covered { transform: none; }
}
