Preheat your oven to 350°F (175°C). Line an 8x4-inch loaf pan with parchment paper. In a medium bowl, whisk together flour, baking powder, and salt until well combined.
In a large mixing bowl, beat eggs and sugar together for about 2 minutes until lightened in color. Add the pumpkin puree, oil, vanilla, cinnamon, and nutmeg—beat everything until smooth. Pour in your dry ingredients and mix on low speed just until no streaks remain; overmixing here makes the cake tough.
Pour the batter into your prepared pan and bake for 35-40 minutes. The cake is done when a toothpick inserted into the center comes out clean, with maybe one moist crumb clinging to it. Let cool completely before slicing—this step really matters because warm cake will collapse under the custard.
While your cake cools, whip the heavy cream until soft peaks form. Fold in mascarpone cheese, powdered sugar, vanilla, cinnamon, and salt. The mixture should be thick but spreadable—if it's too stiff, add a tablespoon of milk; if too loose, chill for 10 minutes.
Slice your cooled cake into ½-inch cubes (about 8-10 pieces from the loaf). In a large glass bowl or individual trifle dishes, layer your cake pieces first. Pour about half of your custard over the cake and let it soak in for 5 minutes.
Add another layer of cake pieces, then pour remaining custard on top. Let everything rest at room temperature for at least 30 minutes before serving—this gives the flavors time to meld nicely.
For the pecan topping: toast pecans in a dry skillet over medium heat for about 4 minutes until fragrant and lightly browned, stirring frequently to avoid burning. Mix with brown sugar and salt, then sprinkle generously over your trifle just before serving.