Skip to main content

templates

LandingSequence

Page narrative flow — choreographs the complete landing page animation sequence by listening to AnimationBus events and coordinating section transitions.

Narrative pacing for the homepage. Owns no DOM and no ScrollTrigger — it listens on AnimationBus and cues section lifecycle methods in order.

Methods

Debug hold

?hold=preloader-out stops the chain where it would start: the preloader lifts,
preloader:out fires, and LandingSequence does not call start(). Only the
page background shows. The logger prints the hold and how to resume:

window.director.getSequence().start();

That continues the normal chain. The video-settled listener is registered in
the constructor and keeps listening during the hold, so a settle that arrived
while held is already latched and start() joins it in _cueVideoIntro.

Holds are listed in LANDING_HOLDS (URL value plus resume hint) and read with
getLandingHold(), modeled on getCardVariantOverride() in
config/ix/profiles.js (SSR-safe, URLSearchParams). To add another point,
add an entry and check it with _isHeld() where the chain passes that point.

Events

Sequence

Each Visitor note says what is on screen at that point; the rest is the mechanism behind it. Phase 1 is the landing chain: two latches join in _cueVideoIntro, then the video intro, the hold, and the hero intro run in series. Phase 2 is Hero’s ScrollTrigger gating background-video playback.

sequenceDiagram
  autonumber
  actor U as Visitor
  participant W as window / Preloader
  participant Bus as AnimationBus
  participant LS as LandingSequence
  participant Video as BackgroundVideo (sections.video)
  participant G as gsap.delayedCall
  participant Hero as Hero (sections.hero)
  participant Hdr as BadgeManager

  Note over LS: constructor: listen once for preloader:out on window,<br/>then subscribe to Bus events (_registerListeners)
  Note over U: First visit: the preloader splash (logo and subtitle) fills<br/>the screen and scrolling is locked.<br/>Return visit: no splash, the page paints straight away.

  rect rgba(120,120,120,0.08)
  Note over U,Hdr: Phase 1. Landing chain. Two latches (A and B), arrival order not fixed
  par Latch A: video settles (usually first, before preloader:out)
    Note over U: Still the splash. Behind it the video hydrates<br/>and starts playing, out of sight.
    Video-)Bus: video:media:playing | error | unavailable<br/>| ready (counts only if reduced motion)
    Bus->>LS: settled handler
    LS->>LS: _videoMediaSettled = true
    LS->>LS: _cueVideoIntro() (returns early until B is set)
  and Latch B: preloader hands off
    Note over U: The splash plays its exit and lifts.
    W-)LS: preloader:out
    LS->>LS: start(), remove window listener
    LS->>Video: await playLanding() (stage autoAlpha 0)
    Video-->>LS: resolved (errors are logged and swallowed)
    Note over U: Page is up, but the video is held invisible.
    LS->>LS: _videoLandingStaged = true
    LS->>LS: _cueVideoIntro()
  end
  Note over LS: Both latches set and _videoIntroCued is false,<br/>so set _videoIntroCued = true
  LS->>Video: await playIntro() (gel_video fades in, then the video; play() as safety net)
  Note over U: The gel_video gel fades in, then the background video<br/>fades in already darkened and in motion, never a frozen poster frame.
  Note over Video: Move to idle: the tilt (perspective tiers) is applied<br/>statically; video:intro:complete follows, gel fully visible
  Note over U: The background rests in perspective with the video already<br/>darkened by gel_video (narrow screens: no tilt).
  Video-)Bus: video:intro:complete
  Bus->>LS: introComplete handler
  LS->>LS: _videoIntroComplete = true
  LS->>G: _armHeroIntro(): delayedCall(hold)<br/>hold = 0 if reduced motion, else HERO_INTRO_HOLD.delay
  Note over U: A short beat: the video plays on its own.
  G-->>LS: hold elapsed, _heroHoldCall = null
  LS->>Hero: playIntro()
  Note over U: The manifesto arrives: its context line rises and fades in,<br/>the title's letters cascade up into place, then the keywords<br/>"just", "informed" and "engaged" light up in secondary-600.
  Hero-)Bus: hero:intro:complete (chain ends)
  Bus->>Hdr: _reveal()
  Note over U: The site header slides down from the top edge.<br/>From now on it hides on scroll down and returns on scroll up.
  end

  Note over U: Reduced motion: no splash animation, the video shows<br/>a still frame, the manifesto appears at rest, and the<br/>header appears without sliding. The same events still fire.

  rect rgba(120,120,120,0.08)
  Note over U,Hdr: Phase 2. Hero ScrollTrigger controls video play/pause
  Hero-)Bus: hero:enter (also fires at load)
  Bus->>LS: _heroLeftBackwards = false
  LS->>LS: _resumeBackgroundVideo()
  alt reduced motion OR video intro not yet complete
    LS-->>LS: no-op (landing chain still owns playback)
  else
    LS->>Video: videoEl.play() (rejection ignored)
  end

  Hero-)Bus: hero:onEnterBack
  Bus->>LS: _heroLeftBackwards = false
  LS->>Video: _resumeBackgroundVideo() (same gate)
  Note over U: Scrolling back up into the manifesto, the video moves again.

  alt Scroll down past Hero
    Hero-)Bus: hero:exit
    Bus->>LS: _heroLeftBackwards is false
    LS->>Video: videoEl.pause() (holds last frame for gel blend)
    Note over U: Past the manifesto, the video freezes on its last frame.<br/>The backdrop and the colour blend over it look unchanged,<br/>just still.
  else Scroll up above Hero's start
    Hero-)Bus: hero:onLeaveBack
    Bus->>LS: _heroLeftBackwards = true
    LS->>Video: _resumeBackgroundVideo() (same gate)
    Hero-)Bus: hero:exit (sent right after, dispatch is synchronous)
    Bus->>LS: _heroLeftBackwards is true, so clear it and return (no pause)
    Note over U: Back at the top of the page, the video keeps playing.
  end
  end

  Note over LS: destroy(): kill _heroHoldCall, reset all flags,<br/>unsubscribe Bus listeners, clear references

Reduced motion

Motion strategy

flowchart TD
    subgraph boot["Boot gates — never bypass"]
        DCL["DOMContentLoaded, idle-deferred"] --> AD["AnimationDirector: bus, ScrollEffectsCoordinator,<br/>CardManager, SECTION_REGISTRY, managers, LandingSequence"]
        AD --> DR{{"window: director:ready"}}
        DR --> PRE["Preloader: fonts, director gate (8s timeout),<br/>hydrate video, await video settled, exit animation"]
        PRE --> PO{{"window: preloader:out"}}
    end

    subgraph chain["Serial landing chain"]
        direction TB
        VS{{"bus: video:media:playing / error / unavailable<br/>(ready only under reduced motion)"}} --> LA["latch A: _videoMediaSettled"]
        PO --> START["LandingSequence.start<br/>await video.playLanding — hidden resting state"]
        START --> LB["latch B: _videoLandingStaged"]
        LA --> CUE{"_cueVideoIntro<br/>both latches set? not yet cued?"}
        LB --> CUE
        CUE --> VID["_startVideoIntro<br/>video.playIntro — gel_video fade, then video fade"]
        VID --> IDLE["BackgroundVideo move to idle<br/>tilt (perspective tiers), applied statically"]
        IDLE --> VIC{{"bus: video:intro:complete<br/>held until the tilt settles"}}
        VIC --> BEAT["_armHeroIntro<br/>gsap.delayedCall HERO_INTRO_HOLD.delay"]
        BEAT --> HERO["hero.playIntro<br/>gel_tagline is its only gel; gel_video already landed with the background"]
        HERO --> BIC{{"bus: hero:intro:complete — chain ends"}}
    end

    BIC -.->|"BadgeManager listens"| HDR["BadgeManager._reveal<br/>header slides in, scroll auto-hide arms"]

    subgraph gate["Hero-scoped video playback"]
        direction LR
        HEROST["hero ScrollTrigger"] -->|"enter / onEnterBack / onLeaveBack"| RES["_resumeBackgroundVideo<br/>no-op under reduced motion or before video intro completes"]
        HEROST -->|"exit, unless preceded by onLeaveBack"| PAU["_pauseBackgroundVideo<br/>holds last frame"]
    end

    subgraph scroll["Out of band — self-driven by their own ScrollTriggers"]
        direction LR
        WORK["work"]
        ORGS["organizations"]
        AWARDS["awards"]
    end

    RM["Reduced motion"] -.->|"hold zero, intros jump to progress 1,<br/>events still emit — chain stays intact"| chain

Why it is shaped this way

Known drift