/* Kindred Coffee Roasters — concept store by EpicTech. */
:root {
  --paper: #f6f0e7;
  --card: #fbf7f1;
  --cream: #efe5d6;
  --ink: #2a1c15;
  --ink-2: #6b5a4e;
  --rust: #b8532f;
  --rust-d: #9a4224;
  --gold: #d9a441;
  --sage: #7d8a6a;
  --line: rgba(42, 28, 21, .12);
  --line-2: rgba(42, 28, 21, .22);
  --radius: 18px;
  --etbar-h: 40px;
  --head-h: 70px;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--etbar-h) + var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); padding-top: var(--etbar-h); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 6px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: calc(var(--etbar-h) + 8px); }
html:not(.js) .needs-js { display: none !important; }
.wrap { width: min(1220px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.tiny { font-size: 12.5px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rust); margin-bottom: 14px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; vertical-align: middle; white-space: nowrap; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 48ch; }

/* ---------- EpicTech bar ---------- */
.et-bar { position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--etbar-h); background: #050609; color: #f3f5f8; border-bottom: 1px solid rgba(255,255,255,.08); font: 500 12.5px/1.3 var(--sans); }
.et-inner { height: 100%; width: min(1220px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.et-bar p { display: flex; align-items: center; gap: 8px; color: #c9ceda; }
.et-bar strong { color: #f3f5f8; font-weight: 600; }
.et-dot { width: 7px; height: 7px; border-radius: 50%; background: #8257ff; box-shadow: 0 0 0 3px rgba(130,87,255,.25); flex: none; }
.et-bar nav { display: flex; gap: 6px; align-items: center; flex: none; }
.et-bar a { text-decoration: none; padding: 6px 10px; border-radius: 999px; color: #c9ceda; white-space: nowrap; min-height: 28px; display: inline-flex; align-items: center; }
.et-bar a:hover { color: #fff; background: rgba(255,255,255,.08); }
.et-bar a.et-cta { background: #8257ff; color: #fff; font-weight: 600; }
.et-bar a.et-cta:hover { background: #a98dff; color: #050609; }
.et-bar a:focus-visible { outline: 2px solid #a98dff; outline-offset: 2px; }
@media (max-width: 640px) {
  :root { --etbar-h: 62px; }
  .et-inner { flex-direction: column; justify-content: center; gap: 4px; }
  .et-bar p { font-size: 11.5px; }
  .et-bar a { padding: 3px 10px; font-size: 12px; min-height: 26px; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: var(--etbar-h); z-index: 100; background: rgba(246, 240, 231, .88); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line); }
.nav { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; color: var(--ink); }
.logo { width: 196px; height: auto; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { background: var(--cream); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font-weight: 600; }
.cart-btn:hover { border-color: var(--ink); }
.cart-count { min-width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 1.6px; background: var(--ink); transition: transform .25s var(--ease); }
.menu[open] summary span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.menu nav { position: absolute; right: 0; top: 54px; width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 20px 40px -20px rgba(42,28,21,.35); display: grid; }
.menu nav a { text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.menu nav a:hover { background: var(--cream); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--rust-d); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--card); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 6.4vw, 86px); line-height: 1; letter-spacing: -.02em; margin-bottom: 24px; }
.hero h1 em { color: var(--rust); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; border-radius: 32px; box-shadow: 0 40px 80px -40px rgba(42,28,21,.45); }
.hero-tag { position: absolute; left: 24px; bottom: 22px; background: rgba(251,247,241,.94); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; box-shadow: 0 10px 24px -14px rgba(42,28,21,.5); }
.hero-tag span:first-child { font-weight: 600; margin-right: 4px; }
.steam { stroke-dasharray: 80; animation: steam 2.4s var(--ease) .6s 1 both; }
.steam.s2 { animation-delay: .9s; }
@keyframes steam { from { stroke-dashoffset: 80; opacity: 0; } to { stroke-dashoffset: 0; } }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--card); }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip p { padding: 20px 16px; text-align: center; font-size: 15px; color: var(--ink-2); }
.strip p + p { border-left: 1px solid var(--line); }
.strip strong { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2, .ro-copy h2, .faq-grid h2 { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -.015em; }
.head-sub { margin-top: 12px; max-width: 54ch; }

/* ---------- Shop ---------- */
.shop { background: var(--card); border-top: 1px solid var(--line); }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--etbar-h) + var(--head-h) + 20px); }
.filters summary { display: none; }
.filter-body { display: grid; gap: 26px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; padding: 0; }
.check { display: flex; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.result-count { font-size: 14.5px; color: var(--ink-2); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
select { min-height: 44px; padding: 0 38px 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232a1c15' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; appearance: none; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 4.4; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.card-media .art { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.card-media .a2 { opacity: 0; }
.card:hover .a2, .card:focus-within .a2 { opacity: 1; }
.card:hover .a1 { transform: scale(1.03); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--card); border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.card h3 { font-family: var(--serif); font-size: 23px; line-height: 1.15; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.notes { font-size: 14px; color: var(--ink-2); }
.card-end { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; font-size: 16px; }
.price span { font-weight: 400; color: var(--ink-2); font-size: 13.5px; }
.quick-add { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.quick-add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.quick-add.added { background: var(--sage); border-color: var(--sage); color: #fff; }
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); display: grid; gap: 10px; justify-items: center; }

/* ---------- Subscription builder ---------- */
.sub { background: var(--cream); }
.builder { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.builder-steps { display: grid; gap: 28px; }
.step legend { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 26px; text-transform: none; letter-spacing: 0; color: var(--ink); margin-bottom: 16px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px/30px var(--sans); text-align: center; flex: none; }
.opts { display: grid; gap: 12px; }
.opts-2 { grid-template-columns: repeat(2, 1fr); }
.opts-3 { grid-template-columns: repeat(3, 1fr); }
.opts-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { text-align: left; display: grid; gap: 3px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); min-height: 56px; }
.opt:hover { border-color: var(--ink-2); }
.opt b { font-size: 16px; }
.opt span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.opt em { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--rust-d); margin-top: 4px; }
.opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.opt.pill { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; }
.opt.pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.builder-sum { position: sticky; top: calc(var(--etbar-h) + var(--head-h) + 20px); background: var(--ink); color: #f6efe3; border-radius: 24px; padding: 28px; display: grid; gap: 18px; box-shadow: 0 40px 70px -40px rgba(42,28,21,.6); }
.builder-sum h3 { font-family: var(--serif); font-size: 28px; }
.sum-list { margin: 0; display: grid; }
.sum-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(246,239,227,.14); font-size: 14.5px; }
.sum-list dt { color: #c8b8a6; }
.sum-list dd { margin: 0; font-weight: 600; text-align: right; }
.sum-price p:first-child { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sum-price b { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.sum-price .was { text-decoration: line-through; color: #a8968a; }
.sum-price span:last-child { color: #c8b8a6; font-size: 14px; }
.builder-sum .muted { color: #c8b8a6; }
.builder-sum .btn-primary { background: var(--gold); color: var(--ink); }
.builder-sum .btn-primary:hover { background: #e8b75a; }
.builder-sum :focus-visible { outline-color: var(--gold); }
.sum-price.flash b { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: translateY(-3px); } }

/* ---------- Brew guides ---------- */
.guide { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.guide > *, .guide-panel > * { min-width: 0; }
.guide-tabs { display: flex; gap: 6px; background: var(--cream); padding: 6px; border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; }
.guide-tabs button { border: 0; background: transparent; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; color: var(--ink-2); }
.guide-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.guide-panel { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.js .guide-panel[data-off] { display: none; }
.guide-panel:focus-visible { outline-offset: 6px; }
.guide-art svg { width: 100%; height: auto; }
.guide-copy h3 { font-family: var(--serif); font-size: 34px; margin-bottom: 16px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 22px; }
.specs div { background: var(--paper); border-radius: 14px; padding: 12px 14px; }
.specs dt { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.specs dd { margin: 4px 0 0; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.steps { counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--ink); display: grid; place-items: center; }
.calc { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 24px; align-items: center; background: var(--ink); color: #f6efe3; border-radius: 20px; padding: 18px 24px; }
.calc label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.calc output { min-width: 34px; height: 34px; border-radius: 999px; background: var(--gold); color: var(--ink); display: inline-grid; place-items: center; font-weight: 700; }
.calc input[type=range] { width: 100%; accent-color: var(--gold); min-height: 44px; }
.calc-out { display: flex; gap: 12px; align-items: center; color: #c8b8a6; white-space: nowrap; }
.calc-out b { color: #fff; font-size: 18px; }

/* ---------- Roastery ---------- */
.roastery { background: var(--paper); }
.ro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ro-art svg { width: 100%; height: auto; border-radius: 28px; }
.smoke { stroke-dasharray: 70; animation: steam 2.6s var(--ease) .4s 1 both; }
.ro-copy .lede { margin: 18px 0 28px; }
.visit { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; display: grid; gap: 14px; }
.visit h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 4px; }
.visit p { color: var(--ink-2); }
.hours { margin: 0; display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--ink-2); text-align: right; }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--card); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-grid .muted { margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; color: var(--ink-2); }

/* ---------- Newsletter + footer ---------- */
.newsletter { background: var(--rust-d); color: #fbeee6; padding: 80px 0; }
.nl-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.newsletter .eyebrow { color: #f3c9a8; }
.newsletter h2 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 12px; }
.newsletter .muted { color: #f1d4c4; }
.nl-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.nl-row { display: flex; gap: 10px; }
.nl-row input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; font-size: 16px; }
.nl-row input::placeholder { color: #f0c8b4; }
.newsletter :focus-visible { outline-color: #fff; }
.concept-note { margin-top: 12px; font-size: 13.5px; color: #f6dccd; border-radius: 8px; }
.concept-note.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: rgba(255,255,255,.25); } 100% { background: transparent; } }
.buy .concept-note { color: var(--ink-2); }
.site-footer { background: var(--ink); color: #d7c9bb; padding: 64px 0 48px; font-size: 14.5px; }
.site-footer .brand { color: #f6efe3; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h3 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f6efe3; margin-bottom: 14px; }
.site-footer nav { display: grid; gap: 2px; align-content: start; }
.site-footer nav a { text-decoration: none; padding: 5px 0; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; margin-top: 18px; line-height: 1.7; color: #b9a898; }
.site-footer .tag { color: #d7c9bb; border-color: rgba(255,255,255,.25); }
.site-footer :focus-visible { outline-color: var(--gold); }
.foot-note { margin-top: 14px; max-width: 32ch; color: #b9a898; }

/* ---------- Cart drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 400; background: rgba(42, 28, 21, .45); opacity: 0; transition: opacity .35s var(--ease); }
.drawer-scrim.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 401; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; box-shadow: -30px 0 60px -30px rgba(42,28,21,.45); transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--serif); font-size: 30px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.ship-meter { padding: 14px 24px; background: var(--cream); font-size: 13.5px; }
.meter { height: 5px; border-radius: 99px; background: rgba(42,28,21,.1); margin-top: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--rust); border-radius: inherit; transition: width .5s var(--ease); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; animation: lineIn .35s var(--ease); }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } }
.line .thumb-art { width: 76px; height: 76px; border-radius: 12px; }
.line h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.line h3 a { text-decoration: none; }
.line .variant { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.line .stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; margin-top: 10px; }
.line .stepper button { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 17px; border-radius: 999px; }
.line .stepper button:hover { background: var(--cream); }
.line .stepper span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.line .line-price { font-weight: 700; text-align: right; }
.line .remove { margin-top: 8px; border: 0; background: none; font-size: 13px; color: var(--ink-2); text-decoration: underline; cursor: pointer; padding: 6px 0; }
.cart-empty { text-align: center; padding: 48px 0; display: grid; gap: 16px; justify-items: center; color: var(--ink-2); }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--paper); }
.totals { margin: 0 0 8px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-2); }
.totals dd { margin: 0; }
.totals .total { color: var(--ink); font-weight: 700; font-size: 17px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.drawer-foot .tiny { margin-bottom: 14px; }
.checkout-panel { position: absolute; inset: 0; background: var(--paper); padding: 40px 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; text-align: center; animation: panelIn .35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.checkout-panel h3 { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.co-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; margin: 0 auto 4px; color: var(--rust); }
body.drawer-lock { overflow: hidden; }

/* ---------- Product page ---------- */
.pdp { padding-top: 24px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 22px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--etbar-h) + var(--head-h) + 16px); }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--cream); }
.slide { position: absolute; inset: 0; margin: 0; transition: opacity .45s var(--ease); }
.slide .pdp-art { width: 100%; height: 100%; }
.js .slide[data-inactive] { opacity: 0; visibility: hidden; }
html:not(.js) .gallery-main { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: none; }
html:not(.js) .slide { position: static; aspect-ratio: 1; border-radius: 16px; overflow: hidden; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.thumb { border: 1.5px solid transparent; border-radius: 14px; background: none; padding: 0; cursor: pointer; overflow: hidden; display: grid; text-align: left; transition: border-color .2s; }
.thumb .thumb-art { width: 100%; aspect-ratio: 1; border-radius: 12px; }
.thumb-label { font-size: 12.5px; color: var(--ink-2); padding: 6px 4px 4px; }
.thumb[aria-pressed="true"] { border-color: var(--ink); }
.thumb[aria-pressed="true"] .thumb-label { color: var(--ink); font-weight: 600; }
.buy h1 { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.015em; }
.buy-price { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; margin: 14px 0 16px; }
.note-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.note-chips li { padding: 6px 12px; border-radius: 999px; background: var(--cream); font-size: 14px; font-weight: 500; }
.roast-meter { margin: 22px 0 6px; max-width: 360px; }
.roast-meter p:first-child { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.roast-meter b { color: var(--ink); }
.meter-track { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #e9c48f, #a8714a, #3b2418); }
.meter-track span { position: absolute; top: 50%; left: calc(var(--r) * 100%); width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transform: translate(-50%, -50%); }
.meter-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.buy-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.opt-label { font-size: 14.5px; margin-bottom: 10px; color: var(--ink-2); }
.opt-label strong { color: var(--ink); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-2); text-decoration: none; font-weight: 600; font-size: 14.5px; background: var(--card); }
.size small { color: var(--ink-2); font-weight: 500; }
.size:hover { border-color: var(--ink-2); }
.size[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.grinds .size { min-height: 42px; border-radius: 999px; font-size: 14px; }
.buy-row { display: flex; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 4px; background: var(--card); }
.qty button { width: 42px; height: 42px; border: 0; background: transparent; font-size: 20px; cursor: pointer; border-radius: 999px; }
.qty button:hover { background: var(--cream); }
.qty input { width: 40px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ship-line a { color: var(--rust-d); font-weight: 600; }
.accordions { margin-top: 28px; border-top: 1px solid var(--line-2); }
.accordions details { border-bottom: 1px solid var(--line-2); }
.accordions summary { list-style: none; cursor: pointer; padding: 18px 30px 18px 0; font-weight: 600; position: relative; }
.accordions summary::-webkit-details-marker { display: none; }
.accordions summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 21px; font-weight: 400; transition: transform .25s var(--ease); }
.accordions details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordions details > p, .accordions .origin { padding-bottom: 18px; color: var(--ink-2); }
.accordions a { color: var(--rust-d); font-weight: 600; }
.origin { margin: 0; display: grid; }
.origin div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.origin div:last-child { border-bottom: 0; }
.origin dt { color: var(--ink-2); }
.origin dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.related { padding-top: 96px; }
.notfound { padding: 96px 0 120px; display: grid; gap: 16px; justify-items: start; }
.notfound h1 { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .builder { grid-template-columns: 1fr; }
  .builder-sum { position: static; }
  .guide-panel { grid-template-columns: 240px 1fr; gap: 28px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid, .ro-grid, .faq-grid, .nl-inner, .pdp-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery { position: static; }
  .shop-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; border: 1px solid var(--line-2); border-radius: 16px; background: var(--paper); }
  .filters summary { display: flex; align-items: center; gap: 10px; list-style: none; min-height: 52px; padding: 0 18px; font-weight: 600; cursor: pointer; }
  .filters summary::-webkit-details-marker { display: none; }
  .filter-body { padding: 4px 18px 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .logo { width: 164px; }
  .cart-btn > span:first-of-type { display: none; }
  .cart-btn { padding: 0 12px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .strip-inner { grid-template-columns: 1fr; }
  .strip p + p { border-left: 0; border-top: 1px solid var(--line); }
  .strip p { padding: 13px 8px; }
  .grid, .grid-4 { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .card h3 { font-size: 19px; }
  .card-end { flex-wrap: wrap; }
  .quick-add { width: 100%; }
  .opts-2, .opts-3 { grid-template-columns: 1fr; }
  .opts-3 { grid-template-columns: repeat(3, 1fr); }
  .opts-3 .opt { padding: 14px 12px; }
  .opts-3 .opt span { display: none; }
  .guide { padding: 18px; border-radius: 22px; }
  .guide-panel { grid-template-columns: 1fr; }
  .guide-art { max-width: 220px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .calc-out { white-space: normal; flex-wrap: wrap; }
  .nl-row { flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .thumbs { gap: 6px; }
  .thumb-label { font-size: 11px; }
  .buy-row { flex-wrap: wrap; }
  .drawer-head, .drawer-body, .drawer-foot, .ship-meter { padding-inline: 18px; }
  .hero-tag { left: 12px; right: 12px; bottom: 12px; text-align: center; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .card:hover .a1 { transform: none; }
}
