/* =========================================================
   Coffee. — scroll story landing page
   Note: photos inside the story use mix-blend-mode: multiply so their
   white backgrounds melt into the cream. Keep transform / opacity /
   filter off their ancestors (scenes move with `top`, not transform),
   or the blend becomes isolated and the white boxes show.
   ========================================================= */

:root {
  --cream: #f2e7d6;
  --cream-deep: #ecdfca;
  --floor: #f8f1e6;
  --sand: #e8d6bc;
  --arc: #efe0ca;
  --ink: #2e1a10;
  --ink-2: #6a5243;
  --brown: #3a2216;
  --brown-2: #5a3420;
  --caramel: #a8612f;
  --caramel-2: #8f4f22;
  --gold: #cf9944;
  --terra: #b25f37;
  --card: #fcf8f2;

  --gutter: clamp(20px, 3.9vw, 56px);
  --header-h: 84px;
  --axis: 47%;

  --font-display: "Lilita One", "Arial Black", system-ui, sans-serif;
  --font-groovy: "Shrikhand", "Lilita One", Georgia, serif;
  --font-logo: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--brown); color: var(--card);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

/* Solid like the page top, so scenes slide under it as they would under a real page header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--header-h);
  background: var(--cream);
  transition: box-shadow .3s;
}
.site-header.is-solid { box-shadow: 0 1px 0 rgba(58, 34, 22, .08); }

.header-inner {
  max-width: 1440px; height: 100%;
  margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}

.logo {
  font-family: var(--font-logo);
  font-weight: 700; font-size: 27px; letter-spacing: -.01em;
  color: var(--ink); justify-self: start;
}
.logo span { color: var(--caramel); }

.nav { display: flex; gap: 38px; }
.nav a {
  position: relative; font-size: 13.5px; font-weight: 500; padding: 8px 0;
  color: var(--ink);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background-color .2s;
}
.icon-btn:hover { background: rgba(58, 34, 22, .07); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-actions .btn { margin: 0 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 46px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; }
.btn-dark { background: var(--brown); color: #f7ecdc; box-shadow: 0 8px 18px -10px rgba(58, 34, 22, .8); }
.btn-dark:hover { background: var(--brown-2); }
.btn-caramel { background: var(--caramel); color: #fff6ea; box-shadow: 0 8px 18px -10px rgba(143, 79, 34, .9); }
.btn-caramel:hover { background: var(--caramel-2); }
.btn-outline {
  height: 54px; padding: 0 38px;
  border: 1.5px solid var(--ink); background: rgba(252, 248, 242, .55);
  text-transform: uppercase; letter-spacing: .09em; font-size: 14px;
}
.btn-outline:hover { background: var(--ink); color: var(--card); }
.btn-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.circle-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.circle-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.circle-btn:hover { background: var(--ink); color: var(--card); }
.circle-btn:active { transform: scale(.95); }

/* ---------- Story stage ---------- */

.story { position: relative; height: 520vh; }

.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--cream);
}

.scene {
  position: absolute; left: 0; right: 0; top: 0;
  height: 100%;
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 77%, var(--floor) 77.2%, #f5ede0 100%);
}
.scene-2, .scene-3 { top: 100%; }

.scene-inner {
  position: relative; height: 100%;
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
}

.copy {
  position: absolute; left: var(--gutter); top: 17%;
  width: min(33%, 460px);
}
.scene-2 .copy, .scene-3 .copy { top: 19%; }

.num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sand); color: var(--brown);
  font-weight: 800; font-size: 13px;
  margin-bottom: 18px;
}

.headline {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(56px, 8.3vw, 150px);
  line-height: .86; letter-spacing: .01em;
  color: var(--ink);
  margin: 0 0 24px;
}
.headline-sm { font-size: clamp(40px, 5.1vw, 90px); line-height: .9; }

.lede {
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
  max-width: 300px; margin: 0 0 26px;
}

.actions { display: flex; align-items: center; gap: 12px; }

/* split letters */
.split { display: block; }
.split .w { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; will-change: transform; }

/* ---------- Scene 1 ---------- */

.search-pill {
  position: absolute; right: calc(var(--gutter) + 3%); top: 23%;
  display: flex; align-items: center;
  width: min(22%, 270px); height: 42px;
  padding: 0 4px 0 18px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: rgba(252, 248, 242, .4);
  transition: background-color .2s, box-shadow .2s;
}
.search-pill:focus-within { background: var(--card); box-shadow: 0 10px 24px -14px rgba(58, 34, 22, .6); }
.search-pill input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; outline: none;
  font: inherit; font-size: 13px; color: var(--ink);
}
.search-pill input::placeholder { color: var(--ink-2); }
.search-pill input::-webkit-search-cancel-button { display: none; }
.search-pill button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.search-pill button:hover { background: rgba(58, 34, 22, .08); }
.search-pill svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.s1-word { position: absolute; right: calc(var(--gutter) + 2%); top: 50%; }
.script {
  display: block; width: max-content;
  font-family: var(--font-groovy); color: var(--gold);
  font-size: clamp(30px, 3.9vw, 66px); line-height: 1;
  margin: 0 0 -.12em 1.1em;
  transform: rotate(-8deg);
}
.giant {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(60px, 9.4vw, 170px); line-height: .85;
  color: var(--ink);
}

/* ---------- Effects layer (bean + liquid) ---------- */

/* Same 1440px box as .scene-inner so --axis lines up with the dripper and cup */
.fx { position: absolute; top: 0; bottom: 0; left: 0; right: 0; max-width: 1440px; margin: 0 auto; pointer-events: none; }

.bean-anchor { position: absolute; left: var(--axis); top: 51%; width: 0; height: 0; }
.bean {
  position: absolute; left: 0; top: 0;
  width: min(62vh, 40vw); max-width: none; height: auto; aspect-ratio: 1;
  mix-blend-mode: multiply;
  /* lifts the photo's off-white backdrop to pure white so multiply hides it */
  filter: brightness(1.1) contrast(1.12);
  -webkit-mask-image: radial-gradient(ellipse 31% 47% at 51% 48%, #000 74%, transparent 100%);
  mask-image: radial-gradient(ellipse 31% 47% at 51% 48%, #000 74%, transparent 100%);
  transform: translate(-50%, -50%) rotate(-10deg);
  transform-origin: 50% 50%;
}
.bean-shadow {
  position: absolute; left: var(--axis); top: 78%;
  width: min(30vh, 19vw); height: 22px; margin-left: calc(min(30vh, 19vw) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(58, 34, 22, .35), rgba(58, 34, 22, 0));
  filter: blur(4px);
}

.grounds { position: absolute; left: var(--axis); top: 51%; width: 0; height: 0; }
.grounds i {
  position: absolute; left: 0; top: 0;
  width: var(--s); height: var(--s);
  border-radius: 46% 54% 40% 60%;
  background: var(--c);
  opacity: 0;
  animation: burst var(--d) linear var(--delay) infinite;
}
.grounds b {
  position: absolute; left: 0; top: 0;
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 38, 18, .5), rgba(70, 38, 18, 0));
  transform: translate(var(--x), var(--y));
  animation: dust 3.2s ease-in-out var(--delay) infinite alternate;
}
@keyframes burst {
  0%   { transform: translate(var(--x0), var(--y0)) scale(.4) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  80%  { opacity: .9; }
  100% { transform: translate(var(--x1), var(--y1)) scale(1) rotate(var(--r)); opacity: 0; }
}
@keyframes dust {
  from { opacity: .45; transform: translate(var(--x), var(--y)) scale(.9); }
  to   { opacity: .8; transform: translate(calc(var(--x) + 8px), calc(var(--y) - 10px)) scale(1.1); }
}

.liquid { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* ---------- Scene 2 ---------- */

.brew {
  position: absolute; top: 27%;
  height: 92%; width: auto; aspect-ratio: 400 / 760;
  left: calc(var(--axis) - (92vh * 400 / 760) / 2);
}
@supports (height: 1svh) {
  .brew { left: calc(var(--axis) - (92svh * 400 / 760) / 2); }
}
.drip { stroke-dasharray: 10 34; animation: drip .7s linear infinite; }
@keyframes drip { to { stroke-dashoffset: -44; } }
.bloom-bubbles circle { animation: bubble 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bloom-bubbles circle:nth-child(2n) { animation-delay: -.8s; }
.bloom-bubbles circle:nth-child(3n) { animation-delay: -1.6s; }
@keyframes bubble { 0%, 100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1.15); opacity: 1; } }

.jug {
  position: absolute; top: 61%;
  left: calc(var(--axis) + 11%);
  height: 46%; width: auto; aspect-ratio: 300 / 360;
}

.s2-word {
  position: absolute; right: calc(var(--gutter) + 1%); top: 27%;
  text-align: center; color: var(--terra);
}
.groovy {
  font-family: var(--font-groovy);
  font-size: clamp(54px, 7.6vw, 140px); line-height: 1.02;
  text-transform: uppercase; letter-spacing: -.01em;
  text-shadow: 0 .04em 0 rgba(90, 40, 18, .18);
}
.curl { position: absolute; fill: none; stroke: var(--terra); stroke-width: 4; stroke-linecap: round; }
.curl circle { fill: var(--terra); stroke: none; }
.curl-a { width: 44px; left: -34px; top: -8px; }
.curl-b { width: 46px; right: -6px; bottom: -48px; }

/* ---------- Scene 3 ---------- */

.arc {
  position: absolute; left: 50%; top: 40%;
  width: 190%; aspect-ratio: 1; margin-left: -95%;
  border-radius: 50%;
  background: var(--arc);
}
@supports not (aspect-ratio: 1) { .arc { height: 2600px; } }

.cup {
  --cup: min(58vh, 34vw);
  position: absolute;
  left: calc(var(--axis) - var(--cup) / 2);
  top: calc(55% - var(--cup) / 2);
  width: var(--cup); height: var(--cup); max-width: none;
  object-fit: cover;
  mix-blend-mode: multiply;
  /* fade the photo's own shadow out before the crop edge */
  -webkit-mask-image: radial-gradient(closest-side circle at 52% 52%, #000 78%, transparent 100%);
  mask-image: radial-gradient(closest-side circle at 52% 52%, #000 78%, transparent 100%);
}

.float-card {
  position: absolute;
  width: clamp(104px, 9.4vw, 152px);
  padding: 12px 12px 10px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 22px 40px -22px rgba(58, 34, 22, .55), 0 2px 6px rgba(58, 34, 22, .06);
  transform: rotate(var(--rot));
}
.float-card h3 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.float-card p { margin: 2px 0 8px; font-size: 10.5px; color: var(--ink-2); line-height: 1.3; }
.float-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.card-roast  { --rot: -8deg; left: calc(var(--axis) - 13vw); top: 18%; }
.card-origin { --rot: 7deg;  left: calc(var(--axis) - 21vw); top: 55%; }
.card-flavor { --rot: 9deg;  left: calc(var(--axis) + 11vw); top: 58%; }
.flavor-blobs { position: relative; aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; background: #f1ece2; }
.flavor-blobs i { position: absolute; border-radius: 50%; filter: blur(2px); }
.flavor-blobs i:nth-child(1) { width: 62%; height: 70%; left: 10%; top: 18%; background: #9fb59a; opacity: .8; }
.flavor-blobs i:nth-child(2) { width: 46%; height: 50%; left: 44%; top: 8%; background: #6f8f74; opacity: .7; }
.flavor-blobs i:nth-child(3) { width: 40%; height: 40%; left: 40%; top: 50%; background: #c9d3bd; opacity: .9; }

.find-cup { position: absolute; left: var(--axis); top: 85%; transform: translateX(-50%); }
.find-cup:hover { transform: translateX(-50%) translateY(-1px); }
.find-cup:active { transform: translateX(-50%) translateY(1px) scale(.98); }

.s3-word {
  position: absolute; right: calc(var(--gutter) + 1%); top: 26%;
  text-align: center;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(54px, 7.1vw, 130px); line-height: .9;
  color: var(--ink);
}

/* ---------- Stage controls ---------- */

.slide-arrow {
  position: absolute; top: 50%; z-index: 5;
  width: 40px; height: 40px; margin-top: -20px;
  border-radius: 50%;
  background: rgba(252, 248, 242, .75);
  box-shadow: 0 6px 16px -10px rgba(58, 34, 22, .6);
  display: grid; place-items: center;
  transition: background-color .2s, transform .2s var(--ease-out), opacity .3s;
}
.slide-arrow:hover { background: var(--card); }
.slide-arrow:active { transform: scale(.94); }
.slide-arrow[disabled] { opacity: .35; cursor: default; }
.slide-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slide-arrow.prev { left: 12px; }
.slide-arrow.next { right: 12px; }
/* arrows only where the gutter leaves them room */
@media (min-width: 1200px) { :root { --gutter: max(66px, 4.4vw); } }
@media (max-width: 1199px) { .slide-arrow { display: none; } }

.dots {
  position: absolute; left: 50%; bottom: 5.5%; z-index: 5;
  display: flex; gap: 4px; transform: translateX(-50%);
}
.dots button {
  width: 24px; height: 24px; display: grid; place-items: center;
}
.dots button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--ink); opacity: .55;
  transition: background-color .3s, opacity .3s, width .3s var(--ease-out);
}
.dots button.is-active::before { background: var(--ink); opacity: 1; width: 7px; }

.scroll-hint {
  position: absolute; left: var(--gutter); bottom: 5.5%; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  transition: opacity .4s;
}
.scroll-hint span { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.scroll-hint span::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px;
  border-radius: 2px; background: currentColor; animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Roasts ---------- */

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

.roasts { padding: clamp(80px, 11vw, 150px) 0; background: var(--floor); }
.roasts-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.roasts-head .headline { margin: 0; }
.roasts-head p { max-width: 380px; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; }

.roast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.roast-card {
  background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(58, 34, 22, .06), 0 26px 50px -36px rgba(58, 34, 22, .5);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.roast-card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(58, 34, 22, .06), 0 32px 60px -34px rgba(58, 34, 22, .55); }
.roast-photo { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.roast-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.roast-card:hover .roast-photo img { transform: scale(1.03); }
.roast-body { padding: 22px 22px 22px; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--caramel); }
.roast-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; margin: 8px 0 8px; text-transform: uppercase; }
.roast-body p { margin: 0 0 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.roast-foot { display: flex; align-items: center; justify-content: space-between; }
.roast-foot strong { font-size: 20px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--brown); color: #ead9c2; padding: 72px 0 28px; }
.site-footer .logo { color: #fbf1e2; }
.site-footer .logo span { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; }
.footer-grid h3 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 6px 0 14px; }
.footer-grid a:not(.logo), .footer-grid p { display: block; margin: 0 0 8px; font-size: 14.5px; color: #ead9c2; }
.footer-grid a:not(.logo):hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-note { margin-top: 12px !important; color: #c8b39a !important; }
.footer-base {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid rgba(234, 217, 194, .16);
  font-size: 12.5px; color: #b9a289;
}

/* ---------- Chat button ---------- */

.chat-fab {
  position: fixed; right: max(16px, calc(var(--gutter) * .6)); bottom: 22px; z-index: 30;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brown); color: #fbf1e2;
  display: grid; place-items: center;
  box-shadow: 0 14px 28px -12px rgba(58, 34, 22, .8);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.chat-fab:hover { transform: translateY(-2px); background: var(--brown-2); }
.chat-fab:active { transform: scale(.95); }
.chat-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-fab .badge { position: absolute; top: 3px; right: 3px; width: 11px; height: 11px; border-radius: 50%; background: #d9412f; border: 2px solid var(--cream); }

/* ---------- Menu ---------- */

.menu { position: fixed; inset: 0; z-index: 60; background: rgba(46, 26, 16, .35); }
.menu[hidden] { display: none; }
.menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--cream);
  padding: 90px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 30px;
  box-shadow: -30px 0 60px -30px rgba(46, 26, 16, .5);
  animation: panel-in .45s var(--ease-out);
}
@keyframes panel-in { from { transform: translateX(40px); opacity: 0; } }
.menu-close { position: absolute; top: 22px; right: var(--gutter); }
.menu-panel nav { display: flex; flex-direction: column; gap: 6px; }
.menu-panel nav a {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 44px; line-height: 1.15; color: var(--ink);
  transition: color .2s, transform .25s var(--ease-out);
}
.menu-panel nav a:hover { color: var(--caramel); transform: translateX(4px); }
.menu-panel .btn { align-self: flex-start; }

/* ---------- Tablet & phone ---------- */

@media (max-width: 1100px) {
  .nav { gap: 26px; }
  .search-pill { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; --axis: 50%; }
  .header-inner { grid-template-columns: 1fr auto; }
  .nav, .header-actions .js-search-focus, .header-actions .btn { display: none; }
  .logo { font-size: 24px; }

  .story { height: 480vh; }

  .copy, .scene-2 .copy, .scene-3 .copy {
    top: calc(var(--header-h) + 2vh);
    right: var(--gutter); width: auto;
  }
  .num { width: 28px; height: 28px; margin-bottom: 10px; font-size: 12px; }
  .headline { font-size: clamp(48px, 15vw, 96px); margin-bottom: 12px; }
  .headline-sm { font-size: clamp(38px, 11.5vw, 72px); }
  .lede { font-size: 13.5px; line-height: 1.55; max-width: 420px; margin-bottom: 16px; }
  .btn { height: 44px; }
  .circle-btn { width: 44px; height: 44px; }

  .s1-word { top: auto; bottom: 11%; right: var(--gutter); }
  .giant { font-size: clamp(56px, 19vw, 120px); }
  .script { font-size: clamp(28px, 8vw, 48px); }

  .bean-anchor, .grounds { top: 62%; }
  .bean { width: min(46vh, 86vw); }
  .bean-shadow { top: 84%; width: 34vw; margin-left: -17vw; }

  .brew { top: 52%; height: 64%; left: calc(50% - (64vh * 400 / 760) / 2); }
  @supports (height: 1svh) { .brew { left: calc(50% - (64svh * 400 / 760) / 2); } }
  .jug { top: 78%; left: 66%; height: 26%; }
  .s2-word { display: none; }

  .cup { --cup: min(44vh, 80vw); top: calc(64% - var(--cup) / 2); }
  .arc { top: 52%; }
  .float-card { width: clamp(84px, 24vw, 120px); padding: 9px 9px 8px; }
  .float-card h3 { font-size: 11px; }
  .float-card p { font-size: 9.5px; margin-bottom: 6px; }
  .card-roast  { left: 4%; top: 49%; }
  .card-origin { left: 6%; top: 72%; }
  .card-flavor { left: auto; right: 5%; top: 66%; }
  .find-cup { top: auto; bottom: 10%; height: 48px; padding: 0 28px; font-size: 13px; }
  .s3-word { display: none; }

  .slide-arrow { display: none; }
  .dots { bottom: 3.5%; }
  .scroll-hint { display: none; }

  .roasts-head { flex-direction: column; align-items: start; gap: 16px; }
  .roast-grid { grid-template-columns: 1fr; max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) and (min-width: 600px) {
  .roast-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 6px; }
}

/* Short landscape screens */
@media (max-height: 640px) and (min-width: 901px) {
  .lede { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .grounds i, .grounds b, .drip, .bloom-bubbles circle, .scroll-hint span::after, .menu-panel { animation: none !important; }
  .grounds i { opacity: .7; transform: translate(var(--x1), var(--y1)); }
  .btn, .circle-btn, .roast-card, .roast-photo img, .chat-fab { transition: none; }
}
