:root {
	--cx-measure: 42rem;
	--cx-measure-wide: 46rem;
}

h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
	font-feature-settings: "ss01" on;
}

h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); line-height: 0.98; font-weight: 500; letter-spacing: -0.035em; margin-block: 0; }
h2 { font-size: clamp(1.875rem, 4.5vw, 3.125rem); line-height: 1.05; font-weight: 400; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; font-weight: 400; letter-spacing: -0.015em; }
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.25; font-weight: 500; }

p { text-wrap: pretty; }

a {
	color: var(--wp--preset--color--accent-strong);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--wp--preset--color--accent);
}

.wp-block-button__link,
.wp-element-button {
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.wp-block-button .wp-block-button__link:hover,
.wp-element-button:hover {
	background-color: var(--wp--preset--color--accent-strong);
	border-color: var(--wp--preset--color--accent-strong);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--accent-strong);
	border-color: var(--wp--preset--color--accent-strong);
	background: transparent;
}

.site-header {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.site-footer a {
	color: var(--wp--preset--color--ink);
	text-decoration-thickness: 1px;
}

.site-footer a:hover {
	color: var(--wp--preset--color--ember);
}

/* ---- Content geometry: rows go wide, prose stays measured ---- */

.wp-block-post-content,
.entry-content {
	max-width: none;
	margin-inline: 0;
}

.wp-block-post-content > .is-layout-constrained,
.entry-content > .is-layout-constrained {
	padding-inline: 0;
}

.wp-block-post-content p:not(.has-text-align-center),
.entry-content p:not(.has-text-align-center) {
	max-width: var(--cx-measure-wide);
	margin-inline: 0 0;
}

/* ---- Editorial primitives ---- */

.cx-kicker {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 600;
	color: var(--wp--preset--color--accent-strong);
	margin-bottom: 1.75rem;
}

.cx-kicker--dark {
	color: var(--wp--preset--color--accent);
}

.cx-rule {
	border-top: 1px solid var(--wp--preset--color--border);
}

.cx-stat {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3rem, 8vw, 5.25rem);
	line-height: 1;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--ink);
	margin: 0;
}

.cx-stat-number {
	display: block;
	font-size: clamp(3.25rem, 6vw, 6rem);
	line-height: 0.95;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--ink);
	margin: 0 0 0.75rem;
}

.cx-stat-label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

.cx-source-note {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--mono);
}

/* hero stat cards, korra "article card" look */
.cx-stat-card {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.375rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--wp--preset--color--base);
}

.cx-chip {
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 1.5rem;
}

.cx-note-soft {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}

/* ---- Section components ---- */

.cx-section {
	padding-block: clamp(4.5rem, 9vw, 8.5rem);
	border-top: 1px solid var(--wp--preset--color--border);
}

.cx-section--alt {
	background: var(--wp--preset--color--faint);
}

.cx-shout {
	font-size: clamp(1.5rem, 3.4vw, 2.5rem);
	line-height: 1.08;
	font-weight: 400;
	letter-spacing: -0.015em;
	max-width: 46rem;
	margin-block: 0;
}

.cx-item {
	padding-top: 1.25rem;
	margin-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--border);
}

.cx-item--first {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
}

/* numbered big labels, korra 01/02 style */
.cx-num {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--accent-strong);
	margin-bottom: 0.9rem;
}

.cx-pillar {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 500;
	letter-spacing: -0.015em;
	margin-bottom: 0.75rem;
}

/* light band (was dark; no dark sections allowed) */
.cx-band {
	background: var(--wp--preset--color--faint);
	color: var(--wp--preset--color--ink);
	padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.cx-band h1, .cx-band h2, .cx-band h3, .cx-band h4 {
	color: var(--wp--preset--color--ink);
}

.cx-band a {
	color: var(--wp--preset--color--accent-strong);
}

.cx-band-sub {
	font-size: var(--wp--preset--font-size--large);
	max-width: 46rem;
	margin-block: 1rem 2rem;
}

/* ---- Flow diagram (channel bars, decorative, no data claims) ---- */

.cx-flow {
	display: grid;
	gap: 0.75rem;
}

.cx-flow-row {
	display: grid;
	grid-template-columns: 8.5rem 1fr auto;
	align-items: center;
	gap: 1rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cx-flow-row small {
	color: var(--wp--preset--color--muted);
}

.cx-flow-track {
	height: 0.9rem;
	border-radius: 999px;
	background: var(--wp--preset--color--faint);
	overflow: hidden;
}

.cx-flow-track i {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
}

.cx-flow-track i.is-night {
	background: var(--wp--preset--color--night);
}

.round-photo {
	border-radius: 0.375rem;
	border: 1px solid var(--wp--preset--color--border);
	box-sizing: border-box;
	width: 100%;
	height: auto;
}

.wp-block-image.round-photo img,
.wp-block-image img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 600px) {
	.wp-block-columns .wp-block-column {
		min-width: 0;
	}
}

/* ---- Header logo ---- */

.cx-header-inner {
	flex-wrap: nowrap;
}

.site-header .wp-block-navigation .wp-block-navigation__container {
	gap: clamp(0.6rem, 1.8vw, 1.35rem) !important;
}

.site-header .wp-block-navigation-item__content {
	white-space: nowrap;
}

.cx-header-cta.wp-element-button {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 600;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.72em 1.3em;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--accent-strong);
	background: var(--wp--preset--color--accent-strong);
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cx-header-cta.wp-element-button:hover {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: #fff;
}

.site-header .cx-header-inner .wp-block-buttons {
	margin-inline-start: 0;
}

.cx-logo img,
.site-footer img {
	display: block;
	height: 28px;
	width: auto;
}

.cx-logo figure {
	margin: 0;
	padding: 0;
}

/* ---- Editorial link underline (animated) ---- */

.site-header nav a.wp-block-navigation-item__content,
.site-footer nav a.wp-block-navigation-item__content,
.cx-ulink {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: background-size 0.22s ease, color 0.22s ease;
}

.site-header nav a.wp-block-navigation-item__content:hover,
.site-footer nav a.wp-block-navigation-item__content:hover,
.cx-ulink:hover {
	background-size: 100% 1px;
}

/* ---- Motion: section reveal, number reveal, stat lift, bar fill ---- */

.js .cx-reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .cx-reveal.in-view {
	opacity: 1;
	transform: none;
}

.js .cx-num {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .cx-num.in-view {
	opacity: 1;
	transform: none;
}

.cx-stat-card {
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cx-stat-card:hover {
	transform: translateY(-3px);
	border-color: var(--wp--preset--color--ink);
	box-shadow: 0 10px 24px rgba(11, 11, 13, 0.08);
}

.js .cx-flow .cx-flow-track i {
	width: 0 !important;
	transition: width 0.9s ease 0.1s;
}

.js .cx-flow.in-view .cx-flow-track i {
	width: var(--w, 0%) !important;
}

.cx-no-motion {
	scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.js .cx-reveal,
	.js .cx-num {
		opacity: 1 !important;
		transform: none !important;
	}

	.js .cx-flow .cx-flow-track i {
		width: var(--w, 0%) !important;
	}
}

@media (max-width: 781px) {
	.cx-stat-number {
		font-size: clamp(3rem, 16vw, 4.5rem);
	}
	.cx-section {
		padding-block: 3rem;
	}
	.cx-band {
		padding-block: 3rem;
	}
	.cx-flow-row {
		grid-template-columns: 6.5rem 1fr;
	}
}