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_cockroach_portfolio_strategy.js

View on GitHub
/**
 * generate_deck.js
 *
 * Recreates "The Cockroach Portfolio" slide deck (12 slides, 16x9, dark theme)
 * using pptxgenjs. Coordinates, colors, fonts, and font sizes are extracted
 * from the original pptx's XML so this regenerates the deck byte-for-visual.
 *
 * Slide 6's waterfall chart is an embedded image in the original pptx.
 * This script references ./assets/image1.png for that slide. If the file is
 * missing, slide 6 renders without the chart (the right-hand callout card
 * is native and unaffected).
 *
 * Usage:
 *   npm install pptxgenjs
 *   node generate_deck.js
 *
 * Output: ./output/TheCockroachPortfolio.pptx
 */

const pptxgen = require("pptxgenjs");
const path = require("path");
const fs = require("fs");

// -------------------------------------------------------------------------
// DESIGN TOKENS
// -------------------------------------------------------------------------
const C = {
  bg:         "000000",  // slide background
  card:       "111111",  // card / body-row background
  cardHead:   "1A1A1A",  // table-header / label-row background
  divider:    "333333",  // thin divider lines
  accent:     "4466FF",  // primary blue
  white:      "FFFFFF",
  textMute:   "999999",  // body gray
  textMute2:  "BBBBBB",  // slightly lighter gray (limitations slide)
  textFoot:   "666666",  // footer gray
  cellStrong: "7AC89A",  // matrix "Strong" cell fill
  cellStrongText: "0E2A3F",
  cellWeak:   "B5443D",  // matrix "Weak" cell fill
  cellMixed:  "111111",  // matrix "Mixed" cell fill
  sp500Bar:   "C8A96B",  // S&P 500 gold/tan series color
};

const F = {
  serif: "Source Serif Pro",
  sans:  "Source Sans Pro",
};

// -------------------------------------------------------------------------
// BOOTSTRAP
// -------------------------------------------------------------------------
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9"; // 10" x 5.625"
pres.author = "Dylan Grice Framework";
pres.title  = "The Cockroach Portfolio";

// Reusable outer shadow (pptxgenjs mutates option objects — use a factory).
const makeShadow = () => ({
  type: "outer", color: "000000", blur: 8, offset: 3, angle: 135, opacity: 0.4,
});

// Footer that appears on slides 2..11 (and in modified form on 1 and 12).
function addStandardFooter(slide, pageNum) {
  slide.addText("CONFIDENTIAL", {
    x: 0.8, y: 5.25, w: 2.0, h: 0.25, margin: 0,
    fontFace: F.sans, fontSize: 9, color: C.textFoot,
    align: "left", valign: "middle",
  });
  slide.addText(`${pageNum} / 12`, {
    x: 9.0, y: 5.25, w: 0.7, h: 0.25, margin: 0,
    fontFace: F.sans, fontSize: 9, color: C.textFoot,
    align: "right", valign: "middle",
  });
}

// Eyebrow (e.g. "EXECUTIVE SUMMARY")
function addEyebrow(slide, text) {
  slide.addText(text, {
    x: 0.8, y: 0.45, w: 5.0, h: 0.3, margin: 0,
    fontFace: F.sans, fontSize: 11, bold: true, color: C.accent,
    charSpacing: 3, align: "left", valign: "middle",
  });
}

// Slide headline (26pt Serif)
function addHeadline(slide, text) {
  slide.addText(text, {
    x: 0.8, y: 0.85, w: 8.4, h: 0.7, margin: 0,
    fontFace: F.serif, fontSize: 26, bold: true, color: C.white,
    align: "left", valign: "middle",
  });
}

// =========================================================================
// SLIDE 1 — COVER
// =========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.bg };

  // Top thin blue bar
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 10, h: 0.05, fill: { color: C.accent }, line: { color: C.accent },
  });

  // Bottom dark bar (subtle footer strip)
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 5.3, w: 10, h: 0.325, fill: { color: C.card }, line: { color: C.card },
  });

  // Eyebrow
  s.addText("PORTFOLIO MANAGEMENT STRATEGY", {
    x: 0.8, y: 1.4, w: 5.544, h: 0.3, margin: 0,
    fontFace: F.sans, fontSize: 11, bold: true, color: C.accent,
    charSpacing: 3, align: "left", valign: "middle",
  });

  // Main title (50pt)
  s.addText([
    { text: "The Cockroach", options: { breakLine: true } },
    { text: "Portfolio" },
  ], {
    x: 0.8, y: 1.9, w: 8.0, h: 2.2, margin: 0,
    fontFace: F.serif, fontSize: 50, bold: true, color: C.white,
    align: "left", valign: "middle",
  });

  // Subtitle
  s.addText([
    { text: "A resilient, all-weather strategy for capital preservation", options: { breakLine: true } },
    { text: "and steady compounding across every economic regime." },
  ], {
    x: 0.8, y: 4.0, w: 6.0, h: 0.7, margin: 0,
    fontFace: F.sans, fontSize: 14, color: C.textMute,
    align: "left", valign: "middle", lineSpacingMultiple: 1.5,
  });

  // Footer tag line
  s.addText("DYLAN GRICE'S ORIGINAL FRAMEWORK  //  CONFIDENTIAL  //  2026", {
    x: 0.8, y: 5.32, w: 8.0, h: 0.28, margin: 0,
    fontFace: F.sans, fontSize: 9, color: C.textFoot,
    charSpacing: 3, align: "left", valign: "middle",
  });
}

// =========================================================================
// SLIDE 2 — EXECUTIVE SUMMARY  (three cards)
// =========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.bg };

  addEyebrow(s, "EXECUTIVE SUMMARY");
  addHeadline(s, "8.5% CAGR, 22% max drawdown, 4 ETFs.");

  const cards = [
    { x: 0.8,  title: "THE PROBLEM",
      body: "Stock-bond correlation hits 0.85 in crises. Investors suffered -37% in 2008 and -60% real losses in the 1970s." },
    { x: 3.65, title: "THE SOLUTION",
      body: "25% equities, 25% bonds, 25% gold, 25% cash. Rebalanced quarterly. Each asset is purpose-built for one of four macro regimes: growth, inflation, deflation, and recession." },
    { x: 6.5,  title: "THE RESULT",
      body: "8.49% CAGR (2001-2026). 0.72 Sharpe ratio. 22% max drawdown vs. 55% for the S&P 500. Blended expense ratio under 0.09%, with full implementation possible in under 30 minutes." },
  ];
  const cardW = 2.7, cardY = 1.75, cardH = 3.2;

  cards.forEach(card => {
    s.addShape(pres.shapes.RECTANGLE, {
      x: card.x, y: cardY, w: cardW, h: cardH,
      fill: { color: C.card }, line: { color: C.card },
      shadow: makeShadow(),
    });
    s.addShape(pres.shapes.RECTANGLE, {
      x: card.x, y: cardY, w: cardW, h: 0.05,
      fill: { color: C.accent }, line: { color: C.accent },
    });
    s.addText(card.title, {
      x: card.x + 0.2, y: cardY + 0.25, w: cardW - 0.4, h: 0.3, margin: 0,
      fontFace: F.sans, fontSize: 14, bold: true, color: C.accent,
      charSpacing: 3, align: "left", valign: "middle",
    });
    s.addText(card.body, {
      x: card.x + 0.2, y: cardY + 0.75, w: cardW - 0.4, h: 2.2, margin: 0,
      fontFace: F.sans, fontSize: 12, color: C.white,
      align: "left", valign: "top", lineSpacingMultiple: 1.4,
    });
  });

  s.addText("Source: Backtest via testfolio.io (2001-2026). Dividends reinvested, quarterly rebalance. Past performance not indicative of future results.", {
    x: 0.8, y: 5.05, w: 8.4, h: 0.2, margin: 0,
    fontFace: F.sans, fontSize: 8, italic: true, color: C.textFoot,
    align: "left", valign: "middle",
  });
  addStandardFooter(s, 2);
}

// =========================================================================
// SLIDE 3 — THE ORIGIN  (timeline + quote card)
// =========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.bg };

  addEyebrow(s, "THE ORIGIN");
  addHeadline(s, "Survive first. The rest is optional.");

  const rows = [
    { year: "1982",
      title: "Browne's Permanent Portfolio",
      desc: "The original: 25% stocks, 25% bonds, 25% gold, 25% cash. Built for four macro regimes." },
    { year: "2012",
      title: "Dylan Grice coins the Cockroach",
      desc: "At SocGen, Grice framed capital preservation as evolutionary survival; a simple, maximally robust algorithm." },
    { year: "2020s",
      title: "Mutiny Fund revives the idea",
      desc: "Jason Buck and Taylor Pearson added trend following, long volatility, and crypto futures to the framework." },
  ];
  const topY = 1.7, rowGap = 1.15;

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

    // Year pill
    s.addShape(pres.shapes.RECTANGLE, {
      x: 0.8, y: y, w: 0.9, h: 0.38,
      fill: { color: C.accent }, line: { color: C.accent },
    });
    s.addText(r.year, {
      x: 0.8, y: y, w: 0.9, h: 0.38, margin: 0,
      fontFace: F.serif, fontSize: 13, bold: true, color: C.white,
      align: "center", valign: "middle",
    });

    // Connecting vertical line between pills (except after last)
    if (i < rows.length - 1) {
      s.addShape(pres.shapes.RECTANGLE, {
        x: 1.22, y: y + 0.38, w: 0.05, h: rowGap - 0.38,
        fill: { color: C.divider }, line: { color: C.divider },
      });
    }

    // Row title
    s.addText(r.title, {
      x: 1.9, y: y - 0.12, w: 3.4, h: 0.35, margin: 0,
      fontFace: F.serif, fontSize: 12, bold: true, color: C.white,
      align: "left", valign: "middle",
    });

    // Row description
    s.addText(r.desc, {
      x: 1.9, y: y + 0.22, w: 3.5, h: 0.6, margin: 0,
      fontFace: F.sans, fontSize: 10, color: C.textMute,
      align: "left", valign: "top", lineSpacingMultiple: 1.3,
    });
  });

  // Quote card (right side)
  s.addShape(pres.shapes.RECTANGLE, {
    x: 5.7, y: 1.75, w: 3.5, h: 3.2,
    fill: { color: C.card }, line: { color: C.card },
    shadow: makeShadow(),
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 5.7, y: 1.75, w: 0.05, h: 3.2,
    fill: { color: C.accent }, line: { color: C.accent },
  });
  s.addText([
    { text: "Cockroaches may not be able to build nuclear bombs, but they can withstand nuclear war.", options: { breakLine: true } },
    { text: " ", options: { breakLine: true } },
    { text: "They survive." },
  ], {
    x: 6.0, y: 2.05, w: 2.9, h: 1.9, margin: 0,
    fontFace: F.serif, fontSize: 15, italic: true, color: C.white,
    align: "left", valign: "middle", lineSpacingMultiple: 1.4,
  });
  s.addText("Dylan Grice, SocGen, 2012", {
    x: 6.0, y: 4.2, w: 2.9, h: 0.3, margin: 0,
    fontFace: F.sans, fontSize: 11, bold: true, color: C.accent,
    align: "left", valign: "middle",
  });

  addStandardFooter(s, 3);
}

// =========================================================================
// SLIDE 4 — THE FRAMEWORK  (4 rows: regime | asset | ticker)
// =========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.bg };

  addEyebrow(s, "THE FRAMEWORK");
  addHeadline(s, "Four regimes. Four assets. 25% each.");

  const rows = [
    { regime: "GROWTH",    asset: "Equities",  ticker: "VTI / SPY" },
    { regime: "INFLATION", asset: "Gold",      ticker: "GLD / IAUM" },
    { regime: "DEFLATION", asset: "Gov. Bonds", ticker: "TLT / GOVT" },
    { regime: "RECESSION", asset: "Cash",      ticker: "BIL / SHV" },
  ];
  const rowH = 0.73, topY = 1.78;

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

    s.addText(r.regime, {
      x: 0.8, y: y, w: 2.0, h: 0.5, margin: 0,
      fontFace: F.sans, fontSize: 16, bold: true, color: C.accent,
      charSpacing: 3, align: "left", valign: "middle",
    });

    s.addText(r.asset, {
      x: 3.5, y: y - 0.05, w: 3.5, h: 0.6, margin: 0,
      fontFace: F.serif, fontSize: 28, bold: true, color: C.white,
      align: "center", valign: "middle",
    });

    s.addText(r.ticker, {
      x: 6.5, y: y, w: 2.7, h: 0.5, margin: 0,
      fontFace: F.sans, fontSize: 13, color: C.textMute,
      charSpacing: 1, align: "right", valign: "middle",
    });

    // Divider line between rows (not after last)
    if (i < rows.length - 1) {
      s.addShape(pres.shapes.RECTANGLE, {
        x: 0.8, y: y + rowH - 0.04, w: 8.4, h: 0.01,
        fill: { color: C.divider }, line: { color: C.divider },
      });
    }
  });

  addStandardFooter(s, 4);
}

// =========================================================================
// SLIDE 5 — REGIME MAPPING  (5x5 matrix table)
// =========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.bg };

  addEyebrow(s, "REGIME MAPPING");
  addHeadline(s, "Every row has a strong cell.");

  // Build the 5-column, 5-row colored matrix.
  const hdrStyle = { fill: { color: C.cardHead }, color: C.accent, bold: true,
                     fontFace: F.sans, fontSize: 14, align: "center", valign: "middle" };
  const rowHdrStyle = { fill: { color: C.cardHead }, color: C.white, bold: true,
                        fontFace: F.sans, fontSize: 14, align: "center", valign: "middle" };
  const strong = { fill: { color: C.cellStrong }, color: C.cellStrongText, bold: true,
                   fontFace: F.sans, fontSize: 12, align: "center", valign: "middle" };
  const weak   = { fill: { color: C.cellWeak },   color: C.white, bold: true,
                   fontFace: F.sans, fontSize: 12, align: "center", valign: "middle" };
  const mixed  = { fill: { color: C.cellMixed },  color: C.white,
                   fontFace: F.sans, fontSize: 12, align: "center", valign: "middle" };

  const table = [
    [ { text: "", options: { fill: { color: C.cardHead } } },
      { text: "GROWTH",    options: hdrStyle },
      { text: "INFLATION", options: hdrStyle },
      { text: "DEFLATION", options: hdrStyle },
      { text: "RECESSION", options: hdrStyle } ],
    [ { text: "Equities",   options: rowHdrStyle },
      { text: "Strong", options: strong }, { text: "Weak", options: weak },
      { text: "Mixed",  options: mixed  }, { text: "Weak", options: weak } ],
    [ { text: "Gov. Bonds", options: rowHdrStyle },
      { text: "Mixed",  options: mixed  }, { text: "Weak",   options: weak },
      { text: "Strong", options: strong }, { text: "Strong", options: strong } ],
    [ { text: "Gold",       options: rowHdrStyle },
      { text: "Mixed",  options: mixed  }, { text: "Strong", options: strong },
      { text: "Mixed",  options: mixed  }, { text: "Strong", options: strong } ],
    [ { text: "Cash",       options: rowHdrStyle },
      { text: "Weak",   options: weak   }, { text: "Mixed",  options: mixed  },
      { text: "Strong", options: strong }, { text: "Strong", options: strong } ],
  ];

  s.addTable(table, {
    x: 0.8, y: 1.75, w: 8.4,
    colW: [1.5, 1.725, 1.725, 1.725, 1.725],
    rowH: [0.5, 0.55, 0.55, 0.55, 0.55],
    border: { type: "solid", color: C.bg, pt: 1 },
  });

  s.addText("In 2022 inflation, gold held flat while stocks fell 25% and bonds fell 17%. The cockroach always has ballast.", {
    x: 0.8, y: 4.58, w: 8.1, h: 0.42, margin: 0,
    fontFace: F.sans, fontSize: 12, italic: true, color: C.textMute,
    align: "left", valign: "middle",
  });

  addStandardFooter(s, 5);
}

// =========================================================================
// SLIDE 6 — HISTORICAL PERFORMANCE  (waterfall image + stat callout card)
// =========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.bg };

  addEyebrow(s, "HISTORICAL PERFORMANCE");
  addHeadline(s, "96% of S&P returns. 40% of S&P risk.");

  // Waterfall chart (original deck embeds this as image1.png)
  const imagePath = path.join(__dirname, "assets", "image1.png");
  if (fs.existsSync(imagePath)) {
    s.addImage({
      path: imagePath,
      x: 0.3, y: 1.65, w: 6.5, h: 3.3,
    });
  } else {
    // Graceful fallback — placeholder box so the rest of the slide renders
    s.addShape(pres.shapes.RECTANGLE, {
      x: 0.3, y: 1.65, w: 6.5, h: 3.3,
      fill: { color: C.card }, line: { color: C.divider, width: 1 },
    });
    s.addText("(assets/image1.png missing — waterfall chart not rendered)", {
      x: 0.3, y: 1.65, w: 6.5, h: 3.3, margin: 0,
      fontFace: F.sans, fontSize: 10, color: C.textFoot,
      align: "center", valign: "middle",
    });
  }

  // Stat callout card (right)
  s.addShape(pres.shapes.RECTANGLE, {
    x: 6.9, y: 1.75, w: 2.3, h: 3.2,
    fill: { color: C.card }, line: { color: C.card },
    shadow: makeShadow(),
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 6.9, y: 1.75, w: 0.05, h: 3.2,
    fill: { color: C.accent }, line: { color: C.accent },
  });

  s.addText("$100K in 2001", {
    x: 7.15, y: 1.95, w: 1.8, h: 0.3, margin: 0,
    fontFace: F.sans, fontSize: 12, bold: true, color: C.white,
    align: "left", valign: "middle",
  });
  s.addText("$685K", {
    x: 7.15, y: 2.3, w: 1.8, h: 0.6, margin: 0,
    fontFace: F.serif, fontSize: 32, bold: true, color: C.accent,
    align: "left", valign: "middle",
  });
  s.addText("Cockroach", {
    x: 7.15, y: 2.9, w: 1.8, h: 0.25, margin: 0,
    fontFace: F.sans, fontSize: 11, color: C.accent,
    align: "left", valign: "middle",
  });
  s.addText("$735K", {
    x: 7.15, y: 3.25, w: 1.8, h: 0.6, margin: 0,
    fontFace: F.serif, fontSize: 32, bold: true, color: C.textMute,
    align: "left", valign: "middle",
  });
  s.addText("S&P 500", {
    x: 7.15, y: 3.85, w: 1.8, h: 0.25, margin: 0,
    fontFace: F.sans, fontSize: 11, color: C.textMute,
    align: "left", valign: "middle",
  });
  s.addText([
    { text: "Similar endpoint.", options: { breakLine: true } },
    { text: "Very different journey." },
  ], {
    x: 7.15, y: 4.2, w: 1.8, h: 0.6, margin: 0,
    fontFace: F.serif, fontSize: 13, italic: true, color: C.white,
    align: "left", valign: "middle", lineSpacingMultiple: 1.3,
  });

  addStandardFooter(s, 6);
}

// =========================================================================
// SLIDE 7 — THE VOLATILITY TAX  (4-row table + key insight card)
// =========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.bg };

  addEyebrow(s, "THE VOLATILITY TAX");
  addHeadline(s, "A 50% loss needs 100% to recover.");

  const hdrS = { fill: { color: C.cardHead }, color: C.accent, bold: true,
                 fontFace: F.sans, fontSize: 14, align: "center", valign: "middle" };
  const lossCell = (fill) => ({ fill: { color: fill }, color: C.accent, bold: true,
                                fontFace: F.sans, fontSize: 18, align: "center", valign: "middle" });
  const gainCell = (fill) => ({ fill: { color: fill }, color: C.white,
                                fontFace: F.sans, fontSize: 18, align: "center", valign: "middle" });
  const recCell  = (fill) => ({ fill: { color: fill }, color: C.textMute,
                                fontFace: F.sans, fontSize: 16, align: "center", valign: "middle" });

  const fillAlt = (i) => (i % 2 === 0 ? C.card : C.cardHead);

  const tbl = [
    [ { text: "LOSS",           options: hdrS },
      { text: "GAIN TO RECOVER", options: hdrS },
      { text: "EST. RECOVERY",   options: hdrS } ],
  ];
  const rowsData = [
    ["-10%", "+11%",  "1 yr"],
    ["-25%", "+33%",  "2 yrs"],
    ["-50%", "+100%", "4-5 yrs"],
    ["-75%", "+300%", "10+ yrs"],
  ];
  rowsData.forEach((r, i) => {
    const f = fillAlt(i);
    tbl.push([
      { text: r[0], options: lossCell(f) },
      { text: r[1], options: gainCell(f) },
      { text: r[2], options: recCell(f)  },
    ]);
  });

  s.addTable(tbl, {
    x: 0.8, y: 1.75, w: 5.0,
    colW: [1.5, 1.75, 1.75],
    rowH: [0.45, 0.55, 0.55, 0.55, 0.55],
    border: { type: "solid", color: C.bg, pt: 1 },
  });

  // Key insight card
  s.addShape(pres.shapes.RECTANGLE, {
    x: 5.9, y: 1.75, w: 3.3, h: 2.65,
    fill: { color: C.card }, line: { color: C.card },
    shadow: makeShadow(),
  });
  s.addText("KEY INSIGHT", {
    x: 6.15, y: 1.9, w: 2.8, h: 0.25, margin: 0,
    fontFace: F.sans, fontSize: 14, bold: true, color: C.accent,
    charSpacing: 3, align: "left", valign: "middle",
  });
  s.addText("A 10% return punctuated by 50% crashes loses to a steady 5% return.", {
    x: 6.15, y: 2.3, w: 2.8, h: 1.3, margin: 0,
    fontFace: F.sans, fontSize: 14, color: C.white,
    align: "left", valign: "middle", lineSpacingMultiple: 1.4,
  });
  s.addText([
    { text: "Cockroach recovers in ~2 years.", options: { breakLine: true } },
    { text: "S&P 500: 4+ years post-2008." },
  ], {
    x: 6.15, y: 3.65, w: 2.8, h: 0.7, margin: 0,
    fontFace: F.sans, fontSize: 11, color: C.textMute,
    align: "left", valign: "middle", lineSpacingMultiple: 1.4,
  });

  addStandardFooter(s, 7);
}

// =========================================================================
// SLIDE 8 — THE REBALANCING EDGE  (4 step cards + bottom banner)
// =========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.bg };

  addEyebrow(s, "THE REBALANCING EDGE");
  addHeadline(s, "Buy low, sell high. Every quarter.");

  const steps = [
    { num: "01", head: "ASSET RISES",  body: "One holding outperforms, its weight exceeds 25%" },
    { num: "02", head: "TRIM WINNER",  body: "Rebalancing forces selling high-performing assets" },
    { num: "03", head: "ASSET FALLS",  body: "One holding slips under target weight" },
    { num: "04", head: "BUY LOW",      body: "Rebalancing buys the dip" },
  ];
  const cardW = 1.9125, cardH = 1.7, cardY = 1.8417;
  // Original card x-positions: 0.8, 2.9625, 5.125, 7.2875 (stride = 2.1625)
  const startX = 0.8, stride = 2.1625;

  steps.forEach((st, i) => {
    const x = startX + i * stride;

    s.addShape(pres.shapes.RECTANGLE, {
      x: x, y: cardY, w: cardW, h: cardH,
      fill: { color: C.card }, line: { color: C.card },
      shadow: makeShadow(),
    });

    s.addText(st.num, {
      x: x + 0.15, y: cardY + 0.13, w: 0.8, h: 0.5, margin: 0,
      fontFace: F.serif, fontSize: 28, bold: true, color: C.accent,
      align: "left", valign: "middle",
    });
    s.addText(st.head, {
      x: x + 0.15, y: cardY + 0.62, w: cardW - 0.25, h: 0.3, margin: 0,
      fontFace: F.sans, fontSize: 11, bold: true, color: C.white,
      charSpacing: 3, align: "left", valign: "middle",
    });
    s.addText(st.body, {
      x: x + 0.15, y: cardY + 1.0, w: cardW - 0.25, h: 0.65, margin: 0,
      fontFace: F.sans, fontSize: 10.5, color: C.textMute,
      align: "left", valign: "top", lineSpacingMultiple: 1.3,
    });
  });

  // Bottom summary bar (with top accent strip)
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.8, y: 3.84, w: 8.4, h: 0.9,
    fill: { color: C.card }, line: { color: C.card },
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.8, y: 3.84, w: 8.4, h: 0.05,
    fill: { color: C.accent }, line: { color: C.accent },
  });
  s.addText([
    { text: "Rebalancing converts uncorrelated volatility into a structural return premium.", options: { breakLine: true } },
    { text: "Research estimates this premium at 0.5 to 1.0% annually." },
  ], {
    x: 1.0, y: 3.99, w: 8.0, h: 0.65, margin: 0,
    fontFace: F.sans, fontSize: 13, color: C.white,
    align: "left", valign: "middle", lineSpacingMultiple: 1.3,
  });

  addStandardFooter(s, 8);
}

// =========================================================================
// SLIDE 9 — CRISIS RESILIENCE  (native bar chart + "why it works" card)
// =========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.bg };

  addEyebrow(s, "CRISIS RESILIENCE");
  addHeadline(s, "Worst crash: -12% vs. -55% S&P.");

  // Clustered column chart: Cockroach vs S&P 500 peak-to-trough drawdowns
  const chartData = [
    { name: "Cockroach", labels: ["Dot-Com\n2001-02", "GFC\n2008", "COVID\n2020", "Inflation\n2022"],
      values: [5, 12, 8, 7] },
    { name: "S&P 500",   labels: ["Dot-Com\n2001-02", "GFC\n2008", "COVID\n2020", "Inflation\n2022"],
      values: [49, 55, 34, 25] },
  ];

  s.addChart(pres.charts.BAR, chartData, {
    x: 0.8, y: 1.85, w: 5.8, h: 3.0,
    barDir: "col",
    barGapWidthPct: 150,
    chartColors: [C.accent, C.sp500Bar],
    chartArea: { fill: { color: C.bg } },
    plotArea:  { fill: { color: C.bg } },

    // Title
    showTitle: true, title: "Peak-to-Trough Drawdown (%, absolute)",
    titleFontFace: F.sans, titleFontSize: 11, titleColor: C.white,

    // Axes
    catAxisLabelFontFace: F.sans, catAxisLabelFontSize: 11, catAxisLabelColor: C.textMute,
    valAxisLabelFontFace: F.sans, valAxisLabelFontSize: 12, valAxisLabelColor: C.textFoot,
    valAxisMaxVal: 80, valAxisMinVal: 0,
    valGridLine: { style: "none" },
    catGridLine: { style: "none" },
    valAxisLineColor: "888888",
    catAxisLineColor: "888888",

    // Data labels
    showValue: true,
    dataLabelFontFace: F.sans, dataLabelFontSize: 10, dataLabelColor: C.white,
    dataLabelPosition: "outEnd",

    // Legend
    showLegend: true, legendPos: "b",
    legendFontFace: F.sans, legendFontSize: 11, legendColor: C.white,
  });

  // Right card: WHY IT WORKS
  s.addShape(pres.shapes.RECTANGLE, {
    x: 6.6, y: 1.85, w: 2.6, h: 3.0,
    fill: { color: C.card }, line: { color: C.card },
    shadow: makeShadow(),
  });
  s.addText("WHY IT WORKS", {
    x: 6.8, y: 2.05, w: 2.2, h: 0.25, margin: 0,
    fontFace: F.sans, fontSize: 14, bold: true, color: C.accent,
    charSpacing: 3, align: "left", valign: "middle",
  });
  const notes = [
    { t: "2001: Bonds saved it",  y: 2.5 },
    { t: "2008: Bonds +28%",      y: 2.9 },
    { t: "2020: Gold +25%",       y: 3.3 },
    { t: "2022: Gold held flat",  y: 3.7 },
  ];
  notes.forEach(n => {
    s.addText(n.t, {
      x: 6.8, y: n.y, w: 2.2, h: 0.35, margin: 0,
      fontFace: F.sans, fontSize: 12, color: C.textMute,
      align: "left", valign: "middle",
    });
  });
  s.addText([
    { text: "Every crisis had", options: { breakLine: true } },
    { text: "a ballast asset." },
  ], {
    x: 6.8, y: 4.15, w: 2.2, h: 0.5, margin: 0,
    fontFace: F.serif, fontSize: 15, italic: true, color: C.white,
    align: "left", valign: "middle", lineSpacingMultiple: 1.2,
  });

  addStandardFooter(s, 9);
}

// =========================================================================
// SLIDE 10 — LIMITATIONS  (4 accented rows)
// =========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.bg };

  addEyebrow(s, "LIMITATIONS");
  addHeadline(s, "Survival, at the cost of upside.");

  const rows = [
    { label: "Bull Market Lag",
      desc: "With 75% outside equities, the cockroach trails the S&P 500 by ~2% CAGR in sustained rallies like 2010-2021." },
    { label: "Tax Drag",
      desc: "Quarterly rebalancing triggers taxable events. After-tax drag: 0.3-0.5% annually. Use tax-advantaged accounts." },
    { label: "Cash Drag",
      desc: "25% in cash/T-Bills earns under 1% when rates are near zero. This was a cost from 2009-2021." },
    { label: "Gold Has No Yield",
      desc: "Gold pays no dividends and fell 28% in 2013. Its role is crisis hedge, not return generator." },
  ];
  const startY = 1.75, gap = 0.77;

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

    // Left blue accent bar
    s.addShape(pres.shapes.RECTANGLE, {
      x: 0.8, y: y, w: 0.05, h: 0.5,
      fill: { color: C.accent }, line: { color: C.accent },
    });

    s.addText(r.label, {
      x: 1.0, y: y, w: 2.7, h: 0.5, margin: 0,
      fontFace: F.serif, fontSize: 18, bold: true, color: C.white,
      align: "left", valign: "middle",
    });
    s.addText(r.desc, {
      x: 3.85, y: y - 0.05, w: 5.35, h: 0.6, margin: 0,
      fontFace: F.sans, fontSize: 13, color: C.textMute2,
      align: "left", valign: "middle", lineSpacingMultiple: 1.3,
    });
  });

  addStandardFooter(s, 10);
}

// =========================================================================
// SLIDE 11 — IMPLEMENTATION  (5-column ETF table + bottom banner)
// =========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.bg };

  addEyebrow(s, "IMPLEMENTATION");
  addHeadline(s, "4 ETFs. Under 0.09%. 30 min setup.");

  const hdr = { fill: { color: C.cardHead }, color: C.accent, bold: true,
                fontFace: F.sans, fontSize: 14, align: "center", valign: "middle" };
  const aClassCell = (fill) => ({ fill: { color: fill }, color: C.accent, bold: true,
                                  fontFace: F.sans, fontSize: 14, align: "center", valign: "middle" });
  const bodyCell   = (fill) => ({ fill: { color: fill }, color: C.white,
                                  fontFace: F.sans, fontSize: 16, align: "center", valign: "middle" });
  const fillAlt = (i) => (i % 2 === 0 ? C.card : C.cardHead);

  const rowsData = [
    ["Equities",   "VTI or SPY",   "0.03%", "25%", "Growth offense"],
    ["Gov. Bonds", "TLT or GOVT",  "0.05%", "25%", "Deflation defense"],
    ["Gold",       "GLD or IAUM",  "0.09%", "25%", "Inflation hedge"],
    ["Cash",       "BIL or SHV",   "0.05%", "25%", "Recession stability"],
  ];

  const tbl = [[
    { text: "ASSET\nCLASS", options: hdr },
    { text: "ETF",   options: hdr },
    { text: "COST",  options: hdr },
    { text: "WEIGHT", options: hdr },
    { text: "ROLE",  options: hdr },
  ]];
  rowsData.forEach((r, i) => {
    const f = fillAlt(i);
    tbl.push([
      { text: r[0], options: aClassCell(f) },
      { text: r[1], options: bodyCell(f) },
      { text: r[2], options: bodyCell(f) },
      { text: r[3], options: bodyCell(f) },
      { text: r[4], options: bodyCell(f) },
    ]);
  });

  s.addTable(tbl, {
    x: 0.8, y: 1.75, w: 8.4,
    colW: [1.5, 1.6, 1.2, 1.1, 3.0],
    rowH: [0.45, 0.5, 0.5, 0.5, 0.5],
    border: { type: "solid", color: C.bg, pt: 1 },
  });

  // Bottom banner
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.8, y: 4.3, w: 8.4, h: 0.65,
    fill: { color: C.card }, line: { color: C.card },
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.8, y: 4.3, w: 8.4, h: 0.05,
    fill: { color: C.accent }, line: { color: C.accent },
  });
  s.addText("Rebalance quarterly (Jan / Apr / Jul / Oct). If any asset drifts beyond +/-5% from target, rebalance all to equal weight. Estimated cost: under $10 per quarter.", {
    x: 1.0, y: 4.42, w: 8.0, h: 0.5, margin: 0,
    fontFace: F.sans, fontSize: 12, color: C.textMute,
    align: "left", valign: "middle", lineSpacingMultiple: 1.3,
  });

  addStandardFooter(s, 11);
}

// =========================================================================
// SLIDE 12 — NEXT STEPS  (3 stacked step rows + bottom brand strip)
// =========================================================================
{
  const s = pres.addSlide();
  s.background = { color: C.bg };

  // Top blue bar
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 10, h: 0.05, fill: { color: C.accent }, line: { color: C.accent },
  });

  addEyebrow(s, "NEXT STEPS");
  addHeadline(s, "3 moves. 2 one-time. 1 forever.");

  const steps = [
    { num: "01", title: "Select ETFs and fund accounts",
      desc: "Choose one ETF per asset class. Fund with equal 25% splits. Prefer tax-advantaged accounts (IRA/401k).",
      tag: "WEEK 1" },
    { num: "02", title: "Set quarterly rebalance calendar",
      desc: "Schedule 4 dates per year. First trading day of Jan, Apr, Jul. About 30 minutes each.",
      tag: "WEEK 1" },
    { num: "03", title: "Define tolerance bands",
      desc: "Only rebalance when any asset drifts beyond +/-5% from 25% target. Reduces unnecessary trades and tax events.",
      tag: "ONGOING" },
  ];
  const topY = 1.75, rowH = 0.9, rowGap = 1.1;

  steps.forEach((st, i) => {
    const y = topY + i * rowGap;

    // Row card
    s.addShape(pres.shapes.RECTANGLE, {
      x: 0.8, y: y, w: 8.4, h: rowH,
      fill: { color: C.card }, line: { color: C.card },
      shadow: makeShadow(),
    });

    // Step number
    s.addText(st.num, {
      x: 1.0, y: y + 0.15, w: 0.85, h: 0.55, margin: 0,
      fontFace: F.serif, fontSize: 26, bold: true, color: C.accent,
      align: "left", valign: "middle",
    });

    // Title
    s.addText(st.title, {
      x: 1.85, y: y + 0.12, w: 5.5, h: 0.35, margin: 0,
      fontFace: F.serif, fontSize: 16, bold: true, color: C.white,
      align: "left", valign: "middle",
    });

    // Description
    s.addText(st.desc, {
      x: 1.85, y: y + 0.47, w: 5.8, h: 0.4, margin: 0,
      fontFace: F.sans, fontSize: 12, color: C.textMute,
      align: "left", valign: "top", lineSpacingMultiple: 1.3,
    });

    // Tag pill
    s.addShape(pres.shapes.RECTANGLE, {
      x: 8.05, y: y + 0.25, w: 1.0, h: 0.4,
      fill: { color: C.accent }, line: { color: C.accent },
    });
    s.addText(st.tag, {
      x: 8.05, y: y + 0.25, w: 1.0, h: 0.4, margin: 0,
      fontFace: F.sans, fontSize: 10, bold: true, color: C.white,
      charSpacing: 1, align: "center", valign: "middle",
    });
  });

  // Bottom brand strip
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 5.3, w: 10, h: 0.325,
    fill: { color: C.card }, line: { color: C.card },
  });
  s.addText("COCKROACH PORTFOLIO  //  SURVIVE. COMPOUND. PROSPER.  //  CONFIDENTIAL", {
    x: 0.8, y: 5.32, w: 8.0, h: 0.28, margin: 0,
    fontFace: F.sans, fontSize: 9, color: C.textFoot,
    charSpacing: 3, align: "left", valign: "middle",
  });
}

// -------------------------------------------------------------------------
// WRITE FILE
// -------------------------------------------------------------------------
const outDir = path.join(__dirname, "output");
if (!fs.existsSync(outDir)) fs.mkdirSync(outDir, { recursive: true });

pres.writeFile({ fileName: path.join(outDir, "TheCockroachPortfolio.pptx") })
  .then(f => console.log(`✔ Wrote ${f}`))
  .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