They developed resilient breeds of crops such as potatoes, quinoa and corn. They built cisterns and irrigation canals that snaked and angled down and around the mountains. And they cut terraces into the hillsides, progressively steeper, from the valleys up the slope.