/* Effects behind the content (v2-fx.js). The host isolates its layers, so the effect stays above the section's background and below everything in it. */
.fx-host { position: relative; isolation: isolate; overflow-x: clip; }
.fx-slot { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: var(--fx-visible, 0); transition: opacity .18s ease; }
.fx-slot.fx-idle { opacity: 0 !important; }
.fx-slot canvas { display: block; width: 100%; height: 100%; }
.hero-film .fx-slot { z-index: 0; }
/* the words always win: a dark edge around small text that may cross particles */
html:not([data-theme="light"]) .fx-host .shead .lead, html:not([data-theme="light"]) #start .gm-col p { text-shadow: 0 0 12px rgba(6, 7, 29, .95), 0 0 3px rgba(6, 7, 29, .9); }

/* a particle orb: 1.6 times the size it shows, so it has room to open on a click */
.fx-orb3 { inset: auto; top: calc(var(--fx-top, 0%) - var(--fx-size, 300px) * .3); width: calc(var(--fx-size, 300px) * 1.6); height: calc(var(--fx-size, 300px) * 1.6); overflow: visible; }
.fx-orb3.at-end { inset-inline-end: calc(var(--fx-side, 0%) - var(--fx-size, 300px) * .3); }
.fx-orb3.at-start { inset-inline-start: calc(var(--fx-side, 0%) - var(--fx-size, 300px) * .3); }
.fx-orb3 { opacity: calc(.78 * var(--fx-visible, 0)); transition: opacity .3s; } .fx-orb3.hot { opacity: var(--fx-visible, 0); }
html.fx-over { cursor: pointer; }
@media (max-width: 760px) { .fx-orb3 { opacity: calc(.7 * var(--fx-visible, 0)); } }

/* the circles are gone; the dust of the phones fills the whole stage, behind the phones and the floating cards */
.fstage.mon-stage > .fx-phones { position: absolute; inset: 0; z-index: 0; }
#phones[data-f="dash"] .p2, #phones[data-f="msg"] .p1 { cursor: pointer; }
.hero-shots::before, .hero-shots::after, .mon-rings { display: none; }   /* ::before was a glow cut square by its own box */
/* the halo sits behind the portrait and the words of the voice card */
.vo-mid { position: relative; }
.vo-mid > * { position: relative; z-index: 1; }
.vo-mid > .fx-voice { position: absolute; inset: auto; left: 50%; width: 340px; height: 340px; transform: translate(-50%, -50%); z-index: 0; overflow: visible; }

/* the orange border melts outwards into the halo instead of ending in a hard line */
.vo-mid > .vo-ring { background: none; box-shadow: none; }
.vo-mid > .vo-ring::before { content: ""; position: absolute; inset: -8px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, #f06343 80%, rgba(240, 99, 67, .5) 87%, rgba(240, 99, 67, .15) 94%, transparent 100%); }
.vo.playing .vo-mid > .vo-ring { animation: none; }

/* the board of #eco: the dust may reach a little past the icons, and nothing on the board is clipped */
#kin.fx-host { overflow: visible; }
.fx-links { inset: -8% -6%; overflow: visible; }

/* #shield: the dust of the lane sits above the lane's colour and below its dots */
#shFlow > .fx-shield { z-index: 0; }
#shFlow > :not(.fx-shield) { z-index: 1; }

/* the board of #automate: no clipping, the cards can be pressed */
.flow.fx-host { overflow: visible; }
.flow .node { cursor: pointer; }
.flow .node:active { transform: translateY(-1px) scale(.985); }
@media (max-width: 1100px) { .fx-flow { display: none; } }

/* The card and its dust share one sticky ancestor, including during fast compositor scrolling. */
.fx-gather { position: absolute; inset: auto; top: 50%; left: 0; width: 100%; height: 100vh; margin: 0; transform: translateY(-50%); }

/* soft colour that breathes, for the sections with no canvas */
.fx-orbs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx-orbs.fx-colour-paused i { animation-play-state: paused; }
.fx-orbs i { position: absolute; width: min(760px, 70vw); aspect-ratio: 1; border-radius: 50%; will-change: transform, opacity; animation: fxBreathe 15s ease-in-out infinite alternate; }
.fx-orbs i:nth-child(1) { top: -18%; inset-inline-start: -14%; background: radial-gradient(closest-side, rgba(240, 99, 67, .17), rgba(240, 99, 67, .05) 55%, transparent); }
.fx-orbs i:nth-child(2) { bottom: -24%; inset-inline-end: -12%; background: radial-gradient(closest-side, rgba(91, 99, 230, .24), rgba(91, 99, 230, .07) 55%, transparent); animation-duration: 19s; animation-delay: -7s; }
.fx-orbs.flip i:nth-child(1) { inset-inline-start: auto; inset-inline-end: -14%; }
.fx-orbs.flip i:nth-child(2) { inset-inline-end: auto; inset-inline-start: -12%; }
@keyframes fxBreathe {
  from { transform: translate3d(0, 0, 0) scale(.86); opacity: .55; }
  to { transform: translate3d(5%, 7%, 0) scale(1.12); opacity: 1; }
}
html[data-theme="light"] .fx-orbs i { opacity: .45; animation-name: fxBreatheSoft; }
@keyframes fxBreatheSoft {
  from { transform: translate3d(0, 0, 0) scale(.86); opacity: .25; }
  to { transform: translate3d(5%, 7%, 0) scale(1.12); opacity: .5; }
}
@media (prefers-reduced-motion: reduce) { .fx-orbs i { animation: none; } }
@media print { .fx-slot, .fx-orbs { display: none; } }

/* A long page: what is far off screen costs nothing. Without this the browser walks all the sections on every frame of a scroll, and a weak machine falls to 10 frames a second.
   The sizes below stand in until a section has been seen once (`auto` then keeps its real size), so the page height and the links to sections stay right.
   The clip margin leaves room for the orbs that reach past their section. */
main > section, body > footer { content-visibility: auto; contain-intrinsic-size: auto 1100px; overflow-clip-margin: 280px; }
#film { contain-intrinsic-size: auto 1140px; } #create { contain-intrinsic-size: auto 2060px; } #swarm { contain-intrinsic-size: auto 1070px; } #examples.showcase { contain-intrinsic-size: auto 1940px; }
#communicate { contain-intrinsic-size: auto 1520px; } #waSetup { contain-intrinsic-size: auto 1050px; } #inbox { contain-intrinsic-size: auto 1210px; } #pool { contain-intrinsic-size: auto 890px; }
#shield { contain-intrinsic-size: auto 720px; } #manage { contain-intrinsic-size: auto 1160px; } #mini { contain-intrinsic-size: auto 820px; } #automate { contain-intrinsic-size: auto 1340px; }
#monitor { contain-intrinsic-size: auto 940px; } #eco { contain-intrinsic-size: auto 870px; } #faq { contain-intrinsic-size: auto 690px; }
#how { contain-intrinsic-size: auto 620px; } #does { contain-intrinsic-size: auto 1350px; } #demo { contain-intrinsic-size: auto 1160px; } #control { contain-intrinsic-size: auto 910px; } #levels { contain-intrinsic-size: auto 750px; } main > .final { contain-intrinsic-size: auto 600px; }
@media (max-width: 760px) {
  main > section, body > footer { contain-intrinsic-size: auto 1500px; }
  #film { contain-intrinsic-size: auto 610px; } #create { contain-intrinsic-size: auto 2400px; } #swarm { contain-intrinsic-size: auto 1800px; } #examples.showcase { contain-intrinsic-size: auto 2590px; }
  #communicate { contain-intrinsic-size: auto 2430px; } #waSetup { contain-intrinsic-size: auto 2610px; } #inbox { contain-intrinsic-size: auto 1160px; } #pool { contain-intrinsic-size: auto 1590px; }
  #shield { contain-intrinsic-size: auto 1270px; } #manage { contain-intrinsic-size: auto 1720px; } #mini { contain-intrinsic-size: auto 1100px; } #automate { contain-intrinsic-size: auto 2120px; }
  #monitor { contain-intrinsic-size: auto 1410px; } #eco { contain-intrinsic-size: auto 910px; } #faq { contain-intrinsic-size: auto 1260px; }
  #how { contain-intrinsic-size: auto 1180px; } #does { contain-intrinsic-size: auto 2340px; } #demo { contain-intrinsic-size: auto 1350px; } #control { contain-intrinsic-size: auto 1380px; } #levels { contain-intrinsic-size: auto 1450px; } main > .final { contain-intrinsic-size: auto 530px; }
}

/* The light page (v2-lite.js): every section and word stays, without the glass blur and the backgrounds that move */
html.lite *, html.lite *::before, html.lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite .fx-orbs, html.lite .fx-slot, html.lite .lg-field, html.lite .hero-film .aur { display: none !important; }
html.lite .film-frame { background: #05061a url("film/bg/silk_blue.jpg") center / cover; }
html.lite .film-pp { bottom: auto; inset-inline-end: auto; top: 50%; left: 50%; translate: -50% -50%; width: 76px; height: 76px; }
html.lite .film-pp svg { width: 28px; height: 28px; }
