In a bowl, combine the graham cracker crumbs, brown sugar, and melted butter. Mix until evenly combined. Press the mixture firmly into the bottom and sides of a 9-inch pie plate to create an even crust. Bake at 350°F (180°C) for about 10 minutes, until lightly browned. Remove from the oven and allow the crust to cool completely.
In a saucepan, add the butter and granulated sugar. Heat over medium heat, whisking until combined.
Add the sweetened condensed milk and flaky sea salt. Stir continuously until the caramel mixture is smooth and thickened.
Pour the salted caramel filling over the cooled graham cracker crust and spread evenly.
Bake at 350°F (180°C) for about 10–15 minutes, until the filling is set.
In a separate saucepan, heat the heavy cream until warm. Add the dark chocolate pieces and stir until melted and smooth.
Pour the chocolate mixture over the caramel layer and spread evenly.
Bake at 350°F (180°C) for another 5 minutes, just until the chocolate topping is set.
Allow the pie to cool completely, then refrigerate until firm, and slice
Ready to serve.