/* The Sri Lankan beach behind every page (her ask, 20 Nov 2026: "make people feel like Sri Lanka", "3d").
   A southern-coast golden hour: deep evening sky, the sun on the horizon, turquoise sea with rolling waves,
   warm sand, coconut palms leaning over the water, an oruwa out on the swell. Layers sit at different depths
   and move apart with the pointer, the phone's tilt and the scroll (beach.js). Dusk, not noon, on purpose:
   every page sets cream text straight on this ground, so the scene stays deep enough to read on.
   Original code and drawing. Reduce-motion: a still picture. */
html{background:#0a1630}
body{background:transparent!important}
.beach{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;perspective:900px;
  background:linear-gradient(180deg,#071227 0%,#0c2142 22%,#1d3a63 40%,#6e5a78 50%,#d08a5c 57%,#efbb6b 61%)}
.beach .ly{position:absolute;left:-6%;right:-6%;will-change:transform;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.beach svg{display:block;width:100%;height:100%}
/* sun and its glow, sitting on the sea line */
.beach .sun{top:0;bottom:0}
.beach .sun::before{content:"";position:absolute;left:50%;top:61%;width:min(46vw,520px);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(circle,rgba(255,226,150,.85) 0 9%,rgba(250,190,100,.45) 16%,rgba(238,150,90,.22) 34%,transparent 62%)}
/* stars, only high in the sky */
.beach .stars{top:0;height:42%;opacity:.7;background-image:
  radial-gradient(1.2px 1.2px at 12% 18%,#fff,transparent),radial-gradient(1px 1px at 27% 8%,#fff,transparent),
  radial-gradient(1.4px 1.4px at 44% 22%,#fff,transparent),radial-gradient(1px 1px at 63% 12%,#fff,transparent),
  radial-gradient(1.2px 1.2px at 78% 26%,#fff,transparent),radial-gradient(1px 1px at 88% 6%,#fff,transparent),
  radial-gradient(1px 1px at 6% 36%,#fff,transparent),radial-gradient(1.3px 1.3px at 55% 4%,#fff,transparent),
  radial-gradient(1px 1px at 35% 34%,#fff,transparent),radial-gradient(1px 1px at 95% 30%,#fff,transparent)}
/* the sea: from the horizon to the shore */
.beach .sea{top:61%;bottom:0;background:linear-gradient(180deg,#e4a865 0%,#5d7b86 3%,#155e72 14%,#0f6f7d 38%,#13878c 62%,#1aa19a 78%)}
.beach .glitter{position:absolute;left:50%;top:0;width:min(30vw,300px);height:46%;transform:translateX(-50%);
  background:repeating-linear-gradient(180deg,rgba(255,214,140,.55) 0 2px,transparent 2px 9px);
  -webkit-mask:radial-gradient(50% 100% at 50% 0,#000 20%,transparent 75%);mask:radial-gradient(50% 100% at 50% 0,#000 20%,transparent 75%);opacity:.8}
.beach .waves{position:absolute;left:0;width:200%;height:28%;animation:beach-roll 26s linear infinite}
.beach .waves.w1{top:18%;opacity:.35;animation-duration:38s}
.beach .waves.w2{top:38%;opacity:.45;animation-duration:30s;animation-direction:reverse}
.beach .waves.w3{top:58%;opacity:.6;animation-duration:22s}
@keyframes beach-roll{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
/* the oruwa, out on the swell */
.beach .boat{position:absolute;left:62%;top:9%;width:min(15vw,150px);animation:beach-bob 6s ease-in-out infinite}
@keyframes beach-bob{0%,100%{transform:translateY(0) rotate(-1.5deg)}50%{transform:translateY(5px) rotate(1.5deg)}}
/* the shore: foam that runs up and back, then sand */
.beach .shore{bottom:0;height:22%}
.beach .foam{position:absolute;left:0;right:0;top:0;height:26px;animation:beach-wash 7s ease-in-out infinite}
@keyframes beach-wash{0%,100%{transform:translateY(0) scaleY(1)}50%{transform:translateY(10px) scaleY(1.3)}}
.beach .sand{position:absolute;left:0;right:0;top:12px;bottom:0;background:linear-gradient(180deg,#c99a63 0%,#a97c4c 30%,#6e4f33 100%)}
/* palms: the 3D foreground; they sway from the base */
.beach .palm{position:absolute;bottom:-2%;transform-origin:50% 100%;animation:beach-sway 9s ease-in-out infinite}
.beach .palm svg{overflow:visible}
.beach .p1{left:-19%;width:min(46vw,460px);height:min(92vh,880px)}
.beach .p2{right:14%;width:min(24vw,240px);height:min(52vh,480px);animation-delay:-3s;opacity:.85}
.beach .p3{right:-6%;width:min(40vw,420px);height:min(84vh,800px);animation-delay:-5s}
@keyframes beach-sway{0%,100%{transform:rotate(-1.2deg)}50%{transform:rotate(1.4deg)}}
/* the veil keeps every line of cream text readable on top of the scene */
.beach .veil{inset:0;left:0;right:0;transition:none;background:
  linear-gradient(180deg,rgba(5,9,20,.55) 0%,rgba(5,9,20,.3) 35%,rgba(5,9,20,.3) 58%,rgba(5,9,20,.5) 78%,rgba(5,9,20,.72) 100%),
  radial-gradient(70% 60% at 50% 45%,rgba(5,9,20,.32),transparent 80%)}
@media(max-width:700px){
  .beach .p1{left:-30%;width:90vw;height:78vh}.beach .p2{display:none}.beach .p3{right:-36%;width:80vw;height:70vh}
  .beach .boat{left:58%;width:26vw}
}
/* sections with their own dark ground now fade into the beach instead of a black ring */
.hero-art .fade{background:radial-gradient(75% 70% at 50% 50%,transparent 62%,rgba(5,9,20,.55) 100%)}
@media (prefers-reduced-motion:reduce){.beach *{animation:none!important}.beach .ly{transition:none}}
