#021 style light mobile: high Hardware & Industrial

Braun Functionalist Grid

Alabaster modular shelving grids, anodized hairline rules, and Dieter Rams functionalist restraint.

Inspired by Vitsœ ↗

Download .html
Fullscreen ↗

WHY THIS AESTHETIC IS UNIQUE

Eliminates all decorative chrome in favor of a calm 1px architectural rule grid, recessed status LEDs, and self-explanatory modular elevation controls.

BEST FOR

Industrial product catalogsArchitectural configuratorsDesign systems documentationLongevity-focused consumer hardware

TAGS

COLOR PALETTE (CLICK TO COPY HEX)

TYPOGRAPHY

Display
DM Sans
Body
DM Sans
Mono
IBM Plex Mono
Scale
Tight -0.03em display headings (32–52px) paired with 10–12px uppercase monospace dimension specs and 1px hairline borders.

Google Fonts Stylesheet ↗

ARCHITECTURE & MOBILE NOTES

LAYOUT

Two-column hero pairing product thesis with an interactive modular bay elevation, followed by a hairline-bordered principles matrix and cross-section blueprint band.

INTERACTION

Direct-manipulation bay count switches, clickable shelf slots that cycle module types with live load-capacity telemetry, and material finish swatches updating an inline SVG blueprint.

MOBILE

Collapses to a single column at 640px with a 44px-tall mobile drawer trigger, stacked spec cells, and full-width touchable bay slots with zero horizontal overflow.

AI AGENT GUARDRAILS

DO

  • Use 1px hairline dividers instead of drop shadows to define spatial hierarchy.
  • Reserve the signal orange accent strictly for active pins, callout dots, or primary mechanical state.
  • Pair human-scale prose with tabular monospace millimeter measurements.

DON'T

  • Never add gradients, glassmorphism, or decorative floating blobs.
  • Avoid rounded pill-heavy SaaS cards; keep corners sharp (0–2px) like machined extrusions.
STANDALONE SOURCE · demos/braun-functionalist-grid.html (23.4 KB)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>606 Universal Shelving — Braun Functionalist Grid</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:ital,opsz,wght@0,9..40,300..700;1,9..40,400&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
  :root {
    --canvas: #F6F5F1;
    --surface: #EAE8E1;
    --surface-raised: #FFFFFF;
    --ink: #1C1C1A;
    --muted: #6C6B66;
    --rule: #D3D0C7;
    --accent: #D94F1E;
    --signal-green: #2D8A4E;
    --alum: #C8C6BE;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  }

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

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

  /* Header Bar */
  .topbar {
    border-bottom: 1px solid var(--rule);
    background: var(--canvas);
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

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

  .brand-led {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--signal-green);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
  }

  .nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
  }

  .nav-links a:hover, .nav-links a.active { color: var(--ink); }

  .mobile-menu-btn {
    display: none;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--rule);
    background: var(--surface-raised);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
  }

  .mobile-drawer {
    display: none;
    border-bottom: 1px solid var(--rule);
    background: var(--surface);
    padding: 12px 20px 16px;
  }

  .mobile-drawer.open { display: block; }

  .mobile-drawer a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid var(--rule);
  }

  .mobile-drawer a:last-child { border-bottom: none; }

  /* Main Container */
  .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 72px;
  }

  /* Hero Grid */
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--rule);
  }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
  }

  .eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
  }

  h1 {
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 500;
    margin: 0 0 18px;
  }

  .lead {
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0 0 28px;
    max-width: 48ch;
  }

  .spec-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }

  .spec-cell {
    padding: 14px 12px 14px 0;
    border-right: 1px solid var(--rule);
  }

  .spec-cell:last-child { border-right: none; padding-left: 12px; padding-right: 0; }
  .spec-cell:nth-child(2) { padding-left: 12px; }

  .spec-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 4px;
  }

  .spec-val {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
  }

  /* Interactive 606 Shelving Configurator */
  .config-card {
    background: var(--surface-raised);
    border: 1px solid var(--rule);
    padding: 20px;
  }

  .config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
    flex-wrap: wrap;
  }

  .config-title {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
  }

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

  .ctrl-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0 12px;
    border: 1px solid var(--rule);
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
  }

  .ctrl-btn:hover { background: var(--surface); }
  .ctrl-btn.active {
    background: var(--ink);
    color: var(--canvas);
    border-color: var(--ink);
  }

  /* Wall Elevation Blueprint */
  .wall-stage {
    background: var(--canvas);
    border: 1px solid var(--rule);
    padding: 22px 16px 18px;
    position: relative;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .wall-bays {
    display: grid;
    gap: 0;
    align-items: stretch;
    width: 100%;
    position: relative;
  }

  .bay-col {
    border-left: 3px solid var(--alum);
    border-right: 3px solid var(--alum);
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 19px,
      rgba(28,28,26,0.05) 19px,
      rgba(28,28,26,0.05) 20px
    );
  }

  .bay-col + .bay-col { border-left: none; }

  .shelf-slot {
    min-height: 44px;
    border: 1px dashed var(--rule);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    transition: all 0.15s;
    text-align: left;
  }

  .shelf-slot:hover { border-color: var(--ink); color: var(--ink); }

  .shelf-slot[data-type="shelf"] {
    border: none;
    border-bottom: 5px solid var(--ink);
    background: rgba(255,255,255,0.75);
    color: var(--ink);
  }

  .shelf-slot[data-type="cabinet"] {
    border: 1px solid var(--ink);
    background: var(--surface-raised);
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--rule);
    min-height: 58px;
  }

  .shelf-slot[data-type="desk"] {
    border: none;
    border-top: 7px solid var(--accent);
    background: var(--surface);
    color: var(--ink);
  }

  .slot-badge {
    font-size: 9px;
    padding: 2px 5px;
    background: var(--surface);
    border: 1px solid var(--rule);
    color: var(--muted);
  }

  .shelf-slot[data-type="desk"] .slot-badge {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }

  .telemetry-bar {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
  }

  .telemetry-bar strong { color: var(--ink); font-weight: 500; }

  .hint-note {
    font-size: 12px;
    color: var(--muted);
    margin: 10px 0 0;
  }

  /* Principles Section */
  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 48px 0 24px;
    flex-wrap: wrap;
  }

  .section-head h2 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0;
  }

  .filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .pill-btn {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--rule);
    background: var(--surface-raised);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
  }

  .pill-btn.active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--canvas);
  }

  .principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
  }

  .principle-card {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 22px 20px;
    background: var(--canvas);
    transition: background 0.15s;
  }

  .principle-card:hover { background: var(--surface-raised); }

  .p-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 10px;
  }

  .p-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
  }

  .p-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
  }

  /* Technical Drawing Footer Band */
  .blueprint-band {
    margin-top: 48px;
    background: var(--surface);
    border: 1px solid var(--rule);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: center;
  }

  .blueprint-svg {
    width: 100%;
    height: auto;
    display: block;
    background: var(--surface-raised);
    border: 1px solid var(--rule);
  }

  .finish-swatches {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
  }

  .swatch-btn {
    min-height: 44px;
    padding: 6px 12px;
    border: 1px solid var(--rule);
    background: var(--surface-raised);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
    color: var(--ink);
  }

  .swatch-btn.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

  .swatch-chip {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.2);
  }

  footer {
    border-top: 1px solid var(--rule);
    padding: 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
  }

  @media (max-width: 900px) {
    .hero, .blueprint-band { grid-template-columns: 1fr; }
    .principles-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 640px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: inline-flex; }
    .wrap { padding: 24px 16px 56px; }
    .principles-grid { grid-template-columns: 1fr; }
    .spec-strip { grid-template-columns: 1fr; }
    .spec-cell { border-right: none; border-bottom: 1px solid var(--rule); padding: 10px 0 !important; }
    .spec-cell:last-child { border-bottom: none; }
    .config-card { padding: 14px; }
    .wall-stage { padding: 14px 10px; }
  }
</style>
</head>
<body>

<header class="topbar">
  <div class="topbar-inner">
    <a href="#" class="brand">
      <span class="brand-led" aria-hidden="true"></span>
      <span>VITSŒ · 606 SYSTEM</span>
    </a>
    <nav aria-label="Primary">
      <ul class="nav-links">
        <li><a href="#planner" class="active">606 Planner</a></li>
        <li><a href="#principles">Ten Principles</a></li>
        <li><a href="#materials">Anodised Spec</a></li>
      </ul>
    </nav>
    <button class="mobile-menu-btn" id="menuBtn" aria-expanded="false" aria-controls="mobileDrawer">MENU</button>
  </div>
  <div class="mobile-drawer" id="mobileDrawer">
    <a href="#planner">606 Modular Planner</a>
    <a href="#principles">Ten Principles of Good Design</a>
    <a href="#materials">Anodised Aluminium Specification</a>
  </div>
</header>

<main class="wrap">
  <section class="hero" id="planner">
    <div>
      <div class="eyebrow"><span class="eyebrow-dot"></span>DESIGNED BY DIETER RAMS · 1960</div>
      <h1>Less, but better.<br>Built to move with you.</h1>
      <p class="lead">
        The 606 Universal Shelving System is engineered from extruded anodised aluminium tracks and powder-coated steel shelves. Reconfigure bays without tools as your life evolves.
      </p>
      <div class="spec-strip">
        <div class="spec-cell">
          <div class="spec-label">Bay Width</div>
          <div class="spec-val">655 / 900 mm</div>
        </div>
        <div class="spec-cell">
          <div class="spec-label">Pin Interval</div>
          <div class="spec-val">38 mm pitch</div>
        </div>
        <div class="spec-cell">
          <div class="spec-label">Warranty</div>
          <div class="spec-val">Lifetime Parts</div>
        </div>
      </div>
    </div>

    <div class="config-card">
      <div class="config-header">
        <span class="config-title">Interactive Elevation · Click Any Slot</span>
        <div class="bay-controls" role="group" aria-label="Number of bays">
          <button class="ctrl-btn" data-bays="1">1 BAY</button>
          <button class="ctrl-btn active" data-bays="2">2 BAYS</button>
          <button class="ctrl-btn" data-bays="3">3 BAYS</button>
        </div>
      </div>

      <div class="wall-stage">
        <div class="wall-bays" id="wallBays"></div>
        <div class="telemetry-bar">
          <span>WIDTH: <strong id="tWidth">1830 mm</strong></span>
          <span>LOAD CAP: <strong id="tLoad">145 kg</strong></span>
          <span>E-TRACKS: <strong id="tTracks">3 rails</strong></span>
        </div>
      </div>
      <p class="hint-note">Tap any slot to cycle: Shelf → Cabinet → Desk Surface → Open Span.</p>
    </div>
  </section>

  <section id="principles">
    <div class="section-head">
      <h2>Good Design Principles</h2>
      <div class="filter-pills" role="group" aria-label="Filter principles">
        <button class="pill-btn active" data-filter="all">All (06)</button>
        <button class="pill-btn" data-filter="form">Form &amp; Clarity</button>
        <button class="pill-btn" data-filter="longevity">Longevity</button>
      </div>
    </div>

    <div class="principles-grid" id="principlesGrid">
      <article class="principle-card" data-cat="form">
        <div class="p-num">01 · INNOVATIVE</div>
        <h3 class="p-title">Purposeful Engineering</h3>
        <p class="p-desc">Technological development always runs parallel to honest utility; never novelty for novelty's sake.</p>
      </article>
      <article class="principle-card" data-cat="form">
        <div class="p-num">02 · USEFUL</div>
        <h3 class="p-title">Functional Precision</h3>
        <p class="p-desc">Every chamfer, pin slot, and rail dimension serves ergonomic clarity and structural load transfer.</p>
      </article>
      <article class="principle-card" data-cat="form">
        <div class="p-num">03 · UNDERSTANDABLE</div>
        <h3 class="p-title">Self-Explanatory Controls</h3>
        <p class="p-desc">A product's structure should communicate its operation immediately without dense manuals.</p>
      </article>
      <article class="principle-card" data-cat="longevity">
        <div class="p-num">04 · UNOBTRUSIVE</div>
        <h3 class="p-title">Neutral Room Architecture</h3>
        <p class="p-desc">Products fulfilling a purpose are like tools—neither decorative objects nor works of art.</p>
      </article>
      <article class="principle-card" data-cat="longevity">
        <div class="p-num">05 · LONG-LASTING</div>
        <h3 class="p-title">Anti-Obsolescence</h3>
        <p class="p-desc">Avoids being fashionable and therefore never appears antiquated across decades of daily service.</p>
      </article>
      <article class="principle-card" data-cat="longevity">
        <div class="p-num">06 · AS LITTLE AS POSSIBLE</div>
        <h3 class="p-title">Back to Purity</h3>
        <p class="p-desc">Concentrate on essential aspects so products are not burdened with non-essentials.</p>
      </article>
    </div>
  </section>

  <section class="blueprint-band" id="materials">
    <div>
      <svg class="blueprint-svg" viewBox="0 0 360 190" role="img" aria-label="606 E-Track cross-section technical drawing">
        <defs>
          <pattern id="gridPat" width="18" height="18" patternUnits="userSpaceOnUse">
            <path d="M 18 0 L 0 0 0 18" fill="none" stroke="#E5E2D9" stroke-width="0.8"/>
          </pattern>
        </defs>
        <rect width="360" height="190" fill="url(#gridPat)"/>
        <!-- E-Track profile -->
        <rect id="svgTrack" x="48" y="24" width="16" height="142" fill="#C8C6BE" stroke="#1C1C1A" stroke-width="1.5"/>
        <!-- Pin holes -->
        <circle cx="56" cy="48" r="2.2" fill="#1C1C1A"/>
        <circle cx="56" cy="86" r="2.2" fill="#1C1C1A"/>
        <circle cx="56" cy="124" r="2.2" fill="#1C1C1A"/>
        <!-- Shelf bracket & plane -->
        <path id="svgShelf" d="M 64 82 L 308 82 L 308 92 L 74 92 L 64 114 Z" fill="#FFFFFF" stroke="#1C1C1A" stroke-width="1.5"/>
        <!-- Pin callout -->
        <circle cx="66" cy="86" r="3.5" fill="#D94F1E"/>
        <!-- Dimension lines -->
        <line x1="64" y1="54" x2="308" y2="54" stroke="#6C6B66" stroke-width="1" stroke-dasharray="3 3"/>
        <line x1="64" y1="48" x2="64" y2="60" stroke="#6C6B66" stroke-width="1"/>
        <line x1="308" y1="48" x2="308" y2="60" stroke="#6C6B66" stroke-width="1"/>
        <text x="186" y="48" text-anchor="middle" font-family="IBM Plex Mono, monospace" font-size="10" fill="#1C1C1A">DEPTH: 220 / 360 MM</text>
        <text x="82" y="148" font-family="IBM Plex Mono, monospace" font-size="9.5" fill="#6C6B66">STAINLESS LOCK PIN · Ø 4.0 MM</text>
        <line x1="69" y1="89" x2="86" y2="136" stroke="#D94F1E" stroke-width="1"/>
      </svg>
    </div>

    <div>
      <div class="eyebrow"><span class="eyebrow-dot"></span>MATERIAL SPECIFICATION</div>
      <h2 style="margin:0 0 10px;font-size:22px;font-weight:500;">Anodised Aluminium &amp; Powder Coat</h2>
      <p class="p-desc" id="finishCopy">
        Off-white satin powder-coated steel shelves paired with natural silver anodised E-Tracks. Designed to reflect daylight calmly into work and living spaces.
      </p>
      <div class="finish-swatches" role="group" aria-label="Surface finish">
        <button class="swatch-btn active" data-finish="offwhite">
          <span class="swatch-chip" style="background:#FFFFFF"></span>OFF-WHITE
        </button>
        <button class="swatch-btn" data-finish="silver">
          <span class="swatch-chip" style="background:#C8C6BE"></span>SILVER ANODISED
        </button>
        <button class="swatch-btn" data-finish="black">
          <span class="swatch-chip" style="background:#1C1C1A"></span>MATTE BLACK
        </button>
      </div>
    </div>
  </section>
</main>

<footer>
  <span>606 UNIVERSAL SHELVING SYSTEM · FUNCTIONALIST GRID SPECIMEN</span>
  <span>MADE IN ROYAL LEAMINGTON SPA · EST. 1959</span>
</footer>

<script>
  // Mobile menu
  const menuBtn = document.getElementById('menuBtn');
  const mobileDrawer = document.getElementById('mobileDrawer');
  menuBtn.addEventListener('click', () => {
    const open = mobileDrawer.classList.toggle('open');
    menuBtn.setAttribute('aria-expanded', String(open));
    menuBtn.textContent = open ? 'CLOSE' : 'MENU';
  });

  // 606 Configurator State
  const CYCLE = ['shelf', 'cabinet', 'desk', 'empty'];
  const LABELS = {
    shelf: ['Metal Shelf', '25 kg'],
    cabinet: ['Flip-Door Cabinet', '35 kg'],
    desk: ['360mm Desk', '40 kg'],
    empty: ['+ Add Module', '0 kg']
  };
  const LOADS = { shelf: 25, cabinet: 35, desk: 40, empty: 0 };

  let bayCount = 2;
  let state = [
    ['shelf', 'shelf', 'desk', 'cabinet'],
    ['shelf', 'cabinet', 'shelf', 'empty'],
    ['shelf', 'shelf', 'cabinet', 'shelf']
  ];

  const wallBays = document.getElementById('wallBays');
  const tWidth = document.getElementById('tWidth');
  const tLoad = document.getElementById('tLoad');
  const tTracks = document.getElementById('tTracks');

  function renderBays() {
    wallBays.style.gridTemplateColumns = `repeat(${bayCount}, minmax(0, 1fr))`;
    wallBays.innerHTML = '';
    let totalLoad = 0;

    for (let b = 0; b < bayCount; b++) {
      const col = document.createElement('div');
      col.className = 'bay-col';
      for (let r = 0; r < 4; r++) {
        const type = state[b][r];
        totalLoad += LOADS[type];
        const btn = document.createElement('button');
        btn.type = 'button';
        btn.className = 'shelf-slot';
        btn.dataset.type = type;
        btn.innerHTML = `<span>${LABELS[type][0]}</span><span class="slot-badge">${LABELS[type][1]}</span>`;
        btn.addEventListener('click', () => {
          const next = CYCLE[(CYCLE.indexOf(state[b][r]) + 1) % CYCLE.length];
          state[b][r] = next;
          renderBays();
        });
        col.appendChild(btn);
      }
      wallBays.appendChild(col);
    }

    tWidth.textContent = `${bayCount * 900 + (bayCount + 1) * 15} mm`;
    tLoad.textContent = `${totalLoad} kg`;
    tTracks.textContent = `${bayCount + 1} rails`;
  }

  document.querySelectorAll('.ctrl-btn').forEach(btn => {
    btn.addEventListener('click', () => {
      document.querySelectorAll('.ctrl-btn').forEach(b => b.classList.remove('active'));
      btn.classList.add('active');
      bayCount = Number(btn.dataset.bays);
      renderBays();
    });
  });

  renderBays();

  // Principles Filter
  document.querySelectorAll('.pill-btn').forEach(btn => {
    btn.addEventListener('click', () => {
      document.querySelectorAll('.pill-btn').forEach(b => b.classList.remove('active'));
      btn.classList.add('active');
      const f = btn.dataset.filter;
      document.querySelectorAll('.principle-card').forEach(card => {
        card.style.display = (f === 'all' || card.dataset.cat === f) ? 'block' : 'none';
      });
    });
  });

  // Finish Swatch Switcher
  const finishMap = {
    offwhite: {
      fill: '#FFFFFF',
      track: '#C8C6BE',
      copy: 'Off-white satin powder-coated steel shelves paired with natural silver anodised E-Tracks. Designed to reflect daylight calmly into work and living spaces.'
    },
    silver: {
      fill: '#D8D6CE',
      track: '#B5B3AA',
      copy: 'Raw bead-blasted silver anodised aluminium throughout. Engineered for studio, archive, and architectural library installations.'
    },
    black: {
      fill: '#262624',
      track: '#3A3A36',
      copy: 'Matte black fine-texture powder coat with black anodised vertical tracks—anchoring high-contrast acoustics and gallery objects.'
    }
  };

  document.querySelectorAll('.swatch-btn').forEach(btn => {
    btn.addEventListener('click', () => {
      document.querySelectorAll('.swatch-btn').forEach(b => b.classList.remove('active'));
      btn.classList.add('active');
      const spec = finishMap[btn.dataset.finish];
      document.getElementById('svgShelf').setAttribute('fill', spec.fill);
      document.getElementById('svgTrack').setAttribute('fill', spec.track);
      document.getElementById('finishCopy').textContent = spec.copy;
    });
  });
</script>
</body>
</html>