# #083 — Nendo Whisper Minimal

> Surgical Japanese industrial-design gallery with pure white space, tiny hairline indices, and clever object micro-stories.

## Metadata

- **Index**: #083
- **Slug**: `nendo-whisper-minimal`
- **Kind**: `style`
- **Family**: Japanese & Regional Craft
- **Theme**: `light`
- **Mobile Strength**: `high`
- **Tags**: `japanese-minimal`, `industrial-design`, `gallery-white`, `hairline-index`, `micro-storytelling`, `monochrome-craft`
- **Best For**: Industrial & product design studios, Architectural monograph portfolios, Minimalist lighting & object brands, Conceptual design archives
- **Real-World Inspiration**: [nendo](https://www.nendo.jp/en/)
- **Detail Page**: https://templates.michaelpitts.net/t/nendo-whisper-minimal
- **Live Demo**: https://templates.michaelpitts.net/demos/nendo-whisper-minimal.html
- **JSON API**: https://templates.michaelpitts.net/api/templates/nendo-whisper-minimal

## Why This Aesthetic Is Unique

Strips interface chrome down to almost nothing—letting crisp hairline index numbers and witty, transforming geometric object sketches deliver the signature Japanese 'small ! moment'.

## Color Palette

| Role | Name | Hex |
|------|------|-----|
| `canvas` | Gallery Pure White | `#FFFFFF` |
| `surface` | Plaster Pedestal | `#F6F6F5` |
| `ink` | Drafting Graphite | `#141414` |
| `accent` | Machined Pewter | `#555555` |
| `muted` | Hairline Silver | `#999999` |

## Typography

- **Display**: `DM Sans, -apple-system, sans-serif`
- **Body**: `DM Sans, -apple-system, sans-serif`
- **Mono**: `IBM Plex Mono, ui-monospace, monospace`
- **Scale Notes**: Restrained low-contrast scale: quiet 24–34px titles, 14px body copy, and whisper-small 11px monospace catalog indices (001–008).
- **Google Fonts**: https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap
  ```html
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap">
  ```

## Layout Architecture

Strict orthogonal museum-plinth grid with uniform padding, ultra-thin 1px dividers, and a collapsible slide-out project index drawer.

## Interaction & Micro-Motion Rules

Hovering or tapping each minimalist object plinth triggers a subtle SVG structural transformation and reveals a concise design-concept note; category filters switch cleanly without layout jitter.

## Mobile & Responsive Rules

Single-column gallery plinths at 390px with tap-to-reveal object animations and a full-height slide-out index drawer with >=44px rows.

## Agent Guardrails

### DO
- Rely on spacing, hairline rules, and precise typographic alignment instead of color fills or drop shadows.
- Reward curiosity with a subtle, clever visual transformation on each item's hover or tap state.
- Keep copy concise and conceptual—one sharp observation per object.

### DON'T
- Do not introduce saturated accent buttons or decorative gradients.
- Do not use oversized hero banners that drown out the quiet gallery rhythm.

## Complete Standalone Starter Code

File: `demos/nendo-whisper-minimal.html`

```html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>tendo — small ! moments / industrial design archive</title>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=IBM+Plex+Mono:wght@300;400;500&display=swap" rel="stylesheet">
  <style>
    :root {
      --canvas: #FFFFFF;
      --surface: #F6F6F5;
      --ink: #141414;
      --accent: #555555;
      --muted: #999999;
      --hairline: #E8E8E6;
      --sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
      --mono: "IBM Plex Mono", ui-monospace, monospace;
    }

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

    html, body {
      margin: 0;
      padding: 0;
      background: var(--canvas);
      color: var(--ink);
      font-family: var(--sans);
      line-height: 1.6;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    /* Ultra-quiet fixed header */
    .studio-header {
      position: sticky;
      top: 0;
      z-index: 30;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--hairline);
    }

    .header-bar {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0.75rem 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
    }

    .wordmark {
      text-decoration: none;
      color: var(--ink);
      font-size: 1.05rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: lowercase;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
    }

    .header-controls {
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }

    .cat-btn {
      min-height: 44px;
      padding: 0.4rem 0.85rem;
      border: 1px solid transparent;
      background: transparent;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 0.74rem;
      letter-spacing: 0.04em;
      cursor: pointer;
      transition: color 0.18s ease, border-color 0.18s ease;
    }

    .cat-btn:hover { color: var(--ink); }

    .cat-btn.active {
      color: var(--ink);
      border-bottom-color: var(--ink);
    }

    .index-trigger {
      min-width: 44px;
      min-height: 44px;
      padding: 0 0.9rem;
      border: 1px solid var(--hairline);
      background: var(--canvas);
      color: var(--ink);
      font-family: var(--mono);
      font-size: 0.74rem;
      cursor: pointer;
      transition: background 0.18s ease;
    }

    .index-trigger:hover { background: var(--surface); }

    /* Intro Statement */
    .whisper-intro {
      max-width: 1240px;
      margin: 0 auto;
      padding: 4.5rem 1.5rem 3.5rem;
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
      gap: 2.5rem;
      align-items: end;
      border-bottom: 1px solid var(--hairline);
    }

    .whisper-intro h1 {
      font-size: clamp(1.7rem, 3.2vw, 2.55rem);
      font-weight: 400;
      line-height: 1.3;
      letter-spacing: -0.02em;
      margin: 0;
    }

    .whisper-intro p {
      margin: 0;
      color: var(--accent);
      font-size: 0.92rem;
      max-width: 42ch;
    }

    .whisper-hint {
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--muted);
      margin-top: 0.85rem;
      display: block;
    }

    /* Mobile Filter Bar */
    .mobile-filter-strip {
      display: none;
      max-width: 1240px;
      margin: 0 auto;
      padding: 0.75rem 1.5rem;
      border-bottom: 1px solid var(--hairline);
      overflow-x: auto;
      gap: 0.4rem;
    }

    /* Museum Archive Grid */
    .works-section {
      max-width: 1240px;
      margin: 0 auto;
      padding: 2.5rem 1.5rem 5rem;
    }

    .works-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1.5rem;
    }

    .work-tile {
      background: var(--canvas);
      border: 1px solid var(--hairline);
      display: flex;
      flex-direction: column;
      cursor: pointer;
      transition: border-color 0.25s ease;
      position: relative;
      text-align: left;
      padding: 0;
      color: inherit;
      font: inherit;
    }

    .work-tile:hover,
    .work-tile.revealed {
      border-color: var(--ink);
    }

    .tile-top {
      padding: 0.8rem 0.95rem 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-family: var(--mono);
      font-size: 0.68rem;
      color: var(--muted);
    }

    .tile-stage {
      aspect-ratio: 1 / 1;
      background: var(--surface);
      margin: 0.65rem 0.95rem;
      display: grid;
      place-items: center;
      position: relative;
      overflow: hidden;
    }

    .tile-stage svg {
      width: 74%;
      height: 74%;
      transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* Subtle "small ! moment" SVG micro-transforms */
    .work-tile:hover .anim-shift,
    .work-tile.revealed .anim-shift {
      transform: translate(10px, -8px) rotate(6deg);
    }

    .work-tile:hover .anim-split-l,
    .work-tile.revealed .anim-split-l {
      transform: translateX(-10px);
    }

    .work-tile:hover .anim-split-r,
    .work-tile.revealed .anim-split-r {
      transform: translateX(10px);
    }

    .work-tile:hover .anim-tilt,
    .work-tile.revealed .anim-tilt {
      transform: rotate(-14deg);
      transform-origin: center;
    }

    .work-tile:hover .anim-rise,
    .work-tile.revealed .anim-rise {
      transform: translateY(-12px);
    }

    .anim-shift, .anim-split-l, .anim-split-r, .anim-tilt, .anim-rise {
      transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .tile-info {
      padding: 0.35rem 0.95rem 1.05rem;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .tile-info h2 {
      font-size: 0.94rem;
      font-weight: 500;
      margin: 0;
    }

    .tile-info .tile-sub {
      font-family: var(--mono);
      font-size: 0.7rem;
      color: var(--muted);
    }

    .moment-story {
      margin-top: 0.6rem;
      padding-top: 0.6rem;
      border-top: 1px solid var(--hairline);
      font-size: 0.8rem;
      color: var(--accent);
      line-height: 1.5;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.35s ease, opacity 0.3s ease;
    }

    .work-tile:hover .moment-story,
    .work-tile.revealed .moment-story {
      max-height: 140px;
      opacity: 1;
    }

    /* Slide-out Index Drawer */
    .drawer-scrim {
      position: fixed;
      inset: 0;
      background: rgba(20, 20, 20, 0.24);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
      z-index: 50;
    }

    .drawer-scrim.open {
      opacity: 1;
      pointer-events: auto;
    }

    .index-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: min(390px, 100vw);
      background: var(--canvas);
      border-left: 1px solid var(--hairline);
      transform: translateX(100%);
      transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
      z-index: 60;
      display: flex;
      flex-direction: column;
      padding: 1.25rem 1.5rem;
    }

    .index-drawer.open { transform: translateX(0); }

    .drawer-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--hairline);
    }

    .drawer-head span {
      font-family: var(--mono);
      font-size: 0.75rem;
      letter-spacing: 0.08em;
      color: var(--muted);
    }

    .drawer-list {
      list-style: none;
      margin: 1rem 0;
      padding: 0;
      overflow-y: auto;
      flex: 1;
    }

    .drawer-list li button {
      width: 100%;
      min-height: 46px;
      border: none;
      border-bottom: 1px solid var(--hairline);
      background: transparent;
      display: grid;
      grid-template-columns: 44px 1fr auto;
      align-items: center;
      gap: 0.5rem;
      text-align: left;
      padding: 0.65rem 0;
      cursor: pointer;
      color: var(--ink);
      font-family: var(--sans);
      font-size: 0.88rem;
    }

    .drawer-list li button:hover { color: var(--accent); }

    .drawer-num {
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--muted);
    }

    .drawer-cat {
      font-family: var(--mono);
      font-size: 0.68rem;
      color: var(--muted);
      text-transform: uppercase;
    }

    footer {
      border-top: 1px solid var(--hairline);
      max-width: 1240px;
      margin: 0 auto;
      padding: 2rem 1.5rem 3rem;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
      font-family: var(--mono);
      font-size: 0.74rem;
      color: var(--muted);
    }

    @media (max-width: 1024px) {
      .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .whisper-intro { grid-template-columns: 1fr; padding: 3rem 1.5rem 2.25rem; }
    }

    @media (max-width: 640px) {
      .header-controls .cat-btn { display: none; }
      .mobile-filter-strip { display: flex; }
      .works-grid { grid-template-columns: 1fr; }
    }
  </style>
</head>
<body>
  <header class="studio-header">
    <div class="header-bar">
      <a class="wordmark" href="#top">tendo</a>

      <div class="header-controls" role="group" aria-label="Category filter">
        <button class="cat-btn active" type="button" data-filter="all">All (08)</button>
        <button class="cat-btn" type="button" data-filter="objects">Objects</button>
        <button class="cat-btn" type="button" data-filter="spaces">Spaces</button>
        <button class="cat-btn" type="button" data-filter="graphics">Graphics</button>
        <button class="index-trigger" id="openDrawer" type="button" aria-controls="indexDrawer" aria-expanded="false">
          Index ≡
        </button>
      </div>
    </div>
  </header>

  <div class="mobile-filter-strip" role="group" aria-label="Mobile category filter">
    <button class="cat-btn active" type="button" data-filter="all">All</button>
    <button class="cat-btn" type="button" data-filter="objects">Objects</button>
    <button class="cat-btn" type="button" data-filter="spaces">Spaces</button>
    <button class="cat-btn" type="button" data-filter="graphics">Graphics</button>
  </div>

  <section class="whisper-intro" id="top">
    <h1>Giving people a small “!” moment hidden inside everyday forms.</h1>
    <div>
      <p>
        Tokyo &amp; Milan industrial design archive. Eight quiet studies in reduction, balance, and unexpected geometry across household objects, architectural rooms, and paper packaging.
      </p>
      <span class="whisper-hint">Hover or tap any plate to reveal its “!” mechanism.</span>
    </div>
  </section>

  <main class="works-section">
    <div class="works-grid" id="worksGrid">
      <!-- 001 -->
      <button class="work-tile" type="button" id="work-001" data-cat="objects" aria-expanded="false">
        <div class="tile-top"><span>001</span><span>OBJECTS · 2026</span></div>
        <div class="tile-stage">
          <svg viewBox="0 0 140 140" aria-hidden="true">
            <rect x="34" y="44" width="72" height="66" fill="none" stroke="#141414" stroke-width="1.6"/>
            <line class="anim-tilt" x1="34" y1="44" x2="106" y2="44" stroke="#141414" stroke-width="2.4"/>
            <circle class="anim-rise" cx="70" cy="36" r="5" fill="#141414"/>
          </svg>
        </div>
        <div class="tile-info">
          <h2>hinge-lid carafe</h2>
          <span class="tile-sub">borosilicate glass / steel pin</span>
          <div class="moment-story">
            ! A single counterweight bead tilts the flat lid open the instant the vessel tips 12 degrees.
          </div>
        </div>
      </button>

      <!-- 002 -->
      <button class="work-tile" type="button" id="work-002" data-cat="objects" aria-expanded="false">
        <div class="tile-top"><span>002</span><span>OBJECTS · 2026</span></div>
        <div class="tile-stage">
          <svg viewBox="0 0 140 140" aria-hidden="true">
            <line x1="28" y1="108" x2="112" y2="108" stroke="#999" stroke-width="1"/>
            <path class="anim-split-l" d="M44 108 L44 52 L68 52" fill="none" stroke="#141414" stroke-width="1.8"/>
            <path class="anim-split-r" d="M96 108 L96 52 L72 52" fill="none" stroke="#141414" stroke-width="1.8"/>
            <circle cx="70" cy="52" r="2.5" fill="#141414"/>
          </svg>
        </div>
        <div class="tile-info">
          <h2>twin-line stool</h2>
          <span class="tile-sub">bent 9mm steel rod</span>
          <div class="moment-story">
            ! Two identical U-profiles lean into each other; neither stands alone, yet together they lock rigid.
          </div>
        </div>
      </button>

      <!-- 003 -->
      <button class="work-tile" type="button" id="work-003" data-cat="spaces" aria-expanded="false">
        <div class="tile-top"><span>003</span><span>SPACES · 2025</span></div>
        <div class="tile-stage">
          <svg viewBox="0 0 140 140" aria-hidden="true">
            <rect x="24" y="34" width="92" height="72" fill="none" stroke="#141414" stroke-width="1.4"/>
            <line class="anim-split-l" x1="56" y1="34" x2="56" y2="106" stroke="#141414" stroke-width="1.2"/>
            <line class="anim-split-r" x1="84" y1="34" x2="84" y2="106" stroke="#141414" stroke-width="1.2"/>
            <rect class="anim-rise" x="62" y="64" width="16" height="42" fill="#141414"/>
          </svg>
        </div>
        <div class="tile-info">
          <h2>paper-screen gallery</h2>
          <span class="tile-sub">aoyama, tokyo / 140 m²</span>
          <div class="moment-story">
            ! Translucent partitions slide apart along ceiling tracks so the exhibition room breathes with visitor density.
          </div>
        </div>
      </button>

      <!-- 004 -->
      <button class="work-tile" type="button" id="work-004" data-cat="graphics" aria-expanded="false">
        <div class="tile-top"><span>004</span><span>GRAPHICS · 2025</span></div>
        <div class="tile-stage">
          <svg viewBox="0 0 140 140" aria-hidden="true">
            <rect x="38" y="38" width="64" height="64" fill="none" stroke="#141414" stroke-width="1.5"/>
            <polygon class="anim-shift" points="38,38 102,38 102,102" fill="#141414" opacity="0.14"/>
            <line x1="38" y1="38" x2="102" y2="102" stroke="#141414" stroke-width="1.2" stroke-dasharray="3 3"/>
          </svg>
        </div>
        <div class="tile-info">
          <h2>corner-fold chocolate</h2>
          <span class="tile-sub">unbleached paper sleeve</span>
          <div class="moment-story">
            ! Diagonal perforations turn each wrapper corner into a tasting bookmark indicating cacao percentage.
          </div>
        </div>
      </button>

      <!-- 005 -->
      <button class="work-tile" type="button" id="work-005" data-cat="objects" aria-expanded="false">
        <div class="tile-top"><span>005</span><span>OBJECTS · 2025</span></div>
        <div class="tile-stage">
          <svg viewBox="0 0 140 140" aria-hidden="true">
            <circle cx="70" cy="74" r="34" fill="none" stroke="#141414" stroke-width="1.5"/>
            <line x1="70" y1="74" x2="70" y2="50" stroke="#141414" stroke-width="1.8"/>
            <line class="anim-tilt" x1="70" y1="74" x2="94" y2="74" stroke="#555555" stroke-width="1.4"/>
          </svg>
        </div>
        <div class="tile-info">
          <h2>shadow-hand clock</h2>
          <span class="tile-sub">matte cast aluminum</span>
          <div class="moment-story">
            ! No printed numerals: a recessed rim catches room light so the minute hand reads against its own soft shadow.
          </div>
        </div>
      </button>

      <!-- 006 -->
      <button class="work-tile" type="button" id="work-006" data-cat="spaces" aria-expanded="false">
        <div class="tile-top"><span>006</span><span>SPACES · 2024</span></div>
        <div class="tile-stage">
          <svg viewBox="0 0 140 140" aria-hidden="true">
            <path d="M26 102 L114 102" stroke="#141414" stroke-width="1.4"/>
            <path class="anim-rise" d="M36 102 L36 62 Q70 32 104 62 L104 102" fill="none" stroke="#141414" stroke-width="1.6"/>
            <circle cx="70" cy="82" r="7" fill="#141414"/>
          </svg>
        </div>
        <div class="tile-info">
          <h2>courtyard tea pavilion</h2>
          <span class="tile-sub">karuizawa / cedar &amp; mortar</span>
          <div class="moment-story">
            ! A low arched canopy frames only the gravel garden until guests kneel on the tatami mat.
          </div>
        </div>
      </button>

      <!-- 007 -->
      <button class="work-tile" type="button" id="work-007" data-cat="graphics" aria-expanded="false">
        <div class="tile-top"><span>007</span><span>GRAPHICS · 2024</span></div>
        <div class="tile-stage">
          <svg viewBox="0 0 140 140" aria-hidden="true">
            <rect class="anim-split-l" x="34" y="42" width="32" height="56" fill="none" stroke="#141414" stroke-width="1.5"/>
            <rect class="anim-split-r" x="74" y="42" width="32" height="56" fill="none" stroke="#141414" stroke-width="1.5"/>
            <circle cx="70" cy="70" r="3" fill="#141414"/>
          </svg>
        </div>
        <div class="tile-info">
          <h2>split-spine monograph</h2>
          <span class="tile-sub">exposed smyth binding</span>
          <div class="moment-story">
            ! Japanese text lives in the left volume and English in the right, hinged along one shared linen back.
          </div>
        </div>
      </button>

      <!-- 008 -->
      <button class="work-tile" type="button" id="work-008" data-cat="objects" aria-expanded="false">
        <div class="tile-top"><span>008</span><span>OBJECTS · 2024</span></div>
        <div class="tile-stage">
          <svg viewBox="0 0 140 140" aria-hidden="true">
            <path d="M38 98 L102 98" stroke="#141414" stroke-width="1.5"/>
            <path class="anim-shift" d="M56 98 L68 38 L78 38 L66 98 Z" fill="none" stroke="#141414" stroke-width="1.6"/>
            <circle cx="70" cy="98" r="2.5" fill="#141414"/>
          </svg>
        </div>
        <div class="tile-info">
          <h2>leaning umbrella</h2>
          <span class="tile-sub">carbon rib / forked handle</span>
          <div class="moment-story">
            ! A 3mm bevel at the ferrule lets the umbrella stand upright against any smooth wall without slipping.
          </div>
        </div>
      </button>
    </div>
  </main>

  <footer>
    <span>tendo industrial design office · minato-ku, tokyo</span>
    <span>archive 001—008 · updated 2026</span>
  </footer>

  <!-- Slide-out Index Drawer -->
  <div class="drawer-scrim" id="drawerScrim"></div>
  <aside class="index-drawer" id="indexDrawer" aria-label="Archive index">
    <div class="drawer-head">
      <span>INDEX 001 — 008</span>
      <button class="index-trigger" id="closeDrawer" type="button" aria-label="Close index drawer">Close ✕</button>
    </div>
    <ul class="drawer-list" id="drawerList"></ul>
  </aside>

  <script>
    (function () {
      const tiles = Array.from(document.querySelectorAll('.work-tile'));
      const filterBtns = Array.from(document.querySelectorAll('.cat-btn'));
      const drawer = document.getElementById('indexDrawer');
      const scrim = document.getElementById('drawerScrim');
      const openBtn = document.getElementById('openDrawer');
      const closeBtn = document.getElementById('closeDrawer');
      const drawerList = document.getElementById('drawerList');

      // Populate index drawer from tiles
      tiles.forEach((tile) => {
        const num = tile.querySelector('.tile-top span').textContent;
        const title = tile.querySelector('h2').textContent;
        const cat = tile.dataset.cat;
        const li = document.createElement('li');
        const btn = document.createElement('button');
        btn.type = 'button';
        btn.innerHTML =
          '<span class="drawer-num">' + num + '</span>' +
          '<span>' + title + '</span>' +
          '<span class="drawer-cat">' + cat + '</span>';
        btn.addEventListener('click', () => {
          applyFilter('all');
          toggleDrawer(false);
          tile.classList.add('revealed');
          tile.setAttribute('aria-expanded', 'true');
          tile.scrollIntoView({ behavior: 'smooth', block: 'center' });
        });
        li.appendChild(btn);
        drawerList.appendChild(li);
      });

      // Tap / click toggle for mobile & keyboard users
      tiles.forEach(tile => {
        tile.addEventListener('click', () => {
          const isOpen = tile.classList.toggle('revealed');
          tile.setAttribute('aria-expanded', String(isOpen));
        });
      });

      // Category Filter (synced across desktop + mobile strip)
      function applyFilter(cat) {
        filterBtns.forEach(b => b.classList.toggle('active', b.dataset.filter === cat));
        tiles.forEach(t => {
          t.style.display = (cat === 'all' || t.dataset.cat === cat) ? 'flex' : 'none';
        });
      }

      filterBtns.forEach(btn => {
        btn.addEventListener('click', () => applyFilter(btn.dataset.filter));
      });

      // Drawer controls
      function toggleDrawer(state) {
        drawer.classList.toggle('open', state);
        scrim.classList.toggle('open', state);
        openBtn.setAttribute('aria-expanded', String(state));
      }

      openBtn.addEventListener('click', () => toggleDrawer(true));
      closeBtn.addEventListener('click', () => toggleDrawer(false));
      scrim.addEventListener('click', () => toggleDrawer(false));
      document.addEventListener('keydown', (e) => { if (e.key === 'Escape') toggleDrawer(false); });
    })();
  </script>
</body>
</html>
```
