/* Kit motion primitives — merged from mesterpc-kit/motion/motion.css */

:root {
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal] {
	transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.motion-ready [data-reveal]:not(.visible) {
	opacity: 0;
	transform: translateY(16px);
	animation: mesterpc-reveal-fallback 0.35s var(--ease) 1.1s forwards;
}

@keyframes mesterpc-reveal-fallback {
	to {
		opacity: 1;
		transform: none;
	}
}

.lift {
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

@media (hover: hover) {
	.lift:hover {
		transform: translateY(-4px);
		box-shadow: 0 12px 30px rgba(16, 36, 58, 0.12);
	}
}

.mask {
	animation: editorial-unmask 0.65s var(--ease) both;
}

@keyframes editorial-unmask {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0);
	}
}

.typing span {
	display: inline-block;
	animation: editorial-pulse 1.2s infinite alternate;
}

.typing span:nth-child(2) {
	animation-delay: 0.2s;
}

.typing span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes editorial-pulse {
	to {
		opacity: 0.3;
		transform: translateY(-3px);
	}
}

details[open] > *:not(summary) {
	animation: editorial-enter 0.2s var(--ease);
}

@keyframes editorial-enter {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.motion-ready [data-reveal],
	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}

	.mask {
		animation: none !important;
	}
}