.service-stack {
	--stack-ink: #1C2328;
	--stack-accent: var(--theme-primary, #0E5C86);
	--stack-paper: #f3f6f8;
	--stack-top: 5.5rem;
	--stack-peek: 14px;
	position: relative;
	padding: 4.5rem 0 0;
	background: #e7eef3;
}

.service-stack__intro {
	max-width: 40rem;
	margin: 0 auto 1.5rem;
	text-align: center;
}

.service-stack__intro h2 {
	margin: 0;
	color: var(--stack-ink);
	font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
	font-size: clamp(2.4rem, 5vw, 4.2rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 0.95;
	text-transform: uppercase;
}

.service-stack__track {
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
	padding-bottom: 4rem;
}

.service-stack__card {
	position: sticky;
	top: calc(var(--stack-top) + var(--stack) * var(--stack-peek));
	z-index: calc(var(--stack) + 1);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
	min-height: calc(100svh - var(--stack-top) - 1.5rem - var(--stack) * var(--stack-peek));
	margin-bottom: 1.25rem;
	background: #ffffff;
	border-radius: 1.7rem;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
	overflow: hidden;
}

.service-stack__card:last-child {
	margin-bottom: 0;
}

.service-stack__copy,
.service-stack__media {
	min-height: 420px;
}

.service-stack__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 4rem;
	background: transparent;
}

.service-stack__copy h3 {
	margin: 0 0 1rem;
	color: #16181d;
	font-size: clamp(1.8rem, 2.6vw, 2.5rem);
	font-weight: 700;
	line-height: 1.05;
}

.service-stack__summary {
	margin: 0;
	color: #4a5562;
	font-size: 1.02rem;
	line-height: 1.55;
}

.service-stack__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.6rem;
}

.service-stack__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.65rem 1.25rem;
	border-radius: 999px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.service-stack__btn--ghost {
	border: 1.5px solid var(--stack-ink);
	color: var(--stack-ink);
	background: transparent;
}

.service-stack__btn--solid {
	border: 1.5px solid var(--stack-ink);
	background: var(--stack-ink);
	color: #fff;
}

.service-stack__btn--ghost:hover,
.service-stack__btn--ghost:focus {
	background: #fff;
	color: var(--stack-ink);
	text-decoration: none;
}

.service-stack__btn--solid:hover,
.service-stack__btn--solid:focus {
	background: var(--stack-accent);
	border-color: var(--stack-accent);
	color: #fff;
	text-decoration: none;
}

.service-stack__media {
	position: relative;
	background: var(--stack-ink);
}

.service-stack__media img,
.service-stack__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.service-stack__video {
	position: absolute;
	inset: 0;
}

.service-stack__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 74px;
	height: 74px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--stack-ink);
	transform: translate(-50%, -50%);
	cursor: pointer;
}

.service-stack__play span {
	display: block;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 16px solid #fff;
}

.service-stack__media.is-playing .service-stack__play,
.service-stack__media.is-playing img {
	opacity: 0;
	pointer-events: none;
}

.service-stack__card:nth-child(even) .service-stack__media {
	order: -1;
}

@media (max-width: 767px) {
	.service-stack {
		--stack-top: 4.6rem;
		--stack-peek: 10px;
		padding-top: 3rem;
	}

	.service-stack__track {
		width: min(1120px, calc(100% - 1rem));
	}

	.service-stack__card,
	.service-stack__card:nth-child(even) .service-stack__media {
		grid-template-columns: 1fr;
		min-height: 0;
		order: 0;
	}

	.service-stack__card:nth-child(even) .service-stack__media {
		order: -1;
	}

	.service-stack__media {
		height: 220px;
		min-height: 220px;
	}

	.service-stack__copy {
		min-height: 0;
		padding: 1.3rem 1.1rem 1.4rem;
	}

	.service-stack__actions {
		flex-direction: column;
	}

	.service-stack__btn {
		width: 100%;
	}
}
