/* =====================================================================
   HALF MOON ROASTERS · landing page
   Remix of the Best Bean Best Cup breakdown (claude/02-best-bean-best-cup)
   The grid is the brand: 8 columns, 2px ink rules, flat colour, half-moons.
   ===================================================================== */

:root {
  --ink: #141414;
  --white: #fffdf8;
  --cream: #f6f0e4;
  --cream-2: #f8f6ee;
  --grey: #6b675f;

  --indigo: #2e3192;
  --rose: #f28cab;
  --tangerine: #ff6f2c;
  --sun: #ffc533;
  --mint: #5fd3a8;
  --sky: #3d8fe0;
  --plum: #6b3fa0;
  --vermilion: #e8452c;

  --f: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rule: 2px;
  --col: 12.5vw;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.25, .46, .45, .94);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Lenis writes scrollTop every frame: with CSS smooth scrolling on, each write restarts a native
   smooth scroll, so the page freezes while the wheel turns and lurches when it stops */
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.5; letter-spacing: .01em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { overflow: visible; }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 26px; border-radius: 40px; border: 1.5px solid var(--ink);
  font-weight: 600; font-size: 15px; letter-spacing: .02em; white-space: nowrap;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.pill svg { width: 16px; height: 16px; transition: rotate .3s var(--ease); }
.pill:hover svg { rotate: 90deg; }
.pill--sun { background: var(--sun); }
.pill--sun:hover { background: var(--ink); color: var(--sun); }
.pill--ink { background: var(--ink); color: var(--white); }
.pill--ink:hover { background: var(--sun); color: var(--ink); }
.pill--block { width: 100%; }
.round-btn {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--white); transition: scale .25s var(--ease), background .2s;
}
.round-btn:hover { scale: 1.1; background: #f0ece3; }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round-btn--glass { background: #ffffff33; border-color: var(--white); color: var(--white); backdrop-filter: blur(6px); }
.round-btn--glass:hover { background: var(--white); color: var(--ink); }
.round-btn--dark { background: transparent; border-color: #ffffff55; color: var(--white); }
.round-btn--dark:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.round-btn--menu { display: none; }
.link-grow { position: relative; font-weight: 600; font-size: 15px; padding-bottom: 4px; }
.link-grow::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: currentColor; transition: width .3s ease; }
.link-grow:hover::after { width: 100%; }

/* =====================================================================
   ANNOUNCEMENT + HEADER
   ===================================================================== */
.announce { position: relative; z-index: 60; background: var(--ink); color: var(--white); text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 9px 16px; }
.announce b { color: var(--sun); }
.header {
  position: fixed; left: 0; right: 0; top: 36px; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 28px;
  transition: translate .45s var(--ease), top .3s;
}
.header.is-scrolled { top: 0; }
.header.is-hidden { translate: 0 -120%; }
.header__logo { width: 46px; height: 46px; display: block; color: var(--ink); transition: rotate .6s var(--ease); }
.header__logo:hover { rotate: 180deg; }
.header__logo svg { width: 100%; height: 100%; }
.pillnav { display: flex; align-items: center; gap: 2px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 40px; padding: 4px; }
.pillnav__item { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 40px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: background .2s; }
.pillnav__item:hover, .pillnav__item[aria-expanded="true"] { background: var(--sun); }
.chev { width: 12px; height: 12px; transition: rotate .3s var(--ease); }
[aria-expanded="true"] .chev { rotate: 180deg; }
.header__actions { justify-self: end; display: flex; gap: 8px; align-items: center; }
.cart-pill { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 40px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 15px; }
.cart-pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cart-pill__n { min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.cart-pill__n.pop { animation: n-pop .5s var(--ease); }
@keyframes n-pop { 40% { scale: 1.5; } }

/* mega menu */
.mega {
  position: absolute; top: calc(100% - 4px); left: 50%; translate: -50% 0; width: min(980px, 92vw);
  display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; background: var(--white); border: 1.5px solid var(--ink); border-radius: 24px; overflow: hidden;
  animation: mega-in .35s var(--ease);
}
.mega[hidden] { display: none; }
@keyframes mega-in { from { opacity: 0; translate: -50% -8px; } }
.mega__col { display: grid; align-content: start; gap: 4px; padding: 26px 26px 30px; border-right: var(--rule) solid var(--ink); }
.mega__h { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.mega__col a { font-size: 18px; font-weight: 500; padding: 3px 0; transition: translate .2s; }
.mega__col a:hover { translate: 6px 0; }
.mega__feature { background: var(--c); color: var(--white); display: grid; align-content: end; padding: 20px; gap: 14px; }
.mega__feature img { width: 100%; }
.mega__feature span { font-size: 14px; } .mega__feature b { display: block; font-size: 22px; font-weight: 600; }

/* =====================================================================
   01 HERO · live motion graphic
   ===================================================================== */
.hero { position: relative; height: max(760px, calc(100vh - 36px)); overflow: hidden; background: var(--white); }
.hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__title {
  position: absolute; left: 50%; top: 21%; translate: -50% 0; z-index: 2; width: min(980px, 90vw); text-align: center;
  font-size: clamp(34px, 4.2vw, 64px); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase;
  transition: color .5s;
}
.hero__title span { display: block; }
.hero[data-dark] .hero__title { color: var(--white); }
.hero__pause { position: absolute; right: 28px; bottom: 28px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; display: flex; gap: 4px; align-items: center; justify-content: center; }
.hero__pause i { width: 4px; height: 14px; background: currentColor; border-radius: 1px; }
.hero__pause.is-paused i:first-child { width: 0; height: 0; background: none; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.hero__pause.is-paused i:last-child { display: none; }
.hero[data-dark] .hero__pause { color: var(--white); }

/* =====================================================================
   02 BAND
   ===================================================================== */
.band { position: relative; z-index: 2; height: 80px; background: var(--sun); border-block: var(--rule) solid var(--ink); overflow: hidden; display: flex; align-items: center; }
.band__track { display: flex; width: max-content; animation: band 20s linear infinite; }
.band:hover .band__track { animation-play-state: paused; }
.band p { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 22px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.band svg { width: 26px; height: 26px; }
@keyframes band { to { translate: -33.3333% 0; } }

/* =====================================================================
   LETTER GRID + FLIP TILES
   ===================================================================== */
.lgrid { display: grid; grid-template-columns: repeat(8, var(--col)); grid-auto-rows: calc(var(--col) * 11 / 9); background: var(--white); }
.lgrid > * { box-shadow: 0 0 0 calc(var(--rule) / 2) var(--ink); position: relative; }
.lgrid--roasts .c1 { grid-column: 1; } .lgrid--roasts .c2 { grid-column: 2; } .lgrid--roasts .c3 { grid-column: 3; } .lgrid--roasts .c4 { grid-column: 4; }
.lgrid--roasts .c5 { grid-column: 5; } .lgrid--roasts .c6 { grid-column: 6; } .lgrid--roasts .c7 { grid-column: 7; } .lgrid--roasts .c8 { grid-column: 8; }
.lgrid--roasts .r1 { grid-row: 1; } .lgrid--roasts .r2 { grid-row: 2; }
.lgrid .span2 { grid-column: span 2 !important; }
.tile { perspective: 1000px; background: var(--cream); cursor: pointer; }
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.tile:hover .flip, .tile.is-flipped .flip { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.front { font-weight: 900; font-size: clamp(64px, 10vw, 160px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; background: var(--cream); }
.back { transform: rotateY(180deg); background: var(--bg, var(--sun)); }
.back svg { width: 72%; height: auto; }
.face--photo img, .cell--photo img { width: 100%; height: 100%; object-fit: cover; }
.arrow-ic { width: 62%; height: 62%; color: var(--ink); }
.cell { background: var(--white); }
.cell--photo { overflow: hidden; }
.cell--photo img { transition: scale .6s var(--ease); }
.cell--photo:hover img { scale: 1.06; }
.cell--more { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 12px; padding: 18px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sq-arrow { width: 56px; height: 56px; display: grid; place-items: center; background: var(--vermilion); color: var(--white); animation: nudge 1.6s var(--ease) infinite; }
.sq-arrow svg { width: 26px; height: 26px; }
@keyframes nudge { 50% { translate: 6px 0; } }

/* =====================================================================
   03-04 SHELF: grid panel + product slides, pinned horizontally (≥992px)
   ===================================================================== */
.shelf { position: relative; background: var(--white); }
.shelf__pin { position: relative; }
.shelf__track { display: flex; width: max-content; will-change: transform; }
.panel { position: relative; user-select: none; -webkit-user-select: none; width: 100vw; height: 100vh; min-height: 680px; flex: none; overflow: hidden; background: var(--white); }
.panel__intro { position: absolute; right: calc(var(--col) * .5); bottom: 9vh; width: min(30vw, 420px); font-size: 22px; font-weight: 500; line-height: 1.3; }
.moons { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.moon-body { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: grab; will-change: transform; touch-action: none; }
.moon-body:active { cursor: grabbing; }
.moon-body svg { width: 100%; height: 100%; display: block; }

.slide {
  position: relative; flex: none; width: 50vw; height: 100vh; min-height: 680px; overflow: hidden;
  background: var(--c); color: var(--fg, var(--white)); box-shadow: inset calc(var(--rule)) 0 0 var(--ink);
  display: grid; grid-template-rows: auto 1fr; padding: 34px 40px 0;
}
.slide__tags { display: flex; flex-wrap: wrap; gap: 14px; font-size: 15px; font-weight: 500; }
.slide__tags span { display: inline-flex; gap: 6px; align-items: center; }
.slide__tags svg { width: 18px; height: 18px; }
.slide__title { margin-top: 14px; font-size: clamp(36px, 3.4vw, 56px); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; max-width: 13ch; }
.slide__title small { display: block; margin-top: 8px; font-size: 18px; font-weight: 500; letter-spacing: 0; opacity: .8; }
.slide__plus { position: absolute; top: 30px; right: 34px; z-index: 6; background: var(--white); color: var(--ink); }
.slide__plus svg { stroke: currentColor; transition: rotate .35s var(--ease); }
.slide.is-modal-open .slide__plus svg { rotate: 45deg; }
.slide__media { position: relative; align-self: end; justify-self: center; width: min(80%, 62vh); aspect-ratio: 1; margin-bottom: 7vh; z-index: 2; }
.slide__view { position: absolute; left: 40px; bottom: 34px; z-index: 6; }
.slide__price { position: absolute; right: 40px; bottom: 34px; z-index: 6; font-size: 22px; font-weight: 600; }
.slide [data-reveal] { opacity: 0; translate: 0 40px; transition: opacity .6s var(--ease-out), translate .6s var(--ease-out); transition-delay: calc(var(--d, 0) * .1s); }
.slide.is-in [data-reveal] { opacity: 1; translate: 0 0; }

/* turntable sprite */
.spin { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 100% 100%; cursor: ew-resize; touch-action: pan-y; }
.spin.has-sheet { background-size: 800% 600%; }

/* translucent shape frieze along the bottom */
.frieze { position: absolute; left: 0; right: 0; bottom: 0; height: 18vh; z-index: 1; pointer-events: none; opacity: .22;
  background:
    radial-gradient(circle at 50% 100%, #fff 0 49.5%, transparent 50%) 0 100% / 9vh 9vh repeat-x,
    radial-gradient(circle at 50% 0, #fff 0 49.5%, transparent 50%) 4.5vh 100% / 9vh 4.5vh repeat-x,
    radial-gradient(circle, #fff 0 49.5%, transparent 50%) 0 0 / 9vh 9vh repeat-x;
  background-position: 0 100%, 4.5vh 100%, 2.25vh 0;
}
.frieze--light { opacity: .22; }

/* quick-add modal: the card turning over, same colour */
.qa {
  position: absolute; inset: 0; z-index: 5; background: inherit; color: inherit; padding: 120px 40px 34px;
  display: grid; align-content: end; gap: 18px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.is-modal-open .qa { opacity: 1; visibility: visible; }
.qa__desc { font-size: 15px; line-height: 1.6; max-width: 52ch; opacity: .92; }
.qa__row { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; border-top: 1px solid currentColor; padding-top: 12px; font-size: 14px; }
.qa__row select { appearance: none; font: inherit; font-weight: 600; color: inherit; background: transparent; border: 0; padding: 6px 24px 6px 0; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.qa__row select option { color: var(--ink); }
.qty { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 18px; line-height: 1; }
.qa__add { height: 52px; border-radius: 40px; background: var(--white); color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: .04em; transition: background .2s; }
.qa__add:hover { background: var(--sun); }
.qa__add.is-done { background: var(--ink); color: var(--white); }

/* dots */
.dots { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 20; display: flex; gap: 8px; padding: 8px 12px; border-radius: 20px; background: #14141455; backdrop-filter: blur(6px); }
.dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--white); opacity: .6; transition: all .3s ease; }
.dots i.is-active { width: 24px; opacity: 1; }

/* =====================================================================
   05 BUNDLES
   ===================================================================== */
.bundles { position: relative; background: var(--white); }
.bundles__row { display: grid; grid-template-columns: 1fr 1fr; }
.bundle { position: relative; height: 100vh; min-height: 680px; overflow: hidden; background: var(--c); color: var(--white); padding: 34px 40px 0; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 0 0 1px var(--ink); }
.bundle__topo { position: absolute; inset: 0; opacity: .25; pointer-events: none; }
.bundle__img { position: relative; z-index: 2; align-self: end; justify-self: center; width: 88%; margin-bottom: 9vh; transition: translate .6s var(--ease); filter: drop-shadow(0 30px 30px #0003); }
.bundle:hover .bundle__img { translate: 0 -12px; }
.bundles__row--cta { grid-template-columns: 1fr 1fr; }
.cta-cell { background: var(--cream); padding: 40px; display: grid; align-content: end; justify-items: start; gap: 14px; min-height: 28vw; box-shadow: 0 0 0 1px var(--ink); }
.cta-cell h3 { font-size: clamp(32px, 3vw, 48px); font-weight: 500; letter-spacing: -.02em; }
.cta-cell p { max-width: 40ch; color: var(--grey); }
.cta-cell .pill { margin-top: 10px; }
.poster-cell { overflow: hidden; box-shadow: 0 0 0 1px var(--ink); }
.poster-cell img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.poster-cell:hover img { scale: 1.04; }

/* =====================================================================
   06 FEATURED · Lunar Cup
   ===================================================================== */
.featured { position: relative; min-height: max(720px, 100vh); overflow: hidden; color: var(--white); display: grid; align-items: center; }
.featured__sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; padding: 120px 40px; width: 100%; align-items: center; }
.featured__info { grid-column: 1 / 5; display: grid; gap: 18px; justify-items: start; }
.featured__info h2 { font-size: clamp(40px, 3.6vw, 60px); font-weight: 500; letter-spacing: -.02em; text-shadow: 0 2px 20px #0004; }
.featured__price { font-size: 24px; font-weight: 600; }
.featured__copy { max-width: 36ch; opacity: .9; }
.featured__ctas { display: flex; gap: 12px; align-items: center; }
.mini-shapes { display: flex; gap: 4px; }
.ms { width: 28px; height: 28px; background: var(--c); border-radius: 50%; }
.ms--half { border-radius: 28px 28px 0 0; height: 14px; align-self: end; }
.ms--flip { border-radius: 0 0 28px 28px; align-self: start; }
.featured__frame { grid-column: 5 / 9; position: relative; aspect-ratio: 4 / 5; border-radius: 6px; background: #ffffff1a; border: 1px solid #ffffff40; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.spin--cup { inset: 8% 4% 12%; filter: drop-shadow(0 30px 30px #0005); transition: opacity .3s; }
.featured__hint { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.featured__opts { grid-column: 9 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-self: start; padding-top: 4vh; }
.opt__h { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; opacity: .8; }
.opt__h span { font-weight: 500; letter-spacing: .04em; text-transform: none; opacity: .8; }
.opt li button { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 0; font-size: 15px; transition: padding .25s var(--ease); }
.opt li button::before { content: "→"; position: absolute; left: 0; opacity: 0; transition: opacity .25s; }
.opt li button.is-active { padding-left: 22px; font-weight: 600; }
.opt li button.is-active::before { opacity: 1; }
.opt li button i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff6; }
.opt li button em { font-style: normal; opacity: .7; }
.featured .frieze { z-index: 1; }

/* =====================================================================
   07 REVIEWS
   ===================================================================== */
.reviews { padding: 90px 40px 100px; background: var(--white); border-top: var(--rule) solid var(--ink); overflow: hidden; }
.reviews__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.reviews__score { display: flex; gap: 18px; align-items: center; }
.reviews__mark { width: 64px; height: 64px; color: var(--indigo); }
.reviews__score h2 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.02em; }
.reviews__score p { color: var(--grey); }
.reviews__score b { color: var(--ink); font-size: 20px; }
.stars { color: var(--sun); -webkit-text-stroke: .8px var(--ink); letter-spacing: 2px; }
.reviews__nav { display: flex; gap: 10px; align-items: center; }
.reviews__viewport { overflow: visible; }
.reviews__track { display: flex; gap: 0; transition: translate .6s var(--ease); }
.rcard { flex: none; width: calc((100vw - 80px) / 4); min-width: 280px; padding: 28px; display: grid; gap: 10px; align-content: start; box-shadow: 0 0 0 1px var(--ink); background: var(--white); min-height: 280px; }
.rcard .av { width: 52px; height: 52px; border-radius: 50%; background: var(--c); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.rcard p { font-size: 17px; line-height: 1.5; }
.rcard small { color: var(--grey); margin-top: auto; }

/* =====================================================================
   08 STOCKISTS
   ===================================================================== */
.stockists { background: var(--cream-2); padding: 100px 0 0; text-align: center; border-top: var(--rule) solid var(--ink); }
.stockists h2 { font-size: clamp(44px, 5vw, 72px); font-weight: 500; letter-spacing: -.03em; text-transform: uppercase; padding: 0 20px; }
.stockists > p { font-size: clamp(17px, 1.6vw, 24px); color: var(--grey); max-width: 30ch; margin: 14px auto 0; }
.stockists__marquee { overflow: hidden; margin-top: 60px; height: 400px; }
.stockists__track { display: flex; width: max-content; animation: partners 30s linear infinite; }
.stockists__marquee:hover .stockists__track { animation-play-state: paused; }
@keyframes partners { to { translate: -50% 0; } }
.badge { width: 200px; height: 400px; flex: none; display: grid; grid-template-rows: 1fr 1fr; }
.badge svg { width: 200px; height: 200px; }
.badge text { font-family: var(--f); font-weight: 800; text-transform: uppercase; }

/* =====================================================================
   09 FOOTER
   ===================================================================== */
.footer { background: var(--ink) repeating-linear-gradient(90deg, #ffffff07 0 1px, transparent 1px 12.5vw); color: var(--white); }
.footer__top { display: grid; grid-template-columns: 1fr 1.2fr 1.8fr auto; min-height: 380px; border-bottom: 1px solid #ffffff14; }
.footer__col { padding: 50px 40px; border-right: 1px solid #ffffff14; display: grid; align-content: start; gap: 10px; }
.footer__col:last-child { border-right: 0; }
.footer__h { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffffff88; margin-bottom: 10px; }
.footer__col a { font-size: 15px; color: #ffffffcc; transition: color .2s; }
.footer__col a:hover { color: var(--sun); }
.footer__col p { color: #ffffffcc; line-height: 1.7; }
.footer__statement { font-size: clamp(24px, 2.2vw, 32px) !important; line-height: 1.2 !important; color: var(--white) !important; max-width: 20ch; margin-bottom: 40px; }
.news-row { display: flex; align-items: end; gap: 14px; }
.news-row input { flex: 1; font: inherit; font-size: 18px; color: var(--white); background: transparent; border: 0; border-bottom: 1.5px solid #ffffff55; padding: 10px 0; }
.news-row input:focus { outline: none; border-color: var(--sun); }
.news-row button { height: 46px; padding: 0 22px; background: var(--sun); color: var(--ink); font-weight: 700; }
.news-ok { color: var(--sun) !important; }
.footer__social { justify-items: center; }
.footer__stage { height: 640px; display: grid; place-items: center; padding: 40px; overflow: hidden; }
.footer__stage svg { width: min(1200px, 92vw); height: auto; }
.footer__base { display: flex; justify-content: space-between; padding: 18px 40px; font-size: 13px; color: #ffffff77; border-top: 1px solid #ffffff14; }

/* animated wordmark (our Lottie) */
.wm text { font-family: var(--f); font-weight: 900; fill: var(--white); letter-spacing: -4px; }
.wm .wm-line { fill: none; stroke: var(--sun); stroke-width: 6; stroke-linecap: round; }

/* =====================================================================
   OVERLAYS
   ===================================================================== */
.scrim { position: fixed; inset: 0; z-index: 70; background: #14141466; animation: fade .3s; }
.scrim[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.drawer-cart, .drawer-menu {
  position: fixed; top: 0; bottom: 0; z-index: 80; width: min(440px, 92vw); background: var(--white);
  display: flex; flex-direction: column; transition: translate .5s var(--ease); visibility: hidden;
}
.drawer-cart { right: 0; translate: 100% 0; border-left: var(--rule) solid var(--ink); }
.drawer-menu { left: 0; translate: -100% 0; border-right: var(--rule) solid var(--ink); }
.drawer-cart.is-open, .drawer-menu.is-open { translate: 0 0; visibility: visible; }
.dc__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: var(--rule) solid var(--ink); }
.dc__head h2 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.dc__ship { padding: 16px 24px; border-bottom: 1px solid #0002; font-size: 14px; display: grid; gap: 10px; }
.dc__ship[hidden] { display: none; }
.dc__bar { height: 10px; border-radius: 5px; background: var(--cream); overflow: hidden; border: 1.5px solid var(--ink); }
.dc__bar i { display: block; height: 100%; width: 0; background: var(--mint); transition: width .6s var(--ease); }
.dc__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 30px; font-size: 20px; font-weight: 500; }
.dc__moon { width: 120px; height: 120px; border-radius: 50%; border: 6px solid var(--ink); position: relative; overflow: hidden; }
.dc__moon::after { content: ""; position: absolute; inset: 0; background: var(--ink); border-radius: 50%; animation: phase 4s steps(8) infinite; }
@keyframes phase { 0% { translate: -100% 0; } 50% { translate: 0 0; } 100% { translate: 100% 0; } }
.dc__lines { flex: 1; overflow-y: auto; }
.dc__lines:empty { display: none; }
.dc-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 16px 24px; border-bottom: 1px solid #0002; }
.dc-line.is-new { animation: line-in .5s var(--ease); }
@keyframes line-in { from { background: var(--sun); } }
.dc-line__img { width: 84px; height: 84px; background: var(--c); display: grid; place-items: center; }
.dc-line__img img { width: 90%; }
.dc-line h4 { font-size: 17px; font-weight: 600; }
.dc-line p { font-size: 13px; color: var(--grey); }
.dc-line .qty { gap: 12px; justify-content: start; margin-top: 8px; font-size: 14px; }
.dc-line .qty button { width: 26px; height: 26px; font-size: 15px; }
.dc-line strong { font-size: 16px; }
.dc__foot { padding: 20px 24px; border-top: var(--rule) solid var(--ink); display: grid; gap: 12px; text-align: center; font-size: 13px; color: var(--grey); }
.dc__foot[hidden] { display: none; }
.dc__total { display: flex; justify-content: space-between; font-size: 20px; color: var(--ink); }
.dm__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--sun); border-bottom: var(--rule) solid var(--ink); }
.dm__bar > svg { width: 40px; height: 40px; }
.dm__links { display: grid; }
.dm__links a { padding: 18px 22px; font-size: 28px; font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; border-bottom: 1px solid var(--ink); }
.dm__links a:hover { background: var(--cream); }

.search { position: fixed; inset: 0; z-index: 90; background: #14141466; display: grid; justify-items: center; align-items: start; padding-top: 12vh; animation: fade .25s; }
.search[hidden] { display: none; }
.search__box { width: min(760px, 92vw); background: var(--white); border: var(--rule) solid var(--ink); border-radius: 24px; overflow: hidden; }
.search__row { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 22px; border-bottom: var(--rule) solid var(--ink); }
.search__row > svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.search__row input { flex: 1; font: inherit; font-size: 20px; border: 0; background: transparent; padding: 8px 0; }
.search__row input:focus { outline: none; }
.search__results { max-height: 60vh; overflow-y: auto; display: grid; grid-template-columns: 1.3fr 1fr; }
.sr-col { padding: 18px 22px; display: grid; align-content: start; gap: 6px; }
.sr-col + .sr-col { border-left: 1px solid #0002; }
.sr-h { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 6px; border-radius: 10px; }
.sr-item:hover { background: var(--cream); }
.sr-item i { width: 46px; height: 46px; flex: none; background: var(--c); display: grid; place-items: center; }
.sr-item img { width: 92%; }
.sr-item b { display: block; font-weight: 600; } .sr-item span { font-size: 13px; color: var(--grey); }
.sr-item mark { background: var(--sun); }
.sr-empty { padding: 24px; color: var(--grey); }

.popup { position: fixed; inset: 0; z-index: 95; background: #14141477; display: grid; place-items: center; padding: 20px; animation: fade .3s; }
.popup[hidden] { display: none; }
.popup__card { width: min(880px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border: 3px solid var(--ink); animation: pop-in .45s var(--ease); }
@keyframes pop-in { from { opacity: 0; scale: .94; } }
.popup__art { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; border-right: 3px solid var(--ink); min-height: 460px; }
.popup__body { position: relative; padding: 56px 40px 36px; display: grid; align-content: center; justify-items: center; gap: 14px; text-align: center; }
.popup__x { position: absolute; top: 14px; right: 14px; }
.popup__mark { width: 58px; height: 58px; color: var(--tangerine); }
.popup__body h2 { font-size: 44px; font-weight: 600; letter-spacing: -.02em; }
.popup__body p { color: var(--grey); max-width: 34ch; }
.popup__body form { width: 100%; display: grid; gap: 10px; margin-top: 8px; }
.popup__body input { font: inherit; font-size: 16px; padding: 14px 18px; border: 1.5px solid var(--ink); border-radius: 40px; text-align: center; }
.popup__ok { color: var(--ink) !important; font-weight: 600; }
.popup__body small { color: var(--grey); font-size: 12px; }
.offer-pill { position: fixed; left: 20px; bottom: 20px; z-index: 40; height: 40px; padding: 0 18px; border-radius: 20px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: translate .3s var(--ease); }
.offer-pill:hover { translate: 0 -3px; }
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, scale .2s; }
.totop.is-on { opacity: 1; visibility: visible; }
.totop:hover { scale: 1.1; }
.totop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* =====================================================================
   RESPONSIVE (<992px: no pin; 8 cols → 4)
   ===================================================================== */
@media (max-width: 991px) {
  :root { --col: 25vw; }
  .pillnav { display: none; }
  .round-btn--menu { display: grid; }
  .header { grid-template-columns: auto 1fr; padding: 12px 16px; }
  .header .round-btn[aria-label="Account"] { display: none; }
  .cart-pill { padding: 0 16px; }
  .lgrid--roasts .c1, .lgrid--roasts .c5 { grid-column: 1; } .lgrid--roasts .c2, .lgrid--roasts .c6 { grid-column: 2; }
  .lgrid--roasts .c3, .lgrid--roasts .c7 { grid-column: 3; } .lgrid--roasts .c4, .lgrid--roasts .c8 { grid-column: 4; }
  .lgrid--roasts .c1.r1, .lgrid--roasts .c2.r1, .lgrid--roasts .c3.r1, .lgrid--roasts .c4.r1 { grid-row: 1; }
  .lgrid--roasts .c5.r1, .lgrid--roasts .c6.r1, .lgrid--roasts .c7.r1, .lgrid--roasts .c8.r1 { grid-row: 2; }
  .lgrid--roasts .r2 { grid-row: 3; }
  .lgrid--roasts .c1.r2.span2 { grid-column: 1 / 3 !important; }
  .lgrid--roasts .c3.r2, .lgrid--roasts .c4.r2 { display: block; }
  .lgrid--roasts .c5.r2, .lgrid--roasts .c6.r2, .lgrid--roasts .c7.r2 { display: none; }
  .lgrid--roasts .c8.r2 { display: none; }
  .lgrid { grid-template-columns: repeat(4, var(--col)); }
  .shelf__track { display: block; width: auto; }
  .panel { width: 100%; height: auto; min-height: 0; padding-bottom: 260px; }
  .panel__intro { right: 20px; left: 20px; width: auto; bottom: 30px; font-size: 18px; }
  .slide { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 5.2; padding: 26px 22px 0; box-shadow: inset 0 var(--rule) 0 var(--ink); }
  .slide__title { font-size: 34px; }
  .slide__plus { top: 20px; right: 20px; }
  .slide__media { width: 82%; margin-bottom: 70px; }
  .slide__view { left: 22px; bottom: 24px; } .slide__price { right: 22px; bottom: 22px; }
  .slide [data-reveal] { opacity: 1; translate: 0 0; }
  .qa { padding: 90px 22px 24px; }
  .dots { display: none; }
  .bundles__row { grid-template-columns: 1fr; }
  .bundle { height: auto; aspect-ratio: 4 / 5; min-height: 0; padding: 26px 22px 0; }
  .cta-cell { min-height: 0; padding: 40px 22px; }
  .poster-cell img { aspect-ratio: 16 / 9; height: auto; }
  .featured__grid { grid-template-columns: 1fr; padding: 110px 22px 140px; gap: 30px; }
  .featured__info, .featured__frame, .featured__opts { grid-column: 1; }
  .featured__frame { width: min(100%, 420px); justify-self: center; }
  .featured__opts { padding-top: 0; }
  .reviews { padding: 70px 20px; }
  .rcard { width: 82vw; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__news { grid-column: 1 / -1; order: -1; }
  .footer__social { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 12px; }
  .footer__col { padding: 34px 22px; border-right: 0; border-bottom: 1px solid #ffffff14; }
  .footer__stage { height: 300px; }
  .popup__card { grid-template-columns: 1fr; }
  .popup__art { min-height: 0; height: 180px; border-right: 0; border-bottom: 3px solid var(--ink); }
  .popup__body { padding: 30px 22px 24px; }
  .search__results { grid-template-columns: 1fr; }
  .sr-col + .sr-col { border-left: 0; border-top: 1px solid #0002; }
  .hero { height: max(640px, calc(100svh - 36px)); }
  .hero__title { top: 15%; font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =====================================================================
   AWARD ROUND: preloader, cursor, serif accents, hero chapters,
   Tonight's Moon, product takeover, progress moon, WebGL layer
   ===================================================================== */
@property --hole { syntax: "<length>"; inherits: false; initial-value: 0px; }
:root { --serif: "Instrument Serif", Georgia, "Times New Roman", serif; --ease-io: cubic-bezier(.76, 0, .24, 1); --ease-expo: cubic-bezier(.16, 1, .3, 1); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow--dim { opacity: .65; }

/* WebGL layer: one canvas for every tin and cup */
.gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 30; pointer-events: none; }
.is-3d { background-image: none !important; }
.is-grabbing { cursor: grabbing !important; }
.dots { z-index: 35; }

/* preloader */
.preloader {
  position: fixed; inset: 0; z-index: 400; background: var(--ink); color: var(--white); display: grid; place-items: center;
  -webkit-mask: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), transparent var(--hole), #000 calc(var(--hole) + 1px));
  transition: --hole 1.1s var(--ease-io);
}
.preloader.is-open { --hole: 150vmax; pointer-events: none; }
.pl__brand { position: absolute; left: 32px; top: 28px; display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pl__brand svg { width: 26px; height: 26px; color: var(--white); }
.pl__moon { width: min(40vmin, 340px); will-change: transform; }
.pl__count { position: absolute; left: 26px; bottom: 6px; font-size: clamp(96px, 17vw, 260px); font-weight: 900; line-height: .82; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.pl__phase { position: absolute; right: 32px; bottom: 34px; font-size: clamp(30px, 3.4vw, 56px); color: var(--sun); }
html.is-loading, html.is-loading body { overflow: hidden; }

/* moon cursor (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 500; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; mix-blend-mode: difference; opacity: 0; will-change: transform;
  transition: width .35s var(--ease-expo), height .35s var(--ease-expo), margin .35s var(--ease-expo), opacity .3s; display: grid; place-items: center; }
.has-cursor .cursor { opacity: 1; }
.cursor svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cursor circle { fill: #fff; } .cursor path { fill: #000; transition: opacity .2s; }
.cursor span { position: relative; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
.cursor.is-big path { opacity: 0; }
.cursor.is-big span { opacity: 1; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cursor.is-link path { opacity: 0; }
.cursor.is-down { scale: .8; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor select, .has-cursor textarea { cursor: text !important; }

/* text roll on hover */
.rl { display: inline-block; overflow: hidden; vertical-align: bottom; line-height: 1.3; }
.rl > span { display: inline-block; text-shadow: 0 1.3em 0 currentColor; transition: translate .5s var(--ease-io); }
:is(.pill, .pillnav__item, .cart-pill, .link-grow, .dm__links a):hover .rl > span { translate: 0 -1.3em; }

/* word reveal for big headings */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .1em; margin: 0 -.04em -.1em; }
.w > span { display: inline-block; translate: 0 105%; transition: translate 1s var(--ease-expo); transition-delay: calc(var(--i) * 55ms); }
.is-revealed .w > span { translate: 0 0; }

/* hero: masked lines, serif accent, chapters */
.hero__title { top: 19%; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: block; translate: 0 112%; transition: translate 1.2s var(--ease-expo); }
.hero__title .line:nth-child(2) > span { transition-delay: .08s; } .hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.hero.is-in .hero__title .line > span { translate: 0 0; }
.hero__title em { text-transform: none; font-size: 1.18em; line-height: .9; }
.chapters { position: absolute; left: 28px; bottom: 28px; z-index: 3; display: flex; gap: 14px; transition: color .5s; }
.chapters button { display: grid; grid-template-columns: auto 1fr; gap: 8px 8px; width: 148px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .55; transition: opacity .3s; }
.chapters button.is-on { opacity: 1; }
.chapters i { grid-column: 1 / -1; height: 3px; background: color-mix(in srgb, currentColor 22%, transparent); border-radius: 2px; overflow: hidden; }
.chapters b { display: block; height: 100%; background: currentColor; transform: scaleX(var(--p, 0)); transform-origin: left; }
.chapters span { opacity: .6; }
.hero[data-dark] .chapters, .hero[data-dark] .hero__scroll { color: var(--white); }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 3; display: grid; justify-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; transition: color .5s; }
.hero__scroll i { width: 2px; height: 42px; background: color-mix(in srgb, currentColor 25%, transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: currentColor; animation: scroll-cue 1.8s var(--ease-io) infinite; }
@keyframes scroll-cue { 0% { translate: 0 -100%; } 100% { translate: 0 260%; } }

/* letter-tile cascade when the grid first appears */
.tile.is-cascade .flip { animation: cascade 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes cascade { 0% { transform: rotateY(0); } 40%, 60% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

.slide__view { font: inherit; font-weight: 600; font-size: 15px; color: inherit; }

/* =====================================================================
   TONIGHT'S MOON
   ===================================================================== */
.tonight { position: relative; overflow: hidden; background: #0c0d2a; color: var(--white); padding: 130px 40px 90px; border-top: var(--rule) solid var(--ink); --c: var(--sun); }
.tonight__stars { position: absolute; inset: 0; opacity: .7; pointer-events: none; background:
  radial-gradient(1.4px 1.4px at 30px 40px, #fff, transparent), radial-gradient(1px 1px at 160px 220px, #fff, transparent),
  radial-gradient(1.6px 1.6px at 280px 90px, #fff, transparent), radial-gradient(1px 1px at 90px 310px, #fff, transparent),
  radial-gradient(1.2px 1.2px at 330px 260px, #fff, transparent), radial-gradient(1px 1px at 210px 150px, #fff, transparent);
  background-size: 360px 360px; animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .35; } }
.tonight__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.tonight__copy { display: grid; gap: 34px; align-content: center; }
.tonight__phase { font-size: clamp(64px, 8.4vw, 148px); font-weight: 900; line-height: .84; letter-spacing: -.045em; text-transform: uppercase; }
.tonight__phase em { display: block; text-transform: none; font-size: 1.08em; letter-spacing: -.02em; color: var(--c); transition: color .6s, opacity .25s, translate .25s; }
.tonight__phase [data-tn-w1] { display: inline-block; transition: opacity .25s, translate .25s; }
.tonight.is-swap .tonight__phase [data-tn-w1], .tonight.is-swap .tonight__phase em { opacity: 0; translate: 0 12px; }
.tonight__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 0; border-top: 1px solid #ffffff26; }
.tonight__stats div { padding: 18px 34px 0 0; margin-right: 34px; border-right: 1px solid #ffffff1a; }
.tonight__stats div:last-child { border-right: 0; }
.tonight__stats dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.tonight__stats dd { margin: 6px 0 0; font-size: clamp(28px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tonight__pick { display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: center; padding: 18px; border: 1px solid #ffffff22; border-radius: 22px; background: #ffffff08; max-width: 640px; }
.tonight__tin { position: relative; width: 210px; aspect-ratio: 1; touch-action: pan-y; }
.tonight__tin::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: var(--c); transition: background-color .6s; }
.tonight__tin.spin { inset: auto; }
.tonight__pickcopy { display: grid; gap: 8px; justify-items: start; }
.tonight__pickcopy h3 { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.tonight__pickcopy p:not(.eyebrow) { opacity: .8; max-width: 38ch; }
.tonight__ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.tonight .link-grow { color: var(--white); }
.tonight__moon { position: relative; width: min(100%, 620px); aspect-ratio: 1; justify-self: center; }
.tonight__moon svg { width: 100%; height: 100%; overflow: visible; }
.tonight__moon svg { position: relative; }
/* the halo is an HTML layer so its pulse runs on the compositor: animating an SVG circle repainted
   the masked, blurred moon underneath every frame */
.tn-halo { position: absolute; inset: 0; transition: opacity .3s; }
.tn-halo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, #fff6d859 55%, #fff6d800 100%); animation: halo 6s ease-in-out infinite alternate; }
@keyframes halo { to { opacity: .6; } }

.cycle { position: relative; margin-top: 80px; }
.cycle__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 52px; }
.cycle__reset { color: var(--sun); font-weight: 600; font-size: 14px; }
.cycle__reset[hidden] { display: none; }
.cycle__track { position: relative; height: 96px; border-block: 1px solid #ffffff22; cursor: ew-resize; touch-action: pan-y; }
.cycle__track:focus-visible { outline: 2px solid var(--sun); outline-offset: 6px; }
.cycle__moons { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 2px; pointer-events: none; }
.cycle__moons svg { width: clamp(12px, 2.1vw, 30px); height: auto; transition: scale .3s var(--ease-expo); }
.cycle__moons svg.is-near { scale: 1.5; }
.cycle__handle { position: absolute; top: -12px; bottom: -12px; left: 0; width: 2px; background: var(--sun); translate: -1px 0; pointer-events: none; transition: left .5s var(--ease-expo); }
.cycle.is-dragging .cycle__handle { transition: none; }
.cycle__handle span { position: absolute; top: -30px; left: 50%; translate: -50% 0; white-space: nowrap; padding: 4px 10px; border-radius: 20px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.cycle__labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }

/* =====================================================================
   PRODUCT TAKEOVER
   ===================================================================== */
.takeover { position: fixed; inset: 0; z-index: 120; background: var(--c, var(--indigo)); color: var(--fg, var(--white)); overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .95s var(--ease-io), background-color .7s ease, color .7s ease; }
.takeover[hidden] { display: none; }
.takeover.is-open { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); }
.to__bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 22px 32px; }
.to__crumb { display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.to__crumb svg { width: 28px; height: 28px; }
.to__nav { display: flex; gap: 10px; }
.takeover .round-btn { background: transparent; border-color: currentColor; color: inherit; }
.takeover .round-btn:hover { background: var(--fg, #fff); color: var(--c); }
.to__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 92px); }
.to__stage { position: sticky; top: 92px; height: calc(100vh - 92px); display: grid; place-items: center; overflow: hidden; }
.to__ghost { position: absolute; left: 50%; top: 50%; translate: -50% -50%; white-space: nowrap; font-size: clamp(120px, 17vw, 300px); font-weight: 900; line-height: .8; letter-spacing: -.05em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 2px currentColor; opacity: .22; pointer-events: none; }
.to__tin { position: relative; width: min(42vw, 72vh); aspect-ratio: 1; touch-action: pan-y; }
.to__hint { position: absolute; bottom: 26px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.to__info { padding: 10px 56px 90px 20px; display: grid; gap: 26px; align-content: start; max-width: 720px; }
.to__info > * { opacity: 0; translate: 0 30px; transition: opacity .7s var(--ease-expo), translate .7s var(--ease-expo); transition-delay: calc(var(--k, 0) * 60ms + .35s); }
.takeover.is-ready .to__info > * { opacity: 1; translate: 0 0; }
.takeover.is-swapping .to__info > * { opacity: 0; translate: 0 18px; transition-delay: 0s; transition-duration: .25s; }
.to__no { font-size: 14px; font-weight: 800; letter-spacing: .16em; }
.to__name { font-size: clamp(56px, 7vw, 120px); font-weight: 900; line-height: .86; letter-spacing: -.045em; text-transform: uppercase; }
.to__sub { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; }
.to__desc { font-size: 18px; line-height: 1.6; max-width: 54ch; }
.to__notes { display: flex; flex-wrap: wrap; gap: 8px; }
.to__notes span { padding: 8px 16px; border: 1.5px solid currentColor; border-radius: 40px; font-weight: 600; font-size: 14px; }
.to__origin { margin: 0; display: grid; gap: 10px; }
.to__origin img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: var(--rule) solid var(--ink); }
.to__origin figcaption { font-size: 13px; opacity: .75; }
.to__specs { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1.5px solid currentColor; }
.to__specs div { padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.to__specs dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.to__specs dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.to__profile { display: grid; gap: 12px; }
.to__profile div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.to__profile .seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.to__profile .seg i { height: 12px; border-radius: 6px; border: 1.5px solid currentColor; }
.to__profile .seg i.on { background: currentColor; animation: seg-in .5s var(--ease-expo) both; animation-delay: calc(var(--j) * 70ms + .6s); }
@keyframes seg-in { from { scale: 0 1; transform-origin: left; } }
.to__brew { display: grid; gap: 16px; padding: 22px; border: 1.5px solid currentColor; border-radius: 22px; }
.to__tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.to__tabs button { padding: 8px 16px; border-radius: 40px; border: 1.5px solid currentColor; font-weight: 600; font-size: 14px; }
.to__tabs button[aria-selected="true"] { background: var(--fg, #fff); color: var(--c); }
.to__tabs button .tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; margin-left: 6px; opacity: .8; }
.to__recipe { display: grid; gap: 14px; }
.to__recipe .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.to__recipe .nums b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.to__recipe .nums span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.to__recipe ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.to__buy { display: flex; gap: 12px; align-items: center; position: sticky; bottom: 20px; padding: 10px; border-radius: 40px; background: var(--fg, #fff); width: max-content; max-width: 100%; }
.to__buy select { font: inherit; font-weight: 600; padding: 0 16px; height: 48px; border-radius: 40px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); }
.to__buy .pill { border-color: var(--c); }

/* progress moon = back to top */
.moonbar { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; opacity: 0; visibility: hidden; translate: 0 12px; transition: opacity .4s, visibility .4s, translate .4s var(--ease-expo); }
.moonbar.is-on { opacity: 1; visibility: visible; translate: 0 0; }
.moonbar svg { width: 52px; height: 52px; filter: drop-shadow(0 4px 12px #0003); transition: scale .3s var(--ease-expo); }
.moonbar:hover svg { scale: 1.1; }
.moonbar span { padding: 6px 12px; border-radius: 20px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .06em; opacity: 0; translate: 8px 0; transition: opacity .3s, translate .3s; white-space: nowrap; }
.moonbar:hover span { opacity: 1; translate: 0 0; }
.totop { display: none; }

@media (max-width: 991px) {
  .chapters { left: 16px; right: 16px; bottom: 84px; gap: 8px; }
  .chapters button { width: auto; flex: 1; font-size: 10px; }
  .chapters button span { display: none; }
  .hero__scroll { bottom: 18px; }
  .hero__scroll i { height: 28px; }
  .tonight { padding: 90px 20px 60px; }
  .tonight__grid { grid-template-columns: 1fr; }
  .tonight__moon { order: -1; width: min(86vw, 420px); }
  .tonight__stats div { padding-right: 16px; margin-right: 16px; }
  .tonight__pick { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tonight__pickcopy { justify-items: center; }
  .tonight__tin { width: 200px; }
  .cycle { margin-top: 50px; }
  .cycle__labels span:nth-child(2), .cycle__labels span:nth-child(4) { display: none; }
  .to__bar { padding: 14px 16px; }
  .to__grid { grid-template-columns: 1fr; }
  .to__stage { position: relative; top: 0; height: 62vh; }
  .to__tin { width: min(86vw, 52vh); }
  .to__info { padding: 10px 20px 90px; }
  .to__recipe .nums { grid-template-columns: repeat(2, 1fr); }
  .to__buy { width: 100%; }
  .to__buy .pill { flex: 1; }
  .pl__count { font-size: 28vw; }
  .pl__phase { right: 20px; bottom: 26px; }
}

.to__wipe { position: fixed; inset: 0; z-index: 0; pointer-events: none; clip-path: circle(0% at 50% 50%); }
.to__inner { position: relative; z-index: 1; }
.takeover { transition: clip-path .95s var(--ease-io); }

.slide__phase { position: absolute; left: 50%; top: 52%; width: min(70%, 64vh); aspect-ratio: 1; translate: -50% -50%; z-index: 0; pointer-events: none; color: var(--fg); }
.slide__phase svg { width: 100%; height: 100%; animation: phase-spin 60s linear infinite; }
@keyframes phase-spin { to { rotate: 360deg; } }
.slide__phase { opacity: 0; transition: opacity 1.4s ease .2s; } .slide.is-in .slide__phase { opacity: 1; }
@media (max-width: 991px) { .slide__phase { top: 58%; width: 78%; } }

@media (max-width: 991px) {
  .panel { padding-bottom: 300px; }
  .panel__intro { position: relative; inset: auto; padding: 26px 20px 0; width: auto; }
  .tonight__stats { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .tonight__stats div { padding: 14px 10px 0 0; margin-right: 10px; }
  .tonight__stats dd { font-size: clamp(20px, 6.2vw, 34px); white-space: nowrap; }
  .tonight__stats dt { font-size: 10px; letter-spacing: .1em; }
}

/* popup poster: show the whole artwork on its own night-sky colour */
.popup__art { object-fit: contain; background: #162363; padding: 18px; }
@media (max-width: 991px) { .popup__art { height: 210px; padding: 10px; } }

/* =====================================================================
   ROUND 4: page transitions, sound toggle, product pages
   ===================================================================== */

/* cross-document View Transitions: the tin morphs, the new page opens as a circle */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.header { view-transition-name: header; }
.announce { view-transition-name: announce; }
::view-transition-group(tin) { animation-duration: .95s; animation-timing-function: cubic-bezier(.76, 0, .24, 1); }
/* the tin keeps the browser's own plus-lighter crossfade, so it never turns see-through mid-flight */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: vt-reveal .95s cubic-bezier(.76, 0, .24, 1) both; }
::view-transition-old(header), ::view-transition-new(header), ::view-transition-old(announce), ::view-transition-new(announce) { animation-duration: .5s; }
@keyframes vt-reveal { from { clip-path: circle(0% at var(--vt-x, 50%) var(--vt-y, 50%)); } to { clip-path: circle(150% at var(--vt-x, 50%) var(--vt-y, 50%)); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
.page-wipe { position: fixed; inset: 0; z-index: 9999; pointer-events: none; clip-path: circle(0% at 50% 50%); }

/* slide titles are links now */
.slide__title a { color: inherit; text-decoration: none; }
.slide__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }
.slide__view { text-decoration: none; }

/* the hero's scroll cue moves next to the pause button so the scenes stay clean */
.hero__scroll { left: auto; right: 90px; bottom: 30px; translate: none; grid-auto-flow: column; align-items: center; gap: 10px; }
.hero__scroll i { height: 24px; }
@media (max-width: 991px) { .hero__scroll { display: none; } }

/* sound toggle: four bars that dance when the moon hums */
.sound-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); display: flex; align-items: center; justify-content: center; gap: 3px; transition: background .2s; }
.sound-btn:hover { background: #f0ece3; }
.sound-btn i { width: 3px; height: 5px; border-radius: 2px; background: var(--ink); transition: height .3s; }
.sound-btn.is-on { background: var(--sun); }
.sound-btn.is-on i { animation: eq .8s ease-in-out infinite alternate; }
.sound-btn.is-on i:nth-child(2) { animation-delay: -.3s; animation-duration: .7s; }
.sound-btn.is-on i:nth-child(3) { animation-delay: -.55s; animation-duration: .9s; }
.sound-btn.is-on i:nth-child(4) { animation-delay: -.15s; animation-duration: .65s; }
@keyframes eq { 0% { height: 4px; } 100% { height: 18px; } }
.sound-hint { position: absolute; top: calc(100% + 6px); right: 196px; z-index: 5; padding: 10px 16px; border-radius: 20px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; translate: 0 -6px; transition: opacity .4s, translate .4s var(--ease-expo); pointer-events: none; }
.sound-hint em { color: var(--sun); font-size: 1.15em; }
.sound-hint::before { content: ""; position: absolute; top: -6px; right: 22px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--ink); }
.sound-hint.is-on { opacity: 1; translate: 0 0; }
@media (max-width: 991px) { .sound-hint { right: 120px; } .sound-btn { width: 44px; height: 44px; } }

/* =====================================================================
   PRODUCT PAGE (roast-<id>.html)
   ===================================================================== */
.roast-page { background: var(--white); }
.pd__hero { position: relative; min-height: max(100vh, 760px); display: grid; grid-template-columns: 1.05fr 1fr; background: var(--c); color: var(--fg); overflow: hidden; padding-top: 110px; }
.pd__stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.pd__ghost { position: absolute; left: 50%; top: 50%; translate: -50% -50%; white-space: nowrap; font-size: clamp(120px, 15vw, 260px); font-weight: 900; line-height: .8; letter-spacing: -.05em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px currentColor; opacity: .2; pointer-events: none; }
.pd__phase { position: absolute; left: 50%; top: 50%; width: min(88%, 74vh); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.pd__phase svg { width: 100%; height: 100%; animation: phase-spin 80s linear infinite; }
.pd__tin { position: relative; inset: auto; width: min(44vw, 70vh); aspect-ratio: 1; view-transition-name: tin; background-size: 84% auto !important; background-position: 50% 52% !important; background-repeat: no-repeat; touch-action: pan-y; }
.pd__tin.is-3d { background-image: none !important; }
.pd__hint { position: absolute; bottom: 30px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.pd__info { position: relative; z-index: 2; display: grid; gap: 18px; align-content: center; justify-items: start; padding: 30px 56px 70px 10px; max-width: 680px; }
.pd__info > * { animation: pd-rise .9s var(--ease-expo) both; animation-delay: calc(var(--k, 0) * 70ms + .35s); }
.pd__info > :nth-child(1) { --k: 0; } .pd__info > :nth-child(2) { --k: 1; } .pd__info > :nth-child(3) { --k: 2; } .pd__info > :nth-child(4) { --k: 3; }
.pd__info > :nth-child(5) { --k: 4; } .pd__info > :nth-child(6) { --k: 5; } .pd__info > :nth-child(7) { --k: 6; } .pd__info > :nth-child(8) { --k: 7; }
@keyframes pd-rise { from { opacity: 0; translate: 0 28px; } }
.pd__crumb { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pd__crumb a { text-decoration: underline; text-underline-offset: .2em; }
.pd__crumb span { opacity: .5; margin: 0 4px; }
.pd__name { font-size: clamp(64px, 8.2vw, 148px); font-weight: 900; line-height: .84; letter-spacing: -.05em; text-transform: uppercase; }
.pd__tagline { font-size: clamp(30px, 2.8vw, 44px); line-height: 1.05; margin-top: -4px; }
.pd__sub { font-size: 16px; font-weight: 600; opacity: .8; }
.pd__notes { display: flex; flex-wrap: wrap; gap: 8px; }
.pd__notes span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid currentColor; border-radius: 40px; font-weight: 600; font-size: 14px; }
.pd__notes svg { width: 16px; height: 16px; }
.pd__buy { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; width: 100%; margin-top: 6px; }
.pd__buy label, .pd__qty { display: grid; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pd__buy select { font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; height: 50px; padding: 0 16px; border-radius: 40px; border: 1.5px solid currentColor; background: transparent; color: inherit; }
.pd__buy select option { color: var(--ink); }
.pd__qty .qty { height: 50px; padding: 0 8px; gap: 12px; border: 1.5px solid currentColor; border-radius: 40px; font-size: 15px; letter-spacing: 0; }
.pd__add { grid-column: 1 / -1; height: 56px; font-size: 16px; }
.pd__hero .pill--ink { background: var(--fg); color: var(--c); border-color: var(--fg); }
.pd__hero .pill--ink:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.pd__pair { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.pd__pair svg { width: 26px; height: 26px; flex: none; }
.pd__perks { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; font-weight: 600; opacity: .8; }
.pd__perks li::before { content: "◐ "; }

.pd__story { padding: 150px 40px 130px; display: grid; justify-items: center; gap: 34px; text-align: center; background: var(--white); }
.pd__quote { font-size: clamp(42px, 6vw, 104px); line-height: .98; max-width: 16ch; color: var(--ink); }
.pd__quote em { color: inherit; }
.pd__desc { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; max-width: 58ch; color: #3b3832; }

.pd__origin { display: grid; grid-template-columns: 1.15fr 1fr; border-top: var(--rule) solid var(--ink); }
.pd__photo { margin: 0; position: relative; overflow: hidden; min-height: 82vh; border-right: var(--rule) solid var(--ink); }
.pd__photo-in { position: absolute; inset: 0; will-change: transform; transform: scale(1.18); }
.pd__photo img { width: 100%; height: 100%; object-fit: cover; }
.pd__photo figcaption { position: absolute; left: 20px; bottom: 20px; right: 20px; padding: 10px 16px; border-radius: 30px; background: #141414aa; color: var(--white); font-size: 13px; backdrop-filter: blur(6px); justify-self: start; width: max-content; max-width: calc(100% - 40px); }
.pd__originfacts { padding: 90px 56px; display: grid; gap: 34px; align-content: center; }
.pd__originfacts h2, .pd__taste h2, .pd__nights h2, .pd__more h2 { font-size: clamp(44px, 4.6vw, 80px); font-weight: 600; letter-spacing: -.03em; line-height: .95; }
.pd__originfacts .to__specs { border-top-color: var(--ink); }

.pd__taste { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; padding: 120px 56px; background: var(--cream); border-top: var(--rule) solid var(--ink); align-items: start; }
.pd__taste > div:first-child { display: grid; gap: 40px; }
.pd__taste .to__profile div { grid-template-columns: 140px 1fr; font-size: 14px; }
.pd__taste .seg i { border-color: var(--ink); height: 16px; }
.pd__taste .seg i.on { background: var(--c); }
.pd__brew { background: var(--white); border-color: var(--ink); gap: 22px; padding: 30px; }
.pd__brew h2 { margin-bottom: 4px; }
.pd__taste .to__tabs button { border-color: var(--ink); }
.pd__taste .to__tabs button[aria-selected="true"] { background: var(--c); color: var(--fg); border-color: var(--c); }

.pd__nights { padding: 110px 56px 120px; background: #0c0d2a; color: var(--white); display: grid; gap: 50px; }
.pd__nightshead { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.pd__nightshead p { max-width: 36ch; opacity: .7; }
.pd__cal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.pd-night { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; border: 1px solid #ffffff1c; font-size: 12px; transition: background .3s, transform .3s var(--ease-expo); }
.pd-night:hover { transform: translateY(-4px); }
.pd-night svg { width: 34px; height: 34px; }
.pd-night__disc { fill: #ffffff1f; }
.pd-night__lit { fill: var(--white); }
.pd-night__dow { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.pd-night__date { font-weight: 600; }
.pd-night.is-match { background: var(--c); color: var(--fg); border-color: var(--c); }
.pd-night.is-match .pd-night__dow { opacity: .85; }
.pd-night.is-match .pd-night__disc { fill: color-mix(in srgb, var(--fg) 18%, transparent); }
.pd-night.is-match .pd-night__lit { fill: var(--fg); }
.pd-night.is-today { outline: 2px solid var(--sun); outline-offset: 2px; }

.pd__more { padding: 110px 56px 90px; display: grid; gap: 44px; background: var(--white); border-top: var(--rule) solid var(--ink); }
.pd__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pd-card { position: relative; display: grid; gap: 4px; padding: 22px 22px 26px; background: var(--c); color: var(--fg); box-shadow: 0 0 0 1px var(--ink); overflow: hidden; min-height: 420px; align-content: end; }
.pd-card__img { position: absolute; left: 50%; top: 42%; width: 78%; translate: -50% -50%; transition: translate .6s var(--ease-expo), rotate .6s var(--ease-expo); }
.pd-card:hover .pd-card__img { translate: -50% -56%; rotate: -4deg; }
.pd-card__img img { width: 100%; filter: drop-shadow(0 18px 18px #0003); }
.pd-card__no { font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.pd-card__name { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.pd-card__sub { font-size: 13px; opacity: .8; }
.pd-card__price { font-size: 15px; font-weight: 700; margin-top: 6px; }
.pd__pager { display: grid; grid-template-columns: 1fr auto 1fr; border-top: var(--rule) solid var(--ink); background: var(--white); }
.pd__pager a { display: grid; gap: 4px; padding: 34px 40px; transition: background .3s; }
.pd__pager a:hover { background: var(--c); }
.pd__pager a:last-child { text-align: right; }
.pd__pager span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pd__pager b { font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -.02em; }
.pd__pager-all { align-content: center; border-inline: var(--rule) solid var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.pd__pager-all:hover { background: var(--sun) !important; }
.footer--slim .footer__base { border-top: 0; }

@media (max-width: 991px) {
  .pd__hero { grid-template-columns: 1fr; padding-top: 90px; }
  .pd__stage { min-height: 0; height: 62vh; }
  .pd__tin { width: min(82vw, 52vh); }
  .pd__ghost { font-size: 26vw; }
  .pd__info { padding: 10px 20px 60px; }
  .pd__buy { grid-template-columns: 1fr 1fr; }
  .pd__qty { grid-column: 1 / -1; }
  .pd__story { padding: 90px 20px; }
  .pd__origin { grid-template-columns: 1fr; }
  .pd__photo { min-height: 60vh; border-right: 0; border-bottom: var(--rule) solid var(--ink); }
  .pd__originfacts { padding: 60px 20px; }
  .pd__taste { grid-template-columns: 1fr; padding: 70px 20px; gap: 40px; }
  .pd__taste .to__profile div { grid-template-columns: 110px 1fr; }
  .pd__brew { padding: 20px; }
  .pd__nights { padding: 70px 20px; }
  .pd__cal { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .pd__more { padding: 70px 20px; }
  .pd__cards { grid-template-columns: 1fr 1fr; }
  .pd-card { min-height: 300px; padding: 16px; }
  .pd-card__name { font-size: 24px; }
  .pd__pager { grid-template-columns: 1fr 1fr; }
  .pd__pager-all { display: none; }
  .pd__pager a { padding: 24px 20px; }
  .header--roast .pillnav { display: none; }
  .header--roast { grid-template-columns: auto 1fr; }
}

/* ================= ROUND 5 · performance ================= */
/* CSS loops pause while their section is off screen (js: pauseOffscreen) */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
.drawer-cart:not(.is-open) *, .drawer-cart:not(.is-open) *::after, .drawer-menu:not(.is-open) *, .drawer-menu:not(.is-open) *::after { animation-play-state: paused !important; }
/* off-screen sections skip rendering (js: skipOffscreen); not the shelf, whose pin must stay position: fixed */
.hero { contain-intrinsic-size: auto 100vh; }
.tonight, .bundles, .featured, .reviews, .stockists, .footer { contain-intrinsic-size: auto 900px; }
.cv-ready .hero.cv-later, .cv-ready .tonight, .cv-ready .bundles, .cv-ready .featured, .cv-ready .reviews, .cv-ready .stockists, .cv-ready .footer { content-visibility: auto; overflow-clip-margin: 24px; /* tiles flipping in 3D at an edge */ }
