Prep the pan and oven. Heat your oven to 350°F (175°C). Grease a 9-inch round cake pan (or an 8-inch square), line the bottom with parchment, and grease again. Lightly dust with cocoa to prevent sticking.
Bloom the cocoa. In a heatproof bowl, whisk 3/4 cup boiling-hot coffee (or water) with 1/2 cup cocoa powder until smooth.
Let it sit for 5 minutes to deepen the flavor.
Mix dry ingredients. In a large bowl, whisk 1 1/2 cups flour, 1 cup sugar, 1 teaspoon baking soda, and 1/2 teaspoon salt. Break up any lumps.
Combine wet ingredients. In a separate bowl, whisk 2 large eggs, 1/2 cup sour cream, 1/2 cup milk, 1/3 cup neutral oil, and 2 teaspoons vanilla until smooth.
Melt the chocolate. Gently melt 3 ounces chopped dark chocolate in short bursts in the microwave or over a double boiler. Stir until glossy.
Bring it together. Stir the melted chocolate into the bloomed cocoa.
Then pour this chocolate mixture into the wet ingredients and whisk to combine.
Make the batter. Add the wet mixture to the dry ingredients. Whisk just until you no longer see dry flour. The batter will be thin—this is good.
Optional boost. Stir in 1 teaspoon espresso powder for extra depth or 1/2 cup mini chocolate chips for pockets of fudge.
Bake. Pour into the prepared pan and smooth the top.
Bake 28–34 minutes, until a toothpick comes out with a few moist crumbs (not wet batter). The center should spring back lightly to the touch.
Cool completely. Let the cake cool in the pan for 15 minutes, then turn out onto a rack, peel off the parchment, and cool fully. This prevents the ganache from melting on contact.
Make the ganache frosting. Heat 1/2 cup heavy cream until steaming.
Pour over 4 ounces finely chopped dark chocolate and 2 tablespoons butter. Let sit for 2 minutes, then stir until silky. If needed, warm in 5–10 second bursts to smooth out.
Frost. When the ganache is slightly thick but pourable, pour it over the cooled cake.
Use an offset spatula to nudge it over the edges for a glossy finish. Sprinkle a pinch of flaky sea salt if you like.
Set and serve. Let the ganache set for 20–30 minutes at room temperature. Slice with a warm knife for clean edges.
Enjoy as-is or with a dollop of whipped cream.