A velvety butterfly called the coastal green hairstreak once peppered the fog-capped hills of San Francisco. But then the city began to build out, and new structures fractured the jewel-toned insect’s native range.