/* Homepage-only, low-contrast dot field. The CSS pattern remains visible when
   animation is unavailable, disabled, or deliberately not loaded. */
body.nd-home-dots {
  position: relative;
  isolation: isolate;
}

body.nd-home-dots > .nd-landing-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(91, 101, 111, .26) .85px, transparent 1px);
  background-position: 14px 12px;
  background-size: 32px 32px;
}

.nd-landing-background canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 180ms ease-out;
}

body.nd-dots-animated > .nd-landing-background {
  background-image: none;
}

body.nd-dots-animated > .nd-landing-background canvas {
  opacity: .66;
}

/* Keep the existing homepage hero readable while allowing the dots to show
   through its formerly opaque white surface. Other colored/card surfaces stay
   untouched. */
body.nd-home-dots .nd-home-hero {
  background: transparent !important;
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  body.nd-landing-motion > .nd-landing-background canvas {
    display: none;
  }
}
