:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --text: #17202a;
  --text-soft: #344454;
  --muted: #667684;
  --line: #dce4ea;
  --accent: #2f6383;
  --accent-dark: #214a65;
  --accent-soft: #e8f1f6;
  --shadow: 0 22px 55px rgba(27, 48, 65, 0.08);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 228, 234, 0.85);
  background: rgba(247, 249, 251, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.025em;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms ease;
}

nav a:hover {
  color: var(--text);
}

.nav-external {
  color: var(--accent);
}

.hero {
  padding: 96px 0 86px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 83% 21%, rgba(72, 128, 164, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 72px;
  align-items: end;
}

.eyebrow,
.status,
.software-type,
.section-label p,
.label {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Source Serif 4", Georgia, serif;
}

h1 {
  margin: 12px 0 17px;
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 0.97;
  letter-spacing: -0.052em;
}

.lede {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: #bccad4;
}

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

.button.primary:hover {
  background: var(--accent-dark);
}

.button.text-button {
  background: transparent;
}

.intro-card {
  padding: 28px;
  border: 1px solid rgba(201, 216, 226, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.intro-card-row + .intro-card-row {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.intro-card-row > span:last-child {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tag-list span {
  padding: 5px 9px;
  border: 1px solid #d2e0e8;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #34596f;
  font-size: 0.78rem;
  line-height: 1.3;
}

.section {
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 58px;
}

.section-label {
  padding-top: 5px;
}

.section-content {
  max-width: 780px;
}

.prose {
  color: var(--text-soft);
  font-size: 1.03rem;
}

.prose .intro {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.65;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 35px;
}

.section-heading h2,
.contact-inner h2 {
  margin: 5px 0 0;
  font-size: clamp(2.35rem, 5vw, 3.55rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.section-summary {
  max-width: 450px;
  margin-bottom: 4px;
  color: var(--muted);
}

.research-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  border: 1px solid #d3dfe7;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(31, 58, 76, 0.05);
}

.research-main {
  padding: 34px 36px 36px;
}

.research-main h3 {
  max-width: 690px;
  margin: 9px 0 14px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.research-main > p:last-child {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--text-soft);
}

.research-details {
  padding: 34px;
  border-left: 1px solid var(--line);
  background: var(--surface-soft);
}

.research-details div + div {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #d4e1e8;
}

.research-details p {
  margin: 7px 0 0;
  color: #435563;
  font-size: 0.92rem;
}

.publication {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0 4px;
  border-top: 1px solid var(--line);
}

.pub-year {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.3rem;
}

.pub-body {
  max-width: 850px;
}

.pub-body h3 {
  margin: 8px 0 8px;
  font-size: 1.28rem;
  line-height: 1.42;
}

.authors {
  margin-bottom: 2px;
  color: var(--text-soft);
}

.venue {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.software-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.software-card h3 {
  margin: 9px 0 12px;
  font-size: 1.22rem;
}

.software-card p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
}

.education-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-top: 3px;
}

.education-row h3 {
  margin-bottom: 4px;
  font-size: 1.14rem;
}

.education-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.education-row .date {
  white-space: nowrap;
  font-size: 0.9rem;
}

.contact-section {
  padding: 78px 0;
  background: #edf3f7;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact-inner p:not(.eyebrow) {
  max-width: 680px;
  margin: 15px 0 0;
  color: var(--text-soft);
}

.contact-inner a {
  color: var(--accent-dark);
}

.contact-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid #c6d7e1;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 1.65rem;
  transition: transform 140ms ease;
}

.contact-arrow:hover {
  transform: translate(2px, -2px);
}

footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer p {
  margin: 0;
}

.footer div {
  display: flex;
  gap: 18px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

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

  .intro-card {
    max-width: 620px;
  }

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

  .research-details {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 30px), var(--max));
  }

  .nav {
    min-height: 62px;
  }

  nav a:not(.nav-external) {
    display: none;
  }

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

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.2rem);
  }

  .section {
    padding: 64px 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-label {
    padding-top: 0;
  }

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

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

  .education-row {
    flex-direction: column;
    gap: 8px;
  }

  .contact-inner {
    align-items: flex-start;
  }

  .contact-arrow {
    display: none;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
}
