There’s a trick to getting that hard-boiled egg texture without overcooking the yolk.