Graduated college in NC & decided to stay & work for 2024, but home base is in PA - how do I figure out residency

I am from PA, but went to college in NC & graduated Dec 2023. I stayed in NC & have an apartment &  full time job for 2024 while applying for medical school. Parents won't claim me as a dependent. I hold a PA drivers license, will have no PA income & have not lived in PA for 2024. Trying to figure out residency rules & where/how to file state taxes for 2024. Am I now a resident of NC since I have an apartment & job? Or a resident of PA since I am at the moment temporarily living in NC & hopefully moving on for more schooling in 2025? Domicile rules could apply to both NC & PA.