To repair deep rot, you need to seal the wood with a low-viscosity liquid epoxy to stabilize it (which stops the rot from spreading), then reshape and missing or damaged wood with an epoxy putty.