html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: #18212b;
  background: #f7f8f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #08121a;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: #050b10;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.05);
  opacity: 0;
  animation: heroMediaCycle 18s infinite;
}

.hero-bg-video {
  animation-delay: 0s;
}

.hero-bg-one {
  animation-delay: 6s;
}

.hero-bg-two {
  animation-delay: 12s;
}

@keyframes heroMediaCycle {
  0%,
  28% {
    opacity: 1;
  }

  33%,
  95% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(5, 14, 20, 0.42), rgba(5, 14, 20, 0.72) 54%, rgba(5, 14, 20, 0.9)),
    linear-gradient(90deg, rgba(5, 14, 20, 0.5), rgba(5, 14, 20, 0.22) 50%, rgba(5, 14, 20, 0.5));
}

.hero-head,
.hero-body,
.hero-foot {
  position: relative;
  z-index: 2;
}

.hero-navbar {
  padding-top: 1rem;
  background: transparent;
  font-weight: 700;
}

.hero-navbar .navbar-item,
.hero-navbar .navbar-item:visited {
  color: rgba(255, 255, 255, 0.9);
}

.hero-navbar .navbar-item:hover {
  color: #d8f36a;
  background: transparent;
}

.hero-brand {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content {
  max-width: 1120px;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #426a63;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #d8f36a;
}

.hero-title {
  margin: 0 auto;
  max-width: 980px;
  color: #fff;
  font-size: clamp(4.8rem, 12vw, 9.5rem);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.hero-subtitle {
  max-width: 980px;
  margin: 1.15rem auto 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.65rem);
  line-height: 1.12;
  font-weight: 760;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
}

.hero-authors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-affiliations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  max-width: 900px;
  margin: 0.75rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.55rem;
}

.hero-actions .button {
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 18, 26, 0.82);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.hero-actions .button[disabled] {
  color: rgba(255, 255, 255, 0.64);
  background: rgba(8, 18, 26, 0.5);
  border-color: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

.hero-foot .tabs {
  position: relative;
  z-index: 2;
}

.hero-foot .tabs ul {
  border: 0;
}

.hero-foot .tabs a {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(8, 18, 26, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
  font-weight: 750;
}

.hero-foot .tabs a:hover {
  color: #d8f36a;
  background: rgba(8, 18, 26, 0.72);
}

.section {
  padding: 5.5rem 1.5rem;
}

.intro-strip,
.method-section,
.citation-section {
  background: #fff;
}

.section-heading {
  max-width: 840px;
  margin-right: auto;
  margin-bottom: 1.8rem;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #111b22;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.06;
  font-weight: 860;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 0.85rem;
  margin-right: auto;
  margin-left: auto;
  color: #53616a;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.58;
  font-weight: 520;
}

.abstract-text {
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  color: #39454e;
  font-size: 1.08rem;
  line-height: 1.82;
  text-align: left;
}

.flag-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1.75rem;
}

.flag-strip img {
  display: block;
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(25, 37, 46, 0.1);
}

.institute-flag {
  width: min(398px, 62vw);
  height: auto;
}

.pai-flag {
  width: clamp(82px, 10vw, 130px);
  height: clamp(82px, 10vw, 130px);
  object-fit: cover;
}

.metric-grid,
.method-grid,
.video-grid,
.gif-grid {
  display: grid;
  gap: 1rem;
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin-top: 2.25rem;
  margin-right: auto;
  margin-left: auto;
}

.metric-grid article,
.method-grid article,
.video-card,
.gif-grid article {
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(25, 37, 46, 0.08);
}

.intro-strip .metric-grid article,
.method-grid article {
  background: #f8faf6;
}

.metric-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 1.35rem 1.45rem;
  outline: none;
  cursor: pointer;
}

.metric-grid article.is-selected {
  border-color: #b8d94e;
  box-shadow: 0 18px 46px rgba(86, 114, 35, 0.16);
}

.metric-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.metric-card-head span {
  color: #426a63;
  font-size: 1.17rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.metric-card-head em {
  flex: 0 0 auto;
  padding: 0.55rem 0.9rem;
  color: #101b22;
  background: #d8f36a;
  border-radius: 6px;
  font-size: 1.9rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.metric-grid strong {
  display: block;
  margin: 1.1rem 0 0;
  color: #102029;
  font-size: clamp(2.7rem, 5vw, 4rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.leaderboard-showcase {
  position: relative;
  max-width: 980px;
  height: clamp(360px, 54vw, 680px);
  margin: 1.25rem auto 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(25, 37, 46, 0.09);
  overflow: hidden;
}

.leaderboard-showcase figure {
  position: absolute;
  inset: 1rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin: 0;
  opacity: 0;
  animation: leaderboardCycle 10s infinite;
}

.leaderboard-showcase figure.is-agichallenge {
  animation-delay: 5s;
}

.leaderboard-showcase.is-manual figure {
  opacity: 0;
  animation: none;
}

.leaderboard-showcase.is-manual figure.is-active {
  opacity: 1;
}

.leaderboard-showcase img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 6px;
  background: #f4f6f1;
}

.leaderboard-showcase figcaption {
  color: #53616a;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

@keyframes leaderboardCycle {
  0%,
  44% {
    opacity: 1;
  }

  50%,
  94% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.method-grid p,
.video-card h3,
.gif-grid h3 {
  color: #53616a;
}

.method-module-intro {
  max-width: 860px;
  margin: 1.45rem auto 1rem;
  color: #43505a;
  font-size: 1.06rem;
  line-height: 1.72;
  text-align: center;
  font-weight: 780;
}

.figure-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem;
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(25, 37, 46, 0.09);
}

.figure-panel img {
  display: block;
  width: 100%;
  border-radius: 6px;
  background: #f5f6f2;
}

.figure-panel figcaption {
  margin-top: 0.8rem;
  color: #5d6b74;
  font-size: 0.94rem;
  line-height: 1.6;
}

.figure-panel.compact {
  margin-top: 1.5rem;
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1120px;
  margin-top: 1.4rem;
  margin-right: auto;
  margin-left: auto;
}

.method-grid article {
  padding: 1.4rem;
}

.method-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 1rem;
  color: #0e211f;
  background: #d8f36a;
  border-radius: 6px;
  font-weight: 900;
}

.method-grid h3,
.two-column-note h3,
.worldarena h3 {
  margin: 0 0 0.75rem;
  color: #132029;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 800;
}

.method-grid p,
.two-column-note p {
  margin: 0;
  line-height: 1.72;
}

.two-column-note {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  max-width: 1120px;
  margin-top: 1.25rem;
  margin-right: auto;
  margin-left: auto;
  padding: 1.5rem;
  color: #43505a;
  background: #eef3ee;
  border: 1px solid #d6e1d6;
  border-radius: 8px;
}

.result-block {
  max-width: 1120px;
  margin-top: 2rem;
  margin-right: auto;
  margin-left: auto;
}

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

.result-block-heading {
  max-width: 840px;
  margin-right: auto;
  margin-bottom: 0.85rem;
  margin-left: auto;
  text-align: center;
}

.result-block-heading h3 {
  margin: 0;
  color: #132029;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.15;
  font-weight: 850;
}

.result-block-heading p {
  max-width: 560px;
  margin: 0.45rem auto 0;
  color: #5d6b74;
  font-size: 0.96rem;
  line-height: 1.5;
}

.result-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(25, 37, 46, 0.08);
}

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

.leaderboard-table {
  min-width: 2600px;
}

.result-table th,
.result-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #e7ece8;
  text-align: left;
  white-space: nowrap;
}

.result-table th {
  color: #24333d;
  background: #f3f6f1;
  font-size: 0.86rem;
}

.result-table td {
  color: #3c4a53;
}

.result-table .metric-direction td {
  color: #66747d;
  background: #fafbf8;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.result-table tr:last-child td {
  border-bottom: 0;
}

.result-table .is-ours td {
  color: #101b22;
  background: #f1ffd0;
  font-weight: 850;
}

.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 220px;
  background: inherit;
}

.leaderboard-table th:first-child {
  z-index: 2;
  background: #f3f6f1;
}

.demo-section {
  background: #eef2ed;
}

.demo-group {
  max-width: 1120px;
  margin: 0 auto;
}

.demo-group + .demo-group {
  margin-top: 3.6rem;
}

.demo-group-heading {
  max-width: 840px;
  margin: 0 auto 1.55rem;
  text-align: center;
}

.demo-group-heading h3 {
  margin: 0;
  color: #132029;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1.16;
  font-weight: 860;
}

.demo-group-heading p {
  max-width: 720px;
  margin: 0.75rem auto 0;
  color: #5d6b74;
  font-size: 1.12rem;
  line-height: 1.55;
}

.demo-subgroup {
  margin-top: 1.75rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid #dfe6e2;
  border-radius: 8px;
}

.demo-subgroup h4 {
  margin: 0 0 1.1rem;
  color: #24333d;
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  line-height: 1.2;
  font-weight: 880;
}

.demo-minor-heading {
  margin: 1.35rem 0 0.2rem;
  color: #32424b;
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 820;
  text-align: left;
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.video-card {
  padding: 0.75rem;
}

.video-card video,
.worldarena video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #071018;
  border-radius: 6px;
}

.video-card .card-gif {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 6px;
  background: #071018;
}

.video-card h3,
.gif-grid h3 {
  margin: 0.8rem 0 0.25rem;
  color: #293942;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 820;
}

.gif-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 1rem;
}

.gif-grid article {
  padding: 0.75rem;
}

.gif-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: #071018;
}

.worldarena {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
  gap: 1.25rem;
  align-items: start;
  max-width: 1120px;
  margin-top: 1.5rem;
  margin-right: auto;
  margin-left: auto;
  padding: 1rem;
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
}

.worldarena-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.team-section {
  background: #fff;
}

.team-panel {
  display: grid;
  gap: 0.85rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  background: #f8faf6;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(25, 37, 46, 0.08);
}

.team-panel article {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e5ebe6;
  border-radius: 8px;
}

.team-panel h3 {
  margin: 0;
  color: #132029;
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 850;
}

.team-panel p {
  margin: 0;
  color: #45535d;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.45;
}

.citation-section pre {
  overflow-x: auto;
  max-width: 980px;
  margin: 0;
  margin-right: auto;
  margin-left: auto;
  padding: 1.25rem;
  color: #dce8e7;
  background: #111c23;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero-navbar {
    padding-top: 0.45rem;
  }

  .hero-navbar .container {
    display: block;
  }

  .hero-navbar .navbar-brand {
    justify-content: center;
  }

  .hero-navbar .navbar-menu {
    display: block;
    overflow-x: auto;
    background: transparent;
    box-shadow: none;
  }

  .hero-navbar .navbar-end {
    display: flex;
    justify-content: center;
    min-width: max-content;
  }

  .hero-navbar .navbar-item {
    display: block;
    flex: 0 0 auto;
    padding: 0.45rem 0.65rem;
  }

  .hero-content {
    width: 100%;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-title {
    font-size: clamp(4rem, 16vw, 7rem);
  }

  .metric-grid,
  .method-grid,
  .video-grid,
  .gif-grid,
  .worldarena,
  .worldarena-grid,
  .team-panel article,
  .two-column-note {
    grid-template-columns: 1fr;
  }

  .result-block-heading {
    display: block;
  }

  .result-block-heading p {
    margin-top: 0.45rem;
  }

  .flag-strip {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 4rem 1rem;
  }

  .hero-title {
    font-size: 3.65rem;
  }

  .hero-subtitle {
    font-size: 1.28rem;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .section-heading h2 {
    font-size: 2.15rem;
  }

  .metric-grid strong {
    font-size: 2.2rem;
  }

  .metric-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-panel h3 {
    font-size: 1.35rem;
  }

  .team-panel p {
    font-size: 1.2rem;
  }

  .leaderboard-showcase {
    height: clamp(320px, 112vw, 560px);
    padding: 0.75rem;
  }

  .leaderboard-showcase figure {
    inset: 0.75rem;
  }
}
