/* Modern CSS Variables for consistent theming */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-accent: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-subtle: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--background-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Modern Button Styles */
.button {
  border-radius: var(--border-radius) !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
}

.button.is-dark {
  background: var(--text-primary) !important;
  border: none !important;
  color: white !important;
  box-shadow: var(--shadow-md);
}

.button.is-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-color) !important;
}

.button.is-dark:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.footer .icon-link {
    font-size: 25px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer .icon-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.link-block a {
    margin: 8px 4px;
}

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


/* Hero Section Modernization */
.hero {
  position: relative;
  overflow: hidden;
}

.hero.is-light {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.hero-body {
  padding: 4rem 1.5rem;
}

.teaser .hero-body {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

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


/* Publication Content Styling */
.publication-title {
    font-family: 'Google Sans', 'Noto Sans', sans-serif !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    margin-bottom: 2rem !important;
    line-height: 1.1 !important;
}

.publication-banner {
  max-height: 70vh;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin: 2rem 0;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
}

.publication-header .hero-body {
  padding: 6rem 1.5rem 4rem;
}

.publication-authors {
    font-family: 'Google Sans', 'Noto Sans', sans-serif !important;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.publication-venue {
    color: var(--text-secondary);
    width: fit-content;
    font-weight: 600;
    background: var(--background-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: inline-block;
}

.publication-awards {
    color: #ef4444;
    width: fit-content;
    font-weight: 700;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #ef4444;
    margin-top: 1rem;
}

.publication-authors a {
   color: var(--primary-color) !important;
   text-decoration: none;
   font-weight: 600;
   transition: var(--transition);
   position: relative;
}

.publication-authors a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.publication-authors a:hover::after {
    width: 100%;
}

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

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

.publication-banner img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.publication-banner img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.benchmark-overview {
  margin: 0;
}

.benchmark-overview a,
.benchmark-overview img {
  display: block;
}

.benchmark-overview img {
  width: 100%;
  height: auto;
}

.benchmark-overview figcaption {
  margin-top: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* Benchmark statistics and vector figures */
.sceneintbench-benchmark {
  padding: 4rem 1.5rem;
  scroll-margin-top: 1rem;
}

.benchmark-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 2rem auto 3rem;
}

.benchmark-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 134px;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--stat-border);
  border-radius: 14px;
  background: var(--stat-background);
  text-align: center;
}

.benchmark-stat dt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8em;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.benchmark-stat dd {
  order: -1;
  margin: 0 0 0.5rem;
  color: var(--stat-color);
  font-size: 2.5rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.benchmark-stat-scenes {
  --stat-background: #f0f6fc;
  --stat-border: #dce8f5;
  --stat-color: #306a9c;
}

.benchmark-stat-tasks {
  --stat-background: #f0f7ed;
  --stat-border: #ddebd5;
  --stat-color: #507d3c;
}

.benchmark-stat-instances {
  --stat-background: #fff8e8;
  --stat-border: #f3e6bd;
  --stat-color: #926c1e;
}

.benchmark-stat-methods {
  --stat-background: #f5f0fa;
  --stat-border: #e9ddf3;
  --stat-color: #805da0;
}

/* Same-prompt scene comparisons */
.scene-examples {
  padding: 4rem 1.5rem;
  background: var(--background-secondary);
  scroll-margin-top: 1rem;
}

.scene-example-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.75rem 0 2rem;
}

.scene-example-tab {
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: white;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.scene-example-tab:hover {
  border-color: var(--primary-color);
}

.scene-example-tab[aria-selected="true"] {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

.scene-example-tab:focus-visible,
.scene-example-tasks summary:focus-visible,
.scene-example-panel:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

.scene-examples [hidden] {
  display: none !important;
}

.scene-example-room-title {
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.scene-examples-enhanced .scene-example-room-title {
  display: none;
}

.scene-example-prompt {
  margin: 0 0 2rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: white;
  line-height: 1.75;
}

.scene-example-prompt-label {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.scene-example-prompt-label span {
  color: var(--text-secondary);
  font-weight: 400;
}

.scene-example-tasks {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.scene-example-tasks summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.scene-example-tasks summary::-webkit-details-marker { display: none; }

.scene-example-tasks summary::before {
  content: '';
  flex: 0 0 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.scene-example-tasks[open] summary::before { transform: rotate(45deg); }

.scene-task-count {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--background-secondary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 400;
}

.scene-task-content { margin-top: 1rem; }

.scene-task-intro {
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.scene-task-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.scene-task-table th,
.scene-task-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.scene-task-table th {
  background: var(--background-secondary);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.scene-task-table th:nth-child(1) { width: 28%; }
.scene-task-table th:nth-child(2) { width: 16%; }
.scene-task-table th:nth-child(3) { width: 56%; }
.scene-task-table tbody tr:last-child td { border-bottom: 0; }
.scene-task-table td strong { display: block; font-weight: 600; }
.scene-task-table td span { display: block; margin-top: 0.25rem; color: var(--text-secondary); }

@media screen and (max-width: 600px) {
  .scene-task-table, .scene-task-table tbody { display: block; }
  .scene-task-table thead { display: none; }
  .scene-task-table tbody tr {
    display: block;
    margin-top: 0.75rem;
    padding: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
  }
  .scene-task-table tbody td { display: block; padding: 0.5rem; border: 0; }
  .scene-task-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: 700;
  }
}

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

.scene-example-result {
  min-width: 0;
  margin: 0;
}

.scene-example-result img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 8px;
}

.scene-example-result figcaption {
  margin-top: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}

/* Individual scene results */
.scene-metrics-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.scene-metrics-trigger:hover {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.scene-metrics-trigger:focus-visible,
.scene-metrics-view-picker select:focus-visible,
.scene-metrics-close:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

body.scene-metrics-open {
  overflow: hidden;
}

.scene-metrics-dialog {
  width: min(1040px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: white;
  color: var(--text-primary);
  box-shadow: 0 24px 80px rgb(15 23 42 / 25%);
  overflow: auto;
}

.scene-metrics-dialog::backdrop {
  background: rgb(15 23 42 / 62%);
}

.scene-metrics-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: white;
}

.scene-metrics-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
}

.scene-metrics-header p {
  margin-top: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.scene-metrics-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: white;
  color: var(--text-primary);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.scene-metrics-body {
  padding: 1.5rem;
}

.scene-metrics-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.5fr);
  gap: 1.5rem;
  align-items: start;
}

.scene-metrics-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.scene-metrics-view-picker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
}

.scene-metrics-view-picker label {
  font-weight: 700;
}

.scene-metrics-view-picker select {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: white;
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}

.scene-metrics-prompt-label {
  margin: 1rem 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

#scene-metrics-prompt {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.scene-metric-group + .scene-metric-group {
  margin-top: 1.25rem;
}

.scene-metric-group h3 {
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.scene-metric-semantic h3 { color: #47743a; }
.scene-metric-static h3 { color: #1d6285; }
.scene-metric-interactive h3 { color: #975017; }

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

.scene-metric-item {
  min-width: 0;
  padding: 0.7rem 0.3rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-secondary);
  text-align: center;
}

.scene-metric-item dt {
  font-size: 0.75rem;
  font-weight: 600;
}

.scene-metric-item dd { margin: 0; }

.scene-metric-number {
  display: block;
  margin: 0.25rem 0 0.1rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scene-metric-unit,
.scene-metric-count {
  display: block;
  color: var(--text-secondary);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.scene-metric-count { margin-top: 0.2rem; }
.scene-metric-unavailable {
  padding: 0 0.2rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

@media screen and (max-width: 800px) {
  .scene-metrics-layout { grid-template-columns: 1fr; }
  .scene-metrics-preview img { max-width: 340px; margin: 0 auto; }
}

@media screen and (max-width: 480px) {
  .scene-metrics-header, .scene-metrics-body { padding: 1rem; }
  .scene-metric-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 900px) {
  .scene-example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 480px) {
  .scene-examples {
    padding: 3rem 1rem;
  }
  .scene-example-tab {
    padding: 0.55rem 0.8rem;
    font-size: 0.875rem;
  }
  .scene-example-prompt {
    padding: 1rem;
  }
  .scene-example-grid {
    grid-template-columns: 1fr;
  }
}

.benchmark-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
}

.benchmark-figure {
  min-width: 0;
  margin: 0;
}

.benchmark-figure-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 8px;
}

.benchmark-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.benchmark-figure figcaption {
  margin-top: 1rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

@media screen and (max-width: 900px) {
  .benchmark-figures {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 600px) {
  .sceneintbench-benchmark {
    padding: 3rem 1rem;
  }

  .benchmark-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .benchmark-stat {
    min-height: 120px;
  }

  .benchmark-stat dt {
    font-size: 0.8125rem;
  }

  .benchmark-stat dd {
    font-size: 2.25rem;
  }
}

/* Paper results table */
.benchmark-results {
  padding: 4rem 1rem;
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 1rem;
}

.benchmark-results .results-container {
  width: 100%;
  max-width: 1380px;
}

.results-intro {
  margin: 0 auto 1.75rem;
  color: var(--text-secondary);
  text-align: center;
}

.results-reading-guide {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.75rem;
  color: #526174;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.results-table-wrap {
  position: relative;
  container-type: inline-size;
  border: 1px solid #d5dee8;
  border-radius: 8px;
  background: #fff;
}

.results-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: var(--text-primary);
  font-size: min(1.16cqw, 0.875rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.results-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.results-method-column {
  width: 11.5%;
}

table.results-table th,
table.results-table td {
  padding: 0.7em 0.1em;
  border-bottom: 1px solid #e7edf3;
  text-align: center;
  vertical-align: middle;
}

.results-table thead th {
  font-weight: 650;
}

.results-table .results-group-headings th {
  padding: 0.8em 0.25em;
  font-size: 1.04em;
}

.results-table .results-semantic {
  background: #edf5e8;
  color: #3f6230;
}

.results-table .results-static {
  background: #eaf4fb;
  color: #285d7c;
}

.results-table .results-interactive {
  background: #fff5dc;
  color: #795a1c;
}

.results-table .results-group-start {
  border-left: 1px solid #d5dee8;
}

.results-table abbr {
  border: 0;
  text-decoration: none;
  cursor: help;
}

.results-unit {
  display: block;
  margin-top: 0.2em;
  font-size: 0.8em;
  font-weight: 400;
  opacity: 0.85;
}

.results-table .results-method-heading,
.results-table .results-method-name {
  padding-left: 0.6em;
  padding-right: 0.4em;
  background: #fff;
  box-shadow: 1px 0 #d5dee8;
  text-align: left;
}

.results-table .results-method-heading {
  background: #f3f6fa;
}

.results-table .results-method-name {
  font-weight: 600;
  white-space: nowrap;
}

.results-table .results-category th {
  padding: 0.55em 0.6em;
  background: #f3f6fa;
  color: #526174;
  font-size: 0.9em;
  font-style: italic;
  font-weight: 500;
  text-align: left;
}

.results-category span {
  display: block;
}

.results-method-row:hover td,
.results-method-row:hover .results-method-name {
  background: #f8fafc;
}

.results-table tbody:last-child tr:last-child > * {
  border-bottom: 0;
}

.result-value,
.result-ci {
  display: inline;
  white-space: nowrap;
}

.results-table td {
  white-space: nowrap;
}

.result-value {
  font-size: 1em;
}

.result-ci {
  margin-left: 0.15em;
  color: #607084;
  font-size: 0.82em;
}

.result-best strong {
  color: var(--text-primary);
  font-weight: 750;
}

.result-second,
.result-second .result-value,
.result-second .result-ci {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.result-unsupported {
  color: #607084;
  font-size: 0.9em;
}

.results-table-notes {
  margin-top: 1.25rem;
  color: #526174;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.results-table-notes > p + p {
  margin-top: 0.5rem;
}

.results-metric-definitions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.results-definition-title {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

@media screen and (max-width: 600px) {
  .benchmark-results {
    padding: 3rem 1rem;
  }

  .results-metric-definitions {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Modern Video and Carousel Styling */
.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.publication-video:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
}

.publication-body img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.publication-body img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.results-carousel {
  overflow: hidden;
  padding: 1rem 0;
}

.results-carousel .item {
  margin: 1rem;
  overflow: hidden;
  padding: 1.5rem;
  font-size: 0;
  background: var(--background-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.results-carousel .item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.results-carousel .item img,
.results-carousel video {
  margin: 0;
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
}

.results-carousel .subtitle {
  font-size: 1rem !important;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-weight: 500;
}

/* Pagination and Misc Improvements */
.slider-pagination .slider-page {
  background: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
}

.slider-pagination .slider-page.is-active {
  background: var(--primary-hover);
  transform: scale(1.2);
}

.eql-cntrb { 
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
}

/* Section Titles */
.title.is-3 {
  font-weight: 700 !important;
  color: var(--text-primary);
  margin-bottom: 2rem !important;
  position: relative;
  padding-bottom: 1rem;
}

.title.is-3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Content Improvements */
.content.has-text-justified {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.content.has-text-justified p {
  margin-bottom: 1.5rem;
}

/* Footer Improvements */
.footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
}

.footer .content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* BibTeX Styling */
pre {
  background: var(--background-accent) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  padding: 1.5rem !important;
  font-size: 0.9rem !important;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

code {
  background: var(--background-accent) !important;
  color: var(--text-primary) !important;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace !important;
}

/* BibTeX Section Improvements */
.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.copy-bibtex-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-bibtex-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.copy-bibtex-btn.copied {
  background: #10b981;
}

.copy-bibtex-btn.copied .copy-text::after {
  content: "ied!";
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}


/* More Works Dropdown */
.more-works-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.more-works-btn {
  background: var(--background-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Noto Sans', sans-serif;
}

.more-works-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--background-secondary);
  border-color: var(--primary-color);
}

.more-works-btn .dropdown-arrow {
  transition: var(--transition);
  font-size: 0.8rem;
}

.more-works-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.more-works-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  max-height: 70vh;
  overflow-y: auto;
}

.more-works-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--background-accent);
  color: var(--text-primary);
}

.works-list {
  padding: 1rem;
}

.work-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.work-item:hover {
  background: var(--background-accent);
  transform: translateX(4px);
}

.work-info h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.work-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.work-venue {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

.work-item .fas {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}


/* Motivation and interaction examples */
.interaction-examples {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border-color);
  scroll-margin-top: 1rem;
}

.interaction-examples > .container {
  max-width: 1280px;
}

.interaction-intro {
  max-width: 850px;
  margin: 0 auto 2.75rem;
}

.interaction-intro .title {
  line-height: 1.35;
}

.interaction-intro .interaction-word-plausible {
  color: #2e7d32;
}

.interaction-intro .interaction-word-unreliable {
  color: #c62828;
}

.interaction-intro p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

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

.interaction-case {
  min-width: 0;
  scroll-margin-top: 1rem;
}

.interaction-action {
  color: #a04c26;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.interaction-case h3 {
  margin: .3rem 0 .2rem;
  font-size: 1.22rem;
  line-height: 1.35;
  font-weight: 700;
}

.interaction-case-heading {
  margin-bottom: 1rem;
}

.interaction-case figure {
  margin: 0 0 1rem;
}

.interaction-case video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 8px;
  background: #f1f3f5;
}

.interaction-takeaway {
  margin-bottom: .65rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}

@media screen and (max-width: 700px) {
  .interaction-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 620px;
    margin: 0 auto;
  }
  .interaction-case + .interaction-case {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
  }
  .interaction-examples {
    padding: 3rem 1.25rem;
  }
  .interaction-intro {
    margin-bottom: 2rem;
  }
}

/* Mobile Responsive Improvements */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: 2rem 1rem;
  }
  
  .publication-header .hero-body {
    padding: 3rem 1rem 2rem;
  }
  
  .publication-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .publication-authors {
    font-size: 1rem !important;
  }
  
  .button {
    margin: 0.25rem !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  .more-works-container {
    bottom: 2rem;
    right: 1rem;
    top: auto;
  }
  
  .more-works-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .more-works-dropdown {
    width: calc(100vw - 2rem);
    right: -1rem;
    bottom: calc(100% + 0.5rem);
    top: auto;
  }
  
  .results-carousel .item {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .teaser .hero-body {
    padding: 1rem;
  }
  
  .content.has-text-justified {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .publication-title {
    font-size: 2rem !important;
  }
  
  .hero-body {
    padding: 1.5rem 0.75rem;
  }
  
  .more-works-container {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 1000;
  }
  
  .more-works-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .more-works-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    width: calc(100vw - 2rem);
    max-width: 90vw;
  }
  
  .link-block {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet Responsive */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-body {
    padding: 3rem 2rem;
  }
  
  .publication-header .hero-body {
    padding: 4rem 2rem 3rem;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero, .section {
  animation: fadeInUp 0.6s ease-out;
}

/* Improved focus states for accessibility */
.button:focus,
.related-works-btn:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}


/* Print styles */
@media print {
  .more-works-container {
    display: none;
  }
  
  .hero, .section {
    animation: none;
  }
  
  .button {
    background: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
  }
}



