/* GIS Abyss — the opening (js/gis-loader.js), the same on every page.
   Only opacity and transform move at full screen, so it stays smooth while the page starts up. */
html.gl-booting body { overflow:hidden; }
html.gl-booting [data-gl-target], html.gl-landing [data-gl-target] { opacity:0 !important; transition:none !important; }

#gl-boot { --gl-bg:#05090A; --gl-dot:rgba(116,211,195,.075); --gl-ink:#ECE5D5; --gl-mute:rgba(236,229,213,.46); --gl-cu:#E27A3F; --gl-line:rgba(236,229,213,.12);
  --gl-ease:cubic-bezier(.16,1,.3,1); --gl-io:cubic-bezier(.7,0,.2,1); --gl-mono:'DM Mono','JetBrains Mono',ui-monospace,monospace;
  position:fixed; inset:0; z-index:99999; color:var(--gl-ink); pointer-events:auto; overflow:hidden; }
#gl-boot.gl-day { --gl-bg:#EEE8DC; --gl-dot:rgba(21,19,15,.075); --gl-ink:#15130F; --gl-mute:rgba(21,19,15,.5); --gl-cu:#B5501C; --gl-line:rgba(21,19,15,.12); }
#gl-boot .gl-bg { position:absolute; inset:0; background:var(--gl-bg); transition:opacity .8s .2s ease; will-change:opacity; }
#gl-boot .gl-bg::after { content:''; position:absolute; inset:0; background-image:radial-gradient(var(--gl-dot) 1.2px, transparent 1.7px); background-size:9px 9px;
  -webkit-mask-image:radial-gradient(ellipse 75% 70% at 50% 50%, #000 20%, transparent 100%); mask-image:radial-gradient(ellipse 75% 70% at 50% 50%, #000 20%, transparent 100%); }
#gl-boot .gl-bg::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 50% 42% at 50% 44%, rgba(226,122,63,.08), transparent 70%); }
#gl-boot .gl-stack { position:absolute; left:50%; top:50%; width:min(440px, 84vw); transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; text-align:center; }

/* the mark: every outline is drawn by a copper pen, then the shapes fill in */
#gl-boot .gl-mark-wrap { width:min(210px, 46vw); aspect-ratio:1; margin-bottom:28px; will-change:transform; transition:transform 1.1s var(--gl-io); }
#gl-boot .gl-mark { display:block; width:100%; height:100%; overflow:visible; }
#gl-boot .mk-ring { fill:none; stroke:var(--gl-cu); stroke-width:5; stroke-linecap:round; stroke-dasharray:3054; stroke-dashoffset:3054; transform:rotate(-90deg); transform-origin:490px 490px; }
#gl-boot .mk-disc { fill:#000; opacity:0; transform:scale(.96); transform-origin:490px 490px; }
#gl-boot .mk-line { fill:none; stroke:var(--gl-cu); stroke-width:4.5; stroke-linejoin:round; stroke-linecap:round; stroke-dasharray:var(--len,2000); stroke-dashoffset:var(--len,2000); }
#gl-boot .mk-fill { opacity:0; }
#gl-boot .mk-globe, #gl-boot .mk-G, #gl-boot .mk-I, #gl-boot .mk-S { fill:#fff; }
#gl-boot .mk-abyss { fill:#A9A9A9; }
#gl-boot.go .mk-ring { animation:glDraw 1.1s .05s cubic-bezier(.65,0,.25,1) forwards, glRingOut .6s 2.3s forwards; }
#gl-boot.go .mk-disc { animation:glDisc .9s .55s var(--gl-ease) forwards; }
#gl-boot.go .mk-line { animation:glDraw var(--t,.7s) var(--d,0s) cubic-bezier(.55,0,.3,1) forwards, glLineOut .5s var(--o,2.4s) forwards; }
#gl-boot.go .mk-fill { animation:glFill .55s var(--f,2s) ease forwards; }
@keyframes glDraw { to { stroke-dashoffset:0; } }
@keyframes glDisc { to { opacity:1; transform:none; } }
@keyframes glFill { to { opacity:1; } }
@keyframes glLineOut { to { stroke-opacity:0; } }
@keyframes glRingOut { to { stroke-opacity:0; } }

/* the count */
#gl-boot .gl-info { width:100%; transition:opacity .4s, transform .8s var(--gl-ease); }
#gl-boot .gl-meta { display:flex; justify-content:space-between; align-items:baseline; font:500 10px var(--gl-mono); letter-spacing:.22em; text-transform:uppercase; color:var(--gl-mute); margin-bottom:10px; }
#gl-boot #gl-status { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
#gl-boot .gl-pct { font-size:11px; letter-spacing:.12em; flex-shrink:0; margin-left:12px; }
#gl-boot .gl-pct b { font-weight:500; color:var(--gl-cu); font-size:15px; font-variant-numeric:tabular-nums; }
#gl-boot .gl-bar { height:2px; background:var(--gl-line); position:relative; overflow:hidden; border-radius:2px; }
#gl-boot .gl-bar i { position:absolute; inset:0; background:var(--gl-cu); transform:scaleX(0); transform-origin:0 50%; transition:transform .2s linear; }
#gl-boot .gl-tip { font:400 13px/1.55 'DM Sans', system-ui, sans-serif; color:var(--gl-mute); margin:18px 0 0; min-height:2.6em; }
#gl-boot .gl-tip em { font-style:normal; color:var(--gl-ink); font-weight:500; }
#gl-boot.gl-quick .gl-tip { visibility:hidden; }
#gl-boot .gl-hud { position:absolute; font:500 9.5px var(--gl-mono); letter-spacing:.24em; text-transform:uppercase; color:var(--gl-mute); transition:opacity .4s; }
#gl-boot .gl-hud i { font-style:normal; color:var(--gl-cu); }
#gl-boot .gl-hud::before { content:''; display:inline-block; width:14px; height:1px; background:var(--gl-cu); vertical-align:middle; margin-right:10px; }
#gl-boot .gl-tl { top:24px; left:28px; } #gl-boot .gl-tr { top:24px; right:28px; }
#gl-boot .gl-bl { bottom:24px; left:28px; } #gl-boot .gl-br { bottom:24px; right:28px; }

/* the way out: the logo flies into the page's logo, the screen dissolves */
#gl-boot.open { pointer-events:none; }
#gl-boot.open .gl-bg { opacity:0; }
#gl-boot.open .gl-info { opacity:0; transform:translateY(12px); }
#gl-boot.open .gl-hud { opacity:0; }
#gl-boot.open .mk-ring { opacity:0; transition:opacity .3s; }
#gl-boot.open.no-fly .gl-mark-wrap { opacity:0; transform:scale(1.2); transition:opacity .5s, transform .9s var(--gl-ease); }
#gl-boot.gone { display:none; }

@media (max-width:600px) { #gl-boot .gl-tr, #gl-boot .gl-br { display:none; } #gl-boot .gl-tl, #gl-boot .gl-bl { left:18px; } }
@media (prefers-reduced-motion: reduce) {
  #gl-boot.go .mk-line, #gl-boot.go .mk-ring { animation:none; stroke-dashoffset:0; stroke-opacity:0; }
  #gl-boot.go .mk-disc, #gl-boot.go .mk-fill { animation:none; opacity:1; transform:none; }
  #gl-boot .gl-bg { transition:opacity .3s; }
}
