Intelligence as a planetary scale process