As the Taliban appeared on every corner of Kabul, Marwa and her friend – both gay Afghans – took the drastic decision to become husband and wife.
The hurried marriage was conducted with no ceremony or family around them.
"I was telling myself that the Taliban would come and kill me," the 24-year-old told AFP in an interview conducted over WhatsApp.
"I was afraid, I was crying all the time... so I asked my friend to prepare a marriage document," said Marwa, using a pseudonym for security reasons.
Many LGBTQ Afghans are haunted by the Taliban's brutally repressive reign from 1996 to 2001, when gay men were stoned to death or crushed by toppled walls as punishment.
The militants have not officially commented on the subject since they overran Kabul on August 15, but former senior judge Gul Rahim told Germany's Bild newspaper that the death penalty for gay people would return.
More broadly, the Taliban have made it resoundingly clear that they will apply their restrictive interpretation of Islamic law – which is unequivocal on the rights of LGBTQ people.
Terrified for their lives, many young gay men and women have gone underground, erasing all traces of their former lives on social networks, according to NGOs and testimonies collected by AFP.
One gay man was raped and beaten by a group of men who lured him away on the pretence that he would be evacuated, according to LGBTQ rights activists cited by media reports.
"When the Taliban first came, we didn't come out of our homes for about two or three weeks and now we go outside wearing different clothes, trying to look plain," said Abdullah, who spoke to AFP in the western city of Herat.
"Before, we wore trousers and jeans, or T-shirts, and some gay men wore make-up," added the 21-year-old, who also used a pseudonym.
Stay with our families
Under successive US-backed governments over the past 20 years, only slight progress was made in LGBTQ rights, with the issue little understood in Afghanistan.
Even after the Taliban's 2001 ouster, gay sex was still a criminal offence that came with a prison sentence.
People were routinely subjected to discrimination, assault and rape, with little accountability.
Still, tiny pockets of acceptance began to bloom.
"They had a little freedom and some safe places in Kabul," said Artemis Akbary, a prominent Afghan LGBTQ rights activist who fled to Turkey several years ago. "There was a cafe in Kabul where every Friday LGBT friends met each other and they danced."
Abdullah also described how support had begun to build in recent years, thanks to media coverage and access to information.
"This was motivation for all of us to remain in Afghanistan and strengthen the LGBT community here, and at least remain in our country with our own families," he said.
But as cities began to fall to the Taliban over the summer, some found ways to escape the country, including to Pakistan and Iran.
Since their August takeover, the Taliban have replaced the Ministry of Women's Affairs with a department notorious for enforcing strict religious doctrine during their first rule two decades ago.
"For those still present in Kabul, it is clear that the reopening of the Ministry for the Promotion of Virtue and the Prevention of Vice is by far the most dangerous Sword of Damocles," said Arnaud Gauthier-Fawas, a spokesperson for Inter-LGBT France.
The ministry's enforcers were known in the 1990s for carrying whips and were responsible for strictly implementing hardline interpretations of Islam.
The Rainbow Railroad in Canada, a rights group that helps LGBTQ people escape state-sponsored violence, said it had been contacted by more than 700 Afghans since the start of the crisis.
"We have been getting direct reports of LGBTQ people targeted in violent attacks, some of which have been fatal," the group's executive director Kimahli Powell said.
"People are in hiding and in fear for their lives. There is great uncertainty about what comes next."
'Like a bird'
Yahya, who identifies as gay and a gender non-conforming person, says they were beaten by a Taliban guard wielding a blue PVC pipe the first time they dared to venture outside after Kabul fell.
"It's not written on my face that I am this person. But he used a curse word and said, 'Don't you know how to walk like a man?'
"My eyes were full of tears but I could not say anything to him because he had a gun hanging on his other shoulder. So I said nothing, and I just got in a taxi and went."
Yahya, who was beaten by their brother after being outed by a relative eight years ago, told AFP in Kabul that life would get worse "day by day" under the Taliban.
After weeks of frantic contact with international organisations, Yahya was evacuated.
"I'm so very happy, I can't explain it," Yahya told AFP after leaving Afghanistan. "I feel like a bird who is freed from a cage and ready to fly."
AFP changed their name to protect their identity.
For Marwa, who is relying on her new marriage for protection, Afghans who stay must live under the constant threat of death.
"They will be killed by isolation, starving, sadness, depression or stress, or they will be killed by the Taliban or their family," she said.
by by James Edgar in Kabul, with Marine Pennetier in Islamabad, AFP