/* under.css: what lies below the water line during the dive (SPEC 5). Sized in hero scene units (--u), so it stays registered
   with the hero planes at every viewport. Its x mirrors preserveAspectRatio xMidYMax slice: scene centre on viewport centre. */

.dive-under {
  position: absolute;
  top: 0;
  left: calc(50% - 1050 * var(--u));
  display: block;
  width: calc(2100 * var(--u));
  max-width: none;
  height: calc(1100 * var(--u));
}

.dive-under--tall {
  display: none;
}

.dive-caustic--b {
  opacity: 0;
}

/* Torso of the figure standing in the water; its legs are in .dive-under. --wx is its scene x from the viewport centre, --wk px per unit. */
.dive-wader {
  --wx: 514;
  --wk: .648;
  position: absolute;
  bottom: calc(100% - 8px);
  left: calc(50% + (var(--wx) - 60 * var(--wk)) * var(--u));
  display: block;
  width: calc(120 * var(--wk) * var(--u));
  max-width: none;
  height: calc(134 * var(--wk) * var(--u));
  overflow: visible;
}

@media (max-aspect-ratio: 1/1) {
  .dive-under {
    left: calc(50% - 750 * var(--u));
    width: calc(1500 * var(--u));
    height: calc(2340 * var(--u));
  }

  .dive-wader {
    --wx: -243;
    --wk: 1.25;
  }

  .dive-under--wide {
    display: none;
  }

  .dive-under--tall {
    display: block;
  }
}
