Within the next few months, Cape Town's taps could run dry, the result of a protracted drought and a government failure to provide an alternative water source to this city of 4 million. Now residents are scrambling to find their own private solutions.
For the wealthy, that means hiring companies to dig boreholes and wells. It means buying truckloads of bottled water, even at inflated prices. It means ordering desalination machines to make groundwater drinkable -- or safe enough to fill a swimming pool.
In modern history, no city in the developed world has ever run out of water. Cape Town's experience, then, may be a Hobbesian test of the way people on opposite ends of the 21st century's income gap access the most basic resources in the most dire times.
"Inequity plays out in water very obviously, and what we're seeing in Cape Town risks becoming an example of that," said Giulio Boccaletti, the global managing director for water with the Nature Conservancy. "The social contract breaks down if the rich find their own solution and leave the rest to fend for themselves."
A few miles from the city's glittering coastline, Portia Ngqulana, 33, sat in her home in the Gugulethu settlement, an agglomeration of small concrete homes and sheet-metal shacks where water arrives via communal taps, each shared by about 200 people. So far, it's still flowing -- most of the time.
Settlements such as Gugulethu have long been marginalized. During decades of white-minority rule, blacks were forcibly relocated there, and residents frequently clashed with police. In 1986, security forces in Gugulethu killed seven young black activists, a landmark in the struggle against apartheid.
Even after the end of apartheid and the election of Nelson Mandela, the neighborhood remained poor and neglected. The public water taps were among the scant examples of government assistance, and even they leaked much of the time.
"I don't know what we'll do if they stop flowing," said Richard Ndabezitha, 60, who lives on a $200-per-month government pension.
Elsewhere in the city, the water shortage has prompted a surge of spending, with families investing millions of dollars to insulate themselves from the drought.
For $6,000, a borehole can be dug, tapping into underwater reservoirs. For $2,000, a company sells a machine that claims to turn moisture in the air into potable water. For $400, people can buy special washing machines that use small quantities of water. In upscale area, bottled water has been sold out for days at a time.
Last year, the World Bank surveyed 154 countries and determined the South Africa had the world's highest Gini coefficient, a common measure of inequality. Ten percent of the population owns more than 90 percent of the country's wealth, according to Anna Orthofer, a professor at South Africa's Stellenbosch University.
Cape Town is a remarkable illustration of those statistics. Last year a handful of homes overlooking the Atlantic Ocean sold for around $10 million each. A luxury hotel opened in a renovated grain silo, offering its penthouse suite for $10,000 a night. Fifteen minutes away, in the settlement of Khayelitsha, the per capita income is less than $2,000 per year.
Inequality here is often racialized, with whites concentrated in the city's wealthiest enclaves. The government says the poor, informal settlements will be prioritized in its emergency water distribution plan, making them among the last places to lose water. So far, because of the shortages, the city has imposed a daily consumption limit of 13 gallons (50 liters) per person.
"The city is very aware of the need to be sensitive to the vulnerable and poor," said Xanthea Limberg, the member of Cape Town's city council in charge of water and waste services. Under the city's disaster plan, informal settlements will receive water as long it is available to prevent disease from spreading through densely populated areas, she said. Cape Town was originally expected to run out of water in April; now, thanks to conservation, that potential "Day Zero" has been pushed back to July, officials say.
The water shortage is far from the only example of how Cape Town's poorest communities have struggled for basic services. Just over half of the homes in Gugulethu have toilets, for example, the country's census shows. But the current crisis has underscored the stakes of the city's wealth gap.
But those springs are miles away from the city's informal settlements, and there is no public transportation available.
"How are we going to get there?" Ndabezitha asked.
For some of the city's poorest residents, the other stark reminder of inequality relates to the way water is used. When Andiswa Maxakata, an unemployed resident of Gugulethu, travels through the city's wealthy suburbs, she sees pools and golf courses.
"They're using water to fill their pools!" she exclaimed. "That's why we don't have any left."
Still, she added, "If I had a pool, I guess I'd be filling it, too."
About 10 miles away from Gugulethu, in the suburb of Table View, Carsten Hensel, 31, was having a wellpoint installed in his backyard next to his swimming pool. It cost $700.
"Actually pretty cheap," he remarked.
Hensel wasn't sure yet whether he would use the water to fill the pool or to water his garden. Mostly, it was a fail-safe in case the water situation deteriorated.
"In the long term, there's no other solution," he said.
Doug Cloete, 48, an IT consultant, grew up in a poor family, cautious enough about the cost of water that he and his two brothers took turns bathing in the same bath water before draining it.
"Now I would categorize us as middle-class," he said. "We have resources that most people don't. Now we're able to stockpile water."
As the drought deepened last year, and people began to talk about the possibility of a water shortage, Cloete bought 250 liters of bottled water for about $65, filling a room in his home in the Bothasig suburb. He also installed a wellpoint to extract water from deep underground.
He had always been conscious of his relative privilege. With the water crisis looming, that awareness grew more acute.
"There's a massive section of the community that doesn't have this disposable income," he said. "They can't afford to prepare for the worst."
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.