/*
Theme Name: Vie Consulting Service
Theme URI: https://vieconsultingservice.com/
Author: Vie Consulting Service
Description: Custom theme for Vie Consulting Service, accreditation and licensing consultants for behavioral health providers.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: vie-consulting-service
WPVibe: yes
Update URI: false
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--ink: #0e1a23;
	--ink-2: #13222d;
	--ink-3: #1c3140;
	--paper: #f6f2ec;
	--paper-2: #ede6db;
	--cream: #fbf9f5;
	--copper: #c97a4a;
	--copper-hi: #dd9466;
	--copper-deep: #9a4e2b;
	--copper-soft: #f3e1d3;
	--teal: #2e6e66;
	--teal-hi: #5fb3a3;
	--teal-soft: #dcebe6;
	--text: #1b2731;
	--muted: #56636d;
	--muted-dark: #a5b4bf;
	--line: rgba(14, 26, 35, .12);
	--line-strong: rgba(14, 26, 35, .24);
	--line-dark: rgba(246, 242, 236, .13);
	--serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--wrap: 1240px;
	--read: 740px;
	--gutter: clamp(16px, 4vw, 40px);
	--header: 76px;
	--r: 14px;
	--r-lg: 22px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--shadow: 0 1px 2px rgba(14, 26, 35, .05), 0 18px 40px -18px rgba(14, 26, 35, .3);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header) + 24px);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font: 400 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

a {
	color: var(--copper-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
	transition: color .2s;
}
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

h1, h2, h3, h4, h5 {
	margin: 0 0 .5em;
	color: var(--ink);
	font-weight: 400;
	line-height: 1.1;
	text-wrap: balance;
}
h1, h2 { font-family: var(--serif); letter-spacing: -.012em; }
h3, h4, h5 { font-family: var(--sans); font-weight: 600; line-height: 1.3; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--copper-deep); }

p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
::selection { background: var(--copper); color: var(--ink); }

.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px; top: -80px;
	z-index: 100;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--copper);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-read { width: min(100% - 2 * var(--gutter), var(--read)); margin-inline: auto; }

/* Dark surfaces */
.on-dark { color: var(--paper); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: var(--copper); }
.on-dark p { color: var(--muted-dark); }
.on-dark a:not(.btn):not(.chip) { color: var(--paper); }
.on-dark a:not(.btn):not(.chip):hover { color: var(--copper); }

/* ==========================================================================
   Type helpers
   ========================================================================== */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	margin: 0 0 1.2rem;
	font: 500 .74rem/1.4 var(--mono);
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--copper-deep);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.on-dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.doc-hero .eyebrow,
.band-ink .eyebrow,
.cta-band .eyebrow,
.inline-cta .eyebrow { color: var(--copper); }

.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.on-dark .lede { color: var(--muted-dark); }

.mono { font-family: var(--mono); }

/* ==========================================================================
   Buttons and chips
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	padding: 1em 1.45em;
	border: 1px solid transparent;
	border-radius: 999px;
	font: 600 .95rem/1 var(--sans);
	text-decoration: none;
	cursor: pointer;
	transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn::after { content: "\2192"; transition: transform .25s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-copper { background: var(--copper); color: var(--ink); }
.btn-copper:hover { background: var(--copper-hi); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-3); color: var(--paper); }
.btn-ghost { border-color: var(--line-dark); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-line { border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: .78em 1.15em; font-size: .875rem; }
.btn-sm::after { content: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .55em 1em;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font: 500 .84rem/1.2 var(--sans);
	color: var(--ink);
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-current, .chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.on-dark .chip { border-color: var(--line-dark); color: var(--paper); }
.on-dark .chip:hover { border-color: var(--copper); color: var(--copper); }

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(14, 26, 35, .86);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid var(--line-dark);
	color: var(--paper);
	transition: background .3s;
}
.site-header.is-stuck { background: rgba(14, 26, 35, .96); }
.admin-bar .site-header { top: 32px; }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--header);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--paper);
	text-decoration: none;
	flex: none;
}
.brand:hover { color: var(--paper); }
.brand-mark { width: 42px; height: 42px; color: var(--copper); flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.04); }
.brand-name { display: block; font: 400 1.9rem/.9 var(--serif); letter-spacing: .01em; }
.brand-sub {
	display: block;
	margin-top: 5px;
	font: 500 .58rem/1 var(--mono);
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--muted-dark);
}

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav > ul > li { position: relative; }
.site-nav .nav-link {
	display: block;
	padding: 10px 14px;
	border: 0;
	border-radius: 999px;
	background: none;
	font: 500 .92rem/1 var(--sans);
	color: var(--paper);
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.site-nav .nav-link:hover,
.site-nav .nav-link[aria-expanded="true"] { background: rgba(246, 242, 236, .08); color: var(--paper); }
.site-nav .nav-link[aria-current] { color: var(--copper); }
.site-nav button.nav-link::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-left: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform .25s var(--ease);
}
.site-nav button.nav-link[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }

.drop {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	width: 380px;
	padding: 10px;
	background: var(--ink-2);
	border: 1px solid var(--line-dark);
	border-radius: 20px;
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -6px);
	transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.drop-wide { width: 600px; display: grid; grid-template-columns: 1fr 1fr; }
.nav-drop:hover > .drop,
.nav-drop:has(:focus-visible) > .drop,
.nav-drop > [aria-expanded="true"] + .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.drop a {
	display: grid;
	gap: 3px;
	padding: 13px 15px;
	border-radius: 13px;
	color: var(--paper);
	text-decoration: none;
	transition: background .2s;
}
.drop a:hover { background: rgba(246, 242, 236, .06); color: var(--paper); }
.drop a strong { font: 600 .94rem/1.25 var(--sans); }
.drop a span { font-size: .8rem; line-height: 1.35; color: var(--muted-dark); }
.drop-foot {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 6px 4px 4px;
	padding: 14px 10px 6px;
	border-top: 1px solid var(--line-dark);
}
.drop-foot span { margin-right: 6px; font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.drop .drop-foot a {
	display: inline-flex;
	padding: 7px 11px;
	border: 1px solid var(--line-dark);
	border-radius: 999px;
	font: 500 .76rem/1 var(--mono);
	letter-spacing: .06em;
}
.drop .drop-foot a:hover { border-color: var(--copper); color: var(--copper); background: none; }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone { font: 500 .84rem/1 var(--mono); letter-spacing: .04em; color: var(--paper); text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: var(--copper); }

.nav-toggle { display: none; }

@media (max-width: 1120px) {
	:root { --header: 68px; }
	.nav-phone { display: none; }
}

@media (max-width: 1020px) {
	/* backdrop-filter would make the header the containing block of the fixed menu panel. */
	.site-header, .site-header.is-stuck {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: var(--ink);
	}
	.nav-toggle {
		display: inline-grid;
		place-items: center;
		width: 46px; height: 46px;
		border: 1px solid var(--line-dark);
		border-radius: 14px;
		background: none;
		color: var(--paper);
		cursor: pointer;
	}
	.bars, .bars::before, .bars::after {
		display: block;
		width: 18px; height: 1.5px;
		background: currentColor;
		transition: transform .3s var(--ease), background .2s;
	}
	.bars { position: relative; }
	.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
	.bars::before { top: -6px; }
	.bars::after { top: 6px; }
	.nav-open .bars { background: transparent; }
	.nav-open .bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .bars::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		top: var(--header);
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		padding: 8px var(--gutter) 40px;
		background: var(--ink);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .25s, transform .3s var(--ease), visibility .25s;
	}
	.admin-bar .site-nav { top: calc(var(--header) + 46px); }
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	html.nav-open { overflow: hidden; }
	.site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav > ul > li { border-bottom: 1px solid var(--line-dark); }
	.site-nav .nav-link { width: 100%; padding: 20px 2px; border-radius: 0; text-align: left; font-size: 1.12rem; }
	.site-nav .nav-link:hover, .site-nav .nav-link[aria-expanded="true"] { background: none; }
	.site-nav button.nav-link { display: flex; justify-content: space-between; align-items: center; }
	.drop, .drop-wide {
		position: static;
		width: auto;
		display: none;
		padding: 0 0 14px;
		background: none;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.nav-drop:hover > .drop, .nav-drop:focus-within > .drop { transform: none; }
	.nav-drop > [aria-expanded="true"] + .drop { display: grid; grid-template-columns: 1fr; transform: none; }
	.drop::before { content: none; }
	.nav-cta { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 24px; }
	.nav-cta .btn { padding: 1.05em; font-size: 1rem; }
	.nav-phone { display: block; padding: 4px 2px; font-size: 1rem; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.band { position: relative; padding: clamp(76px, 10vw, 136px) 0; }
.band-tight { padding: clamp(56px, 7vw, 88px) 0; }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink h2, .band-ink h3, .band-ink h4 { color: var(--paper); }
.band-ink h2 em, .band-ink h3 em { color: var(--copper); }
.band-ink p { color: var(--muted-dark); }
.band-paper2 { background: var(--paper-2); }
.band-cream { background: var(--cream); }
.band + .band:not(.band-ink):not(.band-paper2):not(.band-cream) { padding-top: 0; }

.section-head {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 24px 72px;
	align-items: end;
	margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 { margin: 0; font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1.02; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 54ch; }
.band-ink .section-head p { color: var(--muted-dark); }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: -6px; }

@media (max-width: 860px) {
	.section-head { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Home hero
   ========================================================================== */

.hero {
	--mx: 72%;
	--my: 28%;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(48px, 7vw, 96px) 0 0;
	background: var(--ink);
	color: var(--paper);
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(520px circle at var(--mx) var(--my), rgba(201, 122, 74, .2), transparent 62%),
		radial-gradient(900px circle at 88% 8%, rgba(46, 110, 102, .28), transparent 60%),
		radial-gradient(700px circle at 0% 100%, rgba(46, 110, 102, .12), transparent 60%);
	transition: background .2s;
}
.hero-grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--line-dark) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 10%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 10%, transparent 75%);
	opacity: .55;
}
.hero-inner { display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 48px; }
.hero-title {
	margin: 0 0 28px;
	font-size: clamp(2.9rem, 6.6vw, 5.7rem);
	line-height: .98;
	letter-spacing: -.022em;
	color: var(--paper);
}
.hero-title em { color: var(--copper); }
.hero-lede { max-width: 58ch; margin: 0 0 36px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-phone { margin: 24px 0 0; font-size: .94rem; color: var(--muted-dark); }
.hero-phone a { font-family: var(--mono); color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.hero-phone a:hover { color: var(--copper); border-color: var(--copper); }

.hero-copy > .eyebrow,
.hero-copy > .hero-lede,
.hero-copy > .hero-actions,
.hero-copy > .hero-phone { animation: rise .9s var(--ease) both; }
.hero-copy > .hero-lede { animation-delay: .12s; }
.hero-copy > .hero-actions { animation-delay: .22s; }
.hero-copy > .hero-phone { animation-delay: .32s; }
.hero-seal { animation: fade 1.6s .15s ease both; }

.hero-proof {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: clamp(56px, 7vw, 88px) 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line-dark);
}
.hero-proof li { padding: 28px 24px 36px 0; font: 400 clamp(2.1rem, 3.8vw, 3.2rem)/1 var(--serif); color: var(--paper); }
.hero-proof li + li { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.hero-proof span {
	display: block;
	margin-bottom: 14px;
	font: 500 .68rem/1.5 var(--mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted-dark);
}

/* Seal */
.seal { display: block; width: 100%; height: auto; overflow: visible; }
.seal .ring { fill: none; stroke: var(--line-dark); stroke-width: 1; }
.seal .ring-copper { fill: none; stroke: rgba(201, 122, 74, .35); stroke-width: 1; }
.seal .ticks { fill: none; stroke: var(--copper); stroke-width: 7; stroke-dasharray: 1.2 12.2; opacity: .5; }
.seal .seal-text { font: 500 12.5px var(--mono); letter-spacing: .28em; fill: var(--muted-dark); text-transform: uppercase; }
.seal .mark { fill: none; stroke: var(--copper); stroke-width: .75; stroke-linecap: round; stroke-linejoin: round; }
.seal .dot { fill: var(--copper); }
.seal .spin, .seal .spin-rev, .seal .orbit { transform-box: view-box; transform-origin: 200px 200px; }
.seal .spin { animation: spin 90s linear infinite; }
.seal .spin-rev { animation: spin 150s linear infinite reverse; }
.seal .orbit { animation: spin 16s linear infinite; }
.seal .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .35s var(--ease) forwards; }
.seal .draw:nth-child(2) { animation-delay: .6s; }
.seal .draw:nth-child(3) { animation-delay: .85s; }
.seal .draw:nth-child(4) { animation-delay: 1s; }
.seal .draw:nth-child(5) { animation-delay: 1.15s; }
.seal .draw:nth-child(6) { animation-delay: 1.4s; }

@media (max-width: 920px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-seal { position: absolute; z-index: -1; top: -40px; right: -90px; width: 320px; opacity: .45; }
	.hero-proof { grid-template-columns: 1fr; }
	.hero-proof li { padding: 22px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
	.hero-proof li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
	.hero-proof span { margin: 0; }
}

/* Marquee */
.marquee {
	overflow: hidden;
	border-top: 1px solid var(--line-dark);
	background: var(--ink-2);
	color: var(--muted-dark);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
	display: inline-flex;
	align-items: center;
	gap: 28px;
	padding: 22px 14px;
	font: 500 .76rem/1 var(--mono);
	letter-spacing: .16em;
	text-transform: uppercase;
	white-space: nowrap;
}
.marquee-track span::after { content: ""; width: 6px; height: 6px; border: 1px solid var(--copper); transform: rotate(45deg); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
}
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 320px;
	padding: 34px 32px 36px;
	background: var(--paper);
	transition: background .35s;
}
.card:hover { background: var(--cream); }
.card-num { font: 500 .74rem/1 var(--mono); letter-spacing: .12em; color: var(--copper-deep); }
.card-icon { width: 46px; height: 46px; margin: 30px 0 22px; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: color .3s, transform .5s var(--ease); }
.card:hover .card-icon { color: var(--copper-deep); transform: translateY(-3px); }
.card h3 { margin: 0 0 12px; font: 400 1.85rem/1.08 var(--serif); letter-spacing: -.01em; }
.card p { margin: 0 0 26px; font-size: .98rem; color: var(--muted); }
.card .more {
	display: inline-flex;
	gap: 8px;
	margin-top: auto;
	font: 600 .9rem/1 var(--sans);
	color: var(--ink);
	text-decoration: none;
}
.card .more::before { content: ""; position: absolute; inset: 0; }
.card .more::after { content: "\2192"; transition: transform .25s var(--ease); }
.card:hover .more::after { transform: translateX(5px); }

@media (max-width: 980px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* Process */
.process {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.process::before,
.process::after { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-dark); }
.process::after { background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.process.is-in::after { transform: scaleX(1); }
.process li { position: relative; padding-top: 70px; }
.process li::before {
	counter-increment: step;
	content: "0" counter(step);
	position: absolute;
	top: 0; left: 0;
	display: grid;
	place-items: center;
	width: 45px; height: 45px;
	border: 1px solid var(--line-dark);
	border-radius: 50%;
	background: var(--ink);
	font: 500 .78rem/1 var(--mono);
	color: var(--copper);
}
.process h3 { margin: 0 0 10px; font: 400 1.7rem/1.1 var(--serif); color: var(--paper); }
.process p { margin: 0; font-size: .95rem; color: var(--muted-dark); }
.process-note { margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: .98rem; color: var(--muted-dark); }
.process-note strong { color: var(--paper); font-weight: 600; }

@media (max-width: 960px) {
	.process { grid-template-columns: 1fr; gap: 34px; }
	.process::before, .process::after { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
	.process::after { transform: scaleY(0); transform-origin: top; }
	.process.is-in::after { transform: scaleY(1); }
	.process li { padding: 2px 0 0 76px; }
}

/* Split / feature list */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.split-sticky { position: sticky; top: calc(var(--header) + 40px); }
.split-sticky h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.03; }
.feature-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.feature-list .k { padding-top: 4px; font: 500 .74rem/1.5 var(--mono); letter-spacing: .1em; color: var(--copper-deep); }
.feature-list h3 { margin: 0 0 6px; font-size: 1.2rem; }
.feature-list p { margin: 0; color: var(--muted); }
.band-ink .feature-list { border-color: var(--line-dark); }
.band-ink .feature-list li { border-color: var(--line-dark); }
.band-ink .feature-list .k { color: var(--copper); }

@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; }
	.split-sticky { position: static; }
}

/* Bento guide tiles */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

.tile-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 280px;
	padding: 32px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--cream);
	color: var(--ink);
	text-decoration: none;
	isolation: isolate;
	transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.tile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.tile-card .label { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-deep); }
.tile-card h3 { max-width: 16ch; margin: 18px 0 12px; font: 400 clamp(1.8rem, 2.8vw, 2.5rem)/1.04 var(--serif); letter-spacing: -.01em; }
.tile-card p { max-width: 46ch; margin: 0 0 28px; color: var(--muted); }
.tile-card .go {
	display: grid;
	place-items: center;
	width: 50px; height: 50px;
	margin-top: auto;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	font: 400 1.1rem/1 var(--sans);
	transition: background .3s, color .3s, transform .4s var(--ease), border-color .3s;
}
.tile-card:hover .go { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }
.tile-card .watermark {
	position: absolute;
	right: -8px; bottom: -34px;
	z-index: -1;
	font: 400 clamp(6rem, 13vw, 11rem)/1 var(--serif);
	color: transparent;
	-webkit-text-stroke: 1px rgba(14, 26, 35, .09);
	pointer-events: none;
	user-select: none;
}
.tile-card-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tile-card-ink:hover { color: var(--paper); border-color: var(--ink-3); }
.tile-card-ink h3 { color: var(--paper); }
.tile-card-ink p { color: var(--muted-dark); }
.tile-card-ink .label { color: var(--copper); }
.tile-card-ink .go { border-color: var(--line-dark); }
.tile-card-ink:hover .go { background: var(--copper); border-color: var(--copper); color: var(--ink); }
.tile-card-ink .watermark { -webkit-text-stroke-color: rgba(246, 242, 236, .1); }
.tile-card-copper { background: var(--copper); border-color: var(--copper); }
.tile-card-copper .label { color: var(--ink); }
.tile-card-copper p { color: rgba(14, 26, 35, .78); }
.tile-card-copper .go { border-color: rgba(14, 26, 35, .3); }

@media (max-width: 900px) {
	.bento { grid-template-columns: 1fr; }
	.bento > * { grid-column: auto; }
}

/* ==========================================================================
   State tile map
   ========================================================================== */

.state-map {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(3px, .6vw, 6px);
	width: 100%;
	max-width: 660px;
	margin-inline: auto;
}
.state-map .tile {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border: 1px solid var(--line);
	border-radius: clamp(4px, .8vw, 8px);
	background: rgba(14, 26, 35, .035);
	font: 500 clamp(.5rem, 1.1vw, .72rem)/1 var(--mono);
	letter-spacing: .04em;
	color: var(--muted);
	text-decoration: none;
	transition: background .25s, color .25s, transform .25s var(--ease), border-color .25s;
}
.state-map .tile.is-live {
	background: var(--copper);
	border-color: var(--copper);
	color: var(--ink);
	font-weight: 600;
	animation: pulse 3.2s ease-out infinite;
}
.state-map .tile.is-live:nth-of-type(odd) { animation-delay: 1.4s; }
.state-map .tile.is-live:hover,
.state-map .tile.is-live:focus-visible { z-index: 2; background: var(--ink); border-color: var(--ink); color: var(--paper); transform: scale(1.12); animation: none; }
.state-map .tile[data-name]::after {
	content: attr(data-name);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	padding: 7px 11px;
	border-radius: 9px;
	background: var(--ink);
	color: var(--paper);
	font: 500 .74rem/1 var(--sans);
	letter-spacing: 0;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 4px);
	transition: opacity .2s, transform .2s;
}
.state-map .tile[data-name]:hover::after,
.state-map .tile[data-name]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.on-dark .state-map .tile, .band-ink .state-map .tile { border-color: var(--line-dark); background: rgba(246, 242, 236, .035); color: var(--muted-dark); }
.on-dark .state-map .tile.is-live, .band-ink .state-map .tile.is-live { background: var(--copper); border-color: var(--copper); color: var(--ink); }
.on-dark .state-map .tile.is-live:hover, .band-ink .state-map .tile.is-live:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.on-dark .state-map .tile[data-name]::after, .band-ink .state-map .tile[data-name]::after { background: var(--paper); color: var(--ink); }

.map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none; font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.map-legend li { display: inline-flex; align-items: center; gap: 10px; }
.map-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-strong); }
.map-legend i.live { background: var(--copper); border-color: var(--copper); }
.band-ink .map-legend { color: var(--muted-dark); }
.band-ink .map-legend i { border-color: var(--line-dark); }

/* ==========================================================================
   Case studies, stats, posts, FAQ, CTA
   ========================================================================== */

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case {
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 4vw, 44px);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--cream);
}
.case-meta { margin: 0; font: 500 .7rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case h3 { margin: 14px 0 14px; font: 400 clamp(1.8rem, 2.6vw, 2.3rem)/1.06 var(--serif); }
.case > p { color: var(--muted); }
.case ul { margin: 6px 0 0; padding: 0; list-style: none; }
.case li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); font-size: .97rem; }
.case li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border-left: 1.5px solid var(--teal); border-bottom: 1.5px solid var(--teal); transform: rotate(-45deg); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 26px; }
.tag { padding: 7px 11px; border-radius: 999px; background: var(--teal-soft); font: 500 .7rem/1 var(--mono); letter-spacing: .06em; color: var(--teal); }

@media (max-width: 860px) { .case-grid { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.stats li { padding: 28px 20px 8px 0; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stats strong { display: block; font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--serif); color: var(--ink); }
.stats span { display: block; margin-top: 12px; font-size: .92rem; color: var(--muted); }
.band-ink .stats { border-color: var(--line-dark); }
.band-ink .stats li + li { border-color: var(--line-dark); }
.band-ink .stats strong { color: var(--paper); }
@media (max-width: 860px) {
	.stats { grid-template-columns: 1fr 1fr; }
	.stats li:nth-child(3) { padding-left: 0; border-left: 0; }
	.stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--cream);
	transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.post-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font: 500 .68rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-card .meta .cat { color: var(--teal); }
.post-card h3 { margin: 18px 0 12px; font: 400 1.65rem/1.12 var(--serif); }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::before { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 0 0 22px; font-size: .95rem; color: var(--muted); }
.post-card .read { margin-top: auto; font: 600 .86rem/1 var(--sans); color: var(--copper-deep); }
.post-card .read::after { content: " \2192"; }
.empty-note { padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--muted); }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: 26px 0;
	list-style: none;
	cursor: pointer;
	font: 400 clamp(1.3rem, 2.1vw, 1.65rem)/1.25 var(--serif);
	color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 1.7rem/1 var(--sans); color: var(--copper-deep); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { max-width: 72ch; padding: 0 0 28px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.band-ink .faq, .band-ink .faq details { border-color: var(--line-dark); }
.band-ink .faq summary { color: var(--paper); }
.band-ink .faq summary::after { color: var(--copper); }

.cta-band {
	position: relative;
	display: grid;
	grid-template-columns: 1.35fr .65fr;
	align-items: end;
	gap: 32px 48px;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(36px, 6vw, 80px);
	border-radius: 30px;
	background: var(--ink);
	color: var(--paper);
}
.cta-band::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: 760px; height: 760px;
	right: -260px; top: -300px;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, transparent 0 55px, rgba(246, 242, 236, .07) 56px 57px);
	-webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
	mask-image: radial-gradient(circle, #000 35%, transparent 70%);
}
.cta-band::after { content: ""; position: absolute; z-index: -1; inset: 40% -10% -50% 30%; background: radial-gradient(closest-side, rgba(201, 122, 74, .28), transparent); }
.cta-band h2 { margin: 0; font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.02; color: var(--paper); }
.cta-band h2 em { color: var(--copper); }
.cta-band p { margin: 18px 0 0; max-width: 54ch; color: var(--muted-dark); }
.cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.cta-actions .phone { font: 400 2rem/1 var(--serif); color: var(--paper); text-decoration: none; text-align: center; padding-top: 8px; }
.cta-actions .phone:hover { color: var(--copper); }
.cta-actions small { display: block; text-align: center; font: 500 .66rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ==========================================================================
   Page and document heroes
   ========================================================================== */

.page-hero, .doc-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(44px, 6vw, 80px) 0 clamp(56px, 7vw, 92px);
	background: var(--ink);
	color: var(--paper);
}
.page-hero::before, .doc-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: 980px; height: 980px;
	right: -340px; top: -470px;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, transparent 0 63px, rgba(246, 242, 236, .065) 64px 65px);
	-webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
	mask-image: radial-gradient(circle, #000 30%, transparent 70%);
	animation: fade 1.4s ease both;
}
.page-hero::after, .doc-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -40% -20% 30% 45%;
	background: radial-gradient(closest-side, rgba(46, 110, 102, .3), transparent);
}
.page-title, .doc-title {
	max-width: 20ch;
	margin: 0 0 22px;
	font-size: clamp(2.6rem, 5.8vw, 4.8rem);
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--paper);
}
.page-title em, .doc-title em { color: var(--copper); }
.page-dek, .doc-dek { max-width: 64ch; margin: 0; font-size: clamp(1.05rem, 1.55vw, 1.25rem); color: var(--muted-dark); }
.page-hero .hero-actions { margin-top: 34px; }
.page-hero .chips { margin-top: 34px; }

.crumbs { margin: 0 0 30px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; list-style: none; font: 500 .7rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.crumbs li { color: var(--muted-dark); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-dark); }
.crumbs a { color: var(--muted-dark); text-decoration: none; }
.crumbs a:hover { color: var(--copper); }
.crumbs [aria-current] { color: var(--paper); }

.doc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 30px;
	margin: 34px 0 0;
	padding-top: 22px;
	border-top: 1px solid var(--line-dark);
	font: 500 .7rem/1.5 var(--mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted-dark);
}
.doc-meta .ok::before {
	content: "";
	display: inline-block;
	width: 8px; height: 8px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--teal-hi);
	box-shadow: 0 0 0 4px rgba(95, 179, 163, .18);
	vertical-align: 1px;
}

/* ==========================================================================
   Document layout
   ========================================================================== */

.doc-body { display: grid; grid-template-columns: minmax(0, var(--read)); justify-content: center; gap: 72px; padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 9vw, 112px); }
.doc-body.has-toc { grid-template-columns: 240px minmax(0, var(--read)); }

.toc { position: sticky; top: calc(var(--header) + 32px); align-self: start; max-height: calc(100vh - var(--header) - 64px); overflow-y: auto; }
.toc-h { margin: 0 0 16px; font: 500 .68rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a {
	display: block;
	margin-left: -1px;
	padding: 8px 0 8px 16px;
	border-left: 2px solid transparent;
	font-size: .9rem;
	line-height: 1.35;
	color: var(--muted);
	text-decoration: none;
	transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { border-left-color: var(--copper); color: var(--ink); font-weight: 600; }
.toc-cta { margin-top: 28px; padding: 20px; border-radius: 16px; background: var(--ink); color: var(--paper); }
.toc-cta p { margin: 0 0 12px; font-size: .9rem; color: var(--muted-dark); }
.toc-cta a { font: 500 .88rem/1 var(--mono); color: var(--copper); text-decoration: none; }

@media (max-width: 1040px) {
	.doc-body.has-toc { grid-template-columns: minmax(0, var(--read)); gap: 40px; }
	.toc { position: static; max-height: none; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
	.toc ol { columns: 2; column-gap: 24px; }
	.toc-cta { display: none; }
}
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ==========================================================================
   Prose
   ========================================================================== */

.prose { font-size: 1.075rem; line-height: 1.76; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { margin: 2.1em 0 .55em; font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.06; }
.prose h3 { margin: 1.9em 0 .5em; font-size: 1.24rem; }
.prose h4 { margin: 1.6em 0 .4em; font-size: 1.05rem; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin: .4em 0; padding-left: .2em; }
.prose li::marker { color: var(--copper-deep); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--copper); font: 400 1.5rem/1.35 var(--serif); color: var(--ink); }

.table-wrap { margin: 1.8em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .94rem; line-height: 1.55; }
.prose th, .prose td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--paper-2); font: 500 .68rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prose tbody th { width: 26%; font-weight: 600; color: var(--ink); }
.prose tbody tr:last-child > * { border-bottom: 0; }

.keyfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 1.9em 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.keyfacts > div { padding: 20px 22px; background: var(--cream); }
.keyfacts > div.full { grid-column: 1 / -1; }
.keyfacts dt { margin: 0 0 8px; font: 500 .66rem/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.keyfacts dd { margin: 0; font-size: .98rem; font-weight: 600; line-height: 1.45; color: var(--ink); }
.keyfacts dd span { display: block; margin-top: 4px; font-weight: 400; font-size: .9rem; color: var(--muted); }
@media (max-width: 620px) { .keyfacts { grid-template-columns: 1fr; } }

.callout { margin: 1.9em 0; padding: 22px 24px; border: 1px solid rgba(46, 110, 102, .25); border-radius: 16px; background: var(--teal-soft); }
.callout-warn { border-color: rgba(154, 78, 43, .28); background: var(--copper-soft); }
.callout-h { margin: 0 0 8px !important; font: 500 .68rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.callout-warn .callout-h { color: var(--copper-deep); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.prose .steps { margin: 1.8em 0; padding: 0; list-style: none; counter-reset: s; }
.prose .steps > li { position: relative; margin: 0; padding: 0 0 28px 66px; counter-increment: s; }
.prose .steps > li::before {
	content: counter(s, decimal-leading-zero);
	position: absolute;
	top: -4px; left: 0;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: var(--paper);
	font: 500 .78rem/1 var(--mono);
	color: var(--copper-deep);
}
.prose .steps > li::after { content: ""; position: absolute; left: 22px; top: 46px; bottom: 6px; width: 1px; background: var(--line); }
.prose .steps > li:last-child { padding-bottom: 0; }
.prose .steps > li:last-child::after { content: none; }
.prose .steps strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.9em 0; }
.compare > div { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.compare h3 { margin: 0 0 10px; font: 400 1.6rem/1.1 var(--serif); }
.compare ul { margin: 0; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

.prose sup.cite { font: 500 .62em/0 var(--mono); margin-left: 1px; }
.prose sup.cite a { padding: 0 2px; text-decoration: none; color: var(--copper-deep); }
.prose sup.cite a:hover { color: var(--ink); }
.prose .sources { margin-top: 1em; padding-left: 1.6em; font-size: .86rem; line-height: 1.55; color: var(--muted); }
.prose .sources li { margin: .55em 0; overflow-wrap: anywhere; }
.prose .sources a { color: var(--muted); }
.prose .sources li:target { color: var(--ink); background: var(--copper-soft); border-radius: 6px; }
.prose .disclaimer { margin-top: 2.6em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.prose .faq summary { font-size: clamp(1.2rem, 1.9vw, 1.42rem); }
.prose .faq .answer { font-size: 1rem; }

.inline-cta {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 20px;
	margin: 2.2em 0;
	padding: 26px 28px;
	border-radius: 20px;
	background: var(--ink);
	color: var(--paper);
}
.inline-cta p { margin: 0; color: var(--muted-dark); font-size: 1rem; }
.inline-cta strong { display: block; margin-bottom: 4px; font: 400 1.55rem/1.15 var(--serif); color: var(--paper); }
@media (max-width: 640px) { .inline-cta { grid-template-columns: 1fr; } }

/* Related reading */
.related { padding: 0 0 clamp(72px, 9vw, 112px); }
.related h2 { margin: 0 0 28px; font-size: clamp(1.9rem, 3vw, 2.4rem); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid .tile-card { min-height: 220px; }
.related-grid .tile-card h3 { font-size: 1.75rem; }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Services page
   ========================================================================== */

.service {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px clamp(40px, 6vw, 88px);
	padding: clamp(48px, 6vw, 72px) 0;
	border-top: 1px solid var(--line);
	scroll-margin-top: calc(var(--header) + 16px);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service-num { margin: 0 0 16px; font: 500 .74rem/1 var(--mono); letter-spacing: .14em; color: var(--copper-deep); }
.service h2 { margin: 0 0 18px; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.02; }
.service-copy p { color: var(--muted); }
.service-copy .btn { margin-top: 10px; }
.deliverables { padding: 28px 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); }
.deliverables h3 { margin: 0 0 14px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.deliverables ul { margin: 0; padding: 0; list-style: none; }
.deliverables li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid var(--line); font-size: .98rem; }
.deliverables li:first-child { border-top: 0; }
.deliverables li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 10px; height: 6px; border-left: 1.5px solid var(--copper-deep); border-bottom: 1.5px solid var(--copper-deep); transform: rotate(-45deg); }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; } }

.jump { position: sticky; top: var(--header); z-index: 20; background: rgba(246, 242, 236, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.jump .chips { flex-wrap: nowrap; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.jump .chips::-webkit-scrollbar { display: none; }
.jump .chip { white-space: nowrap; }

.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.engage > div { padding: 30px; border: 1px solid var(--line-dark); border-radius: 20px; background: rgba(246, 242, 236, .03); }
.engage h3 { margin: 0 0 10px; font: 400 1.8rem/1.1 var(--serif); color: var(--paper); }
.engage p { margin: 0; color: var(--muted-dark); }
.engage .k { display: block; margin-bottom: 20px; font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
@media (max-width: 900px) { .engage { grid-template-columns: 1fr; } }

.calendar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--line); }
.calendar > div { padding: 26px 24px; background: var(--cream); }
.calendar .q { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-deep); }
.calendar h3 { margin: 14px 0 10px; font: 400 1.6rem/1.1 var(--serif); }
.calendar ul { margin: 0; padding-left: 1.1em; font-size: .95rem; color: var(--muted); }
.calendar li { margin: .35em 0; }
@media (max-width: 900px) { .calendar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .calendar { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-card { padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); border-radius: 26px; background: var(--cream); box-shadow: var(--shadow); }
.contact-aside h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.contact-aside .phone-big { display: inline-block; margin: 6px 0 28px; font: 400 clamp(2.2rem, 4vw, 3rem)/1 var(--serif); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-aside .phone-big:hover { color: var(--copper-deep); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.vie-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.vie-form .full { grid-column: 1 / -1; }
.vie-form label { display: block; margin-bottom: 7px; font: 600 .88rem/1.3 var(--sans); color: var(--ink); }
.vie-form label .opt { font-weight: 400; color: var(--muted); }
.vie-form input, .vie-form select, .vie-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: #fff;
	font: 400 1rem/1.4 var(--sans);
	color: var(--ink);
	transition: border-color .2s, box-shadow .2s;
}
.vie-form textarea { min-height: 150px; resize: vertical; }
.vie-form input:focus, .vie-form select:focus, .vie-form textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 4px rgba(201, 122, 74, .2); }
.vie-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vie-form .btn { width: 100%; padding: 1.15em; font-size: 1rem; border: 0; }
.vie-form .fine { margin: 0; font-size: .82rem; color: var(--muted); }
.form-msg { grid-column: 1 / -1; margin: 0 0 6px; padding: 16px 18px; border-radius: 14px; font-weight: 600; }
.form-msg.ok { background: var(--teal-soft); color: var(--teal); }
.form-msg.err { background: #f8e1de; color: #8f2a1f; }
@media (max-width: 560px) { .vie-form { grid-template-columns: 1fr; } }

.next-steps { margin: 0; padding: 0; list-style: none; counter-reset: n; border-top: 1px solid var(--line); }
.next-steps li { position: relative; padding: 20px 0 20px 52px; border-bottom: 1px solid var(--line); color: var(--muted); counter-increment: n; }
.next-steps li::before { content: "0" counter(n); position: absolute; left: 0; top: 21px; font: 500 .74rem/1.6 var(--mono); color: var(--copper-deep); }
.next-steps strong { display: block; color: var(--ink); }

/* ==========================================================================
   Listing, pagination, 404
   ========================================================================== */

.topic-bar { margin-bottom: 36px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 .85rem/1 var(--mono); color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination a.page-numbers:hover { border-color: var(--ink); }

.notfound { text-align: center; }
.notfound .big { margin: 0; font: 400 clamp(7rem, 20vw, 15rem)/.9 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--line-dark); }
.notfound .chips { justify-content: center; margin-top: 28px; }

.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form input[type="search"] { flex: 1; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font: 400 1rem/1.4 var(--sans); }
.search-form button { padding: 14px 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 .95rem/1 var(--sans); cursor: pointer; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 104px) 0 30px; background: var(--ink); color: var(--muted-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; }
.footer-brand p { max-width: 36ch; margin: 22px 0 22px; font-size: .96rem; }
.footer-phone { font: 400 2.1rem/1 var(--serif); color: var(--paper); text-decoration: none; }
.footer-phone:hover { color: var(--copper); }
.footer-h { margin: 0 0 18px; font: 500 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--paper); }
.site-footer ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; font-size: .94rem; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: var(--copper); }
.footer-word {
	margin: clamp(48px, 7vw, 80px) 0 -.12em;
	font: 400 clamp(4.2rem, 15vw, 13.5rem)/.8 var(--serif);
	letter-spacing: -.03em;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px rgba(246, 242, 236, .1);
	user-select: none;
}
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .8rem; }
.footer-base p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(201, 122, 74, .5); }
	70% { box-shadow: 0 0 0 10px rgba(201, 122, 74, 0); }
	100% { box-shadow: 0 0 0 0 rgba(201, 122, 74, 0); }
}

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

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

/* Small helpers used by page content */
.more-row { margin: clamp(28px, 4vw, 40px) 0 0; }
.mt-lg { margin-top: clamp(40px, 5vw, 64px); }
.band-ink .chip { border-color: var(--line-dark); color: var(--paper); }
.band-ink .chip:hover { border-color: var(--copper); color: var(--copper); }
.doc-dek a, .page-dek a { color: var(--paper); }
.notfound .page-title, .notfound .page-dek { margin-inline: auto; }
.notfound .page-dek a { color: var(--copper); }

/* ==========================================================================
   Phone fixes (2026-10)
   ========================================================================== */

/* Hover labels can't be used on touch screens, and near the right edge they
   made the page wider than a phone. */
@media (hover: none), (max-width: 700px) {
	.state-map .tile[data-name]::after { display: none; }
}

/* The map's tiles are too small to tap on a phone; the chip row under it is the way in. */
.state-chips { justify-content: center; margin-top: 26px; }
@media (min-width: 701px) { .state-chips { display: none; } }

/* Two-column tables (label + detail) read better stacked than scrolled sideways. */
@media (max-width: 600px) {
	.prose table:not(:has(tr > :nth-child(3))) { min-width: 0; }
	.prose table:not(:has(tr > :nth-child(3))) thead { display: none; }
	.prose table:not(:has(tr > :nth-child(3))) :is(th, td) { display: block; width: auto; }
	.prose table:not(:has(tr > :nth-child(3))) tbody th { padding-bottom: 2px; border-bottom: 0; }
	.prose table:not(:has(tr > :nth-child(3))) tbody td { padding-top: 4px; }
}

/* WordPress's own search form uses an input, not a button. */
.search-form label { display: flex; flex: 1; min-width: 0; }
.search-form .search-field { flex: 1; min-width: 0; width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font: 400 1rem/1.4 var(--sans); }
.search-form .search-submit { padding: 14px 22px; border: 0; border-radius: 999px; background: var(--copper); color: var(--ink); font: 600 .95rem/1 var(--sans); cursor: pointer; }

@media (max-width: 600px) {
	.brand-sub { font-size: .66rem; letter-spacing: .2em; }
	.post-card .meta { font-size: .75rem; }
	.hero-seal { top: -70px; right: -130px; opacity: .22; }
}

@media (max-width: 480px) {
	.stats strong { font-size: clamp(1.8rem, 9vw, 2.4rem); }
}

/* Two buttons side by side in a service block. */
.service-copy .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media print {
	.site-header, .site-footer, .toc, .cta-band, .related, .jump { display: none !important; }
	.doc-hero, .page-hero { background: none; color: #000; }
	.doc-title, .page-title { color: #000; }
}
