NIR-II biomimetic nanoplatform optogenetic CD274 editing of HNSCC immunogenicity for enhanced photoimmunotherapy. Here, CD274 is linked to head and neck squamous cell carcinoma.