/* Фоновый свет живёт в отдельном фиксированном слое. */
.background {
  background: #08090d;
  isolation: isolate;
}
.background .orb,
.background .wire,
.background::before {
  display: block;
  position: absolute;
  inset: auto;
  width: 88vmax;
  height: 88vmax;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  filter: none;
  pointer-events: none;
  transform-origin: center;
  translate: calc(var(--mx, 0px) * .7) calc(var(--my, 0px) * .7);
}
.background .orb-a {
  top: -45vmax;
  left: -32vmax;
  background: radial-gradient(circle, rgba(24, 103, 236, .55), rgba(23, 73, 162, .23) 33%, transparent 70%);
  animation: ambient-blue 22s ease-in-out infinite alternate;
}
.background .orb-b {
  top: -44vmax;
  right: -29vmax;
  left: auto;
  background: radial-gradient(circle, rgba(47, 45, 198, .52), rgba(34, 36, 116, .2) 35%, transparent 70%);
  animation: ambient-indigo 29s ease-in-out -11s infinite alternate;
}
.background .wire-a {
  top: 2vh;
  right: -45vmax;
  background: radial-gradient(circle, rgba(125, 52, 209, .4), rgba(84, 36, 140, .17) 35%, transparent 70%);
  animation: ambient-violet 26s ease-in-out -6s infinite alternate;
}
.background .wire-b {
  bottom: -52vmax;
  left: -26vmax;
  background: radial-gradient(circle, rgba(190, 73, 104, .23), rgba(115, 45, 83, .12) 34%, transparent 70%);
  animation: ambient-coral 34s ease-in-out -17s infinite alternate;
}
.background::before {
  content: '';
  top: 10vh;
  left: 18vw;
  background: radial-gradient(circle, rgba(66, 160, 208, .18), transparent 67%);
  animation: ambient-cyan 37s ease-in-out -14s infinite alternate;
}
.background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 8, 16, .2), transparent 48%, rgba(5, 7, 15, .22));
  pointer-events: none;
}
.portfolio-section, .process-section { background: rgba(11, 20, 33, .63); }
footer { background: rgba(16, 33, 59, .84); }

@keyframes ambient-blue {
  0% { transform: translate3d(0, 0, 0) scale(.83); opacity: .8; }
  45% { transform: translate3d(28vw, 15vh, 0) scale(1.2); opacity: 1; }
  100% { transform: translate3d(4vw, 42vh, 0) scale(.92); opacity: .65; }
}
@keyframes ambient-indigo {
  0% { transform: translate3d(2vw, 6vh, 0) scale(1.06); opacity: .8; }
  50% { transform: translate3d(-25vw, 25vh, 0) scale(.82); opacity: .64; }
  100% { transform: translate3d(-8vw, 45vh, 0) scale(1.18); opacity: 1; }
}
@keyframes ambient-violet {
  0% { transform: translate3d(-4vw, -4vh, 0) scale(.86); opacity: .64; }
  55% { transform: translate3d(-25vw, -18vh, 0) scale(1.12); opacity: 1; }
  100% { transform: translate3d(-10vw, 20vh, 0) scale(.9); opacity: .75; }
}
@keyframes ambient-coral {
  0% { transform: translate3d(0, -4vh, 0) scale(.8); opacity: .55; }
  48% { transform: translate3d(24vw, -20vh, 0) scale(1.15); opacity: .9; }
  100% { transform: translate3d(42vw, 2vh, 0) scale(.9); opacity: .6; }
}
@keyframes ambient-cyan {
  0% { transform: translate3d(-10vw, 8vh, 0) scale(.85); opacity: .6; }
  50% { transform: translate3d(8vw, -18vh, 0) scale(1.15); opacity: .9; }
  100% { transform: translate3d(25vw, 7vh, 0) scale(.9); opacity: .65; }
}
@media (max-width: 700px) {
  .background .orb, .background .wire, .background::before { width: 145vmax; height: 145vmax; translate: none; }
  .background .wire-b, .background::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .background .orb, .background .wire, .background::before { animation: none; translate: none; }
  .background .orb-a { opacity: .8; }
  .background .orb-b { opacity: .7; }
  .background .wire-a { opacity: .65; }
  .background .wire-b, .background::before { opacity: .6; }
}
