:root {
  --peach: #efd2bb;
  --paper: #fbf4ec;
  --card: #fffaf4;
  --espresso: #1f100b;
  --ink: #2b1610;
  --muted: #7a5a4a;
  --maroon: #7d2418;
  --maroon-dark: #5e180f;
  --line: rgba(43, 22, 16, 0.14);
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--peach);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }

/* Layering: section backgrounds < giant type (z 0) < 3D canvas (z 1) < UI (z 2) */
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
main > section { position: relative; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--maroon);
  background: var(--maroon);
  color: #fff4ea;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.btn:hover { transform: translateY(-2px); background: var(--maroon-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--espresso); border-color: var(--paper); }
.btn.light:hover { background: #fff; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--espresso);
  color: var(--paper);
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.loader span { font-family: var(--display); font-size: clamp(40px, 8vw, 88px); text-transform: uppercase; }
.loader i { width: 160px; height: 2px; background: rgba(251, 244, 236, 0.2); overflow: hidden; position: relative; }
.loader i::after { content: ''; position: absolute; inset: 0; background: var(--paper); animation: load 1.2s var(--ease-out) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
body.ready .loader { opacity: 0; visibility: hidden; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-links { display: flex; gap: 6px; }
.nav-links a, .nav-visit, .bag-btn {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 248, 240, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(43, 22, 16, 0.1);
  transition: background 0.3s;
}
.nav-links a:hover, .nav-visit:hover, .bag-btn:hover { background: rgba(255, 248, 240, 0.9); }
.nav-links a[aria-current='page'] { background: var(--maroon); color: #fff4ea; border-color: var(--maroon); }

/* Phone tab bar: the four pages, always visible at the bottom of the screen. */
.tabbar { display: none; }
.logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--espresso);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
  align-content: center;
  box-shadow: 0 8px 24px rgba(31, 16, 11, 0.25);
}
.nav-actions { display: flex; justify-content: flex-end; gap: 6px; }
.bag-btn { color: var(--ink); }
.bag-btn.bump { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.15); } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
  background: radial-gradient(110% 90% at 68% 45%, #f8e4d2 0%, #efcfb6 55%, #e3b796 100%);
  touch-action: pan-y;
}
.hero-word {
  position: absolute;
  left: 50%;
  bottom: -0.1em;
  transform: translateX(-50%);
  z-index: 0;
  font-family: var(--display);
  font-size: clamp(130px, 25vw, 440px);
  line-height: 0.8;
  color: rgba(125, 36, 24, 0.08);
  white-space: nowrap;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 560px; }
.hero-copy .eyebrow { color: var(--maroon); margin-bottom: 20px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 9.5vw, 150px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ink);
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.hero h1 .line:nth-child(2) > span { transition-delay: 0.08s; }
.hero h1 .line:nth-child(3) > span { transition-delay: 0.16s; }
body.ready .hero h1 .line > span { transform: none; }
.hero h1 .accent { color: var(--maroon); }
.lede { margin: 24px 0 32px; max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-side {
  position: relative;
  z-index: 2;
  justify-self: end;
  align-self: end;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}
.hero-side b { color: var(--maroon); margin-right: 8px; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-cue i { width: 1px; height: 36px; background: currentColor; transform-origin: top; animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Drinks carousel ---------- */
.drinks {
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--drink-bg, #d88a45);
  color: var(--drink-ink, #2b140a);
  transition: background-color 0.9s var(--ease-out), color 0.9s;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.drinks:active { cursor: grabbing; }
.drinks-top, .drinks-bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.drinks-top { top: 108px; }
.drinks-bottom { bottom: 36px; }
.drinks-hint { opacity: 0.7; }
.drink-disc {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 0;
  width: min(56vh, 74vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 36% 28%, rgba(255,255,255,0.56), transparent 26%),
    color-mix(in srgb, var(--drink-bg, #d88a45) 50%, #fff4e6);
  box-shadow:
    0 44px 90px color-mix(in srgb, var(--drink-ink, #2b140a) 18%, transparent),
    inset 0 0 0 1px rgba(255,255,255,0.3);
  transition: background-color 0.9s var(--ease-out);
}
.drink-disc::before, .drink-disc::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.drink-disc::before { inset: -13%; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.drink-disc::after { inset: 12%; border: 1px dashed color-mix(in srgb, currentColor 24%, transparent); animation: orbit 26s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.drink-disc.pulse { animation: pulse 0.9s var(--ease-out); }
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(0.9); } 100% { transform: translate(-50%, -50%) scale(1); } }
.drink-name {
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  z-index: 0;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, min(13.5vw, 190vw / var(--len, 13)), 270px);
  line-height: 0.86;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.drink-name .word { display: inline-block; overflow: hidden; padding: 0 0.04em; }
.drink-name .ch { display: inline-block; animation: rise 0.9s var(--ease-out) both; animation-delay: calc(var(--i) * 32ms); }
@keyframes rise { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.drink-count { font-size: 13px; font-weight: 600; opacity: 0.7; margin-bottom: 6px; }
.drink-desc { font-size: 14px; font-weight: 500; }
.drink-price { font-family: var(--display); font-size: 34px; margin-top: 6px; }
.drink-controls { display: flex; align-items: center; gap: 14px; }
.round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  font-size: 18px;
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.round:hover { transform: scale(1.08); }
.round.solid { background: var(--drink-ink, #2b140a); color: var(--drink-bg, #d88a45); border-color: var(--drink-ink, #2b140a); }
.dots { display: flex; gap: 6px; }
.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  transition: width 0.5s var(--ease-out), opacity 0.3s;
}
.dots button[aria-selected='true'] { width: 28px; opacity: 1; }

/* ---------- Beans shop ---------- */
.beans {
  z-index: 2;
  background: var(--paper);
  padding: 120px var(--gutter);
  border-radius: 32px 32px 0 0;
}
.beans-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.beans-head .eyebrow { color: var(--maroon); margin-bottom: 12px; }
.beans h2, .visit h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.9;
  text-transform: uppercase;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--maroon); border-color: var(--maroon); color: #fff4ea; }
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: linear-gradient(145deg, #fffdf9, var(--card));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 10px 34px rgba(43, 22, 16, 0.06);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), opacity 0.8s var(--ease-out);
}
.card:hover { box-shadow: 0 28px 60px rgba(43, 22, 16, 0.16); }
.card-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 34%), rgba(255,255,255,0.95) 0 10%, transparent 36%),
    radial-gradient(circle at 50% 46%, var(--accent-soft, hsl(var(--hue), 72%, 88%)), color-mix(in srgb, var(--accent, hsl(var(--hue), 68%, 42%)) 34%, #f8eee4));
}
.card-visual::before, .bean-tile-visual::before, .product-visual::before, .subscribe-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
  background-image: repeating-radial-gradient(circle at 76% 20%, transparent 0 20px, var(--accent, currentColor) 21px 22px, transparent 23px 46px);
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
:is(.card-visual, .bean-tile-visual, .product-visual, .subscribe-visual)[data-pattern='terrace']::before {
  background-image: repeating-radial-gradient(ellipse at 70% 15%, transparent 0 26px, var(--accent, currentColor) 27px 29px, transparent 30px 58px);
}
:is(.card-visual, .bean-tile-visual, .product-visual, .subscribe-visual)[data-pattern='night']::before {
  background-image: radial-gradient(circle at 18% 20%, var(--accent-soft) 0 2px, transparent 3px), radial-gradient(circle at 76% 14%, var(--accent) 0 4px, transparent 5px), radial-gradient(circle at 84% 35%, var(--accent-soft) 0 2px, transparent 3px);
  background-size: 68px 68px, 110px 110px, 84px 84px;
}
:is(.card-visual, .bean-tile-visual, .product-visual, .subscribe-visual)[data-pattern='botanical']::before {
  background-image: repeating-linear-gradient(62deg, transparent 0 34px, color-mix(in srgb, var(--accent) 65%, transparent) 35px 37px, transparent 38px 74px);
}
:is(.card-visual, .bean-tile-visual, .product-visual, .subscribe-visual)[data-pattern='mosaic']::before {
  background-image: linear-gradient(45deg, transparent 46%, var(--accent) 47% 49%, transparent 50%), linear-gradient(-45deg, transparent 46%, var(--accent) 47% 49%, transparent 50%);
  background-size: 74px 74px;
}
:is(.card-visual, .bean-tile-visual, .product-visual, .subscribe-visual)[data-pattern='sunburst']::before {
  background-image: repeating-conic-gradient(from 12deg at 78% 18%, var(--accent) 0 2deg, transparent 2deg 14deg);
}
.card-visual::after, .bean-tile-visual::after, .product-visual::after, .subscribe-visual::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 18%;
  right: 18%;
  bottom: 7%;
  height: 10%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-deep, var(--ink)) 32%, transparent);
  filter: blur(15px);
  transform: perspective(180px) rotateX(62deg);
}
.bag-stage-meta {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-deep, var(--ink));
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.bag-stage-meta b { font-weight: 700; }
.product-visual .bag-stage-meta, .subscribe-visual .bag-stage-meta { top: 22px; bottom: auto; color: var(--accent-deep, var(--paper)); }
.subscribe-visual .bag-stage-meta { color: var(--paper); opacity: 0.8; }
.bag-slot { position: absolute; inset: 0; z-index: 2; }
.bag-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.04) contrast(1.025) drop-shadow(0 24px 18px rgba(43, 22, 16, 0.3)) drop-shadow(0 5px 5px rgba(43, 22, 16, 0.16));
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
  animation: bagIn 0.8s var(--ease-out) both;
}
.bag-img.angle { opacity: 0; }
.card:hover .bag-img { transform: translateY(-6px) scale(1.03); }
.card:hover .bag-img.front { opacity: 0; }
.card:hover .bag-img.angle { opacity: 1; }
@keyframes bagIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.bag-skeleton {
  position: absolute;
  left: 30%;
  right: 30%;
  top: 16%;
  bottom: 14%;
  border-radius: 10px 10px 16px 16px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.15) 70%) 0 0 / 300% 100%, hsl(var(--hue), 30%, 76%);
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -300% 0, 0 0; } }
.badge, .roast-chip {
  position: absolute;
  top: 12px;
  z-index: 4;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.roast-chip { left: 12px; background: rgba(255, 250, 244, 0.8); backdrop-filter: blur(8px); box-shadow: 0 5px 14px rgba(43,22,16,0.08); }
.badge { right: 12px; background: #d9a441; color: #2a170d; text-transform: uppercase; letter-spacing: 0.08em; }
.card-body { padding: 16px 6px 6px; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { font-size: 17px; font-weight: 600; }
.price { font-family: var(--display); font-size: 22px; color: var(--maroon); }
.origin { font-size: 12px; color: var(--muted); margin-top: 2px; }
.notes { font-size: 13px; margin: 10px 0 16px; line-height: 1.5; }
.buy { display: flex; gap: 8px; }
.buy select {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  font: 500 13px var(--body);
  color: var(--ink);
}
.add {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.add:hover { background: var(--ink); color: var(--paper); }

/* ---------- Visit ---------- */
.visit {
  z-index: 2;
  background: var(--espresso);
  color: var(--paper);
  padding: 150px var(--gutter) 110px;
  overflow: hidden;
}
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: center; }
.visit .eyebrow { color: #e9a06b; margin-bottom: 12px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(127, 90, 70, 0.14);
  font-size: 13px;
  font-weight: 600;
}
.status::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #d0644a; }
.status.is-open::before { background: #5fb463; box-shadow: 0 0 0 4px rgba(95, 180, 99, 0.2); }
.visit .status { margin-top: 24px; background: rgba(251, 244, 236, 0.08); }
.address { margin: 20px 0 28px; font-size: 18px; line-height: 1.6; opacity: 0.9; }
.address-notes { font-size: 13px; opacity: 0.65; }
.btn.ghost-light { background: transparent; color: var(--paper); border-color: rgba(251, 244, 236, 0.4); }
.btn.ghost-light:hover { border-color: var(--paper); background: rgba(251, 244, 236, 0.08); }
.map { margin: 0; border-radius: 24px; overflow: hidden; background: #2a1711; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.map svg { display: block; width: 100%; height: auto; }
.map figcaption { padding: 14px 18px; font-size: 13px; opacity: 0.75; border-top: 1px solid rgba(251, 244, 236, 0.08); }
.map .pulse { transform-origin: center; transform-box: fill-box; animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(0.4); opacity: 0.6; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Site footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--espresso);
  color: var(--paper);
  padding: 96px var(--gutter) 0;
  border-top: 1px solid rgba(251, 244, 236, 0.08);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid > div { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.footer-grid a { text-decoration: none; opacity: 0.8; width: fit-content; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid p { opacity: 0.8; line-height: 1.6; }
.footer-grid .status { background: rgba(251, 244, 236, 0.08); opacity: 1; width: fit-content; }
.footer-brand { font-family: var(--display); font-size: 34px; text-transform: uppercase; opacity: 1 !important; }
.footer-blurb { max-width: 280px; }
.footer-h { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #e9a06b; opacity: 1 !important; }
.wordmark {
  margin-top: 72px;
  font-family: var(--display);
  font-size: 17.5vw;
  line-height: 0.78;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: #2c1811;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(251, 244, 236, 0.12);
  font-size: 12px;
  opacity: 0.6;
}

/* ---------- Drink ordering ---------- */
.drink-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px; }
.drink-buy .drink-price { margin: 0 4px 0 0; }
.sizes { display: inline-flex; padding: 3px; border-radius: 999px; border: 1.5px solid currentColor; }
.sizes button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.sizes button[aria-checked='true'] { background: var(--drink-ink, #2b140a); color: var(--drink-bg, #d88a45); }
.add-drink {
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--drink-ink, #2b140a);
  color: var(--drink-bg, #d88a45);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.4s var(--ease-out), background 0.9s var(--ease-out), color 0.9s;
}
.add-drink:hover { transform: translateY(-2px); }

/* ---------- Story ---------- */
.story {
  z-index: 2;
  background: var(--espresso);
  color: var(--paper);
  padding: 140px var(--gutter) 120px;
}
.story > .eyebrow { color: #e9a06b; margin-bottom: 28px; }
.story-text {
  max-width: 1100px;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.08;
  text-transform: uppercase;
}
.story-text span { opacity: 0.18; transition: opacity 0.4s; }
.story-text span.lit { opacity: 1; }
.stats {
  list-style: none;
  margin: 96px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  border-top: 1px solid rgba(251, 244, 236, 0.15);
  padding-top: 40px;
}
.stats strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 7vw, 96px); line-height: 1; color: #e9a06b; }
.stats span { display: block; margin-top: 8px; font-size: 14px; opacity: 0.75; }
.process {
  list-style: none;
  margin: 96px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.process li {
  position: relative;
  padding: 32px;
  border-radius: 24px;
  background: rgba(251, 244, 236, 0.05);
  border: 1px solid rgba(251, 244, 236, 0.1);
}
.process svg { width: 44px; height: 44px; fill: none; stroke: #e9a06b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-num { position: absolute; top: 28px; right: 32px; font-family: var(--display); font-size: 28px; opacity: 0.25; }
.process h3 { margin: 24px 0 8px; font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; }
.process p { font-size: 15px; line-height: 1.6; opacity: 0.75; }

/* ---------- Bag drawer ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 10, 6, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(20, 10, 6, 0.2);
  transform: translateX(102%);
  visibility: hidden; /* keeps its shadow off the page edge while closed */
  transition: transform 0.55s var(--ease-out), visibility 0s 0.55s;
}
.drawer.open { transform: none; visibility: visible; transition: transform 0.55s var(--ease-out); }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; font-size: 22px; line-height: 1; }
.icon-btn:hover { border-color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot:empty { display: none; }
.lines { list-style: none; margin: 0; padding: 0; }
.bag-line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.thumb { width: 72px; height: 80px; border-radius: 12px; background: #f1e4d6; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb-cup { width: 26px; height: 40px; border-radius: 3px 3px 8px 8px; background: linear-gradient(to top, #f6eee4 30%, var(--c) 75%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%); }
.bag-line-main { display: grid; gap: 4px; align-content: start; }
.bag-line-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.bag-line-opt { font-size: 13px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; margin-top: 6px; }
.stepper button { width: 32px; height: 30px; border: 0; background: transparent; font-size: 16px; }
.stepper span { min-width: 20px; text-align: center; font-size: 14px; font-weight: 600; }
.link { border: 0; background: none; padding: 4px 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.link.center { justify-self: center; }
.sum { display: flex; justify-content: space-between; font-size: 16px; }
.sum strong { font-family: var(--display); font-weight: 400; font-size: 24px; }
.sum.small { font-size: 14px; color: var(--muted); }
.btn.block { justify-content: center; width: 100%; }
.fine { font-size: 12px; color: var(--muted); text-align: center; }
.empty { padding: 56px 0; text-align: center; display: grid; gap: 10px; justify-items: center; color: var(--muted); }
.empty-title { font-family: var(--display); font-size: 30px; text-transform: uppercase; color: var(--ink); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.checkout { display: grid; gap: 18px; padding: 16px 0; }
.checkout label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.checkout .opt { font-weight: 400; color: var(--muted); }
.checkout input, .checkout select, .checkout textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  font: 400 15px var(--body);
  color: var(--ink);
  resize: vertical;
}
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: none; border-color: var(--maroon); }
.checkout input[aria-invalid='true'] { border-color: #c0392b; }
.summary { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.summary li { display: flex; justify-content: space-between; gap: 12px; }
.summary em { font-style: normal; color: var(--muted); }
.done { padding: 48px 0; text-align: center; display: grid; gap: 10px; justify-items: center; }
.done .eyebrow { color: var(--maroon); }
.check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--maroon); color: #fff4ea; font-size: 32px; animation: pop 0.6s var(--ease-out); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.done-title { font-family: var(--display); font-size: 40px; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Shared page pieces ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: 0.5s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

.page-head {
  position: relative;
  z-index: 2;
  padding: 160px var(--gutter) 64px;
  background: radial-gradient(90% 120% at 80% 0%, #f8e4d2 0%, var(--peach) 60%);
}
.page-head .eyebrow { color: var(--maroon); margin-bottom: 18px; }
.page-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.88;
  text-transform: uppercase;
}
.page-title span { display: inline-block; }
.page-title .accent { color: var(--maroon); }
.page-title.light .accent { color: #e9a06b; }
.page-lede { max-width: 560px; margin-top: 24px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.feature-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.feature-head .eyebrow { color: var(--maroon); margin-bottom: 12px; }
.feature-head h2, .feature h2, .menu-intro h2, .split h2, .amenities h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.92;
  text-transform: uppercase;
}
.feature-note { max-width: 380px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.split-note { margin-top: 20px; max-width: 420px; font-size: 16px; line-height: 1.6; opacity: 0.75; }

/* ---------- Home ---------- */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--maroon);
  color: #fbe9d8;
  padding: 18px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  text-transform: uppercase;
  padding: 0 28px;
  white-space: nowrap;
}
.marquee span::after { content: '✦'; margin-left: 56px; font-family: var(--body); font-size: 0.6em; vertical-align: middle; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

.feature { position: relative; z-index: 2; padding: 120px var(--gutter); background: var(--paper); }
.feature-beans { background: var(--peach); }
.drink-cards, .bean-feature { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.drink-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: 560px;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.28), transparent 36%),
    radial-gradient(120% 82% at 50% 22%, color-mix(in srgb, var(--bg) 76%, #fff) 0%, var(--bg) 64%);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 18px 44px color-mix(in srgb, var(--bg) 30%, transparent);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.drink-card::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background: repeating-linear-gradient(105deg, transparent 0 62px, rgba(255,255,255,0.08) 63px 64px, transparent 65px 126px);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.drink-card:hover { transform: translateY(-8px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 28px 58px color-mix(in srgb, var(--bg) 42%, transparent); }
/* Image area: a soft disc with the pre-rendered 3D drink (img/drinks/) on top */
.drink-visual { position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 390px; }
.drink-visual::before {
  content: '';
  position: absolute;
  top: 58px;
  left: 50%;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 50%, #fff4e6);
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.38), 0 34px 60px color-mix(in srgb, var(--ink) 18%, transparent);
}
.drink-visual::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 21%;
  right: 21%;
  bottom: 8px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 36%, transparent);
  filter: blur(17px);
  transform: perspective(180px) rotateX(64deg);
}
.product-kicker {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.product-kicker b { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; }
.drink-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  filter: saturate(1.08) contrast(1.03) drop-shadow(0 20px 16px color-mix(in srgb, var(--ink) 24%, transparent));
  transition: opacity 0.5s var(--ease-out), transform 0.8s var(--ease-out);
}
.drink-img.angle { opacity: 0; }
.drink-card:hover .drink-img { transform: translateY(-6px) scale(1.04); }
.drink-card:hover .drink-img.front { opacity: 0; }
.drink-card:hover .drink-img.angle { opacity: 1; }
.drink-card-name, .drink-card-desc, .drink-card-foot { position: relative; z-index: 3; }
.drink-card-name { font-family: var(--display); font-size: clamp(34px, 3.4vw, 52px); line-height: 0.95; text-transform: uppercase; }
.drink-card-desc { font-size: 14px; opacity: 0.8; }
.drink-card-price { font-family: var(--display); font-size: 26px; }
.drink-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 5px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.card-link { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.card-link b { display: inline-block; font-size: 15px; transition: transform 0.35s var(--ease-out); }
.drink-card:hover .card-link b { transform: translate(3px, -3px); }
.bean-tile { display: grid; gap: 10px; text-decoration: none; }
.bean-tile-visual {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.1;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,0.9), transparent 34%),
    linear-gradient(145deg, var(--accent-soft, hsl(var(--hue), 72%, 88%)), color-mix(in srgb, var(--accent, hsl(var(--hue), 68%, 42%)) 36%, #f2dfcf));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.56), 0 16px 36px rgba(43,22,16,0.08);
}
.bean-tile:hover .bag-img { transform: translateY(-6px) scale(1.03); }
.bean-tile:hover .bag-img.front { opacity: 0; }
.bean-tile:hover .bag-img.angle { opacity: 1; }
.bean-tile-row { display: flex; justify-content: space-between; font-size: 18px; }
.bean-tile-row span { font-family: var(--display); color: var(--maroon); font-size: 22px; }
.bean-tile-notes { font-size: 14px; color: var(--muted); }

.visit-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  padding: 120px var(--gutter);
  background: var(--maroon);
  color: #fbe9d8;
}
.visit-strip h2 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 96px); line-height: 0.92; text-transform: uppercase; }
.visit-strip .eyebrow { margin-bottom: 14px; opacity: 0.8; }
.visit-strip-info { display: grid; gap: 14px; justify-items: start; font-size: 17px; line-height: 1.5; }
.visit-strip .status { background: rgba(255, 255, 255, 0.12); }

/* ---------- A day at Ember & Oak ---------- */
.day {
  position: relative;
  z-index: 2;
  padding: 120px var(--gutter);
  background: radial-gradient(90% 120% at 15% 0%, #f8e4d2 0%, var(--peach) 60%);
}
.day .eyebrow { color: var(--maroon); margin-bottom: 12px; }
.day h2 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 96px); line-height: 0.92; text-transform: uppercase; }
.day-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.7);
  font-size: 14px;
  font-weight: 600;
}
.day-now::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #d0644a; }
.day-now.is-open::before { background: #5fb463; box-shadow: 0 0 0 4px rgba(95, 180, 99, 0.2); }
.timeline {
  --progress: 0;
  --gap: 24px;
  position: relative;
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}
/* The track runs from the first dot to the last; the filled part shows how far into the day we are. */
.timeline::before, .timeline::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 10px;
  height: 2px;
  border-radius: 2px;
}
.timeline::before { width: calc(100% - (100% - 5 * var(--gap)) / 6); background: rgba(125, 36, 24, 0.18); }
.timeline::after { width: calc(var(--progress) * (100% - (100% - 5 * var(--gap)) / 6)); background: var(--maroon); transition: width 1.2s var(--ease-out); }
.timeline li { position: relative; padding-top: 40px; }
.tl-dot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--maroon);
  background: var(--peach);
  transition: background 0.4s;
}
.timeline li.past .tl-dot, .timeline li.now .tl-dot { background: var(--maroon); }
.timeline li.now .tl-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--maroon);
  animation: ping 2s var(--ease-out) infinite;
}
.tl-time { display: block; font-family: var(--display); font-size: clamp(24px, 2.2vw, 34px); color: var(--maroon); }
.timeline h3 { margin: 6px 0 8px; font-size: 18px; font-weight: 600; }
.timeline p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.timeline li.now h3::after { content: 'Now'; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--maroon); color: #fff4ea; font-size: 11px; vertical-align: middle; }
.timeline li.past { opacity: 0.6; }

/* ---------- Menu page ---------- */
.menu-page { position: relative; z-index: 2; background: var(--paper); padding: 120px var(--gutter); }
.menu-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 56px; }
.menu-intro .eyebrow { color: var(--maroon); margin-bottom: 12px; }
.menu-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-tabs a {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.menu-tabs a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.menu-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.menu-section-head h3 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 0.95; text-transform: uppercase; }
.menu-section-head p { margin-top: 12px; max-width: 300px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.menu-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-item { display: flex; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.menu-item-main { flex: 1; min-width: 0; }
.menu-thumb {
  flex: none;
  width: 64px;
  height: 76px;
  margin: -6px 0;
  object-fit: contain;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 45%, #fff6ec, #f1e2d2);
}
.menu-row { display: flex; align-items: baseline; gap: 10px; }
.menu-row h4 { margin: 0; font-size: 18px; font-weight: 600; }
.leader { flex: 1; border-bottom: 2px dotted rgba(43, 22, 16, 0.2); transform: translateY(-4px); }
.menu-price { font-family: var(--display); font-size: 22px; color: var(--maroon); }
.menu-item p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.tag { margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: rgba(95, 140, 60, 0.14); color: #3f6a24; font-size: 10px; font-weight: 600; text-decoration: none; }
.menu-item-actions { display: flex; align-items: center; gap: 8px; }
.plus {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  font-size: 20px;
  line-height: 1;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.plus:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }
.view-btn {
  padding: 8px 14px 8px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  position: relative;
}
.view-btn::before { content: ''; position: absolute; left: 11px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--c); transform: translateY(-50%); }
.view-btn:hover { border-color: var(--ink); }
.extras { margin-top: 32px; padding: 20px 24px; border-radius: 16px; background: #f3e6d8; font-size: 14px; text-align: center; }

/* ---------- Shop page ---------- */
.perks { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.perks li { padding: 10px 16px; border-radius: 999px; background: rgba(255, 250, 244, 0.7); font-size: 13px; }
.page-shop .beans { border-radius: 0; padding-top: 48px; }
.shop-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.sort select { padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font: 500 13px var(--body); color: var(--ink); }
.result-count { margin: 20px 0; font-size: 13px; color: var(--muted); }
button.card-visual { width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.card-title { padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.card-title:hover { text-decoration: underline; text-underline-offset: 3px; }

.product {
  width: min(980px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
.product::backdrop { background: rgba(20, 10, 6, 0.55); backdrop-filter: blur(4px); }
.product[open] { animation: dialogIn 0.5s var(--ease-out); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.product-close { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--paper); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; }
.product-visual {
  position: relative;
  min-height: 520px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,0.96), transparent 34%),
    linear-gradient(145deg, var(--accent-soft, hsl(var(--hue), 72%, 88%)), color-mix(in srgb, var(--accent, hsl(var(--hue), 68%, 42%)) 38%, #f2dfcf));
}
.product-visual .bag-slot { inset: 6% 6% 14%; }
.product .bag-img.angle { opacity: 0; }
.product[data-view='angle'] .bag-img.front { opacity: 0; }
.product[data-view='angle'] .bag-img.angle { opacity: 1; }
.product-views { position: absolute; z-index: 4; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 250, 244, 0.82); backdrop-filter: blur(8px); box-shadow: 0 8px 22px rgba(43,22,16,0.12); }
.product-views button { padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 600; }
.product-views button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.product-info { padding: 48px 40px 40px; display: grid; gap: 14px; align-content: start; }
.product-info .eyebrow { color: var(--maroon); }
.product-info h2 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5vw, 68px); line-height: 0.92; text-transform: uppercase; }
.product-notes { font-size: 18px; font-style: italic; }
.product-blurb { font-size: 15px; line-height: 1.6; color: var(--muted); }
.specs { margin: 6px 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.roast-meter { display: inline-flex; gap: 4px; }
.roast-meter i { width: 9px; height: 9px; border-radius: 50%; background: rgba(43, 22, 16, 0.15); }
.roast-meter i.on { background: var(--maroon); }
.product-form { display: grid; gap: 14px; margin-top: 6px; }
.seg { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; }
.seg legend { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); text-align: center; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.seg input:checked + span { border-color: var(--maroon); background: rgba(125, 36, 24, 0.06); }
.seg input:focus-visible + span { outline: 2px solid var(--maroon); outline-offset: 2px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.field select { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 400 15px var(--body); color: var(--ink); }
.product-buy { display: flex; gap: 12px; align-items: center; }
.product-buy .stepper { margin-top: 0; }
.product-buy .stepper button { height: 44px; }
.product-buy .btn { flex: 1; justify-content: center; }

.subscribe {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--espresso);
  color: var(--paper);
}
.subscribe-visual {
  position: relative;
  min-height: 560px;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent, hsl(var(--hue, 20), 50%, 40%)) 72%, #fff) 0%, var(--accent-deep, #1a0d08) 72%);
  transition: background 0.6s;
}
.subscribe-visual .bag-slot { inset: 10%; }
.subscribe-copy { padding: 96px var(--gutter) 96px 56px; display: grid; gap: 16px; align-content: center; }
.subscribe-copy .eyebrow { color: #e9a06b; }
.subscribe-copy h2 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5.5vw, 88px); line-height: 0.92; text-transform: uppercase; }
.subscribe-copy > p { max-width: 460px; line-height: 1.6; opacity: 0.8; }
.sub-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; max-width: 520px; }
.sub-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.sub-form label:first-child { grid-column: 1 / -1; }
.sub-form select { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(251, 244, 236, 0.2); background: rgba(251, 244, 236, 0.06); color: var(--paper); font: 400 15px var(--body); }
.sub-form option { color: var(--ink); }
.sub-price { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.sub-price s { opacity: 0.5; }
.sub-price strong { font-family: var(--display); font-weight: 400; font-size: 36px; color: #e9a06b; }
.sub-price span { font-size: 13px; opacity: 0.7; }
.sub-form .btn { grid-column: 1 / -1; justify-content: center; }

.brew-guide { position: relative; z-index: 2; background: var(--paper); padding: 120px var(--gutter); }
.guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.guides li { padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.guides h3 { font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; }
.guides dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.guides dl div { padding: 10px; border-radius: 12px; background: #f3e6d8; text-align: center; }
.guides dt { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.guides dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; }
.grind-scale { display: grid; gap: 8px; font-size: 12px; font-weight: 600; }
.scale { position: relative; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #d9b996, #6b3d22); }
.scale i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--maroon); transform: translate(-50%, -50%); }
.scale-ends { display: flex; justify-content: space-between; font-weight: 400; color: var(--muted); }
.scale-ends em { font-style: normal; }
.guides p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- Visit page ---------- */
.hours-week, .amenities, .getting-here, .faq, .contact { position: relative; z-index: 2; padding: 110px var(--gutter); }
.hours-week { background: var(--peach); }
.hours-week .eyebrow, .amenities .eyebrow, .getting-here .eyebrow, .faq .eyebrow, .contact .eyebrow { color: var(--maroon); margin-bottom: 12px; }
.week { margin: 0; display: grid; }
.week div { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
.week dt span { margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--maroon); color: #fff4ea; font-size: 11px; font-weight: 600; vertical-align: middle; }
.week dd { margin: 0; font-family: var(--display); font-size: 24px; }
.week .today { padding-left: 16px; padding-right: 16px; border-radius: 14px; background: rgba(255, 250, 244, 0.7); border-bottom-color: transparent; }
.amenities { background: var(--paper); }
.amenity-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.amenity-grid li { padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.amenity-grid svg { width: 40px; height: 40px; fill: none; stroke: var(--maroon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.amenity-grid h3 { margin: 16px 0 6px; font-size: 18px; }
.amenity-grid p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.getting-here { background: var(--maroon); color: #fbe9d8; }
.getting-here .eyebrow { color: #fbe9d8; opacity: 0.8; }
.here-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.here-grid li { position: relative; padding-top: 28px; border-top: 1px solid rgba(251, 233, 216, 0.3); }
.here-grid h3 { font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; margin-bottom: 10px; }
.here-grid p { line-height: 1.6; opacity: 0.85; }
.here-grid .step-num { position: absolute; top: 28px; right: 0; font-family: var(--display); font-size: 28px; opacity: 0.35; }
.faq { background: var(--paper); }
.faq-list { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); font-weight: 400; transition: transform 0.4s var(--ease-out), background 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.faq details p { padding: 0 48px 24px 0; line-height: 1.7; color: var(--muted); }
.contact { background: var(--peach); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  font: 400 15px var(--body);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--maroon); }
.contact-form [aria-invalid='true'] { border-color: #c0392b; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form-done { padding: 40px 0; display: grid; gap: 10px; justify-items: center; text-align: center; }

/* ---------- Toast, reveal, misc ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 140%);
  transition: transform 0.5s var(--ease-out), opacity 0.3s, visibility 0.5s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
.card[data-reveal].in { transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), opacity 0.8s var(--ease-out); }
.noscript { position: fixed; bottom: 16px; left: 16px; z-index: 60; padding: 12px 16px; background: var(--espresso); color: var(--paper); border-radius: 12px; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .nav { grid-template-columns: auto 1fr; gap: 10px; }
  .nav > .nav-links, .nav-actions .nav-links { display: none; }
  :root { --tabbar-h: calc(64px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--tabbar-h); }
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: var(--tabbar-h);
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(251, 244, 236, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(43, 22, 16, 0.08);
  }
  .tabbar a {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current='page'] { color: var(--maroon); }
  .tabbar a[aria-current='page'] svg { fill: rgba(125, 36, 24, 0.14); }
  .tabbar a[aria-current='page']::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--maroon); }
  .hero { min-height: calc(100svh - var(--tabbar-h)); }
  .drinks { height: calc(100svh - var(--tabbar-h)); min-height: 560px; }
  .scroll-cue { display: none; }
  .toast { bottom: calc(var(--tabbar-h) + 12px); }
  .logo { width: 52px; height: 52px; font-size: 12px; border-radius: 12px; }
  .nav-visit { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 104px; padding-bottom: max(40vh, 220px); }
  .hero-side { display: none; }
  .lede { margin: 18px 0 24px; }
  .drinks-top { top: 92px; }
  .drinks-hint { display: none; }
  .drinks-bottom { flex-direction: column; align-items: stretch; bottom: 24px; }
  .drink-controls { justify-content: space-between; }
  .drink-name { top: 28%; padding: 0 12px; white-space: normal; font-size: clamp(48px, 16vw, 110px); }
  .drink-disc { top: 54%; width: 72vw; }
  .beans { padding: 80px var(--gutter); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card, .buy select { min-width: 0; }
  .card { padding: 10px; border-radius: 18px; }
  .notes { display: none; }
  .buy { flex-direction: column; }
  .roast-chip { display: none; }
  .visit { padding-top: 80px; }
  .story { padding: 96px var(--gutter) 80px; }
  .stats, .process { margin-top: 56px; }
  .drink-price { font-size: 28px; }
  .drink-cards, .bean-feature { grid-template-columns: 1fr; }
  .day { padding: 80px var(--gutter); }
  .timeline { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .timeline::before, .timeline::after { top: 10px; left: 9px; width: 2px; }
  .timeline::before { height: var(--track, calc(100% - 20px)); }
  .timeline::after { height: calc(var(--progress) * var(--track, calc(100% - 20px))); transition: height 1.2s var(--ease-out); }
  .timeline li { padding: 0 0 0 40px; }
  .tl-dot { top: 4px; }
  .bean-feature { grid-template-columns: 1fr 1fr; }
  .bean-feature li:nth-child(3) { display: none; }
  .drink-card { min-height: 540px; padding: 24px; }
  .drink-visual { height: 365px; }
  .feature, .menu-page, .brew-guide { padding: 80px var(--gutter); }
  .visit-strip, .split, .subscribe, .product-grid { grid-template-columns: 1fr; }
  .visit-strip { padding: 80px var(--gutter); gap: 28px; }
  .split { gap: 32px; }
  .menu-section { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .menu-item { gap: 12px; }
  .view-btn { display: none; }
  .page-head { padding-top: 120px; }
  .subscribe-visual { min-height: 340px; }
  .subscribe-copy { padding: 56px var(--gutter); }
  .sub-form { grid-template-columns: 1fr; }
  .product-visual { min-height: 340px; }
  .product-info { padding: 28px 22px; }
  .contact-form { grid-template-columns: 1fr; padding: 20px; }
  .hours-week, .amenities, .getting-here, .faq, .contact { padding: 80px var(--gutter); }
  .visit { padding: 120px var(--gutter) 80px; }
  .shop-toolbar { align-items: stretch; flex-direction: column; }
}

/* Short phones (and 9:16 screen recordings): tighten the hero so the cup has room */
@media (max-width: 760px) and (max-height: 720px) {
  .hero { padding-top: 88px; }
  .hero-copy .eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: 50px; }
  .lede { margin: 12px 0 16px; font-size: 14px; line-height: 1.5; }
  .hero .btn { padding: 11px 20px; }
  .drinks-top { top: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
