The tunability of spectral lineshapes, ranging from Lorentzian to Fano profiles, is essential for advancing nanoscale photonic technologies. Conventional far-field techniques are insufficient for studying nanoscale phenomena, particularly within the terahertz (THz) range. In this work, we use a U-shaped resonant ring on a waveguide substrate to achieve precise modulation of Lorentzian, Fano, and antiresonance profiles. THz scattering scanning near-field optical microscopy (s-SNOM) reveals the underlying physical mechanism of these transitions, driven by time-domain phase shifts between the background excitation from the waveguide and the resonance of the U-shaped ring. Our approach reveals a pronounced asymmetry in the near-field response, which remains undetectable in far-field systems. The ability to control spectral lineshapes at the nanoscale presents promising applications in characterizing composite nanoresonators and developing nanoscale phase sensors.
Keywords: fano profiles; nanoscale phase sensors; near-field optical microscopy (s-SNOM); spectral lineshapes.