/*
 * Awards + Benefits Stage
 *
 * Paint order inside the stage:
 *   0. backdrop        black, scroll-driven alpha (driven by the Benefits behavior)
 *   1. background      shared Industrial Experience image
 *   2. background mask pinned gradients over the image
 *   3. outline         pinned for the whole stage, releases in the last viewport
 *   4. both sections   transparent, so the outline reads through them
 */

.awards-benefits {
	position: relative;
	isolation: isolate;
	/* Matches the pure white of the next section, so the fading backdrop
	   never lets the page background show through. */
	background-color: #fff;
}

.awards-benefits__backdrop,
.awards-benefits__background-stage,
.awards-benefits__outline-stage {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.awards-benefits__backdrop {
	z-index: 0;
	background-color: rgb(0 0 0 / var(--ab-bg-alpha, 1));
}

.awards-benefits__background-stage {
	z-index: 1;
}

.awards-benefits__background-pin {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
}

.awards-benefits__background-pin::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 50%;
	pointer-events: none;
	z-index: 1;
}

.awards-benefits__background-pin::before {
	bottom: 0;
	background: linear-gradient(0deg, #000 0%, rgb(0 0 0 / 0%) 100%);
	opacity: calc(var(--ab-bg-alpha, 1) * var(--ab-seam-alpha, 1));
}

.awards-benefits__background {
	display: block;
	width: 100%;
	height: 100%;
	-webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 50%);
	mask-image: linear-gradient(0deg, transparent 0%, #000 50%);
	object-fit: cover;
}

.awards-benefits__outline-stage {
	z-index: 2;
}

.awards-benefits__outline-pin {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
}

.awards-benefits > .block_award-wrapper,
.awards-benefits > .block_benefits-wrapper {
	position: relative;
	z-index: 3;
	background-color: transparent;
}

/* Quiet stretch between the Awards grid leaving and the Benefits heading
   arriving, where only the outline is on screen. */
.awards-benefits > .block_benefits-wrapper {
	--benefits-fg: 255 255 255;

	padding-block-start: var(--ab-gap, 20vh);
}

@media (prefers-reduced-motion: reduce) {
	.awards-benefits__backdrop {
		--ab-bg-alpha: 1;
	}

	.awards-benefits__outline-pin {
		position: absolute;
		top: 0;
		height: 100svh;
	}

	.awards-benefits > .block_benefits-wrapper {
		padding-block-start: 4rem;
	}
}
