<!-- SOLID CITY · part 2569 -->
p);
    var count = 1;
    for (var i = 0; i < satStyles.length; i++) {
      var a = (i / satStyles.length) * Math.PI * 2 + R() * 0.8;
      var sx = cx + Math.cos(a) * (opts.ring || 30), sz = cz + Math.sin(a) * (opts.ring || 30);
      var sp = findSpot(sx, sz, 30, 11);
      if (!sp) continue;
      var srec = buildHome(satStyles[i], sp[0], sp[1], faceAngle(sp[0], sp[1], cx, cz), 0.82 + R() * 0.2, i === 0 ? 'full' : 'simple');
      placed.push([sp[0], sp[1], 15]);
      // satellites share the compound's parking — a path of yellow stones to the yard instead of a second drive
      var fx = Math.sin(srec.ry), fz = Math.cos(srec.ry), frontL = srec.padCz + srec.padD / 2;
      steppedPath(sp[0] + fx * (frontL + 1), sp[1] + fz * (frontL + 1), cx, cz, 1.6, C.path, 2.6);
      srec.door = [sp[0] + fx * (frontL + 0.9), sp[1] + fz * (frontL + 0.9)];
      count++;
    }
    // the shared yard: a great monkeypod, taro at the low side, lava-rock edging
    /* THE VERGE LAW FOR THE YARD (same report, same hour): the yard
     * was planted at the raw centre too — at the Eastern Benches
     * its monkeypod stood 0.6 m from the centreline, a tree in the
     * middle of the road. The yard now steps away from the road
     * until its heart is 11 m clear (the monkeypod's canopy then
     * overhangs grass, not carriageway), keeping its taro beside
     * it. The same seeds are drawn; only the ground moves. */
    var yardX = cx, yardZ = cz;
    if (segDistToRoad(cx, cz).d < 11) {
      var yrp = nearestRoad(cx, cz);
      var yux = mrec.x - yrp.x, yuz = mrec.z - yrp.z, yul = Math.hypot(yux, yuz);
      if (yul < 0.01) { yux = 1; yuz = 0; yul = 1; }
      yux /= yul; yuz /= yul;
      var ySteps = 0;
      while (segDistToRoad(yardX, yardZ).d < 11 && ySteps < 72) { yardX += yux * 0.5; yardZ += yuz * 0.5; ySteps++; }
    }
    plantAt(yardX, yardZ, function () { monkeypod(1.25); });
    var taroX = yardX + (R() - 0.5) * 16, taroZ = yardZ + (R() - 0.5) * 16;
    if (segDistToRoad(taroX, taroZ).d < 8) { taroX = yardX * 2 - taroX; taroZ = yardZ * 2 - taroZ; }   // the patch keeps the verge too: mirrored across the yard's heart, same seeds
    var tSteps = 0;
    while (segDistToRoad(taroX, taroZ).d < 8 && tSteps < 40) { var tn = segDistToRoad(taroX, taroZ); var tux = taroX - tn.x, tuz = taroZ - tn.z, tul = Math.hypot(tux, tuz) || 1; taroX += (tux / tul) * 0.5; taroZ += (tuz / tul) * 0.5; tSteps++; }
    plantAt(taroX, taroZ, function () { taroPatch(7.5, 5); });
    dressHome(mrec, { taro: null, palm: true });
    homes.slice(-count).forEach(function (r2) { if (r2 !== mrec) dressHome(r2, {}); });
    plateFor(name, cx, cz);
    return count;
  }
  function singles(cx, cz, name, n, styles, rad) {
    var count = 0;
    for (var i = 0; i < n; i++) {
      var sp = findSpot(cx, cz, rad || 95, 12);
      if (!sp) continue;
      var rp = nearestRoad(sp[0], sp[1]);
      var style = styles[i % styles.length];
      var rec = buildHome(style, sp[0], sp[1], faceAngle(sp[0], sp[1], rp.x, rp.z), 0.92 + R() * 0.3, R() < 0.5 ? 'full' : 'simple');
      placed.push([sp[0], sp[1], 16]);
      serveHome(rec, rp);
      dressHome(rec, { palm: R() < 0.4 });
      count++;
    }
    if (count) plateFor(name, cx, cz);
    return count;
  }
  function scatterTrees(n) {
    var tries = 0, done = 0;
    while (done < n && tries < n * 6) {
      tries++;
      var x = -1050 + R() * 2450, z = -2650 + R() * 1900;
      if (!clearOf(x, z, 13)) continue;
      var h = groundAt(x, z);
      if (h < 9 || h > 420) continue;
      if (slopeAt(x, z, 9) > 0.5) continue;
      var rp = nearestRoad(x, z);
      if (rp.dist < 10) continue;
      var kind = R();
      plantAt(x, z, function () {
        if (kind < 0.34) monkeypod(0.8 + R() * 0.5);
        else if (kind < 0.58) ohia(0.9 + R() * 0.5);
        else if (kind < 0.78) palm(0.85 + R() * 0.4);
        else breadfruit(0.9 + R() * 0.4);
      });
      placed.push([x, z, 7]);
      done++;
    }
    return done;
  }

  /* ================= NAME PLATES — one quiet plate per cluster ================= */
  var extras = [];
  function buildPlates() {
    plates.forEach(function (p) {
      var gy = groundAt(p.x, p.z);
      BASE = M4(p.x, gy, p.z, p.ry, 0, 0);
      box(solid, 0.22, 2.6, 0.22, -4.6, 1.3, 0, C.woodDark);
      box(solid, 0.22, 2.6, 0.22, 4.6, 1.3, 0, C.woodDark);
      /* the posts take bodies too — a sign you can read is a sign
       * you can bump (same finding, same law) */
      for (var ps = -1; ps <= 1; ps += 2) foot.push([p.x + ps * 4.6 * Math.cos(p.ry), p.z - ps * 4.6 * Math.sin(p.ry), 0.34, 0.34, gy - 0.1, gy + 2.6, 0]);
      BASE = new T.Matrix4();
      if (typeof document === 'undefined' || !document.createElement) return;
      try {
        var cv = document.createElement('canvas'); cv.width = 1024; cv.height = 160;
        var cx2 = cv.getContext('2d');
        cx2.fillStyle = '#23272e'; cx2.fillRect(0, 0, 1024, 160);
        cx2.strokeSty