/* ===== Nasim Site — 3D Parallax Particle Grid (background layer) ===== */

/* Keep all app content above the background canvas. */
#root {
  position: relative;
  z-index: 1;
}

#nasim-p3d {
  position: fixed;
  inset: 0;
  /* above page backgrounds (screen blend, never clickable), below the header (z-50) */
  z-index: 2;
  mix-blend-mode: screen;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  animation: nasim-p3d-in 1.4s ease forwards;
  /* soft vignette so the grid fades toward the edges */
  -webkit-mask-image: radial-gradient(130% 100% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(130% 100% at 50% 45%, #000 55%, transparent 100%);
  contain: strict;
}

@keyframes nasim-p3d-in {
  to {
    opacity: 0.75;
  }
}

/* Never render on mobile / tablet, touch-only devices, or reduced-motion. */
@media (max-width: 1023.98px), (hover: none), (pointer: coarse) {
  #nasim-p3d {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #nasim-p3d {
    display: none !important;
  }
}
