body {
  font-family: 'Noto Sans', sans-serif;
  color: #202124;
  background: #ffffff;
}

.top-strip {
  border-bottom: 1px solid #ececec;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.top-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.more-research {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.research-links a {
  color: #3273dc;
  font-size: 0.95rem;
}

.publication-title,
.section-title,
.subsection-title {
  font-family: 'Google Sans', sans-serif;
}

.publication-title {
  letter-spacing: -0.03em;
}

.publication-subtitle,
.publication-venue {
  color: #4b5563;
}

.title-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.title-logo-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 1.5px solid #dcdfe5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #7a8393;
  background: #fafafa;
}

.publication-authors a,
.publication-meta a {
  color: #3273dc;
}

.publication-authors {
  line-height: 1.9;
}

.publication-meta {
  color: #4b5563;
}

.tldr-box {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.8;
  color: #3f3f46;
}

.project-copy {
  font-size: 1.02rem;
  line-height: 1.95;
  color: #30343b;
}

.media-placeholder {
  border: 1px solid #dfe3ea;
  background: #fbfcfd;
  border-radius: 10px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-media-placeholder {
  min-height: 400px;
}

.method-placeholder {
  min-height: 420px;
}

.method-figure {
  border: 1px solid #dfe3ea;
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem;
}

.method-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.teaser-video-shell {
  border: 1px solid #dfe3ea;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.75rem;
}

.teaser-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #000000;
}

.result-placeholder.tall {
  min-height: 310px;
}

.result-placeholder.wide {
  min-height: 340px;
}

.placeholder-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #505968;
}

.placeholder-caption {
  margin-top: 0.45rem;
  color: #81889a;
  font-size: 0.96rem;
}

.results-block + .results-block {
  margin-top: 3rem;
}

.result-text {
  color: #4b5563;
  margin-bottom: 1rem;
}

.comparison-shell {
  margin-top: 1.2rem;
}

.sequence-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
}

.sequence-button {
  border: 1px solid #d8dee8;
  background: #ffffff;
  color: #465163;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sequence-button.is-active {
  background: #1f2937;
  color: #ffffff;
  border-color: #1f2937;
}

.comparison-stack {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.comparison-card {
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  padding: 1.2rem;
  background: #fbfcfe;
}

.comparison-empty {
  margin-top: 1.2rem;
  border: 1px dashed #d8dee8;
  border-radius: 10px;
  padding: 1.3rem;
  text-align: center;
  color: #697386;
  background: #ffffff;
}

.comparison-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.comparison-mode-title {
  margin: 0;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #202124;
}

.comparison-mode-copy {
  margin: 0.3rem 0 0;
  color: #697386;
  font-size: 0.95rem;
}

.comparison-sequence-name {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #465163;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.65rem;
}

.comparison-placeholder {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  overflow: hidden;
  min-height: 340px;
  background: #fbfcfd;
}

.comparison-side {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7e8797;
  font-weight: 600;
}

.left-side {
  background: linear-gradient(180deg, #fafbfd, #f2f5f9);
}

.right-side {
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

.comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(50, 115, 220, 0.5);
  transform: translateX(-50%);
}

.comparison-slider-placeholder {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7dce4, #3273dc, #d7dce4);
  margin-top: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid #dfe3ea;
  background: #fafbfc;
  color: #5b6474;
  font-size: 0.92rem;
}

.custom-footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: #666;
  background: #fff;
}

.custom-footer a {
  color: #3273dc;
}

@media (max-width: 768px) {
  .top-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .comparison-placeholder {
    grid-template-columns: 1fr;
  }

  .comparison-divider {
    display: none;
  }

  .comparison-header {
    gap: 1rem;
    flex-direction: column;
  }

  .comparison-card-head {
    flex-direction: column;
  }
}


.comparison-stage {
  --split: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  overflow: hidden;
  background: #0f1115;
  touch-action: none;
}

.comparison-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-video-base {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.comparison-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  clip-path: inset(0 0 0 var(--split));
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.comparison-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  transform: translateX(-50%);
  width: 48px;
  border: 0;
  padding: 0;
  background: transparent;
  z-index: 3;
  cursor: ew-resize;
}

.comparison-handle-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.comparison-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

.comparison-handle:focus-visible .comparison-handle-knob {
  outline: 2px solid #3273dc;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .comparison-stage {
    aspect-ratio: 4 / 3;
  }
}
