:root {
  --ink: #071a2b;
  --ink-soft: #30465a;
  --muted: #688092;
  --paper: #f5f7f9;
  --surface: #ffffff;
  --line: #dce5ea;
  --cyan: #00a8a8;
  --cyan-deep: #087a80;
  --blue: #1264a3;
  --lime: #b9f17c;
  --shadow: 0 20px 60px rgba(7, 26, 43, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(0, 168, 168, 0.08), transparent 28rem),
    var(--paper);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-200%);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  color: white;
  background: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(7, 26, 43, 0.08);
  background: rgba(245, 247, 249, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  font: 500 0.72rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.02em;
}

.brand-mark img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
}

.nav-links a,
.nav-cta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a { position: relative; }
.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.hero { padding: 72px 0 28px; }

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.75fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(7, 26, 43, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-card::before {
  position: absolute;
  top: -12rem;
  right: -10rem;
  width: 29rem;
  height: 29rem;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(0, 168, 168, 0.16), rgba(18, 100, 163, 0.04) 45%, transparent 68%);
  pointer-events: none;
}

.hero-copy,
.profile-panel { position: relative; z-index: 1; }

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  color: var(--cyan-deep);
  font: 500 0.74rem/1.4 "IBM Plex Mono", monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(0, 168, 168, 0.1);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%, 55%, 100% { box-shadow: 0 0 0 5px rgba(0, 168, 168, 0.1); }
  75% { box-shadow: 0 0 0 9px rgba(0, 168, 168, 0); }
}

h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.6rem, 5.3vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--cyan-deep);
  background: linear-gradient(110deg, var(--cyan-deep), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 720px;
  margin-bottom: 0.8rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.lede a {
  color: var(--cyan-deep);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.lede-secondary { color: var(--muted); }

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.6rem 0 2rem;
}

.topic-list span {
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(8, 122, 128, 0.16);
  border-radius: 999px;
  color: var(--cyan-deep);
  background: rgba(0, 168, 168, 0.06);
  font: 500 0.72rem/1.2 "IBM Plex Mono", monospace;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.65rem 1.05rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  color: white;
  background: var(--ink);
  box-shadow: 0 8px 22px rgba(7, 26, 43, 0.16);
}

.button-primary:hover { background: #0d2b43; }

.button-ghost {
  border: 1px solid var(--line);
  background: white;
}

.profile-panel {
  align-self: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(245, 247, 249, 0.8);
}

.portrait-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 15px;
  background: #dce8ed;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.portrait-label {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: white;
  background: rgba(7, 26, 43, 0.68);
  backdrop-filter: blur(10px);
  font: 500 0.66rem/1 "IBM Plex Mono", monospace;
}

.profile-facts { margin: 0; padding: 0.65rem 0.45rem 0.25rem; }

.profile-facts div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-facts div:last-child { border-bottom: 0; }

.profile-facts dt {
  color: var(--muted);
  font: 500 0.68rem/1.5 "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-facts dd a,
.school a {
  color: var(--cyan-deep);
  text-decoration: none;
}

.profile-facts dd a:hover,
.school a:hover { text-decoration: underline; }

.profile-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding-top: 0.4rem;
}

.profile-links a {
  padding: 0.55rem;
  border-radius: 9px;
  text-align: center;
  color: var(--ink-soft);
  background: white;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, 130px) 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.5rem 2rem;
}

.signal-row div { display: grid; }

.signal-row strong {
  font: 500 1.5rem/1 "IBM Plex Mono", monospace;
  color: var(--cyan-deep);
}

.signal-row span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.signal-row p {
  margin: 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.section { padding: 76px 0; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-heading > p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.25rem;
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.panel > h3 {
  margin-bottom: 1.8rem;
  font-size: 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline { margin: 0; padding: 0; list-style: none; }

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 1.5rem;
  padding: 0 0 1.8rem 1.5rem;
}

.timeline li:not(:last-child)::before {
  position: absolute;
  top: 10px;
  bottom: -3px;
  left: 3px;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline-marker {
  position: absolute;
  top: 6px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 168, 168, 0.1);
}

.timeline-meta {
  color: var(--cyan-deep);
  font: 500 0.68rem/1.5 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  white-space: nowrap;
}

.timeline-role {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.timeline h4,
.school h4 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.timeline p,
.school p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.timeline .role-detail {
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.school {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.school:first-of-type { padding-top: 0; }

.org-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(13, 42, 51, 0.07);
}

.org-logo-small {
  width: 38px;
  height: 38px;
  padding: 4px;
  border-radius: 10px;
}

.org-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-role a {
  color: var(--cyan-deep);
  text-decoration: none;
}

.timeline-role a:hover { text-decoration: underline; }

.school small {
  color: var(--cyan-deep);
  font: 500 0.67rem/1.4 "IBM Plex Mono", monospace;
}

blockquote {
  margin: 1.4rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--cyan);
  color: var(--ink-soft);
  background: rgba(0, 168, 168, 0.05);
  font-size: 0.82rem;
  font-style: italic;
}

.publications-section {
  padding: 82px 0;
  color: #f3f8fa;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 42px 42px;
}

.section-heading-light h2 { color: white; }
.section-heading-light > p { color: #9bb0bf; }
.section-heading-light .kicker { color: #6fe0d8; }

.publication-list {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.publication {
  display: grid;
  grid-template-columns: 58px 1fr 70px;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 180ms ease;
}

.publication:last-child { border-bottom: 0; }
.publication:hover { background: rgba(255, 255, 255, 0.045); }
.publication.featured { background: linear-gradient(90deg, rgba(0, 168, 168, 0.12), transparent 60%); }

.pub-index,
.pub-year {
  color: #7890a0;
  font: 500 0.7rem/1.5 "IBM Plex Mono", monospace;
}

.pub-year { text-align: right; }

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #91a7b5;
  font: 500 0.66rem/1.4 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.venue,
.award {
  display: inline-block;
  padding: 0.25rem 0.48rem;
  border-radius: 6px;
}

.venue { color: white; background: #1264a3; }
.venue-ase { background: #7d3b89; }
.venue-iclr { background: #a33636; }
.venue-arxiv { background: #5d6278; }
.award { color: #dcffb5; background: rgba(185, 241, 124, 0.1); }

.publication h3 {
  max-width: 830px;
  margin-bottom: 0.6rem;
  color: white;
  font-size: clamp(1.1rem, 2.1vw, 1.48rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.authors,
.abstract {
  max-width: 850px;
  margin-bottom: 0.65rem;
  color: #a8bac5;
  font-size: 0.84rem;
}

.authors strong { color: #8be4dd; }
.abstract { color: #7f98a8; }

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.pub-links a {
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  color: #d6e4e9;
  font: 500 0.67rem/1.2 "IBM Plex Mono", monospace;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pub-links a:hover {
  border-color: #6fe0d8;
  color: #6fe0d8;
  background: rgba(111, 224, 216, 0.06);
}

.site-footer {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  background: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-inner p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.footer-inner strong { color: var(--ink); font-size: 0.9rem; }
.footer-inner a { color: var(--cyan-deep); font-size: 0.78rem; font-weight: 700; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 168, 168, 0.35);
  outline-offset: 3px;
}

@media (max-width: 880px) {
  .hero-card { grid-template-columns: 1fr; }
  .profile-panel { display: grid; grid-template-columns: 180px 1fr; gap: 0.8rem; align-items: center; }
  .profile-links { grid-column: 1 / -1; }
  .signal-row { grid-template-columns: repeat(3, 1fr); }
  .signal-row p { grid-column: 1 / -1; padding: 1rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .experience-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1100px); }
  .site-header { position: static; }
  .nav { min-height: 64px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { padding-top: 24px; }
  .hero-card { gap: 2rem; padding: 1.45rem; border-radius: 18px; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.35rem); }
  .lede { font-size: 0.98rem; }
  .profile-panel { display: block; max-width: 340px; }
  .signal-row { grid-template-columns: 1fr 1fr; padding-inline: 0.5rem; }
  .signal-row div:nth-child(3) { grid-column: 1 / -1; }
  .section { padding: 56px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1rem; }
  .timeline li { grid-template-columns: 88px 1fr; gap: 0.8rem; padding-left: 1.2rem; }
  .publication { grid-template-columns: 34px 1fr; gap: 0.8rem; }
  .pub-year { grid-column: 1; grid-row: 2; text-align: left; }
  .pub-body { grid-row: 1 / span 2; grid-column: 2; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner p:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
