:root {
  --ink: #172033;
  --muted: #596579;
  --line: #d8dee7;
  --paper: #ffffff;
  --wash: #f3f5f7;
  --blue: #2878bd;
  --green: #4f9f55;
  --red: #d64f5f;
  --max-width: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav { min-height: 58px; display: flex; align-items: center; justify-content: space-between; }
.nav-mark { color: var(--ink); font-weight: 800; text-decoration: none; font-size: 1.08rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #374256; text-decoration: none; font-size: 0.9rem; font-weight: 650; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { padding: 82px 0 72px; text-align: center; }
.venue, .section-index, .eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.hero h1 {
  max-width: 1040px;
  margin: 0 auto 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 3.3vw, 2.65rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}
.authors { margin: 0; font-size: 1.28rem; font-weight: 650; }
.lead { max-width: 820px; margin: 20px auto 0; color: var(--muted); font-size: 1.08rem; }
.hero-links { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 19px;
  border: 1px solid #aeb7c3;
  border-radius: 5px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
}
.button.primary { color: #fff; border-color: var(--ink); background: var(--ink); }
.button:hover, .button:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40, 120, 189, 0.12); }

.section { padding: 72px 0; scroll-margin-top: 58px; }
.section-band { background: var(--wash); border-block: 1px solid #e3e7ec; }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.16; font-weight: 600; }
.section-heading p:last-child { margin: 14px 0 0; color: var(--muted); }

.paper-figure { margin: 0; }
.paper-figure img { width: 100%; height: auto; background: #fff; }
.paper-figure figcaption, .motion-gallery figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  line-height: 1.5;
  text-align: center;
}
.wide-figure { width: 100%; }
.medium-figure { max-width: 930px; margin: 34px auto 0; }

.table-wrap { overflow-x: auto; border-block: 1px solid #bcc5d0; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.45; }
th, td { padding: 14px 16px; border-bottom: 1px solid #dfe4ea; text-align: left; vertical-align: top; }
th { color: #263246; background: #f6f7f9; font-weight: 800; }
tbody tr:last-child td { border-bottom: 0; }
.compact-table { max-width: 980px; margin: 34px auto 0; }
.compact-table th:not(:first-child), .compact-table td:not(:first-child) { text-align: center; }
.compact-table .ours { background: #edf5fb; }

.motion-gallery { display: grid; gap: 20px; margin-top: 38px; }
.motion-gallery figure { margin: 0; }
.motion-gallery img { width: 100%; background: #fff; border: 1px solid #dce2e8; }
.motion-gallery figcaption { margin-top: 6px; color: var(--ink); font-weight: 650; }

.result-block { padding: 58px 0; border-top: 1px solid var(--line); }
.result-block:first-of-type { padding-top: 8px; border-top: 0; }
.result-copy { max-width: 820px; margin-bottom: 30px; }
.result-copy h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 2.3vw, 2.15rem); line-height: 1.25; font-weight: 600; }
.result-copy p:last-child { margin: 13px 0 0; color: var(--muted); }
.figure-pair { display: grid; grid-template-columns: 1.18fr 1fr; align-items: start; gap: 34px; }
.split-result { display: grid; grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr); gap: 54px; align-items: center; }
.split-result .result-copy { margin: 0; }

.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-block: 1px solid var(--line); }
.metric-row div { padding: 20px; text-align: center; border-right: 1px solid var(--line); }
.metric-row div:last-child { border-right: 0; }
.metric-row dt { color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.metric-row dd { margin: 8px 0 0; color: var(--muted); font-size: 0.84rem; }

.video-grid { display: grid; gap: 24px; }
.simulation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hardware-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-item { min-width: 0; }
.video-item h3 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; font-weight: 600; }
.video-item video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #e6e9ed; border: 1px solid #cbd2db; }

footer { padding: 34px 0; color: #687386; border-top: 1px solid var(--line); font-size: 0.86rem; text-align: center; }

@media (max-width: 980px) {
  .simulation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure-pair, .split-result { grid-template-columns: 1fr; }
  .split-result { gap: 28px; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .metric-row div:nth-child(2) { border-right: 0; }
  .metric-row div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 26px), var(--max-width)); }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    inset: 58px 0 auto;
    display: none;
    padding: 14px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 58px 0 52px; }
  .section { padding: 54px 0; }
  .simulation-grid, .hardware-grid { grid-template-columns: 1fr; }
  .motion-gallery { gap: 16px; }
  th, td { padding: 11px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
