kitbash Connect agent

Glass Lens Calm

Tech · 7 parts · corporate · science · glass

Deep teal fading to pale mint, with huge glass circles and lenses that overlap, catch a thread of split light and bend the headline they pass over. A light serif speaks, a small sans explains, and one coral pill is the only loud thing: it suits science, utilities, finance and any company that wants to look precise and unhurried.

Get pack Remix

Whole page

Parts

Lens hero

Teal-to-mint fade with two huge glass circles that slide together on load, form a lens with a split-light edge, then drift and lean away from the pointer. Centred serif headline, a chain of joined glass navigation pills with a pill dropdown and one coral button, a round down arrow and a frosted contact chip. On phones the links become a teal sheet with staggered bracket-ruled rows.

Code React For Figma
<section class="hero">
  <svg class="hero__glass" viewBox="0 0 1440 900" preserveAspectRatio="xMidYMid slice" aria-hidden="true" focusable="false">
    <defs>
      <radialGradient id="hero-upper-shade">
        <stop class="hero__stop-clear" offset="0.88" />
        <stop class="hero__stop-shade-soft" offset="0.97" />
        <stop class="hero__stop-shade" offset="1" />
      </radialGradient>
      <radialGradient id="hero-lens-shade">
        <stop class="hero__stop-clear" offset="0.94" />
        <stop class="hero__stop-shade-soft" offset="0.982" />
        <stop class="hero__stop-shade-hard" offset="1" />
      </radialGradient>
      <radialGradient id="hero-lower-glow">
        <stop class="hero__stop-none" offset="0.9" />
        <stop class="hero__stop-glow" offset="1" />
      </radialGradient>
      <linearGradient id="hero-lower-body" x1="0" y1="0" x2="0" y2="1">
        <stop class="hero__stop-body-top" offset="0" />
        <stop class="hero__stop-body-low" offset="0.35" />
      </linearGradient>
      <linearGradient id="hero-lower-rim" gradientUnits="userSpaceOnUse" x1="0" y1="520" x2="0" y2="900">
        <stop class="hero__stop-rim" offset="0" />
        <stop class="hero__stop-rim-low" offset="1" />
      </linearGradient>
      <linearGradient id="hero-split-warm" gradientUnits="userSpaceOnUse" x1="380" y1="0" x2="1060" y2="0">
        <stop class="hero__stop-warm" offset="0" />
        <stop class="hero__stop-rose" offset="0.2" />
        <stop class="hero__stop-none" offset="0.42" />
        <stop class="hero__stop-none" offset="0.74" />
        <stop class="hero__stop-warm" offset="1" />
      </linearGradient>
      <linearGradient id="hero-split-cool" gradientUnits="userSpaceOnUse" x1="380" y1="0" x2="1060" y2="0">
        <stop class="hero__stop-cool" offset="0" />
        <stop class="hero__stop-none" offset="0.3" />
        <stop class="hero__stop-none" offset="0.7" />
        <stop class="hero__stop-cool" offset="0.92" />
        <stop class="hero__stop-rim" offset="1" />
      </linearGradient>
      <clipPath id="hero-inside-lower">
        <circle data-hero-ring="lower" cx="800" cy="1084" r="555" />
      </clipPath>
    </defs>

    <circle class="hero__upper" data-hero-ring="upper" cx="690" cy="119" r="621" />
    <circle class="hero__lower" data-hero-ring="lower" cx="800" cy="1084" r="555" />
    <circle class="hero__lower-glow" data-hero-ring="lower" cx="800" cy="1084" r="555" />
    <g clip-path="url(#hero-inside-lower)">
      <circle class="hero__lens-shade" data-hero-ring="upper" cx="690" cy="119" r="621" />
      <circle class="hero__split hero__split--warm" data-hero-ring="upper" cx="690" cy="119" r="619" />
      <circle class="hero__split hero__split--cool" data-hero-ring="upper" cx="690" cy="119" r="622.4" />
    </g>
    <circle class="hero__lower-rim" data-hero-ring="lower" cx="800" cy="1084" r="555" />
  </svg>

  <header class="hero__bar">
    <a class="hero__brand" href="#" aria-label="Aldermere, home">
      <svg class="hero__mark" viewBox="0 0 46 28" aria-hidden="true" focusable="false">
        <path fill-rule="evenodd" d="M14 0a14 14 0 1 0 0 28 14 14 0 0 0 0-28Zm18 0a14 14 0 1 0 0 28 14 14 0 0 0 0-28Z" />
      </svg>
      <span class="hero__name">Aldermere</span>
    </a>

    <button class="hero__toggle" type="button" aria-expanded="false" aria-label="Menu">
      <span class="hero__toggle-line"></span>
      <span class="hero__toggle-line"></span>
    </button>

    <nav class="hero__nav" aria-label="Main">
      <ul class="hero__links">
        <li class="hero__chain" aria-hidden="true">
          <span class="hero__chain-frost"></span>
          <svg class="hero__chain-edge" focusable="false"><path /></svg>
        </li>
        <li class="hero__item hero__item--group">
          <button class="hero__link hero__link--group" type="button" aria-expanded="false">
            Company
            <svg class="hero__caret" viewBox="0 0 10 6" aria-hidden="true" focusable="false"><path d="M1 1l4 4 4-4" /></svg>
          </button>
          <ul class="hero__sub">
            <li class="hero__item"><a class="hero__sublink" href="#">About us</a></li>
            <li class="hero__item"><a class="hero__sublink" href="#">How we work</a></li>
          </ul>
        </li>
        <li class="hero__item"><a class="hero__link" href="#">Plants</a></li>
        <li class="hero__item"><a class="hero__link" href="#">For cities</a></li>
        <li class="hero__item"><a class="hero__link" href="#">Field notes</a></li>
        <li class="hero__item"><a class="hero__link" href="#">Careers</a></li>
      </ul>
      <a class="hero__cta" href="#">Contact</a>
    </nav>
  </header>

  <div class="hero__copy">
    <h1 class="hero__title">Rain falls once. A city can use it five times.</h1>
    <p class="hero__lead">Water reuse plants, built to run for decades.</p>
  </div>

  <div class="hero__foot">
    <a class="hero__down" href="#" aria-label="Scroll to the next section">
      <svg viewBox="0 0 16 18" aria-hidden="true" focusable="false"><path d="M8 1v15M2 10.5 8 16.5l6-6" /></svg>
    </a>
    <a class="hero__chip" href="#">
      <span class="hero__dots" aria-hidden="true"><i></i><i></i><i></i><i></i></span>
      Talk to an engineer
    </a>
  </div>
</section>

<style>
  .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: clamp(40rem, 75vw, 56.25rem);
    background: var(--night) var(--fade);
    color: var(--paper);
  }

  /* Two huge glass circles. Where the upper one dips into the lower one a lens appears, with a dark inner edge and a thread of split light. */
  .hero__glass {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .hero__upper {
    fill: url(#hero-upper-shade);
    stroke: var(--glass-glow);
    stroke-opacity: 0.35;
    stroke-width: 1.5;
  }
  .hero__lower {
    fill: url(#hero-lower-body);
  }
  .hero__lower-glow {
    fill: url(#hero-lower-glow);
  }
  .hero__lower-rim {
    fill: none;
    stroke: url(#hero-lower-rim);
    stroke-width: 2.5;
  }
  .hero__lens-shade {
    fill: url(#hero-lens-shade);
  }
  .hero__split {
    fill: none;
    stroke-width: 2.6;
  }
  .hero__split--warm {
    stroke: url(#hero-split-warm);
  }
  .hero__split--cool {
    stroke: url(#hero-split-cool);
  }
  .hero__stop-clear {
    stop-color: var(--night);
    stop-opacity: 0;
  }
  .hero__stop-shade-soft {
    stop-color: var(--glass-shade);
    stop-opacity: 0.3;
  }
  .hero__stop-shade {
    stop-color: var(--glass-shade);
  }
  .hero__stop-shade-hard {
    stop-color: var(--night);
    stop-opacity: 0.75;
  }
  .hero__stop-none {
    stop-color: var(--paper);
    stop-opacity: 0;
  }
  .hero__stop-glow {
    stop-color: var(--paper);
    stop-opacity: 0.4;
  }
  .hero__stop-body-top {
    stop-color: var(--ice);
    stop-opacity: 0.16;
  }
  .hero__stop-body-low {
    stop-color: var(--paper);
    stop-opacity: 0.3;
  }
  .hero__stop-rim {
    stop-color: var(--glass-rim);
  }
  .hero__stop-rim-low {
    stop-color: var(--glass-rim);
    stop-opacity: 0.45;
  }
  .hero__stop-warm {
    stop-color: var(--spectrum-warm);
  }
  .hero__stop-rose {
    stop-color: var(--spectrum-rose);
    stop-opacity: 0.7;
  }
  .hero__stop-cool {
    stop-color: var(--spectrum-cool);
  }

  .hero__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    padding: var(--space-m) var(--gutter);
  }
  .hero__brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--control);
    color: inherit;
    text-decoration: none;
  }
  .hero__mark {
    width: 2.875rem;
    height: 1.75rem;
    fill: currentColor;
  }
  .hero__name {
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: var(--tracking-title);
  }

  .hero__nav {
    display: flex;
    align-items: center;
    gap: var(--pill-gap);
  }
  .hero__links,
  .hero__sub {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .hero__links {
    position: relative;
    display: flex;
    gap: var(--pill-gap);
  }
  .hero__item--group {
    position: relative;
  }

  /* Each link is its own milky pill until the script joins them into one chain with a narrow waist between neighbours. */
  .hero__link,
  .hero__sublink {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    min-height: var(--control);
    padding: 0 1.25rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--glass);
    box-shadow: inset -1px 1px 2px var(--line-dark);
    color: inherit;
    font: inherit;
    font-size: var(--text-s);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--time) ease, opacity var(--time) ease;
  }
  .hero__chain {
    position: absolute;
    inset: 0;
    display: none;
    pointer-events: none;
  }
  .hero__chain-frost,
  .hero__chain-edge {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero__chain-frost {
    background: var(--glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .hero__chain-edge {
    overflow: visible;
    fill: none;
    stroke: var(--line-dark);
    stroke-width: 1;
  }
  .hero__links.is-joined .hero__chain {
    display: block;
  }
  .hero__links.is-joined .hero__link {
    background: none;
    box-shadow: none;
  }
  .hero__links:hover .hero__link:not(:hover),
  .hero__links:focus-within .hero__link:not(:focus-visible):not([aria-expanded="true"]) {
    opacity: 0.55;
  }
  .hero__link:focus-visible,
  .hero__sublink:focus-visible,
  .hero__cta:focus-visible,
  .hero__brand:focus-visible,
  .hero__toggle:focus-visible,
  .hero__down:focus-visible,
  .hero__chip:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 3px;
  }
  .hero__caret {
    width: 0.625rem;
    height: 0.375rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--time) ease;
  }
  .hero__item--group.is-open .hero__caret {
    transform: scaleY(-1);
  }

  /* The dropdown is more pills hanging under the first one. They drop in one after another. */
  .hero__sub {
    position: absolute;
    top: calc(100% + var(--pill-gap));
    left: 0;
    z-index: 3;
    display: grid;
    justify-items: start;
    gap: var(--pill-gap);
    visibility: hidden;
    transition: visibility 0s linear var(--time);
  }
  .hero__sublink {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity var(--time-fast) ease, transform var(--time-fast) ease, background-color var(--time) ease;
  }
  .hero__sublink:hover {
    background: var(--line-dark);
  }
  .hero__item--group.is-open .hero__sub {
    visibility: visible;
    transition-delay: 0s;
  }
  .hero__item--group.is-open .hero__sublink {
    opacity: 1;
    transform: none;
  }
  .hero__item--group.is-open .hero__item + .hero__item .hero__sublink {
    transition-delay: var(--stagger);
  }

  .hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control);
    padding: 0 1.375rem;
    border-radius: var(--radius-pill);
    background: var(--coral);
    color: var(--paper);
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--time) ease;
  }
  .hero__cta:hover {
    background: var(--coral-press);
  }

  .hero__toggle {
    position: relative;
    z-index: 2;
    display: none;
    place-content: center;
    gap: 0.3125rem;
    width: 3.75rem;
    height: var(--control);
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--coral);
    color: var(--paper);
    cursor: pointer;
    transition: background-color var(--time) ease, color var(--time) ease;
  }
  .hero__toggle-line {
    display: block;
    width: 1.375rem;
    height: 1.5px;
    background: currentColor;
    transition: transform var(--time) var(--ease-out);
  }

  .hero__copy {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: var(--space-m);
    padding: clamp(1.5rem, 3.4vw, 3.25rem) var(--gutter) 0;
    text-align: center;
  }
  .hero__title {
    max-width: 6.6em;
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--display-xl);
    font-weight: var(--display-weight);
    font-variation-settings: var(--display-cut);
    line-height: 1;
    letter-spacing: var(--tracking-display);
    text-wrap: balance;
  }
  .hero__lead {
    margin: 0;
    color: var(--mist);
    font-size: var(--title-s);
    letter-spacing: var(--tracking-title);
  }

  .hero__foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    padding: var(--space-l) var(--gutter);
  }
  .hero__down,
  .hero__chip {
    border: 1px solid var(--glass-rim);
    background: var(--glass-pale);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--deep);
    text-decoration: none;
  }
  .hero__down {
    grid-column: 2;
    display: grid;
    place-items: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    transition: transform var(--time) ease;
  }
  .hero__down:hover {
    transform: translateY(0.25rem);
  }
  .hero__down svg {
    width: 1rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .hero__chip {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: var(--control);
    padding: 0 1rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    transition: background-color var(--time) ease;
  }
  .hero__chip:hover {
    background: var(--glass-rim);
  }

  /* Four coral dots that take turns going faint. */
  .hero__dots {
    display: grid;
    grid-template-columns: repeat(2, 0.25rem);
    gap: 0.1875rem;
  }
  .hero__dots i {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: var(--coral);
    animation: hero-pulse var(--time-pulse) linear infinite;
  }
  .hero__dots i:nth-child(2) {
    animation-delay: calc(var(--time-pulse) * 0.25);
  }
  .hero__dots i:nth-child(4) {
    animation-delay: calc(var(--time-pulse) * 0.5);
  }
  .hero__dots i:nth-child(3) {
    animation-delay: calc(var(--time-pulse) * 0.75);
  }
  @keyframes hero-pulse {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.25;
    }
  }
  .hero.is-resting .hero__dots i {
    animation-play-state: paused;
  }

  /* Below this width the links leave the bar and become a teal sheet over the hero. */
  @media (max-width: 58rem) {
    .hero__glass {
      left: -80%;
      width: 190%;
    }
    .hero__toggle {
      display: grid;
    }
    .hero__nav {
      position: absolute;
      inset: 0;
      z-index: 1;
      flex-direction: column;
      align-items: stretch;
      justify-content: space-between;
      gap: var(--space-l);
      padding: 6.5rem var(--gutter) var(--space-l);
      overflow-y: auto;
      background: var(--deep);
      opacity: 0;
      visibility: hidden;
      transition: opacity var(--time) ease, visibility 0s linear var(--time);
    }
    .hero.is-menu-open .hero__nav {
      opacity: 1;
      visibility: visible;
      transition-delay: 0s;
    }
    .hero.is-menu-open .hero__toggle {
      background: var(--paper);
      color: var(--deep);
    }
    .hero.is-menu-open .hero__toggle-line:first-child {
      transform: translateY(0.2rem) rotate(45deg);
    }
    .hero.is-menu-open .hero__toggle-line:last-child {
      transform: translateY(-0.2rem) rotate(-45deg);
    }
    .hero__links,
    .hero__sub {
      position: static;
      display: block;
      justify-items: stretch;
      visibility: inherit;
    }
    /* Every row opens with a hairline that turns down at its right end. */
    .hero__links .hero__link,
    .hero__sublink {
      display: flex;
      min-height: 3.75rem;
      padding: 0;
      border-top: 1px solid var(--line-dark);
      border-right: 1px solid var(--line-dark);
      border-radius: 0 var(--radius-tick) 0 0;
      background: none;
      box-shadow: none;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      -webkit-mask: linear-gradient(var(--ink) var(--tick), transparent var(--tick)) border-box, linear-gradient(var(--ink) 0 0) padding-box;
      mask: linear-gradient(var(--ink) var(--tick), transparent var(--tick)) border-box, linear-gradient(var(--ink) 0 0) padding-box;
      font-size: var(--title-m);
      font-weight: 400;
      letter-spacing: var(--tracking-title);
      opacity: 0;
      transform: translateY(1rem);
      transition: opacity var(--time-slow) var(--ease-out), transform var(--time-slow) var(--ease-out);
    }
    .hero.is-menu-open .hero__link,
    .hero.is-menu-open .hero__sublink {
      opacity: 1;
      transform: none;
      transition-delay: calc(var(--stagger) * var(--hero-row, 0));
    }
    .hero__links .hero__chain,
    .hero__links .hero__link--group {
      display: none;
    }
    .hero__cta {
      min-height: 3.5rem;
    }

    .hero__copy {
      justify-items: start;
      padding-top: var(--space-s);
      text-align: left;
    }
    .hero__foot {
      grid-template-columns: 1fr;
      justify-items: start;
      gap: var(--space-l);
    }
    .hero__down,
    .hero__chip {
      grid-column: 1;
      justify-self: start;
    }
    .hero__chip {
      grid-row: 1;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero__dots i {
      animation: none;
    }
    .hero__link,
    .hero__sublink,
    .hero__nav,
    .hero__down,
    .hero__toggle-line {
      transition-duration: 0s;
      transition-delay: 0s;
    }
  }
</style>

<script>
  (() => {
    const INTRO_SECONDS = 1.4;
    const POINTER_EASE = 0.05;
    const reducedMotion = matchMedia("(prefers-reduced-motion: reduce)");

    /* Where a small circle of radius `neck` touches two pill ends whose centres are `span` apart. */
    function waist(leftCentre, rightCentre, radius, neck) {
      const half = (rightCentre - leftCentre) / 2;
      const reach = radius + neck;
      const drop = Math.sqrt(Math.max(reach * reach - half * half, 0));
      const inset = (radius * half) / reach;
      const lift = (radius * drop) / reach;
      return { from: leftCentre + inset, to: rightCentre - inset, top: radius - lift, bottom: radius + lift };
    }

    function chainPath(pills, height, neck) {
      const r = height / 2;
      const arc = (radius, sweep, x, y) => `A${radius},${radius} 0 0 ${sweep} ${x},${y}`;
      let path = `M${pills[0].left + r},0`;
      pills.forEach((pill, index) => {
        const next = pills[index + 1];
        path += `H${pill.right - r}`;
        if (!next) {
          path += arc(r, 1, pill.right - r, height);
          return;
        }
        const join = waist(pill.right - r, next.left + r, r, neck);
        path += arc(r, 1, join.from, join.top) + arc(neck, 0, join.to, join.top) + arc(r, 1, next.left + r, 0);
      });
      [...pills].reverse().forEach((pill, index, reversed) => {
        const previous = reversed[index + 1];
        path += `H${pill.left + r}`;
        if (!previous) {
          path += arc(r, 1, pill.left + r, 0) + "Z";
          return;
        }
        const join = waist(previous.right - r, pill.left + r, r, neck);
        path += arc(r, 1, join.to, join.bottom) + arc(neck, 0, join.from, join.bottom) + arc(r, 1, previous.right - r, height);
      });
      return path;
    }

    function setUpChain(root) {
      const list = root.querySelector(".hero__links");
      const frost = root.querySelector(".hero__chain-frost");
      const edge = root.querySelector(".hero__chain-edge path");
      const links = [...list.querySelectorAll(".hero__link")];

      function draw() {
        const box = list.getBoundingClientRect();
        const pills = links
          .map((link) => link.getBoundingClientRect())
          .filter((rect) => rect.width > 0)
          .map((rect) => ({ left: rect.left - box.left, right: rect.right - box.left }));
        const joined = pills.length > 1 && getComputedStyle(list).display === "flex";
        list.classList.toggle("is-joined", joined);
        if (!joined) return;
        const neck = parseFloat(getComputedStyle(list).getPropertyValue("--neck")) * parseFloat(getComputedStyle(list).fontSize);
        const path = chainPath(pills, box.height, neck);
        frost.style.clipPath = `path("${path}")`;
        edge.setAttribute("d", path);
      }

      new ResizeObserver(draw).observe(list);
      document.fonts.ready.then(draw);
      draw();
    }

    function setUpMenu(root) {
      const toggle = root.querySelector(".hero__toggle");
      const group = root.querySelector(".hero__item--group");
      const groupButton = group.querySelector(".hero__link--group");
      const rows = root.querySelectorAll(".hero__sublink, .hero__link:not(.hero__link--group)");
      rows.forEach((row, index) => row.style.setProperty("--hero-row", index));

      function showMenu(open) {
        root.classList.toggle("is-menu-open", open);
        toggle.setAttribute("aria-expanded", open);
      }
      function showGroup(open) {
        group.classList.toggle("is-open", open);
        groupButton.setAttribute("aria-expanded", open);
      }

      toggle.addEventListener("click", () => showMenu(!root.classList.contains("is-menu-open")));
      groupButton.addEventListener("click", () => showGroup(!group.classList.contains("is-open")));
      group.addEventListener("pointerenter", (event) => event.pointerType === "mouse" && showGroup(true));
      group.addEventListener("pointerleave", (event) => event.pointerType === "mouse" && showGroup(false));
      group.addEventListener("focusout", (event) => group.contains(event.relatedTarget) || showGroup(false));
      root.addEventListener("keydown", (event) => {
        if (event.key !== "Escape") return;
        showGroup(false);
        showMenu(false);
      });
    }

    /* The two circles slide into place, then drift a few pixels and lean away from the pointer. */
    function setUpGlass(root) {
      const rings = [...root.querySelectorAll("[data-hero-ring]")].map((circle) => ({
        circle,
        upper: circle.dataset.heroRing === "upper",
        home: { x: Number(circle.getAttribute("cx")), y: Number(circle.getAttribute("cy")) },
      }));
      const pointer = { x: 0, y: 0 };
      const lean = { x: 0, y: 0 };
      let started = 0;
      let frame = 0;

      function place(now) {
        started ||= now;
        const seconds = (now - started) / 1000;
        const apart = (1 - Math.min(seconds / INTRO_SECONDS, 1)) ** 3;
        lean.x += (pointer.x - lean.x) * POINTER_EASE;
        lean.y += (pointer.y - lean.y) * POINTER_EASE;
        const upper = { x: Math.sin(seconds / 7) * 10 + lean.x * 10, y: Math.cos(seconds / 9) * 8 + lean.y * 8 - apart * 150 };
        const lower = { x: -Math.sin(seconds / 8) * 14 - lean.x * 16, y: Math.sin(seconds / 6) * 10 - lean.y * 12 + apart * 190 };
        rings.forEach(({ circle, upper: isUpper, home }) => {
          const shift = isUpper ? upper : lower;
          circle.setAttribute("cx", home.x + shift.x);
          circle.setAttribute("cy", home.y + shift.y);
        });
        frame = requestAnimationFrame(place);
      }

      root.addEventListener("pointermove", (event) => {
        const box = root.getBoundingClientRect();
        pointer.x = (event.clientX - box.left) / box.width - 0.5;
        pointer.y = (event.clientY - box.top) / box.height - 0.5;
      });
      root.addEventListener("pointerleave", () => Object.assign(pointer, { x: 0, y: 0 }));

      new IntersectionObserver(([entry]) => {
        const moving = entry.isIntersecting && !reducedMotion.matches;
        root.classList.toggle("is-resting", !entry.isIntersecting);
        cancelAnimationFrame(frame);
        if (moving) frame = requestAnimationFrame(place);
      }).observe(root);
    }

    document.querySelectorAll(".hero").forEach((root) => {
      setUpChain(root);
      setUpMenu(root);
      setUpGlass(root);
    });
  })();
</script>

Numbers in water

Dark fade panel with glass droplets rising through it and blurred light down both edges. A ruled list of labels and values sits right of centre, a dotted kicker and serif statement bottom left.

Code React For Figma
<section class="figures">
  <div class="figures__water" aria-hidden="true">
    <span class="figures__beam figures__beam--left"></span>
    <span class="figures__beam figures__beam--right"></span>
    <span class="figures__drop" style="--x: 23%; --d: 3.75rem; --at: 0.64; --pace: 1"></span>
    <span class="figures__drop figures__drop--far" style="--x: 30%; --d: 1.125rem; --at: 0.72; --pace: 1.5"></span>
    <span class="figures__drop" style="--x: 40%; --d: 1.875rem; --at: 0.52; --pace: 1.2"></span>
    <span class="figures__drop" style="--x: 54%; --d: 2rem; --at: 0.5; --pace: 0.9"></span>
    <span class="figures__drop figures__drop--far" style="--x: 66%; --d: 1rem; --at: 0.86; --pace: 1.7"></span>
    <span class="figures__drop" style="--x: 46.5%; --d: 2.25rem; --at: 0.57; --pace: 1.1"></span>
    <span class="figures__drop" style="--x: 61%; --d: 2.375rem; --at: 0.53; --pace: 0.8"></span>
    <span class="figures__drop" style="--x: 24%; --d: 2.125rem; --at: 0.3; --pace: 1.3"></span>
    <span class="figures__drop figures__drop--far" style="--x: 32%; --d: 1.25rem; --at: 0.26; --pace: 1.6"></span>
    <span class="figures__drop" style="--x: 54.5%; --d: 2.75rem; --at: 0.19; --pace: 1"></span>
    <span class="figures__drop" style="--x: 57.5%; --d: 3.25rem; --at: 0.08; --pace: 0.85"></span>
    <span class="figures__drop" style="--x: 14%; --d: 2.375rem; --at: 0.42; --pace: 1.25"></span>
    <span class="figures__drop figures__drop--far" style="--x: 85%; --d: 1.125rem; --at: 0.12; --pace: 1.8"></span>
    <span class="figures__drop" style="--x: 9%; --d: 1.5rem; --at: 0.9; --pace: 1.4"></span>
  </div>

  <div class="figures__inner">
    <dl class="figures__list">
      <div class="figures__row">
        <dt class="figures__label">Plants built and run</dt>
        <dd class="figures__value">14</dd>
      </div>
      <div class="figures__row">
        <dt class="figures__label">Years on the longest contract</dt>
        <dd class="figures__value">22+</dd>
      </div>
      <div class="figures__row">
        <dt class="figures__label">Water we take in</dt>
        <dd class="figures__value">Storm · Grey · Brackish</dd>
      </div>
    </dl>

    <div class="figures__say">
      <p class="figures__kicker">What we do</p>
      <h2 class="figures__statement">We take used water and hand it back cleaner than the river it left.</h2>
    </div>
  </div>
</section>

<style>
  .figures {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    min-height: clamp(38rem, 75vw, 56.25rem);
    background: var(--deep) var(--fade-dark);
    color: var(--paper);
  }

  .figures__water {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
  }

  /* Out-of-focus light running down both edges, as if the panel were the inside of a glass pipe. */
  .figures__beam {
    position: absolute;
    top: -20%;
    width: 16%;
    height: 140%;
    filter: blur(22px);
    opacity: 0.55;
  }
  .figures__beam--left {
    left: -5%;
    transform: rotate(12deg);
    background: linear-gradient(90deg, transparent, var(--glass-glow) 45%, color-mix(in srgb, var(--coral) 45%, transparent) 62%, transparent);
  }
  .figures__beam--right {
    right: -7%;
    transform: rotate(12deg);
    background: linear-gradient(90deg, transparent, var(--glass-glow) 50%, color-mix(in srgb, var(--sea) 60%, transparent) 70%, transparent);
  }

  /* A drop is a full-height lane with the sphere hanging under it, so the climb can be written in percent of the panel. */
  .figures__drop {
    --climb: calc(-100% - var(--d));
    position: absolute;
    top: 0;
    left: var(--x);
    width: var(--d);
    height: 100%;
    transform: translateY(calc(var(--climb) * var(--at)));
    animation: figures-rise calc(var(--time-rise) * var(--pace)) linear infinite;
    animation-delay: calc(var(--time-rise) * var(--pace) * var(--at) * -1);
  }
  .figures__drop::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
      radial-gradient(circle at 34% 32%, var(--glass-rim) 0 7%, transparent 17%),
      radial-gradient(circle at 40% 38%, transparent 30%, var(--glass-shade) 52%, transparent 66%),
      radial-gradient(circle at 50% 50%, transparent 54%, var(--glass-glow) 66%, color-mix(in srgb, var(--paper) 55%, transparent) 70%, transparent 72%),
      radial-gradient(circle at 62% 70%, var(--glass-glow) 0, transparent 34%);
    box-shadow: 0 0.5rem 1rem -0.25rem var(--glass-shade);
    animation: figures-sway calc(var(--time-rise) * 0.3) ease-in-out infinite alternate;
  }
  .figures__drop--far {
    filter: blur(1.5px);
    opacity: 0.7;
  }
  @keyframes figures-rise {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(var(--climb));
    }
  }
  @keyframes figures-sway {
    from {
      transform: translateX(-35%);
    }
    to {
      transform: translateX(35%);
    }
  }
  .figures.is-resting .figures__drop,
  .figures.is-resting .figures__drop::before {
    animation-play-state: paused;
  }

  .figures__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    gap: var(--space-l);
    padding: var(--section-space) var(--gutter) var(--space-xl);
  }

  .figures__list {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
  }
  .figures__row {
    padding: var(--space-m) 0 1.75rem;
    border-top: 1px solid var(--line-dark);
  }
  .figures__label {
    color: var(--on-dark-soft);
  }
  .figures__value {
    margin: var(--space-xs) 0 0;
    font-size: var(--title-m);
    font-weight: 500;
    line-height: 1.24;
    letter-spacing: var(--tracking-title);
  }

  .figures__say {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    max-width: 31rem;
  }
  .figures__kicker {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0 0 var(--space-s);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
  }
  .figures__kicker::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--coral);
  }
  .figures__statement {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--display-m);
    font-weight: var(--display-weight);
    font-variation-settings: var(--display-cut);
    line-height: 1.12;
    letter-spacing: var(--tracking-display);
    text-wrap: balance;
  }

  @media (max-width: 48rem) {
    .figures__inner {
      grid-template-columns: minmax(0, 1fr);
      align-content: space-between;
    }
    .figures__list,
    .figures__say {
      grid-column: 1;
      grid-row: auto;
    }
    .figures__list {
      align-self: start;
    }
    /* Half the drops, a third smaller, so the numbers stay readable. */
    .figures__drop {
      width: calc(var(--d) * 0.66);
    }
    .figures__drop:nth-child(odd) {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .figures__drop,
    .figures__drop::before {
      animation: none;
    }
  }
</style>

<script>
  (() => {
    document.querySelectorAll(".figures").forEach((root) => {
      new IntersectionObserver(([entry]) => root.classList.toggle("is-resting", !entry.isIntersecting)).observe(root);
    });
  })();
</script>

Pillar ring

White section with four tabs that advance on their own: serif heading and copy swap on the left, a hairline ring fills with a teal arc, and a rounded diamond holds a drawing of glass plates that restack for each pillar. A second diamond on wide screens shows the pager dots.

Code React For Figma
<section class="pillars">
  <div class="pillars__text">
    <p class="pillars__kicker">How we hold up</p>
    <div class="pillars__panels">
      <article class="pillars__panel is-active">
        <h2 class="pillars__heading">Sized for the dry year</h2>
        <p class="pillars__copy">Every plant is drawn for the worst summer on record plus a margin, so a drought changes the schedule and nothing else.</p>
      </article>
      <article class="pillars__panel" aria-hidden="true">
        <h2 class="pillars__heading">A clean audit trail</h2>
        <p class="pillars__copy">Each litre is sampled at four points and logged for the regulator. No plant of ours has failed an inspection.</p>
      </article>
      <article class="pillars__panel" aria-hidden="true">
        <h2 class="pillars__heading">Built to stay on</h2>
        <p class="pillars__copy">Twin lines, spare membranes on site and our own crew on call keep supply steady through repairs and storms.</p>
      </article>
      <article class="pillars__panel" aria-hidden="true">
        <h2 class="pillars__heading">One contract, one owner</h2>
        <p class="pillars__copy">We design it, build it and run it, so there is a single name to call for the next thirty years.</p>
      </article>
    </div>
    <a class="pillars__button" href="#">Plan a plant</a>
  </div>

  <div class="pillars__tabs" role="tablist" aria-label="Pillars">
    <button class="pillars__tab is-active" type="button" role="tab" aria-selected="true"><svg class="pillars__tab-arrow" viewBox="0 0 13 10" aria-hidden="true" focusable="false"><path d="M1 5h11M8 1l4 4-4 4" /></svg>Capacity</button>
    <button class="pillars__tab" type="button" role="tab" aria-selected="false"><svg class="pillars__tab-arrow" viewBox="0 0 13 10" aria-hidden="true" focusable="false"><path d="M1 5h11M8 1l4 4-4 4" /></svg>Quality and permits</button>
    <button class="pillars__tab" type="button" role="tab" aria-selected="false"><svg class="pillars__tab-arrow" viewBox="0 0 13 10" aria-hidden="true" focusable="false"><path d="M1 5h11M8 1l4 4-4 4" /></svg>Reliability</button>
    <button class="pillars__tab" type="button" role="tab" aria-selected="false"><svg class="pillars__tab-arrow" viewBox="0 0 13 10" aria-hidden="true" focusable="false"><path d="M1 5h11M8 1l4 4-4 4" /></svg>Ownership</button>
  </div>

  <div class="pillars__figure" aria-hidden="true">
    <svg class="pillars__ring" viewBox="0 0 100 100" focusable="false">
      <circle class="pillars__track" cx="50" cy="50" r="49.5" />
      <circle class="pillars__arc" cx="50" cy="50" r="49.5" pathLength="1" />
    </svg>
    <div class="pillars__diamond">
      <svg class="pillars__art" viewBox="0 0 400 400" focusable="false">
        <defs>
          <linearGradient id="pillars-plate-side" x1="0" y1="0" x2="1" y2="0">
            <stop class="pillars__stop-edge" offset="0" />
            <stop class="pillars__stop-face" offset="0.3" />
            <stop class="pillars__stop-face" offset="0.62" />
            <stop class="pillars__stop-edge" offset="1" />
          </linearGradient>
          <linearGradient id="pillars-plate-top" x1="0" y1="0" x2="1" y2="1">
            <stop class="pillars__stop-face" offset="0.2" />
            <stop class="pillars__stop-tint" offset="1" />
          </linearGradient>
        </defs>
        <g class="pillars__plate" style="--slide: -1; --level: 5">
          <path class="pillars__plate-side" d="M70 0v20a130 40 0 0 0 260 0V0Z" />
          <ellipse class="pillars__plate-top" cx="200" cy="0" rx="130" ry="40" />
        </g>
        <g class="pillars__plate" style="--slide: 0.9; --level: 4">
          <path class="pillars__plate-side" d="M70 0v20a130 40 0 0 0 260 0V0Z" />
          <ellipse class="pillars__plate-top" cx="200" cy="0" rx="130" ry="40" />
        </g>
        <g class="pillars__plate" style="--slide: -0.6; --level: 3">
          <path class="pillars__plate-side" d="M70 0v20a130 40 0 0 0 260 0V0Z" />
          <ellipse class="pillars__plate-top" cx="200" cy="0" rx="130" ry="40" />
        </g>
        <g class="pillars__plate" style="--slide: 0.5; --level: 2">
          <path class="pillars__plate-side" d="M70 0v20a130 40 0 0 0 260 0V0Z" />
          <ellipse class="pillars__plate-top" cx="200" cy="0" rx="130" ry="40" />
        </g>
        <g class="pillars__plate" style="--slide: -0.3; --level: 1">
          <path class="pillars__plate-side" d="M70 0v20a130 40 0 0 0 260 0V0Z" />
          <ellipse class="pillars__plate-top" cx="200" cy="0" rx="130" ry="40" />
        </g>
        <g class="pillars__plate pillars__plate--marked" style="--slide: 0.15; --level: 0">
          <path class="pillars__plate-side" d="M70 0v20a130 40 0 0 0 260 0V0Z" />
          <ellipse class="pillars__plate-top" cx="200" cy="0" rx="130" ry="40" />
          <ellipse class="pillars__plate-mark" cx="200" cy="0" rx="56" ry="17" />
        </g>
      </svg>
    </div>
  </div>

  <div class="pillars__pager" aria-hidden="true">
    <span class="pillars__dot is-active"></span>
    <span class="pillars__dot"></span>
    <span class="pillars__dot"></span>
    <span class="pillars__dot"></span>
  </div>
</section>

<style>
  .pillars {
    display: grid;
    grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr) minmax(0, 21rem);
    grid-template-rows: 1fr auto;
    gap: var(--space-l) clamp(1.5rem, 3.5vw, 3rem);
    align-items: start;
    padding: var(--section-space) var(--gutter);
    background: var(--paper);
  }

  .pillars__text {
    grid-column: 1;
    grid-row: 1;
  }
  .pillars__kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 var(--space-m);
    color: var(--deep);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
  }
  .pillars__kicker::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--coral);
  }

  /* All four panels share one grid cell, so the column keeps the height of the longest and nothing jumps. */
  .pillars__panels {
    display: grid;
  }
  .pillars__panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.75rem);
    transition: opacity var(--time-slow) ease, transform var(--time-slow) var(--ease-out), visibility 0s linear var(--time-slow);
  }
  .pillars__panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .pillars__heading {
    margin: 0 0 var(--space-m);
    color: var(--deep);
    font-family: var(--font-display);
    font-size: var(--display-m);
    font-weight: var(--display-weight);
    font-variation-settings: var(--display-cut);
    line-height: 1.12;
    letter-spacing: var(--tracking-display);
  }
  .pillars__copy {
    margin: 0;
    color: var(--ink-soft);
    text-wrap: pretty;
  }
  .pillars__button {
    display: inline-flex;
    align-items: center;
    min-height: var(--control);
    margin-top: var(--space-l);
    padding: 0 1.375rem;
    border-radius: var(--radius-pill);
    background: var(--coral);
    color: var(--paper);
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--time) ease;
  }
  .pillars__button:hover {
    background: var(--coral-press);
  }
  .pillars__button:focus-visible,
  .pillars__tab:focus-visible {
    outline: 2px solid var(--deep);
    outline-offset: 3px;
  }

  .pillars__tabs {
    grid-column: 1;
    grid-row: 2;
    display: grid;
  }
  .pillars__tab {
    display: flex;
    align-items: center;
    min-height: var(--control);
    padding: 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: none;
    color: var(--ink-soft);
    font: inherit;
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-label);
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--time) ease, border-color var(--time) ease;
  }
  /* The arrow of the chosen tab grows out of nothing and pushes the label right. */
  .pillars__tab-arrow {
    flex: none;
    width: 0;
    height: 0.625rem;
    margin-right: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: width var(--time-slow) var(--ease-out), margin-right var(--time-slow) var(--ease-out);
  }
  .pillars__tab:hover,
  .pillars__tab.is-active {
    color: var(--deep);
  }
  .pillars__tab.is-active {
    border-color: var(--deep);
  }
  .pillars__tab.is-active .pillars__tab-arrow {
    width: 0.8125rem;
    margin-right: 0.5rem;
  }

  /* A hairline ring, an arc that fills while the pillars play through, and a rounded diamond holding the picture. */
  .pillars__figure {
    grid-column: 2;
    grid-row: 1 / -1;
    position: relative;
    justify-self: center;
    width: min(100%, 38.25rem);
    aspect-ratio: 1;
  }
  .pillars__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
    fill: none;
  }
  .pillars__track,
  .pillars__arc {
    stroke-width: 0.2;
  }
  .pillars__track {
    stroke: var(--line);
  }
  .pillars__arc {
    stroke: var(--sea);
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--pillars-filled, 0.25));
    transition: stroke-dashoffset var(--pillars-fill-time, var(--time-slow)) linear;
  }
  .pillars__diamond {
    position: absolute;
    inset: 16%;
    overflow: hidden;
    border-radius: 11%;
    background: var(--mist);
    transform: rotate(45deg);
  }

  /* The picture: glass settling plates. Each pillar slides them into a different stagger. */
  .pillars__art {
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-45deg) scale(1.22);
  }
  .pillars__plate {
    transform: translate(calc(var(--slide) * var(--pillars-fan, 1) * 46px), calc(306px - var(--level) * 44px));
    transition: transform calc(var(--time-slow) * 2.5) var(--ease-out);
  }
  .pillars__plate-side {
    fill: url(#pillars-plate-side);
    stroke: var(--sea);
    stroke-opacity: 0.35;
    stroke-width: 0.75;
  }
  .pillars__plate-top {
    fill: url(#pillars-plate-top);
    stroke: var(--sea);
    stroke-opacity: 0.45;
    stroke-width: 0.75;
  }
  .pillars__plate-mark {
    fill: none;
    stroke: var(--coral);
    stroke-width: 2;
  }
  .pillars__stop-face {
    stop-color: var(--paper);
    stop-opacity: 0.92;
  }
  .pillars__stop-edge {
    stop-color: var(--frost);
    stop-opacity: 0.9;
  }
  .pillars__stop-tint {
    stop-color: var(--mint);
    stop-opacity: 0.85;
  }

  .pillars__pager {
    grid-column: 3;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: min(100%, 15rem);
    aspect-ratio: 1;
  }
  .pillars__pager::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--line);
    border-radius: 14%;
    transform: rotate(45deg);
  }
  .pillars__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--deep);
    opacity: 0.2;
    transform: scale(0.75);
    transition: opacity var(--time) ease, transform var(--time) ease;
  }
  .pillars__dot.is-active {
    opacity: 1;
    transform: none;
  }

  @media (max-width: 72rem) {
    .pillars {
      grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr);
    }
    .pillars__pager {
      display: none;
    }
  }
  @media (max-width: 48rem) {
    .pillars {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: auto;
    }
    .pillars__text,
    .pillars__tabs,
    .pillars__figure {
      grid-column: 1;
      grid-row: auto;
    }
    .pillars__figure {
      order: -1;
      width: min(100%, 24rem);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .pillars__panel,
    .pillars__plate,
    .pillars__arc,
    .pillars__tab-arrow {
      transition-duration: 0s;
    }
  }
</style>

<script>
  (() => {
    const FANS = [1, -0.7, 0.35, -1.3];
    const reducedMotion = matchMedia("(prefers-reduced-motion: reduce)");

    function setUp(root) {
      const tabs = [...root.querySelectorAll(".pillars__tab")];
      const panels = [...root.querySelectorAll(".pillars__panel")];
      const dots = [...root.querySelectorAll(".pillars__dot")];
      const figure = root.querySelector(".pillars__figure");
      const arc = root.querySelector(".pillars__arc");
      const dwell = parseFloat(getComputedStyle(root).getPropertyValue("--time-dwell")) * 1000;
      let current = 0;
      let visible = false;
      let timer = 0;

      const plays = () => visible && !reducedMotion.matches;

      function mark(items, index) {
        items.forEach((item, position) => item.classList.toggle("is-active", position === index));
      }
      function fillArc(from, to, time) {
        figure.style.setProperty("--pillars-fill-time", "0s");
        figure.style.setProperty("--pillars-filled", from);
        arc.getBoundingClientRect();
        figure.style.setProperty("--pillars-fill-time", time);
        figure.style.setProperty("--pillars-filled", to);
      }
      function show(index) {
        current = index;
        mark(tabs, index);
        mark(panels, index);
        mark(dots, index);
        tabs.forEach((tab, position) => tab.setAttribute("aria-selected", position === index));
        panels.forEach((panel, position) => panel.setAttribute("aria-hidden", position !== index));
        figure.style.setProperty("--pillars-fan", FANS[index % FANS.length]);
      }
      function play() {
        clearTimeout(timer);
        const done = (current + 1) / tabs.length;
        if (!plays()) {
          fillArc(done, done, "0s");
          return;
        }
        fillArc(current / tabs.length + 0.02, done, `${dwell}ms`);
        timer = setTimeout(() => {
          show((current + 1) % tabs.length);
          play();
        }, dwell);
      }

      tabs.forEach((tab, index) =>
        tab.addEventListener("click", () => {
          show(index);
          play();
        }),
      );
      new IntersectionObserver(([entry]) => {
        visible = entry.isIntersecting;
        play();
      }).observe(root);
    }

    document.querySelectorAll(".pillars").forEach(setUp);
  })();
</script>

Refracting headline

The signature piece. A glass disc and a glass tile with a lens set into it wander over a centred serif headline and magnify the text beneath them, more at the rim than in the middle. The disc follows the pointer.

Code React For Figma
<section class="lens">
  <div class="lens__scene">
    <h2 class="lens__title">Every stage of the loop, under one roof</h2>
    <p class="lens__sub">Intake, treatment, storage and return.</p>
  </div>

  <div class="lens__glass lens__glass--disc" aria-hidden="true">
    <div class="lens__pane lens__pane--rim"></div>
    <div class="lens__pane lens__pane--core"></div>
    <span class="lens__sheen"></span>
  </div>
  <div class="lens__glass lens__glass--tile" aria-hidden="true">
    <div class="lens__pane lens__pane--core"></div>
    <span class="lens__sheen"></span>
  </div>
</section>

<style>
  .lens {
    position: relative;
    container-type: size;
    overflow: hidden;
    height: clamp(30rem, 75vw, 48rem);
    background: var(--deep);
    color: var(--paper);
  }

  .lens__scene {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: var(--space-m);
    padding: 0 var(--gutter) 12cqh;
    background: var(--fade-dark);
    text-align: center;
  }
  .lens__title {
    max-width: 10em;
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--display-xl);
    font-weight: var(--display-weight);
    font-variation-settings: var(--display-cut);
    line-height: 1;
    letter-spacing: var(--tracking-display);
    text-wrap: balance;
  }
  .lens__sub {
    margin: 0;
    color: var(--mist);
    font-size: var(--title-s);
    letter-spacing: var(--tracking-title);
  }

  /* A glass sits at --x, --y (fractions of the panel). Each pane inside it shows a second copy of the scene,
     pinned to the same spot and enlarged around the centre of the glass, so the headline bends as glass passes over it. */
  .lens__glass {
    --x: var(--home-x);
    --y: var(--home-y);
    --roam: 0.07;
    --half: calc(var(--size) / 2);
    position: absolute;
    top: 0;
    left: 0;
    width: var(--size);
    height: var(--size);
    transform: translate(calc(var(--x) * 100cqw - var(--half)), calc(var(--y) * 100cqh - var(--half)));
    pointer-events: none;
  }
  .lens__glass--disc {
    --size: clamp(15rem, 33cqw, 30rem);
    --home-x: 0.32;
    --home-y: 0.42;
    border-radius: 50%;
  }
  .lens__glass--tile {
    --size: clamp(15.5rem, 34.5cqw, 31rem);
    --home-x: 0.66;
    --home-y: 0.42;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-tile);
    background: var(--glass);
    box-shadow: inset 0 0 2rem var(--glass);
  }

  .lens__pane {
    --reach: calc(var(--half) - var(--inset));
    position: absolute;
    inset: var(--inset);
    overflow: hidden;
    border-radius: 50%;
  }
  .lens__pane--rim {
    --inset: 0px;
    --power: 1.24;
  }
  .lens__pane--core {
    --inset: calc(var(--size) * 0.055);
    --power: 1.1;
  }
  .lens__glass--tile .lens__pane--core {
    --inset: calc(var(--size) * 0.025);
    --power: 1.14;
    box-shadow: 0 0 0 1px var(--glass-glow);
  }
  .lens__pane .lens__scene {
    inset: 0 auto auto 0;
    width: 100cqw;
    height: 100cqh;
    transform-origin: calc(var(--x) * 100cqw) calc(var(--y) * 100cqh);
    transform: translate(calc(var(--reach) - var(--x) * 100cqw), calc(var(--reach) - var(--y) * 100cqh)) scale(var(--power));
  }

  /* Light on the glass: a pale edge, a soft glow inside it, a darker lower lip and one bright arc top left. */
  .lens__sheen {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow:
      inset 0 0 0 1px var(--line-dark),
      inset 0 0 2.5rem var(--glass),
      inset 0 -0.75rem 1.75rem -0.75rem var(--glass-shade);
  }
  .lens__glass--tile .lens__sheen {
    inset: calc(var(--size) * 0.025);
  }
  .lens__sheen::before {
    content: "";
    position: absolute;
    inset: 0.25rem;
    border: 0.1875rem solid var(--glass-glow);
    border-radius: 50%;
    filter: blur(1px);
    -webkit-mask: conic-gradient(from 285deg, transparent, var(--ink) 25deg, var(--ink) 60deg, transparent 95deg);
    mask: conic-gradient(from 285deg, transparent, var(--ink) 25deg, var(--ink) 60deg, transparent 95deg);
  }
  .lens__glass--tile .lens__sheen::before {
    -webkit-mask: conic-gradient(from 100deg, transparent, var(--ink) 30deg, var(--ink) 50deg, transparent 80deg);
    mask: conic-gradient(from 100deg, transparent, var(--ink) 30deg, var(--ink) 50deg, transparent 80deg);
  }

  @media (max-width: 40rem) {
    .lens__glass {
      --roam: 0.03;
    }
    .lens__glass--disc {
      --size: 54cqw;
      --home-x: 0.32;
      --home-y: 0.34;
    }
    .lens__glass--tile {
      --size: 54cqw;
      --home-x: 0.64;
      --home-y: 0.6;
    }
    .lens__scene {
      padding-bottom: 0;
    }
  }
</style>

<script>
  (() => {
    const FOLLOW = 0.07;
    const reducedMotion = matchMedia("(prefers-reduced-motion: reduce)");

    function mirrorScene(root) {
      const scene = root.querySelector(".lens__scene");
      root.querySelectorAll(".lens__pane").forEach((pane) => pane.append(scene.cloneNode(true)));
    }

    function readGlass(element, index) {
      const style = getComputedStyle(element);
      const read = (name) => parseFloat(style.getPropertyValue(name));
      const home = { x: read("--home-x"), y: read("--home-y") };
      return { element, home, at: { ...home }, roam: read("--roam"), phase: index * 2.4, followsPointer: index === 0 };
    }

    function setUpDrift(root) {
      const glasses = [...root.querySelectorAll(".lens__glass")].map(readGlass);
      let pointer = null;
      let frame = 0;

      function driftSpot(glass, seconds) {
        return {
          x: glass.home.x + Math.sin(seconds / 5 + glass.phase) * glass.roam,
          y: glass.home.y + Math.cos(seconds / 3.4 + glass.phase) * glass.roam,
        };
      }
      function move(now) {
        const seconds = now / 1000;
        glasses.forEach((glass) => {
          const target = glass.followsPointer && pointer ? pointer : driftSpot(glass, seconds);
          glass.at.x += (target.x - glass.at.x) * FOLLOW;
          glass.at.y += (target.y - glass.at.y) * FOLLOW;
          glass.element.style.setProperty("--x", glass.at.x.toFixed(4));
          glass.element.style.setProperty("--y", glass.at.y.toFixed(4));
        });
        frame = requestAnimationFrame(move);
      }

      root.addEventListener("pointermove", (event) => {
        const box = root.getBoundingClientRect();
        pointer = { x: (event.clientX - box.left) / box.width, y: (event.clientY - box.top) / box.height };
      });
      root.addEventListener("pointerleave", () => (pointer = null));

      new IntersectionObserver(([entry]) => {
        cancelAnimationFrame(frame);
        if (entry.isIntersecting && !reducedMotion.matches) frame = requestAnimationFrame(move);
      }).observe(root);
    }

    document.querySelectorAll(".lens").forEach((root) => {
      mirrorScene(root);
      setUpDrift(root);
    });
  })();
</script>

Bracket table

Centred serif heading framed by two hairline brackets, then a table with a mist header band and rows that each open with a bracket rule, a dotted name and a four-dot link. Ends with a round button whose inner diamond turns on hover. Rows restack into labelled cards on phones.

Code React For Figma
<section class="ledger">
  <header class="ledger__head">
    <h2 class="ledger__title">Plants in the ground</h2>
    <p class="ledger__sub">Works we designed, built and still run today.</p>
  </header>

  <div class="ledger__table" role="table" aria-label="Plants">
    <div class="ledger__row ledger__row--head" role="row">
      <span class="ledger__cell" role="columnheader">Plant</span>
      <span class="ledger__cell" role="columnheader">Source water</span>
      <span class="ledger__cell" role="columnheader">Process</span>
      <span class="ledger__cell" role="columnheader">Status</span>
      <span class="ledger__cell" role="columnheader">Client</span>
      <span class="ledger__cell" role="columnheader"><span class="ledger__hidden">Details</span></span>
    </div>
    <div class="ledger__row" role="row">
      <span class="ledger__cell ledger__cell--name" role="cell">Harrow Fen</span>
      <span class="ledger__cell" role="cell" data-label="Source water">Municipal grey water</span>
      <span class="ledger__cell" role="cell" data-label="Process">Membrane and UV</span>
      <span class="ledger__cell" role="cell" data-label="Status">In service</span>
      <span class="ledger__cell" role="cell" data-label="Client">Brackwell City Works</span>
      <span class="ledger__cell ledger__cell--more" role="cell"><a class="ledger__more" href="#"><span class="ledger__dots" aria-hidden="true"><i></i><i></i><i></i><i></i></span>Read more</a></span>
    </div>
    <div class="ledger__row" role="row">
      <span class="ledger__cell ledger__cell--name" role="cell">Saltmarsh Quay</span>
      <span class="ledger__cell" role="cell" data-label="Source water">Brackish estuary</span>
      <span class="ledger__cell" role="cell" data-label="Process">Reverse osmosis</span>
      <span class="ledger__cell" role="cell" data-label="Status">In service</span>
      <span class="ledger__cell" role="cell" data-label="Client">Port Tavish Water Board</span>
      <span class="ledger__cell ledger__cell--more" role="cell"><a class="ledger__more" href="#"><span class="ledger__dots" aria-hidden="true"><i></i><i></i><i></i><i></i></span>Read more</a></span>
    </div>
    <div class="ledger__row" role="row">
      <span class="ledger__cell ledger__cell--name" role="cell">Kettle Rise</span>
      <span class="ledger__cell" role="cell" data-label="Source water">Storm run-off</span>
      <span class="ledger__cell" role="cell" data-label="Process">Reed beds and ozone</span>
      <span class="ledger__cell" role="cell" data-label="Status">Commissioning</span>
      <span class="ledger__cell" role="cell" data-label="Client">Three Valleys Council</span>
      <span class="ledger__cell ledger__cell--more" role="cell"><a class="ledger__more" href="#"><span class="ledger__dots" aria-hidden="true"><i></i><i></i><i></i><i></i></span>Read more</a></span>
    </div>
    <div class="ledger__row" role="row">
      <span class="ledger__cell ledger__cell--name" role="cell">Old Tannery</span>
      <span class="ledger__cell" role="cell" data-label="Source water">Process effluent</span>
      <span class="ledger__cell" role="cell" data-label="Process">Bioreactor and carbon</span>
      <span class="ledger__cell" role="cell" data-label="Status">In design</span>
      <span class="ledger__cell" role="cell" data-label="Client">Lindqvist Paper</span>
      <span class="ledger__cell ledger__cell--more" role="cell"><a class="ledger__more" href="#"><span class="ledger__dots" aria-hidden="true"><i></i><i></i><i></i><i></i></span>Read more</a></span>
    </div>
  </div>

  <a class="ledger__all" href="#">
    <span class="ledger__all-label">All plants</span>
    <svg class="ledger__all-arrow" viewBox="0 0 18 14" aria-hidden="true" focusable="false"><path d="M1 7h15.5M10.5 1l6 6-6 6" /></svg>
  </a>
</section>

<style>
  .ledger {
    padding: var(--space-xl) var(--gutter) var(--section-space);
    background: var(--paper) var(--fade-pale);
  }

  /* The heading sits between two brackets: a hairline with short turned-down ends and a tick in the middle. */
  .ledger__head {
    display: grid;
    justify-items: center;
    gap: var(--space-m);
    padding: 0 0 var(--space-xl);
    text-align: center;
  }
  .ledger__head::before,
  .ledger__head::after {
    content: "";
    justify-self: stretch;
    height: var(--tick);
    border: 1px solid var(--line);
    background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat;
  }
  .ledger__head::before {
    margin-bottom: clamp(2rem, 4.5vw, 4.5rem);
    border-bottom: 0;
    border-radius: var(--radius-tick) var(--radius-tick) 0 0;
  }
  .ledger__head::after {
    margin-top: clamp(2rem, 4.5vw, 4.5rem);
    border-top: 0;
    border-radius: 0 0 var(--radius-tick) var(--radius-tick);
  }
  .ledger__title {
    margin: 0;
    color: var(--deep);
    font-family: var(--font-display);
    font-size: var(--display-xl);
    font-weight: var(--display-weight);
    font-variation-settings: var(--display-cut);
    line-height: 1;
    letter-spacing: var(--tracking-display);
    text-wrap: balance;
  }
  .ledger__sub {
    margin: 0;
    color: var(--ink-soft);
    font-size: var(--title-s);
    letter-spacing: var(--tracking-title);
  }

  .ledger__row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1.4fr 1.2fr 1.5fr auto;
    align-items: center;
    column-gap: var(--space-m);
    min-height: 5rem;
    padding: var(--space-s) 1.25rem;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--radius-tick) var(--radius-tick) 0 0;
    color: var(--ink-soft);
    /* Only the top of the border is kept: the sides fade out after the corner. */
    -webkit-mask: linear-gradient(var(--ink) var(--tick), transparent var(--tick)) border-box, linear-gradient(var(--ink) 0 0) padding-box;
    mask: linear-gradient(var(--ink) var(--tick), transparent var(--tick)) border-box, linear-gradient(var(--ink) 0 0) padding-box;
    transition: background-color var(--time) ease;
  }
  .ledger__row + .ledger__row {
    margin-top: 0.625rem;
  }
  .ledger__row:not(.ledger__row--head):hover {
    background: color-mix(in srgb, var(--mist) 55%, transparent);
  }
  .ledger__row--head {
    min-height: 2.5rem;
    padding-block: 0;
    border: 0;
    border-radius: 0.5rem;
    background: var(--mist);
    color: var(--deep);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    -webkit-mask: none;
    mask: none;
  }
  .ledger__table::after {
    content: "";
    display: block;
    height: var(--tick);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius-tick) var(--radius-tick);
  }
  .ledger__hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .ledger__cell--name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--deep);
    font-weight: 500;
  }
  .ledger__cell--name::before {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
  }
  .ledger__row--head .ledger__cell:last-child {
    width: 6.5rem;
  }
  .ledger__cell--more {
    width: 6.5rem;
    text-align: right;
  }
  .ledger__more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--control);
    color: var(--deep);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
  }
  .ledger__dots {
    display: grid;
    grid-template-columns: repeat(2, 0.25rem);
    gap: 0.1875rem;
  }
  .ledger__dots i {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: var(--coral);
    opacity: 0.35;
    transition: opacity var(--time) ease;
  }
  .ledger__dots i:nth-child(2),
  .ledger__dots i:nth-child(4) {
    opacity: 1;
  }
  /* On hover the faint and the solid dots trade places. */
  .ledger__more:hover .ledger__dots i,
  .ledger__more:focus-visible .ledger__dots i {
    opacity: 1;
  }
  .ledger__more:hover .ledger__dots i:nth-child(2),
  .ledger__more:hover .ledger__dots i:nth-child(4),
  .ledger__more:focus-visible .ledger__dots i:nth-child(2),
  .ledger__more:focus-visible .ledger__dots i:nth-child(4) {
    opacity: 0.35;
  }
  .ledger__more:focus-visible,
  .ledger__all:focus-visible {
    outline: 2px solid var(--deep);
    outline-offset: 3px;
  }

  /* Round "all" button: a hairline circle with a rounded diamond inside that turns a quarter on hover. */
  .ledger__all {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 12.5rem;
    aspect-ratio: 1;
    margin: var(--space-xl) auto 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--deep);
    font-size: var(--text-l);
    font-weight: 500;
    text-decoration: none;
    transition: border-color var(--time) ease;
  }
  .ledger__all::before {
    content: "";
    position: absolute;
    inset: 17.5%;
    border: 1px solid var(--line);
    border-radius: 14%;
    transform: rotate(45deg);
    transition: transform var(--time-slow) var(--ease-out), background-color var(--time) ease;
  }
  .ledger__all:hover {
    border-color: var(--deep);
  }
  .ledger__all:hover::before {
    background: var(--mist);
    transform: rotate(135deg);
  }
  .ledger__all-label,
  .ledger__all-arrow {
    position: relative;
  }
  .ledger__all-arrow {
    width: 1.125rem;
    height: 0.875rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--time) ease;
  }
  .ledger__all:hover .ledger__all-arrow {
    transform: translateX(0.25rem);
  }

  @media (max-width: 62rem) {
    .ledger__row {
      grid-template-columns: 1fr 1.3fr 1.3fr 1.1fr auto;
    }
    .ledger__cell:nth-child(5) {
      display: none;
    }
  }
  /* On phones a row turns into a short card: the name, then label and value pairs. */
  @media (max-width: 44rem) {
    .ledger__row--head {
      display: none;
    }
    .ledger__row {
      grid-template-columns: 1fr 1fr;
      align-items: start;
      row-gap: var(--space-s);
      padding: var(--space-m) 0 var(--space-s);
      border-right: 0;
      border-left: 0;
      border-radius: 0;
      -webkit-mask: none;
      mask: none;
    }
    .ledger__row:not(.ledger__row--head):hover {
      background: none;
    }
    .ledger__cell:nth-child(5) {
      display: block;
    }
    .ledger__cell--name {
      grid-column: 1 / -1;
      font-size: var(--title-s);
    }
    .ledger__cell[data-label]::before {
      content: attr(data-label);
      display: block;
      margin-bottom: 0.125rem;
      color: var(--deep);
      font-size: var(--text-xs);
      letter-spacing: var(--tracking-label);
      text-transform: uppercase;
    }
    .ledger__cell--more {
      grid-column: 1 / -1;
      width: auto;
      text-align: left;
    }
    .ledger__table::after {
      height: 0;
      border-right: 0;
      border-left: 0;
      border-radius: 0;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .ledger__row,
    .ledger__dots i,
    .ledger__all,
    .ledger__all::before,
    .ledger__all-arrow {
      transition-duration: 0s;
    }
  }
</style>

News cards

Snapping horizontal rail of tall cards in three skins (white, dark fade, bright teal). Each has a dotted date, a sans title and, cut off by the bottom edge, a round gradient picture next to a rounded tile holding a round More link.

Code React For Figma
<section class="dispatch">
  <h2 class="dispatch__title">Field notes</h2>

  <div class="dispatch__rail" tabindex="0" role="group" aria-label="Field notes, scroll sideways for more">
    <article class="dispatch__card dispatch__card--paper">
      <p class="dispatch__date"><span>14</span><span>09</span><span>2026</span></p>
      <h3 class="dispatch__heading">Kettle Rise passes its first full storm season</h3>
      <div class="dispatch__base">
        <span class="dispatch__picture dispatch__picture--ripple" aria-hidden="true"></span>
        <a class="dispatch__more" href="#" aria-label="More on Kettle Rise passes its first full storm season">
          <span class="dispatch__more-face">More
            <svg viewBox="0 0 18 14" aria-hidden="true" focusable="false"><path d="M1 7h15.5M10.5 1l6 6-6 6" /></svg>
          </span>
        </a>
      </div>
    </article>

    <article class="dispatch__card dispatch__card--dusk">
      <p class="dispatch__date"><span>02</span><span>08</span><span>2026</span></p>
      <h3 class="dispatch__heading">Port Tavish signs a thirty year operating contract</h3>
      <div class="dispatch__base">
        <span class="dispatch__picture dispatch__picture--lens" aria-hidden="true"></span>
        <a class="dispatch__more" href="#" aria-label="More on Port Tavish signs a thirty year operating contract">
          <span class="dispatch__more-face">More
            <svg viewBox="0 0 18 14" aria-hidden="true" focusable="false"><path d="M1 7h15.5M10.5 1l6 6-6 6" /></svg>
          </span>
        </a>
      </div>
    </article>

    <article class="dispatch__card dispatch__card--sea">
      <p class="dispatch__date"><span>21</span><span>06</span><span>2026</span></p>
      <h3 class="dispatch__heading">What a reed bed does that a filter cannot</h3>
      <div class="dispatch__base">
        <span class="dispatch__picture dispatch__picture--drop" aria-hidden="true"></span>
        <a class="dispatch__more" href="#" aria-label="More on What a reed bed does that a filter cannot">
          <span class="dispatch__more-face">More
            <svg viewBox="0 0 18 14" aria-hidden="true" focusable="false"><path d="M1 7h15.5M10.5 1l6 6-6 6" /></svg>
          </span>
        </a>
      </div>
    </article>
  </div>
</section>

<style>
  .dispatch {
    padding: var(--section-space) 0;
    background: var(--paper);
  }
  .dispatch__title {
    margin: 0 0 var(--space-xl);
    padding: 0 var(--gutter);
    color: var(--deep);
    font-family: var(--font-display);
    font-size: var(--display-xl);
    font-weight: var(--display-weight);
    font-variation-settings: var(--display-cut);
    line-height: 1;
    letter-spacing: var(--tracking-display);
    text-align: center;
  }

  .dispatch__rail {
    display: flex;
    gap: var(--gap);
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .dispatch__rail::-webkit-scrollbar {
    display: none;
  }
  .dispatch__rail:focus-visible {
    outline: 2px solid var(--deep);
    outline-offset: -2px;
  }

  /* One card, three skins: white with a hairline, the dark fade, flat bright teal. */
  .dispatch__card {
    --card-ink: var(--paper);
    --card-line: var(--line-dark);
    --card-tile: var(--glass);
    --card-face: transparent;
    flex: none;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: clamp(17.5rem, 41.8vw, 37.625rem);
    min-height: clamp(26rem, 46vw, 35rem);
    padding: var(--space-l);
    border: 1px solid transparent;
    border-radius: var(--radius-card);
    color: var(--card-ink);
    scroll-snap-align: start;
  }
  .dispatch__card--paper {
    --card-ink: var(--deep);
    --card-line: var(--line);
    --card-tile: var(--mint);
    --card-face: var(--paper);
    border-color: var(--line);
    background: var(--paper);
  }
  .dispatch__card--dusk {
    background: var(--fade-dark);
  }
  .dispatch__card--sea {
    --card-tile: var(--line-dark);
    background: var(--sea);
  }

  .dispatch__date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 var(--space-m);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-label);
  }
  .dispatch__date span:first-child::after {
    content: "";
    display: inline-block;
    width: 0.25rem;
    height: 0.25rem;
    margin-left: 0.75rem;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
  }
  .dispatch__heading {
    max-width: 14em;
    margin: 0;
    font-size: var(--title-l);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: var(--tracking-title);
    text-wrap: balance;
  }

  .dispatch__base {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 11.5rem));
    gap: var(--space-s);
    margin-bottom: calc(var(--space-l) * -1);
    padding-top: var(--space-l);
    overflow: hidden;
  }
  .dispatch__picture,
  .dispatch__more {
    aspect-ratio: 1;
    margin-bottom: -6%;
  }

  /* Pictures are small glass studies drawn with gradients. */
  .dispatch__picture {
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--card-line);
  }
  .dispatch__picture--ripple {
    background:
      radial-gradient(circle at 62% 38%, var(--paper) 0 4%, transparent 5%),
      repeating-radial-gradient(circle at 62% 38%, transparent 0 9%, color-mix(in srgb, var(--sea) 55%, transparent) 9.5% 10.5%, transparent 11% 19%),
      linear-gradient(160deg, var(--mint), var(--frost) 60%, var(--haze));
  }
  .dispatch__picture--lens {
    background:
      radial-gradient(circle at 50% 50%, transparent 60%, var(--glass-glow) 70%, transparent 71%),
      radial-gradient(circle at 42% 40%, var(--glass) 0, transparent 60%),
      var(--glass);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .dispatch__picture--drop {
    background:
      radial-gradient(circle at 44% 42%, var(--paper) 0 4%, transparent 9%),
      radial-gradient(circle at 50% 50%, var(--mint) 0 27%, transparent 27.5%),
      radial-gradient(circle at 50% 50%, transparent 0 40%, var(--sea) 40.5% 41.5%, transparent 42%),
      var(--paper);
  }

  /* The link is a rounded tile with a round face. The face shrinks a little on hover and the arrow steps right. */
  .dispatch__more {
    display: grid;
    padding: 2.5%;
    border-radius: var(--radius-tile);
    background: var(--card-tile);
    box-shadow: inset 0 0 0 1px var(--card-line);
    color: inherit;
    font-size: var(--text-l);
    font-weight: 500;
    text-decoration: none;
  }
  .dispatch__more-face {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    border-radius: 50%;
    background: var(--card-face);
    box-shadow: inset 0 0 0 1px var(--card-line);
    transition: transform var(--time-slow) var(--ease-out);
  }
  .dispatch__more svg {
    width: 1.125rem;
    height: 0.875rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--time) ease;
  }
  .dispatch__more:hover .dispatch__more-face,
  .dispatch__more:focus-visible .dispatch__more-face {
    transform: scale(0.92);
  }
  .dispatch__more:hover svg,
  .dispatch__more:focus-visible svg {
    transform: translateX(0.25rem);
  }
  .dispatch__more:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
  }

  @media (max-width: 40rem) {
    .dispatch__card {
      width: 82vw;
      padding: var(--space-m);
    }
    .dispatch__base {
      margin-bottom: calc(var(--space-m) * -1);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .dispatch__more-face,
    .dispatch__more svg {
      transition-duration: 0s;
    }
  }
</style>

Style

  • --night #011c1d
  • --deep #005250
  • --haze #5d979e
  • --frost #b9d3da
  • --ice #e7f1f5
  • --sea #17a8a4
  • --mint #c7ecea
  • --mist #e5eeee
  • --paper #ffffff
  • --ink #161618
  • --ink-soft rgba(22, 22, 24, 0.5)
  • --coral #f45d5b
  • --coral-press #e04846
  • --on-dark-soft rgba(230, 240, 240, 0.62)
  • --line rgba(0, 0, 0, 0.12)
  • --line-dark rgba(255, 255, 255, 0.2)
  • --glass rgba(230, 240, 240, 0.12)
  • --glass-pale rgba(255, 255, 255, 0.42)
  • --glass-rim rgba(255, 255, 255, 0.85)
  • --glass-glow rgba(190, 240, 236, 0.5)
  • --glass-shade rgba(0, 38, 40, 0.6)
  • --spectrum-warm #ffa94d
  • --spectrum-rose #ff6b8f
  • --spectrum-cool #45b9ff

Type

  • Newsreader 340, drawn at its small optical size so big type keeps low contrast, tracked -0.045em for headlines and statements, stands in for a licensed light, wide, low-contrast serif set large and tight
  • DM Sans 400 and 500 for navigation, labels, body, card titles, numbers, stands in for a licensed soft geometric sans

Motion

  • On load the two hero circles slide towards each other over 1.4s on a cubic ease-out, then drift a few pixels on slow sine paths and lean away from the pointer.
  • Two glass shapes wander over the lens panel headline; one follows the pointer with a 7% per frame lag, and the text under each is redrawn enlarged, more at the rim than in the middle.
  • Droplets climb the numbers panel in 21 to 47 seconds, each at its own pace with a slow sideways sway, and loop.
  • Pillars change every 6s: the panel fades and rises 12px over 0.4s, the tab arrow grows out of nothing, the ring arc fills linearly and the glass plates slide into a new stagger over 1s.
  • Navigation hover dims every other link to 55% over 0.3s; the dropdown is two more pills that fade and drop 8px in 0.25s, 50ms apart.
  • On phones the menu is a teal sheet over the hero whose rows rise 16px and fade in 50ms apart on cubic-bezier(0.25, 1, 0.5, 1).
  • Four coral marker dots pulse in turn on a 1.4s loop; on table links they trade faint and solid on hover.
  • Round buttons react inside themselves: the diamond turns a quarter, the round face shrinks to 92%, the arrow steps 4px right.
  • A lit arc swings slowly round the edge of the footer glass. Everything timed stops off screen and under reduced motion.

Rules

  • Colour is one teal family from near black to pale mint, plus white. Coral appears only on the main button and on marker dots.
  • Dark sections are vertical fades, never flat: night at the top, grey teal at the bottom. The hero runs all the way down to near white.
  • Glass is drawn, not photographed: a hairline pale edge, a soft inner glow, a dark lower lip, one bright arc, and a warm-to-cool thread where two shapes cross.
  • Three shapes repeat everywhere: the circle, the rounded square with a circle set into it, and the rounded diamond inside a hairline ring.
  • Headlines are a light serif in sentence case, tracked very tight with line height 1 to 1.12, centred when they open a section and bottom left when they caption one.
  • Everything else is a small sans: 14 to 18px, weight 400 or 500, with second-level copy at about half strength.
  • Labels are 12px uppercase with a coral or teal dot in front.
  • Controls are pills 44px high. Navigation pills are milky glass joined by a narrow waist into one chain; the coral pill stands apart.
  • Rules are hairlines that turn down at the ends with a 10px corner, like a bracket. Rows, frames and menu lines all use it.
  • Layout hugs a 32px gutter (20px on phones) with no centred container; wide empty areas are left for the glass.
  • Cards have 16px corners and come in three skins: white with a hairline, the dark fade, and flat bright teal.
base.css
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500&family=Newsreader:opsz,wght@6..72,300..400&display=swap");

:root {
  --night: #011c1d; /* darkest teal, top of every dark fade */
  --deep: #005250; /* main teal: dark sections, headings and links on light */
  --haze: #5d979e; /* grey teal in the middle of the fades */
  --frost: #b9d3da; /* pale blue grey near the bottom of the hero fade */
  --ice: #e7f1f5; /* lightest end of the hero fade */
  --sea: #17a8a4; /* bright teal: progress arc, badges, the bright card */
  --mint: #c7ecea; /* light mint tiles */
  --mist: #e5eeee; /* pale grey green panels, table head, diamond */
  --paper: #ffffff; /* page background, cards, text on dark */
  --ink: #161618; /* near black, base of body text */
  --ink-soft: rgba(22, 22, 24, 0.5); /* body copy and table cells on light */
  --coral: #f45d5b; /* the one loud colour: main button, marker dots */
  --coral-press: #e04846; /* coral button on hover */
  --on-dark-soft: rgba(230, 240, 240, 0.62); /* second-level text on teal */
  --line: rgba(0, 0, 0, 0.12); /* hairlines on light */
  --line-dark: rgba(255, 255, 255, 0.2); /* hairlines on teal */
  --glass: rgba(230, 240, 240, 0.12); /* milky fill of pills and glass tiles on teal */
  --glass-pale: rgba(255, 255, 255, 0.42); /* milky fill of chips on the pale end of a fade */
  --glass-rim: rgba(255, 255, 255, 0.85); /* lit edge of a glass shape */
  --glass-glow: rgba(190, 240, 236, 0.5); /* soft light just inside a glass edge */
  --glass-shade: rgba(0, 38, 40, 0.6); /* dark inner edge where glass turns away */
  --spectrum-warm: #ffa94d; /* warm side of the split-light edge */
  --spectrum-rose: #ff6b8f; /* middle of the split-light edge */
  --spectrum-cool: #45b9ff; /* cool side of the split-light edge */

  --fade: linear-gradient(180deg, var(--night) 0%, #003f3e 27%, var(--haze) 54%, var(--frost) 76%, var(--ice) 100%); /* hero: deep teal down to pale mint */
  --fade-dark: linear-gradient(180deg, var(--night) 0%, var(--deep) 34%, #3b7a80 100%); /* dark panels: night down to grey teal */
  --fade-pale: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%); /* light sections: mist down to white */

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif; /* light serif for headlines */
  --font-text: "DM Sans", "Helvetica Neue", Arial, sans-serif; /* sans for everything else */

  --display-xl: clamp(2.75rem, 5.55vw, 5rem); /* hero and lens headline */
  --display-l: clamp(2.5rem, 1.4rem + 3.4vw, 3.75rem); /* centred section headings */
  --display-m: clamp(1.875rem, 1.5rem + 1.3vw, 2.5rem); /* statements, side headings */
  --title-l: clamp(1.5rem, 1.1rem + 1.3vw, 2rem); /* card titles */
  --title-m: 1.5rem; /* values in number lists, footer links */
  --title-s: 1.25rem; /* sublines under a headline */
  --text-l: 1.125rem; /* lead paragraphs */
  --text-m: 1rem; /* body, buttons, table cells */
  --text-s: 0.875rem; /* navigation */
  --text-xs: 0.75rem; /* uppercase labels and dates */
  --display-weight: 340; /* weight of the serif: light, but not hairline */
  --display-cut: "opsz" 20; /* optical size the serif is drawn at: a text cut, so big type keeps low contrast */
  --tracking-display: -0.045em; /* serif headlines */
  --tracking-title: -0.03em; /* sans titles */
  --tracking-text: -0.02em; /* running text */
  --tracking-label: 0.02em; /* uppercase labels */

  --gutter: clamp(1.25rem, 2.25vw, 2rem); /* side padding of the page */
  --gap: clamp(0.75rem, 1.4vw, 1.25rem); /* gap between cards and columns */
  --space-xs: 0.5rem; /* between an icon and its label */
  --space-s: 1rem; /* between lines of one block */
  --space-m: 1.5rem; /* between a heading and its copy */
  --space-l: 2rem; /* between blocks, card padding */
  --space-xl: 3rem; /* between a heading group and its content */
  --section-space: clamp(3.5rem, 2rem + 5vw, 7.5rem); /* top and bottom padding of a section */
  --control: 2.75rem; /* height of every pill, button and tab row */
  --neck: 0.5rem; /* radius of the waist that joins two navigation pills */
  --pill-gap: 0.625rem; /* space between joined pills */
  --radius-pill: 999px; /* pills and buttons */
  --radius-card: 1rem; /* cards and the table head */
  --radius-tile: 9%; /* rounded square of a glass tile */
  --radius-tick: 0.625rem; /* turned-down corner on a ruled line */
  --tick: 1.25rem; /* how far a ruled line runs down its corner */

  --ease-out: cubic-bezier(0.25, 1, 0.5, 1); /* things that arrive: panels, menu rows, dropdown pills */
  --time-fast: 0.25s; /* dropdown pills, small shifts */
  --time: 0.3s; /* colour and opacity on hover */
  --time-slow: 0.4s; /* panels swapping, menu rows */
  --time-pulse: 1.4s; /* one beat of the four marker dots */
  --time-dwell: 6s; /* how long one pillar stays before the next */
  --time-rise: 26s; /* a droplet crossing the panel */
  --stagger: 0.05s; /* wait between items that arrive one after another */
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-m);
  font-weight: 400;
  line-height: 1.44;
  letter-spacing: var(--tracking-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

For your agent

Use the kitbash MCP server at https://kitbash.me/mcp. Call get_pack("glass-lens-calm"), then get_component for the parts you need, and build my site in that style: keep its tokens and rules, replace the placeholder copy with mine.
How to connect