<!-- SOLIDIVISM · part 68 -->
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;
    const size = 10 + (i % 3) * 3;
    const height = 12 + (i % 4) * 4;
    Solidivism.addBuilding(bx, bz, size, height, size, names[i]);
  }

  // Command tower — the tallest, in the distance ahead
  Solidivism.addBuilding(0, 70, 16, 30, 16, 'COMMAND');

  // Toolbar buttons
  document.getElementById('btn-cam').onclick = () => {
    const p = Solidivism.getPlayer();
    const c = Solidivism.getCamera();
    if (p && c) {
      c.position.set(p.position.x, p.position.y + 12, p.position.z + 25);
    }
  };
  document.getElementById('btn-ctrl').onclick = () => {
    const p = Solidivism.getPlayer();
    if (p) { p.position.set(-25, 0, 38); } // Outside control room door
  };
  document.getElementById('btn-help').onclick = () => {
    alert('SOLIDIVISM\n\nJoystick: move\n📷: reset camera\n🎛️: go to control room\nWalk through doors to enter buildings.');
  };

  // CONTROL ROOM — walled architecture with glass video screen inside
  // Walk through the door to see the video playing on the back wall
  Solidivism.createControlRoom(
    -25, 30,
    'https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4',
    'CONTROL'
  );
};
</script>
</body>
</html>


===== FILE: public/solidivism/index.html.v1-20261008 =====
<!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; }
</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="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"></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 — 