.iem-scroll-story {
	--iem-story-height: 520vh;
	--iem-final-opacity: 0;
	--iem-progress: 0;
	position: relative;
	z-index: 1;
	width: 100vw;
	max-width: none;
	height: var(--iem-story-height);
	margin-right: 0;
	margin-left: calc(50% - 50vw);
	background: #07100d;
	color: #fff;
	font-family: inherit;
	overflow: visible;
}

.iem-scroll-story *,
.iem-scroll-story *::before,
.iem-scroll-story *::after {
	box-sizing: border-box;
}

.iem-scroll-story__sticky {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	background: #07100d;
	isolation: isolate;
}

.iem-scroll-story__poster,
.iem-scroll-story__canvas,
.iem-scroll-story__final {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.iem-scroll-story__poster,
.iem-scroll-story__final {
	object-fit: cover;
	object-position: 58% 50%;
}

.iem-scroll-story__poster {
	z-index: 0;
	opacity: 1;
	transition: opacity 350ms ease;
}

.iem-scroll-story__canvas {
	z-index: 1;
	opacity: 0;
	transition: opacity 350ms ease;
}

.iem-scroll-story.is-ready .iem-scroll-story__canvas {
	opacity: 1;
}

.iem-scroll-story.is-ready .iem-scroll-story__poster {
	opacity: 0;
}

.iem-scroll-story__final {
	z-index: 2;
	opacity: var(--iem-final-opacity);
	transform: scale(calc(1.025 - (var(--iem-final-opacity) * .025)));
	transition: opacity 70ms linear;
}

.iem-scroll-story__shade {
	position: absolute;
	z-index: 3;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(2, 10, 7, .82) 0%, rgba(2, 10, 7, .48) 34%, rgba(2, 10, 7, .08) 62%, rgba(2, 10, 7, .18) 100%),
		linear-gradient(0deg, rgba(2, 10, 7, .72) 0%, transparent 31%, rgba(2, 10, 7, .1) 100%);
}

.iem-scroll-story__content {
	position: absolute;
	z-index: 4;
	inset: 0;
	width: min(100%, 1480px);
	margin: 0 auto;
	pointer-events: none;
}

.iem-scroll-story__step {
	position: absolute;
	top: 50%;
	left: clamp(24px, 7vw, 108px);
	width: min(590px, calc(100vw - 48px));
	opacity: 0;
	transform: translate3d(0, calc(-50% + 28px), 0);
	transition: opacity 360ms ease, transform 500ms cubic-bezier(.2, .7, .2, 1);
	pointer-events: none;
}

.iem-scroll-story__step.is-active {
	opacity: 1;
	transform: translate3d(0, -50%, 0);
}

.iem-scroll-story__step--final.is-active {
	pointer-events: auto;
}

.iem-scroll-story__kicker {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	margin-bottom: 18px;
	padding: 7px 13px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
	background: rgba(8, 31, 23, .38);
	box-shadow: 0 8px 34px rgba(0, 0, 0, .15);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.iem-scroll-story__step h2 {
	max-width: 780px;
	margin: 0;
	color: #fff;
	font-size: clamp(42px, 5.1vw, 78px);
	font-weight: 750;
	letter-spacing: -.045em;
	line-height: .98;
	text-wrap: balance;
	text-shadow: 0 4px 36px rgba(0, 0, 0, .26);
}

.iem-scroll-story__step p {
	max-width: 540px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, .86);
	font-size: clamp(17px, 1.3vw, 21px);
	font-weight: 450;
	line-height: 1.55;
	text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}

.iem-scroll-story__button {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 30px;
	padding: 15px 21px;
	border: 1px solid rgba(255, 255, 255, .58);
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
	color: #0d3325;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 180ms ease, background-color 180ms ease;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.iem-scroll-story__button:hover,
.iem-scroll-story__button:focus-visible {
	background: #fff;
	color: #0d3325;
	transform: translateY(-2px);
}

.iem-scroll-story__button span {
	font-size: 19px;
	line-height: 1;
}

.iem-scroll-story__progress {
	position: absolute;
	z-index: 5;
	right: clamp(24px, 4vw, 64px);
	bottom: 38px;
	left: clamp(24px, 4vw, 64px);
	height: 2px;
	overflow: hidden;
	background: rgba(255, 255, 255, .26);
	pointer-events: none;
}

.iem-scroll-story__progress-bar {
	display: block;
	width: 100%;
	height: 100%;
	background: #fff;
	transform: scaleX(var(--iem-progress));
	transform-origin: left center;
	will-change: transform;
}

.iem-scroll-story__scroll-hint {
	position: absolute;
	z-index: 5;
	right: clamp(24px, 4vw, 64px);
	bottom: 56px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, .76);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .13em;
	line-height: 1;
	text-transform: uppercase;
	pointer-events: none;
}

.iem-scroll-story__scroll-hint i {
	display: block;
	width: 6px;
	height: 18px;
	border: 1px solid rgba(255, 255, 255, .64);
	border-radius: 8px;
}

.iem-scroll-story__scroll-hint i::after {
	display: block;
	width: 2px;
	height: 4px;
	margin: 3px auto 0;
	border-radius: 2px;
	background: #fff;
	content: "";
	animation: iem-story-scroll 1.55s ease-in-out infinite;
}

.iem-scroll-story__note {
	position: absolute;
	z-index: 5;
	right: clamp(24px, 4vw, 64px);
	top: 28px;
	color: rgba(255, 255, 255, .68);
	font-size: 11px;
	font-weight: 550;
	letter-spacing: .015em;
	line-height: 1.4;
	pointer-events: none;
}

.iem-scroll-story__loader {
	position: absolute;
	z-index: 6;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(4, 16, 11, .1);
	opacity: 1;
	pointer-events: none;
	transition: opacity 300ms ease;
}

.iem-scroll-story.is-ready .iem-scroll-story__loader {
	opacity: 0;
}

.iem-scroll-story__loader span {
	width: 38px;
	height: 38px;
	border: 2px solid rgba(255, 255, 255, .26);
	border-top-color: #fff;
	border-radius: 50%;
	animation: iem-story-spin .85s linear infinite;
}

@keyframes iem-story-spin {
	to { transform: rotate(360deg); }
}

@keyframes iem-story-scroll {
	0%, 100% { opacity: .2; transform: translateY(0); }
	50% { opacity: 1; transform: translateY(7px); }
}

@media (max-width: 767px) {
	.iem-scroll-story {
		--iem-story-height: 450vh;
	}

	.iem-scroll-story__sticky {
		min-height: 520px;
	}

	.iem-scroll-story__poster,
	.iem-scroll-story__final {
		object-position: 66% 50%;
	}

	.iem-scroll-story__shade {
		background:
			linear-gradient(0deg, rgba(2, 10, 7, .88) 0%, rgba(2, 10, 7, .52) 45%, rgba(2, 10, 7, .05) 75%),
			linear-gradient(90deg, rgba(2, 10, 7, .22), transparent 72%);
	}

	.iem-scroll-story__step {
		top: auto;
		bottom: 104px;
		left: 22px;
		width: calc(100vw - 44px);
		transform: translate3d(0, 22px, 0);
	}

	.iem-scroll-story__step.is-active {
		transform: translate3d(0, 0, 0);
	}

	.iem-scroll-story__kicker {
		min-height: 30px;
		margin-bottom: 13px;
		padding: 6px 10px;
		font-size: 10px;
	}

	.iem-scroll-story__step h2 {
		font-size: clamp(34px, 10vw, 48px);
		line-height: 1.02;
	}

	.iem-scroll-story__step p {
		margin-top: 16px;
		font-size: 16px;
		line-height: 1.45;
	}

	.iem-scroll-story__button {
		margin-top: 21px;
		padding: 13px 17px;
		font-size: 14px;
	}

	.iem-scroll-story__note {
		right: 18px;
		top: 18px;
		left: 18px;
		text-align: right;
	}

	.iem-scroll-story__progress {
		right: 22px;
		bottom: 24px;
		left: 22px;
	}

	.iem-scroll-story__scroll-hint {
		right: 22px;
		bottom: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iem-scroll-story {
		height: auto;
		min-height: 78vh;
	}

	.iem-scroll-story__sticky {
		position: relative;
		height: 78vh;
		min-height: 560px;
	}

	.iem-scroll-story__poster,
	.iem-scroll-story__canvas,
	.iem-scroll-story__loader,
	.iem-scroll-story__progress,
	.iem-scroll-story__scroll-hint {
		display: none;
	}

	.iem-scroll-story__final {
		opacity: 1;
		transform: none;
	}

	.iem-scroll-story__step {
		display: none;
	}

	.iem-scroll-story__step--final {
		display: block;
		opacity: 1;
		transform: translate3d(0, -50%, 0);
		pointer-events: auto;
	}
}

