EXCLUSIVE: Hot off co-writing Trance for director Danny Boyle, Joe Ahearne has sold an untitled supernatural thriller pitch to Warner Bros. Dan Lin will produce under his Lin Pictures banner. Lin’s veep Jon Silk came up with an idea they are keeping under wraps and Ahearne expanded it before they pitched it to the studio and came away with a deal. Silk will be co-producer and WB’s Matt Cherniss is overseeing it. It’s the British writer’s second deal with Warner Bros, which recently hired him to rewrite Elf Quest for Rawson Thurber to direct. Thurber wrote the original draft. Ahearne will write Elf Quest and start the new pitch at the same time.

Trance, which stars James McAvoy, Vincent Cassel and Rosario Dawson, is currently in production in London. Boyle will complete the shoot, then put it down to focus on directing the opening ceremonies of the 2012 Summer Olympics in London. He’ll then pick Trance back up and complete the picture. Ahearne, who wrote the feature script with John Hodge, wrote and directed the 2001 BBC telepic that Trance is based on.¬†Ahearne also created the British vampire miniseries Ultraviolet that starred Idris Elba and Stephen Moyer, and Apparitions. He’s repped by ICM and Principal Entertainment, as well as UK-based United Agents.