A visible-light photocatalytic N-radical cascade of hydrazones for the synthesis of dihydropyrazole-fused benzosultams.