... especially (on the 777) when the journey from the rest area back to the cockpit is about one and half times the distance of the Wright brothers' first flight(!). You are in fact, relatively close to the cockpit by the time you've stooped your way up in the roof half way back to the front.
Unfortunately, unless you want to quite literally drop onto the head of some hapless passenger - (sorry, 'customer'[!]) - you can only get to the cockpit by stooping all the way down the back first before running the gauntlet through 370+ passengers - all of them.