From forests and wetlands to farms and research labs, Brazil is testing ideas with global relevance.