/* neelshahmd.com: one shared stylesheet.
   Layout from direction B (the monitor); palette from direction C; type is one family, Instrument Sans (2026-12-02).
   Palettes switch on <html data-palette>; photos on <html data-photo>. Tokens first, then base, then chrome
   (header and menu, footer), then components in the order PAGE-BUILDER-GUIDE.md lists them, then motion. */

/* ---------------------------------------------------------------- tokens */
:root,
:root[data-palette="navy"] {
  /* dark ground: hero, paths, sequence, inquiry */
  --ground: #10243E;
  --glass: #0B1A2E;          /* header and footer */
  --ink: #F3F5F8;            /* headings on ground, 14.3:1 */
  --text: #DCE2EA;           /* body on ground, 12.0:1 */
  --meta: #AEBBCB;           /* secondary on ground, 8.0:1 */
  --rule: #2C4262;           /* separators only */
  --rule-strong: #3D577C;
  /* pale panel: credentials, selected work, tables, the open menu */
  --panel: #EEF1F4;
  --panel-ink: #10243E;      /* 13.8:1 */
  --panel-text: #22344D;     /* 11.1:1 */
  --panel-muted: #44546B;    /* 6.8:1 */
  --panel-rule: #B4BFCC;
  --field: #F7F8FA;          /* form fields on the ground; navy text 14.7:1 */
  /* vermilion: decision points only (buttons, Contact, the physician step, the largest cohort) */
  --accent: #CD3E29;         /* fill on ground 3.2:1; white text on it 4.9:1 */
  --on-accent: #FFFFFF;
  --accent-ink: #BF3A26;     /* vermilion as text on a panel, 4.8:1 */
  color-scheme: dark;
}
:root[data-palette="olive"] {
  --ground: #222723;         /* Oliveblack, sampled #1E241F to #262B28 */
  --glass: #191D1A;
  --ink: #F1F2EC;            /* 13.5:1 */
  --text: #DADDD3;           /* 11.0:1 */
  --meta: #ADB3A6;           /* 7.1:1 */
  --rule: #3A423B;
  --rule-strong: #4D564E;
  --panel: #ECEDE6;
  --panel-ink: #1E231F;      /* 13.6:1 */
  --panel-text: #2C332D;     /* 11.0:1 */
  --panel-muted: #4E5850;    /* 6.3:1 */
  --panel-rule: #BEC4B8;
  --field: #F6F6F1;
  --accent: #CD3E29;         /* fill on olive 3.1:1; white text on it 4.9:1 */
  --on-accent: #FFFFFF;
  --accent-ink: #BF3A26;     /* text on olive panel 4.6:1 */
}
:root {
  /* One family. Display levels use the condensed end of the width axis; reading text stays at full width. */
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --narrow: 82%;                       /* font-stretch for name, h1, h2, wordmark and menu pages */
  /* Type scale, px at 1440 (phones in brackets). Neighbouring levels are at least 1.25 apart at every width:
     small 14.4 · body 18 · lead 22.5 · sub 30 (28.5 under 1200) · h2 46 (36) · h1 86 (45) · name 134 (56). */
  --fs-small: 14.4px;
  --fs-body: 18px;
  --fs-lead: 22.5px;
  --fs-sub: 28.5px;
  --h2: clamp(36px, 3.2vw, 46px);
  --h1: clamp(45px, 6vw, 86px);
  --fs-name: clamp(56px, 9.3vw, 134px);
  --gutter: clamp(16px, 5.5vw, 80px);
  --maxw: 1280px;
  --gap: 48px;                         /* column gap of the 5/7 split */
  --section: clamp(64px, 8vw, 112px);  /* one section rhythm everywhere */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (min-width: 1200px) { :root { --fs-sub: 30px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; font-variant-numeric: lining-nums; font-kerning: normal; }
img { max-width: 100%; display: block; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font); color: var(--ink); text-wrap: balance; }
.row-lead, .step-label, .paper-finding, .page-title { text-wrap: balance; }
h2 { font-size: var(--h2); font-weight: 700; font-stretch: var(--narrow); line-height: 1.04; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-lead); font-weight: 600; line-height: 1.22; letter-spacing: -0.005em; }
cite { font-style: italic; }
sub { font-size: max(var(--fs-small), 0.72em); line-height: 0; vertical-align: -0.22em; }   /* never under the 14.4 px small size */
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2.5px; }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.panel :focus-visible { outline-color: var(--panel-ink); }
[id] { scroll-margin-top: 92px; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 40; background: var(--ink); color: var(--ground); padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 16px; }
.nw { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header: one row, one menu
   Desktop: name, four key links, Contact, and the Menu pill. Phones: name and the pill.
   The pill stretches into the full menu (site.js). Without JavaScript the pill is a link to the footer index. */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--glass); border-bottom: 1px solid var(--rule); }
.head-row { position: relative; z-index: 2; width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: 32px; min-height: 72px; }
.head-row ul { list-style: none; margin: 0; padding: 0; }
.wordmark { font-size: var(--fs-lead); font-weight: 700; font-stretch: var(--narrow); letter-spacing: -0.01em; line-height: 1; color: var(--ink); text-decoration: none; padding-block: 12px; white-space: nowrap; }
.wordmark:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.keynav { margin-left: auto; }
.keynav ul { display: flex; gap: 28px; }
.keynav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-body); font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.keynav a:hover { text-decoration: underline; }
.keynav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.keynav + .head-actions { margin-left: 8px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; font: 600 var(--fs-body)/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.pill--contact { background: var(--accent); color: var(--on-accent); }
.pill--contact:hover { background: var(--ink); color: var(--ground); }
.pill--contact[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.pill--menu { background: var(--panel); color: var(--panel-ink); padding: 0 20px 0 18px; }
.pill-icon { position: relative; width: 16px; height: 10px; flex: none; }
.pill-icon span { position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; transition: transform 300ms var(--ease); }
.pill-icon span:first-child { top: 0; }
.pill-icon span:last-child { top: 8px; }
.morph { position: static; }   /* the panel anchors to the header row, so its width never counts a scrollbar */
.morph-toggle { display: none; position: relative; z-index: 2; }
.js .morph-toggle { display: inline-flex; }
.js .morph-fallback { display: none; }
.morph.is-open .pill-icon span:first-child { transform: translateY(4px) rotate(45deg); }
.morph.is-open .pill-icon span:last-child { transform: translateY(-4px) rotate(-45deg); }
/* the panel grows from the pill: its corner sits 6px outside the pill (the last item in the row, centred), radius 22 + 6 */
.morph-panel { position: absolute; top: calc(50% - 28px); right: -6px; z-index: 1; width: min(420px, 100% + 12px); color: var(--panel-ink); }
.morph-panel[hidden] { display: none; }
.morph-bg { position: absolute; inset: 0; background: var(--panel); border-radius: 28px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38); transform-origin: top right; transform: scale(var(--sx, 1), var(--sy, 1)); transition: transform 340ms var(--ease) 60ms; }
.morph.is-open .morph-bg { transform: none; transition: transform 440ms var(--ease); }
.morph-body { position: relative; padding: 70px 30px 26px; opacity: 0; transform: translateY(-8px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.morph.is-open .morph-body { opacity: 1; transform: none; transition: opacity 280ms var(--ease) 140ms, transform 380ms var(--ease) 120ms; }
.morph-body ul { list-style: none; margin: 0; padding: 0; }
.morph-pages a { display: block; padding-block: 6px; font-size: 30px; font-weight: 700; font-stretch: var(--narrow); line-height: 1.15; letter-spacing: -0.01em; color: var(--panel-ink); text-decoration: none; }
.morph-pages a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.morph-pages a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.16em; }
.morph-label { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--panel-rule); font-size: var(--fs-small); font-weight: 500; color: var(--panel-muted); }
.morph-profiles { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.morph-profiles a { display: block; padding-block: 12px; font-size: var(--fs-body); font-weight: 500; line-height: 1.2; color: var(--panel-ink); }
.morph-panel :focus-visible { outline-color: var(--panel-ink); }
.morph-scrim { position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease), visibility 0s linear 300ms; }
.menu-open .morph-scrim { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease); }
.head-row > :not(.head-actions), .head-actions > :not(.morph) { transition: opacity 300ms var(--ease); }
.menu-open .head-row > :not(.head-actions), .menu-open .head-actions > :not(.morph) { opacity: 0.4; }
html.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- sections and grounds */
.section { padding-block: var(--section); }
.section:not(.panel) + .section:not(.panel) { padding-top: 0; }   /* two dark sections in a row share one gap */
.panel { background: var(--panel); color: var(--panel-text); }
.panel h1, .panel h2, .panel h3 { color: var(--panel-ink); }
.split, .path-row, .hero-foot, .section-head, .block-head, .inquiry-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split { display: grid; gap: var(--gap); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.lede { font-size: var(--fs-body); color: var(--meta); max-width: 46ch; }
.panel .lede { color: var(--panel-muted); }
.lede-big { font-size: var(--fs-lead); font-weight: 500; line-height: 1.3; color: var(--ink); max-width: 46ch; text-wrap: balance; }
.panel .lede-big { color: var(--panel-ink); }
.meta { font-size: var(--fs-small); color: var(--meta); }
.panel .meta { color: var(--panel-muted); }
.doi { white-space: nowrap; }

/* ---------------------------------------------------------------- hero (home) */
.hero { padding-block: clamp(40px, 6vh, 72px) var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name photo" "desc photo" "foot foot"; column-gap: 40px; }
.name { grid-area: name; font-size: var(--fs-name); font-weight: 700; font-stretch: var(--narrow); line-height: 0.92; letter-spacing: -0.03em; color: var(--ink); }
.name .ln { display: block; }
.portrait { grid-area: photo; width: clamp(140px, 16vw, 240px); margin-top: 8px; }
.portrait img { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; object-fit: cover; }
.photo { display: none !important; }
:root:not([data-photo="washu"]) .photo-x, :root[data-photo="washu"] .photo-washu { display: block !important; }
.descriptor { grid-area: desc; margin-top: clamp(20px, 2.6vh, 32px); font-size: var(--fs-sub); font-weight: 500; line-height: 1.22; letter-spacing: -0.01em; color: var(--ink); max-width: 24em; text-wrap: balance; }
.hero-foot { grid-area: foot; display: grid; gap: var(--gap); margin-top: clamp(32px, 4.5vh, 52px); padding-top: 28px; border-top: 1px solid var(--rule-strong); }
.positioning { font-size: var(--fs-lead); font-weight: 500; line-height: 1.35; color: var(--ink); max-width: 30ch; text-wrap: balance; }
.hero-foot > p:not(.positioning) { max-width: 33em; }
.roles { list-style: none; margin: 0; padding: 0; }
.roles li { font-size: var(--fs-body); line-height: 1.4; padding-block: 0 12px; }
.roles li + li { padding-top: 12px; border-top: 1px solid var(--rule); }
.profile-links { list-style: none; margin: 0; padding: 2px 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; column-gap: 28px; }
.profile-links a, .profile-line a { display: inline-block; padding-block: 11px; line-height: 22px; font-weight: 600; color: var(--ink); }   /* inline-block keeps the space before a nowrap span; 44 px tall */
.profile-line { margin-top: 14px; font-size: var(--fs-body); }

/* ---------------------------------------------------------------- path rows */
.paths { padding-bottom: var(--section); }
.path-row { display: grid; gap: var(--gap); padding-block: clamp(36px, 4vw, 56px); border-top: 1px solid var(--rule-strong); }
.path-row:first-child { padding-top: 0; border-top: 0; }
.path-row:last-child { padding-bottom: 0; }
.path-body { display: grid; gap: 28px; align-content: start; justify-items: start; padding-top: 8px; }
.path-body p { font-size: var(--fs-body); line-height: 1.6; max-width: 33em; }
.panel .path-row { border-top-color: var(--panel-rule); }

/* buttons: vermilion means "decide here" */
.go { display: inline-block; font: inherit; font-size: var(--fs-body); font-weight: 700; line-height: 1.2; text-decoration: none; color: var(--on-accent); background: var(--accent); border: 2px solid var(--accent); border-radius: 0; padding: 14px 24px; cursor: pointer; }
.go:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.panel .go:hover { background: var(--panel-ink); border-color: var(--panel-ink); color: var(--panel); }

/* ---------------------------------------------------------------- table (credentials) */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.table th { text-align: left; font-size: var(--fs-small); font-weight: 600; color: var(--panel-muted); padding: 0 24px 12px 0; border-bottom: 2px solid var(--panel-ink); }
.table td { padding: 16px 24px 16px 0; border-bottom: 1px solid var(--panel-rule); vertical-align: baseline; line-height: 1.4; }
.table .t-main { font-weight: 600; color: var(--panel-ink); }
.table .t-sub { color: var(--panel-muted); }
.table .t-type { color: var(--panel-muted); font-size: var(--fs-small); white-space: nowrap; }
.table .t-year { font-size: var(--fs-lead); font-weight: 600; line-height: 1; color: var(--panel-ink); text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.table th.t-year { font-size: var(--fs-small); font-weight: 600; color: var(--panel-muted); line-height: 1.55; }
.table .t-years { color: var(--panel-ink); text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table--4 th:nth-child(1) { width: 12%; }
.table--4 th:nth-child(2) { width: 44%; }
.table--4 th:nth-child(3) { width: 26%; }
.table--4 .t-years, .table--4 th.t-years { text-align: left; white-space: normal; }
.table:not(.table--4):not(.table--grants) th:nth-child(1) { width: 50%; }   /* credential names wrap before 85 characters */
.table--grants th:nth-child(1) { width: 52%; }   /* keeps the long grant names near 80 characters a line */
.table--grants td { text-wrap: pretty; }

/* ---------------------------------------------------------------- the sequence (one drawn device) */
.seq-steps { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1fr 1.7fr 1fr; counter-reset: step; }
.step { --i: 0; position: relative; padding: 40px 28px 0 0; counter-increment: step; }
.step:nth-child(2) { --i: 1; }
.step:nth-child(3) { --i: 2; }
.step:nth-child(4) { --i: 3; }
.step:nth-child(5) { --i: 4; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--meta); transform-origin: left center; }
.step::after { content: counter(step); position: absolute; left: 0; top: -40px; font-size: var(--fs-small); font-weight: 600; color: var(--meta); font-variant-numeric: tabular-nums; }
.step-tick { position: absolute; left: 0; top: -7px; width: 2px; height: 16px; background: var(--ink); }
.step-label { font-size: var(--fs-lead); line-height: 1.18; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.step-text { font-size: var(--fs-body); line-height: 1.5; }
.step.is-decision { padding: 0 28px 0 0; display: flex; flex-direction: column; }
.step.is-decision::after { color: var(--ink); }
.step.is-decision .step-tick { display: none; }
.decision { position: relative; z-index: 1; flex: 1; background: var(--accent); color: var(--on-accent); padding: 34px 28px 32px; margin-top: -9px; }
.decision .step-label { color: var(--on-accent); font-size: var(--fs-sub); font-stretch: var(--narrow); line-height: 1.04; font-weight: 700; margin-bottom: 16px; }
.decision .step-text { color: var(--on-accent); }
/* on a pale panel (/advisory/) */
.panel .step::before { background: var(--panel-muted); }
.panel .step::after { color: var(--panel-muted); }
.panel .step-tick { background: var(--panel-ink); }
.panel .step-label { color: var(--panel-ink); }
.panel .step-text { color: var(--panel-text); }
.panel .step.is-decision::after { color: var(--panel-ink); }
.panel .decision .step-label, .panel .decision .step-text { color: var(--on-accent); }

/* ---------------------------------------------------------------- rows (papers, tools, talks, profiles) */
.block + .block { margin-top: clamp(64px, 7vw, 104px); }
.block-head { display: grid; gap: var(--gap); align-items: baseline; margin-bottom: clamp(24px, 2.6vw, 36px); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--gap); row-gap: 8px; padding-block: 24px 26px; border-top: 1px solid var(--rule); align-items: baseline; }
.panel .rows > li { border-top-color: var(--panel-rule); }
.rows > li > * { grid-column: 2; }
.rows > li > .row-lead { grid-column: 1; grid-row: 1 / span 4; }
.row-lead { font-size: var(--fs-lead); line-height: 1.22; font-weight: 600; color: var(--ink); max-width: 26ch; }
.panel .row-lead { color: var(--panel-ink); }
.row-lead a { display: inline-block; padding-block: 10px; margin-block: -2px; text-decoration-thickness: 2px; }
.row-lead cite { font-style: normal; }
.row-text { font-size: var(--fs-body); line-height: 1.55; max-width: 33em; }
.rows h4 { margin: 0; text-wrap: balance; }
.group-head { font-size: var(--fs-sub); font-weight: 700; font-stretch: var(--narrow); line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); max-width: 16em; text-wrap: balance; }
.panel .group-head { color: var(--panel-ink); }
/* /speaking/: the site's 5/7 split; long titles use the whole left column */
.rows--wide .row-lead { max-width: none; }
.block-head--stack { display: block; }
.rows--cite .row-lead { max-width: 32ch; }
.rows--tools .row-lead a { display: block; width: fit-content; }   /* first line of a two-line tool name sits on the row baseline */
/* one paper pattern: finding head; then title, journal, year, role; then PMID and DOI */
.paper > .paper-finding { grid-column: 1; grid-row: 1 / span 4; }
.paper-finding { font-size: var(--fs-lead); font-weight: 600; line-height: 1.28; color: var(--ink); margin: 0; max-width: 26em; }
.panel .paper-finding { color: var(--panel-ink); }
.paper-cite { font-size: var(--fs-body); line-height: 1.5; color: var(--text); max-width: 34em; }
.panel .paper-cite { color: var(--panel-text); }
.paper-title { font-weight: 600; }
.paper-ids { font-size: var(--fs-small); color: var(--meta); }
.panel .paper-ids { color: var(--panel-muted); }
.paper-ids a { display: inline-block; white-space: nowrap; padding-block: 12px; margin-block: -8px; }   /* 44 px targets */
/* ruled list beside a split heading (/speaking/ fellowship teaching) */
.split-lede { margin-top: 16px; }
.ruled-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.ruled-list li { padding-block: 14px; border-bottom: 1px solid var(--rule); font-size: var(--fs-body); line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.ruled-list .note { color: var(--meta); }

/* ---------------------------------------------------------------- inquiry form */
.inquiry-grid { display: grid; gap: var(--gap); align-items: start; }
.inquiry-head { position: sticky; top: 104px; }
.inquiry-head p { margin-top: 24px; font-size: var(--fs-body); line-height: 1.6; max-width: 27em; color: var(--text); }
.form { display: grid; }
.no-phi { font-weight: 700; color: var(--ink); padding: 0 0 18px; border-bottom: 1px solid var(--rule); }
.field { display: grid; gap: 4px; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.pair { grid-template-columns: 1fr 1fr; gap: 20px; }
.pair > div { display: flex; flex-direction: column; gap: 4px; }
.pair input { margin-top: auto; }
.form label { font-size: var(--fs-body); font-weight: 700; color: var(--ink); }
.form .opt { font-weight: 400; color: var(--meta); }
.form .help { font-size: var(--fs-small); color: var(--meta); text-wrap: pretty; }
.form input[type="text"], .form input[type="email"], .form textarea { width: 100%; font: inherit; font-size: var(--fs-body); color: #10243E; background: var(--field); border: 2px solid var(--field); border-radius: 0; padding: 11px 14px; margin-top: 6px; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.form textarea { resize: vertical; min-height: 104px; }
.submit-row { display: grid; gap: 20px; justify-items: start; padding-top: 20px; }
.h-captcha:empty { display: none; }   /* no JavaScript or no widget: no empty gap above the button */
.js .h-captcha:not(.is-ready) { height: 0; overflow: hidden; margin-bottom: -20px; }   /* collapsed until site.js sees its frame load */
.h-captcha iframe:focus, .h-captcha:focus-within iframe, .h-captcha.is-focused iframe { outline: 3px solid var(--ink); outline-offset: 3px; }
.form-msg { font-weight: 700; color: var(--ink); }
.form-msg:empty { display: none; }
.botcheck { display: none; }
.contact-grid { margin-top: clamp(32px, 4vw, 56px); }
.contact-grid .intro { margin-top: 0; }

/* ---------------------------------------------------------------- FAQ (inner pages) */
.faq { border-top: 1px solid var(--rule-strong); }
.panel .faq { border-top-color: var(--panel-ink); }
.faq-item { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); padding-block: 28px; border-bottom: 1px solid var(--rule); }
.panel .faq-item { border-bottom-color: var(--panel-rule); }
.faq-item p { max-width: 33em; }

/* ---------------------------------------------------------------- inner-page hero, lists, prose */
.page-hero { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.page-title { font-size: var(--h1); font-weight: 700; font-stretch: var(--narrow); line-height: 0.98; letter-spacing: -0.025em; max-width: 17ch; }
.page-hero .intro { margin-top: clamp(24px, 3vw, 36px); font-size: var(--fs-lead); line-height: 1.5; color: var(--text); max-width: 36em; text-wrap: pretty; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: start; }
.page-hero-grid .portrait { grid-area: auto; margin-top: 12px; width: 240px; }
.bio { margin-top: clamp(28px, 3.5vw, 44px); font-size: var(--fs-lead); line-height: 1.5; color: var(--text); max-width: 33em; }
.hero-split { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); margin-top: clamp(24px, 3vw, 36px); align-items: start; }
.hero-split .intro { margin-top: 0; }
.hero-split .go, .hero-cta { margin-top: 28px; }
.hero-more { font-size: var(--fs-body); line-height: 1.6; color: var(--text); max-width: 33em; padding-top: 6px; }
.hero-more + .roles-strip { margin-top: 28px; }
.roles-strip { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.roles-strip li { font-size: var(--fs-body); line-height: 1.4; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.bullets { margin: 0; padding-left: 1.2em; display: grid; gap: 12px; max-width: 34em; }
.bullets li { text-wrap: pretty; }
.bullets li::marker { color: var(--meta); }
.panel .bullets li::marker { color: var(--panel-muted); }
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.link-grid li { border-bottom: 1px solid var(--rule); }
.link-grid a { display: block; padding-block: 12px; font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
.prose { max-width: 34em; font-size: var(--fs-body); line-height: 1.65; }  /* about 70 characters of Instrument Sans */
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-sub); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li, .article-list li { text-wrap: pretty; }
.byline { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; font-size: var(--fs-small); color: var(--meta); }
.byline a { color: var(--ink); font-weight: 600; }
.byline a, .page-hero .intro a { display: inline-block; padding-block: 12px; }
.sources { margin-bottom: 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: var(--fs-small); max-width: 37em; }
.sources a { overflow-wrap: anywhere; }
.sources li { scroll-margin-top: 96px; }
.sources li { line-height: 1.5; text-wrap: pretty; }
.article-list { list-style: none; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; max-width: 40em; }
.article-list:empty { display: none; }
.article-list li { padding-block: 20px; border-top: 1px solid var(--rule); }
.article-list a { font-size: var(--fs-lead); font-weight: 600; color: var(--ink); }
article .wrap { max-width: 820px; }
article .page-title { font-size: clamp(40px, 4.6vw, 66px); }
article .prose { margin-inline: auto; }
sup.cite { font-size: max(14.4px, 0.7em); line-height: 0; margin-left: 1px; }
sup.cite a { text-decoration: none; font-weight: 600; }
.neel-slot { background: transparent; color: inherit; font-style: italic; outline: 2px dashed currentColor; outline-offset: 2px; padding: 0 0.2em; }   /* article drafts (preview only) */

/* /research/: cohort sizes on a log scale, built only from sizes printed on the page.
   --v is the dot's position in percent of the track; the track is a size container so the dot can travel along it. */
.scale { margin: clamp(28px, 3.5vw, 44px) 0 clamp(8px, 1vw, 16px); max-width: 1040px; }
.scale figcaption { font-size: var(--fs-small); color: var(--meta); margin-bottom: 12px; text-wrap: pretty; }
.scale ol { list-style: none; margin: 0; padding: 0; }
.scale { --label-col: 280px; }
.scale li { --i: 0; display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); column-gap: 24px; align-items: center; min-height: 32px; border-top: 1px solid var(--rule); font-size: var(--fs-small); }
.scale li:nth-child(2) { --i: 1; } .scale li:nth-child(3) { --i: 2; } .scale li:nth-child(4) { --i: 3; }
.scale li:nth-child(5) { --i: 4; } .scale li:nth-child(6) { --i: 5; } .scale li:nth-child(7) { --i: 6; } .scale li:nth-child(8) { --i: 7; }
.scale-label { color: var(--text); }
.scale-label b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.scale-track { position: relative; height: 32px; container-type: inline-size; }
.scale-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule-strong); }
.scale-dot { position: absolute; top: 50%; left: calc(var(--v) * 1%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); }
.scale-axis { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); column-gap: 24px; border-top: 1px solid var(--rule-strong); }
.scale-ticks { position: relative; height: 28px; }
.scale-ticks span { position: absolute; top: 4px; left: var(--x); transform: translateX(-50%); font-size: var(--fs-small); color: var(--meta); white-space: nowrap; }
.scale-ticks span::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 6px; background: var(--meta); }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--glass); border-top: 1px solid var(--rule); padding-block: 56px 64px; font-size: var(--fs-small); line-height: 28px; color: var(--text); }
.foot-id { font-size: var(--fs-lead); line-height: 1.3; font-weight: 600; color: var(--ink); max-width: 40ch; margin-bottom: 32px; text-wrap: balance; }
.foot-grid { display: grid; grid-template-columns: 3fr 3fr 6fr; gap: var(--gap); align-items: start; padding-top: 32px; border-top: 1px solid var(--rule); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.foot-links a { display: inline-block; min-width: 44px; line-height: 28px; color: var(--ink); }
.foot-links a[aria-current="page"] { text-decoration-thickness: 2.5px; }
.foot-notes { line-height: 26px; color: var(--meta); max-width: 36em; }

/* ---------------------------------------------------------------- tablet: key links fold into the menu */
@media (max-width: 1023px) {
  .keynav { display: none; }
  .keynav + .head-actions { margin-left: auto; }
}

/* ---------------------------------------------------------------- single column */
@media (max-width: 899px) {
  :root { --gap: 24px; }
  .hero-foot, .path-row, .section-head, .block-head, .inquiry-grid, .split, .faq-item, .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-foot { gap: 24px; }
  .path-row { gap: 20px; }
  .section-head { align-items: start; gap: 16px; }
  .block-head { gap: 12px; }
  .rows > li { grid-template-columns: 1fr; }
  .rows > li > *, .rows > li > .row-lead, .paper > .paper-finding { grid-column: 1; grid-row: auto; }
  .row-lead { max-width: none; }
  .inquiry-head { position: static; }
  .pair { grid-template-columns: 1fr; }
  .page-hero .intro, .bio { font-size: var(--fs-body); line-height: 1.6; }
  .foot-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot-links { gap: 0; }
  .foot-links a { padding-block: 8px; }
  .foot-notes { grid-column: 1 / -1; }
  .seq-steps { grid-template-columns: 1fr; margin-top: 40px; }
  .step { padding: 0 0 36px 44px; }
  .step::before { left: 0; right: auto; top: 6px; bottom: 0; width: 2px; height: auto; transform-origin: center top; }
  .step::after { left: 0; top: -2px; width: 28px; text-align: left; display: none; }
  .step-tick { left: -7px; top: 6px; width: 16px; height: 2px; }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
  .step.is-decision { padding: 0 0 36px 44px; display: block; }
  .step.is-decision .step-tick { display: block; left: 0; top: 22px; width: 44px; height: 6px; background: var(--accent); }
  .decision { margin-top: 0; min-height: 0; padding: 22px 20px 24px; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--panel-rule); }
  .table td { display: block; padding: 0; border: 0; }
  .table .t-main { grid-column: 1; }
  .table .t-sub { grid-column: 1; margin-top: 2px; }
  .table .t-type { grid-column: 1; grid-row: 1; }
  .table .t-year, .table .t-years { grid-column: 2; grid-row: 1 / span 3; }
  .table .t-years { font-size: var(--fs-small); }
  .table--4 tr { grid-template-columns: 1fr; }
  .table--4 .t-years { grid-column: 1; grid-row: auto; margin-top: 2px; color: var(--panel-muted); }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr) 160px; column-gap: 24px; }
  .page-hero-grid .portrait { width: 160px; }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 759px) {
  [id] { scroll-margin-top: 76px; }
  .head-row { gap: 16px; min-height: 64px; }
  .pill--contact { display: none; }
  .hero { padding-top: 28px; }
  .hero-grid { position: relative; display: block; }
  .name { line-height: 1.02; }  /* the comma of "Shah," clears "MSc" */
  .name .w { display: block; }
  .name .ln { white-space: nowrap; }
  .portrait { position: absolute; right: 0; top: 4px; width: 104px; margin: 0; }
  .descriptor { max-width: none; }
  .page-hero-grid { display: block; position: relative; }
  .page-hero-grid .portrait { position: absolute; right: 0; top: 0; width: 104px; margin: 0; }
  .page-hero-grid .page-title { padding-right: 116px; }
  .link-grid { grid-template-columns: 1fr; }
  .scale li, .scale-axis { grid-template-columns: 1fr; }
  .scale li { padding-top: 6px; }
  .scale-axis > span:first-child { display: none; }
  .scale-ticks span:nth-child(even) { display: none; }
}

/* ---------------------------------------------------------------- motion (site.js; content is visible without it)
   Nothing is hidden at load. The first time a reader scrolls (wheel, touch or a scroll key), blocks still below the
   screen are set pending and rise into place as they enter: fade plus 12 px, 520 ms, once. The utilization sequence
   draws its line step by step and lands the physician step fourth; the cohort dots travel along the log axis. */
.rv.is-pending { opacity: 0; transform: translateY(12px); transition: none; }
.rv.is-in { transition: opacity 520ms var(--ease), transform 520ms var(--ease); }

.seq-steps.is-pending .step::before { transform: scaleX(0); transition: none; }
.seq-steps.is-pending .step::after,
.seq-steps.is-pending .step > * { opacity: 0; transition: none; }
.seq-steps.is-pending .step > :not(.decision) { transform: translateY(12px); }
.seq-steps.is-pending .decision { transform: translateY(16px) scale(0.97); transform-origin: left top; }
.seq-steps.is-in .step::before { transition: transform 300ms var(--ease) calc(var(--i) * 170ms); }
.seq-steps.is-in .step::after,
.seq-steps.is-in .step > * { transition: opacity 420ms var(--ease) calc(var(--i) * 170ms + 140ms), transform 420ms var(--ease) calc(var(--i) * 170ms + 140ms); }
.seq-steps.is-in .decision { transition: opacity 560ms var(--ease) calc(var(--i) * 170ms + 140ms), transform 560ms var(--ease) calc(var(--i) * 170ms + 140ms); }
@media (max-width: 899px) {
  .seq-steps.is-pending .step::before { transform: scaleY(0); }
}

.scale.is-pending .scale-dot { transform: translateX(calc(var(--v) * -1cqw)); transition: none; }
.scale.is-in .scale-dot { transition: transform 600ms var(--ease) calc(var(--i, 0) * 60ms); }

/* The prefers-reduced-motion guard is inline in partials/head.html, so it applies before this file loads. */
@media print {
  .site-head, .skip, .morph-scrim { display: none; }
  body { background: #FFFFFF; color: #000000; }
  .rv, .seq-steps .step > *, .seq-steps .step::before, .seq-steps .step::after, .scale-dot { opacity: 1 !important; transform: none !important; }
}
