/* WORLD ENV (env.js): FREQUENCIES and its products in one environment. html.env-stage (desktop with motion: the
   zones stand in the chamber), html.env-flow (phones: the zones in one column over it); the plain page (still) never
   loads the environment. html[data-env-at] says where the visitor is: fq (FREQUENCIES) or room (a product). */

/* ---------- layers: one document, FREQUENCIES and each product's room ---------- */
.env-layer{transition:opacity .55s cubic-bezier(.22,1,.36,1)}
.env-layer.off{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .45s cubic-bezier(.22,1,.36,1),visibility 0s .45s}
.env-layer.gone{display:none}
/* FREQUENCIES keeps its own colours and header beside a product's stylesheet */
.env-layer[data-layer="fq"]{--accent:#3dff6e;--void:#050505}
.env-stage .env-layer[data-layer="fq"] .chrome,.env-flow .env-layer[data-layer="fq"] .chrome{background:none;padding-bottom:22px}
.env-layer:not([data-layer="fq"]) .chrome{opacity:1}
.env-stage .env-layer:not([data-layer="fq"]) .chrome{background:linear-gradient(rgba(2,4,4,.85) 30%,rgba(2,4,4,0));padding-bottom:26px}
.env-flow .env-layer:not([data-layer="fq"]) .chrome{background:linear-gradient(rgba(2,4,4,.96) 55%,rgba(2,4,4,0));padding-bottom:30px}
/* on the way back FREQUENCIES' own header and caption come up only as its station does */
.env-leaving .env-layer[data-layer="fq"] :is(.chrome,.story,.scrub,.fq-hint,.fq-filter){opacity:0!important;transition:opacity .5s}
/* the room shows through: no page background, no scan lines over the world */
.env-stage body,.env-flow body{background:transparent}
.env-stage body::before,.env-flow body::before{display:none}
.env-stage.env-in,.env-stage.env-in body{overflow:hidden;overscroll-behavior:none}
.env-drag,.env-drag *{cursor:grabbing!important}
/* a product's header and its zone index come up as the camera arrives, not before */
.env-stage .env-layer:not([data-layer="fq"]) .chrome,.env-index,.env-hint{transition:opacity .6s cubic-bezier(.22,1,.36,1)}
.env-stage:not(.env-ui-on) .env-layer:not([data-layer="fq"]) .chrome,.env-stage:not(.env-ui-on) .env-index,.env-stage:not(.env-ui-on) .env-hint{opacity:0;pointer-events:none}

/* ---------- stage: the zones stand on the chamber's wall ---------- */
.env-stage .env-room{position:fixed;inset:0;z-index:5;pointer-events:none;overflow:hidden;margin:0;padding:0;max-width:none}
.env-zone{--face:1;--c:#eef3ef;--panel:rgba(3,7,7,.86);--line:rgba(238,243,239,.14)}
.env-stage .env-zone{position:absolute;left:0;top:0;width:var(--zw,1100px);height:var(--zh,640px);margin:0;transform-origin:50% 50%;will-change:transform,opacity;visibility:hidden;transform:translate3d(-300vw,0,0);pointer-events:none}
.env-stage .env-face,.env-stage .env-body{position:absolute;inset:0}
/* the face: what the zone holds, readable from the middle of the room */
.env-face{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:22px;text-align:center;padding:40px;width:100%;
  background:rgba(10,16,16,.66);border:1px solid var(--line);box-shadow:0 0 34px -16px var(--c);color:var(--ink,#eef3ef);cursor:pointer;
  opacity:min(1,calc(var(--face) * 4));transition:border-color .3s,box-shadow .3s}
.env-stage .env-zone.near .env-face{pointer-events:auto}
.env-face:hover,.env-face:focus-visible{border-color:var(--c);box-shadow:0 0 44px -12px var(--c)}
.env-fn{font-size:26px;letter-spacing:.2em;color:var(--c)}
.env-ft{font-family:var(--f-display,sans-serif);font-weight:800;font-size:clamp(64px,6.4vw,104px);line-height:.92;letter-spacing:.02em;max-width:12ch}
.env-fk{font-size:24px;letter-spacing:.14em;color:var(--mute,#7c8580)}
.env-fl{font-size:20px;letter-spacing:.12em;color:var(--soft,#b4c2bb);max-width:40ch;line-height:1.5}
/* the body: the zone's own blocks, one panel at a time, under a small header with its tabs */
.env-body{display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);box-shadow:0 0 34px -16px var(--c);opacity:calc(1 - var(--face))}
.env-stage .env-zone.here .env-body{pointer-events:auto}
/* a demo starts when the camera arrives at its zone (its first frames light a whole grid at once, PORTAL's 46
   visuals, EVERY CONTROL's previews): its canvas fades in from there, never pops */
.env-stage .env-zone .env-panel canvas{transition:opacity 1.6s cubic-bezier(.45,0,.55,1) .25s}   /* (eased both ends: an ease-out put most of a bright grid's light into its first frames) */
.env-stage .env-zone:not(.here) .env-panel canvas{opacity:0;transition-duration:.35s;transition-delay:0s}
.env-stage .env-zone:not(.body-on) .env-body,.env-stage .env-zone:not(.face-on) .env-face{visibility:hidden}
.env-zh{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px clamp(20px,1.8vw,30px);border-bottom:1px solid var(--line);flex:none}
.env-zn{color:var(--c);font-size:12px}
.env-zt{font-family:var(--f-display,sans-serif);font-weight:800;font-size:15px;letter-spacing:.08em}
.env-tabs{display:flex;gap:4px;flex-wrap:wrap;flex:1;min-width:0}
.env-tabs[hidden]{display:none}
.env-tabs button{padding:8px 12px;min-height:34px;color:var(--mute,#7c8580);border:1px solid transparent;font-size:11px;letter-spacing:.1em;transition:color .25s,border-color .25s}
.env-tabs button:hover{color:var(--ink,#eef3ef)}
.env-tabs button[aria-selected="true"]{color:var(--ink,#eef3ef);border-color:var(--c)}
.env-all{margin-left:auto;color:var(--mute,#7c8580);font-size:11px;letter-spacing:.1em;min-height:34px;padding:0 4px}
.env-all:hover{color:var(--ink,#eef3ef)}
.env-panels{position:relative;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(238,243,239,.25) transparent}
.env-panel>*{margin:0;max-width:none}
.env-panel>.sec,.env-panel>.hero,.env-panel>.buy,.env-panel>.foot,.env-panel>.upnotes,.env-panel>.specs,.env-panel>.tables{padding:clamp(18px,1.6vw,26px) clamp(20px,1.8vw,30px)}
.env-panel>.hero{min-height:0}
.env-panel{animation:env-in .45s cubic-bezier(.22,1,.36,1)}
@keyframes env-in{from{opacity:0}to{opacity:1}}
/* the panel that goes lies over the one that comes and fades (env.js show()); the one that comes is simply there
   under it, so the zone never shows its empty background half-way */
.env-stage .env-panel{animation:none}
.env-panel.env-out{position:absolute;left:0;right:0;top:0;z-index:1;pointer-events:none;background:var(--panel);animation:env-out .3s cubic-bezier(.22,1,.36,1) forwards}
@keyframes env-out{from{opacity:1}to{opacity:0}}
/* inside a zone a block reads at card size, like a station (product-world.css); its own scrolling parts stay short */
.env-stage .env-panel .lib-rows{max-height:min(330px,34vh)}
.env-stage .env-panel [role="tablist"]+div{max-height:min(46vh,430px);overflow-y:auto;overscroll-behavior:contain}

/* ---------- the zone index: always there, where you are in the room ---------- */
.env-index,.env-hint{display:none}
.env-in .env-index{display:flex;position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:20;gap:2px;max-width:calc(100vw - 40px);flex-wrap:wrap;justify-content:center}
.env-index button{display:flex;align-items:baseline;gap:7px;padding:8px 11px;min-height:34px;color:var(--mute,#7c8580);border-bottom:1px solid transparent;font-size:11px;letter-spacing:.1em;transition:color .25s,border-color .25s}
.env-index button b{color:inherit;font-weight:600}
.env-index button:hover{color:var(--ink,#eef3ef)}
.env-index button.on{color:var(--ink,#eef3ef);border-bottom-color:var(--c,#eef3ef)}
.env-index button.on b{color:var(--c,#eef3ef)}
.env-stage.env-in .env-hint{display:block;position:fixed;right:var(--gut,24px);bottom:30px;z-index:20;color:var(--mute,#7c8580);font-size:11px}
@media (max-width:1280px){.env-index button span{display:none}.env-index button.on span{display:inline}}

/* ---------- flow (phones): the zones one under the other over the room ---------- */
.env-flow .env-room{position:relative;z-index:5;padding:92px 0 110px;margin:0;max-width:none}
.env-flow .env-zone{scroll-margin-top:64px;position:relative;margin:0 0 12vh;background:rgba(3,7,7,.88);border-top:1px solid var(--line);border-bottom:1px solid var(--line);box-shadow:0 0 60px -30px var(--c)}
.env-flow .env-zone:last-child{margin-bottom:0}
.env-flow .env-face{display:none}
.env-flow .env-body{opacity:1;background:none;border:0;box-shadow:none}
.env-flow .env-zh{padding:14px 16px;gap:10px}
.env-flow .env-all{display:none}
.env-flow .env-tabs{flex-basis:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
.env-flow .env-tabs button{white-space:nowrap}
.env-flow .env-panels{overflow:visible}
.env-flow.env-in .env-index{left:0;right:0;bottom:0;transform:none;max-width:none;background:linear-gradient(rgba(2,4,4,0),rgba(2,4,4,.94) 40%);padding:16px 8px 10px;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;scrollbar-width:none}
.env-flow .env-index button span{display:none}
.env-flow .env-index button.on span{display:inline}
.env-flow .env-panel>.sec,.env-flow .env-panel>.hero,.env-flow .env-panel>.buy,.env-flow .env-panel>.foot,.env-flow .env-panel>.upnotes{padding:18px 16px}

@media (prefers-reduced-motion:reduce){.env-panel{animation:none}}
