/* The Caffeine Lab — premium storefront */
:root {
  --ivory: #f7f3ec;
  --bone: #efe8dc;
  --sand: #e3d8c6;
  --ink: #14110f;
  --espresso: #241a14;
  --brass: #a8834e;
  --brass-light: #c8a774;
  --stone: #6f655d;
  --line: rgba(20, 17, 15, 0.12);
  --line-light: rgba(247, 243, 236, 0.16);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1.1em; }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.label { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.7rem; font-weight: 500; color: var(--brass); }
.label.dim { color: var(--stone); }
.serif-italic { font-family: var(--serif); font-style: italic; }
.muted { color: var(--stone); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 34px; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--espresso); border-color: var(--espresso); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--ivory); }
.btn.light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn.light:hover { background: transparent; color: var(--ivory); }
.btn.ghost-light { background: transparent; color: var(--ivory); border-color: rgba(247,243,236,.6); }
.btn.ghost-light:hover { background: var(--ivory); color: var(--ink); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }
.link { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* Announcement + header */
.announce { background: var(--ink); color: var(--bone); text-align: center; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 10px 16px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 243, 236, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 78px; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 30px; }
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; position: relative; }
.nav-left a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: currentColor; transition: width .3s; }
.nav-left a:hover::after, .nav-left a[aria-current="page"]::after { width: 100%; }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-mark { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: 0.04em; }
.brand-sub { font-size: 0.56rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--stone); margin-top: 6px; }
.icon-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.bag-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--ivory); font-size: 0.66rem; letter-spacing: 0; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* Hero */
.hero { position: relative; min-height: calc(100vh - 116px); min-height: calc(100svh - 116px); max-height: 900px; display: flex; align-items: flex-end; color: var(--ivory); background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); animation: heroIn 2.4s ease-out forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,15,.15) 0%, rgba(20,17,15,.25) 45%, rgba(20,17,15,.82) 100%); }
@keyframes heroIn { to { transform: scale(1); } }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 110px); }
.hero h1 { font-size: clamp(3rem, 8.4vw, 7.4rem); font-weight: 400; max-width: 11ch; }
.hero h1 em { font-style: italic; color: var(--brass-light); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 36px; }
.hero-foot p { max-width: 420px; color: rgba(247,243,236,.82); margin: 0; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Marquee of facts */
.facts { border-bottom: 1px solid var(--line); background: var(--bone); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-row div { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.facts-row div:last-child { border-right: 0; }
.facts-row strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.facts-row span { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }

/* Sections */
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section.tight { padding: clamp(56px, 8vw, 100px) 0; }
.section.bone { background: var(--bone); }
.section.dark { background: var(--ink); color: var(--ivory); }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-title h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.display { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.statement { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.3; font-weight: 400; text-align: center; max-width: 24ch; margin: 18px auto 0; }
.statement em { color: var(--brass); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 44px); }
.p-card { display: block; position: relative; }
.p-media { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.p-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 1.2s ease; }
.p-media img.alt { opacity: 0; }
.p-card:hover .p-media img.main { transform: scale(1.03); }
.p-card:hover .p-media img.alt { opacity: 1; }
.p-tag { position: absolute; top: 18px; left: 18px; z-index: 2; background: var(--ivory); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; padding: 7px 12px; }
.p-quick { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; opacity: 0; transform: translateY(8px); transition: .35s; }
.p-card:hover .p-quick, .p-card:focus-within .p-quick { opacity: 1; transform: none; }
.p-info { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; }
.p-info h3 { font-size: 1.7rem; }
.p-info .sub { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-top: 6px; }
.p-price { font-family: var(--serif); font-size: 1.35rem; white-space: nowrap; }
.p-price small { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-right: 4px; }

/* Split editorial */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media.wide img { aspect-ratio: 5 / 4; }
.split-copy h2 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); margin: 18px 0 26px; }
.split-copy p { color: var(--stone); font-size: 1.04rem; max-width: 52ch; }
.dark .split-copy p { color: rgba(247,243,236,.72); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 34px; }
.dark .specs { border-color: var(--line-light); }
.specs div { padding: 20px 0 0; }
.specs dt { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); }
.dark .specs dt { color: rgba(247,243,236,.55); }
.specs dd { margin: 6px 0 0; font-family: var(--serif); font-size: 1.45rem; }

/* Full bleed */
.bleed { position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center; color: var(--ivory); background-size: cover; background-position: center; }
.bleed::before { content: ""; position: absolute; inset: 0; background: rgba(20,17,15,.48); }
.bleed > * { position: relative; }
.bleed h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 400; max-width: 14ch; margin: 18px auto 30px; }

/* Rituals */
.rituals { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ritual { padding: 36px 28px 8px 0; border-right: 1px solid var(--line); }
.ritual + .ritual { padding-left: 28px; }
.ritual:last-child { border-right: 0; }
.ritual .num { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.3rem; }
.ritual h3 { font-size: 1.7rem; margin: 10px 0 8px; }
.ritual .ratio { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.ritual p { color: var(--stone); font-size: 0.95rem; margin-top: 12px; }

/* Promise strip */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.promise h3 { font-size: 1.6rem; margin: 14px 0 10px; }
.promise p { color: var(--stone); font-size: 0.95rem; max-width: 30ch; margin-inline: auto; }
.promise svg { color: var(--brass); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(247,243,236,.78); padding: clamp(64px, 9vw, 110px) 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer-top .brand { align-items: flex-start; color: var(--ivory); }
.footer-top .brand-sub { color: rgba(247,243,236,.5); }
.footer-top p { font-size: 0.95rem; margin-top: 20px; max-width: 34ch; }
.footer-top h4 { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-light); font-weight: 500; margin: 0 0 18px; }
.footer-top a { display: block; font-size: 0.95rem; padding: 4px 0; color: rgba(247,243,236,.78); transition: color .2s; }
.footer-top a:hover { color: var(--ivory); }
.footer-top a.brand { display: flex; padding: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 0.78rem; letter-spacing: 0.06em; color: rgba(247,243,236,.55); }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badges span { border: 1px solid var(--line-light); padding: 3px 9px; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(20,17,15,.45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .35s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--ivory); z-index: 70; transform: translateX(100%); visibility: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), visibility .45s; display: flex; flex-direction: column; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 30px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.9rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 30px; }
.drawer-foot { padding: 24px 30px 30px; border-top: 1px solid var(--line); background: var(--bone); }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.line img { width: 84px; height: 105px; object-fit: cover; background: var(--sand); }
.line h3 { font-size: 1.3rem; }
.line .meta { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-top: 4px; }
.line .price { font-family: var(--serif); font-size: 1.2rem; text-align: right; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 14px; height: 36px; }
.stepper button { width: 34px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 1rem; color: var(--ink); }
.stepper span { min-width: 26px; text-align: center; font-size: 0.9rem; }
.remove { display: block; margin-top: 10px; background: none; border: 0; padding: 0; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ship-meter { margin: 22px 0 6px; font-size: 0.8rem; color: var(--stone); }
.ship-bar { height: 2px; background: var(--sand); margin-top: 10px; }
.ship-bar i { display: block; height: 100%; background: var(--brass); transition: width .4s; }
.sum-row { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 4px 0; }
.sum-row.total { font-family: var(--serif); font-size: 1.5rem; padding: 12px 0 18px; }
.empty-bag { text-align: center; padding: 80px 0; }
.empty-bag p { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 24px; }

/* Product page */
.crumbs { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); padding: 28px 0; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; padding-bottom: clamp(72px, 10vw, 140px); }
.gallery { display: grid; grid-template-columns: 88px 1fr; gap: 16px; position: sticky; top: 100px; }
.thumbs { display: flex; flex-direction: column; gap: 12px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--sand); cursor: pointer; aspect-ratio: 4/5; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stage { aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { font-size: clamp(2.6rem, 4.4vw, 3.8rem); margin: 14px 0 10px; }
.buy .price-lg { font-family: var(--serif); font-size: 2rem; margin: 18px 0 6px; }
.buy .tax { font-size: 0.78rem; color: var(--stone); }
.buy .desc { color: var(--stone); margin: 26px 0; font-size: 1.02rem; }
.opt { margin-top: 26px; }
.opt-head { display: flex; justify-content: space-between; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; }
.opt-head span:last-child { color: var(--stone); }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.size { border: 1px solid var(--line); background: transparent; padding: 14px 8px; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; color: var(--ink); }
.size strong { display: block; font-weight: 500; font-size: 0.95rem; }
.size small { font-size: 0.78rem; color: var(--stone); }
.size[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.size[aria-pressed="true"] small { color: rgba(247,243,236,.7); }
.grind-list { display: flex; flex-wrap: wrap; gap: 8px; }
.grind-list button { border: 1px solid var(--line); background: transparent; padding: 10px 16px; font-size: 0.84rem; cursor: pointer; color: var(--ink); }
.grind-list button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.buy-actions { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 30px; }
.buy-actions .stepper { margin: 0; height: 52px; }
.buy-actions .stepper button { width: 42px; }
.buy-now { margin-top: 12px; }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.assure div { font-size: 0.74rem; letter-spacing: 0.08em; color: var(--stone); text-align: center; }
.assure svg { margin: 0 auto 8px; color: var(--brass); display: block; }
.profile { margin-top: 30px; }
.meter { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); padding: 6px 0; }
.dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.dots i { height: 3px; background: var(--sand); }
.dots i.on { background: var(--ink); }
.acc { border-top: 1px solid var(--line); margin-top: 34px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 20px 0; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.1rem; letter-spacing: 0; line-height: 1; }
.acc details[open] summary::after { content: "−"; }
.acc .acc-body { padding: 0 0 22px; color: var(--stone); font-size: 0.97rem; }
.notes-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.notes-row span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; padding-right: 10px; border-right: 1px solid var(--line); }
.notes-row span:last-child { border-right: 0; }

/* Shop page */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(36px, 5vw, 60px); text-align: center; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 400; margin-top: 14px; }
.page-hero p { color: var(--stone); max-width: 52ch; margin: 18px auto 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-bottom: 44px; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { background: none; border: 0; padding: 8px 14px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; color: var(--stone); }
.filters button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.toolbar select { border: 0; background: transparent; font-family: inherit; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); cursor: pointer; padding: 8px 4px; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.25fr 1fr; min-height: calc(100vh - 78px); }
.co-form { padding: clamp(32px, 5vw, 72px) clamp(16px, 5vw, 80px) 80px; }
.co-summary { background: var(--bone); padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 64px); border-left: 1px solid var(--line); }
.co-summary-inner { position: sticky; top: 110px; }
.co-form h1 { font-size: clamp(2.4rem, 4vw, 3.2rem); margin-bottom: 8px; }
.co-step { margin-top: 40px; }
.co-step h2 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }
.co-step h2 i { font-style: normal; font-family: var(--serif); font-size: 1.1rem; color: var(--brass); letter-spacing: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: #fffdf9; padding: 22px 14px 8px; font-family: inherit; font-size: 0.98rem; color: var(--ink); border-radius: 0; appearance: none; }
.field textarea { resize: vertical; min-height: 84px; }
.field label { position: absolute; left: 14px; top: 8px; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); pointer-events: none; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #a23b2a; }
.pay-box { border: 1px solid var(--ink); padding: 20px; display: flex; gap: 16px; align-items: center; background: #fffdf9; }
.pay-box p { margin: 0; font-size: 0.9rem; color: var(--stone); }
.pay-box strong { display: block; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.form-error { color: #a23b2a; font-size: 0.9rem; min-height: 1.4em; margin: 18px 0 8px; }
.secure-note { font-size: 0.78rem; color: var(--stone); text-align: center; margin-top: 14px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.co-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; }
.co-line .thumb { position: relative; }
.co-line img { width: 64px; height: 80px; object-fit: cover; background: var(--sand); }
.co-line .qty-badge { position: absolute; top: -8px; right: -8px; background: var(--ink); color: var(--ivory); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; }
.co-line h3 { font-size: 1.2rem; }
.co-line .meta { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.co-totals { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; }

/* Content pages */
.prose { padding-bottom: clamp(72px, 10vw, 140px); }
.prose h2 { font-size: 2rem; margin: 2.2em 0 .6em; }
.prose p, .prose li { color: #4a4039; }
.prose a { border-bottom: 1px solid currentColor; }
.status-card { text-align: center; padding: clamp(56px, 8vw, 120px) 0; }
.status-card h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin: 16px 0 18px; }
.status-card p { color: var(--stone); max-width: 52ch; margin-inline: auto; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; background: var(--ink); color: var(--ivory); padding: 14px 26px; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .35s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-media { animation: none; transform: none; } }

/* WhatsApp float */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--ivory); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(20,17,15,.25); }

/* Responsive */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .rituals { grid-template-columns: repeat(2, 1fr); }
  .ritual:nth-child(2) { border-right: 0; }
  .ritual:nth-child(3) { padding-left: 0; }
  .ritual:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .co-summary { border-left: 0; border-bottom: 1px solid var(--line); order: -1; }
  .co-summary-inner { position: static; }
}
@media (max-width: 820px) {
  .header-row { grid-template-columns: auto 1fr auto; height: 66px; }
  .nav-left { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand { align-items: flex-start; margin-left: 4px; }
  .brand-mark { font-size: 1.4rem; }
  .brand-sub { font-size: 0.5rem; letter-spacing: 0.32em; }
  .nav-right .hide-sm { display: none; }
  .mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--line); }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 16px var(--gutter); border-bottom: 1px solid var(--line); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .facts-row div:nth-child(2) { border-right: 0; }
  .facts-row div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .product-grid { grid-template-columns: 1fr; }
  .p-quick { opacity: 1; transform: none; position: static; margin-top: 12px; }
  .p-quick .btn { width: 100%; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .promise { grid-template-columns: 1fr; gap: 48px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; }
  .thumbs button { width: 72px; }
  .fields { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .rituals { grid-template-columns: 1fr; }
  .ritual, .ritual + .ritual { padding: 28px 0 4px; border-right: 0; }
  .ritual + .ritual { border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .assure { grid-template-columns: 1fr 1fr 1fr; }
  .btn { padding: 0 22px; }
  .hero-actions .btn { flex: 1; }
  .sizes { gap: 6px; }
}

/* Grind dropdown (product page) */
.grind-select { position: relative; }
.grind-select select { width: 100%; appearance: none; -webkit-appearance: none; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 0.95rem; padding: 14px 46px 14px 16px; cursor: pointer; }
.grind-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.grind-select select:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* Instagram latest-post pop-up */
.ig-wrap { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 17, 15, 0.5); opacity: 0; transition: opacity .35s ease; }
.ig-wrap.show { opacity: 1; }
.ig-card { position: relative; width: 100%; max-width: 380px; max-height: calc(100vh - 32px); overflow: auto; background: var(--ivory); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 17, 15, 0.35); transform: translateY(16px) scale(.98); transition: transform .35s ease; }
.ig-wrap.show .ig-card { transform: none; }
.ig-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bone); }
.ig-body { padding: 20px 22px 26px; }
.ig-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin: 0 0 6px; }
.ig-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.ig-cap { font-size: 0.9rem; line-height: 1.55; color: var(--stone); margin: 0 0 18px; }
.ig-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(247, 243, 236, 0.92); color: var(--ink); cursor: pointer; }
.ig-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.ig-timer i { display: block; height: 100%; background: var(--brass); transform-origin: left; animation: igTimer 10s linear forwards; }
@keyframes igTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .ig-wrap, .ig-card { transition: none; } }
