:root {
  --text: #222;
  --muted: #555;
  --link: #1e9af0;
  --dark: #363636;
  --border: #d8d8d8;
  --light: #f7f7f7;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.hero {
  width: 100%;
}

.hero-body {
  padding: 3.5rem 1.5rem 2.25rem;
}

.container {
  width: 100%;
  margin: 0 auto;
}

.container.head {
  max-width: 1280px;
}

.is-max-desktop {
  max-width: 960px;
}

.columns.is-centered {
  display: flex;
  justify-content: center;
  width: 100%;
}

.column {
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
}

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

.publication-title {
  display: block;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 1.15rem;
  font-family: "Google Sans", "Noto Sans", Arial, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.venue {
  margin-bottom: 1.4rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.publication-authors {
  margin-bottom: 0.25rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.4;
}

.publication-authors a {
  color: var(--link);
}

.publication-authors sup {
  color: var(--text);
  font-size: 0.65em;
}

.affiliation-line {
  color: var(--muted);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  margin-bottom: 1.2rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.button.is-dark {
  color: #fff;
  background: var(--dark);
}

.button.is-dark:hover,
.button.is-dark:focus-visible {
  color: #fff;
  background: #111;
  text-decoration: none;
}

.section {
  width: 100%;
  padding: 2.4rem 1.5rem;
}

.title.is-3 {
  margin: 0 0 1.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
}

.teaser-title {
  max-width: 1080px;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: clamp(1.2rem, 1.8vw, 1.8rem) !important;
}

.content p,
.abstract-text p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: left;
}

.teaser-section .container {
  max-width: 1000px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  justify-content: center;
  align-items: start;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.results-container {
  width: min(960px, 100%);
  max-width: 960px;
}

.result-block {
  margin-top: 1.25rem;
}

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

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.video-item video,
.video-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #000;
  border: 1px solid var(--border);
}

.teaser-grid video {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
}

.video-grid video,
.video-grid img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.caption {
  margin: 0.45rem 0 0;
  text-align: center;
  font-weight: 600;
}

.method-overview {
  margin: 0;
}

.method-overview img {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
}

.method-overview figcaption {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

.publication-video {
  position: relative;
  width: min(900px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.publication-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  background: var(--light);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.footer {
  padding: 2rem 1.5rem;
}

@media (max-width: 760px) {
  .hero-body {
    padding-top: 2rem;
  }

  .publication-title {
    font-size: 2.2rem;
  }

  .teaser-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .results-container {
    max-width: 360px;
  }
}
