/**
 * Home hero: `relative bg-charcoal overflow-hidden`; the photograph at 90%
 * opacity, `scale-[1.6]` at its focus point, under the gradient
 * rgba(19,23,31,.46) .42% / .12 63.03% / .32; `container py-16 lg:py-20`,
 * the main column `max-w-3xl py-6 sm:py-10`, below 1024px at least 86vh and
 * centered. The logo `h-20 sm:h-24 mb-8`, the claim `text-2xl sm:text-3xl
 * lg:text-4xl font-bold text-balance`, the lead `mt-5 text-base sm:text-lg`
 * white/85, the dates and place `mt-6 gap-x-5 gap-y-2 font-medium`
 * white/90, the pill `mt-3`, the buttons `mt-8 flex-col sm:flex-row gap-3`.
 *
 * The figures `mt-8 lg:mt-10 grid grid-cols-2 md:grid-cols-3 gap-4
 * lg:gap-5`, each `p-6 lg:p-7 bg-white/5 backdrop-blur-md border
 * border-white/10 rounded-xl`, its border red on hover; the value
 * `text-3xl lg:text-4xl font-bold tracking-tight`, the suffix white/80
 * `ml-1`, the label `mt-2 text-sm leading-snug` white/75. Hidden until in
 * view, then fading up 90ms apart.
 */

.sba-c-home-hero.sba-c-home-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--sba-charcoal);
	color: #fff;
	font-family: var(--sba-font-sans);
}

.sba-c-home-hero .sba-c-home-hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	opacity: 0.9;
	transform: scale(1.6);
}

.sba-c-home-hero .sba-c-home-hero-veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgb(19 23 31 / 0.46) 0.42%, rgb(19 23 31 / 0.12) 63.03%, rgb(19 23 31 / 0.32));
}

.sba-c-home-hero .sba-c-home-hero-body {
	position: relative;
	padding-top: 64px;
	padding-bottom: 64px;
}

.sba-c-home-hero .sba-c-home-hero-main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 48rem;
	min-height: 86vh;
	padding: 24px 0;
}

.sba-c-home-hero .sba-c-home-hero-logo {
	align-self: flex-start;
	width: auto;
	max-width: 100%;
	height: 80px;
	margin-bottom: 32px;
}

.sba-c-home-hero p {
	margin: 0;
}

.sba-c-home-hero .sba-c-home-hero-claim {
	color: #fff;
	font-size: 24px;
	font-weight: var(--sba-heading-weight);
	letter-spacing: var(--sba-heading-tracking);
	line-height: 32px;
	text-wrap: balance;
}

.sba-c-home-hero .sba-c-home-hero-lead {
	margin-top: 20px;
	color: rgb(255 255 255 / 0.85);
	font-size: 16px;
	line-height: 24px;
}

.sba-c-home-hero .sba-c-home-hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin-top: 24px;
	color: rgb(255 255 255 / 0.9);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}

.sba-c-home-hero .sba-c-home-hero-meta span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sba-c-home-hero .sba-c-home-hero-meta .sba-i {
	font-size: 16px;
}

.sba-c-home-hero .sba-c-home-hero-save {
	margin-top: 12px;
}

.sba-c-home-hero .sba-c-home-hero-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 32px;
}

/* The figures. */
.sba-c-home-hero .sba-c-home-hero-figures {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 32px 0 0;
}

.sba-c-home-hero .sba-c-home-hero-figures > div {
	padding: 24px;
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 12px;
	background-color: rgb(255 255 255 / 0.05);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: border-color var(--sba-duration-hover) ease;
}

.sba-c-home-hero .sba-c-home-hero-figures > div:hover {
	border-color: hsl(var(--sba-red-hsl) / 0.6);
}

.sba-c-home-hero .sba-c-home-hero-figures dd {
	margin: 0;
	color: #fff;
	font-size: 30px;
	font-variant-numeric: tabular-nums;
	font-weight: var(--sba-heading-weight);
	letter-spacing: var(--sba-heading-tracking);
	line-height: 36px;
}

.sba-c-home-hero .sba-c-home-hero-suffix {
	margin-left: 4px;
	color: rgb(255 255 255 / 0.8);
}

.sba-c-home-hero .sba-c-home-hero-figures dt {
	margin-top: 8px;
	color: rgb(255 255 255 / 0.75);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.375;
}

.sba-c-home-hero .sba-c-home-hero-figures.is-waiting > div {
	opacity: 0;
}

.sba-c-home-hero .sba-c-home-hero-figures.is-counting > div {
	animation: sba-c-home-hero-fade-up 0.6s ease-out both;
	animation-delay: var(--sba-fig-delay, 0ms);
}

@keyframes sba-c-home-hero-fade-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (min-width: 640px) {
	.sba-c-home-hero .sba-c-home-hero-main {
		padding: 40px 0;
	}

	.sba-c-home-hero .sba-c-home-hero-logo {
		height: 96px;
	}

	.sba-c-home-hero .sba-c-home-hero-claim {
		font-size: 30px;
		line-height: 36px;
	}

	.sba-c-home-hero .sba-c-home-hero-lead {
		font-size: 18px;
		line-height: 28px;
	}

	.sba-c-home-hero .sba-c-home-hero-actions {
		flex-direction: row;
	}
}

@media (min-width: 768px) {
	.sba-c-home-hero .sba-c-home-hero-figures {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.sba-c-home-hero .sba-c-home-hero-body {
		padding-top: 80px;
		padding-bottom: 80px;
	}

	.sba-c-home-hero .sba-c-home-hero-main {
		min-height: 0;
	}

	.sba-c-home-hero .sba-c-home-hero-claim {
		font-size: 36px;
		line-height: 40px;
	}

	.sba-c-home-hero .sba-c-home-hero-figures {
		gap: 20px;
		margin-top: 40px;
	}

	.sba-c-home-hero .sba-c-home-hero-figures > div {
		padding: 28px;
	}

	.sba-c-home-hero .sba-c-home-hero-figures dd {
		font-size: 36px;
		line-height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sba-c-home-hero .sba-c-home-hero-figures.is-counting > div {
		animation: none;
	}
}
