Tech gains offset geopolitical risks