Make the pie dough by whisking 315 grams all-purpose flour, 5 grams granulated sugar, and 5 grams fine salt in a large bowl. Cut in 225 grams cold unsalted butter until the mixture has pea-size pieces and some larger flat shards. Drizzle in 120 milliliters ice water and toss until the dough starts to clump. Add up to 15 milliliters more water only if dry pockets remain. Divide into two discs, wrap well, and chill for 1 hour.
Toast the pecans while the dough chills by spreading 100 grams pecan halves on a baking sheet and baking at 175°C for 6 to 8 minutes until fragrant. Cool completely, then roughly chop. Keep the oven on if you want to preheat later, or turn it off and reheat before baking the pie.
Prepare the salted caramel by combining 150 grams granulated sugar and 60 milliliters water in a small saucepan over medium heat. Cook without stirring, swirling the pan occasionally, until the syrup turns a deep amber color. Remove from the heat and carefully whisk in 60 grams unsalted butter, then slowly whisk in 120 milliliters room-temperature heavy cream. Stir in 3 grams flaky sea salt. Let the caramel cool for 15 minutes.
Make the filling in a large bowl by tossing 900 grams sliced apples with 100 grams light brown sugar, 25 grams all-purpose flour, 8 grams ground cinnamon, 15 milliliters lemon juice, and 5 milliliters vanilla extract. Pour in 120 milliliters of the cooled salted caramel and toss until the apples are evenly coated. Reserve the remaining caramel for serving.
Roll one chilled dough disc into a 30-centimeter circle on a lightly floured surface. Fit it into a 23-centimeter pie dish, letting the excess hang over the edges. Transfer the apple filling into the crust, arranging it evenly and mounding slightly in the center. Sprinkle the chopped toasted pecans evenly over the apples.
Roll the second dough disc into a 30-centimeter circle and place it over the filling, or cut it into strips for a lattice top. Trim the excess dough, leaving about 2 centimeters overhang, then fold and crimp the edges to seal. If using a full top crust, cut several vents in the center.
Whisk 1 large egg with 15 milliliters milk and brush the top crust lightly with the egg wash. Place the pie on a lined baking sheet. Bake at 220°C for 20 minutes, then reduce the oven temperature to 190°C and bake for 40 to 45 minutes more, until the crust is deep golden and the filling is bubbling through the vents or lattice.
Cool the pie on a wire rack for at least 60 minutes before slicing so the filling can set properly. Drizzle slices with the reserved salted caramel just before serving.