01 - In a large mixing bowl, whisk together the all-purpose flour, cocoa powder, powdered sugar, and fine sea salt until evenly combined.
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 some pea-sized pieces remaining.
03 - Add the egg yolk and 2 tablespoons of cold water to the crumb mixture. Mix gently until the dough just comes together, adding the remaining tablespoon of water if the dough feels too dry.
04 - Shape the dough into a flat disc, wrap tightly in plastic wrap, and refrigerate for at least 30 minutes until firm.
05 - On a lightly floured surface, roll the chilled dough out to an even thickness 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 or dried beans. Bake for 15 minutes, then carefully remove the weights and parchment. Continue baking for 8 to 10 minutes until the crust looks 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 saucepan over medium heat until it just begins to simmer around the edges. Remove from heat immediately and pour the hot cream over the chocolate. Let it stand for 2 minutes to melt the chocolate.
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 the ganache has a silky texture.
09 - Pour the finished ganache into the completely cooled tart shell, using a spatula to smooth the top into an even layer.
10 - Sprinkle the roughly chopped pistachios evenly over the surface of the ganache. Add a light pinch of flaky sea salt if desired to enhance the flavors.
11 - Refrigerate the assembled tart for at least 2 hours until the ganache is fully set and firm to the touch.
12 - Remove the tart from the pan and transfer to a serving plate. Dip a sharp knife in hot water and wipe dry before each cut for clean, professional-looking slices.