Connectivity across water realms for ecosystem resilience