:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --text: #17211d;
  --muted: #647169;
  --line: #ded9ce;
  --accent: #246b5a;
  --accent-2: #b48231;
  --soft: #e9f1ed;
  --shadow: 0 22px 70px rgba(23, 33, 29, 0.12);
}

* {
  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;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.topbar,
.container,
.hero-grid {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.container.narrow {
  width: min(840px, calc(100% - 32px));
}

.site-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(246, 244, 239, 0.88), var(--bg)),
    radial-gradient(circle at 12% 5%, rgba(36, 107, 90, 0.18), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(180, 130, 49, 0.18), transparent 34%);
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
  padding: 58px 0 78px;
}

.project-title-wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 72px;
  text-align: center;
}

.project-title-wrap h1 {
  max-width: 1040px;
  margin: 0 auto;
}

.project-title-wrap .lead {
  margin-left: auto;
  margin-right: auto;
}

.project-title-wrap .hero-actions {
  justify-content: center;
}

.affiliation {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

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

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
}

h2 {
  margin: 0 0 16px;
  font-size: 38px;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

p {
  margin: 0 0 16px;
}

.lead {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.08);
}

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

.profile-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.profile-card h2 {
  margin-top: 18px;
  font-size: 30px;
}

.small {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 74px 0;
}

.section.alt {
  background: #ebe6dc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.caption {
  width: min(860px, 100%);
  margin: 16px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.project-media-frame {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project-media-frame img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
}

.project-media-frame.compact {
  margin-bottom: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: center;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #183f35, #315f55);
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow);
}

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

.three-col article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.three-col p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: stretch;
}

.feature-image,
.feature-panel,
.paper-row,
.pipeline-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(23, 33, 29, 0.09);
}

.feature-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  padding: 16px;
}

.feature-panel {
  padding: 28px;
}

.meta,
.authors {
  color: var(--muted);
  font-weight: 600;
}

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

.paper-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 18px;
}

.paper-row.no-thumb {
  grid-template-columns: 1fr;
}

.thumb-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.paper-main p:last-child {
  margin-bottom: 0;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  text-underline-offset: 4px;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pipeline-grid article {
  padding: 22px;
}

.pipeline-grid span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

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

.figure-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

.result-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(23, 33, 29, 0.09);
}

.result-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 10px;
}

.result-grid figcaption {
  padding: 12px 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 12px;
}

.resource-list li {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.resource-list a,
.resource-list strong {
  color: var(--accent);
  font-weight: 800;
}

.resource-list span {
  color: var(--muted);
}

.citation-box {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border-radius: 8px;
  background: #17211d;
  color: #f6f4ef;
  font-size: 14px;
  line-height: 1.55;
}

.footer {
  padding: 46px 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.footer h2 {
  color: var(--text);
  font-size: 30px;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

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

  .hero-grid,
  .feature-grid,
  .paper-row,
  .pipeline-grid,
  .figure-strip,
  .footer-grid,
  .split,
  .three-col,
  .result-grid,
  .resource-list li {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 38px 0 56px;
  }

  .section {
    padding: 54px 0;
  }

  .lead {
    font-size: 18px;
  }
}
