/* Container Scroll Animation — vanilla CSS port of the React/Tailwind component */

.csa-wrapper {
	height: 60rem;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 0.5rem;
	overflow: hidden;
}
@media (min-width: 768px) {
	.csa-wrapper {
		height: 80rem;
		padding: 5rem;
	}
}

.csa-sticky {
	padding: 2.5rem 0;
	width: 100%;
	position: relative;
	perspective: 1000px;
}
@media (min-width: 768px) {
	.csa-sticky {
		padding: 10rem 0;
	}
}

.csa-header {
	max-width: 64rem;
	margin: 0 auto;
	text-align: center;
	will-change: transform;
}

.csa-title {
	font-size: 2.25rem;
	font-weight: 600;
	color: #000;
	line-height: 1.25;
	margin: 0;
}
@media (prefers-color-scheme: dark) {
	.csa-title {
		color: #fff;
	}
}

.csa-title-highlight {
	display: inline-block;
	font-size: 2.25rem;
	font-weight: 700;
	margin-top: 0.25rem;
	line-height: 1;
}
@media (min-width: 768px) {
	.csa-title-highlight {
		font-size: 6rem;
	}
}

.csa-card {
	max-width: 64rem;
	margin: -3rem auto 0;
	height: 30rem;
	width: 100%;
	border: 4px solid #6c6c6c;
	padding: 0.5rem;
	background: #222222;
	border-radius: 30px;
	box-shadow:
		0 0 #0000004d,
		0 9px 20px #0000004a,
		0 37px 37px #00000042,
		0 84px 50px #00000026,
		0 149px 60px #0000000a,
		0 233px 65px #00000003;
	will-change: transform;
	transform-style: preserve-3d;
	box-sizing: border-box;
}
@media (min-width: 768px) {
	.csa-card {
		height: 40rem;
		padding: 1.5rem;
	}
}

.csa-card-inner {
	height: 100%;
	width: 100%;
	overflow: hidden;
	border-radius: 1rem;
	background: #f3f4f6;
}
@media (prefers-color-scheme: dark) {
	.csa-card-inner {
		background: #18181b;
	}
}
@media (min-width: 768px) {
	.csa-card-inner {
		padding: 1rem;
	}
}

.csa-image {
	display: block;
	margin: 0 auto;
	border-radius: 1rem;
	object-fit: cover;
	object-position: left top;
	height: 100%;
	width: 100%;
	user-select: none;
	-webkit-user-drag: none;
}

@media (prefers-reduced-motion: reduce) {
	.csa-header,
	.csa-card {
		transform: none !important;
	}
}
