/* ==========================================================================
   7 Beans — warm paper by day, the roast room at night.
   Tokens are semantic (--bg, --text…) and flip per section via [data-tone].
   ========================================================================== */

:root {
	/* Brand (Customizer-controlled) */
	--roast: #1B120D; --bark: #271A13; --bark-2: #33231A; --husk: #EEE2D2; --muted: #B09D8E;
	--cherry: #D9283F; --leaf: #93AA7C; --crema: #CB8D51;
	/* Light paper palette */
	--paper: #F5EDE1; --paper-2: #ECE0CF; --card: #FBF7F1; --ink: #1B120D; --ink-2: #6A5446; --crema-ink: #9C5F2B;
	/* Semantic (light by default) */
	--bg: var(--paper); --surface: var(--card); --surface-2: var(--paper-2); --text: var(--ink); --text-2: var(--ink-2);
	--accent-2: var(--crema-ink); --line: rgba(27, 18, 13, .12); --line-2: rgba(27, 18, 13, .24);
	--on-cherry: #fff;
	--f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--gutter: clamp(16px, 4vw, 56px);
	--max: 1440px;
	--r: 20px;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--nav-h: 68px;
	--rail-w: 0px;
}
[data-tone="dark"], .tone-dark {
	--bg: var(--roast); --surface: var(--bark); --surface-2: var(--bark-2); --text: var(--husk); --text-2: var(--muted);
	--accent-2: var(--crema); --line: rgba(238, 226, 210, .14); --line-2: rgba(238, 226, 210, .26);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
	margin: 0; background: var(--page-bg, var(--paper)); color: var(--text);
	font-family: var(--f-body); font-size: 17px; line-height: 1.55;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	transition: background-color .7s var(--ease);
}
html.page-dark body { --page-bg: var(--roast); }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 800; line-height: .95; letter-spacing: -.02em; font-variation-settings: "wdth" 80, "opsz" 96; }
p { margin: 0 0 1em; }
::selection { background: var(--cherry); color: #fff; }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.main { display: block; outline: none; overflow-x: clip; }
section[data-tone] { color: var(--text); }
.mono, .eyebrow { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 500; }
.eyebrow { color: var(--text-2); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.chap { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--cherry); color: #fff; font-size: 11px; letter-spacing: .04em; }
.h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
em { font-style: normal; color: var(--cherry); }
[data-tone="dark"] em { color: var(--crema); }

/* ---------- Buttons, chips, pills ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
	font-family: var(--f-body); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--cherry); color: var(--on-cherry); box-shadow: 0 10px 24px -12px rgba(217, 40, 63, .7); }
.btn--primary:hover { background: #c41f35; color: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); }
.iconbtn:hover { border-color: var(--text); }
.chip {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border-radius: 999px;
	border: 1px solid var(--line-2); background: transparent; color: var(--text);
	font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px;
	transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--island { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 18px; }
.chip--island[aria-pressed="true"] { background: var(--cherry); border-color: var(--cherry); color: #fff; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.pill { font-size: 12.5px; line-height: 1; padding: 7px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); color: var(--text); transition: color .5s; }
.admin-bar .nav, .admin-bar .drawer__panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav, .admin-bar .drawer__panel { top: 46px; } }
.nav::before {
	content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 72%, transparent);
	backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .35s, background .6s;
}
.nav.is-scrolled::before, body:not(.sb-home) .nav::before { opacity: 1; }
html.page-dark .nav { --bg: var(--roast); --text: var(--husk); --line: rgba(238, 226, 210, .14); --line-2: rgba(238, 226, 210, .26); }
.nav__inner { position: relative; height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.nav__word { font-family: var(--f-display); font-weight: 800; font-size: 21px; font-variation-settings: "wdth" 78; }
.logo-mark path { stroke: #fff; }
.nav__links { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__links a:hover { background: var(--line); }
.cartpill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-weight: 600; font-size: 15px; }
.cartpill:hover { border-color: var(--text); }
.cartpill__count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--cherry); color: #fff; font-family: var(--f-mono); font-size: 12.5px; }
.cartpill.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.14); } 60% { transform: scale(.96); } }

/* ---------- Chapter rail (the thread) ---------- */
.rail { display: none; }
@media (min-width: 1180px) {
	:root { --rail-w: 0px; }
	.rail { display: block; position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 40; color: var(--text); transition: color .6s, opacity .4s; }
	html.page-dark .rail { color: var(--husk); }
	.rail__line { position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: color-mix(in srgb, currentColor 18%, transparent); }
	.rail__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--cherry); }
	.rail__bean { position: absolute; left: -6px; top: 0; color: var(--cherry); transform: translateY(-50%) rotate(var(--spin, 0deg)); filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
	.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
	.rail a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding-left: 0; }
	.rail a::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--page-bg, var(--paper)); border: 2px solid color-mix(in srgb, currentColor 35%, transparent); position: relative; z-index: 1; transition: border-color .3s, background .3s; flex: none; }
	html.page-dark .rail a::before { background: var(--roast); }
	.rail a .mono { font-size: 10.5px; opacity: .55; }
	.rail a em { font-style: normal; color: inherit; font-size: 12px; font-weight: 600; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; white-space: nowrap; }
	.rail a:hover em, .rail a.is-active em { opacity: 1; transform: none; }
	.rail a.is-active::before { border-color: var(--cherry); background: var(--cherry); }
	.rail a.is-active .mono { opacity: 1; }
}

/* ---------- Next-chapter links ---------- */
.next { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); text-decoration: none; padding: 10px 0; }
.next b { color: var(--cherry); font-weight: 600; }
.next:hover { color: var(--text); }

/* ---------- Hero (00) ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 4px) 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(48% 46% at 50% 36%, rgba(217, 40, 63, .10), transparent 70%), radial-gradient(60% 50% at 70% 70%, rgba(203, 141, 81, .14), transparent 70%); pointer-events: none; }
.hero__stage { position: relative; display: grid; grid-template-columns: 1fr minmax(260px, 30vw) 1fr; align-items: center; min-height: min(64vh, 680px); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hero__word { margin: 0; position: relative; z-index: 3; font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 13vw, 15rem); line-height: .82; letter-spacing: -.045em; font-variation-settings: "wdth" 75, "opsz" 96; color: var(--ink); }
.hero__word--l { justify-self: end; margin-right: -3vw; }
.hero__word--r { justify-self: start; margin-left: -3vw; color: var(--cherry); }
.hero__visual { position: relative; z-index: 2; height: min(68vh, 700px); display: grid; place-items: center; will-change: transform; }
.hero__halo { position: absolute; inset: 12% 0 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 252, 246, .95), rgba(255, 252, 246, 0)); }
.hero__img { position: relative; width: auto; height: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(60, 30, 10, .28)); }
.hero .pouch-svg.hero__img { height: 78%; }
.beans-canvas { position: absolute; inset: -10% 0 -20%; width: 100%; height: 130%; pointer-events: none; z-index: 4; }
.hero__copy { position: relative; z-index: 3; max-width: var(--max); margin: 0 auto; padding: 26px var(--gutter) 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px 64px; align-items: end; border-top: 1px solid var(--line); }
.hero__copy .eyebrow { grid-column: 1 / -1; margin: 0; }
.hero__title { font-size: clamp(2.1rem, 4.2vw, 3.8rem); max-width: 15ch; }
.hero__text { color: var(--text-2); max-width: 46ch; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.mask { display: inline-block; overflow: hidden; padding: .04em .02em 0; vertical-align: top; }
.mask > span { display: inline-block; animation: maskUp 1.05s var(--ease) both; }
.hero__word--r .mask > span { animation-delay: .12s; }
.hero__img { animation: drop 1.2s cubic-bezier(.3, 1.4, .5, 1) .15s both; }
.reveal { animation: fadeUp .9s var(--ease) both; animation-delay: .7s; }
.hero__title.reveal { animation-delay: .8s; }
.hero__side.reveal { animation-delay: .92s; }
@keyframes maskUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-60px) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; background: var(--surface-2); }
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee__list li { display: flex; align-items: center; gap: 12px; padding: 0 26px; white-space: nowrap; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.8rem); font-variation-settings: "wdth" 80; }
.marquee__list li .mono { color: var(--text-2); font-size: 11.5px; }
.marquee__list li i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Islands (01): pinned horizontal journey ---------- */
.islands { position: relative; height: 420vh; }
.islands__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(300px, 30%) 1fr; grid-template-rows: 1fr auto; padding: calc(var(--nav-h) + 24px) 0 20px var(--gutter); }
.islands__head { grid-row: 1; align-self: center; padding-right: 40px; position: relative; z-index: 2; }
.islands__head .h2 { margin-bottom: 18px; }
.islands__lede { color: var(--text-2); max-width: 36ch; }
.islands__count { font-size: 14px; margin: 0; }
.islands__count span { color: var(--cherry); }
.islands__track { grid-row: 1; display: flex; gap: 24px; align-items: center; will-change: transform; padding-right: 30vw; }
.isle { flex: 0 0 min(420px, 34vw); height: min(74vh, 640px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(60, 30, 10, .4); }
.isle__photo { position: relative; flex: 1 1 58%; min-height: 0; overflow: hidden; background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 40%, #1b120d)); }
.isle__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.isle:hover .isle__img { transform: scale(1.02); }
.isle__fallback { position: absolute; inset: 0; background: radial-gradient(60% 50% at 30% 30%, rgba(255,255,255,.25), transparent 60%); }
.isle__num { position: absolute; top: 16px; left: 16px; padding: 6px 10px; border-radius: 999px; background: var(--c); color: #fff; }
.isle__body { flex: 0 0 auto; padding: 20px 22px 22px; display: grid; gap: 10px; border-top: 6px solid var(--c); }
.isle__where { color: var(--text-2); margin: 0; font-size: 11px; }
.isle__name { font-size: clamp(2.2rem, 3.6vw, 3.4rem); text-transform: uppercase; letter-spacing: -.03em; font-variation-settings: "wdth" 75, "opsz" 96; }
.isle__coffee { margin: 0; color: var(--text-2); font-size: 14.5px; }
.isle__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--text); margin-top: 4px; }
.isle__link:hover { color: var(--cherry); }
.islands__foot { grid-column: 1 / -1; grid-row: 2; }

/* ---------- Story (02–04): photo chapters in the roast room ---------- */
.story { position: relative; height: 380vh; background: linear-gradient(var(--paper), var(--roast) 32vh, var(--roast) calc(100% - 40vh), var(--paper)); }
.story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(260px, 28%) 1fr; grid-template-rows: 1fr auto; padding: calc(var(--nav-h) + 18px) var(--gutter) 22px; z-index: 2; }
.story__media { position: absolute; inset: calc(var(--nav-h) + 12px) var(--gutter) 64px calc(var(--gutter) + 28%); border-radius: 28px; overflow: hidden; background: #120b08; }
.story__shot { position: absolute; inset: 0; margin: 0; opacity: 0; will-change: opacity, transform; }
.story__shot[data-shot="0"] { opacity: 1; }
.story__img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.12)); will-change: transform; }
.story__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 11, 8, .55), transparent 40%), linear-gradient(0deg, rgba(18, 11, 8, .7), transparent 45%); }
.story__echo { position: absolute; inset: calc(var(--nav-h) + 12px) var(--gutter) 64px calc(var(--gutter) + 28%); display: grid; place-items: center; pointer-events: none; overflow: hidden; border-radius: 28px; z-index: 1; }
.echo { grid-area: 1 / 1; font-family: var(--f-display); font-weight: 800; font-size: clamp(5rem, 19vw, 20rem); line-height: .8; letter-spacing: -.05em; font-variation-settings: "wdth" 75, "opsz" 96; color: rgba(255, 246, 236, .06); -webkit-text-stroke: 1.5px rgba(255, 246, 236, .5); opacity: 0; white-space: nowrap; mix-blend-mode: overlay; }
.echo[data-echo="0"] { opacity: 1; }
.story__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.steps { grid-column: 1; grid-row: 1; align-self: center; list-style: none; margin: 0; padding: 0 28px 0 0; z-index: 3; display: grid; gap: clamp(16px, 3vh, 30px); }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; opacity: .42; transition: opacity .4s var(--ease); position: relative; padding-top: 16px; }
.step::before, .step::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; }
.step::before { width: 100%; background: var(--line); }
.step::after { width: 0; background: var(--cherry); transition: width .6s var(--ease); }
.step.is-active { opacity: 1; }
.step.is-active::after { width: 100%; }
.step__num { color: var(--crema); padding-top: 6px; }
.step__title { font-size: clamp(2rem, 3.4vw, 3rem); text-transform: uppercase; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15.5px; margin: 0; max-width: 38ch; }
.hud { position: absolute; right: calc(var(--gutter) + 22px); bottom: 86px; z-index: 3; width: min(340px, 40%); }
.hud__panel { position: absolute; right: 0; bottom: 0; width: 100%; padding: 18px 20px; border: 1px solid rgba(238, 226, 210, .18); border-radius: var(--r); background: rgba(20, 12, 8, .62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); font-size: 11px; color: var(--muted); }
.hud__panel.is-active { opacity: 1; transform: none; }
.hud__row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: end; }
.hud__big { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--husk); text-transform: none; font-variation-settings: "wdth" 78; font-variant-numeric: tabular-nums; }
.hud__label { color: var(--crema); margin: 6px 0 10px; }
.hud__legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; opacity: .8; }
.gauge { width: 100%; height: auto; }
.gauge__track, .gauge__fill { fill: none; stroke-width: 10; stroke-linecap: round; }
.gauge__track { stroke: rgba(238, 226, 210, .12); }
.gauge__fill { stroke: var(--cherry); stroke-dasharray: 100; stroke-dashoffset: 100; }
.gauge__marks line { stroke: var(--husk); stroke-width: 2; }
.stages { position: relative; margin-top: 12px; height: 44px; border-radius: 10px; overflow: hidden; display: flex; background: rgba(0,0,0,.25); }
.stages i { flex: 1; }
.stages__img { width: 100%; height: 100%; object-fit: cover; }
.stages__mark { position: absolute; top: 0; bottom: 0; width: 20%; left: 0; border: 2px solid var(--cherry); border-radius: 10px; transition: left .25s var(--ease); }
.slider { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.slider__bar { position: relative; height: 4px; border-radius: 4px; background: rgba(238, 226, 210, .14); }
.slider__bar i { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--cherry); box-shadow: 0 0 0 4px rgba(217, 40, 63, .25); }
.story__foot { grid-column: 1 / -1; grid-row: 2; z-index: 3; }

/* ---------- Pouch (05) ---------- */
.pouch { position: relative; height: 260vh; }
.pouch__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(260px, 27%) 1fr minmax(280px, 28%); grid-template-rows: 1fr auto; gap: 0 32px; padding: calc(var(--nav-h) + 20px) var(--gutter) 22px; max-width: var(--max); margin: 0 auto; }
.pouch__head { grid-column: 1; grid-row: 1; align-self: center; }
.pouch__head .h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.pouch__visual { position: relative; grid-column: 2; grid-row: 1; min-height: 0; display: grid; place-items: center; }
.pouch__img { width: 100%; height: 100%; max-height: 72vh; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(60, 30, 10, .22)); transition: transform .8s var(--ease); }
.hotspot { position: absolute; left: var(--x); top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line-2); color: var(--ink); opacity: .7; transition: all .35s var(--ease); }
.hotspot b { font-size: 11px; }
.hotspot.is-active { opacity: 1; background: var(--cherry); color: #fff; border-color: #fff; box-shadow: 0 0 0 8px rgba(217, 40, 63, .18), 0 0 0 18px rgba(217, 40, 63, .08); transform: translate(-50%, -50%) scale(1.12); }
.callouts { grid-column: 3; grid-row: 1; align-self: center; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.callout { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 1px solid transparent; opacity: .45; transition: opacity .35s, border-color .35s, background .35s; }
.callout > .mono { color: var(--accent-2); padding-top: 4px; }
.callout h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.callout.is-active { opacity: 1; border-color: var(--line-2); background: var(--surface); box-shadow: 0 16px 30px -24px rgba(60, 30, 10, .5); }
.pouch__foot { grid-column: 1 / -1; grid-row: 2; }

/* ---------- Shop (06) ---------- */
.shop { max-width: var(--max); margin: 0 auto; padding: 110px var(--gutter) 120px; scroll-margin-top: var(--nav-h); }
.shop__head { margin-bottom: 34px; }
.shop__title { font-size: clamp(3.2rem, 9vw, 8.5rem); letter-spacing: -.04em; font-variation-settings: "wdth" 75, "opsz" 96; }
.filters { display: grid; gap: 18px; margin-bottom: 36px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.filters__row, .filters__group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters__groups { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.filters__label { color: var(--text-2); margin-right: 4px; min-width: 58px; }
.filters__count { color: var(--text-2); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.card:hover { border-color: var(--line-2); box-shadow: 0 30px 50px -36px rgba(60, 30, 10, .45); transform: translateY(-3px); }
.card[hidden] { display: none; }
.card__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 4.1; background: radial-gradient(70% 60% at 50% 46%, color-mix(in srgb, var(--c) 26%, transparent), transparent 72%), var(--surface-2); overflow: hidden; perspective: 900px; }
.card__img { width: 84%; height: 90%; object-fit: contain; transition: transform .5s var(--ease); will-change: transform; filter: drop-shadow(0 22px 24px rgba(60, 30, 10, .25)); }
.card__media .pouch-svg { height: 86%; width: auto; }
.card__num { position: absolute; top: 16px; left: 18px; padding: 5px 9px; border-radius: 999px; background: var(--c); color: #fff; }
.card__body { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 22px; flex: 1; }
.card__eyebrow { color: var(--text-2); margin: 0; font-size: 11.5px; }
.card__name { font-size: 34px; line-height: .95; text-transform: uppercase; }
.card__name a { text-decoration: none; }
.card__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; font-size: 11px; }
.card__specs div { border-top: 1px solid var(--line); padding-top: 7px; }
.card__specs dt { color: var(--text-2); }
.card__specs dd { margin: 2px 0 0; }
.card__buy { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.card__price { font-family: var(--f-display); font-weight: 800; font-size: 26px; font-variation-settings: "wdth" 80; grid-column: 1 / -1; }
.card__grind, .select {
	appearance: none; -webkit-appearance: none; min-height: 48px; width: 100%; padding: 0 40px 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
	background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236A5446' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
	font-size: 14.5px; color: var(--text);
}
.card__add { min-width: 104px; }
.card__add.is-added { background: var(--leaf); color: var(--ink); }
.shop__empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 22px; color: var(--text-2); margin-top: 8px; }

/* ---------- Footer (dark) ---------- */
.foot { background: var(--roast); color: var(--husk); overflow: hidden; border-radius: 36px 36px 0 0; --text: var(--husk); --text-2: var(--muted); --line: rgba(238, 226, 210, .14); }
.foot__inner { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 28px; }
.foot__word { margin: 0 0 56px; display: flex; flex-wrap: wrap; gap: 0 .18em; font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 17vw, 17rem); line-height: .8; letter-spacing: -.05em; font-variation-settings: "wdth" 75, "opsz" 96; }
.foot__word--red { color: var(--cherry); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot .eyebrow { color: var(--muted); }
.foot__tag { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.05; max-width: 22ch; font-variation-settings: "wdth" 80; }
.foot__ship { color: var(--muted); }
.foot__links, .foot__social { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot__links a, .foot__social a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; opacity: .85; }
.foot__links a:hover, .foot__social a:hover { opacity: 1; text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; color: var(--muted); font-size: 11px; }

/* ---------- Cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(27, 18, 13, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s var(--ease); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--card); color: var(--ink); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .45s var(--ease); outline: none; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 30px; text-transform: uppercase; display: flex; align-items: baseline; gap: 10px; }
.drawer__title .mono { color: var(--ink-2); font-size: 12px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer__empty { color: var(--ink-2); padding: 40px 0; text-align: center; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line__img { width: 76px; height: 92px; border-radius: 12px; background: var(--paper-2); object-fit: contain; padding: 6px; }
.line__name { font-family: var(--f-display); font-weight: 800; font-size: 20px; line-height: 1; text-transform: uppercase; margin: 0 0 4px; font-variation-settings: "wdth" 80; }
.line__name a { text-decoration: none; }
.line__meta { color: var(--ink-2); font-size: 11px; margin: 0 0 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; font-size: 18px; line-height: 1; }
.qty button:hover { background: var(--paper-2); }
.qty span { min-width: 26px; text-align: center; font-family: var(--f-mono); font-size: 13px; }
.line__right { display: grid; justify-items: end; gap: 10px; }
.line__price { font-weight: 600; white-space: nowrap; }
.line__remove { background: none; border: 0; padding: 4px 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; min-height: 32px; }
.line.is-busy { opacity: .5; pointer-events: none; }
.drawer__foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer__ship { color: #4e6b3a; margin: 0; font-size: 11px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.drawer__total strong { font-family: var(--f-display); font-size: 28px; font-variation-settings: "wdth" 80; }
.drawer__link { text-align: center; color: var(--ink-2); min-height: 32px; display: grid; place-items: center; }
.drawer__error { color: var(--cherry); font-size: 14px; margin: 8px 0; }
html.drawer-open { overflow: hidden; }

/* ---------- Generic pages ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: calc(var(--nav-h) + 48px) var(--gutter) 96px; min-height: 70vh; }
.page__head { margin-bottom: 40px; }
.page__title { font-size: clamp(3rem, 8vw, 7rem); text-transform: uppercase; letter-spacing: -.035em; font-variation-settings: "wdth" 75, "opsz" 96; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 2rem; margin: 1.6em 0 .5em; text-transform: uppercase; }
.prose h3 { font-size: 1.5rem; margin: 1.4em 0 .4em; }
.prose a { color: var(--cherry); }
.prose ul, .prose ol { padding-left: 1.2em; }
.contact-list { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.list-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.list-item__meta { color: var(--text-2); }
.crumbs { color: var(--text-2); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 11px; }
.crumbs a { color: var(--text-2); }
.crumbs__sep { opacity: .5; }
.page--shop .shop { padding-top: 0; }
.notfound { max-width: 820px; margin: 0 auto; padding: calc(var(--nav-h) + 60px) var(--gutter) 120px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.notfound__big { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(8rem, 32vw, 22rem); line-height: .8; letter-spacing: -.06em; font-variation-settings: "wdth" 75, "opsz" 96; }
.notfound__big span { color: var(--cherry); }
.notfound .eyebrow::before { display: none; }
.notfound .hero__ctas { justify-content: center; margin-top: 16px; }
.notfound > p:not(.eyebrow):not(.notfound__big) { color: var(--text-2); max-width: 46ch; }
.pouch-svg { width: auto; height: 100%; max-height: 100%; filter: drop-shadow(0 30px 40px rgba(60, 30, 10, .25)); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pouch__pin { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; }
	.pouch__head { grid-column: 1 / -1; grid-row: 1; }
	.pouch__head .h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 22ch; }
	.pouch__visual { grid-column: 1; grid-row: 2; }
	.callouts { grid-column: 2; grid-row: 2; }
	.pouch__foot { grid-row: 3; }
	.callout:not(.is-active) p { display: none; }
}
@media (min-width: 901px) and (max-height: 820px) { .step:not(.is-active) p, .callout:not(.is-active) p { display: none; } }

@media (max-width: 900px) {
	:root { --nav-h: 60px; }
	body { font-size: 16px; }
	.nav__menu { display: none; }
	.hero__stage { grid-template-columns: 1fr; min-height: 0; justify-items: center; }
	.hero__word { font-size: clamp(4.4rem, 26vw, 10rem); margin: 0 !important; justify-self: center !important; }
	.hero__visual { width: 100%; height: min(54vh, 480px); margin: -4vw 0; }
	.hero__copy { grid-template-columns: 1fr; gap: 14px; }
	.hero__ctas .btn { flex: 1 1 auto; }

	.islands { height: auto; }
	.islands__pin { position: relative; height: auto; display: block; padding: 80px 0 40px; overflow: visible; }
	.islands__head { padding: 0 16px 24px; }
	.islands__count { display: none; }
	.islands__track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 20px; gap: 14px; transform: none !important; scrollbar-width: none; }
	.islands__track::-webkit-scrollbar { display: none; }
	.isle { flex-basis: 82vw; height: 520px; scroll-snap-align: center; }
	.islands__foot { padding: 0 16px; }

	.story { height: 340vh; }
	.story__pin { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; gap: 12px; padding: calc(var(--nav-h) + 8px) 16px 14px; }
	.story__media, .story__echo { inset: calc(var(--nav-h) + 8px) 16px 150px 16px; border-radius: 22px; }
	.steps { grid-row: 2; grid-template-columns: repeat(3, 1fr); gap: 10px; align-self: end; padding: 0; }
	.step { grid-template-columns: 1fr; gap: 2px; padding-top: 10px; }
	.step__num { padding: 0; font-size: 10.5px; }
	.step__title { font-size: 22px; margin: 0; }
	.step p { display: none; }
	.hud { right: 28px; left: 28px; width: auto; bottom: 170px; }
	.hud__panel { padding: 12px 14px; font-size: 10px; }
	.hud__big { font-size: 32px; }
	.hud__row { grid-template-columns: 80px 1fr; }
	.hud__legend { display: none; }
	.stages { height: 32px; }
	.echo { font-size: 34vw; }
	.story__foot { grid-row: 3; }

	.pouch { height: 230vh; }
	.pouch__pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto auto; padding: calc(var(--nav-h) + 12px) 16px 12px; gap: 8px; }
	.pouch__head { grid-column: 1; grid-row: 1; }
	.pouch__head .eyebrow { margin-bottom: 8px; }
	.pouch__head .h2 { font-size: 1.7rem; }
	.pouch__visual { grid-column: 1; grid-row: 2; }
	.hotspot { width: 30px; height: 30px; }
	.callouts { grid-column: 1; grid-row: 3; display: block; position: relative; min-height: 132px; }
	.callout { position: absolute; inset: 0 0 auto; opacity: 0; pointer-events: none; padding: 12px; }
	.callout.is-active { opacity: 1; pointer-events: auto; }
	.callout:not(.is-active) p { display: block; }
	.pouch__foot { grid-row: 4; }

	.shop { padding: 80px 16px; }
	.filters__row--islands { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
	.filters__row--islands::-webkit-scrollbar { display: none; }
	.filters__row--islands .chip { flex: 0 0 auto; }
	.foot__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.grid { grid-template-columns: 1fr; }
	.foot__base { flex-direction: column; }
	.page { padding-top: calc(var(--nav-h) + 28px); }
	.cartpill__label { display: none; }
}
html:not(.js) .callout { position: static; opacity: 1; }
html:not(.js) .step { opacity: 1; }
html:not(.js) .hud__panel[data-hud="0"] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.marquee__track { animation: none; }
	.marquee { overflow-x: auto; }
}
