/* The home screen's sunlit lookout. Keep illustration proportions separate
   from the full-viewport water so the cliff also reads on a narrow phone. */
#scene .home-shore { display: none; }
#scene[data-world="ocean"][data-presentation="home"] .home-shore {
  display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #f8efd5 0%, #d6e4d6 19%, #8fd4ce 30%, #70c9c6 50%, #45afbb 78%, #338eaa 100%);
  isolation: isolate;
}
.home-shore > svg { display: block; position: absolute; }
.home-shore .cliff-sky {
  position: absolute; inset: 0 0 auto; height: 25%;
  background: linear-gradient(180deg, #e7eddf 0%, #fff0ce 100%);
}
.home-shore .cliff-horizon { left: 0; top: 0; width: 100%; height: 25%; }
.home-shore .cliff-sun {
  position: absolute; left: 73%; top: 9%; width: clamp(32px, 5vw, 70px); aspect-ratio: 1;
  border-radius: 50%; background: #fff7d4; box-shadow: 0 0 70px 36px rgba(255, 239, 187, .25);
}
.home-shore .cliff-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 64% 9%, rgba(255, 252, 221, .5), rgba(240, 253, 221, .1) 47%, transparent 74%);
}
.home-shore .cliff-water { inset: 23% -3% -3%; width: 106%; height: 80%; animation: cliff-home-water 14s ease-in-out -3s infinite; }
/* Seen from the lookout, a little pod explores the surface while a whale
   passes below. Each small SVG glides as one composited layer; its internal
   paths stay still so mobile browsers never repaint a moving tail or wake. */
.home-shore .cliff-swimmer { height: auto; opacity: .84; will-change: transform; }
.home-shore .cliff-dolphin { width: clamp(43px, 5.2vw, 75px); animation: cliff-home-dolphin 23s ease-in-out -7s infinite; }
.home-shore .cliff-dolphin-one { left: 14%; top: 38%; }
.home-shore .cliff-dolphin-two { left: 22%; top: 46%; width: clamp(35px, 4.2vw, 60px); animation-delay: -12s; animation-duration: 27s; opacity: .73; }
.home-shore .cliff-dolphin-three { right: 16%; top: 36%; animation-name: cliff-home-dolphin-back; animation-delay: -16s; animation-duration: 26s; }
.home-shore .cliff-wake { opacity: .55; }
.home-shore .cliff-whale { right: 17%; top: 64%; width: clamp(94px, 12vw, 170px); opacity: .82; animation: cliff-home-whale 34s ease-in-out -9s infinite; }
@keyframes cliff-home-dolphin {
  0%, 100% { transform: translate3d(-10px, 6px, 0) rotate(-13deg); }
  50% { transform: translate3d(30px, -7px, 0) rotate(-4deg); }
}
@keyframes cliff-home-dolphin-back {
  0%, 100% { transform: translate3d(8px, 3px, 0) scaleX(-1) rotate(-17deg); }
  50% { transform: translate3d(-28px, -10px, 0) scaleX(-1) rotate(-6deg); }
}
@keyframes cliff-home-whale {
  0%, 100% { transform: translate3d(-25px, -4px, 0) rotate(7deg); }
  50% { transform: translate3d(25px, 9px, 0) rotate(-3deg); }
}
.home-shore .cliff-gull { width: clamp(25px, 5vw, 54px); height: auto; opacity: .9; }
.home-shore .cliff-gull-one { left: 11%; top: 27%; animation: cliff-home-gull 19s ease-in-out -6s infinite; }
.home-shore .cliff-gull-two { right: 17%; top: 18%; width: clamp(17px, 3.4vw, 34px); opacity: .56; animation: cliff-home-gull 24s ease-in-out -17s infinite reverse; }
.home-shore .cliff-reef { width: clamp(260px, 33vw, 510px); height: auto; bottom: 0; }
.home-shore .cliff-reef-left { left: -4%; bottom: 4%; }
.home-shore .cliff-reef-right { right: -4%; bottom: 8%; }
.home-shore .cliff-surf { transform-box: fill-box; transform-origin: center; }
.home-shore .cliff-surf-back { animation: cliff-home-break 8s ease-in-out -2s infinite; }
.home-shore .cliff-surf-front { animation: cliff-home-foam 8s ease-in-out -2s infinite; }
.home-shore .cliff-reef-right .cliff-surf-back,
.home-shore .cliff-reef-right .cliff-surf-front { animation-delay: -5.4s; animation-duration: 9.4s; }
.home-shore .cliff-land { bottom: -10%; height: auto; width: clamp(330px, 43vw, 690px); }
.home-shore .cliff-land-left { left: -3%; }
.home-shore .cliff-land-right { right: -4%; bottom: -11%; }
@keyframes cliff-home-water {
  0%, 100% { transform: translate3d(-.6%, -.4%, 0); opacity: .65; }
  50% { transform: translate3d(.8%, 1%, 0); opacity: .95; }
}
@keyframes cliff-home-break {
  0%, 100% { transform: translate3d(0, -8px, 0) scale(.94); opacity: .28; }
  45% { transform: translate3d(0, 3px, 0) scale(1.025); opacity: .95; }
  75% { transform: translate3d(0, 7px, 0) scale(1.055); opacity: .42; }
}
@keyframes cliff-home-foam {
  0%, 100% { transform: translate3d(0, -3px, 0) scale(.97); opacity: .3; }
  55% { transform: translate3d(0, 5px, 0) scale(1.03); opacity: .96; }
}
@keyframes cliff-home-gull {
  0%, 100% { transform: translate3d(-12px, 3px, 0) rotate(-5deg); }
  50% { transform: translate3d(24px, -9px, 0) rotate(5deg); }
}
/* On portrait screens the nearest cliff frames the bottom corners. Rocks in
   the water sit higher, giving a clear view down from the grassy lookout. */
@media (max-aspect-ratio: 4/5) {
  .home-shore .cliff-horizon { width: 190%; left: -36%; height: 25%; }
  .home-shore .cliff-land { width: 77%; bottom: -1px; }
  .home-shore .cliff-land-left { left: -10%; }
  .home-shore .cliff-land-right { right: -16%; bottom: -1px; }
  .home-shore .cliff-reef { width: 71%; }
  .home-shore .cliff-reef-left { left: -25%; bottom: 14%; }
  .home-shore .cliff-reef-right { right: -28%; bottom: 19%; }
  .home-shore .cliff-dolphin { width: 43px; animation-name: cliff-home-dolphin-small; }
  .home-shore .cliff-dolphin-one { left: 2%; top: 25.3%; }
  .home-shore .cliff-dolphin-two { left: 8%; top: 28.7%; width: 35px; }
  .home-shore .cliff-dolphin-three { right: 3%; top: 27.6%; width: 39px; animation-name: cliff-home-dolphin-small-back; }
  .home-shore .cliff-whale { left: 40%; right: auto; top: 89%; width: 94px; animation-name: cliff-home-whale-small; }
  .home-shore .cliff-gull-one { left: 9%; top: 28%; }
  .home-shore .cliff-gull-two { right: 9%; top: 21%; }
}
@keyframes cliff-home-dolphin-small {
  0%, 100% { transform: translate3d(-4px, 2px, 0) rotate(-16deg); }
  50% { transform: translate3d(8px, -3px, 0) rotate(-7deg); }
}
@keyframes cliff-home-dolphin-small-back {
  0%, 100% { transform: translate3d(3px, 2px, 0) scaleX(-1) rotate(-15deg); }
  50% { transform: translate3d(-9px, -3px, 0) scaleX(-1) rotate(-6deg); }
}
@keyframes cliff-home-whale-small {
  0%, 100% { transform: translate3d(-12px, -3px, 0) rotate(4deg); }
  50% { transform: translate3d(16px, 4px, 0) rotate(-5deg); }
}
/* Short phones use the lower sea for controls. Let the whale pass in the
   open water to the right of the tagline instead, with a smaller distant
   silhouette and a short arc that never runs through the text. */
@media (max-height: 780px) and (max-aspect-ratio: 4/5) {
  .home-shore .cliff-whale {
    left: auto; right: 1px; top: 26%; width: clamp(48px, 14.8vw, 58px);
    opacity: .9; animation-name: cliff-home-whale-compact;
  }
  .home-shore .cliff-dolphin-two { top: 27.8%; }
  .home-shore .cliff-dolphin-three { display: none; }
}
@keyframes cliff-home-whale-compact {
  0%, 100% { transform: translate3d(-1px, -1px, 0) rotate(3deg); }
  50% { transform: translate3d(1px, 2px, 0) rotate(-3deg); }
}
@media (max-height: 540px) and (min-aspect-ratio: 4/5) {
  .home-shore .cliff-land { width: 37%; bottom: -28%; }
  .home-shore .cliff-reef { width: 30%; bottom: -13%; }
}
#scene.paused .home-shore *,
#scene.paused .home-shore *::before,
#scene.paused .home-shore *::after { animation-play-state: paused !important; }
.rm .home-shore * { animation: none !important; }
.rm .home-shore .cliff-swimmer { will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  .home-shore * { animation: none !important; }
  .home-shore .cliff-swimmer { will-change: auto; }
}
