/* Montage · the site · the background behind the home, pricing, contact and legal pages (the case study has js/case-bg.js; 404 stays plain).
   Three large, soft lights in the film's colours drift slowly in the dark: lamplight high on the left, a little ember low on the
   right, and night blue across the middle. They are fixed to the screen, so they run the whole way down without a seam, and they
   shift a little as the page scrolls (where the browser has scroll-driven animations). Plain CSS: only rotate, scale and translate
   change, so the compositor moves them; no script, nothing to load, no pointer, no space taken. With reduced motion they hold still.
   Their peaks are capped so the quietest words (#858585) stay above 4.5:1 even where two lights overlap. */

body { isolation: isolate; }
body::before, body::after {
  content: ""; position: fixed; left: 50%; top: 50%;
  width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax;
  pointer-events: none;
}
/* lamplight and ember; under the content and above the page's dark */
body::before {
  z-index: -1;
  background:
    radial-gradient(30vmax 24vmax at 34% 37%, rgba(238, 186, 112, 0.085) 0%, rgba(238, 186, 112, 0.04) 45%, rgba(238, 186, 112, 0) 100%),
    radial-gradient(26vmax 22vmax at 64% 66%, rgba(222, 78, 36, 0.11) 0%, rgba(222, 78, 36, 0.048) 45%, rgba(222, 78, 36, 0) 100%);
}
/* night blue; below the lamplight and below any picture that sits at z-index -1 in its section (the close's) */
body::after {
  z-index: -2;
  background: radial-gradient(38vmax 26vmax at 61% 49%, rgba(48, 86, 214, 0.2) 0%, rgba(48, 86, 214, 0.085) 45%, rgba(48, 86, 214, 0) 100%);
}

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: bg-warm 46s ease-in-out infinite alternate; }
  body::after { animation: bg-blue 58s ease-in-out infinite alternate; }
  @supports (animation-timeline: scroll()) {
    body::before { animation: bg-warm 46s ease-in-out infinite alternate, bg-warm-scroll linear both; animation-timeline: auto, scroll(root); }
    body::after { animation: bg-blue 58s ease-in-out infinite alternate, bg-blue-scroll linear both; animation-timeline: auto, scroll(root); }
  }
}
@keyframes bg-warm { from { rotate: -9deg; scale: 1; } to { rotate: 11deg; scale: 1.1; } }
@keyframes bg-blue { from { rotate: 8deg; scale: 1.06; } to { rotate: -12deg; scale: 0.96; } }
@keyframes bg-warm-scroll { from { translate: 0 0; } to { translate: 6vw -16vh; } }
@keyframes bg-blue-scroll { from { translate: 0 0; } to { translate: -8vw 12vh; } }
