/* ==========================================================================
   Drip & Sip Coffee — site styles
   --------------------------------------------------------------------------
   Night & day: Espresso owns the dark surfaces, Nyota owns daylight cream.
   Each section declares data-theme="night" | "day", which sets --bg, --fg,
   --fg-muted and --line for everything inside it.

   Colour ownership (keep it this way, or the order buttons stop being the
   loudest thing on the page):
     --cta     crema. WhatsApp ORDER buttons only, and only on a dark surface.
               On cream it fails (1.5:1), so every order module on a cream
               section is a dark "pouch" card.
     --copper  Espresso's accent. Text >= 24px only (4:1); small copper text
               uses --copper-hi on night, --copper-ink on cream.
     --forest  Nyota's accent (headings, spec values) on cream.
     --lime    Nyota, decorative only (the swash, the star). Never text.

   Motion: everything is visible by default. Elements only start hidden when
   <html> has .motion-ok (set inline in <head> when the visitor hasn't asked
   for reduced motion or Save-Data), and site.js removes .motion-ok again if
   the animation scripts don't arrive.
   ========================================================================== */

@font-face {
  font-family: "Gloock";
  src: url("../fonts/gloock.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks, so headlines don't re-wrap when the webfonts land */
@font-face {
  font-family: "Gloock Fallback";
  src: local("Georgia");
  size-adjust: 105.2%;
  ascent-override: 92.7%;
  descent-override: 21.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial");
  size-adjust: 104.7%;
  ascent-override: 93.3%;
  descent-override: 24.6%;
  line-gap-override: 0%;
}

:root {
  /* Palette */
  --roast: #120c09;
  --roast-2: #1e1510;
  --pouch: #0b0807;
  --porcelain: #f1e3cf;
  --porcelain-muted: #b3a696;
  --paper: #f3ebdd;
  --daylight: #ecddcb;
  --ink: #22170f;
  --ink-muted: #5e5045;
  --copper: #a9622e;
  --copper-hi: #d19762;
  --copper-ink: #8e4f22;
  --forest: #093a1b;
  --lime: #93bc14;
  --cta: #e8b87a;            /* order buttons only */
  --cta-hover: #f2c890;

  /* Type */
  --serif: "Gloock", "Gloock Fallback", Georgia, serif;
  --sans: "Schibsted Grotesk", "Schibsted Fallback", Arial, sans-serif;
  --step--1: 0.8125rem;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.5rem + 2.8vw, 3.75rem);
  --step-5: clamp(2.5rem, 1.4rem + 5vw, 5.5rem);
  --step-h1: clamp(2rem, 1.2rem + 3.4vw, 4.125rem);

  /* Space */
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --wrap: 1240px;
  --pad-x: clamp(1rem, 4vw, 3rem);
  --header-h: 60px;
  --bar-h: 70px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 1024px) { :root { --header-h: 72px; } }

[data-theme="night"] {
  --bg: var(--roast);
  --fg: var(--porcelain);
  --fg-muted: var(--porcelain-muted);
  --line: rgb(241 227 207 / 0.13);
  --line-strong: rgb(241 227 207 / 0.3);
  --accent: var(--copper-hi);
}
[data-theme="day"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--ink-muted);
  --line: rgb(34 23 15 / 0.13);
  --line-strong: rgb(34 23 15 / 0.32);
  --accent: var(--copper-ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scroll-padding-bottom: calc(var(--bar-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  background: var(--roast);
  color: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; }
button { font: inherit; }
sub { font-size: 0.7em; line-height: 0; }
[hidden] { display: none !important; }

[data-theme] { background: var(--bg); color: var(--fg); }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cta); color: var(--roast); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--porcelain); color: var(--roast); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared type ---------- */
.eyebrow, .chapter__num, .kicker, .pouch__what {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.chapter__num { display: flex; align-items: center; gap: 0.9em; color: var(--accent); margin-bottom: 1.25rem; }
.chapter__num span { display: inline-flex; align-items: center; gap: 0.9em; }
.chapter__num span::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.6; }
.chapter__title {
  font-family: var(--serif);
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--fg-muted); max-width: 36rem; }
.kicker { color: var(--fg-muted); margin: 2.75rem 0 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.5rem;
  border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--cta { background: var(--cta); color: var(--roast); }
.btn--cta:hover { background: var(--cta-hover); }
.btn--cta:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: 0.875rem; }
.btn--sm svg { width: 17px; height: 17px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--ease), background-color 0.35s, color 0.35s, border-color 0.35s;
}
.site-header.is-scrolled { background: var(--bg); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--porcelain); margin-right: auto; }
.site-header[data-theme="day"] .brand { color: var(--forest); }
.brand__mascot { height: 34px; width: auto; }
.brand__type { display: grid; justify-items: center; gap: 3px; }
.brand__word { height: 17px; width: auto; }
.brand__coffee { font-size: 0.5rem; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; line-height: 1; padding-left: 0.42em; }
.nav { display: none; gap: 1.75rem; font-size: 0.9375rem; }
.nav a { text-decoration: none; opacity: 0.86; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.header-cta { display: none; }
.site-header[data-theme="day"] .header-cta { background: var(--roast); color: var(--cta); }
.site-header[data-theme="day"] .header-cta:hover { background: #2a1d15; }
.header-call {
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
  border-radius: 999px; color: inherit;
}
.header-call svg { width: 22px; height: 22px; }
@media (min-width: 760px) {
  .header-cta { display: inline-flex; }
  .header-call { display: none; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .brand__mascot { height: 40px; }
  .brand__word { height: 19px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 14px) 0 40px;
  background:
    radial-gradient(ellipse 60% 45% at 80% 62%, rgb(96 66 44 / 0.42), transparent 72%),
    var(--bg);
}
.hero__grid {
  display: grid;
  grid-template-areas: "eyebrow" "title" "sub" "plinths" "actions" "proof";
}
.hero__eyebrow { grid-area: eyebrow; color: var(--fg-muted); margin-bottom: 0.6rem; }
.hero__title {
  grid-area: title;
  font-family: var(--serif);
  font-size: var(--step-h1);
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}
.hero__sub { grid-area: sub; color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.45; max-width: 30rem; margin-bottom: 1rem; }
.hero__plinths { grid-area: plinths; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1rem; }
.hero__actions { grid-area: actions; display: flex; align-items: center; gap: 10px; }
.hero__actions .btn { flex: 1; }
.hero__call {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 999px;
  border: 1px solid var(--line-strong); text-decoration: none; font-size: 0.9375rem;
}
.hero__call svg { width: 22px; height: 22px; }
.hero__call > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.proof {
  grid-area: proof; list-style: none;
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 0.75rem; color: var(--fg-muted);
}
.proof li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.proof li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--copper-hi); }

/* Plinths: the two bags, night and day */
.plinth {
  display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line);
}
.plinth--night { background: #0e0907; color: var(--porcelain); --fg-muted: var(--porcelain-muted); }
.plinth--day { background: var(--daylight); color: var(--ink); border-color: transparent; --fg-muted: var(--ink-muted); }
.plinth__media {
  display: flex; justify-content: center; overflow: hidden;
  height: clamp(124px, min(32vw, 42vh), 380px);
}
.plinth__media img {
  height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  transition: transform 0.8s var(--ease);
}
.plinth:hover .plinth__media img { transform: scale(1.035); }
.plinth__meta { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px; padding: 8px 11px 11px; }
.plinth__name { grid-column: 1 / -1; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.2; white-space: nowrap; }
.plinth__price { font-weight: 600; font-size: 0.8125rem; white-space: nowrap; }
.plinth__spec { font-size: 0.72rem; color: var(--fg-muted); line-height: 1.35; text-align: right; white-space: nowrap; }
.plinth__more { display: none; }

@media (min-width: 640px) {
  .hero { padding-bottom: 56px; }
  .hero__eyebrow { margin-bottom: 1rem; }
  .hero__sub { font-size: var(--step-1); margin-bottom: 1.5rem; }
  .hero__plinths { gap: 16px; margin-bottom: 1.5rem; }
  .hero__actions { gap: 20px; }
  .hero__actions .btn { flex: none; padding-inline: 1.75rem; }
  .hero__call { display: inline-flex; gap: 8px; width: auto; height: auto; border: 0; color: var(--fg-muted); }
  .hero__call svg { width: 18px; height: 18px; }
  .hero__call > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .hero__call:hover { color: var(--fg); }
  .proof { font-size: 0.8125rem; gap: 6px 22px; margin-top: 22px; padding-top: 16px; max-width: 32rem; }
  .plinth__meta { grid-template-columns: 1fr auto; padding: 12px 16px 15px; }
  .plinth__name { grid-column: 1; font-size: 1.375rem; }
  .plinth__price { font-size: 0.9375rem; }
  .plinth__spec { grid-column: 1 / -1; font-size: 0.8125rem; text-align: left; }
  .plinth__more { display: inline; }
}
@media (min-width: 1024px) {
  .hero { display: flex; align-items: center; min-height: min(100svh, 960px); padding-bottom: 48px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas: "eyebrow plinths" "title plinths" "sub plinths" "actions plinths" "proof plinths";
    column-gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }
  .hero__plinths { align-self: center; align-items: start; margin: 0; gap: 20px; }
  .plinth--day { margin-top: 56px; }
}

/* ---------- Zipper divider (the pouch's own strip) ---------- */
.zipper { background: var(--pouch); color: #ede3d6; padding: 14px 0 0; overflow: hidden; }
.zipper__row { display: flex; align-items: center; gap: 16px; padding-left: var(--pad-x); }
.zipper__tab { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.zipper__track { flex: 1; overflow: hidden; }
.zipper__arrows { display: flex; gap: 22px; width: max-content; }
.zipper__arrows svg { width: 9px; height: 9px; flex: none; }
.zipper__teeth {
  position: relative; height: 10px; margin-top: 12px;
  background: conic-gradient(#ede3d6 25%, var(--pouch) 0 50%, #ede3d6 0 75%, var(--pouch) 0) 0 0 / 10px 10px;
}
.zipper__label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #ede3d6; color: var(--pouch);
  font-size: 0.5625rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 999px;
}

/* ---------- Chapters ---------- */
.chapter { padding-block: var(--section-y); }
.chapter__head { max-width: 42rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.chapter--espresso .chapter__head { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.chapter__foot { display: grid; gap: 28px; margin-top: clamp(3rem, 7vw, 5.5rem); }
@media (min-width: 900px) {
  .chapter__foot { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); align-items: end; gap: 56px; }
}

/* Espresso: what's in the bag */
.anatomy__stage { position: relative; display: grid; gap: 28px; }
.anatomy__title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.anatomy__bag { position: relative; width: min(76vw, 400px); margin: 0 auto; }
.anatomy__bag img {
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.anatomy__bag::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 1px; background: var(--line-strong); }
.dot, .note__num {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--porcelain); color: var(--roast);
  font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.dot { position: absolute; left: var(--x); top: var(--y); margin: -14px 0 0 -14px; outline: 4px solid rgb(18 12 9 / 0.5); }
.anatomy__notes { list-style: none; display: grid; gap: 26px; }
.note { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.note > :not(.note__num) { grid-column: 2; }
.note h4 { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; margin: 1px 0 6px; }
.note p { color: var(--fg-muted); font-size: 0.9375rem; max-width: 30ch; }
.note--label .spec { margin-top: 4px; }
.anatomy__lines { display: none; }
@media (min-width: 640px) and (max-width: 1023px) {
  .anatomy__notes { grid-template-columns: 1fr 1fr; column-gap: 28px; }
}
@media (min-width: 1024px) {
  .anatomy__stage {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto 1fr 1fr;
    column-gap: clamp(48px, 7vw, 120px);
    row-gap: 0;
    align-items: center;
  }
  .anatomy__title { grid-column: 1 / -1; grid-row: 1; margin-bottom: 8px; }
  .anatomy__bag { grid-column: 2; grid-row: 2 / span 2; width: auto; height: min(600px, calc(100svh - var(--header-h) - 150px)); aspect-ratio: 603 / 804; }
  .anatomy__bag img { height: 100%; width: 100%; }
  .anatomy__notes { display: contents; }
  .note[data-note="1"] { grid-column: 1; grid-row: 2; align-self: start; margin-top: 4%; }
  .note[data-note="3"] { grid-column: 1; grid-row: 3; align-self: start; margin-top: -8%; }
  .note[data-note="2"] { grid-column: 3; grid-row: 2; align-self: start; margin-top: 10%; }
  .note[data-note="4"] { grid-column: 3; grid-row: 3; align-self: end; }
  .note[data-note="1"], .note[data-note="3"] { justify-self: end; }
  .anatomy__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
  .anatomy__lines path { fill: none; stroke: var(--line-strong); stroke-width: 1; }
  .anatomy__lines circle { fill: var(--porcelain); }
  .anatomy.is-pinned .anatomy__stage { height: 100svh; padding-top: calc(var(--header-h) + 20px); padding-bottom: 28px; }
}

/* Spec rows: each bag's label as a hairline table */
.spec__row { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.7rem 0; font-size: 0.9375rem; }
.spec__row::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--line-strong); transform-origin: left; }
.spec__row:last-child { border-bottom: 1px solid var(--line-strong); }
.spec dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
.spec dd { font-weight: 500; text-align: right; }
.spec--day dd { color: var(--forest); }

/* Yield grids: cups per bag */
.yield { display: grid; gap: 18px; }
.yield__grid { width: 100%; max-width: 440px; color: var(--accent); }
.chapter--nyota .yield__grid { color: var(--forest); }
.yield__big { font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; margin-bottom: 4px; }
.yield__sum { color: var(--fg-muted); font-size: 0.9375rem; }
.yield__sum strong { color: var(--fg); font-weight: 600; }

/* Pouch: every order module is a dark card, so crema always sits on dark */
.pouch {
  position: relative; overflow: hidden;
  background: var(--pouch); color: var(--porcelain);
  --fg: var(--porcelain); --fg-muted: var(--porcelain-muted); --line: rgb(241 227 207 / 0.13); --line-strong: rgb(241 227 207 / 0.3);
  border: 1px solid rgb(241 227 207 / 0.1);
  border-radius: 22px 22px 16px 16px;
  padding: 34px 22px 22px;
}
.chapter--espresso .pouch, .order .pouch { background: var(--roast-2); }
.pouch__zip {
  position: absolute; left: 0; right: 0; top: 13px; height: 6px; opacity: 0.8;
  background: conic-gradient(#ede3d6 25%, transparent 0 50%, #ede3d6 0 75%, transparent 0) 0 0 / 6px 6px;
}
.pouch__what { color: var(--porcelain-muted); }
.pouch__price { font-family: var(--serif); font-size: var(--step-3); line-height: 1.1; margin: 6px 0 18px; }
.pouch__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; min-height: 32px;
  color: var(--porcelain-muted); font-size: 0.875rem; text-decoration: none;
}
.pouch__more svg { width: 14px; height: 14px; }
.pouch__more:hover { color: var(--porcelain); text-decoration: underline; }

/* ---------- Sunrise (motion only) ---------- */
.sunrise { display: none; }
.motion-ok .sunrise { display: block; position: relative; height: clamp(150px, 30vh, 320px); background: var(--roast); }
/* the band already supplies the breathing room above Nyota */
.motion-ok .sunrise + .chapter--nyota { padding-top: clamp(1rem, 3vw, 2.5rem); }
.sunrise__layer { position: absolute; inset: 0; display: grid; place-items: center; }
.sunrise__layer--day { background: var(--daylight); clip-path: inset(100% 0 0 0); }
.sunrise__star { width: 54px; height: 54px; }
.sunrise__layer--night .sunrise__star { color: var(--lime); }
.sunrise__layer--day .sunrise__star { color: var(--forest); }

/* ---------- Nyota (daylight) ---------- */
.chapter--nyota { --bg: var(--daylight); --accent: var(--forest); }
.nyota { display: grid; gap: 40px; }
.nyota__photo img { width: 100%; border-radius: 28px; }
.swash { position: relative; color: var(--forest); white-space: nowrap; }
.swash svg { position: absolute; left: -3%; bottom: -0.14em; width: 106%; height: 0.32em; overflow: visible; }
.swash path { fill: none; stroke: var(--lime); stroke-width: 6; stroke-linecap: round; }
.chapter__aside { color: var(--fg-muted); font-size: 0.9375rem; margin: -0.25rem 0 1.25rem; }
.notes-trio { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 2.5rem; }
.notes-trio li { display: grid; gap: 10px; justify-items: start; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.notes-trio svg { width: 46px; height: 46px; fill: none; stroke: var(--forest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notes-trio span { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
@media (min-width: 900px) {
  .nyota { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .nyota__photo { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- 03 Which one's yours ---------- */
.which { padding-block: var(--section-y); }
.roast { margin-bottom: clamp(3rem, 7vw, 5rem); }
.roast__scale { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.roast__step { display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; font-size: 0.8125rem; color: var(--fg-muted); }
.bean { width: clamp(32px, 7vw, 60px); height: auto; overflow: visible; }
.bean__body { stroke: var(--ink); stroke-width: 1.6; }
.bean__crease { fill: none; stroke: rgb(243 235 221 / 0.6); stroke-width: 1.8; stroke-linecap: round; }
.roast__pick {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; text-decoration: none; line-height: 1.2;
}
.roast__pick--nyota { background: var(--forest); color: var(--paper); }
.roast__pick--espresso { background: var(--roast); color: var(--porcelain); }
.roast__track { position: relative; height: 3px; margin: 18px 12.5% 16px; background: var(--line); border-radius: 3px; overflow: hidden; }
.roast__fill { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, #9aa06a, #b9824f 33%, #7b4a27 66%, #3a2216); }
.roast figcaption { color: var(--fg-muted); text-align: center; max-width: 42ch; margin: 0 auto; font-size: 0.9375rem; }
.roast__step:nth-child(n+3) .roast__pick { margin-top: 2px; }

.methods { list-style: none; display: grid; }
.method { padding: 26px 0; border-top: 1px solid var(--line-strong); }
.method svg { width: 60px; height: 60px; margin-bottom: 14px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.method h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.method__pick { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper-ink); margin: 6px 0 10px; }
.method p:last-child { color: var(--fg-muted); font-size: 0.9375rem; max-width: 34ch; }
.which__note { margin-top: 1.75rem; color: var(--fg-muted); font-size: 0.9375rem; }
@media (min-width: 640px) { .methods { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1100px) { .methods { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 04 Order ---------- */
.order { padding-block: var(--section-y); }
.order__grid { display: grid; gap: 40px; }
.builder__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.builder__row:first-of-type { padding-top: 4px; }
.builder__name { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; }
.builder__spec { font-size: 0.8125rem; color: var(--fg-muted); margin-top: 2px; }
.builder__single { font-size: 0.875rem; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.stepper button {
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: transparent; color: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.stepper button:hover { background: rgb(241 227 207 / 0.08); }
.stepper button:disabled { opacity: 0.35; cursor: default; background: transparent; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.builder__total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; font-size: 0.875rem; color: var(--fg-muted); }
.builder__total output { font-family: var(--serif); font-size: 1.75rem; color: var(--fg); }
.builder__total output.is-empty { font-family: var(--sans); font-size: 0.9375rem; color: var(--fg-muted); }
.builder > .btn { margin-top: 18px; }
.builder__total + .btn { margin-top: 0; }
.builder__fine { font-size: 0.75rem; color: var(--fg-muted); text-align: center; margin-top: 12px; }
.voices .kicker { margin-top: 0; }
.voices ul { list-style: none; display: grid; gap: 12px; }
.voice--pending { border: 1px dashed rgb(241 227 207 / 0.3); border-radius: 16px; padding: 18px 20px; color: var(--fg-muted); font-size: 0.9375rem; }
.voice span { display: block; margin-top: 8px; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; }
@media (min-width: 1024px) {
  .order__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    grid-template-areas: "head builder" "voices builder";
    column-gap: clamp(48px, 7vw, 112px);
    align-items: start;
  }
  .order__head { grid-area: head; margin-bottom: 0; }
  .builder { grid-area: builder; }
  .voices { grid-area: voices; }
}

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section-y); }
.faq__grid { display: grid; gap: 28px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 44px 20px 0;
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--fg-muted); max-width: 60ch; padding-bottom: 22px; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; } }

/* ---------- Final: kitchen or café ---------- */
.final {
  padding-block: var(--section-y);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 34%, rgb(96 66 44 / 0.5), transparent 70%),
    var(--bg);
}
.final__title { font-family: var(--serif); font-size: var(--step-5); line-height: 1; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.final__paths { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.path {
  display: grid; justify-items: center; gap: 10px;
  background: var(--roast-2); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 22px 26px;
}
.path h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; }
.path p { color: var(--fg-muted); max-width: 30ch; }
.path .btn { margin-top: 10px; }
.signoff { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(3rem, 7vw, 5rem); font-size: var(--step-1); }
.signoff__mascot { width: 96px; height: auto; color: var(--porcelain); }
.signoff a { font-weight: 600; }
@media (min-width: 760px) { .final__paths { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--pouch); padding: 40px 0 calc(40px + var(--bar-h) + env(safe-area-inset-bottom)); }
.site-footer__inner { display: grid; gap: 18px; justify-items: start; }
.brand--footer { margin: 0; }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__links a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer__small { font-size: 0.8125rem; color: var(--fg-muted); }
@media (min-width: 760px) {
  .site-footer { padding-bottom: 40px; }
  .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}

/* ---------- Mobile sticky order bar ---------- */
.action-bar {
  position: fixed; inset: auto 0 0; z-index: 40;
  display: flex; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--roast-2); border-top: 1px solid rgb(241 227 207 / 0.12);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar .btn { flex: 1; min-height: 48px; }
.action-bar__call {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: 999px; border: 1px solid rgb(241 227 207 / 0.3); color: var(--porcelain);
}
.action-bar__call svg { width: 22px; height: 22px; }
html:not(.js) .action-bar { display: none; }
@media (min-width: 760px) { .action-bar { display: none; } }

/* ---------- Motion initial states (only with JS + motion allowed) ---------- */
.motion-ok [data-reveal] { opacity: 0; transform: translateY(24px); }
.motion-ok [data-split] { visibility: hidden; }
.motion-ok [data-draw] { opacity: 0; }
.motion-ok .anatomy :is(.dot, .note) { opacity: 0; }
.motion-ok [data-rules] .spec__row::before { transform: scaleX(0); transition: transform 0.9s var(--ease) calc(var(--i) * 90ms); }
.motion-ok [data-rules].is-in .spec__row::before { transform: none; }
.motion-ok [data-cups] use { opacity: 0; transition: opacity 0.4s ease calc(var(--i) * 16ms); }
.motion-ok [data-cups].is-in use { opacity: 1; }
.motion-ok [data-roasted] { opacity: 0; }
.motion-ok [data-roast-fill] { transform: scaleX(0); }

/* Hero entrance is pure CSS, so the first screen never waits on the animation scripts.
   The h1 only moves (never starts invisible), so it can paint as the LCP at once. */
.motion-ok [data-hero-in] { animation: hero-rise 1s var(--ease) both; animation-delay: var(--d, 0s); }
.motion-ok .hero__title[data-hero-in] { animation-name: hero-lift; }
.motion-ok [data-plinth] { animation: plinth-pour 1.4s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--d, 0s); }
.motion-ok [data-plinth] img { animation: settle 2.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hero-lift { from { transform: translateY(22px); } to { transform: none; } }
@keyframes plinth-pour { from { clip-path: inset(38% 0 0 0 round 20px); } to { clip-path: inset(0 0 0 0 round 20px); } }
@keyframes settle { from { transform: scale(1.1); } to { transform: none; } }
.split-line { display: block; }

@media print {
  .site-header, .action-bar, .zipper, .sunrise { display: none !important; }
  [data-theme] { background: #fff !important; color: #000 !important; }
  .motion-ok :is([data-reveal], [data-split], [data-draw], .dot, .note, [data-roasted]) { opacity: 1 !important; visibility: visible !important; transform: none !important; }
}
