/* ============================================================
   Three Pence Roasters — Design System
   Warm, premium Australian specialty coffee
   ============================================================ */

:root {
  /* Brand-derived palette: warm neutrals + charcoal + terracotta/teal accents */
  --cream:        #faf6f0;
  --cream-2:      #f3ebe0;
  --cream-3:      #ece1d3;
  --paper:        #ffffff;
  --ink:          #2a2521;   /* charcoal text */
  --ink-soft:     #4b443d;
  --muted:        #837a6f;
  --line:         #e7dccd;
  --line-soft:    #efe6da;

  --terra:        #b5603a;   /* primary accent — roasted terracotta */
  --terra-dark:   #9c4f2d;
  --teal:         #1c93c4;   /* signature Three Pence blue */
  --teal-dark:    #157aa6;
  --blue:         #1c93c4;
  --blue-dark:    #157aa6;
  --taupe:        #9a8878;
  --gold:         #c08a3e;

  --espresso:     #2c211b;   /* dark sections */
  --espresso-2:   #38291f;

  --radius:       14px;
  --radius-sm:    9px;
  --radius-lg:    22px;
  --shadow-sm:    0 2px 10px rgba(50,35,25,.06);
  --shadow:       0 14px 40px rgba(50,35,25,.10);
  --shadow-lg:    0 30px 70px rgba(50,35,25,.16);
  --ease:         cubic-bezier(.22,.61,.36,1);
  --maxw:         1340px;

  --serif: "Bricolage Grotesque", "Fraunces", Georgia, serif;  /* signature display */
  --sans:  "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
  --mono:  "DM Mono", "Andale Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Keep <html> overflow visible so position:sticky (the blend stack animation)
   works on iOS Safari. Horizontal overflow is contained on <body> below and by
   parking the off-canvas cart drawer on-screen when closed (see .cart-drawer). */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; color: var(--ink); }
h1, h2 { font-weight: 700; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }

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

/* ---------------- Layout ---------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; color: var(--terra);
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 5vw, 64px); margin: 16px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section-flush { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 52px; }

/* ---------------- Buttons ---------------- */
.btn {
  font-family: var(--mono); font-weight: 500; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border: none; border-radius: 100px;
  padding: 15px 30px; display: inline-flex; align-items: center; gap: 9px;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 8px 20px rgba(181,96,58,.28); }
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(181,96,58,.34); }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { background: #1f1712; transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(63,125,119,.26); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--espresso); }
.btn-text { background: none; color: var(--muted); padding: 10px; }
.btn-text:hover { color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-lg { padding: 17px 36px; font-size: 16px; }

/* ---------------- Announce + Header ---------------- */
.announce {
  background: var(--espresso); color: var(--cream-2); font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .08em; text-align: center; text-transform: uppercase;
  padding: 10px 16px; overflow: hidden;
}
.announce span { display: inline; }
.announce .announce-sep { opacity: .5; margin: 0 3px; }
/* Header is fixed + overlays content so the screen opens up. */
#site-header-mount { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
body:not(.home) { padding-top: 116px; }
.site-header {
  position: relative; z-index: 60;
  background: rgba(250,246,240,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s, padding .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(50,35,25,.07); border-color: var(--line-soft); }
/* On scroll: drop the bar entirely; float frosted controls. */
.scrolled-page .announce { display: none; }
.scrolled-page .site-header { background: transparent; backdrop-filter: none; box-shadow: none; border-color: transparent; }
.scrolled-page .site-header .brand { opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrolled-page .menu-btn,
.scrolled-page .header-actions .icon-btn {
  background: rgba(250,246,240,.82); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 28px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
}
.brand { justify-self: center; transition: opacity .3s; }
.brand img { height: 58px; width: auto; }
.menu-btn {
  grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 11px;
  background: transparent; border: none; cursor: pointer; padding: 9px 14px; border-radius: 100px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); transition: background .2s, box-shadow .2s;
}
.menu-btn .bars { display: flex; flex-direction: column; gap: 4px; width: 19px; }
.menu-btn .bars span { height: 1.7px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn .bars span:nth-child(1) { width: 19px; }
.menu-btn .bars span:nth-child(2) { width: 13px; }
.menu-btn:hover .bars span:nth-child(2) { width: 19px; }
.menu-btn.active .bars span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-btn.active .bars span:nth-child(2) { width: 19px; transform: translateY(-3px) rotate(-45deg); }
.menu-label { line-height: 1; }
.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; background: transparent;
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; transition: background .2s;
}
.icon-btn:hover { background: var(--cream-2); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--terra); color: #fff; border-radius: 100px; font-size: 11px; font-weight: 700;
  display: none; align-items: center; justify-content: center; font-family: var(--sans);
}
.cart-count.show { display: flex; }
/* Slide-out menu panel */
.menu-overlay { position: fixed; inset: 0; background: rgba(30,20,14,.42); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 70; }
.menu-overlay.show { opacity: 1; visibility: visible; }
.menu-panel {
  position: fixed; top: 0; left: 0; height: 100%; width: 440px; max-width: 92vw; z-index: 75;
  background: var(--espresso); color: var(--cream); display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .42s var(--ease); padding: 26px 34px 34px;
  box-shadow: 20px 0 60px rgba(30,20,14,.25);
}
.menu-panel.open { transform: translateX(0); }
.menu-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.menu-panel-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.menu-panel-head .icon-btn { color: var(--cream); }
.menu-panel-head .icon-btn:hover { background: rgba(255,255,255,.08); }
.menu-links { display: flex; flex-direction: column; flex: 1; justify-content: center; gap: 2px; }
.menu-links a {
  display: flex; align-items: baseline; gap: 16px; padding: 12px 0; color: var(--cream);
  font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.05;
  letter-spacing: -0.02em; transition: color .2s, padding-left .25s var(--ease);
}
.menu-links a:hover, .menu-links a.active { color: var(--gold); padding-left: 10px; }
.menu-num { font-family: var(--mono); font-size: 12px; font-weight: 500; color: rgba(245,240,232,.4); letter-spacing: .1em; }
.menu-links a:hover .menu-num, .menu-links a.active .menu-num { color: var(--terra); }
.menu-foot { display: flex; flex-direction: column; gap: 7px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.menu-foot a { color: rgba(245,240,232,.7); }
.menu-foot a:hover { color: var(--gold); }
.menu-foot span { color: rgba(245,240,232,.45); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fbf7f1 0%, #f1e7d8 100%);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 72px 28px 80px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(63,125,119,.1);
  color: var(--teal-dark); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 100px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(40px, 6vw, 76px); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--terra); }
.hero-sub { font-size: 18.5px; color: var(--ink-soft); margin-bottom: 32px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-soft); }
.hero-meta-item svg { width: 19px; height: 19px; color: var(--terra); flex-shrink: 0; }
.hero-visual { position: relative; aspect-ratio: 1/1.04; }
.hero-visual .hero-img {
  position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--cream-3);
}
.hero-visual .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; background: var(--paper); border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; z-index: 2;
}
.hero-float-1 { bottom: 26px; left: -22px; }
.hero-float-2 { top: 26px; right: -18px; }
.hero-float .ring {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--cream-2); color: var(--terra); font-weight: 700; font-family: var(--serif);
}
.hero-float small { display: block; color: var(--muted); font-size: 11.5px; }
.hero-float strong { font-size: 14px; }
.hero-blob { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(181,96,58,.16), transparent 70%); top: -60px; right: -40px; z-index: 0; }

/* ---------------- Homepage: transparent header over video hero ---------------- */
body.home .announce { background: transparent; color: rgba(255,255,255,.85); position: relative; z-index: 1; }
body.home .site-header { background: transparent; backdrop-filter: none; border-color: transparent; }
body.home .site-header .brand img { filter: brightness(0) invert(1); }
body.home .menu-btn, body.home .header-actions .icon-btn { color: #fff; }

/* ---------------- Video hero (Onyx-style) ---------------- */
.vhero { position: relative; height: 100vh; min-height: 620px; max-height: 940px; overflow: hidden; background: var(--espresso); }
.vhero video, .vhero .vhero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.vhero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,10,.34) 0%, rgba(20,14,10,.12) 40%, rgba(20,14,10,.66) 100%);
}
.vhero-inner {
  position: absolute; inset: 0; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 64px;
}
.vhero-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.82); margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.vhero-eyebrow::before { content: ""; width: 30px; height: 1px; background: rgba(255,255,255,.6); }
.vhero h1 {
  color: #fff; font-size: clamp(42px, 7vw, 104px); font-weight: 700; line-height: .96;
  letter-spacing: -0.03em; max-width: 16ch; margin-bottom: 22px;
}
.vhero h1 em { font-style: italic; font-weight: 500; }
.vhero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.vhero-sub { color: rgba(255,255,255,.82); font-size: 18px; max-width: 440px; }
.vhero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.vhero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.6); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.vhero-scroll .line { width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.5), transparent); animation: scrolly 2s infinite; }
@keyframes scrolly { 0%,100% { opacity: .3; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------------- Editorial media blocks ---------------- */
.editorial { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 78vh; }
.editorial.flip .ed-media { order: 2; }
.ed-media { position: relative; overflow: hidden; background: var(--espresso); min-height: 56vh; }
.ed-media video, .ed-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 96px); background: var(--cream); }
.editorial.dark .ed-copy { background: var(--espresso); }
.editorial.dark .ed-copy h2 { color: var(--cream); }
.editorial.dark .ed-copy p { color: rgba(245,240,232,.72); }
.ed-num { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--terra); margin-bottom: 22px; }
.ed-copy h2 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1; margin-bottom: 22px; max-width: 12ch; }
.ed-copy p { font-size: 17.5px; color: var(--muted); max-width: 460px; margin-bottom: 26px; line-height: 1.7; }
.ed-tag { position: absolute; z-index: 2; top: 22px; left: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(20,14,10,.42); backdrop-filter: blur(4px); padding: 7px 13px; border-radius: 100px; }

/* ---------------- Labelled media placeholders (for footage you'll film) ---------------- */
.media-ph {
  position: relative; width: 100%; height: 100%; min-height: 300px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 9px),
    radial-gradient(circle at 50% 32%, #3a2a20 0%, var(--espresso) 62%, #1a120d 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.media-ph-inner { text-align: center; color: rgba(245,240,232,.6); padding: 28px; max-width: 380px; }
.media-ph-play {
  width: 66px; height: 66px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.32);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  transition: transform .3s var(--ease), border-color .3s;
}
.media-ph:hover .media-ph-play { transform: scale(1.06); border-color: var(--gold); }
.media-ph-play svg { width: 22px; height: 22px; margin-left: 3px; color: var(--gold); }
.media-ph .ph-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 12px; }
.media-ph .ph-desc { font-family: var(--mono); font-size: 12px; line-height: 1.75; letter-spacing: .02em; color: rgba(245,240,232,.55); }

/* ---------------- Full-bleed media feature (milk, subscription, etc.) ---------------- */
.feature { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; background: var(--espresso); }
.feature .feature-bg { position: absolute; inset: 0; }
.feature .feature-bg video, .feature .feature-bg img { width: 100%; height: 100%; object-fit: cover; }
.feature::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,14,10,.74) 0%, rgba(20,14,10,.4) 45%, rgba(20,14,10,.18) 100%); }
.feature.center::after { background: linear-gradient(180deg, rgba(20,14,10,.5), rgba(20,14,10,.32) 40%, rgba(20,14,10,.62)); }
.feature-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%; }
.feature.center .feature-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.feature-content { max-width: 560px; color: #fff; }
.feature-content .eyebrow { color: var(--gold); }
.feature-content h2 { color: #fff; font-size: clamp(36px, 5.6vw, 76px); line-height: .98; letter-spacing: -0.02em; margin: 16px 0 18px; }
.feature-content p { color: rgba(255,255,255,.85); font-size: 18px; line-height: 1.6; margin-bottom: 28px; max-width: 460px; }
.feature.center .feature-content p { margin-left: auto; margin-right: auto; }

/* ---------------- Coffee pods feature ---------------- */
.feature-pods .feature-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.feature-pods::after { background: linear-gradient(90deg, rgba(20,14,10,.85) 0%, rgba(20,14,10,.6) 48%, rgba(20,14,10,.35) 100%); }
.pod-points { list-style: none; display: flex; flex-direction: column; gap: 13px; margin: 4px 0 30px; }
.pod-points li { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.9); font-size: 15.5px; line-height: 1.4; }
.pod-points svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.pods-product { position: relative; display: flex; justify-content: center; }
.pods-product img { width: 100%; max-width: 360px; border-radius: var(--radius); box-shadow: 0 40px 80px rgba(0,0,0,.5); animation: podFloat 6s ease-in-out infinite; }
.pods-product .pods-badge {
  position: absolute; bottom: 16px; right: clamp(8px, 6%, 60px); z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--blue); color: #fff; padding: 9px 15px; border-radius: 100px; box-shadow: var(--shadow);
}
@keyframes podFloat { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-18px) rotate(1.2deg); } }
@media (prefers-reduced-motion: reduce) { .pods-product img { animation: none; } }
/* keep the placeholder label out of the way of the copy + product */
.feature-pods .media-ph { align-items: flex-end; }
.feature-pods .media-ph-inner { margin-bottom: 26px; max-width: 340px; opacity: .9; }

/* ---------------- Full-page Story ---------------- */
.story-full { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; background: var(--espresso); overflow: hidden; }
.story-photo { position: relative; overflow: hidden; min-height: 56vh; }
.story-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.story-photo.in img { transform: scale(1); }
.story-photo .photo-cap { position: absolute; left: 22px; bottom: 22px; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(20,14,10,.45); backdrop-filter: blur(4px); padding: 8px 14px; border-radius: 100px; }
.story-full .story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 92px); color: var(--cream); }
.story-full .story-copy .eyebrow { color: var(--gold); }
.story-full .story-copy h2 { color: var(--cream); font-size: clamp(34px, 4.6vw, 62px); line-height: 1; margin: 16px 0 22px; }
.story-full .story-copy p { color: rgba(245,240,232,.74); font-size: 17.5px; line-height: 1.75; margin-bottom: 16px; max-width: 520px; }
.story-full .story-stats { margin-top: 30px; }
.story-full .logo-mark { width: 64px; margin-bottom: 26px; filter: brightness(0) invert(1); opacity: .9; }

/* ---------------- Coffee range — sticky stacking cards ---------------- */
.coffee-range { padding: 84px 0 40px; }
.coffee-stack { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.stack-card { position: sticky; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 26px; will-change: transform; }
.stack-card:nth-child(1) { top: 62px; }
.stack-card:nth-child(2) { top: 76px; }
.stack-card:nth-child(3) { top: 90px; }
.stack-card:nth-child(4) { top: 104px; }
.stack-inner { position: relative; height: min(84vh, 740px); }
.stack-bg { position: absolute; inset: 0; }
.stack-bg img { width: 100%; height: 100%; object-fit: cover; }
.stack-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(95deg, rgba(18,12,9,.82) 0%, rgba(18,12,9,.55) 42%, rgba(18,12,9,.15) 100%); }
.stack-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5.5vw, 72px); color: #fff; max-width: 640px; }
.stack-word { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.stack-name { font-size: clamp(44px, 7vw, 96px); line-height: .92; letter-spacing: -0.03em; margin-bottom: 18px; color: #fff; }
.stack-meta { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.stack-meta .roast-dot { width: 9px; height: 9px; }
.stack-desc { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.9); max-width: 420px; margin-bottom: 22px; }
.stack-notes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.stack-notes span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.32); padding: 6px 12px; border-radius: 100px; }

/* ---------------- Trust bar ---------------- */
.trustbar { background: var(--espresso); color: var(--cream-2); }
.trustbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 22px 28px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 11px; font-size: 14px; }
.trust-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

/* ---------------- Product grid + cards ---------------- */
.section-pad { padding: 84px 0; }
.section-pad-sm { padding: 56px 0; }
.bg-paper { background: var(--paper); }
.bg-cream2 { background: var(--cream-2); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 1/1; background: var(--cream-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .card-media img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 13px; left: 13px; z-index: 2; background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-meta { font-family: var(--mono); display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.roast-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.roast-1 { background: #c89b6a; } .roast-2 { background: #a9764a; } .roast-3 { background: #8a5734; }
.roast-4 { background: #5f3a24; } .roast-5 { background: #38221a; }
.card-title { font-size: 21px; }
.card-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1px; }
.card-notes span { font-size: 12px; color: var(--ink-soft); background: var(--cream-2); padding: 4px 9px; border-radius: 100px; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-price { font-size: 19px; font-weight: 700; font-family: var(--serif); }
.card-price .from { font-size: 12px; color: var(--muted); font-weight: 500; font-family: var(--sans); }
.btn-add { background: var(--cream-2); color: var(--ink); border-radius: 100px; padding: 10px 16px; font-size: 13.5px; font-weight: 600; border: none; cursor: pointer; transition: background .2s, color .2s; }
.btn-add:hover { background: var(--terra); color: #fff; }

/* ---------------- Find your coffee ---------------- */
.find { background: transparent; }
.find .eyebrow { color: var(--terra); }
.find-sub { color: var(--muted); }
.quiz { background: linear-gradient(165deg, var(--espresso) 0%, #221813 100%); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 48px; max-width: 820px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.quiz-step h3 { color: var(--cream); font-size: 24px; margin-bottom: 6px; }
.quiz-step > p { color: rgba(245,240,232,.6); margin-bottom: 24px; }
.quiz-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quiz-opt {
  background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; cursor: pointer; color: var(--cream); transition: .25s var(--ease);
}
.quiz-opt:hover { border-color: var(--gold); background: rgba(192,138,62,.12); transform: translateY(-3px); }
.quiz-opt .emoji { font-size: 30px; display: block; margin-bottom: 10px; }
.quiz-opt strong { display: block; font-size: 16px; margin-bottom: 3px; }
.quiz-opt small { color: rgba(245,240,232,.55); font-size: 12.5px; }
.quiz-progress { display: flex; gap: 7px; margin-bottom: 26px; }
.quiz-progress span { height: 4px; flex: 1; background: rgba(255,255,255,.14); border-radius: 4px; transition: background .3s; }
.quiz-progress span.on { background: var(--gold); }
.quiz-result { text-align: center; }
.quiz-result .result-card { display: flex; gap: 22px; align-items: center; background: rgba(255,255,255,.05); border-radius: var(--radius); padding: 22px; text-align: left; margin: 22px 0; }
.quiz-result .result-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.quiz-result .result-card h4 { color: var(--cream); font-size: 24px; margin-bottom: 6px; }
.quiz-result .result-card p { color: rgba(245,240,232,.7); font-size: 14px; margin-bottom: 4px; }
.quiz-back { background: none; border: none; color: rgba(245,240,232,.6); cursor: pointer; margin-top: 14px; font-size: 14px; }
.quiz-back:hover { color: var(--cream); }

/* ---------------- Split feature (subscription / wholesale / story) ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; }
.split-media { aspect-ratio: 4/3.4; overflow: hidden; background: var(--cream-3); height: 100%; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { padding: clamp(34px, 5vw, 72px); }
.split-copy h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 14px 0 18px; }
.split-copy p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.split-list { list-style: none; margin: 18px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.split-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); font-size: 15.5px; }
.split-list svg { width: 21px; height: 21px; color: var(--teal); flex-shrink: 0; margin-top: 1px; }

.sub-band { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; }
.sub-band .split-copy h2, .sub-band .eyebrow { color: #fff; }
.sub-band .eyebrow { opacity: .8; }
.sub-band .split-copy p { color: rgba(255,255,255,.82); }
.sub-band .split-list li { color: rgba(255,255,255,.92); }
.sub-band .split-list svg { color: #fff; }

/* ---------------- Story strip ---------------- */
.story { background: var(--espresso); color: var(--cream); }
.story .split-copy h2 { color: var(--cream); }
.story .split-copy p { color: rgba(245,240,232,.72); }
.story .eyebrow { color: var(--gold); }
.story-stats { display: flex; gap: 34px; margin-top: 28px; flex-wrap: wrap; }
.story-stat strong { font-family: var(--serif); font-size: 38px; color: var(--cream); display: block; line-height: 1; }
.story-stat span { font-size: 13px; color: rgba(245,240,232,.6); }

/* ---------------- Reviews ---------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.review p { font-size: 16px; color: var(--ink-soft); line-height: 1.65; }
.review-by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-by .av { width: 40px; height: 40px; border-radius: 50%; background: var(--cream-3); color: var(--terra); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--serif); }
.review-by strong { font-size: 14.5px; display: block; }
.review-by small { color: var(--muted); font-size: 12.5px; }

/* ---------------- Category tiles ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2.3; display: flex; align-items: flex-end; box-shadow: var(--shadow-sm); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40,28,20,.78), transparent 65%); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile .cat-label { position: relative; z-index: 2; padding: 24px; color: #fff; }
.cat-tile .cat-label h3 { color: #fff; font-size: 24px; }
.cat-tile .cat-label span { font-size: 13.5px; opacity: .85; }

/* ---------------- Cart drawer ---------------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(30,20,14,.42); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 90; }
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; background: var(--cream);
  z-index: 95; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s var(--ease);
  box-shadow: -20px 0 60px rgba(30,20,14,.2);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 22px; }
.cart-freeship { padding: 14px 22px 4px; }
.ship-bar { height: 6px; background: var(--cream-3); border-radius: 100px; overflow: hidden; margin-bottom: 8px; }
.ship-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--terra)); border-radius: 100px; transition: width .4s var(--ease); }
.cart-freeship p { font-size: 13px; color: var(--muted); }
.cart-lines { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--cream-2); flex-shrink: 0; }
.cart-line-info { flex: 1; display: flex; flex-direction: column; }
.cart-line-top { display: flex; justify-content: space-between; gap: 8px; }
.cart-line-name { font-weight: 600; font-size: 15px; }
.line-remove { background: none; border: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.line-remove:hover { color: var(--terra); }
.cart-line-meta { font-size: 12.5px; color: var(--muted); margin-bottom: auto; }
.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: none; background: transparent; cursor: pointer; font-size: 17px; color: var(--ink); }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-line-price { font-weight: 700; font-family: var(--serif); }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--cream); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.cart-subtotal span:last-child { font-family: var(--serif); }
.cart-note { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); display: flex; flex-direction: column; gap: 18px; align-items: center; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: var(--espresso); color: #fff; padding: 13px 24px; border-radius: 100px; font-size: 14px; font-weight: 500; z-index: 120; opacity: 0; visibility: hidden; transition: .3s var(--ease); box-shadow: var(--shadow); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------------- Chat launcher ---------------- */
.chat-launch { position: fixed; right: 22px; bottom: 22px; z-index: 88; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
/* Only the visible controls should catch clicks — the empty container must let clicks through (it otherwise overlaps and blocks the Instagram popup's close button). */
.chat-launch .chat-fab, .chat-launch .chat-pop.open { pointer-events: auto; }
/* Matches the original site's Shopify Inbox button — black pill, white bubble, "Chat" */
.chat-fab { display: inline-flex; align-items: center; gap: 9px; background: #141414; color: #fff; border: none; border-radius: 100px; padding: 13px 20px 13px 17px; font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; cursor: pointer; box-shadow: 0 6px 22px rgba(0,0,0,.3); transition: transform .2s, background .2s; }
.chat-fab:hover { transform: translateY(-2px); background: #000; }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab.active { background: #000; }
.chat-pop { width: 300px; max-width: 82vw; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(14px) scale(.96); transform-origin: bottom right; opacity: 0; visibility: hidden; transition: .28s var(--ease); }
.chat-pop.open { transform: none; opacity: 1; visibility: visible; }
.chat-pop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px; background: #141414; color: #fff; }
.chat-pop-head strong { font-family: var(--serif); font-size: 18px; display: block; }
.chat-pop-head small { opacity: .85; font-size: 12.5px; }
.chat-x { background: rgba(255,255,255,.16); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-x svg { width: 16px; height: 16px; }
.chat-pop-intro { font-size: 13.5px; color: var(--muted); padding: 15px 18px 4px; margin: 0; }
.chat-actions { display: flex; flex-direction: column; padding: 6px 12px 14px; }
.chat-actions a { padding: 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: background .15s; }
.chat-actions a:hover { background: var(--cream-2); }

/* ---------------- "Latest post" panel ---------------- */
.latest-pop { position: fixed; left: 22px; bottom: 22px; z-index: 86; width: 300px; max-width: 84vw; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(150%); opacity: 0; transition: transform .55s var(--ease), opacity .5s; }
.latest-pop.show { transform: none; opacity: 1; }
.latest-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: rgba(20,14,10,.5); backdrop-filter: blur(4px); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.latest-close svg { width: 15px; height: 15px; }
.latest-media { display: block; position: relative; aspect-ratio: 16/10; background: var(--cream-2); }
.latest-media img { width: 100%; height: 100%; object-fit: cover; }
.latest-ig { position: absolute; bottom: 8px; right: 10px; color: #fff; font-size: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.latest-body { padding: 14px 16px 16px; }
.latest-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.latest-body p { font-size: 14px; color: var(--ink-soft); margin: 6px 0 12px; }
@media (max-width: 560px) {
  .latest-pop { left: 12px; right: 12px; width: auto; bottom: 12px; }
  .chat-launch { right: 12px; bottom: 12px; }
  .chat-fab .chat-fab-label { display: none; }
  .chat-fab { padding: 14px; }
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--espresso); color: var(--cream-2); padding: 70px 0 0; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 28px 50px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand img { height: 50px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; color: rgba(245,240,232,.6); max-width: 320px; line-height: 1.7; }
.footer-social { margin-top: 18px; display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; color: var(--cream-2); transition: .25s; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--espresso); }
.footer-social svg { width: 20px; height: 20px; }
.footer-col h4 { color: var(--cream); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--sans); font-weight: 700; }
.footer-col a { display: block; color: rgba(245,240,232,.6); font-size: 14.5px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--cream); }
.footer-contact p { font-size: 14.5px; color: rgba(245,240,232,.6); line-height: 1.7; margin-bottom: 12px; }
.footer-contact a { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 28px; max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: rgba(245,240,232,.5); }
.footer-trust { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-trust a { color: rgba(245,240,232,.55); transition: color .2s; }
.footer-trust a:hover { color: var(--gold); }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------------- Page header (inner pages) ---------------- */
.page-head { background: linear-gradient(165deg, #fbf7f1, #f1e7d8); padding: 54px 0 40px; }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { font-size: clamp(34px, 5vw, 58px); }
.page-head p { color: var(--muted); font-size: 18px; max-width: 600px; margin-top: 14px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--terra); }

/* ---------------- Shop / PLP ---------------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; padding: 44px 0 88px; }
.filters { position: sticky; top: 96px; }
.filter-group { margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--sans); font-weight: 700; color: var(--ink); }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14.5px; color: var(--ink-soft); }
.filter-opt input { accent-color: var(--terra); width: 16px; height: 16px; cursor: pointer; }
.filter-opt:hover { color: var(--ink); }
.shop-main-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.shop-count { font-size: 14.5px; color: var(--muted); }
.shop-sort { display: flex; align-items: center; gap: 10px; }
.shop-sort select { font-family: var(--sans); font-size: 14px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); color: var(--ink); cursor: pointer; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 100px; padding: 8px 16px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--terra); color: var(--terra); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.filter-toggle-btn { display: none; }
.no-results { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------------- PDP ---------------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 40px 0 80px; align-items: start; }
.pdp-gallery { position: sticky; top: 96px; }
.pdp-img-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-2); aspect-ratio: 1/1; box-shadow: var(--shadow); }
.pdp-img-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 100px; letter-spacing: .03em; }
.pill-terra { background: rgba(181,96,58,.12); color: var(--terra-dark); }
.pill-teal { background: rgba(63,125,119,.12); color: var(--teal-dark); }
.pill-line { border: 1px solid var(--line); color: var(--ink-soft); }
.pdp h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.pdp-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.pdp-price { font-size: 30px; font-family: var(--serif); font-weight: 600; margin-bottom: 20px; }
.pdp-price .was { font-size: 18px; color: var(--muted); text-decoration: line-through; margin-left: 10px; font-family: var(--sans); }
.pdp-desc { font-size: 16.5px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 26px; }
.pdp-notes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pdp-notes .tn { background: var(--cream-2); border-radius: 100px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.opt-block { margin-bottom: 22px; }
.opt-block label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 11px; }
.opt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.opt-btn { border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px 18px; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: .2s; min-width: 70px; text-align: center; }
.opt-btn:hover { border-color: var(--terra); }
.opt-btn.sel { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.opt-btn small { display: block; font-size: 12px; opacity: .7; }
.plan-row { display: flex; flex-direction: column; gap: 10px; }
.plan-opt { border: 1.5px solid var(--line); border-radius: 12px; padding: 15px 18px; cursor: pointer; display: flex; align-items: center; gap: 13px; transition: .2s; }
.plan-opt:hover { border-color: var(--terra); }
.plan-opt.sel { border-color: var(--terra); background: rgba(181,96,58,.05); }
.plan-opt .radio { width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.plan-opt.sel .radio { border-color: var(--terra); }
.plan-opt.sel .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--terra); }
.plan-opt .plan-text { flex: 1; }
.plan-opt strong { font-size: 15px; display: block; }
.plan-opt small { color: var(--muted); font-size: 13px; }
.plan-save { background: var(--teal); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 100px; }
.pdp-buy { display: flex; gap: 12px; align-items: stretch; margin: 26px 0 22px; }
.pdp-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 100px; }
.pdp-qty button { width: 44px; height: 100%; border: none; background: none; font-size: 19px; cursor: pointer; }
.pdp-qty span { min-width: 30px; text-align: center; font-weight: 600; }
.pdp-assure { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px; background: var(--cream-2); border-radius: var(--radius); margin-bottom: 26px; }
.assure-item { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); }
.assure-item svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; }
.pdp-detail-rows { border-top: 1px solid var(--line); }
.detail-row { border-bottom: 1px solid var(--line); }
.detail-row summary { padding: 17px 4px; cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.detail-row summary::-webkit-details-marker { display: none; }
.detail-row summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; }
.detail-row[open] summary::after { content: "−"; }
.detail-row .detail-body { padding: 0 4px 18px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }
.detail-body ul { padding-left: 18px; }

/* ---------------- Cart page ---------------- */
.cart-page { display: grid; grid-template-columns: 1fr 380px; gap: 44px; padding: 40px 0 88px; align-items: start; }
.cart-items { display: flex; flex-direction: column; }
.cart-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; background: var(--cream-2); }
.cart-row h3 { font-size: 20px; margin-bottom: 5px; }
.cart-row .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.cart-row .row-price { font-family: var(--serif); font-size: 20px; font-weight: 600; text-align: right; }
.cart-row .row-remove { display: block; background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; margin-top: 10px; text-align: right; width: 100%; }
.cart-row .row-remove:hover { color: var(--terra); }
.summary { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }
.summary h3 { font-size: 22px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 15px; color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 20px; font-weight: 700; color: var(--ink); }
.summary-row.total span:last-child { font-family: var(--serif); }
.promo { display: flex; gap: 8px; margin: 16px 0; }
.promo input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 100px; font-family: var(--sans); font-size: 14px; }
.cart-empty-page { text-align: center; padding: 80px 20px; }
.cart-empty-page h2 { font-size: 30px; margin-bottom: 12px; }
.cart-empty-page p { color: var(--muted); margin-bottom: 24px; }

/* ---------------- Misc content ---------------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 32px; margin: 36px 0 16px; }
.prose h3 { font-size: 22px; margin: 28px 0 12px; }
.prose p { color: var(--ink-soft); font-size: 17px; margin-bottom: 16px; line-height: 1.75; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.value-card .vc-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.value-card .vc-icon svg { width: 26px; height: 26px; color: var(--terra); }
.value-card h3 { font-size: 20px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--sans); font-size: 15px; background: var(--paper); color: var(--ink); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--terra); }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.info-list li { display: flex; gap: 15px; }
.info-list .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-list .ic svg { width: 22px; height: 22px; color: var(--terra); }
.info-list strong { display: block; font-size: 16px; }
.info-list span, .info-list a { color: var(--muted); font-size: 14.5px; }

/* ---------------- Subscription builder ---------------- */
.sub-builder { display: grid; grid-template-columns: 1fr 1.05fr; gap: 0; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.sub-builder-aside { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.sub-builder-aside .eyebrow { color: rgba(255,255,255,.85); }
.sub-builder-aside h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin: 14px 0 22px; line-height: 1.02; }
.sub-builder-aside .split-list li { color: #fff; }
.sub-builder-aside .split-list svg { color: #fff; }
.sub-form { padding: clamp(32px, 4vw, 52px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.freq-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.freq-opt { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; transition: .2s; }
.freq-opt:hover { border-color: var(--teal); }
.freq-opt.sel { border-color: var(--teal); background: rgba(28,147,196,.08); color: var(--teal-dark); }
.sub-error { color: #b5603a; font-size: 13.5px; min-height: 18px; margin: 6px 0 4px; }
.sub-fine { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.6; }
.sub-confirm { grid-column: 1 / -1; text-align: center; padding: clamp(40px, 6vw, 80px) 28px; }
.sub-check { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.sub-check svg { width: 30px; height: 30px; }
.sub-confirm h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.sub-confirm > p { color: var(--muted); font-size: 17px; max-width: 460px; margin: 0 auto 24px; }
.sub-summary { display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; background: var(--cream-2); border-radius: var(--radius); padding: 20px 26px; margin-bottom: 22px; }
.sub-summary > div { text-align: left; padding: 0 14px; }
.sub-summary span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sub-summary strong { font-family: var(--serif); font-size: 17px; }

/* ---------------- Marquee ---------------- */
.marquee { background: var(--cream-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 34s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 22px; padding: 0 24px; font-family: var(--serif); font-size: 19px; color: var(--ink-soft); white-space: nowrap; }
.marquee-item::after { content: "·"; color: var(--terra); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 940px) {
  .editorial { grid-template-columns: 1fr; min-height: 0; }
  .editorial.flip .ed-media { order: 0; }
  .ed-media { min-height: 60vw; }
  .story-full { grid-template-columns: 1fr; }
  .story-photo { min-height: 64vw; }
  .feature { min-height: 76vh; }
  .feature::after { background: linear-gradient(180deg, rgba(20,14,10,.55), rgba(20,14,10,.45)); }
  .feature-pods .feature-inner { grid-template-columns: 1fr; gap: 30px; }
  .feature-pods .pods-product { order: -1; }
  .pods-product img { max-width: 240px; }
  .feature-pods::after { background: linear-gradient(180deg, rgba(20,14,10,.6), rgba(20,14,10,.5)); }
  .stack-inner { height: min(78vh, 600px); }
  .stack-card:nth-child(n) { top: 58px; }
  .vhero h1 { font-size: clamp(40px, 12vw, 72px); }
  .vhero-inner { padding-bottom: 48px; }
  body:not(.home) { padding-top: 104px; }
  .menu-btn .menu-label { display: none; }
  .header-inner { padding: 13px 20px; }
  .brand img { height: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .split-media { aspect-ratio: 16/10; }
  .sub-band .split, .story .split { display: flex; flex-direction: column-reverse; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  /* Grid/flex children default to min-width:auto, letting a no-wrap button
     (e.g. the Subscribe CTA) force the whole page wider. Pin them to 0 so the
     PDP can never exceed the viewport when a purchase option changes. */
  .pdp, .pdp > *, .pdp-info, .pdp-buy { min-width: 0; }
  .pdp-buy { flex-wrap: wrap; }
  .pdp-gallery { position: static; }
  .cart-page { grid-template-columns: 1fr; }
  .summary { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
  .filters.open { display: block; }
  .filter-toggle-btn { display: inline-flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .sub-builder { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* Kill the horizontal-shift + crowding on phones */
  .vhero-scroll { display: none; }
  .announce { font-size: 10px; letter-spacing: .04em; padding: 8px 14px; line-height: 1.5; }
  .vhero-inner { padding-bottom: 40px; padding-left: 22px; padding-right: 22px; }
  .vhero-eyebrow { margin-bottom: 14px; font-size: 10.5px; letter-spacing: .12em; }
  .vhero h1 { font-size: clamp(34px, 10.5vw, 56px); margin-bottom: 16px; line-height: 1.0; }
  .vhero-sub { font-size: 15.5px; }
  .vhero-cta { width: 100%; }
  .vhero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  /* Stockist CTA: stack to one column so it fits on phones */
  .stockist-cta { grid-template-columns: 1fr !important; gap: 22px !important; text-align: left; }
  /* Brew gear + merch: swipe sideways instead of stacking tall */
  .product-swipe {
    display: flex; overflow-x: auto; gap: 14px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -18px; padding: 4px 18px 16px; scrollbar-width: none;
  }
  .product-swipe::-webkit-scrollbar { display: none; }
  .product-swipe > .product-card { flex: 0 0 74%; scroll-snap-align: start; }
  .reviews-grid, .cat-grid, .value-grid, .quiz-options { grid-template-columns: 1fr; }
  /* Footer: stack into one full-width column so text isn't crammed to one side */
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand p { max-width: none; }
  .footer-contact a, .footer-contact p { overflow-wrap: anywhere; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .trustbar .wrap { gap: 14px 24px; }
  .trust-item { font-size: 13px; }
  .section-pad { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  .header-inner { padding: 12px 18px; }
  .card-title { font-size: 18px; }
  .quiz { padding: 24px; }
  .quiz-result .result-card { flex-direction: column; text-align: center; }
  .pdp-assure { grid-template-columns: 1fr; }
  .story-stats { gap: 24px; }
  .cart-row { grid-template-columns: 80px 1fr; }
  .cart-row img { width: 80px; height: 80px; }
  .cart-row .row-price { grid-column: 2; text-align: left; }
}
@media (max-width: 420px) {
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
