@import url('../fonts/fonts.css');

/* ---------- tokens ---------- */
:root {
  --cocoa-0: #0d0705;
  --cocoa-1: #1a0f0a;
  --cocoa-2: #2b1a11;
  --cocoa-3: #4a2e1f;
  --label: #f6f2ec;
  --foil: #bfb6ad;
  --mute: #9d8f84;
  --accent: #e46fa8;
  --accent-ink: #1a0710;

  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --hand: 'Caveat', cursive;

  --step--1: clamp(0.94rem, 0.9rem + 0.15vw, 1.02rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.13rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.6rem);
  --step-2: clamp(1.45rem, 1.2rem + 1.1vw, 2.2rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 3.2rem);
  --step-4: clamp(2.4rem, 1.5rem + 3.8vw, 5.4rem);
  --step-5: clamp(3rem, 1.6rem + 6.4vw, 9.5rem);

  --gutter: clamp(1.1rem, 0.6rem + 2.4vw, 3rem);
  --radius: 4px;
  --ease: cubic-bezier(.2, .8, .1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--cocoa-0);
  color: var(--label);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .92; letter-spacing: -0.02em; margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, .line { text-wrap: pretty; }
p { margin: 0; max-width: 62ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* skip link */
.skip { position: fixed; left: 1rem; top: -100px; z-index: 200; padding: .8rem 1.2rem; background: var(--label); color: var(--cocoa-0); border-radius: 999px; font-weight: 700; }
.skip:focus { top: 1rem; }

/* film grain over everything: background is never flat */
body::after {
  content: '';
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .085;
  mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* textured page base: generated backdrop + accent glow */
.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 85% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(13, 7, 5, .45), rgba(13, 7, 5, .72)),
    url('../img/bg-base-1800.webp') center / cover,
    var(--cocoa-0);
  transition: background .8s var(--ease);
}
@media (max-width: 900px) {
  .page-bg {
    background:
      radial-gradient(60vmax 50vmax at 85% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
      linear-gradient(180deg, rgba(13, 7, 5, .45), rgba(13, 7, 5, .72)),
      url('../img/bg-base-1200.webp') center / cover,
      var(--cocoa-0);
  }
}

.wrap { width: 100%; padding-inline: var(--gutter); margin-inline: auto; max-width: 1680px; }

/* ---------- logo ---------- */
.logo { display: inline-block; color: var(--label); }
.logo svg { display: block; width: 100%; height: auto; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gutter);
  transition: transform .5s var(--ease), background .4s;
}
.site-header::before { content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; transition: opacity .4s; background: linear-gradient(180deg, rgba(13, 7, 5, .78), rgba(13, 7, 5, 0)); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header:focus-within { transform: none; }
.site-header.is-solid { background: rgba(13, 7, 5, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(246, 242, 236, .06); }
.site-header .logo { width: clamp(118px, 12vw, 168px); padding-block: 16px; }
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.6rem); font-weight: 600; font-size: var(--step--1); }
.nav-links a { position: relative; padding-block: .8rem; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .55rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.btn {
  --b: var(--accent);
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  padding: 1.05em 1.6em;
  font-family: var(--display); font-weight: 700; font-size: max(1rem, var(--step--1)); letter-spacing: .02em; word-spacing: .22em;
  color: var(--accent-ink); background: var(--b);
  border-radius: 999px;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--label);
  transform: translateY(101%); border-radius: 50% 50% 0 0;
  transition: transform .55s var(--ease), border-radius .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn:hover { color: var(--cocoa-0); }
.btn--ghost { background: transparent; color: var(--label); box-shadow: inset 0 0 0 2px rgba(246, 242, 236, .35); }
.btn--ghost:hover { color: var(--cocoa-0); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.header-cta { padding: .85em 1.3em; }
.page-order .header-cta { visibility: hidden; }

.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--label); color: var(--cocoa-0); position: relative; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 20px; } .menu-toggle span:nth-child(2) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
    url('../img/tex-chocolate-600.webp') center / cover,
    var(--accent);
  background-blend-mode: normal, soft-light, normal;
  color: var(--accent-ink);
  clip-path: circle(0% at calc(100% - 48px) 38px);
  transition: clip-path .8s var(--ease);
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 48px) 38px); visibility: visible; }
.mobile-menu :focus-visible { outline-color: var(--accent-ink); }
.mobile-menu nav { display: grid; gap: .3rem; }
.mobile-menu nav a { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.05; letter-spacing: -.03em; }
.mobile-menu nav a[aria-current='page'] { color: transparent; -webkit-text-stroke: 2px var(--accent-ink); }
.mobile-menu .menu-cta { --b: var(--accent-ink); color: var(--accent); width: fit-content; font-size: 1rem; }
.mobile-menu .socials { display: flex; gap: 1.5rem; font-weight: 700; }
.mobile-menu .socials a { padding-block: .7rem; }

@media (max-width: 860px) {
  .nav-links, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .menu-open .site-header .logo { color: var(--accent-ink); }
  .menu-open .site-header::before { opacity: 0; }
  .menu-open .site-header.is-solid { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
}

/* ---------- crimped foil edge (the wrapper seal) ---------- */
.crimp { --h: 18px; height: var(--h); width: 100%; background: var(--c, var(--label));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) 50% / calc(var(--h) * 1.1) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) 50% / calc(var(--h) * 1.1) 100%; }
.crimp--down { transform: scaleY(-1); }

/* ---------- marquee label band ---------- */
.band {
  position: relative; overflow: hidden;
  background: var(--label); color: var(--cocoa-0);
  font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, .9rem + 1.6vw, 2.4rem);
  letter-spacing: -.01em; white-space: nowrap; padding-block: .55em;
}
.band--accent { background: var(--accent); color: var(--accent-ink); }
.band-track { display: inline-flex; align-items: center; gap: 0; will-change: transform; }
.band-track > span { display: inline-flex; align-items: center; gap: .9em; padding-right: .9em; }
.band .db { width: 1.4em; height: .6em; flex: none; }
.bands { position: relative; padding-block: clamp(2rem, 5vw, 4.5rem); overflow: hidden; }
.bands .band:first-child { transform: rotate(-3deg) scale(1.06); z-index: 2; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.bands .band:last-child { transform: rotate(-1deg) scale(1.06); margin-top: .5em; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-items: end; align-content: end;
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(1.2rem, 3vw, 2.4rem);
}
.hero-media {
  position: absolute; inset: 0 0 16% 28%; z-index: -1;
  -webkit-mask: linear-gradient(90deg, transparent, #000 24%), linear-gradient(0deg, transparent, #000 28%);
  -webkit-mask-composite: source-in;
          mask: linear-gradient(90deg, transparent, #000 24%), linear-gradient(0deg, transparent, #000 28%);
          mask-composite: intersect;
}
.hero-media picture { display: block; height: 100%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 70% at 15% 40%, rgba(120, 62, 30, .35), transparent 70%), url('../img/tex-chocolate-1200.webp') center / cover; opacity: .5; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; transform-origin: 65% 50%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(13, 7, 5, .92) 0%, rgba(13, 7, 5, .2) 40%, rgba(13, 7, 5, 0) 60%);
}
.hero-copy { display: grid; gap: 1.6rem; max-width: 40rem; margin-bottom: clamp(1.5rem, 5vh, 4rem); }
.hero-copy h1 { font-size: var(--step-3); text-shadow: 0 6px 40px rgba(13, 7, 5, .85); }
.hero-copy h1 .hand { display: block; font-family: var(--hand); font-weight: 600; font-size: .62em; letter-spacing: 0; color: var(--accent); margin-top: .2em; transform: rotate(-4deg); transform-origin: left; }
.hero-copy p { color: var(--foil); font-size: var(--step-1); line-height: 1.35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-mark { width: 100%; color: var(--label); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
@media (max-width: 700px) {
  .hero-media {
    inset: calc(var(--header-h) - 8px) 0 44% 0;
    -webkit-mask: linear-gradient(180deg, #000 68%, transparent);
            mask: linear-gradient(180deg, #000 68%, transparent);
  }
  .hero-media img { object-position: 50% 45%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(13, 7, 5, .35) 0%, transparent 18%); }
  .hero-copy { margin-bottom: 2rem; gap: 1.2rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
.hero-mark .logo { width: 100%; }
.hero-mark svg g, .hero-mark svg rect, .hero-mark svg path { transform-box: fill-box; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; color: var(--foil); font-size: var(--step--1); }
.scroll-cue { display: inline-flex; align-items: center; gap: .6rem; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--label), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- flavor rail (signature: site turns the flavor's color) ---------- */
.rail { position: relative; }
.rail-head { padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(2rem, 5vw, 4rem); display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.rail-head h2 { font-size: var(--step-4); }
.rail-head p { color: var(--foil); font-size: var(--step-1); max-width: 22ch; line-height: 1.3; }
.rail-pin { height: 100svh; overflow: hidden; position: relative; }
.rail-crimp { display: block; }
.rail-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.panel {
  position: relative; width: 100vw; height: 100%; flex: none; overflow: hidden; isolation: isolate;
  display: grid; align-items: start;
  padding: calc(var(--header-h) + 7vh) var(--gutter) clamp(5rem, 10vh, 7rem);
}
.panel-bg { position: absolute; inset: 0; z-index: -2; }
.panel-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 25% 50%; }
.panel-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 7, 5, .88) 0%, rgba(13, 7, 5, .55) 34%, rgba(13, 7, 5, .05) 62%), linear-gradient(0deg, rgba(13, 7, 5, .75), transparent 30%); }
.panel-pack { position: absolute; z-index: -1; right: 1vw; top: 52%; width: min(58vw, 1100px); translate: 0 -50%; pointer-events: none; }
.panel-pack img { width: 100%; height: auto; rotate: -4deg; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 50px color-mix(in srgb, var(--c) 40%, transparent)); }
.panel + .panel::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 16px; z-index: 1; background: var(--c);
  -webkit-mask: conic-gradient(from 45deg at left, #0000, #000 1deg 90deg, #0000 91deg) 50% / 100% 18px;
          mask: conic-gradient(from 45deg at left, #0000, #000 1deg 90deg, #0000 91deg) 50% / 100% 18px;
}
.panel-copy { display: grid; gap: 1.1rem; max-width: min(36vw, 34rem); position: relative; min-width: 0; }
.panel-num { font-family: var(--display); font-weight: 900; font-size: clamp(3.6rem, 1.5rem + 6.5vw, 8.5rem); line-height: .8; letter-spacing: -.06em; color: var(--c); }
.panel-num small { font-size: .3em; letter-spacing: -.02em; margin-left: .08em; }
.panel h3 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.8rem); max-width: 14ch; }
.panel .line { font-family: var(--hand); font-size: var(--step-2); color: var(--c); line-height: 1; transform: rotate(-2deg); }
.panel .go { display: inline-flex; align-items: center; gap: .8rem; font-weight: 700; margin-top: .4rem; width: fit-content; }
.panel .go b { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c); color: var(--cocoa-0); transition: transform .5s var(--ease); }
.panel .go:hover b { transform: rotate(-45deg) scale(1.1); }
.tag-vegan { display: inline-flex; width: fit-content; align-items: center; gap: .4rem; padding: .35em .8em; border-radius: 999px; background: var(--c); color: var(--cocoa-0); font-weight: 700; font-size: var(--step--1); }
.rail-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(1.4rem, 4vh, 2.4rem); display: flex; gap: 6px; z-index: 3; }
.rail-progress span { flex: 1; height: 4px; background: rgba(246, 242, 236, .18); border-radius: 2px; overflow: hidden; }
.rail-progress span i { display: block; height: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; }
.rail-count { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 1rem); z-index: 3; font-family: var(--display); font-weight: 700; font-size: var(--step-0); padding: .35em .8em; border-radius: 999px; background: rgba(13, 7, 5, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--c, var(--label)); }

@media (max-width: 899px) {
  .rail-pin { height: auto; overflow: visible; }
  .rail-track { flex-direction: column; width: 100%; }
  .panel { width: 100%; height: auto; min-height: 100svh; position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; align-items: stretch; padding-top: calc(var(--header-h) - .5rem); border-radius: 22px 22px 0 0; }
  .panel-bg img { object-position: 20% 0%; }
  .panel-bg::after { background: linear-gradient(180deg, rgba(13, 7, 5, .25) 0%, rgba(13, 7, 5, .55) 40%, rgba(13, 7, 5, .92) 75%); }
  .panel-pack { position: relative; right: auto; top: auto; translate: none; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1) 1rem; }
  .panel-copy { max-width: none; position: relative; gap: .7rem; }
  .panel-num { font-size: clamp(3.4rem, 16vw, 5rem); }
  .panel + .panel::after { display: none; }
  .rail-progress, .rail-count { display: none; }
}

/* ---------- 20 g chocolate type ---------- */
.dose { position: relative; isolation: isolate; padding: clamp(5rem, 9vw, 8rem) var(--gutter); display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; overflow: hidden; }
.dose::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 25% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    linear-gradient(rgba(13, 7, 5, .7), rgba(13, 7, 5, .82)),
    url('../img/tex-iron-1200.webp') center / cover;
  -webkit-mask: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
          mask: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}
.dose-big {
  font-family: var(--display); font-weight: 900; line-height: .78; letter-spacing: -.07em;
  font-size: clamp(7rem, 2rem + 18vw, 19rem);
  background:
    linear-gradient(180deg, rgba(255, 220, 180, .22), rgba(255, 220, 180, 0) 60%),
    url('../img/tex-chocolate-1200.webp') 50% 30% / 140% auto,
    var(--cocoa-3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6));
}
.dose-big small { font-family: var(--hand); font-weight: 700; font-size: .3em; letter-spacing: 0; vertical-align: top; color: var(--accent); -webkit-text-fill-color: var(--accent); margin-left: .1em; }
.dose-list { display: grid; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.dose-list li { display: grid; gap: .3rem; padding-top: 1.2rem; border-top: 2px solid rgba(246, 242, 236, .14); }
.dose-list strong { font-family: var(--display); font-weight: 800; font-size: var(--step-2); line-height: 1; text-wrap: balance; }
.dose-list span { color: var(--foil); }
@media (max-width: 860px) { .dose { grid-template-columns: minmax(0, 1fr); } }

/* ---------- handmade collage ---------- */
.made { position: relative; padding: clamp(5rem, 10vw, 9rem) var(--gutter) clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.6rem); align-items: start; }
.made-title { grid-column: 1 / 7; align-self: center; display: grid; gap: 1.4rem; }
.made-title h2 { font-size: var(--step-4); }
.made-title p { color: var(--foil); font-size: var(--step-1); line-height: 1.35; text-wrap: pretty; }
.shot { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--cocoa-2); margin: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.made .s1 { grid-column: 7 / 13; aspect-ratio: 16 / 10; }
.made .s2 { grid-column: 1 / 5; aspect-ratio: 4 / 5; margin-top: 3rem; }
.made .s3 { grid-column: 5 / 9; aspect-ratio: 4 / 5; margin-top: 9rem; }
.made .s4 { grid-column: 9 / 13; aspect-ratio: 4 / 5; margin-top: 1rem; }
.shot figcaption { position: absolute; left: 1rem; bottom: .8rem; font-family: var(--hand); font-size: var(--step-2); line-height: 1; color: var(--label); text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
@media (max-width: 860px) {
  .made-title, .made .s1 { grid-column: 1 / -1; }
  .made .s2, .made .s3, .made .s4 { grid-column: span 6; margin: 0; }
  .made .s4 { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
}

/* ---------- lifestyle ---------- */
.life { position: relative; isolation: isolate; padding: clamp(4rem, 8vw, 8rem) 0; overflow: hidden; }
.life::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(13, 7, 5, .65), rgba(13, 7, 5, .8)),
    url('../img/tex-cocoa-1200.webp') center / cover;
  -webkit-mask: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
          mask: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}
.life-head { padding-inline: var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: nowrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.life-head h2 { font-size: var(--step-4); }
.life-head .btn { flex: none; margin-bottom: .6em; }
@media (max-width: 600px) { .life-head { flex-wrap: wrap; } }
.life-strip { display: flex; gap: clamp(.8rem, 1.6vw, 1.6rem); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.life-strip .shot { width: clamp(240px, 30vw, 480px); aspect-ratio: 4 / 5; flex: none; }
.life-strip .shot.wide { width: clamp(380px, 56vw, 900px); aspect-ratio: 16 / 10; }
.life-strip .shot img { transform: none; transition: transform 1.2s var(--ease); }
.life-strip .shot:hover img { transform: scale(1.06); }

/* ---------- final CTA ---------- */
.cta { position: relative; min-height: 92svh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 6rem var(--gutter); isolation: isolate; }
.cta-img {
  position: absolute; inset: -10% 0; z-index: -1;
  -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
          mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.cta-img img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) saturate(1.05); transform: scale(1.06); }
.cta-img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 44% at 50% 50%, rgba(13, 7, 5, .74), rgba(13, 7, 5, .42) 60%, rgba(13, 7, 5, .8)); }
.cta h2 { font-size: var(--step-4); letter-spacing: -.04em; line-height: .9; max-width: 12ch; margin-inline: auto; }
.cta p { margin: 1.6rem auto 2.2rem; color: var(--label); font-weight: 500; font-size: var(--step-1); }

/* ---------- footer ---------- */
.site-footer {
  position: relative; color: var(--cocoa-0); padding: clamp(3rem, 6vw, 5rem) var(--gutter) 1.5rem;
  background: linear-gradient(rgba(246, 242, 236, .9), rgba(246, 242, 236, .93)), url('../img/tex-cocoa-1200.webp') center / cover, var(--label);
}
.site-footer .crimp { position: absolute; left: 0; top: calc(var(--h, 18px) * -1 + 1px); --c: var(--label); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.foot-grid h3 { font-family: var(--body); font-size: var(--step--1); font-weight: 600; color: #574b44; margin-bottom: .9rem; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-weight: 600; font-size: var(--step-1); }
.foot-grid ul a { display: inline-block; padding-block: .35rem; }
.foot-grid a:hover { color: #6d4a35; }
.foot-lead { font-family: var(--display); font-weight: 800; font-size: var(--step-2); line-height: 1.05; max-width: 16ch; }
.foot-lead a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.foot-mark { color: var(--cocoa-0); width: 100%; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; font-size: var(--step--1); color: #574b44; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 94; pointer-events: none; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); mix-blend-mode: normal; opacity: 0; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .4s, opacity .3s; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--accent-ink); }
.cursor.is-on { opacity: 1; }
html:not(.js) .cursor { display: none; }
.cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: transparent; box-shadow: inset 0 0 0 2px var(--accent); opacity: 1; }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- page transition ---------- */
.wipe { position: fixed; inset: 0; z-index: 95; pointer-events: none; background: var(--wipe, var(--accent)); transform: translateY(100%); }
.wiping .wipe { transform: none; }
.wipe .logo { position: absolute; left: 50%; top: 50%; width: min(60vw, 520px); transform: translate(-50%, -50%); color: var(--accent-ink); }

/* ---------- generic page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 78svh; display: grid; align-items: end; padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(2rem, 5vw, 4rem); overflow: hidden; isolation: isolate; }
.page-hero .bg {
  position: absolute; inset: -12% 0 0; z-index: -1;
  -webkit-mask: linear-gradient(180deg, #000 60%, transparent);
          mask: linear-gradient(180deg, #000 60%, transparent);
}
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 7, 5, .8), rgba(13, 7, 5, .2) 60%), linear-gradient(0deg, rgba(13, 7, 5, .6), transparent 45%); }
.page-hero h1 { font-size: var(--step-5); letter-spacing: -.05em; line-height: .84; }
.page-hero p { color: var(--foil); font-size: var(--step-1); margin-top: 1.4rem; line-height: 1.35; }

/* full-bleed photo backdrop (order, 404) */
.order, .lost { position: relative; isolation: isolate; }
.page-photo {
  position: absolute; inset: 0 0 auto; height: 100svh; z-index: -1; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, #000 60%, transparent);
          mask: linear-gradient(180deg, #000 60%, transparent);
}
.page-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 7, 5, .8), rgba(13, 7, 5, .35) 70%), linear-gradient(0deg, rgba(13, 7, 5, .6), transparent 40%); }
.lost .page-photo { inset: 0; height: auto; -webkit-mask: none; mask: none; }
.lost .page-photo::after { background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(13, 7, 5, .78), rgba(13, 7, 5, .35)); }

/* ---------- flavors page: stacked cards ---------- */
.stack { position: relative; }
.card { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-items: end; padding: var(--gutter); padding-bottom: clamp(2.5rem, 7vh, 5rem); isolation: isolate; border-radius: 26px 26px 0 0; box-shadow: 0 -30px 60px rgba(0, 0, 0, .5); }
.card .bg { position: absolute; inset: 0; z-index: -2; }
.card .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 25% 50%; }
.card .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 7, 5, .88), rgba(13, 7, 5, .5) 36%, rgba(13, 7, 5, .05) 64%), linear-gradient(0deg, rgba(13, 7, 5, .8), transparent 40%); }
.card-pack { position: absolute; z-index: -1; right: 2vw; top: 46%; width: min(52vw, 1000px); translate: 0 -50%; pointer-events: none; }
.card-pack img { width: 100%; height: auto; rotate: -4deg; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 50px color-mix(in srgb, var(--c) 40%, transparent)); }
.card-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; }
.card-inner > div { min-width: 0; max-width: 40vw; }
.card h2 { font-size: var(--step-4); max-width: 12ch; }
.card .line { font-family: var(--hand); font-size: var(--step-2); line-height: 1.05; color: var(--c); transform: rotate(-2deg); transform-origin: left; margin-top: .8rem; }
.card .meta { display: flex; gap: 2.4rem; margin-top: 1.6rem; }
.card .meta b { display: block; font-family: var(--display); font-weight: 900; font-size: var(--step-3); line-height: 1; color: var(--c); }
.card .meta span { color: var(--label); opacity: .75; font-size: var(--step-0); }
.bar-stats b small, .card .meta b small { font-size: .45em; letter-spacing: 0; }
.card .open { display: grid; place-items: center; width: clamp(96px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--c); color: var(--cocoa-0); font-family: var(--display); font-weight: 800; font-size: var(--step--1); word-spacing: .18em; text-align: center; line-height: 1.1; transition: transform .6s var(--ease); }
.card .open:hover { transform: rotate(-12deg) scale(1.06); }
.card-index { position: absolute; top: calc(var(--header-h) + 1rem); right: var(--gutter); font-family: var(--display); font-weight: 800; font-size: var(--step-1); color: var(--c); padding: .4em .8em; border-radius: 999px; background: rgba(13, 7, 5, .7); }
@media (max-width: 899px) {
  .card { display: flex; flex-direction: column; justify-content: center; align-items: stretch; padding-top: var(--header-h); }
  .card .bg { position: absolute; inset: 0; aspect-ratio: auto; margin: 0; -webkit-mask: none; mask: none; }
  .card .bg::after { display: block; background: linear-gradient(180deg, rgba(13, 7, 5, .25), rgba(13, 7, 5, .6) 40%, rgba(13, 7, 5, .92) 78%); }
  .card-pack { position: relative; right: auto; top: auto; translate: none; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1) 1rem; }
  .card-inner { grid-template-columns: minmax(0, 1fr) auto; position: relative; gap: 1rem; }
  .card-inner > div { max-width: none; }
  .card .meta { gap: 1.4rem; margin-top: 1rem; }
  .card .open { width: 76px; flex: none; }
  .card h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .card-index { top: calc(var(--header-h) - .5rem); }
}
.picker { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.picker a { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .6em 1.05em .6em .7em; border-radius: 999px; background: rgba(246, 242, 236, .08); backdrop-filter: blur(10px); font-weight: 600; font-size: var(--step--1); transition: background .3s; }
.picker a i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.picker a:hover { background: var(--c); color: var(--cocoa-0); }

/* ---------- single bar page ---------- */
.bar-hero {
  position: relative; min-height: 100svh; display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: center; gap: 0;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem; overflow: hidden; isolation: isolate;
}
.bar-bg { position: absolute; inset: 0; z-index: -2; -webkit-mask: linear-gradient(180deg, #000 82%, transparent); mask: linear-gradient(180deg, #000 82%, transparent); }
.bar-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.bar-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 7, 5, .85) 0%, rgba(13, 7, 5, .5) 36%, rgba(13, 7, 5, .08) 66%), linear-gradient(0deg, rgba(13, 7, 5, .9) 0%, transparent 26%); }
.bar-copy { position: relative; z-index: 2; min-width: 0; }
.bar-hero .ghost {
  position: absolute; z-index: -1; left: 50%; top: auto; bottom: 1vw; translate: -50% 0; transform: none;
  font-family: var(--display); font-weight: 900; font-size: clamp(6rem, 17vw, 20rem); letter-spacing: -.06em; line-height: .8; white-space: nowrap;
  color: color-mix(in srgb, var(--accent) 10%, transparent); -webkit-text-stroke: 0; opacity: 1;
}
.bar-hero h1 { font-size: clamp(2.2rem, 1rem + 3vw, 4.4rem); max-width: 13ch; }
.bar-hero .line { font-family: var(--hand); font-size: var(--step-2); line-height: 1.05; color: var(--accent); transform: rotate(-3deg); transform-origin: left; margin-top: 1rem; }
.bar-stats { display: flex; gap: clamp(1.4rem, 3vw, 3rem); margin-top: 2.2rem; flex-wrap: wrap; }
.bar-stats b { display: block; font-family: var(--display); font-weight: 900; font-size: var(--step-3); line-height: 1; color: var(--accent); }
.bar-stats span { color: var(--label); opacity: .75; font-size: var(--step-0); }
.bar-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.4rem; }
.bar-visual { position: relative; grid-column: 2; justify-self: end; width: min(60vw, 1150px); margin-right: calc(var(--gutter) * -1 + 1vw); perspective: 1200px; z-index: 1; }
.bar-visual .pack { transform-style: preserve-3d; will-change: transform; }
.bar-visual img {
  width: 100%; height: auto; -webkit-mask: none; mask: none;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 46px color-mix(in srgb, var(--accent) 38%, transparent));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -18px; rotate: 1deg; } }
.bar-visual::before { content: ''; position: absolute; left: 12%; right: 12%; top: 28%; bottom: 18%; border-radius: 50%; background: var(--accent); filter: blur(80px); opacity: .45; z-index: -1; }
.bar-visual::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: -4%; height: 12%; border-radius: 50%; background: rgba(0, 0, 0, .6); filter: blur(22px); z-index: -1; animation: packshadow 6s ease-in-out infinite; }
@keyframes packshadow { 50% { transform: scaleX(.85); opacity: .65; } }

.inside { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(4rem, 10vw, 9rem) var(--gutter); }
.inside::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 25% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    linear-gradient(rgba(13, 7, 5, .78), rgba(13, 7, 5, .88)),
    url('../img/tex-chocolate-1200.webp') center / cover;
  -webkit-mask: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
          mask: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}
.bands + .inside { padding-top: clamp(1.5rem, 3vw, 3rem); }
.inside .shot { aspect-ratio: 4 / 5; }
.inside h2 { font-size: var(--step-3); margin-bottom: 2rem; }
.notes { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; list-style: none; padding: 0; margin: 0; }
.notes li { position: relative; padding: 0 0 0 1.6em; border: 0; border-radius: 0; font-family: var(--display); font-weight: 800; font-size: var(--step-2); }
.notes li::before { content: ''; position: absolute; left: 0; top: .45em; width: .9em; height: .4em; background: var(--accent); border-radius: 2px; }
.inside .fine { margin-top: 2rem; color: var(--foil); font-size: var(--step-0); }
@media (max-width: 860px) { .inside { grid-template-columns: 1fr; } }

.next { position: relative; display: grid; min-height: 80svh; align-items: end; padding: var(--gutter); overflow: hidden; isolation: isolate; }
.next .bg {
  position: absolute; inset: 0 0 0 34%; z-index: -1;
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%);
          mask: linear-gradient(90deg, transparent, #000 20%);
}
.next .bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.next .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 7, 5, .85), rgba(13, 7, 5, .1) 55%), linear-gradient(0deg, rgba(13, 7, 5, .9), transparent 50%); }
.next:hover .bg img { transform: scale(1.05); }
.next small { font-family: var(--hand); font-size: var(--step-2); line-height: 1.05; color: var(--c); }
.next h2 { font-size: var(--step-3); max-width: 12ch; }
.next-copy { max-width: 32vw; padding-bottom: 2rem; }
.next-go { position: absolute; right: var(--gutter); bottom: var(--gutter); width: clamp(72px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%; background: var(--c); color: var(--cocoa-0); display: grid; place-items: center; transition: transform .5s var(--ease); }
.next-go svg { width: 40%; height: auto; }
.next:hover .next-go { transform: rotate(-45deg) scale(1.08); }
@media (max-width: 760px) {
  .next-copy { max-width: none; }
  .next .bg { inset: 0; -webkit-mask: none; mask: none; }
}

/* ---------- story page ---------- */
.steps { padding: clamp(3rem, 8vw, 7rem) var(--gutter); display: grid; gap: clamp(5rem, 12vw, 10rem); }
.step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem); align-items: center; }
.step .shot { grid-column: 1 / 8; aspect-ratio: 16 / 11; }
.step .txt { grid-column: 8 / 13; display: grid; gap: 1rem; min-width: 0; }
.step:nth-child(even) .shot { grid-column: 6 / 13; grid-row: 1; }
.step:nth-child(even) .txt { grid-column: 1 / 6; grid-row: 1; }
.step .n { font-family: var(--display); font-weight: 900; font-size: clamp(3.5rem, 2rem + 5vw, 7rem); line-height: .8; color: var(--cocoa-0); paint-order: stroke fill; -webkit-text-stroke: 4px var(--accent); }
.step h2 { font-size: var(--step-3); overflow-wrap: anywhere; }
.step p { color: var(--foil); font-size: var(--step-1); line-height: 1.4; }
@media (max-width: 860px) { .step .shot, .step .txt, .step:nth-child(even) .shot, .step:nth-child(even) .txt { grid-column: 1 / -1; grid-row: auto; } }

.pillars { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(246, 242, 236, .1); margin: clamp(2rem, 6vw, 5rem) var(--gutter); border-radius: 18px; overflow: hidden; }
.pillar { background: linear-gradient(rgba(26, 15, 10, .9), rgba(26, 15, 10, .96)), url('../img/tex-iron-600.webp') center / cover; padding: clamp(2rem, 4vw, 3.4rem); display: grid; gap: .8rem; align-content: start; min-height: 22rem; position: relative; overflow: hidden; }
.pillar b { font-family: var(--display); font-weight: 900; font-size: var(--step-4); line-height: .9; color: var(--accent); letter-spacing: -.04em; }
.pillar h3 { font-size: var(--step-1); font-family: var(--display); font-weight: 700; letter-spacing: 0; }
.pillar p { color: var(--mute); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } }

/* ---------- order page ---------- */
.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(1.5rem, 3vw, 3rem); padding: calc(var(--header-h) + 1rem) var(--gutter) 6rem; align-items: start; }
.order-head { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 3rem; margin-bottom: 1rem; }
.order-head h1 { font-size: var(--step-4); letter-spacing: -.05em; line-height: .84; grid-row: span 2; }
.order-head p { color: var(--foil); font-size: var(--step-1); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.tile { position: relative; border-radius: 18px; background: var(--cocoa-1); overflow: hidden; display: grid; isolation: isolate; transition: transform .5s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--c); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 4; }
.tile.has::after { opacity: 1; }
.tile .img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.tile-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.tile .img::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13, 7, 5, .5), rgba(13, 7, 5, .1)); }
.tile-pack { position: absolute; z-index: 2; left: 50%; top: 50%; width: 90%; height: auto; translate: -50% -50%; rotate: -4deg; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .6)); transition: transform 1s var(--ease); }
.tile:hover .tile-pack { transform: scale(1.06); }
.tile .body { padding: 1.1rem 1.1rem 1.2rem; display: grid; gap: .9rem; grid-template-rows: 1fr auto; align-content: space-between; }
.tile h2 { font-size: var(--step-1); line-height: 1.05; letter-spacing: -.01em; }
.tile .row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.tile .pro { color: var(--c); font-family: var(--display); font-weight: 800; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; background: rgba(246, 242, 236, .08); border-radius: 999px; }
.qty button { width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; font-weight: 700; display: grid; place-items: center; transition: background .25s, color .25s; }
.qty button:hover { background: var(--c); color: var(--cocoa-0); }
.qty output { min-width: 2.2ch; text-align: center; font-family: var(--display); font-weight: 800; font-size: var(--step-1); }
.tile .badge { position: absolute; top: .8rem; left: .8rem; z-index: 3; }
@media (max-width: 700px) {
  .tile { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
  .tile .img { aspect-ratio: auto; min-height: 150px; height: 100%; }
  .tile .body { padding: .9rem; }
  .order-head { grid-template-columns: minmax(0, 1fr); }
  .order-head h1 { grid-row: auto; }
}

.box {
  position: sticky; top: calc(var(--header-h) + 1rem);
  background: linear-gradient(rgba(246, 242, 236, .9), rgba(246, 242, 236, .93)), url('../img/tex-cocoa-1200.webp') center / cover, var(--label);
  color: var(--cocoa-0); border-radius: 6px; padding: 1.6rem 1.4rem 1.4rem; display: grid; gap: .9rem;
}
.box::before, .box::after { content: ''; position: absolute; left: 0; right: 0; height: 14px; background: var(--label);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) 50% / 16px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) 50% / 16px 100%; }
.box::before { top: -13px; }
.box::after { bottom: -13px; transform: scaleY(-1); }
.box h2 { font-size: var(--step-2); }
.box .count { font-family: var(--display); font-weight: 900; font-size: var(--step-3); line-height: .9; letter-spacing: -.05em; }
.box .count small { font-size: .3em; letter-spacing: 0; font-weight: 700; margin-left: .2em; }
.box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-height: min(26svh, 15rem); overflow-y: auto; }
.box li { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; padding-bottom: .5rem; border-bottom: 1px dashed rgba(13, 7, 5, .2); }
.box li i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .5rem; background: var(--c); }
.box .empty { color: #574b44; }
.box label { display: grid; gap: .35rem; font-size: var(--step--1); font-weight: 600; color: #574b44; }
.box input, .box textarea { font: inherit; font-size: 1rem; color: var(--cocoa-0); background: #ebe5dd; border: 2px solid transparent; border-radius: 10px; padding: .75rem .9rem; resize: vertical; width: 100%; min-width: 0; }
.box input:focus, .box textarea:focus { outline: none; border-color: var(--cocoa-0); }
.box .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; }
.box .btn { justify-content: center; width: 100%; --b: var(--cocoa-0); color: var(--label); font-size: var(--step-0); white-space: nowrap; padding-inline: 1.2em; }
.box .btn::before { background: var(--accent); }
.box .btn:hover { color: var(--accent-ink); }
.box .btn[disabled] { opacity: 1; background: #ddd5cb; color: #7a6d64; pointer-events: none; }
.box .hint { font-size: var(--step--1); color: #574b44; }
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 99; width: max-content; max-width: calc(100vw - 2rem);
  transform: translate(-50%, calc(100% + 2.5rem)); visibility: hidden;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: .9rem 1.3rem; border-radius: 18px; text-align: center;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease); }
.toast:empty { display: none; }
.presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.presets button { min-height: 44px; padding: .7em 1.1em; border-radius: 999px; background: rgba(246, 242, 236, .08); font-weight: 600; font-size: var(--step--1); transition: background .25s, color .25s; }
.presets button:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 1100px) { .order { grid-template-columns: minmax(0, 1fr); } .box { position: relative; top: 0; } }
.order-bar {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  min-height: 56px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--display); font-weight: 800; font-size: 1rem;
  transform: translateY(160%); transition: transform .5s var(--ease); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.order-bar.is-on { transform: none; }
@media (min-width: 1101px) { .order-bar { display: none; } }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.lost h1 {
  font-size: clamp(6rem, 20vw, 16rem); letter-spacing: -.07em; line-height: .8;
  -webkit-text-stroke: 0;
  background: url('../img/tex-chocolate-1200.webp') center / cover, var(--cocoa-3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6));
}
.lost p { margin: 1.4rem auto 2rem; color: var(--foil); font-size: var(--step-1); }
.lost .picker { justify-content: center; }

/* ---------- reveal helpers (JS adds .is-in) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* reduced motion / no-JS: the rail becomes a vertical stack so all 6 flavors stay reachable */
@media (prefers-reduced-motion: reduce) and (min-width: 900px) {
  .rail-pin { height: auto; overflow: visible; }
  .rail-track { flex-direction: column; width: 100%; }
  .panel { width: 100%; height: auto; min-height: 100svh; }
  .rail-progress, .rail-count { display: none; }
}
@media (min-width: 900px) {
  html:not(.js) .rail-pin { height: auto; overflow: visible; }
  html:not(.js) .rail-track { flex-direction: column; width: 100%; }
  html:not(.js) .panel { width: 100%; height: auto; min-height: 100svh; }
  html:not(.js) .rail-progress, html:not(.js) .rail-count { display: none; }
}

.flavors-hero .bg img { object-position: 70% 50%; }

/* desktop: copy on the clean left side, pack on the right */
@media (min-width: 900px) {
  .card h2 { max-width: 11ch; font-size: clamp(2rem, 1rem + 2.4vw, 3.6rem); }
  .flavors-hero h1 { font-size: var(--step-4); max-width: 8ch; }
}

@media (max-width: 860px) {
  .bar-hero { grid-template-columns: 1fr; align-content: start; gap: .6rem; min-height: auto; padding: calc(var(--header-h) + .5rem) var(--gutter) 3rem; }
  .bar-hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.8rem); }
  .bar-visual { order: -1; grid-column: auto; justify-self: stretch; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1); }
  .bar-bg img { object-position: 22% 50%; }
  .bar-bg::after { background: linear-gradient(180deg, rgba(13, 7, 5, .2) 0%, rgba(13, 7, 5, .6) 40%, rgba(13, 7, 5, .92) 80%); }
  .bar-hero .ghost { bottom: auto; top: calc(var(--header-h) + 8vw); font-size: 26vw; }
  .bar-stats b { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .inside h2, .made-title h2, .life-head h2, .rail-head h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .next h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .page-hero h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .cta h2 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
}
h1, h2, h3 { overflow-wrap: break-word; }
