Sinusoidal PE: PE[pos, 2i] = sin(pos / 10000^(2i/d)), PE[pos, 2i+1] = cos(pos / 10000^(2i/d)).
Each dimension uses a different frequency. Low i: changes fast (handles fine-grained position). High i: changes slowly (handles long-range coarse position).