:root {
  --text: #252525;
  --muted: #505050;
  --line: #e9e9e9;
  --blue: #2f80ed;
  --pink: #e63c9a;
  --button: #343434;
  --button-hover: #1f1f1f;
  --code-bg: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: var(--blue);
}

.shell {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
}

.hero {
  padding: 42px 0 54px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-mark {
  margin-bottom: 10px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.04em;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  color: #1f1f1f;
}

h1 {
  max-width: none;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(2rem, 3vw, 2.5rem);
  text-align: center;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  text-align: center;
}

.authors-line,
.affiliations,
.venue,
.media-caption,
.note,
.footer-inner p {
  color: var(--muted);
}

.authors-line {
  margin: 26px 0 6px;
  font-size: 1.08rem;
  color: var(--blue);
}

.affiliations {
  margin: 0;
  font-size: 1.02rem;
}

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

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background 120ms ease;
}

.actions a:hover {
  background: var(--button-hover);
}

.section {
  padding: 56px 0;
}

.divider {
  border-top: 1px solid var(--line);
}

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

.showcase-media {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.media-caption {
  margin: 10px 0 0;
  text-align: center;
  font-size: 1rem;
}

.abstract-text {
  margin: 0 auto;
  max-width: 960px;
  font-size: 1rem;
  text-align: justify;
}

.pipeline-block img {
  width: 100%;
}

.pipeline-block p,
.note {
  margin: 18px 0 0;
  font-size: 0.98rem;
}

.pipeline-block {
  margin-top: 28px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.comparison-grid figure {
  margin: 0;
}

.comparison-grid video {
  width: 100%;
  background: #000;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px 20px;
  background: var(--code-bg);
  color: #303030;
  font-size: 0.98rem;
  line-height: 1.45;
}

code {
  font-family: "SFMono-Regular", Consolas, Monaco, monospace;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 56px;
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0 0 10px;
}

@media (max-width: 800px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 28px 0 42px;
  }

  .section {
    padding: 42px 0;
  }

  .authors-line,
  .affiliations {
    font-size: 0.98rem;
  }

  h1 {
    white-space: normal;
  }

  pre {
    font-size: 0.9rem;
  }
}
