.stat-section {
	position: relative;
	padding: 32px 0;
	overflow: hidden;
	background-color: var(--color-neutral-darkest);
}

.stat-section__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.stat-section__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.stat-section__overlay {
	position: absolute;
	inset: 0;
	background-color: color-mix(in srgb, var(--color-neutral-darkest) 70%, transparent);
}

.stat-section__container {
	position: relative;
	z-index: 1;
}

.stat-section__inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 52px;
}

.stat-section__intro {
	color: var(--color-text-inverse);
	text-align: center;
}

.stat-section__intro .sub-heading,
.stat-section__intro .subheading {
	color: var(--color-text-inverse);
}

.stat-section__intro .sub-heading::before {
	color: var(--color-text-inverse);
}

.stat-section__heading {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--font-size-h3);
	font-weight: 400;
	line-height: var(--line-height-h3);
	color: var(--color-text-inverse);
}

.stat-section__stats {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.stat-section__stat {
	text-align: center;
}

.stat-section__divider {
	height: 1px;
	width: 100%;
	margin: 18px 0 10px;
	background-color: color-mix(in srgb, var(--color-white) 50%, transparent);
	flex-shrink: 0;
}

.stat-section__value {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: var(--line-height-h1);
	color: var(--color-text-inverse);
}

.stat-section__value-main {
	font-size: var(--font-size-h1);
	line-height: var(--line-height-h1);
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

@supports (font-size: 1cqi) {
	.stat-section__stat {
		container-type: inline-size;
		container-name: stat-section-col;
	}

	.stat-section__value-main {
		font-size: clamp(1.375rem, 27cqi, var(--font-size-h1));
	}
}

.stat-section__prefix,
.stat-section__suffix {
	font-size: .65em;
    font-weight: 700;
    line-height: 1em;
    margin-top: 8px;
}

.stat-section__number {
	font-weight: 700;
	min-width: 0;
	max-width: 100%;
}

.stat-section__label {
	margin: var(--space-sub-to-heading) 0 0;
	font-family: var(--sub-heading-family);
	font-size: var(--font-size-subheading);
	font-weight: 700;
	line-height: var(--line-height-subheading);
	letter-spacing: var(--letter-spacing-subheading);
	text-transform: uppercase;
	color: var(--color-text-inverse);
}

@media (min-width: 768px) {
	.stat-section__stats {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
	}

	.stat-section__stat {
		flex: 1 1 0;
		min-width: 0;
	}

	.stat-section__divider {
		flex: 0 0 auto;
		align-self: stretch;
		width: 1px;
		height: auto;
		min-height: 1em;
		margin: 0 26px;
		background-color: color-mix(in srgb, var(--color-white) 25%, transparent);
	}

	.stat-section__stats.stat-section__stats--third-row {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: stretch;
		align-content: start;
		row-gap: var(--space-paragraph);
		column-gap: 0;
		flex-direction: unset;
		flex-wrap: unset;
		justify-content: unset;
	}

	.stat-section__stats.stat-section__stats--third-row > :nth-child(1) {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
	}

	.stat-section__stats.stat-section__stats--third-row > :nth-child(2) {
		grid-column: 2;
		grid-row: 1;
		align-self: stretch;
		width: 1px;
		height: auto;
		min-height: 1em;
		margin: 0 26px;
		flex: unset;
	}

	.stat-section__stats.stat-section__stats--third-row > :nth-child(3) {
		grid-column: 3;
		grid-row: 1;
		min-width: 0;
	}

	.stat-section__stats.stat-section__stats--third-row > :nth-child(4) {
		display: none;
	}

	.stat-section__stats.stat-section__stats--third-row > :nth-child(5) {
		grid-column: 1 / -1;
		grid-row: 2;
		min-width: 0;
	}

	.stat-section__stats.stat-section__stats--stack-all {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
	}

	.stat-section__stats.stat-section__stats--stack-all .stat-section__stat {
		flex: none;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.stat-section__stats.stat-section__stats--stack-all .stat-section__divider {
		width: 100%;
		height: 1px;
		min-height: 0;
		margin: 18px 0 10px;
		flex: 0 0 auto;
		align-self: stretch;
	}
}

@media (min-width: 1200px) {

	.stat-section {
		padding: 64px 0;
	}

	.stat-section__inner {
		flex-direction: row;
		align-items: center;
		gap: 0;
	}

	.stat-section__intro {
		min-width: 0;
		text-align: left;
		max-width: 319px;
	}

	.stat-section__stats {
        flex-wrap: nowrap;
        justify-content: flex-end;
		flex-direction: column;
        gap: 0;
        width: 100%;
	}

	.stat-section__inner > .stat-section__stats:only-child {
		width: 100%;
		justify-content: flex-start;
	}

	.stat-section__stat {
		flex: 1 1 0;
		min-width: 0;
	}

	.stat-section__prefix, .stat-section__suffix {
		margin-top: 22px;
	}

	.stat-section__divider {
		margin: 0 52px;
	}

	.stat-section__prefix,
	.stat-section__suffix {
		font-size: 0.71em;
	}
}

@media (min-width: 1400px) {
    .stat-section__stats { 
		flex-direction: row;
	}
}