Preheat oven to 350°F. Line two or three 8-inch round cake pans with parchment paper circles and spray with baking spray or butter the cake pans and dust with cocoa powder.
In a large bowl, whisk together the flour, granulated sugar, brown sugar, cocoa powder, baking powder, baking soda, and salt.
2 cups (282g) all-purpose flour, 1 cup (200g) granulated sugar, 3/4 cup (100g) light brown sugar, 2/3 cup (56g) unsweetened cocoa powder, 1 teaspoon baking powder, 1 teaspoon baking soda, 3/4 teaspoon salt
In another bowl, whisk together the eggs, sour cream, oil, and vanilla extract. Gradually add the wet ingredients to the dry ingredients, mixing just until combined. Scrape the bottom and sides of the bowl, then mix in the hot coffee or water.
2 large eggs, 3/4 cup sour cream, 2/3 cup vegetable oil, 1 cup (240ml) hot water, 1 teaspoon pure vanilla extract
Evenly divide the batter between the prepared pans and bake for 25-30 minutes (30 to 35 minutes for just 2 cake layers) until a toothpick inserted into the center of the cakes comes out clean. Cool for 10 minutes in the pans before turning out onto wire racks to cool completely.
Make the caramel by adding the sugar to a dry, medium saucepan over medium heat. Stir constantly with a wooden spoon or heatproof spatula until melted. At first the sugar will start to clump together, then it will eventually melt into a light amber-colored liquid. Once melted, stir in the butter. The caramel will bubble up when you add in the butter, so be careful. Add the heavy cream while stirring until combined, then let the caramel boil for 1 minute without stirring.
1 cup (200g) granulated sugar, 6 Tablespoons salted butter, 1/2 cup heavy cream
Remove the pan from the heat and stir in the vanilla extract and salt. The caramel will be very thin at first but it will thicken as it cools. You want it pourable but thick, which is usually just slightly warm to the touch. If it cools too much you can reheat in the microwave or over low heat on the stove until it is pourable.
1 teaspoon pure vanilla extract, 1/2 to 1 teaspoon fine sea salt
Make the frosting by combining the cream, corn syrup, and butter in a medium saucepan over medium-low heat. Heat just until bubbles start to appear around the edges of the pan. Pour over the chopped chocolate and cocoa powder in a medium bowl and let sit for 5 minutes without stirring. Whisk gently until the chocolate is melted and smooth. Stir in sour cream. Let cool until thick enough to spread. You can refrigerate the bowl for 20 minutes to speed the process up but don't leave it longer than that or the frosting will be too firm for frosting.
1 cup heavy cream, 3 Tablespoons corn syrup, 2 Tablespoons salted butter, 12 ounces dark chocolate, 3 Tablespoons cocoa powder, 1/2 cup sour cream
To assemble, place one cake layer on a cake plate and top with about 1/3 of the fudge frosting, spreading it into an even layer. Drizzle about 1/3 of the cooled caramel sauce over the fudge frosting, then sprinkle with 1/3 cup of the chopped pecans. Repeat with the remaining cake layers, fudge frosting, pecans, and caramel, coating the outside of the cake with fudge frosting and decorating the top with whole pecans and a caramel drip, if desired.
1 1/2 cups whole pecan halves