{
  "schema": "gizah-geometry-v1",
  "reference": {
    "grid": "0.0.0.0",
    "label": "Null Island",
    "purpose": "game-import anchor"
  },
  "origin": {
    "x": 0, "y": 0, "z": 0,
    "label": "Vortex Point",
    "depth": "underground center",
    "purpose": "pyramid internal reference"
  },
  "units": {
    "primary": "royal_cubit",
    "symbol": "RC",
    "bridge": "6 RC = π meter",
    "formula": "RC → m = RC × (π/6)",
    "note": "RC = vector (integer), m = projectie via pi"
  },
  "axis": {
    "z": "vertical (up=+, down=-)",
    "x": "east-west (east=+, west=-)",
    "y": "north-south (north=+, south=-)"
  },
  "pyramid": {
    "base_RC": 440,
    "base_m": 230.4,
    "height_orig_RC": 280,
    "height_orig_m": 146.6,
    "height_cur_RC": 265,
    "height_cur_m": 138.8,
    "apexZ_RC": 280,
    "apexZ_m": 146.6,
    "groundZ": 0,
    "depthMax": "unknown",
    "centerX_RC": 220,
    "centerX_m": 115.2,
    "centerY_RC": 220,
    "centerY_m": 115.2,
    "faceAngle": 51.84
  },
  "chambers": [
    {
      "id": "vortex",
      "name": "Vortex Kamer",
      "z": 0,
      "pos": { "x": 0, "y": 0, "z": 0 },
      "dims": { "r": 8, "h": 12 },
      "type": "cylinder",
      "function": "draaikolk — aanzuiging → drukdaling",
      "status": "theoretisch",
      "verified": false,
      "notes": "ondergrondse vortex — startpunt stroomroute"
    },
    {
      "id": "water",
      "name": "Water Opstal",
      "z": -40,
      "pos": { "x": 0, "y": 0, "z": -40 },
      "dims": { "r": 12, "h": 8 },
      "type": "cylinder",
      "function": "reservoir — waterbron",
      "status": "theoretisch",
      "verified": false,
      "notes": "water reservoir onder piramide"
    },
    {
      "id": "shaft_under",
      "name": "Ondergrondse Schacht",
      "z_start": -15,
      "z_end": 43,
      "pos": { "x": 0, "y": 0, "z": -15 },
      "dims": { "r_bottom": 1.5, "r_top": 1.2, "h": 58 },
      "type": "cylinder",
      "function": "verticale verbinding: vortex → Queen's",
      "status": "theoretisch",
      "verified": false,
      "connects": ["vortex", "queens"]
    },
    {
      "id": "entrance",
      "name": "Oorspronkelijke Ingang",
      "elevation_id": 1,
      "pos": { "x": 20, "y": 220, "z": 22 },
      "dims_RC": { "w": 2.3, "d": 3.3, "h": 3 },
      "dims_m": { "w": 1.2, "d": 1.72, "h": 1.57 },
      "type": "entrance",
      "function": "noordgevel toegang",
      "status": "bevestigd",
      "verified": true,
      "notes": "~10.5m oost van centrum, 11.5m boven grond",
      "connects": ["descending"]
    },
    {
      "id": "robbers_tunnel",
      "name": "Diefstunnel",
      "elevation_id": 2,
      "pos": { "x": 0, "y": 180, "z": 12 },
      "type": "entrance",
      "function": "gedwongen toegang, toeristeningang",
      "status": "bevestigd",
      "verified": true,
      "notes": "18e eeuw, dwars door noordgevel"
    },
    {
      "id": "descending",
      "name": "Aflopende Gang",
      "elevation_id": "3,4",
      "pos": { "x": 0, "y": 0, "z_start": 22, "z_end": -15 },
      "dims_RC": { "w": 1.8, "d": 1.8 },
      "dims_m": { "w": 0.94, "d": 0.94 },
      "length_RC": 206,
      "length_m": 108,
      "type": "passage",
      "function": "ingang → split-punt",
      "status": "bevestigd",
      "verified": true,
      "slope": "26°",
      "notes": "Gaat naar beneden en zuidwaarts",
      "connects": ["entrance", "subterranean", "ascending"]
    },
    {
      "id": "subterranean",
      "name": "Ondergrondse Kamer",
      "elevation_id": 5,
      "pos": { "x": 0, "y": 0, "z": -10 },
      "dims_RC": { "L": 14, "W": 7.4, "H": 6.7 },
      "dims_m": { "L": 7.33, "W": 3.87, "H": 3.51 },
      "type": "chamber",
      "function": "diepste kamer",
      "status": "bevestigd",
      "verified": true,
      "notes": "Centraal op as, ~5.2m onder grond",
      "connects": ["descending", "grotto"]
    },
    {
      "id": "grotto",
      "name": "Grot",
      "elevation_id": 11,
      "pos": { "x": 0, "y": 0, "z": -21 },
      "dims_RC": { "w": 5, "d": 5, "h": 11 },
      "dims_m": { "w": 2.62, "d": 2.62, "h": 5.76 },
      "type": "chamber",
      "function": "onvoltooid, onder subterranean",
      "status": "bevestigd",
      "verified": true,
      "notes": "Vloer is onvoltooid, mogelijk startpunt van groter plan",
      "connects": ["subterranean"]
    },
    {
      "id": "ascending",
      "name": "Opstijgende Gang",
      "elevation_id": 6,
      "pos": { "x": 0, "y": 0, "z_start": -15, "z_end": 48 },
      "dims_RC": { "w": 1.8, "d": 1.8 },
      "dims_m": { "w": 0.94, "d": 0.94 },
      "length_RC": 67,
      "length_m": 35,
      "type": "passage",
      "function": "split-punt → Grand Gallery",
      "status": "bevestigd",
      "verified": true,
      "slope": "26.3°",
      "notes": "Centraal op as",
      "connects": ["descending", "gallery", "h_passage"]
    },
    {
      "id": "well",
      "name": "Well Shaft / Put",
      "elevation_id": 11,
      "pos": { "x": 2, "y": 0, "z_start": -15, "z_end": 27 },
      "dims_RC": { "w": 1.1, "d": 1.1 },
      "dims_m": { "w": 0.58, "d": 0.58 },
      "type": "shaft",
      "function": "verticale schacht",
      "status": "bevestigd",
      "verified": true,
      "notes": "Licht oost van opstijgende gang, onvoltooid",
      "connects": ["ascending", "gallery"]
    },
    {
      "id": "h_passage",
      "name": "Horizontale Gang",
      "elevation_id": 8,
      "pos": { "x": 3.8, "y": 0, "z": 79 },
      "dims_RC": { "L": 7.6, "w": 1.5, "h": 1.8 },
      "dims_m": { "L": 3.98, "w": 0.79, "h": 0.94 },
      "type": "passage",
      "function": "opstijgende gang → Queen's",
      "status": "bevestigd",
      "verified": true,
      "notes": "Van centrum naar oost",
      "connects": ["ascending", "queens"]
    },
    {
      "id": "queens_n_shaft",
      "name": "Queen's Noord Shaft",
      "elevation_id": "7a",
      "pos": { "x": 7.6, "y": -1, "z_start": 82, "z_end": 82 },
      "dims_RC": { "w": 0.34, "d": 0.34 },
      "dims_m": { "w": 0.18, "d": 0.18 },
      "type": "shaft",
      "function": "luchtschacht noord",
      "status": "bevestigd",
      "verified": true,
      "notes": "Smal, van Queen's naar noordgevel",
      "parent": "queens"
    },
    {
      "id": "queens_s_shaft",
      "name": "Queen's Zuid Shaft",
      "elevation_id": "7b",
      "pos": { "x": 7.6, "y": 1, "z_start": 82, "z_end": 82 },
      "dims_RC": { "w": 0.34, "d": 0.34 },
      "dims_m": { "w": 0.18, "d": 0.18 },
      "type": "shaft",
      "function": "luchtschacht zuid",
      "status": "bevestigd",
      "verified": true,
      "notes": "Smal, van Queen's naar zuidgevel",
      "parent": "queens"
    },
    {
      "id": "queens",
      "name": "Queen's Chamber",
      "elevation_id": 7,
      "z_RC": 82,
      "z_m": 43,
      "pos": { "x": 7.6, "y": 0, "z": 82 },
      "dims_RC": { "L": 9, "W": 9, "H": 6.5 },
      "dims_m": { "L": 4.71, "W": 4.71, "H": 3.40 },
      "type": "box",
      "function": "injectiepunt — lucht uit schacht",
      "status": "bevestigd",
      "verified": true,
      "notes": "~4m (7.6 RC) oost van centrum-as",
      "spec": {
        "elevation_ground_RC": 82,
        "elevation_ground_m": 43,
        "material": "graniet (muren)",
        "niche": "east wall (3.3m deep)",
        "air_shaft": "2x (N+S, narrow)"
      },
      "connects": ["shaft_under", "h_passage", "queens_n_shaft", "queens_s_shaft"]
    },
    {
      "id": "antechamber",
      "name": "Antechamber",
      "elevation_id": null,
      "z_RC": 105,
      "pos": { "x": 0, "y": 0, "z": 105 },
      "dims_RC": { "L": 7, "W": 3.5, "H": 6 },
      "dims_m": { "L": 3.66, "W": 1.83, "H": 3.14 },
      "type": "box",
      "function": "tussenkamer → King's",
      "status": "bevestigd",
      "verified": true,
      "notes": "Tussen Grand Gallery en King's Chamber, met 3 graniet platen",
      "connects": ["gallery", "kings"]
    },
    {
      "id": "gallery",
      "name": "Grand Gallery",
      "z_start_RC": 86,
      "z_start_m": 45,
      "z_end_RC": 105,
      "z_end_m": 55,
      "pos": { "x": 0, "y": 0, "z_RC": 25, "z_m": 25 },
      "dims_RC": { "L": 44, "W": 4, "H": 16 },
      "dims_m": { "L": 23.04, "W": 2.09, "H": 8.38 },
      "type": "box",
      "function": "4-split — 2↑ omhoog + 2↓ omlaag",
      "status": "bevestigd",
      "verified": true,
      "spec": {
        "elevation_ground_RC": "86-105",
        "elevation_ground_m": "45-55",
        "galleries_sides": "step-galleries (7 niches each)",
        "floor": "grooves for rollers",
        "ceiling": "false vault (corbelled)",
        "split_arms_up": 2,
        "split_arms_down": 2
      },
      "connects": ["sub_ante", "kings", "relieving"]
    },
    {
      "id": "kings",
      "name": "King's Chamber",
      "elevation_id": 10,
      "z_RC": 111,
      "z_m": 58,
      "pos": { "x": 0, "y": 0, "z": 111 },
      "dims_RC": { "L": 20, "W": 10, "H": 11 },
      "dims_m": { "L": 10.47, "W": 5.24, "H": 5.76 },
      "type": "box",
      "function": "F# resonantie ≈ 370 Hz",
      "status": "bevestigd",
      "verified": true,
      "notes": "Centraal op as",
      "spec": {
        "elevation_ground_RC": 111,
        "elevation_ground_m": 58,
        "material": "6 graniet blokken (dak)",
        "sarcophagus": "red graniet (18e eeuw, leeg)",
        "sarcophagus_dims_RC": { "L": 4.4, "W": 2, "H": 2 },
        "sarcophagus_dims_m": { "L": 2.28, "W": 0.98, "H": 1.05 },
        "resonance_freq": "~370 Hz (F#)",
        "relieving_chambers": 5,
        "air_shafts": "2x (N+S)"
      },
      "connects": ["antechamber", "relieving", "kings_n_shaft", "kings_s_shaft"]
    },
    {
      "id": "kings_n_shaft",
      "name": "King's Noord Shaft (Orion)",
      "elevation_id": "10a",
      "pos": { "x": 3.5, "y": 0, "z_start": 111, "z_end": 157 },
      "dims_RC": { "w": 0.34, "d": 0.4 },
      "dims_m": { "w": 0.18, "d": 0.21 },
      "length_m": 46,
      "type": "shaft",
      "function": "luchtschacht → Orion sterrenbeeld",
      "status": "bevestigd",
      "verified": true,
      "notes": "Curve naar oppervlak",
      "surface_pos": { "x": 3.5, "y": 4, "z": 90 },
      "parent": "kings"
    },
    {
      "id": "kings_s_shaft",
      "name": "King's Zuid Shaft (Sirius)",
      "elevation_id": "10b",
      "pos": { "x": -3.5, "y": 0, "z_start": 111, "z_end": 140 },
      "dims_RC": { "w": 0.34, "d": 0.4 },
      "dims_m": { "w": 0.18, "d": 0.21 },
      "length_m": 55,
      "type": "shaft",
      "function": "luchtschacht → Sirius",
      "status": "bevestigd",
      "verified": true,
      "notes": "Curve naar oppervlak",
      "surface_pos": { "x": -3.5, "y": -4, "z": 85 },
      "parent": "kings"
    },
    {
      "id": "relieving",
      "name": "Relieving Chambers ×5",
      "z_start": 62,
      "z_end": 72,
      "pos": { "x": 0, "y": 0, "z": 42 },
      "dims": { "w": 9, "h": 1.8, "d": 9, "count": 5 },
      "type": "box_stack",
      "function": "lucht-druk afvoer → boven King's",
      "status": "bevestigd",
      "verified": true,
      "spec": {
        "elevation_ground": "60-70m",
        "material": "graniet (dakplaten)",
        "purpose": "weight distribution + air pressure",
        "spaced": "2.2m apart",
        "doverys_dam": "top chamber, discovery 1765"
      },
      "connects": ["kings"]
    }
  ],
  "flow_route": [
    { "from": "water", "to": "vortex", "type": "water", "dir": "up" },
    { "from": "vortex", "to": "shaft_under", "type": "air", "dir": "up" },
    { "from": "shaft_under", "to": "queens", "type": "air", "dir": "up" },
    { "from": "queens", "to": "sub_ante", "type": "air", "dir": "up" },
    { "from": "sub_ante", "to": "gallery", "type": "air", "dir": "up" },
    { "from": "gallery", "to": "kings", "type": "air_split_up", "dir": "up", "count": 2 },
    { "from": "gallery", "to": "gallery", "type": "air_split_down", "dir": "down", "count": 2 },
    { "from": "kings", "to": "relieving", "type": "air", "dir": "up" },
    { "from": "kings", "to": "n_shaft", "type": "air", "dir": "up" },
    { "from": "kings", "to": "s_shaft", "type": "air", "dir": "up" }
  ],
  "elevation_structures": {
    "note": "Official interior structures (1-11), east-west section",
    "structures": [
      {"id": 1, "name": "Original Entrance", "z": 12, "type": "entrance", "connects": ["descending"]},
      {"id": 2, "name": "Robbers' Tunnel", "z": 12, "type": "entrance", "note": "forced entrance, tourist path"},
      {"id": 3, "name": "Descending Passage (boven)", "z_start": 12, "z_end": -4, "type": "passage"},
      {"id": 4, "name": "Descending Passage (onder)", "z_start": -4, "z_end": -10, "type": "passage", "connects": ["subterranean"]},
      {"id": 5, "name": "Subterranean Chamber", "z": -10, "type": "chamber", "dims": {"w": 5.4, "h": 3.5, "d": 3.8}, "connects": ["descending"]},
      {"id": 6, "name": "Ascending Passage", "z_start": -4, "z_end": 48, "type": "passage", "connects": ["descending", "gallery", "queens"]},
      {"id": 7, "name": "Queen's Chamber + shafts", "z": 43, "type": "chamber", "connects": ["ascending", "horizontal"]},
      {"id": 8, "name": "Horizontal Passage", "z": 43, "type": "passage", "connects": ["queens", "gallery"]},
      {"id": 9, "name": "Grand Gallery", "z_start": 27, "z_end": 48, "type": "gallery", "connects": ["ascending", "antechamber", "well_shaft"]},
      {"id": 10, "name": "King's Chamber + shafts", "z": 58, "type": "chamber", "connects": ["antechamber", "n_shaft", "s_shaft", "relieving"]},
      {"id": 11, "name": "Grotto + Well Shaft", "z_start": -4, "z_end": 27, "type": "shaft", "connects": ["descending", "gallery"]}
    ]
  },
  "hexa_grid": {
    "cells": 64,
    "cell_RC": 6,
    "cell_m": 3.1416,
    "note": "1 hexa cell = 6 RC = π meter"
  },
  "game_import": {
    "grid_anchor": "0.0.0.0",
    "origin": [0, 0, 0],
    "unit_RC": true,
    "scale": 1.0,
    "module_type": "chamber_network",
    "note": "each chamber = game module; connects = navigation links"
  }
}
