:root {
  --forest: #0b3d2e;
  --pine: #116149;
  --emerald: #178f63;
  --mint: #dff7ea;
  --mint-2: #eefbf3;
  --sage: #b7dcc6;
  --ink: #10201a;
  --muted: #62746c;
  --line: rgba(16, 32, 26, 0.12);
  --card: #ffffff;
  --shadow: 0 18px 55px rgba(10, 55, 38, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfefc;
  line-height: 1.65;
}

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

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

p {
  margin: 0 0 1rem;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  color: var(--forest);
}

h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  letter-spacing: -0.045em;
}

h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 0.75rem;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(850px, calc(100% - 40px));
}

.section-pad {
  padding: 84px 0;
}

.light {
  background: linear-gradient(180deg, var(--mint-2), #fff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 254, 252, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  width: min(1180px, calc(100% - 28px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--forest);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--emerald));
  border-radius: 14px;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
  font-weight: 650;
  color: #24473a;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--emerald);
  border-color: var(--emerald);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--forest);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(23, 143, 99, 0.18), transparent 32%),
    radial-gradient(circle at 88% 22%, rgba(183, 220, 198, 0.55), transparent 30%),
    linear-gradient(180deg, #fbfefc 0%, #effbf4 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% -10%;
  height: 55%;
  background: radial-gradient(circle, rgba(17, 97, 73, 0.13), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.75fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--pine);
  background: rgba(23, 143, 99, 0.11);
  border: 1px solid rgba(23, 143, 99, 0.20);
  font-weight: 800;
  font-size: 0.86rem;
}

.subtitle {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: #2d5546;
}

.author-block {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 4px solid var(--emerald);
  color: #284a3d;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 97, 73, 0.25);
  background: #fff;
  color: var(--forest);
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(10, 55, 38, 0.07);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--emerald));
  border-color: transparent;
}

.hero-card,
.feature-card,
.result-card,
.person-card,
.metric-card,
.pipeline-grid article,
.gallery-grid figure,
.plot-grid figure,
.image-panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-card {
  padding: 34px;
}

.hero-logo {
  display: grid;
  place-items: center;
  height: 150px;
  border-radius: 22px;
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.28), transparent 26%),
    linear-gradient(135deg, var(--forest), var(--pine) 54%, var(--emerald));
  margin-bottom: 22px;
}

.card-kicker,
.result-label,
.role {
  color: var(--emerald);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 850;
}

.check-list {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 25px;
  margin: 8px 0;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 900;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -38px;
  position: relative;
  z-index: 2;
}

.metric-card {
  padding: 22px;
  text-align: center;
}

.metric-value {
  display: block;
  color: var(--forest);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 28px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.timeline {
  padding: 0;
  margin: 0;
  list-style: none;
  border-left: 3px solid var(--sage);
}

.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  position: relative;
  padding: 0 0 18px 24px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--emerald);
  border: 3px solid #fff;
  border-radius: 50%;
}

.timeline time {
  color: var(--forest);
  font-weight: 850;
}

.feature-grid,
.result-grid,
.pipeline-grid,
.people-grid,
.gallery-grid,
.plot-grid {
  display: grid;
  gap: 20px;
}

.feature-grid,
.result-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pipeline-grid,
.people-grid,
.gallery-grid,
.plot-grid {
  grid-template-columns: repeat(4, 1fr);
}

.pipeline-grid article,
.feature-card,
.result-card,
.person-card {
  padding: 24px;
}

.image-panel {
  overflow: hidden;
  margin-bottom: 24px;
}

.image-panel img {
  width: 100%;
  background: #f6fbf8;
}

.caption,
figcaption {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-grid figure,
.plot-grid figure {
  margin: 0;
  overflow: hidden;
}

.gallery-grid img,
.plot-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f6fbf8;
}

.plot-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.people-grid {
  grid-template-columns: repeat(4, 1fr);
}

.avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--emerald));
  border-radius: 20px;
  font-weight: 900;
}

.bibtex {
  overflow-x: auto;
  margin: 20px 0 0;
  padding: 22px;
  color: #eafff2;
  background: #06291e;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}

.site-footer {
  padding: 28px 0;
  color: #dff7ea;
  background: var(--forest);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .result-grid,
  .plot-grid,
  .people-grid,
  .gallery-grid,
  .pipeline-grid,
  .metrics-strip {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(100% - 26px, 1120px);
  }

  .section-pad {
    padding: 58px 0;
  }

  .hero-grid,
  .feature-grid,
  .result-grid,
  .plot-grid,
  .people-grid,
  .gallery-grid,
  .pipeline-grid,
  .metrics-strip {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    margin-top: 18px;
  }

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

  .hero-card {
    padding: 22px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Interactive DUAgent demo */
.demo-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(23, 143, 99, 0.12), transparent 30%),
    radial-gradient(circle at 88% 6%, rgba(183, 220, 198, 0.48), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f2fbf6 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.demo-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: -4px 0 24px;
}

.demo-note {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: stretch;
}

.demo-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 32, 26, 0.13);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.demo-panel-header.compact {
  padding-bottom: 16px;
}

.demo-panel-header h3 {
  margin: 0 0 6px;
}

.demo-panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.demo-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--forest), var(--emerald));
  font-weight: 900;
}

.demo-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}

.demo-node {
  position: relative;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(17, 97, 73, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fcf9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.demo-node span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  margin-bottom: 10px;
  color: var(--emerald);
  background: rgba(23, 143, 99, 0.10);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.demo-node strong,
.demo-node em {
  display: block;
}

.demo-node strong {
  color: var(--forest);
  line-height: 1.2;
}

.demo-node em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.demo-node.active {
  transform: translateY(-3px);
  border-color: rgba(23, 143, 99, 0.72);
  box-shadow: 0 16px 36px rgba(17, 97, 73, 0.17);
}

.demo-node.complete {
  background: linear-gradient(180deg, #ecfbf3, #ffffff);
  border-color: rgba(23, 143, 99, 0.32);
}

.demo-endpoint-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 22px 0;
}

.demo-method {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--pine), var(--emerald));
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.demo-endpoint {
  color: var(--forest);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.demo-json-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 22px 22px;
}

.json-title {
  color: var(--pine);
  font-weight: 850;
  margin-bottom: 8px;
}

.demo-code {
  min-height: 330px;
  max-height: 380px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  color: #eafff2;
  background: #06291e;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.83rem;
  line-height: 1.45;
}

.demo-sandbox {
  margin-top: 20px;
}

.sandbox-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  padding: 22px;
}

.sandbox-controls {
  display: grid;
  gap: 16px;
}

.control-field {
  display: grid;
  gap: 8px;
  color: #23473a;
  font-weight: 760;
}

.control-field span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.94rem;
}

.control-field strong {
  color: var(--emerald);
}

.control-field input[type="range"] {
  width: 100%;
  accent-color: var(--emerald);
}

.control-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--forest);
  background: #fff;
  border: 1px solid rgba(17, 97, 73, 0.22);
  border-radius: 14px;
  font-weight: 800;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.output-card {
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(17, 97, 73, 0.15);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f4fbf7);
}

.output-card span,
.loss-row span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.output-card strong {
  display: block;
  margin-top: 8px;
  color: var(--forest);
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1;
}

.loss-bars {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: #f7fcf9;
  border: 1px solid var(--line);
}

.loss-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
}

.loss-track {
  height: 14px;
  overflow: hidden;
  background: #dcefe4;
  border-radius: 999px;
}

.loss-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.loss-bar.current {
  background: linear-gradient(135deg, #7f8f88, #62746c);
}

.loss-bar.projected {
  background: linear-gradient(135deg, var(--pine), var(--emerald));
}

.loss-row strong {
  color: var(--forest);
  font-size: 0.94rem;
}

.interpretation-box {
  margin-top: 16px;
  padding: 18px;
  color: #12372a;
  background: rgba(23, 143, 99, 0.10);
  border: 1px solid rgba(23, 143, 99, 0.22);
  border-radius: 18px;
  font-weight: 650;
}

body.classical-demo .quantum-only {
  display: none;
}

@media (max-width: 980px) {
  .demo-grid,
  .sandbox-grid,
  .demo-json-grid {
    grid-template-columns: 1fr;
  }

  .output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-code {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .demo-flow,
  .output-grid {
    grid-template-columns: 1fr;
  }

  .loss-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .demo-toolbar .btn {
    width: 100%;
  }
}


.metric-card.emphasis {
  background: linear-gradient(180deg, #ffffff, #f2fbf6);
}

.highlight-grid,
.validation-summary-grid,
.evidence-grid {
  display: grid;
  gap: 20px;
}

.highlight-grid {
  grid-template-columns: repeat(4, 1fr);
}

.highlight-card,
.summary-box,
.evidence-figure {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.highlight-card,
.summary-box {
  padding: 24px;
}

.big-stat {
  margin: 14px 0 14px;
  color: var(--forest);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
}

.mini-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.mini-list li {
  margin: 7px 0;
}

.result-grid-compact {
  margin-bottom: 24px;
}

.plot-grid-wide {
  grid-template-columns: repeat(2, 1fr);
}

.plot-grid-wide img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #f6fbf8;
  padding: 10px;
}

.validation-summary-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.summary-box p,
.highlight-card p,
.result-card p {
  color: #2c4c40;
}

.summary-box code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #eef7f2;
  color: var(--forest);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

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

.evidence-figure {
  margin: 0;
  overflow: hidden;
}

.evidence-figure img {
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
}

.download-row {
  padding: 0 18px 18px;
}

@media (max-width: 980px) {
  .highlight-grid,
  .validation-summary-grid,
  .plot-grid-wide {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .highlight-grid,
  .validation-summary-grid,
  .plot-grid-wide {
    grid-template-columns: 1fr;
  }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.gain-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  border: 1px solid rgba(17, 97, 73, 0.18);
  background: #f3fbf6;
  color: var(--forest);
}

.gain-badge.positive {
  color: #075f39;
  background: rgba(23, 143, 99, 0.12);
  border-color: rgba(23, 143, 99, 0.24);
}

.gain-badge.neutral {
  color: #5f4b07;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.downloads-panel {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f4fbf7);
  box-shadow: var(--shadow);
}

.downloads-panel p {
  color: var(--muted);
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.people-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.person-tab {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(17, 97, 73, 0.20);
  background: #fff;
  color: var(--forest);
  font-weight: 850;
  cursor: pointer;
}

.person-tab.active,
.person-tab:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--emerald));
  border-color: transparent;
}

.person-detail {
  display: none;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.person-detail.active {
  display: grid;
}

.person-detail h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.contribution-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.contribution-list li {
  margin: 6px 0;
}

@media (max-width: 640px) {
  .person-detail {
    grid-template-columns: 1fr;
  }

  .download-buttons .btn,
  .person-tab {
    width: 100%;
  }
}


/* Fix: wide result plots should not be clipped inside two-column cards. */
.results-container {
  width: min(1380px, calc(100% - 40px));
}

.plot-grid-wide {
  grid-template-columns: 1fr !important;
  gap: 32px;
}

.plot-grid-wide figure {
  overflow: hidden;
  padding: 18px;
}

.plot-image-link {
  display: block;
}

.plot-grid-wide img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  padding: 0;
  border-radius: 18px;
  background: #fff;
}

.plot-grid-wide figcaption {
  padding: 18px 6px 4px;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .results-container {
    width: min(100% - 26px, 1120px);
  }

  .plot-grid-wide figure {
    padding: 10px;
  }
}
.people-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.person-tab {
  border: 1px solid rgba(17, 97, 73, 0.25);
  background: #ffffff;
  color: var(--forest);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.person-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--forest), var(--emerald));
  border-color: transparent;
}

.person-detail {
  display: none;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px;
}

.person-detail.active {
  display: block;
}

.contribution-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.contribution-list li {
  margin: 7px 0;
}
.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  color: #6f8078;
  background: #eef5f1;
  border-color: rgba(17, 97, 73, 0.15);
}
/* Clean academic hero inspired by project-page style */
.hero-clean {
  min-height: 92vh;
  padding: 0 0 72px;
  background:
    radial-gradient(circle at 12% 25%, rgba(23, 143, 99, 0.14), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(183, 220, 198, 0.58), transparent 34%),
    linear-gradient(135deg, #f6fffa 0%, #eaf7f0 48%, #eef6ff 100%);
  border-bottom: 1px solid var(--line);
}

.institution-strip {
  width: 100%;
  padding: 22px 0;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(17, 97, 73, 0.14);
  backdrop-filter: blur(14px);
}

.institution-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: left;
}

.institution-inner img {
  max-height: 54px;
  width: auto;
}

.institution-text {
  display: grid;
  gap: 2px;
  color: var(--forest);
}

.institution-text strong {
  font-size: 1.35rem;
  font-weight: 900;
}

.institution-text span {
  color: #47665b;
  font-size: 0.96rem;
  font-weight: 650;
}

.hero-clean-inner {
  padding-top: 68px;
  text-align: center;
}

.hero-paper-title {
  max-width: 1060px;
  margin: 0 auto 26px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: #1f2f29;
}

.hero-project-title {
  margin: 0 auto;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(4.4rem, 12vw, 8.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.075em;
  background: linear-gradient(135deg, var(--forest), var(--emerald), #4ade80);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle-main {
  margin: 34px 0 24px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  color: #394d46;
  letter-spacing: -0.03em;
}

.hero-description {
  max-width: 760px;
  margin: 0 auto 34px;
  color: #53685f;
  font-size: 1.13rem;
  line-height: 1.75;
}

.hero-author-line {
  max-width: 900px;
  margin: 0 auto 24px;
  color: #263a33;
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-author-line sup,
.hero-affiliation-card sup {
  color: var(--emerald);
  font-weight: 900;
}

.hero-affiliation-card {
  width: min(760px, 100%);
  margin: 0 auto 28px;
  padding: 22px;
  color: #64756e;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 97, 73, 0.12);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(10, 55, 38, 0.09);
}

.hero-affiliation-card p {
  margin: 4px 0;
}

.hero-main-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid var(--emerald);
  background: #ffffff;
  color: var(--emerald);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(10, 55, 38, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(10, 55, 38, 0.18);
}

.hero-btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--forest), var(--emerald));
  border-color: transparent;
}

.hero-btn.disabled,
.hero-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  color: #6f8078;
  background: #eef5f1;
  border-color: rgba(17, 97, 73, 0.15);
}

@media (max-width: 760px) {
  .institution-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .institution-inner img {
    max-height: 46px;
  }

  .hero-clean-inner {
    padding-top: 44px;
  }

  .hero-project-title {
    font-size: clamp(3.3rem, 18vw, 5rem);
  }

  .hero-main-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn {
    width: 100%;
  }
}
