body {
  font-family: "Noto Sans", Arial, sans-serif;
  color: #172026;
  background: #fbfaf7;
  overflow-x: hidden;
}

a {
  color: #177b83;
}

a:hover {
  color: #b7472a;
}

figure {
  margin: 0;
}

.publication-title,
.publication-authors,
.section-kicker,
.button {
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 32, 38, 0.08);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 1rem;
}

.brand-mark {
  font-weight: 800;
  color: #172026;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.hero-main {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
}

.hero-main .hero-body {
  padding-top: 5.5rem;
  padding-bottom: 0;
}

.publication-title {
  max-width: 1080px;
  margin: 0 auto 1.35rem;
  color: #111a20;
  font-size: clamp(2.4rem, 7vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: normal;
}

.hero-teaser {
  width: min(100%, 1180px);
  margin: 4rem auto 0;
}

.hero-teaser img {
  display: block;
  width: 100%;
  height: auto;
}

.publication-subtitle {
  max-width: 860px;
  margin: 1.1rem auto 0;
  color: #3f5157;
  font-size: 1.18rem;
  line-height: 1.58;
}

.publication-authors {
  margin: 0 auto;
  max-width: 950px;
  line-height: 1.7;
}

.author-block {
  display: inline-block;
  margin: 0 0.18rem;
  white-space: nowrap;
}

.affiliations {
  color: #4f6269;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.publication-links .button {
  height: 2.7rem;
  border-radius: 999px;
  border: 0;
  background: #172026;
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 32, 38, 0.16);
}

.publication-links .button.is-light-link {
  background: #ffffff;
  color: #172026;
  border: 1px solid rgba(23, 32, 38, 0.13);
  box-shadow: none;
}

.media-frame {
  overflow: hidden;
  max-width: 100%;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(24, 38, 44, 0.12);
}

.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
}

.caption {
  margin-top: 0.72rem;
  color: #54666b;
  font-size: 0.96rem;
  line-height: 1.55;
}

.figure-caption {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid rgba(23, 32, 38, 0.08);
  color: #4f6269;
  font-size: 0.92rem;
  line-height: 1.5;
  background: #fff;
}

.figure-caption strong {
  color: #172026;
}

.section {
  padding: 4.4rem 1.5rem;
}

.section.is-soft {
  background: #f1f7f4;
}

#abstract {
  padding-top: 2.4rem;
}

.section-kicker {
  margin-bottom: 0.65rem;
  color: #b7472a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 1rem;
  color: #172026;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-copy {
  color: #3f5157;
  font-size: 1.05rem;
  line-height: 1.72;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #33464c;
  font-size: 0.9rem;
  font-weight: 700;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.method-header {
  max-width: 860px;
  margin: 0 auto 2rem;
}

.method-stack {
  display: grid;
  gap: 1.35rem;
}

.method-figure {
  width: min(100%, 1180px);
  justify-self: center;
}

.method-figure img {
  width: 100%;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.55rem;
}

.method-feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1180px);
  justify-self: center;
  margin-top: 0;
}

.feature-list div {
  padding: 1rem 1.1rem;
  border-left: 4px solid #177b83;
  border-radius: 0 8px 8px 0;
  background: #fff;
  color: #3c5056;
  line-height: 1.55;
}

.wide-container {
  width: min(calc(100% - 2rem), 1700px);
  max-width: 1700px !important;
}

.demo-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(20rem, 0.8fr);
  gap: 1.35rem;
  align-items: stretch;
}

.demos-section {
  background: #fbfaf7;
}

.demos-section .section-title {
  color: #172026;
}

.demo-item {
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(23, 32, 38, 0.1);
  box-shadow: 0 16px 36px rgba(24, 38, 44, 0.08);
}

.demo-main {
  min-height: 100%;
}

.demo-copy {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.demo-bullet {
  padding: 1.15rem 1.2rem;
  border-left: 4px solid #177b83;
  border-radius: 0 8px 8px 0;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(24, 38, 44, 0.07);
  color: #43575d;
  line-height: 1.55;
}

.demo-bullet strong {
  display: block;
  margin-bottom: 0.32rem;
  color: #172026;
  font-size: 1.02rem;
}

.demo-bullet span {
  display: block;
}

.demo-media {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.demo-item img,
.demo-item video {
  display: block;
  width: 100%;
  height: clamp(360px, 34vw, 540px);
  padding: 0.75rem;
  object-fit: contain;
  background: #ffffff;
}

.original-demo,
.original-demo img,
.original-demo video {
  background: #ffffff;
}

.demo-item figcaption {
  padding: 1rem;
  color: #43575d;
  line-height: 1.55;
}

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

.qual-card {
  overflow: hidden;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(24, 38, 44, 0.08);
}

.qual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.qual-body {
  padding: 1rem;
}

.qual-direction {
  color: #b7472a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qual-card h3 {
  margin: 0.35rem 0 0.55rem;
  color: #172026;
  font-size: 1rem;
  line-height: 1.28;
}

.qual-card p {
  color: #53666b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  margin-top: 0.9rem;
}

.score-grid div {
  padding: 0.55rem 0.45rem;
  border: 1px solid rgba(23, 32, 38, 0.08);
  border-radius: 8px;
  background: #f4faf8;
  text-align: center;
}

.score-grid span {
  display: block;
  color: #607178;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-grid strong {
  display: block;
  margin-top: 0.16rem;
  color: #177b83;
  font-size: 0.92rem;
  line-height: 1;
}

.qual-card audio {
  width: 100%;
  height: 34px;
  margin-top: 0.72rem;
}

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

.perception-card {
  overflow: hidden;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(24, 38, 44, 0.08);
}

.grounding-visual {
  position: relative;
  background: #eef6f3;
}

.grounding-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.grounding-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0));
}

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #177b83;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(23, 32, 38, 0.24);
  transform: translate(-50%, -50%);
}

.pin::after {
  content: "";
  position: absolute;
  inset: -0.55rem;
  border: 2px solid rgba(23, 123, 131, 0.35);
  border-radius: inherit;
}

.pin-alt {
  background: #b7472a;
}

.pin-alt::after {
  border-color: rgba(183, 71, 42, 0.35);
}

.perception-body {
  padding: 1rem;
}

.perception-audio {
  display: block;
  width: 100%;
  height: 34px;
  margin-bottom: 0.85rem;
}

.perception-heading .section-title {
  white-space: nowrap;
}

.slot-group {
  padding-top: 0.78rem;
  border-top: 1px solid rgba(23, 32, 38, 0.08);
}

.slot-group + .slot-group {
  margin-top: 0.15rem;
}

.slot-group-title {
  margin-bottom: 0.48rem;
  color: #b7472a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slot-row {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  align-items: start;
  gap: 0.52rem;
  padding: 0.52rem 0;
}

.slot-row + .slot-row {
  border-top: 1px solid rgba(23, 32, 38, 0.06);
}

.slot-row strong {
  color: #172026;
  font-size: 0.9rem;
  line-height: 1.25;
}

.slot-label {
  color: #51656b;
  font-size: 0.82rem;
  line-height: 1.42;
}

.slot-label .slot-conf {
  font-size: 0.72rem;
}

.slot-tag-row {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin-top: -0.12rem;
}

.slot-conf,
.slot-pred {
  display: inline-block;
  padding: 0.26rem 0.42rem;
  border-radius: 999px;
  background: #eef7f6;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.slot-conf {
  margin-left: 0.34rem;
  color: #51656b;
  background: #f0f2f1;
}

.slot-pred {
  color: #177b83;
  font-style: normal;
}

.samples-frame {
  overflow: hidden;
  height: 620px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #111820;
  box-shadow: 0 20px 45px rgba(24, 38, 44, 0.12);
}

.samples-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.bibtex {
  overflow-x: auto;
  min-height: 4rem;
  padding: 1.2rem 1.35rem;
  border-radius: 8px;
  background: #111a20;
  color: #e4efed;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer {
  padding: 2.5rem 1.5rem;
  color: #617278;
  background: #f5f1eb;
}

@media screen and (max-width: 980px) {
  .story-grid,
  .demo-showcase,
  .perception-grid {
    grid-template-columns: 1fr;
  }

  .perception-heading .section-title {
    white-space: normal;
  }

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

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

@media screen and (max-width: 720px) {
  html {
    overflow-x: hidden;
  }

  .site-nav .container {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 1rem;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.7rem 0.9rem;
    overflow-x: visible;
    padding-bottom: 0.15rem;
    font-size: 0.92rem;
  }

  .hero-main .hero-body {
    padding-top: 3.6rem;
  }

  .hero-main .container {
    width: 100%;
    max-width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .publication-title {
    max-width: 18.75rem;
    font-size: 1.34rem;
    line-height: 1.14;
    overflow-wrap: anywhere;
  }

  .publication-subtitle {
    max-width: 18.75rem;
    font-size: 0.94rem;
    overflow-wrap: anywhere;
  }

  .publication-authors {
    max-width: 18.75rem;
    font-size: 1rem !important;
  }

  .author-block {
    white-space: normal;
  }

  .affiliations {
    font-size: 0.95rem !important;
  }

  .affiliations .author-block {
    display: block;
    margin: 0.25rem 0;
  }

  .publication-links {
    max-width: 18.75rem;
    margin-right: auto;
    margin-left: auto;
  }

  .caption {
    max-width: 18.75rem;
    margin-right: auto;
    margin-left: auto;
    overflow-wrap: anywhere;
  }

  .section {
    padding: 3rem 1rem;
  }

  .content.has-text-justified {
    text-align: left !important;
  }

  .qual-grid {
    grid-template-columns: 1fr;
  }

  .samples-frame {
    height: 520px;
  }
}
