/* =========================================================
   Altura Coffee Roasters — The Kinetic Roastery
   Morning light → furnace iron → crema
   ========================================================= */

:root {
  --morning: #f5ebe1;
  --morning-2: #ead9c6;
  --iron: #11100f;
  --iron-2: #1b1816;
  --ember: #ff4500;
  --crema: #c58a4a;
  --ink: #2a1d14;
  --ink-2: #6b5546;
  --paper: #fbf6ef;
  --light: #f3e7d9;
  --light-2: #b8a493;
  --line-dark: rgba(42, 29, 20, 0.14);
  --line-light: rgba(243, 231, 217, 0.14);
  --accent: #c4542a;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --B: min(44vmin, 380px);
  --C: min(54vmin, 540px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--iron); }
body {
  margin: 0;
  background: var(--iron);
  color: var(--light);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

.kicker { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--light-2); }
.display, .title { margin: 14px 0 0; font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -0.015em; }
.display { font-size: clamp(38px, 4.8vw, 72px); }
.display em, .title em { font-style: normal; color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px var(--gutter);
  color: var(--ink);
  transition: color 0.6s, background 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.on-dark { color: var(--light); }
.nav.is-light { background: rgb(245, 235, 225); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line-dark); color: var(--ink); }
.nav.is-solid { background: var(--iron); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line-light); color: var(--light); }
.brand { display: flex; flex-direction: column; margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1; }
.brand span { margin-top: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; }
.nav-links a { opacity: 0.75; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; justify-content: flex-end; gap: 8px; }
.nav-btn {
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.8;
}
.nav-btn:hover, .nav-btn[aria-pressed="true"] { opacity: 1; }
.nav-cta { background: var(--accent); border-color: var(--accent); color: #fff; opacity: 1; }
.nav-btn.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }

/* =========================================================
   HERO
   ========================================================= */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; min-height: 100svh; background: var(--morning); color: var(--ink); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 120px clamp(32px, 5vw, 88px) 64px max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); }
.hero-title { margin: 18px 0 0; max-width: 14ch; min-width: min(100%, 6.4em); hyphens: none; -webkit-hyphens: none; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 4.3vw, 68px); line-height: 1.05; letter-spacing: -0.015em; }
.hero-lede { margin: 22px 0 0; max-width: 42ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; gap: clamp(24px, 3vw, 44px); margin: 52px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--ink-2); }
.hero-trust b { display: block; margin-bottom: 2px; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ink); }
.hero-media { position: relative; margin: 0; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 24px; bottom: 24px; padding: 9px 16px; border-radius: 999px; background: rgba(17, 16, 15, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #f3e7d9; font-size: 13px; }

/* =========================================================
   1. THE ROASTERY
   ========================================================= */
.journey { position: relative; height: 380vh; }
.view { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--ink); }
.view.is-dark { color: var(--light); }

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 60vmax at 82% 8%, rgba(255, 236, 200, 0.9), transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(214, 190, 160, 0.55), transparent 70%),
    linear-gradient(170deg, #f8efe5, var(--morning) 45%, var(--morning-2));
}
.furnace {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* calm: one low warm glow behind the bean instead of a fire */
  background:
    radial-gradient(ellipse 45% 40% at 50% 52%, rgba(196, 84, 42, 0.16), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 45%, #1e1a17, var(--iron) 70%);
}
@keyframes heat { 50% { filter: brightness(1.12) saturate(1.1); } }

.drum {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150vmin;
  height: 150vmin;
  margin: -75vmin 0 0 -75vmin;
  opacity: 0;
  animation: drum 14s linear infinite;
  pointer-events: none;
}
@keyframes drum { to { transform: rotate(360deg); } }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }

.bean-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: var(--B);
  height: calc(var(--B) * 4 / 3);
  margin: calc(var(--B) * -2 / 3) 0 0 calc(var(--B) / -2);
  will-change: transform, opacity;
}
.bean { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 26px 30px rgba(60, 40, 20, 0.35)); animation: drift 7s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-12px) rotate(2deg); } }
.bean-shadow {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -12%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 45, 20, 0.35), transparent);
  animation: shadow 7s ease-in-out infinite;
}
@keyframes shadow { 50% { transform: scaleX(0.85); opacity: 0.7; } }
.view.is-dark .bean-shadow { opacity: 0; }

/* Slate table for the cup */
.slate {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse 60% 70% at 58% 50%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, #3a3b3a, #262726 60%, #1b1c1b);
}

/* The cup: rises from a small saucer to its natural size on the slate */
.cup {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: var(--C);
  height: var(--C);
  margin: calc(var(--C) / -2) 0 0 calc(var(--C) / -2);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  touch-action: pan-y;
}
/* live cup: touch drags inside it stir the crema; everywhere else the page scrolls as normal */
.cup.is-live { pointer-events: auto; cursor: crosshair; touch-action: none; }
.crema-hint {
  position: absolute;
  left: 50%;
  top: calc(100% + 27%);
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(17, 16, 15, 0.7);
  color: #f3e7d9;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.crema-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.crema-hint .hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .crema-hint .hint-mouse { display: none; }
  .crema-hint .hint-touch { display: inline; }
}
.saucer {
  position: absolute;
  inset: -24%;
  border-radius: 50%;
  background: radial-gradient(circle, #f4efe7 0 52%, #e4ddd2 60%, #f6f2ec 66%, #d9d1c5 72%, rgba(0, 0, 0, 0) 73%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.cup-rim {
  position: absolute;
  inset: -9%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 82%, #fbf8f3 83%, #e6dfd5 92%, #fdfbf8 96%, #cfc6b9 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.crema { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.crema-shade { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 10px 30px rgba(40, 20, 5, 0.55), inset 0 -4px 14px rgba(255, 220, 170, 0.18); pointer-events: none; }

/* Copy */
.copy { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.panel {
  position: absolute;
  /* line the story copy up with the page container edge, not the window edge */
  left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  top: 50%;
  width: min(380px, 30vw);
  opacity: 0;
  transform: translateY(calc(-50% + var(--o, 0px)));
}
.title { font-size: clamp(40px, 4.6vw, 72px); }
.desc { margin: 18px 0 0; font-size: 16px; line-height: 1.6; opacity: 0.78; max-width: 34ch; }
/* crema step: plain light type straight on the dark slate */
.panel[data-stage="2"] { color: var(--light); width: min(440px, 30vw); }
.panel[data-stage="2"] .title { font-size: clamp(40px, 4vw, 64px); }
.panel[data-stage="2"] .desc { opacity: 0.86; }

/* Hero: call to action + lot facts */
@media (min-width: 761px) { .panel[data-stage="0"] { width: min(560px, 36vw); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.btn-ghost { display: inline-flex; align-items: center; padding: 15px 22px; border: 1px solid rgba(42, 29, 20, 0.28); border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; transition: border-color 0.3s, background 0.3s; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.35); }

/* HUD */
.hud {
  position: absolute;
  right: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  top: 50%;
  z-index: 8;
  width: min(260px, 22vw);
  transform: translateY(-50%);
  opacity: 0;
  font-family: var(--mono);
}
.hud-label { margin: 0; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
.hud-temp { margin: 4px 0 18px; font-size: clamp(56px, 6vw, 92px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.hud-temp small { font-size: 0.32em; letter-spacing: 0; margin-left: 4px; color: var(--ember); }
.hud-list { margin: 0 0 18px; display: grid; gap: 10px; }
.hud-list div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid currentColor; border-color: rgba(127, 110, 95, 0.3); font-size: 12px; }
.hud-list dt { opacity: 0.6; }
.hud-list dd { margin: 0; text-align: right; }
.roast-strip { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #8a9a5b, #c8b26a 20%, #b07a42 40%, #7a4a26 60%, #4e2c18 80%, #24140c); }
.roast-strip i { position: absolute; top: -5px; left: 0; width: 2px; height: 20px; background: currentColor; transform: translateX(-1px); }
.strip-scale { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }

.hud-sound { margin-top: 18px; padding: 7px 14px; border: 1px solid rgba(243, 231, 217, 0.35); border-radius: 999px; background: none; font-size: 12.5px; cursor: pointer; opacity: 0.8; }
.hud-sound:hover, .hud-sound[aria-pressed="true"] { opacity: 1; border-color: var(--light); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 40px);
  z-index: 8;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: currentColor; animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* =========================================================
   2. FLAVOUR WHEEL
   ========================================================= */
.notes { padding-block: clamp(56px, 4.6vw, 88px); background: var(--iron); }
.notes-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cup-profile { margin: 22px 0 8px; font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; color: var(--crema); }
.notes-copy .muted { margin: 0; max-width: 44ch; }
.params { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.params div { padding: 14px 16px; border: 1px solid var(--line-light); border-radius: 14px; }
.params dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--light-2); }
.params dd { margin: 4px 0 0; font-family: var(--mono); font-size: 18px; font-weight: 700; }
.fine { margin: 0; font-size: 13px; color: var(--light-2); opacity: 0.8; max-width: 52ch; }

.wheel-wrap { position: relative; }
.wheel { width: 100%; max-width: min(520px, 62vh); display: block; margin-inline: auto; overflow: visible; }
.wheel .seg { cursor: pointer; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transform-origin: 0 0; }
.wheel .seg path { stroke: var(--iron); stroke-width: 2; }
.wheel .seg.is-dim path { opacity: 0.26; }
.wheel .seg.is-dim text { fill: rgba(243, 231, 217, 0.66); }
.wheel .seg.is-hot { transform: scale(1.045); }
.wheel .seg:hover path { opacity: 1; }
.wheel text { font-family: var(--mono); font-size: 10.5px; fill: #fff; pointer-events: none; letter-spacing: 0.04em; }
.wheel .cat-label { font-family: var(--sans); font-size: 12px; font-weight: 500; }
.wheel .hub { fill: var(--iron-2); stroke: var(--line-light); }
.wheel .hub-text { font-family: var(--serif); font-size: 18px; fill: var(--light); }
.wheel-tip { min-height: 1.6em; margin-top: 10px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--light-2); }

/* =========================================================
   3. SHOP
   ========================================================= */
.shop { padding-block: clamp(64px, 6vw, 96px); background: var(--morning); color: var(--ink); }
.shop .muted { color: var(--ink-2); margin: 20px 0 0; max-width: 46ch; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.bag-stage { display: grid; place-items: center; aspect-ratio: 1; max-height: 620px; width: 100%; border-radius: 32px; background: radial-gradient(circle at 50% 60%, #fff8ef, var(--morning-2)); }
.bag { width: 62%; filter: drop-shadow(0 30px 30px rgba(80, 50, 20, 0.3)); transition: transform 0.8s var(--ease); }
.bag-stage:hover .bag { transform: rotate(-3deg) translateY(-6px); }
.opt { margin-top: 26px; }
.opt-label { margin: 0 0 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; cursor: pointer; font-size: 14px; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.buy-row { display: flex; align-items: center; gap: 24px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.price { margin: 0; font-family: var(--serif); font-size: 38px; font-variant-numeric: lining-nums; }
.btn { padding: 15px 28px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: background 0.3s, transform 0.3s var(--ease); }
.btn:hover { background: #a8431e; }
.btn:active { transform: scale(0.97); }

/* =========================================================
   4–6. COFFEES, BREW BAR, STORY
   ========================================================= */
.sec { padding-block: clamp(80px, 7vw, 112px); }
.sec-dark { background: var(--iron); color: var(--light); }
.sec-light { background: var(--paper); color: var(--ink); }
.sec-light .muted { color: var(--ink-2); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.sec-head .muted { flex: 0 1 40ch; margin: 0; font-size: 15px; line-height: 1.6; }
.sec-head .display { font-size: clamp(36px, 3.8vw, 60px); }

.lot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lot { display: flex; flex-direction: column; padding: 20px; border-radius: 24px; background: var(--iron-2); border: 1px solid var(--line-light); transition: transform 0.5s var(--ease), border-color 0.3s; }
.lot:hover { transform: translateY(-4px); border-color: rgba(196, 84, 42, 0.5); }
.lots { padding-block: clamp(56px, 4.4vw, 76px); }
.lot-bag { display: grid; place-items: center; height: clamp(230px, 17vw, 280px); margin-bottom: 16px; padding: 14px 0; border-radius: 16px; background: radial-gradient(circle at 50% 62%, #2e2824, #191614); }
.lot-bag svg { height: 100%; width: auto; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.45)); transition: transform 0.6s var(--ease); }
.lot:hover .lot-bag svg { transform: rotate(-3deg) translateY(-4px); }
.lot-origin { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--light-2); }
.lot h3 { margin: 8px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.lot-notes { margin: 0; font-size: 15px; color: var(--crema); }
.lot-buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.lot-buy span { font-family: var(--serif); font-size: 20px; }
.lot-buy small { font-family: var(--mono); font-size: 11px; color: var(--light-2); }
.btn-sm { padding: 10px 20px; font-size: 11px; }

.sub-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; margin-top: 20px; padding: 24px 30px; border-radius: 24px; background: linear-gradient(120deg, #3b2418, #20150f); border: 1px solid rgba(196, 84, 42, 0.35); }
.sub-title { margin: 8px 0 6px; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.sub-title em { font-style: normal; color: #e07a4e; }
.sub-strip .muted { margin: 0; font-size: 14px; max-width: 58ch; }
.sub-price { display: flex; align-items: center; gap: 20px; }
.sub-price p { margin: 0; white-space: nowrap; }
.sub-price strong { font-family: var(--serif); font-weight: 400; font-size: 32px; }
.sub-price small { margin-left: 6px; font-family: var(--mono); font-size: 11px; color: var(--light-2); }

.bar { padding-block: clamp(56px, 4.6vw, 88px); }
.bar-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.bar-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px rgba(60, 35, 15, 0.18); }
.bar-photo img, .story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bar-copy .muted { margin: 18px 0 0; max-width: 46ch; line-height: 1.6; }
.bar-menu { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.bar-menu li { display: flex; align-items: baseline; gap: 10px; font-size: 16px; }
.bar-menu i { flex: 1; border-bottom: 1px dotted rgba(42, 29, 20, 0.35); transform: translateY(-4px); }
.bar-menu b { font-family: var(--serif); font-weight: 400; font-size: 16px; }
.bar-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.bar-info dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.bar-info dd { margin: 6px 0 0; font-size: 15px; }
.bar-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; }
.btn-line { display: inline-flex; padding: 13px 22px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.3s, color 0.3s; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.bar-thumbs { display: flex; gap: 10px; }
.bar-thumbs img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }

.story-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.story-photo { margin: 0; height: clamp(320px, 44vh, 480px); border-radius: 28px; overflow: hidden; }
.story-copy .muted { margin: 18px 0 0; max-width: 52ch; line-height: 1.65; }
.story-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0 0; border-top: 1px solid var(--line-light); }
.story-stats div { padding: 18px 16px 0 0; }
.story-stats div + div { padding-left: 16px; border-left: 1px solid var(--line-light); }
.story-stats dt { font-family: var(--serif); font-size: clamp(30px, 2.8vw, 42px); line-height: 1; }
.story-stats dd { margin: 8px 0 0; font-size: 13px; color: var(--light-2); }
.reviews { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(36px, 4vw, 56px); padding-top: 30px; }
/* divider spans the content width only, not the container padding */
.reviews::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line-light); }
.reviews figure { margin: 0; }
.stars { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: 3px; color: var(--accent); }
.reviews blockquote { margin: 0; font-family: var(--serif); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.4; }
.reviews figcaption { margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light-2); }

/* ---------- Footer ---------- */
.footer { padding-block: 64px 40px; background: var(--iron); border-top: 1px solid var(--line-light); }
.footer .muted { margin: 12px 0 0; font-size: 14px; line-height: 1.6; max-width: 30ch; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr 1.5fr; gap: 32px; align-items: start; }
.footer-grid p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--light-2); }
.footer-grid a:hover { color: var(--light); }
/* contact links stacked, each a comfortable 40px tap target */
.footer .f-links { display: flex; flex-direction: column; align-items: flex-start; }
.footer .f-links a { display: inline-flex; align-items: center; min-height: 40px; }
.nowrap { white-space: nowrap; }
.footer .f-h { margin-bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.news-row { display: flex; gap: 8px; }
.news-row input { flex: 1; min-width: 0; padding: 10px 16px; border: 1px solid var(--line-light); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--light); font-size: 14px; outline: none; }
.news-row input::placeholder { color: rgba(243, 231, 217, 0.4); }
.news-row input:focus { border-color: var(--accent); }
.news .fine { margin-top: 10px; font-size: 12px; }
#dialDock + .fine { margin-top: 14px; }
.footer-legal { margin: 36px 0 0; font-size: 12px; color: var(--light-2); opacity: 0.7; }

/* =========================================================
   EXTRACTION DIAL (persistent)
   ========================================================= */
.dial {
  max-width: 420px;
  -webkit-user-select: none;
  user-select: none;
  margin-top: 22px;
  padding: 12px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(160deg, #2a2522, #151311);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--light);
}
.dial-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); }
.dial-tabs button { padding: 6px 0; border: 0; border-radius: 999px; background: none; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light-2); cursor: pointer; }
.dial-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.dial-body { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.gauge { width: 136px; height: 136px; flex: none; cursor: grab; touch-action: none; outline: none; }
.gauge:active { cursor: grabbing; }
.gauge:focus-visible { filter: drop-shadow(0 0 6px var(--accent)); }
.dial-read { min-width: 0; }
.dial-value { margin: 0; font-family: var(--mono); font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.dial-value small { font-size: 12px; margin-left: 3px; color: var(--light-2); }
.dial-notes { margin: 8px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.2; color: var(--crema); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; transform: translate(-50%, 140%); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 961px) { .cup { left: 58%; } }

/* ---------- Mobile menu ---------- */
.nav-menu { display: none; }
.menu-sheet { position: fixed; inset: 0 0 auto; z-index: 49; display: grid; padding: 76px var(--gutter) 18px; background: var(--iron); border-bottom: 1px solid var(--line-light); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.menu-sheet a { padding: 14px 0; border-bottom: 1px solid var(--line-light); font-family: var(--serif); font-size: 22px; color: var(--light); }
.menu-sheet a:last-child { border-bottom: 0; }
.menu-sheet .menu-wa { font-family: var(--sans); font-size: 16px; font-weight: 500; color: #e07a4e; }
.nav.menu-open { color: var(--light); background: var(--iron); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(10, 8, 6, 0.55); opacity: 0; transition: opacity 0.35s; }
.scrim.is-on { opacity: 1; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; display: flex; flex-direction: column; width: min(420px, 100vw); background: var(--paper); color: var(--ink); box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3); transform: translateX(105%); visibility: hidden; transition: transform 0.4s var(--ease), visibility 0s 0.4s; }
.cart.is-open { transform: none; visibility: visible; transition: transform 0.4s var(--ease); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line-dark); }
.cart-title { margin: 0; font-family: var(--serif); font-size: 24px; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: 50%; background: none; font-size: 22px; line-height: 1; cursor: pointer; }
.icon-btn:hover { border-color: currentColor; }
.cart-list { flex: 1; overflow-y: auto; margin: 0; padding: 8px 24px; list-style: none; }
.cart-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.ci-name { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.ci-meta { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }
.ci-qty { display: flex; align-items: center; border: 1px solid var(--line-dark); border-radius: 999px; }
.ci-qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.ci-qty span { min-width: 18px; text-align: center; font-size: 14px; }
.ci-price { min-width: 76px; text-align: right; font-family: var(--serif); font-weight: 400; font-size: 17px; }
.cart-empty { margin: 0; padding: 24px; color: var(--ink-2); }
.cart-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line-dark); }
.cart-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.cart-sub b { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.cart-foot .fine { margin: 6px 0 16px; color: var(--ink-2); }
.cart-checkout { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Subscription dialog ---------- */
.sub-dialog { width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.sub-dialog::backdrop { background: rgba(10, 8, 6, 0.6); }
.sub-form { position: relative; padding: 30px 30px 26px; }
.sub-x { position: absolute; top: 16px; right: 16px; }
.sub-h { margin: 10px 0 18px; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; }
.field { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; font-size: 13px; color: var(--ink-2); }
.field legend { margin-bottom: 8px; padding: 0; }
.field input[type="email"] { padding: 12px 16px; border: 1px solid var(--line-dark); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
.field input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 14px; color: var(--ink); cursor: pointer; }
.chip-radio input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sub-err { min-height: 1.2em; margin: -6px 0 10px; font-size: 13px; color: #a8341a; }
.sub-form .btn { width: 100%; }
.sub-form .fine { margin-top: 12px; color: var(--ink-2); }
.sub-done .muted { color: var(--ink-2); margin: 0 0 20px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 112px var(--gutter) 48px; }
  .hero-media { height: 58vh; }
  .notes-grid, .shop-grid, .bar-grid, .story-grid { grid-template-columns: 1fr; }
  .lot-grid, .reviews { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  :root { --B: min(52vw, 30vh); --C: min(60vw, 38vh); }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-menu { display: inline-flex; }
  .hud-sound { display: none; }
  .panel { left: var(--gutter); right: var(--gutter); width: auto; top: 88px; transform: translateY(var(--o, 0px)); text-align: center; }
  .title { font-size: 36px; }
  .desc { font-size: 14px; margin-inline: auto; }
  .panel[data-stage="1"] .desc, .panel[data-stage="3"] .desc { display: none; }
  .hud { top: auto; bottom: 138px; left: var(--gutter); right: var(--gutter); width: auto; transform: none; display: grid; grid-template-columns: auto 1fr; gap: 0 16px; align-items: end; }
  .hud-label { grid-column: 1; }
  .hud-temp { grid-column: 1; grid-row: 2; margin: 0; font-size: 46px; }
  .hud-list { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .roast-strip, .strip-scale { grid-column: 1 / -1; }
  .roast-strip { margin-top: 12px; }
  .params { grid-template-columns: 1fr 1fr 1fr; }
  .params dd { font-size: 15px; }
  .dial { max-width: none; }
  .gauge { width: 116px; height: 116px; }
  .dial-value { font-size: 24px; }
  .dial-notes { font-size: 15px; }
  .panel[data-stage="2"] { width: auto; }
  .panel[data-stage="2"] .title { font-size: 34px; }
  /* keep the wheel (and the enlarged lit segments) inside the screen with a small margin */
  .wheel-wrap { margin-inline: 0; }
  .wheel { overflow: hidden; }
  .wheel text { font-size: 13px; }
  /* phones: only the notes in the current cup keep their outer label, so nothing overlaps */
  .wheel .seg.note:not(.is-hot) text { display: none; }
  .wheel .cat-label { font-size: 14px; }
  .lot { display: grid; grid-template-columns: 92px 1fr; gap: 0 16px; padding: 14px; border-radius: 18px; }
  .lot { grid-template-columns: 104px 1fr; }
  .lot .lot-bag { grid-row: 1 / span 4; height: 140px; margin: 0; padding: 10px 0; border-radius: 12px; }
  .lot h3 { font-size: 21px; margin: 4px 0 4px; }
  .lot-notes { font-size: 14px; }
  .lot-buy { padding-top: 10px; }
  .lot-buy span { font-size: 18px; }
  .panel[data-stage="0"] .desc { display: none; }
  .hero-trust { gap: 20px; }
  .hero-trust li { flex: 1; }
  .cup { top: 63%; }
  .sub-price { width: 100%; justify-content: space-between; }
  .bar-actions { flex-wrap: wrap; }
  .story-stats dd { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .buy-row { flex-wrap: wrap; }
  .chips[data-opt="grind"] { display: grid; grid-template-columns: 1fr 1fr; }
  .chips[data-opt="grind"] .chip { text-align: center; }
  /* phones: the photo comes first, the copy follows on cream */
  .hero { display: flex; flex-direction: column; padding-top: 64px; }
  .hero-media { order: -1; height: 40vh; height: 40svh; min-height: 260px; }
  .hero-copy { padding: 28px var(--gutter) 40px; }
  .hero-trust { margin-top: 32px; padding-top: 18px; }
  .hero-media figcaption { left: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bean, .bean-shadow, .drum, .furnace, .scroll-cue::after { animation: none !important; }
}

/* Buttons in the text face: calmer and more legible than spaced mono caps */
.btn, .btn-ghost, .btn-line, .nav-btn { font-family: var(--sans); font-weight: 500; letter-spacing: 0.01em; text-transform: none; }
.btn, .btn-ghost { font-size: 15px; }
.btn-sm, .btn-line { font-size: 14px; }
.nav-btn { font-size: 13px; }

body { font-feature-settings: "tnum" 0; font-variant-numeric: lining-nums; }
/* Playfair defaults to old-style figures ("Lot o7"); use lining figures wherever it sets numbers */
.display, .title, .hero-title, .brand, .price, .lot h3, .lot-buy span, .sub-price strong, .bar-menu b, .story-stats dt, .hero-trust b,
.cup-profile, .dial-notes, .reviews blockquote, .wheel text, .bag text, .lot-bag text, .cart-sub b, .ci-name, .ci-price, .sub-h { font-variant-numeric: lining-nums; }
.hero-title { font-weight: 500; }
/* very wide screens: slightly larger hero type so the column doesn't float in empty cream */
@media (min-width: 1600px) and (min-height: 860px) {
  .hero-title { font-size: 76px; }
  .hero-lede { font-size: 18.5px; }
  .hero-trust { margin-top: 44px; }
  .hero-copy { padding-bottom: 40px; }
}
.display, .title, .hero-title, .sub-title { text-wrap: balance; }

/* Roast scene kept simple: no rotating drum lines */
.drum { display: none !important; }

/* =========================================================
   MOBILE POLISH
   ========================================================= */
img { max-width: 100%; height: auto; }
/* the email input's intrinsic width (~20 chars) made the footer wider than a 320px phone */
.news-row input { width: 0; }
body.is-locked { overflow: hidden; }
/* toast: size to its text instead of shrinking into half the screen */
.toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }

/* touch screens: no sticky hover states after a tap */
@media (hover: none) {
  .lot:hover { transform: none; border-color: var(--line-light); }
  .lot:hover .lot-bag svg, .bag-stage:hover .bag { transform: none; }
  .btn:hover { background: var(--accent); }
  .btn-line:hover { background: none; color: inherit; }
  .btn-ghost:hover { border-color: rgba(42, 29, 20, 0.28); background: none; }
  .chip:not([aria-pressed="true"]):hover { border-color: var(--line-dark); }
}

/* footer brand was being shrunk to 14px by `.footer-grid p` */
.footer-grid .brand { font-size: 24px; line-height: 1; color: var(--light); }

/* touch screens of any width: comfortable tap targets */
@media (pointer: coarse) {
  .nav-links a { padding-block: 12px; }
  .dial-tabs button { min-height: 44px; font-size: 11px; }
  .chip, .chip-radio span { min-height: 44px; }
  .btn-sm { min-height: 44px; }
}

/* tablets: fewer, shorter stacked blocks */
@media (min-width: 761px) and (max-width: 960px) {
  .lot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .lot { padding: 16px; }
  .lot h3 { font-size: 22px; }
  .lot-bag { height: 220px; }
  .lot-buy { flex-wrap: wrap; gap: 8px; }
  .bag-stage { aspect-ratio: 16 / 10; }
  .bag { width: 36%; }
  .story-photo { height: auto; aspect-ratio: 16 / 9; }
}

/* tablet portrait: stack the roast story like phones so copy, bean, cup and HUD never overlap */
@media (min-width: 761px) and (max-width: 960px) and (orientation: portrait) {
  :root { --B: min(40vw, 28vh); --C: min(50vw, 34vh); }
  .panel, .panel[data-stage="0"], .panel[data-stage="2"] { left: var(--gutter); right: var(--gutter); width: auto; max-width: 620px; margin-inline: auto; top: 110px; transform: translateY(var(--o, 0px)); text-align: center; }
  .desc { margin-inline: auto; }
  .panel[data-stage="0"] .desc, .panel[data-stage="1"] .desc, .panel[data-stage="3"] .desc { display: none; }
  .cup { top: 62%; }
  .hud { top: auto; bottom: 40px; left: var(--gutter); right: var(--gutter); width: auto; max-width: 560px; margin-inline: auto; transform: none; display: grid; grid-template-columns: auto 1fr; gap: 0 24px; align-items: end; }
  .hud-label { grid-column: 1; }
  .hud-temp { grid-column: 1; grid-row: 2; margin: 0; }
  .hud-list { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .roast-strip, .strip-scale, .hud-sound { grid-column: 1 / -1; }
  .roast-strip { margin-top: 12px; }
  .hud-sound { justify-self: start; }
}

@media (max-width: 760px) {
  /* nav: 44px tap targets, still clear of the hero photo */
  .nav { padding: 10px var(--gutter); gap: 12px; }
  .nav-btn { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; }
  .hero { padding-top: 66px; }
  .menu-sheet { padding-top: 76px; max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  .menu-sheet a { min-height: 48px; display: flex; align-items: center; }

  /* roast story: HUD sits at the bottom so it clears the bean */
  .hud { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

  .sec { padding-block: 64px; }
  .strip-scale { font-size: 10px; }
  .brand span { font-size: 10px; }

  /* footer: short address/hours blocks side by side instead of one long column */
  .footer { padding-block: 48px 32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-grid > :first-child, .footer-grid > :nth-child(4), .footer-grid > .news { grid-column: 1 / -1; }
  .hero-media figcaption { font-size: 12px; max-width: calc(100% - 32px); }

  /* tap targets */
  .chip, .chip-radio span { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 44px; }
  .dial-tabs button { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .ci-qty button { width: 38px; height: 38px; }
  .footer .f-links a { min-height: 44px; }
  .btn-line { min-height: 44px; align-items: center; }

  /* forms: 16px inputs stop iOS from zooming on focus */
  .news-row input, .field input[type="email"] { font-size: 16px; min-height: 44px; }
  .news-row .btn { min-height: 44px; }

  /* shop */
  .bag-stage { aspect-ratio: 4 / 3; border-radius: 24px; }
  .bag { width: 46%; }
  .buy-row { gap: 16px; }
  .buy-row .btn { flex: 1 1 auto; justify-content: center; }

  /* subscription strip: price and button stack instead of running off-screen */
  .sub-strip { padding: 20px; border-radius: 20px; }
  .sub-price { flex-wrap: wrap; gap: 14px; }
  .sub-price .btn { flex: 1 1 100%; }

  .story-photo { height: auto; aspect-ratio: 4 / 3; border-radius: 22px; }
  .bar-photo { border-radius: 22px; }

  /* cart + dialog */
  .cart-head { padding: 14px 20px; }
  .cart-list { padding: 8px 20px; }
  .cart-foot { padding: 18px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .cart-item { gap: 10px; }
  .ci-price { min-width: 64px; font-size: 16px; }
  .sub-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
  .sub-form { padding: 26px 20px 22px; }
  .sub-h { font-size: 26px; padding-right: 44px; }
  .sub-x { top: 12px; right: 12px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(36px, 11vw, 42px); }
  .display { font-size: clamp(32px, 9.4vw, 38px); }
  .sec-head .display { font-size: clamp(32px, 9.4vw, 36px); }
  .hero-actions > a { flex: 1 1 auto; justify-content: center; min-height: 48px; }
  .hero-trust { gap: 12px; font-size: 12px; }
  .hero-trust b { font-size: 21px; }
  .params div { padding: 12px 10px; }
  .params dd { font-size: 14px; }
  .dial-body { gap: 10px; }
  .gauge { width: 104px; height: 104px; }
  .lot { grid-template-columns: 88px 1fr; }
  .lot .lot-bag { height: 124px; }
  .lot-buy { flex-wrap: wrap; gap: 8px; }
  .bar-info { grid-template-columns: 1fr; gap: 12px; }
  .story-stats div { padding-right: 10px; }
  .story-stats div + div { padding-left: 10px; }
  .story-stats dt { font-size: 28px; }
  .price { font-size: 32px; }
  .sub-price strong { font-size: 28px; }
}

/* short phones (e.g. iPhone SE): smaller bean and cup, shorter copy, so the story never overlaps */
@media (max-width: 760px) and (max-height: 680px) {
  :root { --B: min(46vw, 25vh); --C: min(54vw, 32vh); }
  .panel { top: 76px; }
  .title, .panel[data-stage="2"] .title { font-size: 30px; }
  .panel[data-stage="2"] .desc { display: none; }
  .hud-temp { font-size: 38px; }
  .hud { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .lot, .lot-bag svg, .bag, .toast, .cart, .scrim, .crema-hint, .btn { transition: none !important; }
  .lot:hover, .lot:hover .lot-bag svg, .bag-stage:hover .bag { transform: none; }
  .nav-btn.bump { animation: none; }
}

/* Readability: no label text under 11px on phones and tablets */
@media (max-width: 960px) {
  .hud-label, .scroll-cue, .params dt, .opt-label, .lot-origin, .bar-info dt,
  .reviews figcaption, .footer .f-h, .dial-tabs button, .strip-scale, .brand span { font-size: 11px; }
  .wheel text { font-size: 11px; }
}
@media (max-width: 380px) {
  .brand span { letter-spacing: 0.12em; white-space: nowrap; }
}

/* =========================================================
   DESIGN POLISH (pass 2)
   ========================================================= */
/* headline breaks "Small-batch / coffee, roasted / every Tuesday." at every size, no lone word */
.hero-title { max-width: 7.6em; }
/* paragraphs: no single-word last lines */
.muted, .desc, .hero-lede, .fine, .reviews blockquote, .sub-strip .muted, .cart-empty, .dial-notes { text-wrap: pretty; }
.cup-profile, .lot h3 { text-wrap: balance; }
.lot-notes { text-wrap: pretty; }
.cup-profile { margin-bottom: 10px; }
.sub-title { margin-bottom: 10px; }

/* footer: contact links keep the text rhythm with a mouse; touch keeps 44px targets */
@media (pointer: fine) { .footer .f-links a { min-height: 0; } }
.footer-legal { padding-top: 22px; border-top: 1px solid var(--line-light); }

/* subscription dialog: kicker clears the close button; frequency chips share the row evenly */
.sub-step > .kicker { padding-right: 40px; text-wrap: balance; }
.sub-form .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip-radio span { display: flex; justify-content: center; text-align: center; }

@media (max-width: 960px) {
  .dial { max-width: none; }
}

/* tablets: reviews side by side, footer in three tidy columns */
@media (min-width: 761px) and (max-width: 960px) {
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .reviews blockquote { font-size: 17px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
  .footer-grid > .news { grid-column: span 2; max-width: 420px; }
  .nav-links { gap: 16px; font-size: 14px; }
}

@media (max-width: 760px) {
  /* hero facts: three equal columns, labels wrap evenly */
  .hero-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hero-trust li { text-wrap: balance; line-height: 1.45; }
  /* both option groups use the same two-up chip grid */
  .chips[data-opt="size"] { display: grid; grid-template-columns: 1fr 1fr; }
  /* subscription strip: copy, price and button in one even rhythm */
  .sub-strip { gap: 20px; }
  .sub-price { padding-top: 18px; border-top: 1px solid rgba(196, 84, 42, 0.25); }
  /* reviews: hairlines between quotes so the stack reads as three distinct voices */
  .reviews { gap: 0; padding-top: 6px; }
  .reviews figure { padding-block: 24px; }
  .reviews figure + figure { border-top: 1px solid var(--line-light); }
  .reviews figure:last-child { padding-bottom: 0; }
}
@media (max-width: 480px) {
  .bar-info { grid-template-columns: 1fr 1fr; gap: 16px; }
}
/* tablets: photo first, like phones, so the first screen isn't a narrow column of text over empty cream */
@media (min-width: 761px) and (max-width: 960px) {
  .hero { display: flex; flex-direction: column; padding-top: 76px; }
  .hero-media { order: -1; height: 46vh; height: 46svh; min-height: 340px; }
  .hero-copy { padding: 44px var(--gutter) 56px; }
  .hero-title { font-size: 54px; }
  .hero-lede { max-width: 52ch; }
}
