/* Layout: one fixed WebGL world behind a normal scrolling document. Each <section> is a chapter; its scroll progress drives the camera. */
:root{
  --void:#05070b;
  --ink:#eef2f7;
  --ink-2:#a7b1c0;
  --ink-3:#7b8697;
  --glass:rgba(19,23,31,.62);
  --line:rgba(255,255,255,.09);
  --brand:#e8830a;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",Roboto,system-ui,sans-serif;
  --label-on-dark:rgba(229,231,235,.55);
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:auto}
body{margin:0;background:var(--void);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased}
#stage{position:fixed;inset:0;z-index:0}
#stage canvas{display:block;width:100%;height:100%}
.glass{background:var(--glass);backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 40px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.06)}

/* nav */
#nav{position:fixed;z-index:20;top:calc(14px + env(safe-area-inset-top,0px));left:max(16px,env(safe-area-inset-left,0px));right:max(16px,env(safe-area-inset-right,0px));display:flex;justify-content:space-between;align-items:center;gap:12px}
.lockup{display:flex;align-items:center;gap:8px;padding:6px 4px;text-decoration:none}   /* no glass: the brand is not a button group; 6px keeps a 44px hit area */
.lockup img{height:32px;width:32px;display:block;border-radius:8px}
.lockup .wm{font-weight:700;font-size:16px;line-height:24px;letter-spacing:-0.025em;color:#fcfcfd}
/* phones: the header holds loop + sound + app + menu, so the lockup keeps only the mark (the wordmark is back in the hero and footer) */
@media (max-width:460px){#nav>.lockup .wm{display:none}}
.nav-r{display:flex;gap:8px;align-items:center}
.nav-links{display:flex;gap:2px;padding:3px;margin-right:auto;border-radius:12px}
/* one header line: the section strip and the buttons on the right share a 40px height and a 12px radius (touch screens lift buttons to 44 below) */
#nav .btn-sm{height:40px;box-sizing:border-box;padding-block:0;border-radius:12px;white-space:nowrap}
.nav-links a{padding:6px 11px;border-radius:8px;font-size:13.5px;line-height:20px;font-weight:500;color:var(--ink-2);text-decoration:none;transition:background .2s,color .2s}
.nav-links a:hover{background:rgba(255,255,255,.08);color:var(--ink)}
.nav-links a:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.nav-links a[aria-current]{color:var(--ink);background:rgba(255,255,255,.06)}
@media (max-width:980px){.nav-links{display:none}}   /* on narrow screens the sections move into the menu */
/* menu: a sheet that grows out of the button corner; only where the links strip is hidden */
.btn.menu-btn{display:none;padding-inline:10px}
.menu-btn svg{width:18px;height:18px;display:block}
@media (max-width:980px){.btn.menu-btn{display:inline-flex}}
.menu{position:fixed;inset:0;z-index:40}
.menu-scrim{position:absolute;inset:0;background:rgb(5 7 11 / .55);opacity:0;transition:opacity .28s cubic-bezier(.25,1,.5,1)}
.menu-sheet{position:absolute;top:calc(10px + env(safe-area-inset-top,0px));right:max(10px,env(safe-area-inset-right,0px));width:min(340px,calc(100vw - 20px));padding:14px 10px 12px;border-radius:22px;background:rgba(15,19,26,.9);
  transform-origin:calc(100% - 24px) 24px;transform:scale(.92) translateY(-6px);opacity:0;transition:transform .32s cubic-bezier(.25,1,.5,1),opacity .2s cubic-bezier(.25,1,.5,1)}
.menu.open .menu-scrim{opacity:1}
.menu.open .menu-sheet{transform:none;opacity:1}
.menu-head{display:flex;align-items:center;justify-content:space-between;padding:0 4px 6px 12px}
.menu-k{font-size:11px;line-height:16px;font-weight:500;letter-spacing:.5px;text-transform:uppercase;color:var(--ink-3)}
.menu-x{all:unset;cursor:pointer;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:var(--ink-2)}
.menu-x svg{width:18px;height:18px}
.menu-x:hover,.menu-x:focus-visible{background:rgba(255,255,255,.08);color:var(--ink)}
.menu-list{display:grid;gap:2px}
.menu-list a{display:grid;gap:2px;padding:12px 12px;border-radius:14px;text-decoration:none;transition:background .2s}
.menu-list a b{font-size:17px;line-height:24px;font-weight:600;color:var(--ink);letter-spacing:-.01em}
.menu-list a small{font-size:13px;line-height:18px;color:var(--ink-3)}
.menu-list a:hover,.menu-list a:focus-visible{background:rgba(255,255,255,.06);outline:none}
.menu-list a:focus-visible{box-shadow:inset 0 0 0 2px var(--brand)}
.btn.menu-in{display:flex;justify-content:center;margin:10px 2px 0;padding:12px 16px}
@media (prefers-reduced-motion:reduce){.menu-scrim,.menu-sheet{transition:opacity .15s linear}.menu-sheet{transform:none}}
body.menu-open{overflow:hidden}
.btn{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:15px;font-weight:600;padding:13px 20px;border-radius:12px;transition:background .2s,transform .2s}
.btn:focus-visible,.chip:focus-visible,.dot:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.btn-primary{background:var(--brand);color:#140b02}
.btn-primary:hover{background:#f19330}
.btn-ghost{background:rgba(255,255,255,.08);color:var(--ink);border:1px solid var(--line)}
.btn-ghost:hover{background:rgba(255,255,255,.14)}
.btn-sm{font-size:13px;padding:9px 14px;border-radius:10px}
/* one orange action per screen: on the hero and the final the page's own primary leads, the header button steps back */
#hdr-app{white-space:nowrap;transition:background .3s,color .3s,box-shadow .3s}
#hdr-app.quiet{background:transparent;color:var(--brand);box-shadow:inset 0 0 0 1px rgb(232 131 10 / .55)}
#hdr-app.quiet:hover{background:rgb(232 131 10 / .1)}

/* chapter rail */
#rail{transition:opacity .4s;position:fixed;z-index:20;right:max(18px,env(safe-area-inset-right,0px));top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:14px}
.dot{all:unset;cursor:pointer;display:flex;align-items:center;gap:10px;justify-content:flex-end;padding:6px 0;font-family:var(--mono);font-size:11px;color:var(--ink-3)}
.dot span{opacity:0;transition:opacity .3s;font-family:var(--font);font-size:11px;letter-spacing:.5px;text-transform:uppercase;font-weight:500}
.dot i{display:block;width:6px;height:6px;border-radius:50%;background:var(--ink-3);transition:all .3s}
.dot:hover span,.dot.on span{opacity:1}
.dot.on{color:var(--ink)}
.dot.on i{background:var(--brand);box-shadow:0 0 12px var(--brand);height:18px;border-radius:3px}

/* chapters */
main{position:relative;z-index:10}
main>section{position:relative;min-height:100vh}
main>section.tall,main>section.xtall{min-height:120vh}   /* one swipe per chapter: the whole extra .2 screen is the blend into the next one, no dead scroll */
.pin{position:sticky;top:0;height:100vh;box-sizing:border-box;display:flex;align-items:center;padding:calc(72px + env(safe-area-inset-top,0px)) max(24px,6vw) 20px;pointer-events:none}   /* centred in the space under the header, never under it */
.pin>*{pointer-events:auto}
.copy{max-width:470px}
.eyebrow{font-size:11px;line-height:16px;font-weight:500;letter-spacing:.6px;text-transform:uppercase;color:var(--label-on-dark);display:flex;align-items:center;gap:10px}
.eyebrow b{font-family:var(--mono);font-weight:500;color:var(--brand)}
h1{margin:18px 0 0;font-size:clamp(2.5rem,4vw + 1rem,4.25rem);line-height:1.05;font-weight:800;letter-spacing:-0.025em;text-wrap:balance}
h1 em,h2 em{font-style:normal;color:var(--brand);display:block}
/* the hero title is the site's own; in es/fr/hy it runs to 5 lines at full size, so it steps down one notch */
:lang(es) h1,:lang(fr) h1,:lang(hy) h1{font-size:clamp(2.25rem,3.3vw + 1rem,3.6rem)}
h2{margin:14px 0 0;font-size:clamp(1.9rem,2.4vw + 1rem,3rem);line-height:1.08;font-weight:700;letter-spacing:-0.02em;text-wrap:balance}
.lead{margin:18px 0 0;font-size:18px;line-height:1.6;color:var(--ink-2)}
.small{margin:14px 0 0;font-size:13px;line-height:1.5;color:var(--ink-3)}
.ctas{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.micro{margin-top:12px;font-size:12.5px;color:var(--ink-3)}
.reveal{opacity:0;transform:translateY(24px);transition:opacity .9s cubic-bezier(.2,.8,.2,1),transform .9s cubic-bezier(.2,.8,.2,1)}
.in .reveal{opacity:1;transform:none}
.in .reveal:nth-child(2){transition-delay:.08s}.in .reveal:nth-child(3){transition-delay:.16s}.in .reveal:nth-child(4){transition-delay:.24s}.in .reveal:nth-child(5){transition-delay:.32s}

/* turbulence chip (hero) and gauge (weather chapter) */
/* hero: live reading above the headline (data, not a control) */
.btn-link{all:unset;cursor:pointer;display:inline-flex;align-items:center;padding:13px 6px;font-size:15px;font-weight:600;color:var(--ink);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:5px;transition:text-decoration-color .2s}
.btn-link:hover{text-decoration-color:var(--ink-2)}
.btn-link:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}
.hero .copy{max-width:560px}
.hero .ctas{align-items:center;gap:8px 20px}
.globe-cap{position:absolute;right:max(24px,6vw);bottom:calc(28px + env(safe-area-inset-bottom,0px));margin:0;max-width:260px;text-align:right;font-size:12px;line-height:1.5;color:var(--ink-3)}
.only-m{display:none}
body.can-turn{cursor:grab}
body.turning,body.turning *{cursor:grabbing!important;user-select:none}
main{touch-action:pan-y pinch-zoom}
#tip{position:fixed;z-index:30;pointer-events:none;max-width:300px;padding:10px 12px;border-radius:12px;background:rgba(10,14,20,.94);border:1px solid var(--line);font-size:13px;line-height:1.4;color:var(--ink);transform:translate(16px,16px);opacity:0;transition:opacity .15s}
#tip b{font-weight:600}
#tip small{display:flex;align-items:center;gap:6px;margin-top:5px;font-size:11.5px;color:var(--ink-3)}
#tip small i{flex:none;width:6px;height:6px;border-radius:50%}
.gauge{margin-top:26px;padding:16px 18px 14px;max-width:340px}
.g-row{display:flex;align-items:baseline;gap:12px;margin-top:6px}
.g-num{font-size:48px;font-weight:300;line-height:1;font-variant-numeric:tabular-nums;color:#3aa862}
.g-label{font-size:16px;font-weight:600}
/* read-only meter, not a slider: filled up to the value, dimmed after it, value marked by a thin tick (no round handle) */
.g-scale{--v:50%;position:relative;height:4px;border-radius:2px;margin:16px 0 6px;cursor:default}
.g-scale::before,.g-scale::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,#3aa862 0%,#3aa862 30%,#a8b82a 47%,#d9a22a 60%,#e8830a 68%,#d03a2a 78%,#d03a2a 100%)}
.g-scale::before{opacity:.18}
.g-scale::after{clip-path:inset(0 calc(100% - var(--v)) 0 0 round 2px)}
.g-tick{position:absolute;z-index:1;top:-5px;bottom:-5px;left:var(--v);width:2px;margin-left:-1px;border-radius:1px;background:var(--ink)}
.g-mode{display:flex;align-items:center;gap:8px;font-size:12px;line-height:16px;color:var(--ink-3)}
.g-mode i{width:6px;height:6px;border-radius:50%;background:var(--ink-3);opacity:.5;transition:background .3s,opacity .3s,box-shadow .3s}
.g-mode.live{color:var(--ink-2)}
.g-mode.live i{background:var(--tc,#a8b82a);opacity:1;box-shadow:0 0 8px var(--tc,#a8b82a)}
.g-ticks{display:flex;justify-content:space-between;font-size:10px;color:var(--ink-3);font-variant-numeric:tabular-nums}

/* "yours" chips */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.chips-hint{margin:22px 0 0;font-size:13px;color:var(--ink-3)}
.chips-hint+.chips{margin-top:10px}
.chip{--c:#e6ebf2;all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:8px 13px 8px 12px;border-radius:999px;font-size:14px;line-height:20px;color:var(--ink-2);background:rgba(255,255,255,.04);border:1px solid var(--line);transition:background .25s,border-color .25s,color .25s}
.chip:hover{background:rgba(255,255,255,.08)}
.chip:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.chip i{width:8px;height:8px;border-radius:50%;background:var(--c);opacity:.45;transition:opacity .25s,box-shadow .25s}
.chip svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.chip .kind{color:var(--ink-3);transition:color .25s}
.chip .chk{width:0;margin-left:-8px;stroke-width:1.8;color:var(--c);opacity:0;transition:width .25s,margin .25s,opacity .25s}
.chip[aria-pressed="true"]{color:var(--ink);background:color-mix(in oklch,var(--c) 16%,transparent);border-color:color-mix(in oklch,var(--c) 55%,transparent)}
.chip[aria-pressed="true"] i{opacity:1;box-shadow:0 0 10px var(--c)}
.chip[aria-pressed="true"] .kind{color:var(--c)}
.chip[aria-pressed="true"] .chk{width:13px;margin-left:0;opacity:1}
.steps{display:grid;gap:10px;margin-top:22px}
.steps div{display:flex;gap:12px;font-size:14px;line-height:1.45;color:var(--ink-2)}
.steps b{font-family:var(--mono);font-weight:500;color:var(--brand);font-size:12px;padding-top:2px}

/* reading layers (facts chapter) */
/* the stack lives between the header and the bottom edge: centred when it fits, top-aligned (never under the header) when not */
#layers{position:fixed;z-index:12;right:max(64px,6vw);top:calc(84px + env(safe-area-inset-top,0px));bottom:24px;width:min(380px,calc(100vw - 32px));display:flex;flex-direction:column;justify-content:safe center;gap:10px;perspective:1400px;pointer-events:none}
@media (min-width:821px) and (max-height:860px){#layers{gap:6px}#layers .layer{padding:9px 15px}#layers .layer h3{font-size:16px}#layers .layer p{font-size:12.5px;line-height:1.5}#layers .layer .k{margin-bottom:5px}#layers .layer:nth-child(6){display:none}#layers .hl-row+.hl-row{margin-top:8px;padding-top:8px}#layers .hl-src{margin-bottom:2px}#layers .layer h3{line-height:1.3}}
.layer{padding:15px 17px;transform-origin:100% 50%;opacity:0;transform:translateZ(-260px) rotateY(-18deg) translateX(40px);transition:transform .7s cubic-bezier(.2,.8,.2,1),opacity .5s}
.layer.on{opacity:1;transform:none}
.layer .k{font-size:11px;line-height:16px;font-weight:500;letter-spacing:.5px;text-transform:uppercase;color:var(--ink-3);display:flex;gap:8px;margin-bottom:7px}
.layer .k b{font-family:var(--mono);font-weight:500;color:var(--ink-2)}
.layer h3{margin:0;font-size:18px;line-height:1.25;font-weight:600;text-wrap:balance}
.layer p{margin:0;font-size:13px;line-height:1.55;color:var(--ink-2)}
.meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;font-size:12px;color:var(--ink-2)}
.meta i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}
.actors{display:flex;flex-wrap:wrap;gap:6px}
.actors span{font-size:12px;padding:4px 9px;border-radius:8px;background:rgba(255,255,255,.07);border:1px solid var(--line)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.open-ev{display:inline-block;margin-top:12px;font-size:13px;color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--ink-3);text-underline-offset:3px}
.open-ev:hover{color:var(--ink)}
#layers .layer.on .open-ev{pointer-events:auto}   /* the layers stack ignores the pointer; only a shown layer's link takes it */
.open-ev:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:3px}
.stats b{display:block;font-size:22px;font-weight:400;font-variant-numeric:tabular-nums}
.stats span{font-size:11px;color:var(--ink-3)}

/* layer 01: the real headline and the FactsLane one, both on screen; scroll marks the loaded words, strikes them,
   and brings the neutral headline up (--hl mark, --st strike, --sw clean; set from JS) */
#layers{--hl:0;--st:0;--sw:0}
/* desktop fit (scene fitLayers): line clamp, «related» out, «tight»; phones and the static page keep their own rules */
@media (min-width:821px){
  html:not(.fl-static) #layers .layer p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--clamp,6);overflow:hidden}
  html:not(.fl-static) #feat-related p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html:not(.fl-static) #layers .layer.fit-out{display:none}
  html:not(.fl-static) #layers.tight .actors{max-height:26px;overflow:hidden}
  html:not(.fl-static) #layers.tight .hl-row h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
}
.hl-row+.hl-row{margin-top:12px;padding-top:12px;border-top:1px solid rgb(255 255 255 / .08)}
.hl-src{display:block;margin-bottom:4px;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.hl-fl .hl-src{color:rgb(232 131 10 / calc(.55 + var(--sw) * .45))}
.h-orig{color:var(--ink-2);font-weight:500}
.h-orig mark{background:none;color:var(--ink);border-radius:3px;box-shadow:inset 0 -.42em 0 rgb(232 131 10 / calc(var(--hl) * .38 * (1 - var(--st) * .6)));text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:rgb(208 58 42 / var(--st))}
.hl-fl h3{opacity:calc(.38 + var(--sw) * .62)}

/* radio (listen chapter) */
.snd svg{width:16px;height:16px;display:block}
.snd[aria-pressed="false"] .on,.snd[aria-pressed="true"] .off{display:none}
/* signed in: the account circle instead of «Sign in» (avatar or initials, like the site navbar) */
.me{padding:4px 5px}
.me img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.me span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.12);font-size:12px;font-weight:600;letter-spacing:.02em}
.autoplay:disabled{opacity:.4;cursor:default}
.autoplay[aria-pressed="true"]{color:var(--fl-accent,#E8830A);border-color:rgb(232 131 10 / .55)}
.onair{display:inline-flex;align-items:center;gap:10px;margin-top:22px;padding:7px 12px 7px 10px;border-radius:999px;font-size:12.5px;color:var(--ink-2)}
.onair i{width:8px;height:8px;border-radius:50%;background:#d03a2a;box-shadow:0 0 10px #d03a2a;animation:air 1.6s ease-in-out infinite}
.onair b{color:var(--ink);font-weight:600}
@keyframes air{50%{opacity:.35}}
/* before the first click the browser keeps the radio silent: say so, and point at the sound button */
.onair .oa-off,.onair.muted .oa-on{display:none}
.onair.muted .oa-off{display:inline}
.onair b{white-space:nowrap}
.onair.muted>span{display:none}
.onair.muted i{background:none;box-shadow:inset 0 0 0 1.5px var(--ink-3);animation:none}
body.snd-call .snd{animation:sndcall 1.8s ease-in-out 2}
@keyframes sndcall{50%{box-shadow:0 0 0 4px rgb(232 131 10 / .28),0 0 18px rgb(232 131 10 / .35)}}
@media (prefers-reduced-motion:reduce){body.snd-call .snd{animation:none;box-shadow:0 0 0 2px rgb(232 131 10 / .5)}}
/* car chapter (06): the dash with a CarPlay-style screen is its backdrop, moving with the page in and out; driven by updateCockpit() */
#cockpit{position:fixed;inset:0;z-index:5;pointer-events:none;overflow:hidden;opacity:0;visibility:hidden}
.ck{position:absolute;inset:0;transform:translateY(var(--y,0)) scale(var(--s,1));transform-origin:50% 100%}
/* photo of a generic, unbranded dashboard (Gemini, car.jpg — screen rendered OFF); the live UI is mapped onto its screen with a homography (matrix3d) */
.ck-photo{position:absolute;left:50%;bottom:0;width:min(100vw,150vh);aspect-ratio:1584/672;transform:translateX(-50%);-webkit-mask-image:linear-gradient(transparent 16%,#000 29.5%,#000 84%,transparent 100%),linear-gradient(90deg,transparent 2%,#000 24%,#000 76%,transparent 98%);-webkit-mask-composite:source-in;mask-image:linear-gradient(transparent 16%,#000 29.5%,#000 84%,transparent 100%),linear-gradient(90deg,transparent 2%,#000 24%,#000 76%,transparent 98%);mask-composite:intersect}
.ck-photo>img{display:block;width:100%;height:100%}
.ck-display{--lit:0;--lx:.5;position:absolute;left:0;top:0;width:1160px;height:510px;transform-origin:0 0;overflow:hidden;border-radius:8px;background:#03060b}
/* the car screen runs a CarPlay-style Now Playing for the digest (generic look: no Apple marks or app icons) */
.cp{position:absolute;inset:20px 24px;border-radius:30px;overflow:hidden;display:flex;background:#000;color:#fff;font-family:var(--font);filter:brightness(calc(.85 + var(--lit) * .35))}
.cp-dock{width:128px;flex:none;display:flex;flex-direction:column;align-items:center;gap:18px;padding:22px 0;background:#141518;border-right:1px solid #222}
.cp-dock .clk{font:600 27px var(--font);letter-spacing:-.3px;margin-bottom:6px}
.cp-dock i{width:80px;height:80px;border-radius:19px;display:grid;place-items:center;background:#2a2c31}
.cp-dock i svg{width:44px;height:44px}
.cp-dock i.on{background:#13171f;box-shadow:0 0 0 3px #fff}
.cp-dock i.on img{width:60px;height:60px;border-radius:12px}
.cp-dock .grid{margin-top:auto;width:48px;height:48px;background:none}
.cp-main{flex:1;display:flex;flex-direction:column;padding:22px 46px 26px}
.cp-bar{display:flex;align-items:center;gap:14px;font:600 26px var(--font);color:#fff;height:42px}
.cp-bar b{color:#e8830a;font-size:40px;font-weight:400;line-height:1;margin-top:-6px}
.cp-body{flex:1;display:flex;align-items:center;gap:44px}
.cp-art{width:268px;height:268px;flex:none;border-radius:16px;display:grid;place-items:center;background:radial-gradient(circle at 30% 25%,#2c3442,#13171f 70%);box-shadow:0 12px 40px rgba(0,0,0,.6)}
.cp-art img{width:150px;height:150px;border-radius:30px}
.cp-info{flex:1;min-width:0}
.cp-title{font:700 38px/1.15 var(--font);letter-spacing:-.4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cp-artist{font:500 30px var(--font);color:#e8830a;margin-top:10px}
.cp-album{font:400 26px var(--font);color:#8e8e93;margin-top:4px}
.cp-prog{margin-top:30px;height:8px;border-radius:4px;background:#3a3a3c;overflow:hidden}
.cp-prog s{display:block;height:100%;width:0;background:#fff;text-decoration:none}
.cp-times{display:flex;justify-content:space-between;font:500 21px var(--font);color:#8e8e93;margin-top:10px;font-variant-numeric:tabular-nums}
.cp-ctl{display:flex;justify-content:center;gap:90px;margin-top:22px}
.cp-ctl svg{width:62px;height:62px;fill:#fff}
/* the globe flies into the screen: its light passes over it (--lit, --lx = globe x) */
.ck-light{position:absolute;inset:0;background:radial-gradient(ellipse 55% 85% at calc(var(--lx) * 100%) -15%,rgba(225,240,255,.55),rgba(120,175,230,.18) 45%,transparent 75%);opacity:var(--lit);mix-blend-mode:screen}
.ck-glow{--lit:0;--lx:.5;position:absolute;left:0;width:100%;top:20%;height:75%;background:radial-gradient(ellipse 30% 40% at calc(var(--lx) * 100%) 30%,rgba(210,230,255,.3),transparent 70%),radial-gradient(ellipse 34% 30% at 50% 62%,rgba(232,131,10,.22),transparent 70%);mix-blend-mode:screen;pointer-events:none;opacity:calc(.12 + var(--lit) * .88)}
/* below the photo: the dark footwell, so the dash can climb away without showing its bottom edge (or the globe under it) */
.ck-under{--w:min(100vw,150vh);position:absolute;left:50%;top:calc(100% - var(--w) * .17);width:var(--w);height:calc(100vh + var(--w) * .17);transform:translateX(-50%);background:linear-gradient(rgba(3,9,10,0),#03090a calc(var(--w) * .08));-webkit-mask-image:linear-gradient(90deg,transparent 2%,#000 24%,#000 76%,transparent 98%);mask-image:linear-gradient(90deg,transparent 2%,#000 24%,#000 76%,transparent 98%)}
@media (max-width:820px){.ck-photo{width:200vw}.ck-under{--w:200vw}}
.ck-gloss{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(115deg,rgba(255,255,255,.08),rgba(255,255,255,0) 30%,rgba(255,255,255,0) 70%,rgba(255,255,255,.03));pointer-events:none;z-index:2}
/* plans: Free and FL Plus side by side over the horizon; a normal flowing section (no pin, no hold) */
main>section.plans{min-height:100vh;display:flex;align-items:center;padding:calc(84px + env(safe-area-inset-top,0px)) max(72px,6vw) 28px}
.plans-wrap{width:100%;max-width:1180px;margin:0 auto}
.plans-head{max-width:none}
@media (min-width:821px){.plans-head h2 em{display:inline}}
.plans-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.1fr);gap:16px;margin-top:26px;align-items:start}
.plan{display:flex;flex-direction:column;padding:22px 24px 20px;border-radius:22px}
.plan h3{margin:0;font-size:17px;font-weight:600;letter-spacing:-.01em}
.p-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;margin-top:14px;font-variant-numeric:tabular-nums}
.price b{white-space:nowrap;font-size:40px;line-height:1;font-weight:700;letter-spacing:-.02em}
.price span{white-space:nowrap;font-size:14px;color:var(--ink-3)}
.price .was{margin-left:8px;font-size:13px;color:var(--ink-3)}
.p-sub{margin:8px 0 0;font-size:13.5px;line-height:1.45;color:var(--ink-2);min-height:1.45em}
.p-sub b{color:var(--brand);font-weight:600}
.plan ul{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:13.5px;line-height:1.45;color:var(--ink-2)}
.plan li{display:grid;grid-template-columns:16px 1fr;gap:9px}
.plan li::before{content:"";width:12px;height:12px;margin-top:4px;background:var(--brand);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3.4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3.4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.plan.free ul{margin-top:18px}
.plan.free li::before{background:var(--ink-3)}
.p-limits{margin:18px 0 0;font-size:12px;line-height:1.5;color:var(--ink-3)}
.plan .btn{margin-top:auto;width:100%;box-sizing:border-box}
.plan .p-cta{margin-top:auto;padding-top:22px}
.p-fine{margin:10px 0 0;font-size:13px;line-height:1.45;color:var(--ink-2);text-align:center}
/* Plus: the same glass, lifted by a warm full border and a faint inner glow (no side stripe) */
.plan.plus{border-color:rgb(232 131 10 / .38);box-shadow:0 10px 40px rgba(0,0,0,.35),0 0 0 1px rgb(232 131 10 / .08),inset 0 1px 0 rgba(255,255,255,.06),inset 0 0 80px rgb(232 131 10 / .05);transition:border-color .4s,box-shadow .4s}
.plan.plus:hover,.plan.plus:focus-within{border-color:rgb(232 131 10 / .6)}
.p-inc{margin:16px 0 0;font-size:13px;color:var(--ink-3)}
.p-groups{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:18px 22px;margin-top:12px;padding-top:16px;border-top:1px solid var(--line)}
.p-more-in{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}
.p-groups h4{margin:0 0 10px;font-size:11px;line-height:16px;font-weight:500;letter-spacing:.6px;text-transform:uppercase;color:var(--label-on-dark);display:flex;gap:8px}
.p-groups h4 b{font-family:var(--mono);font-weight:500;color:var(--brand)}
.plan.plus .p-cta{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.plan.plus .p-cta .btn{width:auto}
.plan.plus .p-fine{margin:0;text-align:left}
/* year / month: a segmented switch, not tabs */
.seg{display:inline-flex;padding:3px;border-radius:11px;background:rgba(255,255,255,.05);border:1px solid var(--line)}
.seg button{all:unset;cursor:pointer;padding:6px 12px;border-radius:8px;font-size:13px;font-weight:500;color:var(--ink-3);display:inline-flex;gap:6px;align-items:center;transition:background .25s,color .25s}
.seg button:hover{color:var(--ink-2)}
.seg button[aria-checked="true"]{background:rgba(255,255,255,.1);color:var(--ink)}
.seg button:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.seg em{font-style:normal;font-size:11px;font-weight:600;color:var(--brand)}
@media (max-width:1080px){.plans-grid{grid-template-columns:1fr}}
@media (max-width:820px){
  main>section.plans{padding:calc(84px + env(safe-area-inset-top,0px)) 16px 40px;align-items:flex-start}
  .plans .plans-head{padding:0 2px;background:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none}
  .p-groups,.p-more-in{grid-template-columns:1fr;gap:16px}
  .seg button{padding:11px 14px}
  .plan{padding:22px 18px 18px}
  .price b{font-size:34px}
  .price .was{flex-basis:100%;margin-left:0;white-space:normal}
}
/* final: the app row under the web CTA (badges, app-only perks, one QR to /download that picks the store) */
.app-row{display:flex;gap:28px;align-items:center;justify-content:center;margin:34px auto 0;padding-top:26px;border-top:1px solid var(--line);max-width:600px;text-align:left}
.app-h{font-size:11px;line-height:16px;font-weight:500;letter-spacing:.6px;text-transform:uppercase;color:var(--label-on-dark)}
.badges{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.badges a{display:block;border-radius:9px;transition:transform .2s,opacity .2s;opacity:.85}
.badges a:hover{opacity:1;transform:translateY(-1px)}
.badges a:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.badges img{display:block;height:44px;width:auto}
.perks{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:6px;font-size:13px;line-height:1.45;color:var(--ink-2)}
.perks li{display:flex;gap:8px;align-items:baseline}
.perks li::before{content:"";flex:none;width:5px;height:5px;border-radius:50%;background:var(--brand);transform:translateY(-2px)}
.qr{margin:0;flex:none;text-align:center}
/* the app itself, next to the install row: a phone rising out of the horizon to the right of the centred copy */
.final .copy{position:relative}
/* anchored to .app-row for good: while .reveal moves the row its transform makes the row the containing block, after it the copy
   (20px wider), so the shot used to hop right when the reveal ended (feedback 10-24) */
.app-row{position:relative}
.phone{margin:0;position:absolute;left:calc(100% + 68px);bottom:-8px;width:clamp(150px,15vw,210px);pointer-events:none}
.phone img{display:block;width:100%;height:auto;filter:drop-shadow(0 24px 40px rgb(0 0 0 / .55))}
.app-row.reveal .phone{opacity:0;transform:translateY(40px);transition:opacity 1.1s cubic-bezier(.2,.8,.2,1) .25s,transform 1.4s cubic-bezier(.16,1,.3,1) .25s}
.in .app-row.reveal .phone{opacity:1;transform:none}
@media (max-width:1180px) and (min-width:821px){.phone{display:none}}   /* no room beside the copy */
.qr-code{width:96px;height:96px;padding:7px;border-radius:12px;background:#e6e9ee}
.qr-code svg{display:block;width:100%;height:100%}
.qr figcaption{margin-top:8px;font-size:11.5px;color:var(--ink-3);max-width:110px}
@media (max-width:820px){.qr{display:none}.phone{position:static;order:-1;width:132px;height:150px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent);margin-bottom:-6px}.phone img{filter:none}.app-row{flex-direction:column;align-items:center;text-align:center;margin-top:26px;padding-top:20px}.badges{justify-content:center}.perks{justify-items:center}}
/* final */
.final{justify-content:center;text-align:center}
.final .copy{max-width:640px;margin:0 auto}
.final .ctas{justify-content:center}
#site-lower{position:relative;z-index:10;background:oklch(0.22 0.025 260)}
/* the scene sinks into the site instead of ending on a hard edge (colour = the first live block, Pulse, in dark theme) */
#site-lower::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:24vh;background:linear-gradient(oklch(0.22 0.025 260 / 0),oklch(0.22 0.025 260));pointer-events:none}
/* footer: brand + three link columns, then ©/legal/language; the © "FactsLane" keeps the site's hidden door to Atlas */
.ft{padding:72px max(24px,6vw) calc(32px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:oklch(0.19 0.022 260)}
.ft-in{max-width:1120px;margin:0 auto}
.ft-top{display:grid;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));gap:32px}
.ft-brand .lockup{padding:0;gap:10px}
.ft-brand p{margin:14px 0 0;font-size:13.5px;color:var(--ink-3)}
.ft-soc{display:flex;gap:8px;margin-top:20px}
.ft-soc a{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:var(--ink-3);border:1px solid var(--line);transition:color .2s,background .2s}
.ft-soc a:hover{color:var(--ink);background:rgba(255,255,255,.06)}
.ft-soc svg{width:16px;height:16px;fill:currentColor}
.ft h4{margin:0 0 14px;font-size:12px;line-height:16px;font-weight:600;color:var(--ink-2)}
.ft ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ft-top a:not(.lockup),.ft-bot a{color:var(--ink-2);text-decoration:none;font-size:14px;transition:color .2s}
.ft-top a:not(.lockup):hover,.ft-bot a:hover{color:var(--ink)}
.ft a:focus-visible,.ft select:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}
.ft-bot{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:56px;padding-top:22px;border-top:1px solid var(--line);font-size:12.5px;color:var(--ink-3)}
.ft-bot a{font-size:12.5px;color:var(--ink-3)}
.ft-bot .door{color:inherit}
.lang-pick{position:relative;display:inline-flex;align-items:center;gap:6px}
.lang-pick svg,.menu-lang svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.4;flex:none}
.lang-pick select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
.lang-pick:focus-within{box-shadow:0 0 0 2px var(--brand)}
.menu-lang{display:flex;align-items:center;gap:10px;margin:10px 2px 0;padding:0 12px;color:var(--ink-2)}
.menu-lang select{flex:1;appearance:none;-webkit-appearance:none;background:rgba(255,255,255,.04);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px 30px 12px 12px;font:inherit;font-size:16px;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 13px) 50%;background-size:4px 4px;background-repeat:no-repeat}
.ft-lang{margin-left:auto;display:flex;align-items:center;gap:8px}
.ft-lang svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.4}
.ft-lang select{appearance:none;-webkit-appearance:none;background:rgba(255,255,255,.04);color:var(--ink-2);border:1px solid var(--line);border-radius:8px;padding:6px 26px 6px 10px;font:inherit;font-size:12.5px;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 13px) 50%,calc(100% - 9px) 50%;background-size:4px 4px;background-repeat:no-repeat}
@media (max-width:820px){.ft{padding:56px 16px calc(28px + env(safe-area-inset-bottom,0px))}.ft-top{grid-template-columns:1fr 1fr;gap:32px 20px}.ft-brand{grid-column:1/-1}.ft-bot{margin-top:40px}.ft-lang{margin-left:0;width:100%}}
/* recap: a two-column comparison (FactsLane lit, the typical feed dimmed) and a quiet line of totals */
.recap{padding:104px max(24px,6vw) 88px}
.recap-in{max-width:1120px;margin:0 auto}
.recap h2{max-width:900px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cmp-wrap{margin-top:40px}
.cmp{width:100%;border-collapse:collapse;table-layout:fixed;font-size:15px;line-height:1.5}
.cmp th,.cmp td{text-align:left;vertical-align:top;padding:16px 20px 16px 0;border-bottom:1px solid var(--line)}
.cmp thead th{padding-top:0;font-size:12px;line-height:16px;font-weight:600;color:var(--ink-2)}
.cmp thead th.fl{color:var(--brand)}
.cmp col.q,.cmp th:first-child{width:26%}
.cmp tbody th{font-weight:500;color:var(--ink-3);font-size:14px}
.cmp td.fl{color:var(--ink);font-weight:500}
.cmp td.ty{color:var(--ink-3)}
.cmp td.fl .ch{all:unset;cursor:pointer;display:inline-flex;align-items:center;min-height:24px;margin-left:8px;padding:2px 8px;border-radius:6px;font-family:var(--mono);font-size:11px;font-weight:500;color:var(--brand);background:rgb(232 131 10 / .1);vertical-align:1px;transition:background .2s}
.cmp td.fl .ch:hover{background:rgb(232 131 10 / .22)}
.cmp td.fl .ch:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (max-width:820px){
  .recap{padding:72px 16px 64px}
  .cmp thead{display:none}
  .cmp,.cmp tbody,.cmp tr,.cmp th,.cmp td{display:block;width:auto}
  .cmp tr{padding:16px 0;border-bottom:1px solid var(--line)}
  .cmp th,.cmp td{border:0;padding:0}
  .cmp tbody th{margin-bottom:6px}
  .cmp th:first-child{width:auto}
  .cmp td.ty{margin-top:4px;font-size:14px}
  .cmp td.ty::before{content:attr(data-l) ": "}
}
/* FAQ: title pinned left, a quiet accordion right (native <details>, keyboard for free) */
.faq{padding:96px max(24px,6vw) 104px;border-top:1px solid var(--line)}
.faq-in{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:48px;align-items:start}
.faq-side{position:sticky;top:calc(96px + env(safe-area-inset-top,0px))}
.faq-side h2{margin-top:12px}
.faq-list{border-top:1px solid var(--line)}
.faq-list details{border-bottom:1px solid var(--line)}
.faq-list summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 2px;font-size:17px;line-height:1.4;font-weight:600;color:var(--ink);transition:color .2s}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary:hover{color:#fff}
.faq-list summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}
.faq-list summary i{position:relative;flex:none;width:14px;height:14px}
.faq-list summary i::before,.faq-list summary i::after{content:"";position:absolute;left:0;top:6.25px;width:14px;height:1.5px;border-radius:1px;background:var(--ink-3);transition:transform .35s cubic-bezier(.2,.8,.2,1),background .2s}
.faq-list summary i::after{transform:rotate(90deg)}
.faq-list details[open] summary i::after{transform:rotate(0)}
.faq-list details[open] summary i::before,.faq-list details[open] summary i::after{background:var(--brand)}
.faq-list .a p{margin:0;padding:0 40px 22px 2px;max-width:68ch;font-size:15px;line-height:1.65;color:var(--ink-2)}
@supports (interpolate-size:allow-keywords){.faq-list{interpolate-size:allow-keywords}.faq-list details::details-content{height:0;overflow:clip;transition:height .35s cubic-bezier(.2,.8,.2,1),content-visibility .35s allow-discrete}.faq-list details[open]::details-content{height:auto}}
@media (prefers-reduced-motion:reduce){.faq-list details::details-content{transition:none}}
@media (max-width:820px){.faq{padding:64px 16px 72px}.faq-in{grid-template-columns:1fr;gap:22px}.faq-side{position:static}.faq-list summary{font-size:16px;padding:18px 2px}.faq-list .a p{padding-right:8px}}
#rail.off{opacity:0;pointer-events:none}

.scrollcue{position:absolute;left:50%;bottom:calc(28px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:var(--ink-3);display:flex;flex-direction:column;align-items:center;gap:10px}
.scrollcue{opacity:calc(1 - var(--hero-out,0));transition:opacity .25s}
.hero.in .globe-cap{opacity:calc(1 - var(--hero-out,0));transition:opacity .25s,transform .9s cubic-bezier(.2,.8,.2,1)}
.scrollcue i{width:1px;height:40px;background:linear-gradient(var(--ink-3),transparent);animation:cue 2s ease-in-out infinite}
@keyframes cue{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}

@media (max-width:820px){
  #rail{display:none}
  .nav-r .hide-m{display:none}
  #hdr-app .l-full{display:none}
  .pin{align-items:flex-end;padding:0 16px calc(24px + env(safe-area-inset-bottom,0px))}
  .copy{max-width:none;width:100%;padding:20px 18px;border-radius:18px;background:var(--glass);backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);border:1px solid var(--line)}
  .hero::before{content:"";position:fixed;inset:auto 0 0 0;height:62vh;background:linear-gradient(transparent,rgba(5,7,11,.92) 45%);pointer-events:none;opacity:calc(1 - var(--ck,0))}
  .hero .copy{position:relative;background:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none;padding:0 2px}
  .final .copy{background:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none}
  .final{align-items:center}
  h1{font-size:2.4rem}
  :lang(es) h1,:lang(fr) h1,:lang(hy) h1{font-size:2.1rem}
  .lead{font-size:16px;margin-top:12px}
  .scrollcue{display:none}
  .globe-cap{display:none}
  .hero .ctas{flex-direction:column;align-items:flex-start;gap:4px}
  .hero .copy{display:flex;flex-direction:column;align-items:flex-start}
  .only-m{display:block}
  #layers{right:16px;left:16px;width:auto;top:calc(76px + env(safe-area-inset-top,0px));bottom:auto;justify-content:flex-start}
  /* one layer at a time, all in the same spot (the stack covered the chapter text) */
  html:not(.fl-static) #layers{display:grid;align-items:start}
  html:not(.fl-static) #layers .layer{grid-area:1/1;transform:translateY(10px)}
  html:not(.fl-static) #layers .layer.on:not(.cur){opacity:0;transform:translateY(-10px);pointer-events:none}
  html:not(.fl-static) #layers .layer.on.cur{transform:none}
  #layers .layer p{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
  #layers .layer{padding:12px 14px}
  #layers .layer h3{font-size:15.5px;line-height:1.3}
  #layers .hl-row+.hl-row{margin-top:8px;padding-top:8px}
  .gauge{margin-top:16px}
}
@media (prefers-reduced-motion:reduce){.reveal,.layer{transition:opacity .3s}.scrollcue i{animation:none}}


/* ---------- FL-185 Rails additions (not in the prototype) ---------- */
[hidden]{display:none!important}
#hdr-app .l-short{display:none}
@media (max-width:820px){#hdr-app .l-short{display:inline}}
a{color:inherit}
.more-link{color:var(--ink-2);font-size:14px;text-decoration:underline;text-decoration-color:rgba(255,255,255,.28);text-underline-offset:3px;transition:color .2s}
.more-link:hover{color:var(--ink)}
.faq-list .a p a{color:var(--brand)}
.qr-code{display:block}
.cmp td .ch{font:inherit}
/* the poster stands in for the globe until the WebGL scene draws its first frame (LCP-safe, no overlay) */
/* Loader where the globe will be: the 3D globe scales with the viewport HEIGHT (fov 40°, hero distance) and sits at 50% + sx of
   the width, so the ring is sized in cqh. Desktop: centre 70%/50%, Ø ≈ .70 × height; phone: centre 50%/30%, Ø ≈ .51 × height (the halo edge, measured).
   It appears only after .4 s (a fast load shows nothing), and the canvas fades in over it. */
#stage{container-type:size}
#stage .poster{display:none}
.loader{position:absolute;left:70%;top:50%;width:70cqh;height:70cqh;transform:translate(-50%,-50%);display:grid;place-items:center;transition:opacity 1.4s cubic-bezier(.45,0,.55,1);pointer-events:none}
/* the children carry the appear/stall animations, so the parent's opacity can transition out smoothly when the globe arrives */
.loader>span{opacity:0;animation:ld-in .6s ease .4s forwards,ld-out .8s ease 25s forwards}
@media (max-width:820px){.loader{left:50%;top:30%;width:51cqh;height:51cqh}}
.ld-ring{position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 0 60px rgb(232 131 10 / .06)}
.ld-ring::after{content:"";position:absolute;inset:-1px;border-radius:50%;border:1.5px solid transparent;border-top-color:rgb(232 131 10 / .75);animation:ld-spin 1.6s cubic-bezier(.5,.15,.5,.85) infinite}
.ld-t{font-size:12px;line-height:16px;font-weight:500;letter-spacing:.5px;text-transform:uppercase;color:var(--ink-3)}
@keyframes ld-in{to{opacity:1}}
@keyframes ld-out{from{opacity:1}to{opacity:0}}   /* a start that stalls without failing must not spin forever */
@keyframes ld-spin{to{transform:rotate(360deg)}}
#stage canvas{position:relative;opacity:0;transition:opacity 2.6s cubic-bezier(.45,0,.25,1) .1s}   /* slow, gentle in and out (no pop at the start) (feedback 10-23) */
#stage.live canvas{opacity:1}
#stage.live .loader{opacity:0}
@media (prefers-reduced-motion:reduce){.ld-ring::after{animation:none}#stage canvas{transition-duration:.6s}}
/* no WebGL / reduced motion / the scene did not start: the same story as a plain, readable page */
.fl-static #stage{position:absolute;inset:0 0 auto 0;height:100vh;z-index:0}
.fl-static #stage .poster{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.fl-static #stage .loader{display:none}
.fl-static #cockpit,.fl-static .scrollcue,.fl-static #rail,.fl-static #sound,.fl-static #autoplay{display:none}
.fl-static main>section,.fl-static main>section.tall,.fl-static main>section.xtall{min-height:0}
.fl-static .pin{position:static;height:auto;pointer-events:auto;padding-top:calc(88px + env(safe-area-inset-top,0px));padding-bottom:48px}
.fl-static #c0 .pin{min-height:100vh}
.fl-static .reveal{transition:opacity .6s,transform .6s}
.fl-noboot .reveal,.fl-noboot .app-row.reveal .phone{opacity:1;transform:none}   /* boot.js не загрузился: некому ставить .in */
.fl-static #layers{position:static;width:auto;max-width:420px;margin-top:24px;perspective:none;display:flex;flex-direction:column;gap:10px}
.fl-static .layer{opacity:1;transform:none}
.fl-static #layers .layer:nth-child(n+3){display:block}
.fl-static .app-row.reveal .phone{opacity:1;transform:none}
.fl-static main>section.plans{padding-top:48px}

/* ---------- Fable review 10-22 ---------- */
/* chapters 01–05 on desktop: the copy starts at one fixed height, so the title doesn't wander between chapters;
   a soft scrim (not a card) keeps the stars from running through the words */
@media (min-width:821px){
  main>section.tall .pin,main>section.xtall .pin{align-items:flex-start;padding-top:clamp(92px,20vh,220px)}
  main>section.tall .pin::before,main>section.xtall .pin::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 52% 72% at 20% 42%,rgb(5 7 11 / .7),rgb(5 7 11 / 0) 72%);-webkit-mask-image:linear-gradient(transparent,#000 22%,#000 80%,transparent);mask-image:linear-gradient(transparent,#000 22%,#000 80%,transparent)}   /* the ellipse reaches past the pin's top edge: without the mask its cut shows as a band while the next chapter slides in */
  .p-more>summary{display:none}
}
.save-world{margin-top:18px}
/* collapsible plan lists on phones (boot.js closes them there; desktop keeps them open with the summary hidden) */
.p-more>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding:12px 0;min-height:44px;box-sizing:border-box;border-top:1px solid var(--line);font-size:14px;font-weight:600;color:var(--ink)}
.p-more>summary::-webkit-details-marker{display:none}
.p-more>summary::after{content:"+";font-size:18px;font-weight:400;color:var(--ink-3)}
.p-more[open]>summary::after{content:"−"}
.p-more>summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}
.p-more-plus>summary{margin-top:0}
@media (max-width:820px){
  .btn-sm{min-height:44px;box-sizing:border-box}
  .menu-x{width:44px;height:44px}
  .p-groups{padding-top:12px}
}

/* low desktop windows (1920×1080 at 150% scaling ≈ 1280×600 of CSS px, laptops with toolbars): everything in a chapter
   has to fit one screen, so type scales with the height, not only the width (feedback 10-22) */
@media (min-width:821px) and (max-height:780px){
  h1{font-size:clamp(2rem,5.4vh + .7rem,3.4rem)}
  :lang(es) h1,:lang(fr) h1,:lang(hy) h1{font-size:clamp(1.85rem,4.8vh + .6rem,3rem)}
  h2{font-size:clamp(1.6rem,4.3vh + .5rem,2.6rem)}
  .copy{max-width:520px}
  .lead{margin-top:12px;font-size:16px;line-height:1.5}
  .small{margin-top:10px}
  .ctas{margin-top:18px}
  .chips{margin-top:14px}
  .gauge{margin-top:14px;padding:10px 14px 10px}
  .g-num{font-size:36px}
  /* the fixed top anchor leaves a tall gap above and almost none below on these screens: centre the copy in the space
     under the header instead (feedback 10-22, car browser) */
  main>section.tall .pin,main>section.xtall .pin{align-items:safe center;padding-top:calc(76px + env(safe-area-inset-top,0px));padding-bottom:20px}
}
/* the header floats over the story: a soft fade behind it, so copy scrolling up never runs under the buttons */
#nav::before{content:"";position:fixed;left:0;right:0;top:0;height:calc(84px + env(safe-area-inset-top,0px));z-index:-1;pointer-events:none;background:linear-gradient(rgb(5 7 11 / .82),rgb(5 7 11 / .5) 55%,rgb(5 7 11 / 0))}
@media (min-width:821px){
  /* desktop plans: lists always open, toggles hidden (must come after the base summary rule above) */
  .p-more>summary{display:none}
  /* keep the plans clear of the chapter rail on the right (it overlapped FL Plus at 1280 px) */
  main>section.plans{padding-right:max(150px,6vw)}
}

/* car chapter: copy at the top, the dash under it (phones too, where the other chapters keep their copy at the bottom) */
@media (max-width:820px){main>section.car .pin{align-items:flex-start;padding-top:calc(84px + env(safe-area-inset-top,0px))}}
@media (min-width:821px) and (max-height:780px){main>section.car .pin{align-items:flex-start}}
/* listen: turn the sound on right here (same as the header button) until the digest is on air */
.onair-on{margin-top:22px}
.onair-on svg{width:18px;height:18px}
.fl-static .hero::before{opacity:1}   /* --ck may be left over if the scene stopped while the dash was up */

/* short phones (Chrome on iPhone with its toolbars ≈ 390×660, small Androids ≈ 412×640): the chapter card
   has to share the screen with the globe and the header, so type and spacing tighten (feedback 10-23) */
@media (max-width:820px) and (max-height:760px){
  h1{font-size:2rem}
  :lang(es) h1,:lang(fr) h1,:lang(hy) h1{font-size:1.8rem}
  h2{font-size:1.55rem;margin-top:10px}
  .lead{font-size:15px;line-height:1.5;margin-top:10px}
  .small{margin-top:8px;font-size:12.5px}
  .copy{padding:16px 16px}
  .hero .ctas,.ctas{margin-top:16px}
  .chips-hint,.only-m{display:none}
  .chips{margin-top:12px;gap:6px}
  .chip{padding:6px 11px 6px 10px;font-size:13px}
  .gauge{margin-top:14px}
  #layers .layer p{-webkit-line-clamp:3}
  /* final: from the top under the header (centred, its title went under it); the phone shot needs a taller screen */
  .pin.final{align-items:flex-start;padding-top:calc(72px + env(safe-area-inset-top,0px))}
  .final .phone{display:none}
  .app-row{margin-top:18px;padding-top:14px}
}
/* facts on a short phone: the layer cards above say what the lead says, and both do not fit together */
@media (max-width:820px) and (max-height:700px){
  .facts:not(.no-feat) .lead{display:none}
}
@media (max-width:820px) and (max-height:600px){
  #layers .hl-row h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  #layers .layer p{-webkit-line-clamp:2}
}
