/*
 * Hero intro choreography (section with data-e2-intro): the heading appears word by word, then the
 * elements after it (text, button) rise in one by one. Only with JavaScript and when the visitor
 * has not asked for reduced motion; if the script never runs, everything shows after 2.5s anyway.
 */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
	[data-e2-intro] h1,
	[data-e2-intro] h1 ~ * { opacity: 0; }

	/* safety net: script did not run */
	[data-e2-intro]:not(.is-intro) h1,
	[data-e2-intro]:not(.is-intro) h1 ~ * { animation: e2-intro-show 0s 2.5s forwards; }

	[data-e2-intro].is-intro h1 { opacity: 1; }
	[data-e2-intro] .e2-w {
		display: inline-block;
		opacity: 0;
		transform: translateY(.45em);
		filter: blur(6px);
		animation: e2-intro-word .8s cubic-bezier(.22, .61, .36, 1) forwards;
		animation-delay: calc(var(--i, 0) * 80ms + 150ms);
	}
	[data-e2-intro].is-intro h1 ~ * {
		animation: e2-intro-rise .9s cubic-bezier(.22, .61, .36, 1) forwards;
		animation-delay: var(--d, 0ms);
	}
}
@keyframes e2-intro-word { to { opacity: 1; transform: none; filter: none; } }
@keyframes e2-intro-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes e2-intro-show { to { opacity: 1; } }
