﻿.dust-hero {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.dust-hero-glows {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.dust-hero-glows span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.dust-hero-glows span:nth-child(1) {
  width: 84vmax;
  height: 84vmax;
  left: 69%;
  top: 65%;
  background: radial-gradient(closest-side, rgba(135, 45, 255, 0.20), transparent 60%);
  animation: dust-hero-glow-drift-1 36s ease-in-out infinite alternate, dust-hero-glow-hue-1 23s ease-in-out infinite alternate;
}

.dust-hero-glows span:nth-child(2) {
  width: 76vmax;
  height: 76vmax;
  left: 29%;
  top: 31%;
  background: radial-gradient(closest-side, rgba(29, 121, 255, 0.18), transparent 60%);
  animation: dust-hero-glow-drift-2 44s ease-in-out infinite alternate, dust-hero-glow-hue-2 29s ease-in-out infinite alternate;
}

.dust-hero-glows span:nth-child(3) {
  width: 60vmax;
  height: 60vmax;
  left: 17%;
  top: 81%;
  background: radial-gradient(closest-side, rgba(228, 99, 201, 0.12), transparent 55%);
  animation: dust-hero-glow-drift-3 30s ease-in-out infinite alternate, dust-hero-glow-hue-3 19s ease-in-out infinite alternate;
}

.dust-hero-glows span:nth-child(4) {
  width: 64vmax;
  height: 64vmax;
  left: 81%;
  top: 22%;
  background: radial-gradient(closest-side, rgba(44, 208, 236, 0.08), transparent 55%);
  animation: dust-hero-glow-drift-4 40s ease-in-out infinite alternate, dust-hero-glow-hue-4 26s ease-in-out infinite alternate;
}

.dust-hero-glows span:nth-child(5) {
  width: 90vmax;
  height: 90vmax;
  left: 50%;
  top: 50%;
  background: radial-gradient(closest-side, rgba(100, 124, 255, 0.10), transparent 65%);
  animation: dust-hero-glow-drift-5 50s ease-in-out infinite alternate, dust-hero-glow-hue-5 33s ease-in-out infinite alternate;
}

@keyframes dust-hero-glow-drift-1 {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(calc(-50% + 11vmax), calc(-50% - 8vmax)) scale(1.08); }
}

@keyframes dust-hero-glow-drift-2 {
  from { transform: translate(-50%, -50%) scale(1.06); }
  to   { transform: translate(calc(-50% - 10vmax), calc(-50% + 9vmax)) scale(0.94); }
}

@keyframes dust-hero-glow-drift-3 {
  from { transform: translate(-50%, -50%) scale(0.95); }
  to   { transform: translate(calc(-50% + 9vmax), calc(-50% - 13vmax)) scale(1.07); }
}

@keyframes dust-hero-glow-drift-4 {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(calc(-50% - 8vmax), calc(-50% + 10vmax)) scale(1.06); }
}

@keyframes dust-hero-glow-drift-5 {
  from { transform: translate(-50%, -50%) scale(0.96); }
  to   { transform: translate(calc(-50% + 6vmax), calc(-50% + 5vmax)) scale(1.08); }
}

@keyframes dust-hero-glow-hue-1 {
  from { filter: hue-rotate(-8deg); }
  to   { filter: hue-rotate(12deg); }
}

@keyframes dust-hero-glow-hue-2 {
  from { filter: hue-rotate(10deg); }
  to   { filter: hue-rotate(-9deg); }
}

@keyframes dust-hero-glow-hue-3 {
  from { filter: hue-rotate(-14deg); }
  to   { filter: hue-rotate(8deg); }
}

@keyframes dust-hero-glow-hue-4 {
  from { filter: hue-rotate(9deg); }
  to   { filter: hue-rotate(-11deg); }
}

@keyframes dust-hero-glow-hue-5 {
  from { filter: hue-rotate(-7deg); }
  to   { filter: hue-rotate(9deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dust-hero-glows span {
    animation: none;
    transform: translate(-50%, -50%);
  }
}

.dust-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 55%, rgba(10, 12, 18, 0.55) 100%);
  pointer-events: none;
}

.dust-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.dust-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dust-hero-canvas-far {
  z-index: -2;
  filter: blur(14px);
}

.dust-hero-canvas-near {
  z-index: -1;
}
