# #053 — Playful Craft Software Studio

> Independent software studio showcase with geometric SVG hardware/app art, vermilion craft accents, and interactive crank toy.

## Metadata

- **Index**: #053
- **Slug**: `playful-craft-software`
- **Kind**: `style`
- **Family**: Minimalist Utility & Indie Studio
- **Theme**: `light`
- **Mobile Strength**: `high`
- **Tags**: `indie-studio`, `craft-software`, `playful-precision`, `bento-grid`, `svg-art`, `hardware`
- **Best For**: Independent Mac, iOS, and creative software studios, Boutique hardware and handheld device makers, Product-led design and engineering collectives
- **Real-World Inspiration**: [Panic](https://panic.com/)
- **Detail Page**: https://templates.michaelpitts.net/t/playful-craft-software
- **Live Demo**: https://templates.michaelpitts.net/demos/playful-craft-software.html
- **JSON API**: https://templates.michaelpitts.net/api/templates/playful-craft-software

## Why This Aesthetic Is Unique

Balances Swiss-grade typographic precision with genuine human delight, bespoke geometric product illustrations, and tactile micro-toys that celebrate independent software craft.

## Color Palette

| Role | Name | Hex |
|------|------|-----|
| `canvas` | Studio Ivory | `#FAF9F5` |
| `surface` | Product Tile | `#FFFFFF` |
| `ink` | Deep Ink | `#18181B` |
| `accent` | Craft Vermilion | `#FF4F2B` |
| `muted` | Warm Stone | `#6E6A63` |

## Typography

- **Display**: `Space Grotesk`
- **Body**: `Plus Jakarta Sans`
- **Mono**: `IBM Plex Mono`
- **Scale Notes**: Confident geometric display titles (32-48px) with tight tracking, crisp 15px studio copy, and monospace version badges.
- **Google Fonts**: https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap
  ```html
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap">
  ```

## Layout Architecture

Crisp hairline bento product gallery featuring custom geometric SVG app/hardware illustrations, an interactive product inspector stage, and a playable rotary crank widget.

## Interaction & Micro-Motion Rules

Switch between studio flagship tools (Code Editor, File Transfer, Handheld Console) and spin or scrub the interactive crank dial to drive live SVG animation feedback.

## Mobile & Responsive Rules

Bento tiles stack into a clean single-column showcase with 44px product switcher tabs and touch-draggable crank controls.

## Agent Guardrails

### DO
- Craft bespoke geometric SVG product marks and hardware vignettes rather than stock icons
- Pair studio ivory backgrounds with punchy vermilion/sunburst craft accents
- Include at least one tactile, joyful micro-interaction that rewards curiosity

### DON'T
- Do not slip into corporate enterprise SaaS jargon or generic gradient blobs
- Do not sacrifice crisp alignment and readable contrast for playfulness

## Complete Standalone Starter Code

File: `demos/playful-craft-software.html`

```html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Mirthworks — Independent Mac &amp; Handheld Craft</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+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
  <style>
    :root {
      --canvas: #FAF9F5;
      --surface: #FFFFFF;
      --ink: #18181B;
      --ink-soft: #3F3F46;
      --accent: #FF4F2B;
      --accent-soft: rgba(255, 79, 43, 0.10);
      --yellow: #FFC700;
      --blue: #2563EB;
      --muted: #6E6A63;
      --border: #E6E3DC;
      --border-strong: #D3CFC5;
      --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, monospace;
    }

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

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

    /* Header */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 30;
      background: rgba(250, 249, 245, 0.92);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--border);
    }

    .header-inner {
      max-width: 1120px;
      margin: 0 auto;
      padding: 0 24px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--ink);
      font-weight: 800;
      font-size: 16px;
      letter-spacing: -0.03em;
    }

    .logo-badge {
      width: 28px;
      height: 28px;
      border-radius: 7px;
      background: var(--ink);
      display: grid;
      place-items: center;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--muted);
      font-size: 13.5px;
      font-weight: 600;
      padding: 8px 12px;
      border-radius: 8px;
      transition: color 0.15s ease, background 0.15s ease;
    }

    .nav-links a:hover {
      color: var(--ink);
      background: rgba(24, 24, 27, 0.05);
    }

    .nav-cta {
      background: var(--accent) !important;
      color: #FFFFFF !important;
      margin-left: 6px;
    }

    .nav-cta:hover {
      background: #E8411F !important;
    }

    .mobile-toggle {
      display: none;
      width: 44px;
      height: 44px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--surface);
      color: var(--ink);
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .mobile-menu {
      display: none;
      flex-direction: column;
      padding: 12px 20px 18px;
      border-top: 1px solid var(--border);
      background: var(--surface);
      gap: 6px;
    }

    .mobile-menu.open {
      display: flex;
    }

    .mobile-menu a {
      text-decoration: none;
      color: var(--ink);
      font-weight: 600;
      font-size: 15px;
      min-height: 44px;
      display: flex;
      align-items: center;
      padding: 0 10px;
      border-radius: 8px;
    }

    .mobile-menu a:hover {
      background: var(--canvas);
    }

    /* Container */
    .container {
      max-width: 1120px;
      margin: 0 auto;
      padding: 44px 24px 84px;
    }

    /* Hero */
    .hero {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 32px;
      align-items: end;
      margin-bottom: 36px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--accent);
      background: var(--accent-soft);
      padding: 5px 11px;
      border-radius: 999px;
      margin-bottom: 16px;
    }

    .hero h1 {
      font-size: clamp(32px, 5vw, 54px);
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -0.04em;
      color: var(--ink);
    }

    .hero p {
      font-size: 16.5px;
      line-height: 1.6;
      color: var(--muted);
      max-width: 46ch;
      justify-self: end;
    }

    /* Product Switcher Stage */
    .showcase-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      overflow: hidden;
      margin-bottom: 24px;
    }

    .switcher-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      background: #FDFCFA;
    }

    .switcher-tabs {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .prod-tab {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      height: 38px;
      padding: 0 15px;
      border-radius: 10px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--muted);
      font-family: inherit;
      font-size: 13.5px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .prod-tab:hover {
      color: var(--ink);
      background: var(--canvas);
    }

    .prod-tab.active {
      background: var(--ink);
      color: #FFFFFF;
    }

    .prod-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }

    .version-tag {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--muted);
    }

    .showcase-body {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      min-height: 340px;
    }

    .stage-visual {
      background: var(--canvas);
      border-right: 1px solid var(--border);
      display: grid;
      place-items: center;
      padding: 28px;
      position: relative;
      background-image: radial-gradient(#DEDAD0 1px, transparent 1px);
      background-size: 18px 18px;
    }

    .stage-visual svg {
      width: 100%;
      max-width: 420px;
      height: auto;
      display: block;
    }

    .stage-info {
      padding: 32px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 20px;
    }

    .prod-kicker {
      font-family: var(--font-mono);
      font-size: 11.5px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--accent);
      margin-bottom: 8px;
    }

    .prod-title {
      font-size: 28px;
      font-weight: 800;
      letter-spacing: -0.03em;
      margin-bottom: 10px;
    }

    .prod-desc {
      font-size: 15px;
      line-height: 1.6;
      color: var(--muted);
      margin-bottom: 18px;
    }

    .spec-list {
      list-style: none;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .spec-item {
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--canvas);
    }

    .spec-k {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--muted);
      display: block;
    }

    .spec-v {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--ink);
      margin-top: 2px;
      display: block;
    }

    .stage-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .btn-accent {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 42px;
      padding: 0 18px;
      border-radius: 10px;
      border: none;
      background: var(--accent);
      color: #FFFFFF;
      font-family: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.12s ease, background 0.14s ease;
    }

    .btn-accent:hover { background: #E8411F; }
    .btn-accent:active { transform: scale(0.98); }

    .btn-outline {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 42px;
      padding: 0 16px;
      border-radius: 10px;
      border: 1px solid var(--border-strong);
      background: var(--surface);
      color: var(--ink);
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
    }

    /* Hairline Bento Grid */
    .bento-grid {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: 18px;
    }

    .bento-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 16px;
    }

    .span-7 { grid-column: span 7; }
    .span-5 { grid-column: span 5; }
    .span-4 { grid-column: span 4; }
    .span-8 { grid-column: span 8; }

    .card-label {
      font-family: var(--font-mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
    }

    .card-heading {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.025em;
      margin-top: 6px;
    }

    .card-copy {
      font-size: 14px;
      line-height: 1.6;
      color: var(--muted);
      margin-top: 6px;
    }

    /* Interactive Crank Toy */
    .crank-lab {
      display: grid;
      grid-template-columns: 1fr 164px;
      gap: 20px;
      align-items: center;
    }

    .lcd-bezel {
      background: #FFC700;
      border: 2px solid var(--ink);
      border-radius: 16px;
      padding: 14px;
      box-shadow: 4px 4px 0 var(--ink);
    }

    .lcd-screen {
      width: 100%;
      height: 148px;
      background: #B9BFAA;
      border: 2px solid var(--ink);
      border-radius: 8px;
      display: block;
      image-rendering: pixelated;
    }

    .lcd-readout {
      display: flex;
      justify-content: space-between;
      margin-top: 9px;
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 500;
      color: var(--ink);
    }

    .dial-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .crank-dial {
      width: 136px;
      height: 136px;
      touch-action: none;
      cursor: grab;
      user-select: none;
    }

    .crank-dial:active { cursor: grabbing; }

    .dial-controls {
      display: flex;
      gap: 6px;
    }

    .mini-btn {
      height: 34px;
      padding: 0 11px;
      border-radius: 8px;
      border: 1px solid var(--border-strong);
      background: var(--canvas);
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 500;
      color: var(--ink);
      cursor: pointer;
    }

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

    /* Changelog / Dispatch list */
    .dispatch-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .dispatch-row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
      font-size: 13.5px;
    }

    .dispatch-row:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .dispatch-date {
      font-family: var(--font-mono);
      font-size: 11.5px;
      color: var(--muted);
      flex-shrink: 0;
    }

    .stat-big {
      font-size: 40px;
      font-weight: 800;
      letter-spacing: -0.04em;
      color: var(--ink);
      line-height: 1;
    }

    .stat-accent { color: var(--accent); }

    @media (max-width: 900px) {
      .hero, .showcase-body, .crank-lab {
        grid-template-columns: 1fr;
      }

      .hero p { justify-self: start; }

      .stage-visual {
        border-right: none;
        border-bottom: 1px solid var(--border);
      }

      .span-7, .span-5, .span-4, .span-8 {
        grid-column: span 12;
      }
    }

    @media (max-width: 680px) {
      .nav-links { display: none; }
      .mobile-toggle { display: inline-flex; }

      .header-inner { padding: 0 16px; }
      .container { padding: 28px 16px 64px; }
      .stage-info, .bento-card { padding: 20px; }

      .prod-tab, .btn-accent, .btn-outline, .mini-btn {
        min-height: 44px;
      }

      .spec-list {
        grid-template-columns: 1fr;
      }
    }
  </style>
</head>
<body>
  <header class="site-header">
    <div class="header-inner">
      <a href="#top" class="logo">
        <span class="logo-badge" aria-hidden="true">
          <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
            <rect x="2" y="2" width="5" height="5" rx="1" fill="#FFC700"/>
            <rect x="9" y="2" width="5" height="5" rx="2.5" fill="#FF4F2B"/>
            <rect x="2" y="9" width="12" height="5" rx="1.5" fill="#FFFFFF"/>
          </svg>
        </span>
        <span>Mirthworks</span>
      </a>

      <nav class="nav-links" aria-label="Primary">
        <a href="#products">Software</a>
        <a href="#crank">Crankbox</a>
        <a href="#ethos">Studio</a>
        <a href="#products" class="nav-cta">Download Trial</a>
      </nav>

      <button type="button" class="mobile-toggle" id="mobileToggle" aria-label="Toggle navigation" aria-expanded="false">
        <svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
          <line x1="3" y1="6" x2="17" y2="6"/>
          <line x1="3" y1="10" x2="17" y2="10"/>
          <line x1="3" y1="14" x2="17" y2="14"/>
        </svg>
      </button>
    </div>

    <div class="mobile-menu" id="mobileMenu">
      <a href="#products">Software Showcase</a>
      <a href="#crank">Interactive Crankbox</a>
      <a href="#ethos">Studio Dispatch</a>
    </div>
  </header>

  <main class="container" id="top">
    <section class="hero">
      <div>
        <span class="eyebrow">PORTLAND, OR · EST. 2016 · 18 PEOPLE</span>
        <h1>Native Mac tools and one strange yellow handheld.</h1>
      </div>
      <p>We build fast, opinionated software with crisp pixel icons, zero subscriptions, and a small hardware console with a folding steel crank on the side.</p>
    </section>

    <section class="showcase-card" id="products" aria-label="Product Showcase">
      <div class="switcher-bar">
        <div class="switcher-tabs" role="tablist">
          <button type="button" class="prod-tab active" role="tab" aria-selected="true" data-prod="editor">
            <span class="prod-dot" style="background:#FF4F2B;"></span>
            Kestrel Editor
          </button>
          <button type="button" class="prod-tab" role="tab" aria-selected="false" data-prod="transfer">
            <span class="prod-dot" style="background:#2563EB;"></span>
            Parcel SFTP
          </button>
          <button type="button" class="prod-tab" role="tab" aria-selected="false" data-prod="handheld">
            <span class="prod-dot" style="background:#FFC700;"></span>
            Crankbox Pocket
          </button>
        </div>
        <span class="version-tag" id="prodVersion">v11.4 · Universal Binary</span>
      </div>

      <div class="showcase-body">
        <div class="stage-visual" id="stageVisual"></div>
        <div class="stage-info">
          <div>
            <div class="prod-kicker" id="prodKicker">NATIVE MACOS CODE EDITOR</div>
            <h2 class="prod-title" id="prodTitle">Kestrel</h2>
            <p class="prod-desc" id="prodDesc"></p>
            <ul class="spec-list" id="prodSpecs"></ul>
          </div>
          <div class="stage-actions">
            <button type="button" class="btn-accent" id="prodPrimaryBtn">Download 30-Day Trial</button>
            <button type="button" class="btn-outline" id="prodSecondaryBtn">Release Notes</button>
          </div>
        </div>
      </div>
    </section>

    <section class="bento-grid" id="crank">
      <div class="bento-card span-7">
        <div>
          <span class="card-label">INTERACTIVE HARDWARE TOY</span>
          <h3 class="card-heading">Spin the Crankbox Dial</h3>
          <p class="card-copy">Drag the rotary handle (or tap Spin) to wind the 1-bit reflective LCD scene forward and backward in real time.</p>
        </div>

        <div class="crank-lab">
          <div class="lcd-bezel">
            <canvas class="lcd-screen" id="lcdCanvas" width="240" height="128" aria-label="1-bit handheld LCD animation"></canvas>
            <div class="lcd-readout">
              <span id="crankDeg">ANGLE 000°</span>
              <span id="crankPhase">FRAME 00</span>
            </div>
          </div>

          <div class="dial-wrap">
            <svg class="crank-dial" id="crankDial" viewBox="0 0 140 140" role="slider" aria-label="Rotary crank angle" aria-valuemin="0" aria-valuemax="360" aria-valuenow="0">
              <circle cx="70" cy="70" r="60" fill="#FAF9F5" stroke="#18181B" stroke-width="2.5"/>
              <circle cx="70" cy="70" r="46" fill="none" stroke="#D3CFC5" stroke-width="1.5" stroke-dasharray="4 6"/>
              <g id="crankArm" transform="rotate(0 70 70)">
                <line x1="70" y1="70" x2="70" y2="22" stroke="#18181B" stroke-width="8" stroke-linecap="round"/>
                <circle cx="70" cy="70" r="12" fill="#18181B"/>
                <circle cx="70" cy="70" r="4" fill="#FAF9F5"/>
                <circle cx="70" cy="22" r="11" fill="#FF4F2B" stroke="#18181B" stroke-width="2.5"/>
              </g>
            </svg>
            <div class="dial-controls">
              <button type="button" class="mini-btn" id="spinBtn">Auto-Spin</button>
              <button type="button" class="mini-btn" id="nudgeBtn">+45°</button>
            </div>
          </div>
        </div>
      </div>

      <div class="bento-card span-5" id="ethos">
        <div>
          <span class="card-label">STUDIO DISPATCH</span>
          <h3 class="card-heading">Shipped this autumn</h3>
        </div>
        <ul class="dispatch-list">
          <li class="dispatch-row">
            <span><strong>Kestrel 11.4</strong> adds Tree-sitter Swift 6 folding</span>
            <span class="dispatch-date">OCT 18</span>
          </li>
          <li class="dispatch-row">
            <span><strong>Parcel 5.9</strong> parallel S3 multipart resume</span>
            <span class="dispatch-date">OCT 09</span>
          </li>
          <li class="dispatch-row">
            <span><strong>Season Two</strong> 12 new 1-bit handheld games</span>
            <span class="dispatch-date">SEP 27</span>
          </li>
          <li class="dispatch-row">
            <span><strong>SDK 2.6</strong> C &amp; Lua simulator for Apple Silicon</span>
            <span class="dispatch-date">SEP 14</span>
          </li>
        </ul>
      </div>

      <div class="bento-card span-4">
        <span class="card-label">NATIVE PERFORMANCE</span>
        <div>
          <div class="stat-big">100<span class="stat-accent">%</span></div>
          <p class="card-copy">AppKit &amp; Metal interfaces. Zero bundled browsers, zero background telemetry daemons.</p>
        </div>
      </div>

      <div class="bento-card span-8">
        <div>
          <span class="card-label">INDEPENDENT OWNERSHIP</span>
          <h3 class="card-heading">Self-funded since day one.</h3>
          <p class="card-copy">Every tool we release is funded directly by the people who buy it. One license buys the app outright, works offline forever, and funds the next strange experiment on our workbench.</p>
        </div>
      </div>
    </section>
  </main>

  <script>
    const PRODUCTS = {
      editor: {
        version: 'v11.4 · macOS 14+ Universal',
        kicker: 'NATIVE MACOS CODE EDITOR',
        title: 'Kestrel',
        desc: 'A genuinely native Mac code editor built in Swift and Metal. Opens 200 MB log files without flinching, includes built-in Git sidebars, and respects every macOS text shortcut you have memorized since 2008.',
        specs: [
          ['Memory Footprint', '48 MB idle'],
          ['Syntax Engine', 'Tree-sitter Native'],
          ['Extensions', 'JavaScript + LSP'],
          ['License', '$99 One-Time']
        ],
        cta: 'Download Kestrel Trial',
        svg: `
          <svg viewBox="0 0 420 270" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="Kestrel Code Editor illustration">
            <rect x="20" y="18" width="380" height="234" rx="14" fill="#FFFFFF" stroke="#18181B" stroke-width="2.5"/>
            <path d="M20 50H400" stroke="#18181B" stroke-width="2"/>
            <circle cx="42" cy="34" r="5" fill="#FF4F2B"/>
            <circle cx="58" cy="34" r="5" fill="#FFC700"/>
            <circle cx="74" cy="34" r="5" fill="#22C55E"/>
            <rect x="135" y="27" width="150" height="14" rx="4" fill="#F2EFE9"/>
            <rect x="20" y="50" width="94" height="202" fill="#FAF9F5"/>
            <path d="M114 50V252" stroke="#E6E3DC" stroke-width="2"/>
            <rect x="36" y="70" width="56" height="8" rx="3" fill="#D3CFC5"/>
            <rect x="36" y="90" width="62" height="8" rx="3" fill="#FF4F2B"/>
            <rect x="44" y="108" width="48" height="8" rx="3" fill="#D3CFC5"/>
            <rect x="44" y="126" width="52" height="8" rx="3" fill="#D3CFC5"/>
            <rect x="134" y="72" width="66" height="9" rx="3" fill="#2563EB"/>
            <rect x="208" y="72" width="102" height="9" rx="3" fill="#18181B"/>
            <rect x="150" y="96" width="124" height="9" rx="3" fill="#FF4F2B"/>
            <rect x="282" y="96" width="58" height="9" rx="3" fill="#D3CFC5"/>
            <rect x="150" y="120" width="84" height="9" rx="3" fill="#18181B"/>
            <rect x="242" y="120" width="118" height="9" rx="3" fill="#10B981"/>
            <rect x="134" y="144" width="48" height="9" rx="3" fill="#2563EB"/>
            <rect x="134" y="176" width="242" height="54" rx="8" fill="#18181B"/>
            <rect x="150" y="192" width="96" height="7" rx="3" fill="#FFC700"/>
            <rect x="150" y="208" width="160" height="7" rx="3" fill="#6E6A63"/>
          </svg>`
      },
      transfer: {
        version: 'v5.9 · SFTP / S3 / Backblaze',
        kicker: 'HIGH-SPEED FILE TRANSFER',
        title: 'Parcel',
        desc: 'The dual-pane Mac file transfer utility trusted by release engineers. Drag folders between local drives, SFTP servers, and S3 buckets with cryptographic verification and instant sync previews.',
        specs: [
          ['Protocols', 'SFTP, S3, WebDAV'],
          ['Sync Engine', 'Delta Checksum'],
          ['Throughput', 'Multi-stream'],
          ['License', '$45 One-Time']
        ],
        cta: 'Download Parcel 5',
        svg: `
          <svg viewBox="0 0 420 270" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="Parcel File Transfer illustration">
            <rect x="26" y="42" width="152" height="186" rx="14" fill="#FFFFFF" stroke="#18181B" stroke-width="2.5"/>
            <rect x="242" y="42" width="152" height="186" rx="14" fill="#FFFFFF" stroke="#18181B" stroke-width="2.5"/>
            <rect x="44" y="64" width="116" height="14" rx="4" fill="#E6E3DC"/>
            <rect x="44" y="92" width="96" height="12" rx="4" fill="#2563EB" fill-opacity="0.22"/>
            <rect x="44" y="114" width="116" height="12" rx="4" fill="#F2EFE9"/>
            <rect x="44" y="136" width="84" height="12" rx="4" fill="#F2EFE9"/>
            <rect x="44" y="158" width="108" height="12" rx="4" fill="#F2EFE9"/>
            <rect x="260" y="64" width="116" height="14" rx="4" fill="#18181B"/>
            <rect x="260" y="92" width="116" height="12" rx="4" fill="#2563EB"/>
            <rect x="260" y="114" width="90" height="12" rx="4" fill="#F2EFE9"/>
            <rect x="260" y="136" width="104" height="12" rx="4" fill="#F2EFE9"/>
            <rect x="260" y="158" width="76" height="12" rx="4" fill="#F2EFE9"/>
            <circle cx="210" cy="135" r="24" fill="#FF4F2B" stroke="#18181B" stroke-width="2.5"/>
            <path d="M200 135H220M220 135L213 128M220 135L213 142" stroke="#FFFFFF" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
          </svg>`
      },
      handheld: {
        version: 'Rev B · In Stock Ships Friday',
        kicker: 'POCKET HARDWARE CONSOLE',
        title: 'Crankbox Pocket',
        desc: 'A 74mm square handheld with a sharp 1-bit sunlight-readable display, tactile D-pad, Wi-Fi game seasons, and a precision-machined magnetic crank that flips out for analog rotational gameplay.',
        specs: [
          ['Display', '400×240 1-Bit LCD'],
          ['Input', 'D-Pad + Steel Crank'],
          ['Battery', '14 Days Standby'],
          ['Price', '$199 Complete']
        ],
        cta: 'Reserve Crankbox',
        svg: `
          <svg viewBox="0 0 420 270" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="Crankbox Handheld Console illustration">
            <rect x="106" y="24" width="194" height="222" rx="22" fill="#FFC700" stroke="#18181B" stroke-width="3"/>
            <rect x="124" y="42" width="158" height="102" rx="8" fill="#B9BFAA" stroke="#18181B" stroke-width="2.5"/>
            <path d="M132 126L164 88L192 114L226 76L274 126" stroke="#18181B" stroke-width="3" stroke-linejoin="round"/>
            <circle cx="244" cy="64" r="10" fill="#18181B"/>
            <rect x="148" y="170" width="18" height="52" rx="4" fill="#18181B"/>
            <rect x="131" y="187" width="52" height="18" rx="4" fill="#18181B"/>
            <circle cx="240" cy="204" r="14" fill="#18181B"/>
            <circle cx="268" cy="182" r="14" fill="#FF4F2B" stroke="#18181B" stroke-width="2.5"/>
            <rect x="300" y="114" width="22" height="56" rx="6" fill="#E6E3DC" stroke="#18181B" stroke-width="2.5"/>
            <path d="M322 142H346V192" stroke="#18181B" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
            <rect x="336" y="186" width="20" height="32" rx="6" fill="#FF4F2B" stroke="#18181B" stroke-width="2.5"/>
          </svg>`
      }
    };

    function renderProduct(key) {
      const p = PRODUCTS[key];
      document.getElementById('prodVersion').textContent = p.version;
      document.getElementById('prodKicker').textContent = p.kicker;
      document.getElementById('prodTitle').textContent = p.title;
      document.getElementById('prodDesc').textContent = p.desc;
      document.getElementById('prodPrimaryBtn').textContent = p.cta;
      document.getElementById('stageVisual').innerHTML = p.svg;
      document.getElementById('prodSpecs').innerHTML = p.specs.map(([k, v]) => `
        <li class="spec-item"><span class="spec-k">${k}</span><span class="spec-v">${v}</span></li>
      `).join('');

      document.querySelectorAll('.prod-tab').forEach(tab => {
        const active = tab.dataset.prod === key;
        tab.classList.toggle('active', active);
        tab.setAttribute('aria-selected', String(active));
      });
    }

    document.querySelectorAll('.prod-tab').forEach(tab => {
      tab.addEventListener('click', () => renderProduct(tab.dataset.prod));
    });

    document.getElementById('prodPrimaryBtn').addEventListener('click', function () {
      const prev = this.textContent;
      this.textContent = 'Preparing Universal DMG...';
      setTimeout(() => this.textContent = prev, 1400);
    });

    // Interactive Crank + 1-Bit LCD Canvas
    const canvas = document.getElementById('lcdCanvas');
    const ctx = canvas.getContext('2d');
    const crankDial = document.getElementById('crankDial');
    const crankArm = document.getElementById('crankArm');
    const crankDegEl = document.getElementById('crankDeg');
    const crankPhaseEl = document.getElementById('crankPhase');

    let angle = 24;
    let dragging = false;
    let autoSpin = false;
    let rafId = null;

    function drawLCD(deg) {
      const w = canvas.width;
      const h = canvas.height;
      const norm = ((deg % 360) + 360) % 360;
      const rad = (norm * Math.PI) / 180;

      ctx.fillStyle = '#B9BFAA';
      ctx.fillRect(0, 0, w, h);

      // Sun arc driven by crank
      const sunX = 32 + (norm / 360) * (w - 64);
      const sunY = 58 - Math.sin((norm / 360) * Math.PI) * 34;
      ctx.fillStyle = '#18181B';
      ctx.beginPath();
      ctx.arc(sunX, sunY, 11, 0, Math.PI * 2);
      ctx.fill();

      // Parallax pixel mountains
      const shift = (deg * 0.45) % 80;
      ctx.strokeStyle = '#18181B';
      ctx.lineWidth = 3;
      ctx.beginPath();
      for (let x = -80; x <= w + 80; x += 80) {
        const px = x - shift;
        ctx.moveTo(px, 102);
        ctx.lineTo(px + 40, 56);
        ctx.lineTo(px + 80, 102);
      }
      ctx.stroke();

      // Horizon & moving runner
      ctx.fillRect(0, 102, w, 3);
      const bob = Math.abs(Math.sin(rad * 4)) * 5;
      ctx.fillRect(46, 86 - bob, 10, 14);
      ctx.fillRect(48, 80 - bob, 6, 6);

      // Dithered wave ground
      for (let x = 0; x < w; x += 8) {
        const offset = Math.floor((deg / 6) % 8);
        ctx.fillRect((x - offset + w) % w, 112, 4, 3);
        ctx.fillRect((x + offset) % w, 120, 4, 3);
      }

      crankArm.setAttribute('transform', `rotate(${norm.toFixed(1)} 70 70)`);
      crankDial.setAttribute('aria-valuenow', String(Math.round(norm)));
      crankDegEl.textContent = `ANGLE ${String(Math.round(norm)).padStart(3, '0')}°`;
      crankPhaseEl.textContent = `FRAME ${String(Math.floor(norm / 6)).padStart(2, '0')}`;
    }

    function updateAngleFromPointer(clientX, clientY) {
      const rect = crankDial.getBoundingClientRect();
      const cx = rect.left + rect.width / 2;
      const cy = rect.top + rect.height / 2;
      const deg = (Math.atan2(clientY - cy, clientX - cx) * 180) / Math.PI + 90;
      angle = (deg + 360) % 360;
      drawLCD(angle);
    }

    crankDial.addEventListener('pointerdown', e => {
      autoSpin = false;
      document.getElementById('spinBtn').textContent = 'Auto-Spin';
      dragging = true;
      crankDial.setPointerCapture(e.pointerId);
      updateAngleFromPointer(e.clientX, e.clientY);
    });

    crankDial.addEventListener('pointermove', e => {
      if (!dragging) return;
      updateAngleFromPointer(e.clientX, e.clientY);
    });

    crankDial.addEventListener('pointerup', () => { dragging = false; });

    document.getElementById('nudgeBtn').addEventListener('click', () => {
      angle = (angle + 45) % 360;
      drawLCD(angle);
    });

    function tickSpin() {
      if (!autoSpin) return;
      angle = (angle + 2.2) % 360;
      drawLCD(angle);
      rafId = requestAnimationFrame(tickSpin);
    }

    document.getElementById('spinBtn').addEventListener('click', function () {
      autoSpin = !autoSpin;
      this.textContent = autoSpin ? 'Stop' : 'Auto-Spin';
      if (autoSpin) tickSpin();
      else cancelAnimationFrame(rafId);
    });

    // Mobile Nav
    const mobileToggle = document.getElementById('mobileToggle');
    const mobileMenu = document.getElementById('mobileMenu');
    mobileToggle.addEventListener('click', () => {
      const open = mobileMenu.classList.toggle('open');
      mobileToggle.setAttribute('aria-expanded', String(open));
    });

    mobileMenu.querySelectorAll('a').forEach(a => {
      a.addEventListener('click', () => {
        mobileMenu.classList.remove('open');
        mobileToggle.setAttribute('aria-expanded', 'false');
      });
    });

    renderProduct('editor');
    drawLCD(angle);
  </script>
</body>
</html>
```
