/* ==========================================================================
   Firefly

   Base styles describe a plain, readable, stacked page (what you get with no
   JavaScript). html.film — added before first paint — turns it into one fixed
   picture that main.js moves from stop to stop: the page itself never scrolls.
   ========================================================================== */

@property --p     { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --f     { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --m     { syntax: "<number>"; inherits: false; initial-value: 1; }

/* --------------------------------------------------------------------------
   Colour: "Lantern" — warm black, linen, one amber light.
   Everything coloured on the page (and the swarm's light) reads from these.
   Brand names: Soot #14110D, Char #1F1A14, Linen #F8F4EC, Lamplight #FFC758, Ash #B5AC9E.
   -------------------------------------------------------------------------- */

:root {
  --night: #0f0d0a;
  --sky-0: #0b0907; --sky-1: #14110d; --sky-2: #1b1711; --sky-3: #261e15;
  --haze-rgb: 168 118 62;           /* a broad warm lift in the lower sky */
  --seam-rgb: 255 184 96;           /* the band of last light on the ridge line */
  --seam-hi-rgb: 255 222 160;       /* its bright edge */
  --aura-b-rgb: 122 70 38;          /* the umber the sky leans to, away from the light */
  --land-ink-rgb: 9 7 5;            /* the far ridges are veils of this over the sky */
  --land-near: #0a0806;             /* the meadow, the oak and the grass on its edge */
  --land-fore: #050403;             /* the grass at our feet, a shade darker */
  --mistband-rgb: 214 178 130;
  --paper: #fbf7ef; --paper-rgb: 251 247 239; --mist: #b5ac9e;
  --glow: #ffc758; --glow-rgb: 255 199 88; --glow-hi: #ffdc96; --ink: #14110d;
  --dawn-a-rgb: 255 170 96; --dawn-b-rgb: 232 122 78; --dawn-c-rgb: 255 228 172;
  --dawn-d-rgb: 150 104 70;         /* the brown that first light leaves highest in the sky */
  --fly-a: 255 199 88; --fly-b: 255 158 70; --fly-c: 255 232 170; --fly-hot: 255 248 228;
  --star-rgb: 255 240 218;
}

:root {
  /* Type: Geist throughout (SemiBold, set tight, for headings; Regular for text), Geist Mono for the
     small labels. --serif is kept as the name of the heading face so the rules below need not change. */
  --serif: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  --pad: clamp(1.25rem, 4.4vw, 4.5rem);
  --tilt-mid: 18vh;                 /* how far the picture tips up for the middle stops */
  --out: cubic-bezier(.16, 1, .3, 1);
}
@media (max-width: 899px), (max-aspect-ratio: 6/5) {
  :root { --tilt-mid: 24vh; }       /* on a phone the words sit low, so the horizon goes lower still */
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--night);
  color: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The film is one fixed picture. It does not scroll: gestures move it from stop to stop. */
html.film, html.film body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.film body { touch-action: pinch-zoom; }   /* swipes go to the page script; pinch still zooms */

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
button { font: inherit; color: inherit; }
::selection { background: var(--glow); color: var(--ink); }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 5px; border-radius: 6px; }

.skip {
  position: fixed; left: 1rem; top: -5rem; z-index: 200;
  padding: .65rem 1rem; border-radius: 999px;
  background: var(--glow); color: var(--ink); font-size: .85rem;
  transition: top .25s var(--out);
}
.skip:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Backdrop — sky, meadow, swarm
   -------------------------------------------------------------------------- */

.backdrop {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.swarm, .gridlines, .figs, .vignette {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

/* One summer night, painted once by background.js. Between stops nothing is redrawn:
   main.js tweens these seven numbers and the layers below only slide and fade.
     --tilt     how far the picture has tipped up (× --tilt-mid); sky and land move together
     --rise     how far we have risen above the meadow; the near layers drop away, each at its own rate
     --glow-x   where along the horizon the blue-hour light sits (% of the width): dusk side to dawn side
     --glow-a   its strength        --stars-a  the stars' strength        --wheel  how far the sky has turned (deg)
     --dawn-a   first light */
.backdrop { --tilt: 0; --rise: 0; --glow-x: 30; --glow-a: 1; --stars-a: .6; --wheel: -7; --dawn-a: 0; }

/* the sky is taller than the screen and anchored at the bottom: tipping up slides it down */
.sky {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 126%;
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 34%, var(--sky-2) 58%, var(--sky-3) 74%);   /* until the canvases are painted */
  translate: 0 calc(var(--tilt) * var(--tilt-mid));
}
.sky canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.sky__stars { opacity: var(--stars-a); transform: rotate(calc(var(--wheel) * 1deg)); }
.sky canvas.sky__glow, .sky canvas.sky__dawn { left: -35%; width: 170%; }
.sky__glow { opacity: var(--glow-a); transform: translate3d(calc((var(--glow-x) - 50) * 1vw), 0, 0); }
.sky__dawn { opacity: var(--dawn-a); transform: translate3d(12vw, calc((1 - var(--dawn-a)) * 5vh), 0); }
.sky canvas.sky__clouds { left: -6%; width: 112%; }
.sky__clouds { animation: cloud-drift 200s ease-in-out infinite alternate; }
.sky__clouds--night { opacity: calc(1 - var(--dawn-a) * .45); }
.sky__clouds--lit { opacity: var(--dawn-a); margin-top: .35vh; }
@keyframes cloud-drift { from { transform: translate3d(-2.4%, 0, 0); } to { transform: translate3d(2.4%, 0, 0); } }

.land { position: absolute; left: 0; right: 0; bottom: 0; height: 54%; }
.land__layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.land__far, .land__wood, .land__mist, .land__front { will-change: translate; }
/* The far ridges move with the sky; the wood and the meadow also drop away as we rise.
   These use the `translate` property, not `transform`, so the pointer parallax in main.js
   (gsap x on .land__far / .land__wood / .land__front) can own `transform` without a fight. */
.land__far        { translate: 0 calc(var(--tilt) * var(--tilt-mid)); }
.land__mist--far  { translate: 0 calc(var(--tilt) * var(--tilt-mid) + var(--rise) * 7vh); }
.land__wood       { translate: 0 calc(var(--tilt) * var(--tilt-mid) + var(--rise) * 15vh); }
.land__mist--near { translate: 0 calc(var(--tilt) * var(--tilt-mid) + var(--rise) * 21vh); }
.land__front      { translate: 0 calc(var(--tilt) * var(--tilt-mid) + var(--rise) * 28vh); }
.land__front { position: absolute; inset: 0; }

/* the far ridges and the wood are veils of ink over the sky, so the valleys keep whatever light the sky has */
.land__veil stop { stop-color: rgb(var(--land-ink-rgb)); }
.land__near path, .grass path { fill: var(--land-near); }
.grass.grass--fore path { fill: var(--land-fore); }

.land__mist { position: absolute; left: 0; right: 0; overflow: hidden; }
.land__mist--far { opacity: .3; }
.land__mist--near { opacity: .42; }
.land__mist canvas { position: absolute; left: 0; top: 0; width: 200%; height: 100%; animation: mist-drift 170s linear infinite; }
.land__mist--near canvas { animation-duration: 120s; animation-direction: reverse; }
@keyframes mist-drift { to { transform: translate3d(-50%, 0, 0); } }

.grass { transform-origin: 50% 100%; will-change: transform; }
.grass--a { animation: sway 5.6s ease-in-out infinite alternate; }
.grass--b { animation: sway 7.3s ease-in-out -2s infinite alternate-reverse; }
.grass--c { animation: sway 9.1s ease-in-out -4s infinite alternate; }
.grass--fore { animation: sway 11.5s ease-in-out -6s infinite alternate-reverse; }
@keyframes sway { from { transform: skewX(-2.4deg); } to { transform: skewX(2.6deg); } }

/* the swarm's light — points, bloom and all — is drawn by swarm.js */
.swarm { display: block; }

.gridlines {
  opacity: 0; visibility: hidden;
  background-image:
    linear-gradient(rgb(var(--paper-rgb) / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--paper-rgb) / .06) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 68% at var(--fx, 70%) var(--fy, 50%), #000 18%, transparent 76%);
          mask-image: radial-gradient(ellipse 70% 68% at var(--fx, 70%) var(--fy, 50%), #000 18%, transparent 76%);
}

/* line-art figures that sit over the swarm's formations */
.fig {
  position: absolute;
  left: calc(var(--fx, 70vw) - var(--fr, 20vw));
  top: calc(var(--fy, 50vh) - var(--fr, 20vw));
  width: calc(var(--fr, 20vw) * 2);
  height: calc(var(--fr, 20vw) * 2);
  opacity: 0; visibility: hidden; overflow: visible;
}
.fig .draw { fill: none; stroke: rgb(var(--paper-rgb) / .2); stroke-width: 1.7; stroke-dasharray: 1; }
.fig__ticks line { stroke: rgb(var(--paper-rgb) / .3); stroke-width: 1.7; }
.fig__spin { animation: spin 160s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.vignette { background: radial-gradient(ellipse 85% 80% at 50% 46%, transparent 52%, rgb(0 0 0 / .42) 100%); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: clamp(1rem, 2.8vh, 1.9rem) var(--pad);
  pointer-events: none;
}
.nav a, .nav button { pointer-events: auto; }

.brand { display: inline-flex; align-items: center; color: var(--paper); }
.brand__logo { display: block; height: clamp(1.25rem, 1.75vw, 1.5rem); width: auto; overflow: visible; }
/* the mark's three lines catch the light now and then, the shortest last */
.brand__lines { transition: fill .4s; }
.brand:hover .brand__lines, .brand:focus-visible .brand__lines { fill: var(--glow); }

.pill {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .74em 1.05em .74em 1.2em;
  border: 1px solid rgb(var(--paper-rgb) / .22); border-radius: .72em;
  font: 500 .86rem/1 var(--sans); letter-spacing: 0;
  background: rgb(0 0 0 / .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .4s, color .4s, box-shadow .5s;
}
.pill:hover, .pill:focus-visible {
  border-color: rgb(var(--glow-rgb) / .8); color: var(--glow);
}

.arrow {
  flex: none; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--out);
}
a:hover > .arrow { transform: translateX(.24em); }

/* the stops: one small block each, the current one tall and lit */
.stops {
  display: none;
  position: fixed; z-index: 30;
  right: clamp(.3rem, 1.4vw, 1.4rem); top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
}
.film .stops { display: flex; }
.stops button {
  display: grid; place-items: center;
  width: 26px; margin: 0; padding: 6px 0;
  border: 0; border-radius: 6px; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.stops button::before {
  content: ""; width: 5px; height: 5px; border-radius: 3px;
  background: rgb(var(--paper-rgb) / .42);
  transition: height .5s var(--out), background-color .4s, box-shadow .4s;
}
.stops button[aria-current]::before {
  height: 26px;
  background: var(--glow);
  box-shadow: 0 0 12px rgb(var(--glow-rgb) / .7), 0 0 28px rgb(var(--glow-rgb) / .3);
}
.stops button:focus-visible { outline-offset: 0; }
@media (hover: hover) {
  .stops button:not([aria-current]):hover::before { background: rgb(var(--paper-rgb) / .9); }
}

/* --------------------------------------------------------------------------
   Stage and scenes
   -------------------------------------------------------------------------- */

.stage { position: relative; z-index: 10; }

.scene {
  position: relative;
  display: grid;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(5.5rem, 14vh, 9rem) var(--pad) clamp(2rem, 7vh, 5rem);
}

.film .stage { position: fixed; inset: 0; pointer-events: none; }
.film .stage a { pointer-events: auto; }
.film .scene { position: absolute; inset: 0; min-height: 0; visibility: hidden; }

.label {
  display: flex; align-items: center; gap: .75em;
  font: 500 .7rem/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mist);
}
.label::before {
  /* one line of the mark */
  content: ""; flex: none; width: 14px; height: 3px;
  background: var(--glow); transform: skewX(-12deg);
}

/* ---- Hero ---- */

.scene--hero { place-items: center; text-align: center; padding-bottom: clamp(9rem, 27vh, 17rem); }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, min(8.3vw, 17vh), 9.75rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.042em;
}
.line {
  display: block; overflow: hidden;
  padding: .1em .16em .15em; margin: -.1em -.16em -.15em;
}
.hero__title.is-in .line { overflow: visible; }
.line__in { display: block; will-change: transform; }

/* the one lit word: upright like the rest, the gold and the glow carry the emphasis */
.hero__title em {
  font-style: normal;
  color: var(--glow);
  text-shadow: 0 0 .5em rgb(var(--glow-rgb) / .3), 0 0 1.4em rgb(var(--glow-rgb) / .16);
}

.hero__lede {
  margin-top: clamp(1rem, 2.4vh, 1.8rem);
  font-size: clamp(1.02rem, 1.45vw, 1.36rem);
  font-weight: 400; letter-spacing: 0;
  color: var(--mist);
}
.hero__lede span { display: inline-block; }

.cue {
  position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3.2vh, 2.1rem);
  display: grid; justify-items: center;
}
.cue__in {
  display: grid; justify-items: center; gap: .75rem;
  font: 500 .62rem/1 var(--mono); letter-spacing: .24em; text-indent: .24em; text-transform: uppercase;
  color: var(--mist);
}
.cue i { position: relative; width: 1px; height: 42px; background: rgb(var(--paper-rgb) / .16); overflow: hidden; }
.cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--glow);
  animation: cue 2.2s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes cue { from { transform: translateY(-110%); } to { transform: translateY(280%); } }
html:not(.film) .cue { display: none; }

/* ---- Statements ---- */

.scene--statement { align-items: center; }
.statement__text { width: min(47vw, 46rem); }
.scene--team .statement__text { justify-self: end; }

.statement__text .label { margin-bottom: clamp(1.2rem, 3.2vh, 2.3rem); }

.statement__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, min(3.7vw, 7.2vh), 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.034em;
  text-wrap: balance;
}
.statement__body {
  margin-top: clamp(1.2rem, 3.2vh, 2.3rem);
  max-width: 38ch;
  font-size: clamp(1.02rem, 1.4vw, 1.32rem);
  font-weight: 400; line-height: 1.55;
  color: var(--mist);
  text-wrap: balance;
}

/* words light up one after another, like the swarm */
.film [data-ignite] .w {
  opacity: calc(.12 + .88 * var(--p));
  color: color-mix(in srgb, var(--paper), var(--glow) calc(var(--f) * 100%));
  text-shadow: 0 0 calc(var(--f) * .45em) rgb(var(--glow-rgb) / calc(var(--f) * .85));
}
.hl {
  color: color-mix(in srgb, currentColor, var(--glow) calc(var(--p) * 100%));
  text-shadow: 0 0 calc(var(--p) * 1.1em) rgb(var(--glow-rgb) / calc(var(--p) * .45));
}

/* ---- Pillars ---- */

.scene--pillars { align-items: end; }
.pillars__label { position: absolute; left: var(--pad); top: clamp(5.5rem, 14vh, 9rem); }
.pillars__stack { display: grid; gap: clamp(3rem, 12vh, 8rem); }
.film .pillars__stack { gap: 0; }
.film .pillar { grid-area: 1 / 1; visibility: hidden; }

.pillar { width: max-content; max-width: 100%; }
.pillar__meta {
  display: flex; align-items: baseline; gap: 1.1rem;
  padding-left: .35vw; margin-bottom: clamp(.1rem, .8vh, .7rem);
}
.pillar__num { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; color: var(--glow); }
.pillar__line { font-size: clamp(1rem, 1.35vw, 1.3rem); font-weight: 400; color: var(--mist); }

/* --m wipes the word in along --wipe: left to right by default, from the ground up for "Build" */
.pillar__word {
  --wipe: 100deg;
  width: max-content;
  font-family: var(--serif);
  font-size: clamp(3.2rem, min(10.6vw, 24vh), 11.5rem);
  font-weight: 600;
  line-height: .9; letter-spacing: -.05em;
  /* room for the mask around the letters; the bottom margin sets the word on its baseline */
  padding: .12em .16em .2em .04em; margin: -.02em -.16em -.3em -.04em;
  -webkit-mask-image: linear-gradient(var(--wipe), #000 calc(var(--m) * 140% - 40%), transparent calc(var(--m) * 140%));
          mask-image: linear-gradient(var(--wipe), #000 calc(var(--m) * 140% - 40%), transparent calc(var(--m) * 140%));
}
.pillar--build .pillar__word { --wipe: 0deg; }

.pillars__count {
  position: absolute; right: calc(var(--pad) + 2.4rem); top: clamp(5.5rem, 14vh, 9rem);
  display: none; align-items: center; gap: .6em;
  font: 500 .7rem/1 var(--mono); letter-spacing: .14em; color: var(--mist);
}
.film .pillars__count { display: flex; }
.roll { display: block; height: 1em; overflow: hidden; color: var(--paper); }
.roll__in { display: grid; }
.roll i { display: block; height: 1em; font-style: normal; }

/* ---- Close ---- */

.scene--close {
  grid-template-rows: 1fr auto;
  justify-items: center; text-align: center;
  padding-bottom: clamp(1.1rem, 3.2vh, 2rem);
}
.close__core { align-self: center; display: grid; justify-items: center; margin-top: -7vh; }

.wordmark {
  font-family: var(--serif);
  font-size: clamp(4.6rem, min(18.5vw, 32vh), 19rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.035em;             /* the wordmark's own spacing, in the text and in the swarm alike */
  margin-bottom: .13em;                /* clear of the y's tail */
  filter: drop-shadow(0 0 .1em rgb(var(--glow-rgb) / .32));
}
.wordmark__text {
  display: inline-block;
  /* room for the y's tail and the f's hook: background-clip stops at the box */
  padding: .12em .08em .26em; margin: -.12em -.08em -.26em;
  background: linear-gradient(180deg, #fffdf6 24%, color-mix(in srgb, var(--glow) 34%, #fffdf6) 86%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.close__tag {
  margin-top: clamp(.3rem, 1.2vh, 1rem);
  font: 500 clamp(1.2rem, 2vw, 2rem)/1.15 var(--sans); letter-spacing: -.02em;
  color: var(--paper);
}
.cta-wrap { margin-top: clamp(1.5rem, 4.4vh, 2.9rem); }
.cta {
  display: inline-flex; align-items: center; gap: .9em;
  padding: 1.08em 1.65em 1.08em 1.9em;
  border-radius: .8em;
  background: var(--glow); color: var(--ink);
  font: 500 clamp(.98rem, 1.15vw, 1.12rem)/1 var(--sans);
  letter-spacing: .004em;
  box-shadow:
    0 0 0 1px rgb(var(--glow-rgb) / .9),
    0 0 36px rgb(var(--glow-rgb) / .3),
    0 0 110px rgb(var(--glow-rgb) / .18);
  transition: box-shadow .6s var(--out), background-color .4s;
}
.cta:hover, .cta:focus-visible {
  background: var(--glow-hi);
  box-shadow:
    0 0 0 1px var(--glow-hi),
    0 0 64px rgb(var(--glow-rgb) / .7),
    0 0 180px rgb(var(--glow-rgb) / .42);
}

.foot {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font: 400 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--mist);
}
.foot a { transition: color .3s; }
.foot a:hover { color: var(--glow); }

/* --------------------------------------------------------------------------
   Chrome — grain, preloader
   -------------------------------------------------------------------------- */

.grain {
  position: fixed; z-index: 80; inset: -60px;
  pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: grain .9s steps(1) infinite;
}
@keyframes grain {
  0%  { transform: translate(0, 0); }
  16% { transform: translate(-22px, 14px); }
  33% { transform: translate(18px, -26px); }
  50% { transform: translate(-30px, -10px); }
  66% { transform: translate(26px, 22px); }
  83% { transform: translate(-12px, -30px); }
}

.preloader {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: var(--night);
}
.js .preloader { display: block; }
.preloader__fly {
  /* While the page loads: a few fireflies in the dark, each where it likes, flashing out of step.
     Each is drawn the way the swarm draws its own: a pinpoint and a long soft skirt, no body, no rim.
     Nothing sits in the middle and nothing grows; the dark simply lifts off the meadow.
     --loader-size is the reach of one glow. */
  --loader-size: 4.5rem;
  position: absolute; left: var(--x); top: var(--y);
  width: var(--loader-size); height: var(--loader-size);
  margin: calc(var(--loader-size) / -2) 0 0 calc(var(--loader-size) / -2);
  background: radial-gradient(closest-side,
    rgb(var(--fly-hot)) 0,
    rgb(var(--fly-hot) / .9) 1.6%,
    rgb(var(--fly-c) / .6) 3.4%,
    rgb(var(--glow-rgb) / .34) 7%,
    rgb(var(--glow-rgb) / .18) 13%,
    rgb(var(--glow-rgb) / .09) 22%,
    rgb(var(--glow-rgb) / .04) 36%,
    rgb(var(--glow-rgb) / .014) 56%,
    rgb(var(--glow-rgb) / .004) 78%,
    rgb(var(--glow-rgb) / 0) 100%);
  opacity: 0;
  animation: pulse var(--t, 2.6s) ease-out var(--d, 0s) infinite;
}
.preloader__fly:nth-child(1) { --x: 31%; --y: 58%; --t: 2.9s; --d: .1s; }
.preloader__fly:nth-child(2) { --x: 64%; --y: 44%; --t: 3.4s; --d: .9s; --loader-size: 3.4rem; }
.preloader__fly:nth-child(3) { --x: 47%; --y: 71%; --t: 2.5s; --d: 1.5s; --loader-size: 5.4rem; }
.preloader__fly:nth-child(4) { --x: 18%; --y: 39%; --t: 3.8s; --d: 2.1s; --loader-size: 3rem; }
.preloader__fly:nth-child(5) { --x: 79%; --y: 64%; --t: 3.1s; --d: .5s; --loader-size: 3.8rem; }
/* a firefly's flash: quick to light, slow to fade, then dark */
@keyframes pulse { 0% { opacity: 0; } 10% { opacity: 1; } 45% { opacity: .4; } 75%, 100% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Narrow and portrait screens: the formation takes the top, the words the bottom
   -------------------------------------------------------------------------- */

@media (max-width: 899px), (max-aspect-ratio: 6/5) {
  .scene--statement { align-items: end; padding-bottom: clamp(3rem, 10vh, 6rem); }
  .statement__text, .scene--team .statement__text { width: 100%; max-width: 36rem; justify-self: start; }
  .statement__title { font-size: clamp(1.7rem, min(6.6vw, 5.2vh), 3.2rem); }
  .pillars__count { right: calc(var(--pad) + 1.2rem); }
  .pillar__word { font-size: clamp(3rem, min(18.4vw, 18vh), 10rem); }    /* "Automate" has to fit a phone */
  .wordmark { font-size: clamp(5rem, min(26vw, 28vh), 15rem); }
  .foot { font-size: .6rem; }
}

@media (max-width: 640px) {
  .pill { padding: .7em .9em .7em 1em; font-size: .8rem; }
}

@media (max-height: 520px) {
  .scene { padding-top: 4.2rem; padding-bottom: 1.2rem; }
  .scene--hero { padding-bottom: 5.5rem; }
  .cue i { height: 22px; }
}

/* --------------------------------------------------------------------------
   Reduced motion, and the no-script page
   -------------------------------------------------------------------------- */

html:not(.film) .scene--hero { padding-bottom: clamp(9rem, 30vh, 18rem); }

@media (prefers-reduced-motion: reduce) {
  .sky__clouds, .land__mist canvas, .grass, .grain, .fig__spin, .cue i::after, .preloader__fly { animation: none; }
  .stops button::before { transition: none; }
}
