/* Zone Theta — the wave background: C · Swell at Gentle strength (owner, 2026-11-06; research/wave-backgrounds.md).
   Locked for About and FAQ. A page opts in with <body data-waves> and a <div class="wv-layer" data-wv-layer
   aria-hidden="true"> as the body's first child, then loads this file and js/waves.js. Every rule starts
   .wv-* or body[data-waves]. (The previews keep their own copy in css/waves-preview.css.) */

/* One fixed layer behind the whole page: the page scrolls over it, which is where the depth comes
   from. 100lvh, so a phone's toolbar hiding never resizes it. */
.wv-layer {
  position: fixed; left: 0; top: 0; z-index: -1;
  width: 100%; height: 100vh; height: 100lvh;
  overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity 1200ms var(--ease-out);
}
/* Gentle: halfway between the previews' Soft (0.45) and Medium (0.7) */
.wv-layer.is-ready { opacity: 0.575; }

/* The waves are the whole background: the footer's paper band turns see-through, and its card becomes a
   light tint instead of solid deeper paper, so the water runs under it too */
body[data-waves] .site-footer {
  --ft-ground: transparent;
  --ft-card: color-mix(in oklab, var(--taupe) 9%, transparent);
}

/* Each band rolls with the scroll (JS), bobs (CSS) and drifts sideways (CSS), on three nested elements so
   the transforms never fight. Only under .motion: base.css shortens every animation to 1ms under reduced
   motion, which would make an infinite loop flicker. */
.wv-band { position: absolute; left: 0; will-change: transform; }
.wv-bob, .wv-drift { will-change: transform; }
.wv-band svg { display: block; }
@keyframes wv-bob { from { transform: translateY(calc(var(--wv-bob) * -1)); } to { transform: translateY(var(--wv-bob)); } }
@keyframes wv-drift { from { transform: translateX(var(--wv-from)); } to { transform: translateX(var(--wv-to)); } }
.motion .wv-bob { animation: wv-bob var(--wv-bob-t) cubic-bezier(0.37, 0, 0.63, 1) infinite alternate both; }
.motion .wv-drift { animation: wv-drift var(--wv-drift-t) linear infinite; }
