From beehive-shaped ice pits in Iran to 17th-century European kitchens, ice cream’s evolution reveals how science, sugar, and survival shaped one of the world’s most beloved foods.