~て初めて (only after)
grammar4 sentences
The pattern [te-form]+初めて, 'only after doing X did Y happen / only after doing X did I realize Y.' The て-form supplies the precondition and 初めて ('for the first time') signals that Y was realized only then — a common reflective construction.