/* ProWP Car — premium card reveal on scroll.
 *
 * Progressive enhancement: the hidden state only exists once the script has
 * added `onl-reveal-pending` to a card, so the content is always fully
 * visible when JavaScript is unavailable or fails.
 *
 * Only opacity and transform are animated, so nothing shifts the layout.
 * The motion is disabled entirely for visitors who ask for reduced motion
 * and when the global "Card reveal animation" switch is off
 * (body class `pwc-card-reveal-off`).
 */

.onl-reveal-card {
	transition:
		opacity 0.62s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: var(--onl-reveal-delay, 0ms);
}

.onl-reveal-card.onl-reveal-pending {
	opacity: 0;
	transform: translate3d(0, 18px, 0);
}

.onl-reveal-card.onl-reveal-done {
	opacity: 1;
	transform: none;
}

/* Safety net: a reveal must never leave content invisible. */
@media (prefers-reduced-motion: reduce) {
	.onl-reveal-card {
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

body.pwc-card-reveal-off .onl-reveal-card {
	transition: none;
	opacity: 1;
	transform: none;
}
