Preheat your oven to 350°F (175°C).
In a food processor, combine the 40 chocolate wafer cookies, 2 tablespoons of sugar, and 1/2 teaspoon of salt. Process until you have fine crumbs, which should take about 15-30 seconds.
Add the 4 tablespoons of melted butter and pulse a few more times until everything is well combined.
Firmly press this cookie mixture into the bottom and up the sides of a 9-inch pie plate.
Bake the crust on a baking sheet for 18-20 minutes, until it looks dry and set. Let it cool completely on a wire rack.
Get a heatproof bowl ready and place the 1/2 cup of semisweet chocolate chips inside.
In a medium saucepan, whisk together the 1/4 cup cornstarch, 4 large egg yolks, the remaining 1/2 cup of granulated sugar, and 1/4 teaspoon of kosher salt until smooth.
Gradually whisk in the 2 cups half-and-half and the 1/2 cup strong brewed coffee.
Cook this mixture over medium-low heat, stirring constantly with a whisk, for about 6-8 minutes. It will thicken beautifully and coat the back of your spoon.
Carefully strain this warm mocha pudding over the chocolate chips in the bowl, stirring gently until the chocolate is fully melted and the pudding is wonderfully smooth.
Pour this creamy mocha pudding into your cooled pie crust and smooth the top evenly.
To prevent a skin from forming, press a piece of plastic wrap directly onto the surface of the pudding.
Place your pie in the refrigerator to chill for at least 4 hours, or until it's firmly set.
Once the pie is nicely chilled, carefully remove the plastic wrap.
In a separate bowl, whip the 1 cup heavy cream with the remaining 2 tablespoons of granulated sugar until it forms soft, medium peaks.
Gently dollop or spread this fluffy whipped cream over the top of your chilled mocha pie.
For a delightful finishing touch, sprinkle some shaved chocolate over the top before slicing and serving this romantic treat!