Ladybird beetle wings fold themselves into a tidy package after flight, and now scientists understand how it works.