Stock-based compensation - Schedule of Classification of Stock-based Compensation in Condensed Consolidated Statements of Operations and Comprehensive Loss (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2026 |
Jun. 30, 2025 |
|
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation | $ 4,354 | $ 2,597 | $ 9,001 | $ 5,232 |
| General and Administrative | ||||
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation | 2,378 | 1,920 | 5,091 | 4,075 |
| Research and Development | ||||
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||||
| Stock-based compensation | $ 1,976 | $ 677 | $ 3,910 | $ 1,157 |