Preheat your oven to 375°F/190°C.
Make the Basil Sauce (recipe below).
Prep the vegetables. Slice the zucchini and/or squash into rounds, but don’t slice too paper thin, or they’ll get soggy in the oven. Using a sharp knife, shave the kernels of each ear of corn.
Char the corn. Heat a large cast iron skillet over medium-high heat and add 1 1/2 tablespoons of the extra virgin olive oil. Add the corn kernels. Cook the corn for 3-5 minutes until charred in spots, tossing just once or twice to get a nice char on them.
In a large bowl, toss the zucchini and squash slices, charred corn, and jalapeños with the Basil Sauce. Mix well.
Assemble the casserole. Pour the marinara sauce on to the bottom of a 13x9-inch (33x22 cm) baking pan. Spread out half of the zucchini/squash slices on top in a single layer (slight overlapping is okay). Then spoon some more of the corn/jalapeño mixture on top. Sprinkle the zucchini with half of the shredded vegan cheese on top (or dollop with blobs of the Tofu Ricotta, if using). Repeat the layers one more time, zucchini slices and corn first, then cheese.
Sprinkle the top with the panko bread crumbs, a light sprinkle of flaky sea salt, some freshly cracked black pepper, and a drizzle of extra virgin olive oil (the olive oil aids in browning, so don’t skip it). Bake for 25 minutes, rotating the pan 180° halfway through to ensure even browning on the top, or until the top is crispy and golden brown.
Remove from the oven and allow to cool for 20 minutes. Top with sliced basil.