In the oldest desert on Earth, scientists are cracking open a mystery about our planet's future — using eggs laid by giant, long-extinct birds.

The Namib Desert stretches 2,000 kilometers across southern Africa, from Angola through Namibia and into South Africa. It is the world's oldest desert, and it has been bone-dry for at least 15 million years. Back then, before humans existed, giant flightless birds — relatives of today's ostriches — once wandered this landscape and laid eggs. Those eggs, buried in the sand for 15 million years, turned out to be time capsules holding secrets about ancient air.

A team of researchers has now used a new laser technique to study oxygen trapped inside these ancient eggshells. Their goal? To understand how plants responded to a warmer world millions of years ago — and what that might tell us about our own climate future.

"The Miocene was instantly recognizable as our planet, but only just," said the study's lead researcher, who worked with isotope specialist Drake Yarian on the project, published in the journal Geochimica et Cosmochimica Acta. By the start of the Miocene, dinosaurs had already been extinct for 40 million years. Continents sat nearly where they are today, but our early human ancestors had not yet come down from the trees.

During the Miocene, roughly 17 to 15 million years ago, carbon dioxide levels in the atmosphere were actually slightly higher than they are now. Global temperatures were warmer. Sea levels stood higher. Ice sheets at the poles had not yet grown to their current size. It was, in many ways, a preview of the warming world scientists say we may be heading toward.

The new technique the team developed uses lasers to measure tiny variations in oxygen atoms from the eggshells — requiring 10 times less fossil material than older methods. Plants breathe in carbon dioxide and release oxygen, but they absorb certain types of oxygen atoms in different proportions depending on how actively they're growing. That signal gets locked into the eggshells of birds that breathe that air and eat plants.

Understanding how quickly plants were growing and absorbing carbon during the Miocene could help scientists predict what might happen as Earth warms again. Higher temperatures and more carbon dioxide generally spur plant growth, but warmer conditions also accelerate the decay of dead plant matter, releasing carbon back into the air. The balance between these two forces matters enormously for climate.

Most climate projections suggest that within a few decades, atmospheric carbon dioxide could reach or surpass Miocene levels. These ancient eggshells, laid by birds that vanished long ago, may help humanity prepare for that world.