I used to think I was a bad sleeper. Then I spent six months instrumenting my bedroom like a lab, and it turns out I was just a good sleeper in a hostile environment. A creaky old house, a streetlight leaking through cheap blinds, a phone that buzzed at 2:47 a.m. because a server somewhere …