// Investment data — powers the Investments page (public + private) and the
// standalone CaseStudy detail route.
//
// Each entry carries:
//   kind     'public' | 'private'   → which sub-section of Existing Investments
//   employer one of `employers` below → the firm I was at for this investment
//   domain   company domain → used to fetch a logo (Clearbit); falls back to a
//            colored ticker badge if the logo can't load
//
// Documents (PDF case-study files) are NOT stored here — they live in Supabase
// Storage + the `investment_documents` table and are fetched per-ticker at
// render time. See INVESTMENT-DOCS-SETUP.md.

const employers = {
  finchbay: { name: 'Finch Bay Capital', short: 'FB', color: '#1F6F5C' },
  valueact: { name: 'ValueAct Capital',  short: 'VA', color: '#1A4FB5' },
  warburg:  { name: 'Warburg Pincus',    short: 'WP', color: '#0A2540' },
  reinvent: { name: 'Reinvent Capital',  short: 'RC', color: '#C9622E' },
};

const cases = {

  // ── SELECTED PUBLIC INVESTMENTS ──────────────────────────────────────

  'citigroup': {
    ticker: 'C',
    name: 'Citigroup',
    sector: 'Diversified Banking',
    thesis: 'Capital allocation reform',
    status: 'Active',
    period: '2024 –',
    kind: 'public',
    employer: 'valueact',
    domain: 'citigroup.com',
    color: '#1A4FB5',
    accent: '#3B6EE0',
    summary: 'A multi-decade incumbent with structural advantages obscured by capital allocation decisions made for the prior cycle. Working with management on a multi-year roadmap to compound book value, exit non-core geographies, and build the AI-native operating model that retail and institutional banking will require by 2030.',
    ownership: '0.4%',
    invested: 'Q3 2024',
    irr: '+34%',
    mcap: '$148B',
    px: '$78.20',
    pxChange: '+1.04%',
    bullets: [
      'Re-architect retail bank around AI-native servicing — 60% lower cost-to-serve in modeled steady-state.',
      'Wind down sub-scale geographies, return capital, simplify the operating model.',
      'Re-set incentive comp to a 5-year LT plan tied to ROTCE and book value per share.',
    ],
    chartShape: 'rising',
  },

  'morgan-stanley': {
    ticker: 'MS',
    name: 'Morgan Stanley',
    sector: 'Wealth & Institutional Finance',
    thesis: 'Wealth management re-rating',
    status: 'Closed',
    period: '2020 – 2023',
    kind: 'public',
    employer: 'valueact',
    domain: 'morganstanley.com',
    color: '#003366',
    accent: '#335F99',
    summary: 'A franchise undergoing a secular mix-shift toward wealth and asset management — lower-volatility, capital-light businesses that the market was still pricing as investment banking. The engagement focused on accelerating the Wealth Management re-segmentation, improving disclosure around the integration of E*Trade, and aligning the long-term comp framework with book-value compounding.',
    ownership: '0.8%',
    invested: 'Q1 2020',
    irr: '+68%',
    mcap: '$140B',
    px: '—',
    pxChange: '',
    bullets: [
      'Accelerate the Wealth Management segment re-segmentation to surface recurring-revenue margins.',
      'Improve E*Trade integration disclosure and set a timeline for expense synergies.',
      'Align executive comp structure with book-value-per-share compounding over a 3-year horizon.',
    ],
    chartShape: 'rising',
  },

  'alliance-data': {
    ticker: 'ADS',
    name: 'Alliance Data Systems',
    sector: 'Financial Technology',
    thesis: 'Portfolio restructuring & brand monetization',
    status: 'Closed',
    period: '2019 – 2021',
    kind: 'public',
    employer: 'valueact',
    domain: 'breadfinancial.com',
    color: '#C2372F',
    accent: '#E05C54',
    summary: 'A diversified fintech conglomerate with three distinct businesses trading at a blended multiple that undervalued the crown jewel. The engagement centered on separating the LoyaltyOne and Epsilon businesses to surface the embedded credit-card portfolio value, improving capital allocation discipline, and reframing investor communications around the core private-label credit franchise.',
    ownership: '1.2%',
    invested: 'Q2 2019',
    irr: '+41%',
    mcap: '$4B',
    px: '—',
    pxChange: '',
    bullets: [
      'Divest or spin-off the non-core LoyaltyOne and Epsilon segments.',
      'Re-focus investor narrative and disclosure on the private-label credit P&L.',
      'Introduce a capital return framework tied to CET1 targets.',
    ],
    chartShape: 'recovery',
  },

  'royal-vopak': {
    ticker: 'VPK',
    name: 'Royal Vopak',
    sector: 'Energy Infrastructure',
    thesis: 'Energy transition re-positioning',
    status: 'Closed',
    period: '2021 – 2023',
    kind: 'public',
    employer: 'valueact',
    domain: 'vopak.com',
    color: '#F26522',
    accent: '#F48A4F',
    summary: 'The world\'s largest independent tank terminal operator, repositioning its portfolio from fossil fuels to new energy — hydrogen, ammonia, LNG, and chemical logistics. Engaged on the pace of portfolio rotation, the capital allocation framework for new energy infrastructure, and improving disclosure around return-on-invested-capital by terminal vintage.',
    ownership: '0.7%',
    invested: 'Q1 2021',
    irr: '+29%',
    mcap: '€5.8B',
    px: '—',
    pxChange: '',
    bullets: [
      'Accelerate divestiture of legacy oil-products terminals at a premium to replacement cost.',
      'Publish a return hurdle and capital commitment schedule for new energy infrastructure.',
      'Improve segment disclosure to surface new-energy ROIC vs. legacy-asset economics.',
    ],
    chartShape: 'volatile-up',
  },

  'payoneer': {
    ticker: 'PAYO',
    name: 'Payoneer',
    sector: 'Cross-Border Payments',
    thesis: 'Operating model re-rating',
    status: 'Active',
    period: '2025 –',
    kind: 'public',
    employer: 'finchbay',
    domain: 'payoneer.com',
    color: '#FF5500',
    accent: '#FF8855',
    summary: 'A global payments network with a defensible underwriting moat trading at 2.8x forward EBITDA — a multiple that prices in zero growth and zero margin expansion. Operating model leverage, balance sheet monetization, and a more disciplined capital return story compound to a re-rating thesis.',
    ownership: '2.1%',
    invested: 'Q1 2025',
    irr: '+18%',
    mcap: '$3.1B',
    px: '$8.42',
    pxChange: '+2.14%',
    bullets: [
      'Take fixed-cost growth to zero through 2027; let revenue compound flow through to operating margin.',
      'Monetize the customer-funds balance via tighter ALM — 200bps NIM upside vs current.',
      'Initiate a real buyback program at <3.5x EBITDA; the float is the asset.',
    ],
    chartShape: 'volatile-up',
  },

  'i3-verticals': {
    ticker: 'IIIV',
    name: 'i3 Verticals',
    sector: 'Vertical Software · Payments',
    thesis: 'Strategic review',
    status: 'Closed',
    period: '2025',
    kind: 'public',
    employer: 'finchbay',
    domain: 'i3verticals.com',
    color: '#0E7C3A',
    accent: '#34A763',
    summary: 'Engaged in 2025 around the divestiture of the Public Sector business and a refocusing on the higher-quality Healthcare and Education verticals. Position closed Q4 2025 after the strategic review concluded with the announced sale and a meaningful re-rating of the remainder.',
    ownership: '1.2%',
    invested: 'Q1 2025',
    irr: '+62%',
    mcap: '$1.0B',
    px: '$31.04',
    pxChange: '−0.42%',
    bullets: [
      'Divest non-core Public Sector business — completed Q3 2025.',
      'Re-segment reporting to surface unit economics of the high-growth Healthcare vertical.',
      'Position exited Q4 2025 at our IRR target.',
    ],
    chartShape: 'breakout',
  },

  'asmodee': {
    ticker: 'ASMDEE',
    name: 'Asmodee',
    sector: 'Tabletop Games · IP',
    thesis: 'Governance & IP capital allocation',
    status: 'Active',
    period: '2025 –',
    kind: 'public',
    employer: 'finchbay',
    domain: 'asmodee.com',
    color: '#7A2D8E',
    accent: '#A85EBD',
    summary: 'A best-in-class tabletop IP holder spun out of Embracer with overlooked digital optionality. Working with the board on governance modernization, a sharper digital licensing strategy, and clearer disclosure around the unit economics of the back-catalog — the most under-monetized asset class in the portfolio.',
    ownership: '0.9%',
    invested: 'Q2 2025',
    irr: '+11%',
    mcap: '€1.8B',
    px: '€42.10',
    pxChange: '+0.87%',
    bullets: [
      'Modernize the board with two independents who have digital-IP licensing experience.',
      'Disclose backlog economics — license attach rate, royalty curve, digital ARPU.',
      'Initiate a programmatic tuck-in M&A framework with a published return hurdle.',
    ],
    chartShape: 'recovery',
  },

  // ── SELECTED PRIVATE INVESTMENTS ─────────────────────────────────────
  // Joby and Aurora have since listed publicly; all others remain private.

  'joby': {
    ticker: 'JOBY',
    name: 'Joby Aviation',
    sector: 'Urban Air Mobility',
    thesis: 'eVTOL commercialization platform',
    status: 'Now Public',
    period: '2020 –',
    kind: 'private',
    employer: 'reinvent',
    domain: 'jobyaviation.com',
    color: '#4A90D9',
    accent: '#6AABF0',
    summary: 'Backed the leading eVTOL platform ahead of its listing. Joby is building the cleanest, fastest urban air taxi in the world — a five-seater aircraft with a 150-mile range and near-silent operation. The investment thesis centered on the FAA certification timeline, the proprietary manufacturing cost curve, and the defensibility of the route-network moat once first-mover air routes are established.',
    ownership: 'Lead investor',
    invested: '2020',
    irr: '—',
    mcap: '~$4B',
    px: '—',
    pxChange: '',
    bullets: [
      'Support the FAA Part 135 air carrier certification process.',
      'Develop the go-to-market model for the first commercial routes (UAE, NY, LA).',
      'Build the manufacturing cost-down roadmap from prototype to 1,000-unit production.',
    ],
    chartShape: 'rising',
  },

  'aurora': {
    ticker: 'AUR',
    name: 'Aurora Innovation',
    sector: 'Autonomous Vehicles',
    thesis: 'Trucking autonomy platform',
    status: 'Now Public',
    period: '2021 –',
    kind: 'private',
    employer: 'reinvent',
    domain: 'aurora.tech',
    color: '#1C3F6E',
    accent: '#2E5FA3',
    summary: 'Backed Aurora ahead of its listing as the leading autonomous trucking platform. Aurora Driver — the full-stack AV software — is built to work across vehicle types and is licensed to OEM partners rather than owning a fleet, creating a high-margin, asset-light business model. The thesis focused on the commercial trucking wedge as the first scalable AV route to profitability.',
    ownership: 'Lead investor',
    invested: '2021',
    irr: '—',
    mcap: '~$1.5B',
    px: '—',
    pxChange: '',
    bullets: [
      'Validate the commercial trucking wedge before passenger deployment.',
      'Secure OEM licensing agreements with PACCAR and Volvo as platform anchors.',
      'Accelerate the Aurora Driver commercial launch on the Dallas–Houston corridor.',
    ],
    chartShape: 'volatile-up',
  },

  'spacex': {
    ticker: 'SPACEX',
    name: 'SpaceX',
    sector: 'Space & Defense',
    thesis: 'Launch economics & Starlink network value',
    status: 'Active',
    period: '2021 –',
    kind: 'private',
    employer: 'reinvent',
    domain: 'spacex.com',
    color: '#1C1C1E',
    accent: '#4A4A4E',
    summary: 'A secondary position in the defining infrastructure company of the 21st century. The Starlink thesis is simple: the only global broadband network with a cost structure that improves with scale, serving markets — maritime, aviation, rural, government — that terrestrial fiber will never reach economically. Falcon 9 reusability has permanently re-priced commercial launch.',
    ownership: 'Secondary',
    invested: '2021',
    irr: '—',
    mcap: 'Private',
    px: '—',
    pxChange: '',
    bullets: [
      'Starlink: 3–4M subscribers → 100M by 2030 as the global broadband default for underserved markets.',
      'Falcon 9 reusability has reduced launch cost 10x; Starship takes it another 10x.',
      'Starlink Gen 2 and direct-to-cell opens a 5B-person TAM currently unserved by any network.',
    ],
    chartShape: 'rising',
  },

  'raya': {
    ticker: 'RAYA',
    name: 'Raya',
    sector: 'Social · Consumer Tech',
    thesis: 'Curated social platform & network monetization',
    status: 'Active',
    period: '2021 –',
    kind: 'private',
    employer: 'reinvent',
    domain: 'raya.com',
    color: '#B25E8C',
    accent: '#CC7FAA',
    summary: 'An exclusive social platform with a curated, reputation-based membership model. Raya has built the rarest thing in consumer tech: a genuine scarcity moat. High-signal, invitation-only membership creates a network with outsized engagement and monetization optionality — from social to dating to professional discovery — that mass-market platforms can\'t replicate by design.',
    ownership: 'Series B',
    invested: '2021',
    irr: '—',
    mcap: 'Private',
    px: '—',
    pxChange: '',
    bullets: [
      'Extend the curation model into professional networking for the creative and entertainment industry.',
      'Build the monetization layer: premium memberships, curated events, brand partnerships.',
      'Expand internationally with the same gated, quality-over-quantity model.',
    ],
    chartShape: 'rising',
  },

  'nimble-ai': {
    ticker: 'NIMBLE',
    name: 'Nimble.ai',
    sector: 'Robotics · AI',
    thesis: 'Autonomous warehouse fulfillment',
    status: 'Active',
    period: '2022 –',
    kind: 'private',
    employer: 'reinvent',
    domain: 'nimble.ai',
    color: '#2B5CB8',
    accent: '#4A7AD9',
    summary: 'A full-stack robotics company deploying autonomous picking and packing systems in e-commerce fulfillment centers. The key insight: unlike most robotics companies that sell hardware, Nimble runs a Robotics-as-a-Service model — charging per pick, aligning incentives with the customer\'s P&L, and retaining the data flywheel that improves pick accuracy with every fulfilled order.',
    ownership: 'Series C',
    invested: '2022',
    irr: '—',
    mcap: 'Private',
    px: '—',
    pxChange: '',
    bullets: [
      'Scale the per-pick RaaS model across three Tier-1 e-commerce customers.',
      'Train the dexterous manipulation AI on diverse SKU shapes — the long-tail moat.',
      'Develop the next-generation arm hardware to bring pick cost below $0.02.',
    ],
    chartShape: 'rising',
  },

  'oscar': {
    ticker: 'OSCR',
    name: 'Oscar Health',
    sector: 'Insurtech',
    thesis: 'Tech-enabled insurance operating leverage',
    status: 'Active',
    period: '2020 –',
    kind: 'private',
    employer: 'reinvent',
    domain: 'hioscar.com',
    color: '#E85D26',
    accent: '#F07A4A',
    summary: 'The first insurer built natively on a modern technology stack — a real advantage in a $4 trillion market where legacy carriers still process claims on COBOL. The investment thesis focused on Oscar\'s ability to use real-time clinical data to identify high-cost member cohorts earlier than any incumbent, reducing medical loss ratio and compounding the data advantage as membership scales.',
    ownership: 'Pre-IPO',
    invested: '2020',
    irr: '—',
    mcap: '~$2.5B',
    px: '—',
    pxChange: '',
    bullets: [
      'Grow the individual and small-group ACA marketplace ahead of national expansion.',
      'Deploy the +Oscar platform to external carriers as a SaaS licensing business.',
      'Close the MLR gap with UnitedHealth by scaling the predictive care management layer.',
    ],
    chartShape: 'volatile-up',
  },

  'matterport': {
    ticker: 'MTTR',
    name: 'Matterport',
    sector: 'Spatial Computing',
    thesis: '3D digital twin infrastructure',
    status: 'Closed',
    period: '2020 – 2024',
    kind: 'private',
    employer: 'reinvent',
    domain: 'matterport.com',
    color: '#0E2A4F',
    accent: '#1E4A7F',
    summary: 'Built the definitive platform for digitizing the physical world into navigable 3D models. Matterport\'s moat is its spatial data library — the largest collection of indoor spaces on earth — and the proprietary computer vision that turns any camera into a 3D scanner. Position closed following the acquisition by CoStar Group in 2024.',
    ownership: 'Pre-IPO',
    invested: '2020',
    irr: '—',
    mcap: '—',
    px: '—',
    pxChange: '',
    bullets: [
      'Scale the camera-agnostic Cortex AI to unlock the entire smartphone TAM.',
      'Build the enterprise SaaS layer on top of the digital twin library.',
      'Position for strategic value as the 3D data standard for real estate, insurance, and AEC.',
    ],
    chartShape: 'recovery',
  },

  'mercurygate': {
    ticker: 'MGATE',
    name: 'MercuryGate',
    sector: 'Logistics Software',
    thesis: 'TMS platform consolidation',
    status: 'Active',
    period: '2018 –',
    kind: 'private',
    employer: 'warburg',
    domain: 'mercurygate.com',
    color: '#2E7D32',
    accent: '#4CAF50',
    summary: 'A transportation management system (TMS) platform serving mid-market shippers and 3PLs. The Warburg thesis was a buy-and-build roll-up of the fragmented mid-market TMS segment, supplemented by organic product investment in multi-modal optimization and carrier connectivity. MercuryGate has since become one of the largest independent TMS platforms by transaction volume.',
    ownership: 'Control',
    invested: '2018',
    irr: '—',
    mcap: 'Private',
    px: '—',
    pxChange: '',
    bullets: [
      'Consolidate three bolt-on TMS platforms under a unified architecture.',
      'Build a carrier-facing network product to create two-sided platform value.',
      'Develop the managed-transportation services overlay to improve net revenue retention.',
    ],
    chartShape: 'rising',
  },

  'bluegrace': {
    ticker: 'BLUEG',
    name: 'BlueGrace Logistics',
    sector: 'Tech-Enabled Logistics',
    thesis: 'Asset-light 3PL with technology moat',
    status: 'Active',
    period: '2017 –',
    kind: 'private',
    employer: 'warburg',
    domain: 'mybluegrace.com',
    color: '#1565C0',
    accent: '#2196F3',
    summary: 'One of the largest asset-light freight brokers in North America, differentiated by its proprietary carrier management platform. The investment thesis at Warburg focused on scaling BlueGrace\'s technology-first brokerage model into enterprise and government verticals, where data transparency and compliance requirements favor organized, tech-enabled logistics providers over spot-market brokers.',
    ownership: 'Control',
    invested: '2017',
    irr: '—',
    mcap: 'Private',
    px: '—',
    pxChange: '',
    bullets: [
      'Scale the enterprise and government verticals using the compliance-first technology stack.',
      'Build a proprietary carrier scorecard to differentiate on service quality, not just price.',
      'Develop the BlueShip TMS as a licensed SaaS product for smaller brokers.',
    ],
    chartShape: 'rising',
  },

  'dude-solutions': {
    ticker: 'DUDE',
    name: 'Dude Solutions',
    sector: 'Vertical Software',
    thesis: 'Facilities management SaaS consolidation',
    status: 'Closed',
    period: '2016 – 2021',
    kind: 'private',
    employer: 'warburg',
    domain: 'dudesolutions.com',
    color: '#00695C',
    accent: '#00897B',
    summary: 'The market leader in cloud-based operations management software for non-profit and public-sector organizations — schools, municipalities, healthcare systems, and faith-based institutions. The engagement focused on expanding the platform from a single-module CMMS into a multi-product operations suite and building the customer success infrastructure to drive expansion revenue.',
    ownership: 'Control',
    invested: '2016',
    irr: '—',
    mcap: '—',
    px: '—',
    pxChange: '',
    bullets: [
      'Expand from CMMS into a full operations suite: asset management, energy, safety compliance.',
      'Build the customer success motion to lift NRR above 110% through product attach.',
      'Integrate three bolt-on acquisitions under a unified platform architecture.',
    ],
    chartShape: 'rising',
  },

};

window.cases = cases;
window.employers = employers;
