# Visual demo — California Distribution-Aware Resilience Engine

A self-contained 3-page web demo of the statewide run. No build step.

## View it

`fetch()` needs HTTP (not `file://`), so serve the folder, then open the served
`index.html`:

```bash
cd demo && python3 -m http.server 8000
```

- **`index.html`** — landing / project-summary: methodology, the 5 real data
  layers, KPI cards (566 sites, 465 RIZs, 26 candidate clusters), top-12 preview.
- **`california_resilience_demo.html`** — the statewide **MapLibre map**: RIZ
  choropleth, cluster hulls, microgrid candidates with DER-mix popups.
- **`site_list.html`** — the full **sortable/filterable site table** (566 sites,
  search + county + score filters, Download-CSV).

Data (regenerate any time): `python3 scripts/run_california.py` +
`python3 scripts/build_site_list.py`, then copy `exports/california/{simstate_payload,site_list}.json`
into `demo/`. All pages fetch their JSON relatively; map uses a public basemap CDN.

## What it shows

- **RIZ cells** — choropleth by `score` (0.55→1.2+), low-confidence cells distinct.
- **Cluster hulls** — outlined by `cluster_type`.
- **Microgrid candidates** — markers sized by `priority_score`, colored by
  `economic_priority_index`; click for anchor, DER mix, nearby buildable roofs.
- **Top-15 ranked list**, full legend, and the neutral investigation disclaimer.

Investigation-oriented: candidates flag where a microgrid *merits evaluation* —
never that one should be built or that any operator failed.
