[
  {
    "n": 1,
    "eyebrow": "Orientation",
    "title": "What a PV loop is",
    "dek": "One heartbeat, drawn as pressure against volume.",
    "steps": [
      {
        "t": "The two axes",
        "h": "<p>Forget time for a moment. A pressure–volume loop plots <strong>left-ventricular pressure</strong> (y-axis, mmHg) against <strong>left-ventricular volume</strong> (x-axis, mL) across a single heartbeat.</p><p>Because both pressure and volume change continuously, one beat traces out a closed loop. The loop runs <em>counter-clockwise</em>.</p>",
        "action": {
          "label": "Open the normal loop",
          "preset": "normal"
        }
      },
      {
        "t": "Width is stroke volume",
        "h": "<p>The loop’s <strong>width</strong> is the volume ejected each beat, the <em>stroke volume</em>. Its right edge is end-diastolic volume (EDV, the fullest point); its left edge is end-systolic volume (ESV, the emptiest).</p><p>Ejection fraction is simply SV ÷ EDV. Everything else on the loop explains <em>why</em> that width is what it is.</p>"
      },
      {
        "t": "Area is work",
        "h": "<p>The <strong>area enclosed</strong> by the loop is <em>stroke work</em>, the mechanical work the ventricle does on the blood each beat. A tall, wide loop does more work than a small one.</p><p>Turn on the stroke-work fill to see the enclosed area shaded.</p>",
        "action": {
          "label": "Shade stroke work",
          "preset": "normal",
          "overlays": {
            "sw": true
          }
        }
      }
    ],
    "check": [
      "I can point to stroke volume and ejection fraction on the loop",
      "I know the loop runs counter-clockwise"
    ]
  },
  {
    "n": 2,
    "eyebrow": "Mechanics",
    "title": "The four phases",
    "dek": "Two valves, opening and closing in sequence, carve the loop into four sides.",
    "steps": [
      {
        "t": "Follow one beat",
        "h": "<p>Start at the bottom-right corner (end-diastole, mitral valve just closed) and go counter-clockwise:</p><p><strong>1 · Isovolumetric contraction</strong>: both valves shut, pressure rises straight up, volume fixed. <strong>2 · Ejection</strong>: the aortic valve opens, blood leaves, volume falls. <strong>3 · Isovolumetric relaxation</strong>: the aortic valve shuts, pressure drops straight down. <strong>4 · Filling</strong>: the mitral valve opens, the ventricle refills along the bottom.</p>",
        "action": {
          "label": "Animate the four phases",
          "preset": "normal",
          "overlays": {
            "labels": true
          }
        }
      },
      {
        "t": "The corners are valve events",
        "h": "<p>Each corner is a valve opening or closing: <em>① MV closes</em> (start of contraction), <em>② AV opens</em> (start of ejection), <em>③ AV closes</em> (end-systole), <em>④ MV opens</em> (start of filling).</p><p>The two vertical sides are <strong>isovolumetric</strong>: all valves are closed, so volume can’t change. Keep this in mind: several diseases are defined by which vertical side is <em>missing</em>.</p>"
      },
      {
        "t": "Why counter-clockwise?",
        "h": "<p>Because the ventricle fills at low pressure (bottom), then generates high pressure to eject (top), then relaxes. Energy flows in during systole and the loop closes as it relaxes and refills.</p>",
        "quiz": {
          "q": "In mitral regurgitation, blood leaks back into the atrium the instant pressure rises, before the aortic valve opens. Which phase disappears?",
          "a": "Isovolumetric contraction. With a hole into the low-pressure atrium, volume starts falling as soon as pressure rises, so the left vertical wall of the loop is lost."
        }
      }
    ],
    "check": [
      "I can name the four phases in order",
      "I know which sides are isovolumetric"
    ]
  },
  {
    "n": 3,
    "eyebrow": "Boundaries",
    "title": "The three lines",
    "dek": "A loop lives inside a frame of three lines. Learn the frame and every disease becomes readable.",
    "steps": [
      {
        "t": "ESPVR: contractility",
        "h": "<p>The <strong>end-systolic pressure–volume relationship</strong> is the ceiling the loop’s top-left corner rides on. Its slope is <em>Ees</em>, a load-independent measure of contractility.</p><p>Steeper ESPVR = stronger heart = the ventricle empties to a smaller volume against the same pressure. Slide contractility and watch the top-left corner track the green line.</p>",
        "action": {
          "label": "Show ESPVR",
          "preset": "normal",
          "overlays": {
            "espvr": true,
            "edpvr": false,
            "ea": false
          }
        }
      },
      {
        "t": "EDPVR: compliance",
        "h": "<p>The <strong>end-diastolic pressure–volume relationship</strong> is the curved floor. It is passive: how stiff the ventricle is when it fills. A stiff ventricle (HFpEF, restrictive, hypertrophy) climbs this curve steeply: small volume, high filling pressure.</p>",
        "action": {
          "label": "Compare a stiff ventricle",
          "preset": "hfpef",
          "overlays": {
            "edpvr": true
          }
        }
      },
      {
        "t": "Ea: the load",
        "h": "<p>The <strong>effective arterial elastance</strong> line is the diagonal from EDV on the x-axis to the end-systolic corner. It summarises everything the ventricle ejects against (resistance + stiffness of the arterial tree) as one number, <em>Ea = ESP / SV</em>.</p><p>Where ESPVR (Ees) meets Ea sets the operating point. Their ratio, <em>Ea/Ees</em>, is <strong>ventriculo-arterial coupling</strong>, which is optimal near 0.6–1.2.</p>",
        "action": {
          "label": "Show all three lines",
          "preset": "normal",
          "overlays": {
            "espvr": true,
            "edpvr": true,
            "ea": true
          }
        }
      }
    ],
    "check": [
      "ESPVR slope = contractility (Ees)",
      "EDPVR = passive stiffness",
      "Ea = load; Ea/Ees = coupling"
    ]
  },
  {
    "n": 4,
    "eyebrow": "Levers",
    "title": "Preload, afterload, contractility",
    "dek": "Three independent levers move the loop. Change one at a time and watch.",
    "steps": [
      {
        "t": "Preload",
        "h": "<p>Preload is how full the ventricle is before it contracts (EDV). Add preload and the loop’s right edge slides right: more stretch, more stroke volume (the <em>Frank–Starling</em> mechanism), same ESPVR corner.</p>",
        "action": {
          "label": "Raise preload",
          "preset": "normal",
          "overlays": {
            "espvr": true,
            "ea": true
          }
        }
      },
      {
        "t": "Afterload",
        "h": "<p>Afterload is the pressure the ventricle must beat against. Raise it and the aortic valve opens later and higher: the loop grows <strong>taller and narrower</strong>, stroke volume falls, end-systolic volume rises.</p>",
        "action": {
          "label": "Raise afterload",
          "preset": "vasocon"
        }
      },
      {
        "t": "Contractility",
        "h": "<p>Contractility rotates the ESPVR ceiling upward. A stronger heart empties further for the same load: end-systolic volume falls, stroke volume and EF rise. This is the one lever that is truly intrinsic to the muscle.</p>",
        "action": {
          "label": "Add contractility (dobutamine)",
          "preset": "dobut",
          "overlays": {
            "espvr": true
          }
        }
      },
      {
        "t": "Isolate them",
        "h": "<p>The determinant sliders on the simulator move each lever independently, which you cannot do at the bedside. Return to normal, then push one slider at a time and predict the loop before it redraws.</p>",
        "quiz": {
          "q": "You raise afterload but stroke volume barely changes and EF stays high. What does that tell you about the ESPVR?",
          "a": "The ventricle has strong contractility (steep ESPVR / large contractile reserve). A steep ESPVR is relatively afterload-insensitive; a flat one (failing heart) is exquisitely afterload-sensitive."
        }
      }
    ],
    "check": [
      "Preload → width via Frank–Starling",
      "Afterload → taller, narrower",
      "Contractility → rotates ESPVR"
    ]
  },
  {
    "n": 5,
    "eyebrow": "Energetics",
    "title": "Work, oxygen and efficiency",
    "dek": "The loop is also an energy diagram, and oxygen is the currency.",
    "steps": [
      {
        "t": "PVA predicts MVO₂",
        "h": "<p>The <strong>pressure–volume area</strong> (PVA) is stroke work plus the potential energy stored in the contracted muscle. Suga showed PVA is <em>linearly related to myocardial oxygen consumption</em>, so the loop predicts how much O₂ the beat costs.</p>",
        "action": {
          "label": "Shade PVA energy",
          "preset": "normal",
          "overlays": {
            "pe": true,
            "sw": true
          }
        }
      },
      {
        "t": "Efficiency and coupling",
        "h": "<p>Efficiency is the fraction of that energy that becomes useful work: <em>SW / PVA</em>. It peaks when Ea/Ees is near 0.6–1.0. A failing heart (flat ESPVR, high Ea) is <strong>uncoupled</strong>: it spends oxygen on pressure it can’t convert to output.</p>",
        "action": {
          "label": "See an uncoupled heart",
          "preset": "hf",
          "overlays": {
            "espvr": true,
            "ea": true,
            "pe": true
          }
        }
      },
      {
        "t": "Why unloading helps",
        "h": "<p>Anything that lowers PVA lowers oxygen demand: reducing afterload, reducing volume, or mechanically unloading the ventricle. This is the logic behind afterload reduction in HF and behind Impella in cardiogenic shock: shrink the loop, spend less oxygen.</p>"
      }
    ],
    "check": [
      "PVA ≈ myocardial oxygen consumption",
      "Efficiency = SW/PVA, best when coupled"
    ]
  },
  {
    "n": 6,
    "eyebrow": "Failure",
    "title": "HFrEF vs HFpEF",
    "dek": "Two heart failures, two different lines break.",
    "steps": [
      {
        "t": "HFrEF: the ceiling falls",
        "h": "<p>In heart failure with reduced EF, contractility collapses: the <strong>ESPVR flattens</strong>. The ventricle can’t empty, so it dilates to preserve output (Frank–Starling). The loop shifts right, EF falls, and Ea/Ees uncouples.</p>",
        "action": {
          "label": "Load HFrEF",
          "preset": "hf",
          "overlays": {
            "espvr": true,
            "ea": true
          }
        }
      },
      {
        "t": "HFpEF: the floor rises",
        "h": "<p>In HF with preserved EF the systolic line is fine. The problem is the <strong>EDPVR</strong>. A stiff ventricle climbs the diastolic curve steeply: normal EF, but high filling pressure at a small volume. That pressure backs up into the lungs.</p>",
        "action": {
          "label": "Load HFpEF",
          "preset": "hfpef",
          "overlays": {
            "edpvr": true
          }
        }
      },
      {
        "t": "Same syndrome, opposite loops",
        "h": "<p>Side by side, HFrEF is a wide, short, right-shifted loop; HFpEF is a narrow, tall loop crammed against a steep diastolic curve. Both raise filling pressure, by different mechanics.</p>",
        "quiz": {
          "q": "Which line would you target with a positive inotrope, and which is essentially inotrope-proof?",
          "a": "Inotropes steepen the ESPVR, which helps in HFrEF. HFpEF’s problem is the passive EDPVR, which inotropes don’t fix; that’s why HFpEF has been so hard to treat pharmacologically."
        }
      }
    ],
    "check": [
      "HFrEF = flat ESPVR, dilated",
      "HFpEF = steep EDPVR, preserved EF"
    ]
  },
  {
    "n": 7,
    "eyebrow": "Valves",
    "title": "Reading valve disease",
    "dek": "One question unlocks every valve lesion: which phase or line is broken?",
    "steps": [
      {
        "t": "A framework, not a list",
        "h": "<p>Stenosis = obstruction to <em>forward</em> flow. Regurgitation = <em>backward</em> leak that erases an isovolumetric phase. Where the lesion sits (aortic vs mitral) decides which corner moves.</p>"
      },
      {
        "t": "Aortic stenosis",
        "h": "<p>The ventricle must generate huge pressure to force blood through a narrow valve, so <strong>peak LV pressure rises far above aortic pressure</strong>. That gap is the gradient. Turn on the peak-LVP line to see LV and aorta diverge.</p>",
        "action": {
          "label": "Aortic stenosis",
          "preset": "as",
          "overlays": {
            "lvp": true,
            "bp": true
          }
        }
      },
      {
        "t": "Aortic vs mitral regurgitation",
        "h": "<p><strong>AR</strong> fills the ventricle in diastole (aortic leak): no true isovolumetric <em>relaxation</em>, wide loop, low diastolic BP. <strong>MR</strong> empties into the atrium in systole: no true isovolumetric <em>contraction</em>, the left wall of the loop vanishes.</p>",
        "action": {
          "label": "Mitral regurgitation",
          "preset": "amr",
          "overlays": {
            "labels": true
          }
        }
      },
      {
        "t": "Acute vs chronic",
        "h": "<p>Chronicity changes the EDPVR. Chronic volume overload remodels eccentrically into a compliant, dilated chamber that tolerates the volume. An <strong>acute</strong> lesion hits a normal-sized, stiff ventricle: filling pressure rises sharply. Compare chronic vs acute MR to see the same leak on two different floors.</p>",
        "action": {
          "label": "Acute MR",
          "preset": "acutemr",
          "overlays": {
            "edpvr": true
          }
        }
      },
      {
        "q": "",
        "t": "Test yourself",
        "h": "",
        "quiz": {
          "q": "A loop has lost its left vertical wall and sits shifted left with a low peak pressure. Which lesion?",
          "a": "Mitral regurgitation. The systolic leak into the atrium erases isovolumetric contraction and unloads the ventricle, lowering peak pressure."
        }
      }
    ],
    "check": [
      "AS → LV–aortic gradient",
      "AR erases IVR; MR erases IVC",
      "Acute lesions hit a stiff floor"
    ]
  },
  {
    "n": 8,
    "eyebrow": "Support & repair",
    "title": "Devices and interventions",
    "dek": "How mechanical support and valve/lead procedures reshape the loop.",
    "steps": [
      {
        "t": "IABP vs Impella",
        "h": "<p>The <strong>balloon pump</strong> nudges: it lowers afterload and improves coronary flow, modestly shrinking the loop. <strong>Impella</strong> actively drains the ventricle. The loop shrinks and triangularises, PVA (oxygen demand) drops sharply. Layer each device onto cardiogenic shock and watch.</p>",
        "action": {
          "label": "Impella on shock",
          "preset": "shock",
          "device": "impella",
          "overlays": {
            "pe": true
          }
        }
      },
      {
        "t": "The VA-ECMO paradox",
        "h": "<p>VA-ECMO rescues the <em>circulation</em> but punishes the <em>ventricle</em>: retrograde aortic flow raises afterload, so the loop is pushed up and right and PVA <strong>rises</strong>. Adding an Impella to vent the LV (ECPELLA) pulls it back down. This is the rationale for LV venting.</p>",
        "action": {
          "label": "VA-ECMO, then compare",
          "preset": "shock",
          "device": "ecmo",
          "ref": "unsupported",
          "overlays": {
            "pe": true
          }
        }
      },
      {
        "t": "TAVR, MVR, CRT",
        "h": "<p>Interventions are best read as before → after pairs. <strong>TAVR</strong> abolishes the aortic gradient (loop widens, peak LVP drops to aortic). <strong>MVR</strong> restores isovolumetric contraction and unmasks true EF. <strong>CRT</strong> re-coordinates a dyssynchronous ventricle so the loop lifts and narrows.</p>",
        "action": {
          "label": "Pre-TAVR (then pick Post)",
          "preset": "pre_tavr",
          "overlays": {
            "lvp": true
          }
        }
      }
    ],
    "check": [
      "Impella unloads; ECMO can distend",
      "LV venting lowers PVA on ECMO",
      "Interventions read as before→after"
    ]
  }
]