:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --muted: #eef2f7;
  --text: #1f2937;
  --soft-text: #5b6472;
  --faint-text: #7c8797;
  --line: #d9e1ea;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #dff5f1;
  --warm: #b45309;
  --warm-soft: #fff3d8;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

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

.narrow {
  max-width: 860px;
}

.section {
  padding: 82px 0;
}

.section-muted {
  background: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(217, 225, 234, 0.9);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: var(--radius);
  background: var(--accent-soft);
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  padding: 8px 11px;
  border-radius: var(--radius);
  color: var(--soft-text);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.hero {
  padding-top: 78px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 70%),
    var(--bg);
}

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

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: #111827;
  font-size: 2.7rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: #172033;
  font-size: 2rem;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  color: var(--soft-text);
  font-size: 1.08rem;
}

.authors {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--soft-text);
  font-size: 0.96rem;
}

.authors p {
  margin: 0;
}

.authors p + p {
  margin-top: 4px;
  color: var(--faint-text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

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

.button.disabled {
  cursor: not-allowed;
  opacity: 0.76;
}

.button.disabled:hover {
  box-shadow: none;
  transform: none;
}

.hero-figure,
.paper-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-figure img,
.paper-figure img {
  width: 100%;
  background: #ffffff;
  cursor: zoom-in;
}

.hero-figure figcaption,
.paper-figure figcaption {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  color: var(--soft-text);
  font-size: 0.93rem;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 30px;
}

.section-heading p:last-child {
  margin: 12px 0 0;
  color: var(--soft-text);
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 28px;
  align-items: end;
}

.narrow > p {
  color: var(--soft-text);
  font-size: 1.02rem;
}

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

.feature-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.feature-card {
  padding: 22px;
}

.feature-card p {
  margin: 0;
  color: var(--soft-text);
}

.card-index {
  display: block;
  margin-bottom: 14px;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 850;
}

.paper-figure {
  margin-top: 26px;
}

.paper-figure.compact {
  margin-top: 0;
}

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

.stat-card {
  padding: 22px;
}

.stat-card span {
  display: block;
  color: var(--soft-text);
  font-size: 0.88rem;
  font-weight: 750;
}

.stat-card strong {
  display: block;
  margin: 8px 0 2px;
  color: var(--accent-dark);
  font-size: 2.15rem;
  line-height: 1;
}

.stat-card p {
  margin: 0;
  color: var(--soft-text);
  font-size: 0.94rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.table-wrap.compact {
  align-self: start;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--text);
  font-size: 0.93rem;
}

.compact table {
  min-width: 520px;
}

caption {
  padding: 16px 18px;
  color: #172033;
  font-weight: 800;
  text-align: left;
}

th,
td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  background: #f3f6fa;
  color: #253145;
  font-size: 0.82rem;
}

.highlight-row {
  background: var(--accent-soft);
  color: #0d4f4a;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.subsection-title {
  margin: 28px 0 14px;
}

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

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

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101827;
  object-fit: contain;
}

.video-card-body {
  padding: 16px;
}

.video-card-body h3 {
  margin-bottom: 6px;
}

.video-card-body p {
  margin: 0;
  color: var(--soft-text);
  font-size: 0.93rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: #172033;
  color: #d5dde8;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  background: rgba(15, 23, 42, 0.82);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1180px, 94vw);
  max-height: 88vh;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

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

  .site-nav {
    justify-content: flex-start;
  }

  .hero-grid,
  .split-heading,
  .two-column,
  .video-grid,
  .failure-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.18rem;
  }

  h2 {
    font-size: 1.66rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .brand {
    white-space: normal;
  }

  .site-nav a {
    padding: 7px 8px;
  }

  h1 {
    font-size: 1.82rem;
  }

  .lead {
    font-size: 1rem;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
