In the 2004 blockbuster The Day After Tomorrow he portrayed a student caught in a cataclysmic global cooling event, alongside Dennis Quaid as his father. He then played against type as a frustrated Marine in Jarhead (2005). The same year, he won critical acclaim portraying a role that entered popular shorthand as a "gay cowboy", in the controversial but highly lauded film Brokeback Mountain.