/* Optimised, silent footage sits behind the complete mode-selection screen. */
#splash { max-width: none; width: 100%; min-height: 100dvh; }
#splash > :is(.splash-top, .mode-grid, .splash-bottom) { width: 100%; max-width: 2080px; margin-inline: auto; }
#splash .splash-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: #090c0d url('assets/splash-wave-poster.jpg') center / cover no-repeat;
}

#splash .splash-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#splash .splash-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #06090c9c, #070b0f59 38%, #080c1066 65%, #06090cb5);
}

/* Keep the two modes distinct without covering the new background entirely. */
#splash .virus-card { background: linear-gradient(135deg, #1b1114b8, #101215c9 82%); }
#splash .response-card { background: linear-gradient(135deg, #172023bf, #101416d4 82%); }

/* A full elliptical feather removes every rectangular edge of the footage. */
#splash .virus-card .virus-motion,
#splash .virus-card:hover .virus-motion,
#splash .response-card .response-motion,
#splash .response-card:hover .response-motion {
  object-fit: cover;
  pointer-events: none;
  animation: none;
  transform: none;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 42%, #000f 54%, #000b 70%, #0004 87%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side, #000 42%, #000f 54%, #000b 70%, #0004 87%, transparent 100%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

/* Balance the wide command-table composition against the round specimen. */
#splash .response-card .response-motion,
#splash .response-card:hover .response-motion { transform: scale(1.16); }

/* The actual footage replaces the previous simulated orbits. */
#splash .virus-card .mode-scene::after,
#splash .response-card .mode-scene::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  #splash .splash-media video { visibility: hidden; }
}
