:root {
  --bg: #ffffff;
  --fg: #1f2937;
  --muted: #6b7280;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: #eff6ff;
  --border: #e5e7eb;
  --chip: #f3f4f6;
  --bg-alt: #f6f7fb;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 14px 34px rgba(31, 41, 55, 0.12);
}

* { 
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth;
}

/* The off-canvas mobile menu sits outside the viewport; clip it so it
   never creates a horizontal scrollbar. */
html, body {
  overflow-x: clip;
}

body { 
  margin: 0; 
  padding: 0; 
  background: var(--bg); 
  color: var(--fg); 
  font-family: system-ui, -apple-system, sans-serif; 
  line-height: 1.65; 
}

a { 
  color: var(--accent); 
  text-decoration: none; 
  transition: all 0.2s ease;
}

a:hover { 
  color: var(--accent-hover);
  text-decoration: underline; 
}

/* Improved sticky topbar */
.topbar { 
  position: sticky; 
  top: 0; 
  z-index: 999; 
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); 
  box-shadow: var(--shadow);
}

.topbar .container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 12px 20px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}

.brand { 
  font-weight: 700; 
  font-size: 18px; 
  color: var(--fg);
  letter-spacing: -0.025em;
}

.menu { 
  display: flex; 
  gap: 24px; 
  align-items: center; 
}

.menu a { 
  font-size: 14px; 
  color: var(--muted); 
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.menu a:hover, .menu a.active { 
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--fg);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-4px, -4px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 65px);
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .menu.active {
    right: 0;
  }

  .menu a {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
  }
}

header {
  text-align: left;
  padding: 44px 20px 36px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Photo left, text right */
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 52px;
  align-items: center;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.avatar {
  width: 190px;
  height: 235px;
  flex: none;
  border-radius: 16px;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: block;
  margin: 0;
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

h1 {
  font-size: 34px;
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.affiliation {
  color: var(--accent);
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
}

/* Biography paragraph under the hero's interest line */
.hero-summary {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Circular social icons — the single place contact details live */
.hero-links {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-links a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-links svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

/* CV sits in the same row: a pill instead of a circle, same 32px height */
.hero-links a.cv-link {
  width: auto;
  gap: 6px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-links a:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.35);
  text-decoration: none;
}

.hero-links a:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}


main { 
  max-width: 1000px; 
  margin: 0 auto; 
  padding: 32px 20px 60px; 
}

section { 
  padding: 24px 0; 
  border-bottom: 1px solid var(--border); 
  scroll-margin-top: 80px;
}

section:last-of-type { 
  border-bottom: 0; 
}

h2 { 
  font-size: 24px; 
  margin: 0 0 12px; 
  font-weight: 700;
  letter-spacing: -0.025em;
}

.kicker { 
  font-size: 12px; 
  letter-spacing: 0.1em; 
  text-transform: uppercase; 
  color: var(--accent); 
  font-weight: 600;
  margin-bottom: 8px;
}

ul { 
  padding-left: 20px; 
  margin: 12px 0; 
}

li { 
  margin: 8px 0; 
  line-height: 1.6;
}

ol {
  padding-left: 20px;
  margin: 12px 0;
}

ol li {
  margin: 12px 0;
  line-height: 1.6;
}

/* ===== Publications ===== */
.pub-year {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.02em;
}

.pub-year:first-of-type {
  margin-top: 12px;
}

.pub-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pub-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Uniform thumbnail box — every image renders at the same size */
.pub-thumb {
  position: relative;
  flex: 0 0 360px;
  width: 360px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-generated-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(99, 102, 241, 0.85);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  pointer-events: none;
}

/* `contain` keeps figures whole — scientific images must not be cropped */
.pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 6px;
}

/* Placeholder for papers without a figure */
.pub-thumb--placeholder {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #dbeafe 100%);
  color: var(--accent);
  position: relative;
}

.pub-thumb--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 60%);
  pointer-events: none;
}

.pub-thumb--placeholder svg {
  width: 40%;
  max-width: 84px;
  height: auto;
  opacity: 0.55;
}

.pub-details {
  flex: 1;
  min-width: 0;
}

.pub-details h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.pub-details h3 a {
  color: var(--fg);
}

.pub-details h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.pub-authors {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 5px;
}

.pub-authors strong {
  color: var(--fg);
  font-weight: 650;
}

.pub-venue-text {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Full journal name + volume, kept as one unit so the flex gap can never
   strand the comma away from the title. */
.pub-venue-full {
  color: var(--muted);
}

.pub-venue-text em {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}

.pub-status {
  font-style: italic;
  color: var(--accent);
}

/* ===== Venue badges ===== */
.venue-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  background: #e2e8f0;
  color: #475569;
}

/* A badge may itself link to the journal/conference site */
a.venue-tag {
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a.venue-tag:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  text-decoration: none;
}

.venue-tag.scirep    { background: #e0f2fe; color: #075985; }
.venue-tag.npjdm     { background: #ede9fe; color: #5b21b6; }
.venue-tag.jkns      { background: #d1fae5; color: #065f46; }
.venue-tag.annalsats { background: #fef3c7; color: #92400e; }
.venue-tag.bmc       { background: #fce7f3; color: #9d174d; }
.venue-tag.aaai      { background: #ffedd5; color: #9a3412; }
.venue-tag.arxiv     { background: #fde8e8; color: #991b1b; }
.venue-tag.other     { background: #e2e8f0; color: #475569; }

/* Status, not a venue — kept deliberately neutral */
.venue-tag.prep      { background: #f1f5f9; color: #64748b; font-style: italic; }

/* ===== Publication link buttons ===== */
.pub-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pub-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.pub-links a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}


.link-icon {
  font-size: 11px;
}

/* ===== News ===== */
.news-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.news-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  line-height: 1.6;
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-date {
  flex: 0 0 80px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.news-body {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .news-list li {
    flex-direction: column;
    gap: 2px;
  }

  .news-date {
    flex: none;
  }
}

/* ===== Under Review ===== */
.review-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.review-list li {
  padding: 14px 16px;
  margin: 0 0 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  transition: box-shadow 0.2s ease;
}

.review-list li:hover {
  box-shadow: var(--shadow);
}

.review-title {
  flex: 1 1 320px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
}

/* Author credit reads as metadata, not part of the title */
.review-authors {
  font-weight: 400;
  color: var(--muted);
}

.review-authors strong {
  font-weight: 650;
  color: var(--fg);
}

/* Links row inside a review-list item — reuses the pub-links look */
.review-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  width: 100%;
}

.review-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.review-links a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

/* ===== Presentations ===== */
.talk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.talk-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.talk-list li:last-child {
  border-bottom: 0;
}

.talk-type {
  flex: 0 0 62px;
  text-align: center;
  padding: 3px 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 2px;
}

.talk-type.oral   { background: #dbeafe; color: #1e40af; }
.talk-type.poster { background: #fce7f3; color: #9d174d; }

.talk-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.talk-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
}

.talk-venue {
  font-size: 13px;
  color: var(--muted);
}

.talk-award {
  font-size: 12.5px;
  font-weight: 600;
  color: #b45309;
}

/* ===== Research interests ===== */
.interests {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.interests-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.interests-list {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fg);
}

/* ===== Research overview cards ===== */
.research-intro {
  color: var(--text-muted);
  margin-bottom: 6px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.research-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.research-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Verb that names this stage of the research arc */
.research-stage {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.research-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.research-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ===== Competitions & challenges ===== */
.comp-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.comp-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.comp-list li:last-child {
  border-bottom: 0;
}

.comp-rank {
  flex: 0 0 88px;
  text-align: center;
  padding: 3px 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
  margin-top: 2px;
}

.comp-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.comp-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
}

.comp-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ===== Experience / Education entries =====
   Institution on the left, location flush right — mirrors the CV's
   \entryhead{}{} layout. */
.entry {
  margin: 0 0 24px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 5px;
}

/* Advisors / lab lines sit closer to their institution than to the next entry */
.entry .muted {
  line-height: 1.75;
}

/* Entries that carry an institution logo: logo left, text right */
.entry--logo {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.entry-logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-top: 2px;
}

.entry-body {
  flex: 1;
  min-width: 0;
}

/* Role + dates, directly under the institution */
.entry-role {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* One-line account of what the work was */
.entry-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg);
}

.entry-place {
  flex-shrink: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ===== Media =====
   Used by the commented-out #media section in index.html. Kept live so the
   section renders correctly the moment it is uncommented. */
/* Wrapper exists only to host the right-edge fade that hints at overflow */
.media-scroller {
  position: relative;
}

.media-scroller::after {
  content: "";
  position: absolute;
  top: 0;
  right: -4px;
  bottom: 14px;
  width: 48px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 85%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Hidden once the row is scrolled to the end */
.media-scroller.at-end::after {
  opacity: 0;
}

/* Single row that scrolls horizontally — cards keep a fixed width and
   overflow sideways instead of wrapping onto ragged extra rows. */
.media-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-top: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* room for the scrollbar so it never overlaps the cards */
  padding: 4px 4px 14px;
  margin-left: -4px;
  margin-right: -4px;
}

.media-row::-webkit-scrollbar {
  height: 8px;
}

.media-row::-webkit-scrollbar-track {
  background: var(--bg-alt);
  border-radius: 999px;
}

.media-row::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.media-row::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.media-item {
  flex: 0 0 300px;
  width: 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--fg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.media-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--fg);
}

.media-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}

/* Outlet wordmark stands in when an article has no usable image.
   Unused at present — every card has a real thumbnail — but kept so a
   future entry without one still renders cleanly. */
.media-thumb--text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  border-bottom: 1px solid var(--border);
}

.media-thumb--text span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  opacity: 0.75;
}

/* Video embeds fill the same 16:9 box as article thumbnails */
.media-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}

.media-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Grows to fill the card so the source line always sits at the bottom,
   keeping every card's footer aligned despite headlines of different lengths. */
.media-text {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Clamped to 3 lines so every card in the row is the same height */
.media-text h3 {
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.45;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-source {
  font-size: 12.5px;
  color: var(--muted);
  margin: auto 0 0;
}

/* ===== Publications: responsive ===== */

/* Between the mobile stack and full width, shrink the thumb rather than
   squeezing the text column to nothing. */
@media (min-width: 769px) and (max-width: 940px) {
  .pub-thumb {
    flex-basis: 280px;
    width: 280px;
  }
}

@media (max-width: 768px) {
  .pub-item {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .pub-thumb {
    flex: none;
    width: 100%;
  }

  .talk-list li {
    flex-direction: column;
    gap: 6px;
  }

  .talk-type {
    flex: none;
    align-self: flex-start;
    padding: 3px 12px;
  }

  .comp-list li {
    flex-direction: column;
    gap: 6px;
  }

  .comp-rank {
    flex: none;
    align-self: flex-start;
    padding: 3px 12px;
  }

  /* Slightly narrower cards so the next one peeks in, hinting at the scroll */
  .media-item {
    flex-basis: 270px;
    width: 270px;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  header {
    text-align: center;
  }

  .hero-inner {
    flex-direction: column;
    gap: 18px;
  }

  .avatar {
    width: 130px;
    height: 160px;
    margin: 0 auto;
  }

  .hero-summary {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-links {
    justify-content: center;
  }

  .entry--logo {
    gap: 12px;
  }

  .entry-logo {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
}

.muted { 
  color: var(--muted); 
  font-size: 14px; 
}

footer { 
  text-align: center; 
  font-size: 14px; 
  color: var(--muted); 
  padding: 24px 20px; 
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

/* Smooth animations */
section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for sections */
section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.10s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.20s; }
section:nth-child(5) { animation-delay: 0.25s; }
section:nth-child(6) { animation-delay: 0.30s; }
section:nth-child(7) { animation-delay: 0.35s; }
section:nth-child(8) { animation-delay: 0.40s; }
section:nth-child(n + 9) { animation-delay: 0.45s; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  section {
    opacity: 1;
    transform: none;
    animation: none;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Enhanced typography */
p {
  margin: 12px 0;
  line-height: 1.7;
}

strong {
  font-weight: 600;
  color: var(--fg);
}

em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}