Set your oven to 375°F and generously butter a 9x13-inch baking dish. The butter prevents sticking and adds richness to those bottom layers.
Whisk together the cream, milk, minced garlic, salt, pepper, and nutmeg in a large bowl until well combined. The nutmeg adds a subtle warmth that makes all the difference — don't skip it.
Arrange half the potato slices in your prepared dish, overlapping them like fallen dominoes. Pour exactly half the cream mixture over the potatoes, making sure it seeps between the layers.
Scatter half the Gruyère evenly over the potatoes, then layer in the remaining potato slices. Pour the rest of the cream mixture on top, then finish with the remaining Gruyère and all of the Parmesan.
Distribute the butter pieces across the surface — they'll melt and create golden spots as the gratin bakes. Cover tightly with foil to trap steam for the first phase of cooking.
Slide into the oven and bake covered for 45 minutes. The potatoes need this steaming time to soften completely before the top can brown properly.
⏱ 45 min
Strip away the foil and continue baking until the surface turns deep golden brown and the cream bubbles vigorously around the edges, 25-30 minutes longer. A knife should glide through the potatoes without resistance.
⏱ 30 min
Allow the gratin to rest for 10 minutes before serving — this settling time prevents the layers from sliding apart when you cut into them.
⏱ 10 min