/* Global motion: scroll fade-up + hero ring rotation */

[data-animate] {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.6s var(--ease-default),
		transform 0.6s var(--ease-default);
	will-change: opacity, transform;
}

[data-animate].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@keyframes ri-spin-slow {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.hero__ring {
	animation: ri-spin-slow 60s linear infinite;
}

.hero__ring--inner {
	animation-direction: reverse;
	animation-duration: 75s;
}

body.has-nav-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	[data-animate],
	.hero__tag[data-animate] {
		opacity: 1;
		transition: none;
		will-change: auto;
	}

	.hero__tag--left[data-animate],
	.hero__tag--left[data-animate].is-visible {
		transform: translate(-4%, -50%);
	}

	.hero__tag--top-right[data-animate],
	.hero__tag--bottom-left[data-animate],
	.hero__tag--top-right[data-animate].is-visible,
	.hero__tag--bottom-left[data-animate].is-visible {
		transform: none;
	}

	.hero__tag--bottom-right[data-animate],
	.hero__tag--bottom-right[data-animate].is-visible {
		transform: translate(4%, -50%);
	}

	.hero__ring {
		animation: none;
	}
}
