Summary of significant accounting policies | Summary of significant accounting policies (a) Use of estimates The preparation of consolidated financial statements in conformity with U.S. generally accepted accounting principles (GAAP) requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities and disclosure of contingent assets and liabilities at the date of the consolidated financial statements and the reported amounts of revenues and expenses during the reporting period. Actual results could differ from such estimates. (b) Principles of consolidation The accompanying consolidated financial statements include the accounts of the Company and its wholly-owned subsidiaries: Spark Therapeutics Ireland Limited, Spark Therapeutics UK Limited, Spark Therapeutics Argentina Limited, Spark Therapeutics Switzerland Limited, Spark Therapeutics Germany Limited and Spark Therapeutics France Limited. All intercompany balances and transactions have been eliminated in consolidation. (c) Fair value of financial instruments Management believes that the carrying amounts of the Company’s financial instruments, including cash equivalents, trade and other receivables, accounts payable and accrued expenses, approximate fair value due to the short-term nature of those instruments. Management believes the carrying value of debt approximates fair value as the interest rates are reflective of the rate the Company could obtain on debt with similar terms and conditions. (d) Cash and cash equivalents The Company considers all highly liquid investments that have maturities of three months or less when acquired to be cash equivalents. Cash equivalents as of December 31, 2017 and 2018 consisted of money market funds. (e) Marketable securities The Company classifies its marketable security investments as available-for-sale securities and the securities are stated at fair value. At December 31, 2018 , the balance in the Company’s accumulated other comprehensive loss included activity related to the Company’s available-for-sale marketable securities. There were no material realized gains or losses recognized on the maturity of available-for-sale securities during the year ended December 31, 2018 and, as a result, the Company did not reclassify any amount out of accumulated other comprehensive loss for the same period. In addition, as part of the license and stock purchase agreements entered into with Selecta Biosciences, Inc. (Selecta) (Note 16), the Company purchased common shares of Selecta. The investment is classified as available-for-sale and is stated at fair value, and beginning in 2018 changes in fair value are recognized in the consolidated statements of operations and comprehensive income (loss). (f) Trade and other receivables Trade accounts receivable are recorded at gross value, and reserves for other sales-related allowances, such as discounts, rebates, services and insurance co-pay assistance, are included in accrued expenses on the Company's consolidated balance sheets. (g) Inventory Inventory is stated at the lower of cost or net realizable value and consists of those costs incurred following FDA approval of LUXTURNA. Cost is determined using the first-expired, first-out (FEFO) method. The Company reserves for potentially excess, dated or obsolete inventories based on an analysis of inventory on hand compared to forecasts of future sales. Based on management's assessment, no such inventory reserve is necessary as of December 31, 2018 . (h) Property and equipment Property and equipment consists of computer and laboratory equipment, software, office equipment, furniture and leasehold improvements and is recorded at cost. Maintenance and repairs that do not improve or extend the lives of the respective assets are expensed to operations as incurred. Upon disposal, retirement or sale, the related cost and accumulated depreciation are removed from the accounts and any resulting gain or loss is included in the results of operations. Property and equipment are depreciated on a straight-line basis over their estimated useful lives. The Company uses a life of three years for computer equipment and software, five years for laboratory and office equipment and seven years for furniture. Leasehold improvements are amortized over the shorter of the lease term or the estimated useful life of the asset . The Company reviews long-lived assets, such as property and equipment, for impairment when events or changes in circumstances indicate the carrying value of the assets may not be recoverable. Recoverability is measured by comparison of the book values of the assets to estimated undiscounted future cash flows that the assets are expected to generate. If the carrying amount of an asset exceeds its estimated future cash flows, then an impairment charge is recognized for the amount by which the carrying value of the asset exceeds the fair value of the asset. No impairment charges have been recorded since inception. (i) Net product sales LUXTURNA is distributed in the United States through two distribution models: (1) the traditional buy-and-bill model where the treatment center purchases and pays for the product and then submits a claim to the payer; and (2) the Company's innovative contracting and distribution model, branded Spark PATH (Pioneering Access to Healthcare), which includes options for direct-to-payer contracting and outcomes-based rebates. The Company’s net product sales represent total gross product sales in the United States less allowances for estimated prompt-payment discounts, service fees, rebates and insurance co-payment assistance. Allowances are established based on contractual terms and management’s reasonable estimates, as well as the expectation that 100% of the prompt-payment discounts will be earned. Product shipping and handling costs and distributor reporting fees are included in cost of product sales. The Company evaluated the variable consideration under Accounting Standards Codification (ASC) Topic 606, Revenue from Contracts with Customers (ASC 606), as it relates to the outcomes-based method and determined that based on historical clinical data, no rebate reserves were required for the year ended December 31, 2018 . All sales are recognized when control is transferred, which follows the Company’s verification of a scheduled LUXTURNA treatment. The Company’s product return policy is to provide non-monetary credit or product replacement. As the product is sold in direct relation to a scheduled treatment, Company management estimates that there is minimal risk of product return, including the risk of product expiration. (j) Contract revenue Under certain of the Company’s licensing, supply and collaboration agreements, it is entitled to receive payment upon the achievement of contingent milestone events or the performance of obligations. The Company recognizes revenue based on guidance in ASC 606. Prior to 2018, the Company generated revenue solely through license and collaborative arrangements. In the first quarter of 2018, the Company adopted ASC 606. The adoption of this standard resulted in no cumulative adjustment to the Company’s consolidated financial statements. ASC 606 applies to all contracts with customers, except for contracts that are within the scope of other standards, such as leases, insurance, collaboration arrangements and financial instruments. To determine revenue recognition for arrangements that an entity determines are within the scope of ASC 606, the entity performs the following five steps: (i) identify the contract(s) with a customer; (ii) identify the performance obligations in the contract; (iii) determine the transaction price; (iv) allocate the transaction price to the performance obligations in the contract; and (v) recognize revenue when (or as) the entity satisfies a performance obligation. At contract inception, once the contract is determined to be within the scope of ASC 606, the Company assesses the goods or services promised within each contract and determines those that are performance obligations and assesses whether each promised good or service is distinct. The Company then recognizes as revenue the amount of the transaction price that is allocated to the respective performance obligation when (or as) the performance obligation is satisfied. Amounts received prior to satisfying the revenue recognition criteria are recorded as deferred revenue on the Company’s consolidated balance sheet. Amounts expected to be recognized as revenue in the next 12 months following the balance sheet date are classified as current liabilities. (k) Research and development and in-process research and development Research and development costs are expensed as incurred. Research and development expenses consist of internal and external expenses. Internal expenses include employee compensation and overhead. External expenses include development, clinical trials, statistical analysis and report writing and regulatory compliance costs incurred with clinical research organizations and other third-party vendors. At the end of the reporting period, the Company compares payments made to third-party service providers to the estimated progress toward completion of the research or development objectives. Such estimates are subject to change as additional information becomes available. Depending on the timing of payments to the service providers and the progress that the Company estimates has been made as a result of the service provided, the Company may record net prepaid or accrued expense relating to these costs. When the Company is reimbursed by a collaboration partner for work performed, the costs incurred are recorded as research and development expenses and the related reimbursement is recorded as a reduction to research and development expenses. Upfront and milestone payments made to third parties that perform research and development services on the Company’s behalf are expensed as services are rendered. Costs incurred in obtaining technology licenses outside of business combinations are charged to research and development expense as acquired in-process research and development if the technology licensed has not reached technological feasibility and has no alternative future use. (l) Income taxes The Company recognizes deferred tax assets and liabilities for temporary differences between the financial reporting basis and the tax basis of its assets and liabilities and the expected benefits of net operating loss and tax credit carryforwards. The impact of changes in tax rates and laws on deferred taxes, if any, is applied during the years in which temporary differences are expected to be settled and net operating losses and tax credits used and is reflected in the consolidated financial statements in the period of enactment. The measurement of deferred tax assets is reduced, if necessary, if, based on weight of the evidence, it is more likely than not that some, or all, of the deferred tax assets will not be realized. As of December 31, 2017 and 2018 , the Company has concluded that a full valuation allowance is necessary for its deferred tax assets. (m) Stock-based compensation and fair value of stock The Company accounts for its stock-based compensation awards in accordance with ASC Topic 718, Compensation-Stock Compensation (ASC 718). ASC 718 requires all stock-based payments to employees, including grants of employee stock options and restricted stock units and modifications to existing stock options, to be recognized in the consolidated statement of operations and comprehensive income(loss) based on their fair values. The Company uses the Black-Scholes option pricing model to determine the fair value of options granted. The Company’s stock-based awards are subject to either service or performance-based vesting conditions. Compensation expense related to awards to employees and directors with service-based vesting conditions is recognized on a straight-line basis based on the grant date fair value over the associated service period of the award, which is generally the vesting term. Compensation expense related to awards to non-employees with service-based vesting conditions is recognized based on the then-current fair value at each financial reporting date prior to the measurement date over the associated service period of the award, which is generally the vesting term. Compensation expense related to awards to employees with performance-based vesting conditions is recognized based on the grant date fair value over the requisite service period to the extent achievement of the performance condition is probable. The Company estimates the fair value of its option awards to employees and directors using the Black-Scholes option pricing model, which requires the input of subjective assumptions, including (i) the expected stock price volatility, (ii) the calculation of the expected term of the award, (iii) the risk-free interest rate and (iv) expected dividends. Due to the lack of substantial Company-specific historical and implied volatility data of its common stock, the Company has based its estimate of expected volatility on the historical volatility of a group of similar companies that are publicly traded. When selecting these public companies on which it has based its expected stock price volatility, the Company selected companies with comparable characteristics to it, including enterprise value, risk profiles, position within the industry and with historical share price information sufficient to meet the expected term of the stock-based awards. The Company computes historical volatility data using the daily closing prices for the selected companies’ shares during the equivalent period of the calculated expected term of the stock-based awards. The Company will continue to apply this process until a sufficient amount of historical information regarding the volatility of its own stock price becomes available. The Company has estimated the expected term of its employee stock options using the “simplified” method, whereby, the expected term equals the arithmetic average of the vesting term and the original contractual term of the option due to its lack of sufficient historical data. The risk-free interest rates for periods within the expected term of the option are based on the U.S. Treasury securities with a maturity date commensurate with the expected term of the associated award. The Company has never paid, and does not expect to pay, dividends in the foreseeable future. The Company accounts for forfeitures when they occur. Consistent with the guidance in ASC Topic 505-50, Equity-Based Payments to Non-Employees , the fair value of each non-employee stock option and restricted stock award is estimated at the date of grant using the Black-Scholes option pricing model with assumptions generally consistent with those used for employee stock options, with the exception of expected term, which is over the contractual life. (n) Net loss per common share Basic and diluted net loss per common share is determined by dividing net loss by the weighted average number of common shares outstanding during the period. For all periods presented, unvested restricted shares and common stock options have been excluded from the calculation because their effect would be anti-dilutive. Therefore, the weighted average shares outstanding used to calculate both basic and diluted loss per share are the same. The following potentially dilutive securities have been excluded from the computations of diluted weighted average shares outstanding for the years ended December 31, 2016 , 2017 and 2018 as they would be anti-dilutive: December 31, 2016 2017 2018 Unvested restricted common shares 251,809 798,501 942,776 Options issued and outstanding 4,181,993 3,522,874 3,487,376 Amounts in the table above reflect the common stock equivalents of the noted instruments. (o) Deferred rent Rent expense, including rent holidays and scheduled rent increases, is recorded on a straight-line basis over the term of the lease commencing on the date the Company takes possession of the leased property. Tenant improvement allowances from the lessor are included in the accompanying consolidated balance sheet as deferred rent and are amortized as a reduction of rent expense over the term of the lease from the possession date. Deferred rent as of December 31, 2017 and 2018 represents the net excess of rent expense over the actual cash paid for rent and the tenant improvement allowances received. (p) Other comprehensive loss The Company follows the provisions of ASC Topic 220, Comprehensive Income , which establishes standards for the reporting and display of comprehensive income and its components. Comprehensive income (loss) is defined to include all changes in equity during a period except those resulting from investments by owners and distributions to owners. Comprehensive income (loss) includes gains and losses related to changes in the fair value of available-for-sale securities, changes in the fair value of an interest rate swap and foreign currency translation. The accumulated balances related to each component of other comprehensive income (loss) are summarized as follows (in thousands): Net unrealized (loss) gain on available-for-sale securities Unrealized loss on interest rate swap Foreign currency translation adjustments Accumulated other comprehensive loss Balance as of December 31, 2017 $ (5,964 ) $ — $ 50 $ (5,914 ) Reclassification of unrealized loss on equity investment to accumulated deficit 5,002 — — 5,002 Current period other comprehensive income (loss) 586 (641 ) (83 ) (138 ) Balance as of December 31, 2018 $ (376 ) $ (641 ) $ (33 ) $ (1,050 ) (q) Recent accounting pronouncements In February 2016, the Financial Accounting Standards Board (FASB) issued Accounting Standards Update (ASU) 2016-02, Leases . ASU 2016-02 requires lessees to apply a two-method approach, classifying leases as either finance or operating leases based on the principle of whether or not the lease is effectively a financed purchase. This classification will determine whether lease expense is recognized based on an effective interest method or on a straight line basis over the term of the lease, respectively. Lessees are also required to record a right-of-use (ROU) asset and a lease liability for all leases with a term greater than 12 months. Leases with a term of 12 months or less will be accounted for similar to existing guidance for operating leases. ASU 2016-02 is effective for interim and annual periods beginning after December 15, 2018. The Company has elected to adopt this standard using the effective date method using a modified retrospective transition approach. The Company expects the adoption of the standard to have a material impact on its consolidated balance sheet, which will result in the removal of the built to suit asset and liability recorded as of December 31, 2018, and the recognition of ROU assets and lease liabilities of approximately $40.0 million to $50.0 million at January 1, 2019. In May 2014, the FASB issued a new standard, ASC 606, regarding the accounting for, and disclosures of, revenue recognition, with an effective date for annual and interim periods beginning after December 15, 2017. ASC 606 provides a single comprehensive model for accounting for revenue from contracts with customers. The model requires that revenue recognized reflect the actual consideration to which the entity expects to be entitled in exchange for the goods or services defined in the contract, including in situations with multiple performance obligations. The Company adopted ASC 606 using the modified retrospective method and the adoption had no cumulative adjustment to its consolidated financial statements as it relates to the Pfizer Inc. (Pfizer) collaboration agreement discussed in Note 16. For the year ended December 31, 2018, there was no impact from the adoption of ASC 606 that resulted in a different revenue recognition amount than under the prior revenue recognition guidance in effect during 2017. In January 2016, the FASB issued ASU 2016-01, Financial Instruments-Overall: Recognition and Measurement of Financial Assets and Financial Liabilities . ASU 2016-01 changes accounting for equity investments, financial liabilities under the fair value option, and presentation and disclosure requirements for financial instruments. ASU 2016-01 does not apply to equity investments in consolidated subsidiaries or those accounted for under the equity method of accounting. In addition, the FASB clarified guidance related to the valuation allowance assessment when recognizing deferred tax assets resulting from unrealized losses on available-for-sale debt securities. Equity investments with readily determinable fair values will be measured at fair value with changes in fair value recognized in net income. Companies have the option to either measure equity investments without readily determinable fair values at fair value or at cost, adjusted for changes in observable prices, minus impairment. Changes in measurement under either alternative will be recognized in net income. Companies that elect the fair value option for financial liabilities must recognize changes in fair value related to instrument-specific credit risk in other comprehensive income. Companies must assess valuation allowances for deferred tax assets related to available-for-sale debt securities in combination with their other deferred tax assets. The Company adopted this guidance effective January 1, 2018, resulting in a reclassification of $5.0 million from accumulated other comprehensive loss to accumulated deficit related to the unrecognized loss on the Company's investment in Selecta. In August 2017, the FASB issued ASU 2017-12, Derivatives and Hedging: Targeted Improvements to Accounting for Hedging Activities |