But behind the solemn speeches, flag-draped casket, and national mourning lies an intricate, multi-layered process.