kitbash Sign in Connect agent
Components

Case study flood

A mint flood with a geometric SVG mark and three small text columns, above two dark wells: a mascot face that blinks and follows the pointer, and a listening glyph with a mono status pill.

Part of the style

Red Hour

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

Preview

Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=Fraunces:ital,opsz,wght@1,9..144,400..600&display=swap");
:root {
  --ink: #4f2611;
  --night: #7d5644;
  --night-2: #896351;
  --night-3: #815e4e;
  --dot: rgba(79, 38, 17, 0.55);
  --dot-dark: rgba(255, 255, 253, 0.12);
  --text: #fffffd;
  --text-mid: #fff3e8;
  --text-dim: rgba(255, 255, 253, 0.5);
  --signal: #9b775f;
  --signal-deep: #4f3b2d;
  --violet: #90765f;
  --violet-pale: #fdf5ee;
  --lilac: #b8b1ab;
  --plum: #644c36;
  --mint: #fedacb;
  --moss: #010000;
  --leaf: #5d4e48;
  --sage: #372d2a;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}
</style>

<section class="casefile" aria-labelledby="casefile-title">
  <div class="casefile__flood">
    <svg class="casefile__mark" viewBox="0 0 40 40" aria-hidden="true"><path d="M6 8h10v6h8V8h10v10h-6v-4h-4l-4 6-4-6h-4v4H6zM14 24a6 6 0 0 1 12 0v8h-4v-8a2 2 0 0 0-4 0v8h-4z"></path></svg>
    <div class="casefile__col">
      <h2 class="casefile__head" id="casefile-title">Choirbook</h2>
      <p class="casefile__text">Rehearsal notes for amateur choirs. Hum a line into the phone and it finds the bar, the part and who sang it flat.</p>
    </div>
    <div class="casefile__col">
      <h3 class="casefile__head">The product</h3>
      <p class="casefile__text">A score that listens. Sections leave notes for each other, the director pins the hard bars, and Tuesday starts where Thursday ended.</p>
    </div>
    <div class="casefile__col">
      <h3 class="casefile__head">Our part</h3>
      <p class="casefile__text">Name, mark, mascot and the whole app, from first hum to store page, over eleven months with a team of four.</p>
    </div>
  </div>

  <div class="casefile__wells">
    <div class="casefile__well">
      <p class="casefile__hint">Move near Hum, or tap to wake it</p>
      <svg class="casefile__face" viewBox="0 0 120 120" aria-hidden="true">
        <path class="casefile__line" d="M24 104V54a36 36 0 0 1 72 0v50"></path>
        <g class="casefile__eyes">
          <path class="casefile__line casefile__eye" d="M44 50v8a6 6 0 0 0 12 0v-8"></path>
          <path class="casefile__line casefile__eye" d="M64 50v8a6 6 0 0 0 12 0v-8"></path>
        </g>
        <path class="casefile__line casefile__mouth" d="M52 80h16"></path>
      </svg>
    </div>
    <div class="casefile__well">
      <p class="casefile__hint">Always on, never recording</p>
      <svg class="casefile__wave" viewBox="0 0 120 80" aria-hidden="true">
        <line class="casefile__line casefile__bar" x1="20" y1="30" x2="20" y2="50"></line>
        <line class="casefile__line casefile__bar" x1="40" y1="16" x2="40" y2="64"></line>
        <line class="casefile__line casefile__bar" x1="60" y1="6" x2="60" y2="74"></line>
        <line class="casefile__line casefile__bar" x1="80" y1="16" x2="80" y2="64"></line>
        <line class="casefile__line casefile__bar" x1="100" y1="30" x2="100" y2="50"></line>
      </svg>
      <span class="casefile__status">Listening<span class="casefile__dots" aria-hidden="true"></span></span>
    </div>
  </div>
</section>

<style>
  .casefile {
    background: var(--ink);
    padding-bottom: var(--space-xs);
  }
  .casefile__flood {
    display: grid;
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
    gap: var(--space-m);
    align-items: start;
    padding: var(--space-l) var(--edge);
    background: var(--mint);
    color: var(--ink);
  }
  .casefile__mark {
    width: clamp(56px, 8vw, 96px);
    fill: var(--ink);
  }
  .casefile__col { display: grid; gap: var(--space-xs); }
  .casefile__head {
    margin: 0;
    font-size: var(--text-s);
    font-weight: 500;
  }
  .casefile__text {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.72;
  }

  .casefile__wells {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-xs) 0;
  }
  .casefile__well {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: var(--space-m);
    min-height: clamp(260px, 32vw, 420px);
    padding: var(--space-l) var(--space-s);
    background: var(--night-2);
  }
  .casefile__hint {
    position: absolute;
    top: var(--space-s);
    left: 0;
    right: 0;
    margin: 0;
    color: var(--text-dim);
    font-size: 11px;
    text-align: center;
  }
  .casefile__line {
    fill: none;
    stroke: var(--mint);
    stroke-width: 7;
    stroke-linecap: square;
  }
  .casefile__face { width: clamp(96px, 14vw, 160px); overflow: visible; }
  .casefile__eyes {
    translate: var(--look-x, 0px) var(--look-y, 0px);
    transition: translate var(--quick) var(--ease);
  }
  .casefile__eye {
    transform-box: fill-box;
    transform-origin: center;
    animation: casefile-blink 4.2s steps(1) infinite;
  }
  @keyframes casefile-blink {
    96% { scale: 1 0.15; }
  }
  .casefile__mouth { transition: d var(--quick) var(--ease); }
  .casefile.is-awake .casefile__mouth { d: path("M50 78q10 10 20 0"); }

  .casefile__wave { width: clamp(96px, 14vw, 160px); }
  .casefile__bar {
    transform-box: fill-box;
    transform-origin: center;
    animation: casefile-bar 1.1s var(--ease) infinite alternate;
  }
  .casefile__bar:nth-child(2) { animation-delay: -0.3s; }
  .casefile__bar:nth-child(3) { animation-delay: -0.6s; }
  .casefile__bar:nth-child(4) { animation-delay: -0.15s; }
  .casefile__bar:nth-child(5) { animation-delay: -0.45s; }
  @keyframes casefile-bar {
    to { scale: 1 0.4; }
  }
  .casefile__status {
    padding: var(--space-xs) var(--space-s);
    border-radius: var(--radius-round);
    background: var(--night);
    color: var(--mint);
    font: 500 var(--text-xs)/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .casefile__dots::after {
    content: "...";
    display: inline-block;
    width: 3ch;
    overflow: hidden;
    vertical-align: bottom;
    animation: casefile-dots 1.4s steps(4) infinite;
  }
  @keyframes casefile-dots {
    from { width: 0; }
  }

  @media (max-width: 720px) {
    .casefile__flood { grid-template-columns: auto minmax(0, 1fr); }
    .casefile__flood .casefile__col:nth-child(n + 3) { grid-column: 2; }
  }
  @media (max-width: 480px) {
    .casefile__wells { grid-template-columns: 1fr; }
    .casefile__well { min-height: 220px; }
  }

  .casefile.is-offscreen *,
  .casefile.is-offscreen *::after { animation-play-state: paused; }

  @media (prefers-reduced-motion: reduce) {
    .casefile__eye, .casefile__bar, .casefile__dots::after { animation: none; }
    .casefile__eyes { transition: none; }
  }
</style>

<script>
(() => {
  const REACH = 4;
  const watch = new IntersectionObserver((entries) => {
    for (const entry of entries) entry.target.classList.toggle('is-offscreen', !entry.isIntersecting);
  });
  document.querySelectorAll('.casefile').forEach((root) => watch.observe(root));
  document.querySelectorAll('.casefile').forEach((root) => {
    const face = root.querySelector('.casefile__face');
    const eyes = root.querySelector('.casefile__eyes');
    root.addEventListener('pointermove', (event) => {
      const box = face.getBoundingClientRect();
      const dx = event.clientX - (box.left + box.width / 2);
      const dy = event.clientY - (box.top + box.height / 2);
      const length = Math.hypot(dx, dy) || 1;
      eyes.style.setProperty('--look-x', `${(dx / length) * REACH}px`);
      eyes.style.setProperty('--look-y', `${(dy / length) * REACH}px`);
      root.classList.toggle('is-awake', length < box.width * 1.2);
    });
    root.addEventListener('pointerleave', () => {
      eyes.style.setProperty('--look-x', '0px');
      eyes.style.setProperty('--look-y', '0px');
      root.classList.remove('is-awake');
    });
    face.parentElement.addEventListener('click', () => root.classList.toggle('is-awake'));
  });
})();
</script>

Similar components

Black statement

Black statement

Big statement

Big statement

Small caps statement

Small caps statement

Project sheet

Project sheet

Red flood studio

Red flood studio

Project chapter

Project chapter

Profile

Profile

Text columns with small figures

Text columns with small figures