/* William Milazi — motion, parallax, and reveal. */

.wm-reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.wm-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.wm-grid .wm-reveal:nth-child(1),
.wm-showcase .wm-reveal:nth-child(1) {
	transition-delay: 0.05s;
}

.wm-grid .wm-reveal:nth-child(2),
.wm-showcase .wm-reveal:nth-child(2) {
	transition-delay: 0.14s;
}

.wm-grid .wm-reveal:nth-child(3),
.wm-showcase .wm-reveal:nth-child(3) {
	transition-delay: 0.23s;
}

.wm-grid .wm-reveal:nth-child(4),
.wm-showcase .wm-reveal:nth-child(4) {
	transition-delay: 0.32s;
}

.wm-orbit {
	will-change: transform;
}

.wm-orbit--speckle img {
	animation: wm-orbit-spin 160s linear infinite;
	transform-origin: 50% 50%;
}

.wm-hero__shirt {
	will-change: transform;
	transition: transform 0.12s ease-out;
}

.wm-hero__stage.is-tilting .wm-hero__shirt {
	transition: none;
}

.wm-parallax {
	will-change: transform;
}

@keyframes wm-orbit-spin {
	from {
		transform: rotate(0deg);
	}

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

@media (prefers-reduced-motion: reduce) {
	.wm-reveal,
	.wm-hero__shirt,
	.wm-orbit,
	.wm-hotspot__dot,
	.wm-orbit svg,
	.wm-orbit__particles,
	.wm-parallax,
	.wp-block-button__link,
	.wm-btn,
	.wm-soon__shot,
	.wm-hero__arrow,
	.wm-word--shimmer .wm-word__inner,
	a {
		animation: none !important;
		transition: none !important;
		transform: none !important;
		opacity: 1 !important;
		will-change: auto;
	}
}
