:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-soft: #eef3f6;
  --ink: #14212b;
  --muted: #5c6b76;
  --line: #d9e2e8;
  --brand: #214f78;
  --brand-soft: #dce9f4;
  --accent: #c96c77;
  --spawn: #5f9d50;
  --shadow: 0 14px 40px rgba(20, 33, 43, 0.08);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(33, 79, 120, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(201, 108, 119, 0.08), transparent 28%),
    var(--bg);
}

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

.hero-landing {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 247, 249, 0.98)),
    var(--bg);
}

.hero-landing::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(33, 79, 120, 0.06) 20%, transparent 40%, rgba(33, 79, 120, 0.05) 60%, transparent 80%);
  mask-image: linear-gradient(to top, black, transparent);
  pointer-events: none;
}

.landing-copy,
.paper-card,
.highlight-card,
.results-note {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(217, 226, 232, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.landing-copy {
  padding: 2rem 2.2rem;
}

.landing-copy-wide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 2.35rem;
}

.hero-mascot {
  width: min(132px, 24vw);
  margin: 0 auto 0.75rem;
}

.section-mascot {
  margin-top: 0.15rem;
  margin-bottom: 0.9rem;
}

.eyebrow,
.card-label,
.highlight-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand);
}

.publication-title {
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  font-family: "Castoro", serif;
  font-size: clamp(1.7rem, 2.65vw, 2.75rem);
  line-height: 1.12;
  color: #10202e;
}

.publication-venue-label {
  font-size: 0.96rem;
  letter-spacing: 0.14em;
}

.landing-summary,
.section-lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
}

.landing-summary-wide {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
}

.publication-authors,
.publication-meta {
  font-family: "Google Sans", sans-serif;
}

.publication-authors a {
  color: var(--brand) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
  margin-right: 0.35rem;
}

.publication-meta {
  margin-top: 0.8rem;
  color: var(--muted);
}

.meta-sep {
  padding: 0 0.45rem;
}

.hero-tags {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.95rem;
}

.hero-tag {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
}

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

.hero-actions .button.is-static {
  opacity: 1;
  border: none;
  box-shadow: none;
}

.tldr-card {
  margin-top: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  padding: 1rem 1.1rem 1.05rem;
}

.tldr-label {
  margin-bottom: 0.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand);
}

.tldr-text {
  color: var(--ink);
  font-family: "Google Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-tight {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.section-soft {
  background: rgba(238, 243, 246, 0.62);
}

.section-intro {
  margin-bottom: 1.8rem;
}

.section-intro .title {
  font-family: "Google Sans", sans-serif;
  color: #10202e;
}

.teaser-panel {
  padding: 1rem;
}

.teaser-image {
  width: 100%;
  border-radius: 16px;
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 0.75rem;
  display: flex;
  justify-content: center;
}

.teaser-video {
  width: min(100%, 920px);
  border-radius: 14px;
}

.legend-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-weight: 700;
}

.legend-ego {
  color: #5f9fda;
}

.legend-initial {
  color: var(--accent);
}

.legend-spawned {
  color: var(--spawn);
}

.paper-card {
  padding: 1.35rem;
}

.abstract-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

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

.feature-panel {
  padding: 1.55rem;
}

.feature-copy {
  max-width: 980px;
  margin-bottom: 1.05rem;
}

.feature-copy .title {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  font-family: "Google Sans", sans-serif;
  font-size: 1.95rem;
  line-height: 1.18;
}

.feature-text {
  font-size: 1.12rem;
  line-height: 1.76;
  color: var(--muted);
}

.feature-figure-grid {
  display: grid;
  gap: 1rem;
}

.feature-media-wide {
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid var(--line);
}

.feature-media-compact {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid var(--line);
}

.media-card img {
  width: 100%;
  border-radius: 16px;
}

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

.rte-panel {
  padding: 1.55rem;
}

.results-note {
  padding: 1rem 1.15rem;
  margin-bottom: 1.3rem;
  color: var(--muted);
}

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

.results-grid video {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 33, 43, 0.08);
}

.bibtex-card {
  overflow-x: auto;
}

.bibtex-card code {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--brand);
}

.footer {
  background: transparent;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.footer .content {
  color: var(--muted);
}

.footer a {
  color: var(--brand);
}

@media screen and (max-width: 1023px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .landing-copy,
  .paper-card,
  .results-note {
    border-radius: 18px;
  }

  .landing-copy {
    padding: 1.4rem;
  }

  .landing-copy-wide {
    padding: 1.5rem;
  }

  .publication-meta {
    line-height: 1.7;
  }

  .meta-sep {
    display: none;
  }

  .hero-tags {
    justify-content: flex-start;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .results-carousel .item {
    padding: 0.5rem;
  }

  .feature-panel {
    padding: 1rem;
  }

  .feature-copy .title {
    font-size: 1.45rem;
  }

  .feature-text {
    font-size: 1rem;
  }

  .tldr-text {
    font-size: 0.96rem;
  }
}
