/* Generated by scripts/build-hands.mjs from brands/_template/whale.css: the waterline of the equity pages. */
.surface { --seam: max(16px, calc(50vw - 540px)); }
.wave { display: block; width: 100%; height: clamp(44px, 6vw, 76px); }
.wave .w1 { animation: swell 52s linear infinite; }
.wave .w3 { animation: swell 31s linear infinite; }
@keyframes swell { to { transform: translateX(-1440px); } }
@media (prefers-reduced-motion: reduce) { .wave path { animation: none; } }
/* The whale (brands/_template/whale.svg, also the site icon) swims at the waterline, behind the front waves.
   It bobs with the swell, wags its fluke, drifts towards the pointer and looks at it. Three moves, by a click or
   tap in turn and by itself every few seconds: it spouts and tosses its four aces, it dives (fluke up, gone
   under, a ring on the water, then it breaches) and it slaps the water with its fluke. */
.surface { position: relative; background: var(--shallows); clip-path: inset(-600px 0 1px 0); }   /* a diving whale ends at the waterline */
.surface .wave { position: relative; background: none; pointer-events: none; }
.whale { all: unset; box-sizing: border-box; position: absolute; right: calc(var(--seam) + clamp(0px, 7vw, 110px)); bottom: 20%; width: clamp(150px, 25vw, 310px); cursor: pointer; transform: translateX(var(--dx, 0px)); transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.whale:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 18px; }
.whale-art { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 80%; animation: wh-bob 5.6s ease-in-out infinite; }
.wh-card { transform-box: fill-box; transform-origin: 50% 100%; animation: wh-sway 4.4s ease-in-out infinite; }
.wh-card.c2 { animation-delay: -1.1s; } .wh-card.c3 { animation-delay: -2.2s; } .wh-card.c4 { animation-delay: -3.3s; }
.wh-spout { transform-box: fill-box; transform-origin: 50% 100%; }
.wh-tail { transform-box: fill-box; transform-origin: 42% 100%; animation: wh-wag 2.6s ease-in-out infinite; }
.whale.is-diving .whale-art { animation: wh-dive 4.6s ease-in-out both; }
.whale.is-diving .wh-tail { animation-duration: 0.7s; }
.whale.is-slapping .wh-tail { animation: wh-slap 1.6s ease-in-out both; }
/* The ring where it went under, and the drops its fluke throws up: drawn on the button, so they stay at the waterline. */
.whale::after { content: ''; position: absolute; left: 12%; right: 22%; bottom: 31%; height: 9%; border: 2px solid #ecfbf9; border-radius: 50%; opacity: 0; pointer-events: none; }
.whale.is-diving::after { animation: wh-ring 4.6s ease-out both; }
.whale::before { content: ''; position: absolute; right: 10%; bottom: 52%; width: 7px; height: 7px; border-radius: 50%; background: #45d8d2; box-shadow: 15px -7px 0 -1px #45d8d2, -12px -11px 0 0 #ecfbf9, 24px 7px 0 -2px #ecfbf9, -22px 4px 0 -2px #45d8d2; opacity: 0; pointer-events: none; }
.whale.is-slapping::before { animation: wh-drops 1.6s ease-out both; }
.wh-eye { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform 0.25s ease-out; }
.whale.is-spouting .wh-card { transform-origin: 50% 50%; animation: wh-toss 1.35s cubic-bezier(0.3, 0.1, 0.3, 1) both; }
.whale.is-spouting .wh-card.c2 { animation-delay: 0.06s; } .whale.is-spouting .wh-card.c3 { animation-delay: 0.12s; } .whale.is-spouting .wh-card.c4 { animation-delay: 0.18s; }
.whale.is-spouting .wh-spout { animation: wh-gush 1.35s ease-out both; }
.whale.is-spouting .wh-body { animation: wh-dip 1.35s ease-out both; }
@keyframes wh-bob { 0%, 100% { transform: translateY(0) rotate(-1.6deg); } 50% { transform: translateY(3.5%) rotate(1.6deg); } }
@keyframes wh-wag { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(10deg); } }
@keyframes wh-dive { 0% { transform: translateY(0) rotate(-1.6deg); } 12% { transform: translateY(-7%) rotate(7deg); } 28% { transform: translateY(26%) rotate(-30deg); } 42% { transform: translateY(112%) rotate(-40deg); } 60% { transform: translateY(118%) rotate(4deg); } 76% { transform: translateY(-16%) rotate(11deg); } 88% { transform: translateY(7%) rotate(-4deg); } 100% { transform: translateY(0) rotate(-1.6deg); } }
@keyframes wh-ring { 0%, 30% { transform: scale(0.3); opacity: 0; } 36% { transform: scale(0.5); opacity: 0.9; } 56% { transform: scale(1.5); opacity: 0; } 66% { transform: scale(0.4); opacity: 0; } 72% { transform: scale(0.6); opacity: 0.9; } 94%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes wh-slap { 0%, 100% { transform: rotate(-9deg); } 14% { transform: rotate(-40deg); } 27% { transform: rotate(26deg); } 41% { transform: rotate(-36deg); } 54% { transform: rotate(26deg); } 68% { transform: rotate(-28deg); } 81% { transform: rotate(20deg); } }
@keyframes wh-drops { 0%, 22% { transform: translateY(0) scale(0.6); opacity: 0; } 30% { opacity: 1; } 55% { transform: translateY(-36px) scale(1.25); opacity: 0.9; } 62% { opacity: 1; } 100% { transform: translateY(10px) scale(0.9); opacity: 0; } }
@keyframes wh-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes wh-toss { 0% { transform: translateY(0) rotate(0); } 38% { transform: translateY(-78px) rotate(200deg); } 72% { transform: translateY(-14px) rotate(352deg); } 86% { transform: translateY(5px) rotate(360deg); } 100% { transform: translateY(0) rotate(360deg); } }
@keyframes wh-gush { 0% { transform: scaleY(1); } 18% { transform: scaleY(1.9); } 55% { transform: scaleY(1.25); } 100% { transform: scaleY(1); } }
@keyframes wh-dip { 0%, 100% { transform: translateY(0); } 16% { transform: translateY(9px); } 45% { transform: translateY(-3px); } }
/* Small whale (plo6solver.com): left of the hero panel, clear of it on narrow screens. */
.whale.small { width: clamp(96px, 11vw, 150px); bottom: 46%; right: auto; left: calc(var(--seam) + clamp(0px, 22vw, 320px)); }
/* The angler (brands/_template/angler.svg): sits on a rock at the far left of the ocean landings and casts towards the whale. Every
   11 s it reels in, swings the rod back over its head and casts again; the float lands with a ring on the water.
   When the whale dives, something pulls on the line (whale.js sets .is-bite). Behind the front waves, like the whale. */
.angler { position: absolute; left: 0; bottom: 46%; width: clamp(200px, 30vw, 430px); pointer-events: none; }
.angler-art { display: block; width: 100%; height: auto; overflow: visible; }
.an-body, .an-arm, .an-tackle, .an-line, .an-splash { transform-box: view-box; }
.an-body { transform-origin: 62px 186px; animation: an-lean 11s ease-in-out infinite; }
.an-arm { transform-origin: 74px 146px; animation: an-swing 11s ease-in-out infinite; }
.an-tackle { transform-origin: 74px 146px; animation: an-hold 5.2s ease-in-out infinite; }
.an-line { transform-origin: 236px 92px; animation: an-cast 11s ease-in-out infinite; }
.an-splash { transform-origin: 452px 242px; opacity: 0; animation: an-ring 11s ease-out infinite; }
.angler.is-bite .an-tackle { animation: an-tug 0.7s ease-in-out 1.3s 3; }
@keyframes an-hold { 0%, 100% { transform: rotate(-0.8deg); } 50% { transform: rotate(0.8deg); } }
@keyframes an-tug { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(6deg); } }
@keyframes an-swing { 0%, 60%, 92%, 100% { transform: rotate(0); } 67% { transform: rotate(5deg); } 76% { transform: rotate(-84deg); } 79% { transform: rotate(-88deg); } 83% { transform: rotate(16deg); } 88% { transform: rotate(-4deg); } }
@keyframes an-lean { 0%, 60%, 92%, 100% { transform: rotate(0); } 77% { transform: rotate(-9deg); } 83% { transform: rotate(7deg); } }
@keyframes an-cast { 0%, 58%, 93%, 100% { transform: scale(1); opacity: 1; } 68% { transform: scale(0.05); opacity: 1; } 69%, 81% { transform: scale(0.05); opacity: 0; } 82% { transform: scale(0.05); opacity: 1; } 89% { transform: scale(1.05); opacity: 1; } }
@keyframes an-ring { 0%, 88% { transform: scale(0.3); opacity: 0; } 89% { transform: scale(0.4); opacity: 0.95; } 97%, 100% { transform: scale(1.9); opacity: 0; } }
/* Small angler (plo6solver.com): next to the small whale. */
.angler.small { width: clamp(150px, 20vw, 300px); }
/* Equity pages: the sky's own gradient runs under the waterline. On a wide screen the right half beside the headline is
   empty, so the angler sits there and casts to the whale at the right edge; on a narrow one both stand under the
   buttons, the angler at the left edge. */
.sky .surface { background: none; }
.surface .whale.small { left: auto; right: var(--seam); bottom: 34%; width: clamp(104px, 11vw, 150px); }
.surface .angler.small { left: auto; right: calc(var(--seam) + clamp(104px, 11vw, 150px) + 4px); bottom: 46%; width: clamp(200px, 21vw, 280px); }
@media (max-width: 1000px) {
  .surface .whale.small { width: clamp(92px, 16vw, 140px); }
  .surface .angler.small { left: 0; right: auto; width: clamp(150px, 30vw, 300px); }
}
