The Pontiac Trans Am became one of America’s most recognizable performance cars, but its journey was far from predictable.