/* ==========================================================================
   [wayvo-scatter-card-ender] — see shortcodes/wayvoScatterCardEnder.php for
   the three designs, the background colour option and how the card art was
   cleaned.

   The band is the design frame's shape (16:9 on desktop, 400:790 on
   phones), capped at the screen height — Paul's "fit the page" rule — with
   the card art drawn object-fit: cover, so a capped band trims cards top and
   bottom rather than squashing them. The copy sits in the middle.

   Same unit as the other new sections: --wvsce-u is rendered px per laptop
   px (100cqw / 1440, stopping at 1.333). The H2 and kicker have their own
   1440 -> 1920 lines, measured off the monitor PNG (56 -> 78, 20 -> 24).
   Since 2026-10-21 all of them read --wv-cw instead of 100cqw, so the copy
   stops at its 1440 size (content max, tokens.css); the card art and the
   band's height still follow the full screen width.

   Vendor fights: h2 / p / img rules at (0,2,1), over Elementor's and the
   kit's (0,1,1).
   ========================================================================== */

.wv-sce-wrap {
	container-type: inline-size;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.wv-sce {
	--wvsce-u: clamp(0.5px, calc(var(--wv-cw, 100cqw) / 1440), 1.3334px);

	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: min(calc(100cqw * 810 / 1440), max(92svh, 560px));
	padding: calc(80 * var(--wvsce-u)) 20px;
	overflow: hidden;
	background-color: var(--wvsce-bg, #ffffff);
	color: var(--wv-ink, #101011);
	font-family: var(--wv-btn-font, "Geist", sans-serif);
	isolation: isolate;
}

.wv-sce__art {
	position: absolute;
	inset: 0;
	z-index: -1;
	display: block;
	pointer-events: none;
}

.wv-sce .wv-sce__art img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 50%;
}

/* ── Copy ──────────────────────────────────────────────────────────────── */
.wv-sce__content {
	max-width: var(--wv-content-max, 1440px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(40 * var(--wvsce-u));
	text-align: center;
}

.wv-sce__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(20 * var(--wvsce-u));
}

.wv-sce p.wv-sce__kicker {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: min(24px, max(20px, calc(var(--wv-cw, 100cqw) * 0.008333 + 8px)));
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.01em;
	text-align: center;
}

/* 686 wide at 56px = 12.25em, which gives the design's two lines. */
.wv-sce h2.wv-sce__title {
	max-width: 12.25em;
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: max(40px, min(78px, max(calc(56 * var(--wvsce-u)), calc(var(--wv-cw, 100cqw) * 0.045833 - 10px))));
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.02em;
	text-align: center;
	text-transform: none;
}

.wv-sce__muted {
	color: var(--wv-grey-500, #8d8b8b);
}

.wv-sce__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: calc(16 * var(--wvsce-u));
}

/* The export's 46px tier, scaled; tokens overridden on the element. */
.wv-sce .wv-sce__cta {
	flex: none;
	--wv-btn-pad-y: 0px;
	--wv-btn-pad-x: max(14.22px, calc(20 * var(--wvsce-u)));
	--wv-btn-min-h: max(32.71px, calc(46 * var(--wvsce-u)));
	--wv-btn-size: max(12px, calc(16 * var(--wvsce-u)));
}

/* ── Phones ──────────────────────────────────────────────────────────────────
   From the mobile frame: 400 x 790, capped at the screen like desktop. */
@media (max-width: 767px) {

	.wv-sce {
		min-height: min(calc(100cqw * 790 / 400), max(100svh, 600px));
		padding: 120px 25px;
	}

	.wv-sce__content {
		gap: 28.44px;
	}

	.wv-sce__copy {
		gap: 14.22px;
	}

	/* 242 wide at 20px — two lines. */
	.wv-sce p.wv-sce__kicker {
		max-width: 12.1em;
		font-size: 20px;
	}

	/* 336 wide at 40px — three lines. */
	.wv-sce h2.wv-sce__title {
		max-width: 8.4em;
		font-size: 40px;
		line-height: 1.1;
	}

	.wv-sce__buttons {
		gap: 11.38px;
	}

	.wv-sce .wv-sce__cta {
		--wv-btn-pad-x: 14.22px;
		--wv-btn-min-h: 32.71px;
		--wv-btn-size: 12px;
		--wv-btn-tracking: -0.02em;
	}
}
