/*
 * Post-Header variant: showcase-fade (showcase family 01, divb-hq#302).
 *
 * The picture lags behind the page and dissolves into the paper; the text rises away faster.
 * The stage and the scrim are the family's (variant-showcase-base.css).
 *
 * **The scrim moves with the picture, not with the text.** It is part of the picture's look, so it
 * gets the picture's exact motion: the same distance, written once as `--mfph-sc-fade-lag` in px
 * of the stage rather than as a percentage of each box, and the same fade. Only the type rises.
 */

.mfph-showcase-fade .mfph-sc__stage {
	--mfph-sc-fade-lag: calc(var(--mfph-sc-stage) * 0.42);

	background: var(--mfph-sc-paper);
	view-timeline: --mfph-sc-fade block;
	view-timeline-inset: var(--mfph-site-header) 0;
}

@media (prefers-reduced-motion: no-preference) {

	@supports (animation-timeline: view()) {

		.mfph-showcase-fade .mfph-sc__bg,
		.mfph-showcase-fade .mfph-sc__text::before {
			animation: mfph-sc-fade-bg linear both;
			animation-timeline: --mfph-sc-fade;
			animation-range: exit 0% exit 100%;
		}

		.mfph-showcase-fade .mfph-sc__text > * {
			animation: mfph-sc-fade-text linear both;
			animation-timeline: --mfph-sc-fade;
			animation-range: exit 0% exit 60%;
		}
	}
}

@keyframes mfph-sc-fade-bg {

	to {
		opacity: 0;
		transform: translateY(var(--mfph-sc-fade-lag));
	}
}

@keyframes mfph-sc-fade-text {

	to {
		opacity: 0;
		transform: translateY(-60px);
	}
}
