Ingredients

2 c. all-purpose flour

2 tbsp. sugar

1/2 tsp. salt

3 tbsp. cocoa

12 tbsp. cold unsalted butter

1/2 tsp. vanilla extract (optional)

1 1/2 c. half-and-half

3 large egg yolks

3/4 c. dark brown sugar

1 tbsp. cornstarch

2 tbsp. cocoa powder

tsp. salt

4 oz. bittersweet chocolate, finely chopped

3 tbsp. unsalted butter

1 1/2 tsp. vanilla extract

3/4 c. heavy cream

5 tsp. pistachio paste (available at kingarthurflour.com)

2 tsp. sugar

1 tbsp. pistachios, finely chopped

Chocolate shavings, for garnish (optional)

Preparation

Step 1To Make Pie Dough: Stir together flour, sugar, salt, and cocoa in a large bowl.Step 2Use a pastry blender or a fork to cut in butter until the mixture resembles coarse meal with pea-size bits of butter throughout. (Or combine dry ingredients in a food processor, then pulse in butter.)Step 3Drizzle in 1 to 2 tablespoons of ice water at a time (up to 6 tablespoons total), tossing after each addition, and using only enough water to make dough clump together when squeezed. Add vanilla (if using).Step 4Pat dough into a 4-inch circle, tightly cover with plastic wrap or parchment, and chill for 30 minutes or up to 2 days (or freeze for up to 3 months).Step 5To Make Pie: Preheat oven to 400°F. Cut cold dough into 4 pieces and grate into a 9-inch pie plate using large holes of a box grater; work quickly to keep dough cold. Press dough into bottom, sides, and along the rim of pan to uniform thickness. Trim excess dough; crimp edges. Chill 20 minutes.Step 6Line shell with parchment paper and fill with rice or pie weights. Bake 10 to 12 minutes; remove rice and paper and bake until crust is cooked through, 8 to 10 more minutes. Cool on a rack.Step 7Whisk half-and-half, yolks, brown sugar, cornstarch, cocoa, and salt in a medium saucepan. Cook over medium-high heat, stirring constantly, until it thickens and bubbles. Cook 1 minute more; remove from heat. Stir in bittersweet chocolate, butter, and vanilla. Pour into pie shell; cool completely. Transfer to refrigerator to set, at least 2 hours or up to 2 days.Step 8When serving, make a topping by beating heavy cream, pistachio paste, and sugar (if using) in a cold bowl to soft peaks. Sprinkle pie with pistachios and chocolate shavings (if using); add a dollop of pistachio cream to each slice.