The Hidden Math of Ocean Waves