/**
 * V&J Works Studio — sistema de movimiento compartido (hoja de estilos).
 *
 * Cargada en la portada (body.vj-home) y en /designs/ (body.vj-designs).
 * Estados finales por defecto (visible); el script vj-motion.js añade la clase
 * .vj-js a <html> y este CSS muestra el estado oculto inicial solo entonces.
 * Todo respeta prefers-reduced-motion.
 */

/* Scroll reveal: estado inicial (oculto) SOLO cuando JS está activo. */
.vj-js .reveal {
	opacity: 0;
	transform: translateY(22px);
	transition:
		opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
		transform 0.95s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: opacity, transform;
}
.vj-js .reveal.is-in-view {
	opacity: 1;
	transform: none;
}

/* Retardos escalonados para grupos (data-delay="1".."6"). */
.reveal[data-delay="1"] { transition-delay: 0.05s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.19s; }
.reveal[data-delay="4"] { transition-delay: 0.26s; }
.reveal[data-delay="5"] { transition-delay: 0.33s; }
.reveal[data-delay="6"] { transition-delay: 0.4s; }

/* Parallax moderado: el script escribe --plx según la posición de scroll. */
.is-parallax {
	transform: translateY(0);
	will-change: transform;
}
.is-parallax.is-active {
	transform: translateY(var(--plx, 0px));
	transition: transform 0.25s linear;
}

/* Movimiento reducido: se desactiva todo y se muestra contenido visible. */
@media (prefers-reduced-motion: reduce) {
	.vj-js .reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.is-parallax,
	.is-parallax.is-active {
		transform: none !important;
		transition: none !important;
	}
}
