/*
Theme Name: Home Barista
Theme URI: https://homebarista.blog
Author: Home Barista
Description: A fast, motion-rich coffee & home barista journal. Interactive Ratio Lab, scroll-driven "cherry to cup" story, Amazon affiliate gear shelf (tracking ID editable in wp-admin → Site Settings), built-in RSS importer, no post dates, zero jQuery.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: homebarista
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--esp: #140b07;
	--roast: #1f120b;
	--roast-2: #2b1910;
	--oat: #f2e6d4;
	--oat-2: rgba(242, 230, 212, .72);
	--oat-3: rgba(242, 230, 212, .45);
	--line: rgba(242, 230, 212, .12);
	--crema: #e3a462;
	--crema-2: #c47c3b;
	--caramel: #d39a5c;
	--cherry: #c0432f;
	--cherry-deep: #4b1511;
	--serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
	--sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
	--wrap: 1320px;
	--pad: clamp(1.1rem, 4vw, 3rem);
	--r: 22px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0; background: var(--esp); color: var(--oat);
	font: 400 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
	overflow-x: hidden; text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -.02em; font-variation-settings: 'opsz' 144; }
p { margin: 0 0 1em; }
em { font-style: italic; }
::selection { background: var(--crema); color: var(--esp); }
:focus-visible { outline: 2px solid var(--crema); outline-offset: 3px; border-radius: 6px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -60px; z-index: 200; background: var(--crema); color: var(--esp); padding: .6rem 1rem; border-radius: 99px; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--pad) * 2, 760px); }
.mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.center { text-align: center; margin-top: 3rem; }

/* film grain — a 1KB SVG, rendered once */
.grain {
	position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--crema); margin: 0 0 1.1rem; }
.eyebrow a { display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow > * + span::before { content: '·'; margin-right: .6rem; color: var(--oat-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crema); box-shadow: 0 0 0 0 rgba(227, 164, 98, .6); animation: ping 2.4s infinite; flex: none; }
.dot--dark { background: var(--esp); box-shadow: none; animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(227, 164, 98, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(227, 164, 98, 0); } }

/* Buttons */
.btn {
	--bg: transparent; --fg: var(--oat);
	position: relative; display: inline-flex; align-items: center; gap: .6rem; overflow: hidden; isolation: isolate;
	padding: 1rem 1.55rem; border-radius: 999px; background: var(--bg); color: var(--fg);
	font: 600 .95rem/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
	transition: transform .5s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--oat); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--esp); }
.btn .ico { transition: transform .45s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--crema { --bg: var(--crema); --fg: var(--esp); box-shadow: 0 10px 40px -12px rgba(227, 164, 98, .55); }
.btn--ghost { box-shadow: inset 0 0 0 1px rgba(242, 230, 212, .3); }
.btn--dark { --bg: var(--esp); --fg: var(--oat); }
.btn--dark::before { background: var(--cherry); }
.btn--dark:hover { color: var(--oat); }
.btn--sm { padding: .78rem 1.15rem; font-size: .86rem; }
.ulink { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--crema); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
.ulink:hover { background-size: 100% 1px; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
	display: inline-flex; align-items: center; padding: .55rem 1rem; border-radius: 999px;
	font-size: .86rem; font-weight: 500; color: var(--oat-2); box-shadow: inset 0 0 0 1px var(--line);
	transition: background .3s, color .3s, box-shadow .3s;
}
.chip:hover { color: var(--oat); box-shadow: inset 0 0 0 1px rgba(242, 230, 212, .4); }
.chip.is-on { background: var(--oat); color: var(--esp); box-shadow: none; }

/* ==========================================================================
   Brand + nav
   ========================================================================== */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.45rem; letter-spacing: -.02em; line-height: 1; }
.brand img { height: 40px; width: auto; }
.brand__word em { color: var(--crema); margin-left: .12em; }
.brand__cup { position: relative; width: 30px; height: 30px; color: var(--crema); }
.brand__cup svg { width: 30px; height: 30px; }
.brand__cup i { position: absolute; bottom: 21px; width: 3px; height: 10px; border-radius: 3px; background: currentColor; opacity: 0; animation: wisp 2.6s var(--ease) infinite; }
.brand__cup i:nth-child(1) { left: 9px; }
.brand__cup i:nth-child(2) { left: 14px; animation-delay: .7s; }
.brand__cup i:nth-child(3) { left: 19px; animation-delay: 1.4s; }
@keyframes wisp { 0% { transform: translateY(4px) scaleY(.4); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-9px) scaleY(1.1) skewX(-12deg); opacity: 0; } }
.brand--lg { font-size: 2rem; }

.nav { position: fixed; inset: 0 0 auto; z-index: 80; padding: 1rem var(--pad); transition: transform .5s var(--ease); }
.nav__in {
	max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 1.5rem;
	padding: .65rem .7rem .65rem 1.15rem; border-radius: 999px;
	transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-scrolled .nav__in { background: rgba(20, 11, 7, .72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -20px rgba(0, 0, 0, .6); }
.nav.is-hidden { transform: translateY(-120%); }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } .admin-bar .nav:not(.is-scrolled) { top: 46px; } }
.nav__links { display: flex; gap: .25rem; margin-left: auto; }
.nav__links a { position: relative; padding: .55rem .85rem; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--oat-2); transition: color .3s, background .3s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--oat); background: rgba(242, 230, 212, .07); }
.nav__tools { display: flex; align-items: center; gap: .4rem; }
.nav__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--oat); transition: background .3s; }
.nav__icon:hover { background: rgba(242, 230, 212, .1); }
.nav__burger { display: none; }

/* Fullscreen menu */
.menu { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; justify-content: center; padding: 6rem var(--pad) 2rem; visibility: hidden; pointer-events: none; }
.menu__bg { position: absolute; inset: 0; background: var(--roast); clip-path: circle(0% at calc(100% - 44px) 44px); transition: clip-path .8s var(--ease-io); }
.menu.is-open { visibility: visible; pointer-events: auto; }
.menu.is-open .menu__bg { clip-path: circle(150% at calc(100% - 44px) 44px); }
.menu__close { position: absolute; top: 1.6rem; right: calc(var(--pad) + .7rem); z-index: 2; }
.menu__links { position: relative; display: flex; flex-direction: column; gap: .2rem; }
.menu__links a { display: flex; align-items: baseline; gap: 1rem; font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 5rem); line-height: 1.08; letter-spacing: -.03em; opacity: 0; transform: translateY(40px); transition: opacity .5s, transform .7s var(--ease), color .3s; }
.menu__links a small { color: var(--crema); font-size: .7rem; }
.menu__links a:hover { color: var(--crema); font-style: italic; }
.menu.is-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .06s); }
.menu__foot { position: relative; margin-top: auto; color: var(--oat-3); }

/* Search overlay */
.search { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: var(--pad); background: rgba(20, 11, 7, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.search.is-open { opacity: 1; visibility: visible; }
.search__close { position: absolute; top: 1.6rem; right: calc(var(--pad) + .7rem); }
.search__in { width: min(100%, 760px); }
.search__hints { margin-top: 1.2rem; color: var(--oat-3); }
.search__hints a { color: var(--crema); }
.sform { position: relative; display: flex; align-items: center; border-bottom: 2px solid rgba(242, 230, 212, .3); transition: border-color .3s; }
.sform:focus-within { border-color: var(--crema); }
.sform input { flex: 1; min-width: 0; padding: .8rem 0; background: none; border: 0; outline: 0; color: var(--oat); font: 300 clamp(1.6rem, 5vw, 3rem)/1.2 var(--serif); }
.sform input::placeholder { color: var(--oat-3); }
.sform button { width: 48px; height: 48px; display: grid; place-items: center; color: var(--crema); }

/* ==========================================================================
   Hero
   ========================================================================== */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .08s); }
.w .it { padding-right: .06em; }
@keyframes rise { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.6rem; }

@keyframes kb { to { scale: 1.06; } }

/* Steam */
.steam { position: absolute; left: 50%; top: -6%; width: 46%; height: 34%; transform: translateX(-50%); z-index: 2; pointer-events: none; filter: blur(14px); }
.steam span { position: absolute; bottom: 0; width: 30%; height: 100%; border-radius: 50%; background: radial-gradient(ellipse at 50% 70%, rgba(242, 230, 212, .55), transparent 65%); opacity: 0; animation: steam 6s ease-in-out infinite; }
.steam span:nth-child(1) { left: 5%; }
.steam span:nth-child(2) { left: 35%; animation-delay: 1.5s; }
.steam span:nth-child(3) { left: 60%; animation-delay: 3s; }
.steam span:nth-child(4) { left: 25%; animation-delay: 4.5s; }
@keyframes steam { 0% { transform: translateY(40%) scale(.6, .4); opacity: 0; } 30% { opacity: .75; } 100% { transform: translateY(-70%) scale(1.3, 1.1) rotate(8deg); opacity: 0; } }

/* Shot timer */

@keyframes spin { to { transform: rotate(360deg); } }


/* Notes marquee */
.notes { overflow: hidden; padding: 1.6rem 0; border-block: 1px solid var(--line); background: var(--roast); }
.notes__row { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 60s linear infinite; }
.notes__row span { font: 300 clamp(2rem, 4.4vw, 3.6rem)/1 var(--serif); letter-spacing: -.03em; white-space: nowrap; }
.notes__row span.o { font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(227, 164, 98, .75); }
.notes__row .ico { color: var(--crema); flex: none; opacity: .7; }
.notes:hover .notes__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.sec { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; }
.sec--tight { padding-top: clamp(3rem, 6vw, 5rem); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.sec__h { font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -.04em; font-weight: 330; }
.sec__lede { max-width: 30rem; color: var(--oat-2); margin: 0; }
.empty { padding: 4rem 0; text-align: center; color: var(--oat-2); }
.empty h2 { font-size: 2.4rem; margin-bottom: .8rem; color: var(--oat); }
.empty__form { max-width: 560px; margin: 2rem auto 0; }

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

/* Cards */
.card { position: relative; }
.card__link { display: flex; flex-direction: column; height: 100%; }
.card__media { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--roast-2); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.card__link:hover .card__img { transform: scale(1.07); filter: saturate(1.05); }
.card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20, 11, 7, .45)); }
.card__cat { position: absolute; left: .9rem; top: .9rem; z-index: 1; padding: .38rem .75rem; border-radius: 99px; background: rgba(20, 11, 7, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 600; color: var(--crema); }
.card__body { padding: 1.2rem .2rem 0; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; gap: .8rem; flex-wrap: wrap; color: var(--oat-3); margin: 0 0 .7rem; font-size: .66rem; }
.card__title { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.18; letter-spacing: -.02em; transition: color .3s; }
.card__link:hover .card__title { color: var(--crema); }
.card__ex { color: var(--oat-2); margin: .8rem 0 0; font-size: .98rem; }
.card__more { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: 1rem; font-size: .86rem; font-weight: 600; color: var(--crema); opacity: 0; transform: translateX(-8px); transition: .5s var(--ease); }
.card__link:hover .card__more { opacity: 1; transform: none; }

.card--feature .card__media { aspect-ratio: 5 / 4; }
.card--feature .card__title { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; }
.card--feature .card__more { opacity: 1; transform: none; }
.card--mini .card__link { flex-direction: row; gap: 1.1rem; align-items: center; }
.card--mini .card__media { width: 38%; flex: none; aspect-ratio: 1; border-radius: 16px; }
.card--mini .card__cat { display: none; }
.card--mini .card__body { padding: 0; }
.card--mini .card__title { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.card--mini .card__more, .card--mini .card__meta span { display: none; }
.card--wide { grid-column: span 2; }
.card--wide .card__media { aspect-ratio: 16 / 9; }
.card--wide .card__title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }

.fresh__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.6rem, 3vw, 3rem); }
.fresh__side { display: grid; gap: 1.4rem; align-content: space-between; }
.fresh__side .card + .card { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 2.4vw, 2rem); }

/* ==========================================================================
   Ratio Lab
   ========================================================================== */
.lab { position: relative; padding: clamp(5rem, 10vw, 8.5rem) 0; background: var(--caramel); color: var(--esp); overflow: hidden; isolation: isolate; }
.lab::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 85% 30%, rgba(255, 235, 200, .35), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(120, 60, 20, .35), transparent 70%); }
.lab .eyebrow { color: var(--esp); }
.lab .sec__h em { color: var(--cherry-deep); }
.lab__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.lab__p { max-width: 30rem; font-size: 1.1rem; margin: 1.4rem 0 2rem; color: rgba(20, 11, 7, .78); }
.lab__methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 2rem; }
.lab__m { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; border-radius: 16px; box-shadow: inset 0 0 0 1.5px rgba(20, 11, 7, .25); font-weight: 600; font-size: .92rem; text-align: left; transition: background .35s, color .35s, box-shadow .35s, transform .35s var(--ease); }
.lab__m:hover { box-shadow: inset 0 0 0 1.5px var(--esp); transform: translateY(-2px); }
.lab__m.is-on { background: var(--esp); color: var(--crema); box-shadow: none; }
.lab__m .ico { flex: none; }
.lab__dose { display: grid; gap: .8rem; max-width: 30rem; }
.lab__dose b { font: 400 1.3rem var(--serif); letter-spacing: 0; text-transform: none; }
.lab__dose input { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--esp) var(--fill, 50%), rgba(20, 11, 7, .2) var(--fill, 50%)); outline: 0; }
.lab__dose input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--esp); border: 4px solid var(--oat); box-shadow: 0 6px 18px rgba(20, 11, 7, .35); cursor: grab; transition: transform .2s; }
.lab__dose input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--esp); border: 4px solid var(--oat); cursor: grab; }
.lab__dose input:active::-webkit-slider-thumb { transform: scale(1.15); cursor: grabbing; }

.lab__card { display: grid; grid-template-columns: .9fr 1fr; gap: 0; background: var(--esp); color: var(--oat); border-radius: 32px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(60, 25, 5, .7); }
.lab__vessel { position: relative; min-height: 100%; overflow: hidden; }
.lab__photo { position: absolute; inset: 0; }
.lab__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.lab__photo img.is-on { opacity: 1; transform: none; }
.lab__liquid { position: absolute; left: 1.2rem; bottom: 1.2rem; width: 54px; height: 62%; border-radius: 0 0 16px 16px; box-shadow: inset 0 0 0 2px rgba(242, 230, 212, .65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(20, 11, 7, .25); overflow: hidden; }
.lab__liquid i { position: absolute; inset: auto 0 0; height: var(--lvl, 30%); background: linear-gradient(180deg, var(--crema) 0 7px, #6b3a1c 7px, #2a140a); transition: height .9s var(--ease); }
.lab__liquid i::before { content: ''; position: absolute; left: -50%; top: -6px; width: 200%; height: 12px; background: radial-gradient(circle at 10px 12px, transparent 8px, var(--crema) 8.5px) 0 0 / 20px 12px repeat-x; animation: wave 2.2s linear infinite; }
@keyframes wave { to { transform: translateX(20px); } }
.lab__out { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 1.3rem; }
.lab__big { display: grid; gap: .3rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.lab__big .mono { color: var(--oat-3); font-size: .64rem; }
.lab__big b { font: 300 clamp(4rem, 8vw, 6.4rem)/.9 var(--serif); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.lab__big b small { font-size: .35em; margin-left: .1em; color: var(--crema); letter-spacing: 0; }
.lab__ratio { color: var(--crema) !important; }
.lab__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.lab__specs div:first-child { grid-column: 1 / -1; }
.lab__specs dt { color: var(--oat-3); font-size: .62rem; margin-bottom: .25rem; }
.lab__specs dd { margin: 0; font: 400 1.25rem/1.2 var(--serif); display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.lab__grind { display: inline-flex; align-items: flex-end; gap: 4px; }
.lab__grind b { width: calc(var(--g, 1) * 2px + 2px); height: calc(var(--g, 1) * 2px + 2px); border-radius: 40%; background: var(--crema); transition: width .5s var(--ease), height .5s var(--ease); }
.lab__grind b:nth-child(even) { transform: rotate(35deg); border-radius: 30%; }
.lab__note { margin: 0; color: var(--oat-2); font-size: .98rem; min-height: 3em; }
.lab__out .btn { align-self: flex-start; }
.flip { animation: flip .5s var(--ease); }
@keyframes flip { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Cherry to cup — horizontal scroll story
   ========================================================================== */
.journey { position: relative; background: var(--roast); }
.journey__sticky { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 4vh, 3rem); padding: 6rem 0 3rem; overflow: hidden; }
.journey__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.journey__bar { width: min(260px, 30vw); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: .8rem; }
.journey__bar i { display: block; height: 100%; width: 100%; background: var(--crema); transform-origin: left; transform: scaleX(var(--jp, 0)); }
.journey__track { display: flex; gap: clamp(1rem, 2vw, 1.8rem); padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.step { position: relative; flex: none; width: clamp(230px, min(26vw, 40vh), 380px); margin: 0; }
.step__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--roast-2); }
.step__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.step:hover .step__media img { transform: scale(1.06); }
.step figcaption { padding-top: 1.1rem; }
.step__no { color: var(--crema); }
.step h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-style: italic; font-weight: 300; margin: .4rem 0 .5rem; }
.step p { color: var(--oat-2); font-size: .97rem; max-width: 30ch; margin: 0; }
.step:nth-child(even) { margin-top: clamp(2rem, 6vh, 4.5rem); }
.step--end { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; padding: 2rem; border-radius: var(--r); background: var(--cherry); align-self: stretch; }
.step--end h3 { font-style: normal; font-size: clamp(2.2rem, 3vw, 2.8rem); }
.step--end .btn--crema { box-shadow: none; }
.journey.is-pinned .journey__track { padding-right: 15vw; }

/* ==========================================================================
   The Bar — Amazon shelf
   ========================================================================== */
.bar { background: #0e0704; overflow: hidden; }
.bar__light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 30% at 20% 0%, rgba(227, 164, 98, .18), transparent 70%), radial-gradient(40% 30% at 85% 10%, rgba(192, 67, 47, .12), transparent 70%); }
.shelf__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.shelf__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.shelf__note { margin: 2.4rem 0 0; font-size: .82rem; color: var(--oat-3); text-align: center; }
.prod.is-hidden { display: none; }
.prod__link { display: flex; flex-direction: column; height: 100%; border-radius: 26px; background: linear-gradient(180deg, var(--roast-2), var(--roast)); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); }
.prod__link:hover { box-shadow: inset 0 0 0 1px rgba(227, 164, 98, .45), 0 40px 80px -40px rgba(227, 164, 98, .35); }
.prod__stage { position: relative; padding: 1rem; }
.prod__no { position: absolute; left: 1.2rem; top: 1.15rem; z-index: 1; color: var(--oat-3); font-size: .64rem; }
.prod__badge { position: absolute; right: 1.1rem; top: 1rem; z-index: 1; padding: .32rem .7rem; border-radius: 99px; background: var(--crema); color: var(--esp); font-size: .7rem; font-weight: 700; letter-spacing: .01em; }
.prod__plate { position: relative; aspect-ratio: 1; border-radius: 20px; background: radial-gradient(circle at 50% 42%, #fff8ec, var(--oat) 60%, #e3d2b9); display: grid; place-items: center; overflow: hidden; }
.prod__plate::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 9%; height: 8%; border-radius: 50%; background: radial-gradient(rgba(60, 30, 10, .28), transparent 70%); }
.prod__plate img { position: relative; z-index: 1; width: 74%; height: 74%; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.prod__link:hover .prod__plate img { transform: translateY(-6px) scale(1.06) rotate(-2deg); }
.prod__body { display: flex; flex-direction: column; flex: 1; padding: .3rem 1.3rem 1.3rem; }
.prod__meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--crema); margin: 0 0 .5rem; font-size: .64rem; }
.prod__meta span + span { color: var(--oat-3); }
.prod__title { font-size: 1.28rem; line-height: 1.15; letter-spacing: -.015em; }
.prod__blurb { font-size: .9rem; color: var(--oat-2); margin: .6rem 0 1rem; line-height: 1.5; }
.prod__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.prod__rating { display: inline-flex; align-items: center; gap: .4rem; }
.prod__rating small { color: var(--oat-3); font-size: .75rem; }
.stars { position: relative; display: inline-block; font-size: .85rem; letter-spacing: 1px; color: rgba(242, 230, 212, .2); line-height: 1; }
.stars span { position: absolute; inset: 0 auto 0 0; width: var(--r); overflow: hidden; color: var(--crema); white-space: nowrap; }
.stars::before { content: '★★★★★'; }
.prod__cta { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 700; color: var(--oat); transition: color .3s; }
.prod__link:hover .prod__cta { color: var(--crema); }
.prod__link:hover .prod__cta svg { transform: translate(2px, -2px); }
.prod__cta svg { transition: transform .4s var(--ease); }

/* ==========================================================================
   Manifesto
   ========================================================================== */
.manifesto { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; overflow: hidden; isolation: isolate; }
.manifesto__t { font: 300 clamp(2rem, 5vw, 4.6rem)/1.12 var(--serif); letter-spacing: -.035em; max-width: 22ch; margin: 0; }
.manifesto__t .mw { color: rgba(242, 230, 212, .16); transition: color .5s; }
.manifesto__t .mw.on { color: var(--oat); }
.manifesto__t .mw.hi.on { color: var(--crema); font-style: italic; }
.manifesto__sig { margin-top: 2rem; color: var(--crema); }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.dose { position: relative; padding: clamp(5rem, 10vw, 8rem) 0; background: var(--cherry-deep); overflow: hidden; isolation: isolate; }
.dose::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 0%, rgba(192, 67, 47, .55), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(227, 164, 98, .16), transparent 70%); }
.dose__beans span { position: absolute; color: rgba(242, 230, 212, .07); left: calc(var(--b) * 12%); top: calc(10% + (var(--b) * 37%) - (var(--b) * var(--b) * 3%)); animation: float 9s ease-in-out infinite; animation-delay: calc(var(--b) * -1.3s); }
.dose__beans span:nth-child(3n) { top: 70%; }
.dose__beans span:nth-child(4n) { top: 18%; }
@keyframes float { 50% { transform: translateY(-18px) rotate(25deg); } }
.dose__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.dose__h { font-size: clamp(2.8rem, 6.4vw, 5.8rem); letter-spacing: -.045em; font-weight: 320; margin-bottom: 1rem; }
.dose__h .it { font-style: italic; color: var(--crema); }
.dose .w > span { animation-play-state: paused; }
.dose.is-in .w > span { animation-play-state: running; }
.dose__p { color: var(--oat-2); max-width: 30rem; margin: 0; }
.dose__field { display: flex; gap: .5rem; padding: .45rem; border-radius: 999px; background: rgba(20, 11, 7, .45); box-shadow: inset 0 0 0 1px rgba(242, 230, 212, .18); }
.dose__field:focus-within { box-shadow: inset 0 0 0 1px var(--crema); }
.dose__field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--oat); padding: 0 1.1rem; font: 400 1rem var(--sans); }
.dose__field input::placeholder { color: var(--oat-3); }
.dose__msg { margin: 1rem 0 0 1.2rem; color: var(--crema); }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { background: var(--esp); padding: clamp(4rem, 8vw, 6rem) 0 2rem; overflow: hidden; }
.foot__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot__about p { color: var(--oat-2); max-width: 22rem; margin-top: 1.2rem; }
.foot__social { display: flex; flex-wrap: wrap; gap: .5rem; }
.foot__social a { padding: .45rem .85rem; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-size: .82rem; color: var(--oat-2); transition: .3s; }
.foot__social a:hover { color: var(--esp); background: var(--crema); box-shadow: none; }
.foot__col { display: flex; flex-direction: column; gap: .55rem; }
.foot__col h4 { color: var(--crema); font-size: .68rem; margin-bottom: .6rem; font-family: var(--mono); letter-spacing: .14em; }
.foot__col a { color: var(--oat-2); transition: color .3s, transform .3s var(--ease); width: fit-content; }
.foot__col a:hover { color: var(--oat); transform: translateX(4px); }
.foot__giant { margin: clamp(2.5rem, 6vw, 5rem) 0 1rem; font: 300 clamp(3rem, 13.5vw, 15rem)/.82 var(--serif); letter-spacing: -.06em; white-space: nowrap; overflow: hidden; color: transparent; -webkit-text-stroke: 1px rgba(242, 230, 212, .18); background: linear-gradient(90deg, var(--crema), var(--cherry)) 0 0 / 0 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-size 1.4s var(--ease); text-align: center; user-select: none; }
.foot__giant:hover, .foot__giant.is-in { background-size: 100% 100%; }
.foot__bot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--oat-3); font-size: .84rem; }

/* ==========================================================================
   Page hero, single post, prose
   ========================================================================== */
.phero { position: relative; padding: clamp(9rem, 16vw, 12rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; isolation: isolate; }
.phero__bg { position: absolute; inset: 0; z-index: -1; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; animation: kb 20s ease-in-out infinite alternate; }
.phero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 11, 7, .5), var(--esp)); }
.phero__h { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.045em; font-weight: 320; margin-bottom: 1.2rem; animation: fadeUp 1s var(--ease) both; }
.phero__p { max-width: 40rem; color: var(--oat-2); font-size: 1.12rem; margin-bottom: 2rem; animation: fadeUp 1s var(--ease) .12s both; }
.phero .chips { animation: fadeUp 1s var(--ease) .22s both; }
.phero--page .phero__h { margin-bottom: 0; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 4rem; }
.pager .page-numbers { min-width: 46px; height: 46px; padding: 0 1rem; display: grid; place-items: center; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); color: var(--oat-2); font-weight: 600; font-size: .9rem; transition: .3s; }
.pager .page-numbers:hover { color: var(--oat); box-shadow: inset 0 0 0 1px var(--crema); }
.pager .current { background: var(--crema); color: var(--esp); box-shadow: none; }

.progress { position: fixed; inset: 0 0 auto; z-index: 85; height: 3px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--crema), var(--cherry)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.post__hero { position: relative; min-height: 82vh; display: flex; align-items: flex-end; padding: 9rem 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; isolation: isolate; }
.post__media { position: absolute; inset: 0; z-index: -1; }
.post__img { width: 100%; height: 100%; object-fit: cover; animation: kb 22s ease-in-out infinite alternate; }
.post__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 11, 7, .35) 0%, rgba(20, 11, 7, .5) 45%, var(--esp) 100%); }
.post__h { font-size: clamp(2.3rem, 5.6vw, 5rem); letter-spacing: -.04em; font-weight: 340; max-width: 18ch; animation: fadeUp 1.1s var(--ease) both; }
.post__src { color: var(--oat-2); margin-top: 1.4rem; }
.post__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 5rem); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.post__cont { margin-top: 2.5rem; padding: 1.8rem; border-radius: var(--r); background: var(--roast-2); box-shadow: inset 0 0 0 1px var(--line); }
.post__cont p { color: var(--oat-2); font-size: 1rem; }
.post__aside { position: relative; }
.aside__card { position: sticky; top: 110px; padding: 1.4rem; border-radius: var(--r); background: var(--roast); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: .9rem; }
.aside__card .eyebrow { margin: 0; }
.mini-prod { display: grid; grid-template-columns: 70px 1fr; gap: .9rem; align-items: center; padding: .4rem; border-radius: 16px; transition: background .3s; }
.mini-prod:hover { background: rgba(242, 230, 212, .05); }
.mini-prod__img { width: 70px; height: 70px; border-radius: 14px; background: var(--oat); display: grid; place-items: center; }
.mini-prod__img img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.mini-prod small { display: block; color: var(--crema); font-size: .6rem; }
.mini-prod b { display: block; font: 400 1rem/1.2 var(--serif); margin: .15rem 0; }
.mini-prod em { font-style: normal; font-size: .78rem; color: var(--oat-3); }

.prose { font-size: 1.14rem; line-height: 1.8; color: rgba(242, 230, 212, .86); }
.prose > p:first-child::first-letter { float: left; font-size: 4.6em; line-height: .8; padding: .08em .1em 0 0; color: var(--crema); font-style: italic; }
.prose h2, .prose h3 { color: var(--oat); margin: 2.2rem 0 1rem; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.prose h3 { font-size: 1.5rem; }
.prose a { color: var(--crema); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--crema); }
.prose blockquote { margin: 2rem 0; padding: .4rem 0 .4rem 1.6rem; border-left: 2px solid var(--crema); font: 300 italic 1.5rem/1.4 var(--serif); color: var(--oat); }
.prose img { border-radius: var(--r); }
.prose .btn { color: var(--fg); text-decoration: none; }
.prose .btn:hover { color: var(--esp); }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; padding: 8rem 0 4rem; text-align: center; background: radial-gradient(50% 50% at 50% 40%, rgba(196, 124, 59, .2), transparent 70%); }
.lost__in { display: flex; flex-direction: column; align-items: center; }
.lost__cup { position: relative; width: 180px; color: var(--crema); margin-bottom: 2rem; animation: wobble 3s ease-in-out infinite; transform-origin: 50% 100%; }
.lost__cup .steam { top: -40%; width: 70%; }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.lost__h { font-size: clamp(3rem, 9vw, 7rem); letter-spacing: -.045em; font-weight: 320; margin-bottom: 1rem; }
.lost__p { color: var(--oat-2); max-width: 32rem; }
.lost__form { width: min(100%, 560px); margin: 1.5rem 0 2rem; }
.lost__cta { justify-content: center; margin: 0; opacity: 1; animation: none; }


/* ==========================================================================
   HERO — scroll to pull the shot
   ========================================================================== */
@property --fill { syntax: '<number>'; inherits: true; initial-value: 0; }
.pour { --fill: 0; position: relative; height: 270vh; color: var(--esp); transition: --fill .35s cubic-bezier(.25, .8, .3, 1); }
.pour__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.pour__bg { position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(55% 45% at 50% 38%, #f6c98f 0%, rgba(246, 201, 143, 0) 70%),
		radial-gradient(80% 70% at 50% 110%, #9c5a26 0%, rgba(156, 90, 38, 0) 60%),
		linear-gradient(180deg, #e7ac6a, #cf8a49 70%, #b9723a);
}
.pour__bg::after { content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pour__kicker { position: absolute; left: 0; right: 0; top: clamp(6rem, 13vh, 8rem); display: flex; justify-content: space-between; padding: 0 var(--pad); max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; color: rgba(20, 11, 7, .62); font-size: .66rem; animation: fadeUp 1s var(--ease) .5s both; }
.pour__h { position: absolute; left: 0; right: 0; bottom: 0; height: var(--sh, 100svh); margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-bottom: 7vh;
	font: 330 clamp(4.2rem, 14.2vw, 15.5rem)/.84 var(--serif); letter-spacing: -.058em; pointer-events: none; }
.pour__l { display: block; }
.pour__l:nth-child(2) { margin: -.02em 0 -.02em .9em; }
.pour__l:nth-child(3) { margin-left: -1.6em; }
.pour__h .it, .pour__h em { font-style: italic; font-weight: 280; }
.pour__h--base .it { color: #7a3410; }
.pour__h--base .w > span { animation-duration: 1.3s; }
.pour__h--lit { color: var(--oat); }
.pour__h--lit .it { color: var(--crema); }

/* portafilter spouts + streams */
.pour__head { position: absolute; left: 50%; top: -10px; width: 92px; height: 34px; transform: translateX(-50%); border-radius: 0 0 46px 46px; background: linear-gradient(180deg, #2a1810, #120905); box-shadow: 0 10px 30px rgba(60, 25, 5, .35); z-index: 2; }
.pour__head i { position: absolute; bottom: -9px; width: 12px; height: 12px; border-radius: 0 0 6px 6px; background: #120905; }
.pour__head i:first-child { left: 30px; }
.pour__head i:last-child { right: 30px; }
.pour__stream { position: absolute; left: 50%; top: 32px; width: 31px; transform: translateX(-50%); height: calc((1 - var(--fill)) * 100% - 26px); display: flex; justify-content: space-between; z-index: 1; transition: opacity .6s; }
.pour__stream i { width: 5px; height: 100%; border-radius: 4px; transform-origin: top;
	background: linear-gradient(180deg, #3a1a0a 0, #8c4719 20%, #c47a3a 35%, #6a2f10 55%, #a85d26 80%, #3a1a0a 100%) 0 0 / 100% 70px;
	animation: flow .45s linear infinite, wob 1.7s ease-in-out infinite; box-shadow: 0 0 6px rgba(140, 70, 25, .5); }
.pour__stream i:last-child { animation-delay: -.2s, -.8s; }
@keyframes flow { to { background-position: 0 70px; } }
@keyframes wob { 50% { transform: scaleX(.7) translateX(1px); } }
.pour.is-done .pour__stream { opacity: 0; }

/* liquid */
.pour__liquid { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--fill) * 100%); overflow: hidden; z-index: 2;
	background: linear-gradient(180deg, #b36a30 0, #8a4519 18px, #4a230d 70px, #24120a 190px, #140b07 420px); }
.pour__bubbles { position: absolute; left: 0; right: 0; top: 0; height: 26px; opacity: .55;
	background-image: radial-gradient(circle, rgba(255, 220, 170, .55) 1.3px, transparent 1.8px), radial-gradient(circle, rgba(255, 220, 170, .35) 1px, transparent 1.5px);
	background-size: 23px 11px, 37px 15px; background-position: 0 3px, 9px 9px; animation: bub 7s linear infinite; }
@keyframes bub { to { background-position: 230px 3px, -150px 9px; } }
.pour__wave { position: absolute; left: 0; right: 0; bottom: calc(var(--fill) * 100% - 1px); height: 18px; z-index: 2; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='18' viewBox='0 0 240 18'%3E%3Cpath d='M0 12 C30 3 60 3 90 10 S150 18 180 9 S225 4 240 12 V18 H0Z' fill='%23b36a30'/%3E%3C/svg%3E") repeat-x 0 0 / 240px 18px;
	animation: wavex 4s linear infinite; }
.pour__wave::before { content: ''; position: absolute; inset: 0; opacity: .6; background: inherit; background-size: 170px 18px; animation: wavex 6s linear infinite reverse; filter: brightness(1.25); }
@keyframes wavex { to { background-position: 240px 0; } }
.pour__splash { position: absolute; left: 50%; bottom: calc(var(--fill) * 100% + 2px); width: 70px; height: 16px; transform: translateX(-50%); z-index: 3; transition: opacity .6s; }
.pour__splash i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 214, 160, .7); animation: ripple 1.1s ease-out infinite; }
.pour__splash i:last-child { animation-delay: .55s; }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.pour.is-done .pour__splash { opacity: 0; }

/* UI */
.glass { background: rgba(20, 11, 7, .72); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(242, 230, 212, .12), 0 30px 60px -25px rgba(30, 12, 3, .6); color: var(--oat); }
.pour__ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 0 var(--pad) clamp(1.2rem, 4vh, 2.6rem); max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; }
.pour__read { width: 250px; padding: 1.1rem 1.25rem 1rem; border-radius: 22px; animation: fadeUp 1s var(--ease) .8s both; }
.pour__lbl { color: var(--crema); margin: 0 0 .4rem; font-size: .62rem; }
.pour__nums { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.pour__nums b { font: 300 2.5rem/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pour__nums span { font: 400 1.15rem var(--serif); font-variant-numeric: tabular-nums; }
.pour__nums i { font-style: normal; color: var(--crema); }
.pour__nums small { font-size: .7rem; color: var(--oat-3); margin-left: .25rem; font-family: var(--mono); }
.pour__bar { height: 3px; margin: .8rem 0 .7rem; border-radius: 3px; background: rgba(242, 230, 212, .12); overflow: hidden; }
.pour__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--crema), #f6c98f); transform-origin: left; transform: scaleX(var(--fill)); }
.pour__meta { margin: 0; font-size: .58rem; color: var(--oat-3); }
.pour.is-done .pour__lbl { color: #9ad18b; }
.pour__copy { width: min(400px, 100%); padding: 1.2rem 1.3rem; border-radius: 22px; animation: fadeUp 1s var(--ease) .95s both; }
.pour__copy p { margin: 0 0 1rem; font-size: .96rem; line-height: 1.5; color: var(--oat-2); }
.pour__cta { display: flex; gap: .5rem; flex-wrap: wrap; }
.pour__hint { position: absolute; left: 50%; bottom: clamp(1.4rem, 4.5vh, 3rem); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: 0; color: var(--oat); font-size: .62rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); transition: opacity .5s; animation: fadeUp 1s var(--ease) 1.1s backwards; }
.pour__mouse { width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--oat); position: relative; }
.pour__mouse::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--oat); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
.pour.is-going .pour__hint { opacity: 0; }

/* Nav sits on caramel at the very top of the homepage */
.has-pour .nav:not(.is-scrolled) .brand, .has-pour .nav:not(.is-scrolled) .nav__icon { color: var(--esp); }
.has-pour .nav:not(.is-scrolled) .brand__cup { color: #7a3410; }
.has-pour .nav:not(.is-scrolled) .brand__word em { color: #7a3410; }
.has-pour .nav:not(.is-scrolled) .nav__links a { color: rgba(20, 11, 7, .78); }
.has-pour .nav:not(.is-scrolled) .nav__links a:hover { background: rgba(20, 11, 7, .08); color: var(--esp); }
.has-pour .nav:not(.is-scrolled) .nav__cta { --bg: var(--esp); --fg: var(--oat); box-shadow: none; }

/* ==========================================================================
   Editorial: cover story + numbered headline list
   ========================================================================== */
.fresh__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
.card--cover .card__link { position: relative; }
.card--cover .card__media { aspect-ratio: 4 / 5; border-radius: 28px; }
.card--cover .card__media::after { background: linear-gradient(180deg, rgba(20, 11, 7, .1) 30%, rgba(20, 11, 7, .92)); }
.card--cover .card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.4rem, 3vw, 2.4rem); }
.card--cover .card__title { font-size: clamp(1.9rem, 3.3vw, 3.1rem); line-height: 1.02; letter-spacing: -.035em; }
.card--cover .card__ex { color: var(--oat-2); max-width: 36ch; }
.card--cover .card__more { opacity: 1; transform: none; }
.card--cover .card__meta { color: var(--crema); }
.hlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hlist li { border-bottom: 1px solid var(--line); }
.hlist__a { position: relative; display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 1rem; padding: clamp(1.1rem, 2.2vw, 1.7rem) .2rem; }
.hlist__no { color: var(--oat-3); font-size: .78rem; transition: color .4s; }
.hlist__body { display: grid; gap: .45rem; transition: transform .6s var(--ease); }
.hlist__cat { color: var(--crema); font-size: .62rem; }
.hlist__t { font: 350 clamp(1.3rem, 2.15vw, 2rem)/1.12 var(--serif); letter-spacing: -.025em; transition: color .4s; }
.hlist__thumb { display: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--roast-2); }
.hlist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hlist__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); color: var(--oat-2); transition: background .4s, color .4s, transform .5s var(--ease); }
.hlist__a:hover .hlist__body { transform: translateX(12px); }
.hlist__a:hover .hlist__t { color: var(--crema); font-style: italic; }
.hlist__a:hover .hlist__no { color: var(--crema); }
.hlist__a:hover .hlist__go { background: var(--crema); color: var(--esp); transform: rotate(45deg); box-shadow: none; }
@media (hover: none), (max-width: 1024px) { .hlist__thumb { display: block; } .hlist__go { display: none; } .hlist__a { grid-template-columns: 2.2rem 1fr auto; } }
.peek { position: fixed; left: 0; top: 0; z-index: 70; width: 280px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.85) rotate(-4deg); transition: opacity .35s, transform .5s var(--ease); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.peek.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1) rotate(-2deg); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(220px, 22vw, 300px); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.bento .card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento .card:nth-child(6), .bento .card:nth-child(7) { grid-column: span 2; }
.card--tile .card__link { position: relative; height: 100%; }
.card--tile .card__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 22px; }
.card--tile .card__media::after { background: linear-gradient(180deg, rgba(20, 11, 7, 0) 25%, rgba(20, 11, 7, .9)); }
.card--tile .card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.2rem 1.3rem; }
.card--tile .card__meta { margin-bottom: .4rem; }
.card--tile .card__meta span { display: none; }
.card--tile .card__title { font-size: clamp(1.05rem, 1.35vw, 1.3rem); }
.bento .card:nth-child(1) .card__title { font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.05; }
.card--tile .card__more { display: none; }

/* ==========================================================================
   Colour worlds
   ========================================================================== */
.lab { background: #9f2e1c; color: var(--oat); }
.lab::before { background: radial-gradient(55% 70% at 85% 20%, rgba(255, 140, 90, .35), transparent 70%), radial-gradient(45% 60% at 0% 100%, rgba(40, 5, 0, .45), transparent 70%); }
.lab .eyebrow { color: var(--oat); }
.lab .dot--dark { background: var(--oat); }
.lab .sec__h em { color: #ffc98c; }
.lab__p { color: rgba(242, 230, 212, .8); }
.lab__m { box-shadow: inset 0 0 0 1.5px rgba(242, 230, 212, .3); }
.lab__m:hover { box-shadow: inset 0 0 0 1.5px var(--oat); }
.lab__m.is-on { background: var(--oat); color: #7f2414; }
.lab__dose input { background: linear-gradient(90deg, var(--oat) var(--fill, 50%), rgba(242, 230, 212, .22) var(--fill, 50%)); }
.lab__dose input::-webkit-slider-thumb { background: var(--oat); border-color: #7f2414; }
.lab__dose input::-moz-range-thumb { background: var(--oat); border-color: #7f2414; }
.lab__card { box-shadow: 0 60px 120px -40px rgba(40, 5, 0, .8); }
.journey { background: #11231a; }
.journey .step p { color: rgba(232, 236, 222, .7); }
.journey__bar { background: rgba(242, 230, 212, .14); }
.dose { background: #d59b5b; color: var(--esp); }
.dose::before { background: radial-gradient(50% 80% at 100% 0%, rgba(255, 220, 170, .55), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(120, 50, 15, .35), transparent 70%); }
.dose .eyebrow { color: var(--esp); }
.dose .dot { background: var(--esp); animation: none; box-shadow: none; }
.dose__h .it { color: #7a2a12; }
.dose__p { color: rgba(20, 11, 7, .75); }
.dose__beans span { color: rgba(20, 11, 7, .09); }
.dose__field { background: rgba(255, 245, 230, .35); box-shadow: inset 0 0 0 1px rgba(20, 11, 7, .2); }
.dose__field:focus-within { box-shadow: inset 0 0 0 1.5px var(--esp); }
.dose__field input { color: var(--esp); }
.dose__field input::placeholder { color: rgba(20, 11, 7, .5); }
.dose .btn--crema { --bg: var(--esp); --fg: var(--oat); box-shadow: none; }
.dose__msg { color: var(--esp); }
.manifesto { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--roast); }
.manifesto__grid { display: grid; grid-template-columns: 1.25fr .8fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.manifesto__t { font-size: clamp(2rem, 4.2vw, 4rem); max-width: 20ch; }
.manifesto__fig { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8); }
.manifesto__fig img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--my, 0)); }
.manifesto__fig figcaption { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); padding: .5rem .9rem; border-radius: 99px; background: rgba(20, 11, 7, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--crema); font-size: .62rem; white-space: nowrap; }
@media (max-width: 860px) { .manifesto__grid { grid-template-columns: 1fr; } .manifesto__fig { aspect-ratio: 4 / 3; border-radius: 28px; } }
.sec { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }

/* Cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 99; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; pointer-events: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(227, 164, 98, .8); transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0); transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, box-shadow .4s, opacity .3s; opacity: 0; mix-blend-mode: normal; }
.cursor span { font: 700 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--esp); opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(227, 164, 98, .16); }
.cursor.is-label { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--crema); box-shadow: none; }
.cursor.is-label span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .peek { display: none; } }

@media (max-width: 1024px) {
	.fresh__grid { grid-template-columns: 1fr; }
	.card--cover .card__media { aspect-ratio: 4 / 3; }
	.bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
	.bento .card:nth-child(6), .bento .card:nth-child(7) { grid-column: span 1; }
	.bento .card:nth-child(7) { grid-column: span 2; }
}
@media (max-width: 760px) {
	.pour { height: 220vh; }
	.pour__h { font-size: clamp(4rem, 23vw, 8rem); padding-bottom: 30vh; }
	.pour__l:nth-child(2) { margin-left: .5em; }
	.pour__l:nth-child(3) { margin-left: -.9em; }
	.pour__kicker span:nth-child(3) { display: none; }
	.pour__ui { flex-direction: column; align-items: stretch; gap: .6rem; }
	.pour__read { width: auto; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1rem; padding: .8rem 1rem; }
	.pour__read .pour__lbl { grid-column: 1 / -1; }
	.pour__nums { grid-column: 1 / -1; }
	.pour__nums b { font-size: 2rem; }
	.pour__bar { grid-column: 1 / -1; margin: .55rem 0 .45rem; }
	.pour__meta { display: none; }
	.pour__bar { margin-bottom: 0; }
	.pour__copy { width: auto; padding: 1rem; }
	.pour__copy p { font-size: .86rem; margin-bottom: .7rem; }
	.pour__kicker { top: 5.6rem; }
	.pour__cta .btn { flex: 1; justify-content: center; }
	.pour__hint { display: none; }
	.bento { grid-template-columns: 1fr; grid-auto-rows: 300px; }
	.bento .card:nth-child(n) { grid-column: auto; grid-row: auto; }
	.card--cover .card__media { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
	.pour { height: auto; --fill: .38 !important; }
	.pour__stage { position: relative; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.nav__links a { padding: .55rem .6rem; font-size: .88rem; }
	.shelf__grid { grid-template-columns: repeat(3, 1fr); }
	.lab__methods { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
	.nav__links, .nav__cta { display: none; }
	.nav__burger { display: grid; }
	.nav__tools { margin-left: auto; }
	.fresh__grid, .lab__grid, .dose__in { grid-template-columns: 1fr; }
	.post__grid { grid-template-columns: 1fr; }
	.aside__card { position: static; }
	.foot__top { grid-template-columns: 1fr 1fr 1fr; }
	.foot__about { grid-column: 1 / -1; }
	.lab__methods { grid-template-columns: repeat(3, 1fr); max-width: 40rem; }
}
@media (max-width: 860px) {
	.grid3 { grid-template-columns: repeat(2, 1fr); }
	.shelf__grid { grid-template-columns: repeat(2, 1fr); }
	.card--wide { grid-column: 1 / -1; }
	.journey__sticky { position: relative; min-height: 0; padding: 5rem 0 4rem; }
	.journey__track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 1rem; transform: none !important; }
	.journey__track::-webkit-scrollbar { display: none; }
	.step { width: clamp(240px, 44vw, 340px); scroll-snap-align: center; }
	.step:nth-child(even) { margin-top: 0; }
	.journey__bar { display: none; }
	.lab__card { grid-template-columns: 1fr; }
	.lab__vessel { min-height: 240px; }
	.manifesto__t { font-size: clamp(1.8rem, 7vw, 3rem); }
}
@media (max-width: 560px) {
	body { font-size: 1rem; }
	.nav { padding: .7rem .8rem; }
	.nav__in { padding: .45rem .4rem .45rem .9rem; }
	.brand { font-size: 1.25rem; }
	.step { width: 76vw; }
	.hero__cta .btn { flex: 1 1 100%; justify-content: center; }
	.grid3, .shelf__grid { grid-template-columns: 1fr; }
	.card--mini .card__media { width: 34%; }
	.lab__methods { grid-template-columns: repeat(2, 1fr); }
	.lab__m { padding: .75rem .8rem; font-size: .85rem; }
	.foot__top { grid-template-columns: 1fr 1fr; }
	.foot__bot { flex-direction: column; }
	.dose__field { flex-direction: column; border-radius: 22px; }
	.dose__field input { padding: .9rem 1rem; }
	.dose__field .btn { justify-content: center; }
	.sec__head { align-items: flex-start; }
	.post__hero { min-height: 70vh; }
	.prose { font-size: 1.05rem; }
	.shelf__tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
	.shelf__tabs::-webkit-scrollbar { display: none; }
	.shelf__tabs .chip { flex: none; }
}

@media (min-width: 861px) and (max-height: 760px) {
	.journey__sticky { padding: 4.5rem 0 1.5rem; gap: 1.2rem; }
	.journey .sec__h { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
	.step p { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	[data-reveal] { opacity: 1; transform: none; }
	.w > span { transform: none; }
}
