/* ==========================================================================
   VELOR — energy gel for runners
   Monochrome system: ink on paper, paper on ink. Motion carries the brand.
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --mute: #737373;
  --mute-inv: #8c8c8c;
  --line: rgba(10, 10, 10, .09);
  --line-inv: rgba(255, 255, 255, .14);
  --ghost: #f3f3f3;

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "South Ghetto", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1360px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

@font-face {
  font-family: "South Ghetto";
  src: url("assets/fonts/southghetto.woff2") format("woff2"), url("assets/fonts/southghetto.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, dl, dd { margin: 0; padding: 0; }
ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
[hidden] { display: none !important; }
html.cart-lock, html.cart-lock body { overflow: hidden; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- split-line reveal ---------- */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
[data-split].in .w > span { transform: none; }

/* ==========================================================================
   NAV — solid frosted bar; switches to a dark bar over black sections
   ========================================================================== */
:root { --nav-h: 68px; --sec-y: clamp(88px, 11vh, 120px); --head-gap: clamp(32px, 4.5vh, 48px); }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.nav.nav--dark {
  color: var(--paper);
  background: rgba(10, 10, 10, .9);
  border-bottom-color: var(--line-inv);
}
.logo { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; }
.logo span { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .14em; margin-right: -.14em; line-height: 1; }
.nav-links { display: flex; gap: 6px; font-size: 14px; }
.nav-links a {
  padding: 8px 14px; border-radius: 0; opacity: .72;
  transition: opacity .2s, background-color .2s;
}
.nav-links a:hover { opacity: 1; background: rgba(10, 10, 10, .05); }
.nav--dark .nav-links a:hover { background: rgba(255, 255, 255, .08); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.nav-shop {
  padding: 10px 20px; border-radius: 0; background: var(--ink); color: var(--paper); font-weight: 500;
  transition: transform .16s var(--ease-out), background-color .2s, color .35s;
}
.nav--dark .nav-shop { background: var(--paper); color: var(--ink); }
.nav-shop:active { transform: scale(.96); }
.nav-cart { padding: 0 6px 0 12px; border-radius: 0; transition: background-color .2s; }
.nav-cart:hover { background: rgba(10, 10, 10, .05); }
.nav--dark .nav-cart:hover { background: rgba(255, 255, 255, .08); }
.nav-cart { display: inline-flex; align-items: center; gap: 8px; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border: 1px solid currentColor; border-radius: 0; font-family: var(--mono); font-size: 11px;
}
.cart-count.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ==========================================================================
   INTRO — hero, then a black disc rises out of the packs and swallows the page
   ========================================================================== */
.intro { position: relative; height: 340vh; background: var(--ink); }
.intro-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }

.hero { position: absolute; inset: 0; }

.hero-copy {
  position: absolute; left: 0; right: 0; top: 38%; transform: translateY(-50%);
  text-align: center; padding: 0 var(--gutter);
  will-change: transform, opacity;
}
.hero-title {
  font-weight: 600;
  font-size: clamp(40px, 7.2vw, 112px);
  line-height: .95;
  letter-spacing: -.045em;
  max-width: 17ch; margin: 0 auto;
}
.hero-cta { display: none; }

/* six packs, half-submerged at the bottom edge */
.packs {
  --w: clamp(52px, 11.4vw, 180px);
  --raise: 20px;
  /* the old six-column grid left (column - pack) between packs; keep 85% of that */
  --gap: calc(((min(100vw, var(--max)) - 2 * var(--gutter)) / 6 - var(--w)) * .85);
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: var(--max); padding: 0 var(--gutter);
  display: flex; justify-content: center; gap: var(--gap);
  height: 0; /* packs hang from the bottom edge */
}
.pack {
  --hide: 46%; --show: .54;
  position: relative; flex: 0 0 auto;
  width: var(--w); height: 0;
  outline: none;
}
.pack-body {
  position: absolute; left: 0; bottom: 0; width: var(--w); display: block;
  transform: translate3d(0, calc(100% + 40px), 0);
  transition: transform 1.25s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + 250ms);
}
.pack-img {
  width: 100%; height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .1));
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.loaded .pack-body { transform: translate3d(0, calc(var(--hide, 50%) - var(--lift, 0%) + var(--sink, 0px) - var(--raise, 0px)), 0) rotate(var(--rot, 0deg)); }
.pack-body { transform-origin: 50% 80%; }
.loaded .pack.ready .pack-body { transition: transform .7s var(--ease-out); transition-delay: 0s; }
.loaded .pack.ready.sunk .pack-body { transition: none; }
/* Fixed hit area = the resting visible part of the pack. The artwork moves,
   the hit area doesn't, so the lift can't slide out from under the cursor. */
.pack::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: var(--w);
  height: calc(var(--w) * 2.82 * var(--show, .5) + var(--raise, 0px));
}
.pack-body { pointer-events: none; }
.pack.sunk { pointer-events: none; }
.pack:focus-visible::after {
  content: ""; position: absolute; left: 50%; bottom: 14px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--paper); z-index: 2;
}

/* only the pack under the cursor moves */
@media (hover: hover) and (pointer: fine) {
  .pack:hover { --lift: 16%; }
}
.pack:focus-visible { --lift: 16%; }

/* the black disc */
.blackout {
  position: absolute; inset: 0; background: var(--ink); color: var(--paper);
  clip-path: circle(0px at 50% 100%);
  display: grid; place-items: center; padding: 0 var(--gutter);
  pointer-events: none;
  will-change: clip-path;
}
.blackout.full { pointer-events: auto; }
/* triptych above the manifesto: three photos share one height, keep their own shapes */
.mf {
  --gap: clamp(10px, 1.2vw, 18px);
  --ph: min(46vh, calc((min(100vw, var(--max)) - 2 * var(--gutter) - 2 * var(--gap)) / 2.8));
  width: 100%;
  padding-top: var(--nav-h);
  display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 5vh, 56px);
}
.mf-photos { display: flex; gap: var(--gap); justify-content: center; }
.mf-photo {
  --r: 0;
  margin: 0; height: var(--ph); overflow: hidden; background: #161616;
  clip-path: inset(calc((1 - var(--r)) * 100%) 0 0 0);
}
.mf-photo--sq { aspect-ratio: 1 / 1; }
.mf-photo--tall { aspect-ratio: 4 / 5; }
.mf-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(calc(1.14 - .14 * var(--r))); transform-origin: 50% 70%;
  filter: grayscale(1) contrast(1.04);
}
.manifesto {
  width: min(100%, 15.25em);
  font-weight: 500;
  font-size: clamp(24px, min(3vw, 5.2vh), 46px);
  line-height: 1.06;
  letter-spacing: -.035em;
  text-align: justify;
  text-align-last: left;
  -webkit-hyphens: none; hyphens: none;
  word-spacing: -.02em;
}
.manifesto .mw { opacity: .14; transition: opacity .35s ease; }
.manifesto .mw.on { opacity: 1; }

/* ==========================================================================
   SECTION HEADS
   ========================================================================== */
.sec-head { display: flex; flex-direction: column; gap: 18px; }
.sec-head h2, .formula-head h2, .foot-offer h2 {
  font-weight: 600;
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: .96;
  letter-spacing: -.045em;
}

/* ==========================================================================
   FLAVOURS — white sheet rising over black, its corners flattening as it lands
   ========================================================================== */
.flavours {
  position: relative; z-index: 2;
  background: var(--paper);
  margin-top: -1px;
  padding: calc(var(--nav-h) + clamp(40px, 6vh, 64px)) 0 var(--sec-y);
  border-radius: var(--r, 48px) var(--r, 48px) 0 0;
  min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.fl {
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.25fr) minmax(240px, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  margin-top: var(--head-gap);
}

.fl-list { border-top: 1px solid var(--line); }
.fl-item { border-bottom: 1px solid var(--line); }
.fl-btn {
  width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px;
  padding: 17px 0; text-align: left; font-size: 18px; letter-spacing: -.015em;
  color: #a3a3a3; transition: color .3s ease;
  position: relative;
}
.fl-btn .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border: 1px solid currentColor; border-radius: 0; opacity: .8; }
.fl-btn::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.fl-btn:hover { color: var(--ink); }
.fl-btn[aria-selected="true"] { color: var(--ink); }
.fl-btn[aria-selected="true"]::before { transform: scaleX(1); }
.fl-btn .name { transition: transform .45s var(--ease-out); }
.fl-btn:hover .name, .fl-btn[aria-selected="true"] .name { transform: translateX(6px); }

.fl-stage {
  position: relative; height: clamp(380px, 58vh, 580px);
}
.fl-list, .fl-info { position: relative; z-index: 1; }
.fl-float {
  position: absolute; inset: 0;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .14));
  animation: float 6s ease-in-out infinite;
}
.fl-pack {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; height: 100%; width: auto;
  will-change: transform, opacity;
}
@keyframes float { 50% { translate: 0 -10px; } }
/* soft-edged fill used while one pack replaces another */
.fl-pack.fl-filling {
  -webkit-mask-image: linear-gradient(to top, #000 47%, transparent 53%);
          mask-image: linear-gradient(to top, #000 47%, transparent 53%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 100%; mask-position: 0 100%;
}
.fl-info { display: flex; flex-direction: column; gap: 22px; }
.fl-name { font-weight: 600; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.035em; line-height: 1; }
.fl-note { color: var(--mute); font-size: 17px; margin-top: -8px; }
.fl-specs { border-top: 1px solid var(--line); }
.fl-specs div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fl-specs dt { color: var(--mute); font-size: 14px; }
.fl-specs dd { font-family: var(--mono); font-size: 13px; }
.swap { animation: swap .6s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  height: 56px; padding: 0 8px 0 24px; border-radius: 0;
  font-weight: 500; font-size: 15px;
  transition: transform .16s var(--ease-out);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-price { font-family: var(--mono); font-size: 12px; height: 40px; padding: 0 16px; display: grid; place-items: center; border-radius: 0; transition: background-color .3s, color .3s; }
.btn--ink { background: var(--ink); color: var(--paper); align-self: flex-start; min-width: 260px; }
.btn--ink .btn-price { background: rgba(255, 255, 255, .12); }
.btn--paper { background: var(--paper); color: var(--ink); min-width: 260px; }
.btn--paper .btn-price { background: rgba(0, 0, 0, .07); }
.btn { transition: transform .16s var(--ease-out), background-color .2s ease; }
@media (hover: hover) {
  .btn--ink:hover { background: #2b2b2b; }
  .btn--paper:hover { background: #e6e6e6; }
  .nav-shop:hover, .hero-cta:hover { background: #2b2b2b; }
  .nav--dark .nav-shop:hover { background: #e6e6e6; }
  .btn:disabled:hover { background: var(--ink); }
}

/* ==========================================================================
   FORMULA — a plain black band: heading, then four numbers in a row
   ========================================================================== */
.formula { position: relative; background: var(--ink); }
.formula-stage { position: relative; }
.formula-panel {
  position: relative; background: var(--ink); color: var(--paper);
  padding: clamp(72px, 9vh, 96px) 0 clamp(80px, 10vh, 104px);
}
.formula-head { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.track {
  width: 100%; max-width: var(--max); margin: var(--head-gap) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 40px);
}
.stat {
  padding-top: 20px; border-top: 1px solid var(--line-inv);
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translate3d(0, 24px, 0);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.formula-panel.in .stat { opacity: 1; transform: none; }
.stat:nth-child(2) { --i: 1; } .stat:nth-child(3) { --i: 2; } .stat:nth-child(4) { --i: 3; }
.stat-n {
  font-weight: 600; font-size: clamp(48px, 5vw, 80px); line-height: .9; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums; margin: 6px 0 8px -.03em; white-space: nowrap;
}
.stat-n small { font-size: .36em; letter-spacing: -.01em; margin-left: .12em; color: var(--mute-inv); font-weight: 500; }
.stat h3 { font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.stat p:last-child { color: var(--mute-inv); font-size: 15px; max-width: 30ch; }
.formula-bar { display: none; }

/* ==========================================================================
   PROTOCOL — the course draws itself as you read
   ========================================================================== */
.protocol {
  position: relative; z-index: 2; background: var(--paper);
  padding: var(--sec-y) 0;
}
.route { position: relative; margin-top: var(--head-gap); }
.route-svg { width: 100%; height: clamp(120px, 18vh, 190px); overflow: visible; }
.route-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.route-line {
  fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1);
}
.route-fill { fill: var(--ink); opacity: calc((1 - var(--draw, 1)) * .045); }
.route-km {
  display: flex; justify-content: space-between; margin-top: 14px;
  font-family: var(--mono); font-size: 11px; color: var(--mute);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); margin-top: clamp(36px, 5vh, 56px); }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); opacity: .22; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.step::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out);
}
.step.on { opacity: 1; transform: none; }
.step.on::before { transform: scaleX(1); }
.step-t { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.step h3 { font-weight: 600; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; line-height: 1.1; margin: 14px 0 10px; }
.step p { color: var(--mute); max-width: 32ch; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
main { position: relative; z-index: 2; background: var(--paper); }
.foot {
  position: relative;
  background: var(--ink); color: var(--paper);
  padding: var(--sec-y) 0 0;
}
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; padding-bottom: clamp(48px, 7vh, 72px); }
.foot-offer { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.foot-news { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.foot-news label { color: var(--mute-inv); font-size: 14px; }
.field { display: flex; border-bottom: 1px solid var(--line-inv); transition: border-color .3s; }
.field:focus-within { border-color: var(--paper); }
.field input { flex: 1; min-width: 0; background: none; border: 0; color: var(--paper); font: inherit; font-size: 17px; padding: 12px 0; outline: none; }
.field input::placeholder { color: #5c5c5c; }
.field button { width: 44px; font-size: 20px; transition: transform .3s var(--ease-out); }
.field button:hover { transform: translateX(4px); }
.field-msg { font-family: var(--mono); font-size: 11px; min-height: 1em; color: var(--mute-inv); }

.foot-mid {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start;
  padding: 36px 0 40px; border-top: 1px solid var(--line-inv);
}
.foot-logo { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .14em; line-height: 1; justify-self: start; }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(40px, 7vw, 112px); }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-cols p { font-size: 13px; color: var(--mute-inv); margin-bottom: 6px; }
.foot-cols a { font-size: 15px; color: #d4d4d4; transition: color .2s; }
.foot-cols a:hover { color: var(--paper); }

.foot-base {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 0 calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-inv);
  font-size: 13px; color: var(--mute-inv);
}
.foot-base a { transition: color .2s; }
.foot-base a:hover { color: var(--paper); }

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
.cart-scrim {
  position: fixed; inset: 0; z-index: 70; background: rgba(10, 10, 10, .42);
  opacity: 0; transition: opacity .45s var(--ease-out);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.cart-scrim.open { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(440px, 100vw);
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform .55s cubic-bezier(.32, .72, 0, 1);
  visibility: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
.cart.open { transform: none; visibility: visible; }
.cart:not(.open) { transition: transform .45s cubic-bezier(.32, .72, 0, 1), visibility 0s .45s; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.cart-head h2 span {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 0; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px; font-weight: 500;
}
.cart-x { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; border-radius: 0; transition: background-color .2s, transform .16s var(--ease-out); }
.cart-x:hover { background: var(--ghost); }
.cart-x:active { transform: scale(.94); }
.cart-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.cart-ship { padding: 16px 24px; border-bottom: 1px solid var(--line); }
.cart-ship p { font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.cart-ship-bar { display: block; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.cart-ship-bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease-out); }

.cart-items { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px; -webkit-overflow-scrolling: touch; }
.ci { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); animation: ciIn .5s var(--ease-out); }
@keyframes ciIn { from { opacity: 0; transform: translateY(6px); } }
.ci-img { height: 104px; border-radius: 12px; background: var(--ghost); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding-top: 10px; }
.ci-img img { height: 116%; width: auto; transform: translateY(14%); flex: 0 0 auto; }
.ci-img--box img { height: 96%; transform: translateY(18%); }
.ci-img--box img + img { margin-left: -16px; }
.ci-body { display: flex; flex-direction: column; min-width: 0; }
.ci-top { display: flex; justify-content: space-between; gap: 12px; }
.ci-name { font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.ci-price { font-family: var(--mono); font-size: 13px; white-space: nowrap; padding-top: 2px; }
.ci-sub { font-size: 13px; color: var(--mute); margin-top: 2px; }
.ci-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 0; height: 36px; }
.qty button { width: 36px; height: 36px; display: grid; place-items: center; font-size: 16px; border-radius: 0; transition: background-color .2s; }
.qty button:hover:not(:disabled) { background: var(--ghost); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty span { min-width: 24px; text-align: center; font-family: var(--mono); font-size: 13px; }
.ci-remove { font-size: 13px; color: var(--mute); padding: 8px 0; transition: color .2s; }
.ci-remove:hover { color: var(--ink); }

.cart-empty, .cart-done { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding: 24px; }
.cart-empty p { font-size: 22px; letter-spacing: -.02em; }
.cart-done-t { font-size: clamp(36px, 8vw, 48px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.cart-done p:not(.cart-done-t) { color: var(--mute); max-width: 32ch; }

.cart-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cart-row { display: flex; justify-content: space-between; font-size: 14px; }
.cart-row span:last-child { font-family: var(--mono); font-size: 13px; }
.cart-row--mute { color: var(--mute); }
.cart-row--total { font-weight: 600; font-size: 16px; padding-top: 6px; }
.cart-row--total span:last-child { font-size: 15px; }
.cart-checkout { width: 100%; min-width: 0; margin-top: 12px; }
.nav-cart { min-height: 44px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--ink); color: var(--paper); border: 1px solid var(--line-inv);
  padding: 12px 18px; border-radius: 0; font-size: 14px; white-space: nowrap;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transition: transform .5s var(--ease-out), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .fl { grid-template-columns: 1fr 1fr; }
  .fl-list { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; border: 0; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .fl-list::-webkit-scrollbar { display: none; }
  .fl-item { border: 0; flex: 0 0 auto; }
  .fl-btn { display: inline-flex; width: auto; padding: 10px 16px; border: 1px solid var(--line); border-radius: 0; font-size: 15px; gap: 8px; }
  .fl-btn .tag, .fl-btn::before { display: none; }
  .fl-btn[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .fl-btn:hover .name, .fl-btn[aria-selected="true"] .name { transform: none; }
}

@media (max-width: 760px) {
  .flavours { min-height: 0; }
  .foot { padding-top: 72px; }
  .foot-mid { grid-template-columns: 1fr; gap: 32px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .foot-cols div:last-child { grid-column: 1 / -1; }
  .foot-offer h2 { font-size: 40px; }
  :root { --nav-h: 60px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-actions { gap: 14px; }
  /* hero: bigger type, a CTA, and the six packs fanned out like a hand of cards */
  .hero-copy { top: calc(var(--nav-h) + 15vh); transform: none; }
  .hero-title { font-size: min(calc((100vw - 2 * var(--gutter)) / 7.9), 80px); line-height: .95; max-width: none; white-space: nowrap; }
  .hero-cta {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
    height: 48px; padding: 0 22px; border-radius: 0;
    background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500;
    opacity: 0; transform: translateY(10px);
    transition: opacity .8s .55s var(--ease-out), transform .8s .55s var(--ease-out), background-color .2s ease;
  }
  .hero-cta:active { transform: scale(.97); }
  .loaded .hero-cta { opacity: 1; transform: none; }
  .packs { display: block; padding: 0; max-width: none; --raise: 0px; }
  .pack {
    --w: min(27vw, 180px);
    position: absolute; left: calc(50% + var(--x, 0px) - var(--w) / 2);
  }
  .pack:nth-child(1) { --x: -35vw; --rot: -15deg; --hide: 47%; --show: .53; z-index: 1; }
  .pack:nth-child(2) { --x: -21vw; --rot: -9deg;  --hide: 38%; --show: .62; z-index: 2; }
  .pack:nth-child(3) { --x: -7vw;  --rot: -3deg;  --hide: 31%; --show: .69; z-index: 3; }
  .pack:nth-child(4) { --x: 7vw;   --rot: 3deg;   --hide: 31%; --show: .69; z-index: 3; }
  .pack:nth-child(5) { --x: 21vw;  --rot: 9deg;   --hide: 38%; --show: .62; z-index: 2; }
  .pack:nth-child(6) { --x: 35vw;  --rot: 15deg;  --hide: 47%; --show: .53; z-index: 1; }
  .pack-img { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .16)); }

  .intro { height: 300vh; }
  .fl { grid-template-columns: 1fr; }
  .flavours { padding-top: calc(var(--nav-h) + 36px); display: block; }
  .blackout { padding: 0 calc(var(--gutter) + 14px); }
  .mf { gap: clamp(22px, 3.6vh, 36px); }
  .mf-photos { width: 100%; }
  .mf-photo, .mf-photo--sq, .mf-photo--tall { flex: 1 1 0; aspect-ratio: auto; height: min(38vh, 320px); }
  .mf-photo:nth-child(1) img { object-position: 52% 60%; }
  .mf-photo:nth-child(3) img { object-position: 58% 75%; }
  .manifesto { text-align: left; width: 100%; font-size: clamp(24px, min(8.2vw, 4.4vh), 40px); line-height: 1.2; letter-spacing: -.03em; }
  .fl-stage { height: 42vh; min-height: 280px; max-height: 420px; }
  .fl { gap: 24px; }
  .fl-specs div { padding: 11px 0; }
  .btn--ink, .btn--paper { min-width: 0; width: 100%; }

  /* formula: no pinning on phones; a calm 2x2 grid of numbers */
  .formula-panel { padding: 64px 0 72px; }
  .formula-head h2 { max-width: 11ch; }
  .track {
    margin-top: 40px; gap: 40px 16px;
  }
  .stat { padding-top: 16px; gap: 8px; }
  .stat-n { font-size: clamp(56px, 17vw, 96px); margin: 10px 0 8px -.04em; }
  .stat h3 { font-size: 16px; }
  .stat p:last-child { font-size: 14px; }

  .steps { grid-template-columns: 1fr; gap: 36px; }
  .foot-top { flex-direction: column; align-items: stretch; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .stat-n { font-size: clamp(80px, 11vw, 160px); }
  .formula-head h2 { font-size: clamp(32px, 4vw, 56px); }
}

/* tablets in portrait: bigger packs to fill the tall hero */
@media (min-width: 761px) and (max-width: 1180px) and (orientation: portrait) {
  .packs { --w: 14vw; }
  .pack { --hide: 42%; --show: .58; }
}

/* small phones */
@media (max-width: 380px) {
  .logo span { font-size: 15px; letter-spacing: .26em; }
  .nav-shop { padding: 7px 12px; }
  .fl-btn { padding: 9px 13px; font-size: 14px; }
}

/* short landscape screens (phones turned sideways) */
@media (max-height: 560px) and (orientation: landscape) {
  :root { --nav-h: 54px; }
  .hero-copy { top: 40%; }
  .hero-title { font-size: clamp(34px, 8vh + 2vw, 64px); max-width: 16ch; }
  .packs { --w: clamp(40px, 7.5vw, 90px); --raise: 0px; }
  .pack { --hide: 46%; --show: .54; }
  .manifesto { font-size: clamp(18px, 5vh, 30px); max-width: 30ch; }
  .mf { --ph: 34vh; gap: 16px; }
  .flavours { min-height: 0; }
  .fl { grid-template-columns: 1fr 1fr; }
  .fl-stage { height: 70vh; min-height: 240px; }
  .formula-head h2 { font-size: 30px; }

  .foot { position: relative; padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */
.co-page { background: var(--paper); }
.co-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter); border-bottom: 1px solid var(--line);
}
.co-back { font-size: 14px; color: var(--mute); transition: color .2s; }
.co-back:hover { color: var(--ink); }
.co { padding-top: clamp(40px, 7vh, 72px); padding-bottom: 96px; }
.co-title { font-weight: 600; font-size: clamp(36px, 5vw, 64px); letter-spacing: -.045em; line-height: 1; margin-bottom: clamp(32px, 5vh, 56px); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

.co-form { display: flex; flex-direction: column; gap: 40px; }
.co-form fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.co-form legend { font-weight: 600; font-size: 20px; letter-spacing: -.02em; margin-bottom: 18px; padding: 0; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f--full { grid-column: 1 / -1; }
.f label { font-size: 13px; color: var(--mute); }
.f input, .f select {
  width: 100%; height: 50px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid #dcdcdc; border-radius: 12px;
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.f select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230a0a0a' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; padding-right: 40px;
}
.f input::placeholder { color: #b0b0b0; }
.f input:focus, .f select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, .08); }
.f-err { display: none; font-size: 12px; color: #b42318; }
.f.bad input { border-color: #b42318; }
.f.bad .f-err { display: block; }

.opts { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-body {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 12px 16px 12px 46px;
  border: 1px solid #dcdcdc; border-radius: 12px; font-size: 15px;
  transition: border-color .2s, background-color .2s; position: relative;
}
.opt-body::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border: 1px solid #b0b0b0; border-radius: 50%; transition: border-color .2s, box-shadow .2s;
}
.opt-body small { display: block; font-size: 13px; color: var(--mute); }
.opt input:checked + .opt-body { border-color: var(--ink); }
.opt input:checked + .opt-body::before { border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 8px var(--ink); }
.opt input:focus-visible + .opt-body { box-shadow: 0 0 0 3px rgba(10, 10, 10, .12); }
.mono { font-family: var(--mono); font-size: 13px; }
.co-note { font-size: 13px; color: var(--mute); }
.co-pay { width: 100%; min-width: 0; align-self: stretch; height: 60px; }
.co-pay:disabled { opacity: .7; cursor: progress; }

.co-sum { position: sticky; top: 24px; background: #f7f7f7; border-radius: 20px; padding: 28px; }
.co-sum h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.co-items { list-style: none; margin: 0; padding: 0; }
.co-items .ci { border-bottom: 1px solid var(--line); animation: none; }
.co-items .ci-img { background: var(--paper); position: relative; }
.co-qty {
  position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 0;
  background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px; display: grid; place-items: center;
}
.co-rows { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }

.co-empty, .co-done { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 520px; padding: 24px 0 64px; }
.co-empty p { font-size: 22px; letter-spacing: -.02em; }
.co-done-t { font-size: clamp(44px, 7vw, 80px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.co-done p:not(.co-done-t):not(.co-note) { font-size: 17px; }

@media (max-width: 860px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-sum { position: static; order: -1; padding: 20px; }
}
@media (max-width: 480px) {
  .co-form fieldset { grid-template-columns: 1fr; }
  .co-nav { padding: 16px var(--gutter); }
}

/* ==========================================================================
   DISPLAY TYPE — every heading is set in South Ghetto
   ========================================================================== */
h1, h2, h3, legend, .co-done-t, .cart-done-t {
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
}

/* ==========================================================================
   "YOU JUST CLICKED" CARD
   ========================================================================== */
.clicked { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.clicked-scrim {
  position: absolute; inset: 0; background: rgba(10, 10, 10, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.clicked-card {
  position: relative; width: min(520px, 100%);
  background: var(--paper); color: var(--ink);
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(18px) scale(.985);
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.clicked.open .clicked-scrim { opacity: 1; }
.clicked.open .clicked-card { opacity: 1; transform: none; }
.clicked-x {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center;
  transition: background-color .2s;
}
.clicked-x:hover { background: var(--ghost); }
.clicked-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.clicked-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.clicked-card h2 { font-size: clamp(32px, 5vw, 46px); line-height: .95; margin-top: 14px; max-width: 12ch; }
.clicked-text { margin-top: 18px; color: var(--mute); font-size: 16px; max-width: 38ch; }
.clicked-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.clicked-actions .btn { min-width: 0; }
.clicked-later, .clicked-back { font-size: 14px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.clicked-later:hover, .clicked-back:hover { color: var(--ink); }
.clicked-back { margin-top: 22px; text-decoration: none; display: inline-block; }
.clicked-back::before { content: "← "; }
@media (max-width: 560px) {
  .clicked { align-items: end; padding: 8px; }
  .clicked-actions .btn { width: 100%; }
}

/* avoid creative's credits footer continues our black footer */
avoid-credits { --ac-font: var(--sans); --ac-radius: 0; --ac-divider: .16; }
avoid-contact { --acx-font: var(--sans); }
