Warner Bros. has picked up the rights to Archaia Entertainment’s comicbook mini-series “Lucid” for writer-producer Akiva Goldsman to develop and produce as a potential new film franchise. Zachary Quinto’s production banner Before the Door, which created the book, also is on board to adapt the property for the bigscreen.

With “Harry Potter” having ended its run at the studio, WB is on the hunt for new projects to take its place. When it was first introduced at San Diego Comic-Con, in 2009, “Lucid” was described as a tale of what happened to Harry Potter if he grew up and joined the CIA.

Penned by “True Blood”-thesp Michael McMillian and illustrated by Anna Wieszczyk, the four-book series takes place in a parallel universe where magic is real and world leaders have secret agents working for them to fight off supernatural threats.

Main character is a young agent, recently appointed “Protector of the Realm,” who must use his skills as a covert spy and combat mage to stop an occult technology dealer.

No screenwriter has yet been hired to adapt the fantasy actioner.

Before the Door partner Neal Dodson will produce, with Quinto executive producing. Archaia’s editor-in-chief Stephen Christy and PJ Bickett also will serve as exec producers.

“Lucid” was the first comicbook to come out of Quinto’s Before the Door banner with Archaia before following that up with “Mr. Murder is Dead,” written by Victor Quinaz, with art by Brent Schoonover.

Before the Door also recently produced the indie “Margin Call,” in which Quinto co-starred with Kevin Spacey, Penn Badgley, Paul Bettany and Jeremy Irons. Quinto is returning as Spock in the currently lensing “Star Trek” sequel, before returning to Fox’s “American Horror Story” in a larger role.

The “Lucid” deal is the second for Archaia with WB and Goldsman after recently setting up reclusive dinosaur-tale “Bolivar,” based on the upcoming book from Sean Rubin, as an animated feature that Kerry Foster’s Weed Road is also on board to produce and Kealan O’Rourke will write and direct.

Archaia, which recently published “A Tale of Sand,” based on an unproduced feature-length script by Jim Henson and his frequent writing partner Jerry Juhl, has been busy setting up film versions of its books at studios around town, including “Rust,” at Fox, with Simon Kinberg attached to produce. The indie publisher, that typically stays away from traditional superhero fare, is repped by CAA.

Goldsman, who recently exec-produced the “Paranormal Activity” pics, and is a porducer on Universal’s “Lone Survivor,” is readying to make his directorial debut on “A Winter’s Tale,” a supernatural tale that Weed Road is producing.