/* scene-text.css: phone only (portrait, with motion). The opening words sit on the window glass, then thin into the fog and reappear in the cloud.
   Everything is under html.mo, which js/mobile.js adds only for portrait phones without reduced motion. Nothing here reaches desktop. */
.gt{display:none}
html.mo .gt{display:block;position:absolute;left:var(--gx,195px);top:var(--gy,414px);width:var(--gw,195px);transform:translate(-50%,-50%);pointer-events:none;z-index:3;visibility:hidden}
html.mo .gt-t{position:relative;isolation:isolate;text-align:center;color:#25165C}
html.mo .gt-t::before{content:"";position:absolute;z-index:-1;inset:-18% -17% -20% -17%;background:radial-gradient(closest-side,rgba(240,236,250,.94) 0,rgba(240,236,250,.9) 55%,rgba(240,236,250,.5) 82%,rgba(240,236,250,0) 100%)}
html.mo .gt .h{font:800 calc(var(--gw,195px)*.118)/1.12 var(--f-d);letter-spacing:-.02em;text-wrap:balance;margin:0}
html.mo .gt .s{font:500 calc(var(--gw,195px)*.078)/1.4 var(--f-b);margin:.6em 0 0;color:#2C2060;text-wrap:balance}
/* the real headline and line stay in the page for screen readers and search; the glass copy is what the eye sees */
html.mo .hero-copy .ttl,html.mo .hero-copy .sub{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
/* no dark band over the bottom of the glass: the buttons sit on the plain wall */
html.mo .hero::after{display:none}
html.mo .hero-copy{gap:0}
/* the words in the cloud: same ink as the words on the glass, with a cloud-coloured halo so they sit in the sky */
html.mo .cloud .ttl.m{color:#25165C;text-shadow:0 0 14px rgb(244 241 253/.85),0 0 3px rgb(244 241 253/.6)}
html.mo .cloud .coord{color:#2C2060;text-shadow:0 0 10px rgb(244 241 253/.9),0 0 3px rgb(244 241 253/.7)}
/* hero composition (phone, motion): one column in order nav, status chip, window with words, action group, scroll cue.
   The window centre sits half way between the chip row and the action group; js/mobile.js reads --ww and --wcy through two probes so wall, words and zoom origin all follow the same numbers. */
html.mo{--cue-h:30px;--cue-b:calc(var(--sab) + 12px);--cta-h:108px;--cta-b:calc(var(--cue-b) + var(--cue-h) + 14px);--cta-gap:16px;
  --bt:calc(var(--hh) + 42px);--ctab:calc(var(--cta-b) + var(--cta-h) + var(--cta-gap));
  --wcy:calc((var(--bt) + 100svh - var(--ctab))/2);
  --ww:max(100vw,calc(100svh*.47846),calc((100lvh - var(--wcy))*.82492),calc(var(--wcy)*.82492),min(calc((100svh - var(--bt) - var(--ctab))*.83),calc(100vw*1.165)))}
html.mo .hero{min-height:0}   /* the 560px floor pushed the cue and buttons below a 520px screen */
html.mo .o-zoom .hero-wall{transform:translateX(-50%) translateY(calc(var(--wcy) - var(--ww)*1.212225))}
html.mo .chip-s{top:calc(var(--hh) + 8px)}
html.mo .hero-copy{left:var(--gut);right:var(--gut);bottom:var(--cta-b)}
html.mo .hero .acts{display:grid;grid-template-columns:1fr;gap:8px;margin:0;align-items:stretch}
html.mo .hero .acts .btn{min-height:54px;font-size:1.0625rem}
html.mo .hero .acts .lnk{justify-content:center;min-height:46px;padding:0 22px;border-radius:var(--r-btn);border:1px solid rgb(247 245 251/.55);background:rgb(27 18 48/.55);font:600 1rem/1.1 var(--f-b);text-decoration:none;text-align:center;transition:background-color .2s,border-color .2s,transform .15s var(--out)}
html.mo .hero .acts .lnk:hover{background:rgb(27 18 48/.75);border-color:rgb(247 245 251/.8)}
html.mo .hero .acts .lnk:active{transform:scale(.98)}
html.mo .hero .cue{bottom:var(--cue-b);height:var(--cue-h);padding:0;border-radius:0;background:none;gap:4px;font:600 .75rem/1 var(--f-b);letter-spacing:.08em;text-transform:none;color:rgb(247 245 251/.82);text-shadow:0 1px 8px rgb(10 6 24/.7)}
html.mo .hero .cue i{width:1px;height:14px;border-radius:0;background:linear-gradient(rgb(247 245 251/.85),rgb(247 245 251/0))}
/* short screens (the visible page under Chrome's bars is about 520 tall): the two actions share one row */
@media (max-height:600px){
  html.mo{--cta-h:48px;--cta-gap:20px;--cue-b:calc(var(--sab) + 10px);--cue-h:28px;--cta-b:calc(var(--cue-b) + var(--cue-h) + 12px)}
  html.mo .hero .acts{grid-template-columns:1.35fr 1fr;gap:10px}
  html.mo .hero .acts .btn,html.mo .hero .acts .lnk{min-height:48px;padding:0 12px;font-size:1rem}
}
