<!-- RUBY-BACKUP · part 131 -->
dustry standard (never raw photo).
     Chrome armor, blue energy, galaxy panels, hex pods, heel reactor —
     designed from the reference, built as geometry with PBR materials. */
  var chromeMat = new T.MeshStandardMaterial({color:0xd8dce4, metalness:1.0, roughness:0.18});
  var darkMeshMat = new T.MeshStandardMaterial({color:0x3a3a40, metalness:0.7, roughness:0.4});
  var galaxyMat = new T.MeshStandardMaterial({color:0x1a1a60, emissive:0x3a3aff, emissiveIntensity:1.2, roughness:0.3});
  var galaxyBigMat = new T.MeshStandardMaterial({color:0x0f0f2a, emissive:0x1a1a4a, emissiveIntensity:0.4, roughness:0.3, metalness:0.3}); /* dark nebula, subtle — not a bright square */
  var energyMat = new T.MeshStandardMaterial({color:0x2266ff, emissive:0x4488ff, emissiveIntensity:2.5, roughness:0.2});
  var eyeMat2 = new T.MeshStandardMaterial({color:0xc0c8d0, metalness:0.9, roughness:0.3});

  /* CARBON FIBER LATTICE — intricate woven pattern from the reference */
  var carbonTex = (function(){
    var c = document.createElement('canvas'); c.width = c.height = 128;
    var x = c.getContext('2d');
    x.fillStyle = '#0a0a0c'; x.fillRect(0,0,128,128);
    /* 2x2 twill weave */
    for(var i=0; i<16; i++){
      for(var j=0; j<16; j++){
        var horiz = ((i+j)%4)<2;
        var g = x.createLinearGradient(0,0,0,0);
        if(horiz){
          g = x.createLinearGradient(i*8,0,(i+1)*8,0);
        }else{
          g = x.createLinearGradient(0,j*8,0,(j+1)*8);
        }
        g.addColorStop(0, '#1a1a1e');
        g.addColorStop(0.5, '#2e2e34');
        g.addColorStop(1, '#121214');
        x.fillStyle = g;
        x.fillRect(i*8, j*8, 8, 8);
        /* weave highlight */
        x.fillStyle = 'rgba(255,255,255,0.06)';
        if(horiz) x.fillRect(i*8, j*8+3, 8, 2);
        else x.fillRect(i*8+3, j*8, 2, 8);
      }
    }
    var t = new T.CanvasTexture(c);
    t.wrapS = t.wrapT = T.RepeatWrapping;
    t.repeat.set(4, 4);
    return t;
  })();
  var carbonMat = new T.MeshStandardMaterial({
    map: carbonTex, bumpMap: carbonTex, bumpScale: 0.002,
    color: 0xffffff, metalness: 0.6, roughness: 0.35
  });
  /* === FROM SCRATCH — Chrome-plated high-top armor ===
     Angular silver plating over black carbon-fiber lattice.
     Galaxy nebula (subtle, painted — never bright squares).
     Neon blue veins in laces. Hex pods in sole. Reactor on heel.
     Bulky, futuristic, built for space. No corners. */
  var galaxyTex = (function(){
    var cv = document.createElement('canvas'); cv.width = cv.height = 128;
    var x = cv.getContext('2d');
    /* deep space base */
    var g = x.createLinearGradient(0,0,128,128);
    g.addColorStop(0, '#0a0a1e'); g.addColorStop(0.5, '#141433'); g.addColorStop(1, '#0d0d24');
    x.fillStyle = g; x.fillRect(0,0,128,128);
    /* nebula clouds — purple and blue */
    for(var i=0; i<8; i++){
      var nx = Math.random()*128, ny = Math.random()*128, nr = 20+Math.random()*30;
      var ng = x.createRadialGradient(nx,ny,0,nx,ny,nr);
      var hue = Math.random()<0.5 ? '80,60,180' : '40,80,200';
      ng.addColorStop(0, 'rgba('+hue+',0.35)'); ng.addColorStop(1, 'rgba('+hue+',0)');
      x.fillStyle = ng; x.beginPath(); x.arc(nx,ny,nr,0,7); x.fill();
    }
    /* stars */
    for(var s=0; s<120; s++){
      x.fillStyle = 'rgba(255,255,255,'+(0.3+Math.random()*0.7)+')';
      var sr = Math.random()<0.1 ? 1.5 : 0.8;
      x.beginPath(); x.arc(Math.random()*128, Math.random()*128, sr, 0, 7); x.fill();
    }
    var t = new T.CanvasTexture(cv);
    t.wrapS = t.wrapT = T.RepeatWrapping;
    return t;
  })();
  var galaxyPanelMat = new T.MeshStandardMaterial({
    map: galaxyTex, color: 0xffffff,
    metalness: 0.4, roughness: 0.35
    /* subtle — painted nebula, NOT emissive */
  });

  function buildShoe(bx){
    var out = bx<0 ? -1 : 1;
    var P = function(geo, mat, x, y, z){ return M(geo, mat, bx+x, y, z); };

    /* — BULKY SOLE: thick chrome base, glowing blue core — */
    P(roundedBox(0.13, 0.045, 0.28, 0.018), chromeMat, 0, 0.023, 0.03);
    /* glowing blue under-sole */
    P(roundedBox(0.125, 0.015, 0.275, 0.007), energyMat, 0, 0.008, 0.03);

    /* — HEX PODS: glowing hexagons along the sole — */
    [0.0, 0.07, 0.14].forEach(function(pz){
      var hp = P(new T.CylinderGeometry(0.022, 0.022, 0.018, 6), energyMat, out*0.062, 0.035, pz);
      hp.rotation.z = Math.PI/2;
      var hr = P(new T.CylinderGeometry(0.026, 0.026, 0.010, 6), chromeMat, out*0.062, 0.035, pz);
      hr.rotation.z = Math.PI/2;
    });

    /* — ARMOR UPPER: angular chrome plating — */
    /* toe — rounded, armored */
    var toe = P(new T.SphereGeometry(0.058, 24, 18), chromeMat, 0, 0.055, 0.13);
    toe.scale.set(1, 0.68, 1.35);
    /* midfoot — chrome shell */
    var mid = P(roundedBox(0.11, 0.075, 0.13, 0.025), chromeMat, 0, 0.075, 0.03);
    mid.rotation.x = -0.08;
    /* carbon lattice — black weave between armor */
    P(roundedBox(0.115, 0.05, 0.09, 0.018), carbonMat, 0, 0.078, 0.