Cross-sectional diagram of a hair shaft showing its three layers: cuticle, cortex, and medulla. The cuticle is the outermost layer, the cortex is the middle layer, and the medulla is the innermost layer.