/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --bg-strip: #f0f0f2;
  --ink: #1a1d22;
  --ink-2: #4a4f58;
  --ink-3: #8b9098;
  --line: #e8e8ea;
  --accent: #2d3340;
  --accent-ink: #ffffff;
  --accent-soft: #eeeef0;
  --shadow-card: 0 22px 50px -28px rgba(20, 22, 30, 0.18), 0 1px 4px rgba(20, 22, 30, 0.05);
  --shadow-soft: 0 1px 2px rgba(20, 22, 30, 0.05);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover { opacity: 0.78; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header (light grey band, sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #eceef2;
  border-bottom: 1px solid #d6d9e0;
  color: var(--ink);
  transition: box-shadow 0.18s ease, background 0.18s ease;
}
.site-header.scrolled {
  box-shadow: 0 10px 24px -18px rgba(20, 28, 50, 0.25);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--ink);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-sub {
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 600;
}

.primary-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.primary-nav a {
  position: relative;
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}
.primary-nav a:hover {
  color: #1f4dff;
  background: rgba(31, 77, 255, 0.1);
  opacity: 1;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
  vertical-align: 2px;
}

.nav-personal {
  background: var(--bg-soft);
  padding: 8px 14px !important;
  border-radius: 999px;
  color: var(--ink) !important;
  font-weight: 600 !important;
}
.nav-personal:hover { background: var(--accent-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.3vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 18ch;
}
/* Hero highlights stay blue even though the rest of the palette is neutral. */
.accent { color: #1f4dff; }

/* Scroll-driven scatter: each letter is wrapped in .char and pushed along its
   own random vector as --p (set by JS) ramps 0 -> 1 on scroll-down. Scrolling
   back up lowers --p and the letters settle home. Words are wrapped in .word
   (inline-block) so lines only ever break at real spaces, never mid-word. */
.hero-copy h1 .word {
  display: inline-block;
}
.hero-copy h1 .char {
  display: inline-block;
  transform: translate(calc(var(--dx, 0px) * var(--p, 0)), calc(var(--dy, 0px) * var(--p, 0)))
             rotate(calc(var(--r, 0deg) * var(--p, 0)));
  opacity: calc(1 - var(--p, 0));
  transition: transform 0.12s linear, opacity 0.12s linear;
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy h1 .char {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

.lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px -10px rgba(20, 22, 30, 0.45);
}
.btn-primary:hover { opacity: 1; background: #1a1d22; }
.btn-ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost:hover { background: var(--accent-soft); opacity: 1; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
}
.meta-list a {
  color: var(--ink-2);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.meta-list a:hover { color: var(--accent); border-color: var(--accent); opacity: 1; }

/* hero visual */
.hero-visual {
  position: relative;
  background: linear-gradient(160deg, #f4f4f6 0%, #ebebee 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fff;
}
.hero-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #fff;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Filler used in place of the hero image until a square photo is added. */
.hero-photo--filler {
  background:
    radial-gradient(120% 100% at 30% 25%, #f6f7fa 0%, #e9ecf2 55%, #dfe3eb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
}
.hero-photo--filler::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(45, 51, 64, 0.18);
  border-radius: 10px;
  pointer-events: none;
}
.filler-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(64px, 8vw, 96px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.filler-hint {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.hero-cta-below {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px;
}
.play-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: var(--accent);
}
.play-meta {
  color: var(--ink-3);
  font-size: 14px;
}

/* ---------- strip ---------- */
.strip {
  background: var(--bg-strip);
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.strip-copy h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 380px;
}
.strip-copy p {
  margin: 0;
  color: var(--ink-2);
  max-width: 380px;
}

.logo-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.logo-grid li {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 22px 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* ---------- sections ---------- */
.section {
  padding: 56px 0;
}
#publications.section { padding: 48px 0 40px; }
.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { margin-bottom: 28px; max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section-sub {
  margin: 0;
  color: var(--ink-2);
}

/* research + background side-by-side */
#research .container {
  max-width: 1340px;
}
.research-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 80px;
  align-items: start;
}
.research-main .section-head { margin-bottom: 28px; }
.research-p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 16.5px;
  max-width: 56ch;
}
.research-p:last-of-type { margin-bottom: 0; }

.research-aside {
  padding-top: 6px;
  position: sticky;
  top: 100px;
}
.sub-eyebrow {
  margin: 0 0 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.research-aside .timeline li {
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 14px 0;
}
.research-aside .tl-body h3 { font-size: 15.5px; }
.research-aside .tl-body p  { font-size: 13.5px; }
.research-aside .tl-date    { font-size: 13px; }

@media (max-width: 960px) {
  .research-grid { grid-template-columns: 1fr; gap: 48px; }
  .research-aside { position: static; }
}

.tag-row {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-row li {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
}

/* publications */
.pub-group { margin-bottom: 48px; }
.pub-group:last-child { margin-bottom: 0; }
.pub-group-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.005em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pub {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.pub:first-child { border-top: 0; }
.pub:last-child { border-bottom: 1px solid var(--line); }
.pub-year {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.pub-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.pub-authors {
  margin: 0 0 4px;
  color: var(--ink-2);
  font-size: 15px;
}
.pub-venue {
  margin: 0 0 8px;
  color: var(--ink-3);
  font-size: 14px;
}
.pub-tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pub-links {
  margin: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}
.pub-links a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  font-weight: 500;
}
.pub-links a:hover { color: var(--accent); border-color: var(--accent); opacity: 1; }

/* timeline (background section) */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
}
.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.tl-date {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.tl-body h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.tl-body p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}
@media (max-width: 720px) {
  .timeline li { grid-template-columns: 100px 1fr; gap: 16px; }
}

/* news */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
}
.news-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.news-list li:last-child { border-bottom: 1px solid var(--line); }
.news-list time {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.news-list p { margin: 0; color: var(--ink); }

/* projects */
.project-group { margin-bottom: 40px; }
.project-group:last-child { margin-bottom: 0; }
.project-group-head {
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* Project category tabs (3 across, click to swap the panel below). */
.project-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.project-tab {
  text-align: left;
  font-family: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  color: var(--ink);
}
.project-tab:hover {
  border-color: var(--ink-3);
  transform: translateY(-1px);
}
.project-tab[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.project-tab[aria-selected="true"] .tab-desc {
  color: rgba(255, 255, 255, 0.72);
}
.tab-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
}
.tab-desc {
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
  line-height: 1.35;
}
.project-panel[hidden] { display: none; }

@media (max-width: 720px) {
  .project-tabs { grid-template-columns: 1fr; gap: 8px; }
}

/* Style for the inline SOP link in the research paragraph */
.sop-link {
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}
.sop-link:hover { border-color: var(--accent); opacity: 1; }
.project-group-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.project-group-desc {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  font-style: italic;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  border-color: #cdd6e3;
  box-shadow: 0 12px 30px -18px rgba(20, 40, 90, 0.25);
}
.project-card h3,
.project-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.project-card--soon {
  background: transparent;
  border: 1px dashed var(--line);
}
.project-card--soon:hover { border-color: var(--ink-3); }
.project-card--soon h3,
.project-card--soon h4 { color: var(--ink-2); }
.project-card--soon p { color: var(--ink-3); }
.project-card--soon .card-date {
  color: var(--ink-3) !important;
}
.project-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}
.project-meta {
  color: var(--ink-3) !important;
  font-size: 13px !important;
}
.card-link {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.card-date {
  margin: 0 0 4px !important;
  color: var(--ink-3) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* teaching + awards block */
.two-col-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.block-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plain-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15.5px;
}
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.muted { color: var(--ink-3); font-size: 14px; }

@media (max-width: 960px) {
  .two-col-blocks { grid-template-columns: 1fr; gap: 40px; }
}

/* contact */
.contact {
  padding: 96px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, #eef3fb 0%, #e5ecf6 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
}
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.contact p {
  margin: 0;
  color: var(--ink-2);
  max-width: 480px;
}
.contact .btn { justify-self: end; }

/* end-of-page block: contact + personal-page link */
.end-cta {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}
.end-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.end-eyebrow {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.end-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  max-width: 60ch;
}
.end-text a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.end-text a:hover {
  opacity: 1;
  color: var(--accent);
  border-color: var(--accent);
}
/* Highlighted email pill in the "Get in touch" block */
.end-text .email {
  display: inline-block;
  font-weight: 600;
  color: #1f4dff;
  background: rgba(31, 77, 255, 0.08);
  border: 0;
  border-radius: 4px;
  padding: 1px 8px;
  margin: 0 1px;
}
.end-text .email:hover {
  background: rgba(31, 77, 255, 0.18);
  color: #1f4dff;
  border-color: transparent;
}

@media (max-width: 720px) {
  .end-grid { grid-template-columns: 1fr; gap: 28px; }
  .end-text { font-size: 16.5px; }
}

/* ---------- footer (dark band) ---------- */
.site-footer {
  border-top: 1px solid var(--ink);
  padding: 22px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-name {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  font-weight: 500;
}
.footer-links a:hover { color: #fff; opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .strip-grid { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; padding: 40px 32px; }
  .contact .btn { justify-self: start; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .hero { padding: 36px 0 60px; }
  .section { padding: 64px 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    display: none;
    box-shadow: 0 12px 24px -18px rgba(20, 40, 90, 0.2);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a {
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav a:last-child { border-bottom: 0; }
  .nav-personal { border-radius: 0 !important; background: var(--bg-soft); }
  .pub { grid-template-columns: 90px 1fr; gap: 14px; }
  .pub-year { font-size: 14px; }
  .project-grid { grid-template-columns: 1fr; }
  .news-list li { grid-template-columns: 90px 1fr; gap: 16px; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
}
