Pancoast syndrome occurs when apical tumors, usually NSCLC (Pancoast tumor), invade the brachial plexus, pleura, or ribs, causing shoulder and upper-extremity pain and weakness or atrophy of the ipsilateral hand.