The BJP’s ideological parent is adjusting to a new geopolitical order—and laying the groundwork for the Modi government’s future moves on Pakistan.