01 - In a large mixing bowl, whisk together the all-purpose flour, cocoa powder, powdered sugar, and fine sea salt until evenly blended.
02 - Add the cold cubed butter to the flour mixture. Using a pastry cutter or your fingertips, work the butter into the dry ingredients until the mixture resembles coarse crumbs with pea-sized pieces.
03 - Add the egg yolk and 2 tablespoons of cold water. Mix gently until the dough begins to come together. Add the remaining tablespoon of water only if the dough feels too dry. Shape into a flat disc.
04 - Wrap the dough disc tightly in plastic wrap and refrigerate for at least 30 minutes to firm up before rolling.
05 - On a lightly floured surface, roll out the chilled dough into a circle large enough to fit a 9-inch tart pan. Gently press the dough into the bottom and up the sides of the pan. Trim any excess edges and prick the base evenly with a fork. Refrigerate for 15 minutes.
06 - Preheat the oven to 350°F. Line the tart crust with parchment paper and fill with baking weights. Bake for 15 minutes, then remove the weights and parchment. Continue baking for 8 to 10 minutes until the crust appears dry and set. Allow to cool completely in the pan.
07 - Place the finely chopped dark chocolate in a heatproof bowl. Heat the heavy cream in a small saucepan over medium heat until it just begins to simmer. Remove from heat immediately and pour over the chocolate. Let it sit undisturbed for 2 minutes.
08 - Stir the chocolate and cream mixture gently starting from the center and working outward until smooth and glossy. Add the softened butter and vanilla extract, stirring until fully incorporated and silky.
09 - Pour the ganache into the completely cooled tart shell, using an offset spatula to smooth the surface into an even layer.
10 - Scatter the roughly chopped pistachios evenly across the surface of the ganache. Finish with a light pinch of flaky sea salt if desired.
11 - Refrigerate the tart for at least 2 hours, or until the ganache is fully set and firm to the touch.
12 - Remove the tart from the pan. Dip a sharp knife in hot water and wipe dry before each cut to achieve clean, professional edges. Serve chilled or at room temperature.