/* Motion is decorative and brief; core content remains visible without it. */
/* Shared transparent render surface for the procedural ocean background. */
body {
  position: relative;
  isolation: isolate;
}

/* Two restrained, blurred brand accents drift behind the page content. */
body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: clamp(11rem, 22vw, 19rem);
  aspect-ratio: 1;
  border-radius: 58% 42% 64% 36% / 45% 57% 43% 55%;
  filter: blur(42px);
  opacity: 0.36;
  pointer-events: none;
  content: "";
  will-change: transform;
}

body::before {
  top: 22vh;
  right: 8vw;
  background: radial-gradient(ellipse at 42% 42%, rgb(147 197 253 / 34%), rgb(37 99 235 / 12%) 48%, transparent 72%);
  animation: drift-blue 19s ease-in-out infinite alternate;
}

body::after {
  bottom: 14vh;
  left: 6vw;
  background: radial-gradient(ellipse at 55% 48%, rgb(139 92 246 / 24%), rgb(139 92 246 / 8%) 48%, transparent 72%);
  animation: drift-violet 22s ease-in-out infinite alternate;
}

@keyframes drift-blue {
  from { transform: translate3d(0, -8px, 0) rotate(-4deg); }
  to { transform: translate3d(-14px, 10px, 0) rotate(5deg); }
}

@keyframes drift-violet {
  from { transform: translate3d(0, 9px, 0) rotate(4deg); }
  to { transform: translate3d(12px, -11px, 0) rotate(-5deg); }
}

.ocean-background {
  position: fixed;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 600px) {
  body::before,
  body::after {
    width: 13rem;
    filter: blur(34px);
    opacity: 0.28;
  }
}

/* Retain the existing small reveal motion for content that opts into it. */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.motion-ready .reveal {
  animation: fade-up 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.motion-ready .reveal--delay-1 { animation-delay: 80ms; }
.motion-ready .reveal--delay-2 { animation-delay: 160ms; }
.motion-ready .reveal--delay-3 { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before,
  body::after {
    animation: none !important;
  }

}
