/* ==========================================================================
   Virtual360 Premium – animations.css
   Starting states for scroll reveals and decorative loops.
   Elements are only hidden when JavaScript is running (html.v360-js) and the
   visitor has not asked for reduced motion. A fail-safe shows everything if
   the animation script does not start.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.v360-js [data-reveal],
	.v360-js [data-hero-item],
	.v360-js [data-hero-visual] {
		opacity: 0;
		animation: v360-failsafe 0.6s ease 2.5s forwards;
	}
	.v360-js [data-split] { opacity: 0; animation: v360-failsafe 0.6s ease 2.5s forwards; }
	.v360-anim-ready [data-reveal],
	.v360-anim-ready [data-hero-item],
	.v360-anim-ready [data-hero-visual],
	.v360-anim-ready [data-split] { animation: none; }

	/* IntersectionObserver fallback (used if GSAP is unavailable). */
	.v360-io [data-reveal] { transform: translateY(28px); transition: opacity 0.8s var(--v360-ease), transform 0.8s var(--v360-ease); }
	.v360-io [data-reveal].is-visible { opacity: 1; transform: none; }

	.v360-orb { animation: v360-drift 18s ease-in-out infinite alternate; }
	.v360-orb--2 { animation-duration: 22s; animation-direction: alternate-reverse; }
	.v360-orb--3 { animation-duration: 26s; }
	.v360-mock__shape { animation: v360-spin 24s linear infinite; }
	.v360-bars i { animation: v360-grow 1.4s var(--v360-ease) both; }
	.v360-bars i:nth-child(2) { animation-delay: 0.08s; } .v360-bars i:nth-child(3) { animation-delay: 0.16s; }
	.v360-bars i:nth-child(4) { animation-delay: 0.24s; } .v360-bars i:nth-child(5) { animation-delay: 0.32s; }
	.v360-bars i:nth-child(6) { animation-delay: 0.4s; } .v360-bars i:nth-child(7) { animation-delay: 0.48s; }
	.v360-ring__fg { animation: v360-ring 2s var(--v360-ease) 0.6s both; }
}

/* Split-text word wrappers created by animations.js */
.v360-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.v360-word > span { display: inline-block; will-change: transform; }
/* Gradient text must be re-applied on each animated word inside <em>. */
em .v360-word > span { background: var(--v360-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v360-dark em .v360-word > span { background: linear-gradient(120deg, #ff3d74, #ff8aa9 60%, #ffc2d3); -webkit-background-clip: text; background-clip: text; }

@keyframes v360-failsafe { to { opacity: 1; } }
@keyframes v360-drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(-60px, 40px, 0) scale(1.12); } }
@keyframes v360-spin { to { transform: rotate(360deg); } }
@keyframes v360-grow { from { transform: scaleY(0.1); } }
@keyframes v360-ring { from { stroke-dashoffset: 113; } }
@keyframes v360-marquee { to { transform: translateX(-50%); } }
@keyframes v360-pulse { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes v360-scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@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; }
	.v360-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
	.v360-marquee__track li[aria-hidden="true"] { display: none; }
	.v360-particles { display: none; }
}
