:root {
  color-scheme: dark;
  --background: #0b1216;
  --surface: #111e22;
  --surface-bright: #183039;
  --text: #f4f2e8;
  --muted: #a9b7b7;
  --line: #284047;
  --accent: #bce473;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.page-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark { text-decoration: none; font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.accent { color: var(--accent); }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a, .back-to-top {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
}
.site-header nav a:hover, .back-to-top:hover { color: var(--text); }

.hero { padding: clamp(64px, 6vw, 88px) 0 clamp(64px, 6vw, 88px); max-width: 930px; }
.eyebrow {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  vertical-align: 1px;
}
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(44px, 6.6vw, 88px); line-height: 1.09; letter-spacing: -.065em; font-weight: 650; }
.hero-copy { max-width: 615px; margin: 34px 0 32px; color: var(--muted); font-size: clamp(16px, 1.8vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 25px; }
.primary-link, .project-link { display: inline-flex; gap: 25px; align-items: center; text-decoration: none; font-weight: 700; }
.primary-link { padding: 15px 20px; background: var(--accent); color: #14201a; font-size: 14px; }
.primary-link:hover { background: #d4f2a3; }
.primary-link span, .project-link span { font-size: 18px; }
.secondary-link, .scholar-link { color: var(--accent); font-size: 14px; font-weight: 650; text-decoration: none; }
.secondary-link:hover, .scholar-link:hover { color: #d4f2a3; }
.secondary-link span { margin-left: 7px; }

.projects-section { padding-bottom: 120px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 14px; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; line-height: 1.14; }
.section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 14px; }
.project-card { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 430px; border: 1px solid var(--line); background: var(--surface); }
.project-visual { position: relative; min-height: 400px; overflow: hidden; background: radial-gradient(circle at 53% 47%, #294d4b 0%, #152d32 42%, #102129 76%); }
.visual-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(#86b7a3 1px, transparent 1px), linear-gradient(90deg, #86b7a3 1px, transparent 1px); background-size: 32px 32px; transform: perspective(400px) rotateX(24deg) scale(1.3); }
.visual-orbit { position: absolute; width: 330px; height: 330px; top: 50%; left: 50%; border: 1px solid #78a69065; border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-two { width: 230px; height: 230px; border-color: #bce47380; }
.visual-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(55px, 7vw, 100px); font-weight: 800; letter-spacing: -.08em; text-shadow: 0 10px 35px #071615; }
.visual-core span { color: var(--accent); font-size: .42em; vertical-align: top; margin-left: 8px; }
.visual-caption { position: absolute; bottom: 24px; left: 28px; font-size: 10px; letter-spacing: .2em; color: #d4e3dc; }
.project-content { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(30px, 4vw, 62px); }
.project-number { margin: 0 0 40px; color: var(--accent); font-size: 11px; letter-spacing: .16em; font-weight: 700; }
h3 { margin: 0 0 20px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.045em; }
.project-content > p:not(.project-number) { margin: 0; color: var(--muted); line-height: 1.7; font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 27px 0 38px; list-style: none; }
.tags li { border: 1px solid #3d5b58; border-radius: 2px; padding: 7px 9px; color: #c9dcce; font-size: 11px; }
.project-link { margin-top: auto; padding-bottom: 6px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 14px; }
.project-link:hover { color: #d4f2a3; }

.research-section { padding: 85px 0 110px; border-top: 1px solid var(--line); }
.research-heading { align-items: end; margin-bottom: 60px; }
.scholar-link { margin-bottom: 8px; white-space: nowrap; }
.list-title { margin: 0 0 18px; font-size: 15px; font-weight: 650; letter-spacing: .02em; }
.conference-title { margin-top: 62px; }
.research-list { margin: 0; padding: 0; list-style: none; counter-reset: research; border-top: 1px solid var(--line); }
.research-list li { counter-increment: research; border-bottom: 1px solid var(--line); }
.research-list li a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 230px);
  align-items: center;
  gap: 16px;
  padding: 24px 0 24px 48px;
  position: relative;
  text-decoration: none;
}
.research-list li a::before { content: counter(research, decimal-leading-zero); position: absolute; left: 0; top: 29px; color: var(--accent); font-size: 11px; font-weight: 700; }
.research-list li a:hover .research-item-title { color: var(--accent); }
.research-item-title { font-size: 16px; line-height: 1.5; transition: color .2s ease; }
.research-meta { justify-self: end; color: var(--muted); text-align: right; font-size: 12px; line-height: 1.5; }
.research-meta span { color: var(--accent); padding-left: 5px; }

.about-section { padding: 78px 0 110px; border-top: 1px solid var(--line); }
.about-section .eyebrow { margin-bottom: 18px; }
.about-section h2 { max-width: 700px; }
.about-section > p:last-child { max-width: 740px; margin: 26px 0 0; color: var(--muted); line-height: 1.8; font-size: 16px; }
.site-footer { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .page-shell { width: min(600px, calc(100% - 32px)); }
  .site-header { min-height: 0; padding: 18px 0; align-items: flex-start; flex-direction: column; gap: 14px; }
  .site-header nav { gap: 20px; flex-wrap: wrap; }
  .site-header nav a { font-size: 12px; }
  .hero { padding: 66px 0 72px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 300px; }
  .project-content { min-height: 380px; }
  .project-number { margin-bottom: 28px; }
  .research-section { padding: 65px 0 80px; }
  .research-heading { margin-bottom: 42px; }
  .scholar-link { white-space: normal; }
  .research-list li a { grid-template-columns: 1fr; gap: 8px; padding: 20px 0 20px 35px; }
  .research-list li a::before { top: 24px; }
  .research-meta { justify-self: start; text-align: left; }
  .about-section { padding: 65px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header nav a, .back-to-top { transition: none; }
  .research-item-title { transition: none; }
}
