:root {
  --ink: #16202a;
  --ink-2: #33404d;
  --muted: #5b6672;
  --rule: #d8d2c6;
  --bg: #ffffff;
  --sand: #f7f3ec;
  --teal: #0e6e6e;
  --teal-dark: #0a4a4b;
  --teal-wash: #e5f1f0;
  --saffron: #e8a317;
  --saffron-ink: #8a5a00;
  --saffron-wash: #fcf2dc;
  --coral: #c8492e;
  --coral-wash: #fbe9e4;
  --wash: var(--teal-wash);
  --accent: var(--teal);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding: 24px 0; border-bottom: 2px solid var(--ink); }
.site-name { font-size: 20px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; }
.site-nav a { text-decoration: none; padding: 10px 0; display: inline-block; }
.site-nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.site-nav .cv { font-weight: 600; color: var(--accent); }

/* Type */
.eyebrow, .mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
h1 { font-size: 40px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 20px; }
h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; line-height: 1.35; }
.lede { font-size: 18px; color: var(--ink-2); max-width: none; margin: 0; }
.muted { color: var(--muted); }
p { max-width: none; }

.page-head { padding: 56px 0 32px; display: flex; flex-direction: column; gap: 12px; }
section.block { padding: 48px 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 15px; padding: 10px 0; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; padding: 72px 0 64px; align-items: start; }
.hero.no-photo { grid-template-columns: minmax(0, 1fr); }
.hero h1 { font-size: 42px; max-width: 26ch; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 600; }
.hero-links a { padding: 10px 0; }
.hero-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--rule); }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; } .hero h1 { font-size: 32px; } .hero-photo { max-width: 280px; } }

/* Three tracks */
.tracks { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
@media (max-width: 860px) { .tracks { grid-template-columns: 1fr; } }
.track { padding: 28px 0; }
.track h2 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.track ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.track .when { display: block; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Generic ruled lists */
.ruled { list-style: none; margin: 0; padding: 0; }
.ruled > li { border-top: 1px solid var(--rule); padding: 14px 0; }
.ruled > li:last-child { border-bottom: 1px solid var(--rule); }
.dated { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 24px; font-size: 15px; }
.dated .when { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
@media (max-width: 560px) { .dated { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.two-col.ruled > li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--rule); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card { border-top: 1px solid var(--rule); padding: 20px 0 28px; }
.card p { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.card .evidence { font-size: 14px; color: var(--muted); margin: 0; }
.card .outcome { font-size: 14px; margin: 6px 0 0; }

.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.index-grid a { text-decoration: none; border: 1px solid var(--ink); padding: 20px; display: flex; flex-direction: column; gap: 6px; min-height: 96px; }
.index-grid a:hover { background: var(--wash); color: var(--ink); }
.index-grid strong { font-size: 17px; }
.index-grid span { font-size: 14px; color: var(--muted); }

/* Publications */
.filters { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 20px 0; display: flex; flex-direction: column; gap: 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.filter-row > .label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); flex: 0 0 72px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 14px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.search { flex: 1 1 280px; max-width: 480px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 0; font: inherit; font-size: 15px; }
.result-count { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 16px 0 0; }

.year-group { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 32px; padding: 32px 0 0; }
.year-group > h2 { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--accent); margin: 18px 0 12px; }
@media (max-width: 640px) { .year-group { grid-template-columns: 1fr; } .year-group > h2 { margin: 0 0 8px; } }
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { border-top: 1px solid var(--rule); padding: 18px 0 16px; display: flex; flex-direction: column; gap: 5px; }
.pub-title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.pub-title a { text-decoration: none; }
.pub-title a:hover { text-decoration: underline; }
.pub-authors { font-size: 15px; color: var(--ink-2); }
.pub-meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pub-note { color: var(--accent); }
.pub-links { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 14px; }
.pub-links a { padding: 6px 0; }
[hidden] { display: none !important; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-top: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-top: 1px solid var(--ink); }
td.num { font-family: var(--mono); font-size: 13px; white-space: nowrap; }

details.bio { border-top: 1px solid var(--rule); padding: 14px 0; }
details.bio summary { cursor: pointer; font-weight: 600; }
details.bio p { margin: 12px 0 0; }

/* Footer */
.site-footer { margin-top: 72px; border-top: 2px solid var(--ink); padding: 24px 0 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; }


/* ---------- Color layer ---------- */
body { border-top: 6px solid var(--teal); }
.site-header { border-bottom-color: var(--teal); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--saffron); }
.site-nav .cv { background: var(--teal); color: #fff; padding: 8px 14px; margin: 2px 0; }
.site-nav .cv:hover { background: var(--teal-dark); color: #fff; }
h1 { color: var(--ink); }
.page-head h1::after { content: ""; display: block; width: 64px; height: 5px; background: var(--saffron); margin-top: 16px; }

.band { background: var(--sand); margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%); }
.hero { padding: 64px 0; }
.hero .eyebrow { color: var(--teal); font-weight: 500; }
.hero-photo { position: relative; }
.hero-photo img { position: relative; border: 0; box-shadow: 14px 14px 0 var(--saffron); }
.hero-links a { color: var(--teal-dark); text-decoration-color: var(--saffron); text-decoration-thickness: 2px; }

.tracks { border: 0; gap: 20px; padding: 40px 0 8px; }
.track { padding: 22px 22px 24px; border-top: 5px solid var(--teal); background: var(--teal-wash); }
.track h2 { color: var(--teal-dark); }
.track.t2 { border-top-color: var(--saffron); background: var(--saffron-wash); }
.track.t2 h2 { color: var(--saffron-ink); }
.track.t3 { border-top-color: var(--coral); background: var(--coral-wash); }
.track.t3 h2 { color: var(--coral); }
.track li { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 12px; align-items: start; }
.track li.nologo { grid-template-columns: minmax(0,1fr); }
.track .lg { width: 52px; height: 52px; background: #fff; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.track .lg img { max-width: 46px; max-height: 46px; object-fit: contain; }

/* Logo walls */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logo-wall a, .logo-wall span.tile { background: #fff; border: 1px solid var(--rule); height: 84px; display: flex; align-items: center; justify-content: center; padding: 12px; text-decoration: none; transition: border-color .15s, transform .15s; }
.logo-wall a:hover { border-color: var(--teal); transform: translateY(-2px); }
.logo-wall img { max-height: 56px; max-width: 100%; object-fit: contain; }
.wordmark { font-weight: 600; font-size: 15px; text-align: center; color: var(--ink-2); line-height: 1.2; }

/* Cards with colored tags */
.tag { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 3px 8px; letter-spacing: .03em; background: var(--teal-wash); color: var(--teal-dark); }
.tag.c-saffron { background: var(--saffron-wash); color: var(--saffron-ink); }
.tag.c-coral { background: var(--coral-wash); color: var(--coral); }
.card { border-top: 4px solid var(--teal); }
.card.c-saffron { border-top-color: var(--saffron); }
.card.c-coral { border-top-color: var(--coral); }
.card h3 a { text-decoration-color: var(--saffron); }
.card .evidence { color: var(--teal-dark); font-weight: 500; }

/* Section headings */
section.block > h2, .section-head h2 { display: flex; align-items: center; gap: 12px; }
section.block > h2::before, .section-head h2::before { content: ""; width: 10px; height: 26px; background: var(--saffron); flex: none; }
.section-head a, .index-grid a:hover { color: var(--teal-dark); }
.index-grid a { border-color: var(--rule); border-top: 4px solid var(--teal); background: #fff; }
.index-grid a:nth-child(3n+2) { border-top-color: var(--saffron); }
.index-grid a:nth-child(3n) { border-top-color: var(--coral); }
.index-grid a:hover { background: var(--sand); }

/* Dated lists */
.dated .when { color: var(--teal); }
.year-group > h2 { color: var(--teal); }

/* Publications */
.filters { border-color: var(--teal); background: var(--sand); padding: 20px; }
.chip { border-color: var(--rule); }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.pub-note { color: var(--coral); font-weight: 500; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.d-parkinsons { background: #0e6e6e; } .d-clinical { background: #c8492e; } .d-mental { background: #7a4fa0; }
.d-skills { background: #e8a317; } .d-networks { background: #2f6fb0; } .d-affect { background: #d9739a; }
.d-speech { background: #5a8f3c; } .d-climate { background: #3f9e8f; } .d-other { background: #8a8f96; }
.pub-links a { color: var(--teal-dark); }

/* Press */
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.press-card { background: #fff; border: 1px solid var(--rule); display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s, transform .15s; }
a.press-card:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--ink); }
.press-card .pl { height: 88px; display: flex; align-items: center; justify-content: center; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.press-card .pl img { max-height: 60px; max-width: 100%; object-fit: contain; }
.press-card .pt { padding: 12px 14px 14px; font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; gap: 6px; }
.press-card .py { font-family: var(--mono); font-size: 12px; color: var(--teal); }

/* People */
.lab-photo { margin: 0 0 8px; }
.lab-photo img { width: 100%; max-height: 520px; object-fit: cover; box-shadow: 12px 12px 0 var(--saffron); }
.lab-photo figcaption { font-size: 14px; color: var(--muted); margin-top: 18px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.person { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--teal); }
.person.alum { border-top-color: var(--saffron); }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.person .pi { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.person .pn { font-weight: 600; font-size: 15px; }
.person .py { font-family: var(--mono); font-size: 12px; color: var(--teal); }

/* Tables */
th { border-top-color: var(--teal); }

/* Footer */
.footer-band { background: var(--teal-dark); margin: 72px calc(50% - 50vw) 0; padding: 0 calc(50vw - 50%); }
.site-footer { margin-top: 0; border-top: 5px solid var(--saffron); color: #d7e6e5; }
.site-footer a { color: #ffffff; }
body { overflow-x: hidden; }

/* ---------- Alternate palettes (preview with ?theme=b or ?theme=c) ---------- */
html[data-theme="b"] {
  --teal: #1f5c45; --teal-dark: #143d2e; --teal-wash: #e6efe9;
  --saffron: #d4a640; --saffron-ink: #7a5a10; --saffron-wash: #f8f0dc;
  --coral: #a9442f; --coral-wash: #f6e6e1;
  --sand: #f5f1e6; --rule: #d9d3c3;
}
html[data-theme="c"] {
  --teal: #3d2c6e; --teal-dark: #2a1e4d; --teal-wash: #ece8f5;
  --saffron: #ef7d5a; --saffron-ink: #a3442a; --saffron-wash: #fde9e2;
  --coral: #1f7a6f; --coral-wash: #e2f3f1;
  --sand: #f6f3f9; --rule: #dcd6e6;
}

/* Thumbnails on the full-record cards */
.index-grid a { padding: 0 0 18px; gap: 6px; overflow: hidden; }
.index-grid a strong, .index-grid a span { padding: 0 18px; }
.index-grid a strong { margin-top: 12px; }
.index-grid .thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .25s; }
.index-grid a:hover .thumb { transform: scale(1.04); }

/* ---------- Video ---------- */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 12px 12px 0 var(--saffron); }
.player iframe, .player-cover, .player-cover img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-cover { padding: 0; cursor: pointer; background: #000; }
.player-cover img { object-fit: cover; transition: transform .3s; }
.player-cover:hover img { transform: scale(1.02); }
.player-title { font-weight: 600; font-size: 17px; margin: 22px 0 0; }
.vplay { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(255,255,255,.85); }
.vplay::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.vplay.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--saffron); }
.vplay.big::after { left: 33px; top: 25px; border-width: 17px 0 17px 26px; }
.vcard { display: flex; flex-direction: column; gap: 6px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink); }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.vcard:hover .vthumb img { transform: scale(1.05); }
.vcard:hover .vtitle { color: var(--teal-dark); text-decoration: underline; text-decoration-color: var(--saffron); }
.vcard .vplay { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.vcard .vplay::after { left: 17px; top: 13px; border-width: 9px 0 9px 14px; }
.vlen { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.78); color: #fff; font-family: var(--mono); font-size: 12px; padding: 2px 6px; }
.vtitle { font-weight: 600; font-size: 15px; line-height: 1.35; }
.vmeta { font-family: var(--mono); font-size: 12px; color: var(--teal); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 20px; }
.video-band { padding-top: 40px; padding-bottom: 56px; }
.video-stage { max-width: 960px; }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.watch-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.watch-side .vtitle { font-size: 14px; }
.watch-note { margin-top: 8px; }
@media (max-width: 900px) { .watch-grid { grid-template-columns: 1fr; } }
.card-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; margin: 0 0 14px; cursor: pointer; overflow: hidden; background: #000; }
.card-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card-video:hover img { transform: scale(1.04); }
.track li, .track li.nologo { display: block; }
.track .lg { width: auto; height: auto; border: 0; background: none; display: block; margin: 0 0 6px; justify-content: flex-start; }
.track .lg img { max-width: 170px; max-height: 34px; width: auto; height: auto; mix-blend-mode: multiply; }
.yt-out { font-weight: 400; font-size: 14px; margin-left: 10px; color: var(--teal-dark); white-space: nowrap; }

/* ---------- Phone and tablet ---------- */
.menu-btn { display: none; }
@media (max-width: 960px) {
  .site-header { align-items: center; flex-wrap: wrap; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--rule); background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: 8px 0 4px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--saffron); padding-left: 12px; }
  .site-nav .cv { align-self: flex-start; margin-top: 12px; border: 0; }
  .hero { gap: 28px; }
}
@media (max-width: 800px) {
  .hero { display: flex; flex-direction: column-reverse; padding: 36px 0 44px; }
  .hero-photo { max-width: 200px; }
  .hero-photo img { box-shadow: 8px 8px 0 var(--saffron); }
  .hero h1 { font-size: 28px; }
  .lede { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  .tracks { padding-top: 28px; }
  .watch-side { grid-template-columns: 1fr 1fr; }
  .player { box-shadow: 8px 8px 0 var(--saffron); }
  .lab-photo img { box-shadow: 8px 8px 0 var(--saffron); }
  .filter-row > .label { flex-basis: 100%; }
  .filters { padding: 16px; }
  .logo-wall { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .logo-wall a, .logo-wall span.tile { height: 72px; }
}
@media (max-width: 640px) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { border-top: 1px solid var(--rule); padding: 12px 0; }
  .table-wrap td { border: 0; padding: 2px 0; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .press-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .press-card .pl { height: 70px; padding: 8px; }
  .press-card .pt { font-size: 13px; padding: 10px; }
  .index-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .index-grid a span { display: none; }
  .index-grid a strong { font-size: 15px; padding: 0 12px; }
  .vgrid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .vtitle { font-size: 14px; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 380px) {
  .press-grid, .vgrid { grid-template-columns: 1fr; }
}

/* Credential line */
.creds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.creds li { font-size: 14px; font-weight: 500; padding: 6px 12px; background: #fff; border: 1px solid var(--rule); color: var(--ink-2); }
.creds li a { text-decoration: none; color: inherit; }
.creds li.lead { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.creds li.lead::before { content: "★ "; color: var(--saffron); }
.creds li a::after { content: " \2197"; font-size: 11px; opacity: .7; }

.track .lgrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.track .lgrow .lg { margin: 0; }
.track .lgrow .when { text-align: right; white-space: nowrap; }

/* About: education logos and outside-work cards */
.edu > li { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 20px; align-items: center; }
.edu .edu-logo > a, .edu .edu-logo > span { background: #fff; border: 1px solid var(--rule); height: 72px; display: flex; align-items: center; justify-content: center; padding: 10px; text-decoration: none; }
.edu .edu-logo img { max-height: 50px; max-width: 100%; object-fit: contain; }
.edu .when { display: block; font-family: var(--mono); font-size: 13px; color: var(--teal); }
.outside { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.out-card { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--saffron); }
.out-card:nth-child(2) { border-top-color: var(--coral); }
.out-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.out-card > div { padding: 14px 18px 4px; }
.out-card h3 { margin: 0 0 6px; }
.out-card p { margin: 0 0 12px; font-size: 15px; }
@media (max-width: 700px) { .outside { grid-template-columns: 1fr; } .edu > li { grid-template-columns: 110px minmax(0,1fr); gap: 14px; } }
.out-card img.contain { object-fit: contain; background: #fff; }

/* Watch links and video pop-up */
.watch-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 12px 6px 8px; min-height: 36px; border: 1px solid currentColor; background: #fff; color: var(--teal-dark); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.watch-link::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M9 6.5v9l7-4.5z' fill='%23fff'/%3E%3C/svg%3E") center/100% no-repeat; }
.watch-link:hover { background: var(--teal); color: #fff; }
.watch-link.inline { margin: 0 0 0 8px; min-height: 30px; padding: 3px 10px 3px 6px; font-size: 13px; }
.watch-link.inline::before { width: 18px; height: 18px; }
.vbox { padding: 0; border: 0; background: transparent; width: min(1000px, 94vw); max-width: none; }
.vbox::backdrop { background: rgba(10, 20, 25, .82); }
.vbox-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vbox-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.vbox-bar a { color: #fff; }
.vbox-close { min-height: 40px; padding: 6px 16px; border: 0; background: var(--saffron); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Publication cards ---------- */
.pcard { flex-direction: row !important; gap: 20px !important; align-items: flex-start; }
.pthumb { flex: 0 0 200px; width: 200px; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--rule); overflow: hidden; position: relative; display: block; }
.pthumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; transition: transform .25s; }
.pthumb button, .pthumb a { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.pthumb button img { object-fit: cover; }
.pthumb:hover img { transform: scale(1.04); }
.pthumb .vplay { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.pthumb .vplay::after { left: 18px; top: 13px; border-width: 10px 0 10px 15px; }
.ptile { display: flex; align-items: flex-end; padding: 12px; border: 0; }
.ptile span { font-family: var(--mono); font-size: 12px; line-height: 1.3; color: #fff; }
.ptile.t-parkinsons { background: #0e6e6e; } .ptile.t-clinical { background: #c8492e; } .ptile.t-mental { background: #7a4fa0; }
.ptile.t-skills { background: #b07c0c; } .ptile.t-networks { background: #2f6fb0; } .ptile.t-affect { background: #b8557d; }
.ptile.t-speech { background: #4f7f33; } .ptile.t-climate { background: #2f8a7d; } .ptile.t-other { background: #6b7178; }
.pbody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
details.brief { margin-top: 2px; }
details.brief summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--teal-dark); list-style: none; padding: 4px 0; }
details.brief summary::-webkit-details-marker { display: none; }
details.brief summary::before { content: "+"; display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; background: var(--saffron); color: var(--ink); font-weight: 700; font-size: 14px; }
details.brief[open] summary::before { content: "\2212"; }
details.brief p { margin: 6px 0 4px; padding: 10px 14px; background: var(--sand); border-left: 3px solid var(--saffron); font-size: 15px; line-height: 1.5; max-width: none; }
.pub-links { align-items: center; }
.ppress { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.ppress-label { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 4px; }
.ppress a { display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 34px; padding: 3px 8px; background: #fff; border: 1px solid var(--rule); text-decoration: none; font-size: 12px; color: var(--ink-2); }
.ppress a:hover { border-color: var(--teal); }
.ppress img { max-height: 24px; max-width: 80px; object-fit: contain; }
.pub-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.pub-toolbar .result-count { margin: 0; }
@media (max-width: 640px) {
  .pcard { flex-direction: column !important; gap: 10px !important; }
  .pthumb { width: 100%; flex-basis: auto; aspect-ratio: 16 / 9; }
}

/* Service entries with logo tiles */
.svc { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 18px; align-items: center; }
.svc .when { display: block; font-family: var(--mono); font-size: 13px; color: var(--teal); }
.svc-logo { width: 120px; height: 64px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--rule); padding: 8px; }
.svc-logo img { max-width: 100%; max-height: 46px; object-fit: contain; }
.svc-abbr { border: 0; color: #fff; font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: .04em; text-align: center; }
.svc-abbr.a-0 { background: var(--teal); } .svc-abbr.a-1 { background: var(--coral); } .svc-abbr.a-2 { background: #2f6fb0; } .svc-abbr.a-3 { background: #b07c0c; }
@media (max-width: 560px) { .svc { grid-template-columns: 88px minmax(0,1fr); gap: 12px; } .svc-logo { width: 88px; height: 52px; } .svc-abbr { font-size: 13px; } }
/* tracks: keep logos whole and the watch button on its own line */
.track .lgrow .lg { min-width: 0; flex: 0 1 auto; }
.track .lgrow .lg img { max-width: 100%; height: auto; object-fit: contain; object-position: left center; }
.track li .watch-link { display: flex; width: max-content; }

.about-banner { margin: 8px 0 40px; }
.about-banner img { width: 100%; height: auto; display: block; aspect-ratio: 1800/756; object-fit: cover; }
@media (max-width: 640px) { .about-banner img { aspect-ratio: 4/3; object-position: 30% center; } }

/* talks and news: logo column */
.talk, .nitem { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
.tlogo { width: 120px; height: 60px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--rule, #e5e0d6); padding: 6px; box-sizing: border-box; }
.tlogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tlogo.none { background: var(--sand); font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark); }
.tbody { display: flex; flex-direction: column; min-width: 0; }
.tbody .watch-link { width: max-content; }
@media (max-width: 640px) { .talk, .nitem { grid-template-columns: 64px 1fr; gap: 12px; } .tlogo { width: 64px; height: 36px; } .tlogo.none { font-size: 10.5px; letter-spacing: .02em; } }

/* ---------- CV page ---------- */
.cv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 48px 0 20px; border-bottom: 3px solid var(--teal); }
.cv-head h1 { margin: 0; font-size: 40px; }
.cv-title { margin: 6px 0 8px; font-size: 19px; color: var(--teal-dark); font-weight: 600; }
.cv-contact { margin: 0; color: #4a4a4a; font-size: 15px; line-height: 1.6; }
.cv-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cv-actions .btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: var(--teal); color: #fff; border: 1px solid var(--teal); font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.cv-actions .btn.ghost { background: #fff; color: var(--teal-dark); }
.cv-actions .btn:hover { background: var(--teal-dark); color: #fff; }
.cv-updated { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #777; }
.cv-toc { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px 18px; flex-wrap: wrap; padding: 12px 0; background: rgba(255,255,255,.96); border-bottom: 1px solid #e5e0d6; font-size: 14px; }
.cv-toc a { color: var(--teal-dark); text-decoration: none; font-weight: 600; }
.cv-toc a:hover { color: var(--coral); }
.cv-sec { padding: 28px 0 8px; scroll-margin-top: 56px; }
.cv-sec h2 { font-size: 24px; margin: 0 0 14px; padding-left: 12px; border-left: 6px solid var(--saffron); }
.cv-sec h3 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark); margin: 22px 0 8px; }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-list li { display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; padding: 7px 0; border-bottom: 1px solid #efeae1; align-items: start; }
.cv-when { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--teal); padding-top: 2px; }
.cv-what { line-height: 1.5; }
.cv-detail { display: block; color: #555; font-size: 15px; margin-top: 2px; }
.cv-logo { max-height: 34px; max-width: 120px; object-fit: contain; }
.cv-amt { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--saffron-ink); white-space: nowrap; }
.cv-note { color: #555; font-size: 15px; }
.cv-tag { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--coral); }
.cv-pubs { padding-left: 2.6em; margin: 0; }
.cv-pubs li { padding: 5px 0; line-height: 1.5; }
.cv-pubs li::marker { color: var(--teal); font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.cv-link { font-family: "IBM Plex Mono", monospace; font-size: 12px; margin-left: 6px; }
.cv-bul { margin: 0; padding-left: 1.2em; } .cv-bul li { padding: 3px 0; }
@media (max-width: 640px) {

  .cv-list li { grid-template-columns: 1fr; gap: 2px; }
  .cv-logo { display: none; }
  .cv-toc { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
  .cv-pubs { padding-left: 2.2em; }
}
@media print {
  /* Plain academic print: serif, black, no logos or color */
  @page { size: letter; margin: 0.75in 0.8in; }
  .site-header, .footer-band, footer, .no-print, .skip, .cv-logo, .cv-face, .cv-toc { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  body.cv-page, body.cv-page * { font-family: "Times New Roman", Times, "Liberation Serif", serif !important; color: #000 !important; background: none !important; }
  body.cv-page { font-size: 11pt; line-height: 1.32; }
  .cv-head { display: block; text-align: center; padding: 0 0 10pt; border-bottom: 0.75pt solid #000; }
  .cv-head h1 { font-size: 18pt; font-weight: bold; margin: 0; }
  .cv-title { font-size: 11.5pt; font-weight: normal; margin: 2pt 0; }
  .cv-contact { font-size: 10.5pt; }
  .cv p { max-width: none; }
  .cv-sec { padding: 10pt 0 0; }
  .cv-sec h2 { font-size: 12pt; font-weight: bold; text-transform: uppercase; letter-spacing: .04em; border: 0; border-bottom: 0.5pt solid #000; padding: 0 0 2pt; margin: 0 0 6pt; break-after: avoid; }
  .cv-sec h3 { font-size: 11pt; font-weight: bold; font-style: italic; text-transform: none; letter-spacing: 0; margin: 8pt 0 3pt; break-after: avoid; }
  .cv-list li { display: grid !important; grid-template-columns: 1.1in 1fr !important; gap: 10pt; padding: 1.5pt 0; border: 0 !important; break-inside: avoid; }
  html, body.cv-page { border: 0 !important; box-shadow: none !important; }
  body.cv-page::before, body.cv-page::after, html::before { display: none !important; }
  .cv-when, .cv-amt, .cv-link, .cv-tag, .cv-updated { font-size: 10.5pt; letter-spacing: 0; text-transform: none; }
  .cv-tag { font-style: italic; }
  .cv-detail { font-size: 10.5pt; }
  .cv-note { font-size: 10.5pt; }
  .cv-pubs { padding-left: 2.4em; } .cv-pubs li { padding: 1.5pt 0; break-inside: avoid; }
  .cv-pubs li::marker { font-size: 10.5pt; color: #000; font-family: 'Times New Roman', Times, serif; }
  a { text-decoration: none; }
}
.nitem .tbody .watch-link { display: flex; width: max-content; margin-top: 8px; }

/* CV on screen: logo column and faces */
.cv-list li { grid-template-columns: 130px 1fr 120px; }
.cv-list .cv-logo { justify-self: end; align-self: center; max-height: 36px; max-width: 120px; }
.cv-face { display: inline-block !important; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 10px; }
@media (max-width: 640px) { .cv-list li { grid-template-columns: 1fr; } }

/* ---------- Teaching ---------- */
.teach-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 24px; }
.teach-stats div { background: var(--sand); border-top: 4px solid var(--teal); padding: 18px 20px; }
.teach-stats div:nth-child(2) { border-top-color: var(--saffron); } .teach-stats div:nth-child(3) { border-top-color: var(--coral); }
.teach-stats strong { display: block; font-size: 40px; line-height: 1.1; color: var(--teal-dark); }
.teach-stats small { font-size: 18px; color: #777; }
.teach-stats span { font-size: 14px; color: #555; }
.rating-chart { display: flex; align-items: flex-end; gap: 14px; height: 220px; padding: 12px 0 0; border-bottom: 1px solid var(--rule, #ddd); margin: 12px 0 28px; }
.rbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.rfill { width: 100%; max-width: 56px; background: linear-gradient(var(--teal), var(--teal-dark)); display: block; }
.rbar:last-child .rfill { background: linear-gradient(var(--saffron), #c4850a); }
.rval { font-family: "IBM Plex Mono", monospace; font-size: 13px; margin-bottom: 4px; color: var(--teal-dark); }
.rterm { position: absolute; bottom: -24px; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #666; white-space: nowrap; }
.rate { font-family: "IBM Plex Mono", monospace; font-weight: 600; padding: 1px 6px; background: var(--teal-wash, #e3efee); color: var(--teal-dark); }
.rate.r49, .rate.r48, .rate.r47 { background: var(--teal); color: #fff; }
.courses { display: grid; gap: 28px; }
.course { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; background: #fff; border: 1px solid var(--rule, #e5e0d6); border-top: 6px solid var(--teal); padding: 24px; scroll-margin-top: 20px; }
.course.c-saffron { border-top-color: var(--saffron); } .course.c-coral { border-top-color: var(--coral); }
.course:not(:has(.course-player)) { grid-template-columns: 1fr; }
.course h3 { margin: 4px 0 8px; font-size: 22px; }
.course-code { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--teal); margin: 0; letter-spacing: .03em; }
.course-press a { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.course-press img { height: 22px; width: auto; }
.offerings { list-style: none; margin: 14px 0 0; padding: 0; }
.offerings li { display: grid; grid-template-columns: 100px 1fr; gap: 4px 12px; padding: 10px 0; border-top: 1px solid #efeae1; align-items: start; }
.o-term { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--teal-dark); padding-top: 2px; }
.o-meta { font-size: 15px; color: #444; }
.o-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.o-links .chip { font-size: 13px; padding: 4px 10px; min-height: 30px; }
.pl-btn.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.course-player { position: sticky; top: 16px; align-self: start; }
.pl-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.pl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-cap { font-size: 13px; margin-top: 8px; }
@media (max-width: 900px) { .course { grid-template-columns: 1fr; } .course-player { position: static; } .teach-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rating-chart { gap: 6px; } .rval { font-size: 11px; } .rterm { font-size: 9px; } .offerings li { grid-template-columns: 1fr; } .o-links { grid-column: 1; } }

/* ---------- Homepage career tracks (v2) ---------- */
.xp-tracks .track ul { gap: 12px; }
.xp-tracks .track li.xp { display: block; background: #fff; border: 1px solid rgba(0,0,0,.06); border-left: 4px solid var(--teal); border-radius: 4px; padding: 14px 16px 15px; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: transform .15s ease, box-shadow .15s ease; }
.xp-tracks .track li.xp:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.xp-tracks .track.t2 li.xp { border-left-color: var(--saffron); }
.xp-tracks .track.t3 li.xp { border-left-color: var(--coral); }
.xp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.xp-logo { display: flex; align-items: center; height: 44px; min-width: 0; }
.xp-logo img { max-height: 40px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.xp-badge { font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.2; color: #021e47; border-left: 3px solid #ffd82b; padding-left: 8px; max-width: 190px; }
.xp-when { flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--muted); background: var(--sand); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.xp-what { margin: 10px 0 0; font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--ink); }
.xp-watch { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 12px 5px 6px; border: 0; border-radius: 999px; background: var(--teal-dark); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.xp-watch::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8 6v8l6-4z' fill='%230a4a4b'/%3E%3C/svg%3E") center/100% no-repeat; }
.xp-watch:hover { background: var(--coral); }
.xp-tracks .track.t3 .xp-watch { background: var(--coral); } .xp-tracks .track.t3 .xp-watch:hover { background: var(--teal-dark); }
.xp-top { min-height: 44px; }
.xp-logo img { max-width: 100%; mix-blend-mode: multiply; }
.xp-what { margin-top: 8px; }
.xp-when { display: block; width: max-content; margin-bottom: 6px; background: none; padding: 0; border-radius: 0; font-size: 12px; color: var(--muted); }
.xp-logo img { max-width: min(100%, 210px); max-height: 38px; }

.talks-head { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: end; }
.talks-photo { margin: 0; }
.talks-photo img { width: 100%; height: auto; display: block; border-bottom: 5px solid var(--saffron); }
.talks-photo figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .talks-head { grid-template-columns: 1fr; gap: 20px; } .talks-photo { max-width: 360px; } }

.talks-head { align-items: start; }
.talk-stats { display: flex; gap: 14px; margin: 22px 0 18px; }
.talk-stats div { background: var(--sand); border-top: 4px solid var(--teal); padding: 12px 18px; min-width: 120px; }
.talk-stats div:nth-child(2) { border-top-color: var(--saffron); } .talk-stats div:nth-child(3) { border-top-color: var(--coral); }
.talk-stats strong { display: block; font-size: 32px; line-height: 1.1; color: var(--teal-dark); }
.talk-stats span { font-size: 13px; color: #555; }
.talk-venues-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.talk-venues { display: flex; flex-wrap: wrap; gap: 10px; }
.talk-venues img { height: 44px; width: 120px; object-fit: contain; background: #fff; border: 1px solid var(--rule, #e5e0d6); padding: 6px; box-sizing: border-box; }
@media (max-width: 640px) { .talk-stats { flex-wrap: wrap; } .talk-stats div { min-width: 0; flex: 1; } .talk-venues img { width: calc(50% - 5px); } }

.creds li.pecase { flex-basis: 100%; padding: 0; background: none; border: 0; }
.creds li.pecase a { display: inline-flex; flex-direction: column; gap: 6px; text-decoration: none; }
.creds li.pecase img { width: 340px; max-width: 100%; height: auto; display: block; box-shadow: 0 2px 10px rgba(10,74,75,.18); }
.creds li.pecase span { font-size: 13px; font-weight: 600; color: var(--teal-dark); }
.tlogo img[src*="pecase"], .xp-logo img[src*="pecase"], .cv-logo[src*="pecase"] { mix-blend-mode: normal; }
.creds li.pecase::before, .creds li.pecase a::after, .creds li.pecase::after { display: none !important; content: none !important; }
.tlogo:has(img[src*="pecase"]), .cv-logo[src*="pecase"] { padding: 0; } .tlogo img[src*="pecase"] { width: 100%; height: 100%; object-fit: cover; }
/* PECASE as a compact chip */
.creds li.pecase { flex-basis: auto; }
.creds li.pecase a { flex-direction: row; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid #0b2a6a; background: #fff; min-height: 36px; }
.creds li.pecase img { width: 56px; height: 28px; object-fit: cover; box-shadow: none; }
.creds li.pecase span { font-size: 14px; font-weight: 600; color: #0b2a6a; }
.creds li.pecase a:hover { background: #0b2a6a; } .creds li.pecase a:hover span { color: #fff; }
.tlogo:has(img[src*="iva.png"]) { padding: 0; } .tlogo img[src*="iva.png"] { width: 100%; height: 100%; object-fit: cover; }
.aw-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; } .aw-links .watch-link { margin-top: 0 !important; } .aw-press { font-weight: 600; color: var(--teal-dark); }

.creds li.logo-chip { padding: 0; background: none; border: 0; }
.creds li.logo-chip::before, .creds li.logo-chip a::after { display: none !important; content: none !important; }
.creds li.logo-chip a { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 8px; min-height: 36px; border: 1px solid #2b3a8c; background: #fff; text-decoration: none; }
.creds li.logo-chip img { height: 22px; width: auto; }
.creds li.logo-chip span { font-size: 14px; font-weight: 600; color: #2b3a8c; }
.creds li.logo-chip a:hover { background: #eef2fb; }
.creds li.logo-chip img[src*="tr35"] { height: 26px; } .creds li.logo-chip a:has(img[src*="tr35"]) { border-color: #d5121e; } .creds li.logo-chip a:has(img[src*="tr35"]) span { color: #d5121e; }
.creds li.logo-chip img[src*="tr35"] { height: 30px; } .creds li.logo-chip a:has(img[src*="tr35"]) { padding-top: 2px; padding-bottom: 2px; }
.creds li.logo-chip img[src*="wiki-nsf"], .creds li.logo-chip img[src*="wiki-acm"] { height: 26px; }
.creds li.logo-chip a:has(img[src*="wiki-nsf"]) { border-color: #1a5aa6; } .creds li.logo-chip a:has(img[src*="wiki-nsf"]) span { color: #1a5aa6; }
.creds li.logo-chip a:has(img[src*="wiki-acm"]) { border-color: #1f6fa8; } .creds li.logo-chip a:has(img[src*="wiki-acm"]) span { color: #1f6fa8; }

/* ---------- Research detail pages ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin: 28px 0 0; } .crumbs a { color: var(--teal-dark); }
.rp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 24px 0 32px; }
.rp-hero h1 { font-size: 40px; margin: 0 0 14px; }
.rp-hero h1::after { content: ""; display: block; width: 64px; height: 5px; background: var(--teal); margin-top: 14px; }
.rp-hero.c-coral h1::after { background: var(--coral); } .rp-hero.c-saffron h1::after { background: var(--saffron); }
.rp-hero-img { margin: 0; } .rp-hero-img img { width: 100%; height: auto; display: block; border: 1px solid var(--rule, #e5e0d6); background: #fff; }
.rp-hero-img figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.rp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 40px; }
.rp-facts div { background: var(--sand); border-top: 4px solid var(--teal); padding: 16px 18px; }
.rp-facts.c-coral div { border-top-color: var(--coral); } .rp-facts.c-saffron div { border-top-color: var(--saffron); }
.rp-facts strong { display: block; font-size: 30px; line-height: 1.15; color: var(--teal-dark); }
.rp-facts span { font-size: 14px; color: #555; }
.rp-threads { display: grid; gap: 28px; }
.rp-thread { background: #fff; border: 1px solid var(--rule, #e5e0d6); border-left: 5px solid var(--teal); padding: 24px 26px; }
.rp-threads.c-coral .rp-thread { border-left-color: var(--coral); } .rp-threads.c-saffron .rp-thread { border-left-color: var(--saffron); }
.rp-thread h2 { margin: 0 0 10px; font-size: 22px; }
.rp-year { font-family: var(--mono); font-size: 13px; color: var(--teal); margin: 0 0 4px; letter-spacing: .03em; }
.rp-threads.timeline { position: relative; padding-left: 26px; }
.rp-threads.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--rule, #ddd); }
.rp-threads.timeline .rp-thread { position: relative; }
.rp-threads.timeline .rp-thread::before { content: ""; position: absolute; left: -28px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #fff; }
.rp-body.with-media { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rp-body p { margin: 0 0 10px; line-height: 1.6; }
.rp-media { margin: 0; display: block; position: relative; border: 0; padding: 0; background: none; cursor: pointer; }
.rp-media img { width: 100%; height: auto; display: block; border: 1px solid var(--rule, #e5e0d6); }
.rp-extra { margin: 6px 0 0; padding-left: 1.1em; } .rp-extra li { margin: 4px 0; }
.rp-pubs { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid #efeae1; }
.rp-pubs li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid #efeae1; }
.rp-pthumb { display: block; width: 120px; height: 80px; background: #fff; border: 1px solid var(--rule, #e5e0d6); overflow: hidden; }
.rp-pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-pbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rp-brief { font-size: 14px; color: #444; margin-top: 4px; }
.rp-pbody .watch-link { width: max-content; margin-top: 6px; }
.rp-back { margin: 32px 0 0; }
a.rp-link { font-weight: 600; color: var(--teal-dark); }
.more { font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) { .rp-hero { grid-template-columns: 1fr; } .rp-facts { grid-template-columns: 1fr; } .rp-body.with-media { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rp-pubs li { grid-template-columns: 80px minmax(0,1fr); gap: 12px; } .rp-pthumb { width: 80px; height: 56px; } .rp-thread { padding: 18px; } }

/* Research archive cards */
.arch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.arch { background: #fff; border: 1px solid var(--rule, #e5e0d6); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.arch:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.arch-media { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; background: #e9e4da; border: 0; padding: 0; cursor: pointer; width: 100%; }
span.arch-media { cursor: default; background: #fff; }
.arch-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
span.arch-media img { object-fit: contain; }
.arch-body { padding: 14px 16px 16px; }
.arch-body h3 { font-size: 17px; margin: 0 0 4px; line-height: 1.3; }
.arch-venue { font-family: var(--mono); font-size: 12px; color: var(--teal); margin: 0 0 8px; }
.arch-text { font-size: 14px; color: #444; margin: 0; line-height: 1.5; }
.arch-more { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; }
@media (max-width: 900px) { .arch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .arch-grid { grid-template-columns: 1fr; } }

/* small logos and thumbs */
.rec .rec-name { display: flex; align-items: center; gap: 12px; }
.rec-logo { flex: none; width: 52px; height: 28px; object-fit: contain; background: #fff; border: 1px solid var(--rule, #e5e0d6); padding: 2px; box-sizing: border-box; }
.rec-logo[src*="pecase"] { object-fit: cover; padding: 0; }
.act .rp-link { display: flex; align-items: center; gap: 10px; }
.act-thumb { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--rule, #e5e0d6); }
.act { grid-template-columns: 240px minmax(0,1fr) !important; } .act .rp-link { font-family: inherit; font-size: 16px; text-decoration: none; } .act .rp-link:hover { text-decoration: underline; } @media (max-width: 560px) { .act { grid-template-columns: 1fr !important; } }
.teach-stats { grid-template-columns: repeat(3, 1fr); } .teach-stats div:nth-child(1) { border-top-color: var(--teal); } .teach-stats div:nth-child(2) { border-top-color: var(--saffron); } .teach-stats div:nth-child(3) { border-top-color: var(--coral); }
@media (max-width: 640px) { .teach-stats { grid-template-columns: 1fr; } }
.talk-flyer { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; font-weight: 600; width: max-content; } .talk-flyer img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--rule, #e5e0d6); }

/* About: bio spans the full width of the banner below it */
.about-lede { max-width: none; }
details.bio p { max-width: none; }

/* Homepage Recognition: year sits right beside the logo */
.dated.rec { grid-template-columns: 3.2em minmax(0, 1fr); column-gap: 14px; align-items: center; }
.dated.rec .when { padding-top: 0; }
@media (max-width: 560px) { .dated.rec { grid-template-columns: 3.2em minmax(0, 1fr); } }
.dated.rec.recent { grid-template-columns: 5.6em minmax(0, 1fr); }
@media (max-width: 560px) { .dated.rec.recent { grid-template-columns: 5.6em minmax(0, 1fr); } }
.recent .rec-logo { width: 76px; height: 40px; padding: 3px; }
.person .initials { width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--sand, #f3eee4); color: var(--teal); font-size: 44px; font-weight: 600; letter-spacing: .04em; }
.rp-facts { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.person .pn a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--saffron, #e0a526); }
.person .plinks { display: flex; gap: 12px; margin-top: 6px; font-size: 13px; }
.person .plinks a { color: var(--teal); }
.cv-watch { margin-left: 6px; white-space: nowrap; }
@media print { .no-print { display: none !important; } }

/* Endurance page */
.tri-hero { margin: 0 0 40px; }
.tri-hero img, .tri-wide img { width: 100%; height: auto; display: block; }
.tri-steps { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--teal); }
.tri-steps li { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 18px; padding: 14px 0 14px 20px; border-bottom: 1px solid var(--rule, #e5e0d6); align-items: start; }
.tri-steps h3 { margin: 0 0 4px; font-size: 18px; }
.tri-steps p { margin: 0; }
.tri-dist { font-family: var(--mono); font-size: 13px; color: #fff; background: var(--teal); padding: 4px 8px; text-align: center; }
.tri-steps li:nth-last-child(-n+2) .tri-dist { background: var(--saffron, #e0a526); color: #1b1b1b; }
.tri-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.tri-grid figure, .tri-wide { margin: 0; }
.tri-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.tri-grid figcaption, .tri-wide figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tri-video { position: relative; display: block; width: min(320px, 100%); padding: 0; border: 0; background: #000; cursor: pointer; }
.tri-video img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }
@media (max-width: 640px) { .tri-grid { grid-template-columns: 1fr; } .tri-steps li { grid-template-columns: 1fr; gap: 6px; } .tri-dist { justify-self: start; } }
.tri-hero figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tri-story { border-top: 4px solid var(--saffron, #e0a526); padding-top: 24px; }
.tri-story h2 { margin-top: 4px; }
.tri-story-body { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 32px; align-items: start; margin-bottom: 20px; }
.tri-story-body p, .tri-story-solo p { max-width: none; }
.tri-quote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--teal); background: var(--sand, #f6f1e7); font-style: italic; max-width: none; }
@media (max-width: 760px) { .tri-story-body { grid-template-columns: 1fr; } }

/* Writing page */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.wcard { display: flex; flex-direction: column; border: 1px solid var(--rule, #e5e0d6); border-top: 4px solid var(--teal); background: #fff; }
.wcard:nth-child(3n+2) { border-top-color: var(--saffron, #e0a526); }
.wcard:nth-child(3n) { border-top-color: var(--coral, #d4583a); }
.wimg { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--sand, #f6f1e7); }
.wimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.wcard:hover .wimg img { transform: scale(1.03); }
.wtile { display: flex; align-items: center; justify-content: center; height: 100%; font-family: Georgia, serif; font-size: 26px; color: var(--teal); }
.wbody { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.wmeta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.wlang { color: var(--teal); }
.wcard h3 { font-size: 18px; line-height: 1.35; margin: 0 0 4px; }
.wcard h3 a { color: inherit; text-decoration: none; }
.wcard h3 a:hover { text-decoration: underline; }
.wcard h3.bn { font-family: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", sans-serif; font-size: 19px; }
.wen { font-style: italic; color: var(--ink-2); margin: 0 0 8px; font-size: 15px; }
.wblurb { font-size: 14.5px; margin: 0 0 10px; flex: 1; }
.wlinks { display: flex; gap: 14px; margin: 0; font-size: 14px; }

/* Contact page */
.ct-top { display:grid; grid-template-columns: 1.4fr 1fr; gap:20px; }
.ct-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:18px; margin-top:12px; }
.ct-card { background:#fff; border:1px solid var(--line, #dfe6e5); border-radius:12px; padding:20px 22px; display:flex; flex-direction:column; gap:10px; }
.ct-card h2, .ct-card h3 { margin:0; }
.ct-card p { margin:0; }
.ct-email { background:var(--teal-wash); border-color:transparent; border-left:5px solid var(--teal); }
.ct-addr { font-size:clamp(19px,2.6vw,26px); font-weight:600; color:var(--teal-dark); letter-spacing:.01em; word-break:break-word; }
.ct-addr-sm { font-size:17px; line-height:1.55; }
.ct-note { font-size:14px; color:var(--ink-2); }
.ct-btns { display:flex; flex-wrap:wrap; gap:10px; margin-top:auto; padding-top:4px; }
.ct-btn { font:inherit; font-size:15px; font-weight:600; cursor:pointer; border:1px solid var(--teal); background:var(--teal); color:#fff; border-radius:999px; padding:8px 18px; text-decoration:none; display:inline-block; align-self:flex-start; }
.ct-btn:hover { background:var(--teal-dark); color:#fff; }
.ct-ghost { background:transparent; color:var(--teal); }
.ct-ghost:hover { background:var(--teal-wash); color:var(--teal-dark); }
.ct-grid .ct-btn { margin-top:auto; }
.ct-links { display:flex; flex-wrap:wrap; gap:10px 22px; font-weight:600; }
.email-safe { white-space:nowrap; }
.ct-addr.email-safe { white-space:normal; }
@media (max-width: 760px) { .ct-top { grid-template-columns:1fr; } }
@media (max-width: 760px) { .ct-grid { grid-template-columns:1fr; } }

/* VisionPSU archive (2004 look: black, teal, red, bracket nav, binary strips) */
.vp { --vp-teal:#008080; --vp-teal-d:#005f5f; --vp-red:#ff3b30; --vp-yellow:#ffd200; --vp-orange:#f08a24;
  margin: 8px 0 0; position: relative; isolation: isolate; color:#e8f1f1;
  font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif; }
.vp::before { content:""; position:absolute; top:0; bottom:0; left:50%; width:100vw; transform:translateX(-50%); background:#000; z-index:-1; }
.vp-inner { max-width: none; margin: 0; padding: 28px 0 40px; }
.vp a { color: var(--vp-yellow); }
.vp a:hover { color:#fff; }
.vp-binary { font-family: "Courier New", Courier, monospace; color: var(--vp-orange); opacity:.55; letter-spacing:.12em; font-size:12px; white-space:nowrap; overflow:hidden; margin:0 0 18px; }
.vp-hero { display:grid; grid-template-columns: 1fr auto; gap: 32px; align-items:center; padding: 10px 0 18px; }
.vp-kicker { font-family:"Courier New",monospace; color: var(--vp-red); font-size:13px; letter-spacing:.04em; margin:0 0 6px; text-transform:uppercase; }
.vp-logo { margin:0; font-family: "Arial Black", "Arial Bold", Gadget, sans-serif; font-size: clamp(46px, 8vw, 88px); line-height:1; letter-spacing:-.02em;
  color: var(--vp-yellow); font-style: italic; text-shadow: 3px 3px 0 #b8860b, 6px 6px 0 #3a2a00; }
.vp-logo span { color:#4aa3ff; text-shadow: 3px 3px 0 #1b4f8a, 6px 6px 0 #0a1f3a; }
.vp-sub { font-size: 19px; line-height:1.5; max-width: 34em; margin: 14px 0 16px; color:#fff; }
.vp-badges { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px; }
.vp-badges li { border:1px solid var(--vp-teal); background: var(--vp-teal-d); color:#fff; font-size:12.5px; padding:5px 10px; }
.vp-badges li:first-child { background: var(--vp-red); border-color: var(--vp-red); font-weight:bold; }
.vp-robot { margin:0; padding:10px; background:#111; border:2px outset #3a3a3a; }
.vp-robot img { display:block; height: 340px; width:auto; }
.vp-nav { font-family:"Courier New",monospace; font-weight:bold; font-size:15px; text-align:center; padding: 12px 0; margin: 8px 0 22px;
  border-top: 1px dashed var(--vp-teal); border-bottom: 1px dashed var(--vp-teal); display:flex; flex-wrap:wrap; justify-content:center; gap: 4px 14px; }
.vp-nav a { color: var(--vp-red); text-decoration:none; }
.vp-nav a:hover { color: var(--vp-yellow); }
.vp-note { border-left: 4px solid var(--vp-yellow); background:#0d0d0d; padding: 16px 20px; margin: 0 0 26px; }
.vp-note p { margin:0 0 10px; font-size:16px; line-height:1.65; color:#dfe8e8; }
.vp-sign { font-family:"Courier New",monospace; color: var(--vp-yellow) !important; margin:0 !important; }
.vp-panel { background: var(--vp-teal); color:#fff; border: 3px outset #2fa3a3; padding: 22px 26px 24px; margin: 0 0 24px; }
.vp-panel h2 { margin:0 0 16px; font-family:"Arial Black","Arial Bold",sans-serif; font-size: 26px; color:#000; letter-spacing:.01em; }
.vp-panel h2 span { color: var(--vp-red); font-family:"Courier New",monospace; }
.vp-panel h3 { color: var(--vp-yellow); font-size:16px; margin: 18px 0 6px; text-transform: uppercase; letter-spacing:.05em; }
.vp-panel p, .vp-panel li { font-size:15.5px; line-height:1.65; }
.vp-panel p { margin: 0 0 12px; max-width: none; }
.vp-panel strong { color:#fff; }
.vp-panel a { color: var(--vp-yellow); }
.vp-wide { display:block; width:100%; height:auto; border:2px inset #1f6f6f; margin: 0 0 16px; background:#000; }
.vp-quote { margin: 18px 0; padding: 14px 18px; background:#000; color: var(--vp-yellow); font-style: italic; font-size: 19px; line-height:1.45; border:1px solid #000; }
.vp-quote cite { display:block; margin-top:8px; font-size:13px; font-style:normal; color:#9fd0d0; font-family:"Courier New",monospace; }
.vp-facts { display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 0; }
.vp-facts div { background:#000; padding: 12px 14px; border:1px solid #000; }
.vp-facts dt { font-family:"Arial Black",sans-serif; color: var(--vp-red); font-size: 26px; line-height:1.1; }
.vp-facts dd { margin: 4px 0 0; font-size: 13px; color:#cfe3e3; }
.vp-list { margin: 0 0 12px; padding-left: 1.4em; }
.vp-list li { margin-bottom: 8px; }
.vp-arch { background:#000; padding: 18px; margin: 0 0 8px; display:flex; flex-direction:column; align-items:center; gap: 4px; font-family:"Courier New",monospace; }
.vp-row { display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width:100%; }
.vp-box { border: 2px solid var(--vp-teal); color:#fff; background:#062b2b; padding: 8px 12px; text-align:center; font-weight:bold; font-size: 14px; min-width: 260px; }
.vp-row .vp-box { min-width:0; }
.vp-box small { display:block; font-weight:normal; color:#9fd0d0; font-size: 12px; margin-top: 3px; }
.vp-box-hw { border-color: var(--vp-orange); }
.vp-box-nn { border-color: var(--vp-red); background:#2b0606; }
.vp-arrow { color: var(--vp-yellow); font-size: 15px; }
.vp-cols { display:grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.vp-steps { list-style:none; padding:0; margin: 4px 0 14px; display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vp-steps li { background:#000; padding: 8px; display:flex; flex-direction:column; gap:6px; }
.vp-steps img { width:100%; height: 150px; object-fit: contain; background:#111; }
.vp-steps span { font-family:"Courier New",monospace; font-size: 13px; color: var(--vp-yellow); font-weight:bold; }
.vp-gallery { display:grid; gap: 12px; }
.vp-gallery-2 { grid-template-columns: 1fr 1fr; }
.vp-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.vp-gallery figure { margin:0; background:#000; padding: 8px; }
.vp-gallery img { display:block; width:100%; height:auto; }
.vp-gallery-3 img { aspect-ratio: 4/3; object-fit: cover; }
.vp-gallery figcaption { font-size: 13px; color:#cfe3e3; padding: 8px 2px 2px; line-height:1.45; }
.vp-team { list-style:none; padding:0; margin: 0 0 14px; display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vp-team li { background:#000; padding: 10px; display:flex; flex-direction:column; }
.vp-team img { width:100%; aspect-ratio: 5/4; object-fit: cover; margin-bottom: 8px; }
.vp-team strong { color: var(--vp-red) !important; font-size: 15px; }
.vp-team span { font-size: 13px; color:#fff; }
.vp-team em { font-size: 13px; color:#9fd0d0; font-style:normal; }
.vp-aside { font-size: 14px !important; color:#e6f3f3; font-style: italic; }
.vp-docs { list-style:none; padding:0; margin: 0 0 16px; display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 10px; }
.vp-docs a { display:flex; flex-direction:column; gap:4px; background:#000; padding: 12px 14px; text-decoration:none; border:1px solid #000; height:100%; }
.vp-docs a:hover { border-color: var(--vp-yellow); }
.vp-docs strong { color: var(--vp-yellow) !important; font-size: 14.5px; }
.vp-docs span { color:#9fd0d0; font-size: 12.5px; font-family:"Courier New",monospace; }
.vp-foot { font-family:"Courier New",monospace; color:#7fbfbf; font-size: 13px; text-align:center; margin: 6px 0 0; }
.vp-page .site-footer, .vp-page .footer-band { margin-top: 0; }
@media (max-width: 760px) {
  .vp-inner { padding: 20px 0 30px; }
  .vp-hero { grid-template-columns: 1fr; }
  .vp-robot { justify-self:center; }
  .vp-robot img { height: 260px; }
  .vp-cols, .vp-gallery-2 { grid-template-columns: 1fr; }
  .vp-row, .vp-steps { grid-template-columns: 1fr 1fr; }
  .vp-team, .vp-gallery-3, .vp-facts { grid-template-columns: 1fr 1fr; }
  .vp-box { min-width: 0; width: 100%; }
  .vp-panel { padding: 18px 16px; }
}

.vp-team .vp-rip, .vp .vp-team a.vp-rip { text-decoration:none; display:inline-block; align-self:flex-start; font-family:"Courier New",monospace; font-size:12px; color:#000; background:#cfe3e3; padding:1px 7px; margin:3px 0 4px; letter-spacing:.04em; }
.vp-team em.vp-tribute { margin-top:6px; color:#e6f3f3; font-style:italic; }
html:has(body.vp-page), .vp-page { overflow-x: clip; }
.vp-page .vp p, .vp-page .vp li { max-width: none; }

.tri-run-pair { display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin: 18px 0; max-width: 760px; }
.tri-run-pair figure { margin:0; }
.tri-run-pair img { width:100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; display:block; }
.tri-run-pair figcaption { font-size:14px; color: var(--muted); margin-top:6px; }
.tri-story-solo h3 { margin: 18px 0 6px; }
@media (max-width: 560px) { .tri-run-pair { grid-template-columns: 1fr; } }

.grad-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 18px; margin-top: 14px; }
.grad { margin:0; background:#fff; border:1px solid var(--line, #dfe6e5); border-radius:10px; overflow:hidden; }
.grad img { display:block; width:100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 30%; }
.grad figcaption { padding: 10px 12px 12px; display:flex; flex-direction:column; gap:2px; font-size:14.5px; }
.grad figcaption span { color: var(--muted); font-size: 13.5px; }

/* Photography */
.ph-intro p { max-width: none; font-size: 16.5px; line-height: 1.7; }
.ph-credit { font-size: 14px !important; color: var(--muted); }
.ph-grid { display:grid; gap: 14px; margin-top: 16px; }
.ph-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ph-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ph-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ph { margin: 0; }
.ph img { display:block; width:100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 6px; background:#eee; transition: transform .25s ease; }
.ph-tall .ph img { aspect-ratio: 3/4; }
.ph a { display:block; overflow:hidden; border-radius:6px; }
.ph a:hover img { transform: scale(1.03); }
.ph figcaption { display:flex; flex-direction:column; gap:1px; padding: 7px 2px 0; font-size: 14px; }
.ph figcaption span { color: var(--muted); font-size: 13px; }
.ph-albums { display:flex; flex-wrap:wrap; gap: 10px; }
.ph-albums a { border:1px solid var(--line, #dfe6e5); border-radius:999px; padding:6px 14px; text-decoration:none; font-weight:600; }
@media (max-width: 900px) { .ph-grid-4, .ph-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ph-grid-4, .ph-grid-3, .ph-grid-2 { grid-template-columns: 1fr; } }
.ph-press { font-size: 15px !important; }

/* ---- Site-wide UX pass ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 24px; }
/* keep footer at the bottom on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > .wrap { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; box-sizing: border-box; }
body > .wrap > main { flex: 1 0 auto; }
/* section a page belongs to */
.site-nav a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--saffron); }
/* footer link row wraps cleanly */
.site-footer nav { display:flex; flex-wrap:wrap; gap: 6px 16px; }
/* back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color:#fff !important; display:flex; align-items:center; justify-content:center; font-size: 20px; text-decoration:none; box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 50; }
.to-top:hover { background: var(--teal-dark); }
.to-top[hidden] { display:none; }
@media print { .to-top { display:none !important; } }
/* mobile: filters scroll sideways instead of stacking a screen tall */
@media (max-width: 640px) {
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .filters .chips::-webkit-scrollbar { display:none; }
  .filters .chip { flex: 0 0 auto; }
  .teach-stats { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .teach-stats div { padding: 12px 10px; }
}
@media (max-width: 640px) { .site-nav a[aria-current="true"] { box-shadow: inset 3px 0 0 var(--saffron); padding-left: 12px; } }

/* Archived project pages, restyled */
.legacy-body { font-size: 16.5px; line-height: 1.7; }
.legacy-body p { margin: 0 0 14px; }
.legacy-body h2 { font-size: 21px; margin: 26px 0 10px; padding-left: 0; }
.legacy-body h2::before { display: none; }
.legacy-body img { display:block; max-width: min(100%, 720px); height:auto; margin: 18px auto; border-radius: 8px; }
.legacy-body .lg-video { position: relative; aspect-ratio: 16/9; max-width: 820px; margin: 18px 0 24px; background:#000; border-radius: 8px; overflow:hidden; }
.legacy-body .lg-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.legacy-body ul, .legacy-body ol { padding-left: 1.3em; margin: 0 0 14px; }
.legacy-body table { border-collapse: collapse; margin: 14px 0; }
.legacy-body td, .legacy-body th { padding: 6px 10px; vertical-align: top; }
.legacy-body table img { margin: 0; }
.legacy-body a > img { display:inline-block; max-height: 90px; width:auto; margin: 6px 10px; vertical-align: middle; }

/* Cross-device QA fixes (Nov 2026) */
@media (min-width: 961px) and (max-width: 1240px) {
  .site-nav { gap: 0 14px; font-size: 14px; }
  .site-nav .cv { padding: 7px 11px; }
}
@media (max-width: 420px) { .email-safe { white-space: normal; overflow-wrap: anywhere; } }
.legacy-body table { display: block; max-width: 100%; overflow-x: auto; }
.legacy-body table img { max-width: 100%; height: auto; }
@media (min-width: 961px) { .site-nav { flex-basis: 100%; } }
@media (max-width: 800px) { .rp-hero h1, .cv-head h1 { font-size: 32px; } }
/* Video interviews on the Writing page */
.wimg { position: relative; }
.wplay { position:absolute; left:50%; top:50%; width:54px; height:54px; margin:-27px 0 0 -27px; border-radius:50%; background:rgba(0,0,0,.62); }
.wplay::after { content:""; position:absolute; left:21px; top:16px; border-left:17px solid #fff; border-top:11px solid transparent; border-bottom:11px solid transparent; }
