/* ==========================================================================
   Experiment: animated aurora background in Epic Blue
   Soft, blurred light-blades that drift and breathe on slow CSS loops,
   over the Epic Blue ground, with film grain and a vignette.
   Pure CSS, no JavaScript. 0% keyframes are full bloom, so a still
   frame (or prefers-reduced-motion) still looks complete.
   ========================================================================== */

.content { background: #001d3a; }   /* a shade under Epic Blue #002d56, so the blades can glow */

/* the layer spans the whole page but its picture stays pinned to the viewport */
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora-view { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }

.blade { position: absolute; border-radius: 50%; filter: blur(46px); mix-blend-mode: screen; will-change: transform, opacity; }

/* deep ocean blue, the biggest and slowest */
.blade--1 { width: 120vmax; height: 26vmax; left: -30vmax; top: -6vmax;
  background: linear-gradient(100deg, transparent 0%, #0054a3 25%, #1466ad 55%, #2182c9 75%, transparent 100%);
  transform: rotate(-18deg); opacity: 1; animation: blade-1 22s ease-in-out infinite alternate; }
/* bright blue core */
.blade--2 { width: 90vmax; height: 14vmax; right: -28vmax; top: 18vh;
  background: linear-gradient(90deg, transparent 0%, #1466ad 20%, #2182c9 50%, #63adf5 70%, transparent 100%);
  transform: rotate(-28deg); opacity: .9; animation: blade-2 18s ease-in-out infinite alternate; }
/* tide cyan tip */
.blade--3 { width: 70vmax; height: 7vmax; left: -10vmax; top: 46vh;
  background: linear-gradient(90deg, transparent 0%, #19cfe8 40%, #00d5ff 60%, transparent 100%);
  transform: rotate(-22deg); opacity: .6; animation: blade-3 15s ease-in-out infinite alternate; }
/* faint sea-green shimmer */
.blade--4 { width: 60vmax; height: 6vmax; right: -16vmax; top: 64vh;
  background: linear-gradient(90deg, transparent 0%, #2a9d8f 45%, #63d6c2 65%, transparent 100%);
  transform: rotate(-14deg); opacity: .32; animation: blade-4 20s ease-in-out infinite alternate; }

@keyframes blade-1 { 0% { transform: translate(0, 0) rotate(-18deg) scale(1); opacity: 1 } 50% { opacity: .7 } 100% { transform: translate(8vmax, 6vmax) rotate(-12deg) scale(1.08); opacity: .9 } }
@keyframes blade-2 { 0% { transform: translate(0, 0) rotate(-28deg) scale(1); opacity: .9 } 50% { opacity: .55 } 100% { transform: translate(-10vmax, 8vmax) rotate(-20deg) scale(1.12); opacity: .8 } }
@keyframes blade-3 { 0% { transform: translate(0, 0) rotate(-22deg) scale(1); opacity: .6 } 50% { opacity: .3 } 100% { transform: translate(12vmax, -6vmax) rotate(-30deg) scale(1.15); opacity: .5 } }
@keyframes blade-4 { 0% { transform: translate(0, 0) rotate(-14deg) scale(1); opacity: .32 } 50% { opacity: .16 } 100% { transform: translate(-8vmax, -8vmax) rotate(-6deg) scale(1.1); opacity: .26 } }

/* vignette: keeps the edges in Epic Blue so text stays readable */
.aurora-vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0,24,48,.45) 82%, rgba(0,24,48,.8) 100%); }
/* film grain (SVG turbulence), so it never reads as a flat gradient */
.aurora-grain { position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* smaller screens: lighter blur, smaller blades (cheaper on phones) */
@media (max-width: 1023px) {
  .blade { filter: blur(32px); }
}

@media (prefers-reduced-motion: reduce) {
  .blade { animation: none !important; }
}
