:root {
  --bg: #f6f8fb;
  --bg-alt: #eceff4;
  --surface: #ffffff;
  --surface-hover: #eef2f7;
  --border: #d7dfea;
  --text: #16202b;
  --text-dim: #4a5a6b;
  --text-faint: #79879a;
  --accent: #0ea371;
  --accent-2: #2f7fd1;
  --accent-warm: #b5811a;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* background circuit texture */
.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(14, 163, 113, 0.07), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(47, 127, 209, 0.08), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(181, 129, 26, 0.06), transparent 40%),
    linear-gradient(var(--bg), var(--bg));
  background-color: var(--bg);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(246, 248, 251, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.logo .dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 8px 16px;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--accent); color: #ffffff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* HERO */
.hero {
  padding: 120px 0 90px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin: 0 0 22px;
  font-weight: 500;
}

.hero-desc {
  max-width: 680px;
  color: var(--text-dim);
  font-size: 1rem;
  margin: 0 0 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: #0c8c60; transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }

.hero-links {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 0.88rem;
}
.hero-links a { color: var(--text-dim); }
.hero-links a:hover { color: var(--accent-2); }

/* SECTIONS */
.section { padding: 90px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section-contact { border-bottom: none; }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.01em;
}

.tag {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

.section-intro, .lead {
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 0 40px;
  font-size: 1.05rem;
}

.section-note {
  margin-top: 32px;
  color: var(--text-dim);
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

/* STATS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.stat-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
}
.stat-label {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.skill-card h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--accent-2);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags span {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: 5px;
}

/* EXPERIENCE — parallel-track duration timeline (Gantt) */
.exp-gantt-head {
  position: relative;
  height: 18px;
  margin-bottom: 10px;
}
.exp-col-label {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.exp-col-label.ft { left: 31%; }
.exp-col-label.pt { left: 82%; }
.exp-legend {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  text-align: center;
}

.exp-gantt { position: relative; width: 100%; }
/* central time axis */
.exp-gantt::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 64%;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
  z-index: 0;
}
/* year gridlines */
.exp-grid {
  position: absolute;
  left: 0; right: 0;
  height: 0;
  border-top: 1px dashed var(--border);
  z-index: 0;
}
.exp-grid .exp-year {
  position: absolute;
  left: 64%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 1px 7px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}
.exp-grid-now { border-top: 1px solid var(--accent); opacity: 0.55; }
.exp-grid-now .exp-year { color: var(--accent); }

/* duration bars — positioned + sized inline by the renderer */
.exp-item {
  position: absolute;
  box-sizing: border-box;
  z-index: 1;
}
.exp-card {
  height: 100%;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  /* top-align the label within the bar */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.exp-item.academic  .exp-card { border-left: 3px solid var(--accent-2); }
.exp-item.industrial .exp-card { border-left: 3px solid var(--accent); }
.exp-card:hover { border-color: var(--surface-hover); }
.exp-item.current .exp-card { box-shadow: inset 0 2px 0 0 var(--accent); }

/* open — reveal detail in place; JS stretches the timeline so nothing overlaps.
   Bars keep their column width so they never spill over the central year line. */
.exp-item.open { z-index: 3; }
.exp-item.open .exp-card {
  overflow: visible;
  border-color: var(--accent-2);
  box-shadow: 0 8px 24px rgba(22, 32, 43, 0.12);
}
.exp-item.industrial.open .exp-card { border-color: var(--accent); }

.exp-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
}
.exp-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.exp-badge.fulltime { color: var(--accent-2); background: rgba(47, 127, 209, 0.12); }
.exp-badge.parttime { color: var(--accent);   background: rgba(14, 163, 113, 0.12); }
/* full/part-time is already shown by the left/right side of the year line */
.exp-badge { display: none; }
.exp-role {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
/* keep collapsed bars to one line; full title shows when opened */
.exp-item:not(.open) .exp-role {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exp-head:hover .exp-role { color: var(--accent-2); }
.exp-item.industrial .exp-head:hover .exp-role { color: var(--accent); }
.exp-org { font-size: 0.8rem; color: var(--text-dim); margin-top: 3px; }
/* collapsed cards show role + company + duration on 3 lines (company on one line) */
.exp-item:not(.open) .exp-org {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exp-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 2px;
}
.exp-summary {
  margin: 7px 0 0;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* click role → reveal short description; Show more → reveal bullets */
.exp-body { display: none; margin-top: 10px; }
.exp-item.open .exp-body { display: block; }
.exp-desc {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.exp-bullets {
  display: none;
  margin: 11px 0 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.exp-item.expanded .exp-bullets { display: block; }
.exp-bullets li { margin-bottom: 6px; }
.exp-bullets li::marker { color: var(--accent-2); }
.exp-item.industrial .exp-bullets li::marker { color: var(--accent); }
.exp-more {
  margin-top: 11px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
}
.exp-more:hover { color: var(--accent-2); border-color: var(--accent-2); }
.exp-item.industrial .exp-more:hover { color: var(--accent); border-color: var(--accent); }

/* mobile — collapse the Gantt into a simple stacked list */
@media (max-width: 760px) {
  .exp-gantt { height: auto !important; }
  .exp-gantt::before, .exp-grid { display: none; }
  .exp-item,
  .exp-item.open {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin-bottom: 12px;
  }
  .exp-card { height: auto; overflow: visible; }
}

/* EDUCATION */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  border-top: 3px solid var(--accent-2);
}
.edu-card h3 {
  margin: 0 0 8px;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.3rem;
}
.edu-field { font-weight: 600; margin: 0 0 4px; }
.edu-school { color: var(--text-dim); margin: 0; font-size: 0.92rem; }

/* CERTIFICATIONS */
.cert-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.cert-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.cert-group h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--accent-warm);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cert-group ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.cert-group li { margin-bottom: 7px; }

/* CONTACT */
.contact-inner { text-align: center; }
.contact-inner .section-title { justify-content: center; }
.contact-inner .lead { margin-left: auto; margin-right: auto; text-align: center; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-value { font-weight: 600; word-break: break-word; }
.contact-location { color: var(--text-faint); font-size: 0.9rem; }

/* FOOTER */
.site-footer {
  padding: 30px 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 90px 0 60px; }
  .section { padding: 60px 0; }
}

/* ============================================================
   SIMPLETHINGS — site pages (reuse the same visual language)
   ============================================================ */

/* logo wordmark */
.logo .brandlt { color: var(--accent); }

/* active nav item */
.nav a[aria-current="page"] { color: var(--text); }

/* ---- home hero ---- */
.home-hero {
  padding: 120px 0 90px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.home-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--text) 25%, var(--accent) 70%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-hero .tagline {
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--text-dim);
  font-size: 1.15rem;
  line-height: 1.6;
}
.home-hero .hero-actions { justify-content: center; }

/* ---- compact page hero (sub-pages) ---- */
.page-hero {
  padding: 90px 0 46px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.page-hero p {
  max-width: 660px;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0;
}

/* section head with a "see all" link */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head .section-title { margin: 0; }
.see-all {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  white-space: nowrap;
}
.see-all:hover { color: var(--accent); }

/* ---- generic card grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ---- project / generic content card ---- */
.pcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.pcard:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.pcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pcard-field {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 5px;
}
.pcard-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.status-active { color: var(--accent); background: rgba(14, 163, 113, 0.12); }
.status-field  { color: var(--accent-warm); background: rgba(181, 129, 26, 0.12); }
.status-open   { color: var(--accent-2); background: rgba(47, 127, 209, 0.12); }
.status-proto  { color: var(--text-dim); background: var(--surface-hover); }
.pcard h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.pcard p { margin: 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }
.pcard-foot {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pcard-cta { color: var(--accent); }
.pcard:hover .pcard-cta { text-decoration: underline; }

/* ---- avatars ---- */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}
.avatar.lg { width: 60px; height: 60px; font-size: 1.15rem; }

/* ---- story card ---- */
.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.story-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.story-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.story-card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; }
.story-byline { display: flex; align-items: center; gap: 10px; }
.story-byline .who { display: flex; flex-direction: column; }
.story-byline .name { font-size: 0.88rem; font-weight: 600; }
.story-byline .meta { font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); }
.story-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-warm);
}

/* ---- contributor card ---- */
.contrib-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.contrib-card:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.contrib-body { display: flex; flex-direction: column; gap: 6px; }
.contrib-name { font-size: 1.12rem; font-weight: 600; margin: 0; }
.contrib-role {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}
.contrib-bio { margin: 4px 0 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }
.contrib-link {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent-2);
  align-self: flex-start;
}
.contrib-link:hover { color: var(--accent); }
.contrib-soon {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* back-to-site link on the profile page (optional, unobtrusive) */
.back-link { font-family: var(--mono); font-size: 0.82rem; color: var(--text-dim); }
.back-link:hover { color: var(--accent); }

/* ============================================================
   PROFILE — research / projects / teaching / online courses
   ============================================================ */

/* publications */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.pub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.pub-card:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.pub-thumb {
  height: 152px;
  background: #eef1f4 center / contain no-repeat;
  border-bottom: 1px solid var(--border);
}
.pub-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pub-venue {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.pub-card h3 { margin: 0; font-size: 1rem; line-height: 1.34; }
.pub-card p { margin: 0; color: var(--text-dim); font-size: 0.87rem; line-height: 1.55; }
.pub-link { margin-top: auto; font-family: var(--mono); font-size: 0.78rem; color: var(--accent-2); }
.pub-link:hover { color: var(--accent); }

/* additional publications list */
.pub-list { list-style: none; margin: 30px 0 0; padding: 0; }
.pub-list li {
  display: flex;
  gap: 14px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.pub-list .yr { font-family: var(--mono); color: var(--accent-warm); font-size: 0.8rem; flex-shrink: 0; width: 46px; }
.pub-list .src { font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); }
.pub-list a { color: var(--accent-2); }
.pub-list a:hover { color: var(--accent); }

/* projects with thumbnails */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.proj-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.proj-thumb { height: 132px; background: #eef1f4 center / contain no-repeat; border-bottom: 1px solid var(--border); }
.proj-info { padding: 14px 16px; }
.proj-info h3 { margin: 0 0 5px; font-size: 0.96rem; }
.proj-info p { margin: 0; color: var(--text-dim); font-size: 0.82rem; line-height: 1.5; }

/* teaching (courses taught) */
.teach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.teach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-warm);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.teach-card h3 { margin: 0 0 5px; font-size: 1rem; line-height: 1.3; }
.teach-card span { font-family: var(--mono); font-size: 0.75rem; color: var(--text-faint); }

/* online (Udemy) course catalogue */
.course-cols { columns: 3 250px; column-gap: 30px; }
.course {
  break-inside: avoid;
  display: flex;
  gap: 9px;
  padding: 6px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.4;
}
.course .n { font-family: var(--mono); color: var(--accent-2); font-size: 0.76rem; flex-shrink: 0; }
