/* Virtual shoots: the cave descent. One pinned stage, a frame sequence the scroll drives. */
.cave{position:relative;height:1300vh;--acc:#8A5CFF}
.cave-stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;background:#05050b}
.cave-film{position:absolute;inset:-2.5%;background:#05050b center/cover no-repeat;will-change:transform;transform:translate3d(var(--mx,0px),var(--my,0px),0)}
.cave-film canvas{display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1s ease}
.cave-stage.ready .cave-film canvas{opacity:1}
.cave-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.42),transparent 24%,transparent 60%,rgba(0,0,0,.6))}
.cave-load{position:absolute;left:50%;bottom:26px;width:160px;height:2px;margin-left:-80px;background:rgba(255,255,255,.18);transition:opacity .6s ease}
.cave-load i{display:block;height:100%;background:#fff;transform:scaleX(var(--ld,0));transform-origin:left}
.cave-stage.loaded .cave-load{opacity:0}

/* stations: all stacked in the same place, the script fades them by scroll */
.st{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(24px,4vw,80px);
  padding:110px clamp(80px,8vw,170px) 70px clamp(24px,5vw,110px);opacity:0;visibility:hidden;will-change:opacity,transform;pointer-events:none}
.st.on{pointer-events:auto}
.st-copy{max-width:560px;padding:34px 36px 36px;border-radius:26px;background:rgba(7,7,14,.56);border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2)}
.st-kind{display:inline-flex;align-items:center;gap:10px;font-size:15px;color:#fff;margin-bottom:18px}
.st-kind::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--c);box-shadow:0 0 14px var(--c)}
.st h2,.st h1{font-family:var(--display);font-weight:600;font-size:clamp(34px,3.7vw,68px);line-height:.98;letter-spacing:-.03em;color:#fff}
.st-copy>p{color:#D9D8EA;font-size:clamp(16px,1.15vw,19px);line-height:1.5;margin-top:18px;max-width:44ch}
.st dl{margin-top:24px;border-top:1px solid rgba(255,255,255,.16)}
.st dl div{display:grid;grid-template-columns:8.5em 1fr;gap:14px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.16);font-size:15.5px}
.st dt{color:var(--c)}
.st dd{color:#EDECF7;margin:0}
.st-client{margin-top:16px;font-size:14px;color:#B9B7D2}
.w{display:inline-block;white-space:pre;opacity:var(--r,0);transform:translate3d(0,calc((1 - var(--r,0))*26px),0);filter:blur(calc((1 - var(--r,0))*7px));transition:opacity .5s linear,transform .5s linear,filter .5s linear}

/* the ad frames */
.st-film{justify-self:center;position:relative}
.reel{position:relative;overflow:hidden;background:#000;border:1px solid rgba(255,255,255,.28);box-shadow:0 40px 110px rgba(0,0,0,.6),0 0 0 8px rgba(8,8,14,.5)}
.reel video{display:block;width:100%;height:100%;object-fit:cover}
.reel.wide{width:min(42vw,820px);aspect-ratio:16/9;border-radius:18px}
.reel.phone{height:min(72vh,720px);aspect-ratio:9/16;border-radius:38px;border:7px solid #0c0c12;outline:1px solid rgba(255,255,255,.3)}
.reel.phone::before{content:"";position:absolute;z-index:2;left:50%;top:10px;width:84px;height:20px;margin-left:-42px;border-radius:12px;background:#0c0c12}
.reel.square{width:min(62vh,600px);aspect-ratio:1;border-radius:22px}
.reel.tall{height:min(70vh,700px);aspect-ratio:4/5;border-radius:22px}
.reel-bar{position:absolute;left:0;right:0;bottom:-34px;display:flex;justify-content:space-between;font-size:13.5px;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.9)}

/* first and last stations: no ad, the copy carries it */
.st.solo{grid-template-columns:1fr;align-items:end;padding-bottom:9vh}
.st.solo .st-copy{background:none;border:0;padding:0;max-width:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.st.solo .big{font-size:clamp(46px,7.4vw,150px);letter-spacing:-.04em;text-shadow:0 2px 30px rgba(0,0,0,.6)}
.st.solo .big span.l{display:block}
.st.solo .st-copy{position:relative;z-index:1}
.st .fx-name{transform:translate(-50%,0);font-size:15px;text-shadow:0 1px 10px rgba(0,0,0,.9)}
.st.solo .st-copy>p{font-size:clamp(17px,1.35vw,22px);text-shadow:0 1px 14px rgba(0,0,0,.8)}
.cue{margin-top:30px;display:inline-flex;align-items:center;gap:12px;color:#fff;font-size:15px}
.cue i{width:1px;height:34px;background:linear-gradient(#fff,transparent)}
.st.fin{align-items:center;justify-items:center;text-align:center;padding-bottom:70px}
.st.fin h2{font-size:clamp(40px,5.4vw,104px);text-shadow:0 2px 30px rgba(0,0,0,.6)}
.steps4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:38px auto 34px;max-width:1180px;text-align:left;list-style:none;padding:0;counter-reset:s}
.steps4 li{counter-increment:s;padding:22px 22px 24px;border-radius:20px;background:rgba(7,7,14,.5);border:1px solid rgba(255,255,255,.16);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#D9D8EA;font-size:15.5px;line-height:1.45}
.steps4 li::before{content:counter(s);display:block;font-family:var(--display);font-size:34px;color:#fff;margin-bottom:10px}
.steps4 strong{display:block;color:#fff;font-weight:500;font-size:18px;margin-bottom:4px}

/* depth meter */
.depth{position:absolute;right:clamp(14px,1.8vw,34px);top:50%;transform:translateY(-50%);z-index:4;display:grid;gap:6px;justify-items:end}
.depth button{display:flex;align-items:center;gap:10px;background:none;border:0;color:#fff;font:inherit;font-size:13px;cursor:pointer;padding:6px 0;opacity:.5;transition:opacity .3s ease}
.depth button span{max-width:0;overflow:hidden;white-space:nowrap;transition:max-width .4s var(--ease);text-shadow:0 1px 8px rgba(0,0,0,.9)}
.depth button i{width:16px;height:2px;background:#fff;transition:width .4s var(--ease),background .3s ease}
.depth button:hover,.depth button:focus-visible,.depth button.on{opacity:1}
.depth button:hover span,.depth button:focus-visible span,.depth button.on span{max-width:220px}
.depth button.on i{width:34px;background:var(--acc)}

@media (max-width:900px){
  .cave{height:1000vh}
  .st{grid-template-columns:1fr;grid-template-rows:auto auto;align-content:center;gap:18px;padding:84px 16px 28px}
  .st-film{order:-1}
  .st-copy{padding:18px 18px 20px;border-radius:20px;max-width:none}
  .st h2{font-size:clamp(26px,7.4vw,40px)}
  .st-copy>p{font-size:15px;margin-top:10px}
  .st dl{display:none}
  .st-client{margin-top:10px}
  .reel.wide{width:100%}
  .reel.phone{height:38vh;border-radius:26px;border-width:5px}
  .reel.phone::before{width:52px;height:13px;top:7px;margin-left:-26px}
  .reel.square{width:min(38vh,86vw)}
  .reel.tall{height:38vh}
  .reel-bar{display:none}
  .st.solo{padding-bottom:7vh}
  .st.fin{padding-top:76px}
  .steps4{grid-template-columns:1fr 1fr;gap:8px;margin:18px 0 20px}
  .steps4 li{padding:12px 12px 14px;font-size:13.5px;border-radius:14px}
  .steps4 li::before{font-size:22px;margin-bottom:4px}
  .steps4 strong{font-size:15px}
  .depth{display:none}
}
@media (prefers-reduced-motion:reduce){
  .w{transition:none}
  .cave-film{transform:none}
}

/* ---- one scroll, one chamber: the cave is a single screen and the script plays a clip between chambers ---- */
.cave{height:100vh;height:100svh}
.cave-stage{position:relative;height:100%}
.cave-film{background:#05050b}
.cave-film img,.cave-film video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s linear}
.cave-film .show{opacity:1}
.cave-load{display:none}
.st{transform:translate3d(0,22px,0);transition:opacity .35s ease,transform .5s ease,visibility 0s linear .35s}
.st.on{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:opacity .7s ease,transform .9s var(--ease),visibility 0s}
.w{--r:0;transition:opacity .7s ease,transform .8s var(--ease),filter .7s ease}
.st.on .w{--r:1;transition-delay:calc(var(--i) * 60ms + 120ms)}
button.cue{background:none;border:0;font:inherit;cursor:pointer;padding:0}
@media (max-width:900px){.cave{height:100vh;height:100svh}}
@media (prefers-reduced-motion:reduce){.st,.st.on,.w,.st.on .w,.cave-film img,.cave-film video{transition:none}}

/* notched phones: keep the chamber content clear of the screen edges */
@supports (padding:max(0px)){.st{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}}

/* on a phone the headline fills the entrance, so the points stay away */
@media (max-width:980px){.st .fx,.st .fx-name{display:none}}
