kitbash Sign in Connect agent
Components

Staggered work grid

Eight project cards in two halves set at different heights: name and note, a loud picture (drawn cartoons, warped mirrored lettering, a painting, a poster, a map, a toy, a nebula), the year along the picture's edge, roles and VIEW. Hover draws a blue line and swaps the diagonal arrow; drawn pictures speed up.

Part of the style

Quiet Page, Loud Work

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #958260;
  --ink: #1c0e05;
  --ink-head: #352316;
  --grey: #281b03;
  --rule: #806f50;
  --frame: #1c0e05;
  --pic-white: #958260;
  --accent: #735e3b;
  --pic-violet: #8a7a61;
  --pic-pink: #a08262;
  --pic-pink-deep: #997c5d;
  --pic-green: #9c8270;
  --pic-green-deep: #8f7c6f;
  --accent-2: #97805d;
  --pic-yellow: #947e5c;
  --pic-orange: #927b57;
  --pic-teal: #a08262;
  --pic-teal-deep: #99836b;
}
</style>

<section class="work" aria-labelledby="work-title">
  <h2 class="work__title" id="work-title">Things we made</h2>

  <div class="work__grid">
    <!-- 1 left: drawn, a frog playing the saxophone -->
    <article class="work__card work__card--portrait">
      <a class="work__link" href="#">
        <header class="work__head">
          <h3 class="work__name">Basement Frog Jazz</h3>
          <p class="work__note">Booking site for a club<br />under a bakery</p>
        </header>
        <figure class="work__pic work__pic--drawn">
          <svg class="work__frog" viewBox="0 0 300 393" role="img" aria-label="Flat cartoon: a green frog in a pink bow tie plays a yellow saxophone on a teal stage at night, notes floating out">
            <rect width="300" height="393" class="work__fill-frame" />
            <g class="work__stars">
              <path d="M38 40l7-7M250 58l7-7M92 96l7-7M214 18l7-7M30 170l7-7M268 150l7-7M120 30l7-7M178 76l7-7" />
            </g>
            <circle class="work__fill-yellow work__ink" cx="246" cy="64" r="26" />
            <circle class="work__fill-frame" cx="258" cy="56" r="24" />
            <path class="work__fill-teal-deep work__ink" d="M-4 330c40-26 70-8 104-18s58-34 98-22 72 26 106 10v97H-4z" />
            <path class="work__fill-teal work__ink" d="M-4 352c34-16 62 4 96-6s62-26 100-14 70 22 112 4v61H-4z" />
            <path class="work__wave-line" d="M30 372c14-8 26-8 40 0M182 366c14-8 26-8 40 0" />
            <g class="work__frog-body">
              <ellipse class="work__fill-green-deep work__ink" cx="112" cy="330" rx="34" ry="12" />
              <ellipse class="work__fill-green-deep work__ink" cx="190" cy="330" rx="34" ry="12" />
              <ellipse class="work__fill-green work__ink" cx="150" cy="262" rx="64" ry="72" />
              <ellipse class="work__fill-white" cx="150" cy="276" rx="40" ry="46" opacity="0.92" />
              <circle class="work__fill-green-deep" cx="112" cy="232" r="6" />
              <circle class="work__fill-green-deep" cx="196" cy="300" r="5" />
              <ellipse class="work__fill-green work__ink" cx="150" cy="168" rx="62" ry="42" />
              <g class="work__eye">
                <circle class="work__fill-green work__ink" cx="116" cy="132" r="22" />
                <circle class="work__fill-white work__ink" cx="116" cy="132" r="14" />
                <circle class="work__fill-frame work__pupil" cx="119" cy="134" r="6" />
              </g>
              <g class="work__eye">
                <circle class="work__fill-green work__ink" cx="184" cy="132" r="22" />
                <circle class="work__fill-white work__ink" cx="184" cy="132" r="14" />
                <circle class="work__fill-frame work__pupil" cx="187" cy="134" r="6" />
              </g>
              <circle class="work__fill-pink" cx="104" cy="178" r="9" opacity="0.85" />
              <circle class="work__fill-pink" cx="196" cy="178" r="9" opacity="0.85" />
              <path class="work__ink-line" d="M124 186c10 8 18 10 26 10" />
              <path class="work__fill-pink work__ink" d="M150 214l-26-14v28zM150 214l26-14v28z" />
              <circle class="work__fill-pink work__ink" cx="150" cy="214" r="6" />
              <!-- the saxophone: a black outline under a brass stroke -->
              <path class="work__sax-outline" d="M156 196c2 30 2 56 8 82 6 24 26 34 44 22 12-8 14-26 12-40" />
              <path class="work__sax" d="M156 196c2 30 2 56 8 82 6 24 26 34 44 22 12-8 14-26 12-40" />
              <path class="work__fill-yellow work__ink" d="M206 262l30-18 4 10-26 20z" />
              <circle class="work__fill-frame" cx="166" cy="236" r="3.5" />
              <circle class="work__fill-frame" cx="168" cy="254" r="3.5" />
              <circle class="work__fill-frame" cx="172" cy="272" r="3.5" />
              <path class="work__arm-outline" d="M96 236c16 22 40 26 66 6M206 236c-10 22-24 34-40 36" />
              <path class="work__arm" d="M96 236c16 22 40 26 66 6M206 236c-10 22-24 34-40 36" />
            </g>
            <g class="work__notes">
              <g class="work__tune work__tune--a"><ellipse class="work__fill-white" cx="232" cy="232" rx="7" ry="5" transform="rotate(-20 232 232)" /><path class="work__stem" d="M238.5 230v-26l10 4" /></g>
              <g class="work__tune work__tune--b"><ellipse class="work__fill-pink" cx="226" cy="238" rx="7" ry="5" transform="rotate(-20 226 238)" /><ellipse class="work__fill-pink" cx="246" cy="234" rx="7" ry="5" transform="rotate(-20 246 234)" /><path class="work__stem work__stem--pink" d="M232.5 236v-26l20 -4v26" /></g>
              <g class="work__tune work__tune--c"><ellipse class="work__fill-orange" cx="240" cy="242" rx="7" ry="5" transform="rotate(-20 240 242)" /><path class="work__stem work__stem--orange" d="M246.5 240v-26" /></g>
            </g>
          </svg>
        </figure>
        <span class="work__year">2026</span>
        <footer class="work__meta">
          <span class="work__roles">Design / Development</span>
          <span class="work__view">View
            <span class="work__arrows" aria-hidden="true">
              <svg class="work__arrow work__arrow--out" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
              <svg class="work__arrow work__arrow--in" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
            </span>
          </span>
          <span class="work__line" aria-hidden="true"></span>
        </footer>
      </a>
    </article>

    <!-- 1 right: a painting -->
    <article class="work__card work__card--wide">
      <a class="work__link" href="#">
        <header class="work__head">
          <h3 class="work__name">Feast Day Festival</h3>
          <p class="work__note">A ticket shop dressed<br />as a painting</p>
        </header>
        <figure class="work__pic">
          <img src="assets/day-of-the-god.jpg" alt="Gauguin's Day of the God: bathers on pink sand by a blue sea, an idol under a tree" width="1100" height="821" loading="lazy" />
        </figure>
        <span class="work__year">2026</span>
        <footer class="work__meta">
          <span class="work__roles">Design / Development (in progress)</span>
          <span class="work__view">View
            <span class="work__arrows" aria-hidden="true">
              <svg class="work__arrow work__arrow--out" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
              <svg class="work__arrow work__arrow--in" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
            </span>
          </span>
          <span class="work__line" aria-hidden="true"></span>
        </footer>
      </a>
    </article>

    <!-- 2 left: lettering, mirrored and warped -->
    <article class="work__card work__card--wide work__card--drop">
      <a class="work__link" href="#">
        <header class="work__head">
          <h3 class="work__name">Mirage Parfums</h3>
          <p class="work__note">Launch site,<br />scent by scent</p>
        </header>
        <figure class="work__pic work__pic--drawn">
          <svg class="work__mirage" viewBox="0 0 480 300" role="img" aria-label="Lettering: the word Mirage in tall white letters on black, mirrored above and below and warped like heat haze">
            <defs>
              <filter id="work-warp" x="-5%" y="-5%" width="110%" height="110%">
                <feTurbulence class="work__warp-noise" type="fractalNoise" baseFrequency="0.008 0.03" numOctaves="2" seed="4" result="noise" />
                <feDisplacementMap class="work__warp-map" in="SourceGraphic" in2="noise" scale="18" xChannelSelector="R" yChannelSelector="G" />
              </filter>
            </defs>
            <rect width="480" height="300" class="work__fill-frame" />
            <g filter="url(#work-warp)" class="work__fill-white">
              <text class="work__word" x="240" y="40" transform="scale(1 -1)" text-anchor="middle" textLength="440" lengthAdjust="spacingAndGlyphs">MIRAGE</text>
              <text class="work__word" x="240" y="190" text-anchor="middle" textLength="440" lengthAdjust="spacingAndGlyphs">MIRAGE</text>
              <text class="work__word" x="240" y="-204" transform="scale(1 -1)" text-anchor="middle" textLength="440" lengthAdjust="spacingAndGlyphs">MIRAGE</text>
              <rect x="22" y="196" width="436" height="4" />
              <rect x="22" y="74" width="436" height="3" />
            </g>
          </svg>
        </figure>
        <span class="work__year">2025</span>
        <footer class="work__meta">
          <span class="work__roles">Art direction / Development</span>
          <span class="work__view">View
            <span class="work__arrows" aria-hidden="true">
              <svg class="work__arrow work__arrow--out" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
              <svg class="work__arrow work__arrow--in" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
            </span>
          </span>
          <span class="work__line" aria-hidden="true"></span>
        </footer>
      </a>
    </article>

    <!-- 2 right: a saturated photograph -->
    <article class="work__card work__card--wide work__card--short">
      <a class="work__link" href="#">
        <header class="work__head">
          <h3 class="work__name">Deep Field Radio</h3>
          <p class="work__note">Night broadcasts<br />from the observatory</p>
        </header>
        <figure class="work__pic">
          <img src="assets/star-forming-complex.jpg" alt="Hubble photograph of a star-forming cloud: violet and rose gas lit by thousands of stars" width="1000" height="899" loading="lazy" />
        </figure>
        <span class="work__year">2025</span>
        <footer class="work__meta">
          <span class="work__roles">Development</span>
          <span class="work__view">View
            <span class="work__arrows" aria-hidden="true">
              <svg class="work__arrow work__arrow--out" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
              <svg class="work__arrow work__arrow--in" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
            </span>
          </span>
          <span class="work__line" aria-hidden="true"></span>
        </footer>
      </a>
    </article>

    <!-- 3 left: a map -->
    <article class="work__card work__card--wide">
      <a class="work__link" href="#">
        <header class="work__head">
          <h3 class="work__name">Coastline Ferry Co.</h3>
          <p class="work__note">Timetables people<br />can actually read</p>
        </header>
        <figure class="work__pic">
          <img src="assets/iberia-map.jpg" alt="Hand-coloured antique map of Spain and Portugal, yellow and pink borders on a blue sea" width="1100" height="892" loading="lazy" />
        </figure>
        <span class="work__year">2024</span>
        <footer class="work__meta">
          <span class="work__roles">Design / Maps</span>
          <span class="work__view">View
            <span class="work__arrows" aria-hidden="true">
              <svg class="work__arrow work__arrow--out" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
              <svg class="work__arrow work__arrow--in" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
            </span>
          </span>
          <span class="work__line" aria-hidden="true"></span>
        </footer>
      </a>
    </article>

    <!-- 3 right: a toy figure -->
    <article class="work__card work__card--portrait work__card--drop">
      <a class="work__link" href="#">
        <header class="work__head">
          <h3 class="work__name">Peg &amp; Feather</h3>
          <p class="work__note">A shop of<br />carved figures</p>
        </header>
        <figure class="work__pic">
          <img src="assets/kachina-figure.jpg" alt="Carved and painted figure with a red feather crest and spotted arms, standing on a black base" width="676" height="900" loading="lazy" />
        </figure>
        <span class="work__year">2024</span>
        <footer class="work__meta">
          <span class="work__roles">E-commerce / Design</span>
          <span class="work__view">View
            <span class="work__arrows" aria-hidden="true">
              <svg class="work__arrow work__arrow--out" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
              <svg class="work__arrow work__arrow--in" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
            </span>
          </span>
          <span class="work__line" aria-hidden="true"></span>
        </footer>
      </a>
    </article>

    <!-- 4 left: a poster -->
    <article class="work__card work__card--portrait">
      <a class="work__link" href="#">
        <header class="work__head">
          <h3 class="work__name">Velvet Revue</h3>
          <p class="work__note">Cabaret programme,<br />three nights only</p>
        </header>
        <figure class="work__pic">
          <img src="assets/divan-poster.jpg" alt="Lautrec lithograph poster: a woman in black with a fan, a man in a top hat, yellow and grey" width="677" height="900" loading="lazy" />
        </figure>
        <span class="work__year">2023</span>
        <footer class="work__meta">
          <span class="work__roles">Design / Identity</span>
          <span class="work__view">View
            <span class="work__arrows" aria-hidden="true">
              <svg class="work__arrow work__arrow--out" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
              <svg class="work__arrow work__arrow--in" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
            </span>
          </span>
          <span class="work__line" aria-hidden="true"></span>
        </footer>
      </a>
    </article>

    <!-- 4 right: drawn, an octopus juggling coffee cups -->
    <article class="work__card work__card--wide work__card--drop">
      <a class="work__link" href="#">
        <header class="work__head">
          <h3 class="work__name">Eight Arms Coffee</h3>
          <p class="work__note">Order ahead,<br />one arm at a time</p>
        </header>
        <figure class="work__pic work__pic--drawn">
          <svg class="work__octo" viewBox="0 0 480 300" role="img" aria-label="Flat cartoon: a pink octopus on a teal rock juggles three coffee cups above its head at night">
            <rect width="480" height="300" class="work__fill-frame" />
            <g class="work__stars">
              <path d="M40 40l7-7M430 52l7-7M84 120l7-7M396 130l7-7M60 210l7-7M440 220l7-7M150 26l7-7M330 22l7-7" />
            </g>
            <path class="work__fill-teal-deep work__ink" d="M-4 262c60-20 110 0 170-10s120-30 180-18 90 22 138 8v62H-4z" />
            <path class="work__fill-teal work__ink" d="M120 300c6-40 40-62 120-62s114 22 120 62z" />
            <g class="work__octo-body">
              <!-- arms: a black outline under a pink stroke -->
              <path class="work__arm-outline work__arm-outline--octo" d="M200 214c-30 10-56 2-70-18-10-14-30-14-36 0M212 224c-16 22-44 30-66 26M268 224c16 22 44 30 66 26M280 214c30 10 56 2 70-18 10-14 30-14 36 0M196 196c-40-14-60-50-58-92M284 196c40-14 60-50 58-92M226 228c-4 18-14 28-30 32M254 228c4 18 14 28 30 32" />
              <path class="work__arm work__arm--octo" d="M200 214c-30 10-56 2-70-18-10-14-30-14-36 0M212 224c-16 22-44 30-66 26M268 224c16 22 44 30 66 26M280 214c30 10 56 2 70-18 10-14 30-14 36 0M196 196c-40-14-60-50-58-92M284 196c40-14 60-50 58-92M226 228c-4 18-14 28-30 32M254 228c4 18 14 28 30 32" />
              <g class="work__fill-pink-deep">
                <circle cx="150" cy="140" r="3.5" /><circle cx="160" cy="170" r="3.5" /><circle cx="330" cy="140" r="3.5" /><circle cx="320" cy="170" r="3.5" />
                <circle cx="120" cy="206" r="3.5" /><circle cx="360" cy="206" r="3.5" />
              </g>
              <path class="work__fill-pink work__ink" d="M240 102c46 0 68 34 66 76-2 34-26 54-66 54s-64-20-66-54c-2-42 20-76 66-76z" />
              <path class="work__fill-pink-deep" d="M210 128c8-10 18-14 28-14-6 6-10 12-12 20z" opacity="0.7" />
              <circle class="work__fill-white work__ink" cx="218" cy="170" r="15" />
              <circle class="work__fill-white work__ink" cx="262" cy="170" r="15" />
              <circle class="work__fill-frame work__pupil" cx="221" cy="166" r="6" />
              <circle class="work__fill-frame work__pupil" cx="265" cy="166" r="6" />
              <path class="work__ink-line" d="M226 202c8 8 20 8 28 0" />
              <circle class="work__fill-yellow" cx="204" cy="192" r="6" opacity="0.6" />
              <circle class="work__fill-yellow" cx="276" cy="192" r="6" opacity="0.6" />
            </g>
            <g class="work__juggle" transform="translate(0 14)">
              <g class="work__orbit work__orbit--1">
                <g class="work__cup">
                  <path class="work__fill-white work__ink" d="M226 4h28l-4 26h-20z" />
                  <path class="work__ink-line" d="M254 10c8 0 8 12-2 12" />
                  <ellipse class="work__fill-yellow work__ink" cx="240" cy="5" rx="14" ry="3.5" />
                </g>
              </g>
              <g class="work__orbit work__orbit--2">
                <g class="work__cup">
                  <path class="work__fill-white work__ink" d="M226 4h28l-4 26h-20z" />
                  <path class="work__ink-line" d="M254 10c8 0 8 12-2 12" />
                  <ellipse class="work__fill-yellow work__ink" cx="240" cy="5" rx="14" ry="3.5" />
                </g>
              </g>
              <g class="work__orbit work__orbit--3">
                <g class="work__cup">
                  <path class="work__fill-white work__ink" d="M226 4h28l-4 26h-20z" />
                  <path class="work__ink-line" d="M254 10c8 0 8 12-2 12" />
                  <ellipse class="work__fill-yellow work__ink" cx="240" cy="5" rx="14" ry="3.5" />
                </g>
              </g>
            </g>
            <g class="work__drops work__fill-orange">
              <circle cx="168" cy="70" r="4" /><circle cx="316" cy="62" r="3" /><circle cx="300" cy="40" r="2.5" />
            </g>
          </svg>
        </figure>
        <span class="work__year">2023</span>
        <footer class="work__meta">
          <span class="work__roles">Design / Illustration</span>
          <span class="work__view">View
            <span class="work__arrows" aria-hidden="true">
              <svg class="work__arrow work__arrow--out" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
              <svg class="work__arrow work__arrow--in" viewBox="0 0 13 13"><path d="M2 11L11 2M4 2h7v7" /></svg>
            </span>
          </span>
          <span class="work__line" aria-hidden="true"></span>
        </footer>
      </a>
    </article>
  </div>

  <a class="work__all" href="#">
    <span>See all work</span>
    <svg viewBox="0 0 13 13" aria-hidden="true"><path d="M1 6.5h11M7 1.5l5 5-5 5" /></svg>
  </a>
</section>

<style>
  .work {
    padding: 40px var(--edge) var(--section-pad);
  }
  .work__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  /* Two halves of the six-column grid, with no gutter. Cards sit at different heights so nothing lines up across. */
  .work__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--card-gap);
    align-items: start;
  }
  .work__card--portrait { width: calc(200% / 3); }
  .work__card--wide { width: calc(100% - var(--card-inset)); }
  .work__card--drop { margin-top: var(--card-drop); }
  .work__card:nth-child(even) { justify-self: end; }

  .work__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    color: var(--ink);
    text-decoration: none;
  }
  .work__link:focus-visible {
    outline: var(--hair) solid var(--accent);
    outline-offset: 6px;
  }
  .work__head {
    grid-column: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--gap-m);
    padding-bottom: 10px;
  }
  .work__name {
    margin: 0;
    font-size: var(--text-h2);
    font-weight: var(--weight-light);
    line-height: var(--lead-head);
  }
  .work__note {
    margin: 0;
    flex: none;
    font-size: var(--text-xs);
    line-height: var(--lead-text);
    text-align: right;
  }

  .work__pic {
    grid-column: 1;
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 688 / 400;
    background: var(--frame);
  }
  .work__card--portrait .work__pic { aspect-ratio: 459 / 601; }
  .work__card--short .work__pic { aspect-ratio: 688 / 360; }
  .work__pic img,
  .work__pic svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .work__pic img {
    filter: saturate(1.18) contrast(1.04);
  }
  .work__year {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: var(--text-s);
    line-height: 1;
    text-align: right;
  }

  .work__meta {
    grid-column: 1;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-m);
    padding: 10px 0 8px;
    font-size: var(--text-s);
    line-height: var(--lead-text);
    text-transform: uppercase;
  }
  .work__view {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
  }
  .work__arrows {
    position: relative;
    width: var(--arrow);
    height: var(--arrow);
    overflow: hidden;
  }
  .work__arrow {
    position: absolute;
    inset: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    transition: transform var(--t-arrow) var(--ease-out);
  }
  .work__arrow--in {
    color: var(--accent);
    transform: translate(-100%, 100%);
  }
  .work__line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--hair);
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-line) var(--ease-out);
  }
  .work__link:hover .work__arrow--out,
  .work__link:focus-visible .work__arrow--out {
    transform: translate(100%, -100%);
  }
  .work__link:hover .work__arrow--in,
  .work__link:focus-visible .work__arrow--in {
    transform: none;
    transition-delay: var(--t-arrow-delay);
  }
  .work__link:hover .work__line,
  .work__link:focus-visible .work__line {
    transform: scaleX(1);
  }

  /* Drawn pictures: flat fills, black outlines, a black ground. */
  .work__fill-frame { fill: var(--frame); }
  .work__fill-white { fill: var(--pic-white); }
  .work__fill-teal { fill: var(--pic-teal); }
  .work__fill-teal-deep { fill: var(--pic-teal-deep); }
  .work__fill-green { fill: var(--pic-green); }
  .work__fill-green-deep { fill: var(--pic-green-deep); }
  .work__fill-yellow { fill: var(--pic-yellow); }
  .work__fill-pink { fill: var(--pic-pink); }
  .work__fill-pink-deep { fill: var(--pic-pink-deep); }
  .work__fill-orange { fill: var(--pic-orange); }
  .work__ink { stroke: var(--frame); stroke-width: 3; stroke-linejoin: round; }
  .work__ink-line { fill: none; stroke: var(--frame); stroke-width: 3; stroke-linecap: round; }
  .work__wave-line { fill: none; stroke: var(--pic-white); stroke-width: 2.5; stroke-linecap: round; opacity: 0.7; }
  .work__stars path { stroke: var(--pic-white); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
  .work__sax-outline { fill: none; stroke: var(--frame); stroke-width: 22; stroke-linecap: round; }
  .work__sax { fill: none; stroke: var(--pic-yellow); stroke-width: 15; stroke-linecap: round; }
  .work__arm-outline { fill: none; stroke: var(--frame); stroke-width: 19; stroke-linecap: round; }
  .work__arm { fill: none; stroke: var(--pic-green); stroke-width: 13; stroke-linecap: round; }
  .work__arm-outline--octo { stroke-width: 20; }
  .work__arm--octo { stroke: var(--pic-pink); stroke-width: 14; }
  .work__stem { fill: none; stroke: var(--pic-white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .work__stem--pink { stroke: var(--pic-pink); }
  .work__stem--orange { stroke: var(--pic-orange); }
  .work__word {
    font-family: var(--font);
    font-size: 150px;
    font-weight: 800;
    letter-spacing: -4px;
  }

  /* Loops: they run only while the card is on screen, and faster under the pointer. */
  .work__frog-body,
  .work__tune,
  .work__cup,
  .work__octo-body,
  .work__drops circle,
  .work__stars {
    transform-box: view-box;
    animation-play-state: paused;
  }
  .work__card.is-live .work__frog-body,
  .work__card.is-live .work__tune,
  .work__card.is-live .work__orbit,
  .work__card.is-live .work__cup,
  .work__card.is-live .work__octo-body,
  .work__card.is-live .work__drops circle,
  .work__card.is-live .work__stars {
    animation-play-state: running;
  }
  .work__frog-body {
    transform-origin: 150px 340px;
    animation: work-sway 2.4s ease-in-out infinite alternate;
  }
  .work__tune {
    animation: work-note 2.6s ease-out infinite;
  }
  .work__tune--b { animation-delay: -0.9s; }
  .work__tune--c { animation-delay: -1.7s; }
  .work__link:hover .work__frog-body { animation-duration: 0.7s; }
  .work__link:hover .work__tune { animation-duration: 1.2s; }
  .work__pupil { transition: transform var(--t-open) var(--ease-out); }
  .work__link:hover .work__pupil { transform: translate(-3px, -3px); }
  .work__stars { animation: work-twinkle 3s steps(2) infinite; }

  .work__orbit {
    transform-box: view-box;
    transform-origin: 240px 64px;
    animation: work-spin 3.6s linear infinite;
    animation-play-state: paused;
  }
  .work__cup { transform-box: fill-box; transform-origin: center; animation: work-spin 3.6s linear infinite reverse; }
  .work__orbit--2,
  .work__orbit--2 .work__cup { animation-delay: -1.2s; }
  .work__orbit--3,
  .work__orbit--3 .work__cup { animation-delay: -2.4s; }
  .work__octo-body {
    transform-origin: 240px 260px;
    animation: work-bob 1.8s ease-in-out infinite alternate;
  }
  .work__drops circle { animation: work-drop 2.2s ease-in infinite; }
  .work__drops circle:nth-child(2) { animation-delay: -0.8s; }
  .work__drops circle:nth-child(3) { animation-delay: -1.5s; }
  .work__link:hover .work__orbit,
  .work__link:hover .work__cup { animation-duration: 1.8s; }

  @keyframes work-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
  @keyframes work-note {
    0% { transform: translate(0, 0); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translate(34px, -150px) rotate(18deg); opacity: 0; }
  }
  @keyframes work-twinkle { 50% { opacity: 0.2; } }
  @keyframes work-spin { to { transform: rotate(360deg); } }
  @keyframes work-bob { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-6px) scaleY(1.03); } }
  @keyframes work-drop {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(150px); opacity: 0; }
  }

  .work__all {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    min-height: var(--tap);
    margin-top: var(--card-gap);
    margin-left: 50%;
    border-bottom: var(--hair) solid var(--ink);
    color: var(--ink);
    font-size: var(--text-s);
    text-transform: uppercase;
    text-decoration: none;
  }
  .work__all svg {
    width: var(--arrow);
    height: var(--arrow);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    transition: transform var(--t-arrow) var(--ease-out);
  }
  .work__all:hover svg,
  .work__all:focus-visible svg {
    transform: translateX(6px);
    color: var(--accent);
  }

  @media (max-width: 47.99rem) {
    .work__grid { grid-template-columns: minmax(0, 1fr); }
    .work__card--portrait,
    .work__card--wide { width: 100%; }
    .work__card--drop { margin-top: 0; }
    .work__head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .work__note { text-align: left; font-size: var(--text-s); }
    .work__all { margin-left: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .work__frog-body,
    .work__tune,
    .work__orbit,
    .work__cup,
    .work__octo-body,
    .work__drops circle,
    .work__stars { animation: none; }
    .work__orbit--1 { transform: rotate(-50deg); }
    .work__orbit--1 .work__cup { transform: rotate(50deg); }
    .work__orbit--3 { transform: rotate(50deg); }
    .work__orbit--3 .work__cup { transform: rotate(-50deg); }
  }
</style>

<script>
  (() => {
    const REST_WARP = 18;
    const HOT_WARP = 46;
    const reduced = matchMedia("(prefers-reduced-motion: reduce)").matches;

    const giveFiltersOwnIds = (root, rootIndex) => {
      root.querySelectorAll("filter[id]").forEach((filter) => {
        const id = `${filter.id}-${rootIndex}`;
        root.querySelectorAll(`[filter="url(#${filter.id})"]`).forEach((user) => user.setAttribute("filter", `url(#${id})`));
        filter.id = id;
      });
    };

    const runLoopsOnView = (cards) => {
      const watcher = new IntersectionObserver((entries) => {
        for (const entry of entries) {
          entry.target.classList.toggle("is-live", entry.isIntersecting);
        }
      }, { threshold: 0.1 });
      cards.forEach((card) => watcher.observe(card));
    };

    const warpOnHover = (card) => {
      const map = card.querySelector(".work__warp-map");
      const noise = card.querySelector(".work__warp-noise");
      if (!map || reduced) return;
      let target = REST_WARP;
      let current = REST_WARP;
      let phase = 0;
      let frame = 0;
      const step = () => {
        current += (target - current) * 0.12;
        phase += 0.02;
        map.setAttribute("scale", current.toFixed(1));
        noise.setAttribute("baseFrequency", `${(0.008 + Math.sin(phase) * 0.002).toFixed(4)} 0.03`);
        const settled = target === REST_WARP && Math.abs(current - REST_WARP) < 0.2;
        frame = settled ? 0 : requestAnimationFrame(step);
      };
      const heat = (value) => {
        target = value;
        if (!frame) frame = requestAnimationFrame(step);
      };
      const link = card.querySelector(".work__link");
      link.addEventListener("pointerenter", () => heat(HOT_WARP));
      link.addEventListener("pointerleave", () => heat(REST_WARP));
      link.addEventListener("focus", () => heat(HOT_WARP));
      link.addEventListener("blur", () => heat(REST_WARP));
    };

    document.querySelectorAll(".work").forEach((root, rootIndex) => {
      const cards = [...root.querySelectorAll(".work__card")];
      giveFiltersOwnIds(root, rootIndex);
      runLoopsOnView(cards);
      cards.forEach(warpOnHover);
    });
  })();
</script>

Similar components

Black work cards with device frames

Black work cards with device frames

Project windows

Project windows

Artefact scatter

Artefact scatter

Work globe

Work globe

Shelf drawing

Shelf drawing

Inset project tiles

Inset project tiles

Band and case accordion

Band and case accordion

Work grid with pill

Work grid with pill