Skip to content

donaldfilimon/abi / .agents/skills/pptx

Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.

FileKindSize
SKILL.mdskill md9.1 KB
references/creating.mdmarkdown18.8 KB
references/editing.mdmarkdown28.2 KB
references/template_taxonomy.jsonconfig112.3 KB
references/templates/activewear_collection_overview.jsscript31.4 KB
references/templates/africa_fmcg_value_chain_playbook.jsscript40.1 KB
references/templates/ag_trade_finance_pitch_deck.jsscript32.3 KB
references/templates/agri_commodities_trading_primer.jsscript31.9 KB
references/templates/agtech_seed_round_pitch_deck.jsscript36.9 KB
references/templates/ai_blockchain_market_briefing.jsscript47.6 KB
references/templates/ai_llm_technical_history.jsscript34.4 KB
references/templates/ai_robotics_startup_pitch_deck.jsscript70.8 KB
references/templates/ai_sports_media_partnership_pitch.jsscript38.4 KB
references/templates/ai_startup_series_a_pitch_deck.jsscript18.3 KB
references/templates/american_regional_pizza_guide.jsscript23.4 KB
references/templates/animation_studio_company_history.jsscript20.5 KB
references/templates/apothecary_brand_introduction.jsscript18.7 KB
references/templates/art_gallery_exhibition_presentation.jsscript92.5 KB
references/templates/auto_repair_company_profile.jsscript68.7 KB
references/templates/automotive_board_strategy_review.jsscript52.0 KB
references/templates/bagel_shop_menu_pitch_deck.jsscript32.3 KB
references/templates/bakery_business_pitch_deck.jsscript31.8 KB
references/templates/bakery_commercial_loan_pitch.jsscript32.9 KB
references/templates/bakery_concept_vision_board.jsscript31.6 KB
references/templates/biology_dissertation_proposal.jsscript37.4 KB
references/templates/biotech_cloud_rd_infrastructure_proposal.jsscript49.7 KB
references/templates/biotech_series_b_pitch_deck.jsscript53.4 KB
references/templates/biotech_startup_pitch_deck.jsscript23.7 KB
references/templates/cafe_concept_vision_pitch_deck.jsscript22.0 KB
references/templates/cfo_financial_performance_review.jsscript41.4 KB
references/templates/childcare_operator_partnership_pitch.jsscript32.2 KB
references/templates/coffee_franchise_prospectus.jsscript51.8 KB
references/templates/college_admissions_consulting_pitch.jsscript31.2 KB
references/templates/college_sports_policy_briefing.jsscript17.9 KB
references/templates/comedy_writing_guide.jsscript22.3 KB
references/templates/consumer_goods_annual_budget.jsscript15.9 KB
references/templates/cruise_itinerary_trade_portfolio.jsscript42.8 KB
references/templates/crypto_hedge_fund_pitch_deck.jsscript34.5 KB
references/templates/crypto_portfolio_management.jsscript25.6 KB
references/templates/crypto_quantum_risk_briefing.jsscript47.2 KB
references/templates/crypto_series_a_pitch_deck.jsscript51.2 KB
references/templates/destination_marketing_event_pitch.jsscript27.9 KB
references/templates/economic_consulting_prospectus.jsscript25.3 KB
references/templates/edinburgh_fringe_performer_guide.jsscript27.3 KB
references/templates/edtech_ai_product_pitch_deck.jsscript95.7 KB
references/templates/education_calculus_lecture.jsscript29.6 KB
references/templates/education_intro_chemistry_lecture.jsscript23.0 KB
references/templates/education_intro_to_piano_lecture.jsscript26.6 KB
references/templates/education_literature_canterbury_tales.jsscript18.9 KB
references/templates/education_music_theory_lesson.jsscript22.6 KB
references/templates/education_university_profile.jsscript48.6 KB
references/templates/education_visual_essay_presentation.jsscript25.4 KB
references/templates/education_water_polo_basics.jsscript22.8 KB
references/templates/electronic_music_promoter_field_report.jsscript38.9 KB
references/templates/energy_storage_vendor_assessment.jsscript36.4 KB
references/templates/entertainment_creative_pitch_deck.jsscript27.1 KB
references/templates/entertainment_film_pitch_deck.jsscript110.2 KB
references/templates/family_office_portfolio_review.jsscript52.9 KB
references/templates/fashion_apparel_lookbook.jsscript41.0 KB
references/templates/feature_film_pitch_deck.jsscript32.1 KB
references/templates/finance_10k_filing_analysis_guide.jsscript35.2 KB
references/templates/finance_ai_fixed_income_briefing.jsscript34.5 KB
references/templates/finance_ai_portfolio_analysis.jsscript21.5 KB
references/templates/finance_cockroach_portfolio_strategy.jsscript32.8 KB
references/templates/finance_crypto_fund_pitch_deck.jsscript27.1 KB
references/templates/finance_day_trading_primer.jsscript35.2 KB
references/templates/finance_digital_asset_custody_briefing.jsscript44.1 KB
references/templates/finance_employee_excellence_awards.jsscript24.4 KB
references/templates/finance_equity_investment_analysis.jsscript117.2 KB
references/templates/finance_equity_portfolio_performance_report.jsscript48.5 KB
references/templates/finance_equity_research_index_analysis.jsscript39.2 KB
references/templates/finance_equity_research_investment_thesis.jsscript42.2 KB
references/templates/finance_equity_research_stock_pitch.jsscript35.8 KB
references/templates/finance_hedge_fund_pitch_deck.jsscript29.6 KB
references/templates/finance_hedge_fund_primer.jsscript78.5 KB
references/templates/finance_ifrs_us_gaap_training.jsscript7.6 KB
references/templates/finance_investment_committee_memo.jsscript41.2 KB
references/templates/finance_investment_portfolio_brief.jsscript32.0 KB
references/templates/finance_lihtc_bond_portfolio_review.jsscript43.6 KB
references/templates/finance_nft_marketplace_pitch_deck.jsscript44.5 KB
references/templates/finance_portfolio_quarterly_review.jsscript40.7 KB
references/templates/finance_prediction_markets_investment_memo.jsscript28.9 KB
references/templates/finance_private_credit_primer.jsscript34.7 KB
references/templates/finance_quant_trading_desk_proposal.jsscript50.5 KB
references/templates/finance_rwa_tokenization_pitch.jsscript39.6 KB
references/templates/finance_spv_pre_ipo_pitch.jsscript50.0 KB
references/templates/finance_vc_investment_memo.jsscript32.8 KB
references/templates/finance_vc_investment_memo_2.jsscript43.9 KB
references/templates/finance_venture_capital_primer.jsscript31.5 KB
references/templates/fintech_ai_series_a_pitch_deck.jsscript44.5 KB
references/templates/fitness_franchise_qbr_performance.jsscript40.6 KB
references/templates/fitness_gym_summer_press_kit.jsscript32.0 KB
references/templates/fitness_personal_training_keynote.jsscript22.9 KB
references/templates/fixed_income_macro_outlook.jsscript145.9 KB
references/templates/flower_shop_company_profile.jsscript44.1 KB
references/templates/food_beverage_bakery_brand_profile.jsscript19.1 KB
references/templates/food_beverage_seed_pitch_deck.jsscript30.9 KB
references/templates/food_delivery_subscription_pitch.jsscript59.1 KB
references/templates/future_mobility_trends_keynote.jsscript44.2 KB
references/templates/game_design_character_brief.jsscript44.2 KB
references/templates/gaming_ai_startup_pitch_deck.jsscript41.9 KB
references/templates/gaming_product_portfolio_review.jsscript33.5 KB
references/templates/garyvee_content_strategy_framework.jsscript25.7 KB
references/templates/gelateria_seed_pitch_deck.jsscript26.6 KB
references/templates/geospatial_data_analysis_training.jsscript33.3 KB
references/templates/grocery_flash_sale_promotion.jsscript32.9 KB
references/templates/healthcare_ai_partnership_proposal.jsscript31.8 KB
references/templates/healthcare_ma_pitch_deck.jsscript52.0 KB
references/templates/healthcare_nursing_performance_review.jsscript33.7 KB
references/templates/healthcare_patient_accessibility_survey.jsscript37.4 KB
references/templates/healthcare_patient_forms_standardization.jsscript56.8 KB
references/templates/healthcare_promis57_patient_guide.jsscript43.3 KB
references/templates/healthcare_std_prophylaxis_grand_rounds.jsscript51.9 KB
references/templates/healthcare_tb_testing_clinical_training.jsscript23.9 KB
references/templates/hedge_fund_portfolio_strategy.jsscript26.7 KB
references/templates/hospitality_bed_and_breakfast_promo.jsscript41.9 KB
references/templates/indoor_golf_club_launch_deck.jsscript25.9 KB
references/templates/institutional_crypto_exchange_pitch_deck.jsscript63.0 KB
references/templates/interior_design_studio_portfolio.jsscript36.4 KB
references/templates/intro_to_guitar_lecture.jsscript33.0 KB
references/templates/italy_travel_destination_guide.jsscript49.5 KB
references/templates/japan_travel_destination_guide.jsscript35.3 KB
references/templates/jazz_bar_concept_pitch.jsscript34.5 KB
references/templates/k12_literacy_tutoring_pitch.jsscript26.0 KB
references/templates/kids_taekwondo_marketing.jsscript24.8 KB
references/templates/labor_economics_research_presentation.jsscript27.7 KB
references/templates/local_ai_consulting_pitch_deck.jsscript35.0 KB
references/templates/local_business_pitch_deck.jsscript28.1 KB
references/templates/local_city_history_overview.jsscript31.0 KB
references/templates/local_ice_cream_shop_pitch_deck.jsscript26.9 KB
references/templates/luxury_design_brand_story.jsscript17.9 KB
references/templates/luxury_eyewear_retail_seed_pitch.jsscript31.9 KB
references/templates/luxury_hospitality_brand_guidelines.jsscript25.2 KB
references/templates/luxury_interior_design_partnership_deck.jsscript22.5 KB
references/templates/luxury_nanny_placement_brochure.jsscript37.5 KB
references/templates/macro_research_yield_curve_report.jsscript42.5 KB
references/templates/mba_financial_crisis_lecture.jsscript55.7 KB
references/templates/mental_health_app_pitch_deck.jsscript42.4 KB
references/templates/middle_school_nutrition_lesson.jsscript26.8 KB
references/templates/mobile_pet_grooming_seed_pitch_deck.jsscript25.8 KB
references/templates/mobile_pet_grooming_service_overview.jsscript48.8 KB
references/templates/municipal_water_infrastructure_proposal.jsscript35.7 KB
references/templates/music_festival_seed_pitch_deck.jsscript27.6 KB
references/templates/music_label_pitch_deck.jsscript44.7 KB
references/templates/nonprofit_wildlife_conservation_prospectus.jsscript50.3 KB
references/templates/nursing_documentation_transformation_strategy.jsscript37.3 KB
references/templates/orbital_compute_investor_memo.jsscript45.1 KB
references/templates/paintball_arena_pitch_deck.jsscript31.5 KB
references/templates/paragliding_school_prospectus.jsscript37.6 KB
references/templates/pest_control_company_overview.jsscript33.6 KB
references/templates/pharma_product_launch_deck.jsscript42.3 KB
references/templates/photography_studio_portfolio.jsscript18.1 KB
references/templates/pressure_washing_company_profile.jsscript36.6 KB
references/templates/public_health_snus_field_guide.jsscript45.4 KB
references/templates/real_estate_development_pitch.jsscript29.7 KB
references/templates/real_estate_fund_investment_briefing.jsscript40.7 KB
references/templates/real_estate_investing_primer.jsscript43.4 KB
references/templates/real_estate_market_overview.jsscript18.0 KB
references/templates/real_estate_neighborhood_buyer_guide.jsscript27.8 KB
references/templates/real_estate_self_storage_community_pitch.jsscript62.0 KB
references/templates/regional_airport_pitch_deck.jsscript29.6 KB
references/templates/restaurant_concept_pitch_deck.jsscript20.8 KB
references/templates/restaurant_concept_vision_deck.jsscript24.4 KB
references/templates/restaurant_culinary_profile.jsscript25.1 KB
references/templates/restaurant_franchise_pitch_deck.jsscript39.2 KB
references/templates/restaurant_investor_pitch_deck.jsscript35.5 KB
references/templates/retail_bookstore_profile.jsscript29.4 KB
references/templates/retail_florist_business_profile.jsscript17.3 KB
references/templates/retail_pet_store_pitch_deck.jsscript23.2 KB
references/templates/retail_product_catalog_overview.jsscript27.4 KB
references/templates/retro_tech_cafe_pitch_deck.jsscript80.9 KB
references/templates/scuba_dive_operator_prospectus.jsscript37.7 KB
references/templates/seaborn_data_visualization_training.jsscript31.4 KB
references/templates/skateboarding_beginner_course_lesson.jsscript27.1 KB
references/templates/snowboard_school_prospectus.jsscript42.5 KB
references/templates/snowboarding_beginner_lesson.jsscript24.1 KB
references/templates/sports_betting_saas_pitch_deck.jsscript33.1 KB
references/templates/sports_market_expansion_strategy.jsscript93.5 KB
references/templates/sports_marketing_promo_calendar.jsscript21.3 KB
references/templates/sports_sponsorship_pitch_deck.jsscript30.2 KB
references/templates/student_transportation_company_overview.jsscript41.3 KB
references/templates/surf_school_intro_lesson.jsscript31.0 KB
references/templates/tech_hardware_expansion_strategy.jsscript41.1 KB
references/templates/tv_series_pitch_deck.jsscript38.5 KB
references/templates/university_giving_day_fundraising.jsscript25.0 KB
references/templates/urban_landscaping_service_proposal.jsscript28.9 KB
references/templates/us_history_student_presentation.jsscript38.1 KB
references/templates/vacation_rental_quarterly_financial_report.jsscript35.3 KB
references/templates/video_game_industry_history.jsscript32.0 KB
references/templates/video_game_pitch_deck.jsscript45.7 KB
references/templates/vintage_computer_cafe_pitch_deck.jsscript32.0 KB
references/templates/wakeboarding_coaching_prospectus.jsscript35.8 KB
references/templates/web3_defi_app_design_review.jsscript51.2 KB
references/templates/wellness_startup_seed_pitch_deck.jsscript57.6 KB
references/templates/wine_tourism_strategy_brief.jsscript33.8 KB
references/templates/youth_soccer_training_program.jsscript42.5 KB
references/templates/youtube_channel_media_kit.jsscript52.1 KB
scripts/__init__.pyscript0 B
scripts/add_slide.pyscript6.7 KB
scripts/check_overlaps.pyscript17.2 KB

references/templates/finance_private_credit_primer.js

View on GitHub
// Replica of Private_Credit.pptx — built with pptxgenjs
// Run: node private_credit.js  →  produces Private_Credit.pptx

const pptxgen = require("pptxgenjs");

// ─── Palette ──────────────────────────────────────────────
const BG        = "EFEAE0"; // warm cream background
const BG_CARD   = "F5F0E6"; // slightly lighter card on cream
const DARK_BG   = "2B2824"; // dark card / dark slide background
const DARK_TEXT = "1A1A1A"; // near-black body
const MUTED     = "7A756D"; // muted gray-brown for labels/meta
const MUTED_LT  = "A89F93"; // lighter muted for footers on dark
const ACCENT    = "B85C38"; // terracotta/rust accent
const RULE      = "CFC7B9"; // thin divider color on cream
const RULE_DK   = "4A443E"; // divider on dark
const CREAM_TX  = "EFEAE0"; // cream text on dark bg

// Fonts
const HEADER_FONT = "Arial";
const BODY_FONT   = "Arial";

const pres = new pptxgen();
pres.layout  = "LAYOUT_WIDE";   // 13.333" × 7.5"
pres.author  = "Retail Primer";
pres.title   = "Private Credit — A Retail Primer";

const W = 13.333;
const H = 7.5;
const MARGIN = 0.6;

// ─── Helpers ──────────────────────────────────────────────
function addHeaderFooter(slide, opts) {
  const {
    eyebrowLeft = "",
    pageNum     = "",
    footerLeft  = "PRIVATE CREDIT · A RETAIL PRIMER",
    footerRight = "",
    dark        = false,
  } = opts || {};

  const metaColor   = dark ? MUTED_LT : MUTED;
  const footerColor = dark ? MUTED_LT : MUTED;

  // Top-left eyebrow
  if (eyebrowLeft) {
    slide.addText(eyebrowLeft, {
      x: MARGIN, y: 0.35, w: 8, h: 0.3,
      fontSize: 10, fontFace: HEADER_FONT,
      color: metaColor, charSpacing: 4, bold: false, margin: 0,
    });
  }
  // Top-right page number
  if (pageNum) {
    slide.addText(pageNum, {
      x: W - MARGIN - 2, y: 0.35, w: 2, h: 0.3,
      fontSize: 10, fontFace: HEADER_FONT,
      color: metaColor, charSpacing: 4, align: "right", margin: 0,
    });
  }
  // Bottom-left footer
  if (footerLeft) {
    slide.addText(footerLeft, {
      x: MARGIN, y: H - 0.55, w: 8, h: 0.3,
      fontSize: 10, fontFace: HEADER_FONT,
      color: footerColor, charSpacing: 4, margin: 0,
    });
  }
  // Bottom-right footer
  if (footerRight) {
    slide.addText(footerRight, {
      x: W - MARGIN - 5, y: H - 0.55, w: 5, h: 0.3,
      fontSize: 10, fontFace: HEADER_FONT,
      color: footerColor, charSpacing: 4, align: "right", margin: 0,
    });
  }
}

// ═══════════════════════════════════════════════════════════
// SLIDE 1 — Title
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: BG };

  addHeaderFooter(s, {
    eyebrowLeft: "A RETAIL PRIMER · 2026",
    pageNum:     "10 MIN READ",
    footerLeft:  "INTRODUCTION · DEFINITIONS · MARKET · PLAYERS · ACCESS",
    footerRight: "01 / 10",
  });

  // Huge title "Private Credit."
  s.addText(
    [
      { text: "Private ", options: { color: DARK_TEXT, bold: false } },
      { text: "Credit.",   options: { color: ACCENT,    italic: true } },
    ],
    {
      x: MARGIN, y: 1.3, w: W - 2 * MARGIN, h: 2.2,
      fontSize: 110, fontFace: HEADER_FONT, valign: "top", margin: 0,
    }
  );

  // Thin divider rule
  s.addShape(pres.shapes.LINE, {
    x: MARGIN, y: 4.55, w: 5.5, h: 0,
    line: { color: RULE, width: 0.75 },
  });

  // Subtitle below rule
  s.addText(
    "The $1.7 trillion corner of finance that used to belong only to institutions.",
    {
      x: MARGIN, y: 4.8, w: 6.2, h: 1.0,
      fontSize: 18, fontFace: BODY_FONT,
      color: DARK_TEXT, margin: 0,
    }
  );
}

// ═══════════════════════════════════════════════════════════
// SLIDE 2 — Definition
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: BG };

  addHeaderFooter(s, {
    eyebrowLeft: "01 · DEFINITION",
    pageNum:     "02 / 10",
    footerRight: "DEFINITION",
  });

  // Small eyebrow label
  s.addText("WHAT IS PRIVATE CREDIT?", {
    x: MARGIN, y: 1.3, w: 8, h: 0.35,
    fontSize: 11, fontFace: HEADER_FONT,
    color: MUTED, charSpacing: 4, margin: 0,
  });

  // Big definition text (rich)
  s.addText(
    [
      { text: "Loans made ",                           options: { color: DARK_TEXT } },
      { text: "directly",                              options: { color: ACCENT, italic: true } },
      { text: " from non-bank lenders to mostly private companies — negotiated one-on-one, held to maturity, and ",
                                                       options: { color: DARK_TEXT } },
      { text: "never traded",                          options: { color: ACCENT, italic: true } },
      { text: " on a public market.",                  options: { color: DARK_TEXT } },
    ],
    {
      x: MARGIN, y: 1.8, w: W - 2 * MARGIN, h: 2.6,
      fontSize: 36, fontFace: HEADER_FONT, valign: "top",
      paraSpaceAfter: 0, margin: 0,
    }
  );

  // Divider rule above the three columns
  s.addShape(pres.shapes.LINE, {
    x: MARGIN, y: 5.0, w: W - 2 * MARGIN, h: 0,
    line: { color: RULE, width: 0.75 },
  });

  // 3 columns
  const colW = (W - 2 * MARGIN) / 3;
  const cols = [
    { label: "WHO LENDS",   body: "Asset managers, credit funds, BDCs — not banks." },
    { label: "WHO BORROWS", body: "Mid-market companies, often PE-backed." },
    { label: "HOW IT PAYS", body: "Floating-rate coupon, typically 8–12% gross." },
  ];
  cols.forEach((c, i) => {
    const x = MARGIN + i * colW;
    s.addText(c.label, {
      x: x + 0.15, y: 5.25, w: colW - 0.3, h: 0.35,
      fontSize: 10, fontFace: HEADER_FONT,
      color: ACCENT, charSpacing: 4, margin: 0,
    });
    s.addText(c.body, {
      x: x + 0.15, y: 5.6, w: colW - 0.3, h: 1.0,
      fontSize: 14, fontFace: BODY_FONT, color: DARK_TEXT, margin: 0,
    });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 3 — How it differs (two cards: light + dark)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: BG };

  addHeaderFooter(s, {
    eyebrowLeft: "02 · HOW IT DIFFERS",
    pageNum:     "03 / 10",
    footerRight: "COMPARISON",
  });

  // Title
  s.addText("Two ways a company can borrow.", {
    x: MARGIN, y: 1.0, w: W - 2 * MARGIN, h: 0.8,
    fontSize: 40, fontFace: HEADER_FONT, color: DARK_TEXT, margin: 0,
  });

  // Subtitle
  s.addText("Same economic purpose — very different instruments, investors, and liquidity.", {
    x: MARGIN, y: 1.85, w: W - 2 * MARGIN, h: 0.4,
    fontSize: 14, fontFace: BODY_FONT, color: MUTED, margin: 0,
  });

  // Cards geometry
  const cardY = 2.45, cardH = 4.35;
  const gap = 0.3;
  const cardW = (W - 2 * MARGIN - gap) / 2;
  const leftX  = MARGIN;
  const rightX = MARGIN + cardW + gap;

  // LEFT card (light)
  s.addShape(pres.shapes.RECTANGLE, {
    x: leftX, y: cardY, w: cardW, h: cardH,
    fill: { color: BG_CARD }, line: { color: RULE, width: 0.75 },
  });
  // RIGHT card (dark)
  s.addShape(pres.shapes.RECTANGLE, {
    x: rightX, y: cardY, w: cardW, h: cardH,
    fill: { color: DARK_BG }, line: { type: "none" },
  });

  // Header labels
  const cardPadX = 0.35;
  s.addText("PUBLIC DEBT", {
    x: leftX + cardPadX, y: cardY + 0.3, w: cardW - 2 * cardPadX, h: 0.3,
    fontSize: 11, fontFace: HEADER_FONT, color: MUTED, charSpacing: 4, margin: 0,
  });
  s.addText("Bonds & syndicated loans", {
    x: leftX + cardPadX, y: cardY + 0.6, w: cardW - 2 * cardPadX, h: 0.55,
    fontSize: 24, fontFace: HEADER_FONT, color: DARK_TEXT, margin: 0,
  });
  s.addText("PRIVATE CREDIT", {
    x: rightX + cardPadX, y: cardY + 0.3, w: cardW - 2 * cardPadX, h: 0.3,
    fontSize: 11, fontFace: HEADER_FONT, color: MUTED_LT, charSpacing: 4, margin: 0,
  });
  s.addText("Direct, negotiated loans", {
    x: rightX + cardPadX, y: cardY + 0.6, w: cardW - 2 * cardPadX, h: 0.55,
    fontSize: 24, fontFace: HEADER_FONT, color: CREAM_TX, margin: 0,
  });

  // Divider under title of each card
  s.addShape(pres.shapes.LINE, {
    x: leftX + cardPadX, y: cardY + 1.3, w: cardW - 2 * cardPadX, h: 0,
    line: { color: RULE, width: 0.5 },
  });
  s.addShape(pres.shapes.LINE, {
    x: rightX + cardPadX, y: cardY + 1.3, w: cardW - 2 * cardPadX, h: 0,
    line: { color: RULE_DK, width: 0.5 },
  });

  // Rows
  const rows = [
    ["FORMAT",    "Standardised, tradable securities sold to many investors.",
                  "Bespoke contracts between one lender (or a small club) and the borrower."],
    ["PRICING",   "Marked to market daily — visible price swings.",
                  "Held at fair value — smoother reported returns."],
    ["LIQUIDITY", "High. Sell any business day.",
                  "Low. Usually locked up for years."],
    ["YIELD",     "Lower. Reflects broad demand and transparency.",
                  "Higher — an \"illiquidity premium\" of ~2–4%."],
    ["COVENANTS", "Often \"covenant-lite.\"",
                  "Stronger. Lender negotiates directly."],
  ];

  const rowStart = cardY + 1.45;
  const rowH     = (cardH - 1.6) / rows.length;
  const labelW   = 1.5;

  rows.forEach((r, i) => {
    const y = rowStart + i * rowH;

    // Light card row
    s.addText(r[0], {
      x: leftX + cardPadX, y: y + 0.1, w: labelW, h: 0.3,
      fontSize: 10, fontFace: HEADER_FONT,
      color: MUTED, charSpacing: 4, margin: 0,
    });
    s.addText(r[1], {
      x: leftX + cardPadX + labelW, y: y + 0.05,
      w: cardW - 2 * cardPadX - labelW, h: rowH - 0.1,
      fontSize: 12, fontFace: BODY_FONT, color: DARK_TEXT, margin: 0, valign: "top",
    });

    // Dark card row
    s.addText(r[0], {
      x: rightX + cardPadX, y: y + 0.1, w: labelW, h: 0.3,
      fontSize: 10, fontFace: HEADER_FONT,
      color: MUTED_LT, charSpacing: 4, margin: 0,
    });
    s.addText(r[2], {
      x: rightX + cardPadX + labelW, y: y + 0.05,
      w: cardW - 2 * cardPadX - labelW, h: rowH - 0.1,
      fontSize: 12, fontFace: BODY_FONT, color: CREAM_TX, margin: 0, valign: "top",
    });

    // Row separator (skip before first row)
    if (i > 0) {
      s.addShape(pres.shapes.LINE, {
        x: leftX + cardPadX, y: y, w: cardW - 2 * cardPadX, h: 0,
        line: { color: RULE, width: 0.5 },
      });
      s.addShape(pres.shapes.LINE, {
        x: rightX + cardPadX, y: y, w: cardW - 2 * cardPadX, h: 0,
        line: { color: RULE_DK, width: 0.5 },
      });
    }
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 4 — Why it grew (4 columns with stats)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: BG };

  addHeaderFooter(s, {
    eyebrowLeft: "03 · WHY IT GREW",
    pageNum:     "04 / 10",
    footerRight: "DRIVERS",
  });

  s.addText("Four forces reshaped who lends to whom.", {
    x: MARGIN, y: 1.0, w: W - 2 * MARGIN, h: 0.8,
    fontSize: 40, fontFace: HEADER_FONT, color: DARK_TEXT, margin: 0,
  });

  s.addText("Post-2008, banks pulled back from mid-market lending. Asset managers filled the gap.", {
    x: MARGIN, y: 1.85, w: W - 2 * MARGIN, h: 0.4,
    fontSize: 14, fontFace: BODY_FONT, color: MUTED, margin: 0,
  });

  // Top rule
  const topY = 2.45;
  s.addShape(pres.shapes.LINE, {
    x: MARGIN, y: topY, w: W - 2 * MARGIN, h: 0,
    line: { color: RULE, width: 0.5 },
  });
  // Bottom rule
  const botY = 6.6;
  s.addShape(pres.shapes.LINE, {
    x: MARGIN, y: botY, w: W - 2 * MARGIN, h: 0,
    line: { color: RULE, width: 0.5 },
  });

  const items = [
    { num: "01", head: "Banks retreated.",  body: "Basel III and Dodd-Frank made leveraged mid-market loans expensive for banks to hold.",
      stat: "−50%",  lbl: "BANK SHARE OF LBO DEBT, '08–'23" },
    { num: "02", head: "PE needed debt.",   body: "Private equity buyouts surged — and they need reliable, flexible lenders at closing.",
      stat: "$8T",   lbl: "GLOBAL PRIVATE EQUITY AUM, 2025" },
    { num: "03", head: "Yield was scarce.", body: "A decade of near-zero rates pushed pensions and insurers hunting for income.",
      stat: "0.25%", lbl: "FED FUNDS RATE, A DECADE OF ZIRP" },
    { num: "04", head: "Rates rose.",       body: "Floating-rate loans suddenly paid 10%+ as central banks hiked — the fastest AUM growth on record.",
      stat: "11.8%", lbl: "AVG. DIRECT-LENDING YIELD, 2024" },
  ];

  const colW = (W - 2 * MARGIN) / 4;
  items.forEach((it, i) => {
    const x = MARGIN + i * colW;

    // Vertical separators between columns
    if (i > 0) {
      s.addShape(pres.shapes.LINE, {
        x: x, y: topY + 0.2, w: 0, h: botY - topY - 0.4,
        line: { color: RULE, width: 0.5 },
      });
    }

    // Number
    s.addText(it.num, {
      x: x + 0.25, y: topY + 0.35, w: colW - 0.5, h: 0.35,
      fontSize: 12, fontFace: HEADER_FONT, color: ACCENT, margin: 0,
    });
    // Head
    s.addText(it.head, {
      x: x + 0.25, y: topY + 0.75, w: colW - 0.5, h: 0.5,
      fontSize: 20, fontFace: HEADER_FONT, color: DARK_TEXT, margin: 0,
    });
    // Body
    s.addText(it.body, {
      x: x + 0.25, y: topY + 1.3, w: colW - 0.5, h: 1.4,
      fontSize: 12, fontFace: BODY_FONT, color: DARK_TEXT, margin: 0, valign: "top",
    });
    // Stat (big accent number)
    s.addText(it.stat, {
      x: x + 0.25, y: topY + 3.0, w: colW - 0.5, h: 0.8,
      fontSize: 44, fontFace: HEADER_FONT, color: ACCENT, margin: 0,
    });
    // Stat label
    s.addText(it.lbl, {
      x: x + 0.25, y: topY + 3.85, w: colW - 0.5, h: 0.5,
      fontSize: 9, fontFace: HEADER_FONT, color: MUTED, charSpacing: 3, margin: 0, valign: "top",
    });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 5 — Market today (bar chart + scale check)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: BG };

  addHeaderFooter(s, {
    eyebrowLeft: "04 · THE MARKET TODAY",
    pageNum:     "05 / 10",
    footerRight: "MARKET SIZE · ILLUSTRATIVE",
  });

  // Title with accent figures
  s.addText(
    [
      { text: "From ",             options: { color: DARK_TEXT } },
      { text: "$0.4T",             options: { color: ACCENT, italic: true } },
      { text: " to ",              options: { color: DARK_TEXT } },
      { text: "$1.7T",             options: { color: ACCENT, italic: true } },
      { text: " in a decade.",     options: { color: DARK_TEXT } },
    ],
    {
      x: MARGIN, y: 1.0, w: W - 2 * MARGIN, h: 0.8,
      fontSize: 40, fontFace: HEADER_FONT, margin: 0,
    }
  );

  s.addText(
    "Global private credit AUM. Illustrative figures — Preqin, BlackRock, IMF Global Financial Stability Report.",
    {
      x: MARGIN, y: 1.85, w: W - 2 * MARGIN - 4, h: 0.6,
      fontSize: 14, fontFace: BODY_FONT, color: MUTED, margin: 0,
    }
  );

  // ——— Left side: manual bar chart ———
  const chartX = MARGIN;
  const chartY = 3.1;
  const chartW = 6.3;
  const chartH = 3.6;
  const years  = ["2014", "2018", "2022", "2025", "2030 E"];
  const values = [0.4, 0.7, 1.2, 1.7, 2.8];
  const labels = ["$0.4T", "$0.7T", "$1.2T", "$1.7T", "~$2.8T"];
  const maxVal = 2.8;
  const barMaxH = 2.8;           // max bar height in inches
  const barBaseY = chartY + barMaxH + 0.5;
  const nBars = values.length;
  const slotW = chartW / nBars;
  const barW  = 0.75;            // inches

  // Baseline rule
  s.addShape(pres.shapes.LINE, {
    x: chartX, y: barBaseY + 0.02, w: chartW, h: 0,
    line: { color: RULE, width: 0.5 },
  });

  values.forEach((v, i) => {
    const h = (v / maxVal) * barMaxH;
    const cx = chartX + i * slotW + (slotW - barW) / 2;
    const by = barBaseY - h;

    let fill = DARK_BG;
    if (i === 3) fill = ACCENT;           // 2025 highlighted
    if (i === 4) fill = "D4C9B3";         // forecast = pale beige

    s.addShape(pres.shapes.RECTANGLE, {
      x: cx, y: by, w: barW, h: h,
      fill: { color: fill }, line: { type: "none" },
    });

    // Value label above bar
    s.addText(labels[i], {
      x: cx - 0.3, y: by - 0.45, w: barW + 0.6, h: 0.4,
      fontSize: 16, fontFace: HEADER_FONT, color: DARK_TEXT,
      align: "center", margin: 0,
    });
    // Year label below
    s.addText(years[i], {
      x: cx - 0.3, y: barBaseY + 0.12, w: barW + 0.6, h: 0.35,
      fontSize: 12, fontFace: BODY_FONT, color: MUTED,
      align: "center", margin: 0,
    });
  });

  // ——— Right side: scale check ———
  const rx = 7.4;
  s.addText("SCALE CHECK", {
    x: rx, y: 3.1, w: 5, h: 0.3,
    fontSize: 10, fontFace: HEADER_FONT, color: ACCENT, charSpacing: 4, margin: 0,
  });

  s.addText("~4× larger than a decade ago.", {
    x: rx, y: 3.5, w: W - rx - MARGIN, h: 1.3,
    fontSize: 28, fontFace: HEADER_FONT, color: DARK_TEXT, margin: 0,
  });

  // Two mini stat blocks
  const miniY = 5.25;
  s.addText("STILL SMALLER THAN", {
    x: rx, y: miniY, w: 2.6, h: 0.3,
    fontSize: 9, fontFace: HEADER_FONT, color: MUTED, charSpacing: 3, margin: 0,
  });
  s.addText("Global public bond markets ($140T).", {
    x: rx, y: miniY + 0.3, w: 2.6, h: 0.7,
    fontSize: 13, fontFace: BODY_FONT, color: DARK_TEXT, margin: 0,
  });

  s.addText("NOW LARGER THAN", {
    x: rx + 2.8, y: miniY, w: 2.6, h: 0.3,
    fontSize: 9, fontFace: HEADER_FONT, color: MUTED, charSpacing: 3, margin: 0,
  });
  s.addText("Global high-yield bonds ($1.5T).", {
    x: rx + 2.8, y: miniY + 0.3, w: 2.6, h: 0.7,
    fontSize: 13, fontFace: BODY_FONT, color: DARK_TEXT, margin: 0,
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 6 — Who runs the money (2x3 card grid)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: BG };

  addHeaderFooter(s, {
    eyebrowLeft: "05 · WHO RUNS THE MONEY",
    pageNum:     "06 / 10",
    footerRight: "PLAYERS · ILLUSTRATIVE",
  });

  s.addText("Six managers run roughly half the market.", {
    x: MARGIN, y: 1.0, w: W - 2 * MARGIN, h: 0.8,
    fontSize: 36, fontFace: HEADER_FONT, color: DARK_TEXT, margin: 0,
  });
  s.addText("The industry is concentrated — scale is a competitive advantage in sourcing deals.", {
    x: MARGIN, y: 1.8, w: W - 2 * MARGIN, h: 0.4,
    fontSize: 14, fontFace: BODY_FONT, color: MUTED, margin: 0,
  });

  const cards = [
    { n: "01", cat: "DIRECT LENDING",  name: "Apollo Global",
      body: "Acquired Credit Suisse's securitized products arm; pairs insurance balance sheet with direct lending.",
      tier: 1 },
    { n: "02", cat: "DIRECT LENDING",  name: "Blackstone Credit",
      body: "World's largest alternative credit platform; pioneer of the retail-friendly BXPE / BCRED vehicles.",
      tier: 1 },
    { n: "03", cat: "DIRECT LENDING",  name: "Ares Management",
      body: "One of the earliest specialist credit managers; deep mid-market sponsor relationships.",
      tier: 1 },
    { n: "04", cat: "MULTI-STRATEGY",  name: "KKR Credit",
      body: "Leverages the broader KKR PE network; growing fast in asset-based finance.",
      tier: 2 },
    { n: "05", cat: "MULTI-STRATEGY",  name: "Oaktree / Brookfield",
      body: "Distressed-debt heritage; strong in complex and stressed credit situations.",
      tier: 2 },
    { n: "06", cat: "DIRECT LENDING",  name: "HPS Investment Ptrs.",
      body: "Independent specialist — acquired by BlackRock in 2025, now anchoring its private-markets build-out.",
      tier: 2 },
  ];

  const gridX = MARGIN;
  const gridY = 2.35;
  const gridW = W - 2 * MARGIN;
  const gridH = 4.55;
  const colsN = 3, rowsN = 2;
  const gap = 0.2;
  const cW = (gridW - (colsN - 1) * gap) / colsN;
  const cH = (gridH - (rowsN - 1) * gap) / rowsN;

  cards.forEach((c, i) => {
    const col = i % colsN;
    const row = Math.floor(i / colsN);
    const x = gridX + col * (cW + gap);
    const y = gridY + row * (cH + gap);

    // Card
    s.addShape(pres.shapes.RECTANGLE, {
      x, y, w: cW, h: cH,
      fill: { color: BG_CARD }, line: { color: RULE, width: 0.5 },
    });

    // Top meta
    s.addText(`${c.n} · ${c.cat}`, {
      x: x + 0.3, y: y + 0.3, w: cW - 0.6, h: 0.3,
      fontSize: 10, fontFace: HEADER_FONT, color: MUTED, charSpacing: 3, margin: 0,
    });

    // Name
    s.addText(c.name, {
      x: x + 0.3, y: y + 0.65, w: cW - 0.6, h: 0.5,
      fontSize: 22, fontFace: HEADER_FONT, color: DARK_TEXT, margin: 0,
    });

    // AUM TIER indicator position (sits near card bottom)
    const dotY = y + cH - 0.35;
    const dotSize = 0.14;

    // Body — height capped so it cannot bleed into the dot row
    s.addText(c.body, {
      x: x + 0.3, y: y + 1.2, w: cW - 0.6, h: (dotY - 0.1) - (y + 1.2),
      fontSize: 12, fontFace: BODY_FONT, color: DARK_TEXT, margin: 0, valign: "top",
    });

    const filled = c.tier === 1 ? 5 : 3;
    for (let d = 0; d < 5; d++) {
      s.addShape(pres.shapes.OVAL, {
        x: x + 0.3 + d * 0.23, y: dotY, w: dotSize, h: dotSize,
        fill: { color: d < filled ? DARK_TEXT : RULE },
        line: { type: "none" },
      });
    }
    s.addText(`AUM TIER ${c.tier}`, {
      x: x + 0.3 + 5 * 0.23 + 0.1, y: dotY - 0.04, w: cW - 1.8, h: 0.3,
      fontSize: 9, fontFace: HEADER_FONT, color: MUTED, charSpacing: 3, margin: 0,
    });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 7 — Access for retail (table)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: BG };

  addHeaderFooter(s, {
    eyebrowLeft: "06 · ACCESS FOR RETAIL",
    pageNum:     "07 / 10",
    footerRight: "PRODUCTS · ILLUSTRATIVE TERMS",
  });

  s.addText("Four wrappers now open the door to retail.", {
    x: MARGIN, y: 0.95, w: W - 2 * MARGIN, h: 0.8,
    fontSize: 36, fontFace: HEADER_FONT, color: DARK_TEXT, margin: 0,
  });
  s.addText("They trade off liquidity, minimums, and fees — not all retail products are created equal.", {
    x: MARGIN, y: 1.8, w: W - 2 * MARGIN, h: 0.4,
    fontSize: 14, fontFace: BODY_FONT, color: MUTED, margin: 0,
  });

  // Table geometry
  const tx = MARGIN, ty = 2.3;
  const tw = W - 2 * MARGIN;
  // Column widths (sum to tw)
  const cw = [2.2, 4.0, 1.9, 2.1, 1.9]; // wrapper, what-it-is, min, liq, fees
  const cxs = [];
  { let acc = tx; cw.forEach(w => { cxs.push(acc); acc += w; }); }

  // Header row
  const headerY = ty;
  const headerH = 0.5;
  s.addShape(pres.shapes.LINE, {
    x: tx, y: headerY, w: tw, h: 0,
    line: { color: RULE, width: 0.5 },
  });
  const headers = ["WRAPPER", "WHAT IT IS", "MINIMUM", "LIQUIDITY", "TYPICAL FEES"];
  headers.forEach((h, i) => {
    s.addText(h, {
      x: cxs[i] + 0.1, y: headerY + 0.12, w: cw[i] - 0.2, h: 0.3,
      fontSize: 10, fontFace: HEADER_FONT, color: MUTED, charSpacing: 3, margin: 0,
    });
  });
  s.addShape(pres.shapes.LINE, {
    x: tx, y: headerY + headerH + 0.05, w: tw, h: 0,
    line: { color: RULE, width: 0.5 },
  });

  // Data rows
  const rows = [
    { name: "Public BDC",     sub: "EXCHANGE-TRADED",
      what: "Business Development Companies — listed closed-end funds that lend to mid-market.",
      min: "One share (≈ $20)",   liq: "Daily, on exchange",        fees: "1.5% + 20% over hurdle" },
    { name: "Non-traded BDC", sub: "\"PERPETUAL BDC\"",
      what: "Not exchange-listed; monthly subscriptions, quarterly redemption windows.",
      min: "$2,500",              liq: "Quarterly, ≤5% of NAV",     fees: "1.25% + 12.5% over hurdle" },
    { name: "Interval fund",  sub: "'40 ACT WRAPPER",
      what: "Mutual-fund-like structure holding private loans; mandatory repurchase offers.",
      min: "$1,000",              liq: "Quarterly, 5–25% of NAV",   fees: "0.95 – 1.75% all-in" },
    { name: "ELTIF / LTAF",   sub: "EU & UK RETAIL",
      what: "European Long-Term Investment Fund / UK Long-Term Asset Fund — retail private-markets wrapper.",
      min: "€10,000",             liq: "Monthly – quarterly",       fees: "1.0 – 1.5% + performance" },
  ];

  const rowsTop = headerY + headerH + 0.05;
  const rowH    = (H - 1.0 - rowsTop) / rows.length;   // fit above footer

  rows.forEach((r, i) => {
    const y = rowsTop + i * rowH;

    // row bottom divider
    if (i < rows.length) {
      s.addShape(pres.shapes.LINE, {
        x: tx, y: y + rowH, w: tw, h: 0,
        line: { color: RULE, width: 0.5 },
      });
    }

    // Wrapper name + sub (sub sits right under the name)
    s.addText(r.name, {
      x: cxs[0] + 0.1, y: y + 0.15, w: cw[0] - 0.2, h: 0.5,
      fontSize: 18, fontFace: HEADER_FONT, color: DARK_TEXT, margin: 0, valign: "top",
    });
    s.addText(r.sub, {
      x: cxs[0] + 0.1, y: y + 0.6, w: cw[0] - 0.2, h: 0.28,
      fontSize: 9, fontFace: HEADER_FONT, color: MUTED, charSpacing: 3, margin: 0,
    });

    // What it is
    s.addText(r.what, {
      x: cxs[1] + 0.1, y: y + 0.2, w: cw[1] - 0.2, h: rowH - 0.3,
      fontSize: 12, fontFace: BODY_FONT, color: DARK_TEXT, margin: 0, valign: "top",
    });
    // Minimum
    s.addText(r.min, {
      x: cxs[2] + 0.1, y: y + 0.2, w: cw[2] - 0.2, h: rowH - 0.3,
      fontSize: 12, fontFace: BODY_FONT, color: DARK_TEXT, margin: 0, valign: "top",
    });
    // Liquidity
    s.addText(r.liq, {
      x: cxs[3] + 0.1, y: y + 0.2, w: cw[3] - 0.2, h: rowH - 0.3,
      fontSize: 12, fontFace: BODY_FONT, color: DARK_TEXT, margin: 0, valign: "top",
    });
    // Fees
    s.addText(r.fees, {
      x: cxs[4] + 0.1, y: y + 0.2, w: cw[4] - 0.2, h: rowH - 0.3,
      fontSize: 12, fontFace: BODY_FONT, color: DARK_TEXT, margin: 0, valign: "top",
    });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 8 — What can go wrong (risks list)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: BG };

  addHeaderFooter(s, {
    eyebrowLeft: "07 · WHAT CAN GO WRONG",
    pageNum:     "08 / 10",
    footerRight: "RISKS",
  });

  // Title
  s.addText(
    [
      { text: "Higher yield is ", options: { color: DARK_TEXT } },
      { text: "never free.",      options: { color: ACCENT, italic: true } },
    ],
    {
      x: MARGIN, y: 1.0, w: W - 2 * MARGIN, h: 0.8,
      fontSize: 40, fontFace: HEADER_FONT, margin: 0,
    }
  );

  s.addText("Five risks every retail investor should price before buying.", {
    x: MARGIN, y: 1.85, w: W - 2 * MARGIN, h: 0.4,
    fontSize: 14, fontFace: BODY_FONT, color: MUTED, margin: 0,
  });

  const items = [
    { n: "01", h: "Illiquidity",        b: "Your money can be locked up for 3–7 years. Even \"semi-liquid\" vehicles can gate redemptions in stress — Blackstone's BCRED hit its redemption cap in 2023." },
    { n: "02", h: "Valuation opacity",  b: "Loans are marked by the manager, not a market. Reported returns look smooth — actual risk may be masked until a default surfaces." },
    { n: "03", h: "Credit cycle",       b: "Defaults sit near historic lows (~2%). A recession could push losses higher on leveraged mid-market borrowers." },
    { n: "04", h: "Fees stack up",      b: "Management + performance + platform fees can reach 3–4% a year, quietly consuming the yield premium." },
    { n: "05", h: "Systemic unknowns",  b: "The IMF and BoE have flagged rapid retail growth and interconnections with insurance as areas to watch." },
  ];

  const listTop = 2.45;
  const listBot = H - 0.9;
  const rowH = (listBot - listTop) / items.length;

  // Top border
  s.addShape(pres.shapes.LINE, {
    x: MARGIN, y: listTop, w: W - 2 * MARGIN, h: 0,
    line: { color: RULE, width: 0.5 },
  });

  items.forEach((it, i) => {
    const y = listTop + i * rowH;
    // number
    s.addText(it.n, {
      x: MARGIN, y: y + 0.2, w: 0.8, h: 0.4,
      fontSize: 14, fontFace: HEADER_FONT, color: ACCENT, margin: 0,
    });
    // heading
    s.addText(it.h, {
      x: MARGIN + 1.0, y: y + 0.2, w: 3.0, h: 0.5,
      fontSize: 20, fontFace: HEADER_FONT, color: DARK_TEXT, margin: 0,
    });
    // body
    s.addText(it.b, {
      x: MARGIN + 4.2, y: y + 0.25, w: W - MARGIN * 2 - 4.2, h: rowH - 0.25,
      fontSize: 13, fontFace: BODY_FONT, color: DARK_TEXT, margin: 0, valign: "top",
    });
    // row bottom rule
    s.addShape(pres.shapes.LINE, {
      x: MARGIN, y: y + rowH, w: W - 2 * MARGIN, h: 0,
      line: { color: RULE, width: 0.5 },
    });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 9 — Retail playbook (5 big numbered columns)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: BG };

  addHeaderFooter(s, {
    eyebrowLeft: "08 · RETAIL PLAYBOOK",
    pageNum:     "09 / 10",
    footerRight: "PLAYBOOK",
  });

  s.addText("Five questions before you allocate.", {
    x: MARGIN, y: 1.0, w: W - 2 * MARGIN, h: 0.8,
    fontSize: 40, fontFace: HEADER_FONT, color: DARK_TEXT, margin: 0,
  });
  s.addText("Treat private credit as a yield complement — not a substitute for liquidity.", {
    x: MARGIN, y: 1.85, w: W - 2 * MARGIN, h: 0.4,
    fontSize: 14, fontFace: BODY_FONT, color: MUTED, margin: 0,
  });

  const items = [
    { n: "1", h: "Can you lock it up?",  b: "Only commit money you will not need for 3–5 years minimum." },
    { n: "2", h: "What's the wrapper?",  b: "Public BDC vs. interval fund vs. ELTIF — liquidity and fees differ sharply." },
    { n: "3", h: "Who is lending?",      b: "Pick scaled, tenured managers with visible loss history across cycles." },
    { n: "4", h: "What does it cost?",   b: "Compute the total expense ratio — not just the headline management fee." },
    { n: "5", h: "Right-size it.",       b: "A 5–15% sleeve inside a diversified portfolio is a common advisor range." },
  ];

  const topY = 2.55;
  const botY = H - 0.9;
  const colW = (W - 2 * MARGIN) / items.length;

  items.forEach((it, i) => {
    const x = MARGIN + i * colW;

    // Vertical separators
    if (i > 0) {
      s.addShape(pres.shapes.LINE, {
        x: x, y: topY + 0.1, w: 0, h: botY - topY - 0.2,
        line: { color: RULE, width: 0.5 },
      });
    }

    // Big number
    s.addText(it.n, {
      x: x + 0.3, y: topY, w: colW - 0.6, h: 1.3,
      fontSize: 80, fontFace: HEADER_FONT, color: ACCENT, margin: 0, valign: "top",
    });
    // Heading
    s.addText(it.h, {
      x: x + 0.3, y: topY + 1.4, w: colW - 0.6, h: 0.5,
      fontSize: 16, fontFace: HEADER_FONT, color: DARK_TEXT, margin: 0,
    });
    // Body
    s.addText(it.b, {
      x: x + 0.3, y: topY + 1.95, w: colW - 0.6, h: 2.0,
      fontSize: 12, fontFace: BODY_FONT, color: DARK_TEXT, margin: 0, valign: "top",
    });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 10 — Takeaways (DARK slide)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.background = { color: DARK_BG };

  addHeaderFooter(s, {
    eyebrowLeft: "TAKEAWAYS",
    pageNum:     "10 / 10",
    footerLeft:  "PRIVATE CREDIT · A RETAIL PRIMER · 2026",
    footerRight: "END",
    dark: true,
  });

  // Eyebrow
  s.addText("IN ONE PAGE", {
    x: MARGIN, y: 1.3, w: 8, h: 0.3,
    fontSize: 11, fontFace: HEADER_FONT, color: MUTED_LT, charSpacing: 4, margin: 0,
  });

  // Huge title with accent
  s.addText(
    [
      { text: "A higher yield, in exchange for ", options: { color: CREAM_TX } },
      { text: "time & trust.",                    options: { color: ACCENT, italic: true } },
    ],
    {
      x: MARGIN, y: 1.75, w: W - 2 * MARGIN, h: 2.8,
      fontSize: 64, fontFace: HEADER_FONT, margin: 0, valign: "top",
    }
  );

  // 3 takeaway columns
  const takeaways = [
    { lbl: "REMEMBER", head: "Not a bond",           body: "It's a loan you own until maturity. Smooth marks hide real credit risk." },
    { lbl: "VALUE",    head: "The premium is real", body: "~2–4% extra yield for giving up liquidity and accepting manager discretion." },
    { lbl: "ACTION",   head: "Small, slow, scaled", body: "Allocate a modest sleeve, pick a large manager, and leave it alone for the full term." },
  ];

  const tY = 5.35;
  const tW = (W - 2 * MARGIN) / 3;
  takeaways.forEach((t, i) => {
    const x = MARGIN + i * tW;

    s.addText(t.lbl, {
      x, y: tY, w: tW - 0.4, h: 0.3,
      fontSize: 11, fontFace: HEADER_FONT, color: ACCENT, charSpacing: 4, margin: 0,
    });
    s.addText(t.head, {
      x, y: tY + 0.35, w: tW - 0.4, h: 0.5,
      fontSize: 22, fontFace: HEADER_FONT, color: CREAM_TX, margin: 0,
    });
    s.addText(t.body, {
      x, y: tY + 0.95, w: tW - 0.4, h: 1.2,
      fontSize: 13, fontFace: BODY_FONT, color: CREAM_TX, margin: 0, valign: "top",
    });
  });
}

// ─── Write file ──────────────────────────────────────────
pres.writeFile({ fileName: "Private_Credit.pptx" })
  .then(name => console.log("Wrote:", name))
  .catch(err => { console.error(err); process.exit(1); });
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall