/* Layered water rings stay within the interactive surface. */
[data-story-water] {
  position: relative;
}

[data-story-water] .mtb-story-ripple {
  position: absolute;
  z-index: 5;
  width: var(--story-ripple-size);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 248, .96);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(56, 86, 75, .45), 0 0 12px rgba(65, 105, 95, .3);
  pointer-events: none;
  animation: mtb-story-water-ripple 1100ms cubic-bezier(.11, .63, .34, 1) both;
}

[data-story-water] .mtb-story-ripple::before,
[data-story-water] .mtb-story-ripple::after {
  position: absolute;
  inset: 17%;
  border: 1px solid rgba(255, 255, 248, .88);
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(56, 86, 75, .25);
  content: "";
}

[data-story-water] .mtb-story-ripple::after {
  inset: 33%;
  background: radial-gradient(circle, rgba(255, 255, 248, .35), transparent 64%);
}

[data-story-water] .mtb-story-ripple--trail {
  border-width: 1px;
  animation-duration: 820ms;
}

[data-story-water] .mtb-story-ripple--trail::after {
  content: none;
}

@keyframes mtb-story-water-ripple {
  0% { opacity: .86; transform: translate(-50%, -50%) scale(.04); }
  30% { opacity: .67; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  [data-story-water] .mtb-story-ripple { visibility: hidden; }
}
