How ancient gene transfers, genomes, and pollination shaped moths and butterflies - and why their sudden decline is raising alarms.