:root {
  --bg: #ffffff;
  --ink: #31424f;
  --ink-strong: #111111;
  --muted: #6a7f8f;
  --line: #dce4ea;
  --accent: #0b4d6b;
  --accent-soft: #eef5f8;
  --bar: #020202;
  --shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
  --radius: 18px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--ink);
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

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

a:hover {
  text-decoration: underline;
}

.topbar {
  position: fixed;
  top: 0;
  z-index: 20;
  width: 100%;
  height: 48px;
  background: var(--bar);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
}

.brand,
.topnav a {
  color: #ffffff;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.topnav {
  display: flex;
  gap: 22px;
  font-size: 1rem;
}

.page-shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 92px 28px 72px;
}

.hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.profile-card {
  position: sticky;
  top: 86px;
}

.portrait-frame {
  width: 100%;
  aspect-ratio: 1 / 1.04;
  padding: 14px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(11, 77, 107, 0.16), transparent 36%),
    linear-gradient(135deg, #f4f8fb, #e7eff4);
  box-shadow: var(--shadow);
}

.portrait-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 246, 249, 0.88)),
    repeating-linear-gradient(
      -45deg,
      rgba(11, 77, 107, 0.04) 0,
      rgba(11, 77, 107, 0.04) 12px,
      transparent 12px,
      transparent 24px
    );
  color: var(--muted);
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 1.05rem;
}

.portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
}

.profile-meta {
  padding-top: 28px;
}

.profile-meta h1 {
  margin: 0 0 12px;
  color: var(--ink-strong);
  font-size: 2.45rem;
  font-weight: 400;
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.04;
}

.title,
.affiliation,
.profile-note {
  margin: 0 0 6px;
}

.title {
  color: var(--ink-strong);
  font-size: 1.08rem;
  font-weight: 700;
}

.affiliation,
.profile-note {
  color: var(--muted);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
  color: var(--muted);
}

.content-column {
  min-width: 0;
}

.content-section + .content-section {
  margin-top: 52px;
}

.content-section h2 {
  margin: 0 0 18px;
  color: var(--ink-strong);
  font-size: 1.9rem;
  font-weight: 400;
  font-family: "Source Serif 4", Georgia, serif;
}

.content-section h3 {
  margin: 0 0 10px;
  color: var(--ink-strong);
  font-size: 1.15rem;
}

.content-section p {
  margin: 0 0 14px;
}

.callout {
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--accent-soft);
}

.news-list,
.two-column-list ul {
  margin: 0;
  padding-left: 18px;
}

.news-list li,
.two-column-list li {
  margin-bottom: 10px;
}

.news-date {
  margin-right: 6px;
  color: var(--ink-strong);
  font-weight: 700;
}

.news-resource-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 6px;
}

.news-resource-links a {
  font-weight: 700;
  white-space: nowrap;
}

.news-demo-link {
  color: #b25c0d;
}

.section-heading p {
  margin-bottom: 22px;
  color: var(--muted);
}

.publication {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.publication:last-of-type {
  border-bottom: 1px solid var(--line);
}

.pub-visual {
  min-height: 128px;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(11, 77, 107, 0.08);
}

.pub-visual-button {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 128px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.pub-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 128px;
  object-fit: contain;
  object-position: center center;
  background: #ffffff;
  transition: transform 220ms ease;
}

.pub-visual-button:hover img,
.pub-visual-button:focus-visible img {
  transform: scale(1.04);
}

.pub-copy h3 {
  font-size: 1.18rem;
}

.pub-meta,
.pub-authors,
.pub-summary {
  margin-bottom: 10px;
}

.pub-meta {
  display: inline;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.pub-meta-arxiv {
  color: #2e6179;
}

.pub-meta-conf {
  color: #0b4d6b;
}

.pub-meta-spotlight {
  display: inline;
  color: #b25c0d;
  font-size: 1.18rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pub-authors {
  color: var(--muted);
}

.author-self {
  color: var(--ink-strong);
  font-weight: 800;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.pub-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(11, 77, 107, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.pub-links a:hover {
  background: var(--accent-soft);
  border-color: rgba(11, 77, 107, 0.48);
  color: #07384d;
  text-decoration: none;
  transform: translateY(-1px);
}

.pub-link-demo {
  border-color: rgba(194, 117, 17, 0.28) !important;
  background: rgba(227, 147, 44, 0.08) !important;
  color: #b25c0d !important;
}

.pub-link-demo:hover {
  border-color: rgba(194, 117, 17, 0.42) !important;
  background: rgba(227, 147, 44, 0.16) !important;
  color: #8e4a0a !important;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 18, 24, 0.72);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1240px);
  height: min(88vh, 920px);
  margin: min(6vh, 48px) auto;
  padding: 24px;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
  background: #ffffff;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #123848;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.pub-visual-button:focus-visible,
.lightbox-close:focus-visible,
.lightbox-backdrop:focus-visible {
  outline: 2px solid rgba(11, 77, 107, 0.5);
  outline-offset: 3px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.person-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.two-column-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.footer-note {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile-card {
    position: static;
    max-width: 580px;
  }

  .people-grid,
  .two-column-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: auto;
    padding: 10px 0;
  }

  .topbar-inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 0.96rem;
  }

  .page-shell {
    padding-top: 118px;
  }

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

  .pub-visual {
    min-height: 180px;
  }

  .profile-meta h1,
  .content-section h2 {
    line-height: 1.1;
  }
}

@media (max-width: 480px) {
  .page-shell,
  .topbar-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .profile-meta h1 {
    font-size: 2rem;
  }

  .content-section h2 {
    font-size: 1.6rem;
  }
}
