Returning to the question in the title, building muscle does not make you gain weight in the sense we understand it, on the contrary, your muscles are tissues that draw a lot of energy, so even when you are not using them, they burn calories while they are standing, which is almost like a dream.