/* =============================================
   BAUHAUS DESIGN SYSTEM — AP LEITH
   Color palette: Classic Primary
   Font: Jost (geometric sans)
============================================= */
:root {
  --cream:  #F5F0E8;
  --black:  #111111;
  --red:    #D62828;
  --yellow: #F7B731;
  --blue:   #1A4FA0;
  --gray:   #888888;
  --border: 3px solid #111111;
  --border-thick: 5px solid #111111;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── UTILITIES ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 0; left: 0; width: auto; height: auto;
  padding: 0.5rem 1rem; background: var(--yellow); color: var(--black);
  font-weight: 700; z-index: 9999; overflow: visible;
  font-family: 'Jost', sans-serif; font-size: 0.875rem; text-decoration: none;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--black);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 4px solid var(--red);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo em { color: var(--yellow); font-style: normal; }

/* Bauhaus stripe accent beside logo */
.nav-accent {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: 1rem;
  flex-shrink: 0;
}
.nav-accent span {
  display: block;
  width: 20px;
  height: 3px;
}
.nav-accent span:nth-child(1) { background: var(--red); }
.nav-accent span:nth-child(2) { background: var(--yellow); }
.nav-accent span:nth-child(3) { background: var(--blue); }

.nav-logo-wrap { display: flex; align-items: center; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: stretch;
  height: 56px;
}
.nav-links li a {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,0.12);
  transition: background 0.15s, color 0.15s;
}
.nav-links li a:hover,
.nav-links li a.active { background: var(--red); color: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--cream);
  padding: 5px 7px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══════════════════════════════════════════
   LAYOUT SHELL
══════════════════════════════════════════ */
main { margin-top: 56px; }
section { border-bottom: var(--border-thick); }

/* Shared section header band */
.section-header {
  background: var(--black);
  color: var(--cream);
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: var(--border);
}
.sh-index {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  flex-shrink: 0;
}
.section-header h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.sh-rule {
  flex: 1;
  height: 3px;
}
.sh-rule.red    { background: var(--red); }
.sh-rule.yellow { background: var(--yellow); }
.sh-rule.blue   { background: var(--blue); }
.sh-rule.white  { background: rgba(255,255,255,0.3); }

/* ══════════════════════════════════════════
   01 — ABOUT
══════════════════════════════════════════ */
#about {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - 56px);
}

.about-left {
  background: var(--black);
  border-right: var(--border-thick);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Color stripe bar at top */
.about-stripes {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.about-stripes span {
  display: block;
  height: 14px;
}
.about-stripes span:nth-child(1) { background: var(--red); }
.about-stripes span:nth-child(2) { background: var(--yellow); }
.about-stripes span:nth-child(3) { background: var(--blue); }

/* Large background circle decoration */
.about-geo-circle {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 40px solid rgba(247,183,49,0.12);
  top: 80px;
  right: -40px;
  pointer-events: none;
}

.about-photo {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-top: 2rem;
  position: relative;
  z-index: 1;
}
.about-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

.about-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem;
  position: relative;
}

/* Subtle grid dot background */
.about-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(17,17,17,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.section-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--blue);
  color: var(--cream);
  padding: 3px 10px;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.about-right h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.about-right h1 em {
  font-style: normal;
  color: var(--red);
}

.about-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  border-left: 5px solid var(--yellow);
  padding-left: 0.875rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.about-bio {
  font-size: 1rem;
  font-weight: 300;
  max-width: 58ch;
  line-height: 1.85;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1.15rem;
  border: 2px solid var(--black);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}
.btn-red  { background: var(--red);    color: var(--cream); border-color: var(--red);  }
.btn-red:hover  { background: var(--black); border-color: var(--black); }
.btn-blue { background: var(--blue);   color: var(--cream); border-color: var(--blue); }
.btn-blue:hover { background: var(--black); border-color: var(--black); }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--cream); }

/* ══════════════════════════════════════════
   02 — WHAT I WORK ON
══════════════════════════════════════════ */
#work-on .domains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.domain-card {
  padding: 2.5rem;
  border-right: var(--border);
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
}
.domain-card:nth-child(2n)        { border-right: none; }
.domain-card:nth-last-child(-n+2) { border-bottom: none; }

/* Top color accent varies per card */
.domain-card::before {
  content: '';
  display: block;
  height: 5px;
  position: absolute;
  top: 0; left: 0; right: 0;
}
.domain-card:nth-child(1)::before { background: var(--red); }
.domain-card:nth-child(2)::before { background: var(--yellow); }
.domain-card:nth-child(3)::before { background: var(--blue); }
.domain-card:nth-child(4)::before { background: var(--black); }

.domain-card h3 {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  margin-top: 0.5rem;
}
.domain-card:nth-child(1) h3 { color: var(--red); }
.domain-card:nth-child(2) h3 { color: #a07800; }
.domain-card:nth-child(3) h3 { color: var(--blue); }
.domain-card:nth-child(4) h3 { color: var(--black); }

.domain-card p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.85;
  max-width: 62ch;
}

/* ══════════════════════════════════════════
   03 — TRACK RECORD
══════════════════════════════════════════ */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  border-bottom: var(--border);
}
.stat-item {
  flex: 1 1 160px;
  padding: 2rem 1.75rem;
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
/* Cycle colours across stat numbers */
.stat-item:nth-child(1) .stat-number { color: var(--red); }
.stat-item:nth-child(2) .stat-number { color: var(--blue); }
.stat-item:nth-child(3) .stat-number { color: var(--red); }
.stat-item:nth-child(4) .stat-number { color: var(--blue); }
.stat-item:nth-child(5) .stat-number { color: var(--red); }

.stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1.4;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
/* Reuse .project-card styles (already defined) — just set border context */
#track-record .project-card { border-bottom: var(--border); }
#track-record .project-card:nth-last-child(-n+2):not(:nth-child(1)):not(:nth-child(2)) { border-bottom: none; }
/* Override alternating header colours for track-record cards */
#track-record .project-card:nth-child(1) .project-header { background: var(--red);    color: var(--cream); }
#track-record .project-card:nth-child(2) .project-header { background: var(--blue);   color: var(--cream); }
#track-record .project-card:nth-child(3) .project-header { background: var(--black);  color: var(--cream); }
#track-record .project-card:nth-child(4) .project-header { background: var(--yellow); color: var(--black); }

/* ══════════════════════════════════════════
   04 — WORK WITH ME
══════════════════════════════════════════ */
.engage-intro-bar {
  background: var(--cream);
  border-bottom: var(--border);
  padding: 1.5rem 2.5rem;
}
.engage-intro-bar p {
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  max-width: 80ch;
}

.engage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.engage-card {
  padding: 2.5rem;
  border-right: var(--border);
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
}
.engage-card:nth-child(2n)        { border-right: none; }
.engage-card:nth-last-child(-n+2) { border-bottom: none; }

/* Top accent stripe */
.engage-card::before {
  content: '';
  display: block;
  height: 5px;
  position: absolute;
  top: 0; left: 0; right: 0;
}
.engage-card:nth-child(1)::before { background: var(--red); }
.engage-card:nth-child(2)::before { background: var(--blue); }
.engage-card:nth-child(3)::before { background: var(--yellow); }
.engage-card:nth-child(4)::before { background: var(--black); }

.engage-card h3 {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  margin-top: 0.5rem;
}
.engage-card:nth-child(1) h3 { color: var(--red); }
.engage-card:nth-child(2) h3 { color: var(--blue); }
.engage-card:nth-child(3) h3 { color: #a07800; }
.engage-card:nth-child(4) h3 { color: var(--black); }

.engage-card p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
}
.engage-card p a {
  color: var(--blue);
  text-decoration: underline;
}
.engage-card p a:hover { color: var(--red); }

.contact-bar {
  background: var(--black);
  color: var(--cream);
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  border-top: var(--border);
}
.contact-bar a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--yellow);
  text-decoration: none;
}
.contact-bar a:hover { text-decoration: underline; }
.contact-sep { color: rgba(255,255,255,0.35); font-size: 1rem; }

/* ══════════════════════════════════════════
   05 — PUBLICATIONS
══════════════════════════════════════════ */
#publications .research-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pub-gloss {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-style: italic;
  color: var(--blue);
  line-height: 1.55;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(17,17,17,0.1);
}

.pub-cta-wrap {
  display: flex;
  justify-content: flex-start;
  padding-top: 0.5rem;
}

/* ══════════════════════════════════════════
   06 — CURRENT PROJECTS
══════════════════════════════════════════ */
#current-projects .grants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.5rem;
}

/* ══════════════════════════════════════════
   HERO HEADLINE (about-headline)
══════════════════════════════════════════ */
.about-headline {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 54ch;
  color: var(--gray);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════
   FOOTER — contact links
══════════════════════════════════════════ */
.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-contact a {
  font-size: 0.75rem;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.7;
}
.footer-contact a:hover { opacity: 1; text-decoration: underline; }

/* ══════════════════════════════════════════
   05 — PROJECTS
══════════════════════════════════════════ */
.project-card {
  display: flex;
  flex-direction: column;
  border-right: var(--border);
  border-bottom: var(--border);
}
.project-card:nth-child(2n) { border-right: none; }
.project-card:nth-child(5),
.project-card:nth-child(6) { border-bottom: none; }

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  border-bottom: var(--border);
}
/* Alternating header colors */
.project-card:nth-child(1) .project-header { background: var(--red);    color: var(--cream); }
.project-card:nth-child(2) .project-header { background: var(--blue);   color: var(--cream); }
.project-card:nth-child(3) .project-header { background: var(--yellow); color: var(--black); }
.project-card:nth-child(4) .project-header { background: var(--black);  color: var(--cream); }
.project-card:nth-child(5) .project-header { background: var(--blue);   color: var(--cream); }
.project-card:nth-child(6) .project-header { background: var(--red);    color: var(--cream); }

.project-header h3 {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-lang {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-body p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════
   06 — GRANTS
══════════════════════════════════════════ */
.grant-card {
  border: var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.grant-card-top { height: 8px; flex-shrink: 0; }
.grant-card.completed .grant-card-top { background: var(--gray); }
.grant-card.active    .grant-card-top { background: var(--blue); }
.grant-card.pending   .grant-card-top { background: var(--yellow); }

.grant-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.grant-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.grant-agency {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--black);
  padding: 3px 8px;
  flex-shrink: 0;
}
.grant-status {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
}
.grant-card.completed .grant-status { background: rgba(17,17,17,0.07); color: var(--gray); }
.grant-card.active    .grant-status { background: rgba(26,79,160,0.1); color: var(--blue); }
.grant-card.pending   .grant-status { background: rgba(247,183,49,0.2); color: #a07800; }

.grant-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  flex: 1;
}
.grant-amount {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.grant-card.completed .grant-amount { color: var(--gray); }
.grant-card.active    .grant-amount { color: var(--blue); }
.grant-card.pending   .grant-amount { color: #a07800; }

.grant-details {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--gray);
  margin-bottom: 0.75rem;
}
.grant-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 3px solid;
  padding-left: 0.6rem;
}
.grant-card.completed .grant-role { border-color: var(--gray); color: var(--gray); }
.grant-card.active    .grant-role { border-color: var(--blue); color: var(--blue); }
.grant-card.pending   .grant-role { border-color: #a07800;     color: #a07800; }

/* ══════════════════════════════════════════
  PUBLICATION LIST STYLES
══════════════════════════════════════════ */
.research-sub h3 {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 1.25rem;
}
.research-sub:nth-child(1) h3 { background: var(--red); }
.research-sub:nth-child(2) h3 { background: var(--blue); }
.research-sub:nth-child(3) h3 { background: var(--black); }
.research-sub:nth-child(4) h3 { background: var(--blue); }
.research-sub:nth-child(5) h3 { background: var(--black); }

.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pub-list li {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.75;
  padding: 0.875rem 1rem 0.875rem 1.25rem;
  border-left: 4px solid;
  background: rgba(17,17,17,0.03);
}
.research-sub:nth-child(1) .pub-list li { border-color: var(--blue); }
.research-sub:nth-child(2) .pub-list li { border-color: var(--red); }
.research-sub:nth-child(3) .pub-list li { border-color: var(--black); }
.research-sub:nth-child(4) .pub-list li { border-color: var(--blue); }
.research-sub:nth-child(5) .pub-list li { border-color: var(--red); }

.pub-list li b  { font-weight: 700; }
.pub-list li em { font-style: italic; }
.pub-list li a  { color: var(--blue); word-break: break-all; }
.pub-list li a:hover { color: var(--red); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--black);
  color: var(--cream);
  border-top: 5px solid var(--red);
  padding: 2rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-logo em { color: var(--yellow); font-style: normal; }

.footer-icons {
  display: flex;
  gap: 1.25rem;
}
.footer-icons a {
  color: var(--cream);
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-icons a:hover { color: var(--yellow); }

.footer-copy {
  width: 100%;
  font-size: 0.7rem;
  font-weight: 300;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 199;
  }
  .nav-links li a {
    height: auto;
    padding: 1rem 2rem;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.75rem;
  }
  .nav-toggle { display: flex; }

  /* About */
  #about {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .about-left {
    height: 72vw;
    max-height: 420px;
    border-right: none;
    border-bottom: var(--border-thick);
  }
  .about-photo {
    align-items: stretch;
    padding-top: 0;
  }
  .about-photo img {
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .about-right { padding: 2rem; }
  .about-right h1 { font-size: 2.5rem; }

  /* What I Work On */
  #work-on .domains-grid { grid-template-columns: 1fr; }
  .domain-card { border-right: none; border-bottom: var(--border); }
  .domain-card:last-child { border-bottom: none; }

  /* Track Record */
  .stats-strip { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .highlights-grid { grid-template-columns: 1fr; }
  #track-record .project-card { border-right: none; border-bottom: var(--border); }
  #track-record .project-card:last-child { border-bottom: none; }

  /* Work With Me */
  .engage-grid { grid-template-columns: 1fr; }
  .engage-card { border-right: none; border-bottom: var(--border); }
  .engage-card:last-child { border-bottom: none; }
  .engage-intro-bar { padding: 1.25rem 1.5rem; }
  .contact-bar { padding: 1.25rem 1.5rem; }

  /* Publications */
  #publications .research-content { padding: 1.5rem; }

  /* Current Projects */
  #current-projects .grants-grid { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }

  /* Section header */
  .section-header { padding: 1rem 1.5rem; }
}

@media (max-width: 500px) {
  nav { padding: 0 1rem; }
  .about-right { padding: 1.5rem; }
  .about-right h1 { font-size: 2rem; }
  .domain-card { padding: 1.5rem; }
  .engage-card { padding: 1.5rem; }
  .stat-item { padding: 1.25rem 1.5rem; }
  footer { padding: 1.5rem; }
}
