#develop-light {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 7;
  contain: strict;
}
#light-field,
.light-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#light-field {
  display: none;
}
#develop-light[data-renderer="webgl"] #light-field {
  display: block;
}
#develop-light[data-renderer="webgl"] .light-wash {
  display: none;
}
.light-wash i {
  position: absolute;
  width: 83vw;
  height: 89vh;
  background: radial-gradient(
    ellipse closest-side,
    #0071e319,
    transparent 100%
  );
  left: -24%;
  top: 2%;
  animation: liquid-drift 27s ease-in-out infinite alternate;
}
.light-wash i:nth-child(2) {
  left: 30%;
  top: -24%;
  background: radial-gradient(
    ellipse closest-side,
    #af52de1b,
    transparent 100%
  );
  animation-delay: -13s;
  animation-duration: 31s;
}
.light-wash i:nth-child(3) {
  left: 59%;
  top: 43%;
  background: radial-gradient(
    ellipse closest-side,
    #c9986521,
    transparent 100%
  );
  animation-duration: 24s;
  animation-delay: -8s;
}
@keyframes liquid-drift {
  from {
    transform: translate(-4%, 0) rotate(-6deg);
  }
  to {
    transform: translate(8%, 8%) rotate(10deg);
  }
}
#develop-light[data-paused="true"] .light-wash i {
  animation-play-state: paused;
}
#light-focus,
#light-trail {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
#light-focus {
  width: clamp(270px, 37vw, 600px);
  aspect-ratio: 1.24;
  background:
    radial-gradient(ellipse 35% 38% at 54% 41%, #c4d9fc37, transparent 100%),
    radial-gradient(ellipse 36% 36% at 38% 62%, #0071e34a, transparent 100%),
    radial-gradient(ellipse 33% 39% at 66% 41%, #af52de38, transparent 100%),
    radial-gradient(ellipse 34% 35% at 64% 63%, #ffb65d1f, transparent 100%);
  transition: opacity 0.32s ease;
}
#develop-light[data-active="true"] #light-focus {
  opacity: 0.95;
}
#develop-light[data-surface="paper"] #light-focus {
  opacity: 0.72;
}
#develop-light[data-active="false"] #light-focus {
  opacity: 0;
}
#light-trail {
  width: clamp(220px, 27vw, 480px);
  aspect-ratio: 2.6;
  background: radial-gradient(
    ellipse closest-side,
    #9baeff4d,
    #6867cc16 54%,
    transparent
  );
  transform-origin: center;
}
@media (prefers-reduced-motion: reduce) {
  .light-wash i {
    animation: none !important;
  }
  #light-focus,
  #light-trail,
  #light-field {
    display: none !important;
  }
  .light-wash {
    display: block !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  #develop-light[data-renderer="webgl"] #light-field {
    animation: film-wash-drift 21s ease-in-out infinite alternate;
    will-change: transform;
  }
  #develop-light[data-renderer="webgl"] .light-wash {
    display: block;
    opacity: 0.4;
  }
  #develop-light[data-paused="true"] #light-field {
    animation-play-state: paused;
  }
  @keyframes film-wash-drift {
    from {
      transform: scale(1.07) translate3d(-1.8%, -1.4%, 0);
    }
    to {
      transform: scale(1.12) translate3d(1.8%, 1.4%, 0);
    }
  }
}
