A unified theory of the evolution of Mind — from religious cognition and symbolic systems to biological embodiment, supragenetic structures, and artificial intelligence.