there’s arguments that Tolkien designed whole languages before he wrote his books – that the stories of Lord of the Rings were just showcases for Quenya and Sindarin and Khuzdul …
there’s plenty of precedence for designing the pieces before the whole (“bottom up approach”) – rather than trying to fit your characters into a story, try to let the story grow around the character …