/* ==========================================================================
   AS²ERT Lab — design system
   Editorial academic: serif text, hairline rules, one accent colour.
   Plain CSS on purpose (no Sass features), so it builds anywhere.
   ========================================================================== */

:root {
  --paper: #fbfaf7;
  --paper-2: #f3f1ea;
  --white: #ffffff;
  --ink: #14181c;
  --ink-2: #3a4048;
  --muted: #5f6670;
  --rule: #e3e0d7;
  --rule-strong: #cdc9bd;

  --green: #154734;          /* UTD green: links, numerals, key accents */
  --green-deep: #0e3325;     /* top bar + footer */
  --green-tint: #e8efea;
  --orange: #e87500;         /* used sparingly, never for text */

  --serif: "Source Serif 4", "Source Serif Pro", Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(21, 71, 52, 0.35);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--green-deep); text-decoration-color: var(--orange); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

::selection { background: rgba(21, 71, 52, 0.18); }

strong { font-weight: 600; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 0.875rem;
}
.skip-link:focus { left: 8px; }

/* ---------- Small-caps labels (shared) ---------- */

.eyebrow,
.subhead,
.news-date,
.cv-when,
.person-links,
.pub-links,
.field label,
.footer-grid h2,
.btn,
.tag {
  font-family: var(--sans);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
  flex: none;
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--green-deep);
  color: #cfdcd5;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar a {
  color: #cfdcd5;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.75rem;
}
.topbar a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); }
.topbar-sep { opacity: 0.45; margin: 0 6px; }

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-tag {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--green); border-bottom-color: var(--rule-strong); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 880px) {
  .topbar-inner > span { font-size: 0.625rem; }
  .topbar a { display: none; }
  .bar { flex-wrap: wrap; }
  .brand-tag { display: none; }
  .nav-toggle { display: inline-block; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; margin-top: 8px; }
  .site-nav li { border-top: 1px solid var(--rule); }
  .site-nav a { display: block; padding: 14px 0; border-bottom: 0; }
  .site-nav a[aria-current="page"] { color: var(--green); }
}

/* ---------- Buttons & tags ---------- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid var(--green);
  border-radius: 2px;
  background: transparent;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--green); color: #fff; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tag:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Home: hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(52px, 7vw, 96px);
  border-bottom: 1px solid var(--rule);
}
.hero-grid { display: grid; gap: 56px; }
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 72px;
  }
}

.hero-title {
  margin: 22px 0 10px;
  font-size: clamp(3.25rem, 8vw, 6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--orange);   /* UTD orange */
}
.hero-sub {
  margin: 0 0 30px;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--green);
  text-wrap: balance;
}
.lede {
  max-width: 34em;
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.275rem);
  line-height: 1.62;
  color: var(--ink-2);
}
.lede strong { color: var(--ink); }

.byline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  max-width: 34em;
}
.byline p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  border: 1px solid var(--rule-strong);
}

/* decorative code card (hidden from assistive tech) */
.codecard {
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--green);
  padding: 24px 24px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--ink-2);
  overflow-x: auto;
}
.codecard code { display: block; white-space: pre; }
.codecard .ln { display: inline-block; width: 2em; color: #a9a99f; user-select: none; }
.codecard .k { color: var(--green); font-weight: 600; }
.codecard .a { color: var(--orange); }
.codecard .hl { display: block; margin: 0 -24px; padding: 0 24px; background: var(--green-tint); }
@media (max-width: 979px) { .codecard { display: none; } }

/* ---------- Sections ---------- */

.section {
  padding: clamp(52px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--rule);
}
.section-alt { background: var(--paper-2); }

.split { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 280px minmax(0, 1fr); gap: 72px; }
}
.split-label h2 {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.split-label .more { margin-top: 18px; font-family: var(--sans); font-size: 0.8125rem; }

.prose-lg {
  margin: 0;
  max-width: 32em;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  color: var(--ink-2);
}
.prose-lg strong { color: var(--ink); }

/* numbered topic rows (home research list) */
.topics {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: topic;
  border-bottom: 1px solid var(--rule-strong);
}
.topics li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 24px 0;
  border-top: 1px solid var(--rule-strong);
}
.topics li::before {
  counter-increment: topic;
  content: counter(topic, decimal-leading-zero);
  padding-top: 0.6em;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.topics h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- News ---------- */

.news-list { list-style: none; margin: 0; padding: 0; }
.news-item {
  display: grid;
  gap: 4px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.news-item:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 700px) {
  .news-item { grid-template-columns: 112px minmax(0, 1fr); }
}
.news-date {
  padding-top: 0.5em;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-text { font-size: 1.05rem; line-height: 1.6; }
.news-text strong { color: var(--green); }

/* year-grouped pages (news, publications) */
.year-block {
  display: grid;
  gap: 8px 40px;
  padding: 44px 0;
  border-top: 1px solid var(--rule-strong);
}
.year-block:first-of-type { border-top: 0; padding-top: 8px; }
@media (min-width: 900px) {
  .year-block { grid-template-columns: 150px minmax(0, 1fr); }
  .year-label { position: sticky; top: 28px; align-self: start; }
}
.year-label {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 300;
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.02em;
}

/* ---------- Join / CTA ---------- */

.join {
  display: grid;
  gap: 32px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--green);
}
@media (min-width: 900px) {
  .join { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
}
.join h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.join p { color: var(--ink-2); }
.join p.eyebrow { color: var(--green); }
.join p:last-of-type { margin-bottom: 0; }

/* ---------- RIDE / undergrad ---------- */

.ride {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}
@media (min-width: 800px) { .ride { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.ride li {
  padding-top: 16px;
  border-top: 2px solid var(--green);
  font-size: 1.15rem;
  line-height: 1.35;
}
.ride .ride-code {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  padding: clamp(48px, 7vw, 92px) 0 clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--rule);
}
.page-head h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.page-lede {
  max-width: 36em;
  margin: 20px 0 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.page-body { padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 8vw, 110px); }

/* ---------- Generic prose (teaching, galleries) ---------- */

.prose { max-width: 44em; padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 8vw, 110px); }
.prose h2 {
  margin: 2.2em 0 0.5em;
  padding-top: 1.2em;
  border-top: 1px solid var(--rule-strong);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prose h2:first-child, .prose > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  margin: 2em 0 0.6em;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--green); }
.prose hr { border: 0; border-top: 1px solid var(--rule-strong); margin: 3em 0; }
.prose figure { margin: 2.5em 0; }
.prose figure img, .prose > p > img { width: 100%; max-width: 100% !important; border: 1px solid var(--rule); }
.prose > p > img { margin: 2em 0; }
.prose figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  text-align: left !important;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 1rem; }
.prose th {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose th, .prose td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); }

/* course blocks */
.course { margin-bottom: 56px; }
.course:last-child { margin-bottom: 0; }
.course-code {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 8px;
}
.course h2 { margin: 0 0 18px; padding: 0; border: 0; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.prose .facts { list-style: none; margin: 0 0 1.5em; padding: 0; }
.prose .facts li { display: grid; gap: 2px 20px; padding: 12px 0; border-top: 1px solid var(--rule); margin: 0; }
.prose .facts li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .prose .facts li { grid-template-columns: 140px minmax(0, 1fr); } }
.facts .k {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.45em;
}

/* ---------- Research page ---------- */

.areas { padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 6vw, 80px); }
.area {
  display: grid;
  gap: 12px 40px;
  padding: 44px 0;
  border-top: 1px solid var(--rule-strong);
}
.area:first-child { border-top: 0; }
@media (min-width: 800px) { .area { grid-template-columns: 130px minmax(0, 1fr); } }
.area-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.02em;
}
.area h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.area p { max-width: 36em; margin: 0; color: var(--ink-2); }

.endnote {
  padding: 28px 0 0;
  border-top: 1px solid var(--rule-strong);
  font-size: 1rem;
  color: var(--ink-2);
}

/* ---------- Publications ---------- */

.pub-intro {
  margin: 0;
  padding: 28px 0 8px;
  font-size: 1rem;
  color: var(--ink-2);
}
.pub { padding: 24px 0; border-top: 1px solid var(--rule); }
.pub:first-child { border-top: 0; padding-top: 0; }
.pub-title {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.pub-authors { margin: 0 0 4px; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.pub-authors strong { color: var(--ink); }
.pub-venue { margin: 0; font-size: 0.975rem; line-height: 1.55; color: var(--ink-2); }
.pub-venue .short { font-style: normal; font-weight: 600; color: var(--green); }
.pub-note { color: var(--muted); }
.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pub-links a::after { content: " \2197"; }

/* ---------- People ---------- */

.person-feature {
  display: grid;
  gap: 28px 40px;
  align-items: start;
  padding: 8px 0 56px;
}
@media (min-width: 700px) { .person-feature { grid-template-columns: 200px minmax(0, 1fr); } }
.portrait {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 0.8;
  object-fit: cover;
  object-position: 50% 28%;
  border: 1px solid var(--rule-strong);
  background: var(--paper-2);
}
.person-feature h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.person-feature .role { margin: 10px 0 0; color: var(--ink-2); }
.person-feature .role-lab { margin: 10px 0 0; color: var(--muted); font-size: 1rem; }

.group {
  display: grid;
  gap: 20px 72px;
  padding: 44px 0;
  border-top: 1px solid var(--rule-strong);
}
@media (min-width: 900px) { .group { grid-template-columns: 240px minmax(0, 1fr); } }
.group > h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.group > h2 small {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 40px;
}
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.people li { padding: 16px 0; border-top: 1px solid var(--rule); }
.people li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .people li:nth-child(2) { border-top: 0; padding-top: 0; } }
.person-name { display: block; font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.person-links { margin-top: 4px; font-size: 0.8125rem; color: var(--muted); }
.person-links a { text-underline-offset: 3px; }

.cohort + .cohort { margin-top: 40px; }
.cohort h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.names {
  list-style: none;
  margin: 0;
  padding: 0;
  column-width: 210px;
  column-gap: 32px;
}
.names li {
  break-inside: avoid;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.4;
}

/* ---------- PI page ---------- */

.pi-layout { display: grid; gap: 40px; padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 8vw, 110px); }
@media (min-width: 960px) {
  .pi-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 72px; }
  .pi-aside { position: sticky; top: 28px; align-self: start; }
}
.pi-aside .portrait { max-width: 280px; }
.pi-aside .aside-title { margin: 18px 0 0; font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }

.aside-block { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule-strong); }
.aside-block h2 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.aside-block ul { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 0.875rem; }
.aside-block li { padding: 4px 0; }
.aside-block a { text-decoration: none; color: var(--ink-2); }
.aside-block a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--orange); }

@media (max-width: 959px) { .pi-aside .toc-block { display: none; } .pi-aside .portrait { max-width: 220px; } }

.pi-intro h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -0.025em; margin-top: 18px; }
.pi-intro .role { margin: 14px 0 28px; font-size: 1.1rem; color: var(--ink-2); text-wrap: balance; }
.pi-intro p { max-width: 36em; font-size: 1.125rem; color: var(--ink-2); }
.pi-intro p.eyebrow { max-width: none; font-size: 0.75rem; color: var(--green); }

.cv-section { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--rule-strong); }
.cv-section > h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.subhead {
  margin: 34px 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.subhead:first-of-type { margin-top: 20px; }

.cv, .plain { list-style: none; margin: 0; padding: 0; }
.cv li, .plain li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 1.05rem;
  line-height: 1.55;
}
.cv li:first-child, .plain li:first-child { border-top: 0; }
.cv li { display: grid; gap: 2px 24px; }
@media (min-width: 700px) { .cv li { grid-template-columns: 132px minmax(0, 1fr); } }
.cv-when {
  padding-top: 0.3em;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cv .sub { display: block; margin-top: 4px; font-size: 0.975rem; color: var(--ink-2); }
.note { font-style: italic; color: var(--muted); }
.more { font-family: var(--sans); font-size: 0.8125rem; white-space: nowrap; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 48px; padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 8vw, 110px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; } }
.contact-info h2 { font-size: 1.5rem; margin-bottom: 14px; }
.contact-info dl { margin: 24px 0 0; }
.contact-info dt {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 20px;
}
.contact-info dd { margin: 4px 0 0; }

.form { background: var(--white); border: 1px solid var(--rule-strong); border-top: 3px solid var(--green); padding: clamp(24px, 4vw, 40px); }
.form h2 { font-size: 1.5rem; margin-bottom: 22px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
}
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--green); outline-offset: 0; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 0;
  background: var(--green-deep);
  color: #cfdcd5;
  font-size: 1rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); }
.footer-grid {
  display: grid;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 64px; } }
.footer-name { margin: 0 0 4px; font-size: 1.6rem; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.footer-about p { margin: 0 0 10px; }
.footer-addr { font-size: 0.95rem; line-height: 1.6; color: #a9c0b4; margin-top: 18px !important; }
.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fb3a0;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 0.875rem; }
.footer-grid li { padding: 5px 0; }
.footer-base {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--sans);
  font-size: 0.75rem;
  color: #8fb3a0;
}

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .topbar, .site-header, .site-footer, .nav-toggle, .codecard, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- Publications by research area ---------- */

.pub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 26px 0 30px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pub-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.pub-nav a:hover { color: var(--green); border-bottom-color: var(--orange); }

.pub-area {
  display: grid;
  gap: 28px 64px;
  padding: 52px 0;
  border-top: 1px solid var(--rule-strong);
}
@media (min-width: 960px) {
  .pub-area { grid-template-columns: 300px minmax(0, 1fr); }
  .pub-area-side { position: sticky; top: 28px; align-self: start; }
}
.pub-area-side h2 {
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.pub-area-side p { margin: 12px 0 0; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.pub-fig { margin-top: 22px; width: 100%; max-width: 300px; height: auto; border: 1px solid var(--rule); background: #fff; }
.pub-empty { margin: 0; font-size: 1rem; font-style: italic; color: var(--muted); }
.pub-status {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 3px;
}

/* ---------- Ongoing work and static tags ---------- */

.tag-static { cursor: default; }
.tag-static:hover { background: transparent; border-color: var(--rule-strong); color: var(--ink-2); }
.tag-ongoing {
  border-style: dashed;
  border-color: var(--gray, #8a918e);
  color: var(--muted);
}
.tag-ongoing::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: 1px;
}
a.tag-ongoing:hover { background: var(--green); border-style: solid; border-color: var(--green); color: #fff; }
.legend { margin: 14px 0 0; font-family: var(--sans); font-size: 0.75rem; line-height: 1.7; color: var(--muted); }
.legend .tag { margin-right: 4px; }
.endnote .tag { margin-right: 6px; }

.area .tags { margin-top: 18px; }

/* ---------- Research page: figure beside each area ---------- */

.area-fig { display: block; width: 100%; max-width: 300px; height: auto; margin-top: 18px; border: 1px solid var(--rule); background: #fff; }
@media (min-width: 800px) { .area-fig { grid-column: 2; margin-top: 8px; } }
@media (min-width: 1040px) {
  .area { grid-template-columns: 110px minmax(0, 1fr) 300px; }
  .area-fig { grid-column: 3; grid-row: 1; margin-top: 6px; }
}

/* ---------- Publications: plain list ---------- */

.pub-simple { list-style: none; margin: 0; padding: 0; }
.pub-simple li { padding: 16px 0; border-top: 1px solid var(--rule); }
.pub-simple li:first-child { border-top: 0; padding-top: 0; }
.pub-line-title { display: block; font-size: 1.2rem; font-weight: 500; line-height: 1.35; }
.pub-line-title a { color: var(--ink); text-decoration-color: rgba(21, 71, 52, 0.35); }
.pub-line-title a:hover { color: var(--green); }
.pub-line-venue { display: block; margin-top: 5px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--green); }

/* ---------- Publications: year / venue / track table ---------- */

.pub-table { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule-strong); }
.pub-row { display: grid; gap: 10px 48px; padding: 24px 0; border-top: 1px solid var(--rule-strong); }
@media (min-width: 760px) { .pub-row { grid-template-columns: 250px minmax(0, 1fr); } }
.pub-meta { display: flex; flex-direction: column; gap: 5px; padding-left: 16px; border-left: 3px solid var(--green); }
.pub-year { font-size: 1.9rem; font-weight: 400; line-height: 1; letter-spacing: -0.02em; color: var(--green); }
.pub-venue-name { font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.pub-track { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; line-height: 1.4; color: var(--muted); }
.pub-name { font-size: 1.2rem; font-weight: 500; line-height: 1.4; align-self: center; }
.pub-name a { color: var(--ink); text-decoration-color: rgba(21, 71, 52, 0.35); }
.pub-name a:hover { color: var(--green); }

/* ---------- Publications: papers listed under each year ---------- */

.year-block .pub-table { border-bottom: 0; }
.year-block .pub-row { padding: 18px 0; border-top: 1px solid var(--rule); }
.year-block .pub-row:first-child { border-top: 0; padding-top: 4px; }
@media (min-width: 760px) { .year-block .pub-row { grid-template-columns: 210px minmax(0, 1fr); gap: 10px 36px; } }
.year-block .pub-meta { align-self: start; }
.year-block .pub-name { align-self: start; padding-top: 1px; }

/* ---------- Publications: venue as the highlighted label ---------- */

.year-block .pub-meta { padding-left: 0; border-left: 0; align-items: flex-start; gap: 7px; }
.year-block .pub-venue-name {
  display: inline-block;
  padding: 5px 13px 6px;
  border-radius: 2px;
  background: var(--green);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.year-block .pub-track { padding-left: 2px; font-size: 0.78rem; color: var(--ink-2); }

/* ---------- Research page: no numbers, figures alternate sides ---------- */

@media (min-width: 800px) {
  .area { grid-template-columns: minmax(0, 1fr); }
  .area-fig { grid-column: auto; grid-row: auto; }
}
@media (min-width: 1040px) {
  .area { grid-template-columns: minmax(0, 1fr) 300px; gap: 12px 72px; align-items: center; }
  .area-text { grid-column: 1; grid-row: 1; }
  .area-fig { grid-column: 2; grid-row: 1; margin-top: 0; }
  .area-flip { grid-template-columns: 300px minmax(0, 1fr); }
  .area-flip .area-text { grid-column: 2; }
  .area-flip .area-fig { grid-column: 1; }
}

/* ---------- Landing page ---------- */

.hire-bar { background: var(--green); color: #fff; }
.hire-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.hire-inner p { margin: 0; flex: 1 1 320px; font-size: 1rem; line-height: 1.45; color: #e9f0ec; }
.hire-inner strong { color: #fff; font-weight: 600; }
.hire-link { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #e9f0ec; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); text-underline-offset: 4px; }
.hire-link:hover { color: #fff; text-decoration-color: var(--orange); }
.hire-mail { padding: 8px 16px; border: 1px solid rgba(255,255,255,0.6); border-radius: 2px; text-decoration: none; }
.hire-mail:hover { background: #fff; color: var(--green); }

.home-hero { padding: clamp(40px, 6vw, 84px) 0 clamp(44px, 6vw, 84px); border-bottom: 1px solid var(--rule); }
.home-hero-grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 960px) { .home-hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); gap: 72px; } }
.home-hero .hero-title { margin: 0 0 8px; font-size: clamp(2.8rem, 5.6vw, 4.6rem); }
.home-hero .hero-sub { margin-bottom: 26px; }
.home-lede { margin: 0 0 1.1em; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.62; color: var(--ink); }
.home-body { margin: 0; font-size: 1.05rem; line-height: 1.68; color: var(--ink-2); }
.home-hero .actions { margin-top: 30px; }

.home-portrait { margin: 0; }
.portrait-frame { position: relative; }
.portrait-frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--green-tint); z-index: 0; }
.portrait-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 0.9; object-fit: cover; object-position: 50% 35%; border: 1px solid var(--rule-strong); }
.home-portrait figcaption { margin-top: 30px; font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }

.home-main { padding: clamp(44px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.home-grid { display: grid; gap: 56px; align-items: start; }
@media (min-width: 960px) { .home-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; } }
.home-block + .home-block { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--rule); }
.home-block h2, .home-news h2 { margin-bottom: 14px; font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.01em; }
.home-block p { margin: 0 0 1em; font-size: 1.05rem; line-height: 1.68; color: var(--ink-2); max-width: 40em; }
.home-more { font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; }
.home-block .home-more { margin-top: 4px; }
.home-ride { list-style: none; margin: 18px 0 0; padding: 0; max-width: 40em; }
.home-ride li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 1rem; }
.home-ride li:last-child { border-bottom: 1px solid var(--rule); }
.home-ride span { display: inline-block; min-width: 86px; margin-right: 10px; font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.home-news { padding: 28px 26px 22px; background: var(--paper-2); border-top: 3px solid var(--green); }
@media (min-width: 960px) { .home-news { position: sticky; top: 24px; } }
.home-news-list { list-style: none; margin: 0; padding: 0; }
.home-news-list li { padding: 14px 0; border-top: 1px solid var(--rule-strong); }
.home-news-list li:first-child { border-top: 0; padding-top: 4px; }
.home-news-date { display: block; margin-bottom: 4px; font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.home-news-text { display: block; font-size: 0.95rem; line-height: 1.5; color: var(--ink); }
.home-news-text strong { color: var(--green); }
.home-news .home-more { margin: 10px 0 0; }

/* ---------- Landing page: compact single-screen layout ---------- */

.home-top { padding: clamp(40px, 6vw, 80px) 0 clamp(52px, 7vw, 96px); }
.home-top .hero-title { margin: 0 0 8px; font-size: clamp(2.8rem, 5.6vw, 4.6rem); }
.home-top .hero-sub { margin-bottom: 24px; }
.home-top .home-lede { max-width: 30em; margin: 0 0 14px; }
.home-led { margin: 0; font-size: 1rem; color: var(--ink-2); }
.home-top .actions { margin-top: 28px; }
.home-top .home-block { margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--rule); }
.home-top .home-block p { max-width: 34em; }

/* ---------- Landing page: plain personal-homepage style ---------- */

.home-contact { margin: 0 0 30px; font-style: normal; font-size: 1.05rem; line-height: 1.65; color: var(--ink-2); }
.home-contact strong { color: var(--ink); }
.home-call { margin: 0 0 34px; padding: 20px 8px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); text-align: center; }
.home-call p { margin: 0; font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.home-bio p { max-width: 36em; margin: 0 0 1.1em; font-size: 1.08rem; line-height: 1.7; color: var(--ink); }

.home-recent { padding-top: 14px; border-top: 3px solid var(--ink); }
@media (min-width: 960px) { .home-recent { position: sticky; top: 24px; } }
.home-recent h2 { margin: 0 0 14px; font-size: 1.45rem; line-height: 1.2; }
.home-recent ul { list-style: none; margin: 0; padding: 0; }
.home-recent li { margin: 0 0 12px; font-size: 0.98rem; line-height: 1.5; color: var(--ink); }
.home-recent li strong { display: block; font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.home-recent .home-more { margin: 14px 0 0; }

.home-bio .home-message { font-size: 1.2rem; line-height: 1.65; }

/* ---------- Landing page: mission panel ---------- */

.mission { background: var(--green-deep); color: #d7e3dc; }
.mission .wrap { padding-top: 40px; padding-bottom: 44px; }
.mission h2 { margin: 0 0 26px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -0.015em; color: #fff; }
.mission h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 14px; background: var(--orange); }
.mission-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .mission-grid { grid-template-columns: 1.35fr 1fr 0.8fr; gap: 0; } .mission-col { padding: 0 36px; border-left: 1px solid rgba(255,255,255,0.18); } .mission-col:first-child { padding-left: 0; border-left: 0; } .mission-col:last-child { padding-right: 0; } }
.mission-col h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #f3b27a; }
.mission-col p { margin: 0 0 12px; font-size: 0.95rem; line-height: 1.6; color: #d7e3dc; }
.mission-col strong { color: #fff; font-weight: 600; }
.mission-col a { color: #fff; text-decoration-color: rgba(255,255,255,0.5); }
.mission-col a:hover { color: #fff; text-decoration-color: var(--orange); }
.mission-ride { list-style: none; margin: 14px 0 0; padding: 0; }
.mission-ride li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.95rem; line-height: 1.4; color: #fff; }
.mission-ride li:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.mission-ride span { display: block; margin-bottom: 2px; font-family: var(--sans); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #8fb3a0; }
.btn-light { margin-top: 4px; border-color: rgba(255,255,255,0.7); color: #fff; }
.mission-col a.btn-light { text-decoration: none; color: #fff; }
.btn-light:hover, .mission-col a.btn-light:hover { background: #fff; color: var(--green-deep); }

/* ---------- Landing page: bigger title and faded research figure ---------- */

.home-top .hero-title { font-size: clamp(3.4rem, 8vw, 6.75rem); line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 12px; }
.home-top .hero-sub { font-size: clamp(1.3rem, 2.3vw, 1.75rem); margin-bottom: 28px; }

.home-col-bg { position: relative; }
.home-col-bg > *:not(.home-bg) { position: relative; z-index: 1; }
.home-bg {
  position: absolute;
  z-index: 0;
  top: -20px;
  right: -70px;
  width: 470px;
  max-width: none;
  height: auto;
  opacity: 0.13;
  mix-blend-mode: multiply;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 26%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 26%, transparent 70%);
}
@media (max-width: 699px) { .home-bg { display: none; } }

/* ---------- Join the lab page ---------- */

.join-grid { display: grid; gap: 40px; padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 8vw, 110px); }
@media (min-width: 960px) {
  .join-grid { grid-template-columns: 1.25fr 1.1fr 0.75fr; gap: 0; }
  .join-col { padding: 0 40px; border-left: 1px solid var(--rule-strong); }
  .join-col:first-child { padding-left: 0; border-left: 0; }
  .join-col:last-child { padding-right: 0; }
}
.join-col h2 { margin: 0 0 14px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.join-col p { margin: 0 0 1em; font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); }
.join-col strong { color: var(--ink); font-weight: 600; }
.join-ride { list-style: none; margin: 20px 0 0; padding: 0; }
.join-ride li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.4; }
.join-ride li:last-child { border-bottom: 1px solid var(--rule); }
.join-ride span { display: block; margin-bottom: 2px; font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Landing page: larger hiring line and explore line ---------- */

.hire-inner { padding-top: 20px; padding-bottom: 20px; gap: 12px 28px; }
.hire-inner p { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; }
.hire-inner strong { font-size: 1.05em; }
.hire-mail { padding: 11px 22px; font-size: 0.8125rem; }

.home-bio .home-explore { margin-top: 30px; font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.5; }
.home-explore a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Landing page: larger hiring line and explore line ---------- */

.hire-bar .hire-inner { padding-top: 18px; padding-bottom: 18px; gap: 12px 28px; }
.hire-bar .hire-inner p { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.4; color: #e9f0ec; }
.hire-bar .hire-inner strong { font-size: 1.12em; }
.hire-bar .hire-mail { padding: 12px 22px; font-size: 0.8125rem; background: var(--orange); border-color: var(--orange); color: #fff; }
.hire-bar .hire-mail:hover { background: #fff; border-color: #fff; color: var(--green); }

.home-bio .home-explore { margin-top: 30px; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.4; }
.home-bio .home-explore a { font-weight: 500; }

/* ---------- Landing page: hiring panel under the email line ---------- */

.hire-panel { margin: 0 0 36px; padding: 24px 28px 26px; background: var(--green); border-left: 6px solid var(--orange); }
.hire-panel p { margin: 0 0 16px; font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.42; color: #e9f0ec; }
.hire-panel strong { color: #fff; font-size: 1.15em; font-weight: 600; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-orange:hover { background: #fff; border-color: #fff; color: var(--green); }

.hire-panel p { margin: 0; }
.hire-panel a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.hire-panel a:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Landing page: head, full-width join band, then message and news ---------- */

.home-head { padding: clamp(40px, 6vw, 76px) 0 clamp(30px, 4vw, 48px); }
.home-head .hero-title { margin: 0 0 12px; font-size: clamp(3.4rem, 8vw, 6.75rem); line-height: 0.95; letter-spacing: -0.035em; }
.home-head .hero-sub { margin: 0 0 28px; font-size: clamp(1.3rem, 2.3vw, 1.75rem); }
.home-head .home-contact { margin: 0; }

.hire-band { background: var(--green); border-top: 5px solid var(--orange); }
.hire-band .wrap { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(30px, 4vw, 46px); }
.hire-band .hire-panel { margin: 0; padding: 0; background: none; border: 0; }
.hire-band .hire-panel p { max-width: none; font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.45; }
.hire-band .hire-panel strong { font-size: 1.12em; }

.home-main2 { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); }

/* ---------- Join band: the call-to-action link must always be white ---------- */

.hire-band .hire-panel p a.hire-cta,
.hire-band .hire-panel p a.hire-cta:visited {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  white-space: nowrap;
}
.hire-band .hire-panel p a.hire-cta:hover { color: #ffffff; text-decoration-color: #ffffff; }

/* ---------- Landing page: tighter vertical spacing ---------- */

.home-head { padding: clamp(24px, 3.2vw, 40px) 0 clamp(18px, 2.4vw, 28px); }
.home-head .hero-title { margin-bottom: 6px; }
.home-head .hero-sub { margin-bottom: 14px; }
.home-head .home-contact { line-height: 1.55; }

.hire-band .wrap { padding-top: clamp(18px, 2.4vw, 26px); padding-bottom: clamp(18px, 2.6vw, 28px); }
.hire-band .hire-panel p { line-height: 1.4; }

.home-main2 { padding: clamp(24px, 3.2vw, 38px) 0 clamp(32px, 4vw, 52px); }
.home-main2 .home-message { line-height: 1.6; margin-bottom: 0.8em; }
.home-bio .home-explore { margin-top: 16px; }
.home-recent { padding-top: 12px; }
.home-recent li { margin-bottom: 10px; }

/* ---------- Landing page: research areas at the bottom ---------- */

.home-research { padding: clamp(28px, 4vw, 44px) 0 clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule-strong); }
.home-research-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.home-research-head h2 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.home-research-head a { font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; }
.rgrid { display: grid; gap: 0 56px; }
@media (min-width: 860px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rcard { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 0; border-top: 1px solid var(--rule); }
.rcard-nofig { grid-template-columns: minmax(0, 1fr); }
.rcard img { display: block; width: 104px; height: 104px; object-fit: contain; border: 1px solid var(--rule); background: #fff; }
.rcard h3 { margin: 2px 0 4px; font-size: 1.12rem; font-weight: 500; line-height: 1.25; }
.rcard p { margin: 0; font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); }
.rcard .tags { margin-top: 10px; gap: 6px; }

/* The dark top strip is not used on any page. */
.topbar { display: none; }

/* ---------- Header: deep-green bar, white brand, orange marker ---------- */

html { scroll-padding-top: 92px; }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--green-deep); border-bottom: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 18px rgba(14, 51, 37, 0.12); }
.site-header .bar { padding-top: 16px; padding-bottom: 16px; }

.site-header .brand { color: #fff; gap: 3px; }
.site-header .brand:hover { color: #fff; }
.site-header .brand-name { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.015em; color: #fff; }
.site-header .brand-tag { font-size: 0.625rem; letter-spacing: 0.16em; color: #9dbfae; }

.site-header .site-nav ul { gap: 34px; }
.site-header .site-nav a { padding: 8px 0 7px; font-size: 0.75rem; letter-spacing: 0.12em; color: #d3e2d9; border-bottom: 2px solid transparent; }
.site-header .site-nav a:hover { color: #fff; border-bottom-color: var(--orange); }
.site-header .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }

.site-header .nav-toggle { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.site-header .nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }

@media (max-width: 880px) {
  .site-header .site-nav li { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .site-header .site-nav a { padding: 14px 0; border-bottom: 0; }
  .site-header .site-nav a[aria-current="page"] { color: #f3b27a; }
  .site-header .brand-name { font-size: 1.5rem; }
}

@media (max-width: 880px) {
  .site-header .site-nav ul { gap: 0; }
}

/* ---------- Landing page: compact join card in the top-right corner ---------- */

.home-head-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .home-head-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; } }

.hire-card { padding: 20px 24px 22px; background: var(--green); border-top: 5px solid var(--orange); color: #e9f0ec; }
@media (min-width: 960px) { .hire-card { margin-top: 10px; } }
.hire-card p { margin: 0 0 10px; font-size: 1rem; line-height: 1.5; color: #e9f0ec; }
.hire-card .hire-card-title { margin-bottom: 8px; font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: #fff; }
.hire-card p:last-child { margin-bottom: 0; }
.hire-card a.hire-cta, .hire-card a.hire-cta:visited { color: #ffffff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hire-card a.hire-cta:hover { text-decoration-color: #ffffff; }

.home-head { padding-bottom: clamp(6px, 1vw, 12px); }
.home-main2 { padding-top: clamp(14px, 2vw, 22px); }

/* ---------- Landing page: opening question and bolded key points ---------- */

.home-bio .home-question { margin: 0 0 16px; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 500; line-height: 1.28; letter-spacing: -0.01em; color: var(--green); }
.home-bio .home-message { font-size: 1.15rem; line-height: 1.65; }
.home-bio .home-message strong { color: var(--ink); font-weight: 600; }

/* ---------- Landing page: one top block, news directly under the join card ---------- */

.home-top2 { padding: clamp(22px, 3vw, 36px) 0 clamp(10px, 1.6vw, 18px); }
.home-top2 .hero-title { margin: 0 0 6px; font-size: clamp(3.4rem, 8vw, 6.75rem); line-height: 0.95; letter-spacing: -0.035em; }
.home-top2 .hero-sub { margin: 0 0 14px; font-size: clamp(1.3rem, 2.3vw, 1.75rem); }
.home-top2 .home-contact { margin: 0 0 24px; line-height: 1.55; }
.home-side .hire-card { margin: 12px 0 26px; }
.home-side .home-recent { position: static; padding-top: 12px; }

.home-research { padding: clamp(16px, 2.4vw, 26px) 0 clamp(32px, 4vw, 48px); }
.home-research-head { margin-bottom: 4px; }

/* ---------- Header: icon-only brand ---------- */

.site-header .bar { padding-top: 10px; padding-bottom: 10px; }
.site-header .brand-icon { display: inline-flex; align-items: center; }
.site-header .brand-logo { display: block; height: 52px; width: auto; }
@media (max-width: 880px) { .site-header .brand-logo { height: 42px; } }

.site-header .brand-logo { height: 60px; }
@media (max-width: 880px) { .site-header .brand-logo { height: 46px; } }

/* ---------- Header menu: larger, balanced with the logo ---------- */

.site-header .site-nav ul { gap: 38px; align-items: center; }
.site-header .site-nav a { padding: 10px 0 8px; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.07em; line-height: 1.2; color: #dbe8e0; }
.site-header .site-nav a:hover,
.site-header .site-nav a[aria-current="page"] { color: #fff; }
.site-header .site-nav a:hover { border-bottom-color: var(--orange); }

@media (max-width: 1040px) { .site-header .site-nav ul { gap: 26px; } .site-header .site-nav a { font-size: 0.875rem; letter-spacing: 0.06em; } }
@media (max-width: 880px) {
  .site-header .site-nav ul { gap: 0; }
  .site-header .site-nav a { padding: 15px 0; font-size: 1rem; letter-spacing: 0.08em; }
}

@media (max-width: 880px) {
  .site-header .site-nav ul { align-items: stretch; }
  .site-header .site-nav li { width: 100%; }
  .site-header .site-nav a { display: block; text-align: left; }
}

/* ---------- Header: full width, logo at the far left, menu at the far right ---------- */

.site-header .wrap.bar { max-width: none; padding-left: clamp(20px, 3.4vw, 60px); padding-right: clamp(20px, 3.4vw, 60px); }

/* ---------- Header: menu centered, links close together ---------- */

@media (min-width: 881px) {
  .site-header .wrap.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .site-header .brand-icon { grid-column: 1; justify-self: start; }
  .site-header .site-nav { grid-column: 2; }
  .site-header .site-nav ul { gap: 24px; justify-content: center; }
}
@media (min-width: 881px) and (max-width: 1040px) { .site-header .site-nav ul { gap: 18px; } }

/* ---------- Header: aligned with the page's text column ---------- */

.site-header .wrap.bar { max-width: 1120px; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Dr. Hossain page: course blocks ---------- */

.course-block { padding: 18px 0; border-top: 1px solid var(--rule); }
.course-block:first-of-type { border-top: 0; padding-top: 6px; }
.course-term { margin: 0 0 4px; font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.course-block h4 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 500; line-height: 1.3; }
.course-block p { margin: 0 0 8px; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.course-links { font-family: var(--sans); font-size: 0.875rem; }
.course-block details { margin-top: 10px; }
.course-block summary { cursor: pointer; font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--green); }
.course-block details[open] summary { margin-bottom: 10px; }
.course-block details ul { margin: 0 0 12px; padding-left: 1.2em; font-size: 0.975rem; line-height: 1.55; color: var(--ink-2); }
.course-table { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 0.95rem; }
.course-table th { text-align: left; font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.course-table th, .course-table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }

.course-block .course-term { margin: 0 0 4px; font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.course-block .course-links { font-family: var(--sans); font-size: 0.875rem; }
