@media (prefers-reduced-motion: no-preference) {
  .statement-band::after,
  .contact-section::after,
  .site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    will-change: opacity;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }

  .statement-band::after {
    background:
      radial-gradient(ellipse at 29% 65%, #9584e6 0%, #9584e600 66%),
      radial-gradient(ellipse at 83% 38%, #ffc29b 0%, #ffc29b00 63%);
    
    -webkit-mask: url('assets/ribbon.svg') center / 100% 100% no-repeat;
    mask: url('assets/ribbon.svg') center / 100% 100% no-repeat;
    mask-mode: alpha;
    opacity: .025;
    animation-name: ribbon-colour-breath;
    animation-duration: 34s;
  }

  .contact-section::after {
    background:
      radial-gradient(ellipse 72% 66% at 22% 24%, #9281e1 0%, #9281e100 75%),
      radial-gradient(ellipse 64% 70% at 90% 35%, #ffc29b 0%, #ffc29b00 77%);
    -webkit-mask: url('assets/contact-surface.svg') center / 100% 100% no-repeat;
    mask: url('assets/contact-surface.svg') center / 100% 100% no-repeat;
    mask-mode: alpha;
    opacity: .02;
    animation-name: contact-colour-breath;
    animation-duration: 38s;
  }

  
  :is(#kontakt, :has(.contact-grid--form)).contact-section::after {
    -webkit-mask-image: url('assets/contact-surface.svg'), linear-gradient(#000, #000);
    mask-image: url('assets/contact-surface.svg'), linear-gradient(#000, #000);
    -webkit-mask-position: top center, bottom center;
    mask-position: top center, bottom center;
    -webkit-mask-size: 100% 800px, 100% calc(100% - 799px);
    mask-size: 100% 800px, 100% calc(100% - 799px);
    -webkit-mask-repeat: no-repeat, no-repeat;
    mask-repeat: no-repeat, no-repeat;
    mask-mode: alpha, alpha;
  }

  .site-footer { position: relative; isolation: isolate; }
  .site-footer::after {
    background:
      radial-gradient(ellipse at 27% 72%, #9281e1 0%, #9281e100 68%),
      radial-gradient(ellipse at 90% 65%, #ffc29b 0%, #ffc29b00 70%);
    opacity: .015;
    animation-name: footer-colour-breath;
    animation-duration: 38s;
  }

  @keyframes ribbon-colour-breath {
    0%, 100% { opacity: .025; }
    50% { opacity: .12; }
  }
  @keyframes contact-colour-breath {
    0%, 100% { opacity: .02; }
    50% { opacity: .095; }
  }
  @keyframes footer-colour-breath {
    0%, 100% { opacity: .015; }
    50% { opacity: .07; }
  }

  
  :is(.statement-band, .contact-section, .site-footer).motion-paused::after,
  html.motion-suspended :is(.statement-band, .contact-section, .site-footer)::after {
    animation-play-state: paused;
    will-change: auto;
  }
}
