/* ==========================================================================
   TALA — Brew Theme · Collection (Shop coffee)
   hero window · taste tiles · glass toolbar · filters · grid + promos ·
   roast quiz · about + faq · mobile filter drawer
   ========================================================================== */

.page-collection { --tool-h: 64px; }

/* ==========================================================================
   01 · HERO WINDOW
   ========================================================================== */
.chero { padding-top: calc(var(--bar-h) + var(--head-h) + 6px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; font-size: 13px; color: var(--mute); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.chero__window {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  min-height: clamp(520px, 64vh, 680px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-l);
  color: var(--paper);
  background: var(--ink);
  isolation: isolate;
}
.chero__media { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; }
.chero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 2.4s var(--ease); }
.chero.is-ready .chero__media img { transform: scale(1); }
.chero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 13, 9, .86) 0%, rgba(20, 13, 9, .5) 45%, rgba(20, 13, 9, .15) 100%), linear-gradient(to top, rgba(20, 13, 9, .55), transparent 50%); }
.chero__copy { max-width: 720px; position: relative; z-index: 2; }
.chero__copy .eyebrow { color: var(--crema); }
.chero__title { margin: 22px 0 22px; font-size: clamp(3rem, 6.6vw, 7.2rem); }
.chero__title .serif { color: #f0d6b6; }
.chero.is-ready .line > span { transform: none; }
.chero__lede { max-width: 48ch; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.65; color: rgba(255, 248, 240, .78); }

/* segmented format switch (glass) */
.fmt { position: relative; display: inline-flex; margin-top: 30px; padding: 4px; border-radius: 999px; background: rgba(255, 248, 240, .1); border: 1px solid rgba(255, 248, 240, .2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.fmt::-webkit-scrollbar { display: none; }
.fmt label { position: relative; z-index: 1; cursor: pointer; flex: none; }
.fmt input { position: absolute; opacity: 0; pointer-events: none; }
.fmt span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: rgba(255, 248, 240, .75); transition: color .45s var(--ease); white-space: nowrap; }
.fmt input:checked + span { color: var(--ink); }
.fmt input:focus-visible + span { outline: 1.5px solid var(--crema); outline-offset: -2px; }
.fmt i { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--paper); transform: translateX(var(--l, 4px)); width: var(--w, 0); transition: transform .55s var(--ease), width .55s var(--ease); }

/* next-roast glass card */
.chero__roast {
  position: relative; z-index: 2;
  display: grid; gap: 12px; width: 300px; padding: 18px;
  border-radius: var(--r-m);
  background: rgba(31, 22, 17, .3);
  backdrop-filter: saturate(150%) blur(24px); -webkit-backdrop-filter: saturate(150%) blur(24px);
  border: 1px solid rgba(255, 248, 240, .2);
  transition: background-color .4s var(--ease), transform .6s var(--ease);
}
.chero__roast:hover { background: rgba(31, 22, 17, .45); transform: translateY(-3px); }
.chero__roast-top { display: flex; justify-content: space-between; align-items: center; }
.chero__roast-top .mono { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; color: rgba(255, 248, 240, .75); }
.chero__count { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.chero__count b { font-family: var(--f-serif); font-weight: 330; font-size: 46px; letter-spacing: -.04em; line-height: 1; }
.chero__count small { font-family: var(--f-mono); font-size: 11px; color: var(--crema); margin-right: 10px; }
.chero__roast-foot { font-size: 12.5px; color: rgba(255, 248, 240, .65); line-height: 1.45; }
.chero__roast-foot b { color: #fff; font-weight: 500; }

/* floating bag lineup — overflows the bottom edge of the window */
.chero__bags { position: absolute; right: clamp(340px, 30vw, 420px); bottom: -46px; z-index: 1; display: flex; align-items: flex-end; pointer-events: none; }
.chero__bags span {
  width: clamp(76px, 7.4vw, 120px); margin-left: -22px;
  transform: translateY(calc(var(--k) * 0px)) rotate(calc((var(--k) - 2) * 5deg));
  opacity: 0; translate: 0 40px;
  transition: opacity .9s var(--ease), translate 1.2s var(--ease);
  transition-delay: calc(var(--k) * 80ms + .5s);
}
.chero__bags span:nth-child(1), .chero__bags span:nth-child(5) { margin-bottom: 18px; }
.chero__bags span:nth-child(2), .chero__bags span:nth-child(4) { margin-bottom: 34px; }
.chero__bags span:nth-child(3) { margin-bottom: 46px; width: clamp(92px, 8.6vw, 140px); z-index: 1; }
.chero.is-ready .chero__bags span { opacity: 1; translate: 0 0; }
.chero__bags .bag { filter: drop-shadow(0 28px 24px rgba(0, 0, 0, .45)); animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--k) * -1.1s); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ==========================================================================
   02 · TASTE TILES
   ========================================================================== */
.tastes { margin-top: clamp(80px, 8vw, 110px); }
.tastes__rail { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.taste { display: grid; gap: 12px; justify-items: center; text-align: center; }
.taste__img { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-m) var(--r-m); overflow: hidden; background: var(--sw-mocha); outline: 1.5px solid transparent; outline-offset: 4px; transition: outline-color .4s var(--ease); }
.taste__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.taste:hover .taste__img img { transform: scale(1.07); }
.taste__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 14, 9, .5), transparent 55%); }
.taste__n { position: absolute; left: 50%; bottom: 12px; z-index: 1; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: #fff; background: rgba(31, 22, 17, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 248, 240, .22); }
.taste b { font-family: var(--f-serif); font-weight: 400; font-size: clamp(15px, 1.2vw, 18px); letter-spacing: -.02em; line-height: 1.15; font-variation-settings: "SOFT" 80, "opsz" 36; }
.taste.is-on .taste__img { outline-color: var(--ink); }
.taste.is-on b { color: var(--roast); }
.taste.is-dim .taste__img img { filter: grayscale(.4) opacity(.7); }

/* ==========================================================================
   03 · TOOLBAR (glass pill, sticky)
   ========================================================================== */
.plp { margin-top: clamp(40px, 5vw, 64px); }
.toolbar { position: sticky; top: calc(var(--bar-h) + var(--head-h)); z-index: 40; height: var(--tool-h); transition: top .6s var(--ease); }
.bar-hidden .toolbar { top: var(--head-h); }
.toolbar__in {
  height: 52px; margin-top: 6px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 8px 0 8px;
  border-radius: 999px;
  background: rgba(250, 245, 238, .72);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 253, 249, .8);
  box-shadow: 0 16px 40px -26px rgba(31, 22, 17, .4), inset 0 0 0 1px var(--line-2);
}
.tbtn { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px 0 13px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 500; flex: none; transition: background-color .3s; }
.tbtn:hover { background: var(--roast); }
.tbtn .i { width: 18px; height: 18px; }
.tbtn__n, .mfab b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--crema); color: var(--ink); font-size: 11px; font-weight: 600; }
.tbtn__n[hidden], .mfab b[hidden] { display: none; }
.qpills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
.qpills::-webkit-scrollbar { display: none; }
.qpill { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; transition: background-color .3s, color .3s, border-color .3s; }
.qpill:hover { border-color: var(--ink); }
.qpill[aria-pressed="true"] { background: var(--leaf); color: var(--paper); border-color: var(--leaf); }
.toolbar__r { display: flex; align-items: center; gap: 14px; flex: none; }
.toolbar__count { color: var(--mute); white-space: nowrap; }
.view { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.view button { width: 32px; height: 28px; border-radius: 999px; display: grid; place-items: center; color: var(--mute-2); transition: background-color .3s, color .3s; }
.view button svg { width: 15px; height: 15px; fill: currentColor; }
.view button.is-on { background: var(--paper-2); color: var(--ink); }
.sort { position: relative; }
.sort__btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; transition: background-color .3s; }
.sort__btn span { color: var(--mute); }
.sort__btn b { font-weight: 500; }
.sort__btn:hover, .sort.is-open .sort__btn { background: var(--paper-2); }
.sort__btn .i { transition: transform .4s var(--ease); }
.sort.is-open .sort__btn .i { transform: rotate(180deg); }
.sort__menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 5;
  min-width: 230px; padding: 6px;
  border-radius: var(--r-m);
  background: rgba(250, 245, 238, .92);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(31, 22, 17, .4);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s;
}
.sort.is-open .sort__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s; }
.sort__menu li { padding: 9px 12px; border-radius: var(--r-xs); font-size: 13.5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.sort__menu li:hover, .sort__menu li.is-focus { background: var(--paper-2); }
.sort__menu li[aria-selected="true"] { font-weight: 600; }
.sort__menu li[aria-selected="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--roast); }

/* ==========================================================================
   04 · FILTERS + RESULTS
   ========================================================================== */
.shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 0 44px; padding-top: 28px; padding-bottom: var(--section); transition: grid-template-columns .7s var(--ease-io), column-gap .7s var(--ease-io); }
.shop.is-collapsed { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }
.filters { position: sticky; top: calc(var(--bar-h) + var(--head-h) + var(--tool-h) + 22px); align-self: start; max-height: calc(100vh - var(--bar-h) - var(--head-h) - var(--tool-h) - 44px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; transition: opacity .4s var(--ease), top .6s var(--ease); min-width: 0; }
.bar-hidden .filters { top: calc(var(--head-h) + var(--tool-h) + 22px); max-height: calc(100vh - var(--head-h) - var(--tool-h) - 44px); }
.shop.is-collapsed .filters { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .7s; }
.filters__head, .filters__foot, .fgroup--sort { display: none; }
.filters__body { display: grid; gap: 4px; padding-right: 6px; }
.switch { display: flex; align-items: center; gap: 12px; padding: 4px 0 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch__ui { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line); transition: background-color .35s var(--ease); flex: none; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .45s var(--ease); }
.switch input:checked + .switch__ui { background: var(--leaf); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup summary { display: flex; align-items: center; gap: 8px; padding: 16px 0; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .i { margin-left: auto; transition: transform .45s var(--ease); }
.fgroup[open] summary .i { transform: rotate(45deg); }
.fgroup__n:not(:empty) { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 10.5px; font-weight: 600; }
.fgroup > div { padding-bottom: 18px; }
.fgroup__t { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }

/* roast level: five stacked chips with a bar meter */
.froast { display: grid; gap: 6px; }
.froast button { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 38px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line); font-size: 13.5px; text-align: left; transition: border-color .3s, background-color .3s, color .3s; }
.froast button:hover { border-color: var(--ink); }
.froast button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.froast button[aria-pressed="true"] .roast__bar i { background: rgba(255, 248, 240, .25); }
.froast button[aria-pressed="true"] .roast__bar i.on { background: var(--crema); }
.froast small { color: var(--mute-2); font-size: 11.5px; margin-left: auto; margin-right: 4px; }
.froast button[aria-pressed="true"] small { color: rgba(255, 248, 240, .6); }
.froast button[disabled] { opacity: .35; cursor: not-allowed; }

/* flavour chips with colour dots */
.fflav { display: flex; flex-wrap: wrap; gap: 6px; }
.fflav button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; transition: border-color .3s, background-color .3s, color .3s; }
.fflav button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.fflav button:hover { border-color: var(--ink); }
.fflav button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fflav button[disabled] { opacity: .35; cursor: not-allowed; }

/* checkbox lists */
.fopts { display: grid; gap: 2px; }
.fopt { display: flex; align-items: center; gap: 11px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.fopt input { position: absolute; opacity: 0; }
.fopt__box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--mute-2); display: grid; place-items: center; transition: background-color .3s, border-color .3s; flex: none; }
.fopt__box svg { width: 12px; height: 12px; fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease); }
.fopt input:checked + .fopt__box { background: var(--ink); border-color: var(--ink); }
.fopt input:checked + .fopt__box svg { stroke-dashoffset: 0; }
.fopt input:focus-visible + .fopt__box { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.fopt small { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--mute-2); }
.fopt.is-zero { opacity: .4; }
.fopt__alt { font-family: var(--f-mono); font-size: 10px; color: var(--mute-2); letter-spacing: .04em; }

/* dual price slider */
.price { padding-top: 6px; }
.price__track { position: relative; height: 4px; margin: 12px 9px 16px; border-radius: 4px; background: var(--line); }
.price__track > i { position: absolute; top: 0; bottom: 0; border-radius: inherit; background: var(--roast); }
.price__track input { position: absolute; left: -9px; right: -9px; top: -8px; width: calc(100% + 18px); height: 20px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.price__track input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); cursor: grab; }
.price__track input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); cursor: grab; }
.price__track input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--roast); outline-offset: 2px; }
.price__out { display: flex; justify-content: space-between; font-size: 13px; font-variant-numeric: tabular-nums; }

.fhelp { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; margin-top: 18px; padding: 14px; border-radius: var(--r-m); background: var(--paper-2); transition: background-color .3s; }
.fhelp:hover { background: var(--latte); }
.fhelp__bag { width: 46px; transform: rotate(-6deg); }
.fhelp b { display: block; font-weight: 500; font-size: 14px; }
.fhelp small { color: var(--mute); font-size: 12.5px; line-height: 1.45; display: block; }

/* results */
.results { min-width: 0; }
.active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; min-height: 0; }
.active:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 13px; border-radius: 999px; background: var(--paper-2); font-size: 13px; transition: background-color .3s; }
.achip:hover { background: var(--latte); }
.achip .i { width: 13px; height: 13px; }
.achip--clear { background: none; text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; }
.cgrid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 44px 18px; }
.cgrid[style*="--cols:2"] .card__title { font-size: 24px; }
.cgrid[style*="--cols:4"] .card__notes { display: none; }

/* editorial promo tiles inside the grid */
.promo { grid-column: span 2; position: relative; display: grid; align-content: end; min-height: 100%; border-radius: var(--r-l); overflow: hidden; isolation: isolate; color: var(--paper); opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.promo.is-in { opacity: 1; transform: none; }
.promo__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.promo:hover .promo__img { transform: scale(1.05); }
.promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(22, 14, 9, .75), rgba(22, 14, 9, .1) 60%); }
.promo__body { margin: 18px; padding: 22px; border-radius: var(--r-m); background: rgba(31, 22, 17, .3); backdrop-filter: saturate(150%) blur(22px); -webkit-backdrop-filter: saturate(150%) blur(22px); border: 1px solid rgba(255, 248, 240, .2); display: grid; gap: 10px; justify-items: start; }
.promo__body .mono { color: var(--crema); font-size: 10px; }
.promo__body h3 { font-family: var(--f-serif); font-weight: 340; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.03em; line-height: 1.05; }
.promo__body h3 em { color: #f0d6b6; }
.promo__body p { font-size: 14px; color: rgba(255, 248, 240, .75); max-width: 40ch; }
.promo__body .btn { margin-top: 6px; }
.promo--quiz { background: var(--leaf); align-content: center; }
.promo--quiz::after { display: none; }
.promo--quiz .promo__body { background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 28px; max-width: 58%; }
.promo__bags { position: absolute; right: -10px; bottom: -14px; display: flex; align-items: flex-end; z-index: -1; }
.promo__bags span { width: clamp(70px, 7vw, 110px); margin-left: -26px; transition: transform .8s var(--ease); }
.promo__bags span:nth-child(1) { transform: rotate(-10deg) translateY(10px); }
.promo__bags span:nth-child(2) { transform: rotate(2deg) translateY(-14px); z-index: 1; }
.promo__bags span:nth-child(3) { transform: rotate(12deg) translateY(16px); }
.promo--quiz:hover .promo__bags span:nth-child(2) { transform: translateY(-28px); }
.promo__bags .bag { filter: drop-shadow(0 22px 20px rgba(0, 0, 0, .4)); }
.cgrid[style*="--cols:2"] .promo { grid-column: 1 / -1; min-height: 380px; }

.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 60px 20px 80px; }
.empty__bag { width: 90px; margin-bottom: 10px; transform: rotate(-8deg); }
.empty .lede { margin-inline: auto; }
.empty__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.more { display: grid; justify-items: center; gap: 14px; margin-top: 64px; }
.more .mono { color: var(--mute); }
.more .mono b { color: var(--ink); font-weight: 500; }
.more__bar { width: 220px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.more__bar i { display: block; height: 100%; background: var(--roast); border-radius: inherit; transition: width .7s var(--ease); }
.more[hidden] { display: none; }

/* ==========================================================================
   05 · ROAST QUIZ
   ========================================================================== */
.quiz { position: relative; background: var(--leaf); color: var(--paper); padding-block: var(--section); overflow: hidden; isolation: isolate; }
.quiz::before { content: ""; position: absolute; z-index: -1; width: 900px; aspect-ratio: 1; right: -200px; top: 50%; translate: 0 -50%; border-radius: 50%; background: radial-gradient(circle, rgba(201, 154, 104, .3), transparent 62%); }
.quiz::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4; background: repeating-radial-gradient(circle at 80% 50%, transparent 0 52px, rgba(255, 248, 240, .05) 52px 53px); }
.quiz__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.quiz .eyebrow { color: var(--crema); margin-bottom: 22px; }
.quiz .h-1 { margin-bottom: 22px; }
.quiz .h-1 .serif { color: #e9cfaf; }
.quiz .lede { color: rgba(255, 248, 240, .72); }
.qform { display: grid; gap: 22px; margin-top: 40px; }
.qform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qform legend { padding: 0; margin-bottom: 12px; color: rgba(255, 248, 240, .7); }
.qform legend span { color: var(--crema); margin-right: 10px; }
.qopts { display: flex; flex-wrap: wrap; gap: 8px; }
.qopts label { cursor: pointer; }
.qopts input { position: absolute; opacity: 0; pointer-events: none; }
.qopts span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 248, 240, .22); font-size: 14px; font-weight: 500; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s; }
.qopts label:hover span { border-color: rgba(255, 248, 240, .6); }
.qopts input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.qopts input:focus-visible + span { outline: 1.5px solid var(--crema); outline-offset: 2px; }

.match {
  position: relative;
  display: grid; justify-items: center; text-align: center;
  padding: 34px 30px 30px;
  border-radius: 999px 999px var(--r-l) var(--r-l);
  background: rgba(255, 248, 240, .08);
  border: 1px solid rgba(255, 248, 240, .18);
  backdrop-filter: saturate(140%) blur(24px); -webkit-backdrop-filter: saturate(140%) blur(24px);
  box-shadow: 0 60px 100px -50px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 248, 240, .12);
}
.match > * { animation: fadeUp .6s var(--ease) both; }
.match > :nth-child(2) { animation-delay: .05s; }
.match > :nth-child(3) { animation-delay: .1s; }
.match > :nth-child(4) { animation-delay: .15s; }
.match > :nth-child(5) { animation-delay: .2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.match__score { position: absolute; top: 20%; right: 4%; display: grid; place-content: center; justify-items: center; width: 92px; aspect-ratio: 1; border-radius: 50%; background: var(--crema); color: var(--ink); transform: rotate(10deg); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }
.match__score b { font-family: var(--f-serif); font-weight: 400; font-size: 28px; letter-spacing: -.03em; line-height: 1; }
.match__score small { font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.match__bag { width: clamp(150px, 15vw, 200px); margin: 26px 0 18px; }
.match__bag .bag { filter: drop-shadow(0 36px 30px rgba(0, 0, 0, .45)); }
.match .mono { color: var(--crema); font-size: 10px; }
.match h3 { font-family: var(--f-serif); font-weight: 340; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.035em; line-height: 1.05; margin: 6px 0 8px; }
.match__why { max-width: 38ch; font-size: 14.5px; color: rgba(255, 248, 240, .72); }
.match .notes { justify-content: center; margin: 14px 0 22px; }
.match .notes li { border-color: rgba(255, 248, 240, .25); }
.match__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ==========================================================================
   06 · ABOUT + FAQ
   ========================================================================== */
.cinfo__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cinfo__about { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 36px; align-items: start; }
.cinfo__img { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-m) var(--r-m); overflow: hidden; background: var(--sw-sage); }
.cinfo__img img { width: 100%; height: 100%; object-fit: cover; }
[data-reveal="clip"].cinfo__img { clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); }
[data-reveal="clip"].cinfo__img.is-in { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); }
.cinfo__about .eyebrow { color: var(--roast); margin-bottom: 18px; }
.cinfo__about .h-2 { margin-bottom: 20px; }
.cinfo__about .h-2 .serif { color: var(--roast); }
.cinfo__text { display: grid; gap: 14px; color: var(--mute); font-size: 15px; max-height: 6.6em; overflow: hidden; mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); transition: max-height .7s var(--ease); }
.cinfo__text.is-open { max-height: 40em; mask-image: none; -webkit-mask-image: none; }
#aboutMore { margin-top: 14px; }
#aboutMore .i { transition: transform .4s var(--ease); }
#aboutMore[aria-expanded="true"] .i { transform: rotate(45deg); }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--f-serif); font-size: 20px; font-weight: 400; letter-spacing: -.02em; cursor: pointer; list-style: none; font-variation-settings: "SOFT" 80, "opsz" 36; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; border: 1px solid var(--line); transition: transform .45s var(--ease), background-color .3s, color .3s; box-sizing: border-box; }
.faq__item[open] summary .i { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq__item > div { padding: 0 50px 24px 0; color: var(--mute); font-size: 15px; }

/* mobile filter button */
.mfab {
  position: fixed; left: 50%; bottom: 18px; z-index: 45;
  display: none; align-items: center; gap: 10px;
  height: 50px; padding: 0 20px;
  border-radius: 999px;
  background: rgba(31, 22, 17, .88); color: var(--paper);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  font-size: 14px; font-weight: 500;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .5);
  transform: translate(-50%, 160%);
  transition: transform .6s var(--ease);
}
.mfab .i { width: 18px; height: 18px; }
.mfab.is-on { transform: translate(-50%, 0); }

.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; }
.cursor span { position: absolute; left: -44px; top: -44px; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; font-size: 13px; font-weight: 500; color: var(--ink); background: rgba(246, 240, 232, .72); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transform: scale(0); transition: transform .45s var(--ease); }
.cursor.is-on span { transform: scale(1); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1280px) {
  .chero__bags { right: 330px; }
  .chero__bags span { width: 84px; }
  .chero__bags span:nth-child(3) { width: 100px; }
}
@media (max-width: 1180px) {
  .tastes__rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 150px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .tastes__rail::-webkit-scrollbar { display: none; }
  .chero__bags { display: none; }
  .view button[data-cols="4"] { display: none; }
}
@media (max-width: 1024px) {
  .chero__window { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .chero__roast { width: 100%; max-width: 420px; grid-template-columns: 1fr auto; align-items: center; }
  .chero__roast-top { grid-column: 1 / -1; }
  .chero__count { grid-row: 2; }
  .chero__roast-foot { grid-row: 2; text-align: right; max-width: 22ch; }
  .shop, .shop.is-collapsed { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .toolbar__count, .view, #filterToggle { display: none; }
  .qpills { mask-image: none; -webkit-mask-image: none; }
  .filters, .bar-hidden .filters {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 95;
    max-height: 88vh;
    display: flex; flex-direction: column;
    background: var(--paper);
    border-radius: var(--r-l) var(--r-l) 0 0;
    box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .4);
    overflow: hidden;
    transform: translateY(105%);
    transition: transform .65s var(--ease-io);
  }
  .shop.is-collapsed .filters { opacity: 1; visibility: visible; }
  .filters.is-open { transform: none; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 10px; border-bottom: 1px solid var(--line); }
  .filters__head h3 { font-family: var(--f-serif); font-weight: 380; font-size: 24px; letter-spacing: -.03em; }
  .filters__body { flex: 1; overflow-y: auto; padding: 6px 20px 20px; }
  .fgroup--sort { display: block; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
  .fchips { display: flex; flex-wrap: wrap; gap: 6px; }
  .fchips button { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
  .fchips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .filters__foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .mfab { display: inline-flex; }
  .cgrid { --cols: 2 !important; }
  .cgrid .promo { grid-column: 1 / -1; min-height: 360px; }
  .quiz__in { grid-template-columns: minmax(0, 1fr); }
  .match { border-radius: var(--r-l); }
  .cinfo__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .chero { padding-top: calc(var(--bar-h) + var(--head-h)); }
  .chero__window { padding: 26px 20px 22px; }
  .chero__title { margin: 16px 0; }
  .fmt span { height: 36px; padding: 0 14px; font-size: 13px; }
  .chero__roast { grid-template-columns: minmax(0, 1fr); }
  .chero__roast-foot { grid-row: auto; text-align: left; max-width: none; }
  .chero__count b { font-size: 38px; }
  .tastes { margin-top: 36px; }
  .tastes__rail { grid-auto-columns: 112px; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .plp { margin-top: 24px; }
  .toolbar__in { gap: 8px; padding-right: 4px; }
  .toolbar__r .sort { display: none; }
  .cgrid { gap: 34px 12px; }
  .promo__body { margin: 12px; padding: 18px; }
  .promo--quiz .promo__body { max-width: 70%; padding: 22px; }
  .promo__bags span { width: 64px; }
  .match { padding: 28px 18px 22px; }
  .match__score { width: 74px; top: 12px; right: 12px; }
  .match__score b { font-size: 22px; }
  .match__ctas .btn { width: 100%; }
  .qopts span { height: 40px; padding: 0 14px; font-size: 13.5px; }
  .cinfo__about { grid-template-columns: minmax(0, 1fr); }
  .cinfo__img { width: 60%; }
  .faq__item summary { font-size: 17px; }
  .faq__item > div { padding-right: 0; }
}
