<!-- SOLID CITY · part 3137 -->
 iron, CX, TOP + 0.01, CZ + oz);
      add(new T.SphereGeometry(0.032, 10, 8), new T.MeshBasicMaterial({ color: 0xffc06a }), CX, TOP + 0.075, CZ + oz);
      add(new T.ConeGeometry(0.055, 0.05, 4), iron, CX, TOP + 0.135, CZ + oz);
    });
    [-1.05, 1.05].forEach(function (ox) {
      add(new T.BoxGeometry(0.34, 0.05, 4.2), wood, CX + ox, F + 0.45, CZ);
      add(new T.BoxGeometry(0.26, 0.42, 3.9), wood, CX + ox, F + 0.21, CZ);
      footprints.push({ x: CX + ox, z: CZ, w: 0.4, d: 4.2, a: 0, y0: F, y1: F + 0.5 });
    });
    footprints.push({ x: CX, z: CZ, w: 1.3, d: 4.6, a: 0, y0: F, y1: F + 0.85 });
    practiceInfo = { settings: settings, at: 'the-midway' };
  })();

  /* ================= THE ENTREE =================
   * The gate in the First Hollow's south-western face: two
   * towers, a lintel, and the name of the place lettered
   * PROUD over the way in — with a lamp-lit shelf running
   * out to the brow of the mountain. */
  (function buildGate() {
    var u = { x: -0.7071, z: 0.7071 }, perp = { x: 0.7071, z: 0.7071 };
    var G = { x: A_C.x + u.x * 150, z: A_C.z + u.z * 150 }, F = A_C.f;
    var ry = Math.atan2(u.x, u.z);
    [-9.5, 9.5].forEach(function (off) {
      var tx = G.x + perp.x * off, tz = G.z + perp.z * off;
      box(solid, 3.4, 17, 3.4, mat4(tx, F + 8.5, tz, 0, ry, 0), C.stone);
      box(solid, 4.4, 1, 4.4, mat4(tx, F + 17.4, tz, 0, ry, 0), C.stoneDark);
      sph(glow, 0.55, mat4(tx, F + 18.3, tz, 0, 0, 0), C.lamp);
      footprints.push({ x: tx, z: tz, w: 4, d: 4, a: ry, y0: F, y1: F + 17.9 });
    });
    box(solid, 22.5, 2.8, 3.8, mat4(G.x, F + 15.4, G.z, 0, ry, 0), C.stoneDark);
    box(glow, 22.5, 0.4, 0.5, mat4(G.x + u.x * 1.95, F + 13.85, G.z + u.z * 1.95, 0, ry, 0), C.gold);
    sign(G.x + u.x * 2.15, F + 15.4, G.z + u.z * 2.15, ry, 13, 2.1, ['THE SERVITUDE'], 120, 0);
    /* the shelf processional: gold edges + lamps to the brow */
    for (var s2 = 158; s2 <= 242; s2 += 21) {
      var px = A_C.x + u.x * s2, pz = A_C.z + u.z * s2, py = H(px, pz);
      [-13, 13].forEach(function (off) { box(glow, 0.5, 0.25, 19, mat4(px + perp.x * off, py + 0.2, pz + perp.z * off, 0, ry, 0), C.gold); });
      if ((s2 - 158) % 42 === 0) { lamp(px + perp.x * 11, py, pz + perp.z * 11, 1); lamp(px - perp.x * 11, py, pz - perp.z * 11, 1); }
    }
  })();

  group.add(solid.build(new T.MeshLambertMaterial({ vertexColors: true })));
  group.add(glow.build(new T.MeshBasicMaterial({ vertexColors: true })));
  if (glassB.n) group.add(glassB.build(new T.MeshLambertMaterial({ vertexColors: true, transparent: true, opacity: 0.6 })));
  group.userData = {
    footprints: footprints, layers: layers,
    centers: { a: A_C, b: B_C }, gallery: GAL,
    texTier: opts.texTier || null,
    molded: molded,
    practice: practiceInfo,
    counts: { footprints: footprints.length, layers: layers.length },
    update: function (dt, t) {
      t = t || 0;
      crystals.forEach(function (c, i) { c.rotation.y = t * (0.14 + i * 0.03); });
      if (lavaClones.length) {
        var p = 0.9 + 0.1 * Math.sin(t * 0.7);
        for (var i = 0; i < lavaMats.length; i++) lavaMats[i].color.setRGB(p, p * 0.97, p * 0.95);
        for (var j = 0; j < lavaClones.length; j++) { lavaClones[j].offset.x = (t * 0.004) % 1; lavaClones[j].offset.y = (t * 0.006) % 1; }
      }
    }
  };
  return group;
}
export { createServitude, A_C as SERV_A, B_C as SERV_B };
export default createServitude;


===== FILE: public/city/servitude.js.bak-hero-20261014 =====
/* THE SERVITUDE — a letter in the code.
 *
 * From the King's word (2026-10-14): "dig an entree in to
 * the mountain and build a huge city in it called the
 * Servitude" — "same as the ancestors area with layers but
 * city upon city" — "another one if it fits, with cave
 * tunnels connecting them, and a shop on each tunnel, a
 * place to buy replenishments of health and safety" — "a
 * nice journey to walk across the inside of the mountain,
 * like old lava tubes" — "stalactites and stalagmites,
 * joined with red and black marble."
 *
 * The digging itself lives in city.js (servitudeCarve): two
 * bowls capped into the far massif — THE FIRST HOLLOW
 * (2600,1280, floor 520) and THE DEEP HOLLOW (2600,1660,
 * floor 440) — the Entree shelf cut into the First Hollow's
 * south-western face, and the gallery slot descending
 * through the saddle between them. This factory builds
 * what stands inside the digging: two layered cities of
 * red and black marble, a roofed lava-tube gallery with
 * its midway provision shop, gates, falls, crystals, and
 * the formations of the deep places.
 *
 * Every sign in it obeys the day's law, learned at the
 * Book of Law: lettered plates stand PROUD of their stone,
 * twin-faced so both journeys read them, and every sign
 * carries collision — the signs are protected here.
 *
 * By the hand of Solid, his good King. */
'use strict';

function mulberry(a) { return function () { a |= 0; a = a + 0x6D2B79F5 | 0; var 