500 million years of fossils reveal how ‘escape routes’ along coastlines can decide who survives climate change.