/**
 * Home Scroll Narrative — sticky scroll-driven text reveal.
 */

.home-scroll-narrative {
	display: block;
	height: 220vh;
	position: relative;
	width: 100%;
}

.home-scroll-narrative__sticky {
	align-items: center;
	display: flex;
	height: 100dvh;
	justify-content: flex-start;
	overflow: hidden;
	position: sticky;
	top: 0;
	width: 100%;
}

.home-scroll-narrative__scrim {
	background: #000000;
	inset: 0;
	position: absolute;
	z-index: 1;
}

.home-scroll-narrative__content {
	margin: 0 auto;
	max-width: var(--content-max-width, 90rem);
	padding: 0 var(--content-gutter, 1.25rem);
	position: relative;
	width: 100%;
	z-index: 2;
}

.home-scroll-narrative__eyebrow {
	color: #9B9B9B;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.2;
	margin: 0 0 1.25rem;
}

.home-scroll-narrative__text {
	color: #fff;
	font-family: var(--font-heading-family, var(--font-family-heading));
	font-size: clamp(1.625rem, 3.75vw, 5.5rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.12;
	margin: 0;
	max-width: 21.5em;
}

.home-scroll-narrative__text--static {
	color: #fff;
}

.home-scroll-narrative.is-reveal-active .home-scroll-narrative__char {
	opacity: clamp(
		0.1,
		calc((var(--reveal-head, 0) - var(--char-index, 0)) / var(--reveal-fade, 12)),
		1
	);
}

.home-scroll-narrative .visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

@media (width >= 768px) {
	.home-scroll-narrative {
		height: 260vh;
	}

	.home-scroll-narrative__content {
		padding: 0 var(--content-gutter-md, 2rem);
	}
}

@media (width >= 1024px) {
	.home-scroll-narrative {
		height: 300vh;
	}

	.home-scroll-narrative__content {
		padding: 0 var(--content-gutter-lg, 3rem);
	}

	.home-scroll-narrative__text {
		line-height: 1.06;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-scroll-narrative {
		height: auto;
	}

	.home-scroll-narrative__sticky {
		height: auto;
		min-height: 70dvh;
		padding-block: 4rem;
		position: relative;
	}
}
