1. The Surface Potential Well & Work Function $\phi_0$
Inside a metallic conductor, valence electrons are delocalized from parent atoms and form a free electron gas roaming throughout the positive ion crystal lattice. However, electrons cannot spontaneously escape into the surrounding vacuum at room temperature. If an electron attempts to cross the surface boundary, it leaves behind an uncompensated positive charge on the metal surface, which exerts a strong electrostatic restoring force pulling the electron back.
Consequently, the surface acts as a potential energy barrier. The minimum energy that must be imparted to a conduction electron at the Fermi level $E_F$ to liberate it completely from the metal surface into the vacuum is defined as the work function $\phi_0$:
$$\phi_0 = E_{\text{vac}} - E_F \quad [\text{expressed in electron-volts, eV}]$$The work function is an intrinsic material property. Caesium has the lowest work function of all known metals ($\phi_0 = 2.14\,\text{eV}$), enabling visible light to eject electrons, whereas Platinum has the highest ($\phi_0 = 5.65\,\text{eV}$), requiring deep (far) ultraviolet photons ($\lambda < 220\,\text{nm}$).