Dumped, fired and evicted on the same day, quant researcher Caleb inherits a crumbling mansion from a great-grandfather he never met. Behind its secret room waits a door that opens at midnight—into Thorn Hollow, a Colorado mining town in 1886. Mistaking his phone for wizardry, the miners crown him "Mr. Wizard" just as the Tazewell Mining Company's kill squad arrives to burn the town. Armed with nothing but data, he fights back: strobes and amplified gunfire scare off the first raid; trenches dug by load-bearing math survive a gunboat bombardment; noodles and solar lamps win hearts; a human "computing cluster" of abacus veterans aims homemade rockets that sink the company's armored flagship. Between battles come four women—a militia chief, a battlefield doctor, a saloon owner, an engineer—and a secret Federation deal. But the door takes its toll in blood, the enemy captain hunts the "woman in black," and Tazewell orders his whole fleet to crush the town. Caleb's trial period is over.