A method for depositing a protective coating onto a substrate, wherein the protective coating comprises (i) a moisture-barrier layer which is in contact with the substrate and which comprises a first sub-layer, optionally one or more intermediate sub-layers, and a final sub-layer, (ii) a mechanical-protective layer which is inorganic, and (iii) a gradient layer interposing the moisture-barrier layer and the mechanical-protective layer.