:root {
  --text: #1f2328;
  --muted: #5f6670;
  --faint: #8a9099;
  --line: #e6e8eb;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --blue: #1f77b4;
  --blue-soft: #e8f1f9;
  --red: #c0392b;
  --orange: #e67e22;
  --green: #27ae60;
  --measure: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  text-align: center;
  padding: 72px 0 28px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}

.hero .subtitle {
  font-size: clamp(1.35rem, 3.4vw, 2.05rem);
  font-weight: 500;
  color: var(--muted);
  margin: 16px auto 0;
  max-width: 820px;
  line-height: 1.3;
  text-wrap: balance;
}

.nowrap { white-space: nowrap; }

.hero .authors {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero .review-note {
  margin: 6px auto 0;
  max-width: 560px;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--faint);
}

.hero .affiliations {
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--muted);
}

.hero .affiliations sup { font-weight: 700; padding: 0 1px; }

.hero .affil-note {
  margin: 10px auto 0;
  max-width: 640px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--faint);
}

.hero .links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { text-decoration: none; opacity: 0.88; }

.btn svg { width: 15px; height: 15px; }

section { padding: 28px 0; }

section + section { border-top: 1px solid var(--line); }

h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
  margin: 26px 0 8px;
}

p { margin: 0 0 14px; text-wrap: pretty; overflow-wrap: break-word; }

.lead { font-size: 1.08rem; }

.hl-blue { color: var(--blue); font-weight: 600; }
.hl-red { color: var(--red); font-weight: 600; }

figure { margin: 18px 0 8px; }

figure a { display: block; }

figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

figcaption strong { color: var(--text); }

.teaser { padding-top: 8px; }

.result-video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--soft);
  border-radius: 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 6px;
  padding: 0;
  list-style: none;
}

.steps li {
  background: var(--soft);
  border-radius: 10px;
  padding: 16px 18px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.steps h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
}

.steps p {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.video-pair {
  display: grid;
  grid-template-columns: 0.9407fr 1.2712fr;
  gap: 16px;
  max-width: 680px;
  margin: 12px auto 8px;
}

.video-pair figure { margin: 0; }

.video-pair video {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 8px;
}

.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}

.split figure { margin: 0; }

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
}

main { padding-bottom: 56px; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 18px; }
}
