:root {
  color-scheme: light;
  --ink: #12131a;
  --muted: #5d6472;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #e6e1d8;
  --teal: #0f766e;
  --coral: #bd4b3a;
  --gold: #b7832f;
  --blue: #315f9f;
  --shadow: 0 18px 50px rgba(26, 27, 33, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(to bottom, rgba(18, 19, 26, 0.76), rgba(18, 19, 26, 0));
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(12px, 2.5vw, 28px);
  font-size: 14px;
  font-weight: 650;
}

nav a {
  opacity: 0.82;
}

nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 96px clamp(20px, 7vw, 96px) 72px;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 14, 20, 0.92) 0%, rgba(12, 14, 20, 0.76) 42%, rgba(12, 14, 20, 0.38) 100%),
    linear-gradient(0deg, rgba(12, 14, 20, 0.6), rgba(12, 14, 20, 0.12));
}

.hero-content {
  position: relative;
  width: min(860px, 100%);
  padding-top: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f6c76f;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 0 12px;
  color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

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

h1 {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 860px;
}

h1 span {
  color: #f6c76f;
}

.subtitle {
  max-width: 760px;
  margin: 26px 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.45;
}

.authors,
.affiliation {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.authors {
  font-weight: 700;
}

.authors a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.affiliation {
  margin-top: 6px;
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.button.primary {
  color: #111827;
  border-color: #f6c76f;
  background: #f6c76f;
}

.button.disabled {
  cursor: default;
  opacity: 0.72;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

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

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.compact-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4.1vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.abstract-section {
  padding-top: 70px;
  padding-bottom: 52px;
}

.abstract-text {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 30px 34px;
  color: #2e333e;
  font-size: 18px;
  line-height: 1.75;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 38px;
  align-items: center;
}

.intro-copy {
  color: #333743;
  font-size: 18px;
  line-height: 1.75;
}

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

.figure img {
  width: 100%;
  background: #fff;
}

.figure figcaption {
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
}

.intro-figure img {
  width: min(310px, 82%);
  margin: 24px auto;
}

.wide {
  margin: 36px auto 0;
}

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

.claims article,
.method-grid article,
.table-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.claims article {
  padding: 24px;
}

.claims span {
  color: var(--coral);
  font-weight: 900;
}

.claims h3,
.method-grid h3,
.table-panel h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.claims p,
.method-grid p,
.table-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

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

.method-grid article:nth-child(2) {
  border-top-color: var(--gold);
}

.method-grid article:nth-child(3) {
  border-top-color: var(--blue);
}

.method-grid article:nth-child(4) {
  border-top-color: var(--coral);
}

.subsection-heading {
  margin-top: 38px;
  text-align: center;
}

.subsection-heading .eyebrow {
  margin-bottom: 0;
}

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

.innovation-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.innovation-grid span {
  color: var(--blue);
  font-weight: 900;
}

.innovation-grid h3 {
  margin: 10px 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.innovation-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.formula {
  margin-top: 16px;
  padding: 14px 12px;
  color: #1e293b;
  border: 1px solid #dce4ea;
  border-radius: 6px;
  background: #f8fbfc;
  font-size: 15px;
  line-height: 1.45;
  overflow-x: auto;
}

.results-section {
  padding-top: 70px;
}

.result-pair {
  display: grid;
  gap: 26px;
  margin-top: 18px;
}

.result-card {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.result-card h3 {
  margin: 0 0 16px;
  font-size: clamp(25px, 2.7vw, 36px);
  line-height: 1.08;
}

.result-card p:not(.eyebrow) {
  margin: 0;
  color: #3a3f4b;
  font-size: 16px;
  line-height: 1.68;
}

.result-figure img {
  min-height: 320px;
  max-height: 520px;
  object-fit: contain;
}

.ablation-section {
  padding-top: 64px;
}

.ablation-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: stretch;
}

.ablation-figure img {
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

.table-panel {
  padding: 24px;
}

.table-panel h4 {
  margin: 0 0 10px;
  font-size: 20px;
}

.table-panel.compact {
  padding: 18px;
}

.table-panel.compact table {
  min-width: 480px;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 18px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: #2b303b;
  font-size: 12px;
  text-transform: uppercase;
  background: #f6f2eb;
}

.highlight td {
  color: var(--teal);
  font-weight: 900;
}

.citation-section {
  padding-top: 64px;
}

.analysis-section,
.planning-section {
  padding-top: 72px;
}

.analysis-figure img {
  max-height: 640px;
  object-fit: contain;
}

.analysis-table-wrap {
  width: min(760px, 100%);
  margin: 24px auto 0;
}

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

.planning-table {
  width: min(1040px, 100%);
  margin: 0 auto;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #f5f5f0;
  background: #171923;
  border-radius: 8px;
  box-shadow: var(--shadow);
  line-height: 1.6;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 44px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
  }

  nav {
    gap: 14px;
  }

  .hero {
    min-height: 82vh;
    padding-top: 100px;
  }

  .intro-grid,
  .result-pair,
  .ablation-layout {
    grid-template-columns: 1fr;
  }

  .ablation-figure img {
    height: auto;
  }

  .claims,
  .method-grid,
  .innovation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .topbar {
    position: absolute;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
  }

  .hero {
    min-height: 88vh;
    padding: 128px 20px 54px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(12, 14, 20, 0.88), rgba(12, 14, 20, 0.58));
  }

  .subtitle {
    font-size: 17px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 58px 0;
  }

  .claims,
  .method-grid,
  .innovation-grid {
    grid-template-columns: 1fr;
  }
}
