/* ============================================================
   VVNyx cinematic FX primitives — shared across pages.
   Compositor-only (opacity / transform / blend). The decorative
   overlays sit at z-index:-1: above the cosmic background and
   particles, below all content. Everything collapses gracefully
   under prefers-reduced-motion.
   ============================================================ */

@import url('/assets/vvnyx.css'); /* shared VVNyx design system (scrollbar, spinner, tokens) */

/* Filmic edge darkening — gives the page a lens/vignette feel. */
.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 110% at 50% 36%, transparent 52%, rgba(2, 1, 6, 0.55) 100%);
}

/* Subtle static film grain (one cheap SVG noise tile, blended, no animation). */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* Slow sheen that travels across gradient text (apply to a gradient-clipped span). */
.shimmer { background-size: 220% auto; animation: vv-sheen 7.5s linear infinite; }
@keyframes vv-sheen { to { background-position: 220% center; } }

/* Cinematic entrance: rise + de-blur. Toggled by adding .in (JS, staggered). */
.rise {
  opacity: 0; transform: translateY(26px) scale(0.985); filter: blur(8px);
  transition: opacity 0.85s cubic-bezier(.2,.8,.2,1),
              transform 0.85s cubic-bezier(.2,.8,.2,1),
              filter 0.85s ease;
  will-change: opacity, transform, filter;
}
.rise.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
  .shimmer { animation: none; }
  .rise { opacity: 1; transform: none; filter: none; transition: none; }
}
