01 - In a large mixing bowl, whisk together the flour, cocoa powder, powdered sugar, and fine sea salt until evenly blended.
02 - Add the cold cubed butter to the dry mixture. Using a pastry cutter or your fingertips, work the butter into the flour until the mixture resembles coarse crumbs with 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, adding the remaining tablespoon of water only 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 11-inch round. Carefully transfer it into a 9-inch tart pan with a removable bottom. Press the dough firmly into the corners and up the sides, then trim any overhanging edges. Prick the base all over with a fork and chill for another 15 minutes.
06 - Preheat the oven to 350°F. Line the crust with parchment paper and fill with baking weights or dried beans. Bake for 15 minutes, then 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 chopped dark chocolate in a heatproof bowl. Heat the heavy cream in a saucepan over medium heat until it just begins to simmer — do not boil. Pour the hot cream over the chocolate and let it stand undisturbed for 2 minutes.
08 - Stir the cream and chocolate together starting from the center and working outward until the mixture is completely smooth and glossy. Add the softened butter and vanilla extract, stirring until fully incorporated.
09 - Pour the ganache into the cooled tart shell, spreading it into an even layer with a spatula.
10 - Scatter the chopped pistachios evenly across the surface of the ganache. Sprinkle lightly with flaky sea salt if desired.
11 - Refrigerate the tart for at least 2 hours, or until the ganache is firmly set.
12 - Remove the tart from the pan. Dip a sharp knife in hot water and wipe dry before each cut for clean, professional edges. Serve chilled or at room temperature.