Possibly the only thing more surprising than the news that Angelina Jolie filed for divorce from Brad Pitt was the unceasing, unremitting details.

As a brand, Brangelina spent more than a decade on lockdown: Their camp had no leaks. Tabloids knew nothing the couple didn’t want known. Their image as the chic-est, jet-setting-est, most racially harmonious family on Earth was impenetrable.

Until Tuesday, when Jolie’s filing demanding sole physical custody sent the media into overdrive: What had Pitt, heretofore known as a devoted father, possibly done?

Incredibly, almost on the hour, the story kept advancing: TMZ reported that Jolie had concerns “with the way Brad was parenting” and that she was “fed up” with his heavy use of weed and alcohol. He had an “anger problem.”

Next came accusations of Pitt cheating — with a co-star and with Russian hookers, their nationality an odd detail — of using hard drugs, and of verbally and physically attacking one of their children on a private plane.

Within 72 hours, the world knew more about Brangelina than in the 12 years they had been together. It was sordid and dirty, the photo negative of the perfect ­image they had so smugly, aggressively promoted.

The likeliest source of that narrative flip? Angelina Jolie, who at 41 has masterfully manipulated the media for over two decades.

Strategically, Jolie seems miles ahead of Pitt, but she may lose the long game. Video reportedly exists of the plane incident, and no physical altercation is said to have occurred. People have come to ­admire her, but they love him.

“The whole thing seems very impetuous,” says Jolie’s biographer, Andrew Morton. “Her mother would freeze out people for whatever reason, and now Angie has frozen out Brad — who was far more dignified and just issued a quiet statement.”

By so publicly disparaging the father of her children — some old enough to read what’s being said online — Jolie is endangering her own self-created myth, that of ­depraved Hollywood hellion-turned-St. Angelina, humanitarian nonpareil.

“It’s Bad Dad vs. St. Ange,” Morton says. “The ultimate losers are the children.”

And Jolie’s halo, which may be revoked.

Strategically, Jolie seems miles ahead of Pitt, but she may lose the long game … People have come to ­admire her, but they love him.

It’s easy to forget how deeply weird Angelina Jolie was when she came on the scene in the mid-’90s. There’s an entire generation that knows her as an actress, yes, but more so as the selfless philanthropist, the devoted mother of six, one-half of the most glamorous couple in Hollywood.

Jolie has never used a publicist, and this has only added to the sense — true or not — that she’s authentic. But she is, at heart, an actress. Jolie and her estranged father, actor Jon Voight, share one key trait: Both, she’s said, are “drama queens.”

As a pre-millennial starlet, Jolie was unlike any of her peers. She was in stark opposition to the arch, cosmopolitan WASP-iness of Gwyneth Paltrow, who was then engaged to Pitt. She made Winona Ryder’s eccentric darkness seem purely adolescent. Drew Barrymore, with her trauma, her drug use and mid-20s marriage spree, could not compare.

Jolie carved her own niche, controlled her own narrative, and it was impossible to look away. She was the wildest of the wild. She divulged thoughts and experiences so outlandish, you had to wonder how much was true.

She spoke of self-harm, rampant drug use — heroin, she said, her favorite — her bisexuality, how much she loved knife-play and S&M, her history of insomnia and eating disorders, of committing herself to the psych ward at UCLA for 72 hours, of suicidal ideations and of once hiring a hit man to kill her before changing her mind. All this by age 22.

In 1996, she married British actor Jonny Lee Miller. She said she wed in a white shirt with Miller’s name scrawled in blood on the back.

They divorced in 2000, the same year Jolie began cavorting with her brother, James Haven, on red carpets, making out in front of photographers. When she won the Best Supporting Actress Oscar that year for “Girl, Interrupted,” she gushed over him in her acceptance speech.

“I’m so in love with my brother right now,” she said.

It was too weird, even by Hollywood standards. Haven quickly receded from Jolie’s public life, and within weeks, she wed her “Pushing Tin” co-star Billy Bob Thornton, who was then engaged to actress Laura Dern.

“I left our home to work on a movie,” Dern told Talk magazine in 2000, “and while I was away, my boyfriend got married, and I’ve never heard from him again.”

Jolie and Thornton — then 24 and 44, respectively — embraced their role as Hollywood’s premier freak-show couple. They wore ­vials of each other’s blood around their necks and boasted of wild sex on fur-lined harnesses.

The marriage lasted four years, until the moment Jolie said was life-changing: her decision, while filming “Lara Croft: Tomb Raider” in Cambodia, to adopt a child.

“I knew once I committed to Maddox,” she said, “I would never be self-destructive again.”

Jolie divorced Thornton. “She used the same M.O. as with Brad — accused him of having affairs and being drunk,” says Morton, her biographer. “As soon as Maddox came along, Billy Bob had served his purpose.”

Thus Jolie began her pivot from savage, man-stealing sex bomb to valiant single mom of an indigent child. She began working with the United Nations as a goodwill ambassador. Her time in Cambodia, she said, “made me suddenly realize certain things about the world and how much I had to learn.”

She was a spoiled Hollywood brat who orchestrated her public awakening to the less fortunate and duly expressed shame. As an actress, things were less exciting. She trudged along in a series of unremarkable movies: “Original Sin,” “Life or Something Like It,” “Beyond Borders,” “Alexander.”

It wasn’t until 2004, when she replaced Nicole Kidman in a film called “Mr. & Mrs. Smith,” that Angelina Jolie’s star power ­became stratospheric.

This, of course, was the movie where Pitt and Jolie met and fell in love. At the time, Pitt was married to Jennifer Aniston, and they were considered Hollywood’s golden couple: he the wholesome, Midwestern matinee idol, content with a bong and a beer, she the A-list star of “Friends,” the breezy, sort-of-plain popular girl who had landed the high school quarterback.

Jolie, with or without Pitt’s knowledge, helped extricate him from that marriage expertly. In April 2005, amid rumors of their affair, Pitt flew to visit Jolie and her toddler son in Kenya. Paparazzi somehow knew to be there, and a now-iconic image of Jolie, Pitt and Maddox made the cover of US Weekly.

Aniston had said goodbye to Pitt hours earlier, with no knowledge of his plans. “The world was shocked, and I was shocked,” Aniston told Vanity Fair that year.

Rumors were rampant that Jolie was pregnant with Pitt’s baby — compounding the tabloid narrative that Pitt badly wanted to be a dad but, denied by his career-obsessed wife, had no choice but to leave.

“My worst fear,” Aniston’s friend Kristin Hahn told Vanity Fair, “is that Jen will have to face them having a baby together soon, because that would be beyond painful.”

In July of that year, Jolie adopted a baby girl from Ethiopia, an event she announced in People magazine. She began heavily publicizing her work as a UN ambassador. To paraphrase the old saying about Ginger Rogers and Fred Astaire: Jolie gave Pitt gravitas, and Pitt gave her respectability.

In May 2007, the couple relocated to Namibia, where a heavily pregnant Jolie was again shot by paparazzi, with Pitt and her two children, on otherwise empty sand dunes — this, even though the couple had gotten the Namibian government to ban all journalists from entry so she could give birth there.

After their daughter Shiloh was born, Pitt and Jolie gave a press conference only to Namibian reporters. They sat on a dais with Namibia’s president, Sam Nujoma, formerly the country’s dictator, and began their spin off planet Earth.

In 2007, Jolie began forcing celebrity journalists to sign contracts before interviewing her. These forbade “any questions regarding her personal relationships,” even though her personal relationships were exactly what she was selling. In April of that year, People glowingly reported Jolie’s adoption of a 3-year-old boy from Vietnam.

His mother was still living, and Jolie changed his name from Pham Quang Sang to Pax. He spoke no English, but no matter — the magazine deified Jolie, shooting her in profile, holding her new toddler as they gazed off at the horizon. In less than two years, Jolie and Pitt had a family of four.

“I know we seem crazy, just bringing them in one after the other,” Jolie told the New York Times in 2008, the year she gave birth to twins Knox and Vivienne.

“But we do plan,” she said. “We make sure one is absorbed completely into the family before we add ­another.”

Sanding down their scandalous origin story further, Jolie founded the Maddox Jolie Pitt Foundation in 2006. Though the couple have always said they donate all the money they make from selling family photos to magazines, tax filings raise questions.

In 2008, the year they sold pictures of the twins to People for $14 million, the foundation gave away a little over $6 million. The Office of the UN High Commissioner for Refugees got $100,000; the Council on Foreign Relations — which extended membership to Jolie the year before — got $110,000, and Pitt’s own nonprofit, Make It Right, got $1 million.

Her pretension has become boundless: bragging to a UK radio program that her six kids speak seven languages, including sign language.

The year before, the MJP Foundation listed itself as a “consultant” to Make It Right, earning $204,867 in fees. It also listed nearly $4 million in assets invested with, among others, Goldman Sachs and Merrill Lynch. They donated just $1.4 million, with $333,000 going to the UNHCR, which finally, after nearly $1 million in total donations from MJP, named Jolie a special envoy in 2012.

In 2014, People paid $2 million for the Jolie-Pitt wedding photos. But the magazine doesn’t appear on MJP Foundation filings. However, Asprey, the jewelry company that has commissioned designs from the couple, does.

Reps for Pitt and ­Jolie did not return requests for comment.

As adroit as she has been, Jolie has seemed to lose touch with how she’s actually perceived. Her pretension has become boundless: bragging to a UK radio program that her six kids speak seven languages, including sign language.

“Vivienne really wanted to learn Arabic,” she said.

Vivienne is 8.

Jolie has been publicly on the verge of quitting acting since 2005, ready to sacrifice movie stardom for her kids — never a mention of the nannies — her charities, the world. In November, she begins a visiting professorship at the London School of Economics. She is reportedly seeking to move to England permanently to join the House of Lords, which requires UK citizenship, and remake herself yet again, this time as a politician.

“I’ve never loved being in front of the camera,” she said in 2014.

It’s a transition sparked, most likely, by her failed attempts to become a serious writer-director. Each successive film — 2011’s “In the Land of Blood and Honey,” 2014’s “Unbroken” and last year’s disasterpiece, “By the Sea,” in which she and Pitt played a couple on the verge of divorce — has bombed exponentially.

The Sony hack revealed true ­industry opinion of Jolie. “Minimally talented spoiled brat,” wrote super-producer Scott Rudin to then-Sony chief Amy Pascal. “She’s a camp event and a celebrity and that’s all.”

By seeking to elevate herself by denigrating Pitt, Jolie’s hypocrisy has begun to show. Whatever went down on that plane, it most likely can’t be worse than having her children witness their father’s public humiliation at their mother’s hands — the ultimate irony for a woman who prides herself on motherhood above all.

As she told the New York Times in 2008, she was already worried about what her children might read about their lives. “There’s a lot we’re going to have to explain to them,” she said, “about how public their family is.”

Additional reporting by Isabel Vincent