:root {
  --ink: #0b1736;
  --muted: #536079;
  --paper: #f7f8fb;
  --white: #ffffff;
  --line: #d9dfeb;
  --blue: #1246a3;
  --blue-soft: #eaf0fc;
  --cyan: #0c7f94;
  --orange: #e66a3c;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(217, 223, 235, .85);
  background: rgba(247, 248, 251, .9);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-family: Georgia, serif;
}
.brand-mark sup { font-size: .45em; color: #7fd8e7; }
nav { display: flex; gap: 32px; font-size: 13px; font-weight: 650; color: var(--muted); }
nav a:hover { color: var(--blue); }
.nav-paper { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 700; background: white; }

.hero {
  padding: 80px max(28px, calc((100vw - var(--max)) / 2)) 0;
  background:
    linear-gradient(rgba(18, 70, 163, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 70, 163, .035) 1px, transparent 1px),
    radial-gradient(circle at 90% 12%, #dfeaf9 0, transparent 35%);
  background-size: 46px 46px, 46px 46px, auto;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; min-height: 590px; }
.eyebrow, .section-kicker, .card-tag {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(70px, 9vw, 126px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.075em;
}
h1 span { color: var(--blue); }
.subtitle {
  margin: 18px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.authors { display: flex; flex-wrap: wrap; gap: 3px 15px; max-width: 650px; font-size: 14px; font-weight: 700; }
.authors a { color: var(--blue); }
.authors sup, .affiliations sup { color: var(--orange); }
.affiliations { margin: 10px 0 24px; max-width: 650px; color: var(--muted); font-size: 11px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: 13px; font-weight: 750; transition: .2s ease; }
.button:hover { transform: translateY(-2px); border-color: #a8b8d6; box-shadow: 0 8px 22px rgba(11, 23, 54, .08); }
.button.primary { color: white; border-color: var(--blue); background: var(--blue); }
.button-icon { font-family: Georgia, serif; font-size: 11px; }
.hero-visual { position: relative; padding: 34px 20px 18px; border: 1px solid #bdc9dc; border-radius: 10px; background: rgba(255,255,255,.9); box-shadow: 0 24px 60px rgba(30, 58, 104, .13); transform: rotate(1deg); }
.hero-visual::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); border-radius: 7px; pointer-events: none; }
.visual-label { position: absolute; top: -13px; left: 20px; padding: 4px 10px; color: white; background: var(--ink); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; border: 1px solid var(--line); border-bottom: 0; background: white; }
.metric-strip div { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 20px 24px; border-right: 1px solid var(--line); }
.metric-strip div:last-child { border-right: 0; }
.metric-strip strong { color: var(--blue); font-family: Georgia, serif; font-size: 35px; font-weight: 500; letter-spacing: -.04em; }
.metric-strip span { color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.35; text-transform: uppercase; }

.section { max-width: var(--max); margin: 0 auto; padding: 110px 28px; }
.section-index { color: var(--orange); font-family: Georgia, serif; font-size: 17px; font-style: italic; }
.abstract-section { display: grid; grid-template-columns: 70px .85fr 1.15fr; gap: 40px; border-top: 1px solid var(--line); }
h2 { margin-bottom: 22px; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 62px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
.abstract-copy { color: var(--muted); font-size: 15px; }
.abstract-copy .lead { color: var(--ink); font-family: Georgia, serif; font-size: 21px; line-height: 1.5; }
.keywords { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.keywords span { padding: 5px 9px; border: 1px solid #cbd6e9; border-radius: 3px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

.method-section, .results-section { max-width: none; padding-inline: max(28px, calc((100vw - var(--max)) / 2)); }
.method-section { color: #eef5ff; background: var(--ink); }
.section-heading { display: grid; grid-template-columns: 110px 1fr .7fr; gap: 30px; align-items: end; max-width: var(--max); margin: 0 auto 55px; }
.section-heading h2 { margin: 0; }
.section-heading > p { margin: 0 0 6px; color: #aebbd2; font-size: 14px; }
.section-heading.compact { color: var(--ink); }
.section-heading.compact > p { color: var(--muted); }
.paper-figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }
.paper-figure img { width: 100%; }
.paper-figure figcaption { padding: 10px 14px; color: var(--muted); border-top: 1px solid var(--line); font-family: Georgia, serif; font-size: 12px; }
.paper-figure figcaption span { color: var(--blue); font-weight: 700; }
.wide-figure { max-width: var(--max); margin: 0 auto 30px; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: var(--max); margin: 0 auto 30px; }
.method-card { position: relative; overflow: hidden; min-height: 340px; padding: 38px; border: 1px solid #354566; border-radius: 8px; background: #101f42; }
.method-card::after { content: ""; position: absolute; width: 230px; height: 230px; right: -90px; bottom: -130px; border: 45px solid rgba(255,255,255,.025); border-radius: 50%; }
.method-card.global { background: #102843; }
.card-number { position: absolute; top: 24px; right: 28px; color: #4e628a; font-family: Georgia, serif; font-size: 42px; font-style: italic; }
.method-card h3 { margin: 8px 0 12px; font-family: Georgia, serif; font-size: 36px; font-weight: 500; }
.method-card p, .method-card li { color: #b9c6dc; font-size: 13px; }
.method-card ul { padding: 0; list-style: none; }
.method-card li { padding: 9px 0; border-top: 1px solid #334565; }
.method-card strong { color: white; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: var(--max); margin: 0 auto; }

.results-section { background: white; }
.tabs { display: flex; gap: 0; max-width: var(--max); margin: 0 auto; border-bottom: 1px solid var(--line); }
.tab { padding: 12px 20px; color: var(--muted); border: 0; border-bottom: 2px solid transparent; background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.tab.active { color: var(--blue); border-color: var(--blue); }
.table-shell { display: none; max-width: var(--max); margin: 24px auto 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
.table-shell.active { display: block; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: var(--muted); background: #f3f6fb; font-size: 10px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.highlight { color: var(--blue); background: #f2f6fe; }
.robustness-figure { max-width: var(--max); margin: 32px auto 0; }

.takeaways-section { padding-top: 90px; }
.takeaways { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.takeaways article { min-height: 245px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.takeaways span { color: var(--orange); font-family: Georgia, serif; font-style: italic; }
.takeaways h3 { margin: 52px 0 9px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.takeaways p { color: var(--muted); font-size: 12px; }

.citation-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; border-top: 1px solid var(--line); }
.citation-section p { color: var(--muted); font-size: 13px; }
.bibtex-wrap { position: relative; }
.bibtex-wrap button { position: absolute; top: 12px; right: 12px; padding: 7px 10px; color: white; border: 1px solid #425374; border-radius: 4px; background: #1b2a4a; cursor: pointer; font-size: 10px; font-weight: 750; text-transform: uppercase; }
pre { margin: 0; padding: 28px; overflow-x: auto; color: #dae5f8; border-radius: 8px; background: var(--ink); font: 12px/1.7 "SFMono-Regular", Consolas, monospace; }
footer { display: flex; align-items: center; gap: 30px; padding: 36px max(28px, calc((100vw - var(--max)) / 2)); color: #aebbd2; background: #071126; font-size: 11px; }
footer p { margin: 0; }
.footer-note { margin-left: auto; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero-grid, .abstract-section, .section-heading, .citation-section { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-visual { max-width: 560px; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip div:nth-child(2) { border-right: 0; }
  .metric-strip div { border-bottom: 1px solid var(--line); }
  .method-grid, .figure-pair, .takeaways { grid-template-columns: 1fr 1fr; }
  .section-heading { align-items: start; }
}
@media (max-width: 620px) {
  .site-header { height: 60px; padding-inline: 18px; }
  .nav-paper { display: none; }
  .hero, .section, .method-section, .results-section { padding-inline: 18px; }
  .hero { padding-top: 55px; }
  .hero-grid { min-height: auto; }
  h1 { font-size: 68px; }
  .metric-strip, .method-grid, .figure-pair, .takeaways { grid-template-columns: 1fr; }
  .metric-strip div { border-right: 0; }
  .section { padding-top: 75px; padding-bottom: 75px; }
  .method-card { min-height: auto; padding: 28px; }
  .tabs { overflow-x: auto; }
  .tab { white-space: nowrap; }
  footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-note { margin-left: 0; }
}
