/* JavaMania redesign. Radius rule: buttons are pills, tiles and cards 14px, labels 4px. */
:root {
  --bg: #0c0c0b;
  --bg-2: #151514;
  --bg-3: #1d1d1b;
  --fg: #ecebe7;
  --fg-2: #a6a59f;
  --line: rgba(236, 235, 231, 0.14);
  --accent: #e2553c;
  --tile: #e4e3df;
  --tile-fg: #141413;
  --tile-fg-2: #4d4c48;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --r: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* film grain over everything, fixed so it never repaints on scroll */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }

.h2 { font-family: var(--serif); font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.h3, .footer h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
em { font-style: italic; color: var(--accent); }
.lede { color: var(--fg-2); font-size: 1.125rem; max-width: 52ch; margin-top: 20px; text-wrap: pretty; }
.section { padding-block: clamp(96px, 13vw, 176px); }

/* split text */
.w { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; will-change: transform; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding-inline: 26px; border-radius: 999px;
  font-weight: 500; font-size: 1rem; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--light { background: var(--fg); color: var(--tile-fg); }
.btn--ghost { border-color: rgba(236, 235, 231, 0.45); color: var(--fg); background: rgba(12, 12, 11, 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--line { border-color: var(--line); color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { background: #fff; }
  .btn--ghost:hover, .btn--line:hover { border-color: var(--fg); background: rgba(236, 235, 231, 0.08); }
}
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 200ms ease, gap 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { border-color: var(--fg); gap: 12px; } }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-size: 21px;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn--line { border: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: rgba(236, 235, 231, 0.1); } }

/* announcement + nav */
.announce { position: relative; z-index: 51; text-align: center; font-size: 0.8125rem; font-weight: 500; padding: 9px 16px; background: var(--fg); color: var(--tile-fg); }
.nav {
  position: fixed; top: 38px; left: 0; right: 0; z-index: 50;
  height: 72px; display: flex; align-items: center; gap: 32px;
  padding-inline: var(--gutter);
  transition: transform 450ms var(--ease-out), top 300ms var(--ease-out), background-color 300ms ease, backdrop-filter 300ms ease;
}
.nav.is-scrolled { top: 0; background: rgba(12, 12, 11, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav:not(.is-scrolled) { background: linear-gradient(180deg, rgba(12,12,11,.55), rgba(12,12,11,0)); }
.nav__logo img { width: 60px; height: 60px; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav__logo:hover img { transform: scale(1.05); } }
.nav__links { display: flex; gap: 28px; font-size: 0.9375rem; font-weight: 500; }
.nav__links a { position: relative; padding-block: 6px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__actions { margin-left: auto; display: flex; gap: 2px; }
.nav__burger { display: none; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform 300ms var(--ease-out); }
.nav__burger span:first-child { transform: translateY(-4px); }
.nav__burger span:last-child { transform: translateY(4px); }
.nav__burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 49; background: var(--bg); padding: 120px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a { font-family: var(--serif); font-size: clamp(2.25rem, 9vw, 3.25rem); line-height: 1.15; }
.menu__foot { display: flex; gap: 24px; color: var(--fg-2); font-size: 0.9375rem; }

/* hero */
.hero { position: relative; min-height: 100dvh; margin-top: -38px; display: flex; align-items: flex-end; overflow: clip; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 50% 60%; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(12,12,11,.55) 0%, rgba(12,12,11,0) 22%),
  linear-gradient(0deg, rgba(12,12,11,.92) 0%, rgba(12,12,11,.35) 42%, rgba(12,12,11,0) 70%); }
.hero__inner { padding-bottom: clamp(48px, 8vh, 96px); }
.hero__title { font-family: var(--serif); font-size: clamp(3rem, 7.4vw, 6rem); line-height: 1; letter-spacing: -0.025em; max-width: 17ch; text-wrap: balance; }
.hero__title em { color: var(--fg); }
.hero__sub { margin-top: 24px; max-width: 40ch; font-size: 1.1875rem; color: #d4d3ce; }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge { position: absolute; right: var(--gutter); bottom: clamp(48px, 8vh, 96px); width: 172px; height: 172px; display: grid; place-items: center; }
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--fg); font: 500 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.hero__badge img { width: 84px; height: 84px; }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: clip; padding-block: 26px; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__set { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; white-space: nowrap; }
.marquee__set img { width: 22px; height: auto; }

/* bento */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(3, minmax(210px, 1fr)); gap: 16px; }
.tile { position: relative; overflow: clip; border-radius: var(--r); display: flex; isolation: isolate; }
.tile h3 { font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.05; }
.tile p { margin-top: 8px; font-size: 0.9375rem; }
.tile--flavored { grid-column: 1 / 8; grid-row: 1 / 4; align-items: flex-end; min-height: 560px; }
.tile__bg { position: absolute; inset: -8% 0; z-index: -2; }
.tile__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.tile--flavored::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,12,11,.88) 0%, rgba(12,12,11,.2) 55%, rgba(12,12,11,0) 100%); }
.tile--flavored .tile__body { padding: clamp(24px, 3vw, 40px); width: 100%; }
.tile--flavored h3 { font-size: clamp(2.5rem, 4.4vw, 4rem); }
.tile--flavored p { color: #dcdbd6; font-size: 1.0625rem; }
.tile__go { position: absolute; right: clamp(24px, 3vw, 40px); bottom: clamp(24px, 3vw, 40px); width: 56px; height: 56px; border-radius: 999px; background: var(--fg); color: var(--tile-fg); display: grid; place-items: center; font-size: 22px; transition: transform 400ms var(--ease-out); }
.tile--light { grid-column: 8 / 13; background: var(--tile); color: var(--tile-fg); align-items: center; }
.tile--light .tile__body { padding: 28px; position: relative; z-index: 1; max-width: 58%; }
.tile--light p { color: var(--tile-fg-2); }
.tile__bag { position: absolute; right: -6%; top: 50%; height: 118%; width: auto; max-width: none; transform: translateY(-50%); transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile--flavored:hover .tile__bg img { transform: scale(1.04); }
  .tile--flavored:hover .tile__go { transform: rotate(-45deg); }
  .tile--light:hover .tile__bag { transform: translateY(-53%); }
}

/* roast */
.roast { position: relative; }
.roast__pin { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: 96px 64px; }
.roast__stops { position: relative; margin-top: 48px; min-height: 230px; }
.stop { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out), filter 500ms var(--ease-out); pointer-events: none; }
.stop.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.stop__level { color: var(--accent); font-weight: 500; font-size: 0.9375rem; }
.stop h3 { font-family: var(--serif); font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.05; margin-top: 6px; }
.stop p:not(.stop__level) { color: var(--fg-2); margin-top: 12px; max-width: 40ch; }
.stop .link { margin-top: 20px; }
.roast__visual { position: relative; }
.roast__bags { position: relative; aspect-ratio: 800 / 820; border-radius: var(--r); background: var(--tile); overflow: clip; }
.roast__bags img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; opacity: 0; transform: scale(0.96) translateY(10px); filter: blur(8px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out), filter 600ms var(--ease-out); }
.roast__bags img.is-active { opacity: 1; transform: none; filter: none; }
.scale { position: relative; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; border-radius: var(--r); background: var(--tile); }
.scale img { position: relative; z-index: 1; width: 30px; height: auto; }
.scale__marker { position: absolute; left: 0; top: 50%; width: 62px; height: 62px; margin-top: -31px; border-radius: 50%; background: rgba(20, 20, 19, 0.1); will-change: transform; }

/* flavors list */
.flavors { position: relative; }
.flist { list-style: none; margin: 48px 0 40px; padding: 0; border-top: 1px solid var(--line); }
.flist a { display: grid; grid-template-columns: 1fr 1fr 28px; align-items: center; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--line); transition: padding 400ms var(--ease-out), color 300ms ease; }
.flist img { display: none; }
.flist__name { font-family: var(--serif); font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.1; }
.flist__note { color: var(--fg-2); }
.flist i { font-size: 22px; justify-self: end; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .flist:hover a { color: var(--fg-2); }
  .flist a:hover { color: var(--fg); padding-left: 20px; }
  .flist a:hover i { transform: rotate(45deg); color: var(--accent); }
}
.cursor-img { position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 1; pointer-events: none; border-radius: var(--r); overflow: clip; opacity: 0; transform: scale(0.85); transition: opacity 250ms ease, transform 400ms var(--ease-out); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.cursor-img img { width: 100%; height: 100%; object-fit: cover; }
.cursor-img.is-on { opacity: 1; transform: scale(1); }

/* flavor lab */
.lab { background: var(--bg-2); padding-block: clamp(96px, 13vw, 176px); border-block: 1px solid var(--line); }
.lab__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.lab__title em { display: inline; }
.lab__read { margin-top: 36px; font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.45; max-width: 34ch; }
.lab__read .rw { opacity: 0.22; transition: opacity 200ms linear; }
.facts { width: 100%; max-width: 560px; margin: 40px 0 36px; border-collapse: collapse; font-size: 0.9375rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 1px solid var(--line); }
.facts th { font-weight: 500; width: 110px; padding-right: 16px; }
.facts td { color: var(--fg-2); }
.lab__visual { position: sticky; top: 120px; display: grid; gap: 20px; }
.label {
  background: #f1f0ec; color: #111; border-radius: 4px; padding: 28px 30px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
  transform-style: preserve-3d; will-change: transform;
}
.label__head { display: flex; align-items: center; gap: 14px; font: 500 0.8125rem var(--sans); letter-spacing: 0.24em; text-transform: uppercase; }
.label__head::before, .label__head::after { content: ""; flex: 1; height: 1px; background: #111; }
.label__name { font-family: var(--serif); font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.05; margin: 26px 0 28px; min-height: 2.1em; }
.caret { display: inline-block; width: 2px; height: 0.85em; background: var(--accent); margin-left: 4px; vertical-align: -0.05em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.label__row { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; border-top: 1px solid rgba(17,17,17,.25); font-size: 0.875rem; }
.label__row + .label__row { margin-top: 10px; }
.label__row span:first-child { color: #5b5a56; }
.blend { border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; }
.blend h3 { font-family: var(--serif); font-size: 1.875rem; }
.blend p { color: var(--fg-2); margin: 8px 0 18px; }

/* rail */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail-nav { display: flex; gap: 8px; }
.rail {
  margin-top: 48px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 26vw, 340px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 24px; margin-bottom: -24px; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag .card { pointer-events: none; }
.card { scroll-snap-align: start; display: block; }
.card__img { position: relative; border-radius: var(--r); background: var(--tile); aspect-ratio: 4 / 5; min-height: 0; display: grid; place-items: center; overflow: clip; }
.card__img img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; transition: transform 600ms var(--ease-out); user-select: none; }
.card h3 { font-family: var(--serif); font-size: 1.75rem; margin-top: 18px; line-height: 1.1; }
.card__meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.9375rem; font-weight: 500; }
.card__meta span { color: var(--fg-2); font-weight: 400; }
.card__note { color: var(--fg-2); font-size: 0.9375rem; margin-top: 6px; }
@media (hover: hover) and (pointer: fine) { .card:hover .card__img img { transform: translateY(-6px); } }

/* reviews */
.reviews { display: grid; grid-template-columns: 0.8fr 2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.reviews__score { position: sticky; top: 120px; }
.score { font-family: var(--serif); font-size: clamp(6rem, 13vw, 11rem); line-height: 0.85; letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 14px; }
.score small { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; color: var(--fg-2); }
.reviews__from { margin-top: 18px; color: var(--fg-2); }
.quotes { columns: 2; column-gap: 16px; }
.quote { break-inside: avoid; margin: 0 0 16px; padding: 28px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.quote:nth-child(3n+2) { background: var(--bg-3); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; }
.quote figcaption { margin-top: 18px; font-size: 0.9375rem; font-weight: 500; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.quote figcaption span { color: var(--fg-2); font-weight: 400; }

/* since */
.since { position: relative; overflow: clip; padding-block: clamp(140px, 20vw, 260px); text-align: center; border-top: 1px solid var(--line); }
.since__beans img { position: absolute; left: var(--x); top: var(--y); width: calc(84px * var(--s)); rotate: var(--r); will-change: transform; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
.since__beans img.blur { filter: blur(3px) brightness(.8); }
.since__inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.since__year { font-family: var(--serif); font-size: clamp(9rem, 30vw, 26rem); line-height: 0.8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(236, 235, 231, 0.28); position: absolute; top: 50%; left: 50%; translate: -50% -50%; white-space: nowrap; z-index: -1; user-select: none; }
.since .h2 { max-width: 14ch; }
.since .lede { margin-inline: auto; }

/* trade */
.trade__grid { margin-top: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.trade__card { border-radius: var(--r); padding: clamp(28px, 3.5vw, 48px); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.trade__card h3 { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.05; }
.trade__card--alt { background: var(--tile); color: var(--tile-fg); border-color: transparent; }
.trade__card--alt p { color: var(--tile-fg-2); margin: 16px 0 32px; max-width: 36ch; }
.trade__card--alt .btn--line { border-color: rgba(20,20,19,.3); color: var(--tile-fg); margin-top: auto; }
@media (hover: hover) and (pointer: fine) { .trade__card--alt .btn--line:hover { border-color: var(--tile-fg); background: rgba(20,20,19,.06); } }
.facts--trade { margin: 28px 0 36px; max-width: none; }
.facts--trade th { width: 120px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding-top: clamp(72px, 9vw, 120px); overflow: clip; }
.footer__top { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 96px); }
.signup .h3 { display: block; font-size: clamp(2rem, 3.2vw, 2.75rem); }
.signup__row { margin-top: 20px; display: flex; gap: 8px; max-width: 460px; }
.signup input { flex: 1; min-width: 0; height: 52px; border-radius: 999px; border: 1px solid rgba(236,235,231,.32); background: transparent; color: var(--fg); padding-inline: 22px; font: inherit; font-size: 1rem; transition: border-color 200ms ease; }
.signup input::placeholder { color: #8d8c87; }
.signup input:focus { outline: none; border-color: var(--fg); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; }
.footer__cols h3 { font-size: 1.375rem; margin-bottom: 6px; }
.footer__cols a { color: var(--fg-2); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__cols a:hover { color: var(--fg); } }
.footer__word { font-family: var(--serif); font-size: clamp(5rem, 21vw, 20rem); line-height: 0.8; padding-bottom: 0.14em; letter-spacing: -0.045em; text-align: center; margin: clamp(64px, 9vw, 120px) 0 0; white-space: nowrap; }
.footer__word .ch { display: inline-block; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px 28px; font-size: 0.8125rem; color: var(--fg-2); border-top: 1px solid var(--line); margin-top: 16px; }

/* responsive */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-grid; }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .tile--flavored { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
  .tile--light { grid-column: auto; min-height: 240px; align-items: flex-start; }
  .tile--light:last-child { grid-column: 1 / -1; }
  .tile--light .tile__body { max-width: 62%; padding: 22px; }
  .tile__bag { height: 92%; top: auto; bottom: -10%; transform: none; right: -14%; }
  .roast__pin { grid-template-columns: 1fr; gap: 24px; padding-block: 88px 40px; align-content: center; }
  .roast__stops { margin-top: 20px; min-height: 190px; }
  .roast__text .lede { display: none; }
  .roast__visual { order: -1; max-width: 300px; width: 100%; margin-inline: auto; }
  .lab__grid { grid-template-columns: 1fr; }
  .lab__visual { position: static; }
  .reviews { grid-template-columns: 1fr; }
  .reviews__score { position: static; }
  .trade__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .nav { height: 64px; }
  .nav__logo img { width: 52px; height: 52px; }
  .hero__badge { display: none; }
  .hero__scrim { background: linear-gradient(180deg, rgba(12,12,11,.55) 0%, rgba(12,12,11,0) 18%), linear-gradient(0deg, rgba(12,12,11,.96) 0%, rgba(12,12,11,.7) 40%, rgba(12,12,11,0) 72%); }
  .since__beans img { opacity: .5; }
  .hero__sub { font-size: 1.0625rem; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .bento { grid-template-columns: 1fr; }
  .tile--light, .tile--light:last-child { grid-column: auto; min-height: 200px; }
  .flist a { grid-template-columns: 56px 1fr 22px; gap: 16px; padding: 16px 0; }
  .flist img { display: block; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; grid-row: 1 / 3; }
  .flist__name { font-size: 1.625rem; }
  .flist__note { grid-column: 2; font-size: 0.9375rem; margin-top: -10px; }
  .flist i { grid-column: 3; grid-row: 1 / 3; }
  .quotes { columns: 1; }
  .quote blockquote { font-size: 1.3125rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer__base { flex-direction: column; }
  .signup__row { flex-direction: column; }
  .signup input { flex: none; }
  .since__beans img { width: calc(44px * var(--s)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; scroll-behavior: auto !important; }
  .stop, .roast__bags img { position: relative; inset: auto; opacity: 1; transform: none; filter: none; }
  .roast__bags img:not(.is-active) { display: none; }
  .roast__stops { display: grid; gap: 32px; min-height: 0; }
  .stop { pointer-events: auto; }
  .scale__marker { display: none; }
  .lab__read .rw { opacity: 1; }
}

/* ---------- cart: nav badge, drawer, shared line items ---------- */
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.6875rem; font-weight: 600; line-height: 18px; text-align: center; }
.cdrawer { position: fixed; inset: 0; z-index: 80; }
.cdrawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 400ms ease; }
.cdrawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 450ms cubic-bezier(0.32, 0.72, 0, 1); }
.cdrawer.is-open .cdrawer__scrim { opacity: 1; }
.cdrawer.is-open .cdrawer__panel { transform: none; }
.cdrawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.cdrawer__head h2 { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.cdrawer__head h2 span { font-family: var(--sans); font-size: 1rem; color: var(--fg-2); }
.ship { padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.ship__track { display: block; height: 6px; margin-top: 10px; border-radius: 999px; background: rgba(236, 235, 231, 0.1); overflow: hidden; }
.ship__bar { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform 600ms var(--ease-out); }
.clines { list-style: none; margin: 0; padding: 8px 24px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.cline { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cline:last-child { border-bottom: 0; }
.cline__img { position: relative; flex: none; width: 84px; aspect-ratio: 4 / 5; border-radius: 10px; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.cline__img img { position: absolute; inset: 3%; width: 94%; height: 94%; object-fit: contain; }
.cline__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cline__name { font-family: var(--serif); font-size: 1.375rem; line-height: 1.1; }
.cline__var { color: var(--fg-2); font-size: 0.8125rem; margin-top: 2px; }
.cline__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.cline__price { font-weight: 500; font-variant-numeric: tabular-nums; }
.cline__rm { align-self: flex-start; margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--fg-2); font: inherit; font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qty--sm { height: 40px; padding: 2px; }
.qty--sm .qty__btn { width: 34px; height: 34px; font-size: 13px; }
.cempty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; }
.cempty p { font-family: var(--serif); font-size: 1.75rem; }
.cdrawer__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cdrawer__sub { display: flex; justify-content: space-between; font-size: 1.0625rem; font-weight: 500; }
.cdrawer__note { color: var(--fg-2); font-size: 0.8125rem; }
.cdrawer__checkout { width: 100%; }
.cdrawer__view { justify-self: center; font-size: 0.875rem; color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
[data-add].is-added { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
@media (prefers-reduced-motion: reduce) { .cdrawer__panel, .cdrawer__scrim { transition: none; } }

[hidden] { display: none !important; }
.demo-ok { padding: 14px 0; color: var(--fg); }
