/* Homepage decoration only. Keep every interactive element above the paint. */
.nd-paint-intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
  user-select: none;
  background: transparent;
  opacity: 0;
}

/* These declarations apply only while the temporary video exists. */
body.nd-paint-active :is(a, button, input, select, textarea),
body.nd-paint-active .card:has(a),
body.nd-paint-active .cookie-panel {
  position: relative;
  z-index: 41;
}

body.nd-paint-active header {
  z-index: 42;
}

body.nd-paint-active .skip-link {
  position: fixed;
  z-index: 100;
}

@media (max-width: 900px), (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .nd-paint-intro { display: none; }
}

/* V5 native image animation; page controls retain the original stacking rules. */
.nd-paint-mobile {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  contain: layout paint;
  pointer-events: none;
  user-select: none;
  background: transparent;
  opacity: 0;
}
.nd-paint-mobile-animation {
  position: absolute;
  display: block;
  left: 0;
  top: 45%;
  width: 145%;
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  pointer-events: none;
  background: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .nd-paint-mobile { display: none; }
}

/* Opacity only: no JavaScript animation loop or layout changes during playback. */
@keyframes nd-paint-fade { from { opacity: 1; } to { opacity: 0; } }
