Start by preheating your oven to 350ºF. Grease the cake pans and line the bottoms with parchment paper. Grease the paper lightly with butter to ensure the cakes release easily after baking. This step avoids any risk of tearing.
In a medium-sized bowl, sift the flour and cocoa powder to remove lumps and ensure an even mix. Add sugar, baking powder, baking soda, salt, and espresso granules. Whisk everything together well, as this creates a consistent flavor base for your cake.
In a larger mixing bowl, whisk the egg with buttermilk, oil, coffee, and vanilla extract. This combination creates a smooth liquid base. Using room-temperature ingredients helps them blend better, leading to a more even cake texture.
Gradually add the dry mixture to the wet mixture in batches, whisking until smooth after each addition. Don’t rush this step, as over-mixing can make the cake dense. Stop mixing once everything is incorporated evenly.
Divide the batter evenly into the two prepared pans. Bake in the oven for about 30 minutes. Check at the 25-minute mark—if the center looks slightly shiny but set, it’s ready. The cake will continue to cook slightly as it cools.
Let the cakes cool completely in their pans before removing. If the cakes rise with a dome, trim the tops with a bread knife for a flat surface. This will make frosting easier and neater.
Sift the espresso granules through a fine sieve for a smooth powder. Beat the butter on high until creamy, then add the cream cheese and continue mixing. Lower the speed and slowly add icing sugar, half a cup at a time. Mix in the vanilla extract at the end. Refrigerate the frosting for 30 minutes before decorating.
Place one cake layer on a flat surface. Spread a generous amount of frosting on top. Set the second cake on top, cut side down, and gently press. Use a knife or smoother to spread a thin layer of frosting around the sides and top. Decorate by piping curls of frosting on the top and sprinkle chocolate bits for a final touch.