body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #222;
  margin: 0;
  background: #fff;
}

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

sup {
  font-size: 0.65em;
}

.container {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
}

.main-container {
  max-width: 980px;
}

.has-text-centered {
  text-align: center;
}

.hero {
  background: #f5f5f5;
}

.hero-body {
  padding: 2.7rem 1.5rem 2.35rem;
}

.title {
  margin: 0 0 1rem;
  color: #222;
  font-weight: 700;
  line-height: 1.12;
}

.title.is-1 {
  font-size: 2.55rem;
}

.paper-title {
  font-size: clamp(0.62rem, 2.75vw, 1.85rem) !important;
  font-weight: 300;
  line-height: 1.22;
  margin-bottom: 1.25rem;
  white-space: nowrap;
}

.title.is-3 {
  font-size: 1.65rem;
  font-weight: 600;
}

.title.is-4 {
  font-size: 1.18rem;
  font-weight: 600;
}

.title.is-5 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  margin: -0.35rem 0 1.2rem;
  color: #444;
  font-weight: 400;
  line-height: 1.35;
}

.subtitle.is-4 {
  font-size: 1.22rem;
}

.is-size-5 {
  font-size: 1.2rem;
}

.is-size-6 {
  font-size: 1rem;
}

.is-size-7 {
  font-size: 0.86rem;
}

.affiliation {
  margin: 0.85rem 0 0;
  color: #333;
  line-height: 1.55;
}

.contact {
  margin: 0.55rem 0 0;
  color: #555;
}

.paper-links {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.button {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  margin: 0.25rem;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.button.is-dark {
  background: #222;
  color: #fff;
}

.button.is-dark:hover {
  background: #000;
}

.button.is-light {
  background: #e9e9e9;
  color: #555;
  border-color: #d8d8d8;
}

.button.is-static {
  cursor: default;
  pointer-events: none;
}

.button.is-rounded {
  border-radius: 999px;
}

.section {
  padding: 4rem 1.5rem;
}

.teaser-section {
  padding-top: 3rem;
  padding-bottom: 3.2rem;
}

.section-title {
  margin-bottom: 1.25rem;
}

.subsection-title {
  margin: 2.35rem 0 1rem;
}

.paper-box {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1.2rem;
}

.paper-box p {
  margin: 0;
  line-height: 1.68;
}

.small-box {
  height: 100%;
}

.media-img {
  width: 100%;
  display: block;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.teaser-img {
  width: 78%;
  max-width: 860px;
  margin: 0 auto;
}

.figure-wrap {
  max-width: 100%;
  margin: 0 auto;
}

.teaser-wrap .caption-text {
  width: 78%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.figure-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.method-figure-grid {
  grid-template-columns: minmax(0, 1.48fr) minmax(260px, 0.72fr);
}

.method-main-figure .media-img {
  min-height: 315px;
  object-fit: contain;
}

.method-mask-figure {
  max-width: 340px;
}

.caption-text {
  margin: 0.65rem 0 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.columns {
  display: grid;
  gap: 1rem;
}

.three-points {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.6rem;
}

.mask-img {
  max-height: 315px;
  object-fit: contain;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.result-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.perturbation-table {
  min-width: 980px;
}

.result-table th,
.result-table td {
  border: 1px solid #e6e6e6;
  padding: 8px 10px;
  font-size: 14px;
  text-align: center;
}

.result-table th:first-child,
.result-table td:first-child {
  text-align: left;
  white-space: nowrap;
}

.result-table thead th {
  background: #f5f5f5;
  font-weight: 700;
}

.result-table .best,
.best {
  font-weight: 700;
}

.result-figure {
  margin-top: 1.4rem;
  max-width: 880px;
}

.result-figure img {
  max-height: 460px;
  object-fit: contain;
}

.real-world-figure {
  max-width: 920px;
}

.real-world-figure img {
  max-height: 330px;
  object-fit: contain;
}

.ablation-table,
.real-table {
  max-width: 820px;
}

.video-grid-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.video-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.second-row {
  margin-top: 0.8rem;
}

.video-subtitle {
  margin-top: 2.75rem;
}

.video-intro {
  margin-bottom: 1.15rem;
}

.video-carousel {
  margin-top: 1.05rem;
}

.carousel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.carousel-card {
  display: none;
}

.carousel-card.is-visible {
  display: block;
}

.video-item video {
  width: 100%;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  display: block;
  background: #000;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.simulation-carousel .video-item video {
  aspect-ratio: 2 / 1;
  object-fit: contain;
}

.video-item p {
  margin: 0.45rem 0 0;
  color: #444;
  font-size: 0.88rem;
  line-height: 1.35;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  min-height: 0.55rem;
  margin-top: 0.75rem;
}

.carousel-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #d0d0d0;
}

.carousel-dot.is-active {
  background: #222;
}

.qualitative-wrap {
  max-width: 720px;
}

.qualitative-wrap img {
  max-height: 980px;
  object-fit: contain;
}

.footer {
  background: #f5f5f5;
  padding: 1.5rem;
  color: #555;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .video-grid-four,
  .video-grid-three,
  .carousel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teaser-img {
    width: 90%;
  }

  .teaser-wrap .caption-text {
    width: 90%;
  }

  .method-figure-grid {
    grid-template-columns: 1fr;
  }

  .method-mask-figure {
    max-width: 480px;
  }

  .method-main-figure .media-img {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .hero-body {
    padding: 2.2rem 1rem 2rem;
  }

  .title.is-1 {
    font-size: clamp(1.75rem, 7.8vw, 2.05rem);
  }

  .subtitle.is-4 {
    font-size: clamp(0.68rem, 2.95vw, 1rem);
  }

  .section {
    padding: 3rem 1rem;
  }

  .three-points,
  .video-grid-four,
  .video-grid-three,
  .carousel-grid {
    grid-template-columns: 1fr;
  }

  .teaser-img {
    width: 100%;
  }

  .teaser-wrap .caption-text {
    width: 100%;
  }

  .button {
    font-size: 0.9rem;
  }

  .caption-text {
    font-size: 0.9rem;
  }
}
