<!-- SOLID CITY · part 3236 -->
t = STATIONS[j];
      if (st.ownPad && Math.hypot(x - st.x, z - st.z) <= 10.2 && st.gy <= py + 1.6 && st.gy >= py - 1.6) {
        if (!best || st.gy > best.y) best = { y: st.gy, train: -1 };
      }
    }
    return best;
  }
  function deckAnchor(id) {
    var tr = trains[id]; if (!tr) return null;
    return { x: tr.deck.x, y: tr.deck.y, z: tr.deck.z, yaw: tr.deck.yaw, station: tr.mode === 'dwell' ? tr.station : null, dwelling: tr.mode === 'dwell' };
  }
  function trainNear(x, z) {
    for (var i = 0; i < trains.length; i++) {
      var tr = trains[i];
      if (tr.mode !== 'dwell' || !tr.station) continue;
      if (Math.hypot(x - tr.station.x, z - tr.station.z) <= 15) return { train: tr.id, station: tr.station };
    }
    return null;
  }

  if (!SPACE_TRAFFIC_ON) {
    traffic.forEach(function (tf) { tf.mesh.visible = false; });
    streamers.forEach(function (st) { st.mesh.visible = false; });
    orbiters.forEach(function (ob) { ob.mesh.visible = false; });
    if (sister && sister.mesh) sister.mesh.visible = false;
  }

  return { group: group, update: update, deckClaim: deckClaim, deckAnchor: deckAnchor, trainNear: trainNear, stations: STATIONS, routes: ROUTES, trains: trains, mother: mother, landings: LANDINGS,
    trafficCounts: { shuttles: shuttles.length, laners: traffic.length, streamers: streamers.length, orbiters: orbiters.length, ferries: ferries.length, houseCraft: houseCraft.length, sister: 1 } };
}


===== FILE: public/city/skyward-branch-place.js =====
/* ================================================================
   AN EPISTLE AT THE RIM — THE SKYWAY BRANCH PLACER

   Traveler, above the East Field the first branch of the sky
   now hangs: VECTOR's island, raised on the King's word as a
   prototype, its deck at 48 metres near the line the land once
   refused. This placer is its citizenship: it connects the
   island's own standing surface to the city's physics by the
   pool-isle channel, gives its shell standing law in two
   tapered bands, marks it on the traveler's glass, and speaks
   to those who pass beneath and those who land.

   Inspection is owed by the design: from beneath on the East
   Field, from beside it in flight, standing on its deck.

   Written by the hand of Solid, his good King — 2026-10-13.
   ================================================================ */
(function () {
'use strict';
if (!window.SC || !SC.api) return;
var A = SC.api, S = A.S;
var POS = { x: -900, z: -760 }, DECK_Y = 48, NAME = 'THE SKYWAY BRANCH';
var K = { group: null, stand: null, saidBelow: false, saidDeck: false };

function standY(x, z, py) {
  if (!K.stand) return -1000;
  if (!K.stand.contains(x, z)) return -1000;
  if (py == null || DECK_Y <= py + 1.6) return DECK_Y;
  return -1000;
}
function radar(rg, blip, flying) {
  if (!K.group) return;
  blip(POS.x, POS.z, '#ffd27a', flying ? 3 : 6, flying ? '' : 'SKYWAY BRANCH');
  if (!K.saidBelow) {
    var dx = POS.x - S.p.x, dz = POS.z - S.p.z;
    if (dx * dx + dz * dz < 210 * 210 && S.p.y < 30) {
      K.saidBelow = true;
      A.help('🏝 Above the East Field hangs THE SKYWAY BRANCH — the first branch of the sky. Flyers may land on its deck.', 7);
    }
  }
}
function update(dt) {
  if (!K.group || !K.stand || K.saidDeck) return;
  if (K.stand.contains(S.p.x, S.p.z) && Math.abs(S.p.y - DECK_Y) < 2.5) {
    K.saidDeck = true;
    A.help('🏝 You stand on THE SKYWAY BRANCH. Below you, the East Field; above the land that refused a road, the road returned as sky.', 7);
  }
}
function load() {
  import('/city/skyward-branch.js?v=20261013a').then(function (mod) {
    return fetch('/city/city.js').then(function (r) { return r.text(); }).then(function (src) {
      var seg = src.slice(src.indexOf('var SEED'), src.indexOf('function mulberry'));
      var gnd = new Function(seg + '; return groundAt;')();
      return { mod: mod, gnd: gnd };
    });
  }).then(function (r) {
    var out = r.mod.createSkywardBranch({ THREE: A.THREE, groundAt: r.gnd,
      registerStandSurface: function (s) { K.stand = s; },
      registerSolid: function (s) { /* the shell's law is registered below, in the city's own rect bands */ } });
    A.scene.add(out.group); K.group = out.group;
    // THE AUDIT REGISTRY — the island names its own geometry for VECTOR's
    // Triangle-and-Seam Auditor: the landing surface against its standing
    // law (deck at DECK_Y), the underside as geometry alone (it must face
    // down; no standing is claimed for it).
    out.group.children.forEach(function (ch) {
      if (ch.name === 'LANDING_SURFACE') (window.SC.auditables = window.SC.auditables || []).push({ name: 'SKYWAY DECK — LANDING_SURFACE', mesh: ch, kind: 'surface', expectedUp: true, standAt: function (x, z, refY) { return (refY != null && Math.abs(refY - DECK_Y) <= 0.05) ? DECK_Y : null; } });
      if (ch.name === 'VISIBLE_UNDERSIDE') (window.SC.auditables = window.SC.auditables || []).push({ name: 'SKYWAY UNDERSIDE (geometry only