/* TSP homepage, hero: backdrop A, "Deep space" 1.2.0 (backdrop-a.js). The globe in space: a fine starfield in three
   depth layers and a faint galactic band (from the top right corner, behind the globe, toward the bottom centre)
   behind the text, the globe and the thread.
   Stacking: .th-bg is section#hero's first child, positioned with z-index 0, so everything after it in the hero paints
   over it (.th-hero__inner, its globe and the globe's z-index 1 canvas, the logo band), and the thread's fixed canvas
   (z-index 40, appended to <body>) stays on top. The hero has no background of its own, so this sits on the page
   background. Its canvas fills the hero (backdrop-a.js sizes the drawing buffer); nothing here can move the layout.
   Static field (.th-bg__css in a <noscript>, and .th-bg--css when WebGL is missing or would run in software): two
   seeded SVG tiles of stars (v3/backdrop/a/tools/fallback.mjs), dimmed over the text column and faded out above the
   logo band. 1.2.0: no band in it (1.1.0's fixed 124deg gradient only roughly met the globe), and wherever it shows,
   the sphere's semi-transparent body gets the page colour under it, so no star shows through the planet.
   Kajabi: one section's styles, all under .th-hero > .th-bg (the two sphere rules reach the globe only through it). */

.th-hero > .th-bg {
  --th-bg-tiles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560'%3E%3Ccircle cx='449.5' cy='362.0' r='.89' fill='%23e6efff' opacity='.83'/%3E%3Ccircle cx='131.9' cy='466.6' r='.71' fill='%23e6efff' opacity='.63'/%3E%3Ccircle cx='457.4' cy='488.4' r='.55' fill='%23e6efff' opacity='.46'/%3E%3Ccircle cx='452.9' cy='45.2' r='.72' fill='%239fe6ff' opacity='.65'/%3E%3Ccircle cx='530.4' cy='54.1' r='.65' fill='%23e6efff' opacity='.57'/%3E%3Ccircle cx='388.9' cy='232.7' r='.51' fill='%23e6efff' opacity='.41'/%3E%3Ccircle cx='49.9' cy='334.6' r='.45' fill='%23e6efff' opacity='.35'/%3E%3Ccircle cx='226.5' cy='102.9' r='.64' fill='%23e6efff' opacity='.56'/%3E%3Ccircle cx='450.9' cy='142.5' r='.45' fill='%23e6efff' opacity='.35'/%3E%3Ccircle cx='78.3' cy='154.9' r='.58' fill='%23e6efff' opacity='.49'/%3E%3Ccircle cx='301.9' cy='295.8' r='.45' fill='%239fe6ff' opacity='.35'/%3E%3Ccircle cx='496.6' cy='416.3' r='.52' fill='%239fe6ff' opacity='.43'/%3E%3Ccircle cx='374.9' cy='138.8' r='.55' fill='%23e6efff' opacity='.46'/%3E%3Ccircle cx='394.5' cy='84.3' r='.52' fill='%23e6efff' opacity='.42'/%3E%3Ccircle cx='438.1' cy='503.2' r='.57' fill='%23e6efff' opacity='.48'/%3E%3Ccircle cx='538.2' cy='73.1' r='.48' fill='%23e6efff' opacity='.38'/%3E%3Ccircle cx='140.2' cy='139.4' r='.91' fill='%23e6efff' opacity='.85'/%3E%3Ccircle cx='181.7' cy='504.9' r='.91' fill='%23e6efff' opacity='.85'/%3E%3Ccircle cx='189.9' cy='500.4' r='.80' fill='%23e6efff' opacity='.73'/%3E%3Ccircle cx='105.5' cy='488.8' r='.65' fill='%23e6efff' opacity='.56'/%3E%3Ccircle cx='483.2' cy='202.3' r='.50' fill='%239fe6ff' opacity='.41'/%3E%3Ccircle cx='13.4' cy='161.0' r='.71' fill='%23e6efff' opacity='.63'/%3E%3Ccircle cx='555.7' cy='521.7' r='.45' fill='%23e6efff' opacity='.36'/%3E%3Ccircle cx='526.9' cy='387.4' r='.64' fill='%23e6efff' opacity='.56'/%3E%3Ccircle cx='19.5' cy='111.1' r='.46' fill='%23e6efff' opacity='.36'/%3E%3Ccircle cx='507.6' cy='515.5' r='.48' fill='%23e6efff' opacity='.38'/%3E%3Ccircle cx='479.3' cy='242.7' r='.46' fill='%23e6efff' opacity='.36'/%3E%3Ccircle cx='25.6' cy='232.9' r='.71' fill='%23e6efff' opacity='.63'/%3E%3Ccircle cx='280.3' cy='172.4' r='.45' fill='%23e6efff' opacity='.35'/%3E%3Ccircle cx='51.5' cy='86.4' r='.45' fill='%23e6efff' opacity='.35'/%3E%3C/svg%3E") 0 0 / 560px 560px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='310' height='310'%3E%3Ccircle cx='295.8' cy='148.6' r='.58' fill='%239fe6ff' opacity='.43'/%3E%3Ccircle cx='246.2' cy='264.5' r='.56' fill='%23e6efff' opacity='.40'/%3E%3Ccircle cx='151.9' cy='97.7' r='.43' fill='%23e6efff' opacity='.25'/%3E%3Ccircle cx='267.2' cy='159.8' r='.38' fill='%23e6efff' opacity='.18'/%3E%3Ccircle cx='9.8' cy='259.3' r='.47' fill='%23e6efff' opacity='.29'/%3E%3Ccircle cx='104.5' cy='216.8' r='.41' fill='%23e6efff' opacity='.22'/%3E%3Ccircle cx='156.9' cy='151.7' r='.55' fill='%23e6efff' opacity='.39'/%3E%3Ccircle cx='168.1' cy='83.3' r='.57' fill='%23e6efff' opacity='.41'/%3E%3Ccircle cx='238.8' cy='191.0' r='.55' fill='%23e6efff' opacity='.39'/%3E%3Ccircle cx='21.2' cy='20.8' r='.40' fill='%239fe6ff' opacity='.21'/%3E%3Ccircle cx='2.4' cy='237.8' r='.50' fill='%23e6efff' opacity='.32'/%3E%3Ccircle cx='69.8' cy='154.5' r='.38' fill='%23e6efff' opacity='.18'/%3E%3Ccircle cx='100.5' cy='156.8' r='.51' fill='%239fe6ff' opacity='.34'/%3E%3Ccircle cx='135.1' cy='115.7' r='.40' fill='%23e6efff' opacity='.21'/%3E%3Ccircle cx='33.0' cy='224.3' r='.55' fill='%23e6efff' opacity='.39'/%3E%3Ccircle cx='104.9' cy='214.7' r='.39' fill='%23c7b8ff' opacity='.19'/%3E%3Ccircle cx='178.1' cy='78.8' r='.43' fill='%23e6efff' opacity='.24'/%3E%3Ccircle cx='141.2' cy='136.8' r='.55' fill='%23e6efff' opacity='.38'/%3E%3Ccircle cx='277.1' cy='153.9' r='.39' fill='%23e6efff' opacity='.19'/%3E%3Ccircle cx='11.8' cy='283.4' r='.38' fill='%23e6efff' opacity='.18'/%3E%3Ccircle cx='212.4' cy='102.7' r='.40' fill='%23e6efff' opacity='.20'/%3E%3Ccircle cx='215.8' cy='226.4' r='.38' fill='%239fe6ff' opacity='.18'/%3E%3C/svg%3E") 137px 91px / 310px 310px;
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict;
}
.th-hero > .th-bg > .th-bg__canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }

.th-hero > .th-bg .th-bg__css,
.th-hero > .th-bg.th-bg--css::before {
  content: ''; position: absolute; inset: 0;
  background: var(--th-bg-tiles);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0, rgba(0, 0, 0, .3) 52%, #000 72%), linear-gradient(#000 calc(100% - 300px), transparent calc(100% - 150px));
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0, rgba(0, 0, 0, .3) 52%, #000 72%), linear-gradient(#000 calc(100% - 300px), transparent calc(100% - 150px));
  mask-composite: intersect;
}
/* stacked hero (the globe under the H1): the whole field at half strength */
@media (max-width: 960px) {
  .th-hero > .th-bg .th-bg__css,
  .th-hero > .th-bg.th-bg--css::before {
    -webkit-mask-image: linear-gradient(rgba(0, 0, 0, .5) calc(100% - 260px), transparent calc(100% - 120px));
    mask-image: linear-gradient(rgba(0, 0, 0, .5) calc(100% - 260px), transparent calc(100% - 120px));
  }
}
/* The sphere's body (home.css, .th-hero__globe::before) is semi-transparent over the page. Over the static field it gets
   the page colour underneath, so the planet stays solid: without JS, and when the script fell back to the field. (With
   WebGL the canvas leaves the disc empty itself.) */
.th-hero > .th-bg.th-bg--css ~ .th-hero__inner .th-hero__globe::before { background-color: var(--bg); }
@media (scripting: none) {
  .th-hero > .th-bg ~ .th-hero__inner .th-hero__globe::before { background-color: var(--bg); }
}
