kitbash Sign in Connect agent
Components

Light trail statement

A canvas of thin coloured threads flowing out of a dim grid of change icons and bundling into one bright beam, beside a grey statement.

Part of the style

Matted Dark Console

7 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;800&family=Newsreader:opsz,wght@6..72,400;6..72,600&display=swap");
:root {
  --night: #c3c0bb;
  --night-raised: #c4c0bb;
  --night-panel: #aba7a0;
  --night-deep: #e6e3dd;
  --line: #a19c95;
  --line-strong: #8f8a81;
  --ink: #000000;
  --ink-soft: #0d1406;
  --ink-dim: #4b5246;
  --white: #dee9d4;
  --on-white: #62605b;
  --mat: #7e786f;
  --mat-light: #010300;
  --scrim: rgba(255, 254, 252, 0.4);
  --signal: #455239;
  --signal-wash: rgba(69, 82, 57, 0.12);
  --coral: #034f6e;
  --flare: #0d4761;
  --coral-wash: rgba(23, 102, 139, 0.1);
  --amber: #455239;
  --cobalt: #17668b;
  --font-display: "Newsreader", "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}
</style>

<section class="streams">
  <div class="streams__stage">
    <canvas class="streams__canvas" role="img" aria-label="Many thin coloured threads leave a grid of change icons and bundle into one bright beam"></canvas>
  </div>
  <div class="streams__copy">
    <p class="streams__eyebrow">00 The problem</p>
    <h2 class="streams__title">More change. Same four hands.</h2>
    <p class="streams__text">Pipelines now open a hundred plans before lunch. Ferrow pulls them into one reviewed stream your team can actually read, rank and roll out.</p>
  </div>
</section>

<style>
  .streams {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--gap);
    padding: var(--section-space) var(--edge);
    overflow: hidden;
  }
  .streams__stage {
    grid-column: 1 / -1;
    grid-row: 1;
    height: clamp(260px, 34vw, 440px);
    margin: 0 calc(var(--edge) * -1);
  }
  .streams__canvas {
    width: 100%;
    height: 100%;
    color: var(--ink-dim);
    --c1: var(--signal);
    --c2: var(--coral);
    --c3: var(--amber);
    --c4: var(--line);
  }
  .streams__copy {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    position: relative;
    padding-bottom: var(--space-l);
  }
  .streams__eyebrow { margin: 0 0 var(--space-m); color: var(--signal); font: 400 12px/1.5 var(--font-mono); text-transform: uppercase; }
  .streams__title { margin: 0 0 var(--space-m); color: var(--ink); font: 500 var(--display-s)/var(--leading-tight) var(--font-display); letter-spacing: -0.02em; }
  .streams__text { margin: 0; max-width: 32em; color: var(--ink-soft); font-size: var(--text-l); line-height: 1.4; }

  @media (max-width: 48rem) {
    .streams { grid-template-columns: 1fr; }
    .streams__copy { grid-column: 1; grid-row: 2; padding-bottom: 0; }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)');

    function setup(canvas) {
      const css = getComputedStyle(canvas);
      const colours = ['--c1', '--c2', '--c3', '--c1', '--c2'].map((v) => css.getPropertyValue(v).trim());
      const grid = css.getPropertyValue('--c4').trim();
      const dim = css.color;
      const threads = Array.from({ length: 26 }, (_, i) => ({
        row: (i * 7919) % 13 / 12,
        col: ((i * 104729) % 5) / 5,
        colour: colours[i % colours.length],
        speed: 0.08 + ((i * 31) % 17) / 160,
        phase: ((i * 53) % 100) / 100,
        spread: (((i * 13) % 9) - 4) / 4,
      }));

      function point(t, th, w, h) {
        // Left half: an S-curve from the icon grid to the knot; right half: a near-straight beam.
        const sx = w * (0.06 + th.col * 0.24), sy = h * (0.12 + th.row * 0.76);
        const kx = w * 0.5, ky = h * 0.32 + th.spread * 3;
        const ex = w, ey = h * 0.3 + th.spread * 5;
        if (t < 0.5) {
          const u = t / 0.5, e = u * u * (3 - 2 * u);
          return [sx + (kx - sx) * u, sy + (ky - sy) * e];
        }
        const u = (t - 0.5) / 0.5;
        return [kx + (ex - kx) * u, ky + (ey - ky) * u];
      }

      function paint(ctx, w, h, s) {
        ctx.clearRect(0, 0, w, h);
        // Faint cell grid and change icons on the left.
        ctx.strokeStyle = grid;
        ctx.lineWidth = 1;
        for (let x = 0; x < w * 0.36; x += 36) { ctx.beginPath(); ctx.moveTo(x + 0.5, 0); ctx.lineTo(x + 0.5, h); ctx.stroke(); }
        for (let y = 0; y < h; y += 36) { ctx.beginPath(); ctx.moveTo(0, y + 0.5); ctx.lineTo(w * 0.36, y + 0.5); ctx.stroke(); }
        threads.forEach((th) => {
          const [x, y] = point(0, th, w, h);
          ctx.strokeStyle = dim;
          ctx.globalAlpha = 0.5;
          ctx.strokeRect(x - 10.5, y - 10.5, 21, 21);
          ctx.beginPath(); ctx.arc(x - 3, y - 4, 1.6, 0, 7); ctx.moveTo(x - 3, y - 2); ctx.lineTo(x - 3, y + 5); ctx.moveTo(x + 3, y + 5); ctx.lineTo(x + 3, y - 1); ctx.stroke();
          ctx.globalAlpha = 1;
        });
        // Threads, then a bright packet running along each.
        ctx.globalCompositeOperation = 'lighter';
        threads.forEach((th) => {
          ctx.strokeStyle = th.colour;
          ctx.globalAlpha = 0.16;
          ctx.lineWidth = 1;
          ctx.beginPath();
          for (let i = 0; i <= 60; i++) { const [x, y] = point(i / 60, th, w, h); i ? ctx.lineTo(x, y) : ctx.moveTo(x, y); }
          ctx.stroke();
          const head = (th.phase + s * th.speed) % 1;
          ctx.lineWidth = 1.6;
          for (let k = 0; k < 14; k++) {
            const a = Math.max(0, head - k * 0.012), b = Math.max(0, head - (k + 1) * 0.012);
            const [x1, y1] = point(a, th, w, h), [x2, y2] = point(b, th, w, h);
            ctx.globalAlpha = 0.9 * (1 - k / 14);
            ctx.beginPath(); ctx.moveTo(x1, y1); ctx.lineTo(x2, y2); ctx.stroke();
          }
        });
        // The knot where everything meets.
        ctx.globalAlpha = 0.8;
        ctx.strokeStyle = colours[0];
        ctx.lineWidth = 1;
        ctx.beginPath(); ctx.moveTo(w * 0.5 + 0.5, h * 0.08); ctx.lineTo(w * 0.5 + 0.5, h * 0.52); ctx.stroke();
        ctx.globalAlpha = 1;
        ctx.globalCompositeOperation = 'source-over';
      }

      const ctx = canvas.getContext('2d');
      let frame = 0;
      const fit = () => {
        const d = Math.min(2, devicePixelRatio || 1);
        canvas.width = canvas.clientWidth * d;
        canvas.height = canvas.clientHeight * d;
        ctx.setTransform(d, 0, 0, d, 0, 0);
        paint(ctx, canvas.clientWidth, canvas.clientHeight, 3);
      };
      const tick = (now) => { paint(ctx, canvas.clientWidth, canvas.clientHeight, now / 1000); frame = requestAnimationFrame(tick); };
      new ResizeObserver(fit).observe(canvas);
      new IntersectionObserver(([entry]) => {
        cancelAnimationFrame(frame);
        if (entry.isIntersecting && !still.matches) frame = requestAnimationFrame(tick);
      }).observe(canvas);
    }

    document.querySelectorAll('.streams__canvas').forEach(setup);
  })();
</script>

Similar components

Open plate

Open plate

Record button preview

Record button preview

Cut-letter plate

Cut-letter plate

Captioned film still

Captioned film still

Grain player

Grain player

Road band

Road band

Film player

Film player

Plate

Plate