:root {
  --bg: #fcfcfa;
  --surface: #ffffff;
  --text: #111318;
  --muted: #5f6570;
  --line: #e7e8eb;
  --line-strong: rgba(28, 32, 39, 0.12);
  --accent: #8a4424;
  --accent-soft: rgba(138, 68, 36, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.42);
  --nav-highlight: rgba(255, 255, 255, 0.72);
  --shadow-soft: 0 18px 40px rgba(32, 36, 44, 0.08);
  --max-width: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(138, 68, 36, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(102, 126, 114, 0.08), transparent 18%),
    linear-gradient(180deg, #fffdf9 0%, #fcfcfa 48%, #f5f3ef 100%);
}

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

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

.page-shell {
  min-height: 100vh;
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--nav-bg);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 var(--nav-highlight),
    inset 0 -1px 0 rgba(255, 255, 255, 0.26),
    0 12px 34px rgba(37, 42, 52, 0.1);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.brand,
.site-nav,
.menu-toggle {
  position: relative;
  z-index: 1;
}

.brand {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

main {
  padding: 48px 0 72px;
}

.hero {
  padding: 22px 0 30px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(2rem, 4.7vw, 3.35rem);
  line-height: 1.06;
}

.hero-summary,
.overview-copy p,
.info-card p,
.section-note,
.hero-note {
  color: var(--muted);
  line-height: 1.8;
}

.hero-summary {
  max-width: 760px;
  margin: 22px auto 0;
  font-size: 1rem;
}

.authors,
.affiliations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.authors {
  margin-top: 24px;
  font-size: 0.96rem;
  font-weight: 600;
}

.affiliations {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-line a:hover {
  color: var(--accent);
}

.divider-dot {
  width: 4px;
  height: 4px;
  background: #c8ccd3;
  border-radius: 50%;
}

.action-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.action-button,
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.action-button:hover,
.copy-button:hover {
  background: var(--accent-soft);
  border-color: rgba(138, 68, 36, 0.18);
  transform: translateY(-1px);
}

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

.hero-note {
  margin: 18px 0 0;
  font-size: 0.92rem;
}

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

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.video-panel,
.figure-panel,
.citation-box {
  position: relative;
}

.video-panel {
  width: 100%;
  overflow: hidden;
}

.figure-panel,
.video-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.figure-panel img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.video-panel video {
  width: 100%;
  background: #101217;
}

.section-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.overview-copy {
  max-width: 78ch;
}

.overview-intro {
  max-width: none;
}

.overview-copy p {
  margin: 0 0 16px;
}

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

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

.info-card {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(32, 36, 44, 0.05);
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.45;
}

.info-card p {
  margin: 0;
  font-size: 0.92rem;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.benchmark-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(32, 36, 44, 0.05);
}

.benchmark-card-app {
  grid-column: 1 / -1;
}

.benchmark-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.benchmark-index {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.benchmark-head h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
}

.benchmark-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 24px;
  align-items: center;
}

.donut-chart {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--chart);
}

.donut-chart-app {
  width: min(100%, 250px);
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 23%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(28, 32, 39, 0.05);
}

.donut-hole {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18%;
}

.donut-hole span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.donut-hole strong {
  margin-top: 4px;
  font-size: 1.28rem;
  line-height: 1.1;
}

.legend-grid {
  display: grid;
  gap: 10px;
}

.legend-grid-app {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
  align-items: start;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.legend-item i {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.legend-item b {
  color: var(--text);
  font-weight: 600;
}

.citation-box pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfbfc;
  color: #22262f;
  box-shadow: var(--shadow-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
}

.copy-button {
  margin-top: 14px;
}

.site-footer {
  padding: 20px 0 36px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

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

  .benchmark-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    top: 10px;
    padding: 12px 14px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(32, 36, 44, 0.08);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .action-row {
    flex-direction: column;
    align-items: center;
  }

  .action-button,
  .copy-button {
    justify-content: center;
    width: min(100%, 260px);
  }

  .legend-grid-app {
    grid-template-columns: 1fr;
  }

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