<!-- SOLIDIVISM · part 58 -->
eed * 0.016);
    
    // Camera follows
    const camTarget = new THREE.Vector3(
      player.position.x,
      player.position.y + 10,
      player.position.z + 18
    );
    camera.position.lerp(camTarget, 0.08);
    camera.lookAt(player.position.x, player.position.y + 2, player.position.z);
    
    // Render: the moment of truth
    renderer.render(scene, camera);
  }

  function onResize() {
    camera.aspect = window.innerWidth / window.innerHeight;
    camera.updateProjectionMatrix();
    renderer.setSize(window.innerWidth, window.innerHeight);
  }

  // ── PUBLIC API ──
  return {
    init,
    setupInput,
    addBuilding,
    checkCollision,
    getScene: () => scene,
    getPlayer: () => player,
    getCamera: () => camera,
    getBuildings: () => buildings,
    getColliders: () => colliders
  };
})();


===== FILE: public/solidivism/foundation/index.html =====
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>SOLIDIVISM — The Foundation</title>
<style>
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { background: #0a0a0e; overflow: hidden; font-family: monospace; }
  #scene-container { position: absolute; inset: 0; }
  #scene-container canvas { display: block; }
  #hud {
    position: absolute; top: 0; left: 0; right: 0;
    padding: 12px 16px; z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    color: #FF0000; font-size: 14px; letter-spacing: 2px;
    pointer-events: none;
  }
  #hud .sub { color: #666; font-size: 11px; letter-spacing: 1px; margin-top: 4px; }
  #joystick {
    display: none; position: absolute;
    bottom: 30px; left: 30px; width: 120px; height: 120px;
    border-radius: 50%; z-index: 50;
    background: rgba(255,0,0,0.05);
    border: 2px solid rgba(255,0,0,0.3);
    touch-action: none;
  }
  #joystick-knob {
    position: absolute; top: 50%; left: 50%;
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,0,0,0.3);
    border: 2px solid #FF0000;
    transform: translate(-50%, -50%);
  }
  #enter-overlay {
    position: absolute; inset: 0; z-index: 100;
    background: radial-gradient(ellipse at center, #1a0a0a 0%, #0a0a0e 70%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #FF0000;
  }
  #enter-overlay h1 {
    font-size: 32px; letter-spacing: 8px; margin-bottom: 8px;
    text-shadow: 0 0 20px #FF0000;
  }
  #enter-overlay p { color: #666; font-size: 13px; margin-bottom: 32px; letter-spacing: 2px; }
  #enter-btn {
    padding: 16px 48px; font-size: 18px; font-family: monospace;
    background: transparent; color: #FF0000;
    border: 2px solid #FF0000; border-radius: 4px;
    cursor: pointer; letter-spacing: 4px;
    transition: all 0.2s;
  }
  #enter-btn:hover { background: #FF0000; color: #000; box-shadow: 0 0 30px #FF0000; }
  #enter-overlay.hidden { display: none; }
  #toolbar {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%); z-index: 40;
    display: flex; flex-direction: column; gap: 10px;
  }
  .tool-btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(10,10,14,0.8);
    border: 2px solid #FF0000; color: #FF0000;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-family: monospace; transition: all 0.2s;
  }
  .tool-btn:active { background: #FF0000; color: #000; }
</style>
</head>
<body>
<div id="scene-container"></div>
<div id="hud">
  <div>✦ SOLIDIVISM</div>
  <div class="sub">THE FOUNDATION — SOLID & VISIBLE</div>
</div>
<div id="joystick"><div id="joystick-knob"></div></div>
<div id="toolbar">
  <button class="tool-btn" id="btn-cam" title="Reset camera">📷</button>
  <button class="tool-btn" id="btn-ctrl" title="Go to control room">🎛️</button>
  <button class="tool-btn" id="btn-help" title="Help">?</button>
</div>
<div id="enter-overlay">
  <h1>SOLIDIVISM</h1>
  <p>THE MOST IMPRESSIVE KIND</p>
  <button id="enter-btn">▶ ENTER</button>
</div>
<script src="/solidability/js/three.min.js"></script>
<script src="/solidivism/foundation.js?v=20261008aaa"></script>
<script>
document.getElementById('enter-btn').onclick = () => {
  document.getElementById('enter-overlay').classList.add('hidden');
  Solidivism.init('scene-container');
  Solidivism.setupInput();
  
  // Build the world: 8 tactical fortifications in a circle
  // Each one is SOLID and VISIBLE — created together, together forever
  // Spread out so you can see past each building to the ones behind
  const names = ['HEART', 'GATE', 'FORGE', 'VAULT', 'SPIRE', 'BASTION', 'CITADEL', 'NEXUS'];
  for (let i = 0; i < 8; i++) {
    const angle = (i / 8) * Math.PI * 2;
    const radius = 45; // Wider spacing — see between buildings
    const bx = Math.cos(angle) * radius;
    const bz = Math.sin(angle) * radius;
    