<!-- SOLID CITY · part 3655 -->
.764172, cz: -790.330013, ux: 0.6919053632, uz: 0.7219882051, vx: 0.7219882051, vz: -0.6919053632, floorY: 11.17 },
      { id: 'W4-B', ward: 4, cx: -941.803093, cz: -774.001046, ux: 0.6919053632, uz: 0.7219882051, vx: -0.7219882051, vz: 0.6919053632, floorY: 11.07 }
    ] });
    w4.accepted.forEach(function (house) { raiseHouse(house); var m = r[0].measureWardHouse(house, gnd); table.push('W4-' + house.id.slice(-1) + ' @ (' + Math.round(house.plot.cx) + ', ' + Math.round(house.plot.cz) + ') floor ' + m.floorY.toFixed(2)); });
    if (!pilot) throw new Error('no pilot house');
    H.housePos = { x: pilot.plot.cx, z: pilot.plot.cz };
    // THE TWO SHORT JOINS — built, and their surfaces connected to movement.
    var joins = r[1].createShortWardJoins({ THREE: A.THREE, groundAt: gnd, isAllowed: isAllowed });
    for (var name in joins) { A.scene.add(joins[name].group); if (joins[name].standSurface && joins[name].standSurface.geometry) { var jt = extractTris(joins[name].standSurface.geometry); H.joins.push(jt); H.joinIx.push(indexTris(jt)); regAudit('JOIN ' + name, new (A.THREE || A.T).Mesh(joins[name].standSurface.geometry), ribbonStand(jt), 'ribbon'); } }
    // THE WARD 6 CONNECTOR — surveyed line to the Long Road corridor's edge.
    var w6 = r[1].createWardConnector({ THREE: A.THREE, groundAt: gnd, isAllowed: isAllowed, name: 'W6-LongRoad', line: [[-1118, -540], [-1135.3, -508.3]] });
    var w6note = 'W6 connector REFUSED: ' + (w6.check && w6.check.reason ? w6.check.reason : 'check');
    if (w6.accepted) { A.scene.add(w6.group); var wt = extractTris(w6.standSurface.geometry); H.joins.push(wt); H.joinIx.push(indexTris(wt)); regAudit('JOIN W6-LongRoad', new (A.THREE || A.T).Mesh(w6.standSurface.geometry), ribbonStand(wt), 'ribbon'); var wm = w6.measure(); w6note = 'W6 connector built to the last lawful station before the Long Road corridor boundary (36.1 m, ending 1.3 m short at the survey boundary per the schematic\'s refusal law — the road-edge apron awaits its own survey; deviation from lift max ' + wm.maxAbsErrorFromLift.toFixed(4) + ' m, ' + wm.upFacingTriangles + ' up / ' + wm.downFacingTriangles + ' down).'; }
    // THE CLIMB — TEST SEGMENT, under its own permission class (the schematic's SS3): KING_AUTHORIZED_CLIMB_W4_W5, corridor-bound, ceiling set from the sampled route (max 13.81 -> ceiling 13.90).
    var CLIMB_LINE = [[-880, -728], [-888, -736], [-896, -744], [-904, -752], [-912, -760], [-912, -768], [-912, -776], [-912, -784]];
    function distToClimb(x, z) { var best = 1e9; for (var i = 0; i + 1 < CLIMB_LINE.length; i++) { var ax = CLIMB_LINE[i][0], az = CLIMB_LINE[i][1], bx = CLIMB_LINE[i + 1][0], bz = CLIMB_LINE[i + 1][1], dx = bx - ax, dz = bz - az, L2 = dx * dx + dz * dz, t = L2 ? ((x - ax) * dx + (z - az) * dz) / L2 : 0; t = Math.max(0, Math.min(1, t)); var d = Math.hypot(x - (ax + dx * t), z - (az + dz * t)); if (d < best) best = d; } return best; }
    function isAllowedClimb(x, z) { if (!Number.isFinite(x) || !Number.isFinite(z)) return false; var g = gnd(x, z); if (g < 0.5 || g > 13.9) return false; if (x >= -1512 && x <= -1088 && z >= -1380 && z <= -620) return false; if (x >= -1445 && x <= -1155 && z >= -625 && z <= -443) return false; if (x >= -1160 && x <= -656 && z >= -507 && z <= -489) return false; return distToClimb(x, z) <= 2.6; }
    var climb = r[1].createWardConnector({ THREE: A.THREE, groundAt: gnd, isAllowed: isAllowedClimb, name: 'W4-W5 Climb — Test Segment', line: CLIMB_LINE, maxY: 13.9 });
    var climbNote = 'Climb test segment REFUSED: ' + (climb.check && climb.check.reasons ? climb.check.reasons.join('; ') : 'check');
    if (climb.accepted) { A.scene.add(climb.group); var ct = extractTris(climb.standSurface.geometry); H.joins.push(ct); H.joinIx.push(indexTris(ct)); regAudit('CLIMB TEST SEGMENT', new (A.THREE || A.T).Mesh(climb.standSurface.geometry), ribbonStand(ct), 'ribbon'); var cm = climb.measure(); climbNote = 'Climb TEST SEGMENT built under KING_AUTHORIZED_CLIMB_W4_W5 (ceiling 13.90 from sampled max 13.81): 8 surveyed stations from W4\'s crest (13.71) descending to 11.31, deviation from lift max ' + cm.maxAbsErrorFromLift.toFixed(4) + ' m, ' + cm.upFacingTriangles + ' up / ' + cm.downFacingTriangles + ' down.'; }
    if (A.POIS) {
      A.POIS.push({ id: 'pilot-house', name: 'THE PILOT HOUSE — WARD 2', icon: '🏠', x: pilot.plot.cx, z: pilot.plot.cz, blurb: 'The first dwelling of the nation, raised as a pilot from VECTOR\'s housing factories: level floor on descending supports, glass to the street, its plot the searcher\'s first lawful choice in Ward 2. Examined first — then the nation multiplied.', arrive: 'You stand before the Pilot House.' });
      A.POIS.push({ id: 'ward-3-street', name: 'WARD 3 STREET', icon: '🏘', x: STREET[3].x, z: STREET[3].z, blurb: 'Four dwellings of the nation along the Spine path of Ward 3 — silver walls, glass to the street, every floor founded on sampled ground and registered under standi