Why great companies reinvent themselves and spot trends early