<!-- RUBY-BACKUP · part 297 -->
scale(1, 0.12, 1);
        var ring = new THREE.Mesh(geo, ringMat);
        ring.name = 'golden-ring-'+ri;
        g.add(ring);
        // gold center line
        var lg = new THREE.TubeGeometry(curve, 96, 0.12, 6, true);
        lg.scale(1, 0.15, 1);
        var line = new THREE.Mesh(lg, ringLineMat);
        line.position.y = 0.3;
        line.name = 'golden-ring-line-'+ri;
        g.add(line);
      });
      if(typeof codeStatus==='function') codeStatus('golden lattice: '+radii.length+' rings at φ');
    })();
    /* TOTALLY REAL — street lights, overhead signs, ramps */
    (function(){
      try{
        var poleMat2 = new THREE.MeshStandardMaterial({color:0x333333, metalness:0.6, roughness:0.5});
        var lightMat = new THREE.MeshStandardMaterial({color:0xffffcc, emissive:0xffffcc, emissiveIntensity:1.2});
        var greenMat = new THREE.MeshStandardMaterial({color:0x006400, roughness:0.6});
        // street lights along every highway
        if(typeof _highwayPts!=='undefined'){
          _highwayPts.forEach(function(pts, ri){
            for(var i=1; i<pts.length-1; i+=2){
              var lx=pts[i][0], lz=pts[i][1];
              var ld=Math.sqrt(lx*lx+lz*lz);
              var lh=10+Math.sin(ld*0.02)*4+Math.sin(ld*0.05+1.3)*2;
              [-1,1].forEach(function(s){
                var pole=new THREE.Mesh(new THREE.CylinderGeometry(0.2,0.25,8,8), poleMat2);
                pole.position.set(lx+s*8, lh+4, lz);
                pole.name='streetlight-pole';
                g.add(pole);
                var arm=new THREE.Mesh(new THREE.BoxGeometry(3,0.2,0.2), poleMat2);
                arm.position.set(lx+s*6.5, lh+8, lz);
                arm.name='streetlight-arm';
                g.add(arm);
                var lamp=new THREE.Mesh(new THREE.SphereGeometry(0.4,8,8), lightMat);
                lamp.position.set(lx+s*5, lh+7.8, lz);
                lamp.name='streetlight-lamp';
                g.add(lamp);
                // actual light (limit count for performance)
                if((i+ri)%4===0){
                  var pl=new THREE.PointLight(0xffffcc, 0.8, 30);
                  pl.position.set(lx+s*5, lh+7, lz);
                  pl.name='streetlight-glow';
                  g.add(pl);
                }
              });
            }
          });
        }
        // overhead green directional signs
        var exits=[['EAST →','Maui-Potiki Hwy',200,15],['NORTH →','Keawe Hwy',-20,300],['WEST →','Wilcox Hwy',-300,-20],['SOUTH →','Liloa Hwy',20,-300]];
        exits.forEach(function(ex){
          var canvas=document.createElement('canvas');
          canvas.width=512; canvas.height=128;
          var ctx=canvas.getContext('2d');
          ctx.fillStyle='#006400'; ctx.fillRect(0,0,512,128);
          ctx.strokeStyle='#ffffff'; ctx.lineWidth=4; ctx.strokeRect(6,6,500,116);
          ctx.fillStyle='#ffffff'; ctx.font='bold 40px sans-serif'; ctx.textAlign='center';
          ctx.fillText(ex[0], 256, 55);
          ctx.font='28px sans-serif';
          ctx.fillText(ex[1], 256, 95);
          var tex=new THREE.CanvasTexture(canvas);
          var sign=new THREE.Mesh(new THREE.BoxGeometry(12,3,0.3),
            new THREE.MeshStandardMaterial({map:tex}));
          var sd=Math.sqrt(ex[2]*ex[2]+ex[3]*ex[3]);
          var sh=10+Math.sin(sd*0.02)*4+Math.sin(sd*0.05+1.3)*2;
          sign.position.set(ex[2], sh+6, ex[3]);
          sign.name='overhead-sign';
          g.add(sign);
          // gantry posts
          [-6,6].forEach(function(off){
            var gp=new THREE.Mesh(new THREE.CylinderGeometry(0.3,0.3,8,8), poleMat2);
            gp.position.set(ex[2]+off, sh+2, ex[3]);
            gp.name='gantry-post';
            g.add(gp);
          });
          var beam=new THREE.Mesh(new THREE.BoxGeometry(14,0.5,0.5), poleMat2);
          beam.position.set(ex[2], sh+6, ex[3]);
          beam.name='gantry-beam';
          g.add(beam);
        });
        // on/off ramps — connect highways to ground
        [[100,50],[-100,-50],[50,-100],[-50,100]].forEach(function(pt){
          var rampCurve=new THREE.CatmullRomCurve3([
            new THREE.Vector3(pt[0], 10, pt[1]),
            new THREE.Vector3(pt[0]*1.2, 5, pt[1]*1.2),
            new THREE.Vector3(pt[0]*1.4, 0.5, pt[1]*1.4)
          ]);
          var rampGeo=new THREE.TubeGeometry(rampCurve, 16, 3, 8, false);
          rampGeo.scale(1, 0.3, 1);
          var ramp=new THREE.Mesh(rampGeo, new THREE.MeshStandardMaterial({color:0x1a1a1a, roughness:0.9}));
          ramp.name='onramp';
          g.add(ramp);
        });
      }catch(e){}
    })();
    /* TUNNELS — highways pierce the high ground */
    (function(){
      try{
        var tunMat = new THREE.MeshStandardMaterial({color:0x2a2a2a, roughness:0.7, side:THREE.DoubleSide});
        var portMat = new THREE.MeshStandardMaterial({color:0x8b7355, roughness:0.8});
        var tunLightMat = new THREE.MeshBasicMaterial({color:0xffee88});
        // tunnel loca