:root {
  color-scheme: light;
  --ink: #13201d;
  --muted: #5e6a66;
  --paper: #f6f7f2;
  --panel: #ffffff;
  --line: #dfe5dd;
  --deep: #0f1716;
  --deep-2: #172220;
  --teal: #00a878;
  --lime: #d8f364;
  --blue: #3468c7;
  --coral: #e96b4f;
  --shadow: 0 20px 55px rgba(19, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #f4fbf7;
  background: rgba(15, 23, 22, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 34%, #ffffff 0 12%, transparent 13%),
    linear-gradient(135deg, var(--teal), var(--lime) 58%, var(--coral));
  box-shadow: 0 0 24px rgba(0, 168, 120, 0.62);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  color: rgba(244, 251, 247, 0.82);
  font-size: 0.94rem;
}

nav a:hover {
  color: #ffffff;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(78vh - 58px);
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px) clamp(46px, 6vw, 74px);
  color: #f5fbf8;
  text-align: center;
  background:
    linear-gradient(115deg, rgba(15, 23, 22, 0.94) 0%, rgba(15, 23, 22, 0.86) 54%, rgba(15, 23, 22, 0.72) 100%),
    url("assets/images/setup.jpg");
  background-size: cover;
  background-position: center;
}

.hero-copy {
  width: 94vw;
  margin: 0 auto;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 3.85vw, 4.55rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: normal;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 3.05rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.22;
}

.author-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  max-width: 980px;
  margin: 0 auto 16px;
  color: rgba(245, 251, 248, 0.86);
  font-size: clamp(0.98rem, 1.25vw, 1.16rem);
  line-height: 1.45;
}

.author-list a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(216, 243, 100, 0.5);
  text-underline-offset: 3px;
}

.author-list span:not(:last-child)::after,
.author-list a:not(:last-child)::after {
  content: ",";
}

.author-list .author-break {
  flex-basis: 100%;
  width: 0;
  height: 0;
  margin: -8px 0 0;
  padding: 0;
}

.author-list span.author-break::after {
  content: none;
}

.author-list span.author-line-end::after {
  content: none;
}

.author-list sup,
.affiliations sup {
  font-size: 0.68em;
  line-height: 0;
}

.affiliations {
  display: grid;
  gap: 5px;
  max-width: 980px;
  margin: 0 auto 30px;
  color: rgba(245, 251, 248, 0.72);
  font-size: 0.94rem;
  line-height: 1.5;
}

.affiliations p {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #f5fbf8;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 720;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
}

.button.primary {
  color: #071410;
  background: linear-gradient(135deg, var(--lime), #66dfb1);
  border-color: transparent;
}

.metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: -28px auto 0;
}

.metrics div {
  min-height: 122px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metrics strong {
  display: block;
  margin-bottom: 7px;
  color: var(--deep);
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(50px, 6vw, 78px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  color: var(--teal);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  color: #46524e;
  font-size: 0.98rem;
  line-height: 1.68;
}

.wide-figure,
.large-figure {
  overflow: hidden;
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(19, 32, 29, 0.1);
}

.overview-figure {
  width: min(880px, calc(100% - 36px));
}

.large-figure {
  width: min(980px, 100%);
}

.wide-figure img,
.large-figure img {
  width: 100%;
  background: #ffffff;
}

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

.method-grid article {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 35px rgba(19, 32, 29, 0.08);
}

.step {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--coral);
  font-weight: 820;
}

.method-grid p {
  color: var(--muted);
  line-height: 1.66;
}

.dark {
  width: 100%;
  max-width: none;
  padding-right: clamp(18px, 4vw, 56px);
  padding-left: clamp(18px, 4vw, 56px);
  color: #eff8f4;
  background: var(--deep);
}

.dark .section-heading {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.dark .eyebrow {
  color: var(--lime);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.result-table-wrap {
  width: min(980px, 100%);
  margin: 0 auto 24px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.94rem;
}

.result-table caption {
  padding: 14px 16px 8px;
  color: #4a5652;
  font-weight: 720;
  text-align: left;
}

.result-table th,
.result-table td {
  padding: 11px 13px;
  border-top: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.result-table thead th {
  color: #26332f;
  background: #edf3ee;
  font-weight: 780;
}

.result-table tbody th {
  text-align: left;
  font-weight: 740;
}

.result-table .highlight-row th,
.result-table .highlight-row td {
  color: #071410;
  background: #dff8ca;
  font-weight: 780;
}

figure {
  margin: 0;
}

.results-grid figure {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--deep-2);
}

.results-grid img {
  width: 100%;
  height: clamp(180px, 18vw, 230px);
  object-fit: contain;
  background: #ffffff;
}

.results-grid figcaption {
  flex: 1;
  padding: 14px 16px 16px;
  color: rgba(239, 248, 244, 0.76);
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.demo-grid figure {
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(19, 32, 29, 0.1);
}

.demo-grid figure:nth-child(4),
.demo-grid figure:nth-child(5) {
  grid-column: span 3;
}

.demo-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000000;
}

.demo-grid figcaption {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.demo-grid figcaption strong {
  color: var(--ink);
  font-size: 1rem;
}

.citation {
  padding-top: clamp(50px, 6vw, 78px);
}

pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 0;
  padding: 22px;
  border: 1px solid #25332f;
  border-radius: 8px;
  color: #eaf8f1;
  background: #101816;
  line-height: 1.55;
}

code {
  display: block;
  min-width: 100%;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  white-space: pre;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: rgba(239, 248, 244, 0.72);
  background: var(--deep);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer a {
  color: var(--lime);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .metrics,
  .method-grid,
  .results-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

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

  .demo-grid figure,
  .demo-grid figure:nth-child(4),
  .demo-grid figure:nth-child(5) {
    grid-column: span 1;
  }

  .metrics {
    margin-top: 0;
    padding-top: 18px;
  }

  .method-grid article {
    min-height: auto;
  }
}

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

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

  h1 {
    font-size: clamp(2.05rem, 9vw, 3rem);
    line-height: 1.05;
    overflow-wrap: break-word;
  }

  .hero {
    padding-top: 44px;
  }

  .button {
    width: 100%;
  }

  .metrics div {
    min-height: 96px;
  }

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

  footer {
    flex-direction: column;
  }
}
