diff --git a/lib/slideshows.ts b/lib/slideshows.ts index 15a7f6ea..4c785362 100644 --- a/lib/slideshows.ts +++ b/lib/slideshows.ts @@ -17,6 +17,7 @@ import { cliffwatchWebinarConfig } from "@/slideshows/cliffwatch-webinar/config" import { cbo2026Config } from "@/slideshows/cbo-2026/config"; import { civicBuilders2026Config } from "@/slideshows/civic-builders-2026/config"; import { policybenchWebinarConfig } from "@/slideshows/policybench-webinar/config"; +import { nefBik2026Config } from "@/slideshows/nef-bik-2026/config"; import { aspenBenefits2026Config } from "@/slideshows/aspen-benefits-2026/config"; import { l0Ima2026Config } from "@/slideshows/l0-ima-2026/config"; import { iariw2026Config } from "@/slideshows/iariw-2026/config"; @@ -51,6 +52,7 @@ export const slideshows: SlideshowConfig[] = [ arnold2026Config, iariw2026Config, l0Ima2026Config, + nefBik2026Config, aspenBenefits2026Config, policybenchWebinarConfig, civicBuilders2026Config, diff --git a/slideshows/nef-bik-2026/README.md b/slideshows/nef-bik-2026/README.md new file mode 100644 index 00000000..8946f41e --- /dev/null +++ b/slideshows/nef-bik-2026/README.md @@ -0,0 +1,120 @@ +# Modelling benefits in kind in PolicyEngine UK: scoping with NEF + +16 slides at `/slides/nef-bik-2026`, for a scoping meeting with the New +Economics Foundation (NEF) on modelling employer-provided benefits in kind +(BIK) in PolicyEngine's UK microsimulation. The deck is public. PolicyEngine +and NEF have agreed nothing yet: the deck sets out what the model covers today, the data +available, and options. The meeting is on 19 November 2026 (`config.ts`, +its footer and `cover.date` in `content.ts`). The cover names Vahid +Ahmadi and Max Ghenis; remove Max in `slides/index.tsx` (`TitleSlide`) if he +isn't presenting. + +Three parts, after a title and an agenda. Each part opens with a section +slide, and every slide's header carries a tracker of the three parts: + +1. Benefits in kind in the UK (slides 3–6): what a benefit in kind is and how + it is taxed; its size; the rule changes to 2030-31 +2. What PolicyEngine covers (slides 7–9): how the model works, with company + cars carried through each stage and a status on each; the coverage map +3. Scoping the project (slides 10–15): the data sources, the gap in five + layers, three phases, example questions, questions for NEF + +## Editing and presenting + +- `config.ts` controls the slide order, the build steps and meeting metadata. + Seven slides reveal step by step when presenting (`builds`; the two tables appear whole); a PDF export + shows each slide once, complete (`exportBuilds: 1`). The viewer's counter + shows the slide, not the step (`countSlides: true`), and the controls hint + is hidden (`hideNavHint: true`); both are opt-ins in `lib/types.ts`. +- `content.ts` holds every number on the slides, each pinned to its source: + a URL for web sources, most with a publication date; a repo, commit and + path for code; and a release name for the calibration dashboard, which has + no link. The comments say which table or file each figure is from. +- `slides/index.tsx` contains the slides and the deck's components (one list, + one card, one table, one chip style; every item takes a Tabler icon). The + `agenda` list there drives the agenda slide, the section slides and the + header tracker. Status chips (Done, Partly done, Not yet) are one component, + `StatusChip`, with its key (`StatusLegend`) inside the figure. +- `slides/CountUp.tsx` counts a number up when it appears. The number is + always in the page as text, so it shows at rest and in an export. +- `slides/BuildScope.tsx` and `slides/deck.module.css` are copied from the + NEF macro deck (`slideshows/nef-2026`, PR #118), with this deck's styles + added at the end of the stylesheet. +- `SPEAKER-NOTES.md` has the detail behind each slide, what each status rests + on, and what could not be sourced. + +## What a status means + +"Done" means the piece is in released code and in use: for calibration, the +targets are included in the certified Microcosm UK build of 15 November 2026; +for rules, the code is on `main` of policyengine-uk with tests. "Partly done" +names what is missing beside the chip. The speaker notes list the file and +commit behind each one. + +## Sources + +Read on 18 November 2026. + +Code: + +- PolicyEngine/policyengine-uk at `98381bf` (2.179.2): company car, car fuel + and Class 1A rules under + `policyengine_uk/variables/gov/hmrc/income_tax/benefits_in_kind/` and + `.../national_insurance/class_1a/`; parameters under + `policyengine_uk/parameters/gov/hmrc/income_tax/benefits_in_kind/`; the + salary-sacrifice cap at + `parameters/gov/hmrc/national_insurance/salary_sacrifice_pension_cap.yaml`; + the pay cut that applies with it at + `parameters/gov/contrib/behavioral_responses/salary_sacrifice_broad_base_haircut_rate.yaml` +- PolicyEngine/microcosm at `bcb5cba`: + `packages/microcosm-build/src/microcosm/build/uk_runtime/company_cars.py`, + `uk_runtime/salary_sacrifice.py`, `uk/source_stages.json`, + `uk/uk_population_targets.json`, `uk/hmrc_benefits_in_kind_facts.json` +- PolicyEngine's calibration dashboard, release + `microcosm-uk-2024-25-national/uk-frs-calibration-attempt-20261115T104657Z-fcfac709` + (the national build of 15 November 2026), read through its data API + +Statistics and guidance: + +- HMRC, Benefits in kind statistics: July 2026 (15 July 2026): + https://www.gov.uk/government/statistics/benefits-in-kind-statistics-july-2026 +- HMRC, taxable benefits in kind by type, Table 4.5, 2016-17 (27 June 2019): + https://www.gov.uk/government/statistics/number-of-recipients-and-amounts-of-taxable-benefits-by-type-of-benefit +- HMRC, Benefits in kind statistics: June 2019, commentary (27 June 2019): + https://assets.publishing.service.gov.uk/media/5d148708e5274a0694afe666/Taxable_Benefits_in_Kind_National_Statistics_Commentary_2019.pdf +- HMRC tax relief statistics, January 2026 (22 January 2026): + https://www.gov.uk/government/statistics/tax-reliefs +- The Van Benefit and Car and Van Fuel Benefit Order 2025 (SI 2025/1254): + https://www.legislation.gov.uk/uksi/2025/1254/made +- Rates and thresholds for employers 2026 to 2027 (updated 1 September 2026): + https://www.gov.uk/guidance/rates-and-thresholds-for-employers-2026-to-2027 +- HMRC booklet 480, Appendix 12, optional remuneration arrangements: + https://www.gov.uk/guidance/optional-remuneration-arrangements-480-appendix-12 +- Mandatory reporting of benefits in kind in real time from April 2027 + (13 July 2026, updated 28 October 2026): + https://www.gov.uk/government/publications/changes-to-reporting-of-benefits-in-kind-from-april-2027/mandatory-reporting-of-benefits-in-kind-in-real-time-information-rti-from-april-2027 +- Budget 2026 (28 October 2026): overview of tax legislation and rates, Annex A + https://www.gov.uk/government/publications/budget-2026-overview-of-tax-legislation-and-rates-ootlar/annex-a-rates-and-allowances ; + Table 6.1 https://www.gov.uk/government/publications/budget-2026-document/budget-2026-html ; + Table 6.4 https://assets.publishing.service.gov.uk/media/6ae0f93fe4367e5c8b0467d6/Table_6.4_Recostings_Table.xlsx +- Budget 2026 policy costings (28 October 2026), p. 95: + https://assets.publishing.service.gov.uk/media/6ae1883fe4367e5c8b0467df/AB26_Policy_Costing.pdf +- Budget 2025 policy costings (26 November 2025): + https://assets.publishing.service.gov.uk/media/692872fd2a37784b16ecf676/Budget_2025-Policy_Costings.pdf +- Finance Act 2026, s. 17 (employee car and van ownership schemes): + https://www.legislation.gov.uk/ukpga/2026/11/section/17 +- National Insurance Contributions (Employer Pensions Contributions) Act 2026, s. 1: + https://www.legislation.gov.uk/ukpga/2026/15/section/1 +- OBR, supplementary forecast information: salary sacrifice costing + (5 February 2026): + https://obr.uk/docs/dlm_uploads/Supplementary-forecast-information-salary-sacrifice-costing-1.pdf +- Family Resources Survey 2024-25, question instructions (UKDS SN 9563): + https://doc.ukdataservice.ac.uk/doc/9563/mrdoc/pdf/9563_frs_2024-25_question_instructions_final.pdf +- Survey of Personal Incomes, Public Use Tape: 2022-23 documentation (SN 9422) + https://doc.ukdataservice.ac.uk/doc/9422/mrdoc/pdf/9422_put_2223_full_documentation.pdf ; + 2023-24 (SN 9638, 5 November 2026) + https://datacatalogue.ukdataservice.ac.uk/studies/study/9638 +- ONS, Employee earnings in the UK: 2026 (ASHE; 22 October 2026): + https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/earningsandworkinghours/bulletins/annualsurveyofhoursandearnings/2026 ; + ASHE questionnaire guidance (revised 12 April 2023): + https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/earningsandworkinghours/methodologies/annualsurveyofhoursandearningsquestionnaireguidance diff --git a/slideshows/nef-bik-2026/SPEAKER-NOTES.md b/slideshows/nef-bik-2026/SPEAKER-NOTES.md new file mode 100644 index 00000000..c6c01ed0 --- /dev/null +++ b/slideshows/nef-bik-2026/SPEAKER-NOTES.md @@ -0,0 +1,338 @@ +# Speaker notes: modelling benefits in kind in PolicyEngine UK (NEF, November 2026) + +A scoping conversation on 19 November 2026. PolicyEngine and NEF have agreed +nothing yet, and no slide shows PolicyEngine results. Every figure is from the source named here, +read on 18 November 2026; `content.ts` pins each one. Budget 2026 was on 28 +October 2026. + +## 1. Cover + +Vahid Ahmadi and Max Ghenis are both named. Remove Max if he isn't there. + +## 2. Today + +Three parts: what benefits in kind are and how big; what PolicyEngine covers +today; and scoping the project. + +## 3. Part 1: benefits in kind in the UK + +## 4. A benefit in kind is pay that isn't cash + +- Benefit in kind (BIK): something an employer provides other than cash. +- Each benefit has a taxable value ("cash equivalent"). For cars, fuel, vans, + loans and living accommodation it is a formula in law (ITEPA 2003); for + others it is usually the cost to the employer. This general rule was not + re-read from HMRC's booklet 480 for this deck. +- Company car: list price times the "appropriate percentage", which depends + on CO2 emissions. In 2026-27 it runs from 4% (zero emission) to 37% + (Budget 2026 overview, Annex A). +- The employee pays income tax on the taxable value at their marginal rate. + The employer reports it on a P11D after the year ends, or taxes it through + payroll ("payrolling"). +- The employer pays Class 1A National Insurance contributions (NICs) at 15% + in 2026-27 (Rates and thresholds for employers 2026 to 2027). There is + usually no employee NIC on a benefit in kind (some, such as vouchers that + can be exchanged for cash, are charged Class 1 instead). +- OpRA (optional remuneration arrangement), since 6 April 2017: when an + employee gives up salary for a benefit, the taxable amount is the greater + of the salary given up and the normal taxable value. Exemptions from this + rule include employer pension contributions, pensions advice, childcare + vouchers and workplace nurseries, cycle to work, counselling and + outplacement services, and cars with CO2 of 75 g/km or less (HMRC booklet + 480, Appendix 12). + +## 5. £9.5bn of benefits liable to Class 1A in 2024-25 + +- Left: three definitions in plain words. Class 1A has been 15% since April + 2025; it was 13.8% in 2024-25, which is why £1.31bn is 13.8% of £9.5bn. +- Middle, HMRC Benefits in kind statistics, July 2026, tax year 2024-25, + provisional: + - £9.5bn taxable value of all benefits liable to Class 1A, and £1.31bn of + Class 1A due (Table 5, which HMRC labels experimental; it excludes + termination awards and sporting testimonials); + - 920,000 people with a company car, £3.07bn taxable value (Table 1). HMRC + says the count "may be an underestimate", because some payrolled cars + are not reported (commentary, section 8); the slide says "may be an + undercount"; + - 51% of company cars are fully electric (Tables 2B and 2D). +- Right, in its own panel: the last year with final figures for every type of + benefit, 2016-17 (Table 4.5 and commentary, June 2019; the same release + had provisional figures for 2017-18). Since 2020 the tables cover cars + and fuel only, plus the Class 1A total. Shares of the £8.25bn total: car + 55%, medical and dental insurance 23%, car fuel 8% (HMRC's own + percentages), van 2%, beneficial + loans 2%, accommodation 1%; the rest is mileage allowances, van fuel and + other benefits. In 2016-17, 3.66 million people had at least one taxable + benefit, 2.38 million of them medical or dental insurance. +- Do not read the 2016-17 shares against today's pounds: the two panels are + different years, and the mix has changed (the electric car rate is low). +- If asked how £9.5bn compares with 2016-17: the £8.25bn is what employers + reported on P11D forms. HMRC's Table 5 puts all benefits liable to Class 1A + in 2016-17 at £9.1bn; the difference is mostly payrolled benefits (HMRC, + June 2019, completeness note). Like for like (Table 5): £9.1bn in 2016-17 + and £9.5bn in 2024-25. +- Class 1A on cars and fuel was £440m of the £1.31bn in 2024-25 (Tables 1 and + 5), so a model with Class 1A on cars and fuel only covers about a third. +- HMRC has published no final figures since 2016-17 (its June 2019 release + gave provisional 2017-18 figures) for the number of people with any benefit + in kind, or for income tax on all benefits. HMRC's receipts tables do not separate Class + 1A. + +## 6. The rules are changing each year to 2030-31 + +- Electric (zero-emission) company car rate: 4% in 2026-27, 5%, 7%, 9%, and + 10% in 2030-31 (Budget 2026 overview, Annex A). Rates to 2029-30 are + legislated (Finance Acts 2023 and 2025); the 10% is announced, for Finance + Bill 2026-27 (overview, paragraph 1.25), and PolicyEngine's baseline keeps + 9% with the rise as a scenario + (`policyengine_uk/scenarios/company_car_tax_rise_2030.py`). The maximum rate is 37% to + 2027-28, then 38% and 39% (legislated) and 40% in 2030-31 (announced, with + the 10%). +- 2026-27: car fuel multiplier £29,200; van benefit charge £4,170; van fuel + £798 (The Van Benefit and Car and Van Fuel Benefit Order 2025, SI + 2025/1254, art. 2; Annex A does not list them). +- 6 April 2027: payrolling (taxing benefits through payroll in real time + rather than on a P11D) becomes mandatory for cars, vans, car and van fuel + and medical benefits; 6 April 2028 for most other benefits. Both are + announced (overview, paragraph 1.24). Loans and accommodation stay + outside, and so do benefits for globally mobile employees (HMRC policy + paper, updated 28 October 2026). +- 6 April 2029: NICs relief on pension salary sacrifice only on the first + £2,000 sacrificed a year. Parliament legislated it in the National + Insurance Contributions (Employer Pensions Contributions) Act 2026, s. 1, + for 2029-30 on. The charge needs regulations under SSCBA s. 4(6A), which + must set the limit at £2,000; no such regulations existed on 18 November 2026. The + OBR certified the official costing. Budget 2026 recosting (Table 6.4): +£5,350m in 2029-30, +£2,920m in + 2030-31, +£3,665m in 2031-32. The first year is inflated by timing: the + OBR's supplementary release (5 February 2026) says a switch to + relief-at-source schemes adds to 2029-30 and takes from 2030-31. +- 6 April 2030: Finance Act 2026, s. 17, brings employee car and van + ownership schemes into the benefit in kind rules from 2030-31 (2032-33 for + arrangements made before 6 April 2030). Budget 2025 delayed the change to + 2030. +- Chips: Exchequer yield from Budget 2026. "Rates to 2029-30: +£700m in 2028-29" is the + 2028-29 yield of the rates set for 2028-29 and 2029-30 (Table 6.4; +£975m + in 2029-30). "Cap: +£5,350m, then +£2,920m" is the pension salary-sacrifice + cap in 2029-30 and 2030-31 (Table 6.4). "2030-31 rise: +£310m" is the + 2030-31 yield of the rates announced at Budget 2026 (Table 6.1; +£345m in + 2031-32). + +## 7. Part 2: what PolicyEngine covers + +## 8. How the model works: company cars, end to end + +Each stage carries a status for company cars. What each rests on: + +- **Survey: Done.** Family Resources Survey (FRS) 2024-25 (UKDS SN 9563). + PolicyEngine/microcosm at `bcb5cba` (main), + `packages/microcosm-build/src/microcosm/build/uk_runtime/frs_spine.py`, + reads the job-table items EXPBEN01 (company car), EXPBEN03 (fuel for + private use), CARVAL (banded list price), FUELTYP, CARCON and CARAMT. The + FRS question ExpBen lists 13 employer benefits. +- **Imputation: Partly done.** `uk_runtime/company_cars.py`, the 19th of the + 56 stages listed in `uk/source_stages.json`. List price is drawn within the FRS band from + Wealth and Assets Survey round 8 company-car prices; CO2 is assigned to + match HMRC Table 2A band shares; unknown fuels at Table 2C shares. Not + imputed: the share of the year the car is available, the employee's + payments for private use, and electric range (set to 50 miles for 1–50 g/km + cars), because no survey records them. +- **Calibration: Done.** The certified national build of 15 November 2026 + (policyengine.py 6.20.1) has 1,534 targets (the build of 18 November has + 1,535). Its five + `hmrc.benefits_in_kind` targets are included and fitted within 1%: + recipients 915,708 against 920,000; taxable value £3,068.6m against + £3,070m; fully electric 465,215 against 465,000; petrol 390,819 against + 390,000; diesel 59,674 against 60,000, the worst at 0.54% (calibration + dashboard data route, read 18 November 2026 and again on 19 November: + 1,534 targets, all included; the 18 November build, 1,535). The file + `uk/hmrc_benefits_in_kind_facts.json` says none of its rows is a + calibration target. That holds for this copy, which only seeds the stage's + draws; the calibration takes the same Table 1 and 2C figures from the + Chronicle feed (`uk/uk_population_targets.json`). Not targets: car fuel + benefit, Class 1A, and HMRC's breakdowns by income band and region. +- **Rules: Partly done.** PolicyEngine/policyengine-uk at `98381bf` + (2.179.2), added in 2.165.0 (29 October 2026): + `variables/gov/hmrc/income_tax/benefits_in_kind/company_car_benefit.py`, + `car_fuel_benefit.py`, `company_car_appropriate_percentage.py`, + `benefits_in_kind.py`, and `national_insurance/class_1a/ni_class_1a.py`. + 53 YAML test cases (24 + 10 + 11 + 8) plus `test_company_car_benefit.py`. + The pull request that added them (#2750) passed its checks; CI at `98381bf` + itself mostly skipped, and the independent check ran the 53 YAML cases and + the 37 cases of `test_company_car_benefit.py` locally, all passing. Not + modelled, as the code says: optional remuneration arrangements (ITEPA + s. 120A), classic, shared and pool cars, part-year fuel, vans. +- The benefits enter taxable employment income (so the personal allowance + taper and the High Income Child Benefit Charge see them), not Class 1 NICs + and not Universal Credit earnings. + +## 9. What we model today, benefit by benefit + +- Company car: calibration done; rules and data partly done, for the reasons + on slide 8 (no OpRA, classic, shared or pool cars; availability and + private-use payments at defaults). +- Car fuel: rules and data partly done. Who gets fuel is from the FRS, but + the code has no part-year fuel, and the fuel benefit reads the same imputed + CO2 and default availability as the car. Not a calibration target. HMRC + Table 1: 40,000 recipients, £140m taxable value in 2024-25. +- Class 1A: computed on car and fuel benefits only + (`ni_class_1a.py`: rate times `benefits_in_kind`). No target. +- Pension salary sacrifice: the £2,000 cap is baseline law from 6 April 2029 + (`parameters/gov/hmrc/national_insurance/salary_sacrifice_pension_cap.yaml`); + amounts from FRS `SPNAMT` plus an imputation in Microcosm's own + `salary_sacrifice` stage (`uk_runtime/salary_sacrifice.py`); seven HMRC + targets included in the 15 November build, each within 1%. +- Medical insurance, vans, loans, accommodation, other salary sacrifice: + no rules, no data in the household file, no targets. The FRS asks whether + a benefit replaces salary (yes or no: SalSac, FuelBn, VchSac, question + instructions pp. 226 to 230). Of the salary-sacrifice arrangements it gives + amounts only for pensions and childcare vouchers; it also asks the value of + private fuel and of other vouchers. The FRS asks who + receives medical insurance and a van but not the value; the van charge is + a flat amount in law, so who has one is most of what is needed. Loans and + accommodation have no ExpBen code, but the FRS asks about both elsewhere: + whether the home goes with a household member's job (AccJob, p. 52), + whether the landlord employs someone in the household (p. 49), and loans + from an employer (OthDed, p. 208; DLOANTY, p. 359). It lacks the value: no + loan balance or interest rate, and no annual value of the home. + +## 10. Part 3: scoping the project + +## 11. Data: surveys mostly say who, HMRC says how much + +- FRS 2024-25: the base dataset. Microcosm UK builds on it (`frs_spine`, + stage 1 of 56). From stage 16 it adds copies of FRS households and gives + them incomes drawn from the SPI (stages 17 and 18); the FRS households keep + their own incomes. The FRS records who receives each of 13 employer + benefits; for cars, the + banded list price, fuel type and employee contribution; amounts for + pension salary sacrifice, childcare vouchers, other vouchers and private + fuel. No value for medical + insurance, no CO2. +- Survey of Personal Incomes (SPI) Public Use Tape: one field, `EPB`, + combines expenses payments and benefits. Confirmed in the 2022-23 + documentation; the 2023-24 tape was released on 5 November 2026 and its + documentation was not read. +- Annual Survey of Hours and Earnings (ASHE): employers report whether the + employee received benefits in kind in the last tax year and their total + value, one amount per job, and whether pension contributions went through + salary sacrifice. It is the only source on the slide with a record-level + total of all benefits in kind, separate from expenses. Latest results are 2026, provisional (22 October 2026). ONS says + the salary sacrifice variable is collected but not processed for outputs; + the official cap costing used ASHE 2024. Access to the microdata was not + checked, so the slide says "Possible". +- HMRC benefits in kind statistics: cars and fuel by CO2 band, fuel type, + income band and region, and the Class 1A total. Totals only. +- HMRC benefits by type: 2016-17, the last final year (2017-18 provisional); + P11D-only, so it is for validation, or for calibration only with + assumptions. +- The Use chips are our assessment, in one neutral style so they don't read + as the status chips of slides 8 and 9. +- HMRC tax relief statistics (January 2026): cycle to work £130m and + employer-supported childcare £180m in 2025-26 (forecasts); NICs relief on + employer pension contributions. +- Budget and OBR costings: for checking reform results. +- Not checked: Wealth and Assets Survey questionnaire, Understanding + Society, the Living Costs and Food Survey questionnaire, SMMT. HMRC's + ready reckoner (June 2025) has no benefit in kind line. + +## 12. The gap, in five layers + +- Rules: the missing benefits; the OpRA rule; Class 1A on every benefit. +- Data: values for medical insurance, loans and accommodation; the SPI's + single combined amount, which today sits inside employment income on + SPI-drawn records; no car CO2 or part-year use in the FRS. +- Calibration: no final by-type totals since 2016-17; car fuel, Class 1A and + cars by income band are published but not yet targets. +- Validation: compare model scores with the official costings. A static + score holds behaviour fixed (no one changes car, pay or pension + contributions in response); the official costings net off responses. +- We have scored the 2030-31 car-rate rise on the Microcosm UK national + build of 3 November, and our scores come in below the Budget's figures + (PolicyEngine/uk-autumn-budget-dashboard-2026#392). We haven't + established why. +- policyengine-uk's regression test of the pension cap pins £1.8bn for + 2030-31, with a tolerance of £1.0bn either way (set in February 2026). It runs + on an older data file, not Microcosm UK, and it isn't static: whenever the + cap applies, policyengine-uk cuts every worker's employment income by + 0.16% (`gov.contrib.behavioral_responses.salary_sacrifice_broad_base_haircut_rate`), + its stand-in for employers passing the cap's extra NICs on to pay. When a + reform changes the employer (secondary) Class 1 rate, threshold or pension + exemption, policyengine-uk passes the change on to pay by default + (`employee_incidence` = 1); the cap changes none of these, so the 0.16% cut + is its only pay effect. policyengine-uk leaves Class 1A with employers + (`ni_class_1a.py`; policyengine-uk issue #2752), so no benefit in kind + reform passes anything to pay. +- Behaviour, the fifth layer. Budget 2025 policy costings (pp. 47-48): the + £2,000 cap raises £5,070m static in 2030-31 and £2,585m after responses. + The OBR's note of 5 February 2026 (Table 1.6) splits the 2030-31 drop: + employers switching to ordinary contributions £0.7bn, pass-through to + wages and profits £0.7bn, employees moving to relief-at-source schemes + £0.6bn (a temporary timing effect; OBR, para 1.15), other responses £0.3bn. The Budget 2026 costing of + the 2030-31 car rates (p. 95) nets off company car users switching to + cheaper cars. The £5,350m and £2,920m on slide 6 are Budget 2026's + recosting of the same cap (Table 6.4), also after responses. Table 6.4's + note 1 says its costings reflect the OBR's latest economic and fiscal + determinants; it gives no other reason for the move from £2,585m to £2,920m + in 2030-31. Neither Table 6.4 nor the Budget 2026 policy costings give a + static figure or a split of the responses for the cap, so the Budget 2025 + pair on slide 12 is the latest that has both. + +## 13. Options: three phases + +- Phase 1, cars, fuel and vans: validate cars against HMRC by income band and + region; make fuel and Class 1A targets; add the flat van charge. +- Phase 2, other benefits: medical insurance, loans, accommodation; impute + values; Class 1A on all of them. The largest, because the rules are new and + the data are thin. +- Phase 3, salary sacrifice and OpRA: salary-sacrifice cars, cycle to work, + childcare; the OpRA rule. +- Effort is our rough ranking. No weeks or costs have been estimated. +- Outputs: static scores, except that the pension cap run includes + policyengine-uk's 0.16% cut to every worker's pay, its stand-in for + employers passing the cap's extra NICs on to pay. Which responses to add is + a question for NEF (slide 15). For both the car rates + and the pension cap, the gap to the official costings is open, and the + project would have to explain it. + For the pension cap, an October Microcosm UK run came in well short of the + OBR's static yield, mostly because it lacked bonus sacrifice + (PolicyEngine/microcosm#1340); the build now imputes bonus sacrifice, but + its base still falls short of the OBR's (PolicyEngine/microcosm#1390). +- Class 1A results would be revenue only: the model assigns Class 1A to no + household (it stays with employers; policyengine-uk issue #2752). + +## 14. Questions this would answer + +Three examples, each with the scenario and the phase it needs. Each would +report revenue, the effect by income decile, winners and losers, and poverty +(before housing costs). We have run none of them for this deck. We can +check the pension cap example against its official costing, and the car example's +baseline, the announced 2030-31 rates, against the Budget 2026 costing; no +official costing covers medical insurance. The notes to slide 12 give what +we know so far. + +## 15. Questions for NEF + +- Responses: in the official pension cap costing the largest were employers + switching to ordinary contributions and pass-through to wages and profits; + for the car + rates, switching to cheaper cars (notes to slide 12). +- On publishing: the SPI licence requires us to submit any material that + includes analyses of the SPI to HMRC at least 10 working days before + distribution (including a conference or seminar presentation) or + publication, and to annex HMRC's comments if asked (UK Data Service, SN + 9638 conditions of use). + +## 16. Thank you + +vahid@policyengine.org + +## Could not be sourced + +- Final figures after 2016-17 for the number of people with any benefit in + kind, and for income tax on all benefits. +- Final medical insurance, van, loan and accommodation figures after + 2016-17. +- A Class 1A receipts series (only the liability in HMRC's Table 5). +- Whether payrolled benefits appear in the SPI's `EPB` field. +- Company car percentages for 2031-32. +- How UKMOD, the IFS's TAXBEN or HM Treasury's model treat benefits in kind. diff --git a/slideshows/nef-bik-2026/config.ts b/slideshows/nef-bik-2026/config.ts new file mode 100644 index 00000000..a0cd303a --- /dev/null +++ b/slideshows/nef-bik-2026/config.ts @@ -0,0 +1,53 @@ +import type { SlideshowConfig } from "@/lib/types"; +import { + AgendaSlide, + BikSectionSlide, + ChangesSlide, + ClosingSlide, + CoverageSectionSlide, + CoverageSlide, + DataSlide, + ExamplesSlide, + GapSlide, + HowItWorksSlide, + PhasesSlide, + QuestionsSlide, + ScopingSectionSlide, + SizeSlide, + TitleSlide, + WhatIsBikSlide, +} from "./slides"; + +export const nefBik2026Config: SlideshowConfig = { + id: "nef-bik-2026", + title: "Modelling benefits in kind in PolicyEngine UK: scoping with NEF", + description: + "A scoping meeting with the New Economics Foundation on benefits in kind in PolicyEngine UK: what the model covers today, the data available, and options.", + date: "2026-11-19", + location: "New Economics Foundation", + footerText: "New Economics Foundation · 19 November 2026", + clickerKeys: true, + // The counter shows the slide, not the build step within it. + countSlides: true, + hideNavHint: true, + // Builds reveal a slide step by step when presenting; a PDF export shows + // each slide once, complete (exportBuilds: 1, and BuildScope shows every step). + slides: [ + TitleSlide, + AgendaSlide, + BikSectionSlide, + { component: WhatIsBikSlide, builds: 3, exportBuilds: 1 }, + { component: SizeSlide, builds: 3, exportBuilds: 1 }, + { component: ChangesSlide, builds: 3, exportBuilds: 1 }, + CoverageSectionSlide, + { component: HowItWorksSlide, builds: 3, exportBuilds: 1 }, + CoverageSlide, + ScopingSectionSlide, + DataSlide, + { component: GapSlide, builds: 5, exportBuilds: 1 }, + { component: PhasesSlide, builds: 3, exportBuilds: 1 }, + { component: ExamplesSlide, builds: 3, exportBuilds: 1 }, + QuestionsSlide, + ClosingSlide, + ], +}; diff --git a/slideshows/nef-bik-2026/content.ts b/slideshows/nef-bik-2026/content.ts new file mode 100644 index 00000000..a33d4cef --- /dev/null +++ b/slideshows/nef-bik-2026/content.ts @@ -0,0 +1,617 @@ +// Every figure on the slides is pinned here to the source it was read from, +// on 18 November 2026: a URL for web sources, most with a publication date; +// a repo, commit and path for code; and a release name for the calibration +// dashboard. Nothing on a slide is estimated by us. + +// Code, at the commits read. +const ukCommit = "98381bf4987ce8d30e6d9b7a3061362c5f2a3c84"; // policyengine-uk 2.179.2 +const microcosmCommit = "bcb5cba9d7be2b5907503878248f8ce533f044e9"; + +const uk = `https://github.com/PolicyEngine/policyengine-uk/blob/${ukCommit}/policyengine_uk`; +const microcosm = `https://github.com/PolicyEngine/microcosm/blob/${microcosmCommit}/packages/microcosm-build/src/microcosm/build`; + +// The cover. The meeting is on 19 November 2026. +export const cover = { + title: "Modelling benefits in kind in PolicyEngine UK: scoping with NEF", + subtitle: "What we cover, the data, and next steps", + event: "New Economics Foundation", + date: "19 November 2026", +}; + +export type Source = { label: string; href?: string; published?: string }; + +export const sources = { + // HMRC + bikStats: { + label: "HMRC, Benefits in kind statistics: July 2026 (Tables 1 to 5)", + href: "https://www.gov.uk/government/statistics/benefits-in-kind-statistics-july-2026", + published: "15 July 2026", + }, + bikByType: { + label: "HMRC, Taxable benefits in kind by type of benefit, Table 4.5 (2016-17)", + href: "https://www.gov.uk/government/statistics/number-of-recipients-and-amounts-of-taxable-benefits-by-type-of-benefit", + published: "27 June 2019", + }, + bikCommentary2019: { + label: "HMRC, Benefits in kind statistics: June 2019 (commentary)", + href: "https://assets.publishing.service.gov.uk/media/5d148708e5274a0694afe666/Taxable_Benefits_in_Kind_National_Statistics_Commentary_2019.pdf", + published: "27 June 2019", + }, + receipts: { + label: "HMRC tax and NICs receipts for the UK", + href: "https://www.gov.uk/government/statistics/hmrc-tax-and-nics-receipts-for-the-uk", + published: "21 October 2026", + }, + taxReliefs: { + label: "HMRC tax relief statistics, January 2026", + href: "https://www.gov.uk/government/statistics/tax-reliefs", + published: "22 January 2026", + }, + employerRates: { + label: "Rates and thresholds for employers 2026 to 2027", + href: "https://www.gov.uk/guidance/rates-and-thresholds-for-employers-2026-to-2027", + published: "updated 1 September 2026", + }, + opra: { + label: "HMRC booklet 480, Appendix 12: optional remuneration arrangements", + href: "https://www.gov.uk/guidance/optional-remuneration-arrangements-480-appendix-12", + published: "updated 1 April 2020", + }, + payrolling: { + label: "Mandatory reporting of benefits in kind in real time from April 2027", + href: "https://www.gov.uk/government/publications/changes-to-reporting-of-benefits-in-kind-from-april-2027/mandatory-reporting-of-benefits-in-kind-in-real-time-information-rti-from-april-2027", + published: "13 July 2026, updated 28 October 2026", + }, + fuelOrder: { + label: "The Van Benefit and Car and Van Fuel Benefit Order 2025 (SI 2025/1254)", + href: "https://www.legislation.gov.uk/uksi/2025/1254/made", + }, + // Budgets and the OBR + budget2026Rates: { + label: "Budget 2026, overview of tax legislation and rates, Annex A", + href: "https://www.gov.uk/government/publications/budget-2026-overview-of-tax-legislation-and-rates-ootlar/annex-a-rates-and-allowances", + published: "28 October 2026", + }, + budget2026: { + label: "Budget 2026, Table 6.1 (policy decisions)", + href: "https://www.gov.uk/government/publications/budget-2026-document/budget-2026-html", + published: "28 October 2026", + }, + budget2026Recostings: { + label: "Budget 2026, Table 6.4 (recostings)", + href: "https://assets.publishing.service.gov.uk/media/6ae0f93fe4367e5c8b0467d6/Table_6.4_Recostings_Table.xlsx", + published: "28 October 2026", + }, + budget2025Costings: { + label: "Budget 2025 policy costings", + href: "https://assets.publishing.service.gov.uk/media/692872fd2a37784b16ecf676/Budget_2025-Policy_Costings.pdf", + published: "26 November 2025", + }, + obrSalarySacrifice: { + label: "OBR, supplementary forecast information: salary sacrifice costing", + href: "https://obr.uk/docs/dlm_uploads/Supplementary-forecast-information-salary-sacrifice-costing-1.pdf", + published: "5 February 2026", + }, + budget2026Costings: { + label: "Budget 2026 policy costings", + href: "https://assets.publishing.service.gov.uk/media/6ae1883fe4367e5c8b0467df/AB26_Policy_Costing.pdf", + published: "28 October 2026", + }, + // Legislation + financeAct2026s17: { + label: "Finance Act 2026, s. 17: employee car and van ownership schemes", + href: "https://www.legislation.gov.uk/ukpga/2026/11/section/17", + }, + pensionsNicsAct2026: { + label: "National Insurance Contributions (Employer Pensions Contributions) Act 2026, s. 1", + href: "https://www.legislation.gov.uk/ukpga/2026/15/section/1", + }, + // Surveys + frs: { + label: "Family Resources Survey 2024-25, question instructions (UKDS SN 9563)", + href: "https://doc.ukdataservice.ac.uk/doc/9563/mrdoc/pdf/9563_frs_2024-25_question_instructions_final.pdf", + published: "26 March 2026", + }, + spi: { + label: "Survey of Personal Incomes, Public Use Tape 2022-23 documentation (UKDS SN 9422)", + href: "https://doc.ukdataservice.ac.uk/doc/9422/mrdoc/pdf/9422_put_2223_full_documentation.pdf", + }, + spiLatest: { + label: "Survey of Personal Incomes, Public Use Tape 2023-24 (UKDS SN 9638)", + href: "https://datacatalogue.ukdataservice.ac.uk/studies/study/9638", + published: "5 November 2026", + }, + ashe: { + label: "ONS, ASHE questionnaire guidance", + href: "https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/earningsandworkinghours/methodologies/annualsurveyofhoursandearningsquestionnaireguidance", + published: "revised 12 April 2023", + }, + etb: { + label: "ONS, Effects of taxes and benefits, technical report FYE 2020", + href: "https://www.ons.gov.uk/peoplepopulationandcommunity/personalandhouseholdfinances/incomeandwealth/methodologies/theeffectsoftaxesandbenefitsonhouseholdincometechnicalreportfinancialyearending2020", + published: "revised 8 June 2021", + }, + asheLatest: { + label: "ONS, Employee earnings in the UK: 2026 (ASHE, provisional)", + href: "https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/earningsandworkinghours/bulletins/annualsurveyofhoursandearnings/2026", + published: "22 October 2026", + }, + // The certified Microcosm UK build's fitted targets, read 18 November 2026. + // No link: the dashboard page shows release names this deck doesn't use. + dashboard: { + label: + "Calibration dashboard data API, release microcosm-uk-2024-25-national/uk-frs-calibration-attempt-20261115T104657Z-fcfac709 (the 15 November 2026 build)", + }, + // Code + bikVariable: { + label: "policyengine-uk: benefits_in_kind.py", + href: `${uk}/variables/gov/hmrc/income_tax/benefits_in_kind/benefits_in_kind.py`, + }, + carBenefit: { + label: "policyengine-uk: company_car_benefit.py", + href: `${uk}/variables/gov/hmrc/income_tax/benefits_in_kind/company_car_benefit.py`, + }, + fuelBenefit: { + label: "policyengine-uk: car_fuel_benefit.py", + href: `${uk}/variables/gov/hmrc/income_tax/benefits_in_kind/car_fuel_benefit.py`, + }, + class1a: { + label: "policyengine-uk: ni_class_1a.py", + href: `${uk}/variables/gov/hmrc/national_insurance/class_1a/ni_class_1a.py`, + }, + salarySacrificeCap: { + label: "policyengine-uk: salary_sacrifice_pension_cap.yaml", + href: `${uk}/parameters/gov/hmrc/national_insurance/salary_sacrifice_pension_cap.yaml`, + }, + carRise2030: { + label: "policyengine-uk: scenarios/company_car_tax_rise_2030.py", + href: `${uk}/scenarios/company_car_tax_rise_2030.py`, + }, + companyCarsStage: { + label: "microcosm: uk_runtime/company_cars.py", + href: `${microcosm}/uk_runtime/company_cars.py`, + }, + // No link: the GitHub page shows release names this deck doesn't use. + sourceStages: { + label: "microcosm: uk/source_stages.json", + }, + targets: { + label: "microcosm: uk/uk_population_targets.json", + href: `${microcosm}/uk/uk_population_targets.json`, + }, + bikFacts: { + label: "microcosm: uk/hmrc_benefits_in_kind_facts.json", + href: `${microcosm}/uk/hmrc_benefits_in_kind_facts.json`, + }, + salarySacrificeStage: { + label: "microcosm: uk_runtime/salary_sacrifice.py", + href: `${microcosm}/uk_runtime/salary_sacrifice.py`, + }, + salarySacrificeHaircut: { + label: "policyengine-uk: salary_sacrifice_broad_base_haircut_rate.yaml", + href: `${uk}/parameters/gov/contrib/behavioral_responses/salary_sacrifice_broad_base_haircut_rate.yaml`, + }, +} satisfies Record; + +// --------------------------------------------------------------------------- +// Part 1: benefits in kind in the UK + +// sources.employerRates; sources.budget2026Rates (Annex A, company car tax). +export const rules2026 = { + class1aRate: "15%", + evRate: "4%", + maxRate: "37%", +}; + +// sources.bikStats: Table 5 (all Class 1A benefits; experimental) and Table 1 +// (company cars), tax year 2024-25, provisional. Table 2B/2D for the electric +// share. HMRC says the 920,000 "may be an underestimate", because some +// payrolled cars are not reported (commentary, section 8). +export const size = { + year: "2024-25", + allTaxableValueBn: "£9.5bn", // Table 5: £9,500m + class1aLiabilityBn: "£1.31bn", // Table 5: £1,310m + carRecipientsThousands: 920, // Table 1: 920,000 + carTaxableValueBn: "£3.07bn", // Table 1: £3,070m + electricShare: 51, // Table 2B/2D, per cent of car benefit recipients +}; + +// Plain-words definitions on the size slide. Class 1A rate: 15% in 2025-26 +// and 2026-27 (sources.employerRates); it was 13.8% in 2024-25, which is why +// £1.31bn is 13.8% of £9.5bn. Taxable value ("cash equivalent"): a statutory +// formula for cars, fuel, vans, loans and accommodation; for most other +// benefits it is the cost to the employer (HMRC booklet 480). +export const definitions = [ + { + title: "Benefit in kind", + text: "A non-cash benefit from an employer, taxed as income", + }, + { + title: "Taxable value", + text: "The amount HMRC taxes: a formula for cars, usually the employer's cost for others", + }, + { + title: "Class 1A", + text: "Employer National Insurance contributions (NICs) on benefits: 13.8% in 2024-25, 15% since April 2025", + }, +]; + +// sources.bikByType (Table 4.5) and sources.bikCommentary2019, tax year +// 2016-17, the last year with final figures for every benefit type (2017-18 +// was provisional in that release; the tables since 2020 cover company cars +// and fuel only, plus the Class 1A total). P11D-only, before most +// payrolling. The commentary gives the first three shares of the £8.25bn +// total itself (55%, 23%, 8%); the others are the type's taxable value +// (£200m, £180m, £100m) over that total. +export const byType2016 = { + year: "2016-17", + rows: [ + { label: "Company car", share: 55 }, + { label: "Medical and dental insurance", share: 23 }, + { label: "Car fuel", share: 8 }, + { label: "Van", share: 2 }, + { label: "Beneficial loans", share: 2 }, + { label: "Accommodation", share: 1 }, + ], +}; + +// What is legislated or announced, by tax year. Zero-emission company car +// rates: sources.budget2026Rates. Car fuel multiplier for 2026-27: +// sources.fuelOrder, art. 2(2). Payrolling dates: sources.payrolling. +// Salary-sacrifice cap: sources.budget2025Costings (p.47), legislated by +// sources.pensionsNicsAct2026. Employee car and van ownership schemes: +// sources.financeAct2026s17, for 2030-31 on. Yields are Exchequer +// figures from sources.budget2026 (Table 6.1 row 86) and +// sources.budget2026Recostings (Table 6.4 rows 14 and 15). +export const timeline: { + year: string; + evRate: number; + /** Announced, not yet legislated (Budget 2026 overview, para 1.25). */ + rateAnnounced?: boolean; + events: { title: string; text?: string; announced?: boolean }[]; + yield?: string; +}[] = [ + { + year: "2026-27", + evRate: 4, + events: [{ title: "Fuel and van charges uprated", text: "Car fuel multiplier £29,200" }], + }, + { + year: "2027-28", + evRate: 5, + events: [ + { + title: "Payrolling required", + text: "Taxed through payroll, not a P11D: cars, vans, fuel, medical", + announced: true, + }, + ], + }, + { + year: "2028-29", + evRate: 7, + events: [{ title: "Payrolling: most other benefits", announced: true }], + yield: "Rates to 2029-30: +\u2060£700m in 2028-29", + }, + { + year: "2029-30", + evRate: 9, + events: [{ title: "Pension salary sacrifice", text: "NICs relief only on the first £2,000 a year" }], + // U+2060 keeps the sign with its figure when the chip wraps. + yield: "Cap: +£5,350m, then +\u2060£2,920m", + }, + { + year: "2030-31", + evRate: 10, + rateAnnounced: true, + events: [{ title: "Car ownership schemes taxed", text: "From April 2030" }], + yield: "2030-31 rise: +£310m", + }, +]; + +// --------------------------------------------------------------------------- +// Part 2: what PolicyEngine covers + +export type Status = "done" | "partly" | "notYet"; + +// How the model works, with the company car carried through each stage. +// A stage is "done" only if it is in released code and in use: +// - Survey: microcosm @ bcb5cba (main), uk_runtime/frs_spine.py reads the FRS +// job-table items EXPBEN01, EXPBEN03, CARVAL, FUELTYP, CARCON, CARAMT. +// - Imputation: sources.companyCarsStage (`company_cars`, the 19th of the 56 +// entries in the `stages` list of sources.sourceStages, counted from 1). List price is drawn within the FRS band from +// Wealth and Assets Survey round 8 prices; CO2 from HMRC Table 2A shares. +// Availability and private-use payments are left at defaults ("no survey +// records them"); electric range is set to 50 miles for 1-50 g/km cars and +// the 2020 registration flag stays at its default; hence "partly". +// - Calibration: sources.dashboard, the certified build of 15 November 2026 +// (1,534 targets): the five hmrc.benefits_in_kind targets are "included" +// and fitted within 1% (recipients 915,708 against 920,000; taxable value +// £3,068.6m against £3,070m; electric 465,215 against 465,000; petrol +// 390,819 against 390,000; diesel 59,674 against 60,000). +// - Rules: policyengine-uk @ 98381bf (2.179.2), sources.carBenefit, +// sources.fuelBenefit, sources.class1a; 53 YAML test cases +// (company_car_benefit.yaml 24, car_fuel_benefit.yaml 10, +// benefits_in_kind_interactions.yaml 11, ni_class_1a.yaml 8). Full CI +// passed on 329ae39, which 98381bf only re-versions. company_car_benefit.py says optional remuneration +// arrangements (ITEPA s. 120A) are not modelled, hence "partly". +// 13 benefits: sources.frs, question ExpBen, codes 1 to 13. +export const pipeline: { + title: string; + text: string; + car: string; + status: Status; + missing?: string; + fact: { value: number; label: string }; +}[] = [ + { + title: "Survey", + text: "Family Resources Survey (FRS) 2024-25 households", + car: "Who has a car, fuel, list-price band, fuel type", + status: "done", + fact: { value: 13, label: "Employer benefits and expenses the FRS asks about" }, + }, + { + title: "Imputation", + text: "Incomes from the Survey of Personal Incomes (SPI); wealth; spending", + car: "List price from the Wealth and Assets Survey; CO2 from HMRC shares", + status: "partly", + missing: "Defaults for part-year use and employee payments", + fact: { value: 56, label: "Build stages in the household file" }, + }, + { + title: "Calibration", + text: "Household weights fitted to official totals", + car: "5 HMRC targets, each within 1% in the 15 November build", + status: "done", + fact: { value: 1534, label: "Targets in the 15 November build" }, + }, + { + title: "Rules", + text: "Tax and benefit law, as code", + car: "Car benefit, fuel benefit, Class 1A", + status: "partly", + missing: "No salary-sacrifice (OpRA) rule for cars", + fact: { value: 53, label: "Test cases on these rules" }, + }, +]; + +// Rules: policyengine-uk @ 98381bf (benefits_in_kind.py covers "the company +// car and car fuel benefits ... Other benefits in kind and vans are not +// modelled"). Data: microcosm @ bcb5cba. Targets: sources.dashboard (the +// certified build of 15 November 2026: five company-car and seven +// salary-sacrifice targets included, each within 1%). FRS flags: +// sources.frs (question ExpBen). Pension salary sacrifice: sources. +// salarySacrificeCap, sources.salarySacrificeStage. Car fuel: no part-year +// fuel in sources.fuelBenefit, and it reads the same imputed CO2 and default +// availability as the car. Loans and accommodation: sources.frs asks AccJob +// (p. 52), whether the landlord employs someone in the household (p. 49), +// and about loans from an employer (OthDed p. 208, DLOANTY p. 359), but not +// their value. +export const coverage: { + benefit: string; + detail?: string; + rules: Status; + data: Status; + target: Status; + note: string; +}[] = [ + { + benefit: "Company car", + rules: "partly", + data: "partly", + target: "done", + note: "No OpRA, shared or pool cars; some inputs at defaults", + }, + { + benefit: "Car fuel", + rules: "partly", + data: "partly", + target: "notYet", + note: "No part-year fuel; CO2 and availability as for cars", + }, + { + benefit: "Class 1A", + detail: "Employer NICs on benefits", + rules: "partly", + data: "partly", + target: "notYet", + note: "On cars and fuel only", + }, + { + benefit: "Pension salary sacrifice", + rules: "done", + data: "done", + target: "done", + note: "£2,000 NICs cap from April 2029", + }, + { + benefit: "Medical insurance", + rules: "notYet", + data: "notYet", + target: "notYet", + note: "FRS asks who, not how much", + }, + { + benefit: "Vans and van fuel", + rules: "notYet", + data: "notYet", + target: "notYet", + note: "Flat charge in law; FRS asks who", + }, + { + benefit: "Loans and accommodation", + rules: "notYet", + data: "notYet", + target: "notYet", + note: "FRS asks who, not the value", + }, + { + benefit: "Other salary sacrifice", + detail: "Cars, cycle to work, childcare; OpRA", + rules: "notYet", + data: "notYet", + target: "notYet", + note: "FRS: amounts for pensions and vouchers only", + }, +]; + +// --------------------------------------------------------------------------- +// Part 3: scoping + +export type Use = "Base" | "Impute" | "Calibrate" | "Validate" | "Possible"; + +// One row per source; the "use" column is our assessment. +export const dataSources: { + source: string; + measures: string; + level: string; + latest: string; + uses: Use[]; +}[] = [ + { + source: "Family Resources Survey (FRS)", + measures: "Who gets 13 employer benefits and expenses; car price band, fuel type", + level: "People", + latest: "2024-25", + uses: ["Base"], + }, + { + source: "Survey of Personal Incomes (SPI)", + measures: "Expenses and benefits, one combined amount", + level: "People", + latest: "2023-24", + uses: ["Impute"], + }, + { + source: "Annual Survey of Hours and Earnings (ASHE)", + measures: "Value of all benefits in kind per job; pension salary sacrifice", + level: "Jobs", + latest: "2026, provisional", + uses: ["Possible"], + }, + { + source: "HMRC benefits in kind statistics", + measures: "Cars and fuel: by CO2, fuel, income, region; Class 1A total", + level: "Totals", + latest: "2024-25, provisional", + uses: ["Calibrate", "Validate"], + }, + { + source: "HMRC benefits by type", + measures: "Medical, vans, loans, accommodation", + level: "Totals", + latest: "2016-17, last final", + uses: ["Validate"], + }, + { + source: "HMRC tax relief statistics", + measures: "Cycle to work, employer childcare, pension NICs relief", + level: "Totals", + latest: "2025-26, forecast", + uses: ["Calibrate"], + }, + { + source: "Budget and OBR costings", + // U+2011 keeps "salary-sacrifice" on one line. + measures: "Yield of car-rate and salary\u2011sacrifice measures", + level: "Totals", + latest: "To 2031-32", + uses: ["Validate"], + }, +]; + +export const gaps = [ + { + title: "Rules", + items: [ + "Medical insurance, vans, loans, accommodation", + "OpRA: the higher of salary given up and taxable value", + "Class 1A on every benefit", + ], + }, + { + title: "Data", + items: [ + "No values for medical insurance, loans or accommodation in the FRS", + "SPI: benefits and expenses in one amount", + // U+2011 keeps "part-year" on one line. + "No car CO2 or part\u2011year use in the FRS", + ], + }, + { + title: "Calibration", + items: [ + "No final HMRC totals for other benefit types since 2016-17", + "Car fuel and Class 1A not yet targets", + "Cars by income band not yet targets", + ], + }, + { + title: "Validation", + items: [ + "Company cars against HMRC by income and region", + "Compare a static car score with the official costing", + "Compare the pension cap score with the official costing", + ], + }, + { + title: "Behaviour", + items: [ + // U+2011 keeps "2030-31" on one line. + "Pension cap, 2030\u201131: £5,070m static, £2,585m after responses (Budget 2025; £2,920m in Budget 2026)", + "Employers passing costs on to pay: we model it for the pension cap, not for benefits in kind", + "Car choice after rate rises", + ], + }, +]; + +// Effort is relative, in words: nothing here has been estimated in weeks. +// Behaviour: sources.budget2025Costings (pp. 47-48) gives the pension cap +// £5,070m static and £2,585m after responses in 2030-31; +// sources.budget2026Recostings (Table 6.4) recosts it to £2,920m in 2030-31; +// sources.obrSalarySacrifice (Table 1.6) splits the responses; +// sources.budget2026Costings (p. 95) nets off a switch to cheaper company +// cars. policyengine-uk cuts all employment income by 0.16% whenever the cap +// applies (sources.salarySacrificeHaircut), so its cap run is not static. +export const phases = [ + { + title: "Cars, fuel and vans", + effort: "Smallest", + effortNote: "Car rules and data exist", + work: ["Validate cars against HMRC by income and region", "Target fuel and Class 1A; add the van charge"], + output: "Electric car rate reforms: revenue and who pays", + }, + { + title: "Other benefits", + effort: "Largest", + effortNote: "New rules, thin data", + work: ["Medical insurance, loans, accommodation", "Impute values; Class 1A on every benefit"], + output: "Reforms to medical insurance, loans or accommodation, or to Class 1A (revenue only)", + }, + { + title: "Salary sacrifice and OpRA", + effort: "Medium", + effortNote: "Only pensions done", + work: ["Salary-sacrifice cars, cycle to work, childcare", "The OpRA rule"], + output: "Caps and exemptions, across schemes", + }, +]; + +export const exampleQuestions = [ + { + question: "Who pays if electric company car rates rise faster?", + scenario: "Zero-emission rate above the 10% announced for 2030-31", + needs: "Phase 1", + }, + { + question: "What does capping pension salary sacrifice raise, and from whom?", + scenario: "NICs relief only on the first £2,000 a year, against no cap", + needs: "Runs today", + }, + { + question: "What would changing the tax on employer medical insurance do?", + scenario: "Exempt it, or charge Class 1A at another rate. Class 1A results are revenue only", + needs: "Phase 2", + }, +]; diff --git a/slideshows/nef-bik-2026/slides/BuildScope.tsx b/slideshows/nef-bik-2026/slides/BuildScope.tsx new file mode 100644 index 00000000..dfb64ad0 --- /dev/null +++ b/slideshows/nef-bik-2026/slides/BuildScope.tsx @@ -0,0 +1,81 @@ +"use client"; + +import { useLayoutEffect, useRef, type CSSProperties, type ReactNode } from "react"; +import { useSearchParams } from "next/navigation"; +import { useSlideshowContextSafe } from "@/components/core/SlideshowContext"; +import { isExportMode } from "@/lib/slide-url"; + +/** + * A slide body that knows its build step and keeps clear of the footer. + * + * Builds: elements inside carry `data-step="N"`; deck.module.css hides those + * above the current step and animates each in when its step arrives. An + * export shows every step, so a slide with builds is one complete page in + * the PDF (`exportBuilds: 1`). + * + * Fit: the body's sizes are all in em, so if its content is taller than the + * space above the footer (a short window), `--fit` shrinks the base size + * until it fits. Hidden steps keep their place, so the fit doesn't change + * between steps. + */ +export default function BuildScope({ + className, + style, + children, +}: { + className?: string; + style?: CSSProperties; + children: ReactNode; +}) { + const context = useSlideshowContextSafe(); + const exporting = isExportMode(useSearchParams()); + const build = exporting || !context ? "all" : String(context.buildStep); + const body = useRef(null); + + useLayoutEffect(() => { + const element = body.current; + if (!element) return; + const fit = () => { + // A slide that isn't shown has no height: fit it when it appears. + if (element.clientHeight === 0) return; + // Layout heights, which an entrance animation's transform doesn't move + // (scrollHeight would count it and shrink a slide that fits). + const room = + element.clientHeight - parseFloat(getComputedStyle(element).paddingBottom || "0"); + const content = () => + Array.from(element.children).reduce( + (sum, child) => sum + (child as HTMLElement).offsetHeight, + 0, + ); + let scale = 1; + element.style.setProperty("--fit", "1"); + let before = content(); + while (before > room + 1 && scale > 0.6) { + scale -= 0.03; + element.style.setProperty("--fit", scale.toFixed(2)); + const after = content(); + // Content that doesn't follow the base size (the module map sizes + // itself from the window) can't be fitted this way: leave it. + if (after >= before) { + element.style.setProperty("--fit", "1"); + break; + } + before = after; + } + }; + fit(); + // Fit again whenever the space or the content changes size (a resized + // window, styles or fonts arriving after the first paint). + const observer = new ResizeObserver(fit); + observer.observe(element); + for (const child of Array.from(element.children)) observer.observe(child); + document.fonts?.ready.then(fit); + return () => observer.disconnect(); + }, []); + + return ( +
+ {children} +
+ ); +} diff --git a/slideshows/nef-bik-2026/slides/CountUp.tsx b/slideshows/nef-bik-2026/slides/CountUp.tsx new file mode 100644 index 00000000..149ba997 --- /dev/null +++ b/slideshows/nef-bik-2026/slides/CountUp.tsx @@ -0,0 +1,57 @@ +"use client"; + +import { useEffect, useRef } from "react"; +import { useSearchParams } from "next/navigation"; +import { useSlideshowContextSafe } from "@/components/core/SlideshowContext"; +import { isExportMode } from "@/lib/slide-url"; + +/** + * A whole number that counts up from zero when it comes into view. + * + * The number itself is always in the page as text, so it shows at rest, in an + * export, with reduced motion and before any script runs. The count is only + * an effect on top: it plays once each time the number goes from hidden (its + * slide isn't shown, or its build step hasn't arrived) to visible. + */ +export default function CountUp({ value }: { value: number }) { + const context = useSlideshowContextSafe(); + const exporting = isExportMode(useSearchParams()); + const element = useRef(null); + const wasVisible = useRef(false); + const slide = context?.currentSlide; + const build = context?.buildStep; + const final = value.toLocaleString("en-GB"); + + useEffect(() => { + const span = element.current; + if (!span) return; + const visible = + span.offsetParent !== null && getComputedStyle(span).visibility !== "hidden"; + const appeared = visible && !wasVisible.current; + wasVisible.current = visible; + span.textContent = final; + if (!appeared || exporting) return; + if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return; + + const duration = 1100; + const start = performance.now(); + let frame = 0; + const tick = (now: number) => { + const progress = Math.min(1, (now - start) / duration); + const eased = 1 - Math.pow(1 - progress, 3); + span.textContent = Math.round(value * eased).toLocaleString("en-GB"); + if (progress < 1) frame = requestAnimationFrame(tick); + }; + frame = requestAnimationFrame(tick); + return () => { + cancelAnimationFrame(frame); + span.textContent = final; + }; + }, [slide, build, value, final, exporting]); + + return ( + + {final} + + ); +} diff --git a/slideshows/nef-bik-2026/slides/deck.module.css b/slideshows/nef-bik-2026/slides/deck.module.css new file mode 100644 index 00000000..17f66547 --- /dev/null +++ b/slideshows/nef-bik-2026/slides/deck.module.css @@ -0,0 +1,2094 @@ +/* NEF deck: every colour comes from a design token (app/globals.css). + One style each for lists, cards, stats, tables, notes and chips. Sizes in + the slide body are in em of .body, which scales with the viewport (the + smaller of its height and width), + so a slide looks the same at 1920x1080 and 1440x810. */ + +/* Leave space for the viewer's controls beside the footer text. */ +.deck :global(.gradient-footer) { + padding-right: 15rem; +} + +.body { + display: flex; + min-height: 0; + flex: 1; + flex-direction: column; + /* Always a clear gap above the footer; BuildScope lowers --fit when the + content would otherwise run into it. */ + padding-bottom: 1.25rem; + font-size: calc(clamp(8px, min(1.6vh, 0.9vw), 22px) * var(--scale, 1) * var(--fit, 1)); +} + +/* Centre the body below the title, clear of the sources line. */ +.centerBody { + justify-content: center; +} + +.stack { + display: grid; + gap: 1.4em; +} + +/* Every icon: bare, teal, no box behind it. */ +.body svg { + flex-shrink: 0; + color: var(--pe-teal); +} + +/* Lists: one icon, a few words, an optional second line. */ +.iconList { + display: grid; + gap: 1.5em; +} + +.iconList.twoCol { + grid-template-columns: repeat(2, minmax(0, 1fr)); + column-gap: 3.5em; +} + +.iconList.threeCol { + grid-template-columns: repeat(3, minmax(0, 1fr)); + column-gap: 2.5em; +} + +.iconItem.muted { + opacity: 0.35; +} + +.iconItem { + display: grid; + grid-template-columns: 2.3em minmax(0, 1fr); + align-items: start; + gap: 1em; +} + +.iconItem.withAside { + grid-template-columns: 2.3em minmax(0, 1fr) auto; + align-items: center; +} + +.iconItem > svg { + margin-top: 0.1em; + height: 2.3em; + width: 2.3em; +} + +.iconItem h2 { + color: var(--pe-dark); + font-size: 1.55em; + font-weight: 600; + line-height: 1.25; +} + +.iconItem p { + margin-top: 0.15em; + color: var(--color-gray-600); + font-size: 1.2em; + line-height: 1.35; +} + +.listHead { + display: flex; + align-items: center; + gap: 0.5em; + color: var(--color-gray-500); + font-size: 1em; + font-weight: 700; + letter-spacing: 0.1em; + text-transform: uppercase; +} + +.listHead svg { + height: 1.4em; + width: 1.4em; +} + +/* Cards in a grid. */ +.cardGrid { + display: grid; + gap: 1.2em; +} + +.cols2 { + grid-template-columns: repeat(2, minmax(0, 1fr)); +} + +.cols3 { + grid-template-columns: repeat(3, minmax(0, 1fr)); +} + +.cols4 { + grid-template-columns: repeat(4, minmax(0, 1fr)); +} + +.cols5 { + grid-template-columns: repeat(5, minmax(0, 1fr)); +} + +.card { + min-width: 0; + border: 1px solid var(--color-gray-200); + border-left: 4px solid var(--pe-teal); + border-radius: 0.5em; + background: var(--bg-card); + padding: 1em 1.2em; + box-shadow: 0 1px 2px var(--shadow-light); +} + +.card h2 { + display: flex; + align-items: center; + gap: 0.5em; + color: var(--pe-dark); + font-size: 1.4em; + font-weight: 600; + line-height: 1.2; +} + +.card h2 svg { + height: 1.3em; + width: 1.3em; +} + +.card p { + margin-top: 0.45em; + color: var(--color-gray-600); + font-size: 1.15em; + line-height: 1.35; +} + +.cardAmber { + border-left-color: var(--pe-amber); +} + +.cardAmber svg { + color: var(--pe-amber-dark); +} + +/* Stats: a card with an icon and a big number. */ +.card .stat { + display: flex; + align-items: center; + gap: 0.3em; + margin-top: 0; + color: var(--pe-teal); + font-size: 3em; + font-weight: 700; + line-height: 1.1; + font-variant-numeric: tabular-nums; + white-space: nowrap; +} + +.card .stat svg { + height: 0.8em; + width: 0.8em; +} + +.card .statAmber { + color: var(--pe-amber-dark); +} + +.card .statLabel { + margin-top: 0.3em; + color: var(--pe-dark); + font-size: 1.3em; + font-weight: 600; + line-height: 1.25; +} + +.card .statNote { + margin-top: 0.25em; + color: var(--color-gray-600); + font-size: 1.1em; + line-height: 1.3; +} + +/* Cards in a row with arrows between them. */ +.flow { + display: flex; + align-items: stretch; + gap: 0.4em; +} + +.flow > .card { + flex: 1 1 0; +} + +.flow > svg { + align-self: center; + height: 1.6em; + width: 1.6em; + color: var(--color-gray-400); +} + +/* Steps on one line, with an arrow between each pair. */ +.steps { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 0.5em 0.6em; + color: var(--color-gray-600); + font-size: 1em; +} + +.steps > span { + display: inline-flex; + align-items: center; + gap: 0.45em; +} + +.steps svg { + height: 1.4em; + width: 1.4em; +} + +.steps b { + color: var(--pe-dark); + font-weight: 600; +} + +.steps .stepArrow { + height: 1.1em; + width: 1.1em; + color: var(--color-gray-400); +} + +/* A line of plain text under a figure. */ +.caption { + color: var(--color-gray-600); + font-size: 1.15em; + line-height: 1.35; +} + +/* Chips. */ +.chip { + display: inline-flex; + align-items: center; + border-radius: 9999px; + padding: 0.2em 0.75em; + font-size: 0.85em; + font-weight: 600; + line-height: 1.3; + white-space: nowrap; +} + +.chipGood { + background: var(--pe-light); + color: var(--pe-teal-dark); +} + +.chipMid { + background: var(--bg-secondary); + color: var(--pe-amber-dark); +} + +.chipBad { + background: var(--bg-tertiary); + color: var(--color-gray-700); +} + +/* A label chip that carries no status: data uses, effort, OpRA exemptions. */ +.chipNeutral { + border: 1px solid var(--color-gray-300); + background: var(--bg-card); + color: var(--pe-dark); +} + +.card .chipHead { + margin: 0.8em 0 0.4em; + color: var(--color-gray-600); + font-size: 0.95em; + font-weight: 700; +} + +/* Code on a light background. */ +.code { + border-radius: 0.4em; + background: var(--bg-secondary); + padding: 0.3em 0.6em; + color: var(--pe-dark); + font-family: var(--font-mono); + font-size: 0.95em; + overflow-wrap: anywhere; +} + +.mono { + color: var(--pe-dark); + font-family: var(--font-mono); + font-size: 0.92em; +} + +/* Tables. */ +.table { + width: 100%; + border-collapse: collapse; + font-size: 1.2em; +} + +.table th { + border-bottom: 2px solid var(--color-gray-300); + padding: 0.4em 0.8em; + color: var(--color-gray-500); + font-size: 0.75em; + font-weight: 700; + letter-spacing: 0.1em; + text-align: left; + text-transform: uppercase; +} + +.table td { + border-bottom: 1px solid var(--color-gray-200); + padding: 0.5em 0.8em; + color: var(--color-gray-700); + line-height: 1.3; +} + +.table td:first-child { + color: var(--pe-dark); + font-weight: 600; +} + +/* A table with many rows. */ +.tight td { + padding-top: 0.32em; + padding-bottom: 0.32em; + line-height: 1.2; +} + +.rowLabel { + display: flex; + align-items: center; + gap: 0.55em; +} + +.rowLabel svg { + height: 1.35em; + width: 1.35em; +} + +.rowLabel small { + display: block; + color: var(--color-gray-500); + font-size: 0.8em; + font-weight: 400; +} + +.num { + text-align: right !important; + font-variant-numeric: tabular-nums; +} + +.no svg { + color: var(--color-gray-400); +} + +/* Layers: three cards with the same rows, so the columns line up. */ +.layerGrid { + grid-template-rows: repeat(4, auto); + column-gap: 1.6em; +} + +.layer { + display: grid; + grid-row: span 4; + grid-template-rows: subgrid; + row-gap: 1.1em; + padding: 1.3em 1.5em; +} + +.layer h2 { + font-size: 1.6em; +} + +.layer h2 .chip { + margin-left: auto; + font-size: 0.55em; +} + +.layerLine > span { + color: var(--color-gray-500); + font-size: 0.85em; + font-weight: 700; + letter-spacing: 0.1em; + text-transform: uppercase; +} + +.card .layerLine p { + margin-top: 0.15em; + color: var(--pe-dark); + font-size: 1.3em; +} + +.standIns { + margin-top: 0.5em; + display: grid; + gap: 0.4em; + color: var(--color-gray-600); + font-size: 1.1em; + line-height: 1.3; +} + +.standIns li { + display: flex; + align-items: flex-start; + gap: 0.5em; +} + +.standIns svg { + height: 1.3em; + width: 1.3em; +} + +.standIns b { + color: var(--pe-dark); + font-weight: 600; +} + +.layerFacts { + border-top: 1px solid var(--color-gray-200); + padding-top: 1em; +} + +.card .caveat { + display: flex; + align-items: flex-start; + gap: 0.4em; + color: var(--pe-amber-dark); +} + +.caveat svg { + margin-top: 0.1em; + height: 1.2em; + width: 1.2em; + color: var(--pe-amber-dark); +} + +/* Cards that end in a verdict; the rows line up across the cards. */ +.verdictGrid { + grid-template-rows: repeat(3, auto); +} + +.verdictCard { + display: grid; + grid-row: span 3; + grid-template-rows: subgrid; + row-gap: 0.6em; + padding: 1.2em 1.4em; +} + +.card.verdictCard p { + margin-top: 0; +} + +.verdict { + display: grid; + justify-items: start; + align-content: start; + gap: 0.3em; + margin-top: 0.3em; + border-top: 1px solid var(--color-gray-200); + padding-top: 0.8em; +} + +.verdict small { + color: var(--color-gray-500); + font-size: 0.8em; + font-weight: 700; + letter-spacing: 0.1em; + text-transform: uppercase; +} + +.card .verdict p { + color: var(--pe-dark); + font-size: 1.05em; +} + +.verdict .chip { + margin-top: 0.4em; + font-size: 0.95em; +} + +/* A second, quieter block under the slide's main one. */ +.quiet { + display: grid; + gap: 0.8em; + margin-top: 0.6em; +} + +.quietItem { + display: flex; + align-items: flex-start; + gap: 0.7em; + color: var(--color-gray-600); + font-size: 1em; + line-height: 1.35; +} + +.quietItem b { + display: block; + color: var(--pe-dark); + font-weight: 600; +} + +.quietItem small { + margin-left: 0.4em; + color: var(--color-gray-500); + font-size: 0.85em; + font-weight: 400; +} + +/* A hero figure with a panel of takeaways beside it. */ +.hero { + display: grid; + grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); + align-items: center; + gap: 3.5em; +} + +.panel { + display: grid; + gap: 1.3em; + border-left: 4px solid var(--pe-teal); + padding-left: 1.8em; +} + +.footnotes { + display: grid; + justify-items: start; + gap: 0.5em; + border-top: 1px solid var(--color-gray-200); + padding-top: 1em; + color: var(--color-gray-600); + font-size: 1.05em; + line-height: 1.3; +} + +.footnotes small { + color: var(--color-gray-500); + font-size: 0.8em; + font-weight: 700; + letter-spacing: 0.1em; + text-transform: uppercase; +} + +.panel > .chip { + justify-self: start; +} + +.chartHead { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 0.5em 1em; +} + +.footnotes p { + display: flex; + align-items: flex-start; + gap: 0.5em; +} + +.footnotes svg { + height: 1.3em; + width: 1.3em; +} + +/* A switch card, then what it turns on. */ +.switchRow { + display: grid; + grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr) minmax(0, 1.2fr); + align-items: start; + gap: 2.5em; +} + +.switchRow .stat { + font-size: 2.5em; +} + +.hero .hbars { + grid-template-columns: 19em 1fr; +} + +.switch { + display: grid; + justify-items: start; + gap: 1em; + padding: 1.3em 1.5em; +} + +.switch .chip { + border-radius: 0.7em; + white-space: normal; +} + +.switch .layerLine > span { + color: var(--color-gray-500); +} + +.card .or { + margin-top: 1.1em; + border-top: 1px solid var(--color-gray-200); + padding-top: 0.8em; + color: var(--color-gray-500); + font-size: 0.85em; + font-weight: 700; + letter-spacing: 0.1em; + text-transform: uppercase; +} + +.panel .chipRow { + margin-top: 0; +} + +.panel .chip { + font-size: 1.1em; +} + +/* Two columns with the same rows on each side. */ +.mirror { + column-gap: 3.5em; + row-gap: 1.3em; + align-items: start; +} + +.statNote small { + color: var(--color-gray-500); + font-size: 0.85em; +} + +/* Preview marker (in the header, so in rem). */ +.preview { + display: inline-flex; + align-items: center; + gap: 0.4rem; + margin-top: 0.9rem; + border-radius: 9999px; + background: var(--bg-secondary); + padding: 0.25rem 0.85rem; + color: var(--pe-amber-dark); + font-size: 1rem; + font-weight: 600; + line-height: 1.3; +} + +.preview svg { + color: var(--pe-amber-dark); +} + +.moduleCount { + color: var(--pe-teal); + font-size: 1.5em; + font-weight: 700; + line-height: 1; + font-variant-numeric: tabular-nums; +} + +/* Multiplier dot plot: every row has the same marks on one baseline. */ +.dotPlot { + display: grid; + grid-template-columns: 30em 1fr 15em; + align-items: center; + column-gap: 1.8em; +} + +.dotGroup, +.dotHead { + margin-top: 0.5em; + border-bottom: 1px solid var(--color-gray-300); + padding-bottom: 0.3em; + color: var(--color-gray-500); + font-size: 0.9em; + font-weight: 700; + letter-spacing: 0.1em; + text-transform: uppercase; +} + +.dotRule { + align-self: stretch; + margin-top: 0.5em; + border-bottom: 1px solid var(--color-gray-300); +} + +.dotLabel { + display: flex; + align-items: center; + gap: 0.8em; +} + +.dotLabel svg { + height: 2em; + width: 2em; +} + +.dotLabel h2 { + color: var(--pe-dark); + font-size: 1.3em; + font-weight: 600; + line-height: 1.2; +} + +.dotLabel p .chip { + margin-left: 0.7em; + font-size: 0.8em; +} + +.dotLabel p { + color: var(--color-gray-600); + font-size: 1.05em; + line-height: 1.3; +} + +.track { + position: relative; + height: 4.6em; + border-bottom: 1px solid var(--color-gray-200); +} + +.trackLine { + position: absolute; + top: 58%; + height: 0.25em; + border-radius: 0.125em; + background: var(--color-teal-200); + transform: translateY(-50%); +} + +.dot { + position: absolute; + top: 58%; + display: flex; + height: 2.4em; + min-width: 2.4em; + align-items: center; + justify-content: center; + border-radius: 9999px; + background: var(--pe-teal); + color: var(--text-inverse); + font-size: 0.75em; + font-weight: 700; + white-space: nowrap; + transform: translate(-50%, -50%); +} + +/* Values too close for numbered dots: the same three dots, smaller, at + their true places, each with its quarter above it. */ +.dotSmall { + height: 1em; + min-width: 1em; + width: 1em; + font-size: 1em; +} + +.dotSmall span { + position: absolute; + bottom: 100%; + left: 50%; + margin-bottom: 0.15em; + color: var(--pe-dark); + font-size: 0.72em; + font-weight: 700; + line-height: 1; + transform: translateX(-50%); +} + +.dotSmall.dotRaised span { + margin-bottom: 1.25em; +} + +.dotQ1 { + background: var(--color-teal-200); + color: var(--pe-dark); +} + +.dotQ4 { + background: var(--color-teal-400); +} + +.dotQ12 { + background: var(--color-teal-700); +} + +.benchmark { + position: absolute; + top: 1.2em; + bottom: 0.25em; + width: 0.25em; + border-radius: 0.125em; + background: var(--pe-amber); + transform: translateX(-50%); +} + +.benchmark span { + position: absolute; + bottom: 100%; + left: 50%; + color: var(--pe-amber-dark); + font-size: 0.75em; + font-weight: 700; + line-height: 1.4; + transform: translateX(-50%); +} + +.dotValue { + white-space: nowrap; + color: var(--pe-dark); + font-size: 1.2em; + font-weight: 600; + font-variant-numeric: tabular-nums; + line-height: 1.3; +} + +.dotValue span { + display: block; + color: var(--pe-amber-dark); + font-size: 0.85em; + font-weight: 400; +} + +.axis { + position: relative; + height: 1.8em; + color: var(--color-gray-500); + font-size: 0.95em; +} + +.axis span { + position: absolute; + top: 0.25em; + transform: translateX(-50%); +} + +.axisLabel { + color: var(--color-gray-500); + font-size: 0.95em; + text-align: right; +} + +.legend { + display: flex; + flex-wrap: wrap; + align-self: stretch; + align-items: center; + gap: 0.2em 1.5em; + margin-top: 0.5em; + border-bottom: 1px solid var(--color-gray-300); + padding-bottom: 0.3em; + color: var(--color-gray-600); + font-size: 0.95em; +} + +.legend span { + display: inline-flex; + align-items: center; + gap: 0.5em; +} + +.legendDot { + display: inline-block; + height: 1em; + width: 1em; + border-radius: 9999px; +} + + +.legendTick { + display: inline-block; + height: 1.2em; + width: 0.25em; + border-radius: 0.125em; + background: var(--pe-amber); +} + +/* Income-tax path: a line over 12 quarters (viewBox units). */ +.pathPlot { + display: block; + width: 100%; + /* In em, so the chart follows the slide's base size (and the fit guard). */ + max-height: 21em; +} + +.pathGrid { + stroke: var(--color-gray-200); + stroke-width: 1; +} + +.pathTick { + fill: var(--color-gray-500); + font-size: 10px; + dominant-baseline: central; +} + +.pathYear { + fill: var(--pe-dark); + font-size: 11px; + font-weight: 600; +} + +.pathArea { + fill: var(--pe-light); + animation: nefFade 900ms ease-out 900ms both; +} + +.pathLine { + fill: none; + stroke: var(--pe-teal); + stroke-width: 3; + stroke-linecap: round; + stroke-linejoin: round; + stroke-dasharray: 1; + animation: nefDraw 1500ms ease-in-out 300ms both; +} + +.pathPoint { + animation: nefFade 400ms ease-out both; +} + +.pathPoint circle { + fill: var(--bg-card); + stroke: var(--pe-teal); + stroke-width: 2.5; +} + +.pathPoint text { + fill: var(--pe-dark); + font-size: 12px; + font-weight: 700; +} + +/* Horizontal bars (Bank Rate). */ +.hbars { + display: grid; + grid-template-columns: 27em 1fr; + align-items: center; + row-gap: 1em; + column-gap: 1.5em; +} + +.hbarLabel { + display: flex; + align-items: center; + gap: 0.6em; + color: var(--pe-dark); + font-size: 1.3em; + font-weight: 600; + line-height: 1.25; +} + +.hbarLabel small { + display: block; + color: var(--color-gray-500); + font-size: 0.75em; + font-weight: 400; +} + +.hbar.hbarRange { + border-radius: 0.35em; + background: var(--color-gray-400); +} + +.hbarLabel svg { + height: 1.4em; + width: 1.4em; +} + +.hbarTrack { + display: flex; + align-items: center; + gap: 0.8em; +} + +.hbar { + height: 2.4em; + border-radius: 0 0.35em 0.35em 0; + background: var(--pe-teal); +} + +.hbarBenchmark { + background: var(--pe-amber); +} + +.hbarValue { + white-space: nowrap; + color: var(--pe-dark); + font-size: 1.35em; + font-weight: 700; + font-variant-numeric: tabular-nums; +} + +/* The prompt typed into Claude. */ +.bubble { + display: inline-block; + margin-top: 0.6em; + border-radius: 1em 1em 1em 0.2em; + background: var(--pe-light); + padding: 0.55em 0.9em; + color: var(--pe-dark); + font-size: 1.15em; + line-height: 1.35; +} + +.chipRow { + margin-top: 0.6em; + display: flex; + flex-wrap: wrap; + gap: 0.4em; +} + +/* Closing slide contacts. */ +.contact { + display: flex; + align-items: center; + gap: 1rem; + border-radius: 1rem; + border: 1px solid color-mix(in srgb, var(--text-inverse) 15%, transparent); + background: color-mix(in srgb, var(--text-inverse) 10%, transparent); + padding: 1rem 1.25rem; + font-size: 1.125rem; + font-weight: 500; + transition: background-color 150ms; +} + +.contact:hover { + background: color-mix(in srgb, var(--text-inverse) 20%, transparent); +} + +/* Where the slide sits in the talk (in the header, so in rem). */ +.tracker { + display: flex; + flex-wrap: wrap; + gap: 0.35rem 1.4rem; + margin-bottom: 0.6rem; + color: var(--color-gray-400); + font-size: 0.95rem; + font-weight: 600; + line-height: 1.2; +} + +.tracker span { + display: inline-flex; + align-items: center; + gap: 0.35rem; + border-bottom: 2px solid transparent; + padding-bottom: 0.2rem; +} + +.tracker .trackerPast { + color: var(--color-gray-600); +} + +.tracker .trackerNow { + border-bottom-color: var(--pe-teal); + color: var(--pe-teal); +} + +/* The agenda on a section slide. */ +.sectionList { + font-size: calc(clamp(11px, min(1.6vh, 0.9vw), 22px) * var(--scale, 1)); +} + +.sectionList svg { + color: var(--pe-teal); +} + +/* Question and scenario: one panel in two halves at the top of a results + slide, with extra room before the figure under it. */ +.ask { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); + margin-bottom: 0.7em; + border: 1px solid var(--color-gray-200); + border-radius: 0.8em; + background: var(--bg-secondary); +} + +.body .ask { + animation: nefFade 600ms ease-out 100ms both; +} + +.ask > div { + padding: 0.8em 1.5em; +} + +.ask > div + div { + border-left: 1px solid var(--color-gray-300); +} + +.askLabel { + display: flex; + align-items: center; + gap: 0.5em; + color: var(--color-gray-500); + font-size: 0.85em; + font-weight: 700; + letter-spacing: 0.1em; + text-transform: uppercase; +} + +.askLabel svg { + height: 1.5em; + width: 1.5em; +} + +.askQuestion { + margin-top: 0.3em; + color: var(--pe-dark); + font-size: 1.45em; + font-weight: 600; + line-height: 1.25; +} + +.askScenario { + margin-top: 0.4em; + color: var(--color-gray-700); + font-size: 1.15em; + line-height: 1.35; +} + +@media (max-width: 900px) { + .ask { + grid-template-columns: minmax(0, 1fr); + } + + .ask > div + div { + border-top: 1px solid var(--color-gray-300); + border-left: 0; + } +} + +/* Maths in a table cell. */ +.maths { + color: var(--pe-dark); + font-size: 0.95em; +} + +/* Module map: group boxes, SVG arrows over them, module tiles on top. All + three are placed in the same units, so they keep their places at any size. */ +.moduleMap { + position: relative; + /* As wide as the slide, unless that would make it taller than the space + under the header (a short window). */ + width: min(100%, calc((100vh - 28rem) * 1000 / 338)); + margin-inline: auto; + /* Text inside is sized from the map's width (cqw), like its boxes. */ + container-type: inline-size; + aspect-ratio: 1000 / 338; +} + +.moduleMap > svg { + position: absolute; + inset: 0; + height: 100%; + width: 100%; +} + +.groupBox { + position: absolute; + border: 1px solid var(--color-gray-300); + border-radius: 0.8em; + background: var(--bg-secondary); + padding: 0.5em 1em; + color: var(--color-gray-600); + font-size: 0.96cqw; + line-height: 1.3; +} + +.groupBox b { + margin-right: 0.7em; + color: var(--pe-dark); + font-size: 1.2em; + font-weight: 700; +} + +.moduleTile { + position: absolute; + display: grid; + grid-template-columns: auto minmax(0, 1fr) auto; + align-content: center; + align-items: center; + gap: 0.25em 0.6em; + border: 1px solid var(--color-gray-200); + border-left: 4px solid var(--pe-teal); + border-radius: 0.5em; + background: var(--bg-card); + padding: 0 0.8em; + box-shadow: 0 1px 2px var(--shadow-light); + font-size: 0.96cqw; +} + +.moduleTile svg { + height: 1.5em; + width: 1.5em; +} + +.moduleTile h2 { + color: var(--pe-dark); + font-size: 1em; + font-weight: 600; + line-height: 1.15; +} + +.moduleTile .chip { + grid-column: 2 / -1; + justify-self: start; + padding: 0.1em 0.6em; + font-size: 0.72em; +} + +/* Flows between groups: one colour for each group they leave. */ +.flowOutput { + --flow: var(--pe-teal); +} + +.flowPrices { + --flow: var(--pe-amber); +} + +.flowIncomes { + --flow: var(--pe-dark); +} + +.flowLine { + stroke: var(--flow); + stroke-dasharray: 1; +} + +.flowHead { + fill: var(--flow); +} + +.keyLine { + display: inline-block; + height: 0; + width: 1.8em; + flex-shrink: 0; + border-top: 0.3em solid var(--flow, var(--color-gray-400)); +} + + +.flowLabel { + fill: var(--pe-dark); + font-size: 10.5px; + font-weight: 600; +} + +.flowCount { + fill: var(--pe-dark); + font-size: 10px; + font-weight: 700; + text-anchor: middle; + dominant-baseline: central; +} + +.linkCut { + stroke: var(--color-gray-400); + stroke-width: 1.6; + stroke-dasharray: 5 4; +} + +.linkCutHead { + fill: var(--color-gray-400); +} + +.linkBadge { + fill: var(--bg-card); + stroke: var(--color-gray-300); + stroke-width: 1; +} + +.mapKey { + position: absolute; + display: grid; + align-content: center; + gap: 0.15em; + color: var(--color-gray-600); + font-size: 0.77cqw; + line-height: 1.25; +} + +.mapKey li { + display: flex; + align-items: center; + gap: 0.5em; +} + +.mapKey .chip { + padding: 0.05em 0.6em; + font-size: 0.85em; +} + +.cutLabel { + fill: var(--color-gray-500); + font-size: 9.5px; + font-weight: 600; +} + +.keyBadge { + display: inline-flex; + height: 1.7em; + width: 1.8em; + flex-shrink: 0; + align-items: center; + justify-content: center; + border: 1px solid var(--color-gray-300); + border-radius: 9999px; + background: var(--bg-card); + color: var(--pe-dark); + font-size: 0.85em; + font-weight: 700; +} + +/* One source splitting into lanes. */ +.split { + display: grid; + grid-template-columns: 19em minmax(0, 1fr); + align-items: center; + gap: 0.6em; +} + +.lane { + display: grid; + grid-template-columns: 2em minmax(0, 1fr); + align-items: center; + gap: 0.6em; +} + +.lane > svg { + height: 2em; + width: 2em; + color: var(--color-gray-400); +} + +.lane .stack { + gap: 0.6em; +} + +/* Agenda: the five parts as stops on one line, in talk order */ +.agendaRoad { + position: relative; + display: grid; + grid-template-columns: repeat(5, minmax(0, 1fr)); + gap: 1.2em; + margin: 0; + padding: 0; + list-style: none; +} + +.agendaRoad::before { + position: absolute; + top: 1.1em; + right: 10%; + left: 10%; + height: 2px; + background: linear-gradient(90deg, var(--pe-teal), var(--pe-amber, var(--pe-teal))); + content: ""; +} + +.agendaStop { + display: flex; + min-width: 0; + flex-direction: column; + align-items: center; + gap: 1em; +} + +.agendaDot { + position: relative; + display: grid; + width: 2.2em; + height: 2.2em; + place-items: center; + border: 2px solid var(--pe-teal); + border-radius: 999px; + background: var(--bg-card); + color: var(--pe-teal); + font-weight: 700; + font-variant-numeric: tabular-nums; +} + +.agendaCard { + display: flex; + width: 100%; + min-height: 11em; + flex-direction: column; + align-items: flex-start; + gap: 0.5em; + border: 1px solid var(--color-gray-200); + border-top: 4px solid var(--pe-teal); + border-radius: 0.5em; + background: var(--bg-card); + padding: 1.2em 1.1em; + box-shadow: 0 1px 2px var(--shadow-light); +} + +.agendaIcon { + width: 2.2em; + height: 2.2em; + color: var(--pe-teal); +} + +.agendaCard h2 { + color: var(--pe-dark); + font-size: 1.35em; + font-weight: 600; + line-height: 1.2; + text-wrap: balance; +} + +.agendaCard p { + color: var(--color-gray-600); + font-size: 1.05em; + line-height: 1.35; +} + +/* Entrance: each time a slide is shown (the viewer switches it from + display:none, which restarts the animation), the title rises in and the + body's items follow one after another. Ends fully visible; off for + reduced motion. */ +@keyframes nefRise { + from { + opacity: 0; + transform: translateY(14px); + } + + to { + opacity: 1; + transform: none; + } +} + +.deck :global(h1), +.tracker { + animation: nefRise 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; +} + +.body > * { + animation: nefRise 480ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms both; +} + +.body > * > * { + animation: nefRise 460ms cubic-bezier(0.2, 0.7, 0.2, 1) both; + animation-delay: 180ms; +} + +.body > * > *:nth-child(2) { animation-delay: 260ms; } +.body > * > *:nth-child(3) { animation-delay: 340ms; } +.body > * > *:nth-child(4) { animation-delay: 420ms; } +.body > * > *:nth-child(5) { animation-delay: 500ms; } +.body > * > *:nth-child(6) { animation-delay: 580ms; } +.body > * > *:nth-child(7) { animation-delay: 640ms; } +.body > * > *:nth-child(n + 8) { animation-delay: 700ms; } + +/* Builds: BuildScope puts the slide's step on the body; an element with + data-step above it is hidden (and keeps its place), and animates in when + its step arrives. An export shows every step (data-build="all"). */ +@keyframes nefReveal { + from { + opacity: 0; + transform: translateY(18px); + } + + to { + opacity: 1; + transform: none; + } +} + +.body [data-step] { + animation: nefReveal 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; +} + +.body svg [data-step] { + animation-name: nefFade; +} + +/* A flow's line draws on from its start (pathLength is 1). */ +.body svg .flowLine[data-step] { + animation-name: nefDraw; + animation-duration: 600ms; +} + +@keyframes nefDraw { + from { + stroke-dashoffset: 1; + } +} + +@keyframes nefFade { + from { + opacity: 0; + } +} + +.deck .body[data-build="1"] [data-step="2"], +.deck .body[data-build="1"] [data-step="3"], +.deck .body[data-build="1"] [data-step="4"], +.deck .body[data-build="1"] [data-step="5"], +.deck .body[data-build="2"] [data-step="3"], +.deck .body[data-build="2"] [data-step="4"], +.deck .body[data-build="2"] [data-step="5"], +.deck .body[data-build="3"] [data-step="4"], +.deck .body[data-build="3"] [data-step="5"], +.deck .body[data-build="4"] [data-step="5"] { + visibility: hidden; + animation: none; +} + +/* Motion inside figures: bars grow, marks slide along their track, hero + numbers count up. Each ends at the element's own size, place or value. */ +@keyframes nefGrowRight { + from { + width: 0; + } +} + +@keyframes nefSlideIn { + from { + left: 0; + opacity: 0; + } +} + +.hbar { + animation: nefGrowRight 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 300ms both; +} + +.trackLine { + animation: nefGrowRight 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 700ms both; +} + +.dot, +.benchmark { + animation: nefSlideIn 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 250ms both; +} + +/* Choreography: each kind of element has its own motion, in order after the + title: the accent bar sweeps, list rows and table rows come in from the + left, comparison columns from the right, numbers and chips pop, footnotes + fade in last. Keyframes with only a start end at the element's own style. */ +@keyframes nefSweep { + from { + transform: scaleX(0); + } +} + +@keyframes nefFromLeft { + from { + opacity: 0; + transform: translateX(-22px); + } +} + +@keyframes nefFromRight { + from { + opacity: 0; + transform: translateX(48px); + } +} + +@keyframes nefPop { + from { + opacity: 0; + transform: scale(0.6); + } + + 70% { + transform: scale(1.08); + } +} + +@keyframes nefPulse { + 50% { + background: var(--pe-light); + } +} + +.deck :global(.accent-bar) { + transform-origin: left; + animation: nefSweep 600ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms both; +} + +.deck :global(h1) + p { + animation: nefFade 600ms ease-out 250ms both; +} + +.iconItem, +.table tbody tr, +.standIns li { + animation: nefFromLeft 480ms cubic-bezier(0.2, 0.7, 0.2, 1) 350ms both; +} + +.iconItem:nth-child(2), +.table tbody tr:nth-child(2), +.standIns li:nth-child(2) { animation-delay: 470ms; } +.iconItem:nth-child(3), +.table tbody tr:nth-child(3), +.standIns li:nth-child(3) { animation-delay: 590ms; } +.iconItem:nth-child(4), +.table tbody tr:nth-child(4) { animation-delay: 710ms; } +.iconItem:nth-child(5), +.table tbody tr:nth-child(5) { animation-delay: 830ms; } +.iconItem:nth-child(6), +.table tbody tr:nth-child(6) { animation-delay: 950ms; } +.table tbody tr:nth-child(n + 7) { animation-delay: 1070ms; } + +/* Comparison columns arrive from the right. */ +.body .mirror > [data-step], +.body .fromRight[data-step] { + animation-name: nefFromRight; +} + +.chip, +.card .stat, +.preview { + animation: nefPop 420ms cubic-bezier(0.2, 0.7, 0.2, 1) 650ms both; +} + +.flow > svg, +.stepArrow, +.lane > svg { + animation: nefFade 400ms ease-out 700ms both; +} + +.footnotes, +.caption, +.layerFacts .statNote, +.quietItem { + animation: nefFade 700ms ease-out 900ms both; +} + +/* Agenda: the line draws left to right; as it reaches each stop the number + pops and the card rises; then one highlight passes along the five. */ +.agendaRoad::before { + transform-origin: left; + animation: nefSweep 1000ms linear 200ms both; +} + +.body .agendaStop { + animation: none; +} + +@keyframes nefGlow { + 50% { + border-top-color: var(--pe-amber); + box-shadow: 0 0 0 3px var(--pe-light); + } +} + +.agendaStop .agendaDot { + animation: nefPop 380ms cubic-bezier(0.2, 0.7, 0.2, 1) both; + animation-delay: calc(250ms + var(--stop) * 200ms); +} + +.agendaStop .agendaCard { + animation: + nefRise 460ms cubic-bezier(0.2, 0.7, 0.2, 1) both, + nefGlow 500ms ease-in-out 1; + animation-delay: + calc(380ms + var(--stop) * 200ms), + calc(1700ms + var(--stop) * 130ms); +} + +.agendaStop:nth-child(1) { --stop: 0; } +.agendaStop:nth-child(2) { --stop: 1; } +.agendaStop:nth-child(3) { --stop: 2; } +.agendaStop:nth-child(4) { --stop: 3; } +.agendaStop:nth-child(5) { --stop: 4; } + +/* The slide's last word gets one soft pulse. */ +.verdict .chip, +.caveat { + border-radius: 9999px; + animation: + nefPop 420ms cubic-bezier(0.2, 0.7, 0.2, 1) 650ms both, + nefPulse 900ms ease-in-out 1300ms 1; +} + +.caveat { + border-radius: 0.3em; +} + +/* ---- Benefits-in-kind deck ---- */ + +/* The agenda with three stops. */ +.agendaRoad.road3 { + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 2em; +} + +.agendaRoad.road3::before { + right: 16.6%; + left: 16.6%; +} + +.agendaStop:nth-child(1) { --stop: 0; } + +/* A formula line inside a card. */ +.card .formula { + display: flex; + align-items: center; + gap: 0.5em; + margin-top: 0.7em; + border-top: 1px solid var(--color-gray-200); + padding-top: 0.7em; + color: var(--pe-dark); + font-weight: 600; +} + +.formula svg { + height: 1.4em; + width: 1.4em; +} + +/* Size: definitions, HMRC's current figures, and the last split by type in + its own dated panel. */ +.sizeGrid { + display: grid; + grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1fr); + align-items: stretch; + gap: 2.2em; +} + +.sizeGrid > .stack { + align-content: start; +} + +.defs { + display: grid; + gap: 1.3em; +} + +.defs .iconItem { + grid-template-columns: 1.9em minmax(0, 1fr); + gap: 0.8em; +} + +.defs .iconItem > svg { + height: 1.9em; + width: 1.9em; +} + +.defs .iconItem h2 { + font-size: 1.3em; +} + +.defs .iconItem p { + font-size: 1.08em; +} + +.sizeGrid .card .stat { + font-size: 2.5em; +} + +/* An older year, set apart from today's figures: grey, dashed. */ +.past { + display: grid; + align-content: start; + gap: 0.9em; + border: 2px dashed var(--color-gray-300); + border-radius: 0.8em; + background: var(--bg-secondary); + padding: 1.1em 1.3em; +} + +.past .listHead svg, +.past .hbarLabel svg { + color: var(--color-gray-500); +} + +.pastNote { + color: var(--color-gray-600); + font-size: 1.05em; + line-height: 1.3; +} + +.hbars.typeBars { + grid-template-columns: 11.5em 1fr; + row-gap: 0.75em; + column-gap: 1em; +} + +.typeBars .hbarLabel { + font-size: 1.1em; +} + +.typeBars .hbar { + height: 1.6em; +} + +.typeBars .hbarValue { + color: var(--color-gray-700); + font-size: 1.15em; +} + +.typeBars > :nth-child(4) .hbar { animation-delay: 420ms; } +.typeBars > :nth-child(6) .hbar { animation-delay: 540ms; } +.typeBars > :nth-child(8) .hbar { animation-delay: 660ms; } +.typeBars > :nth-child(10) .hbar { animation-delay: 780ms; } +.typeBars > :nth-child(12) .hbar { animation-delay: 900ms; } + +/* The bars grow when their panel's step arrives, not while it is hidden. */ +.deck .body:not([data-build="3"]):not([data-build="all"]) .past .hbar { + animation: none; +} + +.announced { + margin-top: 0.3em; + font-size: 0.8em; +} + +.rate .announced { + margin-top: 0; +} + +/* Status: one chip per state, and its key. */ +.chip.status { + gap: 0.35em; +} + +.body .chip.status svg { + height: 1.15em; + width: 1.15em; + color: currentColor; +} + +.statusLegend { + display: flex; + align-items: center; + justify-content: flex-end; + gap: 0.7em; + color: var(--color-gray-500); + font-size: 1.15em; + font-weight: 600; +} + +.layerLine .carHead .chip { + margin-left: auto; + font-size: 1.15em; + letter-spacing: 0; + text-transform: none; +} + +.card .layerLine .missing { + display: flex; + align-items: flex-start; + gap: 0.4em; + margin-top: 0.5em; + color: var(--pe-amber-dark); + font-size: 1.05em; +} + +.missing svg { + margin-top: 0.1em; + height: 1.2em; + width: 1.2em; + color: var(--pe-amber-dark); +} + +/* Tax years on one line. */ +.agendaRoad.years { + gap: 0.9em; +} + +.agendaDot.yearDot { + width: auto; + padding: 0 0.8em; + font-size: 0.95em; +} + +.agendaCard.yearCard { + min-height: 19em; + gap: 0.8em; + padding: 1em 0.9em; +} + +/* The electric car rate, as a column that grows with the rate. */ +.rate { + display: grid; + width: 100%; + height: 6.5em; + grid-template-columns: 1.6em minmax(0, 1fr); + align-items: end; + gap: 0.7em; + border-bottom: 1px solid var(--color-gray-200); + padding-bottom: 0.7em; +} + +.rateBar { + display: block; + border-radius: 0.3em 0.3em 0 0; + background: var(--pe-teal); + transform-origin: bottom; + animation: nefGrowUp 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both; + animation-delay: calc(700ms + var(--stop) * 200ms); +} + +@keyframes nefGrowUp { + from { + transform: scaleY(0); + } +} + +.agendaCard .rate p { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 0.15em 0.35em; + color: var(--color-gray-600); + font-size: 0.95em; + line-height: 1.2; +} + +.rate b { + flex-basis: 100%; + color: var(--pe-teal); + font-size: 2.3em; + font-weight: 700; + line-height: 1; + font-variant-numeric: tabular-nums; +} + +.rate svg { + height: 1.2em; + width: 1.2em; +} + +.yearEvent { + display: grid; + grid-template-columns: 1.6em minmax(0, 1fr); + gap: 0.5em; +} + +.yearEvent svg { + height: 1.6em; + width: 1.6em; +} + +.agendaCard .yearEvent h2 { + font-size: 1.12em; + text-wrap: wrap; +} + +.agendaCard .yearEvent p { + font-size: 0.95em; +} + +.yieldChip { + margin-top: auto; + white-space: normal; +} + +/* The pipeline: four cards whose rows line up; the company-car row is the + example carried through every stage. */ +.stages { + column-gap: 1.1em; +} + +.layerLine .carHead { + display: flex; + align-items: center; + gap: 0.45em; + color: var(--pe-teal-dark); +} + +.carHead svg { + height: 1.5em; + width: 1.5em; +} + +/* Coverage map. */ +.coverage td { + padding-top: 0.42em; + padding-bottom: 0.42em; +} + +.coverage .chip { + min-width: 8.4em; + font-size: 0.8em; +} + +.nowrap { + white-space: nowrap; +} + +.table .chipRow { + display: flex; + flex-wrap: nowrap; + gap: 0.4em; + margin: 0; +} + +.table .chip { + font-size: 0.78em; +} + +/* Gap cards. */ +.gapCard .standIns { + margin-top: 0.9em; + gap: 0.8em; + font-size: 1.2em; +} + +/* Phases. */ +.phase { + display: flex; + flex-direction: column; + gap: 1em; + padding: 1.3em 1.5em; +} + +.card .phaseNumber { + margin: 0; + color: var(--pe-teal); + font-size: 0.9em; + font-weight: 700; + letter-spacing: 0.12em; + text-transform: uppercase; +} + +.phase h2 { + font-size: 1.6em; +} + +.phase .standIns { + font-size: 1.2em; + color: var(--pe-dark); +} + +.phase .layerLine:last-child { + margin-top: auto; + border-top: 1px solid var(--color-gray-200); + padding-top: 0.9em; +} + +.card .effort { + display: flex; + align-items: center; + gap: 0.6em; + font-size: 1.15em; +} + +.effort .chip { + font-size: 0.85em; +} + +/* Example questions. */ +.askLabel .needs { + margin-left: auto; + letter-spacing: 0; + text-transform: none; + font-size: 1.05em; +} + +.stack > .ask { + margin-bottom: 0; +} + +@media (prefers-reduced-motion: reduce) { + .deck *, + .deck *::before, + .deck *::after { + animation: none !important; + } +} diff --git a/slideshows/nef-bik-2026/slides/index.tsx b/slideshows/nef-bik-2026/slides/index.tsx new file mode 100644 index 00000000..5b559b17 --- /dev/null +++ b/slideshows/nef-bik-2026/slides/index.tsx @@ -0,0 +1,1012 @@ +import { Fragment, type CSSProperties, type ReactNode } from "react"; +import { + IconAdjustmentsHorizontal, + IconArrowsSplit, + IconBike, + IconBolt, + IconBook2, + IconCircleCheck, + IconCircleDashed, + IconCircleHalf2, + IconHistory, + IconBrandGithub, + IconBuildingBank, + IconBuildingSkyscraper, + IconCalculator, + IconCalendarEvent, + IconCar, + IconChartBar, + IconChecklist, + IconChevronRight, + IconClipboardList, + IconCoin, + IconCoins, + IconDatabase, + IconFileInvoice, + IconFlask, + IconGasStation, + IconGift, + IconHeartbeat, + IconHelpCircle, + IconHome, + IconListSearch, + IconMail, + IconMap2, + IconMessageQuestion, + IconPigMoney, + IconPoint, + IconReceiptTax, + IconRulerMeasure, + IconScale, + IconSearch, + IconTarget, + IconTruck, + IconUser, + IconUsersGroup, + IconWorld, + IconWritingSign, + type Icon, +} from "@tabler/icons-react"; +import Slide from "@/components/core/Slide"; +import Image from "@/components/core/BasePathImage"; +import SlideHeader from "@/components/layout/SlideHeader"; +import SlideTitle from "@/components/layout/SlideTitle"; +import { speakers } from "@/lib/speakers"; +import { + byType2016, + coverage, + cover, + definitions, + dataSources, + exampleQuestions, + gaps, + phases, + pipeline, + rules2026, + size, + timeline, + type Status, + type Use, +} from "../content"; +import styles from "./deck.module.css"; +import BuildScope from "./BuildScope"; +import CountUp from "./CountUp"; + +type Item = { + icon: Icon; + title: string; + text?: ReactNode; + muted?: boolean; +}; + +// Builds: an element with `data-step={n}` appears at the slide's nth step +// (BuildScope and deck.module.css). `builds` in config.ts counts the steps. +const at = (step: number) => ({ "data-step": step }); + +// The three parts. The agenda slide, the section slides and the tracker in +// every slide's header all read this list. +const agenda: Item[] = [ + { + icon: IconGift, + title: "Benefits in kind in the UK", + text: "What they are, how big, what is changing", + }, + { + icon: IconMap2, + title: "What PolicyEngine covers", + text: "Rules, data and calibration today", + }, + { + icon: IconRulerMeasure, + title: "Scoping the project", + text: "Data, gaps, options and questions", + }, +]; + +/** Where the slide sits in the talk: past parts, this one, the ones to come. */ +function Tracker({ part }: { part: number }) { + return ( + + ); +} + +function Frame({ + part, + title, + children, + center = true, + scale = 1, +}: { + /** Index of the slide's part in the agenda. */ + part?: number; + title: string; + children: ReactNode; + /** Centre the body in the space below the title. */ + center?: boolean; + /** Enlarges a sparse slide's body; every component scales together. */ + scale?: number; +}) { + return ( + +
+ + {part !== undefined && } + {title} + + + {children} + +
+
+ ); +} + +// The deck's components: one list, one card, one table, one chip style. +// Each takes an icon. + +function IconList({ items }: { items: Item[] }) { + return ( +
+ {items.map(({ icon: ItemIcon, title, text, muted }) => ( +
+
+ ))} +
+ ); +} + +function Card({ + icon: CardIcon, + title, + text, + children, + amber = false, + step, + className = "", +}: { + icon: Icon; + title: string; + text?: ReactNode; + children?: ReactNode; + amber?: boolean; + /** The build step the card appears at. */ + step?: number; + className?: string; +}) { + return ( +
+

+

+ {text &&

{text}

} + {children} +
+ ); +} + +/** Short points inside a card, each with its icon. */ +function Points({ items }: { items: { icon: Icon; text: ReactNode }[] }) { + return ( +
    + {items.map(({ icon: PointIcon, text }, index) => ( +
  • +
  • + ))} +
+ ); +} + +/** One panel: the question on the left, exactly what would be simulated on the right. */ +function Ask({ + question, + scenario, + chip, + step, +}: { + question: string; + scenario: string; + chip?: ReactNode; + step?: number; +}) { + return ( +
+
+

+

+

{question}

+
+
+

+

+

{scenario}

+
+
+ ); +} + +/** Cards in a row, with an arrow between each pair. Card n appears at step + * n, and the arrow before it with it. */ +function Flow({ children }: { children: ReactNode[] }) { + return ( +
+ {children.map((child, index) => ( + + {index > 0 && + ))} +
+ ); +} + +const statusChip: Record = { + done: { label: "Done", className: styles.chipGood, icon: IconCircleCheck }, + partly: { label: "Partly done", className: styles.chipMid, icon: IconCircleHalf2 }, + notYet: { label: "Not yet", className: styles.chipBad, icon: IconCircleDashed }, +}; + +function StatusChip({ status }: { status: Status }) { + const { label, className, icon: ChipIcon } = statusChip[status]; + return ( + + + ); +} + +/** The key to the status chips, inside the figure it explains. */ +function StatusLegend({ of }: { of: string }) { + return ( +

+ {of} + + + +

+ ); +} + +// --------------------------------------------------------------------------- +// Opening + +// The cover, laid out as the shared CoverSlide is. Each name appears once: +// the photo's alt text is empty, because the name is in the caption under it. +export function TitleSlide() { + const people = [ + { ...speakers["vahid-ahmadi"], title: "Research Associate" }, + { ...speakers["max-ghenis"], title: "CEO" }, + ]; + return ( + +
+
+

{cover.title}

+

{cover.subtitle}

+
+ {people.map((person) => ( +
+
+ +
+

{person.name}

+

{person.title}

+
+ ))} +
+
+

{cover.event}

+

{cover.date}

+
+
+ + ); +} + +export function AgendaSlide() { + return ( + +
    + {agenda.map(({ icon: PartIcon, title, text }, index) => ( +
  1. + {index + 1} +
    +
    +
  2. + ))} +
+ + ); +} + +/** Opens a part: its number and title, and the agenda with this part lit. */ +function SectionSlide({ part }: { part: number }) { + const current = agenda[part]; + return ( + +
+
+

+ Part {part + 1} of {agenda.length} +

+

+ {current.title} +

+
+

{current.text}

+
+
+ ({ + icon: item.icon, + title: item.title, + muted: index !== part, + }))} + /> +
+
+ + ); +} + +export const BikSectionSlide = () => ; +export const CoverageSectionSlide = () => ; +export const ScopingSectionSlide = () => ; + +// --------------------------------------------------------------------------- +// Part 1: benefits in kind in the UK + +// One benefit, followed from the employer to the two charges on it, then +// what changes when the employee gives up salary for it. +export function WhatIsBikSlide() { + return ( + +
+
+ + +

+

+
+
+
+
+
+
+
+
+
+ + ); +} + +const typeIcons: Icon[] = [IconCar, IconHeartbeat, IconGasStation, IconTruck, IconCoin, IconHome]; +const definitionIcons: Icon[] = [IconGift, IconCalculator, IconBuildingSkyscraper]; + +// Three columns, read left to right: what the words mean, what HMRC +// publishes now, and (set apart, in its own dated panel) the last split by +// type, as shares so that no one reads it against today's pounds. +export function SizeSlide() { + const largest = Math.max(...byType2016.rows.map((row) => row.share)); + return ( + +
+
+

+

+
+ {definitions.map((definition, index) => { + const DefinitionIcon = definitionIcons[index] ?? IconPoint; + return ( +
+
+ ); + })} +
+
+
+

+

+
+
+

+

+

Taxable value of benefits liable to Class 1A

+

Experimental

+
+
+

+

+

Class 1A due from employers

+

Experimental

+
+
+

+

+

People with a company car

+

+ Reported to HMRC, may be an undercount; {size.carTaxableValueBn} taxable value +

+
+
+

+

+

Of company cars are fully electric

+
+
+
+
+

+

+

Shares of taxable value only. No final figures by type since.

+
+ {byType2016.rows.map((row, index) => { + const TypeIcon = typeIcons[index] ?? IconPoint; + return ( + + + + + + {row.share}% + + + ); + })} +
+
+
+ + ); +} + +/** Marks a change that is announced but not yet legislated. */ +function Announced() { + return Announced; +} + +const eventIcons: Icon[] = [ + IconReceiptTax, + IconClipboardList, + IconClipboardList, + IconPigMoney, + IconCar, +]; + +// Five tax years on one line: the electric car rate climbs along it, and +// each year carries the change that starts then. +export function ChangesSlide() { + const top = Math.max(...timeline.map((year) => year.evRate)); + return ( + +
    + {timeline.map((year, index) => { + const EventIcon = eventIcons[index] ?? IconPoint; + return ( +
  1. + {year.year} +
    +
    + +

    + {year.evRate}% +

    +
    + {year.events.map((event) => ( +
    +
    + ))} + {year.yield && ( + + {year.yield} + + )} +
    +
  2. + ); + })} +
+ + ); +} + +// --------------------------------------------------------------------------- +// Part 2: what PolicyEngine covers + +const pipelineIcons: Icon[] = [IconClipboardList, IconDatabase, IconTarget, IconScale]; +const carIcons: Icon[] = [IconCar, IconCoins, IconTarget, IconReceiptTax]; + +// The four stages of the model, and under each what it does for company +// cars: the one benefit that goes all the way through today. +export function HowItWorksSlide() { + return ( + +
+ +
+ {pipeline.map((stage, index) => { + const StageIcon = pipelineIcons[index] ?? IconPoint; + const CarIcon = carIcons[index] ?? IconPoint; + return ( +
+

+

+
+ In general +

{stage.text}

+
+
+ + +

{stage.car}

+ {stage.missing && ( +

+

+ )} +
+
+

+ +

+

{stage.fact.label}

+
+
+ ); + })} +
+
+ + ); +} + +const coverageIcons: Icon[] = [ + IconCar, + IconGasStation, + IconBuildingSkyscraper, + IconPigMoney, + IconHeartbeat, + IconTruck, + IconHome, + IconBike, +]; + +// One row per benefit, one column per layer of the model. +export function CoverageSlide() { + return ( + +
+ + + + + + + + + + + + + {coverage.map((row, index) => { + const RowIcon = coverageIcons[index] ?? IconPoint; + return ( + + + + + + + + ); + })} + +
BenefitRulesDataCalibrationToday
+ + + + + + + + + {row.note}
+
+ + ); +} + +// --------------------------------------------------------------------------- +// Part 3: scoping + +const sourceIcons: Icon[] = [ + IconUsersGroup, + IconReceiptTax, + IconBuildingSkyscraper, + IconCar, + IconHistory, + IconBike, + IconBuildingBank, +]; + +// Use chips share one neutral style, so they don't read as the Done, Partly +// done and Not yet status chips of slides 8 and 9. +const useLabel: Record = { + Base: "Base dataset", + Impute: "Impute", + Calibrate: "Calibrate", + Validate: "Validate", + Possible: "Possible; access unconfirmed", +}; + +export function DataSlide() { + return ( + + + + + + + + + + + + + {dataSources.map((row, index) => { + const SourceIcon = sourceIcons[index] ?? IconPoint; + return ( + + + + + + + + ); + })} + +
SourceWhat it measuresLevelLatestUse
+ + + {row.measures}{row.level}{row.latest} + + {row.uses.map((use) => ( + + {useLabel[use]} + + ))} + +
+ + ); +} + +const gapIcons: Icon[] = [IconScale, IconDatabase, IconTarget, IconChecklist, IconUsersGroup]; +const gapItemIcons: Icon[][] = [ + [IconHeartbeat, IconArrowsSplit, IconBuildingSkyscraper], + [IconHeartbeat, IconReceiptTax, IconCar], + [IconListSearch, IconGasStation, IconChartBar], + [IconCar, IconBuildingBank, IconPigMoney], + [IconPigMoney, IconCoins, IconCar], +]; + +export function GapSlide() { + return ( + +
+ {gaps.map((gap, index) => ( + + ({ + icon: gapItemIcons[index]?.[item] ?? IconPoint, + text, + }))} + /> + + ))} +
+ + ); +} + +const phaseIcons: Icon[] = [IconCar, IconGift, IconArrowsSplit]; +const phaseWorkIcons: Icon[][] = [ + [IconChecklist, IconTarget], + [IconHeartbeat, IconDatabase], + [IconBike, IconScale], +]; + +export function PhasesSlide() { + return ( + + + {phases.map((phase, index) => ( +
+

Phase {index + 1}

+

+ {(() => { + const PhaseIcon = phaseIcons[index] ?? IconPoint; + return

+
+ Work + ({ + icon: phaseWorkIcons[index]?.[item] ?? IconPoint, + text, + }))} + /> +
+
+ Output +

{phase.output}

+
+
+ Effort: our rough ranking +

+ {phase.effort} + {phase.effortNote} +

+
+
+ ))} +
+ + ); +} + +// Three questions, each with the scenario that would answer it and the +// phase it needs. No results on this slide. +export function ExamplesSlide() { + return ( + +
+ {exampleQuestions.map((example, index) => ( + + {example.needs} + + } + /> + ))} +
+ + ); +} + +export function QuestionsSlide() { + return ( + + + + ); +} + +const contacts = [ + { label: "policyengine.org", url: "https://policyengine.org", Icon: IconWorld }, + { label: "vahid@policyengine.org", url: "mailto:vahid@policyengine.org", Icon: IconMail }, + { + label: "PolicyEngine/policyengine-uk", + url: "https://github.com/PolicyEngine/policyengine-uk", + Icon: IconBrandGithub, + }, +]; + +export function ClosingSlide() { + return ( + +

Thank you

+
+ {contacts.map(({ label, url, Icon: ContactIcon }) => ( + event.stopPropagation()} + className={styles.contact} + > + + ))} +
+
+ ); +}