/* Home page opening. Static by default: one photo with the tagline and call buttons.
   When js/intro.js adds .live (motion allowed), the section grows tall and its stage pins to the screen
   while the visitor scrolls through two scenes: a drawn water drop at dusk, then the crew photo with the tagline and call buttons.
   The script only sets --t on each scene and line (where it is in its run: 0 = arriving, 1 = leaving)
   and --p on the section; everything below turns those numbers into opacity and transforms. */
.intro{position:relative;padding:0;background:#05090c;color:#fff}
.intro-stage{position:relative;height:clamp(480px,86vh,820px);height:clamp(480px,86svh,820px);overflow:hidden;isolation:isolate}
.intro-shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.intro-poster{opacity:1;object-position:42% 50%}
.intro-art svg{display:block;width:100%;height:100%}
.intro-shots::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,9,12,.72),rgba(5,9,12,.18) 70%),linear-gradient(180deg,rgba(5,9,12,.35),rgba(5,9,12,0) 30%,rgba(5,9,12,.7))}
/* type sits low and to the left, lined up with the page content below */
.intro-copy{position:absolute;inset:0;z-index:1;display:grid;align-items:end;justify-items:start;padding:clamp(32px,6vh,72px) max(var(--gutter),calc((100% - var(--max)) / 2 + var(--gutter))) clamp(56px,10vh,110px);text-align:left}
.intro-line{grid-area:1/1;margin:0;max-width:16ch;font-family:var(--f-display);font-weight:800;text-transform:uppercase;line-height:.92;letter-spacing:-.005em;font-size:clamp(2.6rem,9vw,6.8rem);text-shadow:0 2px 30px rgba(0,0,0,.45);display:none}
.intro-kicker,.intro-sub{display:block;font-family:var(--f-mono);font-weight:700;font-size:clamp(.72rem,1.6vw,.9rem);letter-spacing:.16em;line-height:1.4;opacity:.85}
.intro-kicker{margin-bottom:18px}
.intro-sub{max-width:34ch;margin:18px 0 0;font-size:clamp(.85rem,2vw,1.1rem)}
.intro-end{display:grid;gap:clamp(18px,3vh,28px);justify-items:start;max-width:none;font-size:inherit;text-shadow:none}
.intro-big{margin:0;font-family:var(--f-display);font-weight:800;text-transform:uppercase;line-height:.92;font-size:clamp(2.6rem,8vw,6.4rem);text-shadow:0 2px 30px rgba(0,0,0,.45)}
.intro-big > span{display:block}
.intro-flow{color:#8fd6f5}
.intro .cta-row{justify-content:flex-start}
.intro .btn-light{border-color:#fff;color:#fff;background:rgba(255,255,255,.08);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.intro .values{justify-content:flex-start}
.intro .values li{font-size:clamp(1rem,2.4vw,1.3rem)}
.intro-cue{display:none}

/* the scroll sequence */
.intro.live{height:200vh;height:200svh}
/* pinned just under the sticky header (js/intro.js measures it into --hdr) so nothing hides behind it */
.intro.live .intro-stage{--top:calc(var(--hdr,0px) + env(safe-area-inset-top,0px));position:sticky;top:var(--top);height:calc(100vh - var(--top));height:calc(100svh - var(--top));max-height:none}
.intro.live .intro-shot{opacity:clamp(0,(var(--t,0) + .25) * 4,1);transform:scale(calc(1.14 - .1 * clamp(0,var(--t,0),1.2)))}
.intro.live .intro-shot:first-child{opacity:1;transform:scale(calc(1 + .35 * clamp(0,var(--t,0) - .3,1)))}
/* each line drifts sideways the whole time it's on screen, and its words (.w, split out by js/intro.js)
   rise in one after another, then lift away; --u is a word's own progress, a little behind the word before it */
.intro.live .intro-line{display:block;transform:translateX(calc((.45 - var(--t,0)) * 6vw))}
.intro.live .w{display:inline-block;will-change:transform,opacity;--u:calc(var(--t,0) - var(--i,0) * .03);--in:clamp(0,(var(--u) - .04) * 5,1);--out:clamp(0,(var(--u) - .76) * 5,1);opacity:calc(var(--in) - var(--out));transform:translateY(calc((1 - var(--in)) * .7em - var(--out) * .6em)) rotate(calc((1 - var(--in)) * 5deg - var(--out) * 3deg))}
.intro.live .intro-end .w{--out:0}
.intro.live .intro-end{display:grid;opacity:1;transform:none}
.intro.live .intro-end > *{opacity:clamp(0,(var(--t,0) - var(--at)) * 6,1);transform:translateY(calc(clamp(0,.2 - (var(--t,0) - var(--at)),.2) * 14vh))}
.intro-end > :nth-child(1){--at:0}
.intro-end > :nth-child(2){--at:.3}
.intro-end > :nth-child(3){--at:.4}
.intro.live .intro-copy{animation:introRise 1.3s cubic-bezier(.2,.7,.2,1) 1.1s backwards}
.intro.live .intro-cue{display:flex;flex-direction:column;align-items:center;gap:10px;position:absolute;right:var(--gutter);bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:1;font-family:var(--f-mono);font-size:.7rem;font-weight:700;letter-spacing:.24em;text-transform:uppercase;opacity:clamp(0,1 - var(--p,0) * 14,1);animation:introFade 1s ease-out 2.2s backwards}
.intro-cue::after{content:"";width:2px;height:34px;background:linear-gradient(#fff,transparent);transform-origin:top;animation:introCue 1.8s ease-in-out infinite}

/* scene 1: a drop falls into the stock pond at dusk and rings out */
.intro.live .drop-fall{animation:dropFall 1s cubic-bezier(.55,0,1,.45) .2s both}
.drop-ripples ellipse{transform-box:fill-box;transform-origin:center;opacity:0;stroke-width:2}
.intro.live .drop-ripples ellipse{animation:dropRing 3.6s ease-out 1.2s infinite}
.intro.live .drop-ripples ellipse:nth-child(2){animation-delay:1.6s}
.intro.live .drop-ripples ellipse:nth-child(3){animation-delay:2s}
.drop-blades{transform-box:view-box;transform-origin:760px 400px}
.intro.live .drop-blades{animation:dropSpin 6s linear infinite}
@keyframes dropFall{0%{transform:translateY(-700px)}92%{transform:translateY(0);opacity:1}100%{transform:translateY(30px) scaleY(.4);opacity:0}}
@keyframes dropRing{0%{transform:scale(.2);opacity:.9}100%{transform:scale(5);opacity:0}}
@keyframes dropSpin{to{transform:rotate(360deg)}}


@keyframes introFade{from{opacity:0}}
@keyframes introRise{from{opacity:0;transform:translateY(28px);filter:blur(8px)}}
@keyframes introCue{0%{transform:scaleY(0)}50%{transform:scaleY(1)}100%{transform:scaleY(1);opacity:0}}
@media (max-width:860px){.intro-copy{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}.intro.live .intro-cue{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
/* phones held sideways: keep the call buttons on screen */
@media (max-height:520px){.intro-copy{padding-block:64px 16px}.intro-big,.intro-line{font-size:clamp(2rem,11vh,3.4rem)}.intro .values{display:none}}
/* hold the static version back for a moment so it doesn't flash before js/intro.js takes over; it still shows if the script never runs */
@media (prefers-reduced-motion:no-preference){.intro:not(.live) .intro-stage > *{animation:introFade .6s ease-out 1.5s backwards}}
.intro.live .intro-kicker.w,.intro.live .intro-sub.w{display:block}
