:root {
  --bg: #f7fbff;
  --bg-soft: #ecf6fb;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --text: #172130;
  --muted: #546173;
  --subtle: #748094;
  --line: rgba(37, 59, 86, 0.15);
  --cyan: #0aa6c2;
  --blue: #4169e1;
  --magenta: #b94ba0;
  --amber: #d29016;
  --green: #1a9b67;
  --max: 1120px;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(43, 82, 120, 0.14);
  font-synthesis-weight: none;
  text-rendering: geometricPrecision;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% 8%, rgba(28, 181, 213, 0.22), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(255, 181, 218, 0.2), transparent 30%),
    radial-gradient(circle at 46% 48%, rgba(93, 127, 232, 0.1), transparent 36%),
    linear-gradient(180deg, #fbfdff 0%, #eef8fb 44%, #f8fbf4 100%);
}

a { color: inherit; text-decoration: none; }

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

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-glow::before,
.page-glow::after {
  content: "";
  position: absolute;
  width: 58vw;
  height: 58vw;
  min-width: 520px;
  min-height: 520px;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.14;
  transform: translateZ(0);
}

.page-glow::before {
  left: -24vw;
  top: 6vh;
  background: conic-gradient(from 180deg, var(--cyan), var(--blue), transparent, var(--magenta), var(--cyan));
}

.page-glow::after {
  right: -28vw;
  top: 34vh;
  background: conic-gradient(from 40deg, var(--magenta), var(--amber), transparent, var(--cyan), var(--magenta));
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(37, 59, 86, 0.12);
  background: rgba(250, 253, 255, 0.76);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  letter-spacing: 0;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 24px rgba(10, 166, 194, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a { transition: color 160ms ease; }
.nav-links a:hover { color: var(--text); }

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

.venue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(43, 82, 120, 0.1);
  font-size: 14px;
  margin-bottom: 24px;
}

.venue strong { color: var(--text); font-weight: 720; }

h1 {
  margin: 0 auto 14px;
  max-width: 980px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
  word-spacing: 0.035em;
  font-weight: 860;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, #0c6574 0%, #4169e1 42%, #b94ba0 76%, #a96b00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin: 0 auto 22px;
  max-width: 850px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.authors {
  max-width: 880px;
  margin: 18px auto 8px;
  color: #293647;
  font-size: 16px;
  line-height: 1.7;
}

.authors a {
  border-bottom: 1px solid rgba(65, 105, 225, 0.32);
}

.affiliations {
  color: var(--subtle);
  font-size: 14px;
  margin-bottom: 28px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 38px rgba(43, 82, 120, 0.12);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  font-size: 15px;
  font-weight: 650;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(65, 105, 225, 0.28);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0aa6c2, #4169e1 58%, #b94ba0);
  border-color: rgba(65, 105, 225, 0.18);
}

.teaser-card {
  position: relative;
  overflow: hidden;
  margin: 34px auto 0;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(37, 59, 86, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 248, 251, 0.72));
  box-shadow: var(--shadow);
}

.teaser-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(28, 181, 213, 0.12), transparent 30%, transparent 68%, rgba(255, 181, 218, 0.16));
  mix-blend-mode: screen;
  z-index: 1;
}

.teaser-card video,
.teaser-card img {
  width: 100%;
  /* aspect-ratio: 16 / 10; */
  padding: 24px;
  object-fit: cover;
  background: #dce9ef;
}


.caption {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px auto 0;
  max-width: 980px;
}

section {
  padding: 56px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 26px;
}

.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 10px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
  word-spacing: 0.025em;
  font-weight: 820;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.panel {
  border: 1px solid rgba(37, 59, 86, 0.13);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 255, 0.68));
  box-shadow: 0 18px 58px rgba(43, 82, 120, 0.12);
  overflow: hidden;
}

.abstract {
  padding: 30px;
  color: #293647;
  font-size: 17px;
}

.abstract p { margin: 0; }

.key-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.key-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 59, 86, 0.12);
}

.key-card .num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(10, 166, 194, 0.11);
  color: var(--cyan);
  font-weight: 760;
  border: 1px solid rgba(10, 166, 194, 0.2);
}

.key-card h3,
.result-card h3,
.method-step h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.key-card p,
.result-card p,
.method-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

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

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(37, 59, 86, 0.13);
  background: rgba(255, 255, 255, 0.72);
}

.media-card img,
.media-card video {
  width: 100%;
  aspect-ratio: 18 / 9;
  object-fit: cover;
  background: #dce9ef;
}

.media-card figcaption {
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.method-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.method-step {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 59, 86, 0.12);
}

.method-step::after {
  content: "→";
  position: absolute;
  right: -12px;
  top: 22px;
  color: var(--subtle);
  font-weight: 800;
  z-index: 2;
}

.method-step:last-child::after { display: none; }

.chip {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #061015;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.results-grid.four-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-section {
  margin-top: 34px;
}

.result-section:first-of-type {
  margin-top: 0;
}

.result-section-head {
  max-width: 840px;
  margin-bottom: 16px;
}

.result-section-head h3 {
  margin: 0 0 6px;
  font-size: clamp(23px, 2.7vw, 31px);
  line-height: 1.18;
  letter-spacing: 0;
}

.result-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.result-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(37, 59, 86, 0.13);
  background: rgba(255, 255, 255, 0.72);
}

.result-card img,
.result-card video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #dce9ef;
}

.result-card.crop-bottom video {
  aspect-ratio: 2.54 / 1;
  object-position: center bottom;
}

.result-card .label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-card .body { padding: 18px; }

.pair-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(37, 59, 86, 0.13);
  background: rgba(255, 255, 255, 0.72);
}

.pair-card.crop-bottom {
  grid-column: 1 / -1;
}

.pair-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(37, 59, 86, 0.12);
}

.pair-videos video,
.pair-videos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #dce9ef;
}

.pair-card.crop-bottom .pair-videos video,
.pair-card.crop-bottom .pair-videos img {
  aspect-ratio: 2.54 / 1;
  object-position: center bottom;
}

.pair-card.crop-bottom .pair-videos {
  align-items: stretch;
}

.peak-time-grid .pair-videos {
  gap: 12px;
  padding: 12px;
  background: rgba(222, 237, 246, 0.58);
}

.peak-time-grid .pair-videos img {
  border-radius: 0;
}

.pair-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(37, 59, 86, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pair-labels span {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.pair-card .body {
  padding: 18px;
}

.pair-card h3,
.pair-card p {
  margin: 0;
}

.pair-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.pair-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.video-panel {
  padding: 12px;
}

.video-panel iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: calc(var(--radius) - 8px);
  background: #dce9ef;
}

.bibtex {
  padding: 0;
  overflow: hidden;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #293647;
  background: rgba(222, 237, 246, 0.52);
  font-size: 14px;
  line-height: 1.6;
}

code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

footer {
  padding: 34px 0 56px;
  color: var(--subtle);
  text-align: center;
  font-size: 14px;
}

.codex-credit {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.todo {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 211, 110, 0.18);
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .key-points, .results-grid, .results-grid.four-grid, .scene-grid, .comparison-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .method-flow { grid-template-columns: 1fr; }
  .method-step::after { display: none; }
  .hero { padding-top: 54px; }
}
