Cook the cauliflower: Place the cauliflower florets in a medium pot. Add enough room-temperature water to barely cover them. Bring to a simmer, cover, and cook for approximately 2–3 minutes, until just al dente. Drain thoroughly and reserve 1½ cups of the cooking water.
Prepare the oven and dish: Preheat the oven to 400°F. Butter the inside of a medium casserole dish.
Make the roux: Melt 3 tablespoons of butter in a medium saucepan over medium heat. Whisk in the flour and cook for approximately 1–2 minutes, until the flour has absorbed the butter.
Prepare the sauce: Gradually whisk in 1½ cups of warm reserved cauliflower cooking water. Continue whisking until the mixture reaches a boil. Reduce the heat and cook for another 2–3 minutes, whisking until thickened.
Add the cream and seasoning: Whisk in the heavy cream, kosher salt, and freshly ground black pepper. Turn off the heat.
Incorporate the cheese: Add the nutmeg and approximately one-third of the Gruyere, about 1 cup. Stir until melted and incorporated.
Combine the filling: Add the well-drained cauliflower to the cheese sauce. Mix gently to coat the florets evenly. Taste and adjust the seasoning with additional salt and pepper if needed.
Fill the casserole: Transfer the cauliflower mixture into the buttered casserole dish, scraping in all the sauce. Sprinkle the remaining Gruyere over the top.
Make the breadcrumb topping: Melt the remaining 3 tablespoons of butter in a medium sauté pan over medium heat. Add the minced garlic and stir until it begins to sizzle.
Toast the breadcrumbs: Add the panko, fresh thyme leaves, and a pinch of salt and pepper. Stir for approximately 5 minutes, until lightly golden brown.
Assemble: Spread the toasted breadcrumb mixture evenly over the cauliflower and cheese.
Bake: Place the casserole in the preheated oven and bake for approximately 20 minutes, until the topping has darkened a few shades and the sauce bubbles around the edges.
Rest and serve: Remove from the oven and allow the gratin to cool for approximately 10 minutes before serving.