v3.25.2
Debt - Narrative (Details)
3 Months Ended 12 Months Ended
Feb. 11, 2025
USD ($)
Nov. 27, 2024
USD ($)
shares
Nov. 20, 2024
USD ($)
Nov. 04, 2024
USD ($)
note
$ / shares
shares
Jun. 17, 2024
USD ($)
day
$ / shares
shares
May 01, 2024
$ / shares
Aug. 31, 2024
USD ($)
agreement
May 31, 2025
USD ($)
note
$ / shares
shares
May 31, 2024
USD ($)
note
agreement
May 31, 2023
USD ($)
Jun. 07, 2024
USD ($)
Jul. 25, 2022
USD ($)
Debt Instrument [Line Items]                        
Restricted cash               $ 38,300,000        
Gain (loss) on change in fair value of debt               (85,439,000) $ (7,401,000) $ 0    
Conversion of debt to common stock               104,945,000 52,060,000 0    
Loss on conversion of debt               $ 33,612,000 $ 0 0    
Number of SAFE agreements             2 2 2      
Proceeds from SAFE agreement             $ 12,000,000 $ 12,000,000 $ 12,000,000      
Discount percentage of safe agreement for future equity method investment               90.00%        
Proceeds from convertible notes               $ 450,000,000 0 0    
Stock repurchased during period, value       $ 31,300,000       31,342,000        
Purchase of prepaid forward contract               52,736,000 0 0    
Stock repurchased and retired during period (in shares) | shares       4,300,000                
Shares repurchased, cost per share (in dollars per share) | $ / shares       $ 7.36                
Purchase of capped call options               $ 51,750,000 0 $ 0    
Debt instrument, redemption price, percentage       100.00%                
Interest maturity closing period 18 months                      
Discount percentage of capitalize interest expense               100.00%        
Prepaid Forward Repurchase                        
Debt Instrument [Line Items]                        
Purchase of prepaid forward contract       $ 52,700,000                
Prepaid Forward Repurchase Transaction                        
Debt Instrument [Line Items]                        
Purchase of prepaid forward contract               $ 52,700,000        
Derivative instrument (in shares) | shares               7,200,000        
Net forward sales price (in dollars per share) | $ / shares               $ 7.36        
Capped Call Transaction                        
Debt Instrument [Line Items]                        
Purchase of prepaid forward contract               $ 51,800,000        
Cap call price (in dollars per share)               14.72        
Medium-Term Note                        
Debt Instrument [Line Items]                        
Long-term debt               $ 869,485,000        
Deferred costs               $ 181,329,000 501,000      
Convertible Debt                        
Debt Instrument [Line Items]                        
Purchase of capped call options       51,800,000                
Starion Term Loan | Medium-Term Note                        
Debt Instrument [Line Items]                        
Promissory note amount                       $ 15,000,000.0
Interest Rate               6.50%        
Other long-term debt               $ 7,061,000 10,021,000      
Yorkville Convertible Debt                        
Debt Instrument [Line Items]                        
Number of shares sold in transaction (in shares) | shares         100,000              
Yorkville Convertible Debt | Convertible Debt                        
Debt Instrument [Line Items]                        
Promissory note amount                 $ 92,100,000      
Number of prepaid advance agreements | agreement                 2      
Gain (loss) on change in fair value of debt         $ 500,000     $ 4,100,000        
Debt conversion, converted instrument, shares issued (in shares) | shares               4,800,000        
Number of shares sold in transaction (in shares) | shares         100,000              
Floor price (in dollars per share) | $ / shares         $ 2.00 $ 3.00            
Weighted average common stock price per share (in dollars per share) | $ / shares         $ 3.00              
Trading days | day         5              
Debt instrument, convertible, threshold consecutive trading days | day         7              
Interest Rate               0.00%        
Other long-term debt               $ 0 $ 80,243,000      
Yorkville Convertible Debt, Initial YA Notes | Convertible Debt                        
Debt Instrument [Line Items]                        
Conversion of debt to common stock               $ 71,300,000        
Yorkville Convertible Debt, May PPA | Convertible Debt                        
Debt Instrument [Line Items]                        
Debt conversion, converted instrument, shares issued (in shares) | shares               19,100,000        
Yorkville Convertible Debt, YA Notes | Convertible Debt                        
Debt Instrument [Line Items]                        
Sale of stock, commitment fee amount               $ 2,100,000        
CIM Promissory Note                        
Debt Instrument [Line Items]                        
Extinguishment of debt               $ 9,400,000        
CIM Promissory Note | Notes payable                        
Debt Instrument [Line Items]                        
Promissory note amount                     $ 125,000,000  
Long-term debt                     $ 125,000,000  
CIM Promissory Note | Notes payable | CIM Warrants                        
Debt Instrument [Line Items]                        
Warrants outstanding (in shares) | shares               9,265,366        
Convertible Senior Notes Due 2030 | Convertible Debt                        
Debt Instrument [Line Items]                        
Promissory note amount       $ 450,000,000                
Interest Rate       2.75%                
Proceeds from convertible notes       $ 435,200,000                
Stock repurchased during period, value       $ 84,000,000                
Debt Instrument, convertible, conversion ratio       0.1025431                
Convertible Senior Notes Due 2030 | Convertible Debt | Debt Conversion Terms One                        
Debt Instrument [Line Items]                        
Trading days | note       20                
Debt instrument, convertible, threshold consecutive trading days       30                
Debt instrument, convertible, threshold percentage of stock price trigger       130.00%                
Debt instrument, redemption price, percentage       100.00%                
Convertible Senior Notes Due 2030 | Convertible Debt | Convertible Debt                        
Debt Instrument [Line Items]                        
Gain (loss) on change in fair value of debt       $ 13,500,000                
Embedded derivative, fair value       149,900,000                
Host financial instrument, fair value       $ 286,600,000                
Convertible Senior Notes Due 2030 | Convertible Debt | Embedded Derivative Financial Instruments                        
Debt Instrument [Line Items]                        
Gain (loss) on change in fair value of debt     $ (103,000,000)         $ (89,600,000)        
Long-term debt               273,300,000        
Derivative Liability     $ 252,900,000                  
Deferred costs               $ 176,700,000        
Convertible Notes, senior unsecured | Convertible Debt                        
Debt Instrument [Line Items]                        
Interest Rate       2.75%       2.75%        
Conversion price (in dollars per share) | $ / shares       $ 9.75                
Other long-term debt               $ 450,000,000 0      
Macquarie Promissory Note                        
Debt Instrument [Line Items]                        
Gain (loss) on extinguishment of debt $ (11,800,000)                      
Macquarie Promissory Note | Construction in progress                        
Debt Instrument [Line Items]                        
Percentage of gain (loss) on extinguishment of debt 90.00% 90.00%                    
Gain (loss) on extinguishment of debt $ (10,600,000)                      
Macquarie Promissory Note | Other Capitalized Property Plant and Equipment                        
Debt Instrument [Line Items]                        
Percentage of gain (loss) on extinguishment of debt 10.00%                      
Gain (loss) on extinguishment of debt $ (1,200,000)                      
Macquarie Promissory Note | Notes payable                        
Debt Instrument [Line Items]                        
Promissory note amount   $ 150,000,000                    
Debt instrument, covenant, prepayment prior to the date four months maturity   1.11                    
Debt instrument, covenant, prepayment after to the date four months maturity   1.20                    
Debt instrument, covenant, prepayment after to the date seven months maturity   1.35                    
Repayment fee   135.00%                    
Fair value, net liability   $ 16,500,000                    
Macquarie Promissory Note | Notes payable | Macquarie Warrants                        
Debt Instrument [Line Items]                        
Warrants outstanding (in shares) | shares   1,035,197                    
SMBC Loan | Medium-Term Note                        
Debt Instrument [Line Items]                        
Other long-term debt               375,000,000 $ 0      
SMBC Loan | Line of Credit                        
Debt Instrument [Line Items]                        
Deferred costs               $ 4,400,000        
Other long-term debt $ 375,000,000                      
SMBC Loan | Line of Credit | Secured Overnight Financing Rate (SOFR)                        
Debt Instrument [Line Items]                        
Debt instrument, interest percentage               7.82%        
SMBC Loan | Line of Credit | Variable Rate, Closing Date Through Six Month Anniversary | Base Rate                        
Debt Instrument [Line Items]                        
Debt instrument, interest percentage 2.50%                      
SMBC Loan | Line of Credit | Variable Rate, Six Month Anniversary Through One Year Anniversary | Base Rate                        
Debt Instrument [Line Items]                        
Debt instrument, interest percentage 3.50%                      
SMBC Loan | Line of Credit | Variable Rate, After One Year Anniversary While SOFR Loans Bear Interest | Secured Overnight Financing Rate (SOFR)                        
Debt Instrument [Line Items]                        
Debt instrument, interest percentage 4.50%                      
SMBC Loan | Line of Credit | Variable Rate, After Six Month Anniversary | Secured Overnight Financing Rate (SOFR)                        
Debt Instrument [Line Items]                        
Debt instrument, interest percentage 3.50%                      
SMBC Loan | Line of Credit | Variable Rate, After Six Month Anniversary To One Year Anniversary | Secured Overnight Financing Rate (SOFR)                        
Debt Instrument [Line Items]                        
Debt instrument, interest percentage 4.50%                      
SMBC Loan | Line of Credit | Variable Rate, After One Year Anniversary | Secured Overnight Financing Rate (SOFR)                        
Debt Instrument [Line Items]                        
Debt instrument, interest percentage 5.50%