/* ===================================================================
   The Coffee Atlas — editorial coffee field-guide
   Layered over /shared/style.css. Warm paper + espresso ink,
   cherry-red accent, coffee-leaf green. Fraunces / Plus Jakarta / DM Mono.
   =================================================================== */

:root {
  /* warm palette override — remaps shared tokens so glass/buttons adapt */
  --bg:            #F3EADB;
  --bg-secondary:  #EADCC6;
  --surface:       rgba(255, 252, 246, 0.74);
  --surface-solid: #FBF6EC;

  --primary:       #C0432B;   /* roasted cherry */
  --primary-hover: #A5341F;
  --primary-light: rgba(192, 67, 43, 0.08);
  --primary-lighter: rgba(192, 67, 43, 0.14);
  --primary-glow:  rgba(192, 67, 43, 0.22);

  --accent:        #5E7045;   /* coffee leaf */
  --accent-light:  rgba(94, 112, 69, 0.12);

  --text:          #2A1B12;   /* espresso ink */
  --text-secondary:#6E5847;
  --text-muted:    #A2917F;

  --border:        rgba(74, 47, 28, 0.12);
  --border-light:  rgba(74, 47, 28, 0.06);

  --glass-bg:      rgba(255, 251, 244, 0.66);
  --glass-border:  rgba(255, 255, 255, 0.7);

  /* atlas-specific */
  --crema:   #E2C79C;
  --umber:   #4A2F1C;
  --paper-line: rgba(74, 47, 28, 0.10);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono:    'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1180px;
}

[data-theme="dark"] {
  --bg:            #170F0A;
  --bg-secondary:  #20140C;
  --surface:       rgba(60, 40, 26, 0.30);
  --surface-solid: #241710;

  --primary:       #E8714F;
  --primary-hover: #F08c6e;
  --primary-light: rgba(232, 113, 79, 0.12);
  --primary-lighter: rgba(232, 113, 79, 0.20);
  --primary-glow:  rgba(232, 113, 79, 0.30);

  --accent:        #9FB173;
  --accent-light:  rgba(159, 177, 115, 0.14);

  --text:          #F4E9DA;
  --text-secondary:#C3AE99;
  --text-muted:    #8A7560;

  --border:        rgba(255, 235, 210, 0.12);
  --border-light:  rgba(255, 235, 210, 0.06);

  --glass-bg:      rgba(45, 29, 19, 0.55);
  --glass-border:  rgba(255, 235, 210, 0.07);

  --crema:   #C9A874;
  --paper-line: rgba(255, 235, 210, 0.08);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ---- base ---- */
body {
  font-family: var(--font);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg-secondary) 0%, var(--bg) 55%) fixed;
  color: var(--text);
  overflow-x: hidden;
}

::selection { background: var(--primary); color: #fff; }

.lab {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* film grain + paper texture overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.06; }

/* keep content above grain */
.hero, .band, .atlas-footer, .drawer { position: relative; z-index: 2; }

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center;
  padding: clamp(2rem, 6vw, 5rem) 1.25rem 2rem;
  overflow: hidden;
}
.hero::before {  /* warm vignette + faint ring */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 38%, var(--primary-light), transparent 70%),
    radial-gradient(90% 60% at 50% 120%, var(--accent-light), transparent 60%);
}
.hero-inner { max-width: 760px; }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.4rem;
  opacity: 0; animation: rise .8s .05s cubic-bezier(.2,.7,.2,1) forwards;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.4rem, 13vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.025em;
  margin: 0;
}
.wordmark .line { display: block; }
.wordmark .line:nth-child(1) { opacity: 0; animation: rise .9s .12s cubic-bezier(.2,.7,.2,1) forwards; }
.wordmark .serif-italic {
  font-style: italic; font-weight: 300;
  color: var(--primary);
  font-size: 1.18em;
  margin-top: -0.04em;
  opacity: 0; animation: rise 1s .24s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-sub {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: var(--text-secondary);
  margin: 1.3rem 0 0;
  opacity: 0; animation: rise .9s .36s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-lede {
  max-width: 540px; margin: 1.6rem auto 0;
  color: var(--text-secondary); font-size: 1.02rem; line-height: 1.7;
  opacity: 0; animation: rise .9s .46s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-nav {
  display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center;
  margin-top: 2.2rem;
  opacity: 0; animation: rise .9s .56s cubic-bezier(.2,.7,.2,1) forwards;
}
.pill {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 0.7rem 1.2rem; border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface); backdrop-filter: var(--glass-blur);
  color: var(--text); text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.pill:hover { transform: translateY(-2px); border-color: var(--primary); }
.pill-solid { background: var(--primary); color: #fff; border-color: var(--primary); }
.pill-solid:hover { background: var(--primary-hover); }

/* hero steam */
.hero-steam {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  width: 120px; height: 220px; z-index: -1; opacity: 0.5;
}
.hero-steam span {
  position: absolute; bottom: 0; left: 50%;
  width: 10px; height: 120px; border-radius: 50%;
  background: linear-gradient(to top, var(--crema), transparent);
  filter: blur(8px);
  animation: steam 5s ease-in-out infinite;
}
.hero-steam span:nth-child(1) { margin-left: -26px; animation-delay: 0s; }
.hero-steam span:nth-child(2) { margin-left: 0px;  animation-delay: 1.4s; }
.hero-steam span:nth-child(3) { margin-left: 22px; animation-delay: 2.6s; }
@keyframes steam {
  0%   { transform: translateY(0) scaleX(1); opacity: 0; }
  30%  { opacity: 0.7; }
  100% { transform: translateY(-120px) scaleX(2.4); opacity: 0; }
}

.hero-ledger {
  display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.6rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  opacity: 0; animation: rise 1s .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-ledger div:not(.sep) { display: flex; flex-direction: column; align-items: center; }
.hero-ledger b {
  font-family: var(--display); font-weight: 600; font-size: 2.4rem; line-height: 1;
  color: var(--text);
}
.hero-ledger span {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 0.4rem;
}
.hero-ledger .sep { width: 1px; height: 38px; background: var(--border); }

.scroll-cue {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  color: var(--text-secondary); border: 1px solid var(--border);
  background: var(--surface);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,7px); } }

/* ============ BANDS / SECTION HEADS ============ */
.band {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 1.25rem;
}
.band-head { max-width: 680px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.sec-no {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.2em;
  color: var(--primary); display: inline-block; margin-bottom: 0.6rem;
}
.sec-no::before { content: '— '; }
.sec-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.02;
  letter-spacing: -0.02em; margin: 0 0 0.8rem;
}
.sec-deck { color: var(--text-secondary); font-size: 1.04rem; line-height: 1.7; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============ FLAVOUR WHEEL ============ */
.band-wheel { text-align: left; }
.wheel-stage {
  display: grid; grid-template-columns: minmax(280px, 1fr) 220px;
  gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
}
.wheel-holder {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 480px;
  margin: 0 auto; justify-self: center;
}
#flavour-wheel { width: 100%; height: 100%; display: block; overflow: visible; }
#flavour-wheel .wedge {
  cursor: pointer;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s, filter .3s;
  transform-origin: 200px 200px;
}
#flavour-wheel .wedge:hover { transform: scale(1.045); }
#flavour-wheel .wedge:focus-visible { outline: none; }
#flavour-wheel .wedge:focus-visible path { stroke: var(--text); stroke-width: 3; }
#flavour-wheel.has-sel .wedge:not(.sel) { opacity: 0.28; filter: saturate(0.5); }
#flavour-wheel .wedge.sel { transform: scale(1.06); }
#flavour-wheel .wlabel {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.04em;
  fill: #fff; pointer-events: none; font-weight: 500;
}
#flavour-wheel .wheel-rim { fill: none; stroke: var(--border); stroke-width: 1.5; }

.wheel-holder.spin #flavour-wheel { animation: wheelspin 80s linear infinite; }
@keyframes wheelspin { to { transform: rotate(360deg); } }

.wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 38%; height: 38%; border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.15rem; cursor: pointer; padding: 0.5rem;
}
.wc-eyebrow { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted); }
.wc-label { font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 3.6vw, 1.5rem);
  line-height: 1; color: var(--text); }
.wc-hint { font-family: var(--mono); font-size: 0.6rem; color: var(--primary); letter-spacing: 0.04em; }

.wheel-legend { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.wheel-legend li {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  font-size: 0.86rem; padding: 0.35rem 0.5rem; border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.wheel-legend li:hover { background: var(--primary-light); }
.wheel-legend li.active { background: var(--primary-light); font-weight: 600; }
.wheel-legend .dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.wheel-legend .lg-hint { font-family: var(--mono); font-size: 0.62rem; color: var(--text-muted); display: block; }

/* ============ ORIGINS GRID ============ */
.filter-readout { color: var(--primary); font-family: var(--mono); font-size: 0.82rem; }
.origins-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
}
.origin-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-solid); border: 1px solid var(--border);
  box-shadow: var(--shadow); cursor: pointer; text-align: left;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, opacity .4s;
  display: flex; flex-direction: column; min-height: 320px; padding: 0;
}
.origin-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.origin-card.dim { opacity: 0; transform: scale(.96); pointer-events: none; position: absolute; }
.oc-media {
  position: relative; height: 168px; overflow: hidden;
  background: linear-gradient(135deg, var(--crema), var(--umber));
}
.oc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.origin-card:hover .oc-media img { transform: scale(1.06); }
.oc-media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,12,8,0.55), transparent 55%); }
.oc-flag { position: absolute; top: 0.7rem; left: 0.7rem; font-size: 1.4rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); z-index: 2; }
.oc-country { position: absolute; bottom: 0.6rem; left: 0.85rem; z-index: 2;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,.92); }
.oc-emoji-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; opacity: .8; }
.oc-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.oc-name { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1; margin: 0; }
.oc-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.7rem 0; }
.oc-tag {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem; border-radius: 100px;
  background: var(--primary-light); color: var(--primary);
  text-transform: uppercase;
}
.oc-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.66rem; color: var(--text-muted);
  border-top: 1px solid var(--border-light); padding-top: 0.7rem; }
.oc-open { color: var(--primary); }
.no-match { text-align: center; font-family: var(--display); font-style: italic;
  font-size: 1.2rem; color: var(--text-secondary); padding: 2rem; }

/* ============ ORIGIN DRAWER ============ */
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20,12,8,0.5);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
.drawer-scrim.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 61; height: 100svh; width: min(480px, 92vw);
  background: var(--surface-solid); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg); overflow-y: auto;
  transform: translateX(100%); transition: transform .42s cubic-bezier(.3,.8,.3,1);
}
.drawer.show { transform: none; }
.dr-media { position: relative; height: 230px; background: linear-gradient(135deg, var(--crema), var(--umber)); }
.dr-media img { width: 100%; height: 100%; object-fit: cover; }
.dr-media::after { content:''; position:absolute; inset:0;
  background: linear-gradient(to top, var(--surface-solid), transparent 60%); }
.dr-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(20,12,8,.5); color: #fff; font-size: 1.2rem;
  backdrop-filter: blur(6px); transition: background .25s;
}
.dr-close:hover { background: rgba(20,12,8,.8); }
.dr-flag { position: absolute; left: 1.2rem; bottom: 1rem; z-index: 3; font-size: 2.2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.dr-pad { padding: 1.4rem 1.6rem 2.5rem; }
.dr-country { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--primary); }
.dr-name { font-family: var(--display); font-weight: 600; font-size: clamp(2rem,7vw,2.8rem);
  line-height: 0.98; margin: 0.3rem 0 1rem; }
.dr-story { color: var(--text-secondary); line-height: 1.75; font-size: 1rem; margin-bottom: 1.6rem; }
.dr-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem 1.5rem;
  border-top: 1px solid var(--border); padding-top: 1.2rem; margin-bottom: 1.5rem; }
.dr-spec { padding: 0.55rem 0; border-bottom: 1px solid var(--border-light); }
.dr-spec dt { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); }
.dr-spec dd { font-size: 0.95rem; margin-top: 0.15rem; font-weight: 500; }
.meter { margin: 0.9rem 0; }
.meter-top { display: flex; justify-content: space-between; font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.35rem; }
.meter-track { height: 7px; border-radius: 100px; background: var(--bg-secondary); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.dr-notes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.2rem 0; }
.dr-note { font-family: var(--mono); font-size: 0.66rem; padding: 0.3rem 0.7rem;
  border-radius: 100px; border: 1px solid var(--border); color: var(--text-secondary); }
.dr-brewlink {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem;
  padding: 0.8rem 1.2rem; border-radius: 100px; background: var(--primary); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: background .25s, transform .25s;
}
.dr-brewlink:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* ============ BREW ============ */
/* ratio calculator */
.calc {
  background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow: var(--shadow); margin-bottom: 1.6rem;
  display: grid; gap: 1.6rem;
}
.calc-head h3 { font-family: var(--display); font-weight: 500; font-size: 1.9rem; margin: 0.2rem 0 0; }
.calc-head h3 small { font-family: var(--font); font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.calc-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.calc-field > span { display: block; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.6rem; }
.calc-field small { text-transform: none; letter-spacing: 0; }
.stepper { display: inline-flex; align-items: center; gap: 0.2rem;
  border: 1px solid var(--border); border-radius: 100px; padding: 0.25rem; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--bg-secondary); color: var(--text); font-size: 1.3rem; line-height: 1;
  transition: background .2s; }
.stepper button:hover { background: var(--primary); color: #fff; }
.stepper output { min-width: 44px; text-align: center; font-family: var(--display); font-size: 1.6rem; font-weight: 600; }
.calc-field input[type=range] { width: 100%; accent-color: var(--primary); }
.range-ends { display: flex; justify-content: space-between; }
.range-ends small { font-family: var(--mono); font-size: 0.62rem; color: var(--text-muted); }
.calc-out { display: flex; align-items: center; justify-content: center; gap: clamp(0.6rem,3vw,1.6rem);
  flex-wrap: wrap; border-top: 1px dashed var(--border); padding-top: 1.4rem; }
.calc-stat { text-align: center; }
.calc-stat b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem,6vw,2.6rem); line-height: 1; }
.calc-stat span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.calc-stat.accent b { color: var(--primary); }
.calc-x { font-family: var(--display); font-size: 1.6rem; color: var(--text-muted); }

/* method cards */
.brew-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.1rem; }
.brew-card {
  background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow);
  transition: box-shadow .35s, transform .35s;
}
.brew-card:hover { box-shadow: var(--shadow-md); }
.brew-card-top { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.brew-emoji { font-size: 1.5rem; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px;
  display: grid; place-items: center; background: var(--primary-light); color: var(--primary); }
.brew-card-top h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 0; line-height: 1; }
.brew-sub { color: var(--text-secondary); font-size: 0.84rem; margin-top: 0.25rem; }
.brew-ratio { margin-left: auto; align-self: center; white-space: nowrap; }
.brew-steps { list-style: none; counter-reset: step; display: grid; gap: 0.75rem; }
.brew-steps li { position: relative; padding-left: 2rem; font-size: 0.92rem; line-height: 1.6; color: var(--text-secondary); }
.brew-steps li b { color: var(--text); }
.brew-steps li::before { counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--accent-light); color: var(--accent); font-family: var(--mono); font-size: 0.72rem;
  display: grid; place-items: center; font-weight: 600; }
.brew-steps.tight li { padding-left: 1.7rem; font-size: 0.86rem; }
.brew-steps.tight li::before { width: 1.2rem; height: 1.2rem; font-size: 0.64rem; }
.brew-tip { margin-top: 1rem; font-size: 0.85rem; color: var(--text-secondary); font-style: italic;
  border-left: 2px solid var(--accent); padding-left: 0.8rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.duo h4 { font-family: var(--display); font-size: 1.1rem; margin-bottom: 0.6rem; }

/* espresso dial-in */
.dial { margin-top: 1rem; border-top: 1px solid var(--border-light); padding-top: 0.8rem; }
.dial summary { cursor: pointer; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); list-style: none; }
.dial summary::-webkit-details-marker { display: none; }
.dial summary::before { content: '+ '; }
.dial[open] summary::before { content: '– '; }
.dial-list { list-style: none; margin-top: 0.8rem; display: grid; gap: 0.6rem; }
.dial-list li { font-size: 0.86rem; color: var(--text-secondary); }
.tag { font-family: var(--mono); font-size: 0.6rem; padding: 0.2rem 0.5rem; border-radius: 6px; margin-right: 0.4rem; text-transform: uppercase; }
.tag.sour { background: rgba(94,112,69,.18); color: var(--accent); }
.tag.bitter { background: var(--primary-light); color: var(--primary); }
.tag.fast, .tag.slow { background: var(--bg-secondary); color: var(--text-muted); }

/* pour-over timer */
.timer { margin-top: 1.2rem; border-top: 1px solid var(--border-light); padding-top: 1.1rem; }
.timer-face { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.6rem; }
.timer-phase { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.timer-clock { font-family: var(--display); font-weight: 600; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.timer-track { height: 6px; border-radius: 100px; background: var(--bg-secondary); overflow: hidden; }
.timer-fill { height: 100%; width: 0; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width .9s linear; }
.timer-actions { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.btn-timer { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  padding: 0.6rem 1.2rem; border-radius: 100px; border: none; cursor: pointer;
  background: var(--primary); color: #fff; transition: background .25s, transform .2s; }
.btn-timer:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-timer.ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-timer.ghost:hover { border-color: var(--primary); color: var(--primary); }
.timer.done .timer-clock { color: var(--accent); }

/* ============ FOOTER ============ */
.atlas-footer { text-align: center; padding: 3.5rem 1.25rem 3rem; border-top: 1px solid var(--border); }
.foot-mark { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.6rem; color: var(--text); }
.foot-meta { color: var(--text-secondary); margin-top: 0.5rem; }
.foot-meta a { color: var(--primary); text-decoration: none; }
.foot-fine { font-family: var(--mono); font-size: 0.66rem; color: var(--text-muted); margin-top: 0.9rem; }
.foot-fine a { color: var(--text-secondary); }

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  .wheel-stage { grid-template-columns: 1fr; }
  .wheel-legend { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .wheel-legend .lg-hint { display: none; }
  .calc-controls { grid-template-columns: 1fr; }
  .dr-specs { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
}

/* ============ MOTION SAFETY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .kicker, .wordmark .line, .wordmark .serif-italic, .hero-sub, .hero-lede, .hero-nav, .hero-ledger { opacity: 1 !important; }
  .wheel-holder.spin #flavour-wheel { animation: none; }
}
