/* ==========================================================================
   Altura Café — brand site + store (fictional brand, demo by GBA Atelier)
   ========================================================================== */
:root {
  --paper: #f4ecdd;
  --paper-2: #ede1ca;
  --cream: #f8f2e6;
  --kraft: #d9c09a;
  --kraft-2: #c9a978;
  --ink: #2a1a12;
  --muted: #6b5a48;
  --line: rgba(42, 26, 18, .14);
  --terra: #b4532f;
  --terra-d: #93411f;
  --terra-l: #e9a27a;
  --green: #1d2b22;
  --green-2: #2f4a35;
  --sage: #8fa58a;
  --gold: #d9a441;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
html.locked { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--display); font-size: 17px; line-height: 1.55; font-weight: 400;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::before { /* paper grain */
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  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)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
i, em { font-style: normal; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(84px, 11vw, 160px) 0; position: relative; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin: 0 0 18px; }
.h2 {
  font-family: var(--display); font-weight: 700; font-stretch: 78%; font-variation-settings: "opsz" 96;
  font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: .9; letter-spacing: -.025em; margin: 0;
}
.h2 i, .hero-title i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-stretch: 100%; }
.h2 i { color: var(--terra); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 46ch; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent; background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15.5px; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--spring), background-color .25s, color .25s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn span[aria-hidden] { transition: transform .35s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn-primary { --bg: var(--terra); --fg: #fff8ee; box-shadow: 0 10px 30px -12px rgba(180, 83, 47, .8); }
.btn-primary:hover { --bg: var(--terra-d); }
.btn-ghost { --bg: transparent; --fg: var(--cream); border-color: rgba(248, 242, 230, .45); }
.btn-ghost:hover { --bg: rgba(248, 242, 230, .12); border-color: var(--cream); }
.btn-ghost-dark { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 20px var(--gutter);
  color: var(--cream); transition: background-color .4s, padding .4s var(--ease), color .4s, box-shadow .4s;
}
.site-header.scrolled { background: rgba(244, 236, 221, .88); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); color: var(--ink); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-weight: 800; font-stretch: 80%; font-size: 23px; letter-spacing: -.01em; line-height: 1; }
.brand-word em, .foot-word em { font-family: var(--serif); font-style: italic; font-weight: 400; margin-left: 3px; font-stretch: 100%; }
.nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px 9px 15px; border-radius: 999px;
  border: 1.5px solid currentColor; background: transparent; font-weight: 600; font-size: 15px;
  transition: background-color .25s, color .25s;
}
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn:hover { background: var(--cream); color: var(--ink); }
.scrolled .cart-btn:hover { background: var(--ink); color: var(--cream); }
.cart-count b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--terra); color: #fff; font-size: 12.5px; font-family: var(--mono); font-weight: 500; }
.cart-btn.bump { animation: bump .6s var(--spring); }
.cart-btn.bump .cart-count b { animation: pop .6s var(--spring); }
@keyframes bump { 30% { transform: scale(1.12) rotate(-3deg); } 60% { transform: scale(.96); } }
@keyframes pop { 30% { transform: scale(1.5); background: var(--gold); color: var(--ink); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(100svh, 720px); color: var(--cream); display: flex; flex-direction: column; overflow: hidden; background: var(--green); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.08); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(100deg, rgba(20, 30, 23, .92) 0%, rgba(20, 30, 23, .72) 42%, rgba(20, 30, 23, .25) 75%, rgba(20, 30, 23, .45) 100%),
  linear-gradient(0deg, rgba(20, 30, 23, .9) 0%, rgba(20, 30, 23, 0) 35%); }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { flex: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 116px var(--gutter) 28px; max-width: 1440px; width: 100%; margin: 0 auto; }
.hero-eyebrow { color: var(--terra-l); display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra-l); box-shadow: 0 0 0 0 rgba(233, 162, 122, .6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(233, 162, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 162, 122, 0); } }
.hero-title { font-weight: 800; margin-top: 0; margin-bottom: 24px; font-stretch: 75%; font-variation-settings: "opsz" 96; font-size: clamp(3.9rem, 7.8vw, 8.2rem); line-height: .86; letter-spacing: -.022em; margin: 0 0 28px; }
.hero-title .line { display: block; }
.hero-title .line > span { display: inline-block; }
.hero-title i { color: var(--terra-l); font-size: 1.08em; letter-spacing: -.02em; }
.hero-lede { font-size: clamp(1.02rem, 1.3vw, 1.2rem); max-width: 47ch; color: rgba(248, 242, 230, .82); margin: 0 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stage { position: relative; height: min(62vh, 580px); min-height: 420px; }
.hero-bag { position: absolute; inset: 0; --mx: 0; --my: 0; }
.hb { position: absolute; width: min(330px, 70%); filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .35)); }
.hb-front { left: 14%; top: 8%; z-index: 2; transform: translate(calc(var(--mx) * -26px), calc(var(--my) * -18px)) rotate(-5deg); }
.hb-back { left: 44%; top: 2%; width: min(270px, 58%); transform: translate(calc(var(--mx) * -12px), calc(var(--my) * -8px)) rotate(9deg); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .3)) brightness(.88); }
.hb .bag-svg { width: 100%; height: auto; }
.stamp { position: absolute; width: 150px; right: 2%; bottom: 6%; z-index: 3; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .3)); }
.stamp-ring { transform-origin: 100px 100px; animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; width: 100%; max-width: 1440px; padding: 0 var(--gutter) 58px; }
.hero-stats div { border-top: 1px solid rgba(248, 242, 230, .25); padding: 16px 16px 0 0; }
.hero-stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(248, 242, 230, .6); }
.hero-stats dd { margin: 4px 0 0; font-weight: 700; font-stretch: 80%; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.1; }
.hero-stats small { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .62em; color: rgba(248, 242, 230, .75); font-stretch: 100%; }

/* hero entrance (orchestrated) */
.js .hero-title .line > span { transform: translateY(70%); clip-path: inset(0 -10% 100% -10%); }
.js .hero-eyebrow, .js .hero-lede, .js .hero-ctas, .js .hero-stats div { opacity: 0; transform: translateY(18px); }
.js .hb-front .bag-svg { opacity: 0; transform: translateY(-70vh) rotate(-24deg); }
.js .hb-back .bag-svg { opacity: 0; transform: translateY(-70vh) rotate(22deg); }
.js .stamp { opacity: 0; transform: scale(.3) rotate(-90deg); }
.js .hero-bg img { opacity: 0; }
.ready .hero-bg img { opacity: 1; transform: scale(1); transition: opacity 1.2s ease, transform 2.6s var(--ease); }
.ready .hero-title .line > span { transform: none; clip-path: inset(-30% -10% -30% -10%); transition: transform 1.1s var(--ease), clip-path 1.1s var(--ease); }
.ready .hero-title .line:nth-child(1) > span { transition-delay: .15s; }
.ready .hero-title .line:nth-child(2) > span { transition-delay: .27s; }
.ready .hero-title .line:nth-child(3) > span { transition-delay: .39s; }
.ready .hero-eyebrow, .ready .hero-lede, .ready .hero-ctas, .ready .hero-stats div { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s var(--ease); }
.ready .hero-eyebrow { transition-delay: .05s; }
.ready .hero-lede { transition-delay: .6s; }
.ready .hero-ctas { transition-delay: .72s; }
.ready .hero-stats div:nth-child(1) { transition-delay: 1.1s; }
.ready .hero-stats div:nth-child(2) { transition-delay: 1.18s; }
.ready .hero-stats div:nth-child(3) { transition-delay: 1.26s; }
.ready .hero-stats div:nth-child(4) { transition-delay: 1.34s; }
.ready .hb-back .bag-svg { opacity: 1; transform: none; transition: transform 1.3s var(--spring) .45s, opacity .4s ease .45s; }
.ready .hb-front .bag-svg { opacity: 1; transform: none; transition: transform 1.3s var(--spring) .62s, opacity .4s ease .62s; }
.ready .hb-front { animation: float 7s ease-in-out 2.2s infinite; }
.ready .stamp { opacity: 1; transform: none; transition: transform 1s var(--spring) 1.25s, opacity .4s ease 1.25s; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ---------- marquee ---------- */
.marquee { background: var(--terra); color: #fff3e3; overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(0, 0, 0, .1); }
.marquee-track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 38s linear infinite; font-weight: 700; font-stretch: 78%; font-size: clamp(1.4rem, 2.6vw, 2.2rem); white-space: nowrap; }
.marquee-track i { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; }
.marquee-track b { font-size: .6em; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s ease, transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-img img { clip-path: inset(10% 6% round 28px); transform: scale(1.12); transition: clip-path 1.4s var(--ease), transform 1.8s var(--ease); }
.js .reveal-img.in img { clip-path: inset(0 0 round 0); transform: none; }

/* ---------- origin ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head .lede { justify-self: end; }
.profile { margin: 0 0 clamp(40px, 5vw, 64px); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2.5vw, 34px) clamp(14px, 2.5vw, 34px) 18px; }
.profile-svg { width: 100%; height: auto; overflow: visible; }
.axis line { stroke: rgba(42, 26, 18, .16); stroke-dasharray: 2 6; }
.profile-cap { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 12px; }
.ridge-line { stroke-dasharray: 1500; stroke-dashoffset: 0; }
.js .profile .ridge, .js .profile .ridge-back { transform: translateY(40px); opacity: 0; transition: transform 1.4s var(--ease), opacity 1s; }
.js .profile .ridge-line { stroke-dashoffset: 1500; transition: stroke-dashoffset 2.4s var(--ease) .3s; }
.js .profile .pin { opacity: 0; transition: opacity .6s; }
.js .profile .cloudline { opacity: 0; transition: opacity 1s 1.4s; }
.js .profile.in .ridge, .js .profile.in .ridge-back { transform: none; opacity: 1; }
.js .profile.in .ridge-back { opacity: .55; }
.js .profile.in .ridge-line { stroke-dashoffset: 0; }
.js .profile.in .cloudline { opacity: 1; }
.js .profile.in .pin { opacity: 1; }
.js .profile.in .pin[data-farm="cerro"] { transition-delay: 1.2s; }
.js .profile.in .pin[data-farm="esperanza"] { transition-delay: 1.45s; }
.js .profile.in .pin[data-farm="mirador"] { transition-delay: 1.7s; }
.pin { cursor: pointer; outline: none; }
.pin circle { transform-box: fill-box; transform-origin: center; transition: transform .4s var(--spring), fill .3s; }
.pin rect { transition: fill .3s; }
.pin.active circle { transform: scale(1.5); fill: var(--gold); }
.pin.active rect { fill: var(--terra); }
.pin.active text { fill: #fff8ee; }
.pin:focus-visible rect { stroke: var(--terra); stroke-width: 3; }
.farms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.farm { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; position: relative; transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease), opacity 1s ease; }
.farm.active, .js .farm.reveal.in.active { border-color: var(--terra); box-shadow: 0 24px 50px -28px rgba(42, 26, 18, .45); transform: translateY(-6px); }
.farm header { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.farm-alt { background: var(--green); color: var(--cream); padding: 4px 10px; border-radius: 999px; white-space: nowrap; transition: background-color .3s; }
.farm.active .farm-alt { background: var(--terra); }
.farm h3 { font-size: 1.9rem; font-weight: 700; font-stretch: 80%; line-height: 1; margin: 20px 0 4px; letter-spacing: -.01em; }
.farm-who { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--terra); margin: 0 0 12px; }
.farm p { margin: 0 0 16px; font-size: 15.5px; }
.farm-facts { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14px; }
.farm-facts b { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-block; min-width: 86px; }

/* ---------- process ---------- */
.process { padding-top: 0; background: var(--paper-2); }
.process-photo { position: relative; height: clamp(420px, 78vh, 760px); overflow: hidden; margin-bottom: clamp(70px, 9vw, 130px); }
.process-photo img { width: 100%; height: 100%; object-fit: cover; }
.process-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 30, 23, .75), rgba(20, 30, 23, 0) 55%); pointer-events: none; }
.process-photo blockquote { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 5vw, 64px); margin: 0; color: var(--cream); max-width: 900px; }
.process-photo blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1.02; margin: 0 0 14px; }
.process-photo cite { font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-l); }
.processes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.processes li { padding: 34px 32px 10px 0; border-right: 1px solid var(--line); }
.processes li + li { padding-left: 32px; }
.processes li:last-child { border-right: 0; }
.processes svg { width: 108px; height: 108px; margin-bottom: 20px; transition: transform .8s var(--spring); }
.processes li:hover svg { transform: rotate(-12deg) scale(1.06); }
.proc-n { font-size: 2.2rem; font-weight: 700; font-stretch: 78%; display: block; line-height: 1; margin-bottom: 12px; }
.processes p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; }
.proc-tag { font-family: var(--mono); font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--terra) !important; }

/* ---------- roast ---------- */
.roast { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; background: #1f140e; color: var(--cream); }
.roast-img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.roast-panel { padding: clamp(60px, 7vw, 110px) clamp(24px, 6vw, 96px); align-self: center; }
.roast-panel .h2 i { color: var(--terra-l); }
.roast-panel .eyebrow { color: var(--terra-l); }
.roast-panel > p:not(.eyebrow) { color: rgba(248, 242, 230, .75); max-width: 46ch; margin: 26px 0 44px; }
.roast-scale { position: relative; padding-top: 34px; }
.scale-bar { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #e6c99a, #c4955c 25%, #8a5630 50%, #55301a 75%, #24140c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.scale-dot { position: absolute; top: 50%; left: var(--x); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--label); border: 3px solid var(--cream); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); transition: transform .35s var(--spring); }
.js .roast-panel .scale-dot { transform: scale(0); }
.js .roast-panel.in .scale-dot { transform: scale(1); transition: transform .6s var(--spring) calc(.6s + var(--d) * .1s); }
.roast-panel.in .scale-dot:hover, .roast-panel .scale-dot:focus-visible { transform: scale(1.3); transition-delay: 0s; z-index: 2; }
.scale-dot span { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); white-space: nowrap; background: var(--cream); color: var(--ink); font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
.scale-dot:hover span, .scale-dot:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.scale-labels { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(248, 242, 230, .6); gap: 6px; }

/* ---------- shop ---------- */
.shop { background: var(--paper); }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; padding: 16px 0; border-block: 1px solid var(--line); margin-bottom: 40px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip { border: 1.5px solid var(--line); background: transparent; padding: 7px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 500; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--spring); }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.94); }
.chip.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.filter-count { margin: 0 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); font-size: 1.1rem; }
.product { display: flex; flex-direction: column; background: var(--cream); border-radius: 22px; overflow: hidden; border: 1px solid rgba(42, 26, 18, .08); transition: box-shadow .6s var(--ease), transform .6s var(--ease), opacity 1s ease; }
.js .product.reveal.in:hover, .product:hover { box-shadow: 0 34px 60px -34px rgba(42, 26, 18, .5); transform: translateY(-6px); transition-delay: 0s; }
.product.pop { animation: cardIn .6s var(--ease); }
.product.flash { animation: flash 1.6s ease; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes flash { 20%, 60% { box-shadow: 0 0 0 4px var(--terra); } }
.p-visual { position: relative; aspect-ratio: 5 / 4.4; display: grid; place-items: center; overflow: hidden;
  background:
    repeating-radial-gradient(circle at 78% 18%, transparent 0 17px, rgba(42, 26, 18, .07) 17px 18px),
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--label) 30%, #f4e7cf), color-mix(in srgb, var(--label) 14%, #efe3cc) 70%);
}
.p-visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(0deg, rgba(42, 26, 18, .08), transparent); }
.p-bag { width: 50%; transition: transform .8s var(--spring); transform-origin: 50% 90%; z-index: 1; }
.p-bag .bag-svg { width: 100%; height: auto; filter: drop-shadow(0 22px 18px rgba(42, 26, 18, .22)); transition: filter .6s; }
.product:hover .p-bag { transform: translateY(-10px) rotate(-4deg) scale(1.05); }
.product:hover .p-bag .bag-svg { filter: drop-shadow(0 36px 26px rgba(42, 26, 18, .28)); }
.p-badge { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--ink); color: var(--cream); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.p-alt { position: absolute; top: 16px; left: 18px; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(42, 26, 18, .7); }
.p-alt b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 700; font-stretch: 78%; letter-spacing: -.01em; color: var(--ink); line-height: 1; text-transform: none; }
.p-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.p-meta { margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-name { margin: -6px 0 0; font-size: 1.9rem; font-weight: 700; font-stretch: 80%; line-height: 1.02; letter-spacing: -.015em; }
.p-name span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .8em; color: var(--terra); font-stretch: 100%; letter-spacing: 0; white-space: nowrap; }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.notes li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; padding: 4px 11px 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); transition: transform .3s var(--spring); }
.notes li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.product:hover .notes li { transform: translateY(-2px); }
.product:hover .notes li:nth-child(2) { transition-delay: .04s; }
.product:hover .notes li:nth-child(3) { transition-delay: .08s; }
.p-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 0; padding: 12px 0; border-block: 1px dashed var(--line); }
.p-specs div { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.p-specs dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.p-specs dd { margin: 0; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 7px; text-align: right; }
.roast-meter { position: relative; width: 34px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #e6c99a, #8a5630 50%, #24140c); flex: none; }
.roast-meter i { position: absolute; top: 50%; left: var(--r); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); }
.dots { gap: 3px !important; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(42, 26, 18, .14); }
.dots i.on { background: var(--terra); }
.p-opts { display: flex; gap: 10px; align-items: stretch; }
.seg { display: inline-flex; background: rgba(42, 26, 18, .07); border-radius: 999px; padding: 3px; position: relative; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .3s, color .3s, box-shadow .3s; white-space: nowrap; }
.seg input:checked + span { background: var(--ink); color: var(--cream); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.seg input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.sel { flex: 1; min-width: 0; position: relative; }
.sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel select, .club-card select { width: 100%; height: 100%; min-height: 38px; appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; padding: 6px 34px 6px 14px; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .25s; }
.sel select:hover { border-color: var(--ink); }
.p-buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.price span { font-size: 2rem; font-weight: 700; font-stretch: 78%; letter-spacing: -.02em; line-height: 1; display: inline-block; }
.price small { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.tick { animation: tick .45s var(--ease); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } }
.add { position: relative; overflow: hidden; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 600; font-size: 15px; height: 48px; padding: 0 22px; min-width: 140px; transition: background-color .3s, transform .3s var(--spring); }
.add:hover { background: var(--terra); transform: translateY(-2px); }
.add:active { transform: scale(.96); }
.add > span { display: flex; align-items: center; justify-content: center; gap: 6px; transition: transform .45s var(--ease), opacity .3s; }
.add-ok { position: absolute; inset: 0; transform: translateY(110%); }
.add-ok svg { width: 18px; height: 18px; }
.add-ok path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.add.done { background: var(--green-2); }
.add.done .add-l { transform: translateY(-110%); opacity: 0; }
.add.done .add-ok { transform: none; }
.add.done .add-ok path { stroke-dashoffset: 0; transition: stroke-dashoffset .4s ease .2s; }
.add:disabled { cursor: default; }
.flyer { position: fixed; z-index: 120; pointer-events: none; }
.flyer .bag-svg { width: 100%; height: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .3)); }

/* ---------- club ---------- */
.club { background: var(--green); color: var(--cream); overflow: hidden; isolation: isolate; }
.club .h2 i { color: var(--terra-l); }
.club .eyebrow { color: var(--terra-l); }
.club-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.club-copy > p:not(.eyebrow) { color: rgba(248, 242, 230, .78); max-width: 46ch; margin: 26px 0 30px; }
.club-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.club-perks li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.club-perks li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--terra) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.club-card { position: relative; background: #efe0c2; color: var(--ink); border-radius: 10px; padding: 0 30px 26px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); transform: rotate(1.2deg); transition: transform .8s var(--spring), opacity 1s ease; }
.js .club-card.reveal.in { transform: rotate(1.2deg); }
.club-card:hover, .js .club-card.reveal.in:hover { transform: rotate(0) translateY(-4px); }
.club-card::before, .club-card::after { content: ""; position: absolute; top: 58px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); }
.club-card::before { left: -11px; } .club-card::after { right: -11px; }
.club-ticket { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; padding: 22px 0 24px; border-bottom: 2px dashed rgba(42, 26, 18, .25); margin: 0 0 8px; }
.club-card fieldset { border: 0; margin: 0; padding: 18px 0 0; min-width: 0; }
.club-card fieldset > :not(legend) { clear: both; }
.club-card legend { float: left; width: 100%; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.club-card select { border-radius: 12px; min-height: 48px; font-size: 15.5px; background: #f8efdc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%232a1a12' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center/12px no-repeat; }
.club-card .seg { width: 100%; }
.club-card .seg label { flex: 1; text-align: center; }
.club-card .seg span { padding: 10px 14px; }
.club-total { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.club-total strong { font-size: 2.4rem; font-weight: 700; font-stretch: 78%; line-height: 1; letter-spacing: -.02em; display: inline-block; }
.club-total .was { text-decoration: line-through; color: var(--muted); margin-right: 8px; font-family: var(--mono); font-size: 14px; }
.club-total small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.club-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }

/* ---------- brew ---------- */
.brew { background: var(--paper); }
.brew-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(42, 26, 18, .07); margin-bottom: 30px; max-width: 100%; }
.brew-tabs [role=tab] { border: 0; background: transparent; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background-color .3s, color .3s; white-space: nowrap; }
.brew-tabs [aria-selected=true] { background: var(--ink); color: var(--cream); }
.brew-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.brew-panel img { width: 100%; height: 100%; max-height: 560px; min-height: 340px; object-fit: cover; border-radius: var(--radius); }
.brew-panel.enter img { animation: brewImg .8s var(--ease); }
.brew-panel.enter .brew-body > * { animation: cardIn .7s var(--ease) both; }
.brew-panel.enter .brew-body > *:nth-child(2) { animation-delay: .06s; }
.brew-panel.enter .brew-body > *:nth-child(3) { animation-delay: .12s; }
@keyframes brewImg { from { clip-path: inset(0 0 0 100% round 18px); } to { clip-path: inset(0 0 0 0 round 18px); } }
.ratio { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.r-big { font-size: clamp(4.4rem, 9vw, 7.5rem); font-weight: 800; font-stretch: 75%; line-height: .85; color: var(--terra); letter-spacing: -.04em; }
.r-sub { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.brew-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.brew-specs dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brew-specs dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; line-height: 1.3; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; font-size: 16px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--terra); border: 1px solid currentColor; border-radius: 999px; text-align: center; padding: 2px 0; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: #1a110c; color: var(--cream); padding: clamp(70px, 9vw, 120px) 0 90px; overflow: hidden; isolation: isolate; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.2fr .6fr; gap: 50px; align-items: start; }
.foot-word { display: block; font-weight: 800; font-stretch: 75%; font-size: clamp(3.6rem, 8vw, 7rem); line-height: .85; letter-spacing: -.03em; color: var(--kraft); }
.foot-brand p { color: rgba(248, 242, 230, .65); max-width: 36ch; margin: 18px 0 0; }
.news label { display: block; font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.15; margin-bottom: 16px; }
.news-row { display: flex; gap: 8px; }
.news input { flex: 1; min-width: 0; background: rgba(248, 242, 230, .08); border: 1.5px solid rgba(248, 242, 230, .2); border-radius: 999px; padding: 13px 18px; color: var(--cream); }
.news input::placeholder { color: rgba(248, 242, 230, .4); }
.news input:focus { border-color: var(--terra-l); outline: none; }
.news-msg { min-height: 1.4em; font-size: 14px; margin: 10px 0 0; }
.news-msg.ok { color: var(--sage); } .news-msg.bad { color: var(--terra-l); }
.foot-links { display: grid; gap: 10px; }
.foot-links a { text-decoration: none; color: rgba(248, 242, 230, .75); transition: color .2s; }
.foot-links a:hover { color: var(--cream); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px; margin-top: 64px; padding-top: 22px; position: relative; font-family: var(--mono); font-size: 12px; color: rgba(248, 242, 230, .55); }
.foot-base p { margin: 0; }
.foot-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(248, 242, 230, .14); }
.demo-note a { color: var(--kraft); text-underline-offset: 3px; }

/* fixed demo badge */
.demo-badge {
  position: fixed; left: 14px; bottom: 14px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 28px); padding: 7px 12px 7px 10px; border-radius: 999px;
  background: rgba(26, 17, 12, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: rgba(248, 242, 230, .9); font-family: var(--mono); font-size: 11px; line-height: 1.3; text-decoration: none;
  border: 1px solid rgba(248, 242, 230, .14); transition: background-color .25s, transform .3s var(--ease);
}
.demo-badge:hover { background: var(--terra); transform: translateY(-2px); }
.demo-short { display: none; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; top: 86px; z-index: 130; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--cream); padding: 11px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); transition: opacity .3s, transform .5s var(--spring); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(20, 13, 9, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s; }
.scrim.on { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(450px, 100vw); height: 100dvh;
  background: var(--paper); display: flex; flex-direction: column; box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .35);
  transform: translateX(103%); visibility: hidden; transition: transform .6s var(--ease-io), visibility 0s .6s; outline: none;
}
.cart.open { transform: none; visibility: visible; transition: transform .6s var(--ease-io), visibility 0s; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 14px; }
.cart-head h2 { margin: 0; font-weight: 700; font-stretch: 78%; font-size: 2rem; letter-spacing: -.015em; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center; transition: transform .4s var(--spring), border-color .25s; }
.icon-btn:hover { transform: rotate(90deg); border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.ship { margin: 0 24px 6px; padding: 14px 16px 16px; background: var(--cream); border-radius: 14px; border: 1px solid var(--line); }
.ship p { margin: 0 0 12px; font-size: 14px; }
.ship-bar { position: relative; height: 8px; border-radius: 999px; background: rgba(42, 26, 18, .1); }
.ship-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, var(--terra-l), var(--terra)); transition: width .7s var(--ease), background .4s; }
.ship-bar i { position: absolute; top: 50%; width: 14px; height: 18px; margin: -9px 0 0 -7px; border-radius: 50%; background: #5a3523; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); transition: left .7s var(--ease); transform: rotate(18deg); }
.ship-bar i::after { content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; border-radius: 2px; background: #c8a56f; transform: rotate(-10deg); }
.ship.unlocked .ship-bar span { background: linear-gradient(90deg, var(--sage), var(--green-2)); }
.ship.unlocked .ship-bar i { animation: hop .7s var(--spring); }
@keyframes hop { 40% { transform: translateY(-8px) rotate(200deg); } }
.cart-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lines { list-style: none; margin: 0; padding: 6px 24px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.cline { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); overflow: hidden; transition: height .35s var(--ease), opacity .3s, transform .35s var(--ease), padding .35s; }
.cline.fresh { animation: lineIn .7s var(--ease); }
@keyframes lineIn { from { opacity: 0; transform: translateX(24px); background: rgba(217, 164, 65, .25); } }
.cline.leaving { opacity: 0; transform: translateX(40px); padding-top: 0; padding-bottom: 0; }
.line-bag .bag-svg { width: 100%; height: auto; }
.line-name { margin: 0; font-weight: 700; font-stretch: 85%; font-size: 1.15rem; line-height: 1.15; }
.club-tag { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--green-2); color: var(--cream); padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
.line-meta { margin: 3px 0 10px; font-size: 13px; color: var(--muted); }
.line-ctl { display: flex; align-items: center; gap: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 50%; font-size: 17px; line-height: 1; transition: background-color .2s; }
.qty button:hover { background: rgba(42, 26, 18, .08); }
.qty output { min-width: 22px; text-align: center; font-family: var(--mono); font-size: 14px; }
.rm { border: 0; background: none; padding: 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.rm:hover { color: var(--terra); }
.line-price { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 500; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 40px 24px; color: var(--muted); }
.cart-empty p { font-family: var(--serif); font-style: italic; font-size: 1.6rem; margin: 0; color: var(--ink); }
.cart-foot { padding: 18px 24px 22px; border-top: 1px solid var(--line); background: var(--paper-2); }
.sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.sum b { font-family: var(--mono); font-weight: 500; font-size: 18px; }
.sum.sub { font-size: 14px; color: var(--muted); margin: 4px 0 16px; }
.fine { font-size: 12px; color: var(--muted); margin: 10px 0 0; text-align: center; }

.checkout { padding: 8px 24px 24px; overflow-y: auto; display: grid; gap: 12px; align-content: start; }
.link-back { border: 0; background: none; padding: 0; justify-self: start; font-size: 14px; color: var(--muted); }
.link-back:hover { color: var(--ink); }
.field { display: grid; gap: 4px; min-width: 0; align-content: start; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field label small { text-transform: none; letter-spacing: 0; }
.field input { width: 100%; border: 1.5px solid var(--line); background: var(--cream); border-radius: 10px; padding: 11px 13px; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(42, 26, 18, .08); }
.field.bad input { border-color: var(--terra); background: #fbf0e8; }
.err { font-size: 12.5px; color: var(--terra-d); min-height: 0; }
.field-row { display: grid; grid-template-columns: 1fr 72px 92px; gap: 10px; align-items: start; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.co-total b { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 30px 60px; gap: 6px; }
.done-stamp { width: 120px; height: 120px; margin-bottom: 14px; animation: stampIn .8s var(--spring); }
.done-stamp .tick { stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw .6s ease .45s forwards; }
@keyframes stampIn { from { transform: scale(1.8) rotate(-20deg); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { margin: 0; font-weight: 700; font-stretch: 78%; font-size: 2.4rem; line-height: 1; outline: none; }
.done h3 span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--terra); font-stretch: 100%; }
.order-no { font-family: var(--mono); font-size: 14px; color: var(--muted); margin: 6px 0; }
.order-no b { color: var(--ink); background: var(--kraft); padding: 3px 10px; border-radius: 6px; font-weight: 500; letter-spacing: .06em; }
.done p:not(.order-no) { color: var(--muted); max-width: 34ch; margin: 6px 0 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-links { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 24px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 110px; gap: 10px; }
  .hero-stage { height: 380px; min-height: 0; max-width: 460px; width: 100%; justify-self: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .section-head { grid-template-columns: 1fr; row-gap: 22px; }
  .section-head .lede { justify-self: start; }
  .farms { grid-template-columns: 1fr; }
  .processes { grid-template-columns: 1fr; }
  .processes li, .processes li + li { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 84px 1fr; column-gap: 20px; align-items: start; }
  .processes svg { width: 84px; height: 84px; grid-row: span 3; margin: 0; }
  .roast { grid-template-columns: 1fr; }
  .roast-img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .club-grid { grid-template-columns: 1fr; }
  .brew-panel { grid-template-columns: 1fr; }
  .brew-panel img { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .shop-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .profile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .profile-svg { min-width: 760px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-word { font-size: 21px; }
  .cart-label { display: none; }
  .hero-title { font-size: clamp(3.6rem, 19vw, 5.4rem); }
  .hero-stage { height: 330px; }
  .hb-front { left: 4%; width: 60%; }
  .hb-back { left: 44%; width: 50%; }
  .stamp { width: 112px; right: 0; bottom: 2%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .products { grid-template-columns: 1fr; }
  .filters { gap: 12px; }
  .filter-count { margin-left: 0; width: 100%; }
  .p-opts { flex-wrap: wrap; }
  .p-specs { grid-template-columns: 1fr; }
  .club-card { padding: 0 20px 22px; transform: none; }
  .js .club-card.reveal.in { transform: none; }
  .brew-tabs { display: flex; width: 100%; }
  .brew-tabs [role=tab] { flex: 1; padding: 10px 8px; font-size: 14px; }
  .brew-specs { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-links { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: 110px; }
  .field-row { grid-template-columns: 1fr 64px 84px; }
  .demo-badge .demo-long { display: none; }
  .demo-badge .demo-short { display: inline; }
  .scale-labels span:nth-child(2), .scale-labels span:nth-child(4) { visibility: hidden; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee-track, .stamp-ring, .dot { animation: none !important; }
  .js .hero-title .line > span, .js .hero-eyebrow, .js .hero-lede, .js .hero-ctas, .js .hero-stats div,
  .js .hb .bag-svg, .js .stamp, .js .reveal, .js .reveal-img img, .js .hero-bg img { opacity: 1; transform: none; clip-path: none; }
  .ready .hb-front { animation: none; }
}
