Ancient Amazonian technology could save the world