# #100 — Lusion Sculptural Kinetic

> Cutting-edge spatial creative studio pairing an elastic physics-orb canvas hero with oversized sculptural display typography.

## Metadata

- **Index**: #100
- **Slug**: `lusion-sculptural-kinetic`
- **Kind**: `style`
- **Family**: Kinetic, Film & Creative Studio
- **Theme**: `dark`
- **Mobile Strength**: `high`
- **Tags**: `sculptural-kinetic`, `physics-canvas`, `creative-studio`, `oversized-display`, `tactile-motion`, `obsidian-vermilion`
- **Best For**: Flagship digital & 3D creative studios, Interactive product & hardware unveilings, Design-engineer personal portfolios, High-craft brand storytelling experiences
- **Real-World Inspiration**: [Lusion](https://lusion.co/)
- **Detail Page**: https://templates.michaelpitts.net/t/lusion-sculptural-kinetic
- **Live Demo**: https://templates.michaelpitts.net/demos/lusion-sculptural-kinetic.html
- **JSON API**: https://templates.michaelpitts.net/api/templates/lusion-sculptural-kinetic

## Why This Aesthetic Is Unique

Blends playful spring-physics interactivity with high-craft studio minimalism—turning the hero into a sculptural tactile playground where glowing elastic orbs respond to pointer velocity.

## Color Palette

| Role | Name | Hex |
|------|------|-----|
| `canvas` | Studio Obsidian | `#101114` |
| `surface` | Sculpted Slate | `#1A1C22` |
| `ink` | Gallery Chalk | `#F7F7F5` |
| `accent` | Kinetic Vermilion | `#FF5A26` |
| `muted` | Alloy Gray | `#8A8D96` |

## Typography

- **Display**: `Syne, sans-serif`
- **Body**: `Plus Jakarta Sans, -apple-system, sans-serif`
- **Mono**: `JetBrains Mono, ui-monospace, monospace`
- **Scale Notes**: Monumental Syne manifesto headlines (clamp(2.4rem, 7vw, 6rem)) contrasted with clean 15px studio copy and 11px mono case-study indices.
- **Google Fonts**: https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600&family=Syne:wght@700;800&display=swap
  ```html
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600&family=Syne:wght@700;800&display=swap">
  ```

## Layout Architecture

Full-bleed interactive physics-orb canvas hero, bold oversized manifesto statement, and an interactive case-study spotlight deck with smooth visual state transitions.

## Interaction & Micro-Motion Rules

HTML5 Canvas 2D elastic-orb physics simulation reacts to mouse/touch velocity with impulse bursts on tap; clicking case-study cards swaps the live spotlight preview and physics palette.

## Mobile & Responsive Rules

Touch-impulse physics canvas scales cleanly to 390px with >=44px case-study tabs and zero horizontal scroll.

## Agent Guardrails

### DO
- Make the hero physics canvas responsive to both desktop hover velocity and mobile tap impulses.
- Anchor oversized sculptural typography with generous obsidian negative space and a single bold vermilion accent.
- Keep case-study transitions fluid and snappy (250–350ms cubic-bezier).

### DON'T
- Do not overload the canvas with heavy blur filters that tank mobile frame rates.
- Do not clutter the studio manifesto with dense SaaS pricing grids.

## Complete Standalone Starter Code

File: `demos/lusion-sculptural-kinetic.html`

```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>LUSION — Sculptural Realtime &amp; Kinetic Studio</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=JetBrains+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600&family=Syne:wght@600;700;800&display=swap" rel="stylesheet">
<style>
  :root {
    --bg: #101114;
    --surface: #1A1C22;
    --surface-2: #22252E;
    --ink: #F7F7F5;
    --accent: #FF5A26;
    --accent-soft: rgba(255, 90, 38, 0.16);
    --muted: #8A8D96;
    --line: rgba(247, 247, 245, 0.11);
    --display: 'Syne', system-ui, sans-serif;
    --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

  /* Floating Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 17, 20, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .header-row {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
  }
  .orb-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, #FFB399, var(--accent) 62%, #7A1E04);
    box-shadow: 0 0 14px rgba(255, 90, 38, 0.65);
  }
  .logo-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  .nav-links a {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav-links a:hover, .nav-links a.active { color: var(--ink); }
  .menu-btn {
    display: none;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.72rem;
    align-items: center;
    justify-content: center;
  }
  .mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
  }

  /* Main Shell */
  .shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2.5rem) 4rem;
  }

  /* Sculptural Physics Hero */
  .sculpt-hero {
    position: relative;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: radial-gradient(circle at 70% 35%, #1F1B1C 0%, #101114 68%);
    min-height: clamp(460px, 68vh, 640px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  #orbCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
  }
  .hero-top {
    position: relative;
    z-index: 4;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
  }
  .pill-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(16, 17, 20, 0.72);
    border: 1px solid var(--line);
    color: var(--ink);
  }
  .pill-tag strong { color: var(--accent); font-weight: 500; }

  .hero-manifesto {
    position: relative;
    z-index: 4;
    padding: 1rem clamp(1.25rem, 3.5vw, 2.5rem);
    max-width: 840px;
    pointer-events: none;
  }
  .hero-manifesto h1 {
    margin: 0;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.25rem, 6.2vw, 5.2rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
    text-transform: uppercase;
  }
  .hero-manifesto h1 span { color: var(--accent); }
  .hero-manifesto p {
    margin: 1rem 0 0;
    font-size: clamp(0.95rem, 1.5vw, 1.12rem);
    line-height: 1.6;
    color: rgba(247, 247, 245, 0.76);
    max-width: 48ch;
  }

  .physics-dock {
    position: relative;
    z-index: 5;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(16, 17, 20, 0.72);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .dock-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
  }
  .phys-btn {
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
  }
  .phys-btn:hover { border-color: var(--accent); }
  .phys-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #101114;
    font-weight: 700;
  }
  .vel-readout {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
  }
  .vel-readout b { color: var(--accent); }

  /* Case-Study Spotlight Deck */
  .deck-section {
    margin-top: 3.25rem;
  }
  .deck-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .deck-header h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    letter-spacing: -0.02em;
  }
  .deck-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .nav-circle {
    min-width: 46px;
    min-height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    font-family: var(--mono);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
  }
  .nav-circle:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
  }

  .spotlight-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .spotlight-card.switching {
    opacity: 0.45;
    transform: translateY(6px);
  }
  .spot-visual {
    background: #0B0C0F;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .spot-visual svg { width: 100%; height: 100%; display: block; }
  .spot-index {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(16, 17, 20, 0.8);
    border: 1px solid var(--line);
    color: var(--accent);
  }
  .spot-body {
    padding: clamp(1.25rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
  }
  .spot-kicker {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .spot-title {
    margin: 0.4rem 0 0.75rem;
    font-family: var(--display);
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    line-height: 1.05;
  }
  .spot-desc {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.68;
    color: rgba(247, 247, 245, 0.8);
  }
  .spot-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 12px;
    background: rgba(16, 17, 20, 0.55);
    border: 1px solid var(--line);
  }
  .spot-stats dt {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
  }
  .spot-stats dd {
    margin: 0.25rem 0 0;
    font-family: var(--display);
    font-size: 1.15rem;
  }
  .spot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
  }
  .cta-pill {
    min-height: 46px;
    padding: 0 1.3rem;
    border-radius: 999px;
    background: var(--accent);
    color: #101114;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .deck-pills {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .deck-tab {
    min-height: 52px;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: border-color 0.2s, background 0.2s;
  }
  .deck-tab.active {
    border-color: var(--accent);
    background: var(--surface-2);
  }
  .deck-tab span {
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--accent);
  }
  .deck-tab strong {
    font-size: 0.88rem;
    font-weight: 600;
  }

  footer {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
  }

  @media (max-width: 960px) {
    .spotlight-card { grid-template-columns: 1fr; }
    .deck-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .nav-links { display: none; }
    .menu-btn { display: inline-flex; }
    .deck-pills { grid-template-columns: 1fr; }
  }
</style>
</head>
<body>
<header class="site-header">
  <div class="header-row">
    <a href="#hero" class="logo">
      <span class="orb-dot" aria-hidden="true"></span>
      <span class="logo-name">Lusion</span>
    </a>
    <nav class="nav-links" aria-label="Primary">
      <a href="#hero" class="active">Sculpture</a>
      <a href="#spotlight">Case Deck</a>
      <a href="#footer">Bristol UK</a>
    </nav>
    <button class="menu-btn" id="menuBtn" aria-expanded="false" aria-controls="mobileNav">MENU</button>
  </div>
  <nav class="mobile-nav" id="mobileNav" aria-label="Mobile Navigation">
    <a href="#hero">Sculptural Hero</a>
    <a href="#spotlight">Spotlight Case Deck</a>
    <a href="#footer">Studio Contact</a>
  </nav>
</header>

<main class="shell">
  <section class="sculpt-hero" id="hero" aria-label="Interactive elastic orb physics canvas">
    <canvas id="orbCanvas"></canvas>

    <div class="hero-top">
      <span class="pill-tag">REALTIME CREATIVE STUDIO · <strong>BRISTOL, UK</strong></span>
      <span class="pill-tag">DRAG OR SWIPE TO DEFORM ORBS</span>
    </div>

    <div class="hero-manifesto">
      <h1>WE SCULPT <span>REALTIME</span> DIGITAL MATTER.</h1>
      <p>Lusion pairs procedural physics, tactile shaders, and kinetic typography to build unforgettable spatial products for ambitious brands.</p>
    </div>

    <div class="physics-dock">
      <div class="dock-btns">
        <button class="phys-btn active" id="gravityBtn" aria-pressed="true">Magnetic Core</button>
        <button class="phys-btn" id="scatterBtn">Scatter Impulse</button>
        <button class="phys-btn" id="elasticBtn" aria-pressed="false">High Viscosity</button>
      </div>
      <span class="vel-readout">IMPULSE: <b id="impulseVal">0.0</b> N·S</span>
    </div>
  </section>

  <section class="deck-section" id="spotlight">
    <div class="deck-header">
      <h2>Case-Study Spotlight Deck</h2>
      <div class="deck-controls">
        <button class="nav-circle" id="prevCase" aria-label="Previous case study">←</button>
        <button class="nav-circle" id="nextCase" aria-label="Next case study">→</button>
      </div>
    </div>

    <article class="spotlight-card" id="spotlightCard">
      <div class="spot-visual">
        <span class="spot-index" id="spotIndex">01 / 04</span>
        <div id="spotSvg" style="width:100%;height:100%;"></div>
      </div>
      <div class="spot-body">
        <div>
          <div class="spot-kicker" id="spotKicker">SPATIAL AUDIO HARDWARE · 2026</div>
          <h3 class="spot-title" id="spotTitle">Solstice Acoustic Orb</h3>
          <p class="spot-desc" id="spotDesc"></p>
        </div>
        <dl class="spot-stats">
          <div><dt>Frame Budget</dt><dd id="spotStat1">120 FPS</dd></div>
          <div><dt>Session Depth</dt><dd id="spotStat2">4m 42s</dd></div>
        </dl>
        <div class="spot-actions">
          <button class="cta-pill" id="launchBtn">Inspect Interactive Build</button>
          <span class="vel-readout" id="launchStatus" role="status" aria-live="polite"></span>
        </div>
      </div>
    </article>

    <div class="deck-pills" id="deckPills" role="tablist" aria-label="Case studies"></div>
  </section>
</main>

<footer id="footer">
  <span>LUSION LABS · BRISTOL / LONDON</span>
  <span>SCULPTURAL WEBGL &amp; KINETIC INTERACTION</span>
</footer>

<script>
// 1. Sculptural Elastic-Orb Physics Canvas
const canvas = document.getElementById('orbCanvas');
const ctx = canvas.getContext('2d');
const hero = document.getElementById('hero');

let W = 0, H = 0, dpr = 1;
let magnetic = true;
let highViscosity = false;
let pointer = { x: 0.65, y: 0.45, px: 0, py: 0, vx: 0, vy: 0, active: false };

const ORBS = [
  { x: 0.64, y: 0.44, vx: 0, vy: 0, r: 74, accent: true },
  { x: 0.74, y: 0.56, vx: 0, vy: 0, r: 54, accent: false },
  { x: 0.56, y: 0.58, vx: 0, vy: 0, r: 44, accent: true },
  { x: 0.80, y: 0.36, vx: 0, vy: 0, r: 38, accent: false },
  { x: 0.48, y: 0.38, vx: 0, vy: 0, r: 32, accent: false },
  { x: 0.70, y: 0.28, vx: 0, vy: 0, r: 28, accent: true }
];

function resizeCanvas() {
  const rect = hero.getBoundingClientRect();
  dpr = Math.min(window.devicePixelRatio || 1, 2);
  W = rect.width;
  H = rect.height;
  canvas.width = Math.round(W * dpr);
  canvas.height = Math.round(H * dpr);
  ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
  pointer.px = pointer.x * W;
  pointer.py = pointer.y * H;
}
window.addEventListener('resize', resizeCanvas);
resizeCanvas();

function onPointer(e) {
  const rect = hero.getBoundingClientRect();
  const nx = Math.max(0, Math.min(1, (e.clientX - rect.left) / rect.width));
  const ny = Math.max(0, Math.min(1, (e.clientY - rect.top) / rect.height));
  pointer.vx = (nx * W - pointer.px) * 0.4;
  pointer.vy = (ny * H - pointer.py) * 0.4;
  pointer.x = nx;
  pointer.y = ny;
  pointer.px = nx * W;
  pointer.py = ny * H;
  pointer.active = true;
  document.getElementById('impulseVal').textContent = Math.hypot(pointer.vx, pointer.vy).toFixed(1);
}
hero.addEventListener('pointermove', onPointer);
hero.addEventListener('pointerdown', onPointer);

function stepOrbs() {
  ctx.clearRect(0, 0, W, H);
  const damping = highViscosity ? 0.86 : 0.94;
  const centerX = W * 0.68;
  const centerY = H * 0.46;

  // Elastic spring connections
  for (let i = 0; i < ORBS.length; i++) {
    const a = ORBS[i];
    const ax = a.x * W;
    const ay = a.y * H;
    for (let j = i + 1; j < ORBS.length; j++) {
      const b = ORBS[j];
      const bx = b.x * W;
      const by = b.y * H;
      const dx = bx - ax;
      const dy = by - ay;
      const d = Math.hypot(dx, dy) || 1;
      const minD = (a.r + b.r) * 0.85;
      if (d < minD) {
        const push = (minD - d) * 0.012;
        a.vx -= (dx / d) * push;
        a.vy -= (dy / d) * push;
        b.vx += (dx / d) * push;
        b.vy += (dy / d) * push;
      }
      if (d < 210) {
        ctx.strokeStyle = `rgba(255, 90, 38, ${((1 - d / 210) * 0.26).toFixed(3)})`;
        ctx.lineWidth = 1.5;
        ctx.beginPath();
        ctx.moveTo(ax, ay);
        ctx.lineTo(bx, by);
        ctx.stroke();
      }
    }
  }

  ORBS.forEach((o) => {
    let ox = o.x * W;
    let oy = o.y * H;

    if (magnetic) {
      o.vx += (centerX - ox) * 0.0022;
      o.vy += (centerY - oy) * 0.0022;
    }

    const dxp = ox - pointer.px;
    const dyp = oy - pointer.py;
    const dp = Math.hypot(dxp, dyp) || 1;
    if (dp < 190) {
      const force = (1 - dp / 190) * 1.65;
      o.vx += (dxp / dp) * force + pointer.vx * 0.06;
      o.vy += (dyp / dp) * force + pointer.vy * 0.06;
    }

    o.vx *= damping;
    o.vy *= damping;
    ox += o.vx;
    oy += o.vy;

    if (ox < o.r) { ox = o.r; o.vx *= -0.7; }
    if (ox > W - o.r) { ox = W - o.r; o.vx *= -0.7; }
    if (oy < o.r) { oy = o.r; o.vy *= -0.7; }
    if (oy > H - o.r) { oy = H - o.r; o.vy *= -0.7; }

    o.x = ox / W;
    o.y = oy / H;

    const grad = ctx.createRadialGradient(
      ox - o.r * 0.32, oy - o.r * 0.32, o.r * 0.1,
      ox, oy, o.r
    );
    if (o.accent) {
      grad.addColorStop(0, '#FFB99F');
      grad.addColorStop(0.42, '#FF5A26');
      grad.addColorStop(1, '#3A1107');
    } else {
      grad.addColorStop(0, '#494E5C');
      grad.addColorStop(0.55, '#1D2028');
      grad.addColorStop(1, '#0C0D10');
    }

    ctx.fillStyle = grad;
    ctx.beginPath();
    ctx.arc(ox, oy, o.r, 0, Math.PI * 2);
    ctx.fill();

    ctx.strokeStyle = o.accent ? 'rgba(255, 190, 165, 0.38)' : 'rgba(247, 247, 245, 0.14)';
    ctx.lineWidth = 1;
    ctx.stroke();
  });

  pointer.vx *= 0.82;
  pointer.vy *= 0.82;
  requestAnimationFrame(stepOrbs);
}
stepOrbs();

document.getElementById('gravityBtn').addEventListener('click', (e) => {
  magnetic = !magnetic;
  e.currentTarget.classList.toggle('active', magnetic);
  e.currentTarget.setAttribute('aria-pressed', magnetic ? 'true' : 'false');
});
document.getElementById('elasticBtn').addEventListener('click', (e) => {
  highViscosity = !highViscosity;
  e.currentTarget.classList.toggle('active', highViscosity);
  e.currentTarget.setAttribute('aria-pressed', highViscosity ? 'true' : 'false');
});
document.getElementById('scatterBtn').addEventListener('click', () => {
  ORBS.forEach(o => {
    o.vx += (Math.random() - 0.5) * 26;
    o.vy += (Math.random() - 0.5) * 26;
  });
  document.getElementById('impulseVal').textContent = '24.8';
});

// 2. Spotlight Case-Study Deck
const CASES = [
  {
    idx: '01 / 04',
    short: 'Solstice Audio',
    kicker: 'SPATIAL AUDIO HARDWARE · 2026',
    title: 'Solstice Acoustic Orb',
    desc: 'A tactile WebGL product launch where visitors sculpt live acoustic waveforms around a brushed-obsidian speaker enclosure with spring-driven camera inertia.',
    s1: '120 FPS',
    s2: '4m 42s',
    svg: `<svg viewBox="0 0 600 400" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg">
      <defs><radialGradient id="c1" cx="42%" cy="38%" r="55%"><stop offset="0%" stop-color="#FF9770"/><stop offset="48%" stop-color="#FF5A26"/><stop offset="100%" stop-color="#140D0B"/></radialGradient></defs>
      <rect width="600" height="400" fill="#0B0C0F"/>
      <circle cx="300" cy="200" r="118" fill="url(#c1)"/>
      <ellipse cx="300" cy="200" rx="195" ry="52" fill="none" stroke="#F7F7F5" stroke-opacity="0.32" transform="rotate(-14 300 200)"/>
      <ellipse cx="300" cy="200" rx="165" ry="38" fill="none" stroke="#FF5A26" stroke-opacity="0.6" transform="rotate(18 300 200)"/>
    </svg>`
  },
  {
    idx: '02 / 04',
    short: 'Monolith XR',
    kicker: 'MIXED REALITY OS · 2025',
    title: 'Monolith Spatial Canvas',
    desc: 'Zero-gravity gesture choreography and glass-refraction shaders crafted for an upcoming spatial headset developer keynote.',
    s1: '90 HZ XR',
    s2: '6m 15s',
    svg: `<svg viewBox="0 0 600 400" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg">
      <rect width="600" height="400" fill="#0D0F14"/>
      <rect x="190" y="70" width="220" height="260" rx="28" fill="#1C2029" stroke="#FF5A26" stroke-width="2"/>
      <rect x="225" y="105" width="150" height="190" rx="18" fill="#101114" stroke="#F7F7F5" stroke-opacity="0.35"/>
      <circle cx="300" cy="200" r="42" fill="#FF5A26" opacity="0.88"/>
    </svg>`
  },
  {
    idx: '03 / 04',
    short: 'Kinetic Labs',
    kicker: 'GENERATIVE BRAND SYSTEM · 2026',
    title: 'Kinetic Fluid Identity',
    desc: 'An elastic metaball brand engine that turns live social sentiment and audio input into bespoke 3D posters in the browser.',
    s1: '60 FPS',
    s2: '3m 58s',
    svg: `<svg viewBox="0 0 600 400" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg">
      <rect width="600" height="400" fill="#0E1014"/>
      <circle cx="220" cy="210" r="88" fill="#FF5A26"/>
      <circle cx="340" cy="185" r="74" fill="#252934" stroke="#F7F7F5" stroke-opacity="0.3"/>
      <circle cx="415" cy="235" r="44" fill="#FF5A26" opacity="0.78"/>
    </svg>`
  },
  {
    idx: '04 / 04',
    short: 'Vela Motors',
    kicker: 'ELECTRIC HYPERCAR · 2026',
    title: 'Vela Aero Wind-Tunnel',
    desc: 'Interactive aerodynamic ribbon simulation letting buyers inspect real-time downforce streams across carbon bodywork.',
    s1: '4K WEBGL',
    s2: '5m 19s',
    svg: `<svg viewBox="0 0 600 400" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg">
      <rect width="600" height="400" fill="#0A0B0E"/>
      <path d="M40 245 Q220 110 560 155" fill="none" stroke="#FF5A26" stroke-width="4"/>
      <path d="M40 270 Q240 150 560 190" fill="none" stroke="#F7F7F5" stroke-opacity="0.45" stroke-width="2"/>
      <path d="M40 295 Q260 190 560 225" fill="none" stroke="#FF5A26" stroke-opacity="0.45" stroke-width="2"/>
      <ellipse cx="300" cy="255" rx="150" ry="26" fill="#1D2028" stroke="#F7F7F5" stroke-opacity="0.25"/>
    </svg>`
  }
];

let caseIdx = 0;

function renderCase(i) {
  caseIdx = (i + CASES.length) % CASES.length;
  const card = document.getElementById('spotlightCard');
  card.classList.add('switching');
  setTimeout(() => {
    const c = CASES[caseIdx];
    document.getElementById('spotIndex').textContent = c.idx;
    document.getElementById('spotSvg').innerHTML = c.svg;
    document.getElementById('spotKicker').textContent = c.kicker;
    document.getElementById('spotTitle').textContent = c.title;
    document.getElementById('spotDesc').textContent = c.desc;
    document.getElementById('spotStat1').textContent = c.s1;
    document.getElementById('spotStat2').textContent = c.s2;
    document.getElementById('launchStatus').textContent = '';
    card.classList.remove('switching');
    renderDeckTabs();
  }, 150);
}

function renderDeckTabs() {
  const wrap = document.getElementById('deckPills');
  wrap.innerHTML = '';
  CASES.forEach((c, idx) => {
    const btn = document.createElement('button');
    btn.className = 'deck-tab' + (idx === caseIdx ? ' active' : '');
    btn.setAttribute('role', 'tab');
    btn.setAttribute('aria-selected', idx === caseIdx ? 'true' : 'false');
    btn.innerHTML = `<span>${c.idx}</span><strong>${c.short}</strong>`;
    btn.addEventListener('click', () => renderCase(idx));
    wrap.appendChild(btn);
  });
}

document.getElementById('prevCase').addEventListener('click', () => renderCase(caseIdx - 1));
document.getElementById('nextCase').addEventListener('click', () => renderCase(caseIdx + 1));
document.getElementById('launchBtn').addEventListener('click', () => {
  document.getElementById('launchStatus').textContent = `PROTOTYPE READY · ${CASES[caseIdx].short.toUpperCase()}`;
});

const menuBtn = document.getElementById('menuBtn');
const mobileNav = document.getElementById('mobileNav');
menuBtn.addEventListener('click', () => {
  const open = mobileNav.classList.toggle('open');
  menuBtn.setAttribute('aria-expanded', open ? 'true' : 'false');
});
mobileNav.querySelectorAll('a').forEach(a => a.addEventListener('click', () => {
  mobileNav.classList.remove('open');
  menuBtn.setAttribute('aria-expanded', 'false');
}));

renderCase(0);
</script>
</body>
</html>
```
