/* Motion layer: one easing vocabulary, the homepage opening sequence, scroll
   choreography, and interaction polish. Every scroll-linked effect runs as a
   CSS scroll-driven animation, so it is composited and stays in step with the
   page; browsers without support keep the ordinary reveals. */

:root {
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  /* Cubic fallbacks for browsers without linear() easing. */
  --spring-medium: cubic-bezier(.34, 1.36, .64, 1);
  --spring-pop: cubic-bezier(.34, 1.56, .64, 1);
  --sheet-radius: clamp(28px, 3.4vw, 64px);
}

/* Damped springs with a quick launch (10% and 18% overshoot). */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-medium: linear(0, .196 4.3%, .576 12.1%, .76 16.6%, .894 20.8%, .992 25.1%, 1.058 29.8%, 1.092 35.3%, 1.09 42.7%, 1.007 66.5%, .992 84.3%, 1);
    --spring-pop: linear(0, .187 3.2%, .686 10.7%, .884 14.3%, 1.025 17.7%, 1.12 21.1%, 1.173 24.8%, 1.184 29.1%, 1.141 35.2%, 1.013 47.9%, .974 56.5%, .979 69.3%, 1.005 92.3%, 1);
  }
}

/* ------------------------------------------------------------------ */
/* Hero title: a character wave, then the italic line pulls into focus. */

.hero h1.title-ready .title-word {
  display: inline-block;
  white-space: nowrap;
}

.hero h1.title-ready .title-char {
  display: inline-block;
}

/* An animating character is painted on its own layer, outside the reach of
   the em's background-clip: text. Each italic character therefore carries its
   own slice of the line's gradient, aligned by app.js (--em-w, --cx). The slow
   ink flow (--ink-shift) is stepped by a timer in app.js about six times a
   second; each step moves the colour by roughly one percent. A CSS animation
   of the property would wake the main thread on every display refresh. Its
   own layer keeps each step from repainting the rest of the page. */
.hero h1.title-ready em {
  background: none;
  will-change: transform;
  animation: none;
}

.hero h1.title-ready em .title-char {
  background: linear-gradient(105deg, #40318d, #8262c8, #342b79, #735bc4);
  background-size: calc(var(--em-w, 600px) * 2.4) 100%;
  background-position: calc(var(--ink-shift, 0px) - var(--cx, 0px)) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  /* Hold the title until its characters are ready, with a failsafe reveal. */
  .js .hero h1[data-typewriter]:not(.title-ready) {
    opacity: 0;
    animation: title-failsafe 0s 2.4s forwards;
  }

  /* A backwards fill lets each character leave its own layer once it lands. */
  .hero h1.title-play .title-char {
    transform-origin: 50% 100%;
    animation: title-rise 1.15s var(--ease-out-expo) backwards;
    animation-delay: calc(var(--d, 0) * 1ms);
  }

  .hero h1.title-play em .title-char {
    animation-name: title-focus;
    animation-duration: 1.4s;
  }
}

@keyframes title-failsafe { to { opacity: 1; } }

@keyframes title-rise {
  from { opacity: 0; transform: translate3d(0, .62em, 0) rotate(7deg) scale(.92); }
  45% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

/* Transform and opacity only, so the compositor can run it while the page is
   still loading. The characters close in from a wider scale, like a lens
   pulling focus. */
@keyframes title-focus {
  from { opacity: 0; transform: translate3d(0, .22em, 0) scale(1.55); }
  50% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/* Cold homepage arrival. Internal returns skip this and only replay the
   title, so the artwork appears fully painted. */

@media (prefers-reduced-motion: no-preference) {
  .home-intro .site-header .brand {
    animation: header-drop 1s var(--ease-out-expo) .05s backwards;
  }
  .home-intro .main-nav > a,
  .home-intro .menu-toggle {
    animation: header-drop .9s var(--ease-out-expo) backwards;
  }
  .home-intro .main-nav > a:nth-child(1) { animation-delay: .14s; }
  .home-intro .main-nav > a:nth-child(2) { animation-delay: .2s; }
  .home-intro .main-nav > a:nth-child(3) { animation-delay: .26s; }
  .home-intro .main-nav > a:nth-child(4),
  .home-intro .menu-toggle { animation-delay: .32s; }

  .home-intro .hero::before {
    animation: sky-drift 18s ease-in-out infinite alternate, sky-in 1.8s ease-out backwards;
  }
  .home-intro .hero-copy .eyebrow {
    animation: eyebrow-in 1.1s var(--ease-out-expo) .1s backwards;
  }
  .home-intro .hero-lede {
    animation: lede-in 1.2s var(--ease-out-expo) .82s backwards;
  }
  .home-intro .hero-actions .button {
    animation: button-in 1.1s var(--spring-medium) 1s backwards;
  }
  .home-intro .hero-actions .button + .button { animation-delay: 1.1s; }

  /* The portrait opens like an aperture while its image settles inward. */
  .home-intro .hero-visual-glow {
    animation: glow-breathe 9s ease-in-out infinite, glow-in 2.2s var(--ease-out-expo) backwards;
  }
  .home-intro .mascot-disc {
    animation: aperture-open 1.35s var(--ease-out-expo) .12s backwards;
  }
  .home-intro .mascot-face {
    animation: aperture-face 1.6s var(--ease-out-expo) .12s backwards;
  }
  .home-intro .mascot-button::before {
    animation: ring-in 1.7s var(--ease-out-expo) .22s backwards;
  }
  .home-intro .hero-orbit-outer {
    animation: orbit-outer 32s linear infinite, orbit-in 2s var(--ease-out-expo) .3s backwards;
  }
  .home-intro .hero-orbit-inner {
    animation: orbit-inner 41s linear infinite, orbit-in 1.8s var(--ease-out-expo) .45s backwards;
  }
  .home-intro .mascot-spark-one {
    animation: spark-drift 6s ease-in-out infinite, spark-pop 1s var(--spring-pop) 1.05s backwards;
  }
  .home-intro .mascot-spark-two {
    animation: spark-drift 6s ease-in-out -2.6s infinite, spark-pop 1s var(--spring-pop) 1.2s backwards;
  }
  .home-intro .hero-axis {
    animation: axis-in 1s var(--spring-pop) 1.3s backwards;
  }
  .home-intro .hero-axis-bottom { animation-delay: 1.42s; }

  /* Scroll-timeline browsers extend the letter's list with its exit below. */
  .home-intro .hero-word {
    animation: hero-letter-glow 7s ease-in-out infinite alternate, hero-word-in 1.8s var(--ease-out-expo) .1s backwards;
  }
  .home-intro .hero-side-note,
  .home-intro .hero-bottom {
    animation: hero-meta-in 1.2s var(--ease-out-expo) 1.25s backwards;
  }
}

@keyframes header-drop { from { opacity: 0; transform: translate3d(0, -18px, 0); } }
@keyframes sky-in { from { opacity: 0; scale: 1.12; } }
@keyframes eyebrow-in { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translate3d(-18px, 0, 0); } to { opacity: 1; clip-path: inset(0); transform: none; } }
@keyframes lede-in { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
@keyframes button-in { from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.86); } }
/* Scale only: sharing opacity with glow-breathe would keep both animations
   off the compositor for good. */
@keyframes glow-in { from { scale: .3; } }
@keyframes aperture-open { from { opacity: 0; transform: scale(.28); } 18% { opacity: 1; } }
@keyframes aperture-face { from { transform: scale(2.1) rotate(-16deg); } }
@keyframes ring-in { from { opacity: 0; transform: rotate(-150deg) scale(.55); } }
@keyframes orbit-in { from { opacity: 0; scale: .5; } }
@keyframes spark-pop { from { scale: 0; rotate: -120deg; } }
@keyframes axis-in { from { opacity: 0; scale: 0; } }

/* The face layer moves the image, gaze and blink overlays as one unit. */
.mascot-face {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
}

/* Sparks scattered by a click on the portrait (app.js). The violet glow keeps
   them legible over the light hair and sky. */
.mascot-burst {
  position: absolute;
  z-index: 6;
  color: #fff;
  font-size: clamp(22px, 2.1vw, 38px);
  line-height: 1;
  text-shadow: 0 0 2px rgba(58, 30, 120, .55), 0 0 12px rgba(143, 107, 232, .95), 0 0 26px rgba(202, 164, 246, .9);
  pointer-events: none;
  will-change: transform, opacity;
}
.mascot-burst:nth-of-type(3n + 1) { color: #ffd1ea; }
.mascot-burst:nth-of-type(3n + 2) { color: #d9cbff; }

/* ------------------------------------------------------------------ */
/* overflow: hidden makes an element a scroll container, and a view timeline
   follows its nearest scroll container. These sections only clip their
   decoration, so clip them without becoming scrollers; their timelines then
   follow the page. */

@supports (animation-timeline: view()) {
  .hero,
  .mission,
  .featured,
  .signal {
    overflow: clip;
  }
}

/* ------------------------------------------------------------------ */
/* Hero scroll exit. One keyframe set per layer; breakpoint variables set the
   depth, so the opening animations and the exit share a single list. */

.hero {
  --copy-exit-y: -7svh;
  --copy-exit-s: 1;
  --copy-exit-o: 1;
  --copy-exit-end: 100svh;
  --word-exit-y: -5.5svh;
  --word-exit-s: 1;
}

@media (min-width: 901px) {
  .hero {
    --copy-exit-y: 12vh;
    --copy-exit-s: .9;
    --copy-exit-o: 0;
    --copy-exit-end: 88svh;
    --word-exit-y: -14vh;
    --word-exit-s: 1.4;
  }
}

/* Desktop: the dark sheet rises over the held hero. */
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  .hero-stack > .hero {
    position: sticky;
    top: var(--hero-pin, 0px);
    z-index: 0;
  }
  .hero-stack > .mission {
    z-index: 1;
    border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  }
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-copy {
      animation: hero-copy-exit linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 var(--copy-exit-end);
    }
    .hero-word {
      animation: hero-letter-glow 7s ease-in-out infinite alternate, hero-word-exit linear both;
      animation-timeline: auto, scroll(root block);
      animation-range: normal, 0 var(--copy-exit-end);
    }
    .home-intro .hero-word {
      animation: hero-letter-glow 7s ease-in-out infinite alternate, hero-word-in 1.8s var(--ease-out-expo) .1s backwards, hero-word-exit linear both;
      animation-timeline: auto, auto, scroll(root block);
      animation-range: normal, normal, 0 var(--copy-exit-end);
    }
  }

  @media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
    .hero-visual {
      animation: hero-visual-recede linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 100svh;
    }
    /* The hero settles into the sheet's shadow. */
    .hero-stack > .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 7;
      pointer-events: none;
      background: #1d1838;
      opacity: 0;
      animation: hero-dim linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 100svh;
    }
    .hero-stack > .mission {
      transform-origin: 50% 0;
      animation: sheet-rise linear both;
      animation-timeline: --mission;
      animation-range: entry 0% entry 100%;
    }
    .hero-stack > .mission > .page-wrap {
      animation: sheet-content linear both;
      animation-timeline: --mission;
      animation-range: entry 0% entry 100%;
    }
  }

  @media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
    .hero-visual {
      animation: hero-visual-exit linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}

@keyframes hero-copy-exit { to { opacity: var(--copy-exit-o); transform: translate3d(0, var(--copy-exit-y), 0) scale(var(--copy-exit-s)); } }
@keyframes hero-word-in { from { translate: 0 22%; scale: .92; } }
@keyframes hero-word-exit { to { transform: translate3d(0, var(--word-exit-y), 0) scale(var(--word-exit-s)); } }
@keyframes hero-meta-in { from { opacity: 0; translate: 0 14px; } }
@keyframes hero-visual-recede { to { opacity: .55; transform: translate3d(0, 6vh, 0) scale(.8) rotate(-7deg); } }
@keyframes hero-visual-exit { to { opacity: .35; transform: translate3d(0, 10%, 0) scale(.86); } }
@keyframes hero-dim { to { opacity: .5; } }
@keyframes sheet-rise { from { transform: scale(.92); } }
@keyframes sheet-content { from { transform: translate3d(0, 9vh, 0); } }

/* ------------------------------------------------------------------ */
/* What this is: the star turns with the page; the copy lights word by word. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mission { view-timeline: --mission block; }
    .mission::before {
      animation: star-turn linear both;
      animation-timeline: --mission;
      animation-range: cover 0% cover 100%;
    }
    .mission p.is-lit-ready { view-timeline: --mission-copy block; }
    .mission .lit-word {
      animation: word-lit linear both;
      animation-timeline: --mission-copy;
      animation-range:
        cover calc(4% + var(--li) / var(--ln) * 26%)
        cover calc(10% + var(--li) / var(--ln) * 26%);
    }
  }
}

@keyframes star-turn {
  from { transform: rotate(-38deg) scale(.8); }
  to { transform: rotate(32deg) scale(1.1); }
}
@keyframes word-lit { from { opacity: .16; } }

/* ------------------------------------------------------------------ */
/* Tested in public: cards are dealt in, the circular film opens like a
   portal and its neighbours unfold from behind it, then the strip slides in. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1101px) {
    .js .featured .feature-card.reveal { opacity: 1; }

    .featured .feature-top-row {
      view-timeline: --gallery-top block;
      perspective: 1800px;
    }
    .js .featured .feature-top-row > .feature-card {
      transform-origin: 50% 100%;
      animation: gallery-deal cubic-bezier(.2, .75, .25, 1) both, gallery-fade linear both;
      animation-timeline: --gallery-top, --gallery-top;
      animation-range: entry 0% cover 42%, entry 0% cover 24%;
    }
    .js .featured .feature-top-row > .feature-card:nth-child(1) { --deal-x: -7vw; --deal-r: -8deg; }
    .js .featured .feature-top-row > .feature-card:nth-child(2) {
      --deal-x: -2.5vw; --deal-r: -3deg;
      animation-range: entry 6% cover 46%, entry 6% cover 28%;
    }
    .js .featured .feature-top-row > .feature-card:nth-child(3) {
      --deal-x: 2.5vw; --deal-r: 3deg;
      animation-range: entry 12% cover 50%, entry 12% cover 32%;
    }
    .js .featured .feature-top-row > .feature-card:nth-child(4) {
      --deal-x: 7vw; --deal-r: 8deg;
      animation-range: entry 18% cover 54%, entry 18% cover 36%;
    }

    .featured .feature-center-grid { view-timeline: --gallery-center block; }
    .js .featured .feature-center-grid > .feature-card--zgrok-17 {
      z-index: 2;
      animation: portal-open cubic-bezier(.22, .8, .3, 1) both, gallery-fade linear both;
      animation-timeline: --gallery-center, --gallery-center;
      animation-range: entry 0% cover 48%, entry 0% entry 45%;
    }
    .js .featured .feature-center-grid > .feature-card:not(.feature-card--zgrok-17) {
      animation: portal-unfold cubic-bezier(.22, .8, .3, 1) both, gallery-fade linear both;
      animation-timeline: --gallery-center, --gallery-center;
      animation-range: entry 22% cover 56%, entry 22% cover 40%;
    }
    .js .featured .feature-card--zgrok-19 { --unfold-x: 58%; --unfold-y: 34%; --unfold-r: 7deg; }
    .js .featured .feature-card--zgrok-15 { --unfold-x: 58%; --unfold-y: -34%; --unfold-r: -7deg; }
    .js .featured .feature-card--zgrok-18 { --unfold-x: -58%; --unfold-y: 34%; --unfold-r: -7deg; }
    .js .featured .feature-card--zgrok-14 { --unfold-x: -58%; --unfold-y: -34%; --unfold-r: 7deg; }

    .featured .feature-extras { view-timeline: --gallery-extras block; }
    .js .featured .feature-extras > .feature-card {
      animation: strip-in cubic-bezier(.2, .75, .25, 1) both, gallery-fade linear both;
      animation-timeline: --gallery-extras, --gallery-extras;
      animation-range:
        entry calc(var(--si) * 7%) cover calc(30% + var(--si) * 5%),
        entry calc(var(--si) * 7%) cover calc(16% + var(--si) * 5%);
    }
    .featured .feature-extras > .feature-card:nth-child(1) { --si: 0; }
    .featured .feature-extras > .feature-card:nth-child(2) { --si: 1; }
    .featured .feature-extras > .feature-card:nth-child(3) { --si: 2; }
    .featured .feature-extras > .feature-card:nth-child(4) { --si: 3; }
    .featured .feature-extras > .feature-card:nth-child(5) { --si: 4; }
    .featured .feature-extras > .feature-card:nth-child(6) { --si: 5; }
  }
}

@keyframes gallery-fade { from { opacity: 0; } }
@keyframes gallery-deal {
  from { transform: translate3d(var(--deal-x, 0), 22vh, 0) rotate(var(--deal-r, 0deg)) rotateX(36deg) scale(.82); }
}
@keyframes portal-open { from { transform: scale(.42) rotate(-24deg); } }
@keyframes portal-unfold {
  from { transform: translate3d(var(--unfold-x, 0), var(--unfold-y, 0), 0) scale(.7) rotate(var(--unfold-r, 0deg)); }
}
@keyframes strip-in { from { transform: translate3d(14vw, 3vh, 0) rotate(4deg) scale(.86); } }

/* ------------------------------------------------------------------ */
/* Reveal directions for the homepage groups that follow. */

.js .principle.reveal { --reveal-y: 70px; --reveal-s: .96; }
.js .principle.reveal:nth-child(1) { --reveal-r: -2.5deg; }
.js .principle.reveal:nth-child(3) { --reveal-r: 2.5deg; }
.js .signal-panel.reveal { --reveal-y: 70px; --reveal-s: .96; }

/* ------------------------------------------------------------------ */
/* Our lens: a soft spotlight and a lit border follow the pointer. */

.principle {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.principle::before,
.principle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--ease-out-expo);
}
.principle::before {
  z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(146, 116, 240, .2), transparent 62%);
}
.principle::after {
  padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(109, 87, 223, .85), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.principle .number {
  display: inline-block;
  transition: transform .7s var(--spring-medium), color .4s;
}
@media (hover: hover) {
  .principle:hover::before,
  .principle:hover::after { opacity: 1; }
  .principle:hover .number { transform: translateX(8px) rotate(-8deg); color: #8b5fd6; }
}

/* ------------------------------------------------------------------ */
/* The wider signal: a sliding pill, and a hue for each direction. */

.signal-tabs.has-indicator {
  position: relative;
  isolation: isolate;
}
.signal-tab-indicator {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  border-radius: 100px;
  background: #f3e9ff;
  box-shadow: 0 10px 34px rgba(214, 180, 255, .3);
  pointer-events: none;
  transition: transform .7s var(--spring-medium), width .7s var(--spring-medium), height .7s var(--spring-medium);
}
.signal-tab-indicator.is-instant { transition: none; }
.signal-tabs.has-indicator .signal-tab,
.signal-tabs.has-indicator .signal-tab[aria-selected="true"] {
  position: relative;
  background: transparent;
}
.signal-tabs.has-indicator .signal-tab[aria-selected="true"]:hover { transform: none; }

.signal-panel h3 .signal-word { display: inline-block; }
.signal-core { overflow: hidden; }
.signal-glyph { display: inline-block; }
.signal-graphic { transition: filter 1.1s var(--ease-out-expo); }
.signal-panel[data-signal="agents"] .signal-graphic { filter: hue-rotate(42deg) saturate(1.15); }
.signal-panel[data-signal="frontier"] .signal-graphic { filter: hue-rotate(-48deg) saturate(1.1); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .signal-panel { view-timeline: --signal-panel block; }
    .signal-core {
      animation: float 7s ease-in-out infinite, orb-drift linear both;
      animation-timeline: auto, --signal-panel;
      animation-range: normal, cover 0% cover 100%;
    }
  }
}
@keyframes orb-drift {
  from { translate: 0 46px; }
  to { translate: 0 -46px; }
}

/* ------------------------------------------------------------------ */
/* Let's make the new feel human: the wordmark drifts across the section. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .collab { view-timeline: --collab block; }
    .collab::before {
      animation: collab-drift linear both;
      animation-timeline: --collab;
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes collab-drift {
  from { transform: translateX(-38%); }
  to { transform: translateX(-62%); }
}

/* ------------------------------------------------------------------ */
/* Buttons: the fill grows from where the pointer enters and leaves. */

@media (hover: hover) {
  .button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }
  .button::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: var(--fill-x, 50%);
    top: var(--fill-y, 50%);
    width: 260%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--fill, #5a46b4);
    transform: translate3d(-50%, -50%, 0) scale(0);
    transition: transform .75s var(--ease-out-expo);
    pointer-events: none;
  }
  .button:hover::before { transform: translate3d(-50%, -50%, 0) scale(1); }
  .button-dark { --fill: #5a46b4; }
  .button-dark:hover { background: var(--ink); }
  .button-outline { --fill: #fff; }
  .button-outline:hover { background: rgba(255, 255, 255, .1); }
  .button-light { --fill: #ece4ff; }
  .button-arrow {
    display: inline-block;
    transition: transform .7s var(--spring-medium);
  }
  .button:hover .button-arrow { transform: rotate(45deg) translateX(2px); }
}

/* ------------------------------------------------------------------ */
/* The compact menu's links rise in one after another as the panel opens. */

@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .menu-open .main-nav > a {
    animation: menu-link-in .8s var(--ease-out-expo) backwards;
  }
  .menu-open .main-nav > a:nth-child(1) { animation-delay: .12s; }
  .menu-open .main-nav > a:nth-child(2) { animation-delay: .18s; }
  .menu-open .main-nav > a:nth-child(3) { animation-delay: .24s; }
  .menu-open .main-nav > a:nth-child(4) { animation-delay: .32s; }
}
@keyframes menu-link-in { from { opacity: 0; transform: translate3d(0, 28px, 0); } }

/* ------------------------------------------------------------------ */
/* Reading progress under the header. */

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 2px;
      background: linear-gradient(90deg, #8a74ee, #c48ee6 55%, #f29ac4);
      transform-origin: 0 50%;
      transform: scaleX(0);
      opacity: 0;
      transition: opacity .4s;
      animation: page-progress linear both;
      animation-timeline: scroll(root block);
      pointer-events: none;
    }
    .site-header.is-scrolled::after { opacity: 1; }
    .site-header.menu-active::after { opacity: 0; }
  }
}
@keyframes page-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ------------------------------------------------------------------ */
/* Footer signature letters rise when the footer arrives. */

.footer-brand.letters-ready .footer-letter { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .footer-brand.letters-ready:not(.is-visible) .footer-letter { opacity: 0; }
  .footer-brand.is-visible .footer-letter {
    animation: footer-letter-in 1s var(--ease-out-expo) backwards;
    animation-delay: calc(var(--i, 0) * 45ms);
  }
}
@keyframes footer-letter-in { from { opacity: 0; transform: translate3d(0, 70%, 0) rotate(8deg); } }

/* ------------------------------------------------------------------ */
/* Looping decoration pauses while its section is out of view. */

.hero.is-offscreen::before,
.hero.is-offscreen .hero-visual-glow,
.hero.is-offscreen .hero-orbit,
.hero.is-offscreen .mascot-button,
.hero.is-offscreen .mascot-spark,
.hero.is-offscreen h1 em,
.hero.is-offscreen .eyebrow::before,
.hero.is-offscreen .cue-line::after,
.signal.is-offscreen .signal-graphic::before,
.signal.is-offscreen .signal-graphic::after {
  animation-play-state: paused;
}
