/* DREAMERS FREQUENCIES product pages as worlds (product-world.js on WORLD STATIONS). Only the stage (ws-stage)
   and the phone column (ws-flow) change; the still page (ws-still) is the page exactly as it was.
   On the stage every section is a small card in the tunnel: the type comes down to card size (nothing shouts),
   every part of a station is in view without scrolling, the page's own demos keep working inside. */

/* ---------- the way in and out ---------- */
.arrive.hold{display:block;animation:none;opacity:1;transition:opacity .95s var(--ease),transform 1.2s var(--ease)}
.arrive.hold.lift{opacity:0;transform:scale(1.06)}
.leave{position:fixed;inset:0;z-index:95;pointer-events:none;opacity:0;transition:opacity .75s var(--ease)}
.leave img{width:100%;height:100%;object-fit:cover;filter:brightness(.7)}
.leave.on{opacity:1}

/* ---------- the room shows through: no page background, no scan lines over the tunnel ---------- */
.ws-stage body,.ws-flow body{background:transparent}
.ws-stage body::before,.ws-flow body::before{display:none}
.ws-stage .chrome{background:linear-gradient(rgba(2,4,4,.85) 30%,rgba(2,4,4,0));padding-bottom:26px}
.ws-flow .chrome{background:linear-gradient(rgba(2,4,4,.96) 55%,rgba(2,4,4,0));padding-bottom:30px}
.ws-index-btn{font:inherit;letter-spacing:inherit}

/* ---------- stage: cards in the tunnel ---------- */
.ws-stage [data-station]{--ws-panel:rgba(3,7,7,.8)}
.ws-stage [data-station].sec,.ws-stage [data-station].hero,.ws-stage [data-station].buy,.ws-stage .ws-part,.ws-stage [data-station].foot{padding:clamp(18px,1.6vw,26px) clamp(20px,1.8vw,30px);margin:0;max-width:none;min-height:0}
:is(.ws-stage,.env-stage) .hero{grid-template-columns:minmax(0,5fr) minmax(0,5fr);gap:clamp(20px,2.2vw,36px);align-items:center}
:is(.ws-stage,.env-stage) .hero-h{font-size:clamp(46px,4.4vw,72px);line-height:.9}
:is(.ws-stage,.env-stage) .hero-tag{font-size:clamp(15px,1.25vw,19px);margin-top:10px}
:is(.ws-stage,.env-stage) .hero-p{font-size:15.5px;line-height:1.38;margin-top:12px}
:is(.ws-stage,.env-stage) .hero-price{margin-top:14px}
:is(.ws-stage,.env-stage) .hero-cta{margin-top:14px;gap:10px}
:is(.ws-stage,.env-stage) .hero-cta .btn{padding:12px 16px;font-size:11.5px}
:is(.ws-stage,.env-stage) .hero-meta{margin-top:18px;gap:8px 20px}
:is(.ws-stage,.env-stage) .hero-meta b{font-size:15px}
:is(.ws-stage,.env-stage) .sh{margin-bottom:16px;padding-bottom:10px;gap:14px}
:is(.ws-stage,.env-stage) .sh h2{font-size:clamp(26px,2.3vw,38px);line-height:.95}
:is(.ws-stage,.env-stage) .sh>.mono:first-child,:is(.ws-stage,.env-stage) .sh .kick{padding-bottom:4px}
:is(.ws-stage,.env-stage) .sec-p{font-size:15.5px;line-height:1.38;margin:0 0 16px;max-width:none}
:is(.ws-stage,.env-stage) .lead{font-size:clamp(18px,1.6vw,24px)}
:is(.ws-stage,.env-stage) .stats b{font-size:clamp(34px,3vw,48px)}
:is(.ws-stage,.env-stage) .stats div{padding:16px 14px}
:is(.ws-stage,.env-stage) .name-note{margin-top:18px}
:is(.ws-stage,.env-stage) .reveal{opacity:1;transform:none}
:is(.ws-stage,.env-stage) .step .k::after{background:var(--lil,var(--c));box-shadow:0 0 12px var(--lil,var(--c))}
:is(.ws-stage,.env-stage) .steps .prog{display:none}
:is(.ws-stage,.env-stage) .step{padding-bottom:22px}
:is(.ws-stage,.env-stage) .step p,:is(.ws-stage,.env-stage) .use p,:is(.ws-stage,.env-stage) .card p,:is(.ws-stage,.env-stage) .specs dd,:is(.ws-stage,.env-stage) .faq p{font-size:15px}
:is(.ws-stage,.env-stage) .whatsnew{margin:0;grid-template-columns:minmax(0,1fr)}
:is(.ws-stage,.env-stage) .whatsnew+.whatsnew{margin-top:0}
:is(.ws-stage,.env-stage) .specs dl div{padding:10px 0}
:is(.ws-stage,.env-stage) .faq details{padding:12px 0}
:is(.ws-stage,.env-stage) .tables{margin-top:0}
:is(.ws-stage,.env-stage) .groups{gap:28px}
:is(.ws-stage,.env-stage) .gal .g-film video{max-height:52vh}
:is(.ws-stage,.env-stage) .buy{text-align:center}
:is(.ws-stage,.env-stage) .buy h2{font-size:clamp(34px,3.6vw,58px);margin-top:12px}
:is(.ws-stage,.env-stage) .buy-price{margin-top:14px}
:is(.ws-stage,.env-stage) .next{margin-top:26px}
:is(.ws-stage,.env-stage) .foot .wm{font-size:clamp(30px,3.6vw,60px)}
/* demos with their own scroll keep it short so the station reads on one screen */
:is(.ws-stage,.env-stage) .lib-rows{max-height:min(330px,34vh)}
/* a grid its tab bar redraws (every parameter, by tab) and the lesson path list scroll inside their station */
:is(.ws-stage,.env-stage) [role="tablist"]+div,:is(.ws-stage,.env-stage) .plist{max-height:min(50vh,470px);overflow-y:auto;overscroll-behavior:contain}
/* PORTAL's mapping editor: its side panels scroll like the app's own, so the whole editor stands in one station */
.ws-stage .pg-body>*{max-height:min(54vh,520px);overflow-y:auto;overscroll-behavior:contain}
/* a tall screenshot fits the station */
:is(.ws-stage,.env-stage) .gal figure img{max-height:56vh;width:auto;max-width:100%;margin:0 auto;object-fit:contain}

/* fold-outs inside a station keep the station on one screen */
:is(.ws-stage,.env-stage) .upnotes{padding:clamp(14px,1.2vw,20px) clamp(20px,1.8vw,30px);max-width:none}
:is(.ws-stage,.env-stage) .upnotes ol{max-height:min(52vh,460px);overflow-y:auto;overscroll-behavior:contain}

/* ---------- phone column over the tunnel ---------- */
.ws-flow .sec,.ws-flow .hero,.ws-flow .buy{position:relative}
/* each station reads on its own dark panel; the tunnel shows between them as you scroll */
.ws-flow [data-station]{background:rgba(3,7,7,.86);border-top:1px solid var(--ws-line);border-bottom:1px solid var(--ws-line);box-shadow:0 0 60px -30px var(--c,#eef3ef);margin-bottom:16vh}
.ws-flow [data-station]:last-child{margin-bottom:0}
.ws-flow .stats div{background:rgba(5,5,5,.86)}

/* the picture carried across the page load reads at the same .7 brightness on both pages (the page's own .55
   was for its old one-second flash; a darker picture read as a near-black screen on the way in and out) */
.arrive.hold img{filter:brightness(.7)}

/* polish, phone: tabs, the play button and the header links at least 44px to tap; a tab row that scrolls sideways
   fades at its edge (and leaves room to bring its last tab fully in); the small grey notes readable */
@media (max-width:760px){
  :is(.ws-flow,.env-flow) .env-tabs{-webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);mask-image:linear-gradient(90deg,#000 86%,transparent);padding-right:44px}
  :is(.ws-flow,.env-flow) :is(.env-tabs button, .env-tabs a, .play-cta, .chrome .nav a, .chrome .nav button, .buy-top){min-height:44px}
  :is(.ws-flow,.env-flow) :is(.chip, .st-inside button){min-height:44px}
  :is(.ws-flow,.env-flow) :is(.eyebrow.mono, .route-note, .crumbs, .vt-l){font-size:12px}
}
@media (max-width:760px){
  /* the rail along the foot keeps a dark fade under it, so lines of text scrolling past never run through it */
  :is(.ws-flow,.env-flow) .ws-scrub::before{content:"";position:absolute;left:-16px;right:-16px;bottom:-24px;height:70px;background:linear-gradient(rgba(2,4,4,0),rgba(2,4,4,.92) 58%);z-index:-1;pointer-events:none}
}
