Danny Boyle’s 127 Hours vividly brings to life the much-publicized true story of Aron Ralston, a hiker who in 2003 cut off his own arm after getting it trapped under a boulder while canyoneering in an isolated part of Utah. James Franco plays Ralston as a rad bro with a positive attitude and a love of the outdoors, delivering a tour de force performance that’s full of both physicality and nuance.

You’d think that knowing the ending to 127 Hours would rob it of some power, but that foreknowledge actually works in the movie’s favor. Knowing what Ralston will eventually do makes his unsuccessful (and heroic) efforts to free himself all the more heartbreaking. These include chipping away the rock with his dull pocketknife and attempting to rig a pulley system to lift the wedged boulder off his crushed forearm.

But before the grim moment when Ralston gets rocked, 127 Hours is an exuberant celebration of physical activity and the great outdoors. Ralston dons his Phish T-shirt, packs a bag and sets out for adventure, along the way bumping into two young female hikers (Kate Mara and Amber Tamblyn) and acting as their guide. Director Danny Boyle, fresh off the Oscar triumph of his Slumdog Millionaire, is a filmmaker known for injecting energy into his work, and the first half hour of 127 Hours is full of quick cuts, swooping helicopter shots and flash-bang montages of everything from Ralston riding his bike across the desert to sipping water out of a saddlebag. It all works perfectly.