.hero {
	display: flex;
	flex-direction: column;
	min-height: 56.25rem;
	background: var(--color-navy);
	color: var(--color-white);
}

.hero--compact {
	min-height: 31.25rem;
}

.hero--compact .hero__content {
	justify-content: center;
	/* Desktop overlay header is the same navy as the banner, so a full
	   header-height offset double-counts it. Clear the bar by ~half. */
	padding-top: calc((var(--header-height) / 2) + 2.5rem);
	padding-bottom: 2.5rem;
}

.hero--compact .hero__title {
	font-size: clamp(2rem, 3.4vw, 3rem);
	line-height: 1.083;
	max-width: 66rem;
}

.hero--compact .hero__body {
	max-width: 58.6rem;
}

.hero__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 2rem;
	padding-block: 2rem 3rem;
}

/*
 * Overlay header (desktop): the bar is absolute/fixed over the hero, so
 * centering in the full navy block leaves more space below the copy than
 * below the header. Offset by header height and match remaining padding.
 * Mobile (max-width 900px) puts the header in flow, so this does not apply.
 */
@media (min-width: 901px) {
	body.has-hero .hero:not(.hero--compact) .hero__content {
		padding-top: calc(var(--header-height) + 2rem);
		padding-bottom: 2rem;
	}
}

.hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
}

.hero__eyebrow-rule {
	display: block;
	width: 1.5rem;
	height: 1px;
	background: var(--color-gold);
	flex-shrink: 0;
	transform-origin: left center;
}

.hero__eyebrow-text {
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-gold);
}

.hero__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	line-height: 1.167;
	margin: 0;
	max-width: 49rem;
	color: var(--color-white);
}

.hero__title p {
	margin: 0;
	display: contents;
}

.hero__title em {
	font-style: italic;
	color: var(--color-gold);
}

.hero__body {
	margin: 0;
	max-width: 34.25rem;
	font-size: 1rem;
	line-height: 1.625;
	color: rgba(255, 255, 255, 0.75);
}

.hero__stats {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	width: 100%;
	background: var(--color-cream);
	color: var(--color-navy);
	overflow: hidden;
}

.hero__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	padding: 2rem 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	text-align: center;
	min-width: 0;
}

.hero__stat-value {
	margin: 0;
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.75rem;
	line-height: 1.2;
	white-space: nowrap;
}

.hero__stat-number {
	display: inline-block;
	min-width: calc(var(--stat-digits, 1) * 1ch);
	font-variant-numeric: tabular-nums;
	text-align: right;
	font-weight: inherit;
}

.hero__stat-prefix,
.hero__stat-suffix {
	flex-shrink: 0;
}

.hero__stat-label {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.6;
}

@media (max-width: 1100px) {
	.hero {
		min-height: 0;
	}

	.hero__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* At 900px the header sits in flow (navy bar), so drop the overlay offset. */
@media (max-width: 900px) {
	.hero--compact .hero__content {
		padding-top: 3.5rem;
		padding-bottom: 3.5rem;
	}
}

@media (max-width: 640px) {
	.hero__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero__content {
		padding-top: 1.5rem;
	}

	.hero--compact .hero__content {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}
}
