/* ==========================================================================
   Palmgro Scroll Stats Reveal — base structural CSS
   Colors/typography/spacing come from Elementor's Style tab per instance;
   this file handles the pinned-scene layout, the overlapping card
   composition, and the SVG chart's structural styling.
   ========================================================================== */

.pgw-ss-wrapper {
	width: 100%;
	box-sizing: border-box;
}
.pgw-ss-wrapper * {
	box-sizing: border-box;
}

.pgw-ss-stage {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 40px 60px;
	perspective: 1400px;
}

.pgw-ss-scene {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding: 40px 60px;
	will-change: opacity, transform;
	backface-visibility: hidden;
}
.pgw-ss-scene--before {
	opacity: 1;
}
.pgw-ss-scene--after {
	opacity: 0;
}

.pgw-ss-headline {
	max-width: 560px;
	flex-shrink: 0;
}
.pgw-ss-headline-line {
	margin: 0;
	font-size: 56px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.pgw-ss-cards {
	position: relative;
	width: 480px;
	height: 340px;
	flex-shrink: 0;
}
.pgw-ss-card {
	position: absolute;
	display: flex;
	flex-direction: column;
	width: 260px;
}
.pgw-ss-cards .pgw-ss-card:nth-child(1) {
	top: 0;
	left: 0;
	z-index: 1;
}
.pgw-ss-cards .pgw-ss-card:nth-child(2) {
	top: 90px;
	left: 110px;
	z-index: 2;
}

.pgw-ss-card-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 800;
}
.pgw-ss-metrics {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-bottom: 14px;
}
.pgw-ss-metric {
	margin: 0;
	font-size: 13px;
}

.pgw-ss-chart-wrap {
	position: relative;
	width: 100%;
	height: 120px;
}
.pgw-ss-chart {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	overflow: visible;
}
.pgw-ss-chart-line {
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.pgw-ss-chart-dots {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.pgw-ss-chart-dot {
	position: absolute;
	width: 7px;
	height: 7px;
	margin-left: -3.5px;
	margin-top: -3.5px;
	border-radius: 50%;
	background: #ffffff;
	border: 1.5px solid;
	box-sizing: border-box;
}
.pgw-ss-chart-grid {
	stroke-width: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
	.pgw-ss-headline-line {
		font-size: 42px;
	}
	.pgw-ss-cards {
		width: 380px;
		height: 300px;
		transform: scale(0.9);
		transform-origin: top right;
	}
}

@media (max-width: 900px) {
	.pgw-ss-stage {
		min-height: auto;
		padding: 60px 24px;
	}
	.pgw-ss-scene {
		position: relative;
		inset: auto;
		flex-direction: column;
		align-items: flex-start;
		padding: 0;
		gap: 60px;
	}
	.pgw-ss-scene--before {
		display: none; /* on small screens, skip the pin/scrub scene stack — show After only */
	}
	.pgw-ss-scene--after {
		opacity: 1;
		position: relative;
	}
	.pgw-ss-headline {
		max-width: 100%;
	}
	.pgw-ss-cards {
		width: 100%;
		max-width: 420px;
		height: 300px;
		margin: 0 auto;
		transform: none;
	}
}

@media (max-width: 480px) {
	.pgw-ss-headline-line {
		font-size: 32px;
	}
	.pgw-ss-cards {
		height: 260px;
	}
	.pgw-ss-card {
		width: 200px;
	}
	.pgw-ss-cards .pgw-ss-card:nth-child(2) {
		top: 70px;
		left: 70px;
	}
}
