Some is a huge R&D spend, the bill of materials, and assembly techniques.
All of the above require R&D. Techniques for unibody construction for example required a lot of R&D in machining parts, precision opening of ports, and so on.