On a gravel-strewn railway, a train came head-on, rubbing and rattling with it.