From Cosmos to Chaos: The Science of Unpredictability