/* ==========================================================================
   Mireles Coffee. Design system extracted from the approved artwork.
   Fonts: Archivo (variable, 62-125% stretch), Instrument Serif, DM Mono.
   ========================================================================== */

/* ---------- Fonts, self hosted so no third party sees our visitors -------- */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('/fonts/archivo-normal-100_900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('/fonts/archivo-normal-100_900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('/fonts/archivo-italic-100_900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/dmmono-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/dmmono-normal-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/dmmono-normal-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/instrumentserif-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/instrumentserif-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/instrumentserif-italic-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --ink: #16110E;
  --ink-soft: #1C1613;
  --cream: #F2EBDF;
  --cream-hi: #FBF4EA;
  --white: #FFFFFF;
  --red: #CF3C1B;
  --blush: #EBA79C;
  --green: #2E4B3C;
  --mustard: #E3A72F;
  --body: #3A302A;
  --muted: #5A4D44;
  --rule: rgba(22, 17, 14, .18);

  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gut: clamp(20px, 5vw, 64px);
  --maxw: 1440px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 88px;
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: var(--gut); top: -80px; z-index: 200; background: var(--ink); color: var(--cream);
  padding: 12px 20px; border-radius: 999px; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Type scale --------------------------------------------------- */
.mono, .eyebrow {
  font-family: var(--mono); font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; font-size: 12px;
}
.eyebrow { color: var(--muted); }
.display {
  font-family: var(--sans); font-weight: 900; font-stretch: 62%;
  text-transform: uppercase; letter-spacing: -.005em; line-height: .86;
  font-size: clamp(42px, 9.4vw, 136px);
}
.display-sm { font-size: clamp(34px, 6.4vw, 84px); }
/* Section headings inside a page, where `.display-sm` is too loud. */
.display-xs { font-size: clamp(26px, 3.4vw, 44px); }
.serif {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: -.01em; line-height: 1.04; color: var(--red);
}
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--body); text-wrap: pretty; }

/* ---------- Layout ------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.band { padding-block: clamp(56px, 9vw, 128px); }
.rule-top { border-top: 1.5px solid var(--ink); }
.section-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(36px, 5vw, 68px); }
.section-head .lede { max-width: 62ch; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--red); color: var(--white); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--ink); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: var(--white); }
.btn-ghost { border: 1.5px solid var(--cream); color: var(--cream); background: transparent; }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-lg { height: 60px; padding: 0 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .5; pointer-events: none; }

/* Small pill toggles, used for grind, brew, tabs and club options. */
.pill {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill:hover { background: rgba(22, 17, 14, .07); }
.pill[aria-pressed='true'], .pill[aria-selected='true'] { background: var(--ink); color: var(--cream); }
.pill-light { border-color: var(--cream); color: var(--cream); }
.pill-light:hover { background: rgba(242, 235, 223, .12); }
.pill-light[aria-pressed='true'] { background: var(--cream); color: var(--ink); }

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: var(--cream);
  border-bottom: 1.5px solid var(--ink);
}
.site-header__in {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { font-weight: 900; font-stretch: 125%; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .04em; line-height: 1; }
.brand__est { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a {
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); transition: color .2s;
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--red); }
.header-right { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.bag-btn {
  height: 48px; padding: 0 12px 0 22px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--cream); display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .25s, transform .25s var(--ease);
}
.bag-btn:hover { background: var(--red); transform: translateY(-2px); }
.bag-count {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: 0;
}
.bag-btn:hover .bag-count { background: var(--ink); }
.burger { display: none; width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s, background-color .25s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1.5px solid var(--ink); background: var(--cream); padding: 12px var(--gut) 28px; }
.mobile-nav[data-open='true'] { display: block; }
.mobile-nav a {
  display: block; padding: 14px 0; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--rule); font-size: 22px; font-weight: 600;
}

/* ---------- Announcement / demo banner ----------------------------------- */
.notice {
  background: var(--ink); color: var(--cream); font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; text-align: center;
  padding: 10px var(--gut);
}
.notice--warn { background: var(--mustard); color: var(--ink); }
.notice a { color: inherit; }

/* ---------- Topographic backdrop ----------------------------------------- */
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.topo path { fill: none; stroke: var(--ink); stroke-opacity: .11; stroke-width: 1.1; }
.topo--light path { stroke: var(--cream); stroke-opacity: .13; }

/* ---------- Hero: the brew sequence ------------------------------------- */
/* A photographed sequence, cherry to cup, that site.js scrubs on a canvas as
   the page scrolls. --seq-bg is the backdrop the frames were shot on, measured
   from the files. Every frame's edges fade into it, so the photograph never
   shows a border, whatever the shape of the screen. */
.seq { --seq-bg: #F7F2E4; position: relative; background: var(--seq-bg); }
.seq.is-live { height: 600vh; }
.seq__stage {
  position: sticky; top: var(--header-h); overflow: hidden;
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
}
.seq__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.seq.is-ready .seq__canvas { opacity: 1; }
.seq__still { display: none; }

/* Download progress, shown until every frame is in or the visitor scrolls. */
.seq__loader {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: min(240px, 64vw); transform: translate(-50%, -50%);
  display: none; flex-direction: column; gap: 12px; color: var(--muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transition: opacity .5s var(--ease);
}
.seq.is-live .seq__loader { display: flex; }
.seq.is-ready .seq__loader { opacity: 0; }
.seq__loader-row { display: flex; justify-content: space-between; }
.seq__bar { height: 2px; background: var(--rule); overflow: hidden; }
.seq__bar span {
  display: block; height: 100%; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}

/* The lines over the film. site.js sets their opacity and drift as it plays. */
.seq__cap { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 16px; }
.seq.is-live .seq__cap { pointer-events: none; }
.seq__cap--left, .seq__cap--right, .seq__cap--end { opacity: 0; }
/* Tabbing into the closing links shows them, wherever the scroll is. */
.seq__cap:focus-within { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
.seq__cap--open, .seq__cap--end { left: var(--gut); right: var(--gut); align-items: center; text-align: center; }
.seq__cap--open { top: clamp(18px, 4vh, 44px); }
.seq__cap--end { bottom: clamp(24px, 6vh, 56px); }
.seq__cap--left, .seq__cap--right { top: 0; bottom: 0; justify-content: center; width: min(400px, 30vw); }
.seq__cap--left { left: var(--gut); }
.seq__cap--right { right: var(--gut); align-items: flex-end; text-align: right; }
.seq__cap--end .hero__actions { justify-content: center; }
.seq__live { display: flex; align-items: center; gap: 12px; }
.seq__title { font-size: clamp(36px, min(5.2vw, 8.5vh), 80px); line-height: .92; text-wrap: balance; }
.seq__h { font-size: clamp(30px, 3.3vw, 52px); }
.seq__h .serif { display: block; }
.seq__p { max-width: 34ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; color: var(--body); text-wrap: pretty; }

/* Scroll prompt, until the visitor starts or tabs to the closing links. */
.seq__cue {
  position: absolute; left: 50%; bottom: max(28px, 9vh); z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transition: opacity .5s var(--ease);
}
.seq.is-ready:not(.is-moving):not(:focus-within) .seq__cue { opacity: 1; }
.seq__cue i { position: relative; width: 1.5px; height: 44px; overflow: hidden; background: var(--rule); }
.seq__cue i::after { content: ''; position: absolute; inset: 0; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }

/* On a portrait screen the film is a band across the middle, so the side
   lines move into the space under it. */
@media (orientation: portrait) {
  .seq__title { font-size: clamp(34px, 10.5vw, 60px); }
  .seq__cap--left, .seq__cap--right { top: auto; bottom: clamp(24px, 6vh, 56px); left: var(--gut); right: var(--gut); width: auto; }
}

/* No JavaScript, or reduced motion: no film. The same lines sit around a still
   of the last frame, in the normal flow of the page. Someone can turn on
   reduced motion with the film already running, so these rules also beat its
   classes and the inline styles site.js set. */
@media (scripting: none), (prefers-reduced-motion: reduce) {
  .seq.is-live { height: auto; }
  .seq__stage {
    position: relative; top: auto; height: auto; overflow: visible;
    max-width: var(--maxw); margin-inline: auto; padding: clamp(28px, 4vw, 48px) var(--gut) clamp(48px, 7vw, 88px);
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 72px);
    grid-template-areas: 'open open' 'still still' 'left right' 'end end';
  }
  .seq__canvas, .seq__loader, .seq__cue { display: none !important; }
  .seq__cap { position: static; width: auto; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  .seq__cap--open { grid-area: open; }
  .seq__cap--left { grid-area: left; }
  .seq__cap--right { grid-area: right; align-items: flex-start; text-align: left; }
  .seq__cap--end { grid-area: end; }
  .seq__still {
    grid-area: still; display: block; justify-self: center; width: 100%; max-width: 1080px; height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 10%, #000 90%, transparent);
    mask-composite: intersect;
  }
}
@media (scripting: none) and (max-width: 860px), (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .seq__stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'open' 'still' 'left' 'right' 'end'; }
}

/* Buttons under a page's opening line. The error pages use them too. */
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* ---------- Product carton photograph ------------------------------------ */
/* Rendered by Roastify from the print artwork. 1:2 portrait, transparent. */
.pbox { display: block; width: 270px; flex-shrink: 0; }
.pbox--sm { width: 180px; }
.pbox--lg { width: 320px; }
.pbox img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 28px 34px rgba(22, 17, 14, .28));
}

/* ---------- The coffee bag (pure CSS, scales with font-size) -------------- */
.bag { position: relative; width: 270px; height: 383px; font-size: 2.7px; flex-shrink: 0; }
.bag--sm { width: 180px; height: 255px; font-size: 1.8px; }
.bag--lg { width: 320px; height: 454px; font-size: 3.2px; }
.bag__shadow { position: absolute; left: 12em; right: 12em; bottom: -4em; height: 9em; border-radius: 50%; background: rgba(22, 17, 14, .42); filter: blur(4.5em); }
.bag__top {
  position: absolute; left: 1.5em; right: 1.5em; top: 0; height: 11em; border-radius: 1.6em 1.6em .4em .4em;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.2) 0 .45em, rgba(0,0,0,0) .45em 2.2em);
}
.bag__body {
  position: absolute; inset: 9.5em 0 0; border-radius: .8em .8em 3.4em 3.4em; overflow: hidden;
  background-image: linear-gradient(90deg, rgba(0,0,0,.22) 0%, rgba(255,255,255,.09) 13%, rgba(255,255,255,0) 36%, rgba(0,0,0,.04) 70%, rgba(0,0,0,.26) 100%);
  box-shadow: inset 0 .8em 1.4em rgba(0,0,0,.18);
  display: flex; flex-direction: column; align-items: stretch; padding: 11em 9em 8em;
}
.bag__valve { position: absolute; right: 9em; top: 4em; width: 6.4em; height: 6.4em; border-radius: 50%; border: .9em solid rgba(0,0,0,.2); background: rgba(255,255,255,.1); }
.bag__brand { text-align: center; font-weight: 900; font-stretch: 125%; font-size: 10.4em; line-height: 1; letter-spacing: .04em; }
.bag__rule { height: .45em; background: currentColor; }
.bag__rule--thin { height: .3em; opacity: .7; }
.bag__meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 3.4em; letter-spacing: .12em; text-transform: uppercase; }
.bag__meta--sm { font-size: 3.2em; }
.bag__origin { font-weight: 900; font-stretch: 62%; text-transform: uppercase; letter-spacing: -.005em; font-size: 19em; line-height: .8; white-space: nowrap; }
.bag__origin--long { font-size: 15.5em; }
.bag__sub { font-family: var(--serif); font-style: italic; font-size: 8em; line-height: 1; white-space: nowrap; }
.bag__grow { flex-grow: 1; }
.bag__limited {
  position: absolute; right: -6px; top: 46%; width: 76px; height: 76px; border-radius: 50%;
  background: var(--red); color: var(--white); display: grid; place-content: center; text-align: center;
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; z-index: 3;
}

/* ---------- Marquee ------------------------------------------------------ */
.marq-wrap { overflow: hidden; background: var(--ink); color: var(--cream); border-block: 1.5px solid var(--ink); }
.marq { display: flex; width: max-content; animation: marq 42s linear infinite; }
.marq-wrap:hover .marq { animation-play-state: paused; }
.marq__item { display: flex; align-items: center; gap: 18px; padding: 18px 30px; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.marq__item i { font-style: normal; opacity: .55; }
.marq__sep { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* ---------- Product cards ------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: 32px 28px 28px;
  border: 1.5px solid var(--ink); border-radius: 22px; background: var(--cream-hi); text-decoration: none; color: inherit;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 36px 60px -34px rgba(22, 17, 14, .6); }
.card__bagwrap { display: grid; place-items: center; min-height: 360px; padding-top: 18px; }
.card .pbox { transition: transform .7s var(--ease); }
.card:hover .pbox { transform: rotate(-4deg) translateY(-8px) scale(1.04); }
.card__tag {
  position: absolute; left: 22px; top: 22px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--cream);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__name { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; font-stretch: 85%; line-height: 1.05; }
.card__price { font-family: var(--mono); font-size: 15px; }
.card__meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card__notes { display: flex; flex-wrap: wrap; gap: 8px; }
.note-chip { padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; }
.card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }

/* A wrapped row of pill toggles: brew method, club options. */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Tabs (origin switcher) --------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

/* ---------- Timeline ----------------------------------------------------- */
.tl { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; }
.tl .eyebrow, .tl .field-label { color: rgba(242, 235, 223, .62); }
.tl .lede { color: rgba(242, 235, 223, .78); }
.tl__years { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 52px); }
.yr {
  position: relative; padding: 14px 0 12px; border: 0; background: transparent; color: var(--cream);
  flex: 1 1 120px; text-align: left; border-top: 1.5px solid rgba(242, 235, 223, .3); transition: color .3s;
}
.yr::after { content: ''; position: absolute; left: 0; top: -1.5px; height: 3px; width: 0; background: var(--red); transition: width .5s var(--ease); }
.yr[aria-selected='true'] { color: var(--red); }
.yr[aria-selected='true']::after { width: 100%; }
.yr__y { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 38px); line-height: 1; color: inherit; }
.yr__w { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-top: 6px; }
.tl__panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.tl__panel[hidden] { display: none; }
.tl__photo {
  aspect-ratio: 4 / 5; border-radius: 18px; border: 1.5px solid rgba(242, 235, 223, .3);
  display: flex; flex-direction: column; justify-content: space-between; padding: 26px; position: relative; overflow: hidden;
  background: var(--ink-soft);
}
.tl__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Two washes over the photograph: the chapter's tint from the top corner, then
   a dark foot so the initial stays readable on any frame. */
.tl__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(205deg, color-mix(in srgb, var(--tint, #16110E) 46%, transparent) 0%, transparent 52%),
    linear-gradient(to top, rgba(22, 17, 14, .85) 0%, rgba(22, 17, 14, .1) 44%, rgba(22, 17, 14, .3) 100%);
}
.tl__initial { position: relative; z-index: 2; font-family: var(--serif); font-style: italic; font-size: clamp(64px, 9vw, 120px); line-height: 1; color: var(--cream); opacity: .9; text-shadow: 0 2px 18px rgba(22, 17, 14, .5); }
.tl__body { display: flex; flex-direction: column; gap: 22px; }
.tl__where { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.tl__title { font-size: clamp(30px, 4.2vw, 56px); font-weight: 900; font-stretch: 70%; text-transform: uppercase; line-height: .95; }
.tl__p { color: rgba(242, 235, 223, .8); line-height: 1.65; text-wrap: pretty; }
.tl__person { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

/* ---------- Seed to cup -------------------------------------------------- */
.steps { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(30px, 4vw, 48px); }
.step-btn { flex: 1 1 140px; text-align: left; background: transparent; border: 0; border-top: 1.5px solid var(--rule); padding: 14px 0 0; color: var(--ink); position: relative; opacity: .55; transition: opacity .25s; }
.step-btn::after { content: ''; position: absolute; left: 0; top: -1.5px; height: 3px; width: 0; background: var(--red); transition: width .5s var(--ease); }
.step-btn[aria-selected='true'] { opacity: 1; }
.step-btn[aria-selected='true']::after { width: 100%; }
.step-btn .n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.step-btn .t { display: block; font-size: clamp(18px, 2vw, 24px); font-weight: 700; margin-top: 6px; }
.step-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.step-panel[hidden] { display: none; }
.step-photo {
  grid-column: 1 / -1; position: relative; margin: 0 0 clamp(6px, 1vw, 14px);
  border: 1.5px solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--ink-soft);
}
.step-photo__img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.step-facts { display: grid; gap: 0; }
.step-fact { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.step-fact dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.step-fact dd { margin: 0; font-weight: 600; text-align: right; }
.brew-box { border: 1.5px solid var(--ink); border-radius: 20px; padding: 28px; background: var(--cream-hi); display: flex; flex-direction: column; gap: 22px; }
.brew-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.brew-cell { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1.5px solid var(--ink); }
.brew-cell .v { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); line-height: 1; }
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(26px, 3vw, 40px); }

/* ---------- Quote band --------------------------------------------------- */
.creed { background: var(--red); color: var(--white); }
.creed__lines { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(38px, 7.4vw, 104px); line-height: .9; }
.creed blockquote { font-family: var(--serif); font-style: italic; color: var(--white); font-size: clamp(22px, 2.8vw, 36px); line-height: 1.25; max-width: 24ch; }
.creed cite { display: block; font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .82; margin-top: 18px; }
.creed__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }

/* ---------- Club --------------------------------------------------------- */
.club { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.club .eyebrow, .club .field-label { color: rgba(242, 235, 223, .62); }
.club__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.club__perks { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.club__perk { display: flex; gap: 14px; align-items: flex-start; color: rgba(242, 235, 223, .85); }
.club__perk svg { flex-shrink: 0; margin-top: 3px; }
.builder { border: 1.5px solid rgba(242, 235, 223, .3); border-radius: 22px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 26px; }
.builder__row { display: flex; flex-direction: column; gap: 12px; }
.stepper { display: flex; align-items: center; gap: 18px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--cream); background: transparent; color: var(--cream); font-size: 20px; line-height: 1; display: grid; place-content: center; transition: background-color .2s, color .2s; }
.stepper button:hover { background: var(--cream); color: var(--ink); }
.stepper__v { font-family: var(--mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; min-width: 140px; text-align: center; }
.builder__total { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1.5px solid rgba(242, 235, 223, .3); }
.builder__total .v { font-family: var(--serif); font-style: italic; color: var(--cream); font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.builder__save { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blush); }

/* ---------- Newsletter --------------------------------------------------- */
.news { background: var(--cream); }
.news__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.field { display: flex; flex-direction: column; gap: 8px; }
.input {
  height: 56px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--white); color: var(--ink); font: inherit; font-size: 16px; width: 100%;
}
.input::placeholder { color: rgba(58, 48, 42, .5); }
textarea.input { height: auto; padding: 16px 20px; border-radius: 20px; resize: vertical; min-height: 140px; }
.news__form { display: flex; gap: 12px; flex-wrap: wrap; }
.news__form .input { flex: 1 1 240px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-ok { padding: 16px 20px; border-radius: 16px; background: var(--green); color: var(--cream); font-size: 15px; }
.form-err { padding: 16px 20px; border-radius: 16px; background: var(--red); color: var(--white); font-size: 15px; }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; padding-block: clamp(56px, 7vw, 96px) 40px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(28px, 4vw, 48px); position: relative; }
.site-footer h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: 18px; font-weight: 400; }
.site-footer li { margin-bottom: 12px; }
.flink { text-decoration: none; color: var(--cream); opacity: .8; transition: opacity .2s, color .2s; }
.flink:hover { opacity: 1; color: var(--blush); }
.site-footer__bottom {
  position: relative; margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid rgba(242, 235, 223, .2);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7;
}
.site-footer__mark { font-weight: 900; font-stretch: 125%; font-size: clamp(40px, 9vw, 120px); letter-spacing: .04em; line-height: 1; opacity: .13; position: relative; margin-top: 40px; font-family: var(--sans); }

/* ---------- Cart drawer -------------------------------------------------- */
.drawer-veil { position: fixed; inset: 0; background: rgba(22, 17, 14, .55); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .35s; }
.drawer-veil[data-open='true'] { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 100;
  background: var(--cream); border-left: 1.5px solid var(--ink); transform: translateX(100%);
  transition: transform .4s var(--ease); display: flex; flex-direction: column;
}
.drawer[data-open='true'] { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px; border-bottom: 1.5px solid var(--ink); }
.drawer__title { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.drawer__close { width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; display: grid; place-content: center; }
.drawer__close:hover { background: var(--ink); color: var(--cream); }
.drawer__body { flex: 1; overflow-y: auto; padding: 22px 26px; display: flex; flex-direction: column; gap: 18px; }
.drawer__foot { padding: 22px 26px; border-top: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 14px; background: var(--cream-hi); }
.drawer__empty { text-align: center; padding: 48px 0; color: var(--muted); }

.line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
/* The carton photo is 1:2, so 44px wide sits level with the name, meta and stepper. */
.line__thumb img { width: 44px; height: auto; display: block; filter: drop-shadow(0 6px 8px rgba(22, 17, 14, .22)); }
.line__name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.line__meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.line__price { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px; }
.qty button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; display: grid; place-content: center; font-size: 15px; line-height: 1; }
.qty button:hover { background: var(--ink); color: var(--cream); }
.qty span { min-width: 26px; text-align: center; font-family: var(--mono); font-size: 13px; }
.line__remove { background: none; border: 0; padding: 0; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: underline; }
.line__remove:hover { color: var(--red); }
.totals { display: flex; flex-direction: column; gap: 10px; }
.totals__row { display: flex; justify-content: space-between; font-size: 15px; }
.totals__row--big { font-size: 20px; font-weight: 700; padding-top: 12px; border-top: 1.5px solid var(--ink); }
.ship-hint { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Content pages ------------------------------------------------ */
.page-head { border-bottom: 1.5px solid var(--ink); padding-block: clamp(40px, 6vw, 80px); }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 22px; }
.prose h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; font-stretch: 80%; line-height: 1.1; margin-top: 22px; }
.prose h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 700; margin-top: 14px; }
.prose p, .prose li { color: var(--body); line-height: 1.68; text-wrap: pretty; }
.prose ul { display: flex; flex-direction: column; gap: 12px; padding-left: 22px; list-style: disc; }
.prose a { color: var(--red); }
.prose strong { color: var(--ink); }

/* ---------- Photographs -------------------------------------------------- */
/* A figure in the flow of a page. `.prose` clamps to 68ch for reading, so a
   photo inside one is let out to the full column width. */
.photo { margin: clamp(6px, 1vw, 12px) 0; display: flex; flex-direction: column; gap: 10px; }
/* `.prose` clamps to 68ch so the words stay readable. A photograph has no
   reason to be that narrow, so a wide one breaks out of the measure, up to the
   width of the page gutters. Below that it just fills the column. */
.prose .photo--wide { width: min(820px, calc(100vw - 2 * var(--gut))); max-width: none; }
.photo__img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1.5px solid var(--ink); border-radius: 20px; background: var(--ink-soft);
}
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { padding: 22px 0; font-size: clamp(17px, 1.8vw, 21px); font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--red); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 24px; color: var(--body); max-width: 70ch; line-height: 1.68; }

/* ---------- Spec tables -------------------------------------------------- */
/* Shared by the roastery page. The product page uses `.lot` below instead. */
.pdp__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.spec { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }
/* The cart totals panel. The product page has its own `.buybox`. */
.pdp__buy { display: flex; flex-direction: column; gap: 18px; padding: 26px; border: 1.5px solid var(--ink); border-radius: 22px; background: var(--cream-hi); }

/* ---------- Product detail ----------------------------------------------- */
/* The section carries the product's own artwork colour on `--bag`, and the
   stage, the ghost word and the assurance dots all tint off it. Same idiom as
   `--tint` on a timeline chapter. */
.pdp { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 80px); }

.crumbs {
  display: flex; align-items: center; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.crumbs a { text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: var(--ink); }

.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(32px, 5vw, 84px); align-items: start; }

.stage {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border: 1.5px solid var(--ink); border-radius: 28px;
  padding: clamp(26px, 3.6vw, 52px); min-height: clamp(460px, 54vw, 660px);
  background:
    radial-gradient(116% 82% at 50% 4%, color-mix(in srgb, var(--bag) 40%, transparent) 0%, transparent 64%),
    linear-gradient(to top, color-mix(in srgb, var(--bag) 18%, transparent) 0%, transparent 42%),
    var(--cream-hi);
}
/* The origin, set huge and clipped by the stage so it reads as a backdrop. */
.stage__ghost {
  position: absolute; left: 50%; top: clamp(8px, 3%, 34px); transform: translateX(-50%);
  font-weight: 900; font-stretch: 62%; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(74px, 12.5vw, 188px); line-height: .8; white-space: nowrap;
  color: color-mix(in srgb, var(--bag) 82%, var(--ink)); opacity: .42;
  pointer-events: none; user-select: none;
}
.stage__faces { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; }
.stage__face { position: relative; }
.stage__face[hidden] { display: none; }
/* A soft ellipse so the carton stands on the stage instead of floating over it. */
.stage__face::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 64%; height: 24px; border-radius: 50%;
  background: rgba(22, 17, 14, .34); filter: blur(15px);
}
.stage__face > .float { position: relative; z-index: 1; }
.stage__foot {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px; margin-top: clamp(18px, 2.4vw, 30px);
}
.stage__tabs { display: flex; gap: 8px; }
.stage__cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* The rail follows you down the page, so the price and the button stay put. */
.pdp__rail { position: sticky; top: calc(var(--header-h) + 22px); display: flex; flex-direction: column; gap: 22px; }
.pdp__title { font-size: clamp(38px, 4.6vw, 72px); }
.pdp__lede { max-width: 46ch; font-size: clamp(18px, 1.6vw, 21px); }
.notes { display: flex; flex-direction: column; gap: 10px; }

.buybox {
  display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 2.6vw, 30px);
  border: 1.5px solid var(--ink); border-radius: 22px; background: var(--cream-hi);
  box-shadow: 0 30px 58px -46px rgba(22, 17, 14, .75);
}
.buybox__top { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.buybox__price { font-family: var(--serif); font-style: italic; font-size: clamp(38px, 4.4vw, 54px); line-height: .9; }
.buybox__unit {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-align: right; line-height: 1.75;
}
.buybox__form { display: flex; flex-direction: column; gap: 16px; }

/* The number input works on its own, so the form still posts a quantity if
   site.js never loads. The buttons are the enhancement. */
/* Named `bags`, not `qty`: `.qty` is already the cart line stepper. */
.bags { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.bags__ctl { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1.5px solid var(--ink); border-radius: 999px; }
.bags__btn {
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  font-size: 18px; line-height: 1; display: grid; place-content: center; transition: background-color .2s, color .2s;
}
.bags__btn:hover { background: var(--ink); color: var(--cream); }
.bags__v {
  width: 48px; height: 38px; border: 0; background: transparent; text-align: center;
  font-family: var(--mono); font-size: 15px; color: var(--ink); appearance: textfield; -moz-appearance: textfield;
}
.bags__v::-webkit-outer-spin-button, .bags__v::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.assure { display: flex; flex-direction: column; gap: 9px; }
.assure li {
  position: relative; padding-left: 20px; line-height: 1.5;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.assure li::before {
  content: ''; position: absolute; left: 0; top: .42em; width: 7px; height: 7px; border-radius: 50%;
  background: color-mix(in srgb, var(--bag) 78%, var(--ink));
}
.grower { font-size: 15px; line-height: 1.6; color: var(--body); }
.grower strong { color: var(--ink); font-weight: 650; }

/* ---------- The lot strip ------------------------------------------------ */
/* Everything printed on the label, on one dark band under the fold. */
.lot { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); padding-block: clamp(40px, 5.4vw, 76px); }
.lot .eyebrow { color: rgba(242, 235, 223, .62); }
.lot__in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); }
.lot__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 34px) clamp(16px, 2vw, 32px); }
.lot__cell { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1.5px solid rgba(242, 235, 223, .3); }
.lot__cell dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(242, 235, 223, .6); }
.lot__cell dd { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.12; }

/* ---------- Editorial split ---------------------------------------------- */
/* A photograph or a panel beside a column of copy, alternating sides. */
.split { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(28px, 4vw, 68px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__body { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.split__body p { max-width: 54ch; color: var(--body); line-height: 1.68; text-wrap: pretty; }
.split__media .photo__img { aspect-ratio: 5 / 4; }

/* ---------- Order confirmation ------------------------------------------- */
.receipt { border: 1.5px solid var(--ink); border-radius: 22px; overflow: hidden; max-width: 620px; }
.receipt__head { background: var(--ink); color: var(--cream); padding: 24px 26px; }
.receipt__body { padding: 26px; display: flex; flex-direction: column; gap: 16px; background: var(--cream-hi); }
.receipt__row { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; }

/* ---------- Animation ---------------------------------------------------- */
@keyframes marq { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-16px) rotate(-2.5deg); } }
/* The carton render carries its own perspective, so it floats without tilting. */
@keyframes floatyFlat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
/* The scroll prompt's line: a short stroke runs down it and out. */
@keyframes cue { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(100%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(207, 60, 27, .55); } 100% { box-shadow: 0 0 0 12px rgba(207, 60, 27, 0); } }
.spin { animation: spin 22s linear infinite; }
.float { animation: floaty 6s ease-in-out infinite; }
.float.pbox, .float:has(.pbox) { animation-name: floatyFlat; }
.fade { animation: fadeUp .7s var(--ease); }
.pulse { animation: pulse 1.8s ease-out infinite; }

/* Reveal on scroll, progressively enhanced by site.js. */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1080px) {
  .tl__panel, .step-panel, .creed__grid, .club__grid, .news__grid, .pdp__grid, .split { grid-template-columns: 1fr; }
  .step-photo__img { aspect-ratio: 16 / 9; }
  .tl__photo { aspect-ratio: 16 / 10; }
  .stage { min-height: 420px; }
  /* Nothing to stick to once the rail is under the stage. */
  .pdp__rail { position: static; }
  .split--flip .split__media { order: 0; }
  .split__media .photo__img { aspect-ratio: 16 / 9; }
  .lot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .nav, .header-right .nav-extra { display: none; }
  .burger { display: flex; }
  .brew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp__specs { grid-template-columns: 1fr; }
}
/* Below this the header runs out of room: drop the est. line and shrink the
   bag button so the menu button is never clipped. */
@media (max-width: 420px) {
  .site-header__in { gap: 12px; }
  .brand__est { display: none; }
  .brand__mark { font-size: 20px; }
  .bag-btn { padding: 0 8px 0 14px; gap: 8px; font-size: 11px; }
  .header-right { gap: 8px; }
  .burger { width: 44px; height: 44px; }
  /* The bags stepper has a wide minimum, which pushed the club grid past the
     viewport on a 320px screen. */
  .stepper { gap: 10px; }
  .stepper__v { min-width: 0; flex: 1; font-size: 12px; }
  .builder { padding: 18px; }
  .drawer__body, .drawer__head, .drawer__foot { padding-inline: 18px; }
  /* The large carton plus the stage padding does not fit a 320px screen. */
  .stage { padding: 18px; min-height: 340px; border-radius: 22px; }
  .bag--lg { width: 224px; height: 318px; font-size: 2.24px; }
  .pbox--lg { width: 224px; }
  .buybox__unit { font-size: 9.5px; letter-spacing: .06em; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .bag { width: 210px; height: 298px; font-size: 2.1px; }
  .bag--lg { width: 240px; height: 340px; font-size: 2.4px; }
  .pbox { width: 210px; }
  .pbox--lg { width: 240px; }
  .card { padding: 26px 20px 22px; }
  .btn { height: 52px; padding: 0 22px; font-size: 15px; }
  .step-nav { flex-direction: column; align-items: stretch; }
  .step-nav .btn { width: 100%; }
  .drawer { width: 100vw; }
  .lot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage__foot { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marq, .spin, .float, .pulse, .fade { animation: none !important; }
  .float.pbox, .float:has(.pbox) { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
