.hero-art {
  animation: hero-drift 12s ease-in-out infinite alternate;
}

.systems-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.systems-section::before {
  content: "";
  position: absolute;
  inset: 12% 4% auto auto;
  z-index: -1;
  width: 140px;
  aspect-ratio: 1;
  border: 1px solid rgba(168, 117, 24, 0.22);
  border-radius: 50%;
  animation: ring-pulse 5s ease-in-out infinite;
}

.systems-section img {
  animation: system-float 8s ease-in-out infinite;
}

.service-grid article {
  transition:
    background-color 220ms ease,
    transform 220ms ease;
}

.service-grid article:hover {
  z-index: 1;
  background: rgba(244, 233, 210, 0.42);
  transform: translateY(-6px);
}

.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.about::before,
.about::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.about::before {
  right: 8%;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(168, 117, 24, 0.18);
  box-shadow:
    0 0 0 42px rgba(168, 117, 24, 0.035),
    0 0 0 84px rgba(168, 117, 24, 0.025);
}

.about::after {
  right: calc(8% + 142px);
  bottom: 31px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  box-shadow:
    -150px -90px 0 -4px var(--gold),
    125px -140px 0 -5px var(--gold);
  animation: node-pulse 3.6s ease-in-out infinite;
}

.process {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(
    90deg,
    transparent 0 8%,
    rgba(168, 117, 24, 0.08) 8% 8.1%,
    transparent 8.1% 100%
  );
  background-size: 180px 100%;
  animation: grid-flow 16s linear infinite;
}

.process-grid article {
  transition: transform 220ms ease;
}

.process-grid article:hover {
  transform: translateY(-5px);
}

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: -1;
  width: min(70vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(168, 117, 24, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(168, 117, 24, 0.025),
    0 0 0 110px rgba(168, 117, 24, 0.018);
  transform: translate(-50%, -50%);
}

@keyframes hero-drift {
  to {
    transform: translate(-1.2%, calc(-50% + 8px));
  }
}

@keyframes hero-drift-mobile {
  to {
    transform: translate(-1.2%, 8px);
  }
}

@keyframes system-float {
  50% {
    transform: translateY(-9px);
  }
}

@keyframes ring-pulse {
  50% {
    opacity: 0.4;
    transform: scale(1.18);
  }
}

@keyframes node-pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}

@keyframes grid-flow {
  to {
    background-position: 180px 0;
  }
}

@media (max-width: 900px) {
  .hero-art {
    animation-name: hero-drift-mobile;
  }
}

@media (max-width: 640px) {
  .about::before {
    right: -160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art,
  .systems-section img,
  .systems-section::before,
  .about::after,
  .process {
    animation: none;
  }

  .service-grid article,
  .process-grid article {
    transition: none;
  }
}
