First, Starbucks committed coffeeshopicide by targeting local hangouts that were successful, and then spraying their own burnt grounds, driving up real estate and making it impossible for a small, less efficient shop to survive. I saw this happen at several great places in Portland. Then, obviously a career climbing executive at Starbucks tried to get promoted and tightened up hours.
The second wave of late night coffee shop deaths occured with COVID and homelessness (really McKinsey and Purdue opioids, read "When McKinsey Comes to Town") because of safety. No one, big or small, can offer a space and decide which hipster can stay and which has to leave because he is now addicted to drugs and not just Instagram dopamine.
The solution: cities should offer a tax break to a coffee shop that stays open late. And, cities should offer a match where they create a space nearby for homeless people to congregate late night. I'm sure there is a correlation between the number of homeless and soon-to-be homeless creative types.
I'm saddened late night coffee shops have largely disappeared, these Yemeni shops look terrific. And, they bring the social back to meeting places, and I don't mean social media and laptops.