:root {
  --ink: #102a3d;
  --muted: #5a6e7c;
  --navy: #0b3b60;
  --blue: #176b91;
  --cyan: #39a9b5;
  --mint: #dff4ef;
  --warm: #f8f4ed;
  --line: #dce6ea;
  --white: #fff;
  --shadow: 0 18px 55px rgba(16, 42, 61, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(220, 230, 234, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 1.5rem; }
.nav-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); font-size: .82rem; font-weight: 900; letter-spacing: .12em; }
.nav-brand:hover { color: var(--blue); }
.nav-logo { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: linear-gradient(135deg, var(--navy), var(--cyan)); border-radius: 9px; box-shadow: 0 6px 14px rgba(23, 107, 145, .2); }
.nav-links { display: flex; align-items: center; gap: 1.45rem; }
.nav-links a { position: relative; color: #496171; font-size: .78rem; font-weight: 700; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 2px; background: var(--cyan); transition: right .2s ease; }
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { right: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: .75rem 1rem; color: white; background: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.publication-header {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 10%, rgba(57,169,181,.18), transparent 34%), linear-gradient(145deg, #f7fbfc 0%, #fff 52%, #f8f4ed 100%);
  border-bottom: 1px solid var(--line);
}
.publication-header::before { content: ""; position: absolute; width: 420px; height: 420px; left: -230px; top: -220px; border: 70px solid rgba(23,107,145,.06); border-radius: 50%; }
.publication-header::after { content: ""; position: absolute; right: -70px; bottom: -180px; width: 390px; height: 390px; background-image: radial-gradient(circle, rgba(23, 107, 145, .14) 1.5px, transparent 1.5px); background-size: 19px 19px; mask-image: linear-gradient(135deg, transparent 5%, black 70%); pointer-events: none; }
.publication-header .hero-body { padding: 5.5rem 1.5rem 4.5rem; }
.publication-header .container { position: relative; z-index: 1; }
.eyebrow, .section-kicker { color: var(--blue); font-size: .77rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { display: inline-flex; padding: .45rem .9rem; margin-bottom: 1.25rem; color: var(--navy); background: var(--mint); border-radius: 999px; }
.publication-title { max-width: 1100px; margin: 0 auto 2rem !important; color: var(--ink) !important; font-size: clamp(2.3rem, 5vw, 4.25rem) !important; font-weight: 760 !important; letter-spacing: -.045em; line-height: 1.05 !important; }
.title-mark { color: var(--blue); white-space: nowrap; }
.publication-authors { max-width: 950px; margin: 0 auto 1rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.9; }
.author-block { display: inline-block; margin: 0 .45rem; }
sup { color: var(--blue); font-size: .68em; font-weight: 700; }
.institutions { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.7rem; color: var(--muted); font-size: .95rem; }
.contribution-note { margin: .55rem 0 0; color: #73838d; font-size: .82rem; }
.publication-venue { display: inline-block; max-width: 740px; margin: 1.45rem auto 1.25rem; padding: .55rem 1rem; color: var(--navy); background: rgba(255,255,255,.74); border: 1px solid var(--line); border-radius: 9px; font-weight: 700; }
.publication-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: .55rem; }
.publication-link { height: auto !important; min-width: 130px; padding: .78rem 1.05rem !important; color: white !important; background: var(--navy) !important; border: 0 !important; border-radius: 12px !important; font-weight: 700; box-shadow: 0 8px 20px rgba(11,59,96,.16); transition: transform .2s ease, background .2s ease; }
.publication-link:hover { transform: translateY(-2px); background: var(--blue) !important; }
.soon { margin-left: .55rem; padding: .08rem .42rem; color: var(--navy); background: #bce9e8; border-radius: 999px; font-size: .6rem; letter-spacing: .05em; text-transform: uppercase; }
.hero-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; margin-top: 1.35rem; }
.hero-tags span { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .72rem; color: #577080; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; font-weight: 700; }
.hero-tags i { color: var(--cyan); }

.section { padding: 5.4rem 1.5rem; }
.teaser-section { padding-top: 3.5rem; padding-bottom: 3rem; }
.abstract-section, .video-section { background: #f7fafb; }
.method-section { background: linear-gradient(180deg, #fff, #f7fbfc); }
.results-section { position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 15% 25%, rgba(57,169,181,.16), transparent 28%), linear-gradient(145deg, #0b304c, #102a3d); }
.results-section::after { content: ""; position: absolute; right: -120px; top: 80px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018); }
.results-section .container { position: relative; z-index: 1; }
.results-section .section-title { color: white; }
.results-section .section-kicker { color: #83d5d5; }
.results-section .section-intro { color: #bed0da; }
.bibtex-section { background: var(--ink); color: white; }
.narrow-content { max-width: 900px !important; }
.section-heading { max-width: 780px; margin: 0 auto 2.7rem; text-align: center; }
.section-title { margin: .25rem 0 1rem !important; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.5vw, 2.9rem); font-weight: 700; line-height: 1.18; }
.section-intro { color: var(--muted); font-size: 1.07rem; }
.abstract-section .section-title { text-align: center; }
.abstract-text { margin: 0; color: #314b5c; font-family: Georgia, "Times New Roman", serif; font-size: 1.14rem; line-height: 1.86; text-align: justify; }

.paper-figure { margin: 0; text-align: center; }
.paper-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; background: white; }
.paper-figure figcaption { max-width: 820px; margin: 1rem auto 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.teaser-figure { max-width: 970px; margin: 0 auto; }
.teaser-figure img, .method-figure img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.teaser-figure img { padding: 8px; background: linear-gradient(145deg, #fff, #f1f8f8); }
.teaser-callouts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 840px; margin: 2rem auto 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 26px rgba(16,42,61,.06); }
.teaser-callouts div { display: flex; flex-direction: column; padding: 1rem 1.25rem; text-align: center; }
.teaser-callouts div + div { border-left: 1px solid var(--line); }
.teaser-callouts strong { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; }
.teaser-callouts span { color: var(--muted); font-size: .77rem; }
.method-figure { max-width: 1240px; margin: 0 auto 3rem; }
.method-figure img { padding: clamp(.5rem, 1.5vw, 1.1rem); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 1100px; margin: 0 auto; }
.method-card { position: relative; padding: 1.7rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(16,42,61,.06); transition: transform .2s ease, box-shadow .2s ease; }
.method-card::before { content: ""; position: absolute; left: 1.7rem; top: 0; width: 38px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 0 0 3px 3px; }
.method-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(16,42,61,.1); }
.step-number { display: block; margin-bottom: .9rem; color: var(--cyan); font-size: .78rem; font-weight: 900; letter-spacing: .15em; }
.method-card h3 { margin: 0 0 .65rem; color: var(--navy); font-size: 1.15rem; font-weight: 800; }
.method-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 auto 3.2rem; }
.metric-card { padding: 2rem 1.4rem; text-align: center; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); box-shadow: 0 14px 35px rgba(0,0,0,.16); transition: transform .2s ease; }
.metric-card:hover { transform: translateY(-4px); }
.metric-card strong { display: block; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 5vw, 4rem); line-height: 1; }
.metric-card strong span { color: var(--cyan); font-size: .45em; }
.metric-card p { margin: .85rem 0 0; color: var(--ink); font-weight: 800; line-height: 1.35; }
.metric-card small { color: var(--muted); font-weight: 500; }
.video-placeholder { position: relative; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 960px; margin: 0 auto; overflow: hidden; color: white; background: radial-gradient(circle at center, rgba(57,169,181,.24), transparent 32%), linear-gradient(135deg, #0b3b60, #102a3d); border: 1px solid #31566f; border-radius: var(--radius); box-shadow: var(--shadow); }
.video-placeholder::before, .video-placeholder::after { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.video-placeholder::before { left: -100px; top: -120px; }
.video-placeholder::after { right: -100px; bottom: -120px; }
.video-placeholder > * { position: relative; z-index: 1; }
.play-icon { display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 1.15rem; padding-left: .3rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 1.4rem; }
.video-placeholder strong { color: white; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.video-placeholder > span:last-child { margin-top: .35rem; color: #c2d7e1; font-size: .9rem; }

.bibtex-section .section-title { margin-bottom: 0 !important; color: white; }
.bibtex-section .section-kicker { color: #83d5d5; }
.bibtex-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.copy-bibtex-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem; color: var(--ink); background: white; border: 0; border-radius: 10px; cursor: pointer; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.copy-bibtex-btn:hover { transform: translateY(-2px); background: #dff4ef; }
.copy-bibtex-btn.copied { color: #0b5e45; background: #bdf0dc; }
pre { margin: 0; padding: 1.55rem !important; overflow-x: auto; color: #dcebf1 !important; background: #0b2232 !important; border: 1px solid #31566f; border-radius: 14px; white-space: pre; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
pre code { color: inherit !important; background: transparent !important; font-family: "Cascadia Code", Consolas, monospace; font-size: .84rem; line-height: 1.7; }

.footer { padding: 2.5rem 1.5rem; color: var(--muted); background: #f7fafb; border-top: 1px solid var(--line); }
.footer p { margin-bottom: .45rem !important; }
.footer a { color: var(--blue); font-weight: 700; }
.license-note { font-size: .84rem; }
.scroll-to-top { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 20; display: grid; place-items: center; width: 46px; height: 46px; color: white; background: var(--navy); border: 0; border-radius: 50%; box-shadow: 0 10px 25px rgba(11,59,96,.25); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease; }
.scroll-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

:focus-visible { outline: 3px solid #45c4c7; outline-offset: 3px; }
@media (max-width: 850px) {
  .section { padding: 4.2rem 1.2rem; }
  .publication-header .hero-body { padding: 4rem 1.1rem 3.5rem; }
  .method-grid, .metrics-grid { grid-template-columns: 1fr; }
  .metrics-grid { max-width: 520px; }
  .nav-links { gap: 1rem; }
  .nav-links a:nth-child(4) { display: none; }
}
@media (max-width: 560px) {
  .site-nav { height: 56px; }
  .nav-inner { padding: 0 .9rem; }
  .nav-links { gap: .8rem; }
  .nav-links a { font-size: .69rem; }
  .nav-links a:nth-child(1), .nav-links a:nth-child(4) { display: none; }
  .nav-brand > span:last-child { display: none; }
  .publication-title { font-size: 2.15rem !important; }
  .publication-authors { font-size: 1.02rem; }
  .author-block { margin: 0 .25rem; }
  .publication-link { flex: 1 1 130px; max-width: 180px; }
  .abstract-text { font-size: 1.02rem; text-align: left; }
  .bibtex-header { align-items: center; }
  .copy-bibtex-btn { padding: .62rem .78rem; }
  .video-placeholder > span:last-child { max-width: 80%; text-align: center; }
  .teaser-callouts { grid-template-columns: 1fr; }
  .teaser-callouts div + div { border-top: 1px solid var(--line); border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
