Weigh the all-purpose flour and sift it into a large bowl. Add the baking powder and the salt and whisk the ingredients together.
Chop the chocolate into small uniform pieces and place it in a small microwave safe bowl. Microwave the chocolate in two 30 second bursts stirring the chocolate after each 30 seconds. Then microwave in 15 second bursts stirring after each 15 second interval. When there a couple of pieces left stir the chocolate until it is all melted. Set aside to cool.
Place the butter and sugar in the bowl of a stand mixer. Mix on medium low speed until the ingredients are combined and the butter and sugar look creamy, about 1 minute Scrape the bottom of the bowl. Add the egg and vanilla extract and beat on medium speed until the egg is fully incorporated.
Add all the dry ingredients to the batter and mix on low speed until the ingredients are thoroughly combined and the dough starts to form a ball. The dough will weigh 530 grams.
Weigh out 280 grams of the dough and put into a small bowl. This dough is your vanilla dough.
Add the espresso and melted chocolate to the dough in the mixer and beat on medium speed until the chocolate is fully incorporated.
Tear off four pieces of wax paper, each about 14 inches long. On one piece, place one of the doughs and shape it into a square. Cover it with another piece of wax paper. With a rolling pin, roll over the paper to roll the dough out to 1/8-inch thickness. It should be about 9 by 9-1/2-inch square. Trim any pieces of dough that exceed the 9-inches to square the dough and add the excess dough to the corners so it the dough is square. Set the first piece of dough aside and repeat these steps with the second piece of dough.
Stack the two pieces of dough (each still sandwiched between the two pieces of wax paper) on top of a board or baking sheet and refrigerate the dough for 20 minutes. The dough is sticky, so it’s only chilled long enough so it’s easier to handle and roll together.