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