/* ==========================================================================
   Inture — theme styles
   1. Tokens
   2. Reset & base
   3. Layout primitives
   4. Buttons, forms, utilities
   5. Header & navigation
   6. Hero & homepage sections
   7. Cards & listings
   8. Interior pages
   9. Footer
   10. Editor content (entry-content)
   11. Motion & responsive
   ========================================================================== */

/* -------------------------------------------------- 1. Tokens ----------- */

:root {
	/* --c-primary / --c-action / --c-accent (and their derived tints) are
	   injected by the Customizer (inc/customizer.php). The values here keep the
	   theme usable if that output is ever missing.
	   Palette: ink, terracotta accent, sage (used sparingly), warm paper. */
	--c-primary: #2b231c;
	--c-primary-rgb: 43, 35, 28;
	--c-primary-dark: #1c1712;
	--c-primary-soft: #eae6e1;
	--c-primary-line: #d6cfc7;
	--c-action: #c1603d;
	--c-action-rgb: 193, 96, 61;
	--c-action-dark: #9e4e33;
	--c-action-soft: #f5e6df;
	--c-accent: #75876b;
	--c-accent-rgb: 117, 135, 107;
	--c-accent-dark: #5d6c55;
	--c-accent-soft: #e7ebe4;

	/* Supporting colours, not exposed in the Customizer — used inside the hero illustrations only. */
	--c-coral: #d9663a;
	--c-coral-rgb: 217, 102, 58;
	--c-mint: #5f8a5c;

	--c-ink: #2b231c;
	--c-body: #6b5f54;
	--c-muted: #9c8e80;
	--c-line: #ded0be;
	--c-line-soft: #f3ece1;
	--c-mist: #fbf5ee;
	--c-cream: #fbf5ee;
	--c-white: #ffffff;
	--c-success: #157347;
	--c-danger: #c62828;

	--radius: 16px;
	--radius-sm: 8px;
	--radius-lg: 26px;

	--font-head: "Poppins", "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section-y: clamp(56px, 7vw, 104px);

	--shadow-xs: 0 1px 2px rgba(43, 35, 28, .06);
	--shadow-sm: 0 2px 8px rgba(43, 35, 28, .07);
	--shadow-md: 0 10px 30px rgba(43, 35, 28, .09);
	--shadow-lg: 0 24px 60px rgba(43, 35, 28, .16);

	--ease: cubic-bezier(.22, .61, .36, 1);
	--header-h: 84px;
}

/* --------------------------------------------- 2. Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-body);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--c-ink);
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--c-action);
	text-decoration: none;
	transition: color .2s var(--ease);
}
a:hover { color: var(--c-action-dark); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--c-action);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

::selection { background: rgba(var(--c-action-rgb), .15); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 12px; left: 12px;
	z-index: 999;
	width: auto; height: auto;
	padding: 12px 20px;
	clip: auto;
	clip-path: none;
	background: var(--c-primary);
	color: #fff;
	border-radius: var(--radius);
}

[hidden] { display: none !important; }

/* ------------------------------------- 3. Layout primitives ------------- */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(36px, 4.5vw, 64px); }
.section--mist { background: var(--c-mist); }
.section--navy { background: var(--c-primary); color: rgba(255, 255, 255, .78); }
.section--navy h2, .section--navy h3 { color: #fff; }

.section__foot {
	margin-top: clamp(28px, 4vw, 44px);
	text-align: center;
}

.section-head { margin-bottom: clamp(32px, 4.5vw, 56px); max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--left { max-width: 760px; }
.section-head--split { max-width: 860px; }
.section-head__title { margin-bottom: .35em; }
.section-head__intro { color: var(--c-body); font-size: 1.05rem; margin: 0; }
.section--navy .section-head__intro { color: rgba(255, 255, 255, .72); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px 14px 6px 11px;
	background: var(--c-accent-soft);
	border: 1.5px solid rgba(var(--c-primary-rgb), .16);
	border-radius: 999px;
	color: var(--c-primary);
	font-family: var(--font-head);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.section--navy .eyebrow, .eyebrow--onDark {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .22);
	color: var(--c-accent);
}
.eyebrow__dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--c-coral);
	box-shadow: 0 0 0 3px rgba(var(--c-coral-rgb), .22);
	animation: dot-pulse 2.6s ease-in-out infinite;
}

/* The highlighter: a soft translucent terracotta wash behind the second half of a headline. */
.hl {
	padding-inline: .08em;
	background-image: linear-gradient(transparent 58%, rgba(var(--c-action-rgb), .24) 58%, rgba(var(--c-action-rgb), .24) 92%, transparent 92%);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	color: inherit;
}
.section--navy .hl, .cta-band .hl, .page-hero .hl, .post-hero .hl {
	background: none;
	color: var(--c-action);
}

/* ------------------------------ 4. Buttons, forms, utilities ------------ */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--font-head);
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}

.btn__arrow {
	display: inline-flex;
	transition: transform .25s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Primary: a flat terracotta pill with a soft lift on hover, no hard edge. */
.btn--primary {
	background: var(--c-action);
	color: #fff;
	box-shadow: 0 6px 16px rgba(var(--c-action-rgb), .28);
}
.btn--primary:hover {
	background: var(--c-action-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

/* Accent is the same terracotta button, for use on dark backgrounds. */
.btn--accent {
	background: var(--c-action);
	color: #fff;
	box-shadow: 0 6px 16px rgba(var(--c-action-rgb), .28);
}
.btn--accent:hover {
	background: var(--c-action-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}
.btn--accent:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn--ghost, .btn--outline {
	background: transparent;
	border-color: var(--c-primary);
	color: var(--c-primary);
}
.btn--ghost:hover, .btn--outline:hover {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
}

.btn--light {
	background: transparent;
	border-color: rgba(255, 255, 255, .5);
	color: #fff;
}
.btn--light:hover { background: #fff; border-color: #fff; color: var(--c-primary); }

.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--link { padding: 0; background: none; box-shadow: none; color: var(--c-action); }
.btn--link:hover { background: none; box-shadow: none; transform: none; color: var(--c-action-dark); }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	color: var(--c-primary);
	transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: rgba(var(--c-primary-rgb), .08); border-color: var(--c-primary); }

/* Forms */

.field { margin: 0; }
.field label {
	display: block;
	margin-bottom: 6px;
	color: var(--c-ink);
	font-size: .86rem;
	font-weight: 600;
}
.field .req { color: var(--c-danger); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="number"], input[type="password"], select, textarea {
	width: 100%;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-xs);
	color: var(--c-ink);
	font-size: .95rem;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, select:focus, textarea:focus {
	border-color: var(--c-action);
	box-shadow: 0 0 0 3px rgba(var(--c-action-rgb), .14);
	outline: none;
}
textarea { resize: vertical; min-height: 96px; }
::placeholder { color: var(--c-muted); opacity: 1; }

.is-invalid input, .is-invalid textarea, .is-invalid select { border-color: var(--c-danger); }
.field__error { display: block; margin-top: 5px; color: var(--c-danger); font-size: .8rem; }

/* ------------------------------------- 5. Header & navigation ----------- */

.topbar {
	background: var(--c-primary-dark);
	color: rgba(255, 255, 255, .8);
	font-size: .84rem;
}
.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
	flex-wrap: wrap;
}
.topbar__note { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar__note .icon { color: var(--c-accent); flex: none; }
.topbar__contact { display: flex; align-items: center; gap: 20px; }
.topbar__contact a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, .8);
}
.topbar__contact a:hover { color: #fff; }

/*
 * The header is transparent so the hero's paper texture runs behind it. The
 * blurred backdrop lives on ::before, not on the header itself: a backdrop
 * filter on an ancestor would trap the mobile drawer (position: fixed) inside
 * the header's box.
 */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: transparent;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 248, 232, .9);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--c-line);
	opacity: 0;
	transition: opacity .25s var(--ease);
}
.site-header.is-stuck::before { opacity: 1; }

.site-header__inner {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: clamp(12px, 2vw, 28px);
	min-height: var(--header-h);
	padding-left: clamp(16px, 5vw, 96px);
}

.site-branding { display: flex; align-items: center; flex: none; padding-block: 10px; }
.site-branding img { max-height: 54px; width: auto; }
.site-branding__text {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--c-ink);
}
.site-branding__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border-radius: 12px;
	background: var(--c-primary);
	color: #fff;
}
.site-branding__name {
	font-family: var(--font-head);
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -.03em;
}
.site-branding__text--footer { color: #fff; }
.site-branding__text--footer .site-branding__name { color: #fff; }

/*
 * The tab: a plain flex row (no fill, no shape) that holds the nav + actions.
 * It's a size container, so the phone button and CTA drop away as the space
 * runs out instead of overflowing.
 */
.site-header__tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(8px, 1.4vw, 20px);
	flex: 1 1 auto;
	min-width: 0;
	container-type: inline-size;
	container-name: tab;
	padding-inline: clamp(8px, 1.4vw, 20px);
}

.main-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; margin: 0; }

@container tab (max-width: 1060px) { .site-header__phone { display: none; } }
@container tab (max-width: 820px) { .site-header__cta { display: none; } }
.menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.menu li { position: relative; }

.menu--primary > li > .menu-link,
.menu--fallback > li > a {
	display: inline-flex;
	align-items: center;
	padding: 9px 13px;
	white-space: nowrap;
	border-radius: 999px;
	color: var(--c-primary);
	font-family: var(--font-head);
	font-size: .95rem;
	font-weight: 700;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.menu--primary > li > .menu-link:hover,
.menu--fallback > li > a:hover {
	color: var(--c-primary);
	background: rgba(var(--c-primary-rgb), .1);
}
.menu--primary > li.current-menu-item > .menu-link,
.menu--primary > li.current-menu-ancestor > .menu-link,
.menu--fallback > li.current_page_item > a {
	background: var(--c-primary);
	color: #fff;
}

.menu .has-dropdown > .menu-link { padding-right: 6px; }

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	padding: 4px;
	background: none;
	border: 0;
	color: var(--c-primary);
	transition: transform .2s var(--ease);
}
.submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }

/* Dropdowns and other floating layers share the outline + hard-shadow look. */
.sub-menu {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	z-index: 30;
	min-width: 248px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu,
.menu li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.sub-menu .sub-menu { top: -10px; left: calc(100% + 8px); }

.sub-menu .menu-link {
	display: block;
	padding: 9px 12px;
	border-radius: var(--radius-sm);
	color: var(--c-body);
	font-size: .92rem;
	font-weight: 500;
}
.sub-menu .menu-link:hover { background: var(--c-accent-soft); color: var(--c-primary); }
.sub-menu .submenu-toggle { position: absolute; top: 8px; right: 8px; }

.main-nav__mobile-foot { display: none; }

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}
.site-header__phone { white-space: nowrap; }

.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

.header-search {
	border-top: 1px solid var(--c-line);
	background: var(--c-cream);
	padding-block: 16px;
}

.search-form__field {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 6px 6px 16px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: 999px;
}
.search-form__field .icon { color: var(--c-muted); flex: none; }
.search-form__input {
	flex: 1;
	border: 0;
	padding: 8px 0;
	background: none;
}
.search-form__input:focus { box-shadow: none; }

.nav-scrim {
	position: fixed;
	inset: 0;
	z-index: 150;
	background: rgba(10, 19, 52, .55);
	backdrop-filter: blur(2px);
}

/* ---------------------------- 6. Hero & homepage sections --------------- */

/*
 * Hero slider. Copy and pictures are two grids whose children all share one
 * cell, so the section is as tall as its tallest slide and never jumps. Only
 * the `is-active` slide is visible; theme.js moves the class.
 */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	/* Slide up under the transparent header so the paper texture runs behind it. */
	margin-top: calc(var(--header-h) * -1);
	padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px));
	padding-bottom: clamp(104px, 12vw, 168px);
	background: var(--c-cream);
	border-radius: 0 0 0 clamp(48px, 8vw, 128px);
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Ledger paper: faint ruled lines that fade out behind the copy. */
.hero__lines {
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, rgba(var(--c-primary-rgb), .07) 47px, rgba(var(--c-primary-rgb), .07) 48px);
	-webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 58%);
	mask-image: linear-gradient(90deg, transparent 4%, #000 58%);
}
.hero__orb { position: absolute; border-radius: 50%; will-change: transform; }
.hero__orb--a {
	top: -16%; right: -10%;
	width: min(52vw, 760px); aspect-ratio: 1;
	background: radial-gradient(circle, rgba(var(--c-action-rgb), .34) 0%, transparent 66%);
	animation: orb-drift 18s ease-in-out infinite alternate;
}
.hero__orb--b {
	bottom: -22%; left: -12%;
	width: min(46vw, 640px); aspect-ratio: 1;
	background: radial-gradient(circle, rgba(var(--c-coral-rgb), .13) 0%, transparent 66%);
	animation: orb-drift 22s ease-in-out infinite alternate-reverse;
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
}

.hero__left { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); }

.hero__copies { display: grid; }
.hero__copy {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .35s var(--ease), visibility 0s .35s;
}
.hero__copy.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity .3s var(--ease) .1s, visibility 0s;
}

/* Each piece of copy rises in, one after another. */
.hero__copy > * {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.hero__copy.is-active > * {
	opacity: 1;
	transform: none;
	transition: opacity .7s var(--ease), transform .8s var(--ease);
	transition-delay: calc(.1s + var(--n, 0) * .11s);
}
.hero__copy > :nth-child(1) { --n: 1; }
.hero__copy > :nth-child(2) { --n: 2; }
.hero__copy > :nth-child(3) { --n: 3; }
.hero__copy > :nth-child(4) { --n: 4; }

.hero__title {
	margin: 0 0 .4em;
	color: var(--c-primary);
	font-size: clamp(2.3rem, 4.9vw, 4.1rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.035em;
	text-wrap: balance;
}
/* The highlighter swipes in a beat after the headline lands. */
.hero__copy .hl { background-size: 0% 100%; transition: background-size .8s var(--ease); }
.hero__copy.is-active .hl { background-size: 100% 100%; transition-delay: .75s; }

.hero__text {
	max-width: 52ch;
	margin-bottom: 30px;
	font-size: clamp(1.02rem, 1.3vw, 1.16rem);
	color: var(--c-body);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__points {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--c-body);
	font-size: .9rem;
	font-weight: 500;
}
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points .icon { color: var(--c-mint); flex: none; }

/* Controls: progress dots, counter, arrows. */
.hero__controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }

.hero__dots { display: flex; align-items: center; gap: 8px; }
.hero__dot {
	position: relative;
	width: 12px; height: 12px;
	padding: 0;
	overflow: hidden;
	background: rgba(var(--c-primary-rgb), .18);
	border: 0;
	border-radius: 999px;
	transition: width .4s var(--ease), background .25s var(--ease);
}
.hero__dot:hover { background: rgba(var(--c-primary-rgb), .34); }
.hero__dot.is-active { width: 46px; }
.hero__dot::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--c-primary);
	border-radius: inherit;
	transform: scaleX(0);
	transform-origin: left center;
}
.hero__dot.is-active::after { transform: scaleX(1); }

/* With auto-advance on, the active dot fills over the slide's duration and its
   animationend moves to the next slide (theme.js). Pausing the animation is
   the pause: hover, keyboard focus, the pause button or the hero scrolling
   out of view. */
.hero--auto .hero__dot.is-active::after {
	transform: scaleX(0);
	animation: hero-progress var(--hero-duration, 7s) linear forwards;
}
.hero--auto:is(:hover, .is-paused) .hero__dot.is-active::after { animation-play-state: paused; }
/* Separate rule: a browser without :has() drops only this one, keeping hover-pause. */
.hero--auto:has(:focus-visible) .hero__dot.is-active::after { animation-play-state: paused; }

.hero__count {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin: 0;
	color: var(--c-muted);
	font-family: var(--font-head);
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .06em;
	font-variant-numeric: tabular-nums;
}
.hero__count [data-hero-current] { color: var(--c-primary); font-size: 1.15rem; }
.hero__count-sep { opacity: .5; }

.hero__arrows { display: flex; gap: 10px; }
.hero__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	padding: 0;
	background: #fff;
	border: 1px solid var(--c-line);
	box-shadow: var(--shadow-xs);
	border-radius: 50%;
	color: var(--c-primary);
	transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.hero__arrow:hover { background: var(--c-primary); color: #fff; }
.hero__arrow:active { transform: scale(.94); }
.hero__toggle-play { display: none; }
.hero__toggle[aria-pressed="true"] .hero__toggle-pause { display: none; }
.hero__toggle[aria-pressed="true"] .hero__toggle-play { display: block; }

/* The stage: a morphing terracotta blob behind a floating picture. */
.hero__right { position: relative; }
.hero__stage {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	max-width: 640px;
	aspect-ratio: 520 / 470;
	margin-inline: auto;
}
.hero__blob {
	position: absolute;
	inset: 5% 3% 7% 9%;
	z-index: 0;
	background: var(--c-action);
	border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%;
	animation: blob-morph 14s ease-in-out infinite;
}
.hero__grid {
	position: absolute;
	right: -3%; bottom: -3%;
	z-index: 0;
	width: 34%;
	aspect-ratio: 1;
	background-image: radial-gradient(rgba(var(--c-primary-rgb), .38) 2px, transparent 2.6px);
	background-size: 18px 18px;
}

.hero__visual {
	position: relative;
	z-index: 1;
	grid-area: 1 / 1;
	width: 100%;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(28px) scale(.94) rotate(-1.5deg);
	transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s;
}
.hero__visual.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .6s var(--ease) .15s, transform .95s var(--ease) .15s, visibility 0s;
}
.hero__visual.is-active .hero__art { animation: hero-float 9s ease-in-out infinite; }

.hero__image { width: 100%; height: auto; }
.scene { width: 100%; height: auto; overflow: visible; }

/* Floating chips: small "live status" cards that pop in around the picture. */
.hero__chips { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.chip {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px 9px 10px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: 18px;
	box-shadow: var(--shadow-md);
	font-size: .82rem;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
}
.chip--1 { --k: 0; top: 5%; left: -4%; }
.chip--2 { --k: 1; top: 60%; right: -5%; }
.chip--3 { --k: 2; bottom: 3%; left: 6%; }
.chip__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 26px; height: 26px;
	border-radius: 50%;
	background: var(--c-mint);
	color: #fff;
}
.chip--2 .chip__icon { background: var(--c-coral); }
.chip--3 .chip__icon { background: var(--c-action); color: #fff; }
.chip__text { display: grid; gap: 1px; }
.chip__label { color: var(--c-muted); font-size: .72rem; font-weight: 600; letter-spacing: .03em; }
.chip__value { color: var(--c-primary); font-family: var(--font-head); font-size: .95rem; font-weight: 800; }

.hero__visual.is-active .chip {
	animation: chip-in .6s cubic-bezier(.2, 1.3, .4, 1) both, chip-bob 5.5s ease-in-out infinite;
	animation-delay: calc(.6s + var(--k) * .16s), calc(1.4s + var(--k) * .5s);
}

.hero__badge {
	position: absolute;
	left: -8px;
	bottom: -22px;
	z-index: 2;
	display: grid;
	gap: 2px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	max-width: 210px;
}
.hero__badge-icon { display: inline-flex; color: var(--c-mint); }
.hero__badge-value { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--c-primary); line-height: 1.1; }
.hero__badge-label { font-size: .8rem; color: var(--c-muted); line-height: 1.35; }

/* ---- Built-in illustration: colours and motion (markup in inc/hero.php) --- */

.scene .f-navy { fill: var(--c-primary); }
.scene .f-amber { fill: var(--c-accent); }
.scene .f-amber-soft { fill: var(--c-accent-soft); }
.scene .f-coral { fill: var(--c-coral); }
.scene .f-mint { fill: var(--c-mint); }
.scene .f-white { fill: #fff; }
.scene .f-cream { fill: var(--c-cream); }
.scene .f-soft { fill: var(--c-primary-line); }
.scene .s-navy { stroke: var(--c-primary); }
.scene .s-soft { stroke: var(--c-primary-line); }

.scene .tick { stroke-dasharray: 20; stroke-dashoffset: 20; }
.scene .line { stroke-dasharray: 100; stroke-dashoffset: 100; }
.scene .spark, .scene .coin, .scene .stamp, .scene .badge-pop, .scene .day, .scene .end-dot, .scene .bar, .scene .pulse-ring {
	transform-box: fill-box;
	transform-origin: center;
}
.scene .bar { transform-origin: 50% 100%; }
.scene .hand { transform-origin: 0 0; }

.is-active .scene .spark { animation: twinkle 3s ease-in-out infinite; animation-delay: var(--d, 0s); }
.is-active .scene .drift { animation: drift 6.5s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -1.6s); }
.is-active .scene .coin { animation: bob 4s ease-in-out infinite; }
.is-active .scene .pulse-ring { animation: ring 2.2s ease-out infinite; }
.is-active .scene .stamp { animation: stamp-in .6s cubic-bezier(.2, 1.4, .4, 1) 1.7s both; }
.is-active .scene .stamp--late { animation-delay: 2.3s; }
.is-active .scene .tick { animation: draw 0.5s ease-out forwards; }

/* Scene 1: month-end close */
.is-active .scene--1 .bar { animation: bar-grow .9s var(--ease) both; animation-delay: calc(.5s + var(--i) * .09s); }
.is-active .scene--1 .row .tick { animation-delay: calc(.7s + var(--i) * .32s); }

/* Scene 2: paperwork into the folder */
.is-active .scene--2 .paper { animation: paper-drop 5s cubic-bezier(.5, 0, .3, 1) infinite; animation-delay: calc(var(--i) * 1.5s + .3s); }
.is-active .scene--2 .badge-pop { animation: pop 3s ease-in-out infinite; }

/* Scene 3: tax calendar */
.is-active .scene--3 .day--done { animation: pop-in .4s var(--ease) both; animation-delay: calc(.3s + var(--i) * .05s); }
.is-active .scene--3 .tick { animation-delay: 1.4s; }
.is-active .scene--3 .hand--min { animation: spin 8s linear infinite; }
.is-active .scene--3 .hand--hr { animation: spin 60s linear infinite; }

/* Scene 4: growth line and team */
.is-active .scene--4 .line { animation: draw-line 1.9s cubic-bezier(.5, 0, .2, 1) .5s forwards; }
.is-active .scene--4 .area { animation: fade-in 1s ease 1.7s both; }
.is-active .scene--4 .end-dot { animation: pop-in .45s cubic-bezier(.2, 1.4, .4, 1) 2.3s both; }
.is-active .scene--4 .person { animation: bob 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }

/* ---- Keyframes ------------------------------------------------------------ */

@keyframes hero-progress { to { transform: scaleX(1); } }
@keyframes hero-float {
	0%, 100% { transform: translateY(0) rotate(0); }
	50% { transform: translateY(-10px) rotate(.6deg); }
}
@keyframes blob-morph {
	0%, 100% { border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%; transform: rotate(0); }
	33% { border-radius: 42% 58% 38% 62% / 58% 44% 56% 42%; transform: rotate(6deg); }
	66% { border-radius: 55% 45% 62% 38% / 42% 56% 44% 58%; transform: rotate(-5deg); }
}
@keyframes orb-drift { to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }
@keyframes dot-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(var(--c-coral-rgb), .22); }
	50% { box-shadow: 0 0 0 6px rgba(var(--c-coral-rgb), 0); }
}
@keyframes chip-in {
	from { opacity: 0; transform: translateY(14px) scale(.6); }
	to { opacity: 1; transform: none; }
}
@keyframes chip-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-7px); }
}
@keyframes twinkle {
	0%, 100% { transform: scale(.55) rotate(0); opacity: .55; }
	50% { transform: scale(1.1) rotate(45deg); opacity: 1; }
}
@keyframes drift {
	from { transform: translateY(5px) rotate(-1.5deg); }
	to { transform: translateY(-9px) rotate(1.5deg); }
}
@keyframes bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}
@keyframes pop {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.14); }
}
@keyframes pop-in {
	from { opacity: 0; transform: scale(.4); }
	to { opacity: 1; transform: none; }
}
@keyframes ring {
	0% { opacity: .9; transform: scale(.85); }
	100% { opacity: 0; transform: scale(1.55); }
}
@keyframes stamp-in {
	from { opacity: 0; transform: scale(1.9) rotate(-16deg); }
	to { opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes paper-drop {
	0% { opacity: 0; transform: translateY(-150px); }
	12% { opacity: 1; }
	46% { transform: translateY(0); }
	66% { opacity: 1; transform: translateY(112px); }
	76%, 100% { opacity: 0; transform: translateY(128px); }
}

/* Pain cards: pulled up over the hero's curved edge */

.section--pain { position: relative; z-index: 2; padding-top: 0; margin-top: clamp(-120px, -9vw, -72px); }
.pain-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}
.pain-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pain-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	border-radius: 14px;
	background: var(--c-action-soft);
	color: var(--c-action);
}
.pain-card__title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.pain-card__text { margin: 0; font-size: .9rem; }
.pain-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 6px;
	color: var(--c-primary);
	font-size: .86rem;
	font-weight: 700;
}
.pain-card__link:hover { color: var(--c-action); }

/* Who We Help */

.segment-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.6vw, 28px);
}
.segment-card {
	background: var(--c-mist);
	border-radius: var(--radius);
	overflow: hidden;
}
.segment-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--c-line-soft);
}
.segment-card__media img { width: 100%; height: 100%; object-fit: cover; }
.segment-card__media-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--c-action-soft);
	color: var(--c-action);
}
.segment-card__body { padding: clamp(18px, 2.2vw, 24px); }
.segment-card__title { margin: 0 0 8px; font-size: 1.1rem; }
.segment-card__text { margin: 0; font-size: .93rem; color: var(--c-body); }

/* Methodology */

.method-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.6vw, 30px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.method-card {
	padding: 22px 20px 20px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow-xs);
}
.method-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	margin-bottom: 14px;
	border-radius: 12px;
	background: var(--c-action-soft);
	color: var(--c-action);
}
.method-card__tag {
	display: inline-block;
	margin: 0 0 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--c-accent-soft);
	color: var(--c-accent-dark);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.method-card__title { margin: 0 0 6px; font-size: 1.05rem; }
.method-card__text { margin: 0; font-size: .9rem; color: var(--c-body); }

/* Logos */

.logos__title {
	margin: 0 0 22px;
	text-align: center;
	color: var(--c-muted);
	font-size: .84rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.logos__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(24px, 4vw, 56px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.logos__img {
	max-height: 40px;
	width: auto;
	filter: grayscale(1);
	opacity: .55;
	transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.logos__img:hover { filter: grayscale(0); opacity: 1; }

/* Stats */

.stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: clamp(28px, 3.5vw, 44px);
	background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
	border-radius: var(--radius-lg);
	text-align: center;
	color: rgba(255, 255, 255, .75);
}
.stat { padding: 8px; }
.stat__value {
	font-family: var(--font-head);
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
}
.stat__label { margin: 6px 0 0; font-size: .88rem; }

/* Why us */

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.6vw, 32px);
}
.feature { display: flex; gap: 16px; }
.feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px; height: 48px;
	border-radius: 12px;
	background: var(--c-action-soft);
	color: var(--c-action);
}
.feature__title { margin: 4px 0 6px; font-size: 1.05rem; }
.feature__text { margin: 0; font-size: .93rem; }

/* Process */

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(20px, 2.6vw, 30px);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.step { position: relative; padding-top: 22px; }
.step::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	border-radius: 3px;
	background: var(--c-line);
}
.step:first-child::before { background: var(--c-action); }
.step__num {
	display: block;
	margin-bottom: 10px;
	font-family: var(--font-head);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .14em;
	color: var(--c-action);
}
.step__title { margin: 0 0 8px; font-size: 1.08rem; }
.step__text { margin: 0; font-size: .93rem; }

/* Industries */

.pill-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pill {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .95rem;
	color: var(--c-ink);
	transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.pill:hover { border-color: var(--c-action); transform: translateY(-2px); }
.pill__icon { display: inline-flex; color: var(--c-accent); flex: none; }

/* Testimonial slider */

.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform .45s var(--ease);
}
.slider__slide {
	flex: 0 0 100%;
	min-width: 0;
	padding-inline: 8px;
}

.quote-card {
	position: relative;
	margin: 0;
	padding: clamp(26px, 3.5vw, 40px);
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--radius-lg);
}
.quote-card__mark { position: absolute; top: 22px; right: 26px; color: rgba(var(--c-accent-rgb), .45); }
.quote-card__stars { display: flex; gap: 3px; margin-bottom: 14px; color: #f6c445; }
.quote-card__body {
	margin: 0 0 22px;
	font-size: clamp(1.02rem, 1.6vw, 1.2rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, .92);
}
.quote-card__body p:last-child { margin-bottom: 0; }
.quote-card__meta { display: flex; align-items: center; gap: 14px; }
.quote-card__avatar {
	width: 50px; height: 50px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}
.quote-card__avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--c-action);
	color: #fff;
	font-family: var(--font-head);
	font-size: 1.2rem;
	font-weight: 800;
}
.quote-card__meta strong { display: block; color: #fff; font-family: var(--font-head); }
.quote-card__meta small { color: rgba(255, 255, 255, .6); font-size: .85rem; }

.slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 28px;
}
.slider__btn {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .22);
	color: #fff;
}
.slider__btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); }
.slider__btn[disabled] { opacity: .35; cursor: default; }

.slider__dots { display: flex; gap: 8px; }
.slider__dots button {
	width: 8px; height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .28);
	transition: width .25s var(--ease), background .25s var(--ease);
}
.slider__dots button.is-active { width: 24px; border-radius: 4px; background: var(--c-accent); }

/* Quote section */

.section--quote { background: var(--c-mist); }
.quote-layout {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
.quote-layout__title { margin-bottom: .4em; }
.quote-layout__text { font-size: 1.02rem; }
.quote-layout__assure {
	margin: 24px 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}
.quote-layout__assure li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.quote-layout__assure .icon { color: var(--c-accent); flex: none; margin-top: 2px; }
.quote-layout__direct { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.quote-layout__direct a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: .93rem;
}

/* Lead form */

.lead-form {
	padding: clamp(22px, 3vw, 32px);
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}
.lead-form--compact { padding: 0; border: 0; box-shadow: none; border-radius: 0; }
.lead-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.lead-form--compact .lead-form__grid { grid-template-columns: 1fr; }
.field--full { grid-column: 1 / -1; }

.lead-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
}

.lead-form__foot { margin-top: 20px; }
.lead-form__fine {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 12px 0 0;
	color: var(--c-muted);
	font-size: .8rem;
	text-align: center;
}
.lead-form__fine .icon { flex: none; }

.lead-form__status { margin-top: 14px; }
.lead-form__status:empty { margin-top: 0; }
.lead-form__status .alert {
	margin: 0;
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	font-size: .92rem;
}
.alert--success { background: #e8f6ee; color: var(--c-success); border: 1px solid #c3e6d2; }
.alert--error { background: #fdecec; color: var(--c-danger); border: 1px solid #f5c6c6; }

.is-sending .btn__label { opacity: .7; }

/* CTA band */

.cta-band {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
	color: rgba(255, 255, 255, .78);
	padding-block: clamp(44px, 5.5vw, 72px);
}
.cta-band__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(18px, 3vw, 28px);
	max-width: 640px;
	margin-inline: auto;
}
.cta-band__title { margin-bottom: .35em; color: #fff; }
.cta-band__text { margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-band__glow {
	position: absolute;
	bottom: -220px; left: 12%;
	width: 520px; height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--c-action-rgb), .24) 0%, transparent 65%);
}

/* ---------------------------------------- 7. Cards & listings ----------- */

.card-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
	transform: translateY(-4px);
	border-color: var(--c-primary-line);
	box-shadow: var(--shadow-md);
}
.card__link { position: absolute; inset: 0; z-index: 2; }

.card--service { padding: clamp(22px, 2.6vw, 30px); gap: 10px; }
.card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	margin-bottom: 6px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--c-action-soft), var(--c-accent-soft));
	color: var(--c-action);
}
.card__title { margin: 0; font-size: 1.15rem; }
.card--post .card__title, .card--case .card__title { font-size: 1.1rem; }
.card__tagline { margin: 0; color: var(--c-action); font-size: .86rem; font-weight: 600; }
.card__text { margin: 0; font-size: .93rem; }
.card__kicker {
	margin: 0 0 6px;
	color: var(--c-muted);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 14px;
}
.card__price {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .92rem;
	color: var(--c-ink);
}
.card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--c-action);
	font-size: .88rem;
	font-weight: 600;
}
.card:hover .card__more .icon { transform: translateX(3px); }
.card__more .icon { transition: transform .25s var(--ease); }

.card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--c-mist);
	overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--c-primary-line);
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(18px, 2.2vw, 24px);
	flex: 1;
}

.card__metrics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 4px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--c-line-soft);
	list-style: none;
}
.card__metrics strong {
	display: block;
	font-family: var(--font-head);
	font-size: 1.3rem;
	color: var(--c-action);
	line-height: 1.1;
}
.card__metrics span { font-size: .78rem; color: var(--c-muted); }

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--c-muted);
	font-size: .82rem;
}
.entry-meta a { color: var(--c-muted); position: relative; z-index: 3; }
.entry-meta a:hover { color: var(--c-action); }

.filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 -20px;
	padding: 0;
	list-style: none;
}
.filter-bar__item {
	display: inline-flex;
	padding: 8px 16px;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	color: var(--c-body);
	font-size: .88rem;
	font-weight: 600;
}
.filter-bar__item:hover, .filter-bar__item.is-active {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
}

.result-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.result {
	padding: 22px 0;
	border-bottom: 1px solid var(--c-line-soft);
}
.result__type {
	margin: 0 0 6px;
	color: var(--c-accent-dark);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.result__title { margin: 0 0 6px; font-size: 1.2rem; }
.result__text { margin: 0; font-size: .94rem; }

.empty-state {
	max-width: 520px;
	margin-inline: auto;
	padding: clamp(32px, 5vw, 56px) 24px;
	text-align: center;
}
.empty-state__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px; height: 72px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--c-mist);
	color: var(--c-muted);
}
.empty-state__title { margin-bottom: .4em; }
.empty-state__text { margin-bottom: 22px; }

.navigation.pagination { margin-top: clamp(32px, 4vw, 48px); }
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px; height: 42px;
	padding: 0 12px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	color: var(--c-ink);
	font-weight: 600;
	font-size: .92rem;
}
.pagination .page-numbers:hover { border-color: var(--c-action); color: var(--c-action); }
.pagination .page-numbers.current {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
}
.pagination .dots { border-color: transparent; }

/* ------------------------------------------ 8. Interior pages ----------- */

.page-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(40px, 5.5vw, 72px);
	background: linear-gradient(160deg, var(--c-primary), var(--c-primary-dark));
	color: rgba(255, 255, 255, .76);
}
.page-hero__glow {
	position: absolute;
	top: -260px; right: -120px;
	width: 520px; height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--c-accent-rgb), .22) 0%, transparent 65%);
	pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero__title { margin: 0; color: #fff; }
.page-hero__subtitle {
	max-width: 62ch;
	margin: 14px 0 0;
	font-size: 1.05rem;
	color: rgba(255, 255, 255, .74);
}
.page-hero__kicker {
	margin: 0 0 8px;
	color: var(--c-accent);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.page-hero__service { display: flex; align-items: flex-start; gap: 18px; }
.page-hero__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 64px; height: 64px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	color: var(--c-accent);
}
.page-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
	font-size: .92rem;
}
.page-hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.page-hero__facts .icon { color: var(--c-accent); flex: none; }

.breadcrumbs { margin-bottom: 16px; font-size: .84rem; }
.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.breadcrumbs li::after { content: "/"; margin-left: 8px; opacity: .4; }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: rgba(255, 255, 255, .72); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: var(--c-accent); }

.post-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(36px, 5vw, 64px);
	background: linear-gradient(160deg, var(--c-primary), var(--c-primary-dark));
	color: rgba(255, 255, 255, .76);
}
.post-hero > .container { position: relative; z-index: 1; }
.post-hero__title { color: #fff; margin-bottom: .5em; }
.post-hero .entry-meta { color: rgba(255, 255, 255, .65); }
.post-hero .entry-meta a { color: rgba(255, 255, 255, .8); }

.entry-featured {
	margin: 0 0 clamp(24px, 3vw, 40px);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.entry-featured--wide { margin-top: clamp(-40px, -4vw, -24px); position: relative; z-index: 2; box-shadow: var(--shadow-lg); }
.entry-featured img { width: 100%; object-fit: cover; }

.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
body.no-sidebar .layout-with-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
.layout-with-sidebar__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }

.widget {
	padding: 22px;
	background: var(--c-mist);
	border: 1px solid var(--c-line-soft);
	border-radius: var(--radius);
	font-size: .93rem;
}
.widget__title { margin: 0 0 12px; font-size: 1.05rem; }
.widget ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.widget--cta {
	background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
	border: 0;
	color: rgba(255, 255, 255, .78);
}
.widget--cta .widget__title { color: #fff; }
.widget--cta .btn { margin-top: 14px; }

.layout-with-rail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
.layout-with-rail__rail { position: sticky; top: calc(var(--header-h) + 20px); }

.rail-card {
	padding: clamp(22px, 2.6vw, 30px);
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}
.rail-card--lg { padding: clamp(26px, 3.2vw, 38px); }
.rail-card__title { margin: 0 0 8px; font-size: 1.2rem; }
.rail-card__text { margin: 0 0 20px; font-size: .92rem; }

.included { margin-top: clamp(28px, 3.5vw, 44px); }
.included__title { font-size: 1.3rem; }
.check-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.check-list .icon { color: var(--c-accent); flex: none; margin-top: 3px; }

.metric-band {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin: clamp(-40px, -4vw, -28px) 0 0;
	padding: clamp(22px, 3vw, 32px);
	position: relative;
	z-index: 2;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	text-align: center;
}
.metric__value {
	font-family: var(--font-head);
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	font-weight: 800;
	color: var(--c-action);
	line-height: 1.1;
}
.metric__label { margin: 6px 0 0; font-size: .86rem; color: var(--c-muted); }

.case-block { margin-bottom: clamp(24px, 3vw, 36px); }
.case-block__title { font-size: 1.3rem; }

.contact-layout {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
.contact-cards {
	display: grid;
	gap: 16px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}
.contact-card {
	display: flex;
	gap: 16px;
	padding: 20px;
	background: var(--c-mist);
	border-radius: var(--radius);
}
.contact-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 46px; height: 46px;
	border-radius: 12px;
	background: #fff;
	color: var(--c-action);
	box-shadow: var(--shadow-xs);
}
.contact-card__title { margin: 0 0 4px; font-size: 1rem; }
.contact-card__note { margin: 4px 0 0; font-size: .85rem; color: var(--c-muted); }

.person {
	position: relative;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	text-align: center;
}
.person__photo {
	width: 92px; height: 92px;
	margin: 0 auto 14px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--c-mist);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--c-primary), var(--c-action));
	color: #fff;
	font-family: var(--font-head);
	font-size: 2rem;
	font-weight: 800;
}
.person__name { margin: 0 0 2px; font-size: 1.05rem; }
.person__creds { display: block; color: var(--c-accent-dark); font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.person__role { margin: 0 0 8px; color: var(--c-muted); font-size: .88rem; }
.person__bio { margin: 0; font-size: .88rem; }
.person__link {
	display: inline-flex;
	margin-top: 12px;
	color: var(--c-muted);
}
.person__link:hover { color: var(--c-action); }

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: clamp(24px, 3vw, 36px) 0 0;
	padding: 0;
	list-style: none;
}
.tag-list a {
	display: inline-flex;
	padding: 6px 14px;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	color: var(--c-body);
	font-size: .84rem;
}
.tag-list a:hover { border-color: var(--c-action); color: var(--c-action); }

.post-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin: clamp(32px, 4vw, 48px) 0;
	padding: clamp(24px, 3vw, 32px);
	background: var(--c-mist);
	border-radius: var(--radius-lg);
}
.post-cta__title { margin: 0 0 6px; font-size: 1.25rem; }
.post-cta__text { margin: 0; font-size: .93rem; max-width: 52ch; }

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 28px;
}
.post-navigation a {
	display: block;
	padding: 18px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	color: var(--c-ink);
}
.post-navigation a:hover { border-color: var(--c-action); }
.post-nav__label {
	display: block;
	margin-bottom: 4px;
	color: var(--c-muted);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.post-nav__title { font-family: var(--font-head); font-weight: 600; font-size: .98rem; }
.post-navigation .nav-next { text-align: right; }

.comments-area { margin-top: clamp(36px, 4.5vw, 56px); }
.comments-area__title { font-size: 1.35rem; }
.comment-list { margin: 0 0 32px; padding: 0; list-style: none; }
.comment-list ol { list-style: none; padding-left: clamp(16px, 4vw, 40px); }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--c-line-soft); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8rem; color: var(--c-muted); margin-bottom: 8px; }
.comment-form { display: grid; gap: 14px; }
.comment-form .comment-form-comment { margin: 0; }
.comment-reply-title { font-size: 1.25rem; }

.error-404 { text-align: center; }
.error-404__code {
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(4rem, 14vw, 8rem);
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.error-404__text { margin-bottom: 28px; }
.error-404__search { max-width: 520px; margin: 0 auto 24px; }
.error-404__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
}

/* ------------------------------------------------- 9. Footer ------------ */

.site-footer {
	background: var(--c-primary-dark);
	color: rgba(255, 255, 255, .64);
	padding-block: clamp(48px, 6vw, 80px) 28px;
	font-size: .93rem;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: clamp(28px, 4vw, 52px);
	padding-bottom: clamp(32px, 4vw, 48px);
}
.footer-col__about { margin: 18px 0 0; max-width: 42ch; }
.footer__heading {
	margin: 0 0 16px;
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .04em;
}
.footer-menu, .contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 11px;
}
.footer-menu a { color: rgba(255, 255, 255, .64); }
.footer-menu a:hover { color: var(--c-accent); }
.contact-list li { display: flex; gap: 10px; }
.contact-list .icon { color: var(--c-accent); flex: none; margin-top: 3px; }
.contact-list a { color: rgba(255, 255, 255, .78); }
.contact-list a:hover { color: #fff; }

.social-list {
	display: flex;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}
.social-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 10px;
	color: rgba(255, 255, 255, .7);
	transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.social-list a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #04231f; }

.footer-widgets { margin-top: 24px; }
.footer-widgets .widget { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); color: inherit; }

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .86rem;
}
.site-footer__copy { margin: 0; }
.legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.legal-menu a { color: rgba(255, 255, 255, .6); }
.legal-menu a:hover { color: #fff; }
.site-footer__disclaimer {
	margin: 18px 0 0;
	color: rgba(255, 255, 255, .42);
	font-size: .78rem;
	line-height: 1.6;
}

.to-top, .float-whatsapp {
	position: fixed;
	right: 20px;
	z-index: 180;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	border: 0;
	border-radius: 50%;
	box-shadow: var(--shadow-md);
	transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.to-top {
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	background: var(--c-primary);
	color: #fff;
}
.float-whatsapp {
	bottom: calc(78px + env(safe-area-inset-bottom, 0px));
	background: #25d366;
	color: #fff;
}
.to-top:hover, .float-whatsapp:hover { transform: translateY(-3px); color: #fff; }

/* ------------------------------------- 10. Editor content --------------- */

.entry-content { font-size: 1.02rem; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.entry-content h3 { margin-top: 1.6em; font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img, .entry-content figure { border-radius: var(--radius); }

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 20px 24px;
	border-left: 3px solid var(--c-accent);
	background: var(--c-mist);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: 1.08rem;
	color: var(--c-ink);
}
.entry-content blockquote cite { display: block; margin-top: 10px; font-size: .86rem; color: var(--c-muted); font-style: normal; }

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .94rem;
}
.entry-content table th, .entry-content table td {
	padding: 12px 14px;
	border: 1px solid var(--c-line);
	text-align: left;
}
.entry-content table th { background: var(--c-mist); font-family: var(--font-head); color: var(--c-ink); }
.entry-content .wp-block-table { overflow-x: auto; }

.entry-content code {
	padding: 2px 6px;
	background: var(--c-mist);
	border-radius: 4px;
	font-size: .9em;
}
.entry-content pre {
	padding: 18px;
	background: var(--c-primary-dark);
	border-radius: var(--radius);
	color: #e6edf5;
	overflow-x: auto;
}
.entry-content hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--c-line); }

.entry-content .alignwide { width: min(1100px, 100%); margin-inline: auto; }
.entry-content .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content--wide { max-width: none; }

.page-links { display: flex; gap: 8px; margin-top: 24px; font-weight: 600; }

/* ------------------------------------ 10b. Brand layer: paper & ink ------- */

/*
 * The base components above are neutral. This layer gives them the brand's
 * personality: warm paper, ink text, one vivid terracotta accent, and soft
 * blurred shadows rather than hard offset ones — most of that personality is
 * already in the base rules above (they were designed soft from the start),
 * so this layer is mostly recolors, not shape changes.
 */

body { background: var(--c-white); }

h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -.03em; }
.section-head__title { text-wrap: balance; }
.section--mist { background: var(--c-mist); }

a { color: var(--c-action-dark); }

/* Sage reads as body text only when paired with its own soft chip elsewhere
   (eyebrow badge, methodology tag) — everywhere else these get the vivid,
   AA-safe terracotta-dark instead. */
.result__type, .person__creds { color: var(--c-action-dark); }
.check-list .icon, .pill__icon, .quote-layout__assure .icon { color: var(--c-mint); }
.card__tagline, .card__more { color: var(--c-action-dark); }

/* Stats band: ink panel, terracotta numerals. */
.stat__value { color: var(--c-action); font-variant-numeric: tabular-nums; }

.card__metrics strong { color: var(--c-action-dark); font-variant-numeric: tabular-nums; }

.step::before { height: 4px; }
.step:first-child::before { background: var(--c-action); }
.step__num { color: var(--c-action); font-variant-numeric: tabular-nums; }

/* Testimonials on the ink band. */
.quote-card { border-radius: var(--radius-lg); }
.quote-card__stars { color: var(--c-action); }
.slider__dots button.is-active { background: var(--c-action); }

/* Call-to-action band: round the top corners against the footer. */
.cta-band { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

/* Interior page headers. */
.page-hero, .post-hero { background: var(--c-primary); }
.page-hero { border-radius: 0 0 0 clamp(36px, 6vw, 96px); }

/* Footer. */
.site-footer { background: var(--c-primary-dark); }
.footer-menu a:hover { color: var(--c-action); }
.social-list a:hover { background: var(--c-action); border-color: var(--c-action); color: #fff; }

.to-top { background: var(--c-primary); color: var(--c-action); }

.widget--cta { background: var(--c-primary); }

/* ---------------------------------- 11. Motion & responsive ------------- */

[data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
	.pain-grid, .card-grid--4, .steps, .pill-grid, .segment-grid, .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout-with-sidebar, .layout-with-rail { grid-template-columns: minmax(0, 1fr); }
	.layout-with-sidebar__aside, .layout-with-rail__rail { position: static; }
	.stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
	.hero__inner { grid-template-columns: minmax(0, 1fr); }
	.hero__stage { max-width: 520px; }
	.hero { border-bottom-left-radius: clamp(40px, 10vw, 80px); }
	.site-header__tab { flex: none; container-type: normal; margin-left: auto; padding-left: 26px; padding-right: 14px; }
	.quote-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
	.site-header__cta { display: none; }
	/* Keep the close button above the open drawer (z-index 160). */
	.nav-toggle { display: inline-flex; position: relative; z-index: 170; }

	.main-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 160;
		display: block;
		width: min(360px, 88vw);
		margin: 0;
		padding: calc(24px + env(safe-area-inset-top, 0px)) 22px calc(24px + env(safe-area-inset-bottom, 0px));
		background: var(--c-cream);
		box-shadow: var(--shadow-lg);
		overflow-y: auto;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .3s var(--ease), visibility .3s;
	}
	.main-nav.is-open { transform: none; visibility: visible; }

	.menu--primary, .menu--fallback {
		display: block;
		margin-top: 44px;
	}
	.menu--primary > li, .menu--fallback > li { border-bottom: 1px solid var(--c-line-soft); }
	.menu--primary > li > .menu-link, .menu--fallback > li > a {
		display: block;
		padding: 14px 0;
		font-size: 1.02rem;
	}
	.menu--primary > li > .menu-link, .menu--fallback > li > a { border-radius: 0; }
	.menu--primary > li > .menu-link:hover, .menu--fallback > li > a:hover { background: none; color: var(--c-action); }
	.menu--primary > li.current-menu-item > .menu-link,
	.menu--primary > li.current-menu-ancestor > .menu-link,
	.menu--fallback > li.current_page_item > a { background: none; color: var(--c-action); }
	.menu .has-dropdown > .menu-link { display: inline-block; }
	.submenu-toggle { position: absolute; top: 10px; right: 0; padding: 8px; }

	.sub-menu {
		position: static;
		display: none;
		min-width: 0;
		margin: 0 0 10px;
		padding: 0 0 0 14px;
		border: 0;
		border-left: 2px solid var(--c-line);
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.menu li.is-open > .sub-menu { display: block; }
	.menu li:hover > .sub-menu { display: none; }
	.menu li.is-open:hover > .sub-menu { display: block; }
	.sub-menu { background: transparent; }
	.sub-menu .menu-link { padding: 10px 0; }

	.main-nav__mobile-foot {
		display: grid;
		gap: 10px;
		margin-top: 28px;
	}

	.section--pain { margin-top: clamp(-48px, -5vw, -32px); }
}

@media (max-width: 720px) {
	:root { --header-h: 68px; }

	.topbar__inner { justify-content: center; text-align: center; }
	.topbar__note { display: none; }
	.topbar__contact { gap: 14px; font-size: .8rem; }

	.card-grid--2, .card-grid--3, .card-grid--4,
	.pain-grid, .feature-grid, .steps, .pill-grid,
	.segment-grid, .method-grid,
	.check-list, .post-navigation .nav-links, .lead-form__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.hero__badge { position: static; margin-top: 16px; max-width: none; }
	.chip { padding: 7px 12px 7px 8px; font-size: .74rem; box-shadow: var(--shadow-sm); }
	.chip__value { font-size: .85rem; }
	.chip--1 { left: 0; }
	.chip--2 { right: 0; }
	.chip--3 { left: 4%; }
	.hero__arrow { width: 42px; height: 42px; }
	.entry-featured--wide { margin-top: 0; }
	.metric-band { margin-top: 0; }
	.post-navigation .nav-next { text-align: left; }
	.slider__slide { padding-inline: 0; }
	.error-404__code { font-size: 4.5rem; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.float-whatsapp, .to-top { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
	[data-reveal] { opacity: 1; transform: none; }
	.hero__copy > *, .chip { opacity: 1; transform: none; }
	.hero__copy .hl { background-size: 100% 100%; }
	.scene *, .hero__blob, .hero__orb, .hero__art, .eyebrow__dot, .chip { animation: none !important; }
	.scene .tick, .scene .line { stroke-dashoffset: 0; }
	.hero .hero__dot.is-active::after { animation: none !important; transform: scaleX(1); }
}

@media print {
	.topbar, .site-header, .site-footer, .cta-band, .to-top,
	.float-whatsapp, .lead-form, .slider__controls { display: none !important; }
	body { color: #000; }
	.page-hero, .post-hero { background: none; color: #000; padding-block: 12px; }
	.page-hero__title, .post-hero__title { color: #000; }
}
