They were strangers a world apart, brought together by a beer commercial billed as a social experiment. Along the way, they bridge political divides - with a little help from Heineken.

The social media success of the beermaker's new "Open Your World" campaign is especially stunning in light of Pepsi's disastrous attempt earlier this month at showcasing "people from different walks of life coming together in a spirit of harmony."

That tone-deaf ad featured celebrity model Kendall Jenner strutting through a diverse crowd at a protest-turned-street party to hand a police officer a soda, in an attempt to bring the groups together. The Twitterverse exploded in outrage, accusing Pepsi of appropriating the Black Lives Matter movement for profit. The soft drink giant pulled the ad and apologized.

Heineken, too, highlights diversity - through three pairs of people assigned to assemble Ikea-like furniture in a warehouse.

A black feminist and a white conservative who views feminism as "man hating." A climate change skeptic and an environmental activist. A transgender woman and a man who believes transgenderism is "not right."

In the four-and-a-half-minute ad, the transgender woman confides in her furniture-building partner that she often feels attacked and misunderstood. Then she watches a previously recorded video clip of him saying, "you're a man, be a man. Or you're a female, be a female."

The feminist watches a clip of her male partner saying: "Women do need to remember that we need you to have our children."

The climate change skeptic says in his interview clip that environmentalists need to "get off their high horses and start looking for credible problems that actually exist."

Awkward side glances ensue.

A buzzer rings. Each pair is presented with a choice: leave, or stay at the bar they have just built together and discuss their differences over a beer.

The man explains to the transgender woman that he was brought up to view the world as black and white. "But life isn't black and white," he admitted. The other two pairs also find reason to stay.

They clink bottles.

The ad, created by Agency Publicis London, closes with the Heineken logo and the words: "Open your mind. Open your world."

Here is why the Heineken ad works, according to marketing experts:

- The message was simple, yet simultaneously deep. If you're going to have a great conversation, you need a great beer. And that beer is Heineken.

- There was just enough risk to make the ad edgy. It grabs the audience's attention, without gratuitous references to diversity.

- It's authentic, featuring real people, real divisions and real empathy.

The epiphany created by the Heineken ad was an effective way to engender brand loyalty, said Ron Campbell, president of Campbell-Communications, a New York-based consulting firm that helps corporations tap into multicultural markets.

"The topics they have chosen are controversial, so there's always a risk. But there's a greater reward."

Pepsi, on the other hand, threw an ad together with a celebrity and a hot topic they thought was important to African-Americans - "but it was a critical mistake" that he said highlights the lack of diversity in advertising's creative and decision-making table.

Monique Nelson, chair and CEO of UniWorld Group, a multicultural advertising agency with offices in New York, Detroit and Atlanta, said diverse voices, such as those featured in the Heineken ad, are invaluable through the entire creative process "to ensure the message is heard, seen and felt with true intention."

A successful ad that celebrates human differences requires deep knowledge of various culture and communities, she said. "Dipping your toe in the shallow end doesn't count," she said. "This is a deep end sport, like all things dealing with human emotion."

While Heineken appears to be winning so far, it remains to be seen if any real social change - and profits - are created.

"The risk is not following through and letting this be a stunt," Nelson said.