T-branes and geometry