/* Reusable, background-only surface. Content keeps its original layout. */
.ambient-wave {
  --wave-color: #4F6FFF;
  --wave-color-light: #DFE6FF;
  --wave-color-dark: #9FB3FF;
  --wave-color-base: #FAFAFB;
  --wave-palette: 1;
  --wave-opacity: .34;
  --wave-speed: .34;
  --wave-amplitude: 2.5;
  position: relative;
  isolation: isolate;
  background: #FFFFFF;
}
.ambient-wave__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  /* Fully transparent at the bounds: no straight crop against adjacent sections. */
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent);
}
.ambient-wave > .phase1-about-copy,
.ambient-wave > .phase1-about-slider { background: transparent !important; }

/* News: full-width motion with a very pale wash weighted towards the bottom. */
.ambient-wave--news { --wave-opacity: .34; }
.ambient-wave--news > .ambient-wave__canvas {
  -webkit-mask-image: linear-gradient(transparent 3%, rgba(0,0,0,.2) 25%, #000 70%, transparent 100%);
  mask-image: linear-gradient(transparent 3%, rgba(0,0,0,.2) 25%, #000 70%, transparent 100%);
}
/* The animated common surface replaces this section's former static ribbons. */
.phase1-features.ambient-wave::before,
.phase1-features.ambient-wave::after { content: none; }

/* Keep the common blue waves visible in sections with older pale overrides. */
.phase1-activity.ambient-wave,
.phase1-magazine.ambient-wave,
.phase1-pickup.ambient-wave { --wave-opacity: .34; }
/* Recruitment retains its approved orange shader color and background. */
.phase1-recruit.ambient-wave { --wave-palette: 0; }
