/* ============================================================
   SAMBALAB - design system
   Theme lock: dark, page-wide. No section inverts.
   Accent lock: --brand (#FF2E1F) for every CTA and brand moment.
   Multi-hue is a DATA ENCODING scale only (hue = heat level),
   never decoration. See --h1..--h5.
   Radius rule: pills for interactive, 26px shells, 18px cores,
   12px inputs. Applied everywhere, no exceptions.
   ============================================================ */

:root {
  /* base */
  --ink:        #0E0B0A;
  --ink-2:      #151010;
  --surface:    #1B1413;
  --surface-2:  #241A18;
  --bone:       #F7F1E8;
  --bone-dim:   #B7ADA2;
  /* lifted from #7E756D, which measured 4.28:1 on the page ground and
     failed AA for the 10px mono labels it is used on */
  --bone-faint: #948B82;
  --hair:       rgba(247, 241, 232, 0.10);
  --hair-2:     rgba(247, 241, 232, 0.055);

  /* brand accent - locked, single */
  --brand:      #FF2E1F;
  --brand-deep: #C61B10;
  --brand-soft: rgba(255, 46, 31, 0.14);

  /* heat encoding scale (functional, not decorative) */
  --h1: #C4F04A;  /* warm    */
  --h2: #FFB627;  /* sharp   */
  --h3: #FF7A18;  /* serious */
  --h4: #FF2E1F;  /* brutal  */
  --h5: #FF2D87;  /* unhinged */
  --h6: #F7F1E8;  /* white hot */

  /* ingredient family chips (data encoding) */
  --fam-sea:   #16C6C0;
  --fam-crisp: #FFA033;
  --fam-funk:  #A46BFF;

  /* Colorway identity, NOT heat. Each chili base owns one label colour
     so a jar is identifiable on sight. Heat is carried separately by the
     meters, the tier word and the jar tint, so the two systems never
     compete for the same signal. */
  --id-gochugaru: #C4F04A;
  --id-yuzu:      #22D3EE;
  --id-sichuan:   #FF2D87;
  --id-rawit:     #FF2E1F;
  --id-habanero:  #FF7A18;
  --id-jolokia:   #A46BFF;
  --id-dalle:     #FFD93D;
  --id-kashmiri:  #4DA6FF;
  --id-reaper:    #262020;
  --id-aleppo:    #EDE4D3;
  --id-ema:       #6EE7A8;
  --id-labuyo:    #14B8A6;

  /* radius scale */
  --r-shell: 26px;
  --r-core:  18px;
  --r-input: 12px;

  /* motion */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  /* rhythm */
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);
  --sec-y: clamp(6rem, 12vw, 11.5rem);
  --shell-max: 1400px;
}

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

/* clip, not hidden: `overflow-x: hidden` turns the body into a scroll
   container, which makes ScrollTrigger pin against the wrong scroller
   and collapses the document width after the pinned section. */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

/* height:auto so the width/height attributes (a presentation hint) cannot
   override the aspect-ratio boxes below. Fill cases set height explicitly. */
img { max-width: 100%; height: auto; display: block; }

/* the UA rule for [hidden] loses to any author class that sets display,
   and several toggled blocks here are display:grid / display:flex */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--h2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- film grain: fixed, pointer-events none, never on scroll containers ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 900;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate3d(0,0,0); }
  16%  { transform: translate3d(-2%, 1%, 0); }
  33%  { transform: translate3d(1%, -2%, 0); }
  50%  { transform: translate3d(-1%, 2%, 0); }
  66%  { transform: translate3d(2%, 1%, 0); }
  83%  { transform: translate3d(-2%, -1%, 0); }
  100% { transform: translate3d(0,0,0); }
}

/* ---------- typography ---------- */
.display {
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-variation-settings: 'wdth' 100, 'opsz' 48;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
}
/* scale is planned against the hero copy column width, so the
   headline holds at exactly two lines from 320px up */
.display--xl { font-size: clamp(2.75rem, 6.1vw, 5.5rem); }
.display--l  { font-size: clamp(2.4rem, 6vw, 5rem); }
.display--m  { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.display--s  { font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: -0.02em; }

.mono {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-feature-settings: 'tnum' 1;
}

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 46ch;
  margin: 0;
}

/* Headline mask. Each line is its own block that clips its span, so the
   span can sit below the cut and slide up. Without display:block the lines
   run together, and without inline-block on the span the transform is
   silently ignored, because transforms do not apply to inline boxes.
   The padding is descender clearance for g, y, p and friends. */
.line { display: block; overflow: hidden; padding-bottom: 0.1em; }
.line > span { display: inline-block; will-change: transform; }

.eyebrow {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

section { position: relative; }

/* ============================================================
   NAV - floating glass pill, one line, 62px
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 700;
  display: flex;
  justify-content: center;
  padding: 1.15rem var(--pad-x) 0;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 2.1rem);
  height: 62px;
  padding: 0 0.55rem 0 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(247,241,232,0.12);
  background: rgba(20, 15, 14, 0.62);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 18px 50px rgba(0,0,0,0.5);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.7s var(--ease);
}
.nav__pill.is-in { transform: translateY(0); opacity: 1; }

.nav__mark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__mark svg { flex: none; }

.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.855rem;
  color: var(--bone-dim);
  white-space: nowrap;
  transition: color 0.45s var(--ease), background-color 0.45s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="true"] {
  color: var(--bone);
  background: rgba(247,241,232,0.07);
}

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border: 0; background: transparent;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}
.nav__burger span {
  position: absolute;
  left: 11px;
  width: 20px; height: 1.7px;
  background: var(--bone);
  border-radius: 2px;
  transition: transform 0.6s var(--ease), opacity 0.35s var(--ease);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 23px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* full-screen menu */
.menu {
  position: fixed; inset: 0;
  z-index: 690;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  padding: var(--pad-x);
  background: rgba(14, 11, 10, 0.86);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
body.menu-open .menu { opacity: 1; visibility: visible; }
.menu a {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 13vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  transform: translateY(2.6rem);
  opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.6s var(--ease);
}
body.menu-open .menu a { transform: translateY(0); opacity: 1; }
body.menu-open .menu a:nth-child(1) { transition-delay: 0.10s; }
body.menu-open .menu a:nth-child(2) { transition-delay: 0.16s; }
body.menu-open .menu a:nth-child(3) { transition-delay: 0.22s; }

/* ============================================================
   BUTTONS - pill, button-in-button trailing icon
   ============================================================ */
.btn {
  --btn-bg: var(--brand);
  /* near-black on brand red measures 5.1:1. White measured 3.5:1 and
     failed AA for a 15px label, and dark ink matches the label plate. */
  --btn-fg: #16100F;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 0.62rem 0.62rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 12px 30px rgba(255,46,31,0.22);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), background-color 0.55s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 18px 40px rgba(255,46,31,0.32); }
.btn:active { transform: scale(0.978) translateY(0); }
.btn__ico {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.16);
  display: grid; place-items: center;
  transition: transform 0.55s var(--ease), background-color 0.55s var(--ease);
}
.btn:hover .btn__ico { transform: translate(3px, -2px) scale(1.06); background: rgba(0,0,0,0.26); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  border: 1px solid rgba(247,241,232,0.22);
  box-shadow: none;
  padding-left: 1.5rem;
}
.btn--ghost:hover { background: rgba(247,241,232,0.06); box-shadow: none; }
.btn--ghost .btn__ico { background: rgba(247,241,232,0.10); }
.btn--ghost:hover .btn__ico { background: rgba(247,241,232,0.16); }

.btn--bone { --btn-bg: var(--bone); --btn-fg: #17100F; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 12px 30px rgba(0,0,0,0.35); }
.btn--bone:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 18px 40px rgba(0,0,0,0.45); }

.btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled:hover { transform: none; }

/* ============================================================
   DOUBLE-BEZEL shell / core
   ============================================================ */
.shell {
  padding: 6px;
  border-radius: var(--r-shell);
  background: rgba(247,241,232,0.035);
  border: 1px solid var(--hair);
}
.core {
  border-radius: var(--r-core);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}

/* ============================================================
   REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(2.6rem);
  filter: blur(9px);
  transition:
    opacity 0.9s var(--ease),
    transform 1.05s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }

/* hero stat rail sits UNDER the hero, not inside it.
   No bottom padding: the next section already opens with --sec-y, and
   stacking both left a dead band under the numbers. */
.proof { padding: 0; }
.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair-2);
  border-top: 1px solid var(--hair);
}
.proof__cell {
  background: var(--ink);
  padding: 1.5rem 1.2rem 1.7rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.proof__num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  /* the number has to carry the cell, not sit in it */
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.proof__lbl { font-size: 0.8rem; color: var(--bone-dim); line-height: 1.35; }

/* ============================================================
   SPECTRUM - horizontal scroll pan (hue = heat, left to right)
   ============================================================ */
.spectrum { background: var(--ink-2); }
.spectrum__head {
  padding: var(--sec-y) 0 2.5rem;
  display: grid;
  gap: 1.1rem;
  max-width: 62ch;
}
.pan { position: relative; overflow: hidden; }
.pan__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.9rem);
  padding: 0 var(--pad-x) clamp(4rem, 8vw, 7rem);
  align-items: stretch;
  will-change: transform;
}
.chili {
  flex: none;
  width: clamp(258px, 27vw, 350px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
}
.chili .core { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.chili__img { position: relative; overflow: hidden; }
.chili__img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.chili:hover .chili__img img { transform: scale(1.06); }
.chili__flag {
  position: absolute;
  left: 0.85rem; top: 0.85rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.28rem 0.7rem 0.28rem 0.45rem;
  border-radius: 999px;
  background: rgba(14,11,10,0.72);
  backdrop-filter: blur(10px);
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.chili__flag .fi { width: 20px; height: 15px; border-radius: 2px; flex: none; }
.chili__body { padding: 1.25rem 1.25rem 1.4rem; display: grid; gap: 0.9rem; align-content: start; }
.chili__name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.22rem; letter-spacing: -0.03em; line-height: 1.05; text-transform: uppercase; }
.chili__shu { font-size: 1.02rem; font-weight: 500; }
.chili__shu span { color: var(--bone-faint); font-size: 0.76rem; letter-spacing: 0.1em; }

/* sensory meters - the 4 grounded axes */
.axes { display: grid; gap: 0.55rem; }
.axis { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.7rem; align-items: center; }
.axis__k { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--bone-faint); }
.axis__bar { height: 4px; border-radius: 999px; background: rgba(247,241,232,0.10); overflow: hidden; }
.axis__fill { display: block; height: 100%; border-radius: 999px; background: var(--c, var(--brand)); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform 1.1s var(--ease) var(--d, 0s); }
.axis__val { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--bone-dim); }

.tags { display: flex; flex-wrap: wrap; gap: 0.34rem; }
.tag {
  font-size: 0.68rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
  color: var(--bone-dim);
}
.tag--zone { border-color: rgba(255,46,31,0.35); color: #FFB3AC; }

.pan__progress { height: 2px; background: var(--hair-2); margin: 0 var(--pad-x) 4rem; border-radius: 999px; overflow: hidden; }
.pan__progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--h1), var(--h2), var(--h3), var(--h4), var(--h5)); transform-origin: left; transform: scaleX(0.08); }

/* ============================================================
   LAB - the mix and match configurator
   ============================================================ */
.lab { padding: var(--sec-y) 0; }
.lab__head { display: grid; gap: 1.1rem; max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
/* six colourways, so the label-colour code is learned before the picker */
.lineup { position: relative; margin-bottom: clamp(1.4rem, 2.6vw, 2.2rem); }
.lineup img { width: 100%; aspect-ratio: 2200/400; object-fit: cover; }
.lineup__keys {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--hair-2);
  border-top: 1px solid var(--hair);
}
.lineup__key {
  background: var(--surface);
  padding: 0.7rem 0.8rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.lineup__swatch { width: 100%; height: 4px; border-radius: 999px; background: var(--kc); }
.lineup__key span {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone-dim);
  line-height: 1.3;
}

.lab__grid {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: clamp(1.2rem, 2.4vw, 2rem);
  align-items: start;
}

.tray { display: grid; gap: 1.6rem; }
.tray__title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.tray__title h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em; font-size: 1.05rem; }
.tray__hint { font-size: 0.78rem; color: var(--bone-faint); }

.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.picks--wide { grid-template-columns: repeat(2, 1fr); }

.pick {
  position: relative;
  text-align: left;
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: var(--r-core);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}
.pick:hover { transform: translateY(-3px); border-color: rgba(247,241,232,0.24); }
.pick:active { transform: scale(0.985); }
.pick.is-on { border-color: var(--pc, var(--brand)); background: var(--surface-2); }
.pick.is-on::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--pc, var(--brand)), inset 0 0 34px -8px var(--pc, var(--brand));
  pointer-events: none;
}
.pick__img { position: relative; overflow: hidden; }
.pick__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1s var(--ease), filter 0.6s var(--ease); filter: saturate(0.72) brightness(0.82); }
.pick.is-on .pick__img img, .pick:hover .pick__img img { filter: saturate(1.05) brightness(1); transform: scale(1.05); }
.pick__check {
  position: absolute;
  right: 0.6rem; top: 0.6rem;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: rgba(14,11,10,0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(247,241,232,0.22);
  display: grid; place-items: center;
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), background-color 0.4s var(--ease);
}
.pick.is-on .pick__check { transform: scale(1); opacity: 1; background: var(--pc, var(--brand)); border-color: transparent; }
.pick__check svg { display: block; }
.pick__flag {
  position: absolute;
  left: 0.6rem; top: 0.6rem;
  display: inline-flex;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(14,11,10,0.7), 0 4px 12px rgba(0,0,0,0.45);
}
.pick__flag .fi { width: 24px; height: 18px; display: block; }
.pick__body { padding: 0.8rem 0.85rem 0.95rem; display: grid; gap: 0.42rem; }
.pick__name { font-weight: 600; font-size: 0.9rem; line-height: 1.15; letter-spacing: -0.01em; }
.pick__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--bone-faint); }
.pick__heat { display: flex; gap: 2px; }
.pick__heat i { width: 5px; height: 5px; border-radius: 999px; background: rgba(247,241,232,0.18); }
.pick__heat i.on { background: var(--pc, var(--brand)); }
.pick__price { color: var(--bone-dim); }

/* readout: sticky jar */
.readout { position: sticky; top: 6.4rem; }
.readout__core { padding: 1.4rem 1.35rem 1.5rem; display: grid; gap: 1.2rem; }
.readout__jar {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink);
}
.readout__jar img { width: 100%; height: 100%; object-fit: cover; }
/* a scrim, not a colour wash. The jar shot already carries the colourway,
   so tinting it only muddied the photograph. This just seats the plate. */
.readout__jar::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(14,11,10,0.55) 0%, rgba(14,11,10,0.12) 34%, transparent 58%);
}
.readout__jar img { transition: opacity 0.5s var(--ease); }
.readout__jar.is-swap img { opacity: 0; }

/* live product label. The photographed band is deliberately blank so the
   real label is composed here and can describe any combination. */
.plate {
  position: absolute;
  left: 0.6rem; right: 0.6rem; bottom: 0.6rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pl, var(--brand));
  box-shadow: 0 14px 34px rgba(0,0,0,0.5);
  transition: background-color 0.7s var(--ease);
}
.plate__top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.5rem 0.7rem 0.4rem;
  color: #14100F;
}
.plate__mark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; text-transform: uppercase;
  font-size: 0.72rem; letter-spacing: -0.03em;
}
.plate__no {
  font-family: 'DM Mono', monospace;
  font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.72;
}
.plate__name {
  padding: 0 0.7rem 0.55rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.035em; line-height: 0.98;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  color: #14100F;
}
.plate__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.4rem 0.7rem 0.45rem;
  background: rgba(0,0,0,0.82);
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone);
}
.plate__flags { display: flex; gap: 0.25rem; align-items: center; }
.plate__flags .fi { width: 15px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }

/* exactly what is in the jar, so the mix is identifiable at a glance */
.mix { display: grid; gap: 0.55rem; }
.mix__strip { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mix__item {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid var(--mc, var(--hair));
  animation: chipIn 0.55s var(--ease) both;
}
.mix__item img { width: 100%; height: 100%; object-fit: cover; }
.mix__item .fi {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 15px; height: 11px;
  border-radius: 2px;
  box-shadow: 0 0 0 1.5px var(--surface);
}
.mix__none { font-size: 0.8rem; color: var(--bone-faint); }

/* fold-in texture preview: shows the actual paste with that fold-in through it */
.fold { display: grid; gap: 0.4rem; }
.fold__strip { display: grid; gap: 0.4rem; grid-auto-flow: column; grid-auto-columns: 1fr; }
.fold__cell { border-radius: 10px; overflow: hidden; border: 1px solid var(--hair); animation: chipIn 0.6s var(--ease) both; }
.fold__cell img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.readout__badgeSlot { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.readout__tier {
  display: flex; align-items: baseline; gap: 0.55rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 0.95;
  color: var(--tierC, var(--brand));
}
.readout__shu { font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--bone-dim); }
.readout__shu b { color: var(--bone); font-weight: 500; }

.rows { display: grid; gap: 0.05rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.5rem 0; font-size: 0.85rem; }
.row + .row { border-top: 1px solid var(--hair-2); }
.row__k { color: var(--bone-faint); }
.row__v { font-family: 'DM Mono', monospace; }
.row--total { border-top: 1px solid var(--hair); padding-top: 0.85rem; margin-top: 0.35rem; }
.row--total .row__k { color: var(--bone); font-size: 0.95rem; }
.row--total .row__v { font-size: 1.35rem; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.row__v s { color: var(--bone-faint); font-size: 0.78rem; margin-right: 0.45rem; font-weight: 400; }
.row--save .row__v { color: var(--h1); }

.readout__empty { text-align: center; padding: 1.6rem 0.6rem; display: grid; gap: 0.6rem; justify-items: center; }
.readout__empty p { margin: 0; font-size: 0.85rem; color: var(--bone-faint); max-width: 24ch; }
.pulseDot { width: 34px; height: 34px; border-radius: 999px; border: 1px dashed rgba(247,241,232,0.28); display: grid; place-items: center; animation: breathe 2.8s var(--ease) infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.09); opacity: 1; } }

.flash { animation: flash 0.55s var(--ease); }
@keyframes flash { 0% { transform: scale(1); } 40% { transform: scale(1.035); } 100% { transform: scale(1); } }

/* unlocked badge chip */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.26rem 0.62rem 0.26rem 0.32rem;
  border-radius: 999px;
  background: rgba(14,11,10,0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(247,241,232,0.16);
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  animation: chipIn 0.7s var(--ease) both;
}
.chip i { width: 16px; height: 16px; border-radius: 999px; background: var(--bc, var(--brand)); flex: none; }
@keyframes chipIn { from { transform: translateY(8px) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   BADGES - bento, exact cell count, mixed backgrounds
   ============================================================ */
.badges { padding: var(--sec-y) 0; }
.badges__head { display: grid; gap: 1.05rem; max-width: 58ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
}
.cell { position: relative; overflow: hidden; border-radius: var(--r-core); border: 1px solid var(--hair); background: var(--surface); padding: 1.25rem; display: grid; align-content: end; gap: 0.5rem; min-height: 190px; transition: transform 0.7s var(--ease), border-color 0.5s var(--ease); }
.cell:hover { transform: translateY(-4px); border-color: rgba(247,241,232,0.22); }
.cell--wide { grid-column: span 2; }
.cell--wideLg { grid-column: span 2; }
.cell--tall { grid-row: span 2; min-height: 0; }
.cell--photo { padding: 0; align-content: stretch; }
.cell--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.cell--photo:hover img { transform: scale(1.05); }
.cell--photo .cell__over { position: absolute; inset: auto 0 0 0; padding: 1.25rem; background: linear-gradient(to top, rgba(14,11,10,0.92), transparent); display: grid; gap: 0.35rem; }
.cell--tint { background: linear-gradient(148deg, var(--brand-deep), #6A0B05 62%, #2A0704); border-color: rgba(255,46,31,0.3); }
.cell--lime { background: linear-gradient(148deg, #5E7A12, #2C3A08); border-color: rgba(196,240,74,0.24); }

.seal {
  width: 62px; height: 62px;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--sc, var(--hair));
  color: var(--sc, var(--bone));
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 1.32rem; letter-spacing: -0.04em;
  background: rgba(14,11,10,0.4);
  transition: transform 0.7s var(--ease);
}
.cell:hover .seal { transform: rotate(-9deg) scale(1.06); }
.cell__name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; font-size: 1.05rem; line-height: 1.05; }
.cell__how { font-size: 0.8rem; color: var(--bone-dim); line-height: 1.4; margin: 0; }
.cell__rare { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--bone-faint); }

/* ============================================================
   GIFT - full-width color block + live calculator
   ============================================================ */
.gift { background: var(--ink-2); padding: var(--sec-y) 0; overflow: hidden; }
.gift::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(46% 60% at 84% 22%, rgba(196,240,74,0.10), transparent 70%);
  pointer-events: none;
}
.gift__top { display: grid; gap: 1.15rem; max-width: 56ch; margin-bottom: clamp(2.2rem, 4vw, 3.6rem); }
.gift__grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center; }
.gift__art .shell { transform: rotate(1.4deg); }
.gift__art img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.steps { display: grid; gap: 0.9rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.05rem 1.15rem; border-radius: var(--r-core); border: 1px solid var(--hair); background: var(--surface); }
.step__ico { width: 38px; height: 38px; border-radius: 999px; background: var(--brand-soft); border: 1px solid rgba(255,46,31,0.3); display: grid; place-items: center; flex: none; }
.step h4 { margin: 0 0 0.22rem; font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 0.85rem; color: var(--bone-dim); line-height: 1.45; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-top: 0.4rem; }
.tierBtn {
  border: 1px solid var(--hair);
  background: var(--surface);
  border-radius: var(--r-core);
  padding: 0.95rem 0.7rem;
  cursor: pointer;
  display: grid; gap: 0.22rem;
  text-align: center;
  transition: transform 0.55s var(--ease), border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}
.tierBtn:hover { transform: translateY(-3px); border-color: rgba(196,240,74,0.4); }
.tierBtn:active { transform: scale(0.98); }
.tierBtn.is-on { border-color: var(--h1); background: rgba(196,240,74,0.09); }
.tierBtn b { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em; color: var(--h1); }
.tierBtn span { font-size: 0.73rem; color: var(--bone-faint); line-height: 1.3; }

/* ============================================================
   HALL OF FAME - drag-pan rail (auto drift)
   ============================================================ */
.hall { padding: var(--sec-y) 0 calc(var(--sec-y) * 0.7); }
.hall__head { display: grid; gap: 1.05rem; max-width: 56ch; margin-bottom: clamp(1.8rem, 3.4vw, 2.8rem); }
.rail {
  display: flex;
  gap: clamp(0.8rem, 1.6vw, 1.3rem);
  padding-inline: var(--pad-x);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.fame {
  flex: none;
  width: clamp(238px, 25vw, 320px);
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--r-core);
  overflow: hidden;
  border: 1px solid var(--hair);
  background: var(--surface);
}
.fame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; user-select: none; -webkit-user-drag: none; transition: transform 1.3s var(--ease); }
.fame:hover img { transform: scale(1.045); }
.fame__over { position: absolute; inset: auto 0 0 0; padding: 1.1rem; background: linear-gradient(to top, rgba(14,11,10,0.95) 12%, rgba(14,11,10,0.55) 55%, transparent); display: grid; gap: 0.5rem; }
/* long names (two people on one card) drop the city to its own line
   instead of squeezing it */
.fame__who { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.1rem 0.6rem; }
.fame__name { font-weight: 600; font-size: 0.94rem; letter-spacing: -0.01em; flex: 1 1 auto; min-width: 0; }
.fame__city { flex: 0 0 auto; }
.fame__city { font-family: 'DM Mono', monospace; font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-faint); }
.fame__build { font-size: 0.78rem; color: var(--bone-dim); line-height: 1.35; margin: 0; }
.fame__pins { display: flex; gap: 0.28rem; align-items: center; }
.fame__pins i { width: 17px; height: 17px; border-radius: 999px; border: 1px solid rgba(247,241,232,0.2); }
.fame__pins b { font-family: 'DM Mono', monospace; font-size: 0.62rem; color: var(--bone-faint); font-weight: 400; letter-spacing: 0.08em; }

.fame--join { display: grid; place-content: center; gap: 0.9rem; padding: 1.6rem; text-align: center; background: linear-gradient(148deg, var(--surface-2), var(--surface)); aspect-ratio: 4/5; justify-items: center; }
.fame--join p { margin: 0; font-size: 0.83rem; color: var(--bone-dim); max-width: 22ch; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: var(--sec-y) 0; border-top: 1px solid var(--hair); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__intro { display: grid; gap: 1.15rem; }
.contact__lines { display: grid; gap: 0.9rem; margin-top: 0.7rem; }
.contact__line { display: grid; gap: 0.15rem; }
.contact__line dt { font-family: 'DM Mono', monospace; font-size: 0.63rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint); }
.contact__line dd { margin: 0; font-size: 0.98rem; }
.contact__line a:hover { color: var(--brand); }

form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: 0.42rem; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--bone); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border-radius: var(--r-input);
  border: 1px solid rgba(247,241,232,0.20);
  background: #100C0B;
  color: var(--bone);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.45s var(--ease), background-color 0.45s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8C837A; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #171110; }
.field__help { font-size: 0.76rem; color: var(--bone-faint); }
.field__err { font-size: 0.78rem; color: #FF8E82; min-height: 0; }
.field.has-err input, .field.has-err textarea { border-color: #FF8E82; }
.fieldRow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }

.formNote { font-size: 0.8rem; color: var(--bone-faint); margin: 0; }
.formOk {
  border: 1px solid rgba(196,240,74,0.34);
  background: rgba(196,240,74,0.08);
  border-radius: var(--r-core);
  padding: 1.05rem 1.15rem;
  display: grid; gap: 0.3rem;
}
.formOk b { font-weight: 600; }
.formOk p { margin: 0; font-size: 0.85rem; color: var(--bone-dim); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--hair); padding: 2.6rem 0 3rem; }
.foot__grid { display: flex; flex-wrap: wrap; gap: 1.4rem 2.5rem; align-items: center; justify-content: space-between; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: 0.86rem; color: var(--bone-dim); }
.foot__links a:hover { color: var(--bone); }
.foot__legal { font-size: 0.78rem; color: var(--bone-faint); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .lab__grid { grid-template-columns: 1fr; }
  .readout { position: static; }
  .readout__core { grid-template-columns: 0.8fr 1.2fr; display: grid; align-items: start; }
  .readout__jar { grid-row: span 3; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell--wide { grid-column: span 2; }
  /* 12 cells over 2 columns only tiles without a hole when exactly two
     cells are full width, so this one drops back to a single column */
  .cell--wideLg { grid-column: span 1; }
  .cell--tall { grid-row: span 1; min-height: 190px; }
}

@media (max-width: 900px) {
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .gift__grid { grid-template-columns: 1fr; }
  .gift__art { order: 2; }
  .gift__art .shell { transform: none; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sec-y: clamp(4.2rem, 14vw, 6rem); }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__pill { width: 100%; padding-left: 1.15rem; }
  .picks { grid-template-columns: repeat(2, 1fr); }
  .picks--wide { grid-template-columns: 1fr; }
  .readout__core { grid-template-columns: 1fr; }
  /* the jar shots are 4:5, so keep that box and never crop the product */
  .readout__jar { grid-row: auto; aspect-ratio: 4/5; }
  .bento { grid-template-columns: 1fr; gap: 0.8rem; }
  .cell--wide, .cell--wideLg, .cell--tall { grid-column: span 1; grid-row: span 1; }
  .tiers { grid-template-columns: 1fr; }
  .fieldRow { grid-template-columns: 1fr; }
  .lineup__keys { grid-template-columns: repeat(3, 1fr); }
  .fold__strip { grid-auto-flow: row; grid-auto-columns: auto; }
  .pan__track { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 2.4rem; scrollbar-width: none; }
  .pan__track::-webkit-scrollbar { display: none; }
  .chili { scroll-snap-align: start; width: 76vw; }
  .pan__progress { display: none; }
}

@media (max-width: 420px) {
  .picks { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .line > span { transform: none !important; }
  .grain { animation: none; }
  .pan__track { transform: none !important; flex-wrap: nowrap; overflow-x: auto; }
  .axis__fill { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav__pill { background: #16100F; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu { background: #0E0B0A; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ============================================================
   PLATE INK VARIANT
   The Reaper colourway is near-black, so its label flips to
   light ink. Every other colourway stays dark on bright.
   ============================================================ */
.plate[data-ink="light"] .plate__top,
.plate[data-ink="light"] .plate__name { color: var(--bone); }
.plate[data-ink="light"] .plate__foot { background: rgba(247,241,232,0.10); }

/* ============================================================
   VIDEO BAND - full bleed, muted, decorative
   ============================================================ */
.reel { position: relative; overflow: hidden; background: var(--ink-2); }
.reel__media { position: relative; }
.reel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  object-fit: cover;
  display: block;
}
.reel__poster { width: 100%; aspect-ratio: 16/9; max-height: 78vh; object-fit: cover; }
.reel::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(14,11,10,0.72), transparent 26%, transparent 62%, rgba(14,11,10,0.85));
}
.reel__over {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 0 var(--pad-x) clamp(1.6rem, 4vw, 3.2rem);
}
.reel__over div {
  max-width: var(--shell-max);
  margin-inline: auto;
  display: grid;
  gap: 0.5rem;
}
.reel__line {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.035em; line-height: 0.95;
  font-size: clamp(1.6rem, 4.4vw, 3.4rem);
  margin: 0;
  max-width: 22ch;
}
.reel__sub { margin: 0; font-size: 0.92rem; color: var(--bone-dim); max-width: 40ch; }
.reel__mute {
  position: absolute;
  z-index: 3;
  right: var(--pad-x); top: clamp(1rem, 3vw, 2rem);
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(247,241,232,0.22);
  background: rgba(14,11,10,0.6);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease);
}
.reel__mute:hover { transform: scale(1.06); background: rgba(14,11,10,0.8); }

/* ============================================================
   PIN MECHANICS - how the collection actually works
   ============================================================ */
.howpin { margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
/* the scrim and the steps must anchor to the photograph, not to the
   outer shell, or they overhang the image by the shell's padding */
.howpin .core { position: relative; }
.howpin img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.howpin__scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(14,11,10,0.94) 0%, rgba(14,11,10,0.72) 32%, rgba(14,11,10,0.12) 68%, transparent);
  border-radius: var(--r-core);
}
.howpin__steps {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 2vw, 2rem);
  padding: clamp(1rem, 2.4vw, 1.8rem);
}
.howpin__step { display: grid; gap: 0.35rem; align-content: end; }
.howpin__step h4 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  display: flex; align-items: center; gap: 0.45rem;
}
.howpin__step h4 i { color: var(--brand); font-size: 1.1em; }
.howpin__step p { margin: 0; font-size: 0.84rem; line-height: 1.4; color: var(--bone-dim); }

/* live tally of what the current build already earns */
.tally {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.1rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--r-core);
  border: 1px solid var(--hair);
  background: var(--surface);
  margin-bottom: clamp(1.4rem, 2.6vw, 2.2rem);
}
.tally__count {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; letter-spacing: -0.03em;
  font-size: 1.3rem;
  color: var(--h1);
}
.tally__txt { font-size: 0.88rem; color: var(--bone-dim); margin: 0; flex: 1 1 16ch; }
.tally__bar { flex: 1 1 100%; height: 4px; border-radius: 999px; background: rgba(247,241,232,0.1); overflow: hidden; }
.tally__bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--h1), var(--h2), var(--h4));
  transform-origin: left;
  transform: scaleX(var(--v, 0));
  transition: transform 0.9s var(--ease);
}

/* pin lock state on each bento cell */
.cell__state {
  position: absolute;
  right: 0.85rem; top: 0.85rem;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 0.32rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(247,241,232,0.18);
  background: rgba(14,11,10,0.74);
  backdrop-filter: blur(8px);
  font-family: 'DM Mono', monospace;
  font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}
.cell.is-got .cell__state {
  color: #14100F;
  background: var(--h1);
  border-color: transparent;
}
.cell.is-got { border-color: var(--h1); }
.cell__rule {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.56rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 0.1rem;
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.co { padding: 8rem 0 var(--sec-y); }
.co__head { display: grid; gap: 0.9rem; max-width: 52ch; margin-bottom: clamp(1.8rem, 3.4vw, 2.8rem); }
.co__grid { display: grid; grid-template-columns: 1.28fr 0.72fr; gap: clamp(1.2rem, 2.4vw, 2rem); align-items: start; }
.co__col { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }

.block { padding: 6px; border-radius: var(--r-shell); background: rgba(247,241,232,0.035); border: 1px solid var(--hair); }
.block__in { border-radius: var(--r-core); background: var(--surface); padding: 1.3rem 1.35rem 1.4rem; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.block__title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.block__title h2, .block__title h3 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.block__title span { font-size: 0.78rem; color: var(--bone-faint); }

/* one jar in the box */
.jarline { display: grid; grid-template-columns: 74px 1fr auto; gap: 1rem; padding: 1.1rem 0; align-items: start; }
.jarline + .jarline { border-top: 1px solid var(--hair-2); }
.jarline__thumb { border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); }
.jarline__thumb img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.jarline__body { display: grid; gap: 0.5rem; min-width: 0; }
.jarline__name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em;
  font-size: 1.02rem; line-height: 1.05;
}
.jarline__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.7rem; font-family: 'DM Mono', monospace; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-faint); }
.jarline__meta b { color: var(--tc, var(--bone)); font-weight: 400; }
.jarline__chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.jarline__chips .mix__item { width: 30px; height: 30px; }
.jarline__right { display: grid; gap: 0.5rem; justify-items: end; }
.jarline__price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.03em; font-size: 1.1rem; }
.iconbtn {
  border: 1px solid var(--hair); background: transparent;
  width: 30px; height: 30px; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer;
  color: var(--bone-faint);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.iconbtn:hover { color: var(--brand); border-color: rgba(255,46,31,0.5); transform: scale(1.06); }

/* gift toggle inside a jar row */
.giftbox { margin-top: 0.4rem; display: grid; gap: 0.6rem; }
.check { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.85rem; }
.check input { appearance: none; margin: 0; width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1px solid rgba(247,241,232,0.28); background: #100C0B; display: grid; place-items: center; cursor: pointer; transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease); }
.check input:checked { background: var(--h1); border-color: var(--h1); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #14100F; border-bottom: 2px solid #14100F; transform: rotate(-45deg) translateY(-1px); }
.giftfields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

/* order summary */
.sum { position: sticky; top: 6.4rem; }
.sum__pins { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }
.sum__note { font-size: 0.78rem; color: var(--bone-faint); margin: 0.6rem 0 0; }
.sum__earn { border-top: 1px solid var(--hair); margin-top: 1rem; padding-top: 1rem; display: grid; gap: 0.4rem; }

.notice {
  display: grid; gap: 0.3rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-input);
  border: 1px solid rgba(255,182,39,0.3);
  background: rgba(255,182,39,0.07);
  font-size: 0.8rem;
  color: var(--bone-dim);
}
.notice b { color: var(--h2); font-weight: 600; }

.paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.paygrid .field:first-child { grid-column: span 2; }

.empty { display: grid; gap: 1.1rem; justify-items: start; padding: 2.4rem 0; }

.done { display: grid; gap: 1rem; justify-items: start; max-width: 54ch; }
.done__seal {
  width: 64px; height: 64px; border-radius: 999px;
  background: var(--h1); color: #14100F;
  display: grid; place-items: center; font-size: 1.8rem;
}

@media (max-width: 1080px) {
  .co__grid { grid-template-columns: 1fr; }
  .sum { position: static; }
}
@media (max-width: 768px) {
  .co { padding-top: 6.6rem; }
  .howpin__steps { position: static; grid-template-columns: 1fr; gap: 0.9rem; padding: 1.1rem 0 0; }
  .howpin__scrim { display: none; }
  .howpin img { border-radius: var(--r-core); }
  .jarline { grid-template-columns: 60px 1fr; }
  .jarline__right { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; align-items: center; justify-content: space-between; width: 100%; }
  .giftfields { grid-template-columns: 1fr; }
  .paygrid { grid-template-columns: 1fr; }
  .paygrid .field:first-child { grid-column: span 1; }
  .reel__line { font-size: clamp(1.4rem, 7vw, 2.2rem); }
}

/* ============================================================
   FILM HERO - scroll-driven
   The section is tall and the stage is position:sticky. Scroll
   position drives video.currentTime, so scrolling down literally
   rains the chilies in and assembles the jar. GSAP only reads
   progress here; it never pins or reparents anything, which keeps
   the layout out of reach of pin-spacer bugs.
   ============================================================ */
.filmhero { position: relative; height: 360vh; }
.filmhero__stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: end start;
  background: var(--ink);
}
.filmhero__vid,
.filmhero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The poster is the permanent floor and the video fades in above it, so a
   browser that cannot paint the video falls back to frame 0 rather than to
   black. Fading the poster out instead made the hero depend on the decoder. */
.filmhero__poster { z-index: 0; }
.filmhero__vid { z-index: 1; opacity: 0; transition: opacity 0.8s var(--ease); }
.filmhero.is-live .filmhero__vid { opacity: 1; }

.filmhero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(14,11,10,0.94) 0%, rgba(14,11,10,0.55) 34%, rgba(14,11,10,0.06) 66%, rgba(14,11,10,0.5) 100%),
    radial-gradient(90% 70% at 20% 80%, rgba(14,11,10,0.6), transparent 70%);
}

.filmhero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 0 var(--pad-x) clamp(3.5rem, 9vh, 6.5rem);
  display: grid;
  gap: 1.35rem;
  justify-items: start;
}
.filmhero h1 { max-width: 14ch; }
.filmhero h1 em { font-style: normal; color: var(--brand); }
.filmhero .lede { max-width: 42ch; }
.filmhero__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* each headline line rides its own mask */
.filmhero .line > span { transform: translateY(105%); transition: none; }

/* film timeline: where you are in the shot, not a nag to scroll */
.filmhero__bar {
  position: absolute;
  z-index: 3;
  left: var(--pad-x); right: var(--pad-x); bottom: clamp(1.4rem, 3.5vh, 2.4rem);
  height: 2px;
  border-radius: 999px;
  background: rgba(247,241,232,0.16);
  overflow: hidden;
}
.filmhero__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--h2), var(--h4));
  transform-origin: left;
  transform: scaleX(0);
}

@media (max-width: 768px) {
  /* no scrubbing on touch: seeking is unreliable and costs battery.
     The film plays itself behind a static headline instead. */
  .filmhero { height: auto; }
  .filmhero__stage { position: static; height: 100dvh; }
  .filmhero__inner { padding-bottom: clamp(3rem, 8vh, 4.5rem); }
  .filmhero .line > span { transform: none; }
  .filmhero__bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .filmhero { height: auto; }
  .filmhero__stage { position: static; height: 100dvh; }
  .filmhero .line > span { transform: none !important; }
  .filmhero__bar { display: none; }
}
