/* Aurora background and surface treatment from the Valor home page. */
.valor-aurora-background {
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  background: #f7faff;
}

.valor-aurora-page .valor-aurora-background {
  display: block;
}

.valor-aurora-background :is(picture, img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.valor-aurora-background :is(img, video) {
  filter: brightness(1.3) saturate(2.15);
}

.valor-aurora-background video { opacity: 0; }
.valor-aurora-background video.is-playing { opacity: 1; }

.valor-aurora-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(247 250 255 / 58%);
}

[data-theme='dark'] .valor-aurora-background { background: #06111e; }
[data-theme='dark'] .valor-aurora-background :is(img, video) { filter: saturate(1.4); }
[data-theme='dark'] .valor-aurora-background::after { background: rgb(6 17 30 / 76%); }

@media screen and (not ((prefers-reduced-transparency: reduce) or (prefers-contrast: more) or (forced-colors: active))) {
  .valor-aurora-page :is(.hero, .workshop-card) {
    background: color-mix(in srgb, var(--valor-reading) 28%, transparent);
    backdrop-filter: blur(12px);
  }

  .valor-aurora-page .hero {
    background: color-mix(in srgb, var(--valor-reading) 76%, transparent);
  }

  html[data-theme='dark'] .valor-aurora-page :is(.hero, .workshop-card) {
    background: color-mix(in srgb, var(--valor-reading) 50%, transparent);
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active), print {
  .valor-aurora-page .valor-aurora-background { display: none; }
}
