section.min-h-screen.bg-gradient-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 9vw, 8rem) clamp(3.5rem, 6vw, 5.5rem);
  --hero-reference-blue: 11 77 149;
  --hero-reference-cyan: 0 180 219;
  background: linear-gradient(130deg,
    rgb(var(--hero-reference-blue)) 10%,
    rgb(var(--hero-reference-blue)) 43%,
    color-mix(in srgb, rgb(var(--hero-reference-blue)) 72%, rgb(var(--hero-reference-cyan))));
}

/* Two slow layers give the light depth while the content stays still. */
section.min-h-screen.bg-gradient-hero::before,
section.min-h-screen.bg-gradient-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

section.min-h-screen.bg-gradient-hero::before {
  inset: -24%;
  background:
    radial-gradient(ellipse at 69% 45%, rgb(var(--hero-reference-cyan) / 26%), transparent 31%),
    radial-gradient(ellipse at 80% 63%, rgb(var(--hero-reference-cyan) / 32%), transparent 32%),
    radial-gradient(ellipse at 43% 73%, rgb(var(--hero-reference-blue) / 25%), transparent 34%);
  animation: hero-light-drift 15s ease-in-out infinite alternate;
}

section.min-h-screen.bg-gradient-hero::after {
  width: max(65rem, 95vw);
  height: 33rem;
  left: 24%;
  top: 18%;
  border-radius: 50%;
  border: 1px solid hsl(var(--brand-off-white) / 24%);
  box-shadow:
    0 0 0 22px rgb(var(--hero-reference-cyan) / 8%),
    0 0 0 52px rgb(var(--hero-reference-blue) / 9%),
    0 -14px 68px rgb(var(--hero-reference-cyan) / 24%),
    inset 0 12px 44px rgb(var(--hero-reference-cyan) / 13%);
  background: linear-gradient(155deg, rgb(var(--hero-reference-cyan) / 14%), transparent 39%);
  transform: rotate(-24deg);
  animation: hero-light-arc 18s ease-in-out infinite alternate;
}

section.min-h-screen.bg-gradient-hero p.text-white\/70 {
  color: hsl(var(--brand-off-white));
}

section.min-h-screen.bg-gradient-hero img.rounded-full {
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-color: rgb(var(--hero-reference-cyan) / 58%);
  filter: saturate(.73);
  box-shadow: 0 0 0 8px rgb(var(--hero-reference-cyan) / 14%), 0 16px 48px rgb(var(--hero-reference-blue) / 42%);
}

@keyframes hero-light-drift {
  from { transform: translate3d(-8%, -6%, 0) rotate(-9deg); }
  to { transform: translate3d(10%, 8%, 0) rotate(12deg); }
}

@keyframes hero-light-arc {
  from { transform: translate3d(-9%, -14%, 0) rotate(-26deg); opacity: .65; }
  to { transform: translate3d(8%, 13%, 0) rotate(-11deg); opacity: 1; }
}

@media (max-width: 767px) {
  section.min-h-screen.bg-gradient-hero::after {
    width: 42rem;
    height: 24rem;
    left: 5%;
    top: 44%;
  }
}

@media (prefers-reduced-motion: reduce) {
  section.min-h-screen.bg-gradient-hero::before,
  section.min-h-screen.bg-gradient-hero::after {
    animation: none;
  }
}
