Neural networks from first principles — backpropagation, PyTorch, modern optimisers, and regularisation techniques.