In 1899, a Scots lamplighter facing redundancy is haunted by nightmarish visions of an electric future.