Prep the pan and oven: Heat oven to 350°F (175°C). Line a 9x13-inch baking pan with parchment, leaving overhang on two sides for easy lifting.
Lightly grease the parchment.
Toast the pecans: Spread pecans on a sheet pan and bake for 6–8 minutes until fragrant. Cool, then chop. This step makes a big flavor difference.
Melt butter and chocolate: In a heatproof bowl over a pot of simmering water (or in short microwave bursts), melt butter and chopped chocolate.
Stir until smooth. Let cool 5 minutes.
Whisk in sugars: Add granulated and brown sugar to the chocolate mixture. Whisk until glossy and combined.
Add eggs and vanilla: Whisk in eggs one at a time until the batter thickens slightly and looks satiny.
Stir in vanilla. Do not overmix.
Fold in dry ingredients: Sift flour, cocoa, and salt together. Gently fold into the wet mixture just until no dry streaks remain.
Overmixing can make brownies tough.
Par-bake the base: Spread about two-thirds of the batter into the prepared pan. Smooth the top. Bake 12–15 minutes until the edges look set but the center still jiggles slightly.
Make the caramel: While the base bakes, combine caramels and heavy cream in a small saucepan over low heat.
Stir until fully melted and smooth. Stir in the 1/4 tsp salt.
Layer the pecans and caramel: Sprinkle chopped pecans evenly over the par-baked brownie. Pour warm caramel over the nuts, spreading gently to the edges.
Work quickly so it doesn’t cool in clumps.
Add remaining batter: Dollop the remaining brownie batter over the caramel in spoonfuls. Gently spread or swirl to cover most of the surface. A few peeks of caramel are fine.
Finish baking: Return the pan to the oven and bake 18–22 minutes, until the edges are set and the center is just barely firm.
A few moist crumbs on a tester are perfect.
Cool completely: Set the pan on a rack and cool at least 2 hours. For clean slices, chill 45–60 minutes before cutting.
Optional chocolate topping: Melt chocolate with oil until smooth. Spread a thin layer over the cooled brownies and sprinkle with flaky salt if you like.
Let set before slicing.
Slice and serve: Lift the brownies out using the parchment overhang. Use a warm, sharp knife for neat squares. Wipe the blade between cuts.