/* PROJECT ATMOS — MATRIX COLOR TUNE
   Research Overview: brighter BLUE + CRIMSON
   Dossier Library: brighter BLUE + GOLD
   Keeps the original matrix-06.png movement, tile size and 23s timing.
*/

/* Slightly brighter original blue layer on both pages. */
body.ar-body.ar-overview::before,
body.ar-body.ar-library::before {
  opacity: 0.79;
}

/* Research Overview companion: crimson. */
body.ar-body.ar-overview::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/phase-atmospheres/matrix-06.png");
  background-repeat: repeat;
  background-size: 900px 1300px;
  background-position: calc(50% + 170px) 0;
  opacity: 0.68;
  filter: grayscale(1) sepia(1) saturate(7.6) hue-rotate(316deg) brightness(1.20);
  mix-blend-mode: screen;
  animation: ar-overview-companion-rain 23s linear infinite;
}

/* Dossier Library companion: gold. */
body.ar-body.ar-library::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/phase-atmospheres/matrix-06.png");
  background-repeat: repeat;
  background-size: 900px 1300px;
  background-position: calc(50% + 170px) 0;
  opacity: 0.68;
  filter: grayscale(1) sepia(1) saturate(8.2) hue-rotate(342deg) brightness(1.26);
  mix-blend-mode: screen;
  animation: ar-library-companion-rain 23s linear infinite;
}

@keyframes ar-overview-companion-rain {
  from { background-position: calc(50% + 170px) 0; }
  to   { background-position: calc(50% + 170px) 1300px; }
}
@keyframes ar-library-companion-rain {
  from { background-position: calc(50% + 170px) 0; }
  to   { background-position: calc(50% + 170px) 1300px; }
}

@media (max-width: 760px) {
  body.ar-body.ar-overview::before,
  body.ar-body.ar-library::before { opacity: 0.61; }
  body.ar-body.ar-overview::after { opacity: 0.63; }
  body.ar-body.ar-library::after { opacity: 0.63; }
}

@media (prefers-reduced-motion: reduce) {
  body.ar-body.ar-overview::after,
  body.ar-body.ar-library::after { animation: none; }
}
