diff --git a/ONBOARDING-INGGLISH-AQ.pdf b/ONBOARDING-INGGLISH-AQ.pdf
index b442e18..fb08a8e 100644
Binary files a/ONBOARDING-INGGLISH-AQ.pdf and b/ONBOARDING-INGGLISH-AQ.pdf differ
diff --git a/README.md b/README.md
index d5896f8..b468d16 100644
--- a/README.md
+++ b/README.md
@@ -1,18 +1,18 @@
-# `ingglish-hyperdope-ci` / `hyperdope-ci-build` (`v2.14.0` — `https://hyperstitionstud.io/ci/`)
+# `ingglish-hyperdope-ci` / `hyperdope-ci-build` (`v2.15.0` — `https://hyperstitionstud.io/ci/`)
-> **Gitea Commit & Release Telemetry (`v2.14.0` • Namespace `urn:io:hyperstitionstud`)**
+> **Gitea Commit & Release Telemetry (`v2.15.0` • Namespace `urn:io:hyperstitionstud`)**
> - **Repository Role & Public Route:** 4-Gate CI/CD Ingglish Provisioning Pipeline (`100.0%` keep rate), `ci-audit-report.json`, & `db_ingglish_entries.txt` → [`https://hyperstitionstud.io/ci/ONBOARDING-INGGLISH-AQ.pdf`](https://hyperstitionstud.io/ci/ONBOARDING-INGGLISH-AQ.pdf)
-> - **Latest Commit Scope (`ingglish-hyperdope-ci`):** Synchronized v2.14.0 release state across 1 tracked module/artifact surface(s)
-> - **Touched Files / Surfaces:** `README.md (release metadata sync)`
-> - **Live Verified Ecosystem Metrics (`v2.14.0`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
+> - **Latest Commit Scope (`ingglish-hyperdope-ci`):** Synchronized v2.15.0 release state across 6 tracked module/artifact surface(s)
+> - **Touched Files / Surfaces:** `ONBOARDING-INGGLISH-AQ.pdf`, `config.default.js`, `docs/ONBOARDING-INGGLISH-AQ.md`, `integrate-upstream-and-ui.sh`, `patches/0001-feat-calc-ingglish-priority-toggle.patch`, `patches/0002-feat-ui-group3-homepage-parity-and-haiperdohpjematreeah-branding.patch`
+> - **Live Verified Ecosystem Metrics (`v2.15.0`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
Automated **4-Gate CI/CD Ingglish & Base-36 AQ Corpus Provisioning Repository** (`feat/ingglish-aq-corpus`), serving verified `db_ingglish_entries.txt` lexical candidates, `ci-audit-report.json` (`100.0%` 4-Gate keep rate), and `ONBOARDING-INGGLISH-AQ.{md,pdf}` for `https://hyperstitionstud.io/ci/` and `https://hyperstitionstud.io/calc/`.
---
-## Canonical Repository Artifacts (`v2.14.0`)
+## Canonical Repository Artifacts (`v2.15.0`)
| Artifact | Public URL & Verification Role |
| :--- | :--- |
diff --git a/config.default.js b/config.default.js
index 53ebe08..ee4ad9a 100644
--- a/config.default.js
+++ b/config.default.js
@@ -1,14 +1,72 @@
-// config.default.js — hyperdope-gematria configuration
-const defaultConfig = {
- databaseVersion: 57,
- optAllowPhraseComments: true,
- customCategories: {
- "Ingglish / CCRU": [
- "Alphanumeric Qabbala",
- "Synx",
- "Based Atlanteanism",
- "Primes",
- "Ordinal"
- ]
- }
+// =====================================================================
+// haiperdohpjematreeah Configuration (Default / Opensource)
+// Copy this file to config.js and customize for your site.
+// =====================================================================
+
+var CALC_CONFIG = {
+
+ // --- Branding ---
+ siteName: "haiperdohpjematreeah", // logo text
+ siteTitle: "haiperdohpjematreeah — Gematria", // browser tab title
+ logoColor: "hsl(148, 60%, 45%)", // green (match code rain)
+ logoGlow: "0 0 8px rgba(0,255,65,0.3), 0 0 16px rgba(0,255,65,0.15)",
+ logoHoverMatrix: true, // flip letters to matrix font on hover
+ faviconUrl: "res/favicon.png",
+
+ // --- Messages ---
+ welcomeMessage: "loading cypher database...",
+ loadedMessage: "{count} entries × {ciphers} cyphers ready",
+
+ // --- Links ---
+ siteUrl: "",
+ githubUrl: "https://github.com/malonehunter/hyperdope-gematria",
+ aboutLinks: [
+ // Add your own links here:
+ // { text: "My Site", url: "https://example.com" },
+ { text: "GitHub", url: "https://github.com/malonehunter/hyperdope-gematria" },
+ ],
+
+ // --- Credits ---
+ credits: [
+ { name: "Saun-Virroco", role: "Original Gematro creator" },
+ { name: "NetVoid", url: "https://cyphers.news/", role: "Preserved codebase & database" },
+ { name: "Alektryon", url: "https://github.com/Alektryon", role: "Cipher contributions" },
+ { name: "Hyperdope", url: "https://hyperdope.com", role: "Database overhaul & v2 architecture" },
+ ],
+
+ // --- Database ---
+ databaseMode: "auto", // "auto" tries db.json then db.txt | "json" | "txt"
+ databaseJsonUrl: "db.json", // full set — loaded in background
+ databaseLiteJsonUrl: "db_lite.json", // lite set (common ciphers) — loaded first for fast paint
+ databaseTxtUrl: "db.txt",
+ databaseVersion: 5, // bump on each db.json regen -> cache-busts the db fetch (?v=N)
+
+ // --- Defaults ---
+ autoMatchDesktop: true,
+ autoMatchMobile: false,
+ prioritizeIngglishMatches: false, // sort [Ingglish: ...] matches to top of query results
+ resultsPerPage: 12,
+ newPhrasesOnTop: true,
+
+ // Ciphers enabled by default on first load + "reset to defaults". Overrides the
+ // enabled:true flags in ciphers.js. Empty => use ciphers.js defaults (classic 4).
+ // Names must match ciphers.js exactly. Example:
+ // defaultEnabledCiphers: ["Ordinal", "Reduction", "Reverse Ordinal", "Reverse Reduction"],
+ defaultEnabledCiphers: [],
+
+ // Optional "Curated" preset button — a one-click extended loadout. Empty/omitted => no
+ // button shown. Keep in sync with the lite db.json (tools/generate_db_json.py LITE_CIPHERS).
+ // Example: recommendedCiphers: ["Ordinal", "Reduction", "Alphanumeric Qabbala", ...],
+ recommendedCiphers: [],
+
+ // --- Custom Cipher Categories ---
+ // Group ciphers into custom menu sections. Ciphers are referenced by
+ // their exact name from ciphers.js. They still appear in their original
+ // category too — custom categories are convenience shortcuts.
+ customCategories: [
+ {
+ name: "Ingglish / CCRU",
+ ciphers: ["Alphanumeric Qabbala", "Synx", "Based Atlanteanism", "Primes", "Ordinal"]
+ },
+ ],
};
diff --git a/docs/ONBOARDING-INGGLISH-AQ.md b/docs/ONBOARDING-INGGLISH-AQ.md
index 02b63fe..95b789f 100644
--- a/docs/ONBOARDING-INGGLISH-AQ.md
+++ b/docs/ONBOARDING-INGGLISH-AQ.md
@@ -1,6 +1,6 @@
# Welcome to Hyperdope-Gematria & Ingglish AQ: A Complete Newcomer's Guide
-If you are brand new to **Hyperdope-Gematria** (`Cypher Calculator`) and have never heard of **Ingglish** or **Alphanumeric Qabbala (AQ)**, this guide walks you through everything from first principles to hands-on discovery in under five minutes.
+If you are brand new to **Hyperdope-Gematria** (`haiperdohpjematreeah`) and have never heard of **Ingglish** or **Alphanumeric Qabbala (AQ)**, this guide walks you through everything from first principles to hands-on discovery in under five minutes.
---
diff --git a/integrate-upstream-and-ui.sh b/integrate-upstream-and-ui.sh
new file mode 100755
index 0000000..5f911d6
--- /dev/null
+++ b/integrate-upstream-and-ui.sh
@@ -0,0 +1,51 @@
+#!/usr/bin/env bash
+# /workspace/hyperdope-ci-build/integrate-upstream-and-ui.sh
+# Integrates upstream `malonehunter/hyperdope-gematria` (`origin/master`) with:
+# Layer 1 (`feat/ingglish-aq-corpus`): Verified Ingglish AQ corpus (`db.txt`) + `tools/normalize_caps.py` guard + `docs/ONBOARDING-INGGLISH-AQ.md`
+# Layer 2 (`feat/ingglish-priority-toggle`): `patches/0001-feat-calc-ingglish-priority-toggle.patch` (`ING ↑` query match priority toggle)
+# Layer 3 (`main` / `feat/group3-homepage-ui-and-branding`): `patches/0002-feat-ui-group3-homepage-parity-and-haiperdohpjematreeah-branding.patch`
+# and regenerates clean upstream PR patches whenever UI or corpus changes are made in `haiperdohp-jemaytreeah`.
+set -euo pipefail
+
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
+CALC_REPO="${1:-/workspace/haiperdohp-jemaytreeah}"
+MODE="${2:---export-patches}"
+
+if [[ ! -d "${CALC_REPO}/.git" ]]; then
+ echo "[ERROR] Target calculator repository not found at ${CALC_REPO}" >&2
+ exit 1
+fi
+
+mkdir -p "${SCRIPT_DIR}/patches"
+PATCH_1="${SCRIPT_DIR}/patches/0001-feat-calc-ingglish-priority-toggle.patch"
+PATCH_2="${SCRIPT_DIR}/patches/0002-feat-ui-group3-homepage-parity-and-haiperdohpjematreeah-branding.patch"
+
+if [[ "${MODE}" == "--export-patches" ]]; then
+ echo "[1/2] Exporting clean Layer 2 (ING ↑ Priority Toggle) & Layer 3 (Group 3 Homepage UI & haiperdohpjematreeah Branding) patches from ${CALC_REPO}..."
+ git -C "${CALC_REPO}" diff feat/ingglish-aq-corpus..feat/ingglish-priority-toggle -- calc/calc.js calc/database.js > "${PATCH_1}"
+ git -C "${CALC_REPO}" diff feat/ingglish-priority-toggle -- index.html calc/styles.css calc/coderain.js config.default.js manifest.json > "${PATCH_2}"
+ echo "[2/2] Verifying exported patches are non-empty and syntactically valid..."
+ test -s "${PATCH_1}"
+ test -s "${PATCH_2}"
+ echo "[OK] Exported clean upstream-ready patches:"
+ echo " - ${PATCH_1} ($(wc -c < "${PATCH_1}") bytes)"
+ echo " - ${PATCH_2} ($(wc -c < "${PATCH_2}") bytes)"
+ exit 0
+fi
+
+if [[ "${MODE}" == "--verify-clean-apply" ]]; then
+ TMP_WT="/tmp/haiperdohp-patch-verify-$$"
+ trap 'git -C "${CALC_REPO}" worktree remove --force "${TMP_WT}" || rm -rf "${TMP_WT}"' EXIT
+ git -C "${CALC_REPO}" worktree add --detach "${TMP_WT}" feat/ingglish-aq-corpus
+ echo "[1/2] Verifying Layer 2 patch (0001-feat-calc-ingglish-priority-toggle.patch) applies cleanly on feat/ingglish-aq-corpus..."
+ git -C "${TMP_WT}" apply --check "${PATCH_1}"
+ git -C "${TMP_WT}" apply "${PATCH_1}"
+ echo "[2/2] Verifying Layer 3 patch (0002-feat-ui-group3-homepage-parity-and-haiperdohpjematreeah-branding.patch) applies cleanly on top of Layer 2..."
+ git -C "${TMP_WT}" apply --check "${PATCH_2}"
+ git -C "${TMP_WT}" apply "${PATCH_2}"
+ echo "[OK] Both Layer 2 and Layer 3 patches apply 100% cleanly on top of upstream + feat/ingglish-aq-corpus!"
+ exit 0
+fi
+
+echo "[ERROR] Unknown mode: ${MODE} (expected --export-patches or --verify-clean-apply)" >&2
+exit 2
diff --git a/patches/0001-feat-calc-ingglish-priority-toggle.patch b/patches/0001-feat-calc-ingglish-priority-toggle.patch
new file mode 100644
index 0000000..8b9e28e
--- /dev/null
+++ b/patches/0001-feat-calc-ingglish-priority-toggle.patch
@@ -0,0 +1,141 @@
+diff --git a/calc/calc.js b/calc/calc.js
+index f58e9e8..37c1a2c 100644
+--- a/calc/calc.js
++++ b/calc/calc.js
+@@ -60,6 +60,7 @@ var optHltSameCipher = false;
+ var alphaHlt = 0.15; // opacity for values that do not match - change value here and in conf_SOM()
+
+ var optAllowPhraseComments = true; // allow phrase comments, text inside [...] is not evaluated
++var optPrioritizeIngglish = (typeof CALC_CONFIG !== 'undefined' && CALC_CONFIG.prioritizeIngglishMatches) ? true : false; // sort [Ingglish: ...] matches to top of query results
+ var liveDatabaseMode = true; // live database mode
+
+ var dbPageItems = (typeof CALC_CONFIG !== 'undefined' && CALC_CONFIG.resultsPerPage) ? CALC_CONFIG.resultsPerPage : 12;
+@@ -103,6 +104,7 @@ var calcOptionsArr = [
+ "optNewPhrasesGoFirst",
+ "optShowExtraCiphers",
+ "optAllowPhraseComments",
++ "optPrioritizeIngglish",
+ "liveDatabaseMode",
+ "optLetterWordCount",
+ "optWordBreakdown",
+@@ -546,6 +548,8 @@ function createOptionsMenu() {
+
+ if (optShowExtraCiphers) SECstate = "checked"; // Show Extra Ciphers
+ if (optAllowPhraseComments) APCstate = "checked"; // Allow Phrase Comments
++ var PIMstate = "";
++ if (optPrioritizeIngglish) PIMstate = "checked"; // Prioritize Ingglish [...]
+ if (liveDatabaseMode) LDMstate = "checked"; // Live Database Mode
+
+ if (optNewPhrasesGoFirst) NPGFstate = "checked"; // New Phrases Go First
+@@ -586,6 +590,10 @@ function createOptionsMenu() {
+ '
';
++ o +=
++ '';
+ o +=
+ '