Sadly if you aren't on a management tract by 40 you're opportunities will be come less and less. Theres only so many Sr Engineers or Architects a company needs. For some reason companies don't mind hiring a hand full of managers for every one Sr engineer. From startups to big companies I've seen this to be true. Just throw a bunch of younger engineers at problems and solutions that are designed by one or two sr engineers.