/* ==========================================================================
   BudgetShots - all site CSS ("Bean to Cup" design, Oat + Cherry)

   HOW TO USE
   1. Colours, fonts and motion live in the TOKENS block. Change them there.
   2. Mobile first: base rules are the phone layout; wider layouts are in
      the MEDIA QUERIES block at the end (min-width, smallest first).
   3. Scroll scenes: an element with [data-scene] gets --p (0 to 1) from
      scripts.js while it is pinned. CSS reads --p to move things.
   4. Motion: everything is switched off under prefers-reduced-motion
      (end of file), showing its final, still state.
   ========================================================================== */

/* ---------- FONTS (self-hosted, OFL licence in assets/fonts) ---------- */
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- TOKENS ---------- */
:root {
	/* Colours: Oat */
	--bg: #FBFAF7;         /* page */
	--bg2: #FFFFFF;        /* cards */
	--bg3: #F1EDE7;        /* soft panels */
	--ink: #1E1713;        /* text (15:1 on bg) */
	--mute: #675E57;       /* secondary text (6:1 on bg) */
	--crema: #B5581F;      /* italic accents, large text (4.6:1) */
	--crema-dark: #8F4416; /* small accent text (7:1) */
	--pop: #E0344F;        /* cherry: the pop colour, accents only */
	--pop-ink: #B3182F;    /* cherry for small text on light (5.9:1) */
	--on-pop: #FFFFFF;
	--line: rgba(30, 23, 19, .12);
	--faint: rgba(30, 23, 19, .08);
	--stroke: rgba(30, 23, 19, .28);
	--green: #1F5E39;
	--green-bg: #E3EFE6;
	--amber-bg: #FBEEDC;
	--shadow: 0 40px 70px -40px rgba(60, 35, 20, .45);
	--shadow-sm: 0 18px 40px -24px rgba(60, 35, 20, .4);

	/* Type */
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-display: clamp(44px, 8vw, 124px);
	--fs-h1: clamp(38px, 5.6vw, 76px);
	--fs-h2: clamp(32px, 4.4vw, 60px);
	--fs-h3: clamp(22px, 2vw, 28px);

	/* Layout */
	--wrap: 1200px;
	--measure: 720px;
	--gutter: clamp(20px, 4vw, 40px);
	--radius: 22px;
	--header-h: 72px;

	/* Motion */
	--ease: cubic-bezier(.2, .8, .2, 1);
	--spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.65 var(--sans);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--pop); color: var(--on-pop); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
	outline: 3px solid var(--pop);
	outline-offset: 3px;
	border-radius: 6px;
}

/* film grain, very light */
body::after {
	content: "";
	position: fixed;
	inset: -50%;
	z-index: 100;
	pointer-events: none;
	opacity: .035;
	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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: grain .9s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); } }

/* ---------- PAGE TRANSITIONS: the espresso curtain ----------
   Leaving: scripts.js adds .curtain--cover; it rises from the bottom with a
   curved top edge and covers the page, logo in the middle, then we go.
   Arriving: the head script sets html.curtain-in, so .curtain--reveal (in
   header.php) covers the page from the very first paint; scripts.js adds
   html.curtain-out when the page is ready and it lifts away with a curved
   bottom edge. If scripts.js never runs, it lifts by itself after 2.5s. */
.curtain {
	position: fixed; inset: 0; z-index: 400;
	display: grid; place-items: center;
	background: var(--ink); color: var(--bg);
	pointer-events: none;
	will-change: transform;
}
.curtain__logo { display: inline-flex; align-items: center; font: 600 clamp(28px, 4vw, 44px)/1 var(--serif); letter-spacing: -.01em; }
.curtain__logo em { font-style: italic; color: #E9A36E; }
.curtain__logo i { width: 12px; height: 12px; margin-left: 6px; border-radius: 50%; background: var(--pop); animation: curtain-dot .9s var(--ease) infinite alternate; }
@keyframes curtain-dot { from { transform: scale(.6); } to { transform: scale(1.4); } }

/* leaving */
.curtain--cover { transform: translateY(102%); border-radius: 50% 50% 0 0 / 16vh 16vh 0 0; transition: transform .6s cubic-bezier(.22, 1, .36, 1), border-radius .6s cubic-bezier(.22, 1, .36, 1); }
.curtain--cover.is-on { transform: none; border-radius: 0; }
.curtain--cover .curtain__logo { opacity: 0; translate: 0 40px; transition: opacity .35s .2s, translate .5s .15s var(--ease); }
.curtain--cover.is-on .curtain__logo { opacity: 1; translate: 0 0; }

/* arriving */
.curtain--reveal { display: none; }
html.curtain-in .curtain--reveal { display: grid; }
html.curtain-in:not(.curtain-out) .curtain--reveal { animation: curtain-lift .85s 2.5s cubic-bezier(.5, 0, .15, 1) forwards; }
html.curtain-out .curtain--reveal { animation: curtain-lift .85s cubic-bezier(.5, 0, .15, 1) forwards; }
html.curtain-out .curtain--reveal .curtain__logo { animation: curtain-logo .35s var(--ease) forwards; }
@keyframes curtain-lift { to { transform: translateY(-102%); border-radius: 0 0 50% 50% / 0 0 12vh 12vh; } }
@keyframes curtain-logo { to { translate: 0 -60px; opacity: 0; } }
/* ---------- UTILITIES ---------- */
.container { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.screen-reader-text {
	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-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.kicker {
	margin: 0 0 14px;
	font: 600 12px/1.4 var(--sans);
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--crema-dark);
}
.kicker b { color: var(--pop); font-weight: 600; }
.display { font-size: var(--fs-display); line-height: .94; letter-spacing: -.035em; }
.h1 { font-size: var(--fs-h1); line-height: .98; letter-spacing: -.03em; }
.h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.028em; }
.display em, .h1 em, .h2 em, .h3 em { font-style: italic; color: var(--crema); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--mute); max-width: 560px; }
.mute { color: var(--mute); }

/* ---------- REVEALS (no fades) ----------
   Headings: scripts.js wraps every word in a mask; the words rise out of it
   one after another. Until that is done the heading is hidden (html.js is set
   in the head), so the text never shows first and then jumps. */
.js [data-lines]:not(.is-split) { visibility: hidden; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.w > span { display: inline-block; transform: translateY(108%) rotate(7deg); transform-origin: 0 100%; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.is-in .w > span { transform: none; }

/* Blocks: wiped up into view from a mask, staggered (--i set by scripts.js).
   Cards flip up from below; guide rows wipe in from the left. Individual
   translate/rotate/scale are used so they don't clash with hover transforms. */
.js .rv {
	-webkit-mask: linear-gradient(#000 0 0) 0 100% / 100% 0% no-repeat;
	mask: linear-gradient(#000 0 0) 0 100% / 100% 0% no-repeat;
	translate: 0 50px;
	transition: mask-size 1s var(--ease), -webkit-mask-size 1s var(--ease), translate 1s var(--ease), rotate 1s var(--ease), scale 1s var(--ease);
	transition-delay: calc(var(--i, 0) * 90ms);
}
.js .rv.is-in { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; translate: 0 0; }
.js .rv.is-done { -webkit-mask: none; mask: none; transition-delay: 0s; }
.js .card.rv { -webkit-mask: none; mask: none; translate: 0 110px; rotate: x 24deg; scale: .9; transform-origin: 50% 100%; transition: translate 1.1s var(--ease), rotate 1.1s var(--ease), scale 1.1s var(--ease), transform .5s var(--ease), box-shadow .4s; transition-delay: calc(var(--i, 0) * 90ms); }
.js .card.rv.is-in { translate: 0 0; rotate: x 0deg; scale: 1; }
.js .card.rv.is-done { transition-delay: 0s; }
.js .row.rv { -webkit-mask-position: 0 0; mask-position: 0 0; -webkit-mask-size: 0% 100%; mask-size: 0% 100%; translate: -30px 0; transition: mask-size 1s var(--ease), -webkit-mask-size 1s var(--ease), translate 1s var(--ease), padding .5s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .row.rv.is-in { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; translate: 0 0; }
/* ---------- POINTER TAG ----------
   No custom cursor: the normal pointer stays. Over cards and links marked
   [data-cursor] a small cherry tag springs out beside it ("Read →"). */
.hover-tag {
	position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 14px; border-radius: 99px;
	background: var(--pop); color: var(--on-pop);
	font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
	box-shadow: 0 10px 24px -10px rgba(224, 52, 79, .7);
	scale: 0; rotate: -12deg;
	transition: scale .45s var(--spring), rotate .45s var(--spring);
}
.hover-tag.is-on { scale: 1; rotate: 0deg; }
.hover-tag i { font-style: normal; display: inline-block; animation: tag-arr 1.2s var(--ease) infinite; }
@keyframes tag-arr { 50% { transform: translateX(4px); } }
/* Reading / scroll progress */
.progress { position: fixed; top: 0; left: 0; z-index: 120; width: 100%; height: 3px; background: var(--pop); transform-origin: 0 50%; transform: scaleX(0); }

/* Click burst (scripts.js adds .burst at the click point) */
.burst { position: fixed; z-index: 160; width: 0; height: 0; pointer-events: none; }
.burst i {
	position: absolute; width: 9px; height: 12px; margin: -6px 0 0 -4px;
	border-radius: 50%; background: var(--c, var(--pop));
	animation: burst .7s var(--ease) forwards;
}
.burst i::after { content: ""; position: absolute; left: 44%; top: 15%; bottom: 15%; width: 1.5px; background: rgba(0, 0, 0, .35); border-radius: 2px; }
@keyframes burst {
	from { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
	to { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.4); opacity: 0; }
}

/* ---------- BUTTONS ---------- */
/* A colour wipe follows the pointer in (--mx/--my set by scripts.js), the
   arrow swaps out and back in, and the button leans toward the pointer. */
.btn {
	--fill: var(--pop);
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 54px; padding: 15px 28px;
	border-radius: 99px; border: 1.5px solid var(--ink);
	background: var(--ink); color: var(--bg);
	font: 600 16px/1.2 var(--sans);
	transition: color .35s, border-color .35s, transform .35s var(--spring);
}
.btn::before {
	content: ""; position: absolute; z-index: -1;
	left: var(--mx, 50%); top: var(--my, 50%);
	width: 0; height: 0; border-radius: 50%;
	background: var(--fill);
	transform: translate(-50%, -50%);
	transition: width .55s var(--ease), height .55s var(--ease);
}
.btn:hover::before { width: 260%; height: 600%; }
.btn:hover { border-color: var(--fill); color: var(--on-pop); }
.btn:active { transform: scale(.96); }
.btn .arr { display: inline-flex; overflow: hidden; width: 1em; }
.btn .arr span { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr span { animation: arr .5s var(--ease); }
@keyframes arr { 50% { transform: translateX(120%); } 51% { transform: translateX(-120%); } }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--pop { background: var(--pop); border-color: var(--pop); color: var(--on-pop); --fill: var(--ink); }
.btn--pop:hover { border-color: var(--ink); }
.btn--crema { background: var(--pop); border-color: var(--pop); color: var(--on-pop); --fill: var(--ink); }
.btn--crema:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Text link with an animated marker sweep */
.link {
	font-weight: 600;
	background: linear-gradient(var(--pop), var(--pop)) 0 100% / 100% 2px no-repeat;
	transition: background-size .45s var(--ease), color .3s;
	padding-bottom: 2px;
}
.link:hover { background-size: 100% 100%; color: var(--on-pop); }

/* Rolling text: on hover each letter rolls up and is replaced (scripts.js splits it) */
.roll { display: inline-flex; overflow: hidden; vertical-align: top; }
.roll > span { display: inline-block; position: relative; transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 18ms); white-space: pre; }
.roll > span::after { content: attr(data-c); position: absolute; left: 0; top: 100%; color: var(--pop); }
a:hover .roll > span, .roll:hover > span { transform: translateY(-100%); }

/* ---------- PILLS ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border-radius: 99px;
	font: 600 12px/1.2 var(--sans); letter-spacing: .02em;
	background: var(--bg3); color: var(--ink);
}
.pill--tested { background: var(--green-bg); color: var(--green); }
.pill--tested::before { content: "✓"; }
.pill--researched { background: var(--amber-bg); color: var(--crema-dark); }
.pill--unset { background: #fde8ea; color: var(--pop-ink); }
.pill--tag { background: transparent; border: 1px solid var(--line); color: var(--mute); }
.pill--pop { background: var(--pop); color: var(--on-pop); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }

/* Bean rating */
.beans { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--mute); }
.bean { position: relative; width: 14px; height: 19px; border-radius: 50%; background: var(--faint); overflow: hidden; transform: rotate(25deg); }
.bean::before { content: ""; position: absolute; inset: 0; background: var(--crema); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) var(--d, 0s); }
.is-in .bean::before, .bean.is-in::before { transform: scaleX(var(--f, 0)); }
.bean::after { content: ""; position: absolute; left: 50%; top: 12%; bottom: 12%; width: 1.5px; margin-left: -.75px; border-radius: 2px; background: var(--bg2); }
.beans b { color: var(--ink); font-weight: 600; margin-left: 4px; }

/* ---------- HEADER ---------- */

.site-header {
	position: sticky; top: 0; z-index: 90;
	transition: transform .45s var(--ease), box-shadow .3s;
}
/* The frosted glass sits on a layer behind the header: a backdrop-filter on the
   header itself would trap the full-screen phone menu inside the header bar. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; font: 600 23px/1 var(--serif); letter-spacing: -.01em; }
.logo__word em { font-style: italic; color: var(--crema); }
.logo__dot { width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--pop); transition: transform .5s var(--spring); }
a:hover .logo__dot { transform: scale(1.8); }
.logo--dark { color: var(--bg); }
.logo--dark .logo__word em { color: #E9A36E; }

/* Menu button (phones) */
.nav-toggle {
	position: relative; z-index: 95;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 16px; border: 1.5px solid var(--ink); border-radius: 99px; background: transparent;
	font-weight: 600; font-size: 14px;
	transition: background .3s, color .3s;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), opacity .3s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Phones: full-screen menu, links rise in one by one */
.site-nav {
	position: fixed; inset: 0; z-index: 94;
	display: flex; flex-direction: column; justify-content: center;
	padding: 100px var(--gutter) 40px;
	background: var(--bg);
	clip-path: circle(0 at calc(100% - 50px) 36px);
	visibility: hidden;
	transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.site-nav.is-open { clip-path: circle(150% at calc(100% - 50px) 36px); visibility: visible; transition: clip-path .7s var(--ease); }
.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.site-nav__list a {
	display: flex; justify-content: space-between; align-items: baseline;
	padding: 18px 0;
	font: 400 clamp(36px, 10vw, 56px)/1 var(--serif); letter-spacing: -.02em;
	transform: translateY(105%);
	transition: transform .7s var(--ease), color .3s;
}
.site-nav__list a::after { content: "→"; font: 400 24px/1 var(--sans); color: var(--pop); }
.site-nav.is-open .site-nav__list a { transform: none; }
.site-nav.is-open li:nth-child(2) a { transition-delay: .06s; }
.site-nav.is-open li:nth-child(3) a { transition-delay: .12s; }
.site-nav.is-open li:nth-child(4) a { transition-delay: .18s; }
.site-nav.is-open li:nth-child(5) a { transition-delay: .24s; }
.site-nav__list .current-menu-item > a { color: var(--crema); }
.no-scroll { overflow: hidden; }

/* ---------- FOOTER ---------- */
.site-footer { margin-top: clamp(80px, 12vw, 160px); background: var(--ink); color: var(--bg); padding: clamp(60px, 9vw, 110px) 0 36px; overflow: hidden; }
.site-footer__big { margin: 0 0 clamp(40px, 6vw, 70px); font: 400 clamp(46px, 9vw, 140px)/.9 var(--serif); letter-spacing: -.04em; }
.site-footer__big em { font-style: italic; color: #E9A36E; }
.site-footer__big .dot { color: var(--pop); }
.site-footer__inner { display: grid; gap: 36px; padding-top: 36px; border-top: 1px solid rgba(251, 250, 247, .14); }
.site-footer__statement { max-width: 460px; margin: 18px 0 0; font-size: 13px; color: #BFB3A8; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.site-footer__list a {
	display: inline-block; padding: 9px 16px; border-radius: 99px; border: 1px solid rgba(251, 250, 247, .18);
	font-size: 14px; transition: background .3s, color .3s, border-color .3s, transform .4s var(--spring);
}
.site-footer__list a:hover { background: var(--pop); border-color: var(--pop); transform: translateY(-3px) rotate(-2deg); }
.site-footer__copy { margin: 36px auto 0; font-size: 13px; color: #9E928A; }

/* ---------- CARDS ---------- */
/* Spotlight follows the pointer (--mx/--my), the card tilts toward it,
   the photo zooms and the title rolls. */
.card-grid { display: grid; gap: 22px; }
.card {
	--rx: 0deg; --ry: 0deg;
	position: relative;
	border-radius: var(--radius);
	background: var(--bg2);
	box-shadow: 0 0 0 1px var(--line);
	transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform .5s var(--ease), box-shadow .4s;
}
.card::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 52, 79, .12), transparent 60%);
	opacity: 0; transition: opacity .4s;
}
.card:hover { box-shadow: 0 0 0 1px rgba(224, 52, 79, .35), var(--shadow); }
.card:hover::after { opacity: 1; }
.card__link { display: block; height: 100%; }
.card__photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg3); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.card:hover .card__img { transform: scale(1.07); }
.card__photo .pill { position: absolute; left: 14px; top: 14px; z-index: 1; }
.card__body { padding: 20px 22px 24px; }
.card__cat { display: block; margin-bottom: 8px; font: 600 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--crema-dark); }
.card__title { font-size: var(--fs-h3); line-height: 1.12; margin: 0 0 14px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-size: 14px; color: var(--mute); }
.card__go {
	position: absolute; right: 16px; top: 16px; z-index: 2;
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: var(--pop); color: var(--on-pop); font-size: 18px;
	transform: scale(0) rotate(-90deg); transition: transform .5s var(--spring);
}
.card:hover .card__go { transform: scale(1) rotate(-45deg); }

/* Photo placeholder, used only when a post has no photo */
.photo-slot { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; padding: 16px; background: repeating-linear-gradient(45deg, var(--bg3) 0 12px, var(--bg) 12px 24px); color: var(--mute); font-size: 12px; text-align: center; }

/* Guide rows: big type, the photo floats beside the pointer */
.rows { border-top: 1px solid var(--line); }
.row {
	position: relative;
	display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px;
	padding: 26px 0; border-bottom: 1px solid var(--line);
	transition: padding .5s var(--ease);
}
.row::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--bg3); border-radius: 18px;
	transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.row:hover::before { transform: scaleY(1); }
.row:hover { padding-left: 18px; padding-right: 18px; }
.row small { font-size: 12px; letter-spacing: .15em; color: var(--mute); }
.row h3 { font-size: clamp(22px, 3.2vw, 42px); line-height: 1.1; }
.row__arr { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 18px; transition: background .4s, color .4s, transform .5s var(--spring), border-color .4s; }
.row:hover .row__arr { background: var(--pop); border-color: var(--pop); color: var(--on-pop); transform: rotate(-45deg); }
.row__cat { display: block; margin-top: 6px; font-size: 13px; color: var(--mute); }
.peek {
	position: fixed; left: 0; top: 0; z-index: 80;
	width: 280px; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden;
	pointer-events: none; opacity: 0;
	transform: translate(-50%, -50%) scale(.6) rotate(-6deg);
	transition: opacity .3s, transform .45s var(--ease);
	box-shadow: var(--shadow);
}
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- HOME: INTRO ---------- */
.intro { position: relative; display: grid; place-items: center; min-height: calc(100svh - var(--header-h) - 36px); padding: 60px 0; text-align: center; overflow: hidden; }
.intro .display { margin: 8px 0 22px; }
.intro .lead { margin: 0 auto; }
.intro__btns { justify-content: center; margin-top: 30px; }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit span {
	position: absolute; left: 50%; top: 50%;
	width: var(--s); height: calc(var(--s) * 1.35); margin: calc(var(--s) * -.67) 0 0 calc(var(--s) * -.5);
	border-radius: 50%; background: radial-gradient(circle at 35% 30%, #A36532, #3B1D0C 70%);
	opacity: .5; animation: orbit var(--t) linear infinite;
}
.orbit span::after { content: ""; position: absolute; left: 46%; top: 12%; bottom: 12%; width: 8%; border-radius: 50%; background: #1d0d05; transform: rotate(8deg); }
@keyframes orbit { from { transform: rotate(0) translateX(var(--r)) rotate(0); } to { transform: rotate(360deg) translateX(var(--r)) rotate(-300deg); } }
.cue { margin-top: 36px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.cue i { display: block; width: 2px; height: 46px; margin: 12px auto 0; background: linear-gradient(var(--pop), transparent); animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- HOME: STORY CHAPTERS ---------- */
.rail { position: fixed; left: 24px; top: 50%; z-index: 60; display: none; gap: 14px; transform: translateY(-50%); opacity: 0; transition: opacity .5s; }
.rail.is-on { opacity: 1; }
.rail a { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.rail i { width: 22px; height: 2px; background: var(--line); transition: width .4s var(--ease), background .4s; }
.rail span { opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .4s var(--ease); }
.rail a.is-on { color: var(--ink); }
.rail a.is-on i { width: 44px; background: var(--pop); }
.rail a.is-on span, .rail:hover span { opacity: 1; transform: none; }

.ch { position: relative; }
.ch__stick { position: relative; display: grid; gap: 28px; padding: 70px var(--gutter); overflow: hidden; }
.ch__num { position: absolute; right: -2vw; bottom: -4vh; font: 300 italic 34vh/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--faint); pointer-events: none; }
.ch__text { position: relative; z-index: 2; }
.ch__text .h2 { margin: 0 0 18px; }
.ch__text p { color: var(--mute); max-width: 460px; }
.ch__text strong { color: var(--ink); font-weight: 600; }
.fact {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
	padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg2);
	font-size: 14px; transition: border-color .3s, transform .45s var(--spring), box-shadow .3s;
}
.fact b { color: var(--pop-ink); font-weight: 700; }
a.fact:hover { border-color: var(--pop); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.vis { position: relative; display: grid; place-items: center; min-height: 320px; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* 1 bean */
.beanbig {
	position: relative; width: min(56vw, 320px); aspect-ratio: .74; border-radius: 50%;
	background: radial-gradient(circle at 34% 28%, #A0602F, #4A240F 55%, #1D0D05);
	box-shadow: inset -20px -30px 60px rgba(0, 0, 0, .45), 0 50px 90px -40px rgba(181, 88, 31, .5);
	transform: rotate(calc(-30deg + var(--p, .5) * 160deg)) scale(calc(.6 + var(--p, .5) * .4));
}
.beanbig::after { content: ""; position: absolute; left: 47%; top: 8%; bottom: 8%; width: 7%; border-radius: 50%; background: #140A05; transform: rotate(10deg); }
.roast { position: absolute; right: 4%; top: 6%; transform: rotate(8deg); }

/* 2 grind */
.grinder { width: min(60vw, 300px); aspect-ratio: 2 / 3; transform: rotate(calc(var(--p, .5) * -8deg)); }
.grounds { position: absolute; inset: 0; pointer-events: none; }
.grounds i { position: absolute; top: -5%; width: var(--z); height: var(--z); border-radius: 40%; background: #6B3518; opacity: .85; transform: translateY(calc(var(--p, .5) * var(--v) * 1vh)) rotate(calc(var(--p, .5) * 400deg)); }

/* 3 dose */
.scale { position: relative; width: min(66vw, 340px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.scale svg { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); transform: rotate(-90deg); }
.scale circle { fill: none; stroke-width: 6; }
.scale__n { font: 300 clamp(56px, 8vw, 110px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.scale__n small { font-size: .35em; color: var(--mute); }
.scale .photo { position: absolute; right: -22%; bottom: -12%; width: 40%; aspect-ratio: 2 / 3; transform: rotate(8deg); }

/* 4 tamp */
.press { position: relative; width: min(84vw, 420px); height: 360px; }
.press .photo { position: absolute; width: 60%; aspect-ratio: 2 / 3; }
.press .a { left: 0; top: 6%; transform: rotate(calc(-6deg + var(--p, .5) * 6deg)); }
.press .b { right: 0; top: calc(-10% + var(--p, .5) * 26%); z-index: 2; transform: rotate(calc(8deg - var(--p, .5) * 8deg)); }

/* 5 pour */
.slit { width: 100%; aspect-ratio: 3 / 2; clip-path: inset(calc(45% - var(--p, 1) * 45%) 0 round var(--radius)); }
.slit img { transform: scale(calc(1.3 - var(--p, 1) * .3)); }
.timer { position: absolute; left: 18px; bottom: 18px; z-index: 2; padding: 12px 18px; border-radius: 16px; background: color-mix(in srgb, var(--bg2) 85%, transparent); backdrop-filter: blur(8px); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.timer b { display: block; font: 300 36px/1 var(--serif); letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

/* 6 sip */
.sip { width: min(84vw, 460px); aspect-ratio: 3 / 2; }
.steam { position: absolute; left: 50%; top: 0; display: flex; gap: 16px; transform: translateX(-50%); }
.steam i { width: 6px; height: 80px; border-radius: 6px; background: linear-gradient(transparent, rgba(120, 90, 70, .35), transparent); filter: blur(2px); animation: steam 2.6s ease-in-out infinite; }
.steam i:nth-child(2) { animation-delay: -.8s; }
.steam i:nth-child(3) { animation-delay: -1.6s; }
@keyframes steam { 0% { transform: translateY(20px) scaleY(.6); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-40px) scaleY(1.2); opacity: 0; } }

/* Word strip that moves with the page */
.strip { overflow: hidden; padding: 50px 0; border-block: 1px solid var(--line); }
.strip div { white-space: nowrap; font: 400 italic clamp(56px, 10vw, 150px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--stroke); transform: translateX(var(--sx, 0)); }
.strip b { color: var(--pop); -webkit-text-stroke: 0; font-weight: 400; }

/* ---------- SECTIONS ---------- */
.section { margin-top: clamp(80px, 11vw, 150px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { max-width: 360px; margin: 0; color: var(--mute); }

/* About band (home) */
.about-band { display: grid; gap: 30px; align-items: center; padding: clamp(28px, 5vw, 60px); border-radius: 32px; background: var(--bg3); }
.about-band q { display: block; font: 300 italic clamp(26px, 3.4vw, 44px)/1.2 var(--serif); quotes: none; }
.about-band p { margin: 18px 0 22px; color: var(--mute); }

/* The avatar (illustrated, used instead of a photo) */
.avatar { position: relative; width: min(100%, 220px); aspect-ratio: 1; margin-inline: auto; }
.avatar svg { width: 100%; height: 100%; overflow: visible; }
.avatar .av-steam path { stroke-dasharray: 60; animation: av-steam 3s ease-in-out infinite; }
.avatar .av-steam path:nth-child(2) { animation-delay: -1s; }
.avatar .av-steam path:nth-child(3) { animation-delay: -2s; }
@keyframes av-steam { 0% { stroke-dashoffset: 60; opacity: 0; } 40% { opacity: 1; } 100% { stroke-dashoffset: -60; opacity: 0; } }
.avatar .av-eyes { transform-origin: 50% 58%; animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.avatar .av-heart { transform-origin: 72% 30%; animation: beat 1.8s var(--spring) infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
.avatar:hover .av-face { animation: wiggle .6s var(--spring); }
@keyframes wiggle { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.avatar--sm { width: 84px; flex: 0 0 84px; }

/* Call to action */
.cta { padding: clamp(80px, 12vw, 150px) 0 0; text-align: center; }
.cta .btn { margin-top: 34px; }

/* ---------- LISTINGS (reviews page, categories) ---------- */
.listing-head { padding: clamp(50px, 8vw, 100px) 0 clamp(30px, 4vw, 50px); }
.listing-head__intro { max-width: 620px; margin-top: 18px; color: var(--mute); }
.listing-head__intro p:last-child { margin: 0; }
.pill-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.pill-nav a { position: relative; display: inline-block; padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s; }
.pill-nav a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit; }
.pill-nav a:hover { color: var(--bg); border-color: var(--ink); }
.pill-nav a:hover::before { transform: none; }
.pill-nav a[aria-current="page"] { background: var(--pop); border-color: var(--pop); color: var(--on-pop); }
.pagination { margin-top: 50px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); font-weight: 600; transition: background .3s, color .3s, transform .4s var(--spring); }
.pagination a.page-numbers:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }
.pagination .page-numbers.current { background: var(--pop); border-color: var(--pop); color: var(--on-pop); }
.pagination .page-numbers.dots { border: 0; }

/* ---------- SINGLE: REVIEW AND GUIDE ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 14px; color: var(--mute); }
.breadcrumb a { color: var(--ink); font-weight: 500; }
.breadcrumb a:hover { color: var(--pop-ink); }
.review-head { padding: clamp(40px, 7vw, 90px) 0 clamp(26px, 4vw, 44px); }
.review-head .pill-row { margin-bottom: 18px; }
.review-head__title { max-width: 980px; font-size: var(--fs-h1); line-height: 1; letter-spacing: -.03em; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 22px 0 0; font-size: 14px; color: var(--mute); }
.byline a { color: var(--ink); font-weight: 600; }
.byline a:hover { color: var(--pop-ink); }
.byline .avatar { width: 34px; flex: 0 0 34px; margin: 0; }

/* Big photo that opens up as it scrolls into view */
.hero-photo { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; clip-path: inset(0 round var(--radius)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--p, 1) * .12)); }
[data-reveal-photo] { clip-path: inset(8% 8% round var(--radius)); transition: clip-path 1.2s var(--ease); }
[data-reveal-photo].is-in { clip-path: inset(0 round var(--radius)); }

/* Quick verdict */
.verdict { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 70px); }
.verdict__box { position: relative; padding: clamp(24px, 3.4vw, 38px); border-radius: var(--radius); background: var(--bg2); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.verdict__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.verdict__top h2 { font-size: 24px; }
.verdict__review { font: 400 22px/1.2 var(--serif); }
.verdict__review a:hover { color: var(--pop-ink); }
.verdict__facts { display: grid; gap: 12px; margin: 0 0 18px; }
.verdict__facts .fact { display: block; margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--bg3); border: 0; }
.verdict__facts dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.verdict__facts dd { margin: 4px 0 0; font: 400 20px/1.25 var(--serif); }
.verdict__facts .fact--wide { grid-column: 1 / -1; }
.verdict__text { color: var(--mute); }
.verdict__text p:last-child { margin-bottom: 0; }
.verdict__photo { border-radius: var(--radius); overflow: hidden; }
.verdict__img { width: 100%; height: 100%; object-fit: cover; }
.disclosure-line { margin: 18px 0 12px; font-size: 13px; color: var(--mute); }
.disclosure-line a { text-decoration: underline; text-underline-offset: 3px; }

.review-body { display: grid; gap: 50px; }
.review-body__main { min-width: 0; }
.review-body__main > * + * { margin-top: clamp(40px, 5vw, 60px); }
.post__img { width: 100%; border-radius: var(--radius); }

/* Article text */
.prose { max-width: var(--measure); font-size: 18px; line-height: 1.75; counter-reset: h2; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--pop); }
.prose h2 {
	position: relative; margin: 2.2em 0 .6em;
	font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08;
	counter-increment: h2;
}
.prose h2::before { content: counter(h2, decimal-leading-zero); display: block; margin-bottom: 10px; font: 600 12px/1 var(--sans); letter-spacing: .2em; color: var(--pop-ink); }
.prose h3 { margin: 1.8em 0 .5em; font-size: clamp(22px, 2.2vw, 28px); }
.prose a:not(.btn) {
	font-weight: 500;
	background: linear-gradient(rgba(224, 52, 79, .18), rgba(224, 52, 79, .18)) 0 100% / 100% 2px no-repeat;
	transition: background-size .4s var(--ease);
}
.prose a:not(.btn):hover { background-size: 100% 100%; }
.prose strong { font-weight: 600; }
.prose img { width: 100%; margin: 1.6em 0; border-radius: var(--radius); }
.prose img.is-portrait { max-width: 420px; margin-inline: auto; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--pop); font: 300 italic 26px/1.35 var(--serif); }
.prose .callout { padding: 22px 26px; border-radius: 18px; background: var(--bg3); border-left: 4px solid var(--pop); }
.prose .stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1.2em; }
.prose .stats li { margin: 0; padding: 7px 14px; border-radius: 99px; background: var(--bg3); font-size: 14px; }
.prose .stats strong { color: var(--crema-dark); }
/* "Rookie mistake" boxes: open with a springy chevron */
.prose .tip { margin: 0 0 1.4em; border-radius: 18px; background: var(--bg2); box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .3s; }
.prose .tip:hover { box-shadow: 0 0 0 1px var(--pop); }
.prose .tip summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.prose .tip summary::-webkit-details-marker { display: none; }
.prose .tip summary::before { content: "!"; flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--pop); color: var(--on-pop); font-size: 15px; transition: transform .5s var(--spring); }
.prose .tip[open] summary::before { transform: rotate(360deg) scale(1.1); }
.prose .tip p { margin: 0; padding: 0 20px 18px 60px; color: var(--mute); }
.prose .table-wrap, .table-wrap { overflow-x: auto; margin: 0 0 1.4em; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); background: var(--bg2); }
.prose table, .compare, .specs__table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td, .compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .compare thead th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); background: var(--bg3); }
.prose tbody tr, .compare tbody tr { transition: background .25s; }
.prose tbody tr:hover, .compare tbody tr:hover { background: color-mix(in srgb, var(--pop) 6%, transparent); }
.prose tr:last-child th, .prose tr:last-child td, .compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare tbody th a { font-weight: 600; }
.compare__links a { color: var(--pop-ink); font-weight: 600; }

/* Pros and cons: ticks and crosses pop in */
.proscons { display: grid; gap: 16px; }
.proscons__col { padding: 24px 26px; border-radius: var(--radius); background: var(--bg2); box-shadow: 0 0 0 1px var(--line); }
.proscons__col h2 { margin-bottom: 14px; font-size: 26px; }
.proscons ul { list-style: none; margin: 0; padding: 0; }
.proscons li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.proscons li::before { position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; transform: scale(0); transition: transform .5s var(--spring); }
.proscons.is-in li::before { transform: scale(1); }
.proscons li:nth-child(2)::before { transition-delay: .08s; }
.proscons li:nth-child(3)::before { transition-delay: .16s; }
.proscons li:nth-child(4)::before { transition-delay: .24s; }
.proscons__col--pros li::before { content: "✓"; background: var(--green-bg); color: var(--green); }
.proscons__col--cons li::before { content: "–"; background: #FDE8EA; color: var(--pop-ink); }

.specs h2, .who-for h2 { margin-bottom: 18px; font-size: var(--fs-h3); }
.specs__table th, .specs__table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.specs__table th { width: 40%; font-weight: 500; color: var(--mute); }
.specs__table tr:last-child th, .specs__table tr:last-child td { border-bottom: 0; }
.specs__source { margin-top: 12px; font-size: 13px; color: var(--mute); }
.specs__source p { margin: 0; }
.buy-box { padding: 26px; border-radius: var(--radius); background: var(--bg3); }
.buy-box h2 { margin-bottom: 16px; font-size: 24px; }

/* Author box */
.author-box { display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--bg3); }
.author-box__name { margin: 0 0 4px; font: 400 24px/1.1 var(--serif); }
.author-box p { margin: 0 0 6px; color: var(--mute); font-size: 15px; }
.author-box__links { margin-top: 10px !important; }

/* Side column */
.side { display: grid; gap: 18px; align-content: start; }
.side:not(:has(*)) { display: none; }
.side-box { padding: 22px; border-radius: var(--radius); background: var(--bg2); box-shadow: 0 0 0 1px var(--line); }
.side-box__label { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.side-reviews + .side-box__label { margin-top: 22px; }
.side-reviews, .side-buy { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.side-review { display: flex; align-items: center; gap: 14px; padding: 8px; margin: 0 -8px; border-radius: 14px; transition: background .3s; }
.side-review:hover { background: var(--bg3); }
.side-review__photo { flex: 0 0 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--bg3); }
.side-review__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.side-review:hover .side-review__img { transform: scale(1.12) rotate(-3deg); }
.side-review__text { display: grid; gap: 6px; justify-items: start; }
.side-review__title { font: 400 18px/1.2 var(--serif); }
.side-buy__link { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--bg3); font-weight: 600; transition: background .3s, color .3s; }
.side-buy__link::after { content: "↗"; }
.side-buy__link:hover { background: var(--pop); color: var(--on-pop); }
.side-box .disclosure-line { margin: 12px 0 0; }
.glance__box { padding: 24px; border-radius: var(--radius); background: var(--ink); color: var(--bg); }
.glance__label { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #BFB3A8; }
.glance__product { margin: 0 0 14px; font: 400 26px/1.1 var(--serif); }
.glance__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.glance__box .btn { width: 100%; margin-top: 18px; }
.glance__box .bean::after { background: var(--ink); }
.glance__box .beans b { color: var(--bg); }

/* ---------- ABOUT ---------- */
.about-hero { display: grid; gap: 30px; align-items: center; padding: clamp(40px, 7vw, 90px) 0 0; }
.about-hero .lead { margin: 20px 0 28px; }
/* Story timeline: the line draws itself as you scroll, steps light up */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: var(--pop); transform-origin: top; transform: scaleY(var(--p, 0)); }
.timeline__step { position: relative; padding: 0 0 38px; opacity: .45; transition: opacity .5s; }
.timeline__step.is-lit { opacity: 1; }
.timeline__step::before { content: ""; position: absolute; left: -38px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--stroke); transition: background .4s, border-color .4s, transform .5s var(--spring); }
.timeline__step.is-lit::before { background: var(--pop); border-color: var(--pop); transform: scale(1.2); }
.timeline__title { margin: 0 0 4px; font: 400 clamp(24px, 2.6vw, 34px)/1.15 var(--serif); }
.timeline__title a:hover { color: var(--pop-ink); }
.timeline__note { margin: 0; color: var(--mute); }
.setup-grid { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; }
.setup-card { display: flex; flex-direction: column; height: 100%; }
.setup-card__photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.setup-card__body { display: grid; gap: 4px; padding: 18px 20px 22px; }
.setup-card__name { font: 400 22px/1.15 var(--serif); }
.setup-card__note { color: var(--mute); font-size: 15px; }
.setup-card__more { margin-top: 6px; font-weight: 600; color: var(--pop-ink); }
.about-why { padding: clamp(28px, 5vw, 60px); border-radius: 32px; background: var(--bg3); }
.about-why .prose h2::before { content: none; }
.promise { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- PLAIN PAGES, 404 ---------- */
.page-plain { padding: clamp(40px, 7vw, 90px) 0 0; }
.page-plain > .h1 { margin-bottom: clamp(28px, 4vw, 48px); max-width: 900px; }
.page-plain .prose h2::before { content: none; }
.lost { display: grid; place-items: center; gap: 20px; min-height: 70vh; padding: 60px 0; text-align: center; }
.spill { position: relative; width: 220px; height: 140px; }
.spill__cup { position: absolute; left: 30px; top: 10px; width: 110px; height: 80px; border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 50px 50px; transform-origin: 80% 100%; animation: tip 2.6s var(--ease) infinite alternate; }
.spill__cup::after { content: ""; position: absolute; right: -30px; top: 14px; width: 26px; height: 34px; border: 3px solid var(--ink); border-left: 0; border-radius: 0 20px 20px 0; }
.spill__puddle { position: absolute; left: 90px; bottom: 6px; width: 120px; height: 18px; border-radius: 50%; background: #6B3518; transform-origin: left; animation: puddle 2.6s var(--ease) infinite alternate; }
@keyframes tip { 0%, 30% { transform: rotate(0); } 100% { transform: rotate(-70deg); } }
@keyframes puddle { 0%, 55% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* ==========================================================================
   MEDIA QUERIES (min-width, smallest first)
   ========================================================================== */
@media (min-width: 600px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.setup-grid { grid-template-columns: repeat(2, 1fr); }
	.proscons { grid-template-columns: 1fr 1fr; }
	.verdict__facts { grid-template-columns: 1fr 1fr; }
	.avatar { width: min(100%, 300px); }
	.row { grid-template-columns: 70px 1fr auto; gap: 24px; padding: 32px 0; }
}

@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.site-nav { position: static; inset: auto; display: block; padding: 0; background: none; clip-path: none; visibility: visible; transition: none; }
	/* Desktop menu: a pill slides under the hovered link (scripts.js moves it) */
	.site-nav__list { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 99px; background: color-mix(in srgb, var(--bg3) 70%, transparent); }
	.site-nav__list li { border: 0; overflow: visible; position: relative; z-index: 1; }
	.site-nav__list a { padding: 9px 18px; font: 500 15px/1.2 var(--sans); letter-spacing: 0; transform: none; border-radius: 99px; transition: color .3s; }
	.site-nav__list a::after { content: none; }
	.site-nav__list .current-menu-item > a { color: var(--pop-ink); }
	/* The pill rests under the current page's link, glides to whichever link is
	   hovered and glides back when the pointer leaves. Text colour changes with it. */
	.site-nav__list .nav-blob { position: absolute; z-index: 0; top: 5px; height: calc(100% - 10px); border-radius: 99px; background: var(--ink); opacity: 0; scale: .85; transition: left .55s var(--ease), width .55s var(--ease), opacity .3s, scale .4s var(--spring); pointer-events: none; }
	.site-nav__list .nav-blob.is-on { opacity: 1; scale: 1; }
	.site-nav__list .nav-blob.no-slide { transition: opacity .3s, scale .4s var(--spring); }
	.site-nav__list a { transition: color .45s var(--ease); }
	.site-nav__list li.is-blob > a { color: var(--bg); }

	.rail { display: grid; }
	.ch { height: 230vh; }
	.ch__stick { position: sticky; top: 0; height: 100vh; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 5vw, 80px); padding: 0 max(var(--gutter), calc((100vw - 1180px) / 2)) 0 max(180px, calc((100vw - 1180px) / 2 + 60px)); }
	.ch--flip .ch__text { order: 2; }
	.ch--flip .ch__num { right: auto; left: 4vw; }
	.ch__num { font-size: 42vh; bottom: -8vh; transform: translateY(calc((1 - var(--p, 0)) * 20vh)); }
	.ch__text { opacity: min(1, calc(var(--p, 0) * 6), calc((1 - var(--p, 0)) * 6)); transform: translateY(calc((.5 - var(--p, 0)) * 60px)); }
	.vis { height: 72vh; }
	.press { height: 100%; }

	.card-grid { grid-template-columns: repeat(3, 1fr); }
	.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.card-grid--4 .card__title { font-size: 22px; }
	.about-band { grid-template-columns: 280px 1fr; gap: 50px; }
	.hero-photo { aspect-ratio: 16 / 9; }
	.review-body { grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 80px); align-items: start; }
	.side { position: sticky; top: calc(var(--header-h) + 24px); }
	.about-hero { grid-template-columns: 1fr 360px; gap: 60px; }
	.setup-grid { grid-template-columns: repeat(3, 1fr); }
	.site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
}

@media (max-width: 899px) {
	/* phones/tablets: chapters stack, photos stay still; hover-only effects off */
	.ch__stick { padding-top: 60px; padding-bottom: 60px; }
	.ch__num { font-size: 26vh; }
	.orbit { opacity: .45; }
	.peek, .hover-tag { display: none; }
}

@media (hover: none) {
	.card { transform: none !important; }
	.card__go { transform: scale(1) rotate(-45deg); width: 38px; height: 38px; }
	.peek, .hover-tag { display: none; }
}

/* ---------- REDUCED MOTION: everything still, final state ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.w > span { transform: none; }
	.js .rv, .js .card.rv, .js .row.rv { -webkit-mask: none; mask: none; translate: none; rotate: none; scale: none; }
	.js [data-lines]:not(.is-split) { visibility: visible; }
	.bean::before { transform: scaleX(var(--f, 0)); }
	.proscons li::before { transform: none; }
	[data-reveal-photo] { clip-path: inset(0 round var(--radius)); }
	.ch__text { opacity: 1; transform: none; }
	.hover-tag, .burst, .curtain { display: none; }
	.curtain--reveal { display: none !important; }
}

/* Logo stays above the open phone menu; empty beans show on the dark glance box */
.site-header__logo { position: relative; z-index: 95; }
.glance__box .bean { background: rgba(255, 255, 255, .16); }

/* Safety net: if scripts.js never runs, show hidden headings and blocks after 3s */
html.js:not(.js-ready) [data-lines], html.js:not(.js-ready) .rv { animation: show-anyway 0s 3s forwards; }
@keyframes show-anyway { to { visibility: visible; -webkit-mask: none; mask: none; translate: none; rotate: none; scale: none; } }
