.atl-stack {
	--atl-side-gap: 20px;
	--atl-purple: #7c3aed;
	--atl-purple-deep: #4c1d95;
	--atl-purple-light: #c084fc;
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	padding-inline: var(--atl-side-gap);
	box-sizing: border-box;
	font-family: "Poppins", Arial, sans-serif;
}

.atl-stack--align-left {
	margin-right: auto;
	margin-left: 0;
}

.atl-stack--align-center {
	margin-inline: calc(50% - 50vw);
}

.atl-stack--align-right {
	margin-right: 0;
	margin-left: auto;
}

.atl-stack,
.atl-stack * {
	box-sizing: border-box;
	font-family: "Poppins", Arial, sans-serif;
}

.atl-stack__stage {
	position: relative;
	width: 100%;
	margin-inline: auto;
}

.atl-stack-card {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 100vh;
	margin: 0;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background: #14091f;
	border-radius: 28px;
	transform-origin: 50% 0%;
	will-change: transform, opacity;
}

.atl-stack:not(.atl-stack--animated) .atl-stack-card + .atl-stack-card {
	margin-top: 16px;
}

.atl-stack-card__media {
	position: absolute;
	inset: 0;
	z-index: -3;
	overflow: hidden;
	filter: brightness(100%);
	transform: scale(1.01);
	will-change: transform, opacity;
}

.atl-stack-card__media::before {
	content: "";
	position: absolute;
	inset: -4%;
	background-image: var(--atl-card-image);
	background-position: center;
	background-size: cover;
	transform: scale(1);
	transform-origin: 50% 50%;
	animation: atl-ken-burns 18s ease-in-out infinite alternate;
	will-change: transform;
}

.atl-stack-card:nth-child(2n) .atl-stack-card__media::before {
	transform-origin: 42% 50%;
	animation-duration: 20s;
}

.atl-stack-card:nth-child(3n) .atl-stack-card__media::before {
	transform-origin: 58% 48%;
	animation-duration: 22s;
}

@keyframes atl-ken-burns {
	0% {
		transform: scale(1);
	}

	100% {
		transform: scale(1.08);
	}
}

.atl-stack-card__shade {
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(16, 7, 25, .42) 0%, rgba(16, 7, 25, .08) 44%, rgba(16, 7, 25, .26) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .26) 100%),
		var(--atl-overlay, rgba(25, 10, 35, .1));
	will-change: opacity;
}

.atl-stack-card__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, auto);
	align-items: center;
	gap: clamp(28px, 7vw, 116px);
	width: min(1220px, calc(100% - clamp(32px, 8vw, 140px)));
	height: 100%;
	margin-inline: auto;
	padding-block: clamp(32px, 6vw, 86px);
}

.atl-stack-card--panel-left .atl-stack-card__panel {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.atl-stack-card--panel-left .atl-stack-card__statement {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	text-align: right;
}

.atl-stack-card--panel-right .atl-stack-card__statement {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.atl-stack-card--panel-right .atl-stack-card__panel {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
}

.atl-stack-card__statement {
	max-width: 560px;
	margin: 0;
	font-size: clamp(34px, 4.6vw, 74px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
	text-wrap: balance;
	text-shadow: 0 18px 42px rgba(0, 0, 0, .46);
	will-change: transform, opacity;
}

.atl-stack-card__panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 460px;
	max-width: 100%;
	padding: 42px;
	color: #fff;
	background: linear-gradient(145deg, rgba(76, 29, 149, .82), rgba(30, 15, 55, .66));
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 22px;
	box-shadow: 0 24px 70px rgba(12, 4, 22, .34);
	-webkit-backdrop-filter: blur(18px) saturate(130%);
	backdrop-filter: blur(18px) saturate(130%);
	will-change: transform, opacity;
}

.atl-stack-card__eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	margin-bottom: 14px;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
	color: #2d1246;
	background: rgba(255, 255, 255, .86);
	border-radius: 999px;
}

.atl-stack-card__title {
	margin: 0 0 14px;
	padding: 0;
	color: inherit;
	font-size: clamp(32px, 3.1vw, 56px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: 0;
}

.atl-stack-card__description {
	max-width: 34rem;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.55;
	color: rgba(255, 255, 255, .88);
}

.atl-stack-card__description p {
	margin: 0;
}

.atl-stack-card__pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 30px;
	will-change: transform, opacity;
}

.atl-stack-card__pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 12px 22px;
	overflow: hidden;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	background: linear-gradient(135deg, var(--atl-purple), var(--atl-purple-deep));
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50px;
	box-shadow: 0 14px 34px rgba(76, 29, 149, .36);
	transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, color .24s ease;
}

.atl-stack-card__pill::before {
	content: "";
	position: absolute;
	inset: -40% -70%;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .72) 50%, transparent 65%);
	transform: translateX(-45%);
	opacity: 0;
	transition: transform .55s ease, opacity .24s ease;
}

a.atl-stack-card__pill:hover,
a.atl-stack-card__pill:focus-visible {
	color: #fff;
	border-color: rgba(255, 255, 255, .55);
	transform: translateY(-3px);
	box-shadow: 0 18px 46px rgba(192, 132, 252, .48), 0 0 22px rgba(255, 255, 255, .18);
}

a.atl-stack-card__pill:hover::before,
a.atl-stack-card__pill:focus-visible::before {
	transform: translateX(45%);
	opacity: 1;
}

.atl-stack-card__pill-text {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.atl-stack--animated {
	height: var(--atl-scroll-height);
}

.atl-stack--animated .atl-stack__stage {
	height: var(--atl-card-height);
}

.atl-stack--animated .atl-stack-card {
	position: absolute;
	inset: 0 auto auto 0;
	opacity: 0;
	visibility: hidden;
	transform: translate3d(0, 110%, 0) scale(.94);
}

.atl-stack--animated .atl-stack-card:first-child {
	z-index: 2;
	opacity: 1;
	visibility: visible;
	transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 767px) {
	.atl-stack {
		--atl-side-gap: 10px;
	}

	.atl-stack-card {
		min-height: 100vh;
		border-radius: 18px;
	}

	.atl-stack-card__shade {
		background:
			linear-gradient(180deg, rgba(15, 8, 24, .08) 0%, rgba(15, 8, 24, .42) 100%),
			var(--atl-overlay, rgba(25, 10, 35, .1));
	}

	.atl-stack-card__inner {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: stretch;
		gap: 20px;
		width: calc(100% - 28px);
		padding-block: 18px;
	}

	.atl-stack-card__statement {
		order: 1;
		align-self: flex-start;
		max-width: 92%;
		font-size: clamp(30px, 10vw, 46px);
		text-align: left;
	}

	.atl-stack-card__panel {
		order: 2;
		width: 100%;
		max-height: 66%;
		padding: 26px 22px;
		overflow: auto;
	}

	.atl-stack-card__title {
		font-size: clamp(30px, 10vw, 42px);
	}

	.atl-stack-card__pills {
		margin-top: 22px;
	}

	.atl-stack-card__pill {
		width: 100%;
		min-height: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atl-stack-card,
	.atl-stack-card__pill,
	.atl-stack-card__pill::before {
		transition: none !important;
	}

	.atl-stack-card__media::before {
		animation: none !important;
	}
}
