Text this: Optimal life-cycle adaptation of coastal infrastructure under climate change