/* One message at a time, anchored low over the film.
   Statements stay in upright sans-serif; only the introductory key word is italic. */
.hero-stage {
	padding-bottom: clamp(80px, 10vw, 160px);
	background: #fff;
}

.hero-stage .hero {
	display: flex;
	align-items: flex-end;
	height: auto;
	min-height: calc(100svh - 32px);
}

.hero-stage .hero__content {
	position: relative;
	inset: auto !important;
	/* The shared slide area reserves space for the longest message. On short
     screens normal flow lets the hero grow without clipping the content. */
	padding: clamp(160px, 22svh, 240px) var(--hero-inset) clamp(48px, 8svh, 100px) !important;
}

.hero-stage .hero__headline {
	max-width: min(100%, 480px) !important;
	font-family: Arial, sans-serif;
	font-style: normal;
	font-size: clamp(1.875rem, 2.8vw, 2.5rem) !important;
	line-height: 1.22 !important;
	letter-spacing: -0.03em !important;
	text-wrap: balance;
	text-shadow: 0 2px 16px #00000024;
}

.hero-stage .hero__headline em {
	font-family: Georgia, serif;
	font-style: italic;
	font-weight: 400;
}

.hero-stage .hero__cta {
	margin-top: 0;
	min-height: 44px !important;
	padding: 10px 16px;
	font-size: 0.875rem !important;
	border-radius: 4px !important;
	color: #fff !important;
	background: transparent !important;
	border-color: #ffffff73 !important;
	transition:
		background-color 250ms ease,
		border-color 250ms ease;
}

.hero-stage .hero__cta:hover {
	background: #ffffff12 !important;
	border-color: #ffffffbf !important;
	transform: none;
}

.hero-stage .hero__cta:focus-visible {
	color: #fff !important;
	outline: 2px solid #fff;
	outline-offset: 5px;
	transform: none;
}

.hero-backdrop .hero__media {
	position: absolute;
	height: 100%;
}

.hero-stage--stories .hero__media {
	position: sticky;
	height: var(--hero-media-height, 100svh);
}

.hero-backdrop .hero__video {
	min-width: calc(var(--hero-media-height, 100svh) * 16 / 9);
	min-height: 100%;
	filter: none;
}

.hero-backdrop .hero__veil {
	background:
		linear-gradient(
			90deg,
			rgba(18, 17, 16, 0.34) 0%,
			rgba(18, 17, 16, 0.22) 38%,
			rgba(18, 17, 16, 0.04) 78%
		),
		linear-gradient(
			180deg,
			rgba(18, 17, 16, 0.16),
			transparent 30%,
			rgba(18, 17, 16, 0.36)
		);
}

.hero-stories {
	width: min(100%, 480px);
	margin-top: 0;
	padding-top: 0;
	border: 0;
	color: #fff;
}

.hero-stories__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.hero-stories__slides {
	display: grid;
	gap: 36px;
}

.hero-stories.is-ready .hero-stories__slides {
	gap: 0;
	align-items: end;
}

.hero-stories.is-ready .hero-stories__slide {
	grid-area: 1 / 1;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.hero-stories.is-ready .hero-stories__slide.is-active {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.hero-stories__statement {
	margin: 0 0 22px;
	max-width: 26ch;
	font:
		normal 400 clamp(1.625rem, 2.3vw, 2rem)/1.25 Arial,
		sans-serif;
	letter-spacing: -0.025em;
	color: #fff;
	text-wrap: pretty;
	text-shadow: 0 2px 12px #0000002b;
}

.hero-stories__solution-label {
	display: block;
	margin-bottom: 6px;
	color: #baccd0;
	font:
		500 0.75rem/1.5 Arial,
		sans-serif;
	text-shadow: 0 1px 8px #00000030;
}

.hero-stories__slide p {
	margin: 0;
	max-width: 51ch;
	font:
		400 0.9375rem/1.65 Arial,
		sans-serif;
	color: #fff;
	text-wrap: pretty;
	text-shadow: 0 1px 8px #00000030;
}

@media (max-width: 620px) {
	.hero-stage .hero__content {
		padding-top: 160px !important;
		padding-bottom: 44px !important;
	}

	.hero-stage .hero__headline {
		font-size: clamp(1.75rem, 6.6vw, 2.125rem) !important;
	}

	.hero-stories__slide p {
		font-size: 0.875rem;
	}

	.hero-backdrop .hero__veil {
		background:
			linear-gradient(90deg, rgba(18, 17, 16, 0.36), rgba(18, 17, 16, 0.12)),
			linear-gradient(
				180deg,
				rgba(18, 17, 16, 0.12),
				transparent 25%,
				rgba(18, 17, 16, 0.4)
			);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-stage--stories .hero__media {
		position: absolute;
		height: 100%;
	}

	.hero-stage .hero__cta {
		transition: none;
	}
}
