microcephaly in detail with examples of each conditions

Reading File
Finding Sources
Searching PubMed

microcephaly causes classification

Searching the Web

microcephaly causes classification conditions examples clinical features

Reading File
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Finding Sources
Reading Web Page

https://pmc.ncbi.nlm.nih.gov/articles/PMC5483622

Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
I now have comprehensive content to write a detailed, well-organized answer. Let me compile everything:

Microcephaly: A Comprehensive Overview

Definition

Microcephaly is a condition in which the head circumference (occipitofrontal circumference, OFC) is more than 2 standard deviations (SD) below the mean for age, sex, and gestational age. Severe microcephaly is defined as >3 SD below the mean. Because skull growth is driven by brain growth, a small skull reflects a small brain (microencephaly) - the skull itself is not the primary problem.
  • Normal newborn OFC: ~34 cm
  • Microcephaly threshold at birth: approximately <32 cm
  • Microcephaly vera (extreme form): OFC < 45 cm in adulthood (~5 SD below mean), brain weight < 300 g (normal: 1,100-1,500 g)

Classification: Primary vs. Acquired

FeaturePrimary (Congenital) MicrocephalyAcquired (Postnatal) Microcephaly
OnsetPresent at birth or diagnosed prenatally (before 36 weeks)Normal OFC at birth, head fails to grow
CauseFailure of brain proliferation/migration in uteroPostnatal brain injury or progressive neurologic disease
ExampleMCPH1 gene mutation, TORCH infectionsRett syndrome, neonatal meningitis, hypoxic-ischemic encephalopathy

Major Categories of Causes (with Examples)


1. Genetic/Hereditary Causes

A. Primary Autosomal Recessive Microcephaly (MCPH)

The most studied pure-genetic form. Mutations in genes encoding microtubule spindle components and spindle-associated proteins are the most frequent molecular cause. At least 25+ MCPH loci are known (MCPH1-MCPH25).
  • Key gene example - CDK5RAP2 (MCPH3): Encodes centrosomal protein critical for mitotic spindle positioning. Mutations cause failure of neural progenitor cell expansion, leading to premature differentiation and a smaller founder neuronal population. Cerebral organoid studies showed fewer proliferating progenitor cells compared to controls - Harrison's Principles of Internal Medicine 22E (2025)
  • MCPH1 (microcephalin): Involved in DNA damage repair and chromosome condensation
  • ASPM (MCPH5): Most common MCPH mutation globally; ASPM regulates spindle pole orientation
Clinical features: Severe microcephaly, simplified cortical gyration, intellectual disability, but typically no other major malformations (isolated microcephaly). Forehead is narrow and receding; occiput is flat. Brain may weigh < 300 g. Vision, hearing, and sensation are typically preserved. Autosomal recessive inheritance. - Adams and Victor's Principles of Neurology, 12th Edition

B. Chromosomal Abnormalities

Most aneuploidies affecting brain development can include microcephaly as a feature.
  • Trisomy 13 (Patau syndrome): Severe microcephaly, holoprosencephaly, midline facial defects (cleft lip/palate), polydactyly, cardiac defects - usually lethal in first year
  • Trisomy 18 (Edwards syndrome): Microcephaly, prominent occiput, clenched fists, rocker-bottom feet, cardiac and renal defects
  • Trisomy 21 (Down syndrome): Mild microcephaly with brachycephaly, flat facial profile, intellectual disability (mild-moderate), hypotonia
  • Cri-du-chat syndrome (5p deletion): Microcephaly, high-pitched "cat-like" cry, low birth weight, hyperactivity, severe ID

C. Autosomal Dominant Syndromes

  • Cornelia de Lange syndrome (NIPBL gene, others): Microcephaly, synophrys (joined eyebrows), limb anomalies, short stature, intellectual disability
  • Rubinstein-Taybi syndrome (CREBBP gene): Microcephaly, broad thumbs and toes, downslanting palpebral fissures, intellectual disability
  • Seckel syndrome: Microcephaly, "bird-headed" dwarfism, prominent nose, intellectual disability - AR inheritance
  • Feingold syndrome (MYCN gene): Microcephaly, digital anomalies (brachydactyly, syndactyly), esophageal/duodenal atresia

D. X-Linked Causes

  • Rett syndrome (MECP2 gene): X-linked dominant in girls. Head circumference is normal at birth, then acquired microcephaly develops between 6-18 months as head growth decelerates. Associated with regression of purposeful hand use, hand-wringing stereotypies, seizures, and autism features. Males carrying one copy usually die in infancy. - Harrison's Principles of Internal Medicine 22E (2025)
  • Fragile X syndrome (FMR1 CGG repeat expansion): The most common heritable cause of intellectual disability; microcephaly is a less prominent feature, but includes macrocrania in some - more commonly presents with large head. Speech delay, hyperactivity, anxiety.

E. DNA Repair Defect Syndromes

  • Nijmegen Breakage Syndrome (NBN gene, 8q21): Microcephaly at birth, progressive; immunodeficiency, lymphoma predisposition, radiosensitivity
  • Cockayne syndrome (ERCC6/ERCC8): Microcephaly, cachectic dwarfism, premature aging, photosensitivity, progressive neurologic decline
  • Fanconi anemia (FANCA, FANCC, FANCG, others): Aplastic anemia, microcephaly, café-au-lait spots, thumb and radial anomalies, cancer predisposition - Quick Compendium of Clinical Pathology

2. Congenital Infections (TORCH + Zika)

Intrauterine infections interfere with neuronal proliferation and migration during sensitive developmental windows.

A. Zika Virus (ZIKV)

The most prominent recent cause, responsible for the 2015-2016 epidemic in the Americas (Brazil and 87+ countries affected). - Goldman-Cecil Medicine
  • Mechanism: ZIKV has tropism for radial glia (neural progenitor cells) - the AXL receptor facilitates viral entry. Infection causes progenitor cell death and upregulation of TLR3 (innate immune activation), leading to premature neural differentiation and dramatically reduced cortical neuron number. Centrosomal abnormalities in radial glia and altered mitotic cleavage planes further reduce progenitor pools. - Harrison's Principles of Internal Medicine 22E (2025)
  • Timing: First trimester infection causes the most severe microcephaly
  • Associated features (Congenital Zika Syndrome): Subcortical calcifications, ventriculomegaly, cerebellar hypoplasia, arthrogryposis, vision and hearing problems, irritability
  • Diagnosis: Serology (IgM/IgG), RT-PCR; fetal ultrasound showing microcephaly and intracranial calcifications - Red Book 2021 / Bradley and Daroff's Neurology

B. Cytomegalovirus (CMV)

The most common infectious cause of congenital microcephaly overall.
  • Periventricular calcifications (vs. diffuse calcifications in Zika), hepatosplenomegaly, jaundice, petechiae/purpura ("blueberry muffin" rash), sensorineural hearing loss (can be progressive even in asymptomatic cases), chorioretinitis
  • Hearing loss is the most common sequela - Tietz Textbook of Laboratory Medicine; K.J. Lee's Essential Otolaryngology

C. Rubella

  • First-trimester infection is most damaging (>80% fetal anomaly rate in first 8 weeks)
  • Classic triad: Cataracts, patent ductus arteriosus (PDA)/pulmonary stenosis, sensorineural deafness
  • Plus: Microcephaly, meningoencephalitis, retinopathy, developmental delay
  • Largely eliminated in countries with MMR vaccine programs

D. Toxoplasmosis (Toxoplasma gondii)

  • Classic triad: Chorioretinitis, intracranial calcifications (diffuse/scattered), hydrocephalus - or microcephaly when scarring is severe
  • Hepatosplenomegaly, jaundice, thrombocytopenia
  • Transmission via undercooked meat or cat feces

E. Herpes Simplex Virus (HSV)

  • Neonatal HSV (peripartum, type 2 more common): Encephalitis causing cortical destruction, microcephaly, vesicular skin rash

F. Syphilis (Treponema pallidum)

  • Congenital syphilis: Saddle nose, Hutchinson teeth, saber shins, interstitial keratitis, microcephaly in severe cases, CNS involvement

3. Teratogen Exposure

A. Fetal Alcohol Syndrome (FAS)

  • Alcohol is one of the most important environmental teratogens
  • Features: Prenatal and postnatal growth restriction, microcephaly, short palpebral fissures, smooth philtrum, thin upper lip, maxillary hypoplasia, intellectual disability, behavioral problems
  • Alcohol disrupts neuronal migration and induces apoptosis of neural progenitor cells - Robbins, Cotran & Kumar Pathologic Basis of Disease

B. Anticonvulsants

  • Valproate (sodium valproate): Highest teratogenic risk among antiepileptics; causes neural tube defects, microcephaly, facial dysmorphisms, cognitive impairment (fetal valproate syndrome)
  • Phenytoin (Dilantin): Fetal hydantoin syndrome - microcephaly, nail/digit hypoplasia, growth deficiency

C. Isotretinoin (Vitamin A derivatives)

  • Retinoid embryopathy: Microcephaly, ear malformations (microtia/anotia), conotruncal heart defects, thymic aplasia, CNS malformations (hydrocephalus, cerebellar hypoplasia)

D. Radiation

  • In utero exposure (especially weeks 8-15 of gestation) - high risk after nuclear events (e.g., atomic bomb survivors in Hiroshima and Nagasaki showed high rates of microcephaly and intellectual disability)

4. Maternal Metabolic Conditions

A. Maternal Phenylketonuria (PKU)

  • Even if the fetus is heterozygous (not itself affected), elevated maternal phenylalanine is teratogenic to the developing brain
  • Causes: Microcephaly, congenital heart defects, intellectual disability, low birth weight
  • Critical point: Dietary phenylalanine restriction must begin before conception and be maintained throughout pregnancy - Lippincott's Illustrated Biochemistry, 8th ed
  • Maternal PKU is one of the few metabolic causes of isolated microcephaly

B. Maternal Diabetes Mellitus (Poorly Controlled)

  • Macrosomia is more typical, but poorly controlled pre-gestational diabetes in the first trimester can cause CNS anomalies including holoprosencephaly and microcephaly

5. Vascular/Hypoxic-Ischemic Causes

  • Perinatal hypoxic-ischemic encephalopathy (HIE): Birth asphyxia causes neuronal death; if severe and untreated, leads to secondary (acquired) microcephaly as the brain fails to grow
  • Placental insufficiency / intrauterine growth restriction (IUGR): Chronic fetal hypoxia restricts overall somatic and brain growth
  • Prenatal stroke or intracranial hemorrhage: Parenchymal loss leads to failure of normal brain expansion

6. Structural Brain Malformations (associated with microcephaly)

Lissencephaly ("Smooth Brain")

  • Absent or severely reduced cortical gyration (agyria/pachygyria)
  • Miller-Dieker Syndrome (MDS): A severe lissencephaly caused by deletion of 17p13.3 (LIS1 gene). Severe microcephaly, characteristic facial features (prominent forehead, bitemporal narrowing, flat nasal bridge), intractable epilepsy, intellectual disability. Organoid studies of MDS revealed defects specifically in outer radial glia (oRG) cells - a primate-specific neural stem cell subtype - with abnormal and arrested mitoses not seen in mouse models - Harrison's Principles of Internal Medicine 22E (2025)
  • Classic lissencephaly: LIS1 or DCX (X-linked) mutations; "double cortex" in DCX-carrier females; pachygyria/agyria, thick cortex (10-20 mm vs. normal 4 mm), epilepsy

Holoprosencephaly

  • Failure of forebrain cleavage; associated microcephaly, midline facial defects, hypothalamic-pituitary dysfunction
  • Causes: trisomy 13, SHH mutations, maternal diabetes, CMV

7. Postnatal Causes

CauseExampleMechanism
Meningitis/encephalitisBacterial meningitis (GBS, E. coli in neonates)Direct neuronal destruction
MetabolicUntreated PKU in infant, organic aciduriasNeurotoxin accumulation
Hypoxic injuryNear-drowning, cardiac arrestCortical neuronal death
TraumaNon-accidental head injury (shaken baby)Diffuse axonal injury

Clinical Features and Associations

  • Narrow, receding forehead; flat occiput in severe forms
  • Face appears large relative to the small cranium (normal-sized face, small skull)
  • Early closure of fontanelles (but unlike craniosynostosis, the sutures are present and the defect is the brain's failure to expand, not premature fusion)
  • Intellectual disability - ranges from mild to severe
  • Seizures - particularly with structural malformations
  • Spastic cerebral palsy - depending on cause
  • Short stature - in severe cases
  • Vision/hearing impairment - especially with TORCH infections
  • In microcephaly vera: preserved vision, hearing, and sensation despite severe cognitive/motor impairment - Adams and Victor's Principles of Neurology

Diagnosis

InvestigationIndication
Serial head circumference measurementsScreening/monitoring
Prenatal ultrasound (2nd-3rd trimester)Prenatal detection
Brain MRIFirst-line postnatal neuroimaging (better than CT for cortical detail)
Chromosomal microarray / karyotypeSuspected chromosomal cause
Exome/genome sequencingWhen genetic cause suspected; >800 OMIM-listed syndromes include microcephaly
TORCH serology (maternal and infant)Congenital infection workup
Zika virus PCR / IgMAppropriate travel/exposure history
Metabolic screen (phenylalanine)Maternal PKU
TORCH panel (CMV PCR in urine)Within 3 weeks of birth for congenital CMV

Prognosis

  • Worse prognosis: Intrauterine infection, chromosomal or metabolic abnormality, structural brain malformations, severe microcephaly (>3 SD)
  • Better prognosis: Familial (isolated genetic) microcephaly without structural anomaly, mild head size reduction
  • In the largest published cohort (~680 children): genetic causes ~1/3, perinatal brain injury ~45%, postnatal injury ~3%; ~40% of cases remain of unknown etiology - PMC Microcephaly review

Quick Summary Table

CategoryKey ExampleHallmark Feature
Primary autosomal recessive (MCPH)CDK5RAP2, ASPM mutationsIsolated severe microcephaly, no other anomalies
ChromosomalTrisomy 13, 18, 21Multiple congenital anomalies
DNA repair defectsNijmegen, CockayneImmunodeficiency / premature aging
X-linked (acquired)Rett syndrome (MECP2)Regression after 6-18 months
Zika virusCongenital Zika syndromeSubcortical calcifications, arthrogryposis
CMVCongenital CMVPeriventricular calcifications, SNHL
RubellaCongenital rubella syndromeCataracts, PDA, deafness
Fetal alcoholFASSmooth philtrum, growth restriction
Maternal PKUHeterozygous fetus affectedMust control diet pre-conception
Lissencephaly (MDS)LIS1 deletion (17p13.3)Smooth brain, intractable epilepsy
ValproateFetal valproate syndromeNeural tube defects, dysmorphia
Sources: Harrison's Principles of Internal Medicine 22E (2025); Adams and Victor's Principles of Neurology 12th ed; Lippincott's Illustrated Biochemistry 8th ed; Robbins, Cotran & Kumar Pathologic Basis of Disease; The Developing Human - Clinically Oriented Embryology; NIH/PMC Microcephaly review PMID:5483622; Brighton Collaboration Case Definition

with all the above information generate a presentation on microcephaly

Reading File
Reading File
Reading File
Running Command

mkdir -p /home/daytona/workspace/microcephaly-ppt && ls /home/daytona/workspace/microcephaly-ppt

Writing File

~/microcephaly-ppt/generate.js

const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Microcephaly: A Comprehensive Clinical Overview";
pres.author = "Medical Education";

// ─── COLOR PALETTE ────────────────────────────────────────────
// Deep navy dominates; teal accent; white text; warm amber for highlights
const C = {
  navy:      "0D1B3E",  // dark navy – dominant BG
  navyMid:   "152350",  // slightly lighter navy
  teal:      "1A8C8C",  // teal accent
  tealLight: "22AAAA",  // lighter teal
  amber:     "E8A838",  // warm amber highlight
  white:     "FFFFFF",
  offWhite:  "EFF3F8",
  lightGray: "B8C8D8",
  darkGray:  "334466",
  red:       "C0392B",
  green:     "1E8449",
  orange:    "D35400",
};

// ─── HELPERS ──────────────────────────────────────────────────
function addBgRect(slide, color) {
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 10, h: 5.625, fill: { color }, line: { color, width: 0 }
  });
}

function addAccentBar(slide, color, h = 0.05, y = 5.3) {
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0, y, w: 10, h, fill: { color }, line: { color, width: 0 }
  });
}

function addSectionDivider(slide, x, color = C.teal) {
  slide.addShape(pres.shapes.RECTANGLE, {
    x, y: 1.1, w: 0.07, h: 3.8, fill: { color }, line: { color, width: 0 }
  });
}

function slideTitle(slide, title, subtitle = "", color = C.white) {
  slide.addText(title, {
    x: 0.45, y: 0.18, w: 9.1, h: 0.7,
    fontSize: 22, bold: true, color,
    fontFace: "Calibri", margin: 0
  });
  if (subtitle) {
    slide.addText(subtitle, {
      x: 0.45, y: 0.85, w: 9.1, h: 0.28,
      fontSize: 11, color: C.tealLight, italic: true,
      fontFace: "Calibri", margin: 0
    });
  }
  // title underline
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0.45, y: subtitle ? 1.1 : 0.95, w: 9.1, h: 0.035,
    fill: { color: C.teal }, line: { color: C.teal, width: 0 }
  });
}

function addBullets(slide, items, x, y, w, h, opts = {}) {
  const formatted = items.map((item, i) => ({
    text: item,
    options: {
      bullet: { type: "bullet", indent: 10 },
      fontSize: opts.fontSize || 12,
      color: opts.color || C.white,
      fontFace: "Calibri",
      breakLine: i < items.length - 1,
      paraSpaceAfter: 2,
    }
  }));
  slide.addText(formatted, { x, y, w, h, valign: "top" });
}

function addCard(slide, x, y, w, h, headerText, headerColor, bgColor, items, fontSize = 11) {
  // Card bg
  slide.addShape(pres.shapes.RECTANGLE, {
    x, y, w, h, fill: { color: bgColor },
    line: { color: C.teal, width: 0.8 },
    shadow: { type: "outer", color: "000000", blur: 5, offset: 2, angle: 135, opacity: 0.18 }
  });
  // Header bar
  slide.addShape(pres.shapes.RECTANGLE, {
    x, y, w, h: 0.38, fill: { color: headerColor },
    line: { color: headerColor, width: 0 }
  });
  // Header text
  slide.addText(headerText, {
    x: x + 0.1, y: y + 0.02, w: w - 0.2, h: 0.34,
    fontSize: 11.5, bold: true, color: C.white, fontFace: "Calibri",
    valign: "middle", margin: 0
  });
  // Body bullets
  const formatted = items.map((item, i) => ({
    text: item,
    options: {
      bullet: { type: "bullet", indent: 8 },
      fontSize,
      color: C.white,
      fontFace: "Calibri",
      breakLine: i < items.length - 1,
      paraSpaceAfter: 1,
    }
  }));
  slide.addText(formatted, { x: x + 0.1, y: y + 0.42, w: w - 0.2, h: h - 0.5, valign: "top" });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 1 — TITLE
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);

  // Large decorative circle
  s.addShape(pres.shapes.OVAL, {
    x: 6.8, y: -1.2, w: 5.5, h: 5.5,
    fill: { color: C.navyMid }, line: { color: C.teal, width: 1.5 }
  });
  s.addShape(pres.shapes.OVAL, {
    x: 7.4, y: -0.7, w: 4.5, h: 4.5,
    fill: { color: C.teal, transparency: 88 }, line: { color: C.tealLight, width: 0 }
  });

  // Top amber accent
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: C.amber }, line: { color: C.amber, width: 0 }
  });

  // Title text
  s.addText("MICROCEPHALY", {
    x: 0.5, y: 1.1, w: 8.5, h: 1.0,
    fontSize: 44, bold: true, color: C.white,
    fontFace: "Calibri", charSpacing: 6, margin: 0
  });
  s.addText([
    { text: "A Comprehensive Clinical Overview", options: { color: C.tealLight, fontSize: 22, italic: true } }
  ], { x: 0.5, y: 2.15, w: 8.5, h: 0.5, fontFace: "Calibri", margin: 0 });

  // Subtitle bar
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.5, y: 2.75, w: 5.8, h: 0.04, fill: { color: C.amber }, line: { color: C.amber, width: 0 }
  });

  s.addText([
    { text: "Definition  •  Classification  •  Causes  •  Clinical Features  •  Diagnosis  •  Prognosis", options: { color: C.lightGray, fontSize: 12 } }
  ], { x: 0.5, y: 2.92, w: 9, h: 0.4, fontFace: "Calibri", margin: 0 });

  s.addText("Sources: Harrison's 22E | Adams & Victor | Robbins & Kumar | Lippincott's | Red Book 2021", {
    x: 0.3, y: 5.2, w: 9.5, h: 0.3,
    fontSize: 8, color: C.lightGray, italic: true, fontFace: "Calibri", margin: 0
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 2 — DEFINITION & DIAGNOSIS THRESHOLD
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);
  addAccentBar(s, C.teal);
  slideTitle(s, "Definition & Diagnostic Thresholds", "What exactly is microcephaly?");

  // Main definition box
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.4, y: 1.2, w: 9.2, h: 1.05,
    fill: { color: C.teal, transparency: 85 },
    line: { color: C.teal, width: 1.2 }
  });
  s.addText("Microcephaly is defined as an occipitofrontal circumference (OFC) more than 2 standard deviations (SD) below the mean for age, sex, and gestational age — reflecting reduced brain growth (microencephaly).", {
    x: 0.55, y: 1.25, w: 8.9, h: 0.95,
    fontSize: 13, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0
  });

  // Three threshold cards
  const cards = [
    { x: 0.4,  label: "Microcephaly",        val: "> 2 SD below mean", sub: "OFC < ~32 cm at birth", color: C.teal },
    { x: 3.6,  label: "Severe Microcephaly", val: "> 3 SD below mean", sub: "Higher risk of disability", color: C.orange },
    { x: 6.8,  label: "Microcephaly Vera",   val: "> 5 SD below mean", sub: "OFC < 45 cm in adult life\nBrain wt < 300 g (normal: 1100–1500 g)", color: C.red },
  ];
  cards.forEach(c => {
    s.addShape(pres.shapes.RECTANGLE, {
      x: c.x, y: 2.45, w: 3.0, h: 1.6,
      fill: { color: C.navyMid },
      line: { color: c.color, width: 1.5 },
      shadow: { type: "outer", color: "000000", blur: 6, offset: 2, angle: 135, opacity: 0.2 }
    });
    s.addShape(pres.shapes.RECTANGLE, {
      x: c.x, y: 2.45, w: 3.0, h: 0.36,
      fill: { color: c.color }, line: { color: c.color, width: 0 }
    });
    s.addText(c.label, {
      x: c.x + 0.08, y: 2.46, w: 2.85, h: 0.34,
      fontSize: 11, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0
    });
    s.addText(c.val, {
      x: c.x + 0.08, y: 2.86, w: 2.85, h: 0.36,
      fontSize: 14, bold: true, color: c.color, fontFace: "Calibri", margin: 0
    });
    s.addText(c.sub, {
      x: c.x + 0.08, y: 3.22, w: 2.85, h: 0.75,
      fontSize: 10, color: C.lightGray, fontFace: "Calibri", margin: 0
    });
  });

  // Key point
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.4, y: 4.2, w: 9.2, h: 0.55,
    fill: { color: C.amber, transparency: 85 }, line: { color: C.amber, width: 0.8 }
  });
  s.addText("Key Concept: The skull grows because the brain grows. Microcephaly = brain fails to expand → skull follows. It is NOT premature sutural fusion (craniosynostosis).", {
    x: 0.55, y: 4.24, w: 9.0, h: 0.47,
    fontSize: 11, color: C.white, fontFace: "Calibri", italic: true, valign: "middle", margin: 0
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 3 — PRIMARY vs ACQUIRED CLASSIFICATION
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);
  addAccentBar(s, C.teal);
  slideTitle(s, "Classification: Primary vs. Acquired Microcephaly");

  // VS divider
  s.addShape(pres.shapes.OVAL, {
    x: 4.55, y: 1.5, w: 0.9, h: 0.9,
    fill: { color: C.amber }, line: { color: C.amber, width: 0 }
  });
  s.addText("VS", { x: 4.55, y: 1.5, w: 0.9, h: 0.9, fontSize: 16, bold: true, color: C.navy, align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });

  // Primary card
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.35, y: 1.2, w: 4.1, h: 3.9, fill: { color: C.navyMid },
    line: { color: C.teal, width: 1.5 }
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.35, y: 1.2, w: 4.1, h: 0.4, fill: { color: C.teal }, line: { color: C.teal, width: 0 }
  });
  s.addText("PRIMARY (CONGENITAL)", {
    x: 0.45, y: 1.22, w: 3.9, h: 0.36, fontSize: 13, bold: true, color: C.white,
    fontFace: "Calibri", valign: "middle", margin: 0
  });
  addBullets(s, [
    "Present at birth or detected prenatally (before 36 weeks)",
    "Reflects failure of brain proliferation / neuronal migration in utero",
    "Due to genetic mutations, chromosomal defects, or intrauterine insults",
    "Examples: MCPH gene mutations, Trisomy 13/18, Zika virus, CMV, fetal alcohol syndrome",
    "Prognosis: generally worse when structural anomalies are present"
  ], 0.5, 1.72, 3.85, 3.2, { fontSize: 11 });

  // Acquired card
  s.addShape(pres.shapes.RECTANGLE, {
    x: 5.55, y: 1.2, w: 4.1, h: 3.9, fill: { color: C.navyMid },
    line: { color: C.orange, width: 1.5 }
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 5.55, y: 1.2, w: 4.1, h: 0.4, fill: { color: C.orange }, line: { color: C.orange, width: 0 }
  });
  s.addText("ACQUIRED (POSTNATAL)", {
    x: 5.65, y: 1.22, w: 3.9, h: 0.36, fontSize: 13, bold: true, color: C.white,
    fontFace: "Calibri", valign: "middle", margin: 0
  });
  addBullets(s, [
    "Normal or near-normal OFC at birth; head growth decelerates postnatally",
    "Underlying genetic predisposition or postnatal insult",
    "Due to infections, hypoxia, metabolic injury, trauma after birth",
    "Examples: Rett syndrome (MECP2), neonatal meningitis, HIE, PKU if untreated",
    "Prognosis: depends on timing and extent of brain injury"
  ], 5.7, 1.72, 3.85, 3.2, { fontSize: 11 });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 4 — GENETIC CAUSES I (MCPH + Chromosomal)
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);
  addAccentBar(s, C.teal);
  slideTitle(s, "Genetic Causes I: Primary MCPH & Chromosomal Disorders", "Failure of neuronal proliferation at the molecular level");

  // MCPH card
  addCard(s, 0.35, 1.2, 5.0, 4.1, "Primary Autosomal Recessive Microcephaly (MCPH)", C.teal, C.navyMid, [
    "Rare AR disorder — severe microcephaly, simplified gyration, intellectual disability",
    "Mutations in microtubule spindle components / spindle-associated proteins",
    "CDK5RAP2 (MCPH3): centrosomal protein; mutations → premature neural differentiation, fewer progenitors",
    "ASPM (MCPH5): most common MCPH mutation globally; regulates spindle pole orientation",
    "MCPH1 (microcephalin): DNA damage repair and chromosome condensation",
    "Isolated microcephaly — no other major malformations",
    "Narrow receding forehead; brain < 300 g; preserved vision/hearing"
  ], 10.5);

  // Chromosomal card
  addCard(s, 5.5, 1.2, 4.1, 4.1, "Chromosomal Abnormalities", C.orange, C.navyMid, [
    "Trisomy 13 (Patau): microcephaly + holoprosencephaly, midline defects, polydactyly; often lethal",
    "Trisomy 18 (Edwards): microcephaly, prominent occiput, clenched fists, cardiac/renal defects",
    "Trisomy 21 (Down): mild microcephaly/brachycephaly, flat face, hypotonia, mild-moderate ID",
    "Cri-du-chat (5p del): microcephaly, cat-like cry, low birth weight, severe ID",
  ], 11);
}

// ══════════════════════════════════════════════════════════════
// SLIDE 5 — GENETIC CAUSES II (Syndromes + DNA Repair)
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);
  addAccentBar(s, C.teal);
  slideTitle(s, "Genetic Causes II: Syndromes, X-Linked & DNA Repair Defects");

  const col1 = [
    { header: "Autosomal Dominant Syndromes", color: C.teal, items: [
      "Cornelia de Lange (NIPBL): synophrys, limb anomalies, short stature",
      "Rubinstein-Taybi (CREBBP): broad thumbs/toes, downslanting palpebral fissures",
      "Seckel syndrome: 'bird-headed' dwarfism, prominent nose — AR",
      "Feingold syndrome (MYCN): digital anomalies, esophageal/duodenal atresia"
    ]},
    { header: "X-Linked Causes", color: C.tealLight, items: [
      "Rett syndrome (MECP2): X-linked dominant; normal OFC at birth → acquired microcephaly 6–18 months; hand-wringing, regression, seizures; mainly girls",
      "Fragile X (FMR1 CGG repeat): most common heritable ID; speech delay, anxiety, hyperactivity"
    ]}
  ];
  const col2 = [
    { header: "DNA Repair Defect Syndromes", color: C.amber, items: [
      "Nijmegen Breakage Syndrome (NBN gene): microcephaly at birth, progressive; immunodeficiency, lymphoma risk, radiosensitivity",
      "Cockayne Syndrome (ERCC6/ERCC8): cachectic dwarfism, premature aging, photosensitivity, progressive neurological decline",
      "Fanconi Anemia (FANCA/FANCC/FANCG): aplastic anemia, microcephaly, café-au-lait spots, thumb & radial anomalies, malignancy risk"
    ]},
    { header: "Aicardi-Goutières Syndrome", color: C.red, items: [
      "AR interferonopathy (TREX1, RNASEH2, others)",
      "Calcifications, microcephaly, spasticity, mimics congenital infection",
      "Progressive course; elevated IFN-alpha in CSF"
    ]}
  ];

  let yOff = 1.25;
  col1.forEach(card => {
    addCard(s, 0.35, yOff, 4.7, card.items.length > 2 ? 1.95 : 1.7, card.header, card.color, C.navyMid, card.items, 10.5);
    yOff += (card.items.length > 2 ? 1.95 : 1.7) + 0.1;
  });
  let yOff2 = 1.25;
  col2.forEach(card => {
    addCard(s, 5.2, yOff2, 4.45, card.items.length > 2 ? 2.2 : 1.55, card.header, card.color, C.navyMid, card.items, 10.5);
    yOff2 += (card.items.length > 2 ? 2.2 : 1.55) + 0.1;
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 6 — CONGENITAL INFECTIONS (TORCH + ZIKA)
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);
  addAccentBar(s, C.teal);
  slideTitle(s, "Congenital Infections: TORCH Complex + Zika Virus", "Intrauterine infections disrupt neuronal proliferation and migration");

  // TORCH acronym strip
  const torch = ["T: Toxoplasma", "O: Other (Syphilis, VZV, Parvo B19)", "R: Rubella", "C: CMV", "H: Herpes"];
  const tw = 10 / torch.length;
  torch.forEach((t, i) => {
    const bgc = [C.teal, C.teal, C.tealLight, C.orange, C.red][i];
    s.addShape(pres.shapes.RECTANGLE, {
      x: i * tw, y: 1.15, w: tw - 0.04, h: 0.38,
      fill: { color: bgc }, line: { color: bgc, width: 0 }
    });
    s.addText(t, {
      x: i * tw + 0.04, y: 1.15, w: tw - 0.1, h: 0.38,
      fontSize: 9.5, bold: true, color: C.white, fontFace: "Calibri",
      align: "center", valign: "middle", margin: 0
    });
  });

  // Zika large card
  addCard(s, 0.35, 1.65, 4.6, 3.7, "Zika Virus (ZIKV) — 2015/16 Americas Epidemic", C.red, C.navyMid, [
    "Mosquito-borne flavivirus; 87+ countries affected by 2019",
    "Mechanism: ZIKV infects radial glia (AXL receptor); → progenitor cell death, premature differentiation",
    "TLR3 upregulation, centrosomal abnormalities in neural stem cells",
    "First trimester = most severe; causes Congenital Zika Syndrome (CZS)",
    "Features: microcephaly, subcortical calcifications, ventriculomegaly, cerebellar hypoplasia, arthrogryposis, vision/hearing loss",
    "Organoid studies confirmed causal link in 2016 (Harrison's 22E)"
  ], 11);

  // Other TORCH cards
  const others = [
    { header: "CMV (Most Common Infectious Cause)", color: C.orange, items: ["Periventricular calcifications, hepatosplenomegaly, petechiae ('blueberry muffin')", "Sensorineural hearing loss (SNHL) — most common sequela; can be progressive", "Urine CMV PCR within 3 weeks of birth for definitive dx"] },
    { header: "Rubella", color: C.teal, items: ["Classic triad: cataracts, PDA/pulmonary stenosis, SNHL", "Microcephaly, meningoencephalitis, retinopathy; 1st trimester >80% anomaly rate", "Largely eliminated with MMR vaccination"] },
    { header: "Toxoplasmosis & Herpes/Syphilis", color: C.tealLight, items: ["Toxoplasma: chorioretinitis, intracranial calcifications, hydrocephalus", "HSV: neonatal encephalitis, cortical destruction, vesicular rash", "Syphilis: saddle nose, Hutchinson teeth, saber shins, CNS involvement"] },
  ];
  others.forEach((c, i) => {
    addCard(s, 5.1, 1.65 + i * 1.28, 4.55, 1.18, c.header, c.color, C.navyMid, c.items, 10.5);
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 7 — TERATOGENS & MATERNAL CONDITIONS
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);
  addAccentBar(s, C.teal);
  slideTitle(s, "Teratogens & Maternal Metabolic Conditions", "Environmental and metabolic disruption of fetal brain growth");

  const cards = [
    {
      header: "Fetal Alcohol Syndrome (FAS)",
      color: C.red,
      items: [
        "Alcohol = most important environmental teratogen",
        "Disrupts neuronal migration; induces progenitor apoptosis",
        "Features: prenatal/postnatal growth restriction, microcephaly, smooth philtrum, thin upper lip, short palpebral fissures, maxillary hypoplasia, intellectual disability",
        "No safe dose in pregnancy"
      ]
    },
    {
      header: "Anticonvulsants",
      color: C.orange,
      items: [
        "Valproate (highest risk): neural tube defects, microcephaly, facial dysmorphism, cognitive impairment — Fetal Valproate Syndrome",
        "Phenytoin: Fetal Hydantoin Syndrome — microcephaly, nail/digit hypoplasia, growth deficiency"
      ]
    },
    {
      header: "Retinoids (Isotretinoin / Vitamin A excess)",
      color: C.amber,
      items: [
        "Retinoid embryopathy: microcephaly, ear malformations (microtia/anotia)",
        "Conotruncal heart defects, thymic aplasia, cerebellar hypoplasia",
        "Strict contraception required during use"
      ]
    },
    {
      header: "Maternal PKU (Phenylketonuria)",
      color: C.teal,
      items: [
        "Elevated maternal phenylalanine is teratogenic even in heterozygous fetus",
        "Causes: microcephaly + congenital heart defects + intellectual disability + low birth weight",
        "Dietary phenylalanine restriction MUST begin before conception",
        "One of few metabolic causes of isolated microcephaly (Lippincott's Biochemistry 8E)"
      ]
    },
    {
      header: "Radiation & Hyperthermia",
      color: C.darkGray,
      items: [
        "In utero X-ray/nuclear radiation — most sensitive weeks 8–15",
        "Hiroshima/Nagasaki survivors: high rates of microcephaly and intellectual disability",
        "Sustained high maternal fever (≥39°C) in 1st trimester associated with NTDs and microcephaly"
      ]
    },
  ];

  const colW = 3.08;
  const positions = [
    [0.3,  1.25],
    [3.45, 1.25],
    [6.6,  1.25],
    [0.3,  3.2],
    [3.45, 3.2],
  ];
  cards.forEach((c, i) => {
    const [x, y] = positions[i];
    addCard(s, x, y, colW, 1.85, c.header, c.color, C.navyMid, c.items, 10);
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 8 — STRUCTURAL BRAIN MALFORMATIONS
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);
  addAccentBar(s, C.teal);
  slideTitle(s, "Structural Brain Malformations Associated with Microcephaly");

  // Lissencephaly — big card
  addCard(s, 0.35, 1.2, 4.7, 4.1, "Lissencephaly ('Smooth Brain')", C.teal, C.navyMid, [
    "Absent/severely reduced cortical gyration (agyria/pachygyria)",
    "Miller-Dieker Syndrome (MDS): deletion 17p13.3 (LIS1 gene) — SEVERE",
    "  • Severe microcephaly, bitemporal narrowing, flat nasal bridge",
    "  • Intractable epilepsy, profound intellectual disability",
    "  • Organoids revealed oRG (outer radial glia) cell mitotic arrest — not seen in mice (Harrison's 22E)",
    "Classic Lissencephaly: LIS1 or DCX (X-linked) mutations",
    "  • 'Double cortex' in DCX-carrier females (band heterotopia)",
    "  • Thick cortex (10–20 mm vs normal 4 mm)"
  ], 11);

  // Others — 3 stacked cards
  const others = [
    {
      header: "Holoprosencephaly",
      color: C.orange,
      items: [
        "Failure of forebrain cleavage; midline facial defects, microcephaly",
        "Hypothalamic-pituitary dysfunction",
        "Causes: Trisomy 13, SHH mutations, maternal diabetes, CMV"
      ]
    },
    {
      header: "Schizencephaly & Polymicrogyria",
      color: C.tealLight,
      items: [
        "Schizencephaly: clefts lined by gray matter extending from ventricle to surface",
        "Polymicrogyria: excessive small gyri; disrupted neuronal migration",
        "Can be caused by prenatal ischemia, CMV infection, or gene mutations"
      ]
    },
    {
      header: "Cerebellar Hypoplasia & Pontine Underdevelopment",
      color: C.amber,
      items: [
        "Can accompany severe genetic microcephaly or Zika congenital syndrome",
        "Associated with pontocerebellar hypoplasia (PCH) — rare AR conditions",
        "Profound motor disability and poor prognosis"
      ]
    }
  ];
  others.forEach((c, i) => {
    addCard(s, 5.2, 1.2 + i * 1.38, 4.45, 1.28, c.header, c.color, C.navyMid, c.items, 10.5);
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 9 — VASCULAR & POSTNATAL CAUSES
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);
  addAccentBar(s, C.teal);
  slideTitle(s, "Vascular, Hypoxic-Ischemic & Postnatal Causes");

  const items = [
    {
      icon: "PRENATAL",
      color: C.teal,
      title: "Hypoxic-Ischemic Encephalopathy (HIE)",
      body: "Birth asphyxia causes neuronal death → secondary (acquired) microcephaly as brain fails to grow. Cortical injury particularly severe in parasagittal regions."
    },
    {
      icon: "PRENATAL",
      color: C.teal,
      title: "Placental Insufficiency / IUGR",
      body: "Chronic fetal hypoxia restricts overall somatic and brain growth. Small-for-gestational-age infants at risk."
    },
    {
      icon: "PRENATAL",
      color: C.tealLight,
      title: "Prenatal Stroke / Intracranial Hemorrhage",
      body: "Focal or diffuse parenchymal loss prevents normal brain expansion. Germinal matrix hemorrhage in premature infants."
    },
    {
      icon: "POSTNATAL",
      color: C.orange,
      title: "Neonatal Meningitis / Encephalitis",
      body: "GBS, E. coli in neonates; direct neuronal destruction + vasculitis. Even treated cases may have microcephaly and neurodevelopmental sequelae."
    },
    {
      icon: "POSTNATAL",
      color: C.orange,
      title: "Metabolic (Untreated PKU / Organic Acidurias)",
      body: "Accumulation of neurotoxic metabolites if PKU or organic acidemia is untreated in infancy. Severe intellectual disability + microcephaly."
    },
    {
      icon: "POSTNATAL",
      color: C.red,
      title: "Non-Accidental Head Injury",
      body: "Shaken baby syndrome → diffuse axonal injury, subdural hemorrhage → acquired microcephaly. Forensic significance."
    }
  ];

  items.forEach((it, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.35 : 5.1;
    const y = 1.25 + row * 1.38;
    const w = 4.55;

    s.addShape(pres.shapes.RECTANGLE, {
      x, y, w, h: 1.28, fill: { color: C.navyMid },
      line: { color: it.color, width: 1.2 }
    });
    // Tag
    s.addShape(pres.shapes.RECTANGLE, {
      x, y, w: 0.9, h: 0.3,
      fill: { color: it.color }, line: { color: it.color, width: 0 }
    });
    s.addText(it.icon, {
      x: x + 0.02, y: y + 0.01, w: 0.86, h: 0.28,
      fontSize: 7.5, bold: true, color: C.navy, fontFace: "Calibri",
      align: "center", valign: "middle", margin: 0
    });
    s.addText(it.title, {
      x: x + 0.1, y: y + 0.32, w: w - 0.2, h: 0.3,
      fontSize: 12, bold: true, color: it.color, fontFace: "Calibri", margin: 0
    });
    s.addText(it.body, {
      x: x + 0.1, y: y + 0.62, w: w - 0.2, h: 0.6,
      fontSize: 10, color: C.lightGray, fontFace: "Calibri", margin: 0
    });
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 10 — CLINICAL FEATURES
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);
  addAccentBar(s, C.teal);
  slideTitle(s, "Clinical Features & Associations");

  // Left column — facial/head features
  addCard(s, 0.35, 1.2, 4.55, 2.1, "Head & Facial Morphology", C.teal, C.navyMid, [
    "Narrow, sloping (receding) forehead",
    "Flat occiput in severe forms",
    "Face appears proportionally large relative to small cranium",
    "Early closure of fontanelles (NOT craniosynostosis — sutures are present)",
    "Microcephaly vera: 'anthropoid' appearance"
  ], 11);

  addCard(s, 0.35, 3.42, 4.55, 1.95, "Motor & Sensory Features", C.teal, C.navyMid, [
    "Spastic cerebral palsy (hypertonia or hypotonia)",
    "Lumbering gait in microcephaly vera",
    "Short stature in severe forms",
    "Vision/hearing preserved in isolated genetic forms — impaired in TORCH infections"
  ], 11);

  // Right column — neurological
  addCard(s, 5.1, 1.2, 4.55, 1.4, "Intellectual Disability", C.orange, C.navyMid, [
    "Mild to severe depending on etiology and degree of microcephaly",
    "Isolated genetic microcephaly: usually severe; communicative speech absent",
    "Chromosomal/infection causes: variable spectrum"
  ], 11);

  addCard(s, 5.1, 2.72, 4.55, 1.3, "Epilepsy", C.red, C.navyMid, [
    "Common with structural malformations (lissencephaly → intractable)",
    "Also with TORCH infections, chromosomal disorders",
    "EEG abnormalities often present even without overt seizures"
  ], 11);

  addCard(s, 5.1, 4.12, 4.55, 1.2, "Other Associations", C.amber, C.navyMid, [
    "Feeding difficulties, poor weight gain, behavioral problems",
    "Joint deformities / arthrogryposis (Zika)",
    "Organ defects (heart, kidneys) in chromosomal/syndromic forms"
  ], 11);
}

// ══════════════════════════════════════════════════════════════
// SLIDE 11 — DIAGNOSIS & WORKUP
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);
  addAccentBar(s, C.teal);
  slideTitle(s, "Diagnostic Approach & Workup");

  // Steps
  const steps = [
    { n: "01", label: "Measure OFC", desc: "Serial head circumference vs. WHO/CDC growth charts. Measure both parents — familial microcephaly is a diagnosis of exclusion.", color: C.teal },
    { n: "02", label: "Prenatal Ultrasound", desc: "Detects microcephaly late 2nd/3rd trimester. Also identifies structural anomalies (lissencephaly, ventriculomegaly, calcifications).", color: C.teal },
    { n: "03", label: "Brain MRI (1st-line postnatal)", desc: "Superior cortical detail vs CT. Identifies lissencephaly, heterotopia, schizencephaly, periventricular calcifications, gyrification defects.", color: C.tealLight },
    { n: "04", label: "Chromosomal Microarray / Karyotype", desc: "For suspected chromosomal etiology (dysmorphic features, multiple anomalies). Detects trisomies, deletions (17p13.3, 5p), duplications.", color: C.orange },
    { n: "05", label: "Exome / Genome Sequencing", desc: ">800 OMIM-listed syndromes include microcephaly; >900 conditions linked. Increasing yield as technology becomes available and affordable.", color: C.orange },
    { n: "06", label: "TORCH Serology & PCR", desc: "CMV urine PCR (within 3 weeks of birth), Zika IgM/PCR (travel history), toxoplasma IgM/IgA, rubella, syphilis (VDRL/RPR), HSV PCR.", color: C.red },
    { n: "07", label: "Metabolic Screen", desc: "Plasma amino acids (PKU — phenylalanine), urine organic acids. Isolated metabolic microcephaly rare: maternal PKU, Amish lethal microcephaly, phosphoglycerate dehydrogenase deficiency.", color: C.amber },
    { n: "08", label: "EEG & Neurophysiology", desc: "For seizure evaluation. Baseline EEG in all patients with microcephaly + developmental delay.", color: C.darkGray },
  ];

  const colW = 4.55;
  steps.forEach((step, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.35 : 5.1;
    const y = 1.25 + row * 1.06;

    s.addShape(pres.shapes.RECTANGLE, {
      x, y, w: colW, h: 0.96, fill: { color: C.navyMid },
      line: { color: step.color, width: 1.0 }
    });
    s.addShape(pres.shapes.RECTANGLE, {
      x, y, w: 0.52, h: 0.96, fill: { color: step.color },
      line: { color: step.color, width: 0 }
    });
    s.addText(step.n, {
      x: x + 0.01, y, w: 0.5, h: 0.96,
      fontSize: 18, bold: true, color: C.white, fontFace: "Calibri",
      align: "center", valign: "middle", margin: 0
    });
    s.addText(step.label, {
      x: x + 0.6, y: y + 0.05, w: colW - 0.7, h: 0.26,
      fontSize: 11.5, bold: true, color: step.color, fontFace: "Calibri", margin: 0
    });
    s.addText(step.desc, {
      x: x + 0.6, y: y + 0.32, w: colW - 0.7, h: 0.58,
      fontSize: 9.5, color: C.lightGray, fontFace: "Calibri", margin: 0
    });
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 12 — PROGNOSIS & MANAGEMENT
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);
  addAccentBar(s, C.teal);
  slideTitle(s, "Prognosis & Management Principles");

  // Prognosis spectrum
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.35, y: 1.18, w: 9.3, h: 0.5,
    fill: { color: C.navyMid }, line: { color: C.teal, width: 1 }
  });
  s.addText("PROGNOSIS SPECTRUM  —  Depends on: etiology | severity (SD below mean) | structural anomalies | timing of diagnosis", {
    x: 0.4, y: 1.2, w: 9.2, h: 0.46, fontSize: 11, bold: true, color: C.teal,
    fontFace: "Calibri", valign: "middle", margin: 0
  });

  addCard(s, 0.35, 1.82, 4.55, 1.65, "Worse Prognosis", C.red, C.navyMid, [
    "Intrauterine infections (TORCH, Zika) with structural anomalies",
    "Chromosomal or metabolic abnormality",
    "Severe microcephaly (>3 SD below mean)",
    "Lissencephaly / significant cortical malformations",
    "~59% have identifiable etiology; ~40% unknown"
  ], 11);

  addCard(s, 5.1, 1.82, 4.55, 1.65, "Better Prognosis", C.green, C.navyMid, [
    "Familial (isolated genetic) microcephaly without structural anomaly",
    "Mild OFC reduction (2–2.5 SD below mean)",
    "No associated structural brain malformation on MRI",
    "Early intervention and rehabilitation access"
  ], 11);

  // Management pillars
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.35, y: 3.6, w: 9.3, h: 0.32, fill: { color: C.teal }, line: { color: C.teal, width: 0 }
  });
  s.addText("MANAGEMENT — Multidisciplinary, Supportive (No Cure Available)", {
    x: 0.4, y: 3.61, w: 9.2, h: 0.3, fontSize: 11.5, bold: true, color: C.white,
    fontFace: "Calibri", valign: "middle", margin: 0
  });

  const mgmt = [
    { title: "Neurology", items: ["Antiepileptic therapy for seizures", "EEG monitoring", "Neuroimaging follow-up"] },
    { title: "Rehabilitation", items: ["Physiotherapy / OT / speech therapy", "Early intervention programs", "Specialized schooling"] },
    { title: "Genetics", items: ["Family counseling & recurrence risk", "Prenatal diagnosis for future pregnancies", "Gene-specific counseling"] },
    { title: "Prevention", items: ["Rubella vaccination (MMR)", "Avoid alcohol/teratogens in pregnancy", "PKU dietary control pre-conception", "Zika: avoid travel / mosquito prevention"] },
  ];
  mgmt.forEach((m, i) => {
    const x = 0.35 + i * 2.38;
    s.addShape(pres.shapes.RECTANGLE, {
      x, y: 4.0, w: 2.28, h: 1.48, fill: { color: C.navyMid },
      line: { color: C.tealLight, width: 0.8 }
    });
    s.addShape(pres.shapes.RECTANGLE, {
      x, y: 4.0, w: 2.28, h: 0.34, fill: { color: C.tealLight },
      line: { color: C.tealLight, width: 0 }
    });
    s.addText(m.title, {
      x: x + 0.08, y: 4.01, w: 2.1, h: 0.32, fontSize: 11, bold: true, color: C.white,
      fontFace: "Calibri", valign: "middle", margin: 0
    });
    const formatted = m.items.map((item, j) => ({
      text: item, options: { bullet: { type: "bullet", indent: 8 }, fontSize: 10, color: C.white, fontFace: "Calibri", breakLine: j < m.items.length - 1, paraSpaceAfter: 1 }
    }));
    s.addText(formatted, { x: x + 0.08, y: 4.36, w: 2.12, h: 1.1, valign: "top" });
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 13 — SUMMARY TABLE
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);
  addAccentBar(s, C.teal);
  slideTitle(s, "Summary: Causes at a Glance");

  const rows = [
    ["Category", "Key Example", "Hallmark Feature", "Inheritance"],
    ["Primary MCPH (AR)", "CDK5RAP2, ASPM mutations", "Isolated severe microcephaly; no other anomalies", "Autosomal Recessive"],
    ["Chromosomal", "Trisomy 13, 18, 21", "Multiple congenital anomalies", "De novo / numerical"],
    ["DNA Repair Defect", "Nijmegen, Cockayne syndromes", "Immunodeficiency / premature aging", "Autosomal Recessive"],
    ["X-linked (Acquired)", "Rett syndrome (MECP2)", "Regression after 6–18 months", "X-linked Dominant"],
    ["Zika Virus (ZIKV)", "Congenital Zika syndrome", "Subcortical calcifications, arthrogryposis", "Acquired (infection)"],
    ["CMV", "Congenital CMV infection", "Periventricular calcifications, SNHL", "Acquired (infection)"],
    ["Rubella", "Congenital rubella syndrome", "Cataracts + PDA + deafness", "Acquired (infection)"],
    ["Fetal Alcohol", "FAS", "Smooth philtrum, growth restriction", "Teratogen exposure"],
    ["Maternal PKU", "Heterozygous fetus affected", "Must control diet pre-conception", "Metabolic (maternal)"],
    ["Lissencephaly (MDS)", "LIS1 deletion (17p13.3)", "Smooth brain, intractable epilepsy", "Chromosomal deletion"],
    ["Valproate / Phenytoin", "Fetal valproate syndrome", "NTDs, dysmorphia, cognitive impairment", "Teratogen exposure"],
  ];

  const colWidths = [2.1, 2.35, 3.3, 2.0];
  const startX = 0.12;
  const rowH = 0.36;

  rows.forEach((row, ri) => {
    const y = 1.2 + ri * rowH;
    const isHeader = ri === 0;
    const isEven = ri % 2 === 0;
    row.forEach((cell, ci) => {
      const x = startX + colWidths.slice(0, ci).reduce((a, b) => a + b, 0);
      const bgColor = isHeader ? C.teal : isEven ? C.navyMid : C.navy;
      s.addShape(pres.shapes.RECTANGLE, {
        x, y, w: colWidths[ci] - 0.04, h: rowH - 0.02,
        fill: { color: bgColor }, line: { color: C.teal, width: 0.4 }
      });
      s.addText(cell, {
        x: x + 0.06, y: y + 0.01, w: colWidths[ci] - 0.14, h: rowH - 0.04,
        fontSize: isHeader ? 10.5 : 9.5,
        bold: isHeader,
        color: isHeader ? C.white : (ci === 0 ? C.tealLight : C.white),
        fontFace: "Calibri", valign: "middle", margin: 0
      });
    });
  });
}

// ══════════════════════════════════════════════════════════════
// SLIDE 14 — CLOSING / KEY TAKEAWAYS
// ══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBgRect(s, C.navy);

  // Decorative circles
  s.addShape(pres.shapes.OVAL, {
    x: -1.0, y: 3.5, w: 5.0, h: 5.0,
    fill: { color: C.navyMid }, line: { color: C.teal, width: 1 }
  });
  s.addShape(pres.shapes.OVAL, {
    x: 7.5, y: -1.2, w: 4.5, h: 4.5,
    fill: { color: C.teal, transparency: 90 }, line: { color: C.tealLight, width: 0 }
  });

  // Amber left bar
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 0.2, h: 5.625, fill: { color: C.amber }, line: { color: C.amber, width: 0 }
  });

  s.addText("KEY TAKEAWAYS", {
    x: 0.5, y: 0.3, w: 9, h: 0.5,
    fontSize: 26, bold: true, color: C.amber, fontFace: "Calibri", charSpacing: 4, margin: 0
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.5, y: 0.85, w: 5, h: 0.04, fill: { color: C.teal }, line: { color: C.teal, width: 0 }
  });

  const takeaways = [
    "Microcephaly = OFC >2 SD below mean; the skull is small because the brain is small, not due to early suture closure.",
    "Classify as PRIMARY (congenital) or ACQUIRED (postnatal); etiology determines prognosis.",
    "Genetic causes account for ~1/3 of cases; >800 OMIM syndromes include microcephaly.",
    "TORCH infections (especially CMV and Zika) are the most important infectious causes; maternal PKU is a preventable metabolic cause.",
    "Brain MRI is the key postnatal investigation; exome sequencing is increasingly valuable.",
    "Management is supportive and multidisciplinary — neurology, rehabilitation, genetics, and prevention are the pillars.",
    "No curative therapy exists; prevention (vaccination, teratogen avoidance, metabolic control) is paramount.",
  ];

  const formatted = takeaways.map((t, i) => [
    { text: `${i + 1}.  `, options: { bold: true, color: C.amber, fontSize: 12.5, fontFace: "Calibri" } },
    { text: t + (i < takeaways.length - 1 ? "\n" : ""), options: { color: C.white, fontSize: 12, fontFace: "Calibri" } }
  ]).flat();

  s.addText(formatted, { x: 0.5, y: 1.0, w: 9.1, h: 4.4, valign: "top", paraSpaceAfter: 4 });

  s.addText("Harrison's 22E  |  Adams & Victor 12E  |  Robbins & Kumar  |  Lippincott's Biochemistry 8E  |  Red Book 2021  |  PMC5483622", {
    x: 0.3, y: 5.28, w: 9.5, h: 0.25,
    fontSize: 7.5, color: C.lightGray, italic: true, fontFace: "Calibri", margin: 0
  });
}

// ── WRITE FILE ────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/microcephaly-ppt/Microcephaly_Presentation.pptx" })
  .then(() => console.log("DONE: /home/daytona/workspace/microcephaly-ppt/Microcephaly_Presentation.pptx"))
  .catch(e => { console.error("ERROR:", e); process.exit(1); });
Running Command

cd /home/daytona/workspace/microcephaly-ppt && node generate.js 2>&1

Running Command

ls -lh /home/daytona/workspace/microcephaly-ppt/Microcephaly_Presentation.pptx

Your presentation is ready! Download it here:

Microcephaly Presentation

Presentation · PPTX


What's inside — 14 slides with a dark navy + teal + amber design theme:
SlideContent
1Title slide
2Definition & Diagnostic Thresholds (2 SD / 3 SD / 5 SD cards)
3Primary vs. Acquired Classification (side-by-side comparison)
4Genetic Causes I — MCPH (CDK5RAP2, ASPM, MCPH1) + Chromosomal (Trisomy 13/18/21, Cri-du-chat)
5Genetic Causes II — Syndromes (Cornelia de Lange, Rubinstein-Taybi, Seckel), X-linked (Rett, Fragile X), DNA repair defects (Nijmegen, Cockayne, Fanconi)
6Congenital Infections — TORCH acronym strip + Zika virus mechanism + CMV/Rubella/Toxoplasma
7Teratogens & Maternal Conditions — FAS, anticonvulsants, isotretinoin, maternal PKU, radiation
8Structural Brain Malformations — Lissencephaly (Miller-Dieker), holoprosencephaly, polymicrogyria
9Vascular, HIE & Postnatal Causes — birth asphyxia, IUGR, meningitis, metabolic, non-accidental trauma
10Clinical Features — head morphology, motor/sensory, epilepsy, intellectual disability
11Diagnostic Workup — 8-step numbered workflow (OFC, MRI, chromosomal array, exome, TORCH, metabolic)
12Prognosis & Management — better vs. worse prognosis + 4 management pillars
13Summary Table — 12-row quick-reference table of all causes
14Key Takeaways — 7 concise clinical pearls
This is a shared conversation. Sign in to Orris to start your own chat.