kitbash Sign in Connect agent

Lid-Off Daydream

Playful · 7 parts · portfolio · illustration · cartoon

A designer's portfolio told as a cartoon: every block is one full scene inside a thick black rounded frame, a flat dusty field with print grain, birds and twinkling stars, a drawn character with a fishbowl for a helmet, a thin display name inside a working design-tool selection box and giant chunky caps knocked off their baseline. Suits a personal portfolio, an illustrator's site or any brand that wants to feel like a daydream rather than a CV.

Get pack Remix

Whole page

Parts

Top bar with sound chip

Brand in caps, an open-to-work pill with a pulsing green dot, a sound toggle with an equaliser and a floating 'click for sound' bubble, and three nav words that underline on hover. Sound on plays a soft bubble blip on nav hover. On phones it wraps into two rows.

Code
<header class="topbar">
  <div class="topbar__stage">
    <span class="topbar__grain" aria-hidden="true"></span>
    <div class="topbar__left">
      <a class="topbar__brand" href="#">Juno Pfeffer</a>
      <span class="topbar__status">
        <span class="topbar__dot" aria-hidden="true"></span>
        <span class="topbar__status-long">Open to roles and freelance</span>
        <span class="topbar__status-short">Open to work</span>
      </span>
    </div>
    <nav class="topbar__nav" aria-label="Main">
      <span class="topbar__sound-wrap">
        <button class="topbar__sound" type="button" aria-pressed="false" aria-label="Sound off. Turn sound on">
          <span class="topbar__bars" aria-hidden="true">
            <i class="topbar__bar"></i><i class="topbar__bar"></i><i class="topbar__bar"></i><i class="topbar__bar"></i>
          </span>
          <span class="topbar__sound-label" aria-hidden="true">Sound off</span>
        </button>
        <span class="topbar__hint" aria-hidden="true">
          <svg class="topbar__note" viewBox="0 0 16 16" width="14" height="14"><path d="M6 12.5a2.2 2.2 0 1 1-1.4-2V2.8l8-1.8v9.4a2.2 2.2 0 1 1-1.4-2V4.1L6 5.3z" fill="currentColor"/></svg>
          <span class="topbar__hint-fine">Click for sound</span>
          <span class="topbar__hint-coarse">Tap for sound</span>
        </span>
      </span>
      <a class="topbar__link" href="#" aria-current="page">Work</a>
      <a class="topbar__link" href="#">About</a>
      <a class="topbar__link" href="#">Contact</a>
    </nav>
  </div>
</header>

<style>
  .topbar {
    padding: var(--bezel) var(--bezel) 0;
    background: var(--frame);
  }
  .topbar__stage {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s) var(--gap);
    min-height: 140px;
    padding: 20px var(--pad) 56px;
    overflow: hidden;
    border-radius: var(--r-stage);
    background: var(--field-purple);
    color: var(--fg);
    isolation: isolate;
  }
  .topbar__grain {
    position: absolute;
    inset: -40%;
    z-index: 4;
    background: var(--grain);
    opacity: var(--grain-strength);
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: topbar-film var(--loop-film) steps(1) infinite;
  }
  .topbar__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-s) 13px;
  }
  .topbar__brand,
  .topbar__link,
  .topbar__sound {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font: var(--weight-ui) var(--text-ui) / 1 var(--font-ui);
    letter-spacing: var(--track-ui);
    text-transform: uppercase;
    text-decoration: none;
  }
  .topbar__brand {
    font-weight: var(--weight-brand);
  }
  .topbar__status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-s);
    height: 32px;
    padding: 0 13px 0 11px;
    border: 1px solid var(--chip-line);
    border-radius: var(--r-pill);
    background: var(--chip-bg);
    font-size: var(--text-pill);
    font-weight: 550;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .topbar__status-short {
    display: none;
  }
  .topbar__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--go);
    animation: topbar-pulse var(--loop-pulse) ease infinite;
  }
  .topbar__nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .topbar__link {
    position: relative;
    justify-content: center;
    min-width: 44px;
  }
  .topbar__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 9px;
    height: var(--line);
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-quick) var(--ease-out);
  }
  .topbar__link:hover::after,
  .topbar__link:focus-visible::after,
  .topbar__link[aria-current="page"]::after {
    transform: scaleX(1);
  }
  .topbar__link:focus-visible,
  .topbar__sound:focus-visible,
  .topbar__brand:focus-visible {
    outline: var(--line) solid var(--sel);
    outline-offset: 2px;
    border-radius: var(--r-label);
  }
  .topbar__sound-wrap {
    position: relative;
  }
  .topbar__sound {
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .topbar__bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 20px;
    height: 12px;
  }
  .topbar__bar {
    flex: 1;
    height: 3px;
    background: currentColor;
    border-radius: 1px;
  }
  .topbar.is-sound .topbar__bar {
    animation: topbar-eq var(--loop-eq) ease-in-out infinite;
  }
  .topbar.is-sound .topbar__bar:nth-child(2) { animation-delay: -0.5s; }
  .topbar.is-sound .topbar__bar:nth-child(3) { animation-delay: -0.9s; }
  .topbar.is-sound .topbar__bar:nth-child(4) { animation-delay: -0.25s; }
  .topbar__hint {
    position: absolute;
    top: calc(100% + 2px);
    right: -24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: var(--line) solid var(--ink);
    border-radius: var(--r-hint);
    background: var(--white);
    box-shadow: var(--shadow-hint);
    color: var(--ink);
    font: 700 var(--text-pill) / 1 var(--font-ui);
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity var(--t-height) ease, transform var(--t-pop) var(--ease-pop), visibility 0s linear var(--t-pop);
    animation: topbar-float var(--loop-pulse) ease-in-out 0.5s infinite;
  }
  .topbar__hint::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 44px;
    width: 10px;
    height: 10px;
    border-top: var(--line) solid var(--ink);
    border-left: var(--line) solid var(--ink);
    background: var(--white);
    transform: rotate(45deg);
  }
  .topbar__note {
    position: relative;
  }
  .topbar__hint-coarse {
    display: none;
  }
  .topbar.is-heard .topbar__hint {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px) scale(0.6);
  }

  @media (pointer: coarse) {
    .topbar__hint-fine { display: none; }
    .topbar__hint-coarse { display: inline; }
  }

  @media (max-width: 40rem) {
    .topbar__stage {
      padding-bottom: 60px;
    }
    .topbar__nav {
      flex: 1 1 100%;
      justify-content: space-between;
      gap: var(--space-m);
    }
    .topbar__status-long { display: none; }
    .topbar__status-short { display: inline; }
    .topbar__hint {
      right: auto;
      left: -6px;
    }
    .topbar__hint::before {
      right: auto;
      left: 14px;
    }
  }
  @media (max-width: 25rem) {
    .topbar__sound-label { display: none; }
    .topbar__sound { min-width: 44px; }
  }

  @keyframes topbar-film {
    0% { transform: translate(0, 0); }
    14% { transform: translate(-7%, 4%); }
    28% { transform: translate(5%, -6%); }
    42% { transform: translate(-3%, -8%); }
    57% { transform: translate(8%, 3%); }
    71% { transform: translate(-6%, 7%); }
    85% { transform: translate(4%, -2%); }
  }
  @keyframes topbar-pulse {
    0% { box-shadow: 0 0 0 0 var(--go-ring); }
    70% { box-shadow: 0 0 0 9px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }
  @keyframes topbar-eq {
    0%, 100% { height: 3px; }
    50% { height: 12px; }
  }
  @keyframes topbar-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 3px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .topbar__grain,
    .topbar__dot,
    .topbar__hint,
    .topbar.is-sound .topbar__bar {
      animation: none;
    }
    .topbar.is-sound .topbar__bar:nth-child(odd) { height: 10px; }
    .topbar.is-sound .topbar__bar:nth-child(even) { height: 6px; }
  }
</style>

<script>
  (() => {
    function blip(context, from, to) {
      const oscillator = context.createOscillator();
      const gain = context.createGain();
      const now = context.currentTime;
      oscillator.type = 'sine';
      oscillator.frequency.setValueAtTime(from, now);
      oscillator.frequency.exponentialRampToValueAtTime(to, now + 0.12);
      gain.gain.setValueAtTime(0.0001, now);
      gain.gain.exponentialRampToValueAtTime(0.05, now + 0.02);
      gain.gain.exponentialRampToValueAtTime(0.0001, now + 0.16);
      oscillator.connect(gain).connect(context.destination);
      oscillator.start(now);
      oscillator.stop(now + 0.18);
    }

    function setUp(root) {
      const button = root.querySelector('.topbar__sound');
      const label = root.querySelector('.topbar__sound-label');
      let context = null;

      button.addEventListener('click', () => {
        const on = !root.classList.contains('is-sound');
        root.classList.toggle('is-sound', on);
        root.classList.add('is-heard');
        button.setAttribute('aria-pressed', String(on));
        button.setAttribute('aria-label', on ? 'Sound on. Turn sound off' : 'Sound off. Turn sound on');
        label.textContent = on ? 'Sound on' : 'Sound off';
        if (on && window.AudioContext) {
          context = context || new AudioContext();
          blip(context, 520, 1040);
        }
      });

      root.querySelectorAll('.topbar__link').forEach((link, index) => {
        link.addEventListener('pointerenter', () => {
          if (context && root.classList.contains('is-sound')) blip(context, 700 + index * 160, 1300 + index * 200);
        });
      });

      new IntersectionObserver(([entry]) => {
        root.querySelectorAll('.topbar__grain, .topbar__dot, .topbar__hint, .topbar__bar').forEach((element) => {
          element.style.animationPlayState = entry.isIntersecting ? '' : 'paused';
        });
      }).observe(root);
    }

    document.querySelectorAll('.topbar').forEach(setUp);
  })();
</script>

Selection-box name

A chunky kicker, the thin display name inside a working design-tool selection: drag any handle to scale the name, the size label shows the real box size, double-click edits the text, a named cursor drifts by the corner. Birds and stars on a grained purple field.

Code
<section class="nameplate" aria-label="Introduction">
  <div class="nameplate__stage">
    <span class="nameplate__grain" aria-hidden="true"></span>

    <svg class="nameplate__birds" viewBox="0 0 220 90" aria-hidden="true">
      <path class="nameplate__bird" d="M10 56 q10 -10 20 0 q10 -10 20 0" />
      <path class="nameplate__bird" d="M62 36 q8 -8 16 0 q8 -8 16 0" />
      <path class="nameplate__bird" d="M104 54 q7 -7 14 0 q7 -7 14 0" />
      <path class="nameplate__bird" d="M150 20 q10 -10 20 0 q10 -10 20 0" />
    </svg>

    <span class="nameplate__star nameplate__star--a" aria-hidden="true"></span>
    <span class="nameplate__star nameplate__star--b" aria-hidden="true"></span>
    <span class="nameplate__star nameplate__star--c" aria-hidden="true"></span>
    <span class="nameplate__star nameplate__star--d" aria-hidden="true"></span>
    <svg class="nameplate__sparkle nameplate__sparkle--a" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>
    <svg class="nameplate__sparkle nameplate__sparkle--b" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>
    <span class="nameplate__ball nameplate__ball--coral" aria-hidden="true"></span>
    <span class="nameplate__ball nameplate__ball--blue" aria-hidden="true"></span>
    <span class="nameplate__ball nameplate__ball--white" aria-hidden="true"></span>

    <div class="nameplate__center">
      <p class="nameplate__kicker">I<span class="nameplate__s">n</span>SIDE THE FISHB<span class="nameplate__u">O</span>WL <span class="nameplate__s">o</span>F</p>

      <div class="nameplate__sel is-selected">
        <h1 class="nameplate__name" spellcheck="false">Juno Pfeffer</h1>
        <span class="nameplate__outline" aria-hidden="true"></span>
        <button class="nameplate__handle nameplate__handle--nw" type="button" aria-label="Resize the name. Arrow keys work too"></button>
        <button class="nameplate__handle nameplate__handle--ne" type="button" aria-label="Resize the name. Arrow keys work too"></button>
        <button class="nameplate__handle nameplate__handle--sw" type="button" aria-label="Resize the name. Arrow keys work too"></button>
        <button class="nameplate__handle nameplate__handle--se" type="button" aria-label="Resize the name. Arrow keys work too"></button>
        <em class="nameplate__size" aria-live="polite">0 × 0</em>
        <span class="nameplate__cursor" aria-hidden="true">
          <svg class="nameplate__arrow" viewBox="0 0 22 24"><path d="M2 2l17 8.5-7.4 2.1L8.4 20z" /></svg>
          <span class="nameplate__tag">Pip</span>
        </span>
      </div>

      <p class="nameplate__phrase">Drawing <span class="nameplate__gap"></span> playful tools</p>
      <p class="nameplate__role">Product designer &amp; illustrator.<br>I make software that feels like a toy box.</p>
    </div>

    <p class="nameplate__hint"><span class="nameplate__line" aria-hidden="true"></span>Drag a handle.<br>Double-click to rename.</p>
  </div>
</section>

<style>
  .nameplate {
    padding: var(--bezel);
    background: var(--frame);
  }
  .nameplate__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(520px, 62vw, 820px);
    padding: var(--space-xl) var(--pad);
    overflow: hidden;
    border-radius: var(--r-stage);
    background: var(--field-purple);
    color: var(--fg);
    isolation: isolate;
  }
  .nameplate__grain {
    position: absolute;
    inset: -40%;
    z-index: 4;
    background: var(--grain);
    opacity: var(--grain-strength);
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: nameplate-film var(--loop-film) steps(1) infinite;
  }

  /* Field furniture: birds, stars, sparkles, balls. */
  .nameplate__birds {
    position: absolute;
    left: 7%;
    top: 58%;
    width: clamp(120px, 15vw, 216px);
    fill: none;
    stroke: var(--fg);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: nameplate-drift 7s ease-in-out infinite alternate;
  }
  .nameplate__bird {
    transform-box: fill-box;
    transform-origin: center;
    animation: nameplate-flap 0.9s ease-in-out infinite alternate;
  }
  .nameplate__bird:nth-child(2) { animation-delay: -0.3s; }
  .nameplate__bird:nth-child(3) { animation-delay: -0.6s; }
  .nameplate__bird:nth-child(4) { animation-delay: -0.15s; }
  .nameplate__star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--fg);
    opacity: 0.7;
  }
  .nameplate__star--a { left: 14%; top: 16%; }
  .nameplate__star--b { left: 83%; top: 70%; }
  .nameplate__star--c { left: 62%; top: 9%; }
  .nameplate__star--d { left: 28%; top: 86%; }
  .nameplate__sparkle {
    position: absolute;
    width: 18px;
    fill: var(--fg);
    animation: nameplate-twinkle var(--loop-pulse) ease-in-out infinite alternate;
  }
  .nameplate__sparkle--a { right: 12%; top: 18%; }
  .nameplate__sparkle--b { left: 20%; top: 30%; width: 13px; animation-delay: -1.1s; }
  .nameplate__ball {
    position: absolute;
    border: var(--line) solid var(--ink);
    border-radius: 50%;
    animation: nameplate-bob 5.2s ease-in-out infinite alternate;
  }
  .nameplate__ball--coral { right: 16%; bottom: 20%; width: 26px; height: 26px; background: var(--coral); }
  .nameplate__ball--blue { right: 10%; bottom: 31%; width: 34px; height: 34px; background: var(--ball-blue); animation-duration: 6.4s; animation-delay: 0.6s; }
  .nameplate__ball--white { right: 21%; bottom: 36%; width: 16px; height: 16px; background: var(--white); animation-duration: 5.8s; animation-delay: 1.1s; }

  /* The centred column. */
  .nameplate__center {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 6px;
    max-width: 100%;
    text-align: center;
  }
  .nameplate__kicker {
    margin: 0 0 10px;
    color: var(--lav);
    font: var(--text-kicker) / 1.15 var(--font-chunky);
    letter-spacing: var(--track-kicker);
  }
  .nameplate__s {
    font-size: var(--small-cap);
  }
  .nameplate__u {
    display: inline-block;
    transform: translateY(-0.1em);
  }

  /* The selection: box, handles, size label, cursor. */
  .nameplate__sel {
    --nameplate-scale: 1;
    position: relative;
    max-width: 100%;
    padding: 8px 18px;
  }
  .nameplate__name {
    margin: 0;
    color: var(--white);
    font: 400 calc(var(--text-name) * var(--nameplate-scale)) / var(--lead-tight) var(--font-thin);
    letter-spacing: var(--track-name);
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: anywhere;
    outline: none;
    cursor: default;
  }
  .nameplate__name[contenteditable] {
    cursor: text;
    caret-color: var(--sel);
  }
  .nameplate__outline {
    position: absolute;
    inset: 0;
    border: var(--line) solid var(--sel);
    pointer-events: none;
  }
  .nameplate__handle {
    position: absolute;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin: -22px;
    padding: 0;
    border: 0;
    background: none;
    touch-action: none;
  }
  .nameplate__handle::before {
    content: "";
    position: absolute;
    inset: 17px;
    border: var(--line) solid var(--sel);
    background: var(--white);
    transition: transform var(--t-quick) var(--ease-pop);
  }
  .nameplate__handle:hover::before,
  .nameplate__handle:focus-visible::before,
  .nameplate__handle.is-dragging::before {
    transform: scale(1.5);
  }
  .nameplate__handle:focus-visible {
    outline: none;
  }
  .nameplate__handle--nw { left: 0; top: 0; cursor: nwse-resize; }
  .nameplate__handle--ne { right: 0; top: 0; cursor: nesw-resize; }
  .nameplate__handle--sw { left: 0; bottom: 0; cursor: nesw-resize; }
  .nameplate__handle--se { right: 0; bottom: 0; cursor: nwse-resize; }
  .nameplate__size {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    padding: 3px 6px;
    border-radius: var(--r-label);
    background: var(--sel-deep);
    color: var(--white);
    font: var(--weight-ui) var(--text-label) / 1.2 var(--font-ui);
    font-style: normal;
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--track-body);
    white-space: nowrap;
  }
  .nameplate__outline,
  .nameplate__handle,
  .nameplate__size {
    transition: opacity var(--t-quick) ease;
  }
  .nameplate__sel:not(.is-selected) .nameplate__outline,
  .nameplate__sel:not(.is-selected) .nameplate__handle,
  .nameplate__sel:not(.is-selected) .nameplate__size {
    opacity: 0;
    pointer-events: none;
  }
  .nameplate__cursor {
    position: absolute;
    right: 34px;
    bottom: 4px;
    z-index: 3;
    pointer-events: none;
  }
  .nameplate__arrow {
    width: 22px;
    height: 24px;
    fill: var(--sel);
    stroke: var(--white);
    stroke-width: 1.6;
    stroke-linejoin: round;
  }
  .nameplate__tag {
    position: absolute;
    left: 16px;
    top: 20px;
    padding: 3px 7px;
    border-radius: var(--r-label);
    background: var(--sel-deep);
    color: var(--white);
    font: 650 var(--text-label) / 1.2 var(--font-ui);
    letter-spacing: var(--track-body);
  }

  .nameplate__phrase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 4px 0 0;
    color: var(--lav);
    font: 400 var(--text-phrase) / 1 var(--font-thin);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .nameplate__gap {
    width: clamp(16px, 8vw, 120px);
  }
  .nameplate__role {
    margin: var(--space-m) 0 0;
    color: var(--lav);
    font: var(--weight-ui) var(--text-role) / 1.3 var(--font-ui);
    letter-spacing: var(--track-body);
  }

  .nameplate__hint {
    position: absolute;
    left: var(--pad);
    bottom: var(--pad);
    margin: 0;
    padding-left: 14px;
    color: var(--fg);
    font: var(--weight-ui) 14px / 1.35 var(--font-ui);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .nameplate__line {
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 2px;
    overflow: hidden;
    background: var(--tick);
  }
  .nameplate__line::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--fg);
    animation: nameplate-drip var(--loop-drip) var(--ease-drip) infinite;
  }

  @media (max-width: 40rem) {
    .nameplate__stage {
      align-items: start;
      padding-top: 72px;
      padding-bottom: 120px;
    }
    .nameplate__name { font-size: calc(20vw * var(--nameplate-scale)); }
    .nameplate__birds { top: auto; bottom: 26%; }
    .nameplate__ball--coral { bottom: 12%; }
    .nameplate__ball--blue { bottom: 17%; }
    .nameplate__ball--white { bottom: 22%; }
  }

  @keyframes nameplate-film {
    0% { transform: translate(0, 0); }
    14% { transform: translate(-7%, 4%); }
    28% { transform: translate(5%, -6%); }
    42% { transform: translate(-3%, -8%); }
    57% { transform: translate(8%, 3%); }
    71% { transform: translate(-6%, 7%); }
    85% { transform: translate(4%, -2%); }
  }
  @keyframes nameplate-flap {
    from { transform: scaleY(1); }
    to { transform: scaleY(0.45); }
  }
  @keyframes nameplate-drift {
    from { transform: translate(-6px, 2px); }
    to { transform: translate(8px, -3px); }
  }
  @keyframes nameplate-twinkle {
    from { transform: scale(0.7); opacity: 0.35; }
    to { transform: scale(1.1); opacity: 1; }
  }
  @keyframes nameplate-bob {
    from { transform: translateY(-6px) rotate(-3deg); }
    to { transform: translateY(6px) rotate(3deg); }
  }
  @keyframes nameplate-drip {
    from { top: -40%; }
    to { top: 110%; }
  }

  @media (prefers-reduced-motion: reduce) {
    .nameplate__grain,
    .nameplate__birds,
    .nameplate__bird,
    .nameplate__sparkle,
    .nameplate__ball,
    .nameplate__line::after {
      animation: none;
    }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)');
    const MIN_SCALE = 0.45;
    const MAX_SCALE = 1.3;
    const DRIFT = { x: 23, y: 14.5, period: 2600 };

    function clampScale(value) {
      return Math.min(MAX_SCALE, Math.max(MIN_SCALE, value));
    }

    function reportSize(name, label) {
      const box = name.getBoundingClientRect();
      label.textContent = `${Math.round(box.width)} × ${Math.round(box.height)}`;
    }

    function makeResizable(selection) {
      let scale = 1;
      const apply = (value) => {
        scale = clampScale(value);
        selection.style.setProperty('--nameplate-scale', scale.toFixed(3));
      };

      selection.querySelectorAll('.nameplate__handle').forEach((handle) => {
        handle.addEventListener('pointerdown', (event) => {
          event.preventDefault();
          handle.setPointerCapture(event.pointerId);
          handle.classList.add('is-dragging');
          const box = selection.getBoundingClientRect();
          const centre = box.left + box.width / 2;
          const startHalf = Math.max(20, Math.abs(event.clientX - centre));
          const startScale = scale;
          const move = (moveEvent) => apply(startScale * Math.abs(moveEvent.clientX - centre) / startHalf);
          const stop = () => {
            handle.classList.remove('is-dragging');
            handle.removeEventListener('pointermove', move);
            handle.removeEventListener('pointerup', stop);
            handle.removeEventListener('pointercancel', stop);
          };
          handle.addEventListener('pointermove', move);
          handle.addEventListener('pointerup', stop);
          handle.addEventListener('pointercancel', stop);
        });
        handle.addEventListener('keydown', (event) => {
          const step = { ArrowRight: 0.05, ArrowUp: 0.05, ArrowLeft: -0.05, ArrowDown: -0.05 }[event.key];
          if (!step) return;
          event.preventDefault();
          apply(scale + step);
        });
      });
    }

    function makeRenamable(name) {
      const finish = () => {
        name.removeAttribute('contenteditable');
        if (!name.textContent.trim()) name.textContent = 'Untitled';
      };
      name.addEventListener('dblclick', () => {
        name.setAttribute('contenteditable', 'true');
        name.focus();
        getSelection().selectAllChildren(name);
      });
      name.addEventListener('keydown', (event) => {
        if (event.key === 'Enter' || event.key === 'Escape') {
          event.preventDefault();
          name.blur();
        }
      });
      name.addEventListener('blur', finish);
    }

    function makeSelectable(stage, selection) {
      stage.addEventListener('pointerdown', (event) => {
        selection.classList.toggle('is-selected', selection.contains(event.target));
      });
    }

    function driftCursor(root, cursor) {
      let frame = 0;
      const tick = (now) => {
        const swing = Math.sin((now / DRIFT.period) * Math.PI * 2);
        cursor.style.transform = `translate(${(swing * DRIFT.x).toFixed(1)}px, ${(swing * DRIFT.y).toFixed(1)}px)`;
        frame = requestAnimationFrame(tick);
      };
      new IntersectionObserver(([entry]) => {
        cancelAnimationFrame(frame);
        root.querySelectorAll('.nameplate__grain, .nameplate__birds, .nameplate__bird, .nameplate__sparkle, .nameplate__ball').forEach((element) => {
          element.style.animationPlayState = entry.isIntersecting ? '' : 'paused';
        });
        if (entry.isIntersecting && !still.matches) frame = requestAnimationFrame(tick);
      }).observe(root);
    }

    function setUp(root) {
      const stage = root.querySelector('.nameplate__stage');
      const selection = root.querySelector('.nameplate__sel');
      const name = root.querySelector('.nameplate__name');
      const label = root.querySelector('.nameplate__size');
      new ResizeObserver(() => reportSize(name, label)).observe(name);
      makeResizable(selection);
      makeRenamable(name);
      makeSelectable(stage, selection);
      driftCursor(root, root.querySelector('.nameplate__cursor'));
    }

    document.querySelectorAll('.nameplate').forEach(setUp);
  })();
</script>

Fishbowl daydreamer

A drawn character with a fishbowl for a helmet: goldfish circling her head, bubbles, a butterfly net, a steaming mug, blinking eyes that follow the pointer. Click her and a fish leaps out of the bowl into the net and the catch counter goes up. With a dream note, role lines on the sweater and a mint tab on the right edge.

Code
<section class="daydreamer" aria-label="Pip, the fishbowl daydreamer">
  <div class="daydreamer__stage">
    <svg class="daydreamer__rings" viewBox="0 0 800 800" aria-hidden="true">
      <circle cx="400" cy="400" r="160" /><circle cx="400" cy="400" r="250" /><circle cx="400" cy="400" r="350" />
    </svg>
    <svg class="daydreamer__birds" viewBox="0 0 160 60" aria-hidden="true">
      <path class="daydreamer__bird" d="M8 40 q9 -9 18 0 q9 -9 18 0" />
      <path class="daydreamer__bird" d="M58 22 q7 -7 14 0 q7 -7 14 0" />
      <path class="daydreamer__bird" d="M104 36 q8 -8 16 0 q8 -8 16 0" />
    </svg>
    <span class="daydreamer__star daydreamer__star--a" aria-hidden="true"></span>
    <span class="daydreamer__star daydreamer__star--b" aria-hidden="true"></span>
    <span class="daydreamer__star daydreamer__star--c" aria-hidden="true"></span>
    <svg class="daydreamer__sparkle daydreamer__sparkle--a" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>
    <svg class="daydreamer__sparkle daydreamer__sparkle--b" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>

    <p class="daydreamer__note">
      <svg class="daydreamer__moon" viewBox="0 0 40 40" aria-hidden="true"><path d="M27 5a16 16 0 1 0 9 26A14 14 0 0 1 27 5z" /></svg>
      <span class="daydreamer__note-text"><span class="daydreamer__note-kicker">Now daydreaming about</span> a to-do list that forgives you</span>
    </p>

    <p class="daydreamer__count" aria-live="polite">Ideas caught <b class="daydreamer__count-number">00</b></p>

    <button class="daydreamer__character" type="button" aria-label="Go fishing: a goldfish jumps out of the bowl into the net">
      <svg class="daydreamer__svg" viewBox="0 0 640 560" aria-hidden="true">
        <defs>
          <clipPath id="daydreamer-bowl"><circle cx="320" cy="270" r="155" /></clipPath>
          <clipPath id="daydreamer-body"><path d="M60 560C70 470 150 428 250 420L390 420C490 428 570 470 580 560Z" /></clipPath>
        </defs>

        <!-- Sweater -->
        <path class="daydreamer__sweater" d="M60 560C70 470 150 428 250 420L390 420C490 428 570 470 580 560Z" />
        <g clip-path="url(#daydreamer-body)">
          <rect class="daydreamer__stripe" x="40" y="540" width="560" height="9" />
        </g>
        <path class="daydreamer__crease" d="M196 476q-14 30 -10 80M444 476q14 30 10 80" />
        <text class="daydreamer__role" x="320" y="470">
          <tspan x="320">Product designer</tspan>
          <tspan x="320" dy="20">&amp; illustrator</tspan>
          <tspan x="320" dy="20">drawing the tools</tspan>
          <tspan x="320" dy="20">I wish I had</tspan>
        </text>

        <!-- Raised arm with the butterfly net -->
        <g class="daydreamer__arm-left">
          <g class="daydreamer__net">
            <path class="daydreamer__handle-out" d="M130 298L88 128" />
            <path class="daydreamer__handle-in" d="M130 298L88 128" />
            <path class="daydreamer__bag-back" d="M36 112C40 168 66 206 90 204C118 200 132 156 134 104Z" />
            <g class="daydreamer__net-fish"></g>
            <path class="daydreamer__mesh" d="M48 140L118 128M56 166L124 152M70 188L120 176M60 116L72 200M86 112L94 204M112 108L112 196" />
            <path class="daydreamer__bag" d="M36 112C40 168 66 206 90 204C118 200 132 156 134 104" />
            <ellipse class="daydreamer__hoop" cx="85" cy="108" rx="50" ry="17" transform="rotate(-6 85 108)" />
          </g>
          <path class="daydreamer__sleeve-out" d="M222 454Q152 436 136 326" />
          <path class="daydreamer__sleeve-in" d="M222 454Q152 436 136 326" />
          <path class="daydreamer__cuff" d="M114 336q22 10 46 -2" />
          <ellipse class="daydreamer__skin" cx="130" cy="300" rx="24" ry="26" />
          <path class="daydreamer__line" d="M112 292q16 -6 34 2M112 306q16 -6 34 2" />
        </g>

        <!-- The bowl, back half -->
        <circle class="daydreamer__glass" cx="320" cy="270" r="155" />
        <g class="daydreamer__fish-back"></g>

        <!-- Head -->
        <rect class="daydreamer__skin" x="292" y="360" width="56" height="64" rx="10" />
        <ellipse class="daydreamer__ear" cx="238" cy="300" rx="15" ry="23" />
        <ellipse class="daydreamer__ear" cx="402" cy="300" rx="15" ry="23" />
        <ellipse class="daydreamer__skin" cx="320" cy="292" rx="82" ry="94" />
        <g class="daydreamer__hair">
          <path class="daydreamer__strand" d="M318 200C312 168 340 156 350 172C358 186 340 196 332 184" />
          <path class="daydreamer__hair-shape" d="M240 282C230 216 276 192 320 196C366 192 412 218 400 282C392 252 374 238 356 242C344 228 316 226 302 240C282 232 256 246 240 282Z" />
        </g>
        <g class="daydreamer__brows">
          <path class="daydreamer__line" d="M272 256q18 -10 36 0" />
          <path class="daydreamer__line" d="M332 256q18 -10 36 0" />
        </g>
        <g class="daydreamer__eyes">
          <ellipse class="daydreamer__white" cx="292" cy="290" rx="18" ry="22" />
          <ellipse class="daydreamer__white" cx="348" cy="290" rx="18" ry="22" />
          <g class="daydreamer__pupils">
            <circle class="daydreamer__pupil" cx="292" cy="292" r="8.5" />
            <circle class="daydreamer__pupil" cx="348" cy="292" r="8.5" />
            <circle class="daydreamer__glint" cx="289" cy="288.5" r="2.6" />
            <circle class="daydreamer__glint" cx="345" cy="288.5" r="2.6" />
          </g>
        </g>
        <path class="daydreamer__line" d="M318 304q8 9 -2 14" />
        <ellipse class="daydreamer__cheek" cx="268" cy="326" rx="14" ry="8" />
        <ellipse class="daydreamer__cheek" cx="372" cy="326" rx="14" ry="8" />
        <path class="daydreamer__mouth daydreamer__mouth--smile" d="M300 336q20 16 40 0" />
        <path class="daydreamer__mouth daydreamer__mouth--grin" d="M296 332q24 30 48 0Z" />
        <ellipse class="daydreamer__mouth daydreamer__mouth--oh" cx="320" cy="342" rx="9" ry="12" />

        <g class="daydreamer__bubbles">
          <circle class="daydreamer__bubble" cx="336" cy="336" r="5" />
          <circle class="daydreamer__bubble" cx="342" cy="336" r="3.5" />
          <circle class="daydreamer__bubble" cx="332" cy="336" r="4" />
        </g>

        <!-- Water, front fish, glass -->
        <g clip-path="url(#daydreamer-bowl)">
          <rect class="daydreamer__water" x="150" y="198" width="340" height="240" />
          <path class="daydreamer__surface" d="M120 198q10 -7 20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0t20 0" />
        </g>
        <g class="daydreamer__fish-front"></g>
        <path class="daydreamer__bowl" d="M243 133A155 155 0 1 0 397 133" />
        <path class="daydreamer__shine" d="M206 196q-22 40 -14 92" />
        <path class="daydreamer__shine daydreamer__shine--dot" d="M216 172l4 -6" />
        <ellipse class="daydreamer__rim" cx="320" cy="133" rx="78" ry="12" />
        <rect class="daydreamer__collar" x="238" y="410" width="164" height="28" rx="13" />
        <path class="daydreamer__line daydreamer__line--thin" d="M268 416v16M300 416v16M340 416v16M372 416v16" />
        <g class="daydreamer__splash">
          <circle class="daydreamer__drop" cx="300" cy="124" r="5" />
          <circle class="daydreamer__drop" cx="318" cy="118" r="4" />
          <circle class="daydreamer__drop" cx="338" cy="124" r="5" />
          <circle class="daydreamer__drop" cx="290" cy="130" r="3" />
          <circle class="daydreamer__drop" cx="352" cy="130" r="3.5" />
        </g>

        <!-- Other arm with the mug -->
        <g class="daydreamer__arm-right">
          <path class="daydreamer__sleeve-out" d="M420 452Q546 476 514 424" />
          <path class="daydreamer__sleeve-in" d="M420 452Q546 476 514 424" />
          <g class="daydreamer__steam">
            <path class="daydreamer__wisp" d="M498 350q-8 -10 0 -20t0 -20" />
            <path class="daydreamer__wisp" d="M512 346q-8 -10 0 -20t0 -20" />
            <path class="daydreamer__wisp" d="M526 350q-8 -10 0 -20t0 -20" />
          </g>
          <path class="daydreamer__mug-handle" d="M538 374q22 2 18 22t-20 16" />
          <rect class="daydreamer__mug" x="484" y="358" width="56" height="62" rx="9" />
          <path class="daydreamer__mug-band" d="M484 382h56v12h-56z" />
          <ellipse class="daydreamer__skin" cx="508" cy="414" rx="26" ry="20" />
          <path class="daydreamer__line" d="M494 404q14 -6 30 0" />
        </g>

        <g class="daydreamer__fish-leap"></g>

        <!-- One fish drawn once, cloned by the script -->
        <g class="daydreamer__fish" transform="translate(-100 -100)">
          <path class="daydreamer__fin" d="M-14 0L-30 -12L-26 0L-30 12Z" />
          <path class="daydreamer__fin" d="M-6 -10q6 -10 14 -3" />
          <ellipse class="daydreamer__fish-body" cx="0" cy="0" rx="18" ry="11.5" />
          <path class="daydreamer__line daydreamer__line--thin" d="M4 -7q-4 7 0 14" />
          <circle class="daydreamer__fish-eye" cx="9" cy="-3" r="2.6" />
        </g>
      </svg>
    </button>

    <p class="daydreamer__hint"><span class="daydreamer__hint-line" aria-hidden="true"></span>Click her<br>to go fishing</p>
    <a class="daydreamer__tab" href="#"><span class="daydreamer__tab-mark">P.</span><span class="daydreamer__tab-word">Guestbook</span></a>
    <span class="daydreamer__grain" aria-hidden="true"></span>
  </div>
</section>

<style>
  .daydreamer {
    padding: var(--bezel);
    background: var(--frame);
  }
  .daydreamer__stage {
    position: relative;
    min-height: clamp(560px, 66vw, 860px);
    overflow: hidden;
    border-radius: var(--r-stage);
    background: var(--field-purple);
    color: var(--fg);
    isolation: isolate;
  }
  .daydreamer__grain {
    position: absolute;
    inset: -40%;
    z-index: 6;
    background: var(--grain);
    opacity: var(--grain-strength);
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: daydreamer-film var(--loop-film) steps(1) infinite;
  }

  /* Field furniture */
  .daydreamer__rings {
    position: absolute;
    left: 50%;
    bottom: -18%;
    width: min(1100px, 150%);
    transform: translateX(-50%);
    fill: none;
    stroke: var(--chip-bg);
    stroke-width: 2;
  }
  .daydreamer__birds {
    position: absolute;
    right: 9%;
    top: 30%;
    width: clamp(90px, 11vw, 160px);
    fill: none;
    stroke: var(--fg);
    stroke-width: 2.5;
    stroke-linecap: round;
  }
  .daydreamer__bird {
    transform-box: fill-box;
    transform-origin: center;
    animation: daydreamer-flap 0.9s ease-in-out infinite alternate;
  }
  .daydreamer__bird:nth-child(2) { animation-delay: -0.35s; }
  .daydreamer__bird:nth-child(3) { animation-delay: -0.6s; }
  .daydreamer__star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--fg);
    opacity: 0.7;
  }
  .daydreamer__star--a { left: 40%; top: 8%; }
  .daydreamer__star--b { left: 72%; top: 14%; }
  .daydreamer__star--c { left: 8%; top: 52%; }
  .daydreamer__sparkle {
    position: absolute;
    width: 16px;
    fill: var(--fg);
    animation: daydreamer-twinkle var(--loop-pulse) ease-in-out infinite alternate;
  }
  .daydreamer__sparkle--a { left: 64%; top: 26%; }
  .daydreamer__sparkle--b { left: 30%; top: 22%; width: 11px; animation-delay: -1.2s; }

  /* Dream note and counter */
  .daydreamer__note {
    position: absolute;
    left: var(--pad);
    top: var(--pad);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 290px;
    margin: 0;
    padding: 10px 14px 10px 10px;
    border: var(--line) solid var(--ink);
    border-radius: var(--r-card);
    background: var(--white);
    box-shadow: var(--shadow-card);
    color: var(--ink);
    font: var(--weight-body) var(--text-body) / 1.05 var(--font-ui);
    transform: rotate(-7deg);
    transform-origin: left bottom;
  }
  .daydreamer__note-kicker {
    display: block;
    margin-bottom: 3px;
    font-size: var(--text-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .daydreamer__moon {
    flex: none;
    width: 40px;
    fill: var(--sun);
    stroke: var(--ink);
    stroke-width: 2.5;
    stroke-linejoin: round;
    animation: daydreamer-moon 3.2s ease-in-out infinite alternate;
  }
  .daydreamer__count {
    position: absolute;
    right: calc(var(--pad) + 40px);
    top: var(--pad);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    margin: 0;
    padding: 0 6px 0 13px;
    border: 1px solid var(--chip-line);
    border-radius: var(--r-pill);
    background: var(--chip-bg);
    font: 550 var(--text-pill) / 1 var(--font-ui);
    letter-spacing: 0.02em;
  }
  .daydreamer__count-number {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--r-pill);
    background: var(--coral);
    color: var(--ink);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: transform var(--t-pop) var(--ease-pop);
  }
  .daydreamer.is-scored .daydreamer__count-number {
    transform: scale(1.35) rotate(-8deg);
  }

  /* The character */
  .daydreamer__character {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 2;
    width: min(94%, calc(clamp(560px, 66vw, 860px) * 1.04));
    padding: 0;
    border: 0;
    background: none;
    transform: translateX(-50%);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .daydreamer__character:focus-visible {
    outline: var(--line) dashed var(--lav);
    outline-offset: -6px;
    border-radius: var(--r-stage);
  }
  .daydreamer__svg {
    width: 100%;
    height: auto;
    overflow: visible;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .daydreamer__svg * {
    transform-box: view-box;
  }
  .daydreamer__sweater { fill: var(--sweater); stroke: var(--ink); stroke-width: var(--stroke); }
  .daydreamer__stripe { fill: var(--lav); }
  .daydreamer__crease { fill: none; stroke: var(--ink); stroke-width: 3; opacity: 0.8; }
  .daydreamer__skin { fill: var(--skin); stroke: var(--ink); stroke-width: var(--stroke); }
  .daydreamer__ear { fill: var(--skin-shade); stroke: var(--ink); stroke-width: var(--stroke); }
  .daydreamer__line { fill: none; stroke: var(--ink); stroke-width: 4.5; }
  .daydreamer__line--thin { stroke-width: 3; }
  .daydreamer__hair-shape { fill: var(--sweater); stroke: var(--ink); stroke-width: var(--stroke); }
  .daydreamer__strand { fill: none; stroke: var(--ink); stroke-width: 7; }
  .daydreamer__role { fill: var(--lav); font: var(--weight-ui) 17px var(--font-ui); letter-spacing: var(--track-body); text-anchor: middle; }
  .daydreamer__white { fill: var(--white); stroke: var(--ink); stroke-width: 4.5; }
  .daydreamer__pupil { fill: var(--ink); }
  .daydreamer__glint { fill: var(--white); }
  .daydreamer__cheek { fill: var(--coral); opacity: 0.55; transition: opacity var(--t-quick) ease; }
  .daydreamer__mouth { fill: none; stroke: var(--ink); stroke-width: 5; }
  .daydreamer__mouth--grin { fill: var(--ink); stroke-width: 4; }
  .daydreamer__mouth--oh { fill: var(--ink); stroke-width: 3; }
  .daydreamer__mouth--grin,
  .daydreamer__mouth--oh { opacity: 0; }
  .daydreamer__bubble { fill: none; stroke: var(--white); stroke-width: 2.5; opacity: 0; }
  .daydreamer__glass { fill: var(--glass); }
  .daydreamer__water { fill: var(--water); }
  .daydreamer__surface { fill: none; stroke: var(--white); stroke-width: 3; opacity: 0.85; }
  .daydreamer__bowl { fill: none; stroke: var(--ink); stroke-width: 6; }
  .daydreamer__shine { fill: none; stroke: var(--white); stroke-width: 9; opacity: 0.75; }
  .daydreamer__shine--dot { stroke-width: 8; }
  .daydreamer__rim { fill: var(--glass); stroke: var(--ink); stroke-width: 6; }
  .daydreamer__collar { fill: var(--sun); stroke: var(--ink); stroke-width: var(--stroke); }
  .daydreamer__drop { fill: var(--water); stroke: var(--white); stroke-width: 2; opacity: 0; }
  .daydreamer__sleeve-out { fill: none; stroke: var(--ink); stroke-width: 60; }
  .daydreamer__sleeve-in { fill: none; stroke: var(--sweater); stroke-width: 50; }
  .daydreamer__cuff { fill: none; stroke: var(--lav); stroke-width: 7; }
  .daydreamer__handle-out { fill: none; stroke: var(--ink); stroke-width: 11; }
  .daydreamer__handle-in { fill: none; stroke: var(--sun); stroke-width: 4; }
  .daydreamer__bag-back { fill: var(--white); opacity: 0.18; }
  .daydreamer__bag { fill: none; stroke: var(--ink); stroke-width: 3.5; }
  .daydreamer__mesh { fill: none; stroke: var(--ink); stroke-width: 1.6; opacity: 0.55; }
  .daydreamer__hoop { fill: none; stroke: var(--ink); stroke-width: 6; }
  .daydreamer__mug { fill: var(--white); stroke: var(--ink); stroke-width: var(--stroke); }
  .daydreamer__mug-band { fill: var(--coral); }
  .daydreamer__mug-handle { fill: none; stroke: var(--ink); stroke-width: 6; }
  .daydreamer__wisp { fill: none; stroke: var(--white); stroke-width: 3.5; opacity: 0; }
  .daydreamer__fin,
  .daydreamer__fish-body { fill: var(--coral); stroke: var(--ink); stroke-width: 3.5; }
  .daydreamer__fish-eye { fill: var(--ink); }
  .daydreamer__fish.is-gold .daydreamer__fin,
  .daydreamer__fish.is-gold .daydreamer__fish-body { fill: var(--sun); }

  /* Idle loops */
  .daydreamer__arm-left {
    transform-origin: 236px 454px;
    animation: daydreamer-arm 3.4s ease-in-out infinite alternate;
  }
  .daydreamer__net {
    transform-origin: 130px 300px;
    animation: daydreamer-sway 2.6s ease-in-out infinite alternate;
  }
  .daydreamer.is-catching .daydreamer__net {
    animation: daydreamer-sway 2.6s ease-in-out infinite alternate, daydreamer-swoop 0.9s var(--ease-out);
  }
  .daydreamer__hair {
    transform-origin: 320px 222px;
    animation: daydreamer-hair 2.2s ease-in-out infinite alternate;
  }
  .daydreamer__eyes {
    transform-origin: 320px 290px;
    animation: daydreamer-blink 4.6s linear infinite;
  }
  .daydreamer__brows {
    transition: transform var(--t-pop) var(--ease-pop);
  }
  .daydreamer__surface {
    animation: daydreamer-slosh 2.6s linear infinite;
  }
  .daydreamer__bubble {
    animation: daydreamer-bubble 2.8s ease-in infinite;
  }
  .daydreamer__bubble:nth-child(2) { animation-delay: 0.9s; }
  .daydreamer__bubble:nth-child(3) { animation-delay: 1.8s; }
  .daydreamer__wisp {
    transform-origin: 512px 350px;
    animation: daydreamer-wisp 2.6s ease-in-out infinite;
  }
  .daydreamer__wisp:nth-child(2) { animation-delay: 0.85s; }
  .daydreamer__wisp:nth-child(3) { animation-delay: 1.7s; }

  /* Reactions */
  .daydreamer.is-happy .daydreamer__brows { transform: translateY(-6px); }
  .daydreamer.is-happy .daydreamer__cheek { opacity: 0.9; }
  .daydreamer.is-happy .daydreamer__mouth--smile { opacity: 0; }
  .daydreamer.is-happy .daydreamer__mouth--grin { opacity: 1; }
  .daydreamer.is-surprised .daydreamer__brows { transform: translateY(-10px); }
  .daydreamer.is-surprised .daydreamer__mouth--smile,
  .daydreamer.is-surprised .daydreamer__mouth--grin { opacity: 0; }
  .daydreamer.is-surprised .daydreamer__mouth--oh { opacity: 1; }
  .daydreamer.is-splashing .daydreamer__drop {
    animation: daydreamer-splash 0.7s var(--ease-out);
  }
  .daydreamer__drop:nth-child(1) { --daydreamer-dx: -40px; --daydreamer-dy: -46px; }
  .daydreamer__drop:nth-child(2) { --daydreamer-dx: -6px; --daydreamer-dy: -64px; }
  .daydreamer__drop:nth-child(3) { --daydreamer-dx: 34px; --daydreamer-dy: -50px; }
  .daydreamer__drop:nth-child(4) { --daydreamer-dx: -58px; --daydreamer-dy: -20px; }
  .daydreamer__drop:nth-child(5) { --daydreamer-dx: 54px; --daydreamer-dy: -24px; }

  /* Words on and around the scene */
  .daydreamer__hint {
    position: absolute;
    left: var(--pad);
    bottom: var(--pad);
    z-index: 3;
    margin: 0;
    padding-left: 14px;
    font: var(--weight-ui) 14px / 1.35 var(--font-ui);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .daydreamer__hint-line {
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 2px;
    overflow: hidden;
    background: var(--tick);
  }
  .daydreamer__hint-line::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--fg);
    animation: daydreamer-drip var(--loop-drip) var(--ease-drip) infinite;
  }
  .daydreamer__tab {
    position: absolute;
    right: 0;
    top: 24%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 46px;
    padding: 14px 0 18px;
    border-radius: 8px 0 0 8px;
    background: var(--mint);
    color: var(--ink);
    text-decoration: none;
    transform: translateX(6px);
    transition: transform var(--t-settle) var(--ease-out);
  }
  .daydreamer__tab:hover,
  .daydreamer__tab:focus-visible {
    transform: translateX(0);
  }
  .daydreamer__tab:focus-visible {
    outline: var(--line) solid var(--sel);
    outline-offset: 2px;
  }
  .daydreamer__tab-mark {
    font: 20px / 1 var(--font-chunky);
  }
  .daydreamer__tab-word {
    font: 650 var(--text-pill) / 1 var(--font-ui);
    letter-spacing: 0.04em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  @media (max-width: 40rem) {
    .daydreamer__sparkle--a { left: 46%; top: 16%; }
    .daydreamer__stage { min-height: 560px; }
    .daydreamer__note { top: calc(var(--pad) + 16px); max-width: calc(100% - 2 * var(--pad) - 40px); font-size: 16px; }
    .daydreamer__count { top: 136px; right: calc(var(--pad) + 40px); }
    .daydreamer__hint { bottom: auto; top: 186px; }
    .daydreamer__character { width: 112%; }
    .daydreamer__birds { top: 40%; right: 16%; }
    .daydreamer__tab { top: 30%; }
  }

  @keyframes daydreamer-film {
    0% { transform: translate(0, 0); }
    14% { transform: translate(-7%, 4%); }
    28% { transform: translate(5%, -6%); }
    42% { transform: translate(-3%, -8%); }
    57% { transform: translate(8%, 3%); }
    71% { transform: translate(-6%, 7%); }
    85% { transform: translate(4%, -2%); }
  }
  @keyframes daydreamer-flap { from { transform: scaleY(1); } to { transform: scaleY(0.45); } }
  @keyframes daydreamer-twinkle { from { transform: scale(0.7); opacity: 0.35; } to { transform: scale(1.1); opacity: 1; } }
  @keyframes daydreamer-moon { from { transform: rotate(-12deg) translateY(-1px); } to { transform: rotate(8deg) translateY(2px); } }
  @keyframes daydreamer-arm { from { transform: rotate(-2.5deg); } to { transform: rotate(2deg); } }
  @keyframes daydreamer-sway { from { rotate: -6deg; } to { rotate: 5deg; } }
  @keyframes daydreamer-swoop { 0% { transform: rotate(0deg); } 35% { transform: rotate(-16deg); } 70% { transform: rotate(7deg); } 100% { transform: rotate(0deg); } }
  @keyframes daydreamer-hair { from { transform: rotate(-4deg) skewX(3deg); } to { transform: rotate(4deg) skewX(-3deg); } }
  @keyframes daydreamer-blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.08); } }
  @keyframes daydreamer-slosh { from { transform: translateX(0); } to { transform: translateX(-40px); } }
  @keyframes daydreamer-bubble {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(-132px); opacity: 0; }
  }
  @keyframes daydreamer-wisp {
    0% { transform: translateY(5px) scaleY(0.7); opacity: 0; }
    35% { opacity: 0.9; }
    100% { transform: translateY(-14px) scaleY(1); opacity: 0; }
  }
  @keyframes daydreamer-splash {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(var(--daydreamer-dx), var(--daydreamer-dy)); opacity: 0; }
  }
  @keyframes daydreamer-drip { from { top: -40%; } to { top: 110%; } }

  @media (prefers-reduced-motion: reduce) {
    .daydreamer__grain,
    .daydreamer__bird,
    .daydreamer__sparkle,
    .daydreamer__moon,
    .daydreamer__arm-left,
    .daydreamer__net,
    .daydreamer__hair,
    .daydreamer__eyes,
    .daydreamer__surface,
    .daydreamer__hint-line::after {
      animation: none;
    }
    .daydreamer__bubble,
    .daydreamer__wisp {
      animation: none;
      opacity: 0.8;
    }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)');
    const ORBIT = { cx: 320, cy: 302, rx: 116, ry: 30 };
    const RISE = { x: 326, y: 206 };
    const NET = { x: 84, y: 162 };
    const OUT_CONTROL = { x: 250, y: -90 };
    const BACK_CONTROL = { x: 210, y: -40 };
    const PHASES = { rise: 350, leap: 800, caught: 1400, back: 700, settle: 450 };
    let instances = 0;

    const lerp = (a, b, t) => ({ x: a.x + (b.x - a.x) * t, y: a.y + (b.y - a.y) * t });
    const easeInOut = (t) => (t < 0.5 ? 2 * t * t : 1 - (-2 * t + 2) ** 2 / 2);
    const bezier = (a, c, b, t) => ({
      x: (1 - t) ** 2 * a.x + 2 * (1 - t) * t * c.x + t * t * b.x,
      y: (1 - t) ** 2 * a.y + 2 * (1 - t) * t * c.y + t * t * b.y,
    });
    const bezierAngle = (a, c, b, t) => {
      const dx = 2 * (1 - t) * (c.x - a.x) + 2 * t * (b.x - c.x);
      const dy = 2 * (1 - t) * (c.y - a.y) + 2 * t * (b.y - c.y);
      return (Math.atan2(dy, dx) * 180) / Math.PI;
    };

    function orbitPoint(theta) {
      return { x: ORBIT.cx + ORBIT.rx * Math.cos(theta), y: ORBIT.cy + ORBIT.ry * Math.sin(theta) + 4 * Math.sin(theta * 3) };
    }

    function place(fish, point, { flip = 1, depth = 1, angle = 0 } = {}) {
      fish.setAttribute('transform', `translate(${point.x.toFixed(1)} ${point.y.toFixed(1)}) rotate(${angle.toFixed(1)}) scale(${(flip * depth).toFixed(3)} ${depth.toFixed(3)})`);
    }

    function uniquifyClips(svg) {
      instances += 1;
      svg.querySelectorAll('clipPath').forEach((clip) => {
        const oldId = clip.id;
        const newId = `${oldId}-${instances}`;
        clip.id = newId;
        svg.querySelectorAll(`[clip-path="url(#${oldId})"]`).forEach((user) => user.setAttribute('clip-path', `url(#${newId})`));
      });
    }

    function setUp(root) {
      const svg = root.querySelector('.daydreamer__svg');
      const button = root.querySelector('.daydreamer__character');
      const number = root.querySelector('.daydreamer__count-number');
      const pupils = root.querySelector('.daydreamer__pupils');
      const layers = {
        back: root.querySelector('.daydreamer__fish-back'),
        front: root.querySelector('.daydreamer__fish-front'),
        leap: root.querySelector('.daydreamer__fish-leap'),
        net: root.querySelector('.daydreamer__net-fish'),
      };
      uniquifyClips(svg);

      const template = root.querySelector('.daydreamer__fish');
      const school = [
        { el: template, theta: 0.6, speed: 0.9 },
        { el: template.cloneNode(true), theta: 3.6, speed: 0.66 },
      ];
      school[1].el.classList.add('is-gold');
      school.forEach((fish) => layers.front.appendChild(fish.el));

      let caught = 0;
      let leap = null;
      let pointer = null;
      let gaze = { x: 0, y: 0 };
      let last = performance.now();
      let frame = 0;
      let visible = false;

      const moveTo = (fish, layer) => {
        if (fish.el.parentNode !== layer) layer.appendChild(fish.el);
      };

      const drawOrbiting = (fish) => {
        const point = orbitPoint(fish.theta);
        const near = Math.sin(fish.theta);
        moveTo(fish, near > 0 ? layers.front : layers.back);
        place(fish.el, point, { flip: Math.sin(fish.theta) > 0 ? -1 : 1, depth: 1.05 + 0.3 * (near + 1) / 2 });
      };

      const setMood = (mood) => {
        root.classList.toggle('is-surprised', mood === 'surprised');
        root.classList.toggle('is-happy', mood === 'happy' || (mood === 'idle' && root.matches(':hover')));
      };

      const score = () => {
        caught += 1;
        number.textContent = String(caught).padStart(2, '0');
        root.classList.add('is-scored');
        setTimeout(() => root.classList.remove('is-scored'), 450);
      };

      const drawLeap = (fish, now) => {
        let t = now - leap.start;
        if (t < PHASES.rise) {
          moveTo(fish, layers.front);
          place(fish.el, lerp(leap.from, RISE, easeInOut(t / PHASES.rise)), { flip: leap.from.x > RISE.x ? -1 : 1, angle: 0 });
          return;
        }
        t -= PHASES.rise;
        if (t < PHASES.leap) {
          if (!leap.splashed) {
            leap.splashed = true;
            root.classList.add('is-splashing', 'is-catching');
            setTimeout(() => root.classList.remove('is-splashing'), 700);
            setTimeout(() => root.classList.remove('is-catching'), 900);
          }
          const u = easeInOut(t / PHASES.leap);
          moveTo(fish, layers.leap);
          place(fish.el, bezier(RISE, OUT_CONTROL, NET, u), { angle: bezierAngle(RISE, OUT_CONTROL, NET, u) });
          return;
        }
        t -= PHASES.leap;
        if (t < PHASES.caught) {
          if (!leap.scored) {
            leap.scored = true;
            score();
            setMood('happy');
          }
          moveTo(fish, layers.net);
          place(fish.el, { x: NET.x + 3 * Math.sin(t / 90), y: NET.y }, { angle: 70 + 22 * Math.sin(t / 70), depth: 0.9 });
          return;
        }
        t -= PHASES.caught;
        if (t < PHASES.back) {
          const u = easeInOut(t / PHASES.back);
          moveTo(fish, layers.leap);
          place(fish.el, bezier(NET, BACK_CONTROL, RISE, u), { angle: bezierAngle(NET, BACK_CONTROL, RISE, u) });
          return;
        }
        t -= PHASES.back;
        if (t < PHASES.settle) {
          moveTo(fish, layers.front);
          place(fish.el, lerp(RISE, orbitPoint(fish.theta), easeInOut(t / PHASES.settle)), { flip: -1, depth: 0.95 });
          return;
        }
        leap = null;
        setMood('idle');
      };

      const lookAround = (now) => {
        let target = { x: 4 * Math.sin(now / 1700), y: 2 * Math.sin(now / 2300) };
        if (leap) target = { x: -6, y: -7 };
        else if (pointer) {
          const matrix = svg.getScreenCTM();
          if (matrix) {
            const local = new DOMPoint(pointer.x, pointer.y).matrixTransform(matrix.inverse());
            const dx = local.x - 320;
            const dy = local.y - 290;
            const length = Math.hypot(dx, dy) || 1;
            const reach = Math.min(1, length / 160);
            target = { x: (dx / length) * 6 * reach, y: (dy / length) * 7 * reach };
          }
        }
        gaze = { x: gaze.x + (target.x - gaze.x) * 0.15, y: gaze.y + (target.y - gaze.y) * 0.15 };
        pupils.setAttribute('transform', `translate(${gaze.x.toFixed(2)} ${gaze.y.toFixed(2)})`);
      };

      const tick = (now) => {
        const seconds = Math.min(0.05, (now - last) / 1000);
        last = now;
        const hurry = root.classList.contains('is-happy') ? 1.7 : 1;
        school.forEach((fish, index) => {
          fish.theta += fish.speed * hurry * seconds;
          if (index === 0 && leap) drawLeap(fish, now);
          else drawOrbiting(fish);
        });
        lookAround(now);
        frame = requestAnimationFrame(tick);
      };

      const run = () => {
        cancelAnimationFrame(frame);
        if (visible && !still.matches) {
          last = performance.now();
          frame = requestAnimationFrame(tick);
        }
      };

      const catchStill = () => {
        const fish = school[0];
        score();
        setMood('happy');
        moveTo(fish, layers.net);
        place(fish.el, NET, { angle: 70, depth: 0.9 });
        setTimeout(() => {
          setMood('idle');
          drawOrbiting(fish);
        }, 1600);
      };

      button.addEventListener('click', () => {
        if (still.matches) {
          catchStill();
          return;
        }
        if (leap) return;
        leap = { start: performance.now(), from: orbitPoint(school[0].theta), splashed: false, scored: false };
        setMood('surprised');
      });
      button.addEventListener('pointerenter', () => { if (!leap) setMood('happy'); });
      button.addEventListener('pointerleave', () => { if (!leap) root.classList.remove('is-happy'); });
      root.addEventListener('pointermove', (event) => { pointer = { x: event.clientX, y: event.clientY }; });
      root.addEventListener('pointerleave', () => { pointer = null; });

      school.forEach(drawOrbiting);
      new IntersectionObserver(([entry]) => {
        visible = entry.isIntersecting;
        root.querySelectorAll('.daydreamer__stage *').forEach((element) => {
          element.style.animationPlayState = visible ? '' : 'paused';
        });
        run();
      }).observe(root);
      still.addEventListener('change', run);
    }

    document.querySelectorAll('.daydreamer').forEach(setUp);
  })();
</script>

Knocked-about hello

Giant chunky caps where every letter lands at its own angle and offset, a hand-drawn squiggle underline, twinkling sparkles and a short caption. Hovered letters wobble; a click or the button knocks them all over again.

Code
<section class="hello">
  <div class="hello__stage">
    <span class="hello__dot hello__dot--a" aria-hidden="true"></span>
    <span class="hello__dot hello__dot--b" aria-hidden="true"></span>
    <span class="hello__dot hello__dot--c" aria-hidden="true"></span>
    <svg class="hello__sparkle hello__sparkle--a" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>
    <svg class="hello__sparkle hello__sparkle--b" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>
    <svg class="hello__sparkle hello__sparkle--c" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>
    <svg class="hello__sparkle hello__sparkle--d" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>
    <svg class="hello__sparkle hello__sparkle--e" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>

    <div class="hello__center">
      <h2 class="hello__line" aria-label="Hi, I'm Juno.">
        <span class="hello__word" aria-hidden="true"><span class="hello__ch">H</span><span class="hello__ch hello__ch--small">I</span><span class="hello__ch">,</span></span>
        <span class="hello__word" aria-hidden="true"><span class="hello__ch">I</span><span class="hello__ch">'</span><span class="hello__ch">M</span></span>
        <span class="hello__word" aria-hidden="true"><span class="hello__ch">J</span><span class="hello__ch hello__ch--small">U</span><span class="hello__ch">N</span><span class="hello__ch">O</span><span class="hello__ch">.</span></span>
      </h2>
      <svg class="hello__squiggle" viewBox="0 0 480 40" aria-hidden="true">
        <path pathLength="1" d="M6 22C26 6 46 6 66 22S106 38 126 22S166 6 186 22S226 38 246 22S286 6 306 22S346 38 366 22S406 6 426 22S466 34 474 26" />
      </svg>
      <p class="hello__cap">Nine years drawing interfaces, icons and the odd mascot. I lead design at a small studio that makes tools for kids who code, and I still sketch every screen on paper first.</p>
      <button class="hello__knock" type="button">
        <svg class="hello__knock-icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M16 10a6 6 0 1 1-2-4.5M16 3v4h-4" /></svg>
        Knock it over
      </button>
    </div>
  </div>
</section>

<style>
  .hello {
    padding: var(--bezel);
    background: var(--frame);
  }
  .hello__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(540px, 56vw, 800px);
    padding: var(--space-xl) var(--pad);
    overflow: hidden;
    border-radius: var(--r-stage);
    background: var(--field-plum);
    color: var(--fg);
    isolation: isolate;
  }
  .hello__stage::after {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: 4;
    background: var(--grain);
    opacity: var(--grain-strength);
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: hello-film var(--loop-film) steps(1) infinite;
    animation-play-state: var(--hello-film, running);
  }
  .hello__dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--fg);
    opacity: 0.7;
  }
  .hello__dot--a { left: 52%; top: 12%; }
  .hello__dot--b { left: 18%; top: 72%; }
  .hello__dot--c { left: 88%; top: 58%; }
  .hello__sparkle {
    position: absolute;
    width: 22px;
    fill: var(--fg);
    animation: hello-twinkle var(--loop-pulse) ease-in-out infinite alternate;
  }
  .hello__sparkle--a { left: 15%; top: 21%; }
  .hello__sparkle--b { left: 86%; top: 17%; width: 18px; animation-delay: -0.8s; }
  .hello__sparkle--c { left: 76%; top: 66%; width: 26px; animation-delay: -1.6s; }
  .hello__sparkle--d { left: 23%; top: 64%; width: 13px; animation-delay: -0.4s; }
  .hello__sparkle--e { left: 58%; top: 8%; width: 12px; animation-delay: -2s; }

  .hello__center {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    max-width: 100%;
    text-align: center;
  }
  .hello__line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.22em;
    margin: 0;
    color: var(--fg);
    font: 400 var(--text-giant) / var(--lead-tight) var(--font-chunky);
    letter-spacing: 0;
    cursor: pointer;
    user-select: none;
  }
  .hello__word {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
  }
  .hello__ch {
    display: inline-block;
    transform: translateY(var(--hello-y, 0em)) rotate(var(--hello-r, 0deg));
    transition: transform var(--t-settle) var(--ease-out);
    transition-delay: var(--hello-delay, 0ms);
  }
  .hello__ch--small {
    font-size: var(--small-cap);
  }
  .hello.is-knocked .hello__ch {
    transform: translateY(var(--hello-y0, 0.3em)) rotate(var(--hello-r0, 20deg));
    transition: none;
  }
  .hello__ch.is-wobbling {
    animation: hello-wobble 0.6s var(--ease-pop);
  }

  .hello__squiggle {
    width: clamp(180px, 33vw, 480px);
    margin-top: -0.04em;
    fill: none;
    stroke: var(--lav);
    stroke-width: 5;
    stroke-linecap: round;
  }
  .hello__squiggle path {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.9s var(--ease-out) 0.55s;
  }
  .hello.is-knocked .hello__squiggle path {
    stroke-dashoffset: 1;
    transition: none;
  }
  .hello__cap {
    max-width: 560px;
    margin: var(--space-l) 0 0;
    font: 550 var(--text-cap) / var(--lead-body) var(--font-ui);
    letter-spacing: var(--track-body);
    text-wrap: balance;
  }
  .hello__knock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: var(--space-l);
    padding: 0 16px;
    border: var(--line) solid var(--ink);
    border-radius: var(--r-hint);
    background: var(--white);
    box-shadow: var(--shadow-hint);
    color: var(--ink);
    font: 700 var(--text-pill) / 1 var(--font-ui);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out);
  }
  .hello__knock:hover {
    transform: translate(-1px, -1px) rotate(-2deg);
  }
  .hello__knock:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--ink);
  }
  .hello__knock:focus-visible {
    outline: var(--line) solid var(--sel);
    outline-offset: 3px;
  }
  .hello__knock-icon {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  @media (max-width: 40rem) {
    .hello__line { font-size: clamp(84px, 27vw, 140px); row-gap: 0.16em; }
    .hello__sparkle--c { left: 84%; top: 86%; }
    .hello__sparkle--d { left: 8%; top: 52%; }
  }

  @keyframes hello-film {
    0% { transform: translate(0, 0); }
    14% { transform: translate(-7%, 4%); }
    28% { transform: translate(5%, -6%); }
    42% { transform: translate(-3%, -8%); }
    57% { transform: translate(8%, 3%); }
    71% { transform: translate(-6%, 7%); }
    85% { transform: translate(4%, -2%); }
  }
  @keyframes hello-twinkle {
    from { transform: scale(0.7); opacity: 0.35; }
    to { transform: scale(1.1); opacity: 1; }
  }
  @keyframes hello-wobble {
    0% { rotate: 0deg; translate: 0 0; }
    30% { rotate: 14deg; translate: 0 -0.06em; }
    60% { rotate: -9deg; translate: 0 0.02em; }
    85% { rotate: 4deg; }
    100% { rotate: 0deg; translate: 0 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hello__stage::after,
    .hello__sparkle {
      animation: none;
    }
    .hello__ch.is-wobbling {
      animation: none;
    }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)');
    const SETTLED_ANGLES = [-4, 3, -2, 5, -3, 2, -5, 3, 4, -2, 3, -4];
    const SETTLED_DROPS = [0, -0.04, 0.03, 0, -0.05, 0.02, 0.04, -0.02, 0.03, -0.03, 0.05, 0];
    const KNOCKED_ANGLES = [-8, 33, -7, -25, -30, -32, 40, -39, -8, 20, 15, -10];
    const STAGGER_MS = 40;

    function knockedPose(index, shuffle) {
      if (!shuffle) return { angle: KNOCKED_ANGLES[index % KNOCKED_ANGLES.length], drop: 0.18 + (index % 3) * 0.1 };
      return { angle: Math.round(Math.random() * 80 - 40), drop: Math.random() * 0.4 - 0.1 };
    }

    function setPoses(letters, shuffle) {
      letters.forEach((letter, index) => {
        const pose = knockedPose(index, shuffle);
        letter.style.setProperty('--hello-r', `${SETTLED_ANGLES[index % SETTLED_ANGLES.length]}deg`);
        letter.style.setProperty('--hello-y', `${SETTLED_DROPS[index % SETTLED_DROPS.length]}em`);
        letter.style.setProperty('--hello-r0', `${pose.angle}deg`);
        letter.style.setProperty('--hello-y0', `${pose.drop}em`);
        letter.style.setProperty('--hello-delay', `${index * STAGGER_MS}ms`);
      });
    }

    function knock(root, letters, shuffle) {
      setPoses(letters, shuffle);
      if (still.matches) return;
      root.classList.add('is-knocked');
      root.getBoundingClientRect();
      requestAnimationFrame(() => requestAnimationFrame(() => root.classList.remove('is-knocked')));
    }

    function setUp(root) {
      const letters = [...root.querySelectorAll('.hello__ch')];
      setPoses(letters, false);
      if (!still.matches) root.classList.add('is-knocked');

      let landed = false;
      new IntersectionObserver(([entry]) => {
        if (entry.isIntersecting && !landed) {
          landed = true;
          requestAnimationFrame(() => root.classList.remove('is-knocked'));
        }
        root.querySelectorAll('.hello__sparkle').forEach((sparkle) => {
          sparkle.style.animationPlayState = entry.isIntersecting ? '' : 'paused';
        });
        root.querySelector('.hello__stage').style.setProperty('--hello-film', entry.isIntersecting ? 'running' : 'paused');
      }).observe(root);

      letters.forEach((letter) => {
        letter.addEventListener('pointerenter', () => {
          if (still.matches || root.classList.contains('is-knocked')) return;
          letter.classList.remove('is-wobbling');
          letter.getBoundingClientRect();
          letter.classList.add('is-wobbling');
        });
        letter.addEventListener('animationend', () => letter.classList.remove('is-wobbling'));
      });

      root.querySelector('.hello__line').addEventListener('click', () => knock(root, letters, true));
      root.querySelector('.hello__knock').addEventListener('click', () => knock(root, letters, true));
    }

    document.querySelectorAll('.hello').forEach(setUp);
  })();
</script>

Colour-changing scenes

Three scenes in one frame, each with its own field colour (purple, plum, blue), a chunky kicker, a giant word and an old picture cut out and tinted. A timer moves through them, a chapter ruler along the bottom jumps to one, a button pauses. Stops off screen.

Code
<section class="moods" aria-roledescription="carousel" aria-label="How I work, in three scenes">
  <div class="moods__stage is-purple">
    <span class="moods__dot moods__dot--a" aria-hidden="true"></span>
    <span class="moods__dot moods__dot--b" aria-hidden="true"></span>
    <span class="moods__dot moods__dot--c" aria-hidden="true"></span>
    <svg class="moods__sparkle moods__sparkle--a" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>
    <svg class="moods__sparkle moods__sparkle--b" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>
    <span class="moods__ball moods__ball--coral" aria-hidden="true"></span>
    <span class="moods__ball moods__ball--white" aria-hidden="true"></span>

    <ol class="moods__scenes">
      <li class="moods__scene is-active" data-field="is-purple" aria-label="1 of 3">
        <figure class="moods__cutout">
          <span class="moods__frame"><img class="moods__img" src="assets/eye-balloon.jpg" alt="An eye drifting over the sea as a hot-air balloon, in black ink" width="606" height="800"></span>
          <span class="moods__tape" aria-hidden="true"></span>
          <figcaption class="moods__slip">fig. 1, an idea floating off</figcaption>
        </figure>
        <p class="moods__kicker">FiRST <span class="moods__s">I</span></p>
        <h3 class="moods__word" aria-label="Dream."><span class="moods__ch" aria-hidden="true">D</span><span class="moods__ch" aria-hidden="true">R</span><span class="moods__ch moods__ch--small" aria-hidden="true">E</span><span class="moods__ch" aria-hidden="true">A</span><span class="moods__ch" aria-hidden="true">M</span><span class="moods__ch" aria-hidden="true">.</span></h3>
        <p class="moods__cap">Every project starts as a picture in my head that makes no sense yet. I let it float for a day.</p>
      </li>
      <li class="moods__scene" data-field="is-plum" aria-label="2 of 3">
        <figure class="moods__cutout">
          <span class="moods__frame"><img class="moods__img" src="assets/bass.jpg" alt="A big fish leaping out of dark water on a line" width="800" height="533"></span>
          <span class="moods__tape" aria-hidden="true"></span>
          <figcaption class="moods__slip">fig. 2, one that fought back</figcaption>
        </figure>
        <p class="moods__kicker">THeN <span class="moods__s">I</span></p>
        <h3 class="moods__word" aria-label="Catch."><span class="moods__ch" aria-hidden="true">C</span><span class="moods__ch" aria-hidden="true">A</span><span class="moods__ch" aria-hidden="true">T</span><span class="moods__ch moods__ch--small" aria-hidden="true">C</span><span class="moods__ch" aria-hidden="true">H</span><span class="moods__ch" aria-hidden="true">.</span></h3>
        <p class="moods__cap">I sketch fast and throw most of it back. The good ideas fight on the line, so I keep those.</p>
      </li>
      <li class="moods__scene" data-field="is-blue" aria-label="3 of 3">
        <figure class="moods__cutout">
          <span class="moods__frame"><img class="moods__img" src="assets/sail.jpg" alt="A sailing boat being rigged on calm water" width="800" height="568"></span>
          <span class="moods__tape" aria-hidden="true"></span>
          <figcaption class="moods__slip">fig. 3, leaving the harbour</figcaption>
        </figure>
        <p class="moods__kicker">AND <span class="moods__s">I</span></p>
        <h3 class="moods__word" aria-label="Ship."><span class="moods__ch" aria-hidden="true">S</span><span class="moods__ch" aria-hidden="true">H</span><span class="moods__ch moods__ch--small" aria-hidden="true">I</span><span class="moods__ch" aria-hidden="true">P</span><span class="moods__ch" aria-hidden="true">.</span></h3>
        <p class="moods__cap">Then it leaves the harbour: tested with real people, written down, handed over with a map.</p>
      </li>
    </ol>

    <div class="moods__ruler">
      <button class="moods__play" type="button" aria-pressed="false" aria-label="Pause the scenes">
        <svg class="moods__play-icon" viewBox="0 0 16 16" aria-hidden="true"><path class="moods__pause-shape" d="M4 3h3v10H4zM9 3h3v10H9z" /><path class="moods__play-shape" d="M4 2.5l9 5.5-9 5.5z" /></svg>
      </button>
      <div class="moods__track">
        <span class="moods__ticks" aria-hidden="true"></span>
        <span class="moods__head" aria-hidden="true"></span>
        <button class="moods__chapter is-active" type="button" aria-current="true">Dream</button>
        <button class="moods__chapter" type="button">Catch</button>
        <button class="moods__chapter" type="button">Ship</button>
      </div>
    </div>
  </div>
</section>

<style>
  .moods {
    padding: var(--bezel);
    background: var(--frame);
  }
  .moods__stage {
    --moods-progress: 0;
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: clamp(580px, 58vw, 820px);
    overflow: hidden;
    border-radius: var(--r-stage);
    background: var(--field-purple);
    color: var(--fg);
    isolation: isolate;
    transition: background-color var(--t-wipe) var(--ease-wipe);
  }
  .moods__stage.is-plum { background-color: var(--field-plum); }
  .moods__stage.is-blue { background-color: var(--field-blue); }
  .moods__stage::after {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: 4;
    background: var(--grain);
    opacity: var(--grain-strength);
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: moods-film var(--loop-film) steps(1) infinite;
    animation-play-state: var(--moods-run, running);
  }

  .moods__dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--fg);
    opacity: 0.7;
  }
  .moods__dot--a { left: 12%; top: 14%; }
  .moods__dot--b { left: 46%; top: 7%; }
  .moods__dot--c { left: 30%; top: 70%; }
  .moods__sparkle {
    position: absolute;
    width: 18px;
    fill: var(--fg);
    animation: moods-twinkle var(--loop-pulse) ease-in-out infinite alternate;
    animation-play-state: var(--moods-run, running);
  }
  .moods__sparkle--a { left: 8%; top: 38%; }
  .moods__sparkle--b { left: 62%; top: 12%; width: 12px; animation-delay: -1.2s; }
  .moods__ball {
    position: absolute;
    border: var(--line) solid var(--ink);
    border-radius: 50%;
    animation: moods-bob 5.6s ease-in-out infinite alternate;
    animation-play-state: var(--moods-run, running);
  }
  .moods__ball--coral { left: 16%; top: 22%; width: 22px; height: 22px; background: var(--coral); }
  .moods__ball--white { left: 22%; top: 30%; width: 13px; height: 13px; background: var(--white); animation-duration: 4.4s; animation-delay: 0.7s; }

  .moods__scenes {
    display: grid;
    margin: 0;
    padding: var(--space-xl) var(--pad) var(--space-l);
    list-style: none;
  }
  .moods__scene {
    position: relative;
    grid-area: 1 / 1;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--t-height) ease, visibility 0s linear var(--t-height);
  }
  .moods__scene.is-active {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--t-height) ease 0.15s, visibility 0s;
  }
  .moods__kicker {
    margin: 0;
    font: var(--text-subhead) / 1 var(--font-chunky);
    letter-spacing: var(--track-kicker);
  }
  .moods__s {
    font-size: var(--small-cap);
  }
  .moods__word {
    margin: 0.04em 0 0;
    font: 400 var(--text-giant) / var(--lead-tight) var(--font-chunky);
    letter-spacing: 0;
    white-space: nowrap;
  }
  .moods__ch {
    display: inline-block;
    transform: translateY(var(--moods-y, 0em)) rotate(var(--moods-r, 0deg));
    transition: transform var(--t-settle) var(--ease-out);
    transition-delay: var(--moods-delay, 0ms);
  }
  .moods__ch--small {
    font-size: var(--small-cap);
  }
  .moods__scene.is-knocked .moods__ch {
    transform: translateY(var(--moods-y0, 0.3em)) rotate(var(--moods-r0, 20deg));
    transition: none;
  }
  .moods__cap {
    max-width: 560px;
    margin: var(--space-l) 0 0;
    font: 550 var(--text-cap) / var(--lead-body) var(--font-ui);
    letter-spacing: var(--track-body);
    text-wrap: balance;
  }

  /* An old picture, cut out and tinted */
  .moods__cutout {
    position: absolute;
    right: 4%;
    top: -4%;
    z-index: 1;
    width: clamp(120px, 19vw, 270px);
    margin: 0;
    transform: rotate(7deg);
  }
  .moods__frame {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--lav);
    box-shadow: var(--shadow-card);
  }
  .moods__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.25) brightness(1.08);
    mix-blend-mode: multiply;
  }
  .moods__tape {
    position: absolute;
    left: 50%;
    top: -6px;
    width: 42%;
    height: 22px;
    background: var(--white);
    opacity: 0.7;
    transform: translateX(-50%) rotate(-12deg);
  }
  .moods__slip {
    position: absolute;
    right: -10%;
    bottom: -6%;
    padding: 4px 8px;
    border: var(--line) solid var(--ink);
    border-radius: var(--r-tip);
    background: var(--white);
    color: var(--ink);
    font: 700 var(--text-tick) / 1.1 var(--font-ui);
    letter-spacing: 0.02em;
    white-space: nowrap;
    transform: rotate(-11deg);
  }

  /* The chapter ruler */
  .moods__ruler {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: var(--space-m);
    padding: 0 var(--pad) 14px;
  }
  .moods__play {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--chip-line);
    border-radius: 50%;
    background: var(--chip-bg);
    color: var(--fg);
    cursor: pointer;
  }
  .moods__play-icon {
    width: 14px;
    fill: currentColor;
  }
  .moods__play-shape,
  .moods.is-paused .moods__pause-shape {
    display: none;
  }
  .moods.is-paused .moods__play-shape {
    display: block;
  }
  .moods__track {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-width: 0;
  }
  .moods__ticks {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 9px;
    background: repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 10px);
    border-bottom: 1px solid var(--tick);
  }
  .moods__head {
    position: absolute;
    bottom: 0;
    left: calc(var(--moods-progress) * 100%);
    width: 2px;
    height: 18px;
    background: var(--fg);
  }
  .moods__chapter {
    min-height: 44px;
    padding: 0 0 14px;
    border: 0;
    background: none;
    color: var(--lav);
    font: 620 var(--text-tick) / 1 var(--font-ui);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--t-quick) ease;
  }
  .moods__chapter:hover,
  .moods__chapter.is-active {
    color: var(--fg);
  }
  .moods__chapter.is-active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
  .moods__chapter:focus-visible,
  .moods__play:focus-visible {
    outline: var(--line) solid var(--sel);
    outline-offset: 2px;
  }

  @media (max-width: 40rem) {
    .moods__scenes { padding-top: 150px; }
    .moods__cutout { right: auto; left: 50%; top: -128px; width: 128px; transform: translateX(-30%) rotate(7deg); }
    .moods__slip { right: auto; left: -40%; bottom: 4%; }
    .moods__word { font-size: clamp(84px, 26vw, 140px); }
    .moods__ball--coral { left: 10%; top: 10%; }
    .moods__ball--white { left: 18%; top: 16%; }
  }

  @keyframes moods-film {
    0% { transform: translate(0, 0); }
    14% { transform: translate(-7%, 4%); }
    28% { transform: translate(5%, -6%); }
    42% { transform: translate(-3%, -8%); }
    57% { transform: translate(8%, 3%); }
    71% { transform: translate(-6%, 7%); }
    85% { transform: translate(4%, -2%); }
  }
  @keyframes moods-twinkle {
    from { transform: scale(0.7); opacity: 0.35; }
    to { transform: scale(1.1); opacity: 1; }
  }
  @keyframes moods-bob {
    from { transform: translateY(-6px) rotate(-3deg); }
    to { transform: translateY(6px) rotate(3deg); }
  }

  @media (prefers-reduced-motion: reduce) {
    .moods__stage::after,
    .moods__sparkle,
    .moods__ball {
      animation: none;
    }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)');
    const SCENE_MS = 4500;
    const SETTLED_ANGLES = [-4, 3, -2, 5, -3, 2];
    const SETTLED_DROPS = [0, -0.04, 0.03, 0, -0.05, 0.02];

    function knock(scene) {
      scene.querySelectorAll('.moods__ch').forEach((letter, index) => {
        letter.style.setProperty('--moods-r', `${SETTLED_ANGLES[index % SETTLED_ANGLES.length]}deg`);
        letter.style.setProperty('--moods-y', `${SETTLED_DROPS[index % SETTLED_DROPS.length]}em`);
        letter.style.setProperty('--moods-r0', `${Math.round(Math.random() * 70 - 35)}deg`);
        letter.style.setProperty('--moods-y0', `${(0.15 + Math.random() * 0.3).toFixed(2)}em`);
        letter.style.setProperty('--moods-delay', `${120 + index * 40}ms`);
      });
      if (still.matches) return;
      scene.classList.add('is-knocked');
      scene.getBoundingClientRect();
      requestAnimationFrame(() => requestAnimationFrame(() => scene.classList.remove('is-knocked')));
    }

    function setUp(root) {
      const stage = root.querySelector('.moods__stage');
      const scenes = [...root.querySelectorAll('.moods__scene')];
      const chapters = [...root.querySelectorAll('.moods__chapter')];
      const play = root.querySelector('.moods__play');
      const fields = scenes.map((scene) => scene.dataset.field);
      let current = 0;
      let elapsed = 0;
      let last = 0;
      let frame = 0;
      let visible = false;
      let hovering = false;
      let paused = still.matches;

      const show = (index) => {
        current = (index + scenes.length) % scenes.length;
        elapsed = 0;
        stage.classList.remove(...fields);
        stage.classList.add(fields[current]);
        scenes.forEach((scene, i) => scene.classList.toggle('is-active', i === current));
        chapters.forEach((chapter, i) => {
          chapter.classList.toggle('is-active', i === current);
          chapter.toggleAttribute('aria-current', i === current);
        });
        knock(scenes[current]);
        drawProgress();
      };

      const drawProgress = () => {
        stage.style.setProperty('--moods-progress', ((current + elapsed / SCENE_MS) / scenes.length).toFixed(4));
      };

      const running = () => visible && !hovering && !paused;

      const tick = (now) => {
        elapsed += now - last;
        last = now;
        if (elapsed >= SCENE_MS) show(current + 1);
        drawProgress();
        frame = requestAnimationFrame(tick);
      };

      const update = () => {
        cancelAnimationFrame(frame);
        stage.style.setProperty('--moods-run', visible ? 'running' : 'paused');
        if (running()) {
          last = performance.now();
          frame = requestAnimationFrame(tick);
        }
      };

      const setPaused = (value) => {
        paused = value;
        root.classList.toggle('is-paused', paused);
        play.setAttribute('aria-pressed', String(paused));
        play.setAttribute('aria-label', paused ? 'Play the scenes' : 'Pause the scenes');
        update();
      };

      chapters.forEach((chapter, index) => chapter.addEventListener('click', () => { show(index); update(); }));
      play.addEventListener('click', () => setPaused(!paused));
      stage.addEventListener('pointerenter', () => { hovering = true; update(); });
      stage.addEventListener('pointerleave', () => { hovering = false; update(); });
      root.addEventListener('focusin', () => { hovering = true; update(); });
      root.addEventListener('focusout', () => { hovering = false; update(); });
      new IntersectionObserver(([entry]) => { visible = entry.isIntersecting; update(); }).observe(root);

      setPaused(paused);
      show(0);
    }

    document.querySelectorAll('.moods').forEach(setUp);
  })();
</script>

Thin-statement profile

An old photograph cut into an arch inside a selection box, a thin statement, a paragraph, three labelled columns (now, also, before), skill chips and underlined links, on a rose field.

Code
<section class="about" aria-label="About Juno">
  <div class="about__stage">
    <span class="about__dot about__dot--a" aria-hidden="true"></span>
    <span class="about__dot about__dot--b" aria-hidden="true"></span>
    <svg class="about__plane" viewBox="0 0 120 60" aria-hidden="true">
      <path class="about__trail" d="M4 52c14 -2 18 -16 30 -14s6 14 18 10s14 -22 30 -26" />
      <path class="about__paper" d="M86 22L116 4L104 34L96 26Z" />
    </svg>

    <figure class="about__portrait">
      <span class="about__sel">
        <span class="about__arch"><img class="about__img" src="assets/portrait.jpg" alt="An old albumen photograph of a young woman with long loose hair, looking straight at the camera" width="714" height="900"></span>
        <span class="about__handle about__handle--nw" aria-hidden="true"></span>
        <span class="about__handle about__handle--ne" aria-hidden="true"></span>
        <span class="about__handle about__handle--sw" aria-hidden="true"></span>
        <span class="about__handle about__handle--se" aria-hidden="true"></span>
        <em class="about__size" aria-hidden="true"><span class="about__file">portrait_1867.jpg</span> <span class="about__dims">0 × 0</span></em>
      </span>
      <svg class="about__fish" viewBox="-34 -20 60 40" aria-hidden="true">
        <path d="M-14 0L-30 -12L-26 0L-30 12Z" /><ellipse cx="0" cy="0" rx="18" ry="11.5" /><circle class="about__fish-eye" cx="9" cy="-3" r="2.6" />
      </svg>
      <svg class="about__sparkle" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>
      <figcaption class="about__slip">Portrait by J. M. Cameron, 1867.<br>I photograph badly, so she stands in.</figcaption>
    </figure>

    <div class="about__text">
      <p class="about__kicker">AB<span class="about__s">o</span>UT</p>
      <h2 class="about__statement">I care about the corners nobody asked me to draw.</h2>
      <p class="about__body">The empty states, the loading jokes, the error that apologises properly. I like getting into the weeds, because that is where a tool starts to feel like it was made for you.</p>

      <dl class="about__facts">
        <div class="about__fact">
          <dt class="about__label">Now</dt>
          <dd class="about__value">Design lead at Kettle &amp; Co., tools for kids who code</dd>
        </div>
        <div class="about__fact">
          <dt class="about__label">Also</dt>
          <dd class="about__value">A weekly comic about a goldfish in middle management</dd>
        </div>
        <div class="about__fact">
          <dt class="about__label">Before</dt>
          <dd class="about__value">Nine years across product, icons, motion and systems</dd>
        </div>
      </dl>

      <ul class="about__chips" aria-label="Tools and skills">
        <li class="about__chip">Figma</li>
        <li class="about__chip">Procreate</li>
        <li class="about__chip">Prototyping</li>
        <li class="about__chip">Design systems</li>
        <li class="about__chip">Illustration</li>
        <li class="about__chip">Motion</li>
        <li class="about__chip">Workshops</li>
      </ul>

      <p class="about__links">
        <a class="about__link" href="#">Read the sketchbook</a>
        <a class="about__link" href="#">Download CV</a>
      </p>
    </div>
    <span class="about__grain" aria-hidden="true"></span>
  </div>
</section>

<style>
  .about {
    padding: var(--bezel);
    background: var(--frame);
  }
  .about__stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: center;
    gap: var(--space-xl);
    min-height: clamp(560px, 56vw, 820px);
    padding: var(--space-xl) clamp(16px, 5vw, 96px);
    overflow: hidden;
    border-radius: var(--r-stage);
    background: var(--field-rose);
    color: var(--fg);
    isolation: isolate;
  }
  .about__grain {
    position: absolute;
    inset: -40%;
    z-index: 4;
    background: var(--grain);
    opacity: var(--grain-strength);
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: about-film var(--loop-film) steps(1) infinite;
  }
  .about__dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--fg);
    opacity: 0.7;
  }
  .about__dot--a { left: 46%; top: 9%; }
  .about__dot--b { left: 92%; top: 78%; }
  .about__plane {
    position: absolute;
    right: 5%;
    top: 8%;
    width: clamp(80px, 9vw, 130px);
    animation: about-glide 6s ease-in-out infinite alternate;
  }
  .about__trail {
    fill: none;
    stroke: var(--fg);
    stroke-width: 2;
    stroke-dasharray: 4 6;
    stroke-linecap: round;
  }
  .about__paper {
    fill: var(--white);
    stroke: var(--ink);
    stroke-width: 2.5;
    stroke-linejoin: round;
  }

  /* Portrait cut-out in a selection box */
  .about__portrait {
    position: relative;
    justify-self: center;
    width: min(100%, 380px);
    margin: 0;
  }
  .about__sel {
    position: relative;
    display: block;
    padding: 10px;
    border: var(--line) solid var(--sel);
    transform: rotate(-3deg);
  }
  .about__arch {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 999px 999px var(--r-card) var(--r-card);
    background: var(--lav);
    box-shadow: var(--shadow-card);
  }
  .about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    filter: grayscale(1) contrast(1.3) brightness(1.15);
    mix-blend-mode: multiply;
  }
  .about__handle {
    position: absolute;
    width: 10px;
    height: 10px;
    border: var(--line) solid var(--sel);
    background: var(--white);
  }
  .about__handle--nw { left: -6px; top: -6px; }
  .about__handle--ne { right: -6px; top: -6px; }
  .about__handle--sw { left: -6px; bottom: -6px; }
  .about__handle--se { right: -6px; bottom: -6px; }
  .about__size {
    position: absolute;
    left: -2px;
    bottom: calc(100% + 8px);
    display: flex;
    gap: 6px;
    font: var(--weight-ui) var(--text-label) / 1.2 var(--font-ui);
    font-style: normal;
    letter-spacing: var(--track-body);
    white-space: nowrap;
  }
  .about__file {
    color: var(--sel);
    filter: brightness(1.5);
  }
  .about__dims {
    padding: 2px 6px;
    border-radius: var(--r-label);
    background: var(--sel-deep);
    color: var(--white);
    font-variant-numeric: tabular-nums;
  }
  .about__fish {
    position: absolute;
    right: -8%;
    top: 34%;
    width: 72px;
    fill: var(--coral);
    stroke: var(--ink);
    stroke-width: 3.5;
    stroke-linejoin: round;
    animation: about-swim 3.4s ease-in-out infinite alternate;
  }
  .about__fish-eye {
    fill: var(--ink);
    stroke: none;
  }
  .about__sparkle {
    position: absolute;
    left: -6%;
    top: 14%;
    width: 30px;
    fill: var(--sun);
    stroke: var(--ink);
    stroke-width: 1.5;
    animation: about-twinkle var(--loop-pulse) ease-in-out infinite alternate;
  }
  .about__slip {
    position: relative;
    width: max-content;
    max-width: 100%;
    margin: -18px 0 0 auto;
    padding: 6px 10px;
    border: var(--line) solid var(--ink);
    border-radius: var(--r-tip);
    background: var(--white);
    box-shadow: var(--shadow-hint);
    color: var(--ink);
    font: 700 var(--text-tick) / 1.25 var(--font-ui);
    letter-spacing: 0.02em;
    transform: rotate(4deg);
  }

  /* Words */
  .about__text {
    max-width: 760px;
  }
  .about__kicker {
    margin: 0 0 var(--space-m);
    color: var(--lav);
    font: var(--text-kicker) / 1 var(--font-chunky);
    letter-spacing: var(--track-kicker);
  }
  .about__s {
    font-size: var(--small-cap);
  }
  .about__statement {
    margin: 0;
    font: 400 var(--text-statement) / var(--lead-statement) var(--font-thin);
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  .about__body {
    max-width: 600px;
    margin: var(--space-m) 0 0;
    font: var(--weight-body) var(--text-body) / var(--lead-body) var(--font-ui);
  }
  .about__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    margin: var(--space-l) 0 0;
    padding-top: var(--space-m);
    border-top: 1px solid var(--chip-line);
  }
  .about__label {
    margin-bottom: 4px;
    color: var(--lav);
    font: 650 var(--text-label) / 1.2 var(--font-ui);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .about__value {
    margin: 0;
    font: var(--weight-ui) var(--text-body) / 1.25 var(--font-ui);
  }
  .about__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: var(--space-l) 0 0;
    padding: 0;
    list-style: none;
  }
  .about__chip {
    padding: 5px 12px;
    border: 1px solid var(--chip-line);
    border-radius: var(--r-pill);
    background: var(--chip-bg);
    font: 550 var(--text-pill) / 1.2 var(--font-ui);
    letter-spacing: 0.02em;
  }
  .about__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-l);
    margin: var(--space-m) 0 0;
  }
  .about__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--lav);
    font: 700 var(--text-ui) / 1 var(--font-ui);
    letter-spacing: var(--track-ui);
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
    transition: color var(--t-quick) ease, background-size var(--t-quick) ease;
  }
  .about__link:hover,
  .about__link:focus-visible {
    color: var(--fg);
    background-size: 100% 2px;
  }
  .about__link:focus-visible {
    outline: var(--line) solid var(--sel);
    outline-offset: 2px;
  }

  @media (max-width: 52rem) {
    .about__stage {
      grid-template-columns: 1fr;
      gap: var(--space-l);
      padding-top: 72px;
    }
    .about__portrait { width: min(78%, 300px); }
  }
  @media (max-width: 40rem) {
    .about__facts { grid-template-columns: 1fr; }
  }

  @keyframes about-film {
    0% { transform: translate(0, 0); }
    14% { transform: translate(-7%, 4%); }
    28% { transform: translate(5%, -6%); }
    42% { transform: translate(-3%, -8%); }
    57% { transform: translate(8%, 3%); }
    71% { transform: translate(-6%, 7%); }
    85% { transform: translate(4%, -2%); }
  }
  @keyframes about-glide {
    from { transform: translate(-8px, 4px) rotate(-4deg); }
    to { transform: translate(6px, -4px) rotate(3deg); }
  }
  @keyframes about-swim {
    from { transform: translate(0, -6px) rotate(-8deg); }
    to { transform: translate(-10px, 6px) rotate(6deg); }
  }
  @keyframes about-twinkle {
    from { transform: scale(0.7) rotate(0deg); }
    to { transform: scale(1.1) rotate(20deg); }
  }

  @media (prefers-reduced-motion: reduce) {
    .about__grain,
    .about__plane,
    .about__fish,
    .about__sparkle {
      animation: none;
    }
  }
</style>

<script>
  (() => {
    function setUp(root) {
      const picture = root.querySelector('.about__arch');
      const dims = root.querySelector('.about__dims');
      new ResizeObserver(() => {
        dims.textContent = `${picture.offsetWidth} × ${picture.offsetHeight}`;
      }).observe(picture);

      new IntersectionObserver(([entry]) => {
        root.querySelectorAll('.about__grain, .about__plane, .about__fish, .about__sparkle').forEach((element) => {
          element.style.animationPlayState = entry.isIntersecting ? '' : 'paused';
        });
      }).observe(root);
    }

    document.querySelectorAll('.about').forEach(setUp);
  })();
</script>

Send-a-daydream form

Closing scene on the deep night field: chunky heading, three white card fields with hard shadows, a press-down send button that answers with a dream note, a copy-email chip with a tooltip and a cut-out goldfish print.

Code
<footer class="contact">
  <div class="contact__stage">
    <svg class="contact__rings" viewBox="0 0 800 800" aria-hidden="true">
      <circle cx="400" cy="400" r="140" /><circle cx="400" cy="400" r="230" /><circle cx="400" cy="400" r="330" />
    </svg>
    <span class="contact__dot contact__dot--a" aria-hidden="true"></span>
    <span class="contact__dot contact__dot--b" aria-hidden="true"></span>
    <span class="contact__dot contact__dot--c" aria-hidden="true"></span>
    <svg class="contact__birds" viewBox="0 0 120 40" aria-hidden="true">
      <path class="contact__bird" d="M6 28q8 -8 16 0q8 -8 16 0" />
      <path class="contact__bird" d="M50 12q7 -7 14 0q7 -7 14 0" />
      <path class="contact__bird" d="M88 26q6 -6 12 0q6 -6 12 0" />
    </svg>

    <div class="contact__intro">
      <h2 class="contact__title">SeND ME <span class="contact__s">A</span> DAYDReAM.</h2>
      <p class="contact__lede">Building something that deserves a mascot, or a tool people will actually enjoy? Tell me about it. I answer within two days, usually with a sketch.</p>

      <div class="contact__mail">
        <a class="contact__address" href="#">hello@pfeffer.example</a>
        <span class="contact__copy-wrap">
          <button class="contact__copy" type="button" aria-label="Copy the email address">
            <svg class="contact__copy-icon" viewBox="0 0 20 20" aria-hidden="true"><rect x="7" y="7" width="10" height="10" rx="2" /><path d="M13 4H5a2 2 0 0 0-2 2v8" /></svg>
          </button>
          <span class="contact__tip" role="status">Copied</span>
        </span>
      </div>

      <figure class="contact__cutout">
        <span class="contact__frame"><img class="contact__img" src="assets/goldfish.jpg" alt="A woodblock print of a woman holding up a glass bowl with goldfish" width="545" height="800"></span>
        <svg class="contact__sparkle" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z" /></svg>
      </figure>
    </div>

    <form class="contact__form" novalidate>
      <label class="contact__field">
        <span class="contact__label">Your name</span>
        <input class="contact__input" name="name" type="text" autocomplete="name" required placeholder="Ada">
      </label>
      <label class="contact__field">
        <span class="contact__label">Email</span>
        <input class="contact__input" name="email" type="email" autocomplete="email" required placeholder="ada@studio.example">
      </label>
      <label class="contact__field">
        <span class="contact__label">What should I daydream about?</span>
        <textarea class="contact__input contact__input--area" name="dream" rows="4" required placeholder="A calendar that knows when you need a nap..."></textarea>
      </label>
      <p class="contact__error" role="alert"></p>
      <div class="contact__actions">
        <button class="contact__send" type="submit">
          <svg class="contact__send-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 11L21 3L14 21L11 13Z" /></svg>
          Send the dream
        </button>
        <p class="contact__note" role="status">
          <svg class="contact__moon" viewBox="0 0 40 40" aria-hidden="true"><path d="M27 5a16 16 0 1 0 9 26A14 14 0 0 1 27 5z" /></svg>
          <span class="contact__note-text">Got it. I'll dream about it tonight.</span>
        </p>
      </div>
    </form>

    <div class="contact__foot">
      <p class="contact__fine">© 2027 Juno Pfeffer. Drawn by hand in Leipzig.</p>
      <nav class="contact__links" aria-label="Elsewhere">
        <a class="contact__link" href="#">Sketchbook</a>
        <a class="contact__link" href="#">Newsletter</a>
        <a class="contact__link" href="#">CV</a>
      </nav>
    </div>
    <span class="contact__grain" aria-hidden="true"></span>
  </div>
</footer>

<style>
  .contact {
    padding: var(--bezel);
    background: var(--frame);
  }
  .contact__stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-xl) clamp(32px, 6vw, 112px);
    min-height: clamp(600px, 56vw, 820px);
    padding: var(--space-xl) clamp(16px, 5vw, 96px) 0;
    overflow: hidden;
    border-radius: var(--r-stage);
    background: var(--field-night);
    color: var(--fg);
    isolation: isolate;
  }
  .contact__grain {
    position: absolute;
    inset: -40%;
    z-index: 4;
    background: var(--grain);
    opacity: var(--grain-strength);
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: contact-film var(--loop-film) steps(1) infinite;
  }
  .contact__rings {
    position: absolute;
    left: 25%;
    top: 50%;
    z-index: -1;
    width: min(900px, 120%);
    fill: none;
    stroke: var(--chip-bg);
    stroke-width: 2;
    transform: translate(-50%, -50%);
  }
  .contact__dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--fg);
    opacity: 0.7;
  }
  .contact__dot--a { left: 8%; top: 10%; }
  .contact__dot--b { left: 54%; top: 6%; }
  .contact__dot--c { left: 44%; top: 82%; }
  .contact__birds {
    position: absolute;
    right: 8%;
    top: 5%;
    width: 110px;
    fill: none;
    stroke: var(--fg);
    stroke-width: 2.5;
    stroke-linecap: round;
  }
  .contact__bird {
    transform-box: fill-box;
    transform-origin: center;
    animation: contact-flap 0.9s ease-in-out infinite alternate;
  }
  .contact__bird:nth-child(2) { animation-delay: -0.3s; }
  .contact__bird:nth-child(3) { animation-delay: -0.6s; }

  /* Left: heading, email, cut-out */
  .contact__intro {
    position: relative;
  }
  .contact__title {
    margin: 0;
    color: var(--white);
    font: 400 clamp(56px, 7.4vw, 112px) / 0.9 var(--font-chunky);
    letter-spacing: 0.01em;
  }
  .contact__s {
    font-size: var(--small-cap);
  }
  .contact__lede {
    max-width: 440px;
    margin: var(--space-m) 0 0;
    color: var(--lav);
    font: 550 var(--text-cap) / var(--lead-body) var(--font-ui);
  }
  .contact__mail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: var(--space-m);
  }
  .contact__address {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--lav);
    font: 700 18.9px / 1 var(--font-ui);
    letter-spacing: var(--track-ui);
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
    transition: color var(--t-quick) ease;
  }
  .contact__address:hover,
  .contact__address:focus-visible {
    color: var(--fg);
  }
  .contact__copy-wrap {
    position: relative;
  }
  .contact__copy {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--lav);
    cursor: pointer;
    transition: background var(--t-quick) ease, color var(--t-quick) ease;
  }
  .contact__copy:hover {
    background: var(--chip-bg);
    color: var(--fg);
  }
  .contact__copy-icon {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
  }
  .contact__tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    padding: 4px 8px;
    border-radius: var(--r-tip);
    background: var(--white);
    color: var(--ink);
    font: 700 var(--text-tick) / 1.2 var(--font-ui);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translate(-50%, 4px) scale(0.8);
    transition: opacity var(--t-quick) ease, transform var(--t-quick) var(--ease-pop);
    pointer-events: none;
  }
  .contact.is-copied .contact__tip {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  .contact__cutout {
    position: absolute;
    right: 0;
    bottom: -12px;
    width: clamp(96px, 11vw, 150px);
    margin: 0;
    transform: rotate(-8deg);
  }
  .contact__frame {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--mint);
    box-shadow: var(--shadow-card);
  }
  .contact__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 16%;
    filter: grayscale(1) contrast(1.3);
    mix-blend-mode: multiply;
  }
  .contact__sparkle {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 30px;
    fill: var(--coral);
    stroke: var(--ink);
    stroke-width: 1.5;
  }

  /* Right: the form */
  .contact__form {
    display: grid;
    gap: var(--space-m);
  }
  .contact__field {
    display: grid;
    gap: 6px;
  }
  .contact__label {
    font: 700 var(--text-pill) / 1.2 var(--font-ui);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .contact__input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: var(--line) solid var(--ink);
    border-radius: var(--r-card);
    background: var(--white);
    box-shadow: var(--shadow-card);
    color: var(--ink);
    font: var(--weight-body) var(--text-body) / 1.3 var(--font-ui);
    letter-spacing: var(--track-body);
    transition: box-shadow var(--t-quick) var(--ease-out), transform var(--t-quick) var(--ease-out);
  }
  .contact__input::placeholder {
    color: var(--ink);
    opacity: 0.4;
  }
  .contact__input:focus {
    outline: var(--line) solid var(--sel);
    outline-offset: 3px;
    box-shadow: 6px 6px 0 var(--ink);
    transform: translate(-2px, -2px);
  }
  .contact__input--area {
    resize: vertical;
  }
  .contact__field.is-invalid .contact__input {
    box-shadow: 4px 4px 0 var(--coral);
  }
  .contact__error {
    min-height: 1.2em;
    margin: 0;
    color: var(--sun);
    font: 700 var(--text-pill) / 1.2 var(--font-ui);
  }
  .contact__actions {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 64px;
  }
  .contact__send {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border: var(--line) solid var(--ink);
    border-radius: var(--r-pill);
    background: var(--white);
    box-shadow: var(--shadow-card);
    color: var(--ink);
    font: 400 22px / 1 var(--font-chunky);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out), opacity var(--t-height) ease;
  }
  .contact__send:hover {
    transform: translate(-2px, -2px) rotate(-1.5deg);
    box-shadow: 6px 6px 0 var(--ink);
  }
  .contact__send:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--ink);
  }
  .contact__send:focus-visible {
    outline: var(--line) solid var(--sel);
    outline-offset: 3px;
  }
  .contact__send-icon {
    width: 20px;
    fill: var(--coral);
    stroke: var(--ink);
    stroke-width: 2;
    stroke-linejoin: round;
  }
  .contact__note {
    position: absolute;
    left: 0;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 16px 10px 10px;
    border: var(--line) solid var(--ink);
    border-radius: var(--r-card);
    background: var(--white);
    box-shadow: var(--shadow-card);
    color: var(--ink);
    font: var(--weight-ui) var(--text-body) / 1.1 var(--font-ui);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-50%) rotate(-5deg) scale(0.6);
    transition: opacity var(--t-height) ease, transform var(--t-pop) var(--ease-pop), visibility 0s linear var(--t-pop);
  }
  .contact__moon {
    flex: none;
    width: 34px;
    fill: var(--sun);
    stroke: var(--ink);
    stroke-width: 2.5;
    stroke-linejoin: round;
  }
  .contact.is-sent .contact__send {
    visibility: hidden;
    opacity: 0;
  }
  .contact.is-sent .contact__note {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) rotate(-5deg) scale(1);
    transition: opacity var(--t-height) ease, transform var(--t-pop) var(--ease-pop), visibility 0s;
  }

  /* Bottom line */
  .contact__foot {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 var(--gap);
    padding: 8px 0 10px;
    border-top: 1px solid var(--tick);
  }
  .contact__fine {
    margin: 0;
    color: var(--lav);
    font: var(--weight-ui) var(--text-tick) / 1.4 var(--font-ui);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .contact__links {
    display: flex;
    gap: var(--space-l);
  }
  .contact__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: var(--fg);
    font: var(--weight-ui) var(--text-tick) / 1 var(--font-ui);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .contact__link:hover,
  .contact__link:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
  .contact__address:focus-visible,
  .contact__copy:focus-visible,
  .contact__link:focus-visible {
    outline: var(--line) solid var(--sel);
    outline-offset: 2px;
  }

  @media (max-width: 52rem) {
    .contact__stage {
      grid-template-columns: 1fr;
      gap: var(--space-l);
    }
    .contact__cutout {
      top: -36px;
      bottom: auto;
      width: 92px;
    }
    .contact__title {
      padding-right: 84px;
    }
  }

  @keyframes contact-film {
    0% { transform: translate(0, 0); }
    14% { transform: translate(-7%, 4%); }
    28% { transform: translate(5%, -6%); }
    42% { transform: translate(-3%, -8%); }
    57% { transform: translate(8%, 3%); }
    71% { transform: translate(-6%, 7%); }
    85% { transform: translate(4%, -2%); }
  }
  @keyframes contact-flap {
    from { transform: scaleY(1); }
    to { transform: scaleY(0.45); }
  }

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

<script>
  (() => {
    const TIP_MS = 1400;

    function firstName(value) {
      return value.trim().split(/\s+/)[0];
    }

    function showProblems(form, error) {
      const invalid = [...form.querySelectorAll('.contact__input')].filter((input) => !input.checkValidity());
      form.querySelectorAll('.contact__field').forEach((field) => {
        field.classList.toggle('is-invalid', invalid.includes(field.querySelector('.contact__input')));
      });
      error.textContent = invalid.length ? 'A name, an email and one small dream, please.' : '';
      if (invalid.length) invalid[0].focus();
      return invalid.length === 0;
    }

    function setUp(root) {
      const form = root.querySelector('.contact__form');
      const error = root.querySelector('.contact__error');
      const noteText = root.querySelector('.contact__note-text');
      const address = root.querySelector('.contact__address');
      let tipTimer = 0;

      form.addEventListener('submit', (event) => {
        event.preventDefault();
        if (!showProblems(form, error)) return;
        const name = firstName(form.elements.name.value);
        noteText.textContent = `Got it, ${name}. I'll dream about it tonight.`;
        root.classList.add('is-sent');
        form.reset();
      });
      form.addEventListener('input', () => root.classList.remove('is-sent'));

      root.querySelector('.contact__copy').addEventListener('click', async () => {
        try {
          await navigator.clipboard.writeText(address.textContent.trim());
        } catch {
          getSelection().selectAllChildren(address);
        }
        root.classList.add('is-copied');
        clearTimeout(tipTimer);
        tipTimer = setTimeout(() => root.classList.remove('is-copied'), TIP_MS);
      });

      new IntersectionObserver(([entry]) => {
        root.querySelectorAll('.contact__grain, .contact__bird').forEach((element) => {
          element.style.animationPlayState = entry.isIntersecting ? '' : 'paused';
        });
      }).observe(root);
    }

    document.querySelectorAll('.contact').forEach(setUp);
  })();
</script>

Style

  • --frame #000000
  • --fg #f4f2ff
  • --lav #babafb
  • --white #ffffff
  • --ink #121018
  • --field-purple #545388
  • --field-plum #7b3f6e
  • --field-blue #3e5591
  • --field-rose #8a3d4e
  • --field-night #36345a
  • --sel #0d99ff
  • --sel-deep #0a6fc2
  • --mint #99d5d6
  • --go #3dbe63
  • --go-ring rgba(19, 138, 54, 0.55)
  • --coral #e8607a
  • --sun #f2c14e
  • --ball-blue #5865e8
  • --skin #7e7bc0
  • --skin-shade #5f5c9c
  • --sweater #17152a
  • --water rgba(150, 205, 255, 0.34)
  • --glass rgba(255, 255, 255, 0.1)
  • --chip-bg rgba(255, 255, 255, 0.08)
  • --chip-line rgba(244, 242, 255, 0.3)
  • --tick rgba(255, 255, 255, 0.2)

Type

  • Italiana for the name in the selection box, the thin phrase under it and long statements, at 400, stands in for a licensed tall, thin, high-contrast display face for the name, and a condensed high-contrast serif for statements
  • Anton for giant knocked-about caps, kickers and small shouty heads, with some letters shrunk to 74 percent, stands in for a licensed chunky condensed grotesk set in caps with shrunken letters mixed in
  • Big Shoulders for everything else: nav and brand at 600 to 800 in caps, pills at 550, captions and paragraphs at 500, stands in for the same narrow grotesk the site uses for its interface and copy

Motion

  • Print grain over every field jumps to a new offset every 0.1 s, stepped, in a 0.7 s loop, like film.
  • The open-to-work dot sends out a green ring from 0 to 9 px and fades, 2.4 s, ease, endless.
  • Equaliser bars in the sound chip rise from 3 to 10 px and back, 1.6 s ease-in-out, each bar at its own delay; they lie flat while sound is off.
  • The 'click for sound' bubble floats 3 px down and back, 2.4 s ease-in-out after a 0.5 s delay, and pops away (opacity 0.35 s, transform 0.45 s with overshoot) after the first click.
  • The named cursor drifts on a diagonal near the selection box's corner, about 46 by 29 px, one full swing in 2.6 s, sine eased; it stops off screen.
  • Selection handles drag to resize the name; the size label reports the box's real size on every change.
  • Giant letters arrive knocked over (up to 40 degrees off and dropped) and settle to their own small angle, 0.5 s cubic-bezier(0.2, 0.8, 0.2, 1), 40 ms apart; a hovered letter wobbles with overshoot in 0.6 s.
  • The hand-drawn squiggle under the giant words draws itself in 0.9 s once the letters land.
  • Four-point sparkles twinkle from 70 to 110 percent and 35 to 100 percent opacity, 2.4 s ease-in-out, alternating.
  • Scenes change field colour (purple, plum, blue) in 0.7 s cubic-bezier(0.7, 0, 0.2, 1); a timer advances every 4.5 s, pauses on hover, focus or off screen, and never runs under reduced motion.
  • Floating doodles bob 6 px and tilt 3 degrees, 3.8 to 6.8 s each, alternating; birds flap by squashing to 45 percent height.
  • The character never stands still: goldfish circle her head, bubbles rise, the water sloshes, the net sways, steam curls and she blinks every few seconds; a click sends a fish leaping into the net.
  • Under reduced motion everything is drawn in its settled pose and nothing loops.

Rules

  • Every block is one scene: a flat dusty field with grain inside a 12 px black frame with 22 px inner corners. Scenes change colour, never pattern.
  • Type sits straight on the field with no panels; white cards appear only as hint bubbles, dream notes and form fields, with a 2 px black border and a hard 3 to 4 px offset shadow.
  • The name is thin, tall and white, wrapped in a 2 px design-tool blue selection box with four square handles, a size label and a cursor with a name tag.
  • Shouting is done in chunky condensed caps with a few letters shrunk to 74 percent, each letter knocked to its own small angle and offset.
  • Thin statements are in sentence case with tight leading; chunky words are in caps and end with a full stop.
  • Drawings are flat: thick near-black outlines, flat fills from the field's own family plus coral, sun yellow and a blue ball, no gradients, grain on top.
  • Small UI lives at the edges: brand and an open-to-work pill top left, a sound chip and three nav words top right, a mint tab stuck to the right edge, a chapter ruler along the bottom.
  • Old pictures enter as cut-outs: grayscale, multiplied onto a pale disc, in a black outline, tilted, with a drawn sparkle on them.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Big+Shoulders:wght@400..900&family=Italiana&display=swap");

:root {
  /* Colour: one dusty field per scene, pale violet type, a thick black frame, design-tool blue for selections. */
  --frame: #000000; /* page behind the scenes and the thick rounded frame around each one */
  --fg: #f4f2ff; /* main text on the fields */
  --lav: #babafb; /* soft text: kickers, phrases, links, squiggles */
  --white: #ffffff; /* the thin display name, cards, hint bubbles */
  --ink: #121018; /* drawing outlines, text on white cards, hard card shadows */
  --field-purple: #545388; /* first scene field */
  --field-plum: #7b3f6e; /* second scene field */
  --field-blue: #3e5591; /* third scene field */
  --field-rose: #8a3d4e; /* about scene field */
  --field-night: #36345a; /* closing scene field, the deep dream */
  --sel: #0d99ff; /* selection box outline, handles, cursor */
  --sel-deep: #0a6fc2; /* size label and cursor name tag */
  --mint: #99d5d6; /* the vertical tab stuck to the right edge */
  --go: #3dbe63; /* open-to-work dot */
  --go-ring: rgba(19, 138, 54, 0.55); /* pulse ring around the open-to-work dot */
  --coral: #e8607a; /* goldfish, cheeks, floating balls */
  --sun: #f2c14e; /* mug, moon, warm sparks */
  --ball-blue: #5865e8; /* floating blue ball, net mesh tint */
  --skin: #7e7bc0; /* the drawn character's skin, a lighter field */
  --skin-shade: #5f5c9c; /* ears and shadow side of the character */
  --sweater: #17152a; /* the character's dark sweater */
  --water: rgba(150, 205, 255, 0.34); /* water inside the fishbowl */
  --glass: rgba(255, 255, 255, 0.1); /* fishbowl glass tint */
  --chip-bg: rgba(255, 255, 255, 0.08); /* pills and chips on a field */
  --chip-line: rgba(244, 242, 255, 0.3); /* pill and chip outline */
  --tick: rgba(255, 255, 255, 0.2); /* chapter ruler ticks and hint line */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='3 0 0 0 -1 3 0 0 0 -1 3 0 0 0 -1 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); /* print grain tile laid over every field */
  --grain-strength: 0.16; /* opacity of the grain layer */

  /* Type: a tall thin display for names and statements, chunky condensed caps for shouting, a narrow grotesk for everything else. */
  --font-thin: "Italiana", "Didot", serif; /* the name in the selection box, phrases, long statements */
  --font-chunky: "Anton", "Impact", sans-serif; /* giant knocked-about caps, kickers, small shouty heads */
  --font-ui: "Big Shoulders", "Arial Narrow", sans-serif; /* nav, pills, captions, body copy */
  --text-name: clamp(48px, 13vw, 200px); /* the name: 216 px at 1440 on the site, set a little smaller because this face runs wider */
  --text-giant: clamp(68px, 19vw, 274px); /* knocked-about caps, 273.6 px at 1440 */
  --text-statement: clamp(38px, 5.4vw, 78px); /* thin statements, 77.76 px at 1440 */
  --text-phrase: clamp(26px, 3.6vw, 52px); /* thin phrase under the name, 51.84 px at 1440 */
  --text-subhead: clamp(30px, 3vw, 43px); /* chunky kickers over giant words, 43.2 px */
  --text-kicker: clamp(18px, 1.7vw, 24.5px); /* chunky kicker over the name, 24.48 px */
  --text-cap: clamp(18px, 1.6vw, 23px); /* captions under giant words, 23 px */
  --text-role: 19.8px; /* role lines on the character */
  --text-ui: 18px; /* nav, brand, links */
  --text-body: 18px; /* paragraphs and fields */
  --text-pill: 15px; /* pills and hint bubbles */
  --text-tick: 13px; /* chapter ruler labels and tooltips */
  --text-label: 12px; /* size label, name tag, column labels */
  --small-cap: 0.74em; /* the shrunken letters mixed into chunky caps */
  --lead-tight: 0.86; /* the name and giant caps */
  --lead-statement: 0.98; /* thin statements */
  --lead-body: 1.35; /* paragraphs and captions */
  --track-ui: 0.03em; /* uppercase UI words, 0.54 px at 18 px */
  --track-body: 0.012em; /* running text, 0.192 px at 16 px */
  --track-kicker: 0.04em; /* chunky kickers */
  --track-name: -0.01em; /* the thin display name */
  --weight-ui: 600; /* nav and labels */
  --weight-brand: 800; /* brand and emphasis */
  --weight-body: 500; /* paragraphs */

  /* Shape and space. */
  --bezel: 12px; /* black frame width around each scene */
  --r-stage: 22px; /* scene corner inside the frame */
  --r-card: 14px; /* white cards and fields */
  --r-hint: 12px; /* hint bubbles */
  --r-tip: 6px; /* tooltips */
  --r-label: 4px; /* size label and name tag */
  --r-pill: 999px; /* pills and chips */
  --line: 2px; /* card borders, selection outline */
  --stroke: 5px; /* drawing outline weight at full size */
  --shadow-card: 4px 4px 0 var(--ink); /* hard offset shadow under cards */
  --shadow-hint: 3px 3px 0 var(--ink); /* hard offset shadow under hint bubbles */
  --pad: clamp(16px, 2.2vw, 32px); /* inner padding of a scene */
  --gap: clamp(12px, 1.6vw, 24px); /* gaps between items */
  --space-s: 8px; /* small step */
  --space-m: 16px; /* medium step */
  --space-l: 32px; /* large step */
  --space-xl: 64px; /* scene breathing room */

  /* Motion, measured on the source. */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1); /* settle: letters, cursor, slide-outs */
  --ease-pop: cubic-bezier(0.2, 0.9, 0.3, 1.4); /* overshoot: hint bubbles, wobble, tooltips */
  --ease-wipe: cubic-bezier(0.7, 0, 0.2, 1); /* scene change */
  --ease-drip: cubic-bezier(0.6, 0, 0.3, 1); /* the falling hint line */
  --t-quick: 0.2s; /* hover colour, underline, tooltip */
  --t-height: 0.35s; /* opening and fading */
  --t-pop: 0.45s; /* bubble pop */
  --t-settle: 0.5s; /* letters settling */
  --t-wipe: 0.7s; /* field colour change */
  --loop-film: 0.7s; /* grain jitter, stepped */
  --loop-eq: 1.6s; /* equaliser bars */
  --loop-pulse: 2.4s; /* open-to-work ring, twinkles, hint float */
  --loop-drip: 1.8s; /* hint line */
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--frame); color: var(--fg); font: var(--weight-body) var(--text-body)/var(--lead-body) var(--font-ui); letter-spacing: var(--track-body); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

For your agent

Use the kitbash MCP server at https://kitbash.me/mcp. Call get_pack("lid-off-daydream"), 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