A unified framework for analyzing urban sustainability in terms of cities' inflows and outflows of matter and energy. Urbanization and globalization have shaped the last hundred years. These two dominant trends are mutually reinforcing: globalization links countries through the networked communications of urban hubs. The urban population now generates more than eighty percent of global GDP. Cit…