/* global SAMPLE_RESUME */
// ============================================================
//  Per-profile résumé data
//  Each profile boots the builder with believable, profession-
//  specific content — the *metrics* and *language* a recruiter in
//  that field expects to see. The unified template engine renders
//  any of these through any of the profile's 5 curated designs.
// ============================================================

const PROFILE_RESUMES = {
  // ---- Designer reuses the studio's flagship sample (already designer-led) ----
  design: SAMPLE_RESUME,

  // ===== Software Engineer =====
  swe: {
    name: "Devon Maartens",
    title: "Senior Software Engineer · Backend & Distributed Systems",
    location: "Austin, TX",
    email: "devon.maartens@email.com",
    phone: "(512) 555-0147",
    website: "github.com/dmaartens",
    photo: "https://randomuser.me/api/portraits/men/32.jpg",
    summary:
      "Backend engineer with 8 years building high-throughput services and the platforms teams ship on. I care about latency budgets, clean failure modes, and paying down complexity before it compounds. Comfortable owning a system from on-call rotation to capacity plan.",
    skills: [
      { name: "Go", level: 5 }, { name: "Kubernetes", level: 5 }, { name: "PostgreSQL", level: 4 },
      { name: "gRPC", level: 4 }, { name: "AWS", level: 4 }, { name: "Python", level: 4 },
      { name: "Terraform", level: 4 }, { name: "Kafka", level: 4 }, { name: "Redis", level: 4 },
      { name: "Distributed Systems", level: 5 }, { name: "Observability", level: 4 }, { name: "CI/CD", level: 4 },
    ],
    experience: [
      {
        id: "e1", role: "Senior Software Engineer", company: "Stripe", start: "2021", end: "Present", location: "Remote",
        bullets: [
          "Re-architected the payment-routing service to shave p99 latency from 240ms to 38ms, clearing the path for 12K requests/sec at peak.",
          "Led migration of 60+ services to a shared gRPC mesh, cutting cross-service error rates by 73% and on-call pages by half.",
          "Designed an idempotency layer that eliminated duplicate-charge incidents entirely across $4B in annual volume.",
          "Mentored 4 engineers and set the team's API design and code-review standards.",
        ],
      },
      {
        id: "e2", role: "Software Engineer", company: "DigitalOcean", start: "2018", end: "2021", location: "New York, NY",
        bullets: [
          "Built the autoscaling controller for managed Kubernetes, adopted by 30K+ customer clusters.",
          "Reduced control-plane provisioning time from 9 min to 95 sec by parallelizing node bootstrap.",
          "Cut infra spend $1.1M/yr by right-sizing reserved capacity with a usage-forecasting model.",
        ],
      },
      {
        id: "e3", role: "Software Engineer", company: "Rackspace", start: "2016", end: "2018", location: "San Antonio, TX",
        bullets: [
          "Shipped the internal feature-flag platform now gating 100% of production rollouts.",
          "Owned the metrics pipeline ingesting 2B events/day with five-nines availability.",
        ],
      },
    ],
    education: [
      { id: "ed1", school: "University of Texas at Austin", degree: "B.S. Computer Science", start: "2012", end: "2016" },
    ],
    projects: [
      { id: "p1", name: "ratelimit-go", desc: "Distributed token-bucket library, 2.1k stars, used in production by 40+ teams." },
      { id: "p2", name: "kubereaper", desc: "Open-source pod-eviction operator for cost-aware bin-packing." },
    ],
    certifications: [
      { id: "c1", name: "Certified Kubernetes Administrator (CKA)", issuer: "CNCF", year: "2022" },
      { id: "c2", name: "AWS Solutions Architect — Professional", issuer: "Amazon", year: "2021" },
    ],
    languages: [
      { id: "l1", name: "English", level: "Native" },
      { id: "l2", name: "Afrikaans", level: "Native" },
    ],
    sectionOrder: ["summary", "experience", "projects", "skills", "certifications", "education", "languages"],
  },

  // ===== Finance / Banking =====
  finance: {
    name: "Jonathan Whitmore",
    title: "Investment Banking Associate · M&A",
    location: "New York, NY",
    email: "j.whitmore@email.com",
    phone: "(212) 555-0193",
    website: "linkedin.com/in/jwhitmore",
    photo: "https://randomuser.me/api/portraits/men/52.jpg",
    summary:
      "M&A associate with five years advising on sell-side and buy-side transactions across technology and industrials. Deep in valuation, LBO and merger modeling; trusted to run process and own client-ready materials end to end.",
    skills: [
      { name: "LBO Modeling", level: 5 }, { name: "DCF Valuation", level: 5 }, { name: "Merger Models", level: 5 },
      { name: "Comparable Analysis", level: 5 }, { name: "Financial Modeling", level: 5 }, { name: "Due Diligence", level: 4 },
      { name: "Pitch Books", level: 5 }, { name: "Excel / VBA", level: 5 }, { name: "Capital IQ", level: 4 },
      { name: "Bloomberg Terminal", level: 4 },
    ],
    experience: [
      {
        id: "e1", role: "Investment Banking Associate", company: "Lazard", start: "2021", end: "Present", location: "New York, NY",
        bullets: [
          "Executed 9 M&A transactions totaling $14.2B in aggregate deal value across technology and industrials.",
          "Built the operating and LBO models that anchored a $3.1B take-private, validated by both sponsor diligence teams.",
          "Led 6 analysts on live deals, owning client-ready CIMs, management presentations and board materials.",
          "Sourced comps and precedent analysis that repriced an offer up 11%, adding ~$240M of value for the client.",
        ],
      },
      {
        id: "e2", role: "Investment Banking Analyst", company: "Moelis & Company", start: "2019", end: "2021", location: "New York, NY",
        bullets: [
          "Supported $22B in announced transactions over two years, ranking top-bucket in the analyst class.",
          "Built a reusable three-statement model template adopted firm-wide across the industrials group.",
          "Ran data rooms and managed diligence trackers for 5 concurrent sell-side processes.",
        ],
      },
    ],
    education: [
      { id: "ed1", school: "University of Pennsylvania, The Wharton School", degree: "B.S. Economics, Finance Concentration · GPA 3.9", start: "2015", end: "2019" },
    ],
    certifications: [
      { id: "c1", name: "CFA Level II Candidate", issuer: "CFA Institute", year: "2024" },
      { id: "c2", name: "Series 79 & 63", issuer: "FINRA", year: "2019" },
    ],
    awards: [
      { id: "a1", name: "Top-Bucket Analyst Ranking", issuer: "Moelis & Company", year: "2021" },
    ],
    languages: [
      { id: "l1", name: "English", level: "Native" },
      { id: "l2", name: "Mandarin", level: "Professional" },
    ],
    sectionOrder: ["summary", "experience", "skills", "certifications", "awards", "education", "languages"],
  },

  // ===== Marketing / Growth =====
  marketing: {
    name: "Aisha Rahman",
    title: "Growth Marketing Manager · B2B SaaS",
    location: "San Francisco, CA",
    email: "aisha.rahman@email.com",
    phone: "(415) 555-0166",
    website: "aisharahman.co",
    photo: "https://randomuser.me/api/portraits/women/65.jpg",
    summary:
      "Full-funnel growth marketer who turns spend into pipeline. Seven years scaling demand programs across paid, lifecycle and content — fluent in CAC payback, attribution and the unglamorous experiments that actually move conversion.",
    skills: [
      { name: "Paid Acquisition", level: 5 }, { name: "Lifecycle / CRM", level: 5 }, { name: "SEO", level: 4 },
      { name: "Marketing Analytics", level: 5 }, { name: "A/B Testing", level: 4 }, { name: "HubSpot", level: 5 },
      { name: "Google Analytics", level: 4 }, { name: "Content Strategy", level: 4 }, { name: "Marketo", level: 4 },
      { name: "SQL", level: 3 },
    ],
    experience: [
      {
        id: "e1", role: "Growth Marketing Manager", company: "Figma", start: "2021", end: "Present", location: "San Francisco, CA",
        bullets: [
          "Scaled inbound pipeline from $4M to $19M ARR-influenced in 18 months while holding CAC flat.",
          "Cut blended CAC 31% by reallocating spend with a multi-touch attribution model I built in-house.",
          "Lifted free-to-paid conversion 22% through a 9-email lifecycle program and onboarding experiments.",
          "Grew organic traffic 3.4× to 1.2M monthly visits via a programmatic SEO content engine.",
        ],
      },
      {
        id: "e2", role: "Demand Generation Lead", company: "Notion", start: "2018", end: "2021", location: "San Francisco, CA",
        bullets: [
          "Owned a $2.8M paid budget across Google, Meta and LinkedIn, returning 4.6× ROAS.",
          "Drove 38K MQLs in a single quarter, a company record, through a webinar + retargeting motion.",
          "Reduced cost-per-lead 44% by rebuilding landing pages and the lead-scoring model.",
        ],
      },
      {
        id: "e3", role: "Marketing Associate", company: "HubSpot", start: "2016", end: "2018", location: "Cambridge, MA",
        bullets: [
          "Ran email and nurture campaigns to a 400K-subscriber list, lifting average open rate from 18% to 27%.",
          "Produced 60+ blog posts and 12 gated assets that generated 14K leads in the first year.",
          "A/B tested landing pages and CTAs, raising demo-request conversion 33%.",
        ],
      },
    ],
    education: [
      { id: "ed1", school: "UCLA", degree: "B.A. Communications & Economics", start: "2012", end: "2016" },
    ],
    awards: [
      { id: "a1", name: "Marketer of the Year", issuer: "Figma", year: "2023" },
    ],
    interests: ["Brand strategy", "Behavioral econ", "Podcasting", "Cycling"],
    languages: [
      { id: "l1", name: "English", level: "Native" },
      { id: "l2", name: "Urdu", level: "Native" },
      { id: "l3", name: "French", level: "Conversational" },
    ],
    sectionOrder: ["summary", "experience", "skills", "awards", "interests", "languages", "education"],
  },

  // ===== Sales / Business Development =====
  sales: {
    name: "Carlos Mendes",
    title: "Enterprise Account Executive · SaaS",
    location: "Chicago, IL",
    email: "carlos.mendes@email.com",
    phone: "(312) 555-0128",
    website: "linkedin.com/in/carlosmendes",
    photo: "https://randomuser.me/api/portraits/men/75.jpg",
    summary:
      "Enterprise AE who consistently lands and expands six- and seven-figure accounts. Nine years carrying quota in competitive SaaS markets — disciplined on pipeline hygiene, MEDDICC qualification, and multi-threaded executive selling.",
    skills: [
      { name: "Enterprise Sales", level: 5 }, { name: "MEDDICC", level: 5 }, { name: "Pipeline Management", level: 5 },
      { name: "Negotiation", level: 5 }, { name: "Salesforce", level: 4 }, { name: "Forecasting", level: 4 },
      { name: "Solution Selling", level: 5 }, { name: "Outreach / Cadence", level: 4 }, { name: "Contract Negotiation", level: 4 },
    ],
    experience: [
      {
        id: "e1", role: "Enterprise Account Executive", company: "Snowflake", start: "2021", end: "Present", location: "Chicago, IL",
        bullets: [
          "Closed $6.4M in new ARR in FY24 at 142% of quota — President's Club, top 4% of the org.",
          "Landed the largest new-logo deal in the region: a $1.8M three-year platform commitment.",
          "Grew a strategic account 5× from $240K to $1.2M ARR through multi-threaded executive expansion.",
          "Maintained a 3.2× pipeline coverage ratio and a 34% win rate against entrenched incumbents.",
        ],
      },
      {
        id: "e2", role: "Account Executive", company: "Salesforce", start: "2017", end: "2021", location: "Chicago, IL",
        bullets: [
          "Exceeded quota four consecutive years, averaging 128% attainment on a $2M+ book.",
          "Built a $9M pipeline from scratch in a greenfield mid-market territory.",
          "Shortened average sales cycle from 94 to 61 days with a value-based discovery framework.",
        ],
      },
      {
        id: "e3", role: "Sales Development Representative", company: "Oracle", start: "2014", end: "2017", location: "Chicago, IL",
        bullets: [
          "Booked 220+ qualified meetings in a year at 118% of target, sourcing $5.4M in pipeline.",
          "Ranked #1 SDR of 30 for three consecutive quarters.",
          "Built the outbound email and call sequences adopted as the team's playbook.",
        ],
      },
    ],
    education: [
      { id: "ed1", school: "University of Illinois Urbana-Champaign", degree: "B.S. Business Administration", start: "2009", end: "2013" },
    ],
    awards: [
      { id: "a1", name: "President's Club (×3)", issuer: "Snowflake / Salesforce", year: "2024" },
      { id: "a2", name: "Top New-Logo AE, Central Region", issuer: "Snowflake", year: "2023" },
    ],
    languages: [
      { id: "l1", name: "English", level: "Native" },
      { id: "l2", name: "Spanish", level: "Native" },
      { id: "l3", name: "Portuguese", level: "Professional" },
    ],
    sectionOrder: ["summary", "experience", "awards", "skills", "languages", "education"],
  },

  // ===== Healthcare / Nursing =====
  health: {
    name: "Grace Okafor",
    title: "Registered Nurse, BSN · Critical Care (ICU)",
    location: "Houston, TX",
    email: "grace.okafor.rn@email.com",
    phone: "(713) 555-0175",
    website: "",
    photo: "https://randomuser.me/api/portraits/women/90.jpg",
    summary:
      "Critical-care RN with 7 years in high-acuity ICU and step-down units. Calm under pressure, meticulous with documentation, and an advocate for patients and families. Preceptor for new-graduate nurses and a steady hand on rapid-response teams.",
    skills: [
      { name: "Critical Care", level: 5 }, { name: "Ventilator Management", level: 5 }, { name: "Patient Assessment", level: 5 },
      { name: "Medication Administration", level: 5 }, { name: "EHR / Epic", level: 4 }, { name: "Wound Care", level: 4 },
      { name: "IV Therapy", level: 5 }, { name: "Patient Education", level: 4 }, { name: "Telemetry", level: 4 },
    ],
    experience: [
      {
        id: "e1", role: "Registered Nurse — Medical ICU", company: "Houston Methodist Hospital", start: "2020", end: "Present", location: "Houston, TX",
        bullets: [
          "Manage a 1:2 patient ratio in a 24-bed medical ICU, caring for ventilated and post-arrest patients.",
          "Maintained a 98% patient-satisfaction score and zero medication-administration errors over 3 years.",
          "Precept new-graduate nurses; onboarded 11 RNs, with 100% retention through their first year.",
          "Serve on the rapid-response team, responding to 200+ codes annually with a 4-minute average arrival.",
        ],
      },
      {
        id: "e2", role: "Registered Nurse — Telemetry", company: "Memorial Hermann", start: "2017", end: "2020", location: "Houston, TX",
        bullets: [
          "Cared for up to 5 cardiac step-down patients per shift with continuous telemetry monitoring.",
          "Reduced unit fall rate 28% by co-leading a hourly-rounding and safety-huddle initiative.",
          "Recognized as DAISY Award nominee for compassionate, family-centered care.",
        ],
      },
      {
        id: "e3", role: "Staff Nurse — Medical-Surgical", company: "Ben Taub Hospital", start: "2015", end: "2017", location: "Houston, TX",
        bullets: [
          "Provided direct care for 5–6 medical-surgical patients per shift across diverse acute conditions.",
          "Earned 'Nurse of the Quarter' for patient advocacy and interdisciplinary teamwork.",
          "Precepted 8 nursing students through their clinical rotations.",
        ],
      },
    ],
    education: [
      { id: "ed1", school: "University of Texas Health Science Center", degree: "Bachelor of Science in Nursing (BSN)", start: "2013", end: "2017" },
    ],
    certifications: [
      { id: "c1", name: "RN License (TX #1234567)", issuer: "Texas BON", year: "Active" },
      { id: "c2", name: "CCRN — Critical Care", issuer: "AACN", year: "2021" },
      { id: "c3", name: "ACLS, BLS & PALS", issuer: "American Heart Association", year: "2024" },
    ],
    languages: [
      { id: "l1", name: "English", level: "Native" },
      { id: "l2", name: "Igbo", level: "Native" },
      { id: "l3", name: "Spanish", level: "Conversational" },
    ],
    sectionOrder: ["summary", "certifications", "experience", "skills", "languages", "education"],
  },

  // ===== Data Science / Analytics =====
  data: {
    name: "Wei Chen",
    title: "Senior Data Scientist · ML & Experimentation",
    location: "Seattle, WA",
    email: "wei.chen@email.com",
    phone: "(206) 555-0151",
    website: "weichen.dev",
    photo: "https://randomuser.me/api/portraits/men/64.jpg",
    summary:
      "Data scientist who ships models that move the business, not just the leaderboard. Six years spanning forecasting, ranking and causal experimentation — equally at home in a notebook, a production pipeline and a stakeholder review.",
    skills: [
      { name: "Python", level: 5 }, { name: "SQL", level: 5 }, { name: "PyTorch", level: 4 },
      { name: "Experimentation / A/B", level: 5 }, { name: "Spark", level: 4 }, { name: "Statistics", level: 5 },
      { name: "scikit-learn", level: 5 }, { name: "Causal Inference", level: 4 }, { name: "dbt / Airflow", level: 4 },
      { name: "Data Visualization", level: 4 },
    ],
    experience: [
      {
        id: "e1", role: "Senior Data Scientist", company: "Amazon", start: "2021", end: "Present", location: "Seattle, WA",
        bullets: [
          "Built a demand-forecasting model that cut forecast error (WMAPE) from 18% to 9.4%, freeing $32M in working capital.",
          "Designed the experimentation framework now powering 400+ A/B tests per quarter across the org.",
          "Shipped a ranking model that lifted conversion 6.1% in a holdout test worth ~$48M incremental revenue.",
          "Mentored 3 junior scientists and standardized the team's model-review and monitoring practices.",
        ],
      },
      {
        id: "e2", role: "Data Scientist", company: "Zillow", start: "2018", end: "2021", location: "Seattle, WA",
        bullets: [
          "Improved home-valuation model accuracy, reducing median error from 4.3% to 2.8% on 2M+ listings.",
          "Built churn-propensity scoring that lifted retention-campaign ROI 2.3×.",
          "Productionized 6 models on a Spark + Airflow pipeline processing 80M records nightly.",
        ],
      },
      {
        id: "e3", role: "Data Analyst", company: "Expedia", start: "2016", end: "2018", location: "Seattle, WA",
        bullets: [
          "Built executive Tableau dashboards tracking $200M in annual booking revenue.",
          "Automated weekly reporting with SQL and Python, saving the team 12 hours per week.",
          "Ran cohort analyses that informed a pricing change worth +3% margin.",
        ],
      },
    ],
    education: [
      { id: "ed1", school: "Carnegie Mellon University", degree: "M.S. Machine Learning", start: "2016", end: "2018" },
      { id: "ed2", school: "University of Washington", degree: "B.S. Statistics", start: "2012", end: "2016" },
    ],
    projects: [
      { id: "p1", name: "uplift-py", desc: "Open-source uplift-modeling toolkit for causal targeting, 900+ stars." },
    ],
    publications: [
      { id: "pub1", title: "Practical Variance Reduction for Online Experiments", venue: "KDD Applied Data Science Track", year: "2022" },
    ],
    languages: [
      { id: "l1", name: "English", level: "Native" },
      { id: "l2", name: "Mandarin", level: "Native" },
    ],
    sectionOrder: ["summary", "experience", "skills", "projects", "publications", "education", "languages"],
  },

  // ===== Recent Graduate / Entry-level =====
  grad: {
    name: "Sam Rivera",
    title: "Computer Science Graduate · Software Engineer",
    location: "Boston, MA",
    email: "sam.rivera@email.com",
    phone: "(617) 555-0139",
    website: "samrivera.dev",
    photo: "https://randomuser.me/api/portraits/women/44.jpg",
    summary:
      "New-grad software engineer with internship experience shipping real features and a habit of building things on the side. Eager to join a team where I can learn fast, write clean code, and grow into ownership.",
    skills: [
      { name: "Java", level: 4 }, { name: "Python", level: 4 }, { name: "JavaScript", level: 4 },
      { name: "React", level: 3 }, { name: "SQL", level: 3 }, { name: "Git", level: 4 },
      { name: "Data Structures", level: 4 }, { name: "REST APIs", level: 3 }, { name: "Node.js", level: 3 },
    ],
    experience: [
      {
        id: "e1", role: "Software Engineering Intern", company: "HubSpot", start: "2025", end: "2025", location: "Cambridge, MA",
        bullets: [
          "Built a settings-search feature in React used by 40K+ daily users, cutting support tickets 15%.",
          "Wrote 80+ unit and integration tests, lifting service coverage from 61% to 84%.",
          "Shipped 9 PRs to production in a 12-week internship and earned a return offer.",
        ],
      },
      {
        id: "e2", role: "Undergraduate Teaching Assistant", company: "Northeastern University", start: "2023", end: "2025", location: "Boston, MA",
        bullets: [
          "TA'd Data Structures for 120 students; ran weekly labs and graded with detailed feedback.",
          "Held 4 office hours/week and authored 6 practice problem sets adopted by the course.",
        ],
      },
      {
        id: "e3", role: "Front-End Developer (Part-time)", company: "NU Mutual Aid — Volunteer", start: "2023", end: "2024", location: "Boston, MA",
        bullets: [
          "Built and maintained a React site serving 2K+ students with live resource listings.",
          "Cut page load time 40% through code-splitting and image optimization.",
        ],
      },
    ],
    education: [
      { id: "ed1", school: "Northeastern University", degree: "B.S. Computer Science · GPA 3.8 / 4.0", start: "2021", end: "2025" },
    ],
    projects: [
      { id: "p1", name: "StudySync", desc: "Real-time study-group app (React + Firebase); 1st place, HackBeanpot 2024." },
      { id: "p2", name: "transit-cli", desc: "Command-line transit tracker in Go with live MBTA arrival data." },
    ],
    courses: ["Algorithms", "Operating Systems", "Databases", "Computer Networks", "Machine Learning"],
    awards: [
      { id: "a1", name: "1st Place — HackBeanpot", issuer: "HackBeanpot", year: "2024" },
      { id: "a2", name: "Dean's List (6 semesters)", issuer: "Northeastern University", year: "2024" },
    ],
    languages: [
      { id: "l1", name: "English", level: "Native" },
      { id: "l2", name: "Spanish", level: "Professional" },
    ],
    sectionOrder: ["summary", "education", "experience", "projects", "skills", "courses", "awards", "languages"],
  },
};

window.PROFILE_RESUMES = PROFILE_RESUMES;
