body {
  font-family: 'Noto Sans', sans-serif;
  color: #1f2937;
}


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}


.publication-title {
  letter-spacing: -0.02em;
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
}

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

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

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

.author-block {
  display: inline-block;
  margin: 0 2px;
}

.affil-block {
  margin-top: 0.4rem;
  color: #4b5563;
}

.affil-note {
  margin-top: 0.15rem;
  color: #6b7280;
}

.author-block sup {
  font-size: 0.7em;
  color: #6b7280;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

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

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

.nav-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.project-subtitle {
  max-width: 860px;
  margin: 0 auto 0.6rem auto;
}

.figure-card {
  height: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.text-card {
  height: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.pdf-frame-wrap {
  width: 100%;
  height: 320px;
  border: 1px solid #dbe1ea;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}

.pdf-frame-wrap.is-large {
  height: 420px;
}

.pdf-frame {
  width: 100%;
  height: 100%;
}

.figure-image {
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.caption-text {
  margin-top: 0.9rem;
  color: #4b5563;
  font-size: 0.97rem;
}

.case-intro {
  margin-bottom: 1.5rem;
  color: #4b5563;
}

/* ── Case Studies Infinite Scroll Carousel ─────────────────────── */
.cases-viewport {
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  padding: 1rem 0 2rem;
}

.cases-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  animation: cases-scroll 36s linear infinite;
}

.cases-track:hover {
  animation-play-state: paused;
}

@keyframes cases-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.case-card {
  flex: 0 0 720px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  cursor: default;
}

.case-card:hover {
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.13);
  transform: translateY(-3px);
}

.case-card-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.case-card-title {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Google Sans', sans-serif;
  color: #111827;
  margin: 0;
}

.case-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 6px;
  white-space: nowrap;
}

.tag-tool     { background: #dbeafe; color: #1d4ed8; }
.tag-text     { background: #dcfce7; color: #15803d; }
.tag-adaptive { background: #ede9fe; color: #6d28d9; }

.case-img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: block;
}

.case-desc {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .case-card { flex: 0 0 88vw; }
  .case-img  { height: 260px; }
}

html {
  scroll-behavior: smooth;
}

/* ── Results Section ─────────────────────────────────────────────── */
.results-intro {
  color: #4b5563;
  max-width: 680px;
  margin: 0 auto 1.8rem;
  line-height: 1.7;
}

.stat-row {
  margin-bottom: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.1rem 1.6rem 1rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  min-width: 185px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #1d4ed8;
  font-family: 'Google Sans', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.4rem;
  line-height: 1.5;
}

.results-table {
  font-size: 0.865rem;
}

.results-table thead th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
}

.results-table td {
  vertical-align: middle;
}

.row-ours td {
  background: #dbeafe !important;
}

.row-human td {
  background: #f9fafb !important;
  color: #6b7280;
  font-style: italic;
}

.delta-up {
  color: #16a34a;
  font-size: 0.78em;
  font-weight: 600;
}

.delta-down {
  color: #dc2626;
  font-size: 0.78em;
  font-weight: 600;
}

/* ── Active Perception Demo ──────────────────────────────────────── */
.ap-demo-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.ap-input-panel {
  flex: 0 0 230px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ap-reasoning-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ap-panel-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.ap-replay-btn {
  margin-left: auto;
  cursor: pointer;
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 1px 7px 2px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #94a3b8;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.ap-replay-btn:hover {
  color: #3b82f6;
  border-color: #93c5fd;
  background: #eff6ff;
}

.ap-input-img {
  width: 100%;
  display: block;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  object-fit: cover;
}

.ap-chat-window {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-right: 3px;
  scroll-behavior: smooth;
}
.ap-chat-window::-webkit-scrollbar { width: 4px; }
.ap-chat-window::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.ap-chat-window::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ── Message bubbles ─────────────────────────────────────────────── */
.ap-msg {
  border-radius: 9px;
  padding: 0.65rem 0.85rem;
  font-size: 0.855rem;
  line-height: 1.68;
  animation: ap-msg-in 0.28s ease forwards;
}
@keyframes ap-msg-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ap-msg-header {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.01em;
}

/* Thinking */
.ap-msg-thinking {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #374151;
}
.ap-msg-thinking .ap-msg-header { color: #7c3aed; }

/* Tool Call */
.ap-msg-tool-call {
  background: #fffbeb;
  border: 1px solid #fcd34d;
}
.ap-msg-tool-call .ap-msg-header { color: #b45309; }

.ap-tool-name-badge {
  display: inline-block;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 0.12em 0.55em;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #92400e;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.ap-tool-params {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.76rem;
  color: #78350f;
  background: #fffde7;
  border: 1px solid #fde68a;
  border-radius: 5px;
  padding: 0.45rem 0.6rem;
  margin: 0;
  white-space: pre;
  line-height: 1.55;
}

/* Tool Result */
.ap-msg-tool-result {
  background: #f0fdf4;
  border: 1px solid #86efac;
}
.ap-msg-tool-result .ap-msg-header { color: #15803d; }

.ap-result-img {
  width: 100%;
  max-height: 105px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  margin-bottom: 0.45rem;
  display: block;
  background: #fff;
  animation: ap-img-in 0.45s ease forwards;
}
@keyframes ap-img-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Reasoning */
.ap-msg-reasoning {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1f2937;
}
.ap-msg-reasoning .ap-msg-header { color: #0369a1; }

/* Output */
.ap-msg-output {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.ap-msg-output .ap-msg-header { color: #1d4ed8; }

.ap-output-prediction {
  color: #1f2937;
  margin-bottom: 0.5rem;
}
.ap-highlight {
  color: #dc2626;
  font-weight: 600;
}

.ap-action-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
}
.ap-action-tag {
  background: #dbeafe;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
  border-radius: 5px;
  padding: 0.18em 0.55em;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0;
  animation: ap-tag-pop 0.25s ease forwards;
}
@keyframes ap-tag-pop {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* Blinking cursor */
.ap-cursor {
  display: inline-block;
  width: 2px;
  height: 0.88em;
  background: currentColor;
  vertical-align: text-bottom;
  margin-left: 1px;
  border-radius: 1px;
  animation: ap-blink 0.65s step-end infinite;
}
@keyframes ap-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media screen and (max-width: 768px) {
  .ap-demo-layout { flex-direction: column; }
  .ap-input-panel { flex: none; width: 100%; }
  .ap-chat-window { max-height: 300px; }
}

@media screen and (max-width: 768px) {
  .pdf-frame-wrap {
    height: 260px;
  }

  .pdf-frame-wrap.is-large {
    height: 320px;
  }
}
