/* Raíz Coffee Co. · landing page
   Palette sampled from the packaging mockups (design/). */

/* Self-hosted fonts (SIL OFL, licences in assets/fonts). Variable files: one per style
   covers every weight used. Latin subset; Cinzel is cut down to the four logo letters. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/jost.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/cinzel-raiz.woff2") format("woff2");
}

:root {
  --green-950: #0c2014;
  --green-900: #122918;
  --green-800: #173521;
  --green-700: #21452c;
  --green-600: #2d5a3a;

  --gold-300: #dcc398;
  --gold-400: #c6a36c;
  --gold-500: #b08850;
  --gold-600: #8e6a3f;
  --gold-700: #765632;

  --cream-50: #fbf9f5;
  --cream-100: #f2eee7;
  --cream-200: #e7e1d8;
  --cream-300: #d8cfc1;

  --ink-900: #18211b;
  --ink-700: #3b433d;
  --ink-500: #5d655e;

  /* K-Cup lid colours */
  --lid: #f4efe6;
  --lid-ink: #4a453c;

  /* Roast bands, as printed */
  --roast-dark: #2b170c;
  --roast-medium: #9c692a;
  --roast-light: #6f7a2c;
  --roast-decaf: #97302d;
  /* Lifted versions that read on the dark green */
  --roast-dark-hi: #b08061;
  --roast-medium-hi: #d3a35f;
  --roast-light-hi: #b4c063;
  --roast-decaf-hi: #e07a6c;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --font-mark: "Cinzel", "Cormorant Garamond", Georgia, serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --radius: 14px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-soft: 0 1px 2px rgba(18, 41, 24, .05), 0 22px 44px -26px rgba(18, 41, 24, .38);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream-100);
  color: var(--ink-900);
  font: 400 1.0625rem/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p { text-wrap: pretty; }

/* Cormorant defaults to old-style figures (its 1 reads like an I); data uses lining figures */
.price, .specs dd, .brew-stats dd, .bag-item__price, .drawer__total strong, .roast-panel__try strong {
  font-variant-numeric: lining-nums;
}

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
::selection { background: var(--gold-300); color: var(--green-950); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: 16px; top: -120px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--cream-50);
  color: var(--green-900);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.35rem;
  font: 500 .75rem/1.3 var(--font-sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--light { color: var(--gold-400); }

.h2 {
  font: 600 clamp(2.5rem, 1.6rem + 3.4vw, 4.4rem)/1.02 var(--font-display);
  letter-spacing: -.015em;
  color: var(--green-900);
  text-wrap: balance;
}
.h2 em, .hero__title em { font-style: italic; font-weight: 500; }
/* Gilded italics: gold text with a highlight band parked off to the side; .shimmer sweeps it across once */
.h2 em, .hero__title em {
  --g: var(--gold-600);
  --g-hi: #e3c48c;
  background: linear-gradient(100deg, var(--g) 42%, var(--g-hi) 50%, var(--g) 58%) 100% 0 / 280% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font: 500 clamp(1.4rem, 1.15rem + .9vw, 1.8rem)/1.35 var(--font-display);
  color: var(--green-900);
  text-wrap: pretty;
}

.section { padding-block: clamp(80px, 10vw, 136px); }

.section-head { max-width: 640px; }
.section-head__sub { margin-top: 1.35rem; max-width: 34rem; color: var(--ink-500); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { flex-direction: column; gap: 1rem; }
.section-head--center .eyebrow::before { width: 1px; height: 30px; }
.section-head--center .section-head__sub { margin-inline: auto; }
.section-head--light .h2 { color: var(--cream-100); }
.section-head--light .h2 em { --g: var(--gold-400); --g-hi: #fbedd0; }
.section-head--light .section-head__sub { color: rgba(242, 238, 231, .74); }

/* ---------- Buttons & links ---------- */

.btn {
  --bg: var(--green-800);
  --fg: var(--cream-50);
  --bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 52px;
  padding: 0 1.8rem;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: 500 .78rem/1 var(--font-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* --mx / --my: magnetic pull toward the cursor (set by main.js on fine pointers) */
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)); box-shadow: 0 14px 28px -14px rgba(12, 32, 20, .55); }
.btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(.97); }
/* a band of light that sweeps across on hover (and jumps back unseen) */
.btn--green::after, .btn--cream::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .34) 50%, transparent 68%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn--cream::after { background: linear-gradient(105deg, transparent 32%, rgba(198, 163, 108, .42) 50%, transparent 68%); }
.btn--green:hover::after, .btn--cream:hover::after { transform: translateX(130%); transition: transform .9s var(--ease); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--green:hover { --bg: var(--green-700); }
.btn--cream { --bg: var(--cream-50); --fg: var(--green-900); }
.btn--cream:hover { --bg: #fff; }
.btn--ghost { --bg: transparent; --fg: currentColor; --bd: color-mix(in srgb, currentColor 35%, transparent); }
.btn--ghost:hover { --bd: currentColor; box-shadow: none; }
.btn--sm { min-height: 44px; padding: 0 1.3rem; font-size: .72rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding-block: .5rem;
  font: 500 .78rem/1 var(--font-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green-800);
}
.link-arrow svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--light { color: var(--cream-100); }

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-mark);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .035em;
  white-space: nowrap;
}
.wm-i { position: relative; }
/* The leaf that stands in for the accent on the Í */
.wm-leaf {
  position: absolute;
  left: 50%;
  bottom: .82em;
  width: .3em;
  height: .3em;
  transform: translateX(-30%);
  fill: currentColor;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.brand .wordmark { font-size: 1.8rem; }
.brand__co {
  margin-top: .45rem;
  padding-left: .42em;
  font: 500 .52rem/1 var(--font-sans);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-400);
  transition: color .4s;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--cream-100);
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(242, 238, 231, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--green-900);
  box-shadow: 0 1px 0 rgba(18, 41, 24, .08);
}
.site-header.is-scrolled .header__inner { height: 68px; }
.site-header.is-scrolled .brand__co { color: var(--gold-700); }

.nav__list { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav__list a {
  position: relative;
  display: block;
  padding-block: .6rem;
  font: 500 .74rem/1 var(--font-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }

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

.bag-btn, .menu-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: border-color .3s;
}
.bag-btn:hover, .menu-btn:hover { border-color: currentColor; }
.bag-btn svg { width: 21px; height: 21px; }
.bag-btn__count {
  position: absolute;
  top: -4px; right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--gold-500);
  color: var(--green-950);
  font: 600 .7rem/20px var(--font-sans);
  text-align: center;
  transform: scale(0);
  transition: transform .35s var(--ease);
}
.bag-btn__count.has-items { transform: scale(1); }
.bag-btn__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }

.menu-btn { display: none; }
.menu-btn__bar {
  grid-area: 1 / 1;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease);
}
.menu-btn__bar:first-child { transform: translateY(-3.5px); }
.menu-btn__bar:nth-child(2) { transform: translateY(3.5px); }
.site-header.menu-open .menu-btn__bar:first-child { transform: rotate(45deg); }
.site-header.menu-open .menu-btn__bar:nth-child(2) { transform: rotate(-45deg); }

/* ---------- K-Cup pod (pure CSS, scales with --size) ---------- */

.pod {
  --size: 160px;
  --band: var(--roast-medium);
  position: relative;
  display: block;
  flex: none;
  width: var(--size);
  aspect-ratio: 1;
  padding: calc(var(--size) * .055);
  border-radius: 50%;
  /* crimped foil rim */
  background:
    repeating-conic-gradient(rgba(0, 0, 0, .04) 0 1.6deg, rgba(255, 255, 255, .06) 1.6deg 3.2deg),
    radial-gradient(circle at 32% 26%, #fff 0%, #eeece7 36%, #d2cec6 70%, #aaa59c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .55),
    inset 0 -3px 6px rgba(0, 0, 0, .12),
    0 18px 30px -16px rgba(0, 0, 0, .55);
  font-size: calc(var(--size) * .1);
  line-height: 1;
}
.pod__lid {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  color: var(--cream-100);
  background: var(--lid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0h100v50C72 47 34 53 0 66Z' fill='%23173521'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 .05em rgba(0, 0, 0, .1), inset 0 .15em .4em rgba(0, 0, 0, .18);
}
.pod__lid > * {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.pod__mark { top: 15.5%; font-size: 2.05em; }
.pod__co {
  top: 38.5%;
  padding-left: .3em;
  font: 500 .36em/1 var(--font-sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.pod__rule { top: 46%; width: 1px; height: 9%; background: var(--gold-500); }
.pod__origin {
  top: 58%;
  padding-left: .22em;
  font: 500 .3em/1.4 var(--font-sans);
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
  color: var(--lid-ink);
}
.pod__band {
  top: 70%;
  left: 0; right: 0;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8.5%;
  padding-left: .28em;
  background: var(--band);
  font: 500 .32em/1 var(--font-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--lid);
}
.pod__foot {
  top: 84%;
  padding-left: .2em;
  font: 600 .27em/1 var(--font-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6b665c;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--green-800);
  color: var(--cream-100);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 70% at 0% 0%, rgba(255, 255, 255, .07), transparent 60%),
    radial-gradient(60% 60% at 25% 100%, rgba(0, 0, 0, .28), transparent 70%);
}
.hero__branch {
  position: absolute;
  z-index: -1;
  left: -56px;
  bottom: -250px;
  width: 210px;
  color: var(--gold-500);
  opacity: .17;
  transform: rotate(18deg);
}
.hero__grid {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [content-start] minmax(0, 540px)
    [split] minmax(0, 700px)
    [content-end] minmax(var(--gutter), 1fr) [full-end];
  min-height: min(100svh, 960px);
}
.hero__copy {
  grid-column: content-start / split;
  align-self: center;
  position: relative;
  z-index: 2;
  padding-block: calc(var(--header-h) + 56px) 72px;
  padding-right: clamp(24px, 4vw, 64px);
}
.hero__title {
  margin-bottom: 2.1rem;
  font: 600 clamp(3.6rem, 1.6rem + 6.6vw, 7.6rem)/.9 var(--font-display);
  letter-spacing: -.025em;
}
.hero__title span { display: block; }
.hero__title em { --g: var(--gold-400); --g-hi: #fbedd0; }
.hero__lead { max-width: 27rem; font-size: 1.125rem; color: rgba(242, 238, 231, .82); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 2.4rem; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 3.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(242, 238, 231, .14);
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font: 500 .7rem/1 var(--font-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(242, 238, 231, .8);
}
.hero__facts svg { width: 22px; height: 22px; color: var(--gold-400); }

.hero__media { grid-column: split / full-end; position: relative; min-height: 560px; }
.hero__photo {
  position: absolute;
  inset: calc(var(--header-h) + 18px) 0 0 0;
  overflow: hidden;
  /* the sweep from the bag front */
  border-top-left-radius: 64% 42%;
  background: var(--cream-200);
}
/* 8% taller than its frame and bottom-aligned, leaving room for the scroll parallax */
.hero__photo img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  object-position: 38% 64%;
  translate: 0 -7.4%;
}
.hero__pod {
  --pod-size: clamp(120px, 12vw, 188px);
  position: absolute;
  z-index: 3;
  left: calc(var(--pod-size) * -.45);
  bottom: 9%;
  display: block;
  animation: float 7s ease-in-out infinite;
}
.hero__pod .pod { --size: var(--pod-size); rotate: -14deg; }
@keyframes float { 50% { translate: 0 -12px; } }
/* stamp that sits on the photo's curved edge */
.hero__seal {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-h) + 5%);
  left: 10%;
  width: clamp(100px, 8.6vw, 128px);
  border-radius: 50%;
  color: var(--gold-400);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55);
  animation: spin 48s linear infinite;
}
.hero__seal .seal__disc { fill: var(--green-800); stroke: rgba(198, 163, 108, .5); }
@keyframes spin { to { rotate: 360deg; } }

/* Load-in: the headline and photo are visible from the first paint (they only settle into
   place), so the page looks complete straight away; supporting copy fades up behind them. */
.js .hero [data-load] { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
.js .hero__title [data-load] { animation-name: slide-in; }
.js .hero__photo img { animation: settle 1.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes slide-in { from { transform: translateY(16px); } }
@keyframes settle { from { transform: scale(1.06); } }

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  padding-block: 18px;
  background: var(--cream-200);
  border-bottom: 1px solid var(--cream-300);
  color: var(--green-800);
}
.ticker__track { display: flex; width: max-content; animation: ticker 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; gap: 2.6rem; padding-right: 2.6rem; }
.ticker__group span {
  font: 500 .78rem/1 var(--font-sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__group svg { width: 13px; height: 13px; fill: var(--gold-500); }
@keyframes ticker { to { transform: translateX(-50%); } }

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

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(44px, 7vw, 112px);
  align-items: center;
}
.story__media { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; }
.story__img { overflow: hidden; border-radius: var(--radius-lg); background: var(--cream-200); box-shadow: var(--shadow-soft); }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__img--a { grid-column: 1 / -1; aspect-ratio: 600 / 304; border-top-left-radius: 46% 70%; }
.story__img--b {
  grid-column: 2;
  margin-top: -84px;
  aspect-ratio: 600 / 260;
  border: 8px solid var(--cream-100);
  border-radius: calc(var(--radius-lg) + 8px);
}
.definition {
  grid-column: 1;
  align-self: end;
  padding: 22px 22px 20px;
  border: 1px solid var(--cream-300);
  border-radius: 20px;
  background: var(--cream-50);
}
.definition__word { font: italic 600 2.1rem/1 var(--font-display); color: var(--green-900); }
.definition__word span { margin-left: .35rem; font: 400 .85rem/1 var(--font-sans); font-style: normal; color: var(--ink-500); }
.definition__pos {
  margin-top: .6rem;
  font: 500 .66rem/1 var(--font-sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.definition__meaning { margin-top: .7rem; font-size: .9rem; line-height: 1.55; color: var(--ink-700); }

.story__copy .h2 { margin-bottom: 1.6rem; }
.story__copy p + p { margin-top: 1.1rem; }
.story__copy .lead + p { margin-top: 1.5rem; }
.story__copy p:not(.lead):not(.eyebrow) { color: var(--ink-500); }
.story__copy .link-arrow { margin-top: 1.8rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(80px, 10vw, 128px);
  border-top: 1px solid var(--cream-300);
}
.pillar { padding: 38px 28px 0; border-left: 1px solid var(--cream-300); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar svg { width: 36px; height: 36px; margin-bottom: 22px; color: var(--gold-600); }
.pillar h3 {
  margin-bottom: .8rem;
  font: 500 .78rem/1.3 var(--font-sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--green-900);
}
.pillar p { font-size: .97rem; color: var(--ink-500); }

/* ---------- Products ---------- */

.products { background: var(--cream-50); }
.products > .container > .section-head { margin-bottom: clamp(64px, 8vw, 104px); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.product + .product { margin-top: clamp(96px, 11vw, 160px); }
.product--flip .product__media { order: 2; }

.product__media { position: relative; isolation: isolate; }
.product__media--bag { justify-self: center; width: min(100%, 430px); aspect-ratio: 3 / 5; }
/* green sweep behind the bag photo */
.product__media--bag::before {
  content: "";
  position: absolute;
  inset: 9% -11% -5% 22%;
  border-radius: var(--radius-lg);
  border-top-left-radius: 82% 40%;
  background: var(--green-800);
}
.product__photo {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream-200);
  box-shadow: var(--shadow-soft);
}
.product__media--bag .product__photo { border-top-left-radius: 66% 32%; }
.product__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .7s var(--ease), transform 1s var(--ease);
}
.product__photo img:not(.is-active) { opacity: 0; transform: scale(1.04); }

.product__media--pods .product__photo { aspect-ratio: 1157 / 698; }
.product__media--pods::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7% 12% 18% -6%;
  border-radius: var(--radius-lg);
  background: var(--cream-200);
}

.product__body { max-width: 520px; }
.product__title {
  margin-bottom: 1.3rem;
  font: 600 clamp(2.3rem, 1.6rem + 2.2vw, 3.3rem)/1.04 var(--font-display);
  color: var(--green-900);
}
.product__desc { margin-top: 1.35rem; color: var(--ink-500); }

.notes { display: flex; flex-wrap: wrap; gap: 8px; }
.notes li {
  padding: .55rem 1rem;
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  font: 500 .72rem/1 var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.option { margin-top: 2rem; padding: 0; border: 0; min-width: 0; }
.option__label {
  display: block;
  margin-bottom: .8rem;
  padding: 0;
  font: 500 .7rem/1 var(--font-sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream-200); }
.segmented label {
  position: relative;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font: 500 .74rem/1 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-700);
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.segmented input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.segmented label:has(input:checked) { background: var(--green-800); color: var(--cream-50); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
  border-top: 1px solid var(--cream-300);
}
.specs div { padding: 1.1rem 1rem 0 0; }
.specs dt {
  font: 500 .66rem/1 var(--font-sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.specs dd { margin-top: .55rem; font: 600 1.2rem/1.2 var(--font-display); color: var(--green-900); }

.product__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-300);
}
.price { font: 600 2.4rem/1 var(--font-display); color: var(--green-900); }
.price small {
  margin-left: .4rem;
  font: 500 .7rem/1 var(--font-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.mini-pods { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 1.9rem; }
.mini-pods a {
  display: grid;
  justify-items: center;
  gap: .7rem;
  font: 500 .66rem/1 var(--font-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-700);
}
.mini-pods .pod { --size: 70px; transition: transform .4s var(--ease); }
.mini-pods a:hover .pod { transform: translateY(-4px) rotate(-6deg); }
.compat { margin-top: 1.2rem; font-size: .88rem; color: var(--ink-500); }

/* ---------- Roast explorer ---------- */

.roasts {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--green-900);
  color: var(--cream-100);
}
.roasts::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(55% 45% at 50% 36%, rgba(255, 255, 255, .07), transparent 70%);
}
.roasts__branch {
  position: absolute;
  z-index: -1;
  top: 60px;
  right: -40px;
  width: 210px;
  color: var(--gold-500);
  opacity: .14;
  transform: rotate(-22deg) scaleX(-1);
}

.roast-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 2.5vw, 36px);
  max-width: 1000px;
  margin: clamp(48px, 6vw, 80px) auto 0;
}
.roast-tab {
  container-type: inline-size;
  position: relative;
  perspective: 900px;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 10px 0 6px;
  border: 0;
  border-radius: 20px;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.roast-tab .pod {
  --size: min(100cqi, 190px);
  transition: transform .6s var(--ease), opacity .6s, filter .6s, box-shadow .6s;
}
/* unselected pods sit in shadow; the selected one is lit */
.roast-tab[aria-selected="false"] .pod { filter: brightness(.52) saturate(.85); transform: scale(.9); }
.roast-tab[aria-selected="false"]:hover .pod { filter: brightness(.8); transform: scale(.94) translateY(-4px); }
.roast-tab[aria-selected="true"] .pod {
  transform: translateY(-10px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .55),
    inset 0 -3px 6px rgba(0, 0, 0, .12),
    0 0 0 4px var(--green-900),
    0 0 0 5px var(--accent),
    0 34px 46px -22px rgba(0, 0, 0, .7);
}
.roast-tab__name {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font: 500 .74rem/1 var(--font-sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(242, 238, 231, .62);
  transition: color .3s;
}
.roast-tab__name::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.roast-tab[aria-selected="true"] .roast-tab__name { color: var(--cream-100); }
.roast-tab:focus-visible { outline-offset: 6px; }

.roast-panel {
  --accent: var(--roast-medium-hi);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  max-width: 1000px;
  margin: 44px auto 0;
  padding: clamp(28px, 4.5vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(242, 238, 231, .12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}
.roast-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
  transition: background-color .5s;
}
.roast-panel__kicker {
  margin-bottom: .9rem;
  font: 500 .72rem/1.3 var(--font-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color .5s;
}
.roast-panel__title { margin-bottom: 1.35rem; font: 600 clamp(2.3rem, 1.7rem + 2vw, 3.4rem)/1 var(--font-display); }
.notes--light li { border-color: rgba(242, 238, 231, .24); color: var(--cream-100); }
.roast-panel__desc { margin-top: 1.4rem; color: rgba(242, 238, 231, .78); }
.roast-panel__side { display: flex; flex-direction: column; gap: 1.9rem; }

.small-label {
  display: block;
  font: 500 .68rem/1 var(--font-sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(242, 238, 231, .62);
}
.meter__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: .95rem; }
.meter__bar i { position: relative; overflow: hidden; height: 10px; border-radius: 5px; background: rgba(242, 238, 231, .14); }
/* each segment fills left to right, one after another */
.meter__bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease), background-color .5s;
}
.meter__bar i.is-on::after { transform: scaleX(1); }
.meter__bar i:nth-child(2)::after { transition-delay: .07s; }
.meter__bar i:nth-child(3)::after { transition-delay: .14s; }
.meter__bar i:nth-child(4)::after { transition-delay: .21s; }
.meter__bar i:nth-child(5)::after { transition-delay: .28s; }
.meter__scale {
  display: flex;
  justify-content: space-between;
  margin-top: .65rem;
  font: 500 .64rem/1 var(--font-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242, 238, 231, .62);
}
.roast-panel__try strong { display: block; margin-top: .7rem; font: 600 1.35rem/1.25 var(--font-display); }
.roast-panel__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(242, 238, 231, .14);
}
.roast-panel .price { color: var(--cream-100); }
.roast-panel .price small { color: rgba(242, 238, 231, .62); }

/* ---------- Brew guide ---------- */

.brew__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.brew__head { position: sticky; top: 112px; }
.brew-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2.4rem; }
.chip-tab {
  padding: .9rem 1.05rem;
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  background: transparent;
  font: 500 .72rem/1 var(--font-sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-700);
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.chip-tab:hover { border-color: var(--green-800); color: var(--green-900); }
.chip-tab[aria-selected="true"] { border-color: var(--green-800); background: var(--green-800); color: var(--cream-50); }

.brew-panel {
  padding: clamp(28px, 4.5vw, 56px);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  box-shadow: var(--shadow-soft);
}
.brew-panel[hidden] { display: none; }
.brew-panel__title { font: 600 clamp(2rem, 1.6rem + 1.4vw, 2.7rem)/1.05 var(--font-display); color: var(--green-900); }
.brew-panel__sub { margin-top: .6rem; color: var(--ink-500); }
.brew-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
  margin: 2rem 0;
  padding: 1.6rem 0;
  border-block: 1px solid var(--cream-300);
}
.brew-stats dt {
  font: 500 .66rem/1 var(--font-sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-500);
}
/* four short stats fit on one row; five wrap 3 + 2 */
.brew-stats:has(> div:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.brew-stats dd { margin-top: .55rem; font: 600 1.55rem/1.1 var(--font-display); color: var(--green-900); }
.brew-steps { display: grid; gap: 1.15rem; counter-reset: step; }
.brew-steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  color: var(--ink-700);
  counter-increment: step;
}
.brew-steps li::before {
  content: counter(step, decimal-leading-zero);
  padding-top: .1rem;
  font: italic 600 1.5rem/1.1 var(--font-display);
  color: var(--gold-600);
}

/* ---------- Newsletter ---------- */

.join { padding-bottom: clamp(84px, 11vw, 150px); }
.join__card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vw, 88px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--green-800);
  color: var(--cream-100);
}
/* the bag's sweep, traced in gold */
.join__card::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 82%;
  border-top: 1px solid rgba(198, 163, 108, .4);
  border-left: 1px solid rgba(198, 163, 108, .4);
  border-top-left-radius: 100% 100%;
  background: rgba(255, 255, 255, .035);
}
.join__card .h2 { color: var(--cream-100); }
.join__card .h2 em { --g: var(--gold-400); --g-hi: #fbedd0; }
.join__card p { margin-top: 1.2rem; max-width: 30rem; color: rgba(242, 238, 231, .78); }
.join__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.join__form input {
  min-width: 0;
  min-height: 56px;
  padding: 0 1.4rem;
  border: 1px solid rgba(242, 238, 231, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--cream-50);
  transition: border-color .3s, box-shadow .3s;
}
.join__form input::placeholder { color: rgba(242, 238, 231, .55); }
.join__form input:focus { outline: none; border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(198, 163, 108, .28); }
.join__form input[aria-invalid="true"] { border-color: #e9a093; }
.join__form .btn { min-height: 56px; }
.join__msg { grid-column: 1 / -1; min-height: 1.5em; font-size: .92rem; color: var(--gold-300); }
.join__fine { grid-column: 1 / -1; font-size: .8rem; color: rgba(242, 238, 231, .6); }
.join__form.is-done input, .join__form.is-done .btn { display: none; }
.join__form.is-done .join__msg { font: italic 500 1.6rem/1.3 var(--font-display); color: var(--cream-100); }

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

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(64px, 8vw, 104px) 32px;
  background: var(--green-950);
  color: rgba(242, 238, 231, .78);
}
.footer__branch {
  position: absolute;
  z-index: -1;
  right: 4%;
  bottom: -150px;
  width: 200px;
  color: var(--gold-500);
  opacity: .12;
  transform: rotate(-12deg);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .5fr));
  gap: 48px;
}
.footer__brand .brand { color: var(--cream-100); }
.footer__brand .wordmark { font-size: 3.3rem; }
.footer__brand .brand__co { font-size: .8rem; margin-top: .75rem; }
.footer__tag { margin-top: 1.6rem; font: italic 500 1.6rem/1.2 var(--font-display); color: var(--gold-400); }
.footer__col h2 {
  margin-bottom: 1.2rem;
  font: 500 .7rem/1 var(--font-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cream-100);
}
.footer__col ul { display: grid; gap: .55rem; }
.footer__col a { text-decoration: none; transition: color .3s; }
.footer__col a:hover { color: var(--cream-50); text-decoration: underline; text-underline-offset: 4px; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 238, 231, .12);
  font-size: .8rem;
  color: rgba(242, 238, 231, .6);
}

/* ---------- Bag drawer & toast ---------- */

.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden] { display: none; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 32, 20, .5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: var(--cream-50);
  color: var(--ink-900);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .45);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
.drawer__panel:focus { outline: none; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--cream-300);
}
.drawer__head h2 { font: 600 1.9rem/1 var(--font-display); color: var(--green-900); }
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--cream-300);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: border-color .3s;
}
.icon-btn:hover { border-color: var(--green-800); }
.icon-btn svg { width: 18px; height: 18px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 24px; }

.bag-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  grid-template-areas: "swatch info price" "swatch qty remove";
  gap: 10px 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--cream-200);
}
.bag-item__thumb { grid-area: swatch; display: grid; place-items: center; width: 54px; height: 54px; }
.bag-item__thumb .pod { --size: 54px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 6px 12px -6px rgba(0, 0, 0, .45); }
/* tiny bag front: the green panel and its sweep, plus the zip line */
.mini-bag {
  position: relative;
  width: 38px;
  height: 52px;
  border-radius: 3px 3px 5px 5px;
  background: #f7f5f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0h100v50C72 47 34 53 0 66Z' fill='%23173521'/%3E%3C/svg%3E") 50% 64% / 80% 66% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 12px -6px rgba(0, 0, 0, .45);
}
.mini-bag::before { content: ""; position: absolute; left: 8%; right: 8%; top: 12%; height: 1px; background: rgba(0, 0, 0, .14); }
.bag-item__info { grid-area: info; min-width: 0; }
.bag-item__name { font: 600 1.15rem/1.2 var(--font-display); color: var(--green-900); }
.bag-item__meta { margin-top: .2rem; font-size: .8rem; color: var(--ink-500); }
.bag-item__price { grid-area: price; font: 600 1.15rem/1 var(--font-display); color: var(--green-900); }
.qty {
  grid-area: qty;
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid var(--cream-300);
  border-radius: 999px;
}
.qty button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.qty button svg { width: 14px; height: 14px; }
.qty output { min-width: 22px; font-size: .9rem; font-weight: 500; text-align: center; }
.bag-item__remove {
  grid-area: remove;
  justify-self: end;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink-500);
  cursor: pointer;
}
.bag-empty { padding: 72px 0; text-align: center; }
.bag-empty p { margin-bottom: 1rem; font: italic 500 1.5rem/1.3 var(--font-display); color: var(--green-900); }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--cream-300); background: var(--cream-100); }
.drawer__foot[hidden] { display: none; }
.drawer__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.drawer__total strong { font: 600 1.7rem/1 var(--font-display); letter-spacing: 0; color: var(--green-900); }
.drawer__note { margin: .5rem 0 1.1rem; font-size: .84rem; color: var(--ink-500); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 32px);
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: var(--green-900);
  color: var(--cream-100);
  font-size: .92rem;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: translate(-50%, 160%);
  transition: transform .45s var(--ease), opacity .45s;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast:not(:has(button:not([hidden]))) { padding-right: 22px; }
.toast button {
  flex: none;
  min-height: 38px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--cream-50);
  color: var(--green-900);
  font: 500 .7rem/1 var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Motion & personality ----------
   Everything here moves with transform/opacity (or a one-off stroke draw), so it stays
   off the main thread. Reduced-motion users get the still version (see the end of the file). */

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* gold hairline that fills as you scroll (scroll-driven, see @supports below) */
.scroll-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* a whisper of print grain on the green surfaces */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* logo: the leaf sprouts on load and wiggles on hover */
.js .site-header .wm-leaf { transform-origin: -9% 87%; animation: sprout .9s .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes sprout { from { scale: 0; rotate: -55deg; } }
.brand .wm-leaf use { transform-box: fill-box; transform-origin: 4% 96%; }
.brand:hover .wm-leaf use { animation: wiggle .9s ease-in-out; }
@keyframes wiggle { 25% { rotate: -16deg; } 55% { rotate: 11deg; } 80% { rotate: -5deg; } }

/* hero: drifting warm light */
.hero__light {
  position: absolute;
  z-index: -1;
  top: -35vmax;
  left: -25vmax;
  width: 80vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 178, 112, .17), rgba(214, 178, 112, .05) 55%, transparent);
  pointer-events: none;
  animation: light-drift 24s ease-in-out infinite alternate;
}
@keyframes light-drift { to { transform: translate(22vmax, 18vmax) scale(1.12); } }

/* hero: gold hairline tracing the photo's sweep, swash under "origin.", gilded shimmer */
.hero__trace {
  position: absolute;
  z-index: 1;
  top: calc(var(--header-h) + 18px);
  left: 0;
  width: 100%;
  height: calc(100% - var(--header-h) - 18px);
  overflow: visible;
  pointer-events: none;
}
.hero__trace path { fill: none; stroke: var(--gold-500); stroke-width: 1.2; stroke-dasharray: 1; }
.js .hero__trace path { stroke-dashoffset: 1; animation: draw 1.9s .4s cubic-bezier(.65, 0, .35, 1) forwards; }

.swash-word { position: relative; white-space: nowrap; }
.swash { position: absolute; left: -3%; bottom: -.02em; width: 106%; height: .3em; overflow: visible; pointer-events: none; }
.swash path { fill: none; stroke: var(--gold-400); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; }
.js .swash path { stroke-dashoffset: 1; animation: draw 1.1s .6s cubic-bezier(.65, 0, .35, 1) forwards; }

.js .hero__title em { animation: shimmer 1.5s 1.1s var(--ease) both; }
.js .is-visible .h2 em { animation: shimmer 1.8s .5s var(--ease) both; }

/* line art draws itself: hero branch and facts on load, pillars and branches on reveal */
.js .hero__branch { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .2s cubic-bezier(.45, 0, .25, 1) forwards; }
.js .hero__facts svg { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s .5s var(--ease) forwards; }
.js .pillar svg, .js [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .pillar.is-visible svg { animation: draw 1.6s calc(var(--d, 0s) + .35s) var(--ease) forwards; }
.js [data-draw].is-visible { animation: draw 3.4s .2s cubic-bezier(.45, 0, .25, 1) forwards; }

/* hero: floating beans at different depths */
.hero__beans { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bean {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: auto;
  rotate: var(--r);
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35));
  animation: bean-float var(--t) ease-in-out var(--d) infinite;
}
.js .bean { animation: bean-in .9s cubic-bezier(.3, 1.5, .5, 1) var(--d) both, bean-float var(--t) ease-in-out calc(var(--d) + .9s) infinite; }
@keyframes bean-in { from { opacity: 0; scale: .2; } }
@keyframes bean-float { 50% { transform: translateY(-12px) rotate(16deg); } }
.bean--a { --x: 41.5%; --y: 31%; --s: 26px; --r: 24deg; --depth: .6; --t: 7s; --d: .55s; }
.bean--b { --x: 31%; --y: 14%; --s: 14px; --r: -40deg; --depth: .3; --t: 9s; --d: .7s; opacity: .7; }
.bean--c { --x: 27%; --y: 89%; --s: 20px; --r: 72deg; --depth: .5; --t: 8s; --d: .85s; }
.bean--d { --x: 91%; --y: 80%; --s: 40px; --r: -22deg; --depth: 1.2; --t: 6.5s; --d: .6s; }
.bean--e { --x: 84%; --y: 22%; --s: 18px; --r: 50deg; --depth: .8; --t: 8.5s; --d: .9s; }

/* hero pod: spins like a coin when you touch it */
.hero__pod .pod.is-spinning { animation: coin 1.1s cubic-bezier(.3, .9, .3, 1); }
@keyframes coin {
  from { transform: perspective(700px) rotateY(0deg); }
  to { transform: perspective(700px) rotateY(360deg); }
}

/* ticker leaves turn as they pass */
.ticker__group svg { animation: spin 7s linear infinite; }

/* products: layered reveal, 3D tilt with a glare that follows the cursor */
.js .product__media--bag::before { opacity: 0; transform: translate(-7%, 7%); transition: opacity 1.1s .35s var(--ease), transform 1.4s .35s var(--ease); }
.js .product__media--pods::after { opacity: 0; transform: translate(6%, -6%); transition: opacity 1.1s .35s var(--ease), transform 1.4s .35s var(--ease); }
.js .product__media--bag.is-visible::before, .js .product__media--pods.is-visible::after { opacity: 1; transform: none; }
[data-tilt] .product__photo {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
[data-tilt].is-tilting .product__photo {
  transition-duration: .2s;
  box-shadow: 0 1px 2px rgba(18, 41, 24, .05), 0 36px 60px -30px rgba(18, 41, 24, .5);
}
.glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .3), transparent 55%);
  opacity: 0;
  transition: opacity .6s;
  pointer-events: none;
}
[data-tilt].is-tilting .glare { opacity: 1; }

/* roasts: the bag's sweep as the section edge */
.roasts { padding-top: calc(clamp(80px, 10vw, 136px) + clamp(28px, 4vw, 64px)); }
.roasts__curve {
  position: absolute;
  top: -1px;
  left: 0;
  z-index: 0;
  width: 100%;
  height: clamp(40px, 6.5vw, 100px);
  fill: var(--cream-50);
  pointer-events: none;
}

/* roasts: glow under the chosen pod, coin flip, tasting notes rising like aroma */
.roast-tab::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: -1;
  width: 120%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent);
  translate: -50% -50%;
  opacity: 0;
  transition: opacity .8s var(--ease);
  pointer-events: none;
}
.roast-tab[aria-selected="true"]::before { opacity: 1; }
.roast-tab .pod.is-flipping { animation: flip-y 1s cubic-bezier(.3, .9, .3, 1); }
@keyframes flip-y {
  from { rotate: y 0deg; }
  55% { scale: 1.06; }
  to { rotate: y 360deg; }
}
/* scent notes: gold italic words that fan out and drift up off the lid */
.aroma { position: absolute; left: 50%; top: 22%; z-index: 4; pointer-events: none; }
.aroma span {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% 0;
  font: italic 500 clamp(.95rem, .8rem + .5vw, 1.3rem)/1 var(--font-display);
  color: var(--gold-300);
  text-transform: lowercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
  white-space: nowrap;
  opacity: 0;
  animation: aroma 2.6s cubic-bezier(.2, .7, .3, 1) var(--delay) forwards;
}
@keyframes aroma {
  0% { opacity: 0; transform: translate(calc(var(--dx) * .2), 10px) scale(.8); }
  20%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.05); }
}

/* brew guide: each method has its own line drawing. It draws itself in when its tab is
   chosen, then its loop starts (1.5s in, once the drawing is done). */
.brew-art { margin-top: 3rem; color: var(--gold-600); }
.brew-art__piece { display: none; margin: 0; }
.brew-art__piece.is-active { display: block; }
.brew-art svg { display: block; width: 230px; height: auto; overflow: visible; }
.brew-art figcaption { margin-top: .3rem; font: italic 500 1.3rem/1.25 var(--font-display); color: var(--gold-700); }
.js .brew-art.is-visible .is-active figcaption { animation: rise .8s .9s var(--ease) both; }
.brew-art .soft { opacity: .5; }
.brew-art .line { stroke-dasharray: 1; }
.js .brew-art .line { stroke-dashoffset: 1; }
.js .brew-art.is-visible .is-active .line { animation: draw 1.5s var(--ease) forwards; }
.brew-art .fill { fill: currentColor; stroke: none; opacity: .22; transform-box: fill-box; transform-origin: 50% 100%; }
.brew-art .drop, .brew-art .light, .brew-art .grounds circle { fill: currentColor; stroke: none; }
.brew-art .drop, .brew-art .wisp { opacity: 0; }
.brew-art .light { opacity: .45; }
.brew-art .stream { stroke-dasharray: 3 5; opacity: .9; }
.brew-art .pod-shape { fill: var(--cream-100); }

/* shared loops: drops, steam, pouring stream, filling vessel, pulsing light */
.brew-art.is-visible .is-active .drop { animation: drop 1.2s cubic-bezier(.55, 0, .9, .55) 1.5s infinite; }
.brew-art.is-visible .is-active .drop:nth-child(2) { animation-delay: 1.9s; }
.brew-art.is-visible .is-active .drop:nth-child(3) { animation-delay: 2.3s; }
@keyframes drop {
  0% { opacity: 0; transform: translateY(0) scale(.5); }
  15% { opacity: .9; transform: translateY(0) scale(1); }
  85% { opacity: .9; }
  100% { opacity: 0; transform: translateY(var(--fall)) scale(.8); }
}
.brew-art.is-visible .is-active .wisp { animation: steam 3.4s ease-in-out 1.5s infinite; }
.brew-art.is-visible .is-active .wisp + .wisp { animation-delay: 3.2s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(10px); }
  35% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-16px); }
}
.brew-art.is-visible .is-active .stream { animation: flow .5s linear infinite, pour var(--cycle) ease 1.5s infinite both; }
@keyframes flow { to { stroke-dashoffset: -8; } }
@keyframes pour { 0%, 6% { opacity: 0; } 12%, 60% { opacity: .9; } 68%, 100% { opacity: 0; } }
.brew-art.is-visible .is-active .fill { animation: fill-up var(--cycle) ease-in-out 1.5s infinite both; }
@keyframes fill-up {
  0% { transform: scaleY(.08); opacity: 0; }
  8% { opacity: .22; }
  78%, 90% { transform: scaleY(1); opacity: .22; }
  100% { transform: scaleY(1); opacity: 0; }
}
.brew-art.is-visible .is-active .light { animation: glow 1.6s ease-in-out 1.5s infinite alternate; }
@keyframes glow { to { opacity: 1; } }

/* pour-over: the kettle tips forward while it pours */
[data-method="pourover"] { --cycle: 6s; }
[data-method="pourover"] .drops { --fall: 24px; }
.po-kettle { transform-box: view-box; transform-origin: 55px 64px; }
.brew-art.is-visible .is-active .po-kettle { animation: tip 6s ease-in-out 1.5s infinite both; }
@keyframes tip { 0%, 4% { transform: rotate(0deg); } 12%, 58% { transform: rotate(4deg); } 68%, 100% { transform: rotate(0deg); } }

/* French press: it steeps, then the plunger presses the grounds to the bottom */
[data-method="press"] { --cycle: 8s; }
.brew-art.is-visible [data-method="press"].is-active .fill { animation: steep 4s ease-in-out 1.5s infinite alternate both; }
@keyframes steep { from { opacity: .14; } to { opacity: .3; } }
.brew-art.is-visible .is-active .fp-plunger { animation: press 8s ease-in-out 1.5s infinite both; }
@keyframes press {
  0%, 22% { transform: translateY(0); opacity: 1; }
  58%, 80% { transform: translateY(94px); opacity: 1; }
  86% { transform: translateY(94px); opacity: 0; }
  87% { transform: translateY(0); opacity: 0; }
  94%, 100% { transform: translateY(0); opacity: 1; }
}
.brew-art.is-visible .is-active .fp-grounds circle { animation: settle-grounds 8s ease-in-out 1.5s infinite both; }
@keyframes settle-grounds {
  0%, 26% { transform: translateY(0); opacity: 1; }
  58%, 80% { transform: translateY(var(--fall)); opacity: 1; }
  86% { transform: translateY(var(--fall)); opacity: 0; }
  87% { transform: translateY(0); opacity: 0; }
  94%, 100% { transform: translateY(0); opacity: 1; }
}

/* drip machine: drops fall, the water window drains, steam vents from the top */
[data-method="drip"] { --cycle: 6s; }
[data-method="drip"] .drops { --fall: 58px; }
.brew-art.is-visible .is-active .dr-level { animation: drain 6s ease-in-out 1.5s infinite both; }
@keyframes drain { 0%, 6% { transform: translateY(0); } 80%, 92% { transform: translateY(24px); } 100% { transform: translateY(0); } }

/* single-serve: the lever lifts, a pod drops in, the light glows, the mug fills */
[data-method="pod"] { --cycle: 7s; }
.kc-pod { opacity: 0; }
.kc-lever { transform-box: view-box; transform-origin: 130px 32px; }
.brew-art.is-visible .is-active .kc-lever { animation: lever 7s ease-in-out 1.5s infinite both; }
@keyframes lever { 0%, 4% { transform: rotate(0deg); } 10%, 18% { transform: rotate(-24deg); } 26%, 100% { transform: rotate(0deg); } }
.brew-art.is-visible .is-active .kc-pod { animation: pod-drop 7s ease-in-out 1.5s infinite both; }
@keyframes pod-drop {
  0%, 6% { transform: translateY(-14px); opacity: 0; }
  10% { transform: translateY(-14px); opacity: 1; }
  19% { transform: translateY(26px); opacity: 1; }
  23%, 100% { transform: translateY(32px); opacity: 0; }
}
.brew-art.is-visible [data-method="pod"].is-active .stream { animation: flow .5s linear infinite, pour-pod 7s ease 1.5s infinite both; }
@keyframes pour-pod { 0%, 30% { opacity: 0; } 34%, 72% { opacity: .9; } 78%, 100% { opacity: 0; } }
.brew-art.is-visible [data-method="pod"].is-active .fill { animation: fill-pod 7s ease-in-out 1.5s infinite both; }
@keyframes fill-pod {
  0%, 30% { transform: scaleY(.06); opacity: 0; }
  34% { opacity: .22; }
  76%, 90% { transform: scaleY(1); opacity: .22; }
  100% { transform: scaleY(1); opacity: 0; }
}
.brew-art.is-visible [data-method="pod"].is-active .light { animation: glow-pod 7s ease-in-out 1.5s infinite both; }
@keyframes glow-pod { 0%, 26% { opacity: .35; } 30%, 72% { opacity: 1; } 80%, 100% { opacity: .35; } }
.brew-art.is-visible .is-active .kc-level { animation: drain-pod 7s ease-in-out 1.5s infinite both; }
@keyframes drain-pod { 0%, 30% { transform: translateY(0); } 76%, 92% { transform: translateY(10px); } 100% { transform: translateY(0); } }

/* add to bag: the product arcs into the bag, then a little gold poof */
.fly { position: fixed; z-index: 95; width: 0; height: 0; pointer-events: none; }
.fly__item { position: absolute; left: 0; top: 0; translate: -50% -50%; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .35)); }
.fly__item .pod { --size: 64px; }
.fly__item .mini-bag { width: 44px; height: 60px; }
.poof { position: fixed; z-index: 96; width: 0; height: 0; pointer-events: none; }
.poof::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -22px;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gold-400);
  border-radius: 50%;
  animation: ring .6s var(--ease) forwards;
}
@keyframes ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.poof i {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: burst .7s cubic-bezier(.2, .7, .3, 1) forwards;
}
.poof i:nth-child(3n) { background: var(--gold-300); border-radius: 0 60%; }
@keyframes burst {
  from { transform: translate(0, 0) scale(var(--s)); opacity: 1; }
  to { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}
.bag-btn.gulp { animation: gulp .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes gulp { 40% { transform: scale(1.18); } }

/* newsletter: gold leaves rain on success */
.confetti { position: fixed; z-index: 96; width: 0; height: 0; pointer-events: none; }
.confetti i {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  opacity: 0;
  animation: confetti var(--dur) cubic-bezier(.2, .6, .35, 1) var(--delay) forwards;
}
.confetti i svg { width: 100%; height: 100%; fill: var(--c); }
.confetti i.dot { left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
@keyframes confetti {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(.4); }
  12% { opacity: 1; }
  45% {
    transform: translate(calc(var(--dx) * .55), var(--up)) rotate(calc(var(--rot) * .45)) scale(1);
    animation-timing-function: cubic-bezier(.45, 0, .9, .55);
  }
  100% { opacity: 0; transform: translate(var(--dx), var(--down)) rotate(var(--rot)) scale(.85); }
}

/* loops in sections you can't see are paused (main.js toggles .is-paused) */
.is-paused .hero__light, .is-paused .hero__seal, .is-paused .hero__pod, .is-paused .bean,
.is-paused .ticker__track, .is-paused .ticker__group svg,
.is-paused .brew-art path, .is-paused .brew-art g, .is-paused .brew-art circle { animation-play-state: paused !important; }

@media (max-width: 900px) {
  .hero__trace { top: 0; height: 100%; }
  .brew-art { margin-top: 2.2rem; }
  .brew-art svg { width: 190px; }
  .bean--a { --x: 82%; --y: 10%; }
  .bean--b { display: none; }
  .bean--c { --x: 80%; --y: 48%; --s: 16px; }
  .bean--d { --x: 80%; --y: 92%; --s: 32px; }
  .bean--e { --x: 88%; --y: 66%; --s: 15px; }
  .aroma span { font-size: .85rem; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav__list { gap: 22px; }
  .header__shop { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .menu-btn { display: grid; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    align-items: center;
    padding: 120px var(--gutter) 48px;
    background: var(--green-900);
    color: var(--cream-100);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility 0s .4s;
  }
  .site-header.menu-open .nav { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
  .site-header.menu-open {
    background: transparent;
    color: var(--cream-100);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header.menu-open .brand__co { color: var(--gold-400); }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__list a { font: 500 clamp(2.4rem, 9vw, 3.2rem)/1.15 var(--font-display); letter-spacing: 0; text-transform: none; }

  .hero__grid { grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); min-height: 0; }
  .hero__copy { grid-column: 2; padding-block: calc(var(--header-h) + 40px) 56px; padding-right: 0; }
  .hero__media { grid-column: 1 / -1; min-height: 0; aspect-ratio: 1 / 1.05; }
  .hero__photo { inset: 0; border-top-left-radius: 72% 32%; }
  .hero__pod { --pod-size: clamp(96px, 24vw, 150px); left: var(--gutter); bottom: 5%; }
  .hero__seal { top: 7%; left: 9%; width: clamp(78px, 18vw, 110px); }

  .story__grid { grid-template-columns: 1fr; }
  .story__media { max-width: 620px; }

  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { padding: 34px 0 34px 24px; }
  .pillar:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--cream-300); }

  .product { grid-template-columns: 1fr; }
  .product--flip .product__media { order: 0; }
  .product__body { max-width: none; }
  .product__media--bag { width: min(78%, 400px); }

  .roast-panel { grid-template-columns: 1fr; }
  .brew__grid { grid-template-columns: 1fr; }
  .brew__head { position: static; }
  .join__card { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__facts { gap: 14px 20px; }
  .story__media { grid-template-columns: 1fr; }
  .story__img--b { grid-column: 1; margin: -64px 0 0 18%; }
  .definition { grid-column: 1; grid-row: 3; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(odd) { padding: 30px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--cream-300); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brew-stats, .brew-stats:has(> div:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segmented { display: flex; }
  .segmented label { flex: 1; text-align: center; padding-inline: .8rem; }
  .product__buy .btn { flex: 1 1 100%; }
  .roast-tab { gap: 12px; }
  .roast-tab__name { font-size: .6rem; letter-spacing: .16em; }
  .roast-tab__name::before { display: none; }
  .roast-panel__buy .btn { flex: 1 1 100%; }
  .join__form { grid-template-columns: 1fr; }
  .footer__brand .wordmark { font-size: 2.8rem; }
  .toast { left: 16px; right: 16px; max-width: none; transform: translateY(160%); }
  .toast.is-visible { transform: none; }
}

/* ---------- Scroll-linked depth ----------
   CSS scroll-driven animations run on the compositor with no JavaScript. Browsers without
   support (and reduced-motion users) simply get the still layout. */

@keyframes progress { to { transform: scaleX(1); } }
@keyframes photo-drift { from { translate: 0 -7.4%; } to { translate: 0 0; } }
@keyframes pod-drift { to { transform: translateY(-150px) rotate(-26deg); } }
@keyframes seal-drift { to { transform: translateY(110px); } }
@keyframes bean-drift { to { translate: 0 calc(var(--depth) * -180px); } }
@keyframes copy-out { to { transform: translateY(-70px); } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }

    .hero { view-timeline: --hero block; }
    .js .hero__photo img {
      animation: settle 1.6s var(--ease) both, photo-drift linear both;
      animation-timeline: auto, --hero;
      animation-range: normal, exit 0% exit 100%;
    }
    .hero__pod {
      animation: float 7s ease-in-out infinite, pod-drift linear both;
      animation-timeline: auto, --hero;
      animation-range: normal, exit 0% exit 100%;
    }
    .hero__seal {
      animation: spin 48s linear infinite, seal-drift linear both;
      animation-timeline: auto, --hero;
      animation-range: normal, exit 0% exit 100%;
    }
    .js .bean {
      animation: bean-in .9s cubic-bezier(.3, 1.5, .5, 1) var(--d) both, bean-float var(--t) ease-in-out calc(var(--d) + .9s) infinite, bean-drift linear both;
      animation-timeline: auto, auto, --hero;
      animation-range: normal, normal, exit 0% exit 100%;
    }
    .hero__copy {
      animation: copy-out linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 100%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
