← Back to Research Index View Raw Source

aros-spatial-operations-hud-oregon-risk-gameboard.txt

{/* Copyright © Albert Lane. All Rights Reserved. Proprietary and Confidential — Albert Lane Proprietary Software License. Unauthorized use, copying, modification, or distribution is prohibited. License inquiries: https://albertlane.net */} import React, { useState, useMemo } from 'react'; import { Shield, Cpu, Zap, Layers, Activity, Server, Lock, Radio, Compass, AlertTriangle, ChevronRight, ChevronDown, MapPin, DollarSign, TrendingUp, Database, Network, CheckCircle2, Sliders, Eye, Crosshair, Building2, Flame, Scale } from 'lucide-react'; // ============================================================================ // OREGON SOVEREIGN COMPUTE DATASET (RECONCILED TO ARTIFACTS 1, 2 & 3) // ============================================================================ const REGIONS = { SILICON_FOREST: { id: 'SILICON_FOREST', name: 'Silicon Forest Nexus', bonusBadge: '+5 SUBSEA & IXP BONUS', color: '#c2410c', // Deep Crimson-Amber accent: '#fb923c', fill: 'rgba(194, 65, 12, 0.24)', stroke: '#ea580c', description: 'Trans-Pacific subsea landing corridor & carrier-dense wholesale colocation hub.' }, COLUMBIA_BASIN: { id: 'COLUMBIA_BASIN', name: 'Columbia Basin Hydro Bastion', bonusBadge: '+8 BPA HYDRO & LTREZ BONUS', color: '#0f766e', // Deep Emerald-Teal accent: '#2dd4bf', fill: 'rgba(15, 118, 110, 0.26)', stroke: '#14b8a6', description: 'Hyperscale AI & cloud campuses powered by BPA preference hydro & 15-yr rural tax shields.' }, CENTRAL_HIGH_DESERT: { id: 'CENTRAL_HIGH_DESERT', name: 'Central Oregon High-Desert Core', bonusBadge: '+4 FREE-AIR COOLING BONUS', color: '#b45309', // Burnished Gold-Ochre accent: '#fbbf24', fill: 'rgba(180, 83, 9, 0.25)', stroke: '#f59e0b', description: 'High-altitude evaporative & direct-to-chip campuses (Meta & Apple Prineville anchor).' }, WILLAMETTE_COAST_SOUTH: { id: 'WILLAMETTE_COAST_SOUTH', name: 'Willamette, Coastal & Southern Corridor', bonusBadge: '+3 SOVEREIGN EDGE & LANDING', color: '#6d28d9', // Royal Violet-Slate accent: '#c084fc', fill: 'rgba(109, 40, 217, 0.22)', stroke: '#8b5cf6', description: 'State sovereign enclaves, university HPC nodes, and Bandon trans-Pacific cable landing.' } }; const OPERATOR_STYLES = { AWS: { label: 'AWS Hyperscale', tokenBg: '#ea580c', tokenRing: '#fdba74', short: 'AWS' }, META: { label: 'Meta Platforms', tokenBg: '#2563eb', tokenRing: '#93c5fd', short: 'META' }, GOOGLE: { label: 'Google Cloud/AI', tokenBg: '#059669', tokenRing: '#6ee7b7', short: 'GOOG' }, COLO: { label: 'Sovereign Colo / IXP', tokenBg: '#b91c1c', tokenRing: '#fca5a5', short: 'COLO' }, STATE: { label: 'State / Subsea Edge', tokenBg: '#7c3aed', tokenRing: '#d8b4fe', short: 'EDGE' } }; const COUNTIES_DATA = [ { id: 'Washington', fips: '41067', region: 'SILICON_FOREST', dominantOp: 'COLO', facilities: 44, statusBreakdown: '31 Op / 4 Build / 9 Plan', itMw: 845.0, pue: 1.18, capexB: 11.41, sovereignCapexM: 1267.5, powerOpexM: 622.8, totalOpexM: 892.4, grossRevM: 2085.0, taxExemptM: 108.5, netTaxM: 36.8, opRakePct: 21.8, publicRakePct: 33.9, utility: 'PGE (Schedule 96 +29.7%) / Forest Grove L&P', tariffUsdMwh: 84.5, taxProgram: 'Standard EZ (Frozen June 5, 2026) + Local Oct 2026 Moratoriums', substationHeadroom: 'CRITICAL — 115kV/230kV Queued to 2029', fiberLatency: '0.4 ms to Hillsboro Subsea Landing (NCP/JUPITER/TPE)', wueStatus: 'Closed-Loop Liquid Cooling Mandated on New Builds', attestationReadyPct: 88, loadFactorPct: 82, svgPath: 'M 155,72 L 195,70 L 204,95 L 185,112 L 152,106 Z', tokenPos: { x: 177, y: 90 }, labelPos: { x: 177, y: 123 }, zips: [ { zip: '97124', city: 'Hillsboro', facilities: 35, itMw: 768.0, capexB: 10.37, opexM: 810.2, grossRevM: 1896.0, taxExemptM: 104.2, netTaxM: 31.4, opRakePct: 22.0, publicRakePct: 30.1, nodes: [ { id: 'OR-WASH-97124-QTS02A', op: 'QTS Data Centers', mw: 60.0, pue: 1.18, capexM: 810.0, sovCapexM: 90.0, powerOpexM: 44.2, totalOpexM: 63.3, revM: 148.1, exemptM: 8.2, taxM: 2.4, opRake: 22.15, pubRake: 29.27, tee: 'AMD SEV-SNP + FIPS 140-3 L4' }, { id: 'OR-WASH-97124-ALGN01', op: 'Aligned Data Centers', mw: 54.0, pue: 1.15, capexM: 729.0, sovCapexM: 81.0, powerOpexM: 39.8, totalOpexM: 57.0, revM: 133.3, exemptM: 7.4, taxM: 2.2, opRake: 22.13, pubRake: 29.73, tee: 'Intel TDX + Delta3 Liquid Enclave' }, { id: 'OR-WASH-97124-DLR11', op: 'Digital Realty (PDX11)', mw: 50.0, pue: 1.18, capexM: 675.0, sovCapexM: 75.0, powerOpexM: 36.8, totalOpexM: 52.7, revM: 123.4, exemptM: 6.8, taxM: 2.0, opRake: 22.20, pubRake: 29.41, tee: 'ServiceFabric Sovereign Mesh' }, { id: 'OR-WASH-97124-FLEX03', op: 'Flexential (Hillsboro 3)', mw: 36.0, pue: 1.19, capexM: 486.0, sovCapexM: 54.0, powerOpexM: 26.5, totalOpexM: 38.0, revM: 88.9, exemptM: 4.9, taxM: 1.5, opRake: 22.05, pubRake: 30.61, tee: 'Subsea Backhaul Attested Vault' }, { id: 'OR-WASH-97124-NTTHI1', op: 'NTT Global Data Centers', mw: 36.0, pue: 1.19, capexM: 486.0, sovCapexM: 54.0, powerOpexM: 26.5, totalOpexM: 38.0, revM: 88.9, exemptM: 4.9, taxM: 1.5, opRake: 22.05, pubRake: 30.61, tee: 'JUPITER Cable Sovereign Terminus' }, { id: 'OR-WASH-97124-STCK1A', op: 'STACK Infrastructure', mw: 36.0, pue: 1.19, capexM: 486.0, sovCapexM: 54.0, powerOpexM: 26.5, totalOpexM: 38.0, revM: 88.9, exemptM: 4.9, taxM: 1.5, opRake: 22.05, pubRake: 30.61, tee: 'Confidential GPU Pod Cluster' }, { id: 'OR-WASH-97124-VRUS01', op: 'Verrus Data Centers (Post-Moratorium)', mw: 12.0, pue: 1.16, capexM: 162.0, sovCapexM: 18.0, powerOpexM: 8.8, totalOpexM: 12.7, revM: 29.6, exemptM: 0.0, taxM: 1.1, opRake: 21.96, pubRake: 100.0, tee: 'Zero-Abatement Sovereign Node' } ] }, { zip: '97005', city: 'Beaverton (Central)', facilities: 4, itMw: 38.0, capexB: 0.51, opexM: 40.6, grossRevM: 93.5, taxExemptM: 2.4, netTaxM: 2.5, opRakePct: 21.1, publicRakePct: 104.2, nodes: [ { id: 'OR-WASH-97005-EDGX01', op: 'EdgeConneX PDX01', mw: 12.0, pue: 1.22, capexM: 162.0, sovCapexM: 18.0, powerOpexM: 8.9, totalOpexM: 12.8, revM: 29.5, exemptM: 0.8, taxM: 0.8, opRake: 21.02, pubRake: 100.0, tee: 'Metro Edge HSM Enclave' }, { id: 'OR-WASH-97005-EDGX02', op: 'EdgeConneX PDX02', mw: 12.0, pue: 1.22, capexM: 162.0, sovCapexM: 18.0, powerOpexM: 8.9, totalOpexM: 12.8, revM: 29.5, exemptM: 0.8, taxM: 0.8, opRake: 21.02, pubRake: 100.0, tee: 'Low-Latency AI Inference Node' }, { id: 'OR-WASH-97005-FLEXB1', op: 'Flexential Beaverton', mw: 10.0, pue: 1.25, capexM: 135.0, sovCapexM: 15.0, powerOpexM: 7.4, totalOpexM: 10.7, revM: 24.6, exemptM: 0.6, taxM: 0.6, opRake: 21.14, pubRake: 100.0, tee: 'Enterprise Sovereign Cloud' } ] }, { zip: '97116', city: 'Forest Grove', facilities: 2, itMw: 24.0, capexB: 0.32, opexM: 24.8, grossRevM: 58.5, taxExemptM: 1.9, netTaxM: 1.6, opRakePct: 21.7, publicRakePct: 84.2, nodes: [ { id: 'OR-WASH-97116-CRNE1A', op: 'Crane Data Centers Ph1', mw: 12.0, pue: 1.18, capexM: 162.0, sovCapexM: 18.0, powerOpexM: 8.6, totalOpexM: 12.4, revM: 29.25, exemptM: 0.95, taxM: 0.8, opRake: 21.71, pubRake: 84.21, tee: 'Municipal BPA-Fed Sovereign Pod' }, { id: 'OR-WASH-97116-CRNE1B', op: 'Crane Data Centers Ph2', mw: 12.0, pue: 1.18, capexM: 162.0, sovCapexM: 18.0, powerOpexM: 8.6, totalOpexM: 12.4, revM: 29.25, exemptM: 0.95, taxM: 0.8, opRake: 21.71, pubRake: 84.21, tee: 'Air-Gapped Sovereign Compute' } ] }, { zip: '97008', city: 'Beaverton (South)', facilities: 3, itMw: 15.0, capexB: 0.21, opexM: 16.8, grossRevM: 37.0, taxExemptM: 0.0, netTaxM: 1.3, opRakePct: 20.5, publicRakePct: 100.0, nodes: [ { id: 'OR-WASH-97008-DLR08', op: 'Digital Realty South', mw: 8.0, pue: 1.26, capexM: 108.0, sovCapexM: 12.0, powerOpexM: 6.3, totalOpexM: 9.0, revM: 19.7, exemptM: 0.0, taxM: 0.7, opRake: 20.30, pubRake: 100.0, tee: 'Unabated Sovereign Colocation' }, { id: 'OR-WASH-97008-NIKE01', op: 'Nike Enterprise Compute', mw: 5.0, pue: 1.28, capexM: 67.5, sovCapexM: 7.5, powerOpexM: 3.9, totalOpexM: 5.6, revM: 12.3, exemptM: 0.0, taxM: 0.4, opRake: 20.33, pubRake: 100.0, tee: 'Private Corporate Sovereign Core' } ] } ] }, { id: 'Multnomah', fips: '41051', region: 'SILICON_FOREST', dominantOp: 'COLO', facilities: 17, statusBreakdown: '15 Op / 0 Build / 2 Plan', itMw: 98.0, pue: 1.27, capexB: 1.37, sovereignCapexM: 147.0, powerOpexM: 78.6, totalOpexM: 112.8, grossRevM: 264.0, taxExemptM: 3.2, netTaxM: 14.8, opRakePct: 19.4, publicRakePct: 462.5, utility: 'PGE / PacifiCorp Metro', tariffUsdMwh: 82.0, taxProgram: 'Mature Ad Valorem Carrier Hotels (462.5% Public Rake)', substationHeadroom: 'CONSTRAINED — Downtown Underground Vaults', fiberLatency: '0.0 ms NWAX / Pittock IX Core Peering Hub', wueStatus: 'Municipal Chilled Water Loop', attestationReadyPct: 94, loadFactorPct: 79, svgPath: 'M 204,70 L 265,68 L 268,94 L 204,95 Z', tokenPos: { x: 234, y: 81 }, labelPos: { x: 234, y: 62 }, zips: [ { zip: '97209', city: 'Portland (Pearl / Pittock IX)', facilities: 8, itMw: 46.5, capexB: 0.65, opexM: 53.4, grossRevM: 127.5, taxExemptM: 1.1, netTaxM: 7.6, opRakePct: 19.8, publicRakePct: 690.9, nodes: [ { id: 'OR-MULT-97209-PITT01', op: 'Pittock Block / 1547 Realty', mw: 12.0, pue: 1.28, capexM: 168.0, sovCapexM: 18.0, powerOpexM: 9.7, totalOpexM: 13.8, revM: 33.0, exemptM: 0.0, taxM: 2.2, opRake: 19.39, pubRake: 690.9, tee: 'Pacific NW Root Peering Exchange' }, { id: 'OR-MULT-97209-EQNX01', op: 'Equinix PD1', mw: 8.5, pue: 1.26, capexM: 119.0, sovCapexM: 12.75, powerOpexM: 6.9, totalOpexM: 9.8, revM: 23.4, exemptM: 0.0, taxM: 1.55, opRake: 19.44, pubRake: 690.9, tee: 'Equinix Metal Sovereign Bare-Metal' }, { id: 'OR-MULT-97209-DBNK01', op: 'DataBank PDX1 & PDX2', mw: 12.0, pue: 1.28, capexM: 168.0, sovCapexM: 18.0, powerOpexM: 9.6, totalOpexM: 13.8, revM: 33.0, exemptM: 0.7, taxM: 1.8, opRake: 19.70, pubRake: 257.1, tee: 'FedRAMP High Sovereign Enclave' } ] }, { zip: '97230', city: 'Portland (Airport / East)', facilities: 4, itMw: 22.0, capexB: 0.31, opexM: 25.2, grossRevM: 58.0, taxExemptM: 1.4, netTaxM: 3.1, opRakePct: 19.3, publicRakePct: 221.4, nodes: [ { id: 'OR-MULT-97230-H5DC01', op: 'H5 Data Centers Portland', mw: 8.0, pue: 1.25, capexM: 112.0, sovCapexM: 12.0, powerOpexM: 6.4, totalOpexM: 9.2, revM: 21.1, exemptM: 0.7, taxM: 1.05, opRake: 19.19, pubRake: 150.0, tee: 'Columbia Gorge Fiber Gateway' } ] }, { zip: '97204', city: 'Portland (CBD Carrier Hotels)', facilities: 3, itMw: 14.5, capexB: 0.20, opexM: 16.7, grossRevM: 38.5, taxExemptM: 0.4, netTaxM: 2.1, opRakePct: 19.2, publicRakePct: 525.0, nodes: [ { id: 'OR-MULT-97204-USBC01', op: 'U.S. Bancorp Tower Carrier Hotel', mw: 6.5, pue: 1.30, capexM: 91.0, sovCapexM: 9.75, powerOpexM: 5.2, totalOpexM: 7.5, revM: 17.3, exemptM: 0.0, taxM: 1.05, opRake: 19.08, pubRake: 525.0, tee: 'Financial Sovereign Interconnect' } ] } ] }, { id: 'Wasco', fips: '41065', region: 'COLUMBIA_BASIN', dominantOp: 'GOOGLE', facilities: 9, statusBreakdown: '6 Op / 1 Build / 2 Plan', itMw: 540.0, pue: 1.12, capexB: 6.75, sovereignCapexM: 810.0, powerOpexM: 242.0, totalOpexM: 338.4, grossRevM: 982.0, taxExemptM: 24.6, netTaxM: 7.4, opRakePct: 31.1, publicRakePct: 30.1, utility: 'Northern Wasco County PUD (BPA Preference Hydro)', tariffUsdMwh: 45.2, taxProgram: 'Strategic Investment Program (SIP Cap + Water Infrastructure CSF)', substationHeadroom: 'MODERATE — The Dalles Dam Direct 230kV Feed', fiberLatency: '1.8 ms to Pittock IX / 2.2 ms to Hillsboro Subsea', wueStatus: 'Closed-Loop Aquifer Recovery & Industrial Reuse Agreement', attestationReadyPct: 92, loadFactorPct: 88, svgPath: 'M 268,94 L 342,96 L 348,162 L 285,165 L 268,125 Z', tokenPos: { x: 308, y: 128 }, labelPos: { x: 308, y: 154 }, zips: [ { zip: '97058', city: 'The Dalles', facilities: 9, itMw: 540.0, capexB: 6.75, opexM: 338.4, grossRevM: 982.0, taxExemptM: 24.6, netTaxM: 7.4, opRakePct: 31.1, publicRakePct: 30.1, nodes: [ { id: 'OR-WASC-97058-GOOG1A', op: 'Google LLC (The Dalles I-A)', mw: 75.0, pue: 1.12, capexM: 937.5, sovCapexM: 112.5, powerOpexM: 33.6, totalOpexM: 47.0, revM: 136.4, exemptM: 3.4, taxM: 1.05, opRake: 31.09, pubRake: 30.88, tee: 'Titan-M2 Sovereign TPU Pod' }, { id: 'OR-WASC-97058-GOOG2A', op: 'Google LLC (Campus II-A)', mw: 70.0, pue: 1.12, capexM: 875.0, sovCapexM: 105.0, powerOpexM: 31.4, totalOpexM: 43.9, revM: 127.3, exemptM: 3.2, taxM: 0.95, opRake: 31.11, pubRake: 29.69, tee: 'Confidential AI Training Enclave' }, { id: 'OR-WASC-97058-GOOG3A', op: 'Google LLC (Campus C3-A)', mw: 70.0, pue: 1.11, capexM: 875.0, sovCapexM: 105.0, powerOpexM: 31.4, totalOpexM: 43.9, revM: 127.3, exemptM: 3.2, taxM: 0.95, opRake: 31.11, pubRake: 29.69, tee: 'Zero-Evaporation Sovereign Compute' } ] } ] }, { id: 'Gilliam', fips: '41021', region: 'COLUMBIA_BASIN', dominantOp: 'AWS', facilities: 2, statusBreakdown: '0 Op / 0 Build / 2 Plan', itMw: 75.0, pue: 1.14, capexB: 0.94, sovereignCapexM: 112.5, powerOpexM: 34.2, totalOpexM: 47.5, grossRevM: 136.0, taxExemptM: 1.7, netTaxM: 0.5, opRakePct: 29.8, publicRakePct: 29.4, utility: 'Columbia Basin Electric Coop (BPA)', tariffUsdMwh: 46.5, taxProgram: 'Long-Term Rural Enterprise Zone (ORS 285C.409)', substationHeadroom: 'HIGH — Wind/Hydro Hybrid Interconnection', fiberLatency: '2.9 ms to Boardman / 4.1 ms to Hillsboro', wueStatus: 'Air-Cooled Chiller + Wind Co-Location', attestationReadyPct: 80, loadFactorPct: 85, svgPath: 'M 380,82 L 438,80 L 444,148 L 382,152 Z', tokenPos: { x: 412, y: 114 }, labelPos: { x: 412, y: 140 }, zips: [ { zip: '97812', city: 'Arlington', facilities: 2, itMw: 75.0, capexB: 0.94, opexM: 47.5, grossRevM: 136.0, taxExemptM: 1.7, netTaxM: 0.5, opRakePct: 29.8, publicRakePct: 29.4, nodes: [ { id: 'OR-GILL-97812-AWSAR1', op: 'AWS Arlington Campus 1', mw: 37.5, pue: 1.14, capexM: 468.75, sovCapexM: 56.25, powerOpexM: 17.1, totalOpexM: 23.75, revM: 68.0, exemptM: 0.85, taxM: 0.25, opRake: 29.85, pubRake: 29.41, tee: 'Nitro Sovereign Enclave Pipeline' }, { id: 'OR-GILL-97812-AWSAR2', op: 'AWS Arlington Campus 2', mw: 37.5, pue: 1.14, capexM: 468.75, sovCapexM: 56.25, powerOpexM: 17.1, totalOpexM: 23.75, revM: 68.0, exemptM: 0.85, taxM: 0.25, opRake: 29.85, pubRake: 29.41, tee: 'Wind-Firmed Sovereign Compute' } ] } ] }, { id: 'Morrow', fips: '41049', region: 'COLUMBIA_BASIN', dominantOp: 'AWS', facilities: 24, statusBreakdown: '16 Op / 3 Build / 5 Plan', itMw: 1180.0, pue: 1.15, capexB: 14.75, sovereignCapexM: 1770.0, powerOpexM: 535.6, totalOpexM: 748.2, grossRevM: 2145.0, taxExemptM: 84.2, netTaxM: 14.6, opRakePct: 30.4, publicRakePct: 17.3, utility: 'Umatilla Electric Cooperative (BPA Preference)', tariffUsdMwh: 44.8, taxProgram: 'Long-Term Rural Enterprise Zone + SIP ($84.2M Annual Shield)', substationHeadroom: 'TIGHT — Port of Morrow 500kV Backbone Expansion', fiberLatency: '3.1 ms to Hillsboro Subsea / us-west-2 Core', wueStatus: 'Columbia River Industrial Allocation + Nitrate Mitigation', attestationReadyPct: 91, loadFactorPct: 87, svgPath: 'M 438,80 L 502,76 L 508,154 L 444,148 Z', tokenPos: { x: 472, y: 112 }, labelPos: { x: 472, y: 142 }, zips: [ { zip: '97818', city: 'Boardman (Port of Morrow)', facilities: 22, itMw: 1145.0, capexB: 14.31, opexM: 725.8, grossRevM: 2081.0, taxExemptM: 82.4, netTaxM: 14.1, opRakePct: 30.5, publicRakePct: 17.1, nodes: [ { id: 'OR-MORR-97818-AWS50A', op: 'AWS us-west-2 (PDX50-A)', mw: 65.0, pue: 1.15, capexM: 812.5, sovCapexM: 97.5, powerOpexM: 29.5, totalOpexM: 41.2, revM: 118.1, exemptM: 4.7, taxM: 0.8, opRake: 30.65, pubRake: 17.02, tee: 'AWS Nitro Sovereign Gov/Commercial' }, { id: 'OR-MORR-97818-AWS54A', op: 'AWS us-west-2 (PDX54-A)', mw: 65.0, pue: 1.15, capexM: 812.5, sovCapexM: 97.5, powerOpexM: 29.5, totalOpexM: 41.2, revM: 118.1, exemptM: 4.7, taxM: 0.8, opRake: 30.65, pubRake: 17.02, tee: 'Trainium2 Sovereign AI Cluster' }, { id: 'OR-MORR-97818-AWS60A', op: 'AWS us-west-2 (PDX60-A)', mw: 65.0, pue: 1.14, capexM: 812.5, sovCapexM: 97.5, powerOpexM: 29.5, totalOpexM: 41.2, revM: 118.1, exemptM: 4.7, taxM: 0.8, opRake: 30.65, pubRake: 17.02, tee: 'FIPS 140-3 L4 CloudHSM Root' }, { id: 'OR-MORR-97818-RWN01A', op: 'Rowan Digital Infrastructure', mw: 35.0, pue: 1.15, capexM: 437.5, sovCapexM: 52.5, powerOpexM: 15.9, totalOpexM: 22.2, revM: 63.6, exemptM: 2.5, taxM: 0.4, opRake: 30.50, pubRake: 16.00, tee: 'Dedicated Sovereign Hyperscale Shell' } ] }, { zip: '97844', city: 'Irrigon', facilities: 2, itMw: 35.0, capexB: 0.44, opexM: 22.4, grossRevM: 64.0, taxExemptM: 1.8, netTaxM: 0.5, opRakePct: 29.7, publicRakePct: 27.8, nodes: [ { id: 'OR-MORR-97844-AWSIR1', op: 'AWS Irrigon Annex', mw: 25.0, pue: 1.15, capexM: 312.5, sovCapexM: 37.5, powerOpexM: 11.5, totalOpexM: 16.0, revM: 45.7, exemptM: 1.3, taxM: 0.35, opRake: 29.76, pubRake: 26.92, tee: 'Nitro Enclave Edge Relay' }, { id: 'OR-MORR-97844-DMGB01', op: 'DMG Blockchain Solutions', mw: 10.0, pue: 1.18, capexM: 125.0, sovCapexM: 15.0, powerOpexM: 4.6, totalOpexM: 6.4, revM: 18.3, exemptM: 0.5, taxM: 0.15, opRake: 29.51, pubRake: 30.00, tee: 'High-Density Sovereign Compute' } ] } ] }, { id: 'Umatilla', fips: '41059', region: 'COLUMBIA_BASIN', dominantOp: 'AWS', facilities: 22, statusBreakdown: '15 Op / 2 Build / 5 Plan', itMw: 910.0, pue: 1.15, capexB: 11.38, sovereignCapexM: 1365.0, powerOpexM: 425.6, totalOpexM: 596.5, grossRevM: 1655.0, taxExemptM: 64.8, netTaxM: 11.9, opRakePct: 29.5, publicRakePct: 18.4, utility: 'Umatilla Electric Coop (BPA) / PacifiCorp 2027 Class', tariffUsdMwh: 46.8, taxProgram: 'Greater Umatilla Enterprise Zone + SIP ($64.8M Annual Shield)', substationHeadroom: 'MODERATE — McNary 500kV / Feedville Substations', fiberLatency: '3.4 ms to Hillsboro Subsea / Spokane East Route', wueStatus: 'Closed-Loop Hybrid Cooling', attestationReadyPct: 89, loadFactorPct: 86, svgPath: 'M 502,76 L 598,74 L 602,164 L 508,154 Z', tokenPos: { x: 552, y: 116 }, labelPos: { x: 552, y: 146 }, zips: [ { zip: '97882', city: 'Umatilla', facilities: 13, itMw: 535.0, capexB: 6.69, opexM: 350.4, grossRevM: 973.0, taxExemptM: 38.6, netTaxM: 6.8, opRakePct: 29.6, publicRakePct: 17.6, nodes: [ { id: 'OR-UMAT-97882-AWSLD1', op: 'AWS Lind Road Campus 1', mw: 55.0, pue: 1.15, capexM: 687.5, sovCapexM: 82.5, powerOpexM: 25.7, totalOpexM: 36.0, revM: 100.0, exemptM: 4.0, taxM: 0.7, opRake: 29.70, pubRake: 17.50, tee: 'Nitro Sovereign Availability Zone' }, { id: 'OR-UMAT-97882-AWSLV1', op: 'AWS Livestock Rd Campus 1', mw: 55.0, pue: 1.15, capexM: 687.5, sovCapexM: 82.5, powerOpexM: 25.7, totalOpexM: 36.0, revM: 100.0, exemptM: 4.0, taxM: 0.7, opRake: 29.70, pubRake: 17.50, tee: 'Confidential Inference Cluster' }, { id: 'OR-UMAT-97882-AWSCW1', op: 'AWS Cottonwood Campus 1', mw: 45.0, pue: 1.14, capexM: 562.5, sovCapexM: 67.5, powerOpexM: 21.0, totalOpexM: 29.5, revM: 81.8, exemptM: 3.2, taxM: 0.6, opRake: 29.58, pubRake: 18.75, tee: 'Air-Gapped Sovereign Storage' } ] }, { zip: '97838', city: 'Hermiston', facilities: 9, itMw: 375.0, capexB: 4.69, opexM: 246.1, grossRevM: 682.0, taxExemptM: 26.2, netTaxM: 5.1, opRakePct: 29.4, publicRakePct: 19.5, nodes: [ { id: 'OR-UMAT-97838-AWSPN1', op: 'AWS Penney Ave Campus 1', mw: 50.0, pue: 1.15, capexM: 625.0, sovCapexM: 75.0, powerOpexM: 23.5, totalOpexM: 32.8, revM: 90.9, exemptM: 3.5, taxM: 0.7, opRake: 29.37, pubRake: 20.00, tee: 'Sovereign AI Compute Enclave' }, { id: 'OR-UMAT-97838-AWSFV1', op: 'AWS Feedville Rd Campus 1', mw: 45.0, pue: 1.15, capexM: 562.5, sovCapexM: 67.5, powerOpexM: 21.1, totalOpexM: 29.5, revM: 81.8, exemptM: 3.1, taxM: 0.6, opRake: 29.46, pubRake: 19.35, tee: 'Nitro KMS Hardware Root' }, { id: 'OR-UMAT-97838-SABY01', op: 'Sabey Intergate Columbia 1', mw: 35.0, pue: 1.16, capexM: 437.5, sovCapexM: 52.5, powerOpexM: 16.4, totalOpexM: 23.0, revM: 63.7, exemptM: 2.5, taxM: 0.5, opRake: 29.36, pubRake: 20.00, tee: 'Multi-Tenant Sovereign Colo' } ] } ] }, { id: 'Crook', fips: '41013', region: 'CENTRAL_HIGH_DESERT', dominantOp: 'META', facilities: 14, statusBreakdown: '9 Op / 2 Build / 3 Plan', itMw: 620.0, pue: 1.13, capexB: 7.75, sovereignCapexM: 930.0, powerOpexM: 295.4, totalOpexM: 415.0, grossRevM: 1128.0, taxExemptM: 41.5, netTaxM: 8.9, opRakePct: 28.9, publicRakePct: 21.4, utility: 'Central Electric Coop / PacifiCorp', tariffUsdMwh: 48.2, taxProgram: 'Prineville LTREZ (Bldg 1 Roll-Off onto Tax Rolls in 2027)', substationHeadroom: 'MODERATE — Grizzly 500kV / Ponderosa 230kV', fiberLatency: '3.8 ms to Hillsboro / Direct Bend-Reno Route', wueStatus: 'Aquifer Storage & Recovery + City Wastewater Reuse', attestationReadyPct: 90, loadFactorPct: 86, svgPath: 'M 332,192 L 436,188 L 442,256 L 336,258 Z', tokenPos: { x: 386, y: 220 }, labelPos: { x: 386, y: 248 }, zips: [ { zip: '97754', city: 'Prineville', facilities: 14, itMw: 620.0, capexB: 7.75, opexM: 415.0, grossRevM: 1128.0, taxExemptM: 41.5, netTaxM: 8.9, opRakePct: 28.9, publicRakePct: 21.4, nodes: [ { id: 'OR-CROO-97754-META01', op: 'Meta Platforms (Prineville 1)', mw: 50.0, pue: 1.14, capexM: 625.0, sovCapexM: 75.0, powerOpexM: 23.8, totalOpexM: 33.5, revM: 91.0, exemptM: 3.4, taxM: 0.8, opRake: 28.90, pubRake: 23.53, tee: '2027 LTREZ Roll-Off Sovereign Core' }, { id: 'OR-CROO-97754-META06', op: 'Meta Platforms (Prineville 6)', mw: 50.0, pue: 1.13, capexM: 625.0, sovCapexM: 75.0, powerOpexM: 23.8, totalOpexM: 33.5, revM: 91.0, exemptM: 3.4, taxM: 0.75, opRake: 28.96, pubRake: 22.06, tee: 'Llama Sovereign AI Training Pod' }, { id: 'OR-CROO-97754-APPL01', op: 'Apple Inc. (Prineville 1)', mw: 45.0, pue: 1.15, capexM: 562.5, sovCapexM: 67.5, powerOpexM: 21.4, totalOpexM: 30.1, revM: 81.9, exemptM: 3.0, taxM: 0.65, opRake: 29.00, pubRake: 21.67, tee: 'Private Cloud Compute (PCC) Enclave' }, { id: 'OR-CROO-97754-APPL02', op: 'Apple Inc. (Prineville 2)', mw: 45.0, pue: 1.15, capexM: 562.5, sovCapexM: 67.5, powerOpexM: 21.4, totalOpexM: 30.1, revM: 81.9, exemptM: 3.0, taxM: 0.5, opRake: 29.18, pubRake: 16.67, tee: 'Hardware-Attested iCloud Sovereign' } ] } ] }, { id: 'Deschutes', fips: '41017', region: 'CENTRAL_HIGH_DESERT', dominantOp: 'COLO', facilities: 4, statusBreakdown: '3 Op / 0 Build / 1 Plan', itMw: 18.5, pue: 1.24, capexB: 0.25, sovereignCapexM: 27.75, powerOpexM: 14.9, totalOpexM: 21.4, grossRevM: 48.5, taxExemptM: 1.1, netTaxM: 2.4, opRakePct: 20.6, publicRakePct: 218.2, utility: 'PacifiCorp / Central Electric Coop', tariffUsdMwh: 76.5, taxProgram: 'Bend/Redmond Enterprise Zones (218.2% Public Rake)', substationHeadroom: 'HEALTHY — High-Desert Solar Co-Location', fiberLatency: '3.6 ms to Hillsboro / 0.5 ms to Prineville', wueStatus: 'Zero-Water Air-Side Economization', attestationReadyPct: 86, loadFactorPct: 81, svgPath: 'M 255,212 L 332,212 L 336,282 L 258,284 Z', tokenPos: { x: 294, y: 246 }, labelPos: { x: 294, y: 274 }, zips: [ { zip: '97701', city: 'Bend', facilities: 3, itMw: 14.0, capexB: 0.19, opexM: 16.2, grossRevM: 36.5, taxExemptM: 0.9, netTaxM: 1.8, opRakePct: 20.8, publicRakePct: 200.0, nodes: [ { id: 'OR-DESC-97701-ONCK01', op: 'OneNeck IT Solutions (The Vault)', mw: 6.5, pue: 1.22, capexM: 87.75, sovCapexM: 9.75, powerOpexM: 5.3, totalOpexM: 7.5, revM: 16.9, exemptM: 0.5, taxM: 0.8, opRake: 20.71, pubRake: 160.0, tee: 'Tier III Seismic Sovereign Vault' }, { id: 'OR-DESC-97701-USSG01', op: 'US Signal (Bend)', mw: 4.5, pue: 1.24, capexM: 60.75, sovCapexM: 6.75, powerOpexM: 3.6, totalOpexM: 5.2, revM: 11.7, exemptM: 0.4, taxM: 0.55, opRake: 20.94, pubRake: 137.5, tee: 'Regional Disaster Recovery Enclave' } ] }, { zip: '97756', city: 'Redmond', facilities: 1, itMw: 4.5, capexB: 0.06, opexM: 5.2, grossRevM: 12.0, taxExemptM: 0.2, netTaxM: 0.6, opRakePct: 20.4, publicRakePct: 300.0, nodes: [ { id: 'OR-DESC-97756-RDMD01', op: 'Redmond Edge / Central OR Node', mw: 4.5, pue: 1.25, capexM: 60.75, sovCapexM: 6.75, powerOpexM: 3.6, totalOpexM: 5.2, revM: 12.0, exemptM: 0.2, taxM: 0.6, opRake: 20.42, pubRake: 300.0, tee: 'Central OR Fiber Junction Node' } ] } ] }, { id: 'Marion', fips: '41047', region: 'WILLAMETTE_COAST_SOUTH', dominantOp: 'STATE', facilities: 2, statusBreakdown: '2 Op / 0 Build / 0 Plan', itMw: 14.0, pue: 1.25, capexB: 0.18, sovereignCapexM: 21.0, powerOpexM: 11.1, totalOpexM: 15.8, grossRevM: 35.0, taxExemptM: 0.0, netTaxM: 1.1, opRakePct: 22.9, publicRakePct: 100.0, utility: 'PGE / Salem Electric', tariffUsdMwh: 79.0, taxProgram: 'State Government Sovereign Core + Salem Commercial', substationHeadroom: 'HEALTHY', fiberLatency: '1.1 ms to Portland / 1.4 ms to Hillsboro', wueStatus: 'Closed-Loop Chiller', attestationReadyPct: 96, loadFactorPct: 84, svgPath: 'M 192,126 L 254,126 L 254,168 L 192,168 Z', tokenPos: { x: 222, y: 147 }, labelPos: { x: 222, y: 178 }, zips: [ { zip: '97301', city: 'Salem', facilities: 2, itMw: 14.0, capexB: 0.18, opexM: 15.8, grossRevM: 35.0, taxExemptM: 0.0, netTaxM: 1.1, opRakePct: 22.9, publicRakePct: 100.0, nodes: [ { id: 'OR-MARI-97301-ORETS1', op: 'Oregon Enterprise Tech Services', mw: 10.0, pue: 1.24, capexM: 130.0, sovCapexM: 15.0, powerOpexM: 7.9, totalOpexM: 11.3, revM: 25.0, exemptM: 0.0, taxM: 0.75, opRake: 22.80, pubRake: 100.0, tee: 'State Sovereign Governance Core' } ] } ] }, { id: 'Benton', fips: '41003', region: 'WILLAMETTE_COAST_SOUTH', dominantOp: 'STATE', facilities: 2, statusBreakdown: '1 Op / 0 Build / 1 Plan', itMw: 12.5, pue: 1.23, capexB: 0.16, sovereignCapexM: 18.75, powerOpexM: 9.5, totalOpexM: 13.6, grossRevM: 31.0, taxExemptM: 0.0, netTaxM: 1.3, opRakePct: 22.6, publicRakePct: 100.0, utility: 'Consumers Power / PacifiCorp', tariffUsdMwh: 74.0, taxProgram: 'Unabated Research & Regional Compute', substationHeadroom: 'HEALTHY', fiberLatency: '1.9 ms to Portland IX', wueStatus: 'Closed-Loop Air/Liquid', attestationReadyPct: 85, loadFactorPct: 80, svgPath: 'M 140,168 L 188,168 L 188,208 L 140,208 Z', tokenPos: { x: 164, y: 188 }, labelPos: { x: 164, y: 218 }, zips: [ { zip: '97333', city: 'Corvallis', facilities: 2, itMw: 12.5, capexB: 0.16, opexM: 13.6, grossRevM: 31.0, taxExemptM: 0.0, netTaxM: 1.3, opRakePct: 22.6, publicRakePct: 100.0, nodes: [ { id: 'OR-BENT-97333-COYS01', op: 'Coyote Springs / OSU Research Node', mw: 8.0, pue: 1.22, capexM: 104.0, sovCapexM: 12.0, powerOpexM: 6.1, totalOpexM: 8.7, revM: 19.8, exemptM: 0.0, taxM: 0.8, opRake: 22.47, pubRake: 100.0, tee: 'Academic AI & Sovereign HPC' } ] } ] }, { id: 'Lane', fips: '41039', region: 'WILLAMETTE_COAST_SOUTH', dominantOp: 'COLO', facilities: 3, statusBreakdown: '3 Op / 0 Build / 0 Plan', itMw: 11.0, pue: 1.26, capexB: 0.14, sovereignCapexM: 16.5, powerOpexM: 7.9, totalOpexM: 11.2, grossRevM: 27.5, taxExemptM: 0.4, netTaxM: 1.6, opRakePct: 23.3, publicRakePct: 400.0, utility: 'Eugene Water & Electric Board (EWEB Municipal Hydro)', tariffUsdMwh: 64.0, taxProgram: 'EWEB Municipal Hydro + 400% Public Fiscal Rake', substationHeadroom: 'HEALTHY', fiberLatency: '2.4 ms to Portland / I-5 Backbone', wueStatus: 'Closed-Loop Municipal', attestationReadyPct: 84, loadFactorPct: 81, svgPath: 'M 122,216 L 236,216 L 236,268 L 122,268 Z', tokenPos: { x: 178, y: 242 }, labelPos: { x: 178, y: 278 }, zips: [ { zip: '97401', city: 'Eugene & Springfield', facilities: 3, itMw: 11.0, capexB: 0.14, opexM: 11.2, grossRevM: 27.5, taxExemptM: 0.4, netTaxM: 1.6, opRakePct: 23.3, publicRakePct: 400.0, nodes: [ { id: 'OR-LANE-97401-LUMN05', op: 'Lumen Technologies (Eugene)', mw: 5.0, pue: 1.25, capexM: 65.0, sovCapexM: 7.5, powerOpexM: 3.6, totalOpexM: 5.1, revM: 12.5, exemptM: 0.2, taxM: 0.75, opRake: 23.20, pubRake: 375.0, tee: 'I-5 Optical Relay & Sovereign Edge' } ] } ] }, { id: 'Coos', fips: '41011', region: 'WILLAMETTE_COAST_SOUTH', dominantOp: 'STATE', facilities: 1, statusBreakdown: '1 Op / 0 Build / 0 Plan', itMw: 3.5, pue: 1.22, capexB: 0.05, sovereignCapexM: 5.25, powerOpexM: 2.8, totalOpexM: 4.1, grossRevM: 11.5, taxExemptM: 0.0, netTaxM: 0.5, opRakePct: 28.7, publicRakePct: 100.0, utility: 'Coos-Curry Electric Coop (BPA)', tariffUsdMwh: 58.0, taxProgram: 'Subsea Cable Landing Station (28.7% Operator Rake)', substationHeadroom: 'HEALTHY', fiberLatency: '0.0 ms Trans-Pacific Subsea Landing (Bandon)', wueStatus: 'Coastal Ambient Cooling', attestationReadyPct: 95, loadFactorPct: 92, svgPath: 'M 92,276 L 144,276 L 144,334 L 92,334 Z', tokenPos: { x: 118, y: 304 }, labelPos: { x: 118, y: 345 }, zips: [ { zip: '97411', city: 'Bandon (Subsea Landing)', facilities: 1, itMw: 3.5, capexB: 0.05, opexM: 4.1, grossRevM: 11.5, taxExemptM: 0.0, netTaxM: 0.5, opRakePct: 28.7, publicRakePct: 100.0, nodes: [ { id: 'OR-COOS-97411-LUMN07', op: 'Lumen Bandon Cable Landing Station', mw: 3.5, pue: 1.22, capexM: 49.0, sovCapexM: 5.25, powerOpexM: 2.8, totalOpexM: 4.1, revM: 11.5, exemptM: 0.0, taxM: 0.5, opRake: 28.70, pubRake: 100.0, tee: 'Trans-Pacific Optical Encryption Terminus' } ] } ] }, { id: 'Jackson', fips: '41029', region: 'WILLAMETTE_COAST_SOUTH', dominantOp: 'COLO', facilities: 1, statusBreakdown: '1 Op / 0 Build / 0 Plan', itMw: 4.5, pue: 1.28, capexB: 0.06, sovereignCapexM: 6.75, powerOpexM: 3.8, totalOpexM: 5.4, grossRevM: 12.0, taxExemptM: 0.0, netTaxM: 0.6, opRakePct: 20.8, publicRakePct: 100.0, utility: 'PacifiCorp Southern Oregon', tariffUsdMwh: 79.5, taxProgram: 'Unabated Southern Gateway', substationHeadroom: 'HEALTHY', fiberLatency: '4.5 ms to Portland / 4.2 ms to Bay Area', wueStatus: 'Closed-Loop Air-Cooled', attestationReadyPct: 82, loadFactorPct: 80, svgPath: 'M 156,318 L 226,318 L 226,368 L 156,368 Z', tokenPos: { x: 191, y: 342 }, labelPos: { x: 191, y: 378 }, zips: [ { zip: '97501', city: 'Medford', facilities: 1, itMw: 4.5, capexB: 0.06, opexM: 5.4, grossRevM: 12.0, taxExemptM: 0.0, netTaxM: 0.6, opRakePct: 20.8, publicRakePct: 100.0, nodes: [ { id: 'OR-JACK-97501-DCW02', op: 'Data Center West (Medford)', mw: 4.5, pue: 1.28, capexM: 60.75, sovCapexM: 6.75, powerOpexM: 3.8, totalOpexM: 5.4, revM: 12.0, exemptM: 0.0, taxM: 0.6, opRake: 20.83, pubRake: 100.0, tee: 'OR-CA Border Sovereign Gateway' } ] } ] }, { id: 'Baker', fips: '41001', region: 'WILLAMETTE_COAST_SOUTH', dominantOp: 'STATE', facilities: 1, statusBreakdown: '1 Op / 0 Build / 0 Plan', itMw: 2.0, pue: 1.24, capexB: 0.03, sovereignCapexM: 3.0, powerOpexM: 1.5, totalOpexM: 2.2, grossRevM: 5.2, taxExemptM: 0.0, netTaxM: 0.2, opRakePct: 25.0, publicRakePct: 100.0, utility: 'Oregon Trail Electric Coop (BPA)', tariffUsdMwh: 52.0, taxProgram: 'Eastern Corridor Edge Relay', substationHeadroom: 'HIGH', fiberLatency: '5.1 ms to Portland / 2.1 ms to Boise', wueStatus: 'Free-Air Economizer', attestationReadyPct: 81, loadFactorPct: 78, svgPath: 'M 610,168 L 678,168 L 678,236 L 610,236 Z', tokenPos: { x: 644, y: 202 }, labelPos: { x: 644, y: 247 }, zips: [ { zip: '97814', city: 'Baker City', facilities: 1, itMw: 2.0, capexB: 0.03, opexM: 2.2, grossRevM: 5.2, taxExemptM: 0.0, netTaxM: 0.2, opRakePct: 25.0, publicRakePct: 100.0, nodes: [ { id: 'OR-BAKE-97814-OTEC01', op: 'Baker City Edge Facility', mw: 2.0, pue: 1.24, capexM: 26.0, sovCapexM: 3.0, powerOpexM: 1.5, totalOpexM: 2.2, revM: 5.2, exemptM: 0.0, taxM: 0.2, opRake: 25.00, pubRake: 100.0, tee: 'I-84 Mountain Corridor Sovereign Node' } ] } ] } ]; // Supply / Fiber Logistics Lines linking territories like Risk attack/maneuver arrows const FIBER_ROUTES = [ { from: { x: 177, y: 90 }, to: { x: 234, y: 81 }, label: 'Hillsboro-Pittock IX 400G Ring' }, { from: { x: 234, y: 81 }, to: { x: 308, y: 128 }, label: 'Columbia Gorge Low-Latency Trunk' }, { from: { x: 308, y: 128 }, to: { x: 412, y: 114 }, label: 'I-84 Eastbound Sovereign Backbone' }, { from: { x: 412, y: 114 }, to: { x: 472, y: 112 }, label: 'Boardman 500kV / Fiber Corridor' }, { from: { x: 472, y: 112 }, to: { x: 552, y: 116 }, label: 'Umatilla-Hermiston Mesh' }, { from: { x: 308, y: 128 }, to: { x: 386, y: 220 }, label: 'Deschutes Canyon High-Desert Link' }, { from: { x: 386, y: 220 }, to: { x: 294, y: 246 }, label: 'Prineville-Bend Redundant Ring' }, { from: { x: 177, y: 90 }, to: { x: 222, y: 147 }, label: 'Willamette Sovereign State Link' }, { from: { x: 222, y: 147 }, to: { x: 164, y: 188 }, label: 'Mid-Valley Optical Route' }, { from: { x: 164, y: 188 }, to: { x: 178, y: 242 }, label: 'Eugene Municipal Hydro Link' }, { from: { x: 178, y: 242 }, to: { x: 118, y: 304 }, label: 'Bandon Subsea Cable Backhaul' }, { from: { x: 178, y: 242 }, to: { x: 191, y: 342 }, label: 'Southern I-5 Border Trunk' }, { from: { x: 552, y: 116 }, to: { x: 644, y: 202 }, label: 'Blue Mountain / Boise Corridor' } ]; // Tactical Mat Cards (inspired by Thalmor player mat slots) const TACTICAL_LENSES = [ { id: 'CAPEX', title: 'CAPEX & GRID', subtitle: 'Build + Sovereign Upgrade', icon: Building2, color: '#f59e0b' }, { id: 'OPEX', title: 'OPEX & TARIFFS', subtitle: 'Power, WUE & Utility Class', icon: Zap, color: '#ef4444' }, { id: 'TAX', title: 'TAX & RAKE', subtitle: 'LTREZ, SIP & Public Yield', icon: Scale, color: '#10b981' }, { id: 'SOVEREIGN', title: 'SOVEREIGN TEE/HSM', subtitle: 'FIPS 140-3 L4 & Enclaves', icon: Shield, color: '#3b82f6' }, { id: 'LOGISTICS', title: 'FIBER & LOGISTICS', subtitle: 'Substation & Optical Mesh', icon: Network, color: '#a855f7' } ]; // ============================================================================ // MAIN ENTERPRISE HUD COMPONENT // ============================================================================ export default function App() { const [selectedCountyId, setSelectedCountyId] = useState('Washington'); const [selectedZipCode, setSelectedZipCode] = useState('97124'); const [selectedNodeId, setSelectedNodeId] = useState('OR-WASH-97124-QTS02A'); const [viewGranularity, setViewGranularity] = useState('STRATEGIC'); // STRATEGIC | ZIP | NODE const [activeLens, setActiveLens] = useState('CAPEX'); // CAPEX | OPEX | TAX | SOVEREIGN | LOGISTICS const [threatLevel, setThreatLevel] = useState(9); // 1-12 Dragon Health / Regulatory Threat Track const [regionFilter, setRegionFilter] = useState('ALL'); const [completedOpsSteps, setCompletedOpsSteps] = useState([1, 2]); const selectedCounty = useMemo( () => COUNTIES_DATA.find((c) => c.id === selectedCountyId) || COUNTIES_DATA[0], [selectedCountyId] ); const selectedZip = useMemo(() => { const found = selectedCounty.zips.find((z) => z.zip === selectedZipCode); return found || selectedCounty.zips[0]; }, [selectedCounty, selectedZipCode]); const selectedNode = useMemo(() => { const found = selectedZip.nodes.find((n) => n.id === selectedNodeId); return found || selectedZip.nodes[0]; }, [selectedZip, selectedNodeId]); const handleSelectCounty = (county) => { setSelectedCountyId(county.id); const firstZip = county.zips[0]; setSelectedZipCode(firstZip.zip); if (firstZip.nodes && firstZip.nodes.length > 0) { setSelectedNodeId(firstZip.nodes[0].id); } }; const handleSelectZip = (zipObj) => { setSelectedZipCode(zipObj.zip); if (zipObj.nodes && zipObj.nodes.length > 0) { setSelectedNodeId(zipObj.nodes[0].id); } setViewGranularity('NODE'); }; const toggleOpsStep = (stepNum) => { setCompletedOpsSteps((prev) => prev.includes(stepNum) ? prev.filter((s) => s !== stepNum) : [...prev, stepNum] ); }; // Compute dynamic threat-adjusted margin preview for the selected county const threatPenaltyPct = useMemo(() => { // Threat track 1-12 models PGE Schedule 96 (+29.7%) & moratorium pressure return ((threatLevel - 5) * 0.45).toFixed(1); }, [threatLevel]); return ( <div className="min-h-screen bg-[#14110f] text-[#efe6d5] font-sans selection:bg-amber-600 selection:text-white flex flex-col justify-between"> {/* ==================================================================== TOP AR^OS ENTERPRISE HUD HEADER ==================================================================== */} <header className="border-b-2 border-[#5c4938] bg-gradient-to-r from-[#1c1713] via-[#241d17] to-[#1a1512] px-4 py-3 shadow-2xl"> <div className="max-w-[1600px] mx-auto flex flex-col xl:flex-row xl:items-center xl:justify-between gap-3"> {/* Brand & Live Spatial Telemetry Status */} <div className="flex items-center gap-3"> <div className="w-11 h-11 rounded-lg bg-gradient-to-br from-amber-600 via-red-800 to-stone-900 border border-amber-400/60 flex items-center justify-center shadow-inner"> <Crosshair className="w-6 h-6 text-amber-200 animate-pulse" /> </div> <div> <div className="flex items-center gap-2 flex-wrap"> <span className="text-xs font-mono uppercase tracking-[0.22em] px-2 py-0.5 rounded bg-amber-500/20 text-amber-300 border border-amber-500/40"> AR^OS v4.2 // SPATIAL OPS </span> <span className="text-xs font-mono text-emerald-400 flex items-center gap-1"> <span className="w-2 h-2 rounded-full bg-emerald-400 inline-block animate-ping" /> 146 SOVEREIGN NODES ONLINE </span> </div> <h1 className="text-lg sm:text-xl font-bold tracking-wider uppercase text-[#f7eedc] mt-0.5"> AR^OS // SOVEREIGN COMPUTE &amp; LOGISTICS COMMAND HUD </h1> </div> </div> {/* Statewide KPI Strip */} <div className="grid grid-cols-3 sm:grid-cols-6 gap-2 bg-[#120e0b]/90 p-2 rounded-lg border border-[#4a3a2c]"> <div className="px-2 border-r border-[#3a2d22]"> <div className="text-[10px] font-mono uppercase text-[#a89882]">Tracked Nodes</div> <div className="text-sm sm:text-base font-bold text-amber-300">146 <span className="text-[10px] font-normal text-[#a89882]">/ 14 Co.</span></div> </div> <div className="px-2 border-r border-[#3a2d22]"> <div className="text-[10px] font-mono uppercase text-[#a89882]">Effective IT Load</div> <div className="text-sm sm:text-base font-bold text-teal-300">4,334.0 MW</div> </div> <div className="px-2 sm:border-r border-[#3a2d22]"> <div className="text-[10px] font-mono uppercase text-[#a89882]">Total CapEx</div> <div className="text-sm sm:text-base font-bold text-[#f7eedc]">$55.22 B</div> </div> <div className="px-2 border-r border-[#3a2d22]"> <div className="text-[10px] font-mono uppercase text-[#a89882]">Gross Revenue</div> <div className="text-sm sm:text-base font-bold text-emerald-300">$8.57 B<span className="text-[10px]">/yr</span></div> </div> <div className="px-2 border-r border-[#3a2d22]"> <div className="text-[10px] font-mono uppercase text-[#a89882]">Tax Exempted</div> <div className="text-sm sm:text-base font-bold text-rose-300">$330.0 M<span className="text-[10px]">/yr</span></div> </div> <div className="px-2"> <div className="text-[10px] font-mono uppercase text-[#a89882]">Public Fiscal Rake</div> <div className="text-sm sm:text-base font-bold text-amber-400">31.1%</div> </div> </div> {/* Granularity Mode Switcher */} <div className="flex items-center gap-1.5 bg-[#120e0b] p-1.5 rounded-lg border border-[#5c4938] self-start xl:self-auto"> {[ { id: 'STRATEGIC', label: 'STRATEGIC BOARD', icon: Compass }, { id: 'ZIP', label: 'ZIP CLUSTER', icon: MapPin }, { id: 'NODE', label: 'NODE GRANULARITY', icon: Server } ].map((mode) => { const Icon = mode.icon; const active = viewGranularity === mode.id; return ( <button key={mode.id} onClick={() => setViewGranularity(mode.id)} className={`flex items-center gap-1.5 px-2.5 py-1.5 rounded text-xs font-mono font-semibold transition-all cursor-pointer ${ active ? 'bg-gradient-to-b from-amber-600 to-amber-800 text-white border border-amber-300 shadow' : 'text-[#b8a894] hover:text-white hover:bg-[#2a211b]' }`} > <Icon className="w-3.5 h-3.5" /> <span className="hidden sm:inline">{mode.label}</span> </button> ); })} </div> </div> </header> {/* ==================================================================== MAIN WORKSPACE: RISK GAMEBOARD + DEEP ANALYTICS DRAWER ==================================================================== */} <main className="max-w-[1600px] w-full mx-auto px-4 py-4 grid grid-cols-1 lg:grid-cols-12 gap-4 flex-1"> {/* LEFT / CENTER (7 COLS): TABLETOP RISK GAMEBOARD */} <section className="lg:col-span-7 flex flex-col rounded-xl border-2 border-[#6e5641] bg-[#231b15] shadow-[0_20px_50px_rgba(0,0,0,0.75)] overflow-hidden relative"> {/* Board Top Trim: Risk Banner & Regional Continent Bonuses */} <div className="bg-gradient-to-r from-[#2c2119] via-[#382a20] to-[#2c2119] border-b border-[#6e5641] px-4 py-2.5 flex flex-wrap items-center justify-between gap-2"> <div className="flex items-center gap-2.5"> <span className="px-2.5 py-0.5 bg-red-800 border border-amber-400/70 rounded text-xs font-black tracking-widest uppercase text-amber-100 shadow"> RISK // OREGON </span> <span className="text-xs font-mono text-[#d8c8b4]"> SELECT TERRITORY PAWN FOR AR^OS TELEMETRY </span> </div> {/* Region Filter Pills (Continent Bonus Legend) */} <div className="flex items-center gap-1.5 flex-wrap"> <button onClick={() => setRegionFilter('ALL')} className={`px-2 py-0.5 rounded text-[11px] font-mono border cursor-pointer transition ${ regionFilter === 'ALL' ? 'bg-amber-600/30 border-amber-400 text-amber-200' : 'bg-[#1a1410] border-[#4d3c2e] text-[#a89882] hover:text-white' }`} > ALL 4 REGIONS </button> {Object.values(REGIONS).map((reg) => ( <button key={reg.id} onClick={() => setRegionFilter(regionFilter === reg.id ? 'ALL' : reg.id)} className={`px-2 py-0.5 rounded text-[11px] font-mono border flex items-center gap-1 cursor-pointer transition ${ regionFilter === reg.id ? 'border-white text-white shadow' : 'border-[#4d3c2e] text-[#d6c7b4] hover:border-amber-400/60' }`} style={{ backgroundColor: regionFilter === reg.id ? reg.color : 'rgba(26,20,16,0.85)' }} > <span className="w-2 h-2 rounded-full" style={{ backgroundColor: reg.accent }} /> <span className="hidden sm:inline">{reg.name.split(' ')[0]}</span> </button> ))} </div> </div> {/* Parchment & Cartographic SVG Gameboard Surface */} <div className="relative flex-1 min-h-[450px] sm:min-h-[510px] select-none overflow-hidden" style={{ background: 'radial-gradient(circle at 48% 45%, #3d3126 0%, #2a2119 58%, #19130f 100%)' }} > {/* Subtle Parchment Grid & Cartographic Lines */} <svg viewBox="0 0 740 420" className="w-full h-full object-contain" role="img" aria-label="Oregon Risk Gameboard Tactical Territory Map" > <defs> <pattern id="parchmentGrid" width="36" height="36" patternUnits="userSpaceOnUse"> <path d="M 36 0 L 0 0 0 36" fill="none" stroke="rgba(235, 214, 182, 0.06)" strokeWidth="1" /> </pattern> <filter id="tokenShadow" x="-30%" y="-30%" width="160%" height="160%"> <feDropShadow dx="0" dy="4" stdDeviation="3" floodColor="#000000" floodOpacity="0.75" /> </filter> <filter id="selectedGlow" x="-40%" y="-40%" width="180%" height="180%"> <feDropShadow dx="0" dy="0" stdDeviation="5" floodColor="#fbbf24" floodOpacity="0.95" /> </filter> </defs> {/* Parchment Coordinate Grid */} <rect x="0" y="0" width="740" height="420" fill="url(#parchmentGrid)" /> {/* Stylized Oregon State Outer Cartographic Parchment Silhouette */} <path d="M 135,52 L 265,54 L 350,68 L 502,62 L 615,66 L 692,155 L 688,376 L 84,376 L 86,268 L 116,162 Z" fill="#2e241c" stroke="#8c6d4f" strokeWidth="3" strokeLinejoin="round" /> <path d="M 139,57 L 264,59 L 349,73 L 501,67 L 610,71 L 686,157 L 682,370 L 90,370 L 92,269 L 121,164 Z" fill="none" stroke="rgba(251, 191, 36, 0.25)" strokeWidth="1" strokeDasharray="6 4" /> {/* Columbia River & Pacific Ocean Cartographic Waterlines */} <path d="M 115,54 Q 210,64 285,84 T 465,72 T 605,68" fill="none" stroke="#38bdf8" strokeOpacity="0.35" strokeWidth="4" /> <text x="22" y="135" fill="#7dd3fc" fillOpacity="0.38" fontSize="11" fontFamily="monospace" transform="rotate(-78 22,135)"> PACIFIC OCEAN // SUBSEA CABLES </text> <text x="360" y="56" fill="#7dd3fc" fillOpacity="0.45" fontSize="10" fontFamily="monospace"> COLUMBIA RIVER HYDRO CORRIDOR (BPA) </text> {/* Ornate Tabletop Compass Rose (Bottom-Center-Left, like Skyrim Risk Board) */} <g transform="translate(310, 336)" opacity="0.65"> <circle cx="0" cy="0" r="24" fill="none" stroke="#d97706" strokeWidth="1" /> <circle cx="0" cy="0" r="18" fill="none" stroke="#fbbf24" strokeWidth="0.6" strokeDasharray="2 2" /> <polygon points="0,-28 5,-5 28,0 5,5 0,28 -5,5 -28,0 -5,-5" fill="#b45309" stroke="#fde68a" strokeWidth="0.8" /> <polygon points="0,-18 3,-3 18,0 3,3 0,18 -3,3 -18,0 -3,-3" fill="#fef3c7" /> <text x="-3" y="-31" fill="#fde68a" fontSize="8" fontFamily="serif" fontWeight="bold">N</text> </g> {/* Strategic Region Shield Callouts (Risk Continent Bonus Plaques) */} <g transform="translate(105, 32)"> <rect x="0" y="0" width="166" height="20" rx="4" fill="#431407" stroke="#fb923c" strokeWidth="1" /> <text x="8" y="13" fill="#fed7aa" fontSize="9" fontFamily="monospace" fontWeight="bold"> SILICON FOREST (+5 IXP) </text> </g> <g transform="translate(432, 32)"> <rect x="0" y="0" width="184" height="20" rx="4" fill="#042f2e" stroke="#2dd4bf" strokeWidth="1" /> <text x="8" y="13" fill="#99f6e4" fontSize="9" fontFamily="monospace" fontWeight="bold"> COLUMBIA BASIN (+8 HYDRO) </text> </g> <g transform="translate(466, 232)"> <rect x="0" y="0" width="178" height="20" rx="4" fill="#451a03" stroke="#fbbf24" strokeWidth="1" /> <text x="8" y="13" fill="#fde68a" fontSize="9" fontFamily="monospace" fontWeight="bold"> HIGH-DESERT CORE (+4 AIR) </text> </g> {/* Fiber & Logistics Supply Lines (Dashed Risk Maneuver Lines) */} {FIBER_ROUTES.map((route, idx) => ( <line key={idx} x1={route.from.x} y1={route.from.y} x2={route.to.x} y2={route.to.y} stroke="#fbbf24" strokeOpacity="0.34" strokeWidth="1.5" strokeDasharray="4 4" /> ))} {/* County Territories (Clickable Risk Regions) */} {COUNTIES_DATA.map((county) => { const reg = REGIONS[county.region]; const isSelected = county.id === selectedCountyId; const dimmed = regionFilter !== 'ALL' && regionFilter !== county.region; return ( <g key={county.id} onClick={() => handleSelectCounty(county)} className="cursor-pointer transition-opacity duration-200" style={{ opacity: dimmed ? 0.28 : 1 }} > <path d={county.svgPath} fill={isSelected ? reg.color : reg.fill} fillOpacity={isSelected ? 0.62 : 0.85} stroke={isSelected ? '#fde047' : reg.stroke} strokeWidth={isSelected ? 3 : 1.6} strokeLinejoin="round" filter={isSelected ? 'url(#selectedGlow)' : undefined} /> </g> ); })} {/* Tactile 3D-Styled Risk Unit Tokens / Pawns & County Badges */} {COUNTIES_DATA.map((county) => { const isSelected = county.id === selectedCountyId; const dimmed = regionFilter !== 'ALL' && regionFilter !== county.region; const opStyle = OPERATOR_STYLES[county.dominantOp] || OPERATOR_STYLES.COLO; const { x, y } = county.tokenPos; return ( <g key={`${county.id}-token`} onClick={() => handleSelectCounty(county)} className="cursor-pointer" style={{ opacity: dimmed ? 0.3 : 1 }} > {/* Selection Pulse Ring */} {isSelected && ( <circle cx={x} cy={y} r="23" fill="none" stroke="#fde047" strokeWidth="2" strokeDasharray="4 3" /> )} {/* 3D Tabletop Pawn Base */} <ellipse cx={x} cy={y + 8} rx="15" ry="6" fill="#090705" opacity="0.85" /> <circle cx={x} cy={y} r="15" fill={opStyle.tokenBg} stroke={isSelected ? '#fef08a' : opStyle.tokenRing} strokeWidth={isSelected ? 2.5 : 1.6} filter="url(#tokenShadow)" /> {/* Inner Metallic Shield Ring */} <circle cx={x} cy={y} r="11.5" fill="none" stroke="rgba(255,255,255,0.35)" strokeWidth="0.8" /> {/* Facility Node Count Inside Pawn */} <text x={x} y={y + 3.5} textAnchor="middle" fill="#ffffff" fontSize="10.5" fontFamily="monospace" fontWeight="bold" > {county.facilities} </text> {/* Operator Tag Pill Above Pawn */} <g transform={`translate(${x - 19}, ${y - 24})`}> <rect x="0" y="0" width="38" height="12" rx="3" fill="#14100d" stroke={opStyle.tokenRing} strokeWidth="0.8" /> <text x="19" y="8.8" textAnchor="middle" fill={opStyle.tokenRing} fontSize="7.5" fontFamily="monospace" fontWeight="bold" > {opStyle.short} </text> </g> {/* Territory Name & MW Capacity Plaque */} <g transform={`translate(${county.labelPos.x - 42}, ${county.labelPos.y - 7})`}> <rect x="0" y="0" width="84" height="22" rx="3" fill={isSelected ? '#451a03' : 'rgba(18, 14, 11, 0.92)'} stroke={isSelected ? '#fbbf24' : '#6e5641'} strokeWidth={isSelected ? 1.2 : 0.8} /> <text x="42" y="9.5" textAnchor="middle" fill={isSelected ? '#fef3c7' : '#efe6d5'} fontSize="8.5" fontFamily="sans-serif" fontWeight="bold" > {county.id.toUpperCase()} </text> <text x="42" y="18.5" textAnchor="middle" fill="#5eead4" fontSize="7.8" fontFamily="monospace" > {county.itMw.toLocaleString()} MW </text> </g> </g> ); })} </svg> {/* Bottom-Left Overlay: GRID & REGULATORY THREAT TRACK (Inspired by Skyrim Risk Dragon Health Track) */} <div className="sm:absolute sm:bottom-3 sm:left-3 m-2 sm:m-0 bg-[#18120e]/95 border-2 border-red-900/80 rounded-lg p-2.5 shadow-xl max-w-md"> <div className="flex items-center justify-between gap-2 mb-1.5"> <div className="flex items-center gap-1.5"> <Flame className="w-4 h-4 text-red-500" /> <span className="text-[11px] font-mono font-bold uppercase tracking-wider text-red-300"> GRID &amp; MORATORIUM THREAT TRACK </span> </div> <span className="text-[10px] font-mono px-1.5 py-0.5 rounded bg-red-950 text-red-200 border border-red-700"> LVL {threatLevel}/12 ({threatPenaltyPct > 0 ? `-${threatPenaltyPct}%` : `+${Math.abs(threatPenaltyPct)}%`} MARGIN) </span> </div> <div className="grid grid-cols-12 gap-1"> {Array.from({ length: 12 }, (_, idx) => { const num = idx + 1; const active = num <= threatLevel; const isCurrent = num === threatLevel; return ( <button key={num} onClick={() => setThreatLevel(num)} title={`Threat Level ${num}: ${num >= 9 ? 'PGE Sch. 96 +29.7% & June/Oct 2026 Moratoriums Active' : 'Baseline Tariff Regime'}`} className={`h-6 rounded text-[11px] font-mono font-bold transition cursor-pointer border ${ isCurrent ? 'bg-red-600 border-amber-300 text-white scale-105 shadow' : active ? 'bg-red-950/90 border-red-700 text-red-200' : 'bg-[#120e0b] border-[#3d3026] text-[#7a6b5a] hover:border-red-500' }`} > {num} </button> ); })} </div> <div className="text-[10px] text-[#b8a894] mt-1.5 flex items-center justify-between"> <span>1–5: Pre-2026 Tariff</span> <span className="text-amber-300 font-mono">9+: Sch. 96 (+29.7%) &amp; EZ Freeze</span> </div> </div> {/* Bottom-Right Overlay: Operator Pawn Legend */} <div className="sm:absolute sm:bottom-3 sm:right-3 m-2 sm:m-0 bg-[#18120e]/95 border border-[#5c4938] rounded-lg px-3 py-2 text-[11px] font-mono"> <div className="text-[10px] uppercase text-[#a89882] mb-1">Pawn Token Dominance</div> <div className="grid grid-cols-2 gap-x-3 gap-y-1"> {Object.values(OPERATOR_STYLES).map((op) => ( <div key={op.short} className="flex items-center gap-1.5"> <span className="w-2.5 h-2.5 rounded-full border border-white/60 inline-block" style={{ backgroundColor: op.tokenBg }} /> <span className="text-[#e6d8c3]">{op.short}</span> </div> ))} </div> </div> </div> </section> {/* RIGHT (5 COLS): DEEP ANALYTICS & PROGRESSIVE DRILL-DOWN DRAWER */} <aside className="lg:col-span-5 flex flex-col rounded-xl border-2 border-[#6e5641] bg-[#1c1612] shadow-2xl overflow-hidden"> {/* Territory Header Banner */} <div className="px-4 py-3 border-b border-[#5c4938]" style={{ background: `linear-gradient(135deg, ${REGIONS[selectedCounty.region].color}55 0%, #1c1612 85%)` }} > <div className="flex items-center justify-between gap-2"> <span className="text-[10px] font-mono uppercase px-2 py-0.5 rounded border font-semibold" style={{ borderColor: REGIONS[selectedCounty.region].accent, color: REGIONS[selectedCounty.region].accent, backgroundColor: 'rgba(0,0,0,0.45)' }} > {REGIONS[selectedCounty.region].name} // FIPS {selectedCounty.fips} </span> <span className="text-xs font-mono text-amber-300">{selectedCounty.statusBreakdown}</span> </div> <div className="flex items-baseline justify-between mt-1.5"> <h2 className="text-2xl font-extrabold tracking-wide text-[#faf3e6]"> {selectedCounty.id} County Territory </h2> <div className="text-right"> <span className="text-lg font-mono font-bold text-teal-300"> {selectedCounty.itMw.toLocaleString()} MW </span> <span className="text-xs text-[#b8a894] block"> {selectedCounty.facilities} Sovereign Nodes </span> </div> </div> {/* Breadcrumb Drill-Down Bar */} <div className="flex items-center gap-1.5 text-xs font-mono mt-2 pt-2 border-t border-white/10 text-[#d6c7b4] flex-wrap"> <button onClick={() => setViewGranularity('STRATEGIC')} className={`hover:text-amber-300 cursor-pointer ${viewGranularity === 'STRATEGIC' ? 'text-amber-300 font-bold underline' : ''}`} > {selectedCounty.id} County </button> <ChevronRight className="w-3.5 h-3.5 text-[#7a6b5a]" /> <button onClick={() => setViewGranularity('ZIP')} className={`hover:text-amber-300 cursor-pointer ${viewGranularity === 'ZIP' ? 'text-amber-300 font-bold underline' : ''}`} > ZIP {selectedZip.zip} ({selectedZip.city}) </button> <ChevronRight className="w-3.5 h-3.5 text-[#7a6b5a]" /> <button onClick={() => setViewGranularity('NODE')} className={`hover:text-amber-300 cursor-pointer ${viewGranularity === 'NODE' ? 'text-amber-300 font-bold underline' : ''}`} > {selectedNode.id} </button> </div> </div> {/* Drill-Down Content Body */} <div className="p-4 space-y-4 overflow-y-auto max-h-[540px] flex-1"> {/* Key County Financial Rake & CapEx/OpEx Cards */} <div className="grid grid-cols-2 sm:grid-cols-4 gap-2"> <div className="bg-[#140f0c] p-2.5 rounded-lg border border-[#3d3026]"> <div className="text-[10px] font-mono uppercase text-[#a89882]">Total CapEx</div> <div className="text-base font-bold text-[#f7eedc]">${selectedCounty.capexB.toFixed(2)}B</div> <div className="text-[10px] font-mono text-amber-400"> ${selectedCounty.sovereignCapexM.toFixed(0)}M TEE/HSM </div> </div> <div className="bg-[#140f0c] p-2.5 rounded-lg border border-[#3d3026]"> <div className="text-[10px] font-mono uppercase text-[#a89882]">Annual OpEx</div> <div className="text-base font-bold text-rose-300">${selectedCounty.totalOpexM.toFixed(1)}M</div> <div className="text-[10px] font-mono text-[#a89882]"> ${selectedCounty.tariffUsdMwh}/MWh Power </div> </div> <div className="bg-[#140f0c] p-2.5 rounded-lg border border-[#3d3026]"> <div className="text-[10px] font-mono uppercase text-[#a89882]">Operator Rake</div> <div className="text-base font-bold text-emerald-300"> {(selectedCounty.opRakePct - parseFloat(threatPenaltyPct)).toFixed(1)}% </div> <div className="text-[10px] font-mono text-[#a89882]"> Base: {selectedCounty.opRakePct}% </div> </div> <div className="bg-[#140f0c] p-2.5 rounded-lg border border-[#3d3026]"> <div className="text-[10px] font-mono uppercase text-[#a89882]">Public Rake</div> <div className="text-base font-bold text-amber-300">{selectedCounty.publicRakePct}%</div> <div className="text-[10px] font-mono text-[#a89882]"> ${selectedCounty.netTaxM}M / ${selectedCounty.taxExemptM}M </div> </div> </div> {/* Utility, Tax Shield & Logistics Telemetry Strip */} <div className="bg-[#140f0c] rounded-lg border border-[#4a3a2c] p-3 space-y-2 text-xs"> <div className="flex items-start justify-between gap-2"> <span className="font-mono text-[#a89882] shrink-0">UTILITY TARIFF:</span> <span className="text-right font-semibold text-amber-200">{selectedCounty.utility}</span> </div> <div className="flex items-start justify-between gap-2"> <span className="font-mono text-[#a89882] shrink-0">TAX REGIME:</span> <span className="text-right text-[#efe6d5]">{selectedCounty.taxProgram}</span> </div> <div className="flex items-start justify-between gap-2"> <span className="font-mono text-[#a89882] shrink-0">SUBSTATION:</span> <span className="text-right text-teal-300 font-mono">{selectedCounty.substationHeadroom}</span> </div> <div className="flex items-start justify-between gap-2"> <span className="font-mono text-[#a89882] shrink-0">FIBER MESH:</span> <span className="text-right text-[#d6c7b4]">{selectedCounty.fiberLatency}</span> </div> </div> {/* Level 2: ZIP Code Cluster Selector Cards */} <div> <div className="flex items-center justify-between mb-2"> <h3 className="text-xs font-mono font-bold uppercase tracking-wider text-amber-300 flex items-center gap-1.5"> <MapPin className="w-3.5 h-3.5" /> ZIP Code Clusters in {selectedCounty.id} County ({selectedCounty.zips.length}) </h3> <span className="text-[10px] font-mono text-[#a89882]">Click ZIP to inspect nodes</span> </div> <div className="grid grid-cols-1 sm:grid-cols-2 gap-2"> {selectedCounty.zips.map((z) => { const isZipSelected = z.zip === selectedZip.zip; return ( <button key={z.zip} onClick={() => handleSelectZip(z)} className={`text-left p-2.5 rounded-lg border transition cursor-pointer ${ isZipSelected ? 'bg-amber-950/50 border-amber-400 shadow-md' : 'bg-[#140f0c] border-[#3d3026] hover:border-amber-600/70' }`} > <div className="flex items-center justify-between"> <span className="font-mono font-bold text-sm text-amber-300">ZIP {z.zip}</span> <span className="text-xs font-mono text-teal-300 font-semibold">{z.itMw} MW</span> </div> <div className="text-xs text-[#e6d8c3] font-medium mt-0.5">{z.city}</div> <div className="flex items-center justify-between text-[10px] font-mono text-[#a89882] mt-1.5 pt-1 border-t border-white/10"> <span>{z.facilities} Nodes</span> <span>Rev: ${z.grossRevM}M</span> <span>Pub Rake: {z.publicRakePct}%</span> </div> </button> ); })} </div> </div> {/* Level 3: Individual Sovereign Compute Nodes inside Selected ZIP */} <div> <div className="flex items-center justify-between mb-2"> <h3 className="text-xs font-mono font-bold uppercase tracking-wider text-teal-300 flex items-center gap-1.5"> <Server className="w-3.5 h-3.5" /> Sovereign Nodes in ZIP {selectedZip.zip} ({selectedZip.city}) </h3> <span className="text-[10px] font-mono text-[#a89882]">Level 3 Granularity</span> </div> <div className="space-y-2"> {selectedZip.nodes.map((node) => { const isNodeActive = node.id === selectedNode.id; return ( <div key={node.id} onClick={() => { setSelectedNodeId(node.id); setViewGranularity('NODE'); }} className={`p-2.5 rounded-lg border cursor-pointer transition ${ isNodeActive ? 'bg-[#261d16] border-teal-400 shadow' : 'bg-[#140f0c] border-[#362a21] hover:border-teal-600/60' }`} > <div className="flex items-center justify-between gap-2"> <span className="font-mono text-xs font-bold text-teal-300">{node.id}</span> <span className="text-[11px] font-mono px-1.5 py-0.5 rounded bg-teal-950 text-teal-200 border border-teal-700"> {node.mw} MW // PUE {node.pue} </span> </div> <div className="text-xs font-semibold text-[#f7eedc] mt-0.5">{node.op}</div> <div className="text-[11px] font-mono text-amber-300/90 mt-0.5 flex items-center gap-1"> <Lock className="w-3 h-3" /> {node.tee} </div> <div className="grid grid-cols-4 gap-1.5 mt-2 pt-2 border-t border-white/10 text-[10px] font-mono"> <div> <span className="text-[#a89882] block">CapEx</span> <span className="text-[#f7eedc] font-bold">${node.capexM}M</span> </div> <div> <span className="text-[#a89882] block">OpEx/yr</span> <span className="text-rose-300 font-bold">${node.totalOpexM}M</span> </div> <div> <span className="text-[#a89882] block">Rev/yr</span> <span className="text-emerald-300 font-bold">${node.revM}M</span> </div> <div> <span className="text-[#a89882] block">Op / Pub Rake</span> <span className="text-amber-300 font-bold"> {node.opRake}% / {node.pubRake}% </span> </div> </div> </div> ); })} </div> </div> </div> </aside> </main> {/* ==================================================================== BOTTOM TACTICAL COMMAND & TELEMETRY MAT (INSPIRED BY THALMOR MAT) ==================================================================== */} <section className="max-w-[1600px] w-full mx-auto px-4 pb-4"> <div className="rounded-xl border-2 border-[#6e5641] bg-gradient-to-b from-[#211a15] via-[#18130f] to-[#120e0b] p-4 shadow-[0_-10px_40px_rgba(0,0,0,0.8)]"> {/* Top Bar of Command Mat: Mat Title + 4 Numbered Telemetry Pip Tracks (Like Thalmor Tracks) */} <div className="flex flex-col xl:flex-row xl:items-center justify-between gap-4 pb-3 border-b border-[#4a3a2c]"> <div> <div className="text-[10px] font-mono uppercase tracking-[0.25em] text-amber-400"> AR^OS TACTICAL COMMAND MAT // DEPLOYED NODE TELEMETRY </div> <h2 className="text-lg font-extrabold tracking-widest uppercase text-[#f7eedc]"> {selectedCounty.id.toUpperCase()} — {selectedNode.id} </h2> </div> {/* Numbered Pip Tracks (0 to 10 Scale, modeled on the Thalmor Player Mat) */} <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3 flex-1 max-w-4xl"> {[ { label: 'LOAD FACTOR', valDisplay: `${selectedCounty.loadFactorPct}%`, pips: Math.round(selectedCounty.loadFactorPct / 10), barColor: 'bg-amber-500' }, { label: 'PUE EFFICIENCY', valDisplay: `${selectedNode.pue.toFixed(2)} PUE`, pips: Math.max(1, Math.min(10, Math.round((1.4 - selectedNode.pue) * 33))), barColor: 'bg-teal-500' }, { label: 'TEE ATTESTATION', valDisplay: `${selectedCounty.attestationReadyPct}%`, pips: Math.round(selectedCounty.attestationReadyPct / 10), barColor: 'bg-blue-500' }, { label: 'PUBLIC RAKE INDEX', valDisplay: `${selectedCounty.publicRakePct}%`, pips: Math.min(10, Math.max(1, Math.round(selectedCounty.publicRakePct / 35))), barColor: 'bg-emerald-500' } ].map((track) => ( <div key={track.label} className="bg-[#120e0b] px-2.5 py-2 rounded border border-[#3d3026]"> <div className="flex items-center justify-between text-[10px] font-mono mb-1"> <span className="text-[#b8a894] font-bold">{track.label}</span> <span className="text-amber-300 font-bold">{track.valDisplay}</span> </div> <div className="grid grid-cols-10 gap-0.5"> {Array.from({ length: 10 }, (_, idx) => { const pipNum = idx + 1; const filled = pipNum <= track.pips; return ( <div key={pipNum} className={`h-4 rounded-sm flex items-center justify-center text-[9px] font-mono font-bold border ${ filled ? `${track.barColor} border-white/40 text-white` : 'bg-[#1e1813] border-[#382c23] text-[#6e5e4f]' }`} > {pipNum} </div> ); })} </div> </div> ))} </div> </div> {/* Lower Mat Grid: Left Order of Operations + 5 Tactical Lens Cards */} <div className="grid grid-cols-1 lg:grid-cols-12 gap-4 pt-3"> {/* Left (3 Cols): ORDER OF OPERATIONS (Interactive Logistics Checklist) */} <div className="lg:col-span-3 bg-[#140f0c] rounded-lg border border-[#4a3a2c] p-3"> <div className="text-xs font-mono font-bold uppercase tracking-wider text-amber-300 border-b border-[#3d3026] pb-1.5 mb-2"> AR^OS ORDER OF OPERATIONS </div> <ol className="space-y-1.5 text-xs"> {[ { step: 1, title: 'REINFORCE GRID & SUBSTATION', desc: `${selectedCounty.utility.split('(')[0].trim()}` }, { step: 2, title: 'ATTEST SOVEREIGN TEE / HSM', desc: `${selectedNode.tee.split('+')[0].trim()}` }, { step: 3, title: 'ROUTE DARK FIBER BACKHAUL', desc: `${selectedCounty.fiberLatency.split('/')[0].trim()}` }, { step: 4, title: 'AUDIT TAX SHIELD & CSF RAKE', desc: `Net Tax $${selectedCounty.netTaxM}M/yr` }, { step: 5, title: 'SETTLE PUBLIC LEDGER BLOCK', desc: `FIPS ${selectedCounty.fips} // ZIP ${selectedZip.zip}` } ].map((item) => { const done = completedOpsSteps.includes(item.step); return ( <li key={item.step} onClick={() => toggleOpsStep(item.step)} className={`flex items-start gap-2 p-1.5 rounded cursor-pointer transition ${ done ? 'bg-emerald-950/30 text-emerald-200' : 'hover:bg-[#221a14] text-[#d6c7b4]' }`} > <span className={`w-4 h-4 rounded-full text-[10px] font-mono font-bold flex items-center justify-center shrink-0 mt-0.5 ${ done ? 'bg-emerald-500 text-black' : 'bg-[#362a21] text-amber-300' }`} > {item.step} </span> <div className="leading-tight"> <div className="font-mono font-bold text-[11px]">{item.title}</div> <div className="text-[10px] text-[#9c8c78]">{item.desc}</div> </div> </li> ); })} </ol> </div> {/* Right (9 Cols): 5 TACTICAL LENS CARDS + ACTIVE INSIGHT READOUT */} <div className="lg:col-span-9 flex flex-col gap-3"> {/* 5 Card Slots (Spell / Weapon / Armor / Dragon Shout / Resources analogue) */} <div className="grid grid-cols-2 sm:grid-cols-5 gap-2"> {TACTICAL_LENSES.map((lens) => { const Icon = lens.icon; const isActive = activeLens === lens.id; return ( <button key={lens.id} onClick={() => setActiveLens(lens.id)} className={`p-2.5 rounded-lg border-2 text-left transition-all cursor-pointer flex flex-col justify-between min-h-[76px] ${ isActive ? 'bg-gradient-to-b from-[#36291f] to-[#1f1712] border-amber-400 shadow-[0_0_20px_rgba(251,191,36,0.25)] -translate-y-0.5' : 'bg-[#140f0c] border-[#3d3026] hover:border-[#785e47]' }`} > <div className="flex items-center justify-between"> <span className="text-[11px] font-mono font-extrabold tracking-wider text-[#f7eedc]"> {lens.title} </span> <Icon className="w-4 h-4" style={{ color: lens.color }} /> </div> <div className="text-[10px] text-[#a89882] mt-1">{lens.subtitle}</div> </button> ); })} </div> {/* Active Tactical Lens Deep Readout Panel */} <div className="bg-[#140f0c] rounded-lg border border-[#4a3a2c] p-3.5 flex-1"> {activeLens === 'CAPEX' && ( <div className="grid grid-cols-1 md:grid-cols-3 gap-4"> <div> <div className="text-[10px] font-mono uppercase text-amber-400">Node Construction &amp; Sovereign CapEx</div> <div className="text-xl font-bold text-[#f7eedc] mt-0.5"> ${selectedNode.capexM.toFixed(2)}M <span className="text-xs font-normal text-[#a89882]">Total Node Build</span> </div> <p className="text-xs text-[#b8a894] mt-1"> Includes <span className="text-amber-300 font-semibold">${selectedNode.sovCapexM.toFixed(2)}M</span> in Sovereign Hardware Upgrades (FIPS 140-3 Level 4 HSMs, TEE enclaves, and air-gapped optical routing). </p> </div> <div> <div className="text-[10px] font-mono uppercase text-teal-400">County CapEx Concentration</div> <div className="text-xl font-bold text-teal-300 mt-0.5"> ${selectedCounty.capexB.toFixed(2)}B <span className="text-xs font-normal text-[#a89882]">({selectedCounty.id})</span> </div> <p className="text-xs text-[#b8a894] mt-1"> Amortized on a 15-year core infrastructure / 5-year sovereign compute schedule (${(selectedNode.mw * 1.02).toFixed(1)}M/yr depreciation load). </p> </div> <div> <div className="text-[10px] font-mono uppercase text-emerald-400">Grid Interconnection Allocation</div> <div className="text-sm font-bold text-[#f7eedc] mt-1">{selectedCounty.substationHeadroom}</div> <p className="text-xs text-[#b8a894] mt-1"> Oregon PUC large-load rules require facilities &ge;20 MW to fund dedicated substation &amp; transmission upgrades upfront. </p> </div> </div> )} {activeLens === 'OPEX' && ( <div className="grid grid-cols-1 md:grid-cols-3 gap-4"> <div> <div className="text-[10px] font-mono uppercase text-rose-400">Annual Power &amp; Total Node OpEx</div> <div className="text-xl font-bold text-rose-300 mt-0.5"> ${selectedNode.totalOpexM.toFixed(2)}M/yr <span className="text-xs font-normal text-[#a89882]">(${selectedNode.powerOpexM.toFixed(2)}M Power)</span> </div> <p className="text-xs text-[#b8a894] mt-1"> Blended tariff of <span className="text-amber-300 font-mono">${selectedCounty.tariffUsdMwh}/MWh</span> at {selectedNode.pue} design PUE and {selectedCounty.loadFactorPct}% capacity factor. </p> </div> <div> <div className="text-[10px] font-mono uppercase text-amber-400">Utility Tariff Class</div> <div className="text-sm font-bold text-[#f7eedc] mt-1">{selectedCounty.utility}</div> <p className="text-xs text-[#b8a894] mt-1"> Threat Track Level {threatLevel}/12 applies a {threatPenaltyPct > 0 ? `-${threatPenaltyPct}%` : `+${Math.abs(threatPenaltyPct)}%`} margin variance from 2026 large-load rate restructuring. </p> </div> <div> <div className="text-[10px] font-mono uppercase text-teal-400">Water &amp; Cooling Telemetry (WUE)</div> <div className="text-sm font-bold text-teal-300 mt-1">{selectedCounty.wueStatus}</div> <p className="text-xs text-[#b8a894] mt-1"> Continuous municipal water &amp; closed-loop dielectric cooling tracked on AR^OS environmental telemetry. </p> </div> </div> )} {activeLens === 'TAX' && ( <div className="grid grid-cols-1 md:grid-cols-3 gap-4"> <div> <div className="text-[10px] font-mono uppercase text-emerald-400">Node Revenue vs. Tax Abatement</div> <div className="text-xl font-bold text-emerald-300 mt-0.5"> ${selectedNode.revM.toFixed(2)}M/yr <span className="text-xs font-normal text-[#a89882]">Gross Revenue</span> </div> <p className="text-xs text-[#b8a894] mt-1"> Exempted Property Tax: <span className="text-rose-300 font-mono">${selectedNode.exemptM.toFixed(2)}M/yr</span> | Net Tax &amp; CSF Paid: <span className="text-amber-300 font-mono">${selectedNode.taxM.toFixed(2)}M/yr</span>. </p> </div> <div> <div className="text-[10px] font-mono uppercase text-amber-400">Operator vs. Public Financial Rake</div> <div className="text-xl font-bold text-amber-300 mt-0.5"> {selectedNode.opRake}% Op // {selectedNode.pubRake}% Pub </div> <p className="text-xs text-[#b8a894] mt-1"> Public Fiscal Rake measures county tax + community service fee yield relative to abated ad valorem taxes. </p> </div> <div> <div className="text-[10px] font-mono uppercase text-purple-400">Statutory Incentive Regime</div> <div className="text-sm font-bold text-[#f7eedc] mt-1">{selectedCounty.taxProgram}</div> <p className="text-xs text-[#b8a894] mt-1"> June 5, 2026 OAR 123-650-0105 paused new Standard EZ approvals while rural LTREZ/SIP caps remain statutorily active. </p> </div> </div> )} {activeLens === 'SOVEREIGN' && ( <div className="grid grid-cols-1 md:grid-cols-3 gap-4"> <div> <div className="text-[10px] font-mono uppercase text-blue-400">Hardware Root of Trust</div> <div className="text-sm font-bold text-blue-300 mt-1">{selectedNode.tee}</div> <p className="text-xs text-[#b8a894] mt-1"> Cryptographic attestation verified via AR^OS local governance telemetry nodes with zero out-of-state key escrow. </p> </div> <div> <div className="text-[10px] font-mono uppercase text-amber-400">Sovereign Compute Revenue Uplift</div> <div className="text-xl font-bold text-amber-300 mt-0.5">+22.5% Yield Premium</div> <p className="text-xs text-[#b8a894] mt-1"> Jurisdiction-locked confidential AI inference &amp; bare-metal enclaves generate ${(selectedNode.revM * 0.184).toFixed(2)}M/yr in sovereign uplift. </p> </div> <div> <div className="text-[10px] font-mono uppercase text-emerald-400">County Attestation Readiness</div> <div className="text-xl font-bold text-emerald-300 mt-0.5">{selectedCounty.attestationReadyPct}% Fleet Verified</div> <p className="text-xs text-[#b8a894] mt-1"> All {selectedCounty.facilities} facilities in {selectedCounty.id} County indexed in PostgreSQL/JSON-LD ledger (`FIPS {selectedCounty.fips}`). </p> </div> </div> )} {activeLens === 'LOGISTICS' && ( <div className="grid grid-cols-1 md:grid-cols-3 gap-4"> <div> <div className="text-[10px] font-mono uppercase text-purple-400">Optical &amp; Subsea Backhaul</div> <div className="text-sm font-bold text-purple-300 mt-1">{selectedCounty.fiberLatency}</div> <p className="text-xs text-[#b8a894] mt-1"> Direct 400G/800G DWDM wavelength protection linking Hillsboro/Bandon trans-Pacific cable landings to Columbia Basin AI clusters. </p> </div> <div> <div className="text-[10px] font-mono uppercase text-teal-400">Regional Supply Bonus</div> <div className="text-sm font-bold text-teal-300 mt-1">{REGIONS[selectedCounty.region].bonusBadge}</div> <p className="text-xs text-[#b8a894] mt-1"> {REGIONS[selectedCounty.region].description} </p> </div> <div> <div className="text-[10px] font-mono uppercase text-amber-400">Supply Chain &amp; Diesel/HVO Reserves</div> <div className="text-sm font-bold text-[#f7eedc] mt-1">72-Hr Tier IV N+2 Fuel &amp; BESS Buffer</div> <p className="text-xs text-[#b8a894] mt-1"> Automated grid demand-response curtailment credits monetized via regional utility ancillary markets. </p> </div> </div> )} </div> </div> </div> </div> </section> {/* ==================================================================== PROPRIETARY LICENSE FOOTER BADGE ==================================================================== */} <footer className="border-t border-[#3d3026] bg-[#0f0b09] px-4 py-2 text-center text-[11px] font-mono text-[#9c8c78]"> © Albert Lane. All Rights Reserved. | Albert Lane Proprietary Software License </footer> </div> ); }