:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #1c1d1f;
  --muted: #666b73;
  --line: #e4e0d8;
  --accent: #325c80;
  --accent-dark: #1f405c;
  --accent-soft: #e8f0f6;
  --shadow: 0 18px 48px rgba(30, 36, 44, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(50, 92, 128, 0.10), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(247, 247, 244, 0.78);
  border-bottom: 1px solid rgba(228, 224, 216, 0.72);
}

.nav {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-weight: 720;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.section {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
  padding-top: 84px;
  padding-bottom: 84px;
}

.photo-card {
  width: 100%;
}

.photo-frame {
  width: 240px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(228, 224, 216, 0.9);
  border-radius: 30px;
  background: linear-gradient(135deg, var(--accent-soft), #ffffff);
  box-shadow: var(--shadow);
}

.photo-frame img,
.photo-placeholder {
  width: 100%;
  height: 100%;
}

.photo-frame img {
  display: block;
  object-fit: cover;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--accent-dark);
  text-align: center;
}

.photo-placeholder span {
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-placeholder small {
  color: var(--muted);
  font-size: 0.82rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 span {
  display: block;
  color: var(--accent-dark);
  font-size: 0.4em;
  letter-spacing: 0;
  margin-top: 10px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.06rem;
  line-height: 1.36;
}

.lead {
  max-width: 760px;
  color: #3f454d;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(30, 36, 44, 0.04);
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.content-card,
.publication,
.awards-list {
  border: 1px solid rgba(228, 224, 216, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.section-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
}

.helper,
.muted {
  color: var(--muted);
}

.helper {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.92rem;
}

code {
  padding: 0.12em 0.36em;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.9em;
}

.content-card {
  padding: 26px;
}

.software-list,
.service-list {
  display: grid;
  gap: 16px;
}

.content-card p:last-child,
.publication p:last-child {
  margin-bottom: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tags span,
.paper-links a {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 650;
}

.tags span {
  padding: 8px 12px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.item:first-child {
  padding-top: 0;
}

.item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.item-main p {
  margin-bottom: 4px;
}

.item-date {
  color: var(--muted);
  font-size: 0.91rem;
  white-space: nowrap;
}

.publication-list {
  display: grid;
  gap: 16px;
}

.publication {
  padding: 24px 26px;
}

.publication p {
  margin-bottom: 10px;
}

.venue {
  color: var(--muted);
  font-weight: 650;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.paper-links a {
  padding: 6px 11px;
}

.paper-links a:hover {
  background: var(--accent-dark);
  color: #ffffff;
  text-decoration: none;
}

.awards-list {
  padding: 8px 24px;
}

.award {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.award:last-child {
  border-bottom: 0;
}

.award time {
  color: var(--muted);
  white-space: nowrap;
}

.footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 54px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 840px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
    gap: 28px;
  }

  .photo-frame {
    width: min(220px, 70vw);
  }

  .section {
    padding: 54px 0;
  }
}

@media (max-width: 560px) {
  .section,
  .nav,
  .footer {
    width: min(100% - 28px, 1040px);
  }

  .item,
  .award {
    grid-template-columns: 1fr;
    display: block;
  }

  .item-date,
  .award time {
    display: block;
    margin-top: 8px;
  }
}
