.esu-scroll {
	--esu-bg: #5b19e6;
	--esu-accent: #b7ff22;
	--esu-text: #ffffff;
	--esu-inactive: #a98bf4;
	--esu-height: 820px;
	--esu-item-size: 54px;
	--esu-fixed-size: 42px;
	--esu-item-gap: 42px;
	position: relative;
	width: 100%;
	min-height: min(var(--esu-height), 100svh);
	margin: 0;
	background: var(--esu-bg);
	color: var(--esu-text);
	overflow: hidden;
	isolation: isolate;
}

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

.esu-scroll__viewport {
	position: relative;
	width: min(1180px, calc(100% - 48px));
	height: min(var(--esu-height), 100svh);
	min-height: 560px;
	margin-inline: auto;
	outline: none;
	touch-action: pan-x;
}

.esu-scroll__viewport:focus-visible::after {
	content: "";
	position: absolute;
	inset: 14px;
	border: 2px dashed color-mix(in srgb, var(--esu-accent) 75%, transparent);
	border-radius: 20px;
	pointer-events: none;
	z-index: 8;
}

.esu-scroll__bar {
	position: absolute;
	z-index: 4;
	top: 50%;
	left: 0;
	right: 0;
	height: clamp(88px, calc(var(--esu-item-size) + 42px), 142px);
	transform: translateY(-50%);
	border: 4px solid var(--esu-accent);
	border-radius: 999px;
	pointer-events: none;
}

.esu-scroll__fixed-text {
	position: absolute;
	left: clamp(28px, 4vw, 52px);
	top: 50%;
	max-width: 29%;
	padding: 8px 18px 10px 0;
	transform: translateY(-50%);
	background: var(--esu-bg);
	color: var(--esu-accent);
	font-family: inherit;
	font-size: clamp(28px, var(--esu-fixed-size), 68px);
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
}

.esu-scroll__logo {
	position: absolute;
	top: 50%;
	right: clamp(12px, 2vw, 24px);
	width: clamp(58px, 7vw, 92px);
	height: clamp(58px, 7vw, 92px);
	transform: translateY(-50%);
	object-fit: contain;
}

.esu-scroll__items-window {
	position: absolute;
	z-index: 3;
	top: 0;
	bottom: 0;
	left: 34%;
	right: 5%;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(
		to bottom,
		transparent 0%,
		rgba(0, 0, 0, 0.12) 8%,
		rgba(0, 0, 0, 0.58) 24%,
		#000 42%,
		#000 58%,
		rgba(0, 0, 0, 0.58) 76%,
		rgba(0, 0, 0, 0.12) 92%,
		transparent 100%
	);
	mask-image: linear-gradient(
		to bottom,
		transparent 0%,
		rgba(0, 0, 0, 0.12) 8%,
		rgba(0, 0, 0, 0.58) 24%,
		#000 42%,
		#000 58%,
		rgba(0, 0, 0, 0.58) 76%,
		rgba(0, 0, 0, 0.12) 92%,
		transparent 100%
	);
}

.esu-scroll__items {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	will-change: transform;
	transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.esu-scroll__item {
	display: flex;
	align-items: center;
	width: 100%;
	height: calc(var(--esu-item-size) + var(--esu-item-gap));
	margin: 0;
	color: var(--esu-inactive);
	font-family: inherit;
	font-size: clamp(28px, var(--esu-item-size), 88px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.025em;
	opacity: 0.12;
	transform: scale(0.9);
	transform-origin: left center;
	transition:
		opacity 520ms ease,
		transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
		color 420ms ease;
}

.esu-scroll__item.is-active {
	z-index: 2;
	color: var(--esu-text);
	opacity: 1;
	transform: scale(1);
}

.esu-scroll__item-content {
	display: inline-block;
	max-width: calc(100% - 118px);
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.esu-scroll__item-content--link {
	position: relative;
	cursor: pointer;
}

.esu-scroll__item-content--link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 3px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 220ms ease;
}

.esu-scroll__item.is-active .esu-scroll__item-content--link:hover::after,
.esu-scroll__item.is-active .esu-scroll__item-content--link:focus-visible::after {
	transform: scaleX(1);
}

.esu-scroll__item-content--link:focus-visible {
	outline: 2px solid var(--esu-accent);
	outline-offset: 8px;
	border-radius: 2px;
}

.esu-scroll__description {
	position: absolute;
	z-index: 5;
	left: 0;
	bottom: clamp(42px, 10vh, 92px);
	width: min(320px, 28%);
	color: var(--esu-text);
	font-family: inherit;
	font-size: clamp(17px, 1.55vw, 24px);
	font-weight: 400;
	line-height: 1.3;
}

.esu-scroll__description p {
	margin: 0;
}

.esu-scroll__description strong,
.esu-scroll__description b,
.esu-scroll__description a {
	color: var(--esu-accent);
	font-weight: 700;
}

.esu-scroll-placeholder {
	padding: 20px;
	border: 1px dashed #8c8f94;
	background: #f6f7f7;
	color: #1d2327;
	font-size: 14px;
}

@media (max-width: 900px) {
	.esu-scroll__viewport {
		width: min(100% - 28px, 760px);
		min-height: 620px;
	}

	.esu-scroll__bar {
		height: clamp(82px, calc(var(--esu-item-size) + 34px), 118px);
	}

	.esu-scroll__fixed-text {
		left: 24px;
		max-width: 35%;
		font-size: clamp(24px, calc(var(--esu-fixed-size) * 0.78), 44px);
	}

	.esu-scroll__items-window {
		left: 39%;
		right: 2%;
	}

	.esu-scroll__item {
		font-size: clamp(25px, calc(var(--esu-item-size) * 0.78), 52px);
	}

	.esu-scroll__item-content {
		max-width: calc(100% - 82px);
	}

	.esu-scroll__logo {
		width: 62px;
		height: 62px;
	}

	.esu-scroll__description {
		left: 18px;
		bottom: 36px;
		width: min(300px, 42%);
	}
}

@media (max-width: 620px) {
	.esu-scroll {
		min-height: 680px;
	}

	.esu-scroll__viewport {
		width: calc(100% - 20px);
		height: max(680px, min(var(--esu-height), 100svh));
		min-height: 680px;
	}

	.esu-scroll__bar {
		left: 0;
		right: 0;
		height: 82px;
		border-width: 3px;
	}

	.esu-scroll__fixed-text {
		left: 18px;
		max-width: 42%;
		padding-right: 10px;
		font-size: clamp(22px, 6vw, 32px);
	}

	.esu-scroll__items-window {
		left: 45%;
		right: 4px;
	}

	.esu-scroll__item {
		height: calc(clamp(28px, var(--esu-item-size), 42px) + clamp(30px, var(--esu-item-gap), 50px));
		font-size: clamp(25px, 7vw, 40px);
	}

	.esu-scroll__item-content {
		max-width: calc(100% - 46px);
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.esu-scroll__logo {
		right: 8px;
		width: 48px;
		height: 48px;
	}

	.esu-scroll__description {
		left: 16px;
		bottom: 32px;
		width: min(300px, calc(100% - 32px));
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.esu-scroll__items,
	.esu-scroll__item,
	.esu-scroll__item-content--link::after {
		transition-duration: 1ms !important;
	}
}
