:root {
  --ink: #0e0f12;
  --muted: #5b626e;
  --line: #d8dee8;
  --paper: #f7f8fb;
  --white: #ffffff;
  --green: #0f8f75;
  --blue: #276fbf;
  --cinnabar: #b84a3a;
  --gold: #b58b2a;
  --shadow: 0 18px 50px rgba(14, 15, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15, 143, 117, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(39, 111, 191, 0.06) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 64px 64px;
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(247, 248, 251, 0.88);
  border-bottom: 1px solid rgba(216, 222, 232, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--ink);
  border-radius: 7px;
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover,
.contact-links a:hover,
.publication a:hover,
.feature:hover h3,
.publication-table a:hover {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  min-height: min(760px, calc(100vh - 72px));
  padding: clamp(36px, 5vw, 64px) clamp(20px, 6vw, 92px) 34px;
}

.page-hero {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 6vw, 92px) clamp(36px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.page-hero h1 {
  max-width: 1050px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.hero-copy,
.content-stack,
.publication,
.timeline article,
.teaching-grid article {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
.title-line,
.button {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin-bottom: 12px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: var(--blue);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
  line-height: 1.35;
}

.title-line {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
}

.summary {
  max-width: 760px;
  margin-bottom: 28px;
  color: #30343b;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.hero-actions,
.tags,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.button,
.tags span,
.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 700;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual img {
  width: min(100%, 430px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  margin-left: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: var(--white);
}

.strip div {
  min-height: 112px;
  padding: 24px clamp(16px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.strip div:last-child {
  border-right: 0;
}

.strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.strip span {
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 92px);
}

.section.compact {
  padding-top: clamp(32px, 5vw, 64px);
}

.muted-band {
  background: rgba(255, 255, 255, 0.72);
  border-block: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 86px);
}

.content-stack p {
  color: #30343b;
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
}

.tags {
  margin-top: 24px;
}

.tags span {
  min-height: 36px;
  padding: 7px 10px;
  color: #30343b;
  font-size: 0.88rem;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 32px;
}

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

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

.publication,
.timeline article,
.teaching-grid article,
.feature,
.publication-table article {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.feature {
  display: block;
  color: inherit;
}

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

.publication.featured {
  border-color: rgba(15, 143, 117, 0.38);
  background: linear-gradient(135deg, rgba(15, 143, 117, 0.12), rgba(255, 255, 255, 0.92) 50%);
}

.year {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--cinnabar);
  font-weight: 800;
}

.publication p,
.timeline p,
.teaching-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.publication a {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
}

.publication-table {
  display: grid;
  gap: 14px;
}

.publication-table article {
  min-height: 0;
}

.publication-table h3 a {
  color: inherit;
}

.publication-table h3 a:hover {
  color: var(--green);
}

.publication-table article > span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--cinnabar);
  font-weight: 800;
}

.publication-table p {
  margin-bottom: 0;
  color: var(--muted);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.link-row a,
.link-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
}

.link-row span {
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.article-body {
  display: grid;
  gap: 28px;
}

.article-body section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-body section:last-child {
  border-bottom: 0;
}

.article-body h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
}

.article-body p {
  margin-bottom: 0;
  color: #30343b;
}

.paper-visual {
  position: sticky;
  top: 92px;
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(14, 15, 18, 0.08);
}

.diagram {
  position: relative;
  min-height: 280px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(39, 111, 191, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(15, 143, 117, 0.08) 0 1px, transparent 1px 100%),
    #fbfcfe;
  background-size: 32px 32px;
}

.diagram::before,
.diagram::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.diagram::before {
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -90px;
  border: 34px solid rgba(39, 111, 191, 0.18);
}

.diagram::after {
  width: 220px;
  height: 80px;
  right: -24px;
  top: 62px;
  background: rgba(15, 143, 117, 0.18);
  transform: rotate(-18deg);
}

.diagram-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(35deg, transparent 42%, rgba(184, 74, 58, 0.7) 42.4%, rgba(184, 74, 58, 0.7) 43.5%, transparent 44%),
    linear-gradient(155deg, transparent 44%, rgba(14, 15, 18, 0.42) 44.4%, rgba(14, 15, 18, 0.42) 45.2%, transparent 46%);
}

.diagram-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: 72%;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.paper-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.timeline.wide {
  max-width: 980px;
}

.timeline article {
  min-height: 0;
}

.timeline span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-weight: 800;
}

.teaching {
  background: #101114;
  color: var(--white);
}

.teaching .section-kicker {
  color: #58c6ad;
}

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

.teaching .teaching-grid article {
  background: #181a1f;
  border-color: #30343b;
}

.teaching .teaching-grid p {
  color: #c9d0dc;
}

.teaching-grid.light article {
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
}

.teaching-grid.light p {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: end;
  background: var(--white);
}

.contact-links a {
  background: var(--paper);
}

.footer {
  padding: 28px clamp(20px, 6vw, 92px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer p {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .two-column,
  .contact,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .paper-visual {
    position: static;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-visual img {
    margin-inline: auto;
  }

  .strip,
  .publication-list,
  .teaching-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 20px;
  }

  .nav {
    gap: 16px;
    padding-bottom: 8px;
    white-space: nowrap;
  }

  .hero {
    display: block;
    padding-top: 36px;
    overflow: hidden;
  }

  .hero-copy {
    max-width: 100%;
  }

  .summary,
  .title-line,
  .content-stack p,
  .publication p,
  .timeline p,
  .teaching-grid p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-actions .button,
  .contact-links a {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    min-height: 0;
    margin-top: 32px;
  }

}
