01 - In a large mixing bowl, whisk together the all-purpose flour, cocoa powder, powdered sugar, and fine sea salt until evenly distributed.
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. Mix gently until the dough just begins to come together. Add the remaining tablespoon of water only if needed. Shape into a flat disc, wrap tightly in plastic, and refrigerate for at least 30 minutes.
04 - On a lightly floured surface, roll the chilled dough to approximately ⅛ inch thickness. Carefully transfer it into a 9-inch tart pan, pressing firmly into the corners. Trim any excess dough from the edges and prick the base evenly with a fork. Chill for another 15 minutes.
05 - Preheat the oven to 350°F. Line the crust with parchment paper and fill with baking weights. Bake for 15 minutes, then remove the weights and paper. Continue baking for 8–10 minutes until the crust appears dry and set. Allow to cool completely in the pan.
06 - 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. Immediately pour the hot cream over the chocolate and let it stand for 2 minutes. Stir gently from the center outward until smooth and glossy. Add the softened butter and vanilla extract, stirring until fully incorporated.
07 - Pour the ganache into the cooled tart shell, smoothing the surface with an offset spatula. Sprinkle the chopped pistachios evenly over the top and finish with a light pinch of flaky sea salt if desired.
08 - Refrigerate the tart for at least 2 hours, or until the ganache is firm and fully set.
09 - Remove the tart from the pan. For clean, professional edges, dip a sharp knife in hot water and wipe dry before each cut. Serve chilled or at cool room temperature.