:root {
  --bg: #ffffff;
  --text: #111111;
  --soft: #4f4f4f;
  --muted: #8a8a8a;
  --border: #ececec;
  --accent: #f27100;
  --accent-dark: #d46300;
  --surface: #fafafa;
  --maxw: 1100px;
  --narrow: 860px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.container.narrow { max-width: var(--narrow); }
.center { text-align: center; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-logo:hover { text-decoration: none; }
.nav-links {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}
.nav-links a {
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 46px 0 14px; }
.title {
  margin: 0 auto 20px;
  max-width: 1120px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.title span {
  color: var(--accent);
  display: inline-block;
  margin-right: 0.08em;
  font-family: "Latin Modern Mono", "Computer Modern Typewriter", "CMU Typewriter Text", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1.12em;
  font-weight: 900;
  letter-spacing: 0.045em;
}
.authors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 18px;
  margin-bottom: 4px;
}
.authors a {
  color: var(--text);
  border-bottom: 1px solid transparent;
}
.authors a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.authors sup { color: var(--muted); font-size: 0.7em; }
.affiliations, .equal {
  color: var(--muted);
  font-size: 15px;
}
.affiliations sup { font-size: 0.72em; }
.links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  text-decoration: none;
}
.button.disabled {
  background: #f7f7f7;
  border-color: #dddddd;
  color: #777777;
  cursor: default;
}
.button.disabled:hover {
  background: #f7f7f7;
  border-color: #dddddd;
}
.button.muted {
  background: #111;
  border-color: #111;
}
.button.muted:hover { background: #2a2a2a; border-color: #2a2a2a; }

.section {
  padding: 22px 0;
  text-align: left;
}
.section.compact { padding-top: 8px; }
.divider { padding: 0; }
hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
h2 {
  color: #4a4a4a;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 14px;
  text-align: center;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 19px;
  line-height: 1.25;
  margin: 0 0 8px;
}
p {
  margin: 0 0 10px;
  color: var(--soft);
  line-height: 1.58;
}
p strong { color: var(--text); font-weight: 700; }
.section-lead {
  max-width: var(--narrow);
  margin-bottom: 14px;
  font-size: 17px;
}
.center-text {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.figure {
  margin: 14px 0 30px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.method-figure { margin: 14px 0 30px; }
.figure.method-figure img {
  width: calc(100% - 44px);
  margin: 0 auto;
}
.figure img {
  width: 100%;
  display: block;
  background: #fff;
}
figcaption {
  padding: 13px 16px 15px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.55;
}
figcaption strong { color: var(--text); }

.video-task-list {
  display: grid;
  gap: 28px;
  margin-top: 18px;
}
.video-task h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  text-align: center;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.video-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #f7f7f7;
}
.video-card figcaption {
  padding: 10px 12px 12px;
  font-size: 14px;
}

.method-callout {
  color: var(--accent);
  font-family: "Latin Modern Mono", "Computer Modern Typewriter", "CMU Typewriter Text", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 700;
}

.contribution-list,
.method-list {
  margin: 0;
  padding-left: 20px;
  color: var(--soft);
}
.contribution-list {
  margin-bottom: 10px;
}
.contribution-list li,
.method-list li {
  margin: 6px 0;
  padding-left: 4px;
  line-height: 1.55;
}
.contribution-list li::marker,
.method-list li::marker {
  color: var(--accent);
}
.contribution-list strong,
.method-list strong {
  color: var(--text);
  font-weight: 800;
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.idea-grid article {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 18px;
}
.idea-grid article h3 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 16px;
}
.idea-grid p { margin-bottom: 0; font-size: 15px; }

.bibtex {
  margin: 14px 0 0;
  padding: 18px;
  overflow-x: auto;
  background: #f8f8f8;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: #333;
}
.footer {
  margin-top: 22px;
  padding: 26px 0;
  background: #fafafa;
  border-top: 1px solid var(--border);
}
.footer p { font-size: 14px; color: var(--muted); margin: 0; }

@media (max-width: 780px) {
  .container { padding: 0 18px; }
  .nav-inner { padding: 13px 18px; align-items: flex-start; }
  .nav-links { gap: 10px 14px; justify-content: flex-start; }
  .hero { padding-top: 32px; }
  .title { white-space: normal; font-size: 28px; }
  .figure.method-figure img { width: 100%; }
  .authors { font-size: 16px; }
  .video-grid { grid-template-columns: 1fr; }
  .video-task h3 { font-size: 16px; }
  .idea-grid { grid-template-columns: 1fr; }
  h2 { font-size: 26px; }
  figcaption { font-size: 14px; }
}
.bibtex-empty {
  min-height: 72px;
}
