While whales moved from living on land to an existence immersed in water, pinnipeds embraced an amphibious lifestyle