/* T-052: melhoria progressiva. Sem suporte, tudo fica visível e estático. */
.forge-reveal {
	opacity: 1;
	transform: none;
}

@supports (animation-timeline: view()) and (animation-range: entry 0% cover 30%) {
	@media (prefers-reduced-motion: no-preference) {
		.forge-reveal {
			animation: forge-reveal var(--wp--custom--motion--duration--medium) var(--wp--custom--motion--easing) both;
			animation-delay: var(--wp--custom--motion--delay);
			/* Depois do shorthand, que redefine a timeline. */
			animation-timeline: view();
			animation-range: entry 0% cover 30%;
		}
	}
}

@keyframes forge-reveal {
	from { opacity: 0; transform: translateY(var(--wp--preset--spacing--30)); }
	to { opacity: 1; transform: none; }
}

/* Um descendente focado nunca pode ficar invisível durante a revelação. */
.forge-reveal:focus-within {
	animation: none !important;
	opacity: 1;
	transform: none;
}

/* Abrange também estilos do core e pseudo-elementos; não esconde conteúdo. */
@media (prefers-reduced-motion: reduce) {
	html, *, *::before, *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
	.forge-reveal {
		opacity: 1;
		transform: none;
	}
}
