/* ==========================================================================
   TALA — Brew Theme · global styles (tokens, header, mega menu, overlays,
   product card + coffee bag packshot, footer). Page sections live in home.css.
   Fonts: Fraunces (display, soft serif) · DM Sans (UI) · DM Mono (meta)
   ========================================================================== */

:root {
  /* palette — cream, latte, roast, espresso + a deep highland green */
  --ink: #1f1611;          /* espresso */
  --ink-2: #2a1f17;
  --ink-3: #3d2d22;
  --paper: #f6f0e8;        /* cream */
  --paper-2: #eee5d9;
  --latte: #e5d9c9;
  --white: #fffdf9;
  --roast: #7b5235;
  --crema: #c99a68;
  --leaf: #1d3a2e;         /* highland green */
  --leaf-2: #2b5242;
  --mute: #7b6a5c;
  --mute-2: #a9998a;
  --line: rgba(31, 22, 17, .12);
  --line-2: rgba(31, 22, 17, .06);
  --line-inv: rgba(255, 248, 240, .16);

  /* swatches that sit behind packshots */
  --sw-crema: #ecdcc6;
  --sw-latte: #e5d9c9;
  --sw-mocha: #dcc8b4;
  --sw-sage: #d8dccb;
  --sw-ube: #ddd2df;
  --sw-butter: #efe2c4;
  --sw-clay: #e9d1bf;
  --sw-mist: #e2e0da;

  --signal: #c4553a;       /* "fresh"/urgency only */
  --ok: #2f6b4f;

  /* type */
  --f-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* shape + motion */
  --r-xs: 6px;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --glass: rgba(246, 240, 232, .66);
  --glass-dark: rgba(31, 22, 17, .34);
  --blur: saturate(150%) blur(22px);

  --gutter: clamp(16px, 3vw, 44px);
  --section: clamp(80px, 9.5vw, 150px);
  --bar-h: 36px;
  --head-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
@supports not (overflow: clip) { html { overflow-x: hidden; } }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
::selection { background: var(--roast); color: var(--paper); }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.is-locked { overflow: hidden; }

.container { width: min(1520px, 100% - (var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section); }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--s { width: 16px; height: 16px; }
.i--fill { fill: currentColor; stroke: none; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.eyebrow--plain::before { display: none; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 350; font-variation-settings: "SOFT" 100, "opsz" 144; }

.h-display, .h-1, .h-2, .h-3 { font-family: var(--f-serif); font-variation-settings: "SOFT" 50, "opsz" 144; }
.h-display {
  font-weight: 340;
  font-size: clamp(3.3rem, 8.6vw, 9.6rem);
  line-height: .9;
  letter-spacing: -.045em;
}
.h-1 { font-weight: 360; font-size: clamp(2.5rem, 5.4vw, 5.4rem); line-height: .96; letter-spacing: -.04em; }
.h-2 { font-weight: 380; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1; letter-spacing: -.035em; }
.h-3 { font-weight: 420; font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.15; letter-spacing: -.02em; font-variation-settings: "SOFT" 50, "opsz" 36; }
.h-display .serif, .h-1 .serif, .h-2 .serif { font-weight: 300; letter-spacing: -.035em; }
.lede { font-size: clamp(15.5px, 1.1vw, 17.5px); line-height: 1.65; color: var(--mute); max-width: 46ch; }

/* split-line reveal */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; transform: translateY(110%); transition: transform 1.15s var(--ease); }
.is-in .line > span, .line.is-in > span { transform: none; }
.is-in .line:nth-child(2) > span { transition-delay: .09s; }
.is-in .line:nth-child(3) > span { transition-delay: .18s; }

/* generic reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--r-m)); transition: clip-path 1.3s var(--ease-io); transition-delay: var(--d, 0s); }
[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r-m)); }

/* ---------- buttons ---------- */
.btn {
  --bh: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--bh);
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn .i { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover::after { transform: none; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::after { background: var(--roast); }
.btn--roast { background: var(--roast); color: var(--paper); }
.btn--roast::after { background: var(--ink); }
.btn--leaf { background: var(--leaf); color: var(--paper); }
.btn--leaf::after { background: var(--leaf-2); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light::after { background: var(--white); }
.btn--line { border: 1px solid var(--line); color: var(--ink); }
.btn--line::after { background: var(--ink); }
.btn--line:hover { color: var(--paper); border-color: var(--ink); }
.btn--line-inv { border: 1px solid rgba(255, 248, 240, .4); color: var(--paper); }
.btn--line-inv::after { background: var(--paper); }
.btn--line-inv:hover { color: var(--ink); border-color: var(--paper); }
.btn--glass {
  color: #fff;
  background: rgba(255, 248, 240, .12);
  border: 1px solid rgba(255, 248, 240, .32);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.btn--glass::after { background: var(--paper); }
.btn--glass:hover { color: var(--ink); }
.btn--s { --bh: 42px; padding: 0 20px; font-size: 13.5px; }
.btn--block { width: 100%; }

.link-u {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 500;
  padding-bottom: 3px;
}
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .6s var(--ease);
}
.link-u:hover::after { transform: scaleX(0); }
.link-u .i { width: 15px; height: 15px; }

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.icon-btn:hover { background: rgba(127, 110, 95, .16); }
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn--line { width: 50px; height: 50px; border: 1px solid var(--line); }
.icon-btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ==========================================================================
   ANNOUNCEMENT + HEADER (transparent → glass)
   ========================================================================== */
.site-top { position: fixed; inset: 0 0 auto; z-index: 60; transition: transform .6s var(--ease); }
.site-top.is-hidden { transform: translateY(calc(-1 * var(--bar-h))); }

.bar {
  height: var(--bar-h);
  background: var(--leaf);
  color: rgba(255, 248, 240, .88);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bar__in { height: 100%; display: grid; grid-template-columns: 1fr minmax(0, 2.2fr) 1fr; align-items: center; gap: 16px; }
.bar__rotator { position: relative; height: 100%; overflow: hidden; text-align: center; min-width: 0; }
.bar__msg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transform: translateY(100%);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  white-space: nowrap;
}
.bar__msg.is-active { opacity: 1; transform: none; }
.bar__msg.is-out { opacity: 0; transform: translateY(-100%); }
.bar__msg u { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bar__msg .i { width: 13px; height: 13px; color: var(--crema); }
.bar__side { display: flex; gap: 22px; }
.bar__side--r { justify-content: flex-end; }
.bar__side a { opacity: .7; transition: opacity .3s; }
.bar__side a:hover { opacity: 1; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #7fd39b; box-shadow: 0 0 0 0 rgba(127, 211, 155, .6); animation: live 1.9s infinite; flex: none; }
.live-dot--warm { background: var(--crema); animation-name: live-warm; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(127, 211, 155, .55); } 70% { box-shadow: 0 0 0 7px rgba(127, 211, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 211, 155, 0); } }
@keyframes live-warm { 0% { box-shadow: 0 0 0 0 rgba(201, 154, 104, .6); } 70% { box-shadow: 0 0 0 7px rgba(201, 154, 104, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 154, 104, 0); } }

.header {
  position: relative;
  height: var(--head-h);
  color: var(--paper);
  transition: color .45s var(--ease);
}
.header::before { /* floating glass pill once you scroll */
  content: ""; position: absolute;
  inset: 10px max(8px, calc((100% - 1520px) / 2 - 18px));
  border-radius: 999px;
  background: rgba(250, 245, 238, .7);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 253, 249, .7);
  box-shadow: 0 18px 50px -24px rgba(31, 22, 17, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  opacity: 0; transform: translateY(-8px) scale(.985);
  transition: opacity .45s var(--ease), transform .6s var(--ease), inset .5s var(--ease), border-radius .5s var(--ease);
}
.header.is-solid, .header.is-mega { color: var(--ink); }
.header.is-solid::before, .header.is-mega::before { opacity: 1; transform: none; }
.header.is-mega::before { inset: 0; border-radius: 0; background: rgba(246, 240, 232, .92); border-color: transparent; box-shadow: none; }
.page-ink .header:not(.is-solid):not(.is-mega) { color: var(--ink); }
.header__in {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* logo left · nav centred · tools right */
  align-items: center;
  gap: 24px;
}
.header__in > .logo { justify-self: start; }

.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.logo__mark { width: 30px; height: 30px; flex: none; transition: transform 1.2s var(--ease); }
.logo:hover .logo__mark { transform: rotate(72deg); }
.logo__word { display: grid; gap: 3px; }
.logo__word b { font-family: var(--f-serif); font-weight: 450; font-size: 27px; letter-spacing: -.04em; font-variation-settings: "SOFT" 100, "opsz" 72; }
.logo__word small { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; }

.nav { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav__item { height: 100%; display: flex; align-items: center; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 13px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -.005em;
  border-radius: 999px;
  transition: opacity .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav__item:hover .nav__link::after, .nav__item.is-open .nav__link::after { transform: scaleX(1); }
.nav:hover .nav__link { opacity: .55; }
.nav:hover .nav__item:hover .nav__link, .nav .nav__item.is-open .nav__link { opacity: 1; }
.nav__link .chev { width: 12px; height: 12px; transition: transform .4s var(--ease); }
.nav__item.is-open .chev { transform: rotate(180deg); }

.tools { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.tools__stars {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 10px; margin-right: 6px;
  border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 28%, transparent);
  transition: background-color .3s;
}
.tools__stars:hover { background: rgba(127, 110, 95, .16); }
.tools__stars .i { width: 15px; height: 15px; color: var(--crema); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; }
.cart-btn:hover { background: rgba(127, 110, 95, .16); }
.cart-count {
  display: inline-grid; place-items: center;
  min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px;
  background: currentColor;
  font-size: 12px; font-weight: 600;
}
.cart-count span { color: var(--ink); transition: color .45s var(--ease); }
.header.is-solid .cart-count span, .header.is-mega .cart-count span, .page-ink .header .cart-count span { color: var(--paper); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.burger { display: none; }

/* ==========================================================================
   MEGA MENU
   ========================================================================== */
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 2; color: var(--ink); pointer-events: none; visibility: hidden; }
.mega__panel {
  position: absolute; left: 0; right: 0; top: 0;
  background: rgba(246, 240, 232, .9);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
  visibility: hidden;
}
.mega__panel.is-open { clip-path: inset(0 0 0 0); visibility: visible; pointer-events: auto; transition: clip-path .7s var(--ease-io), visibility 0s; }
.mega__grid { display: grid; grid-template-columns: 1.45fr .9fr 1fr 2.2fr; gap: clamp(20px, 3vw, 56px); padding-block: 38px 44px; }
.mega__col h4 { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.mega__col li + li { margin-top: 2px; }
.mega__col a { display: inline-flex; align-items: baseline; gap: 8px; font-size: 15px; padding: 4px 0; transition: transform .45s var(--ease), opacity .3s; }
.mega__col a small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; color: var(--mute); }
.mega__col ul:hover a { opacity: .4; }
.mega__col ul:hover a:hover { opacity: 1; transform: translateX(6px); }
.mega__col--big a { white-space: nowrap; font-family: var(--f-serif); font-size: clamp(22px, 1.9vw, 30px); font-weight: 380; letter-spacing: -.035em; padding: 3px 0; font-variation-settings: "SOFT" 60, "opsz" 72; }
.mega__col--big a .tag {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line); align-self: center;
}
.mega__col--big a .tag--hot { background: var(--leaf); color: var(--paper); border-color: var(--leaf); }
.roast-dots { display: inline-flex; gap: 3px; }
.roast-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.roast-dots i.on { background: var(--roast); }

.mega__feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; min-height: 350px; }
.mega__preview { position: relative; overflow: hidden; border-radius: var(--r-m); background: var(--sw-mocha); }
.mega__preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity .7s var(--ease), transform 1.4s var(--ease);
}
.mega__preview img.is-active { opacity: 1; transform: scale(1); }
.mega__preview figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 15px;
  border-radius: var(--r-s);
  color: #fff;
  background: rgba(31, 22, 17, .3);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 248, 240, .2);
  font-size: 14.5px; font-weight: 500;
}
.mega__preview figcaption small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; font-weight: 400; }
.mega__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.mega__card { position: relative; overflow: hidden; border-radius: var(--r-m); display: block; background: var(--sw-crema); }
.mega__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega__card:hover img { transform: scale(1.06); }
.mega__card span { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; font-size: 14.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.mega__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 12, 8, .55), transparent 60%); }
.mega__card--bag { display: grid; place-items: center; }
.mega__card--bag .bag-slot { position: relative; inset: auto; display: block; width: 50%; transform: translateY(-8px) rotate(-4deg); transition: transform .9s var(--ease); }
.mega__card--bag:hover .bag-slot { transform: translateY(-14px) rotate(0); }
.mega__card--bag::after { display: none; }
.mega__card--bag span { color: var(--ink); }

.mega__panel [data-m] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.mega__panel.is-open [data-m] { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 45ms + 120ms); }
.mega__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 14px; font-size: 13px; color: var(--mute); }
.mega__foot a { color: var(--ink); }
.mega__foot .i { width: 16px; height: 16px; }
.mega__foot div { display: flex; gap: 28px; align-items: center; }
.mega__foot div span { display: inline-flex; gap: 8px; align-items: center; }

.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(31, 22, 17, .36); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.scrim.is-on { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */
.search {
  position: fixed; inset: 0 0 auto; z-index: 80;
  background: rgba(246, 240, 232, .92);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transform: translateY(-102%);
  transition: transform .7s var(--ease-io);
  border-bottom: 1px solid var(--line);
}
.search.is-open { transform: none; }
.search__in { padding-block: 26px 42px; }
.search__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.search__field { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.search__field .i { width: 28px; height: 28px; }
.search__field input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-family: var(--f-serif); font-size: clamp(30px, 4vw, 56px); letter-spacing: -.04em; font-weight: 350;
}
.search__field input::placeholder { color: var(--mute-2); }
.search__cols { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; margin-top: 30px; }
.search__cols h4 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13.5px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip:hover, .chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search__products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mini { display: grid; gap: 10px; font-size: 13.5px; }
.mini__img { position: relative; aspect-ratio: 1; background: var(--paper-2); border-radius: var(--r-s); overflow: hidden; display: grid; place-items: center; }
.mini__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mini__img .bag { width: 46%; transition: transform 1s var(--ease); }
.mini:hover .mini__img img, .mini:hover .mini__img .bag { transform: scale(1.05); }
.mini b { font-weight: 500; display: block; }
.mini span { color: var(--mute); }

/* ==========================================================================
   COFFEE BAG PACKSHOT (inline SVG, generated in theme.js)
   ========================================================================== */
.bag { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 28px rgba(60, 35, 20, .22)) drop-shadow(0 6px 8px rgba(60, 35, 20, .12)); }
.bag text { font-family: var(--f-sans); }
.bag .t-serif { font-family: var(--f-serif); font-variation-settings: "SOFT" 100, "opsz" 72; }
.bag .t-mono { font-family: var(--f-mono); letter-spacing: .14em; }

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */
.card { position: relative; display: flex; flex-direction: column; gap: 16px; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px var(--r-m) var(--r-m);   /* café-window arch */
  background: var(--card-bg, var(--paper-2));
  isolation: isolate;
}
.card__media > a { position: absolute; inset: 0; z-index: 1; display: block; }
.card__bag {
  position: absolute; left: 50%; top: 47%;
  width: 54%;
  transform: translate(-50%, -50%);
  transition: transform 1s var(--ease), opacity .6s var(--ease);
}
.card:hover .card__bag { transform: translate(-50%, -54%) rotate(-2deg) scale(1.03); }
.card__media::before { /* soft spotlight behind the bag */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 42%, rgba(255, 253, 249, .7), transparent 70%);
}
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .7s var(--ease); }
.card__img--alt { opacity: 0; transform: scale(1.08); }
.card:hover .card__img--alt { opacity: 1; transform: scale(1); }
.card:hover .card__img--alt ~ .card__bag { opacity: 0; }
.card--photo .card__media::before { display: none; }
.card.is-sold .card__bag { filter: grayscale(.7) opacity(.7); }
.card.is-sold .card__price { color: var(--mute); text-decoration: line-through; }
.qa__sizes button[data-notify] { background: var(--ink); color: var(--paper); }
.card--photo:hover .card__img--main { transform: scale(1.05); }
.card__badges { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 6px; white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 25px; padding: 0 10px;
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255, 253, 249, .7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.badge--ink { background: var(--ink); color: var(--paper); }
.badge--leaf { background: var(--leaf); color: var(--paper); }
.badge--signal { background: var(--signal); color: #fff; }
.card__wish {
  position: relative; margin: -8px -8px -8px auto; flex: none;
  width: 32px; height: 32px; border-radius: 50%; color: var(--ink);
  display: grid; place-items: center;
  transition: transform .4s var(--ease), background-color .3s;
}
.card__wish:hover { background: var(--paper-2); }
.card__wish .i { width: 17px; height: 17px; }
.card__wish.is-on .i { fill: var(--roast); stroke: var(--roast); }
.card__wish.is-on { animation: bump .45s var(--ease); }
.card__notes { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; gap: 5px; flex-wrap: wrap; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.card__notes span { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 253, 249, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card:hover .card__notes, .card:focus-within .card__notes { opacity: 0; transform: translateY(8px); }

/* quick add — glass grind + size bar */
.qa {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  padding: 12px;
  border-radius: var(--r-s);
  background: rgba(246, 240, 232, .72);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 253, 249, .55);
  box-shadow: 0 18px 40px -20px rgba(31, 22, 17, .4);
  transform: translateY(calc(100% + 14px));
  transition: transform .6s var(--ease);
}
.card:hover .qa, .card:focus-within .qa { transform: none; }
.qa__label { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; padding-inline: 2px; }
.qa__grind { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.qa__grind::-webkit-scrollbar { display: none; }
.qa__grind button { flex: 1 0 auto; height: 28px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: rgba(255, 253, 249, .6); transition: background-color .25s, color .25s; white-space: nowrap; }
.qa__grind button.is-on { background: var(--ink); color: var(--paper); }
.qa__sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 4px; }
.qa__sizes button {
  height: 38px; border-radius: var(--r-xs);
  font-size: 12.5px; font-weight: 500;
  background: rgba(255, 253, 249, .78);
  transition: background-color .25s, color .25s;
  display: grid; line-height: 1.1; place-content: center;
}
.qa__sizes button small { font-size: 10.5px; opacity: .65; font-weight: 400; }
.qa__sizes button:hover { background: var(--roast); color: var(--paper); }
.qa__sizes button[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; background: transparent; }
.qa--one .qa__sizes { grid-template-columns: 1fr; }

.card__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; font-size: 14.5px; }
.card__kicker { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 2px; display: flex; gap: 10px; align-items: center; }
.card__title { font-family: var(--f-serif); font-size: 21px; font-weight: 400; letter-spacing: -.025em; line-height: 1.15; font-variation-settings: "SOFT" 80, "opsz" 48; }
.card__meta { color: var(--mute); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__price { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card__price small { color: var(--mute); font-weight: 400; font-size: 12px; }
.card__price s { color: var(--mute-2); font-weight: 400; margin-right: 6px; }
.card__row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.roast { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mute); white-space: nowrap; }
.roast__bar { display: inline-flex; gap: 2px; }
.roast__bar i { width: 14px; height: 4px; border-radius: 2px; background: var(--line); }
.roast__bar i.on { background: var(--roast); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); }
.stock--low { color: var(--signal); }
.stock--low::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock--fresh { color: var(--ok); }
.stock--fresh::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stars { display: inline-flex; gap: 1px; color: var(--crema); }
.stars .i { width: 12px; height: 12px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); }

/* ==========================================================================
   DRAWERS (cart + mobile menu)
   ========================================================================== */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(470px, 100%);
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform .7s var(--ease-io);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-family: var(--f-serif); font-size: 26px; font-weight: 380; letter-spacing: -.03em; display: flex; gap: 10px; align-items: baseline; }
.drawer__head h3 small { font-family: var(--f-mono); font-size: 11px; color: var(--mute); letter-spacing: .08em; }
.ship { padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ship p { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ship p b { font-weight: 600; }
.ship__track { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ship__fill { height: 100%; width: 0; background: var(--roast); border-radius: inherit; transition: width .8s var(--ease); }
.ship.is-done .ship__fill { background: var(--ok); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.line-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.line-item__img { aspect-ratio: 1; background: var(--paper-2); border-radius: var(--r-s); overflow: hidden; display: grid; place-items: center; }
.line-item__img img { width: 100%; height: 100%; object-fit: cover; }
.line-item__img .bag { width: 56%; filter: drop-shadow(0 8px 8px rgba(60, 35, 20, .2)); }
.line-item b { font-weight: 500; display: block; }
.line-item small { color: var(--mute); font-size: 12px; }
.line-item__right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 32px; margin-top: 10px; }
.qty button { width: 30px; height: 100%; display: grid; place-items: center; }
.qty button .i { width: 13px; height: 13px; }
.qty span { min-width: 18px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.remove { font-size: 12px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.drawer__empty { text-align: center; padding: 60px 10px; display: grid; gap: 14px; justify-items: center; }
.drawer__empty p { color: var(--mute); max-width: 32ch; }
.upsell { padding: 18px 0 8px; }
.upsell h5 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin: 0 0 12px; }
.upsell__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 13px; padding: 8px; border-radius: var(--r-s); background: var(--paper-2); }
.upsell__img { width: 56px; aspect-ratio: 1; border-radius: var(--r-xs); overflow: hidden; display: grid; place-items: center; }
.upsell__img img { width: 100%; height: 100%; object-fit: cover; }
.upsell__img .bag { width: 62%; filter: none; }
.upsell__item b { font-weight: 500; display: block; }
.upsell__item span { color: var(--mute); }
.drawer__foot { padding: 18px 24px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer__total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 500; }
.drawer__note { font-size: 12px; color: var(--mute); text-align: center; }
.drawer__stars { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--leaf); background: rgba(29, 58, 46, .07); border-radius: 999px; padding: 8px 12px; }
.drawer__stars .i { width: 14px; height: 14px; color: var(--crema); }
.pay-row { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pay {
  height: 22px; padding: 0 7px; border-radius: 4px;
  border: 1px solid var(--line);
  display: inline-grid; place-items: center;
  font-size: 9.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-3);
  background: var(--white);
}

/* mobile menu */
.mnav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io);
  visibility: hidden;
}
.mnav.is-open { clip-path: inset(0); visibility: visible; }
.mnav__head { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); flex: none; }
.mnav__body { flex: 1; overflow-y: auto; padding: 12px var(--gutter) 24px; }
.mnav__acc { border-bottom: 1px solid var(--line); }
.mnav__acc > button, .mnav__link {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  font-family: var(--f-serif); font-size: 32px; font-weight: 360; letter-spacing: -.04em; line-height: 1;
}
.mnav__link { border-bottom: 1px solid var(--line); }
.mnav__acc > button .i { width: 22px; height: 22px; transition: transform .5s var(--ease); }
.mnav__acc.is-open > button .i { transform: rotate(45deg); }
.mnav__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.mnav__acc.is-open .mnav__panel { grid-template-rows: 1fr; }
.mnav__panel > div { overflow: hidden; }
.mnav__panel ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 4px 0 18px; font-size: 15px; }
.mnav__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 20px; }
.mnav__cards a { position: relative; aspect-ratio: 4/5; border-radius: var(--r-s); overflow: hidden; background: var(--sw-mocha); }
.mnav__cards img { width: 100%; height: 100%; object-fit: cover; }
.mnav__cards span { position: absolute; left: 10px; bottom: 10px; color: #fff; font-size: 14px; font-weight: 500; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.mnav__foot { flex: none; padding: 16px var(--gutter) 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.mnav__foot div { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); }

/* ==========================================================================
   TOAST + SOCIAL PROOF
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: 999px;
  background: rgba(31, 22, 17, .84);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: #fff; font-size: 13.5px;
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s .6s;
  max-width: calc(100% - 32px);
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
.toast .i { width: 16px; height: 16px; color: #8fd8a8; }
.toast button { background: var(--paper); color: var(--ink); height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }

.proof {
  position: fixed; left: 20px; bottom: 20px; z-index: 50;
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center;
  width: min(350px, calc(100% - 40px));
  padding: 8px 10px 8px 8px;
  border-radius: var(--r-m);
  background: rgba(246, 240, 232, .8);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 253, 249, .6);
  box-shadow: 0 20px 40px -18px rgba(31, 22, 17, .35);
  font-size: 12.5px; line-height: 1.4;
  transform: translateY(calc(100% + 30px));
  opacity: 0; visibility: hidden;
  transition: transform .7s var(--ease), opacity .5s var(--ease), visibility 0s .7s;
}
.proof.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .7s var(--ease), opacity .5s var(--ease), visibility 0s; }
.proof__img { width: 52px; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.proof__img img { width: 100%; height: 100%; object-fit: cover; }
.proof__img .bag { width: 62%; filter: none; }
.proof p b { font-weight: 600; }
.proof small { display: flex; align-items: center; gap: 4px; color: var(--mute); font-size: 11px; margin-top: 2px; }
.proof small .i { width: 12px; height: 12px; color: var(--ok); }
.proof__x { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; align-self: start; }
.proof__x .i { width: 13px; height: 13px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: rgba(255, 248, 240, .9); position: relative; overflow: hidden; }
.footer a { transition: opacity .3s; }
.footer__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding-block: 84px 60px; }
.footer__brand p { color: rgba(255, 248, 240, .55); font-size: 14px; max-width: 36ch; margin-top: 20px; }
.footer h5 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: rgba(255, 248, 240, .45); margin: 0 0 18px; }
.footer li + li { margin-top: 9px; }
.footer li a { font-size: 14px; }
.footer ul:hover a { opacity: .45; }
.footer ul:hover a:hover { opacity: 1; }
.socials { display: flex; gap: 6px; margin-top: 24px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; }
.socials a:hover { background: var(--paper); color: var(--ink); }
.socials .i { width: 17px; height: 17px; }
.footer__sign { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 20px 48px; padding-block: 36px 52px; border-top: 1px solid var(--line-inv); }
.footer__kape { font-family: var(--f-serif); font-weight: 300; font-size: clamp(4.4rem, 13vw, 13rem); line-height: .82; letter-spacing: -.055em; color: var(--paper); white-space: nowrap; font-variation-settings: "SOFT" 100, "opsz" 144; }
.footer__kape em { font-style: italic; font-weight: 280; color: var(--crema); }
.footer__kape-note { align-self: end; max-width: 30ch; padding-bottom: 14px; font-size: 14px; color: rgba(255, 248, 240, .6); }
.footer__kape-note .mono { display: block; margin-bottom: 6px; font-size: 10px; color: var(--crema); }
.footer__badge { position: relative; width: 136px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--crema); color: var(--ink); transition: transform .6s var(--ease); }
.footer__badge:hover { transform: rotate(-10deg) scale(1.05); }
.footer__badge > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: footSpin 24s linear infinite; }
.footer__badge text { font-family: var(--f-mono); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; fill: currentColor; }
.footer__badge .i { width: 30px; height: 30px; }
@keyframes footSpin { to { transform: rotate(360deg); } }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line-inv); font-size: 12px; color: rgba(255, 248, 240, .5); position: relative; }
.footer__bottom .pay { background: transparent; color: rgba(255, 248, 240, .75); border-color: var(--line-inv); }
.footer__bottom div { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(31, 22, 17, .8); color: #fff;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top .i { transform: rotate(-90deg); width: 18px; height: 18px; }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--crema); stroke-width: 1.5; stroke-dasharray: 151; stroke-dashoffset: var(--p, 151); }

/* ==========================================================================
   SHARED SECTIONS
   ========================================================================== */
.sec-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.sec-head .eyebrow { margin-bottom: 20px; color: var(--roast); }
.sec-head__r { display: grid; gap: 18px; justify-items: start; }
.sec-head--row { grid-template-columns: 1fr auto; }
.sec-head--center { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.sec-head--center .lede { margin-inline: auto; }
.sec-head--center .sec-head__r { justify-items: center; }

.tabs {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(255, 253, 249, .4);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--mute);
  white-space: nowrap;
  transition: color .45s var(--ease);
}
.tab sup { font-family: var(--f-mono); font-size: 9px; margin-left: 2px; opacity: .7; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--paper); }
.tabs__ink {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(var(--l, 4px));
  width: var(--w, 0);
  transition: transform .55s var(--ease), width .55s var(--ease);
}

.is-cards .card { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.is-cards .card.is-in { opacity: 1; transform: none; }
.is-cards.is-swapping .card { opacity: 0; transform: translateY(12px); transition-duration: .3s; transition-delay: 0s; }
.card__plus {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  display: none; place-items: center;
  background: rgba(255, 253, 249, .8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card__plus .i { width: 17px; height: 17px; }
@media (hover: none) { .card__plus { display: grid; } }

/* tasting-note pills */
.notes { display: flex; flex-wrap: wrap; gap: 5px; }
.notes li { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 25%, transparent); }

/* touch quick-add sheet */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--paper);
  border-radius: var(--r-l) var(--r-l) 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform .6s var(--ease);
}
.sheet.is-open { transform: none; }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 16px; }
.sheet__head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; margin-bottom: 18px; }
.sheet__thumb { width: 64px; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; display: grid; place-items: center; }
.sheet__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sheet__thumb .bag { width: 60%; filter: none; }
.sheet__head b { font-weight: 500; display: block; }
.sheet__head span { color: var(--mute); font-size: 13px; }
.sheet .qa__grind button { height: 38px; background: var(--white); border: 1px solid var(--line); }
.sheet .qa__grind button.is-on { border-color: var(--ink); }
.sheet .qa__sizes button { height: 52px; background: var(--white); border: 1px solid var(--line); font-size: 14px; }

/* promise band */
.promise { background: var(--paper); border-top: 1px solid var(--line); }
.promise__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promise__item { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 44px 24px 46px; border-left: 1px dashed var(--line); font-size: 14px; }
.promise__item:first-child { border-left: 0; }
.promise__item .i { width: 58px; height: 58px; padding: 16px; border-radius: 50%; background: var(--paper-2); stroke-width: 1.3; color: var(--roast); box-sizing: border-box; transition: transform .8s var(--ease), background-color .4s; }
.promise__item:hover .i { transform: rotate(-12deg) scale(1.06); background: var(--latte); }
.promise__item b { display: block; font-weight: 500; }
.promise__item span { color: var(--mute); font-size: 13px; }

.field__msg { font-size: 13px; min-height: 1.4em; margin-top: 10px; }
.field__msg.is-ok { color: var(--ok); }
.field__msg.is-err { color: var(--signal); }

/* ==========================================================================
   RESPONSIVE (global)
   ========================================================================== */
@media (max-width: 1180px) {
  .mega__grid { grid-template-columns: 1fr 1fr 1fr 1.6fr; }
  .mega__feature { grid-template-columns: 1fr; }
  .mega__stack { display: none; }
  .nav__link { padding: 0 9px; font-size: 14px; }
  .tools__stars { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  :root { --head-h: 64px; }
  .sec-head, .sec-head--row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .promise__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .promise__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .nav, .tools .hide-m { display: none; }
  .burger { display: inline-grid; }
  .header__in { grid-template-columns: auto 1fr auto; }
  .header__in .logo { justify-self: center; }
  .bar__side { display: none; }
  .bar__in { grid-template-columns: 1fr; }
  .cart-btn .cart-label { display: none; }
  .cart-btn { padding: 0 4px 0 8px; }
  .search__cols { grid-template-columns: 1fr; gap: 26px; }
  .search__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search__products .mini:nth-child(n+3) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .logo__word b { font-size: 23px; }
  .logo__mark { width: 26px; height: 26px; }
  .promise__grid { grid-template-columns: minmax(0, 1fr); }
  .promise__item { border-left: 0; padding: 20px 0; border-top: 1px solid var(--line); }
  .promise__item:first-child { border-top: 0; }
  .btn { --bh: 50px; padding: 0 22px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-block: 56px 40px; }
  .footer__sign { grid-template-columns: minmax(0, 1fr) auto; padding-block: 28px 36px; }
  .footer__kape-note { grid-column: 1 / -1; grid-row: 2; padding: 0; }
  .footer__badge { width: 96px; }
  .footer__badge text { font-size: 16px; }
  .proof { left: 12px; bottom: 12px; width: calc(100% - 84px); }
  .to-top { right: 12px; bottom: 12px; }
  .card__info { font-size: 13.5px; }
  .card__title { font-size: 18px; }
  .card__row { flex-wrap: wrap; gap: 6px; }
  .card__notes { display: none; }
  .card__row .roast__t { display: none; }
}
@media (hover: none) {
  .card__img--alt { display: none; }
  .qa { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-reveal="clip"] { opacity: 1; transform: none; clip-path: none; }
  .line > span { transform: none; }
}
