/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  /* Scientific paper palette: warm paper, ink text, deep teal accent */
  --bg: #F6F3EC;
  --surface-1: #EEEAE0;
  --surface-2: #FDFCF8;
  --surface-3: #FFFFFF;
  --surface-4: #E9E4D8;
  --line: #D9D2C3;
  --line-strong: #C4BBA9;
  --text: #16211D;
  --muted: #4E5A55;
  --faint: #5F6762;
  --accent: #0E6B5C;
  --accent-hover: #0A5A4D;
  --accent-soft: rgba(14, 107, 92, 0.10);
  --accent-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(22, 33, 29, 0.04), 0 8px 24px rgba(22, 33, 29, 0.06);

  --font: "Manrope", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --s-25: 2px;  --s-50: 4px;  --s-75: 8px;  --s-100: 12px; --s-200: 16px;
  --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px;
  --s-800: 80px; --s-900: 96px;

  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1152px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: var(--s-900); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-300); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.skip-link {
  position: fixed; left: var(--s-200); top: var(--s-200); z-index: 100;
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  background: var(--accent); color: var(--accent-ink);
  transform: translateY(-200%);
  transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   Text styles (named per the design system)
   ========================================================================== */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.03em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.025em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.015em; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  white-space: nowrap;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
.btn i { font-size: 18px; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--line-strong); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-wrap {
  position: fixed; top: var(--s-200); left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 var(--s-200);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  border: 1px solid rgba(22, 33, 29, 0.08);
  border-radius: var(--r-2xl);
  background: rgba(253, 252, 248, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-logo { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--text); }
.nav-logo svg { color: var(--accent); }
.nav-links { display: flex; gap: var(--s-50); }
.nav-links a {
  display: block; padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  color: var(--muted);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface-4); }
.nav-links a[aria-current="true"] { color: var(--text); background: var(--surface-4); }

.nav-toggle {
  display: none; position: relative;
  width: 40px; height: 40px; border-radius: var(--r-lg);
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform 500ms var(--ease);
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center;
  padding: var(--s-900) var(--s-300) var(--s-600);
  background: rgba(246, 243, 236, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.mobile-menu.open { opacity: 1; }
.mobile-menu ul { display: grid; gap: var(--s-200); width: 100%; }
.mobile-menu li { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.mobile-menu.open li { opacity: 1; transform: none; }
.mobile-menu a { display: block; padding: var(--s-50) 0; }
.mobile-menu a[aria-current="true"] { color: var(--accent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 144px 0 var(--s-800); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-600); align-items: center; }
.hero-copy { max-width: 680px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-50) var(--s-100) var(--s-50) var(--s-75);
  border: 1px solid var(--line); border-radius: var(--r-full);
  color: var(--muted);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--accent); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent);
  animation: pulse 2400ms var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3); opacity: 0; } }

/* Mobile identity row: shows the face before the graph, which stacks below on small screens */
.hero-id { display: none; align-items: center; gap: var(--s-100); }
.hero-id img {
  width: 56px; height: 56px; flex: none; object-fit: cover;
  border-radius: var(--r-full); border: 2px solid var(--accent);
  padding: 2px; background: var(--surface-2);
}
.hero-id p { display: grid; margin: 0; }
.hero-id .title-sm { font-weight: 600; font-size: 16px; line-height: 24px; color: var(--text); }
.hero-id .caption-1 { color: var(--muted); }

.hero-title {
  margin-top: var(--s-300);
  max-width: 680px;
  background: linear-gradient(90deg, #16211D, #5E6B66);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub { margin-top: var(--s-300); max-width: 560px; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: var(--s-200); margin-top: var(--s-400); flex-wrap: wrap; }

.icon-links { display: flex; gap: var(--s-50); }
.icon-links a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--muted); font-size: 20px;
  transition: color 300ms var(--ease), background-color 300ms var(--ease), transform 300ms var(--ease);
}
.icon-links a:hover { color: var(--text); background: var(--surface-3); transform: translateY(-2px); }
.icon-links a:active { transform: scale(0.98); }

.proof {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: var(--s-400);
  margin-top: var(--s-600); padding-top: var(--s-300);
  border-top: 1px solid var(--surface-4);
}
.proof div { display: flex; flex-direction: column-reverse; gap: var(--s-25); }
.proof dt { color: var(--faint); }
.proof dd { color: var(--text); }

.hero-graph { position: relative; height: 560px; margin-right: calc(-1 * max(0px, (100vw - var(--container)) / 2) - var(--s-300)); }
#graph { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#graph.dragging { cursor: grabbing; }
.graph-hint {
  position: absolute; right: var(--s-300); bottom: var(--s-75);
  display: inline-flex; align-items: center; gap: var(--s-50);
  color: var(--faint);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--s-900) 0; }
.kicker { color: var(--accent); font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.section-title { margin-top: var(--s-100); max-width: 680px; }
.section-lead { margin-top: var(--s-200); max-width: 600px; color: var(--muted); }
.section-head { margin-bottom: var(--s-600); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-300); flex-wrap: wrap; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-700); align-items: start; }
.portrait {
  display: flex; align-items: center; gap: var(--s-200);
  margin-top: var(--s-500); padding: var(--s-75);
  max-width: 360px;
  background: var(--surface-2); border: 1px solid var(--surface-4); border-radius: var(--r-2xl);
}
.portrait img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--r-lg); filter: grayscale(1) contrast(1.05); transition: filter 500ms var(--ease); }
.portrait:hover img { filter: none; }
.portrait figcaption { display: grid; gap: var(--s-25); }
.portrait figcaption .caption-5 { color: var(--muted); }
.about-body { display: grid; gap: var(--s-300); color: var(--muted); }
.about-body > p:first-child { color: var(--text); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-200); margin-top: var(--s-200); padding-top: var(--s-300); border-top: 1px solid var(--surface-4); }
.facts li { display: flex; gap: var(--s-100); align-items: flex-start; color: var(--text); }
.facts i { color: var(--accent); font-size: 20px; flex: none; }

/* Tagline reveal */
.tagline-section { padding: var(--s-900) 0; border-top: 1px solid var(--surface-3); border-bottom: 1px solid var(--surface-3); background: var(--surface-1); }
.tagline { max-width: 880px; }
.tagline .w { color: rgba(22, 33, 29, 0.20); transition: color 500ms var(--ease); }
.tagline .w.on { color: var(--text); }
.tagline .w.hl.on { color: var(--accent); }

/* Expertise cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-200); }
.card {
  display: flex; flex-direction: column; gap: var(--s-100);
  padding: var(--s-300);
  background: var(--surface-2); border: 1px solid var(--surface-4); border-radius: var(--r-2xl);
  transition: transform 500ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-3); box-shadow: var(--shadow); }
.card-wide { grid-column: span 2; }
.card-icon { font-size: 24px; color: var(--accent); margin-bottom: var(--s-75); }
.card p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: auto; padding-top: var(--s-100); }
.tags li {
  padding: var(--s-25) var(--s-75); border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--surface-4);
  font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted);
}

.domains { margin-top: var(--s-700); }
.domain-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-200); margin-top: var(--s-300); counter-reset: d; }
.domain-list li {
  position: relative; display: grid; gap: var(--s-75);
  padding: var(--s-300) var(--s-300) var(--s-300) var(--s-300);
  border: 1px solid var(--surface-4); border-radius: var(--r-2xl);
}
.domain-list .mono { color: var(--accent); }
.domain-list .body-6 { color: var(--muted); }

.stack { display: flex; gap: var(--s-300); align-items: baseline; margin-top: var(--s-600); padding-top: var(--s-300); border-top: 1px solid var(--surface-4); }
.stack-label { color: var(--faint); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; flex: none; }
.stack-list { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); color: var(--muted); }

/* Journey / commit graph */
.lane-main-label, .lane-acad-label { padding: 0 var(--s-50); border-radius: var(--r-sm); }
.lane-main-label { color: var(--text); background: var(--surface-4); }
.lane-acad-label { color: var(--accent-ink); background: var(--accent); }

.git { position: relative; max-width: 820px; }
.git-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.git-log { position: relative; }
.commit {
  --lane-x: 16px;
  position: relative;
  padding: var(--s-200) 0 var(--s-200) 96px;
}
.commit[data-lane="acad"] { --lane-x: 48px; }
.commit .dot {
  position: absolute; left: calc(var(--lane-x) - 7px); top: 22px;
  width: 14px; height: 14px; border-radius: var(--r-full);
  background: var(--bg); border: 2px solid var(--text);
  z-index: 1;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease);
}
.commit[data-lane="acad"] .dot { border-color: var(--accent); }
.commit[data-merge] .dot { background: var(--accent); border-color: var(--accent); }
.commit:hover .dot { transform: scale(1.3); }
.commit-meta { display: flex; align-items: center; gap: var(--s-75); color: var(--faint); }
.commit h3 { margin-top: var(--s-50); }
.commit .body-6 { margin-top: var(--s-50); color: var(--muted); max-width: 600px; }
.badge {
  padding: 0 var(--s-75); border-radius: var(--r-sm);
  background: var(--surface-4); color: var(--muted);
}
.badge-acad { background: var(--accent-soft); color: var(--accent); }
.commit-link { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); white-space: nowrap; }
.commit-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Publications */
.pubs { display: grid; gap: var(--s-100); }
.pub {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) 96px; gap: var(--s-300);
  align-items: start;
  padding: var(--s-300);
  border: 1px solid var(--surface-4); border-radius: var(--r-2xl);
  background: var(--surface-2);
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.pub:hover { border-color: var(--line-strong); background: var(--surface-3); box-shadow: var(--shadow); }
.pub-year { color: var(--faint); }
.pub-type { color: var(--accent); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.pub-patent .pub-type { color: var(--muted); }
.pub h3 { margin-top: var(--s-75); }
.pub h3 a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 500ms var(--ease); }
.pub h3 a:hover { background-size: 100% 1px; }
.pub-authors { margin-top: var(--s-75); color: var(--muted); }
.pub-authors strong { color: var(--text); font-weight: 600; }
.pub-venue { margin-top: var(--s-25); color: var(--faint); }
.pub-cites { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-25); color: var(--faint); text-align: right; }
.pub-cites .mono { color: var(--text); }
.pub-cites i { font-size: 24px; color: var(--accent); }
.pub-cites-extra { margin-top: var(--s-50); white-space: nowrap; }
.pub-cites-extra .mono { color: var(--text); }
.pub-abstract { margin-top: var(--s-100); }
.pub-abstract summary {
  display: inline-flex; align-items: center; gap: var(--s-50);
  padding: var(--s-25) 0;
  color: var(--accent); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em;
  cursor: pointer; list-style: none; user-select: none;
}
.pub-abstract summary::-webkit-details-marker { display: none; }
.pub-abstract summary:hover { color: var(--text); }
.pub-abstract summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.pub-abstract summary i { font-size: 14px; transition: transform 300ms var(--ease); }
.pub-abstract[open] summary i { transform: rotate(180deg); }
.pub-abstract-body {
  max-width: 68ch; margin-top: var(--s-100); padding-left: var(--s-200);
  border-left: 2px solid rgba(14, 107, 92, 0.3); color: var(--muted);
}
.pub-abstract-body p + p, .pub-abstract-body ul, .pub-abstract-body p + ul + p { margin-top: var(--s-100); }
.pub-abstract-body ul { padding-left: var(--s-200); list-style: disc; display: grid; gap: var(--s-75); }
.pub-abstract-body strong { color: var(--text); font-weight: 600; }
.pub-abstract[open] .pub-abstract-body { animation: abstract-in 300ms var(--ease); }
@keyframes abstract-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Repos */
.repos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-200); }
.repo {
  display: flex; flex-direction: column; gap: var(--s-100);
  padding: var(--s-300);
  border: 1px solid var(--surface-4); border-radius: var(--r-2xl);
  background: var(--surface-2);
  transition: transform 500ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.repo:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-3); box-shadow: var(--shadow); }
.repo:active { transform: scale(0.98); }
.repo-top { display: flex; justify-content: space-between; align-items: center; color: var(--faint); }
.repo-top i { font-size: 20px; color: var(--accent); }
.repo h3 { font-family: var(--mono); }
.repo p { color: var(--muted); }
.repo-link { display: inline-flex; align-items: center; gap: var(--s-50); margin-top: auto; padding-top: var(--s-100); color: var(--text); }
.repo-link i { transition: transform 300ms var(--ease); }
.repo:hover .repo-link i { transform: translate(2px, -2px); }

/* Contact */
.contact-card {
  padding: var(--s-800) var(--s-700);
  border-radius: var(--r-3xl);
  background: var(--surface-2);
  border: 1px solid var(--surface-4);
}
.contact-title { margin-top: var(--s-200); max-width: 760px; }
.contact-sub { margin-top: var(--s-300); color: var(--muted); max-width: 560px; }
.contact-actions { display: flex; gap: var(--s-100); margin-top: var(--s-400); flex-wrap: wrap; }
.copy-status { min-height: 20px; margin-top: var(--s-100); color: var(--accent); }
.contact-links { display: flex; flex-wrap: wrap; gap: var(--s-300); margin-top: var(--s-300); padding-top: var(--s-300); border-top: 1px solid var(--surface-4); }
.contact-links a { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--muted); transition: color 300ms var(--ease); }
.contact-links a:hover { color: var(--text); }
.contact-links i { font-size: 20px; }

/* Footer */
.footer { padding: var(--s-400) 0 var(--s-600); color: var(--faint); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); flex-wrap: wrap; }
.to-top { display: inline-flex; align-items: center; gap: var(--s-50); color: var(--muted); transition: color 300ms var(--ease); }
.to-top:hover { color: var(--text); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav { gap: var(--s-400); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-graph { height: 420px; margin-right: 0; }
  .br-desk { display: none; }
  .hero-id { display: flex; }
  .hero-copy .eyebrow { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: var(--s-400); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .hero { padding-top: 120px; padding-bottom: var(--s-600); }
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .proof { grid-template-columns: repeat(2, auto); gap: var(--s-300) var(--s-600); }
  .hero-graph { height: 360px; }
  .section { padding: var(--s-800) 0; }
  .tagline-section { padding: var(--s-800) 0; }
  .cards, .domain-list, .repos, .facts { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .stack { flex-direction: column; gap: var(--s-100); }
  .commit { padding-left: 72px; }
  .commit { --lane-x: 12px; }
  .commit[data-lane="acad"] { --lane-x: 40px; }
  .pub { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-100) var(--s-200); padding: var(--s-200); align-items: center; }
  .pub-year { grid-column: 1; grid-row: 1; font-size: 14px; line-height: 20px; }
  .pub-cites { grid-column: 2; grid-row: 1; flex-direction: row; align-items: center; gap: var(--s-50); }
  .pub-cites .title-2 { font-size: 14px; line-height: 20px; }
  .pub-cites i { font-size: 18px; }
  .pub-cites-extra { margin-top: 0; margin-left: var(--s-75); }
  .pub-body { grid-column: 1 / -1; }
  .pub-abstract-body { padding-left: var(--s-100); }
  .contact-card { padding: var(--s-500) var(--s-300); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { transform: none; transition: opacity 300ms linear; }
  .mobile-menu li { transform: none; }
  .card:hover, .repo:hover, .btn-primary:hover, .icon-links a:hover { transform: none; }
}
