In a food processor, pulse the flour, sugar, and salt until combined.
Add the cold cubed butter and pulse until it’s broken into small, pea-sized pieces.
Add 3 tablespoons of ice water and pulse for about 10 seconds. Pinch the dough between your fingertips. If it holds together, it’s ready. If not, add 1 more tablespoon.
Gather the dough into a ball, wrap it in plastic wrap, and chill for at least 1 hour.
Roll the dough into an 11-inch circle and ease it into a 9-inch pie dish. Trim the excess, fold the edges under, crimp, prick the bottom with a fork, and freeze for 20 minutes.
Blind-bake and make the brownie batter
Preheat your oven to 180°C (350°F). Line the frozen crust with parchment paper, fill it with pie weights or dried beans, and bake for 20 minutes.
Meanwhile, melt the butter and dark chocolate in the microwave in short bursts, or in a heatproof bowl over a pot of simmering water, stirring until smooth. Let it cool slightly.
In a large bowl, whisk the eggs, egg yolk, sugar, sifted cocoa powder, salt, and vanilla until combined. Pour in the melted chocolate mixture and whisk for 2 to 4 minutes.
Fold in the flour with a spatula just until no streaks remain.
Fill and bake
Carefully lift out the parchment and pie weights. Pour the brownie batter into the crust and smooth the top.
Brush the crust edges with egg wash, if using, and bake for about 50 minutes, until a toothpick inserted in the center comes out with a few moist crumbs.
Let the pie cool at room temperature for at least 2 hours so the filling can set before slicing.
Notes
Keep the butter very cold for the crust. Cold butter creates steam in the oven, which gives the crust its flaky layers.
Whisk the chocolate, eggs, and sugar for 2 to 4 minutes. Dissolving some of the sugar gives the filling its shiny, crackly top.
Use chopped chocolate bars, not chocolate chips, so the batter melts smooth and silky.
Pull the pie out while the toothpick still has a few moist crumbs. The filling keeps setting as it cools and stays fudgy.
If the crust browns too quickly, cover the edges with foil or a pie shield.
Storing: Keep the pie covered at room temperature for up to 4 days, or freeze the whole pie or slices for up to 3 months.