html {
  scroll-behavior: smooth;
}

body {
  color: #1f2933;
  font-family: "Inter", "Google Sans", "Noto Sans", Arial, sans-serif;
  background: #fbfaf7;
}

a {
  color: #2563eb;
}

a:hover {
  color: #1d4ed8;
}

.project-navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
}

.project-brand {
  color: #8c1515;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.navbar-item {
  font-weight: 600;
}

.project-hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(140, 21, 21, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.12), transparent 30rem),
    linear-gradient(180deg, #fffdfa 0%, #fbfaf7 100%);
}

.project-hero .hero-body {
  padding: 5rem 1.5rem 1.5rem;
}

.project-hero .container.is-max-widescreen {
  max-width: 1680px;
}

.eyebrow {
  color: #8c1515;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.publication-title {
  color: #111111;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  width: 100%;
}

.title-brand {
  color: #8c1515;
}

.publication-subtitle {
  color: #475569;
  font-weight: 500;
  margin: 1.4rem auto 1.6rem;
  max-width: 820px;
}

.publication-authors {
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  line-height: 1.7;
}

.publication-authors a {
  color: #2563eb;
  font-weight: 400;
}

.publication-authors sup {
  font-size: 0.7em;
}

.author-row {
  display: block;
}

.author-block {
  display: inline-block;
  margin: 0 0.5rem;
}

.affiliation-line {
  color: #64748b;
  font-style: italic;
  margin-top: 0.35rem;
}

.publication-links {
  margin-top: 1.5rem;
}

.link-block a {
  margin: 0.3rem;
}

.release-badge {
  max-width: 920px;
  margin: 1.5rem auto;
  padding: 20px 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 5px solid #8c1515;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(140, 21, 21, 0.15);
  text-align: center;
}

.release-badge-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: 0.5px;
}

.release-badge-text i {
  color: #8c1515;
  margin-right: 10px;
}

.teaser-section {
  padding-top: 1rem;
}

.teaser-caption {
  color: #475569;
  font-size: 1.05rem;
  margin: 1rem auto 0;
  max-width: 860px;
  text-align: center;
}

.section {
  padding: 4rem 1.5rem;
}

.feature-section {
  background: #fbfaf7;
}

.section-title {
  color: #8c1515;
  letter-spacing: -0.035em;
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 0.26rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #8c1515 0%, #f59e0b 100%);
}

.highlight-note {
  color: #8c1515;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.1rem auto 0;
  max-width: 860px;
  text-align: center;
}

.section-kicker {
  color: #64748b;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.content p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.video-grid {
  display: grid;
  gap: 1.25rem;
}

.video-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.robustness-detail-grid {
  margin-top: 1.25rem;
}

.video-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 1rem;
}

.feature-section .video-card {
  background: #ffffff;
}

.video-card .title {
  color: #18202f;
  margin-bottom: 0.8rem;
  text-align: center;
}

.video-card.compact {
  padding: 0.85rem;
}

.video-frame {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(140, 21, 21, 0.76), rgba(19, 33, 64, 0.92)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 10px,
      transparent 10px,
      transparent 20px
    );
  border-radius: 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.video-frame::after {
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  content: "";
  height: 4rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
}

.video-frame::before {
  border-bottom: 0.75rem solid transparent;
  border-left: 1.15rem solid rgba(255, 255, 255, 0.86);
  border-top: 0.75rem solid transparent;
  content: "";
  left: calc(50% + 0.16rem);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.video-frame.small::after {
  height: 3.2rem;
  width: 3.2rem;
}

.video-frame.has-video {
  aspect-ratio: 4 / 3;
  background: #000000;
}

.video-frame.has-video::after,
.video-frame.has-video::before {
  display: none;
}

.robustness-highlight-card {
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.robustness-highlight-card .robustness-highlight-video {
  max-width: 100%;
}

.video-frame video {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.video-frame.has-video.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.video-frame.has-video.ratio-16-9 video {
  object-fit: fill;
}

.video-frame.native-ratio {
  aspect-ratio: auto;
  background: transparent;
  box-shadow: none;
}

.video-frame.native-ratio::after,
.video-frame.native-ratio::before {
  display: none;
}

.video-frame.native-ratio video {
  height: auto;
  object-fit: contain;
}

.hero-placeholder {
  border-radius: 1.4rem;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
}

.placeholder-content {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.placeholder-label {
  display: block;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.placeholder-hint {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 0.92rem;
}

.subsection-block {
  margin-top: 3rem;
}

.subsection-block:first-of-type {
  margin-top: 1rem;
}

.robustness-text {
  margin-top: 1.2rem;
}

.advantage-list {
  margin: 1rem auto 0;
  max-width: 860px;
  text-align: left;
}

.advantage-list li {
  font-size: 1.2rem;
  margin: 0.4rem 0;
}

.method-figure {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.method-placeholder {
  align-items: center;
  aspect-ratio: 16 / 7;
  background:
    linear-gradient(120deg, rgba(140, 21, 21, 0.08), rgba(37, 99, 235, 0.08)),
    #f8fafc;
  border: 1px dashed rgba(100, 116, 139, 0.55);
  border-radius: 0.85rem;
  color: #334155;
  display: flex;
  flex-direction: column;
  font-weight: 800;
  gap: 0.4rem;
  justify-content: center;
  text-align: center;
}

.method-placeholder small {
  color: #64748b;
  font-weight: 500;
}

pre {
  background: #111827;
  border-radius: 0.85rem;
  color: #f8fafc;
  overflow-x: auto;
  padding: 1.2rem;
}

pre code {
  color: inherit;
}

.footer {
  background: #f1f5f9;
  color: #64748b;
  padding: 2.5rem 1.5rem;
}

@media screen and (max-width: 1023px) {
  .video-grid.four-up,
  .video-grid.three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .project-navbar .navbar-menu {
    display: none;
  }

  .project-hero .hero-body {
    padding: 3.5rem 1.25rem 2rem;
  }

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

  .section {
    padding: 3rem 1.25rem;
  }

  .video-grid.two-up,
  .video-grid.three-up,
  .video-grid.four-up {
    grid-template-columns: 1fr;
  }

  .video-card {
    padding: 0.8rem;
  }
}
