export const inquiryDomains = [
  ['origin-lineage','Origin & Lineage','Where did this come from, and what does it inherit?'],
  ['reality-ontology','Reality & Ontology','What kind of reality is being proposed?'],
  ['intelligence-otherness','Intelligence & Otherness','Who else is here, and how unlike us are they?'],
  ['contact-communication','Contact & Communication','What happens when worlds meet?'],
  ['mind-consciousness','Mind & Consciousness','What can awareness perceive, become, or mistake?'],
  ['memory-identity','Memory & Identity','What persists, and what has been forgotten?'],
  ['body-evolution','Body & Evolution','What can embodiment inherit or become?'],
  ['technology-infrastructure','Technology & Infrastructure','What becomes possible, and what must support it?'],
  ['time-causality','Time & Causality','How does chronology organize consequence?'],
  ['civilization-ecology','Civilization & Ecology','How do worlds coordinate life, resources, and survival?'],
  ['power-control','Power & Control','Who can act, know, constrain, or extract?'],
  ['liberation-transcendence','Liberation & Transcendence','How does a system become freer or exceed its present form?']
].map(([id,name,question]) => ({id,name,question}));

export const materialModes = [
  'established-science','emerging-science','speculative-science','science-fiction','mythology',
  'esoteric-tradition','experiential-report','ufology-disclosure-lore','conspiracy-mythology',
  'political-mythology','internet-folklore','spiritual-cosmology','original-synthesis'
];

export const evidenceStates = [
  'well-established','documented-historical','active-research','plausible-speculation','contested',
  'unverified','contradicted-by-evidence','experiential-only','fictional','symbolic','not-applicable'
];

export const classes = [
  {id:'forces',name:'Forces',target:38,definition:'Dynamics that recur across realities without requiring one bounded actor.',border:'radiating cardinal pressure marks',accent:'#F3B61F'},
  {id:'cosmologies',name:'Cosmologies',target:34,definition:'Models that explain the architecture, origin, or purpose of reality as a whole.',border:'nested celestial rings',accent:'#7C5CFC'},
  {id:'beings',name:'Beings & Roles',target:50,definition:'Agents, intelligences, and recurring roles capable of choice or encounter.',border:'paired witness apertures',accent:'#4DD7C8'},
  {id:'worlds',name:'Worlds & Places',target:36,definition:'Environments, frontiers, sites, and constructed realities where action occurs.',border:'four horizon gates',accent:'#5CC47C'},
  {id:'technologies',name:'Technologies',target:58,definition:'Repeatable capabilities, methods, and engineered transformations.',border:'circuit-orbit braid',accent:'#22C4E5'},
  {id:'artifacts',name:'Artifacts & Resources',target:30,definition:'Object-like carriers of power, evidence, memory, or exchange.',border:'reliquary corners and registration studs',accent:'#E28B39'},
  {id:'factions',name:'Factions & Institutions',target:38,definition:'Coordinated collective actors with durable aims, membership, or authority.',border:'interlocking heraldic arcs',accent:'#B56AF2'},
  {id:'programs',name:'Programs & Operations',target:34,definition:'Deliberate projects, missions, and covert or public operations.',border:'segmented clearance track',accent:'#E25766'},
  {id:'systems',name:'Systems & Regimes',target:38,definition:'Persistent rule environments that coordinate access, behavior, and value.',border:'gridded governance lattice',accent:'#D6A642'},
  {id:'events',name:'Events & Thresholds',target:36,definition:'Transformations that create a meaningful before and after.',border:'broken ring crossed by a threshold ray',accent:'#FF7452'},
  {id:'states',name:'States & Experiences',target:46,definition:'Conditions of mind, body, identity, or society that can be inhabited.',border:'pulsing inner halo',accent:'#61B8FF'},
  {id:'myths',name:'Myths & Storyworlds',target:26,definition:'Narrative structures through which cultures organize possibility and fear.',border:'story-knot and ancestral notches',accent:'#E6C56A'},
  {id:'hypotheses',name:'Hypotheses & Lenses',target:16,definition:'Competing explanatory models applied to ambiguous observations.',border:'split-lens frame',accent:'#A3E5FF'}
];

const list = (value) => value.split('|').map((name) => name.trim()).filter(Boolean);

export const catalogs = {
  forces: list(`Chaos|Pattern|Meaning-Making|Emergence|Complexity|Scarcity|Abundance|Entropy|Evolution|Selection Pressure|Feedback|Recursion|Nonlinearity|Butterfly Effect|Strange Attractor|Synchronicity|Apophenia|Trust|Doubt|Certainty|Discernment|Wonder|Fear|Attention|Loosh|Memory|Forgetting|Contagion|Extraction|Energy Harvest|Assimilation|Resistance|Control|Liberation|Transcendence|Interconnection|Dark Matter|Great Filter`),
  cosmologies: list(`Simulation|Nested Simulation|Prison Planet|Gnostic Cosmos|Holographic Universe|Holofractal Universe|Multiverse|Many-Worlds|Block Universe|Cyclic Universe|Heat Death|Big Bounce|Digital Physics|Participatory Universe|Akashic Cosmos|Space Memory Network|Noosphere|Omega Point|Ascension Cosmology|Density Model|Dimensional Ladder|Astral Planes|Etheric Ecology|Source|Reincarnation Cycle|Reincarnation Trap|Soul School|Quarantine Earth|Zoo Cosmos|Dark Forest Cosmos|Galactic Ecology|Post-Biological Universe|Ancient Astronaut Cosmos|Cosmic Memory Field`),
  beings: list(`Grey|Tall Grey|Nordic|Reptilian|Mantis|Insectoid|Pleiadian|Sirian|Arcturian|Andromedan|Avian|Tall White|Anunnaki|Watcher|Hybrid|Synthetic Being|Ultraterrestrial|Interdimensional Being|Future Human|Post-Biological Intelligence|Starseed|Earthseed|Archon|Vegan Starseed|Orion Starseed|Mintakan|Lemurian Starseed|Atlantean Starseed|Cyborg|Android|Replicant|Robot|Artificial General Intelligence|Superintelligence|Rogue AI|Hive Mind|Borg|Machine Elf|DMT Entity|Walk-In|Clone|Synthetic Person|Witness|Experiencer|Whistleblower|Leaker|Gatekeeper|Initiate|Debunker|Trickster`),
  worlds: list(`Earth|Mars|Moon|Dark Side of the Moon|Ceres|Asteroid Belt|Antarctica|Area 51|Camp Hero|Hollow Earth|Agartha|Shambhala|Atlantis|Lemuria|Arrakis|Solaris|Ringworld|Dyson Habitat|Generation Ship|Sleeper Ship|Lunar Base|Mars Colony|Off-World Base|Deep Underground Military Base|Corporate Colony|15-Minute City|Smart City|Company Town|Space Station|Orbital Habitat|Ocean World|Desert World|Archive World|Simulation Layer|Prison World|Garden World`),
  technologies: list(`Zero-Point Energy|Anti-Gravity|Free Energy|Replicator|Matter Compiler|Stargate|Wormhole|Portal|Warp Drive|Transporter|Holodeck|Remote Viewing|Controlled Remote Viewing|Neural Lace|Brain-Computer Interface|Mind Upload|Consciousness Transfer|Digital Immortality|Cloning|Age Regression|Cryonics|Longevity Escape Velocity|Med Bed|Structured Water|Gene Editing|CRISPR|Epigenetic Switch|DNA Activation|Synthetic Biology|Designer Child|Organ Regeneration|Biohacking|Quantified Self|Nootropics|Wearables|Smart Dust|Programmable Matter|Nanotechnology|Black Goo|Grey Goo|AI Agent|Alignment Protocol|Three Laws|Source Code|Reality Hack|Hologram|Quantum Computer|Quantum Entanglement|Metamaterial|Time Crystal|Terraforming|World Engine|Dyson Sphere|Antimatter Drive|Solar Sail|Fusion|Artificial Gravity|Universal Translator`),
  artifacts: list(`Monolith|Spice|Memory Implant|Redacted File|Black Box|Alien Artifact|Out-of-Place Artifact|Antikythera Mechanism|Pyramid|Crop Circle|Crash Debris|Flying Saucer|Orb|Tic-Tac Craft|Black Triangle|Mothership|The Signal|Wow! Signal|Beacon|Star Map|Portal Key|Stargate Address|Neural Implant|Clone Vat|Life Review Mirror|Akashic Records|Reality Map|Easter Egg|ARG Clue|Seed Vault`),
  factions: list(`Galactic Federation|Galactic Empire|Rebel Alliance|The Cabal|Deep State|Shadow Government|Illuminati|Bene Gesserit|Spacing Guild|Great Houses|Jedi Order|Sith Order|Starfleet|United Federation of Planets|Borg Collective|Breakaway Civilization|Secret Space Fleet|Solar Warden|Megacorporation|Company-State|Technocracy|Algorithmic Technocracy|Corporate Feudalism|Resistance Network|Preservation Order|Consensus Collective|Belief Cult|Distributed Network|Emergent Swarm|Star Nomads|Guardians|Watchers Council|Starseed Collective|Disclosure Advocates|MAHA Movement|Anti-Vaccine Movement|Contactees|Military-Industrial Complex`),
  programs: list(`Disclosure Program|Gradual Disclosure|Controlled Disclosure|Catastrophic Disclosure|False Disclosure|Soft Disclosure|Secret Space Program|20 and Back|Montauk Project|Philadelphia Experiment|MKULTRA|Project Stargate|Operation Highjump|Project Blue Beam|Crash Retrieval Program|Reverse Engineering Program|Black Project|Special Access Program|Waived SAP|Predictive Programming|Psyop|Information Operation|Cognitive Warfare|Narrative Warfare|Patent Secrecy|Eugenics Program|Breeding Program|Hybridization Program|Contact Protocol|Quarantine Protocol|First Contact Mission|Terraforming Program|Ark Mission|Ascension Program`),
  systems: list(`Panopticon|Control Grid|Digital ID|Social Credit|Central Bank Digital Currency|Algorithmic Governance|Smart Prison|Geofence|Attention Economy|Surveillance Capitalism|Reputation Economy|Gift Economy|Energy Economy|Resource Monopoly|Post-Scarcity|Walkability|Galactic Market|Neighborhood Access|Loosh Harvest|Loosh Farm|Prime Directive|The Matrix|Laboratory System|Zoo System|Prison System|Quarantine System|Containment System|Compartmentalization|Need to Know|Classification|Plausible Deniability|Limited Hangout|Propaganda System|Disinformation Network|Misinformation Cascade|Consensus Reality|Reality Tunnel|Root Access`),
  events: list(`Disclosure|First Contact|Signal Detected|First Sighting|Close Encounter|Communication Established|Cosmic Treaty|Contact Integration|Federation Founding|Paradigm Rupture|Technological Singularity|The Storm|Great Reset|Civilizational Collapse|Civilizational Reset|Breakthrough|Alien Invasion|Crash Retrieval|Quarantine Declaration|Timeline Branch|Timeline Convergence|Timeline Collapse|Temporal Loop|Mandela Effect|Time Slip|Missing Time|Life Review|Resurrection|Upload Event|Contact War|Exodus|Ascension|The Harvest|Event Horizon|World Reset|Return to Source`),
  states: list(`Near-Death Experience|Out-of-Body Experience|Astral Projection|Lucid Dream|Prophetic Dream|Precognition|Déjà Vu|Temporal Dislocation|Panoramic Awareness|Ego Dissolution|Timelessness|Altered State|Psychedelic Contact|Ontological Shock|Chapel Perilous|Rabbit Hole|Red-Pill State|True-Believer State|Skeptical Suspension|Institutional Distrust|Epistemic Trust|Hypervigilance|Cognitive Dissonance|Dissociation|Compartmentalized Identity|False Memory|Implanted Memory|Genetic Memory|Ancestral Memory|Bloodline Memory|Generational Trauma|Collective Unconscious|Noospheric Awareness|Light Body|Crystalline Body|Starseed Awakening|Ascension State|Posthuman Condition|Cyborg Embodiment|Digital Continuity|Amnesia|Memory Wipe|Isolation|Alienation|Belonging|Existential Dread`),
  myths: list(`Mythic Past|Aspirational Future|Chosen One|Hidden Heir|Prophecy|Self-Fulfilling Prophecy|Lost Golden Age|Lost Civilization|Ancient Builders|Bloodline|Dynasty|Royal House|Founding Family|Cyberpunk|Alien Harvest|The Date 2027|The Great Awakening|False Alien Invasion|Starseed Mission|Dune|Ascension Narrative|Disclosure Day|Secret History|Suppressed Technology|QAnon|Return of the Ancients`),
  hypotheses: list(`Extraterrestrial Hypothesis|Interdimensional Hypothesis|Future Human Hypothesis|Psychosocial Hypothesis|Secret Technology Hypothesis|Simulation Hypothesis|Zoo Hypothesis|Dark Forest Hypothesis|Ancient Astronaut Hypothesis|Ultraterrestrial Hypothesis|Hollow Earth Hypothesis|Holographic Principle|Quantum Consciousness Hypothesis|Morphic Resonance|Earth Quarantine Hypothesis|Prison Planet Hypothesis`)
};

export const keySpecs = {
  'chaos': ['Possibility before a stable structure has been selected.','the unbounded field','novelty and freedom','noise that defeats orientation','What deserves form, and what should remain open?'],
  'pattern': ['Structure discovered, inherited, or imposed upon uncertain events.','the ordering intelligence','recognition and coherence','a compelling arrangement mistaken for proof','Is this pattern explanatory, testable, or simply satisfying?'],
  'meaning-making': ['The human act of turning events into a world that can be inhabited psychologically.','the world-maker','integration without certainty','story hardening into unquestionable reality','What useful meaning can remain while the model stays revisable?'],
  'apophenia': ['The perception of meaningful connections among unrelated or weakly related data.','the pattern-seeker at the threshold','creativity and hypothesis','coincidence becoming unfalsifiable evidence','What observation would weaken this pattern?'],
  'discernment': ['Openness joined to the ability to distinguish claim, evidence, metaphor, and need.','the clear lens','curiosity without surrender','premature certainty disguised as intuition','Which layer of this story is actually supported?'],
  'simulation': ['Reality interpreted as an executable environment whose appearances depend on hidden rules.','the rendered world','attention to underlying constraints','every anomaly recruited as proof of an administrator','What changes if you examine the rules instead of the scenery?'],
  'prison-planet': ['A cosmology in which earthly life is an enclosure sustained by amnesia, extraction, or hidden wardens.','the enclosed world','naming lived confinement','externalizing every constraint into cosmic jailers','Which wall is material, social, psychological, or mythic?'],
  'gnostic-cosmos': ['A family of ancient religious cosmologies distinguishing ultimate divinity from lesser rulers of the material order.','the world beneath higher truth','critique of false authority','modern lore flattening diverse historical traditions','Which authority governs without being ultimate?'],
  'space-memory-network': ['An Oracle synthesis in which memory is distributed across reality rather than stored in one location.','the distributed archive','continuity across separation','a poetic model presented as established physics','What would reality remember if no single witness remained?'],
  'akasha-cosmos': ['Reality imagined as a universal archive in which events and meanings remain accessible.','the celestial library','continuity and witness','certainty borrowed from an unverifiable archive','What are you trying to remember, and what source can ground it?'],
  'grey': ['The small, large-eyed visitor of modern abduction and contact lore.','the clinical Other','encounter with radically different intelligence','fear, medical violation, and dehumanization projected into one face','What feels observed but not understood?'],
  'starseed': ['A modern spiritual identity that interprets earthly difference through an origin among the stars.','the cosmic exile','belonging and mission','specialness replacing grounded relationship','How can the gift be lived here without requiring superiority?'],
  'trickster': ['The intelligence that destabilizes categories, certainty, and the boundary between revelation and play.','the category-breaker','humility, adaptation, and surprise','confusion cultivated for its own sake','Can you remain curious without demanding a final ontology?'],
  'mars': ['A neighboring world carrying frontier, war, exile, second-chance, and hidden-base meanings.','the red frontier','ambition and planetary perspective','escape fantasies that abandon Earthly obligations','What are you trying to begin elsewhere?'],
  'antarctica': ['A remote polar continent that functions as scientific frontier, sealed archive, and mystery-place in modern lore.','the frozen threshold','patience and preserved evidence','isolation filled with unsupported projection','What is genuinely inaccessible, and what is merely unknown?'],
  'area-51': ['A real test site transformed into the global emblem of invisible technological work.','the visible secret','respect for operational uncertainty','every unknown aircraft becoming non-human evidence','What does the public symbol conceal about the ordinary institution?'],
  'fifteen-minute-city': ['A proximity-planning model that also became a contemporary mythology of digitally enforced enclosure.','the ambiguous boundary','human-scale access and local resilience','access confused with coercion—or control hidden inside convenience','Is this boundary increasing access or restricting movement?'],
  'zero-point-energy': ['The lowest-energy quantum state, culturally extended into free-energy and suppressed-technology lore.','the fertile vacuum','resource in apparent emptiness','physics vocabulary used to certify an unsupported machine','What potential remains when the obvious supply is exhausted?'],
  'free-energy': ['The dream of abundant energy undoing institutions built around scarcity.','the abundance engine','liberation from extraction','miracle technology postponing practical transition','Which scarcity is technical, and which is political?'],
  'stargate': ['A hidden addressable threshold connecting distant worlds through ancient infrastructure.','the networked portal','contact through a shared protocol','escape without preparation for the destination','What address, permission, and return path does this crossing require?'],
  'wormhole': ['A shortcut produced by changing topology rather than traversing ordinary distance.','the folded path','structural reframing','confusing metaphor with available engineering','Can the relationship between the endpoints change?'],
  'remote-viewing': ['A claimed practice of acquiring information about a distant target outside ordinary sensory access.','the distant witness','disciplined attention to weak signals','projection mistaken for observation','How will impression be separated from feedback and error?'],
  'med-bed': ['A speculative healing chamber associated with regeneration, age reversal, and suppressed-technology lore.','the complete repair','hope and renewal','waiting for miraculous restoration instead of using present care','Does healing mean restoration, adaptation, or becoming new?'],
  'structured-water': ['A meeting point among water chemistry, contested biophysical hypotheses, wellness claims, and ritual symbolism.','the informed medium','attention to the conditions carrying life','scientific ambiguity converted into medical certainty','Which claim is chemical, biological, commercial, or symbolic?'],
  'black-goo': ['Adaptive mirror-black intelligence entering biological or technological systems in science fiction and fringe lore.','the invasive substrate','radical adaptability','assimilation concealed as enhancement','What is changing the host while claiming to serve it?'],
  'monolith': ['An impossible object whose presence triggers evolutionary discontinuity.','the catalyst from elsewhere','awakening beyond the current horizon','attributing growth entirely to external intervention','What capacity is being called forth rather than given?'],
  'spice': ['A consciousness-expanding resource that enables empire while producing dependency and monopoly.','the prophetic commodity','expanded perception','vision captured by extraction and addiction','Who controls the resource that makes foresight possible?'],
  'galactic-federation': ['A cosmic polity imagined in fiction and Disclosure lore as unity without total sameness.','the plural alliance','cooperation across radical difference','bureaucracy or paternalism at cosmic scale','What principle permits membership without assimilation?'],
  'galactic-empire': ['Centralized rule projected across worlds through military, administrative, and symbolic scale.','the imperial machine','coordination across distance','order maintained without meaningful consent','Where has scale replaced legitimacy?'],
  'bene-gesserit': ['A fictional order shaping politics, religion, memory, and heredity across generations.','the long influence','patient intergenerational strategy','people reduced to instruments in a breeding design','What plan is acting through generations rather than moments?'],
  'secret-space-program': ['A modern lore complex describing hidden off-world fleets, bases, treaties, labor, and technology.','the civilization behind the civilization','imagination of concealed capability','unverifiable claims absorbing every absence of evidence','What institution could sustain this operation, and where would traces appear?'],
  'twenty-and-back': ['Lore of extended off-world service followed by age regression, memory removal, and return to departure time.','the hidden lifetime','honoring experiences without conscious continuity','memory gaps filled with a totalizing explanation','What part of identity depends on remembered continuity?'],
  'montauk-project': ['A secret-laboratory mythology joining trauma, psychic amplification, time travel, and Camp Hero.','the laboratory beneath ordinary reality','warning about weaponized consciousness','fiction, documented history, and later lore collapsed together','Which layer is place, program, story, or symbol?'],
  'philadelphia-experiment': ['A legend of naval invisibility, teleportation, and bodies fused with a machine.','the premature threshold','caution around unintended consequences','technical possibility inferred from narrative repetition','What are you making possible before understanding its cost?'],
  'mkultra': ['A documented CIA behavioral-research program surrounded by later expanded mind-control mythologies.','the violated mind','institutional memory and accountability','verified abuse used to certify every later allegation','Which claim belongs to the archive, and which to later mythology?'],
  'project-blue-beam': ['A conspiracy mythology of staged revelation, holographic spectacle, and manufactured belief.','the engineered epiphany','media literacy','every shared event interpreted as centralized theater','What evidence distinguishes revelation from production?'],
  'soft-disclosure': ['The idea that fiction acclimatizes culture to realities it cannot yet face directly.','truth disguised as story','imagination as preparation','intentional programming inferred from every resemblance','What can be rehearsed safely in fiction before it becomes actionable?'],
  'panopticon': ['Control produced by uncertainty about whether observation is occurring.','the unseen watcher','accountability made visible','self-policing that persists without active supervision','How is possible observation changing behavior now?'],
  'loosh': ['A term from modern out-of-body lore for emotionally charged energy, later expanded into extraction cosmologies.','the charged yield','noticing the value carried by attention and affect','treating metaphor or reported experience as settled cosmology','What receives the energy of this experience?'],
  'loosh-harvest': ['A narrative of sustained systems extracting value from emotion, conflict, or suffering.','the invisible harvest','seeing incentives hidden inside intensity','a cosmic story replacing analysis of visible institutions','Who benefits when the emotional charge continues?'],
  'loosh-farm': ['A system interpreted as benefiting from sustained emotional intensity, fear, or suffering.','the affective extraction engine','seeing who profits from conflict','a cosmic claim replacing analysis of visible incentives','If everyone became calm tomorrow, who would lose value?'],
  'dark-matter': ['The inferred, nonluminous matter used in current cosmology to explain gravitational behavior at galactic scale.','the unseen mass','respect for evidence that arrives through effects','turning a scientific unknown into permission for any desired explanation','What invisible influence is measurable through what it moves?'],
  'great-filter': ['A proposed barrier that prevents most life from becoming long-lived, spacefaring civilization.','the civilizational threshold','sobriety about survival and responsibility','doom used as an excuse for paralysis','Which bottleneck might still be ahead, and what reduces its risk?'],
  'the-matrix': ['The invisible social, computational, or ideological environment mistaken for reality itself.','the enclosing interface','awakening to structure','every disagreement treated as proof that others are asleep','Which rule can be tested from inside the system?'],
  'prime-directive': ['A fictional non-interference rule that protects developing societies from the power of more capable visitors.','the ethical boundary','restraint and respect for self-determination','abandonment disguised as neutrality','When does non-interference preserve agency, and when does it excuse inaction?'],
  'compartmentalization': ['A structure in which no participant knows enough to understand the whole.','the divided map','security through limited exposure','systems acting without anyone comprehending what they have become','Who can integrate the fragments without erasing necessary boundaries?'],
  'disclosure': ['The hidden becoming undeniable and forcing institutions, identities, and reality models to change.','the opened archive','truth and accountability','revelation fetishized without preparation for consequence','What should be revealed now, and what support must accompany it?'],
  'first-contact': ['Encounter with an intelligence whose assumptions, language, and interests are not yours.','the meeting of worlds','mutual transformation','projection turning difference into threat or salvation','What protocol protects both sides from your assumptions?'],
  'technological-singularity': ['A threshold beyond which prediction fails because intelligence changes the process doing the predicting.','the recursive horizon','unforeseen capability','acceleration mistaken for wisdom','Which objective survives when the optimizer improves itself?'],
  'mandela-effect': ['Collective disagreement with the archive, interpreted through memory, culture, or timeline mythology.','the disputed record','humility about memory','certainty converting error into cosmic proof','What do independent records show, and why does the alternate memory persist?'],
  'life-review': ['An NDE motif of experiencing one’s actions from multiple perspectives.','the reciprocal mirror','empathy and moral integration','retrospective judgment becoming punishment','What becomes visible when impact is felt from every side?'],
  'near-death-experience': ['A reported cluster of experiences occurring near death or perceived death, interpreted through neurological, psychological, and spiritual models.','the returning witness','renewed meaning and reduced fear','one account universalized into certainty about the afterlife','What changed in the life that continued?'],
  'ontological-shock': ['Information or experience making the previous model of reality impossible to maintain.','the broken frame','capacity for paradigm change','destabilization without grounding or integration','What remains reliable while the model is rebuilt?'],
  'chapel-perilous': ['The threshold where coincidence, paranoia, revelation, and play become difficult to distinguish.','the uncertain initiation','epistemic humility','certainty chosen merely to escape ambiguity','Can you stay curious without requiring belief?'],
  'rabbit-hole': ['One anomaly opening an expanding network of hidden explanations.','the descending inquiry','curiosity and discovery','proportional reality lost to an unfalsifiable graph','What evidence would cause you to turn around?'],
  'memory-wipe': ['The deliberate removal of remembered continuity in fiction, lore, and symbolic psychology.','the missing chapter','freedom from an old script','identity made vulnerable to whoever supplies the replacement story','What is absent, and who benefits from filling the gap?'],
  'mythic-past': ['A universe organized by ancient orders, bloodlines, relics, recurring empire, and history that never fully ends.','the returning cycle','ancestral depth','destiny used to deny new choice','Which inheritance is recurring because it has not been integrated?'],
  'aspirational-future': ['Civilization imagined as deliberately growing beyond scarcity, nationalism, and inherited prejudice.','the built horizon','ethical progress and pluralism','utopia hiding the labor and conflict required to sustain it','Which future value can be practiced before the technology arrives?'],
  'chosen-one': ['The belief that one exceptional figure must resolve a collective crisis.','the singular savior','responsibility concentrated into courage','the group surrendering agency to destiny','What work belongs to the community rather than the hero?'],
  'the-date-2027': ['A contemporary Disclosure-lore horizon onto which expectation, countdown, and convergence accumulate.','the charged calendar','focus and preparation','the date becoming immune to failed prediction','What useful preparation remains if the forecast does not occur?'],
  'dune': ['A science-fiction storyworld in which ecology, prophecy, empire, extraction, and inherited power become one system.','the desert epic','systems thinking across generations','destiny and exceptionalism eclipsing collective agency','Which resource binds ecology, power, and perception together?'],
  'qanon': ['An internet-born conspiracy movement organized around anonymous posts, participatory decoding, and a promised hidden reckoning.','the participatory prophecy','showing how communities construct meaning together','unfalsifiable claims, political scapegoating, and harm to real people','What need is the decoding ritual serving, and what evidence could correct it?'],
  'walkability': ['A built-environment condition in which people can reach daily needs safely, comfortably, and practically on foot.','the human-scale path','access, health, encounter, and local freedom of movement','design for an idealized walker that excludes disability, age, climate, safety, or distance','Whose daily journey becomes possible here, and whose remains obstructed?'],
  'neighborhood-access': ['A proximity system that brings essential services, public space, work, care, and connection within practical reach of residents.','the near commons','distributed access and resilient local life','proximity used to hide displacement, unequal provision, or coercive boundaries','Which need is genuinely within reach, for whom, and under whose terms?'],
  'maha-movement': ['A contemporary U.S. health-policy movement combining concern about chronic illness, food systems, regulation, and institutional distrust.','the health reformation movement','attention to environmental and structural determinants of health','broad distrust outrunning evidence and careful public-health tradeoffs','Which proposed change has strong evidence, and which remains rhetoric or hypothesis?'],
  'anti-vaccine-movement': ['A changing set of movements opposing or questioning vaccination, shaped by risk perception, mistrust, identity, and misinformation.','the contested shield','insistence that institutions earn trust and communicate uncertainty','unsupported claims increasing preventable harm','What evidence would update this position, and whose risk is being carried?'],
  'extraterrestrial-hypothesis': ['The interpretation that anomalous craft or encounters originate with biological or post-biological intelligence beyond Earth.','the visitor from elsewhere','a testable orientation toward cosmic life','ambiguity reduced to one desired ontology','What observation would distinguish off-world origin from its alternatives?'],
  'interdimensional-hypothesis': ['The interpretation that anomalous phenomena cross dimensions or ontological layers rather than ordinary space.','the adjacent reality','room for categories beyond distance','an undefined dimension explaining every contradiction','What does dimension mean operationally in this claim?'],
  'psychosocial-hypothesis': ['The interpretation that culture, expectation, psychology, and social transmission shape anomalous reports.','the cultural mirror','attention to context and meaning','experience dismissed because its explanation may be social','What does the report reveal even if the proposed cause is wrong?'],
  'morphic-resonance': ['A contested proposal that natural systems inherit tendencies from similar prior systems.','the remembered pattern','a generative metaphor for habit across time','speculation presented as settled biology','What becomes easier because it has happened before?']
};

export const referenceNames = [
  'Mythic Past','Aspirational Future','Spice','Disclosure','Starseed','Pleiadian','Grey','Reptilian','Mantis','Galactic Federation',
  'Loosh','Loosh Harvest','Prison Planet','Akashic Records','Remote Viewing','Near-Death Experience','Life Review','Zero-Point Energy',
  'Structured Water','Med Bed','20 and Back','Montauk Project','Philadelphia Experiment','Area 51','Antarctica','Secret Space Program',
  'Breakaway Civilization','Black Goo','15-Minute City','Panopticon','Digital ID','Rabbit Hole','Chapel Perilous','Soft Disclosure',
  'Predictive Programming','Dark Matter','Wormhole','Portal','Great Filter','Prime Directive','Borg','The Matrix','Simulation',
  'Technological Singularity','Alignment Protocol','Ancient Astronaut Hypothesis','Atlantis','Hidden Heir','Bloodline','The Great Awakening',
  'Monolith','Dune','Artificial General Intelligence','First Contact','Ontological Shock','Trickster','Space Memory Network','QAnon'
];

export const polarities = [
  ['chaos','meaning'],['secrecy','disclosure'],['isolation','contact'],['scarcity','abundance'],
  ['control','agency'],['memory','forgetting'],['embodiment','transcendence'],['continuity','transformation']
].map(([left,right]) => ({id:`${left}-${right}`,left,right}));

export function slug(value) {
  return value.toLowerCase().replace(/&/g,' and ').replace(/[^a-z0-9]+/g,'-').replace(/^-|-$/g,'');
}

export function assertCatalog() {
  const names = Object.values(catalogs).flat();
  const failures = [];
  for (const cls of classes) if ((catalogs[cls.id] ?? []).length !== cls.target) failures.push(`${cls.id}: expected ${cls.target}, found ${(catalogs[cls.id] ?? []).length}`);
  if (new Set(names.map((name) => name.toLowerCase())).size !== names.length) failures.push('duplicate canonical names exist');
  if (names.length !== 480) failures.push(`expected 480 cards, found ${names.length}`);
  if (failures.length) throw new Error(failures.join('\n'));
  return true;
}
