Continuous spectral and coupling-strength encoding with dual-gradient metasurfaces | Synapse