Context-aware Multimodal AI Reveals Hidden Pathways in Five Centuries of Art Evolution