:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #5c6b7a;
  --paper: #f7f9f6;
  --surface: #ffffff;
  --line: #d8e0de;
  --teal: #008a8a;
  --green: #2f8b57;
  --amber: #d56f19;
  --plum: #574172;
  --navy: #17283a;
  --shadow: 0 22px 45px rgba(25, 37, 53, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(247, 249, 246, 0.92);
  border-bottom: 1px solid rgba(216, 224, 222, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
}

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

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

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

.hero {
  position: relative;
  min-height: 760px;
  height: 82vh;
  max-height: 940px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 112px 24px 64px;
  background: #142033;
}

.hero-bg {
  position: absolute;
  inset: 8% 0 auto auto;
  width: 74%;
  min-width: 840px;
  opacity: 0.34;
  filter: saturate(0.9);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 51, 0.74);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  color: #fff;
}

.venue {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 800;
  color: #8fe1d8;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: 48px;
  line-height: 1.08;
}

.hero-subtitle {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: 21px;
  color: #d8e5e6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.button.primary {
  border-color: #f0b36f;
  background: #d56f19;
}

.authors {
  max-width: 980px;
  margin-bottom: 8px;
  font-size: 16px;
  color: #f3f6f4;
}

.affiliations,
.author-note {
  max-width: 980px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #bfd0d3;
}

.section {
  padding: 76px 24px;
}

.section:nth-of-type(even) {
  background: var(--surface);
}

.section-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 880px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 36px;
  align-items: end;
}

.section-heading h2,
.abstract-section h2,
.citation-section h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.15;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.abstract-text {
  margin-bottom: 0;
  color: #304050;
  font-size: 18px;
}

.motivation-grid,
.method-steps,
.metric-strip,
.figure-grid {
  display: grid;
  gap: 18px;
}

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

.insight,
.method-steps article,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(25, 37, 53, 0.06);
}

.insight {
  min-height: 210px;
  padding: 24px;
}

.insight-number {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.insight h3,
.method-steps h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.insight p,
.method-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-figure {
  margin: 0 0 24px;
}

.feature-figure img,
.figure-grid img,
video {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-figure img,
.figure-grid img {
  border-radius: 8px;
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

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

.method-steps article {
  padding: 22px;
  border-top: 4px solid var(--teal);
}

video {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #101820;
}

.metric-strip {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 28px;
}

.metric {
  padding: 20px;
}

.metric-value {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.figure-grid.two {
  grid-template-columns: 1fr 1fr;
}

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

.figure-grid figure {
  margin: 0;
}

.figure-grid.two img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 18px;
}

.figure-grid.three img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 16px;
}

.scenario-section .feature-figure img {
  background: #eef3f2;
}

pre {
  overflow: auto;
  padding: 18px;
  border: 1px solid #2d3e51;
  border-radius: 8px;
  color: #edf5f2;
  background: #17283a;
  font-size: 13px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.footer-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  color: var(--teal);
  background: #fff;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    height: auto;
    padding: 18px 20px;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
  }

  .hero {
    min-height: auto;
    height: auto;
    max-height: none;
    padding-top: 72px;
  }

  .hero-bg {
    width: 1100px;
    min-width: 0;
    inset: 12% auto auto 10%;
  }

  h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-heading.split,
  .motivation-grid,
  .method-steps,
  .metric-strip,
  .figure-grid.two,
  .figure-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: block;
    padding: 16px;
  }

  .brand {
    font-size: 17px;
  }

  .nav-links {
    margin-top: 8px;
    justify-content: flex-start;
    font-size: 13px;
  }

  h1,
  .hero-subtitle,
  .authors,
  .affiliations {
    overflow-wrap: break-word;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 30px;
  }

  .section-heading h2,
  .abstract-section h2,
  .citation-section h2 {
    font-size: 27px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .hero-content,
  .section-inner,
  .section-inner.narrow {
    max-width: 358px;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    max-width: 358px;
  }
}
