/**
 * Fade up. AOS only toggles .aos-animate.
 *
 * This is an animation, not a transition. On a hard reload the finished
 * class is often present for the first paint, and a transition then has
 * no previous frame to move from. A keyframe animation still plays.
 *
 * Hidden styles apply only after animate-on-scroll.js marks the document,
 * so the editor and a failed script still show the content.
 */

@keyframes sa-fade-up {
	from {
		opacity: 0;
		transform: translate3d(0, 1.5rem, 0);
	}

	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

html.sa-aos [data-aos="fade-up"] {
	opacity: 0;
	transform: translate3d(0, 1.5rem, 0);
	pointer-events: none;
}

html.sa-aos [data-aos="fade-up"].aos-animate {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	pointer-events: auto;
	animation: sa-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--sa-aos-delay, 0s) backwards;
}

@media (prefers-reduced-motion: reduce) {
	html.sa-aos [data-aos="fade-up"],
	html.sa-aos [data-aos="fade-up"].aos-animate {
		opacity: 1;
		transform: none;
		pointer-events: auto;
		animation: none;
	}
}
