/* ── Cards Stack block ── */

.cards-stack-block {
	padding: 160px 0 0 0;
}

.cards-stack-block__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-inline: auto;
	margin-bottom: 30px;
}

.cards-stack-block .section-desc {
	max-width: 560px;
	margin-bottom: 50px;
}

.cards-stack-block .section-title {
	margin: 18px 0 21px 0;
	max-width: 800px;
}

/* ── Stack ── */

.cards-stack-sticky {
	display: flex;
	justify-content: center;
}

.cards-stack {
	position: relative;
	width: 100%;
	max-width: 423px;
	/* top room so peeking cards never clip above the front card */
	margin: clamp(40px, 6vw, 90px) auto 0;
	min-height: 400px;
}

.cards-stack-card {
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 12px;
	border-radius: 8px;
	background-color: var(--card-color, var(--color-sky-700));
	overflow: hidden;
	transform-origin: center bottom;
	will-change: transform, opacity;
}

/* ── Decorative SVG band (top) ── */

.cards-stack-card__decor {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 1;
	pointer-events: none;
	line-height: 0;
}

.cards-stack-card__decor-svg {
	display: block;
	width: 100%;
	height: auto;
}

/* ── White content box ── */

.cards-stack-card__body {
	position: relative;
	z-index: 2;
border-radius: 6px;
background: #FFF;
	padding: 32px 20px;
}

.cards-stack-card__title {
color: var(--Dark, #192023);
font-size: 32px;
font-style: normal;
font-weight: 500;
line-height: 120%; /* 38.4px */
letter-spacing: -0.16px;
margin: 0;
}

.cards-stack-card__desc {
	margin-top: 20px;
}

.cards-stack-card__desc p {
	margin: 0;
	color: var(--black, #191919);
font-size: 18px;
font-style: normal;
font-weight: 500;
line-height: 140%; /* 25.2px */
opacity: 0.6;
}

.cards-stack-card__desc p + p {
	margin-top: var(--space-s);
}

/* ── Responsive: simple vertical stack, full content, no scroll animation ── */

@media (max-width: 768px) {
	.cards-stack-block {
		padding: 120px 0 60px 0;
	}

	.cards-stack-block__header {
		margin-bottom: 40px;
	}

	.cards-stack {
		max-width: none;
		min-height: 0;
		margin-top: 0;
		display: flex;
		flex-direction: column;
		gap: clamp(16px, 4vw, 24px);
	}

	/* Reset any inline transforms GSAP may have applied (e.g. on resize from desktop)
	   so every card and its content is fully visible, with no scroll animation. */
	.cards-stack-card {
		position: static !important;
		height: auto;
		transform: none !important;
		opacity: 1 !important;
		z-index: auto !important;
	}

	.cards-stack-card__body {
		opacity: 1 !important;
		padding: 20px 16px;
	}
	.cards-stack-card__title{
		font-size: 24px;
font-style: normal;
font-weight: 500;
line-height: 130%; /* 31.2px */
letter-spacing: -0.12px;
	}
	.cards-stack-card__desc p{
		font-size: 16px;
font-style: normal;
font-weight: 500;
line-height: 140%;
opacity: 0.6;
	}
	.cards-stack-card{
		border-radius: 12px;
		padding: 140px 6px 6px 6px;
	}
	.cards-stack-card__decor-svg{
		height: 140px;
	}
	.cards-stack-block{
		padding-bottom: 0;
	}
	.cards-stack-block .section-desc{
		margin-bottom: 0;
	}
	
}
