/* ==========================================================================
   Closing CTA — dark band with an angled image
   ========================================================================== */

.eit-cta {
	position: relative;
	background: #000000;
	overflow: hidden;
}

.eit-cta__inner {
	max-width: var(--eit-wrap);
	margin-inline: auto;
	padding: clamp(46px, 6vw, 86px) clamp(18px, 3vw, 30px);
	display: grid;
	gap: clamp(30px, 4vw, 48px);
	grid-template-columns: 1fr;
	align-items: center;
}

@media (min-width: 900px) {
	.eit-cta__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
		/* No vertical padding on desktop: the row's height comes from the
		   artwork, and the copy is centred against it. The image's negative
		   block margins then push it past the band, top and bottom, which is
		   the overhang in the reference. */
		padding-block: 0;
		/* The artwork bleeds past the container on the right, so the band
		   reads as one continuous shape. */
		padding-right: 0;
	}
}

/* ---------- Copy ---------- */

.eit-cta__title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(26px, 3.2vw, 44px);
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -.02em;
}

.eit-cta__line {
	display: block;
	/* Even line lengths, so a long heading never leaves one word on a line. */
	text-wrap: balance;
}
/* A lifted blue rather than the body accent: #3b4fe8 is too dark to read
   against black. Same hue, brighter. */
.eit-cta__line--accent { color: var(--eit-accent-light, #8494ff); }

/* Optional supporting line under the heading (used on technology pages). */
.eit-cta__text {
	margin: clamp(14px, 1.6vw, 20px) 0 0;
	max-width: 52ch;
	color: rgba(255, 255, 255, .78);
	font-size: clamp(16px, 1.3vw, 18px);
	line-height: 1.65;
}

.eit-cta__action { margin-top: clamp(24px, 3vw, 38px); }

/* ---------- Artwork ----------
   The slanted edges are a clip-path rather than a pre-cut image, so the same
   photograph can be swapped in from the Media Library without anyone having to
   re-cut it in an editor. */

.eit-cta__media {
	position: relative;
	line-height: 0;
}

.eit-cta__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	-webkit-clip-path: polygon(6% 4%, 100% 0%, 96% 100%, 0% 92%);
	clip-path: polygon(6% 4%, 100% 0%, 96% 100%, 0% 92%);
}

@media (min-width: 900px) {
	/* The band has no padding of its own on desktop (its height comes from the
	   artwork), so the copy carries its own. A short heading still sits inside
	   the artwork's height; a longer one grows the band instead of running into
	   its edges. */
	.eit-cta__copy { padding-block: clamp(52px, 5vw, 84px); }

	.eit-cta__media {
		/* Pull the image up and down past the band's padding so it overhangs
		   the black, matching the reference. */
		margin-block: clamp(-46px, -4vw, -20px);
	}
	.eit-cta__img { min-height: clamp(280px, 30vw, 430px); }
}

@media (max-width: 899px) {
	.eit-cta__img {
		-webkit-clip-path: polygon(4% 3%, 100% 0%, 97% 100%, 0% 95%);
		clip-path: polygon(4% 3%, 100% 0%, 97% 100%, 0% 95%);
		max-height: 300px;
	}
}
