/* ==========================================================================
   PATRIA — Coffee Roasters · main stylesheet (RTL, mobile-first)
   ========================================================================== */

:root {
	--green-950: #0b231a;
	--green-900: #0f2e22;
	--green-800: #163f2f;
	--green-700: #1f523f;
	--green-600: #2f6a54;
	--green: #237a3b;
	--leaf: #3fa564;
	--mint: #b4e5c6;
	--lime: #d8ff1f;
	--maroon: #5e0b1f;
	--maroon-2: #7a1430;
	--cream: #fdf3e6;
	--cream-2: #f6ead6;
	--beige: #efe2cc;
	--ink: #1b1410;
	--coffee: #3b2418;
	--roast: #6b3e26;
	--gold: #e8b45a;

	--font: "Readex Pro", "Tajawal", system-ui, sans-serif;
	--font-latin: "Cinzel", "Times New Roman", serif;

	--radius: 28px;
	--radius-sm: 16px;
	--gutter: clamp(16px, 4vw, 48px);
	--max: 1240px;
	--header-h: 76px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--bean: #7fa65a;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: clamp(15px, 1.05vw, 17px);
	line-height: 1.85;
	color: var(--ink);
	background: var(--cream);
	direction: rtl;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--lime); color: var(--green-900); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
	position: fixed; top: -100px; right: 16px; z-index: 1000;
	background: var(--lime); color: var(--green-900); padding: 10px 18px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- Shared atoms ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-size: .82rem; font-weight: 600; letter-spacing: .02em;
	color: var(--green); margin-bottom: 1rem;
	padding: .35em 1em; border-radius: 999px;
	border: 1px solid currentColor;
}
.eyebrow--lime { color: var(--lime); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }

.tag {
	display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em;
	padding: .3em .9em; border-radius: 999px; direction: ltr;
}
.tag--green { background: var(--mint); color: var(--green-800); }
.tag--maroon { background: var(--maroon); color: var(--cream); }
.tag--lime { background: var(--lime); color: var(--green-900); }

.btn {
	--bg: var(--green-700); --fg: var(--cream);
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	padding: .85em 1.6em; border-radius: 999px; font-weight: 600; font-size: .95rem;
	background: var(--bg); color: var(--fg); border: 1.5px solid transparent;
	overflow: hidden; isolation: isolate;
	transition: transform .4s var(--ease), color .3s, border-color .3s;
}
.btn svg { width: 20px; height: 20px; }
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: var(--maroon); transform: scaleY(0); transform-origin: bottom;
	transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--cream); }
.btn--lime { --bg: var(--lime); --fg: var(--green-900); }
.btn--ghost { --bg: transparent; --fg: var(--cream); border-color: #fdf3e655; }

.stage__head { max-width: 820px; margin: 0 auto clamp(40px, 6vw, 80px); text-align: center; position: relative; }
.stage__head--left { text-align: start; margin-inline: 0; }
.stage__num {
	display: block; font-family: var(--font-latin); font-weight: 900;
	font-size: clamp(4.5rem, 12vw, 10rem); line-height: .8; margin-bottom: .1em;
	color: transparent; -webkit-text-stroke: 1.5px currentColor; opacity: .25;
}
.stage__title { font-size: clamp(1.9rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: .5em; }
.stage__title em { color: var(--green); position: relative; white-space: nowrap; }
.stage__title em::after {
	content: ""; position: absolute; inset-inline: -.05em; bottom: .02em; height: .32em; z-index: -1;
	background: var(--lime); border-radius: 4px; transform: scaleX(var(--u, 0)); transform-origin: right;
	transition: transform 1s var(--ease) .3s;
}
.is-inview .stage__title em::after, .stage__title.is-inview em::after { --u: 1; }
.stage__lead { font-size: clamp(1rem, 1.35vw, 1.18rem); color: #4a3a30; max-width: 680px; margin-inline: auto; }
.stage__head--left .stage__lead { margin-inline: 0; }

/* word reveal */
.rw { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .08em; margin-block: -.08em; }
.rw > span { display: inline-block; will-change: transform; }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
	position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
	background: var(--green-600); color: var(--cream);
}
.preloader__inner { display: grid; justify-items: center; gap: 18px; padding: 24px; text-align: center; }
.preloader__logo { width: min(220px, 50vw); animation: floaty 3s ease-in-out infinite; }
.preloader__bar { width: min(260px, 60vw); height: 4px; border-radius: 4px; background: #ffffff22; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--lime); }
.preloader__count { font-family: var(--font-latin); font-size: 1.1rem; letter-spacing: .2em; direction: ltr; }
.preloader__note { font-size: .85rem; opacity: .7; margin: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed; inset-inline: 0; top: 0; z-index: 90;
	transition: transform .5s var(--ease), background-color .4s, box-shadow .4s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner {
	max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
	height: var(--header-h); padding-inline: var(--gutter);
	display: flex; align-items: center; gap: 24px;
}
.site-header.is-scrolled { background: #0f2e22e6; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 40px #0003; }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.on-light:not(.is-scrolled) { color: var(--green-800); }
.site-header { color: var(--cream); }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--cream); }
.brand__text { display: grid; line-height: 1; direction: ltr; text-align: left; }
.brand__name { font-family: var(--font-latin); font-weight: 900; letter-spacing: .18em; font-size: 1.15rem; }
.brand__tag { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; margin-top: 4px; }

.nav { margin-inline-start: auto; display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
	display: block; padding: .5em .9em; border-radius: 999px; font-size: .92rem; font-weight: 500;
	transition: background-color .3s, color .3s;
}
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list a.is-active { background: #fdf3e61f; }
.site-header.on-light:not(.is-scrolled) .nav__list a:hover { background: #1f523f14; }
.header-cta { display: none; padding: .7em 1.3em; font-size: .88rem; }

.burger {
	margin-inline-start: auto; width: 48px; height: 48px; border-radius: 50%;
	background: var(--lime); border: 0; display: grid; place-content: center; gap: 6px;
}
.burger span { width: 20px; height: 2px; background: var(--green-900); border-radius: 2px; transition: transform .4s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.scroll-progress { position: absolute; inset-inline: 0; bottom: 0; height: 2px; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: right; }

.mobile-menu {
	position: fixed; inset: 0; z-index: 80; background: var(--green-900); color: var(--cream);
	clip-path: circle(0% at calc(100% - 40px) 40px); visibility: hidden;
	transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .8s var(--ease); }
.mobile-menu__inner { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 100px var(--gutter) 40px; }
.mobile-menu .nav__list { flex-direction: column; gap: 6px; }
.mobile-menu .nav__list a { font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 700; padding: .15em 0; border-radius: 0; background: none; }
.mobile-menu .nav__list li { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
.menu-open .mobile-menu .nav__list li { opacity: 1; transform: none; }
.menu-open .mobile-menu .nav__list li:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu .nav__list li:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu .nav__list li:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu .nav__list li:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu .nav__list li:nth-child(6) { transition-delay: .25s; }
.menu-open .mobile-menu .nav__list li:nth-child(7) { transition-delay: .3s; }
.mobile-menu .btn { align-self: flex-start; }

@media (min-width: 1080px) {
	.nav, .header-cta { display: flex; }
	.burger { display: none; }
	.mobile-menu { display: none; }
}

/* ==========================================================================
   Journey rail (fixed)
   ========================================================================== */
.rail {
	position: fixed; left: clamp(14px, 2vw, 28px); top: 50%; z-index: 70;
	transform: translateY(-50%); display: none; align-items: center; gap: 14px;
	opacity: 0; pointer-events: none; transition: opacity .5s;
}
.rail.is-visible { opacity: 1; pointer-events: auto; }
.rail__bean { position: absolute; left: -2px; top: 0; width: 22px; color: var(--bean); transition: color .6s; z-index: 2; filter: drop-shadow(0 4px 8px #0004); }
.rail__line { position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: #00000018; border-radius: 2px; }
.rail__line span { display: block; width: 100%; height: 100%; background: var(--green); transform: scaleY(0); transform-origin: top; }
.rail__list { display: grid; gap: 26px; padding-left: 0; }
.rail__list a { display: flex; align-items: center; gap: 12px; direction: ltr; font-size: .78rem; font-weight: 600; color: var(--green-800); }
.rail__list i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; background: var(--cream); transition: transform .4s var(--ease), background .4s; flex-shrink: 0; }
.rail__list span { opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; white-space: nowrap; background: var(--cream); padding: 2px 10px; border-radius: 999px; box-shadow: 0 4px 14px #0001; }
.rail__list a:hover span, .rail__list a.is-active span { opacity: 1; transform: none; }
.rail__list a.is-active i { background: var(--lime); transform: scale(1.25); }
.rail.on-dark .rail__list a { color: var(--cream); }
.rail.on-dark .rail__list i { background: var(--green-900); }
.rail.on-dark .rail__list a.is-active i { background: var(--lime); }
.rail.on-dark .rail__list span { background: var(--green-800); }
.rail.on-dark .rail__line { background: #ffffff22; }
.rail.on-dark .rail__line span { background: var(--lime); }
@media (min-width: 1180px) { .rail { display: flex; } }

/* ==========================================================================
   Hero — the factory
   ========================================================================== */
.hero {
	position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
	background: linear-gradient(180deg, #fdf3e6 0%, #f3efdc 45%, #e4f1e3 100%);
	color: var(--green-800);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__sun {
	position: absolute; top: 14%; left: 12%; width: clamp(90px, 12vw, 170px); aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, #fff6c9, #ffd27a 60%, #f6b04a);
	box-shadow: 0 0 120px 40px #ffd27a55;
}
.hero__clouds { position: absolute; inset: 0 0 auto; width: 100%; height: 55%; }
.cloud { animation: drift 60s linear infinite; }
.cloud--2 { animation-duration: 85s; animation-direction: reverse; }
.cloud--3 { animation-duration: 70s; }
.hero__hills { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 42%; }

.hero__copy {
	position: relative; z-index: 3; text-align: center;
	padding: calc(var(--header-h) + clamp(12px, 3vh, 40px)) var(--gutter) 0;
	max-width: 980px; margin-inline: auto;
}
.hero__kicker { color: var(--green); background: #fdf3e6cc; backdrop-filter: blur(6px); margin-bottom: clamp(8px, 1.5vh, 16px); }
.hero__title { display: grid; justify-items: center; gap: clamp(4px, 1vh, 12px); }
.hero__brand {
	font-family: var(--font-latin); font-weight: 900; direction: ltr;
	font-size: clamp(3.2rem, min(11vw, 14vh), 9rem); letter-spacing: .08em; line-height: .9;
	color: var(--green-700);
	display: inline-flex; overflow: hidden; padding-block: .05em;
}
.hero__letter { display: inline-block; }
.hero__headline { font-size: clamp(1.05rem, 2.4vw, 1.9rem); font-weight: 600; color: var(--maroon); max-width: 30ch; }
.hero__sub { max-width: 560px; margin: clamp(8px, 1.4vh, 16px) auto 0; font-size: clamp(.9rem, 1.15vw, 1.05rem); color: #3d4a40; }

.hero__stage { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.building-wrap {
	width: min(1200px, 100%, 96vh); width: min(1200px, 100%, 96svh); aspect-ratio: 1200 / 800; flex-shrink: 0;
	transform-origin: 50% 80%; will-change: transform; margin-bottom: -1px;
}
.building { width: 100%; height: 100%; overflow: visible; }
.win__glow { opacity: 0; }
.is-lit .win__glow { animation: winflicker 6s ease-in-out infinite; animation-delay: calc(var(--d) * .4s); opacity: .9; }
.lamp__halo { animation: pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.clock__m { transform-box: view-box; transform-origin: 600px 436px; animation: spin 12s linear infinite; }
.clock__h { transform-box: view-box; transform-origin: 600px 436px; animation: spin 144s linear infinite; }
.door__leaf--l { transform-box: fill-box; transform-origin: left center; }
.door__leaf--r { transform-box: fill-box; transform-origin: right center; }
.puff { transform-box: fill-box; transform-origin: center; }

.hero__scroll {
	position: absolute; bottom: clamp(14px, 3vh, 28px); left: 50%; z-index: 4; transform: translateX(-50%);
	display: grid; justify-items: center; gap: 8px; font-size: .78rem; font-weight: 600;
	color: var(--cream); background: #0f2e22b3; padding: 10px 16px; border-radius: 999px;
	backdrop-filter: blur(6px);
}
.hero__mouse { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; display: grid; justify-items: center; padding-top: 6px; }
.hero__mouse span { width: 3px; height: 7px; background: var(--lime); border-radius: 2px; animation: wheel 1.6s ease-in-out infinite; }
.hero__veil { position: absolute; inset: 0; z-index: 5; background: var(--green-900); opacity: 0; pointer-events: none; }

@media (max-width: 767px) {
	.building-wrap { width: 175vw; max-width: none; }
	.hero__stage { justify-content: center; }
	.hero__sun { top: auto; bottom: 46%; left: 6%; }
	.hero__scroll { display: none; }
}
@media (max-height: 920px) and (min-width: 768px) {
	.hero__sub { display: none; }
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro {
	position: relative; background: var(--green-900); color: var(--cream);
	padding: clamp(90px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); overflow: hidden;
}
.intro__beans { position: absolute; inset: 0; pointer-events: none; }
.intro__beans i { position: absolute; width: 18px; height: 26px; border-radius: 50%; background: var(--c, #7fa65a); opacity: .14; }
.intro__statement {
	font-size: clamp(1.5rem, 3.8vw, 3.2rem); font-weight: 600; line-height: 1.6; max-width: 1050px;
	margin-bottom: clamp(50px, 8vw, 100px);
}
.intro__statement .sw { opacity: .14; transition: opacity .2s; }
.journey-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; position: relative; counter-reset: s; }
.journey-map__item a {
	position: relative; display: grid; gap: 8px; padding: 18px; border-radius: var(--radius-sm);
	background: #ffffff0a; border: 1px solid #ffffff14; height: 100%;
	transition: background .4s, transform .5s var(--ease), border-color .4s;
}
.journey-map__item a:hover { background: #d8ff1f14; border-color: var(--lime); transform: translateY(-4px); }
.journey-map__num { font-family: var(--font-latin); color: var(--lime); font-size: .9rem; letter-spacing: .1em; }
.journey-map__bean { width: 30px; color: hsl(calc(95 - var(--i) * 11) calc(40% - var(--i) * 2%) calc(48% - var(--i) * 4%)); }
.journey-map__label { font-weight: 600; font-size: .98rem; }
@media (min-width: 768px) { .journey-map { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ==========================================================================
   Stage base
   ========================================================================== */
.stage { position: relative; padding: clamp(90px, 12vw, 170px) 0; overflow: hidden; }
.stage--cream { background: var(--cream); }
.stage--beige { background: var(--beige); }
.stage--green { background: var(--green-800); color: var(--cream); }
.stage--green .stage__lead { color: #e8dfcf; }
.stage--green .stage__title em { color: var(--lime); }
.stage--green .stage__title em::after { background: var(--maroon); }
.stage--dark { background: #140d09; color: var(--cream); }
.stage--dark .stage__lead { color: #d8ccba; }
.stage--dark .stage__title em { color: var(--lime); }
.stage--dark .stage__title em::after { background: var(--maroon); }
.stage--cream .stage__num, .stage--beige .stage__num { color: var(--green); }

/* ---------- Stage 01 ---------- */
.split { display: grid; gap: clamp(20px, 3vw, 36px); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.school {
	border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px #3b241840;
	display: flex; flex-direction: column;
}
.school--commercial { background: #fff8f0; }
.school__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.school__media img { width: 100%; height: 118%; object-fit: cover; }
.school__body { padding: clamp(22px, 3vw, 36px); }
.school__body h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: .5em 0 .4em; }
.school--commercial h3 { color: var(--maroon); }
.school--specialty h3 { color: var(--green); }
.facts { display: grid; gap: 12px; }
.facts li { position: relative; padding-inline-start: 26px; font-size: .95rem; }
.facts li::before { content: ""; position: absolute; right: 0; top: .7em; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 3px var(--green); }
.school--commercial .facts li::before { background: #f2cfd6; box-shadow: inset 0 0 0 3px var(--maroon); }

.sacks { display: flex; justify-content: center; gap: clamp(6px, 2vw, 24px); margin-top: clamp(40px, 6vw, 80px); }
.sack { width: clamp(64px, 11vw, 130px); }
.sack svg { width: 100%; filter: drop-shadow(0 14px 14px #3b241833); }

/* ---------- Stage 02 ---------- */
.score { display: grid; gap: 24px; align-items: center; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .score { grid-template-columns: 340px 1fr; gap: 48px; } }
.score__gauge { position: relative; background: var(--cream); border-radius: var(--radius); padding: 28px 28px 22px; text-align: center; box-shadow: 0 20px 50px -30px #3b241850; }
.score__gauge svg { width: 100%; max-width: 260px; margin-inline: auto; }
.score__arc { stroke-dasharray: 100; stroke-dashoffset: 100; }
.score__value { font-family: var(--font-latin); font-size: 3.2rem; font-weight: 900; color: var(--green); margin-top: -64px; direction: ltr; }
.score__value small { font-size: 1.2rem; color: #8a7a68; }
.score__label { font-size: .88rem; color: #5a4a3e; margin: 6px 0 0; }
.defects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .defects { grid-template-columns: repeat(4, 1fr); } }
.defects li { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 20px 12px; border-radius: var(--radius-sm); background: #fff8ef; }
.defects__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--beige); color: var(--roast); display: grid; place-items: center; padding: 12px; margin-bottom: 6px; }
.defects small { color: #7b6a5c; font-size: .8rem; }

.compare { border-radius: var(--radius); overflow: hidden; background: var(--cream); box-shadow: 0 30px 60px -40px #3b241866; }
.compare__row { display: grid; grid-template-columns: 1fr; border-top: 1px solid #237a3b22; }
.compare__row > div { padding: 16px 20px; }
.compare__row [role="rowheader"] { font-weight: 700; color: var(--green-800); background: #b4e5c633; }
.compare__row [role="cell"]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.compare__row b { color: var(--maroon); }
.compare__row--head { display: none; }
@media (min-width: 900px) {
	.compare__row { grid-template-columns: 1fr 1.4fr 1.4fr; }
	.compare__row > div { padding: 22px 26px; }
	.compare__row > div + div { border-inline-start: 1px solid #237a3b22; }
	.compare__row [role="cell"]::before { display: none; }
	.compare__row--head { display: grid; background: var(--mint); color: var(--green); font-weight: 700; border-top: 0; }
	.compare__row--head small { display: block; font-size: .78rem; opacity: .8; direction: ltr; text-align: right; }
}

/* ---------- Stage 03 ---------- */
.anatomy { display: grid; gap: clamp(36px, 5vw, 70px); align-items: center; }
@media (min-width: 1000px) { .anatomy { grid-template-columns: 1fr 1fr; } }
.anatomy .stage__num { color: var(--lime); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.stat { padding: 16px 12px; border-radius: var(--radius-sm); background: #ffffff0d; border: 1px solid #ffffff18; }
.stat__value { display: block; font-family: var(--font-latin); font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.6rem); color: var(--lime); direction: ltr; text-align: right; line-height: 1.1; }
.stat__value small { font-family: var(--font); font-size: .55em; margin-inline-start: 2px; }
.stat__label { font-size: .78rem; color: #d6cdbd; line-height: 1.6; display: block; margin-top: 6px; }
.info-pills { display: grid; gap: 12px; }
.info-pill { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--cream); color: var(--ink); }
.info-pill h4 { color: var(--maroon); margin-bottom: 4px; font-size: 1.05rem; }
.info-pill p { margin: 0; font-size: .93rem; }
.anatomy__media { position: relative; margin: 0; }
.anatomy__frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1400 / 877; }
.anatomy__frame img { width: 100%; height: 115%; object-fit: cover; }
.anatomy__bean { position: absolute; width: clamp(70px, 10vw, 130px); bottom: -30px; left: -16px; filter: drop-shadow(0 20px 30px #0006); }
.anatomy__crease { stroke-dasharray: 260; stroke-dashoffset: 260; }

/* ==========================================================================
   Stage 04 — Roasting
   ========================================================================== */
.roast {
	--bean: #7fa65a; --heat: 0;
	position: relative; background: #150d09; color: var(--cream); overflow: hidden;
}
.roast__glow {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(60% 55% at 30% 60%, rgba(255, 120, 30, calc(var(--heat) * .38)), transparent 70%),
		radial-gradient(50% 40% at 80% 10%, rgba(232, 180, 90, calc(var(--heat) * .14)), transparent 70%);
}
.roast__pin {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: grid; grid-template-rows: auto 1fr auto;
	padding: calc(var(--header-h) + 8px) var(--gutter) 18px; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
}
.roast__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.roast__top .eyebrow { margin-bottom: .5rem; }
.roast__title { font-size: clamp(1.7rem, 3.6vw, 3rem); }
.roast__title em { color: var(--gold); }
.roast__meters { display: flex; gap: 10px; }
.meter {
	display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px;
	padding: 10px 16px; border-radius: 16px; background: #ffffff0d; border: 1px solid #ffffff1a; min-width: 150px;
}
.meter__icon { grid-row: span 2; width: 28px; color: var(--gold); }
.meter__val { font-family: var(--font-latin); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.1; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.meter__lbl { font-size: .72rem; opacity: .65; }

.roast__body { display: grid; align-items: center; gap: 16px; min-height: 0; }
@media (min-width: 900px) { .roast__body { grid-template-columns: 1fr 1.1fr; gap: 40px; } }
.roast__phases { position: relative; min-height: 230px; }
.phase {
	position: absolute; inset: 0 0 auto; opacity: 0; visibility: hidden;
	transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease), visibility 0s .5s;
}
.phase.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .1s, transform .7s var(--ease) .1s, visibility 0s; }
.phase__tag { font-family: var(--font-latin); color: var(--lime); letter-spacing: .14em; font-size: .78rem; direction: ltr; display: inline-block; }
.phase__title { font-size: clamp(2rem, 5vw, 4rem); color: var(--cream); margin: .1em 0 .15em; }
.phase__range { display: inline-block; font-size: .85rem; color: var(--gold); padding: 3px 12px; border: 1px solid #e8b45a55; border-radius: 999px; margin-bottom: 12px; }
.phase__text { font-size: clamp(.95rem, 1.25vw, 1.1rem); color: #e6dccd; max-width: 520px; }
.phase-dots { position: absolute; top: -26px; inset-inline-start: 0; display: flex; gap: 8px; }
.phase-dots li { width: 26px; height: 4px; border-radius: 4px; background: #ffffff22; transition: background .4s, width .4s var(--ease); }
.phase-dots li.is-on { background: var(--lime); }
.phase-dots li.is-current { width: 48px; }

.roast__visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.roaster { width: min(100%, 460px); max-height: 52vh; filter: drop-shadow(0 30px 50px #000a); }
.bean-dot { fill: var(--bean); stroke: #0003; stroke-width: 1; }
.hopper-beans ellipse { fill: #7fa65a; }
.drum-beans, .drum-vanes { transform-box: view-box; transform-origin: 250px 275px; animation: spin 3.2s linear infinite; }
.flame { transform-box: fill-box; transform-origin: bottom center; transform: scaleY(calc(.35 + var(--heat) * .9)); animation: flick .35s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.07s); }
.gauge-needle { transform-box: view-box; }
.led { animation: blink 1.2s steps(2) infinite; }
.big-bean {
	position: absolute; width: clamp(76px, 12vw, 150px); bottom: 2%; left: 0;
	filter: drop-shadow(0 18px 28px #000a);
}
.big-bean__body { fill: var(--bean); }
.big-bean__crease { stroke: color-mix(in srgb, var(--bean) 55%, #000); }
.big-bean__cracks { opacity: 0; }
.big-bean__oil { opacity: 0; }
.sparks { position: absolute; inset: 0; pointer-events: none; }
.sparks i { position: absolute; top: 50%; left: 50%; width: 4px; height: 16px; border-radius: 4px; background: var(--lime); opacity: 0; transform: rotate(var(--a)) translateY(-90px); }
.sparks.go i { animation: spark .7s var(--ease) forwards; }
.puff-steam { fill: #ffffff; }

.roast__curve { position: relative; margin-top: 8px; }
.roast__curve svg { width: 100%; height: clamp(60px, 11vh, 120px); transform: scaleX(-1); }
.curve-path { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.curve-labels { display: flex; justify-content: space-between; font-size: .72rem; color: #cbbca8; margin-top: 4px; }

@media (max-width: 899px) {
	.roast__pin { padding-top: calc(var(--header-h) - 6px); }
	.roast__meters { width: 100%; }
	.meter { flex: 1; min-width: 0; padding: 8px 12px; }
	.roast__body { grid-template-rows: auto 1fr; }
	.roast__visual { order: -1; }
	.roaster { max-height: 34vh; }
	.roast__phases { min-height: 210px; }
	.phase__title { font-size: 1.9rem; }
	.phase__text { font-size: .92rem; line-height: 1.75; }
	.big-bean { width: 68px; left: 4%; }
	.curve-labels { font-size: .65rem; }
}

/* ==========================================================================
   Stage 05 — Cooling
   ========================================================================== */
.cooling { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .cooling { grid-template-columns: 1fr 1fr; } }
.cooling__visual { position: relative; max-width: 460px; width: 100%; margin-inline: auto; }
.tray { width: 100%; filter: drop-shadow(0 40px 50px #3b241855); }
.tray__arms { transform-box: view-box; transform-origin: 200px 200px; animation: spin 9s linear infinite; }
.tray__beans { transform-box: view-box; transform-origin: 200px 200px; animation: spin 40s linear infinite; }
.co2 { position: absolute; inset: -10% 0 40%; pointer-events: none; z-index: 2; }
.co2 span {
	position: absolute; bottom: 0; left: calc(8% + var(--i) * 6%);
	font-family: var(--font-latin); font-weight: 700; font-size: calc(.7rem + (var(--i) * 3 % 5) * .12rem); color: var(--green);
	padding: 6px 8px; border-radius: 50%; border: 1.5px solid #237a3b55; background: #fdf3e6cc;
	opacity: 0; animation: rise 5s ease-in infinite; animation-delay: calc(var(--i) * -.37s);
}
.steps-list { display: grid; gap: 14px; }
.steps-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius-sm); background: #fff; box-shadow: 0 14px 30px -24px #3b241866; }
.steps-list li > span { font-family: var(--font-latin); font-weight: 900; color: var(--green); font-size: 1.3rem; line-height: 1.2; }
.steps-list h4 { font-size: 1.05rem; color: var(--maroon); margin-bottom: 2px; }
.steps-list p { margin: 0; font-size: .93rem; color: #4a3a30; }

/* ==========================================================================
   Stage 06 — Lab
   ========================================================================== */
.stage--dark .stage__num { color: var(--gold); }
.lab-grid { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 70px); }
@media (min-width: 900px) { .lab-grid { grid-template-columns: 1fr 1.2fr; } }
.calc, .rule { border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.calc { background: var(--green-800); position: relative; overflow: hidden; }
.calc h3, .rule h3 { font-size: 1.35rem; margin-bottom: .5em; }
.calc p { color: #d9cfbe; font-size: .95rem; }
.calc__label { display: block; margin: 18px 0 8px; font-size: .9rem; }
.calc__label b { color: var(--lime); }
.calc__range { width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 6px; background: #ffffff22; outline: none; direction: ltr; }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); border: 4px solid var(--green-800); box-shadow: 0 0 0 2px var(--lime); cursor: grab; }
.calc__range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); border: 4px solid var(--green-800); cursor: grab; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; position: relative; z-index: 1; }
.calc__out > div { padding: 14px; border-radius: 14px; background: #0f2e22; }
.calc__num { display: block; font-family: var(--font-latin); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--lime); line-height: 1.1; }
.calc__out small { font-size: .75rem; color: #cfc4b2; }
.calc__cup { position: absolute; left: 20px; top: 20px; width: 56px; height: 64px; border: 3px solid #fdf3e655; border-top: 0; border-radius: 0 0 16px 16px; overflow: hidden; opacity: .8; }
.calc__fill { position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(#c58a4a, #3b2418); transition: height .5s var(--ease); }
.rule { background: #ffffff08; border: 1px solid #ffffff14; }
.rule p { color: #d9cfbe; }
.rule b { color: var(--cream); }
.flow { display: grid; gap: 10px; }
.flow__item { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #ffffff08; }
.flow__item p { margin: 0; font-size: .9rem; }
.flow__time { flex-shrink: 0; min-width: 74px; text-align: center; font-family: var(--font-latin); font-weight: 700; padding: 6px 10px; border-radius: 999px; font-size: .85rem; }
.flow__item--fast .flow__time { background: #f2c94c; color: #3b2418; }
.flow__item--ok .flow__time { background: var(--lime); color: var(--green-900); }
.flow__item--slow .flow__time { background: var(--maroon-2); color: var(--cream); }

.extraction { display: grid; gap: 20px; margin-bottom: clamp(50px, 7vw, 90px); }
@media (min-width: 900px) { .extraction { grid-template-columns: 1fr 1fr; } }
.ext { border-radius: var(--radius); overflow: hidden; background: #1f1510; border: 1px solid #ffffff12; }
.ext figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.ext figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ext:hover figure img { transform: scale(1.06); }
.ext__body { padding: clamp(20px, 3vw, 32px); }
.ext__body h3 { font-size: 1.5rem; margin: .4em 0; }
.ext__body p { color: #d9cfbe; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips li { font-size: .8rem; padding: 5px 12px; border-radius: 999px; background: #ffffff10; border: 1px solid #ffffff1c; }
.ext--under .chips li { border-color: #d8ff1f55; }
.ext--over .chips li { border-color: #c0405c88; }
.ext__fix { margin: 0; padding: 12px 14px; border-radius: 12px; background: #ffffff08; font-size: .88rem !important; }

.water { display: grid; gap: 30px; align-items: center; }
@media (min-width: 960px) { .water { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.water h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: .5em; }
.water h3 em { color: var(--lime); }
.water__copy > p { color: #d9cfbe; }
.water__bars { display: grid; gap: 12px; margin: 22px 0; }
.wbar { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 12px; font-size: .85rem; }
.wbar__track { height: 10px; border-radius: 10px; background: #ffffff14; overflow: hidden; }
.wbar__track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #4aa3ff, #9fd6ff); transform: scaleX(0); transform-origin: right; }
.wbar b { font-family: var(--font-latin); color: #9fd6ff; }
.minerals { display: grid; gap: 10px; }
@media (min-width: 640px) { .minerals { grid-template-columns: repeat(3, 1fr); } }
.minerals li { padding: 16px; border-radius: 16px; background: #ffffff08; border: 1px solid #ffffff14; display: grid; gap: 4px; }
.minerals span { font-family: var(--font-latin); font-weight: 900; font-size: 1.4rem; color: #9fd6ff; direction: ltr; text-align: right; }
.minerals small { color: #cfc4b2; font-size: .8rem; line-height: 1.6; }
.water__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1400 / 834; }
.water__media img { width: 100%; height: 115%; object-fit: cover; }

/* ==========================================================================
   Stage 07 — Packaging
   ========================================================================== */
.pack { position: relative; background: var(--green-800); color: var(--cream); overflow: hidden; }
.pack__pin { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 10px) 0 30px; }
.pack__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .pack__grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.pack .stage__title em { color: var(--lime); }
.pack .eyebrow { color: var(--lime); }
.roast__phases { margin-top: 26px; }
.pack-steps { display: grid; gap: 8px; }
.pack-step { display: flex; gap: 14px; padding: 12px 16px; border-radius: 16px; border: 1px solid #ffffff12; opacity: .4; transition: opacity .4s, background .4s, border-color .4s, transform .5s var(--ease); }
.pack-step.is-active { opacity: 1; background: #ffffff0d; border-color: var(--lime); transform: translateX(-6px); }
.pack-step.is-done { opacity: .75; }
.pack-step__n { font-family: var(--font-latin); font-weight: 900; color: var(--lime); }
.pack-step h4 { font-size: 1.02rem; }
.pack-step p { margin: 0; font-size: .86rem; color: #d9cfbe; line-height: 1.6; }
.pack__visual { position: relative; display: grid; place-items: center; }
.bag { width: min(100%, 360px); max-height: 66vh; overflow: visible; filter: drop-shadow(0 40px 40px #0007); }
.bag__front, .bag__label, .valve, .bag__seal { opacity: 0; }
.seal-heat { opacity: 0; }
.valve__pulse { transform-box: fill-box; transform-origin: center; animation: ring 1.6s ease-out infinite; }
.pack__scale {
	position: absolute; top: 0; inset-inline-end: 0; z-index: 2; font-family: var(--font-latin); font-weight: 700;
	padding: 8px 16px; border-radius: 12px; background: #0f2e22; border: 1px solid #ffffff1a; color: var(--lime); direction: ltr; font-variant-numeric: tabular-nums;
}
.callout { position: absolute; font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--lime); color: var(--green-900); opacity: 0; white-space: nowrap; }
.callout--valve { top: 24%; left: 2%; }
.callout--seal { top: 9%; right: 2%; }
.pack__progress { position: absolute; bottom: 0; inset-inline: 0; height: 3px; background: #ffffff10; }
.pack__progress span { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: right; }
@media (max-width: 899px) {
	.pack__pin { align-items: flex-start; }
	.pack__copy .stage__title { font-size: 1.7rem; margin-bottom: .4em; }
	.pack-steps { grid-template-columns: 1fr; gap: 0; }
	.pack-step { display: none; }
	.pack-step.is-active { display: flex; transform: none; }
	.pack__visual { order: -1; }
	.bag { max-height: 48vh; }
	.pack__copy { order: 2; }
	.pack__copy .eyebrow { margin-bottom: .4rem; }
}

/* ==========================================================================
   Stage 08 — Brew gallery
   ========================================================================== */
.brew { position: relative; background: #150d09; color: var(--cream); overflow: hidden; }
.brew__pin { padding: clamp(90px, 10vw, 130px) 0 clamp(60px, 8vw, 100px); }
.brew__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.brew__head .stage__title { margin: 0; }
.brew__head .stage__title em { color: var(--lime); }
.brew__head .stage__title em::after { background: var(--maroon); }
.brew__hint { font-size: .85rem; color: #cbbca8; margin: 0; white-space: nowrap; }
.brew__track {
	display: flex; gap: 18px; padding-inline: var(--gutter);
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
}
.brew__track::-webkit-scrollbar { display: none; }
.brew-card {
	flex: 0 0 min(82vw, 380px); scroll-snap-align: center; border-radius: var(--radius); overflow: hidden;
	background: #21160f; border: 1px solid #ffffff12; display: flex; flex-direction: column;
	transition: transform .6s var(--ease), border-color .4s;
}
.brew-card:hover { border-color: var(--lime); transform: translateY(-6px); }
.brew-card__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.brew-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.brew-card:hover .brew-card__media img { transform: scale(1.07); }
.brew-card__body { padding: 22px; position: relative; flex: 1; }
.brew-card__n { position: absolute; top: 14px; inset-inline-end: 20px; font-family: var(--font-latin); font-size: 2.6rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1px #ffffff40; line-height: 1; }
.brew-card h3 { font-size: 1.35rem; margin: .5em 0 .4em; }
.brew-card p { font-size: .9rem; color: #d9cfbe; margin: 0; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.specs li { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: #ffffff10; color: var(--gold); }
@media (min-width: 1024px) {
	.brew__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 20px) 40px; }
	.brew.is-horizontal .brew__track { overflow: visible; scroll-snap-type: none; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
	.brew-card { flex-basis: 380px; }
	.brew.is-horizontal .brew__hint { visibility: hidden; }
}

/* ==========================================================================
   Academy + manifesto
   ========================================================================== */
.academy { background: var(--cream); padding: clamp(90px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); }
.volumes { display: grid; gap: 14px; max-width: 980px; margin-inline: auto; }
.volume { border-radius: var(--radius); background: var(--beige); overflow: hidden; }
.volume summary {
	list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
	padding: 22px 26px; background: var(--maroon); color: var(--cream);
}
.volume summary::-webkit-details-marker { display: none; }
.volume__n { grid-column: 1; font-size: .8rem; color: var(--lime); font-weight: 600; }
.volume__title { grid-column: 1; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; }
.volume__toggle { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; background: #ffffff1a; position: relative; transition: transform .4s var(--ease); }
.volume__toggle::before, .volume__toggle::after { content: ""; position: absolute; inset: 50% 30%; height: 2px; margin-top: -1px; background: var(--cream); }
.volume__toggle::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.volume[open] .volume__toggle::after { transform: rotate(0); }
.volume__body { padding: 14px 26px 26px; display: grid; gap: 18px; }
@media (min-width: 768px) { .volume__body { grid-template-columns: 1fr 1fr; } }
.chapter h4 { display: flex; gap: 10px; align-items: baseline; font-size: 1.02rem; color: var(--green); padding: 10px 0 8px; border-bottom: 1px solid #237a3b33; margin-bottom: 8px; }
.chapter h4 span { font-family: var(--font-latin); color: var(--maroon); font-size: .9rem; }
.chapter li { position: relative; padding-inline-start: 18px; font-size: .9rem; padding-block: 4px; }
.chapter li::before { content: ""; position: absolute; right: 0; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--maroon); }
.gallery-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: clamp(40px, 6vw, 70px); }
@media (min-width: 768px) { .gallery-strip { grid-template-columns: repeat(4, 1fr); } }
.gallery-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); }

.manifesto { background: var(--cream); padding: 0 0 clamp(70px, 10vw, 130px); }
.manifesto__card {
	position: relative; overflow: hidden; border-radius: clamp(24px, 4vw, 44px); background: var(--green); color: var(--cream);
	padding: clamp(36px, 7vw, 100px) clamp(22px, 7vw, 110px);
}
.manifesto__watermark { position: absolute; left: -6%; bottom: -10%; width: min(70%, 560px); opacity: .07; filter: grayscale(1) brightness(2); pointer-events: none; border-radius: 50%; }
.manifesto__title { font-size: clamp(2.2rem, 6.5vw, 5.4rem); line-height: 1.15; margin-bottom: .7em; position: relative; }
.manifesto__title .lime { color: var(--lime); }
.manifesto__text { position: relative; max-width: 780px; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.manifesto__text b { color: var(--lime); }
.manifesto__end { font-weight: 600; border-top: 1px solid #ffffff33; padding-top: 1em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--green-950); color: var(--cream); padding: clamp(70px, 10vw, 130px) 0 0; overflow: hidden; }
.footer-cta { text-align: center; max-width: 820px; margin: 0 auto clamp(50px, 8vw, 90px); }
.footer-cta__title { font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: .4em; }
.footer-cta__title em { color: var(--lime); }
.footer-cta__lead { color: #cfc4b2; }
.footer-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.footer-grid { display: grid; gap: 34px; padding-block: 40px; border-top: 1px solid #ffffff18; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-col h3 { font-size: 1rem; color: var(--lime); margin-bottom: 14px; }
.footer-col--brand img { width: 130px; margin-bottom: 12px; }
.footer-col--brand p { color: #cfc4b2; font-size: .9rem; }
.contact-list { display: grid; gap: 12px; font-size: .92rem; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list svg { width: 20px; flex-shrink: 0; margin-top: 4px; color: var(--lime); }
.contact-list a:hover { color: var(--lime); }
.socials { display: flex; gap: 10px; margin-bottom: 14px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #ffffff2a; transition: background .3s, color .3s; }
.socials a:hover { background: var(--lime); color: var(--green-900); }
.socials svg { width: 20px; }
.footer-menu { display: grid; gap: 6px; font-size: .9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0; border-top: 1px solid #ffffff14; font-size: .8rem; color: #a99d8b; position: relative; z-index: 1; }
.to-top:hover { color: var(--lime); }
.footer-giant {
	font-family: var(--font-latin); font-weight: 900; text-align: center; direction: ltr;
	font-size: clamp(5rem, 24vw, 22rem); line-height: .75; letter-spacing: .04em;
	color: transparent; -webkit-text-stroke: 1px #ffffff14; margin-bottom: -.06em; user-select: none;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.inner-hero { background: var(--green-800); color: var(--cream); padding: calc(var(--header-h) + 70px) 0 70px; }
.inner-hero--full { min-height: 100vh; display: flex; align-items: center; }
.inner-hero__title { font-size: clamp(2rem, 5vw, 3.6rem); }
.inner-page { min-height: 60vh; }
.entry { padding-block: 60px 90px; max-width: 860px; }
.entry__thumb { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; }
.entry-content { font-size: 1.05rem; }
.entry-content h2, .entry-content h3 { margin: 1.4em 0 .6em; color: var(--green-800); }
.entry-content a { color: var(--green); text-decoration: underline; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content ul { list-style: disc; padding-inline-start: 1.4em; margin-bottom: 1em; }
.entry-content ol { list-style: decimal; padding-inline-start: 1.4em; margin-bottom: 1em; }
.page-content { padding-block: 60px; }
.post-grid { display: grid; gap: 22px; padding-block: 60px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 20px 40px -30px #3b241866; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 20px 22px 26px; }
.post-card time { font-size: .8rem; color: var(--green); }
.post-card h2 { font-size: 1.2rem; margin: .3em 0 .5em; }
.pagination { padding-bottom: 60px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; background: var(--beige); }
.pagination .current { background: var(--green); color: var(--cream); }
.empty { padding: 60px 0; }
.patria-inner .site-header { background: #0f2e22e6; }

/* ==========================================================================
   Cursor (desktop)
   ========================================================================== */
.cursor { position: fixed; top: 0; left: 0; z-index: 998; pointer-events: none; display: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor.is-moving { opacity: 1; }
.cursor span { display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.cursor.is-hover span { transform: scale(3.2); }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: block; } }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .85; transform: scale(1.15); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(1800px); } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes winflicker { 0%, 100% { opacity: .92; } 45% { opacity: .78; } 50% { opacity: .95; } 70% { opacity: .85; } }
@keyframes flick { from { transform: scaleY(calc(.35 + var(--heat) * .9)) scaleX(1); } to { transform: scaleY(calc(.25 + var(--heat) * .75)) scaleX(.85); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-60px) scaleY(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-130px) scaleY(.3); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-260px) scale(1.1); } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.win__glow { opacity: .9; }
	.bag__front, .bag__label, .valve, .bag__seal { opacity: 1; }
	.curve-path, .score__arc, .anatomy__crease { stroke-dashoffset: 0; }
	.wbar__track i { transform: none; }
	.intro__statement .sw { opacity: 1; }
}

/* No-motion fallbacks (reduced motion or GSAP unavailable) */
.no-motion .phase { position: static; opacity: 1; visibility: visible; transform: none; margin-bottom: 28px; }
.no-motion .roast__phases { min-height: 0; }
.no-motion .phase-dots { display: none; }
.no-motion .pack-step { display: flex; opacity: 1; }
.no-motion .bag__front, .no-motion .bag__label, .no-motion .valve, .no-motion .bag__seal { opacity: 1; }
.no-motion .intro__statement .sw { opacity: 1; }
.no-motion .win__glow { opacity: .9; }
.no-motion .hero { height: auto; min-height: 100svh; }
