/**
 * Section fade-in animations.
 *
 * Sections are tagged with `.fade-in` in the templates (see js/animations.js for
 * the editor-content fallback). The `.js-fade` gate is set on <html> from the
 * head, so the styles below only ever apply when the script can reveal them
 * again - without JS every section stays visible.
 */

.js-fade .fade-in {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
		transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-fade .fade-in.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {

	.js-fade .fade-in,
	.js-fade .fade-in.is-visible {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
