A brain basis of dynamical intelligence for AI and computational neuroscience