<!-- RUBY-BACKUP · part 302 -->
ce-pfloor'; scene.add(pfloor);
        /* practice label */
        try{ if(typeof codeStatus==='function') codeStatus('practice map ready — lessons applied'); }catch(e){}
      }catch(e){}
    }, 34000);
/* /practice front door — start at the practice district (600,600), no tp code needed */
setTimeout(function(){
  try{
    if(typeof IS_PRACTICE!=='undefined' && IS_PRACTICE && typeof mePos!=='undefined'){
      mePos.x = 600; mePos.z = 600;
      if(typeof fortifiedGroundY==='function') mePos.y = fortifiedGroundY(600, 600) + 5;
      if(typeof codeStatus==='function') codeStatus('practice map — welcome home');
    }
  }catch(e){}
}, 6000);

    /* INFRASTRUCTURE — studied from Boston/NYC, deployed our way */
    setTimeout(function(){
      try{
        var goldMat = new THREE.MeshStandardMaterial({color:0xffd700, metalness:0.7, roughness:0.4});
        var roadMat = new THREE.MeshStandardMaterial({color:0x333333, roughness:0.8});
        var greenMat = new THREE.MeshStandardMaterial({color:0x2d6a2d, roughness:0.9});
        var lightMat = new THREE.MeshBasicMaterial({color:0x00ffff});
        /* 1. BRIDGE CONNECTORS — roads from city to both bridge decks */
        /* to Boston bridge (z=200) */
        var bc1 = new THREE.Mesh(new THREE.BoxGeometry(8, 1, 60), roadMat);
        bc1.position.set(0, 11, 170); bc1.name='infra-bridge-road'; scene.add(bc1);
        /* to NYC bridge (z=-200) */
        var bc2 = new THREE.Mesh(new THREE.BoxGeometry(8, 1, 60), roadMat);
        bc2.position.set(0, 11, -170); bc2.name='infra-bridge-road'; scene.add(bc2);
        /* 2. TRANSIT LOOP — connect the 4 rings */
        var ringPos = [];
        for(var tr=0; tr<4; tr++){
          var trang = (tr/4)*Math.PI*2 + Math.PI/4;
          var trx = Math.cos(trang)*100, trz = Math.sin(trang)*100;
          var trpy = 10;
          try{ if(typeof fortifiedGroundY==='function') trpy = fortifiedGroundY(trx, trz); }catch(e){}
          ringPos.push(new THREE.Vector3(trx, trpy+40, trz));
        }
        for(var rc=0; rc<4; rc++){
          var p1 = ringPos[rc], p2 = ringPos[(rc+1)%4];
          var mid = new THREE.Vector3().addVectors(p1, p2).multiplyScalar(0.5);
          mid.y += 8; /* arc upward */
          var curve = new THREE.QuadraticBezierCurve3(p1, mid, p2);
          var cgeo = new THREE.TubeGeometry(curve, 20, 1.2, 6, false);
          var connector = new THREE.Mesh(cgeo, goldMat);
          connector.name='infra-transit-link'; scene.add(connector);
        }
        /* 3. GREEN SCARS — plant along highways (Boston's lesson) */
        for(var gs=0; gs<24; gs++){
          var gang3 = (gs/24)*Math.PI*2;
          var gx3 = Math.cos(gang3)*(120+Math.random()*40);
          var gz3 = Math.sin(gang3)*(120+Math.random()*40);
          var gpy3 = 10;
          try{ if(typeof fortifiedGroundY==='function') gpy3 = fortifiedGroundY(gx3, gz3); }catch(e){}
          var bush = new THREE.Mesh(new THREE.SphereGeometry(2+Math.random()*2, 8, 6), greenMat);
          bush.position.set(gx3, gpy3+2, gz3); bush.name='infra-green'; scene.add(bush);
        }
        /* 4. WAYFINDING LIGHTS — cyan markers along key routes */
        var routes = [[0,0,0,200],[0,0,0,-200],[-200,-100,0,0],[150,-100,0,0]];
        routes.forEach(function(rt){
          for(var wi=0; wi<=10; wi++){
            var wt = wi/10;
            var wx = rt[0]+(rt[2]-rt[0])*wt, wz = rt[1]+(rt[3]-rt[1])*wt;
            var wpy = 10;
            try{ if(typeof fortifiedGroundY==='function') wpy = fortifiedGroundY(wx, wz); }catch(e){}
            var marker = new THREE.Mesh(new THREE.SphereGeometry(0.5, 8, 6), lightMat);
            marker.position.set(wx, wpy+3, wz); marker.name='infra-wayfind'; scene.add(marker);
          }
        });
      }catch(e){}
    }, 32000);
    /* GOLDEN RATIO CREATIONS — phi governs all, flowing with linework */
    setTimeout(function(){
      try{
        var PHI = 1.6180339887;
        var goldMat = new THREE.MeshStandardMaterial({color:0xffd700, metalness:0.9, roughness:0.2});
        var goldLine = new THREE.MeshBasicMaterial({color:0xffd700});
        var holoMat = new THREE.MeshBasicMaterial({color:0x00ffff, transparent:true, opacity:0.3});
        /* 1. PHI SPIRAL TOWER — each tier 1/phi of the one below */
        var tpy = 10;
        try{ if(typeof fortifiedGroundY==='function') tpy = fortifiedGroundY(150, -100); }catch(e){}
        var tw = 34, th = 21, ty = tpy;
        for(var pt=0; pt<7; pt++){
          var tier = new THREE.Mesh(new THREE.BoxGeometry(tw, th, tw), goldMat);
          tier.position.set(150, ty+th/2, -100);
          tier.name='phi-tier'; scene.add(tier);
          /* engraved spiral band at each tier — linework flowing */
          var spts = [];
          for(var sp2=0; sp2<=40; sp2++){
            var st = sp2/40;
            var sang = st*Math.PI*4;
            var sr = tw*0.7;
            spts.push(new THREE.Vector3(150+Math.cos(sang)*sr, ty+th+st*2, -100+Math.sin(sang