Engineers will be working around-the-clock on the Inverclyde lines to deliver more than £14 million of investment in renewing vital infrastructure.