/* ============================================
   Production-Ready 3D Generation Survey
   Complete Redesign — Modern Academic Theme
   ============================================ */

/* -- Google Fonts import -- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=M+PLUS+Rounded+1c:wght@700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@400;500;600;700&family=Source+Serif+4:wght@400;500;600&display=swap');

/* -- Global -- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  padding-top: 0; /* hero sits behind nav initially */
}

/* ============================================
   STICKY NAVIGATION BAR
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-brand {
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.site-nav.scrolled .nav-brand {
  color: #1a1a2e;
}

.nav-links {
  display: flex;
  gap: 0.1rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.site-nav.scrolled .nav-links a {
  color: #5a5a6a;
}

.site-nav.scrolled .nav-links a:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.08);
}

.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.site-nav.scrolled .nav-links a.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.3s;
}

.site-nav.scrolled .nav-toggle {
  color: #1a1a2e;
}

/* -- Scroll margin for sections behind navbar -- */
section[id] {
  scroll-margin-top: 60px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero.is-light {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero.is-light::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero.is-light::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(118,75,162,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero.is-light .hero-body {
  padding: 6rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.publication-title {
  font-family: 'M PLUS Rounded 1c', 'Avenir Next', 'Segoe UI', sans-serif;
  font-weight: 800;
  color: #ffffff;
  font-size: 2.6rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.publication-subtitle {
  font-family: 'Sora', 'M PLUS Rounded 1c', 'Avenir Next', 'Segoe UI', sans-serif;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  font-size: 1.3rem;
  letter-spacing: 0.018em;
  margin-top: 0.78rem;
}

.publication-authors .author-block {
  display: inline-block;
  margin: 0 0.3rem;
}

.publication-authors .author-block a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.publication-authors .author-block a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.publication-authors .affiliations {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-top: 0.6rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 5px rgba(8, 18, 52, 0.25);
}

.publication-authors .affiliations .affiliation-row + .affiliation-row {
  margin-top: 0.16rem;
}
.publication-authors .author-notes {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(255,255,255,0.86);
  margin-top: 0.5rem;
  line-height: 1.7;
  letter-spacing: 0.008em;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(8, 18, 52, 0.22);
}

.publication-authors .author-notes .note-item {
  white-space: nowrap;
}

.publication-authors .author-notes .note-item + .note-item::before {
  content: ' \00B7 ';
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0.2rem 0 0;
}

/* ============================================
   ICON-BASED LINK BUTTONS (Hero)
   ============================================ */
.publication-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.15rem;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

.icon-btn::after {
  content: attr(title);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.icon-btn:hover::after {
  opacity: 1;
}

.icon-btn--paper {
  background: rgba(220, 50, 50, 0.2);
  color: #ffb3b3;
  border: 1.5px solid rgba(220, 50, 50, 0.4);
}

.icon-btn--paper:hover {
  background: rgba(220, 50, 50, 0.45);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(220, 50, 50, 0.3);
}

.icon-btn--github {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.icon-btn--github:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.icon-btn--bibtex {
  background: rgba(102, 126, 234, 0.2);
  color: rgba(200, 210, 255, 0.9);
  border: 1.5px solid rgba(102, 126, 234, 0.4);
}

.icon-btn--bibtex:hover {
  background: rgba(102, 126, 234, 0.45);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* ============================================
   ICON-BASED LINK BUTTONS (Inline in tables/lists)
   ============================================ */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.icon-link::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 500;
  white-space: nowrap;
  background: #1a1a2e;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  z-index: 10;
}

.icon-link:hover::after {
  opacity: 1;
}

.icon-link--paper {
  background: #fef5f5;
  color: #b31b1b;
  border: 1px solid #f0d0d0;
}

.icon-link--paper:hover {
  background: #b31b1b;
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(179, 27, 27, 0.25);
}

.icon-link--github {
  background: #f6f8fa;
  color: #24292e;
  border: 1px solid #d8dee4;
}

.icon-link--github:hover {
  background: #24292e;
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(36, 41, 46, 0.25);
}

.icon-link--project {
  background: #f1f8ff;
  color: #0366d6;
  border: 1px solid #c8e1ff;
}

.icon-link--project:hover {
  background: #0366d6;
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(3, 102, 214, 0.25);
}

/* ============================================
   SECTIONS — GENERAL
   ============================================ */
.section {
  padding: 3.5rem 1.5rem;
}

.section h2.title {
  font-family: 'Fredoka One', sans-serif;
  font-weight: 400;
  color: #1a1a2e;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.section.has-background-light {
  background: #f8f9fc;
}

.section-subtitle {
  color: #5a5a6a;
  font-size: 1.02rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.method-abbrev-legend {
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  margin-bottom: 2.25rem !important;
  padding: 0.2rem 0 0.25rem;
}

.visual-rich .method-abbrev-legend {
  margin: 0.95rem auto 2.35rem !important;
}

.method-abbrev-legend .legend-line {
  display: flex;
  justify-content: center;
  gap: 0.48rem 0.72rem;
  white-space: nowrap;
}

.method-abbrev-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  white-space: nowrap;
}

.method-abbrev-legend .legend-item .tag {
  font-weight: 700;
  min-width: 52px;
  justify-content: center;
}

.method-abbrev-legend .legend-eq {
  color: #4b5f89;
  font-size: 0.95rem;
  letter-spacing: 0.002em;
}

/* ============================================
   ABSTRACT / OVERVIEW
   ============================================ */
.abstract-content {
  text-align: justify;
  line-height: 1.85;
  font-size: 1.02rem;
  color: #3a3a4a;
  max-width: 780px;
  margin: 0 auto;
}

/* ============================================
   FIGURES
   ============================================ */
.figure-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.figure-image:hover {
  box-shadow: 0 8px 36px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}

.figure-caption {
  font-size: 0.9rem;
  color: #6b6b7b;
  margin-top: 1.2rem;
  text-align: center;
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

.figure-caption .caption-kicker {
  display: block;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5a70b4;
  margin-bottom: 0.32rem;
  font-style: normal;
}

/* ============================================
   FIGURE BLOCKS (Visual Results cards)
   ============================================ */
.figure-block {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 2.2rem 2.2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  border: 1px solid #eef0f6;
  transition: box-shadow 0.3s ease;
}

.figure-block:hover {
  box-shadow: 0 6px 30px rgba(0,0,0,0.09);
}

/* ============================================
   TAXONOMY SECTION — SPECIAL STYLING
   ============================================ */
.section--taxonomy {
  background: linear-gradient(180deg, #f8f9fc 0%, #f0f2fa 100%);
  position: relative;
}

.section--taxonomy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe, #43e97b, #fa709a);
}

/* ============================================
   PIPELINE FLOW VISUALIZATION
   ============================================ */
.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 2.5rem auto;
  padding: 1.15rem 0.85rem 1.25rem;
  max-width: 860px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 130, 190, 0.45) transparent;
}

.pipeline-flow::-webkit-scrollbar {
  height: 6px;
}

.pipeline-flow::-webkit-scrollbar-thumb {
  background: rgba(110, 130, 190, 0.45);
  border-radius: 999px;
}

.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  box-sizing: border-box;
  width: 108px;
  min-height: 116px;
  padding: 0.72rem 0.62rem 0.68rem;
  border-radius: 10px;
  background: #fff;
  border: 2px solid var(--stage-color, #667eea);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  flex: 0 0 auto;
}

.pipeline-stage:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.pipeline-stage-icon {
  font-size: 1.3rem;
  color: var(--stage-color, #667eea);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--stage-color) 10%, transparent);
  flex-shrink: 0;
}

.pipeline-stage-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a1a2e;
  width: 100%;
  min-height: 2.45em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.24;
  text-align: center;
  letter-spacing: 0.02em;
}

.pipeline-arrow {
  color: #b0b4cc;
  font-size: 0.85rem;
  width: 18px;
  text-align: center;
  padding: 0;
  flex: 0 0 auto;
}

.taxonomy-mini-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #5a70b4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.24rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(102, 126, 190, 0.24);
  background: rgba(237, 243, 255, 0.78);
  box-shadow: 0 4px 12px rgba(69, 90, 156, 0.11);
  margin: 0.25rem auto 0.52rem;
}

.taxonomy-mini-title + .pipeline-flow {
  margin-top: 0.46rem;
}

/* ============================================
   TAXONOMY TABS
   ============================================ */
.taxonomy-tabs .tabs {
  margin-bottom: 0;
}

.taxonomy-tabs .tabs ul,
.method-tabs .tabs ul {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.taxonomy-tabs .tabs li,
.method-tabs .tabs li {
  flex: 1 1 0;
  min-width: 170px;
  max-width: 220px;
}

.taxonomy-tabs .tabs a,
.method-tabs .tabs a {
  width: 100%;
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  text-align: center;
}

.taxonomy-tabs .tabs.is-boxed li.is-active a,
.method-tabs .tabs.is-boxed li.is-active a {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
  font-weight: 600;
}

.taxonomy-tabs .tabs.is-boxed a,
.method-tabs .tabs.is-boxed a {
  border-radius: 8px 8px 0 0;
  transition: all 0.2s;
  font-weight: 500;
}

.taxonomy-tabs .tab-content,
.method-tabs .tab-content {
  display: none;
  padding: 1.5rem 1.8rem;
  line-height: 1.8;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: none;
  border-radius: 0 0 10px 10px;
  color: #444;
  font-size: 0.98rem;
}

.taxonomy-tabs .tab-content .tab-intro {
  margin-bottom: 0.82rem;
}

.taxonomy-tabs .tab-content.is-active,
.method-tabs .tab-content.is-active {
  display: block;
}

/* -- Tab content headings & method highlights -- */
.tab-content-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #667eea;
  margin: 1.2rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.method-highlights {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.method-highlights li {
  padding: 0.6rem 0 0.6rem 1.4rem;
  position: relative;
  border-bottom: 1px solid #f4f4f8;
  font-size: 0.93rem;
  line-height: 1.6;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.method-highlights li::-webkit-scrollbar {
  display: none;
}

.method-highlights li:last-child {
  border-bottom: none;
}

.method-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* -- Method row: text + icon links side by side -- */
.method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: nowrap;
  min-width: max-content;
}

.method-row > span:first-child {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.method-icon-links {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* ============================================
   SURVEY HIGHLIGHTS CARDS
   ============================================ */
.highlights-grid {
  margin-top: 1.2rem;
}

.highlight-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.25rem 1.5rem 2.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #eef0f6;
  min-height: 220px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.highlight-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #4f68cf;
  margin-bottom: 0.7rem;
  background: linear-gradient(145deg, #edf2ff 0%, #e3ebff 100%);
  box-shadow: 0 6px 16px rgba(86, 113, 198, 0.18);
}

.highlight-number {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 3.05rem;
  color: #1a1a2e;
  line-height: 1;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-label {
  font-weight: 640;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  color: #1a1a2e;
  margin-bottom: 0;
}

.highlight-desc {
  font-size: 0.88rem;
  color: #6b6b7b;
  line-height: 1.5;
}

/* ============================================
   PRODUCTION-READY CRITERIA ICON CARDS
   ============================================ */
.criteria-grid {
  margin-top: 1.1rem;
}

.criteria-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  box-shadow: 0 3px 16px rgba(0,0,0,0.05);
  border: 1px solid #eef0f6;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.criteria-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}

.criteria-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.criteria-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a2e;
  margin-bottom: 0.6rem;
}

.criteria-card-desc {
  font-size: 0.86rem;
  color: #6b6b7b;
  line-height: 1.55;
}

/* ============================================
   METHOD OVERVIEW TABLES
   ============================================ */
.method-tabs .tab-content {
  padding: 0.5rem 0;
}

.method-table {
  border-radius: 10px;
  overflow: hidden;
}

.method-table thead th {
  background: #667eea;
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.method-table td {
  padding: 0.7rem 1rem;
  vertical-align: middle;
  font-size: 0.92rem;
  white-space: nowrap;
}

.method-table .method-name {
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
}

.method-table tbody tr:hover {
  background: #f0f0ff;
}

.method-table .tag {
  font-size: 0.75rem;
  font-weight: 600;
}

/* -- Method link icons in tables -- */
.method-links {
  white-space: nowrap;
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  align-items: center;
}

/* ============================================
   DEMO GRID CARDS
   ============================================ */
.demo-category-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #f0f0f8;
  margin-bottom: 1rem !important;
}
.demo-grid {
  margin-top: 0.5rem;
}

.demo-card {
  background: #fff;
  border-radius: 14px;
  border: 2px dashed #d5d8e8;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.25s ease;
  position: relative;
}

.demo-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}

.demo-card--viewer {
  border-style: solid;
}

.demo-card-preview {
  background: linear-gradient(135deg, #f5f6fc 0%, #eceef8 100%);
  padding: 2.5rem 1rem;
  color: #b0b4cc;
}

.demo-card--viewer .demo-card-preview {
  padding: 0;
}

.demo-preview-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.12) 38%, transparent 64%),
    linear-gradient(180deg, #eef4ff 0%, #dde8ff 52%, #d8eff7 100%);
}

.demo-card-label {
  padding: 0.8rem 1rem 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a2e;
}

.demo-card-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   BIBTEX SECTION — DARK
   ============================================ */
.bibtex-section {
  background: #13131f !important;
  padding: 3.5rem 1.5rem;
}

.bibtex-title {
  color: #fff !important;
}

.bibtex-subtitle {
  color: rgba(255, 255, 255, 0.65) !important;
}

.bibtex-block {
  position: relative;
}

.bibtex-block pre {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 10px;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
}

.bibtex-block .copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.1);
  color: #cdd6f4;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  transition: all 0.2s;
}

.bibtex-block .copy-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 2rem 1.5rem;
}

.footer a {
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}

.footer a:hover {
  color: #667eea;
}

.footer p {
  color: rgba(255,255,255,0.6);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.6rem;
  }

  .publication-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .abstract-content {
    font-size: 0.95rem;
  }

  .highlight-number {
    font-size: 2.2rem;
  }

  .highlight-card {
    padding: 1.5rem 1.2rem;
  }

  .criteria-card {
    padding: 1.4rem 1rem;
  }

  .figure-block {
    padding: 1.2rem 1rem 1.5rem;
  }

  .method-table td {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
  }

  .method-table .method-name {
    white-space: nowrap;
  }

  .taxonomy-tabs .tab-content,
  .method-tabs .tab-content {
    padding: 1.2rem 1rem;
  }

  .taxonomy-tabs .tabs li,
  .method-tabs .tabs li,
  .visual-rich .taxonomy-tabs .tabs li,
  .visual-rich .method-tabs .tabs li {
    min-width: 0;
    max-width: none;
    flex: 1 1 0;
  }

  .taxonomy-tabs .tabs a,
  .method-tabs .tabs a {
    min-height: 2.45rem;
    font-size: 0.9rem;
  }

  .method-abbrev-legend {
    gap: 0.32rem;
    margin-top: 0.75rem;
    margin-bottom: 1.7rem !important;
  }

  .method-abbrev-legend .legend-line {
    flex-wrap: wrap;
    white-space: normal;
    gap: 0.42rem 0.55rem;
  }

  .method-abbrev-legend .legend-item .tag {
    min-width: 46px;
  }

  .method-abbrev-legend .legend-eq {
    font-size: 0.88rem;
  }

  /* Pipeline flow wraps */
  .pipeline-flow {
    gap: 0.3rem;
    padding: 0.95rem 0.4rem 1.05rem;
    justify-content: flex-start;
  }

  .pipeline-stage {
    width: 82px;
    min-height: 94px;
    padding: 0.48rem 0.45rem 0.52rem;
  }

  .pipeline-stage-icon {
    font-size: 1rem;
    width: 32px;
    height: 32px;
  }

  .pipeline-stage-label {
    font-size: 0.64rem;
    min-height: 2.3em;
    line-height: 1.2;
  }

  .pipeline-arrow {
    font-size: 0.66rem;
    width: 13px;
    padding: 0;
  }

  .taxonomy-mini-title {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.58rem;
    margin-bottom: 0.4rem;
  }

  /* Method row keeps single line */
  .method-row {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
  }

  .method-icon-links {
    padding-left: 0;
  }

  /* Nav goes mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }

  .nav-links a {
    color: #3a3a4a !important;
    padding: 0.7rem 1.5rem;
    border-radius: 0;
  }

  .nav-links a:hover {
    background: rgba(102, 126, 234, 0.08) !important;
    color: #667eea !important;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

@media screen and (max-width: 480px) {
  .publication-title {
    font-size: 1.35rem;
  }

  .hero.is-light .hero-body {
    padding: 4.5rem 1rem 2.5rem;
  }

  .highlight-number {
    font-size: 1.8rem;
  }

  .criteria-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .pipeline-stage {
    width: 74px;
    min-height: 88px;
    padding: 0.42rem 0.38rem 0.44rem;
  }

  .pipeline-stage-label {
    font-size: 0.6rem;
    min-height: 2.2em;
  }

  .pipeline-arrow {
    font-size: 0.56rem;
    width: 11px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* ============================================
   color-mix FALLBACK for older browsers
   ============================================ */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .pipeline-stage-icon {
    background: rgba(102, 126, 234, 0.1);
  }
}

/* ============================================
   2026 VISUAL LAYOUT REFRESH
   ============================================ */
.visual-rich {
  --vr-text: #182744;
  --vr-soft-text: #3f527b;
  --vr-border: rgba(79, 104, 170, 0.18);
  --vr-card: rgba(255, 255, 255, 0.93);
  --vr-shadow: 0 16px 42px rgba(43, 62, 112, 0.12);
  --hero-tier-name: rgba(255, 255, 255, 0.95);
  --hero-tier-affiliation: rgba(232, 241, 255, 0.84);
  --hero-tier-note: rgba(216, 229, 252, 0.74);
  background:
    radial-gradient(1200px 500px at 12% -2%, rgba(99, 121, 220, 0.2), transparent 60%),
    radial-gradient(900px 450px at 90% 22%, rgba(96, 224, 197, 0.16), transparent 62%),
    linear-gradient(180deg, #f4f7ff 0%, #eef3ff 46%, #f8fbff 100%);
  color: var(--vr-text);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.visual-rich .container.is-max-desktop {
  max-width: 1100px !important;
}

.visual-rich .site-nav.scrolled {
  background: rgba(248, 251, 255, 0.85);
  border-bottom: 1px solid rgba(93, 118, 184, 0.16);
  box-shadow: 0 8px 28px rgba(40, 64, 130, 0.09);
}

.visual-rich .hero.is-light {
  --hero-mx: 18%;
  --hero-my: 24%;
  --flow-bg-x: 0%;
  --flow-bg-y: 0%;
  --flow-mid-y: 0%;
  --flow-layer-x: 0px;
  --flow-layer-y: 0px;
  --flow-layer-s: 1;
  --flow-pulse: 0;
  --flow-field-x: 0px;
  --flow-field-y: 0px;
  --flow-field-s: 1;
  --blob-a-tx: 0px;
  --blob-a-ty: 0px;
  --blob-a-s: 1;
  --blob-a-o: 0.5;
  --blob-b-tx: 0px;
  --blob-b-ty: 0px;
  --blob-b-s: 1;
  --blob-b-o: 0.5;
  --blob-c-tx: 0px;
  --blob-c-ty: 0px;
  --blob-c-s: 1;
  --blob-c-o: 0.5;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 36%),
    radial-gradient(circle at 82% 36%, rgba(88, 236, 206, 0.16), transparent 40%),
    linear-gradient(130deg, #415ec7 0%, #6550be 40%, #2d8fb0 100%);
  background-size: 172% 172%, 168% 168%, 138% 138%;
  background-position:
    calc(8% + var(--flow-bg-x)) calc(10% + var(--flow-bg-y)),
    calc(88% - var(--flow-bg-x)) calc(28% + var(--flow-mid-y)),
    50% 50%;
  animation: heroBackdropFlowStrong 8.6s ease-in-out infinite alternate;
  isolation: isolate;
}

.visual-rich .hero-flow {
  position: absolute;
  inset: -20% -18% -24% -18%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.visual-rich .hero-flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.92;
  filter: blur(8px) saturate(118%);
  mix-blend-mode: screen;
}

.visual-rich .hero-flow .flow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  display: none;
}

.visual-rich .hero-flow .flow-blob-a {
  width: 54vw;
  height: 54vw;
  min-width: 560px;
  min-height: 560px;
  left: -10%;
  top: -8%;
  background: radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.26) 0%, rgba(138, 158, 255, 0.18) 35%, rgba(90, 109, 224, 0.02) 78%, transparent 100%);
  transform: translate3d(var(--blob-a-tx), var(--blob-a-ty), 0) scale(var(--blob-a-s));
  opacity: var(--blob-a-o);
}

.visual-rich .hero-flow .flow-blob-b {
  width: 48vw;
  height: 48vw;
  min-width: 520px;
  min-height: 520px;
  right: -8%;
  top: 8%;
  background: radial-gradient(circle at 62% 38%, rgba(92, 236, 208, 0.24) 0%, rgba(56, 161, 207, 0.16) 40%, rgba(34, 122, 182, 0.02) 80%, transparent 100%);
  transform: translate3d(var(--blob-b-tx), var(--blob-b-ty), 0) scale(var(--blob-b-s));
  opacity: var(--blob-b-o);
}

.visual-rich .hero-flow .flow-blob-c {
  width: 64vw;
  height: 64vw;
  min-width: 700px;
  min-height: 700px;
  left: 18%;
  bottom: -34%;
  background: radial-gradient(circle at 50% 30%, rgba(151, 118, 255, 0.2) 0%, rgba(106, 90, 225, 0.13) 44%, rgba(78, 74, 190, 0.02) 82%, transparent 100%);
  transform: translate3d(var(--blob-c-tx), var(--blob-c-ty), 0) scale(var(--blob-c-s));
  opacity: var(--blob-c-o);
}

.visual-rich .hero.is-light::before {
  top: -40%;
  right: -20%;
  width: 70%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.14) 0%, transparent 72%);
  filter: blur(18px);
  opacity: 0.95;
}

.visual-rich .hero.is-light::after {
  content: '';
  position: absolute;
  inset: -35% -28% -32% -28%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(560px 320px at var(--hero-mx) var(--hero-my), rgba(255, 255, 255, 0.28), transparent 72%),
    radial-gradient(860px 420px at 86% 84%, rgba(77, 235, 203, 0.2), transparent 76%),
    radial-gradient(700px 340px at 24% 74%, rgba(255, 255, 255, 0.14), transparent 76%);
  mix-blend-mode: screen;
  background-size: 165% 165%, 170% 170%, 178% 178%;
  background-position:
    calc(2% + var(--flow-bg-x)) calc(6% + var(--flow-bg-y)),
    calc(96% - var(--flow-bg-x)) calc(94% + var(--flow-mid-y)),
    calc(14% + var(--flow-bg-x)) calc(82% - var(--flow-mid-y));
  filter: blur(26px);
  opacity: calc(0.74 + var(--flow-pulse));
  transform: translate3d(var(--flow-layer-x), var(--flow-layer-y), 0) scale(var(--flow-layer-s));
  animation: heroLayerFlowStrong 6.8s ease-in-out infinite alternate;
}

.visual-rich .hero.is-light .hero-body {
  padding: 7.8rem 1.5rem 5.6rem;
  position: relative;
  z-index: 2;
  animation: heroBodyIntro 2.7s cubic-bezier(0.16, 0.82, 0.16, 1) both;
}

.visual-rich #hero .container.is-max-desktop {
  position: relative;
  z-index: 2;
}

.visual-rich .hero.is-light .hero-body::before {
  content: '';
  position: absolute;
  inset: -24% -14% -22% -14%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 380px at 48% 100%, rgba(83, 222, 194, 0.14), transparent 72%),
    radial-gradient(760px 280px at 52% 6%, rgba(255, 255, 255, 0.08), transparent 70%);
  filter: blur(22px);
  opacity: 0.96;
  transform: translate3d(var(--flow-field-x), var(--flow-field-y), 0) scale(var(--flow-field-s));
  animation: heroFieldIntro 2.6s cubic-bezier(0.2, 0.82, 0.2, 1) both, heroFieldFlowStrong 7.4s ease-in-out 2.6s infinite alternate;
}

.visual-rich .publication-title {
  margin-bottom: 1.25rem !important;
  text-shadow: 0 3px 18px rgba(4, 12, 38, 0.35);
  position: relative;
  display: inline-block;
  transform-origin: 50% 50%;
  animation: heroTitleReveal 2s cubic-bezier(0.12, 0.84, 0.16, 1) 0.28s both, heroTitleFloat 7.2s ease-in-out 2.4s infinite;
}

.visual-rich .publication-title::after {
  display: none;
}

.visual-rich .publication-subtitle {
  margin-bottom: 1.55rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.98);
  font-family: 'Sora', 'M PLUS Rounded 1c', sans-serif;
  font-weight: 620;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(8, 17, 44, 0.3);
  animation: heroSubReveal 1.45s cubic-bezier(0.14, 0.8, 0.18, 1) 1.02s both;
}

.hero-meta-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin: 0.78rem 0 0.96rem;
  animation: heroChipGroupReveal 1.35s cubic-bezier(0.14, 0.8, 0.18, 1) 1.38s both;
}

.hero-chip {
  font-family: 'Sora', 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(12, 20, 52, 0.22);
  color: rgba(255, 255, 255, 0.99);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  animation: chipFloat 5.6s ease-in-out 2.95s infinite;
}

.hero-chip:nth-child(2n) {
  animation-delay: 1.15s;
}

.visual-rich .publication-authors {
  max-width: 900px;
  margin: 0.18rem auto 0;
  padding: 0.82rem 1rem 0.88rem;
  border-radius: 16px;
  background: rgba(8, 16, 44, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-origin: 50% 0%;
  animation: heroPanelReveal 1.7s cubic-bezier(0.12, 0.82, 0.16, 1) 1.8s both;
}

.visual-rich .publication-authors .author-block {
  margin: 0.28rem 0.22rem;
  padding: 0.2rem 0.1rem;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 620;
  text-shadow: 0 2px 8px rgba(9, 18, 50, 0.34);
  opacity: 0;
  animation: heroAuthorLineReveal 0.82s cubic-bezier(0.18, 0.8, 0.2, 1) 2.24s both;
}

.visual-rich .publication-authors .author-block:nth-child(2) {
  animation-delay: 2.34s;
}

.visual-rich .publication-authors .author-block:nth-child(3) {
  animation-delay: 2.44s;
}

.visual-rich .publication-authors .author-block:nth-child(4) {
  animation-delay: 2.54s;
}

.visual-rich .publication-authors .author-block:nth-child(5) {
  animation-delay: 2.64s;
}

.visual-rich .publication-authors .author-block:nth-child(6) {
  animation-delay: 2.74s;
}

.visual-rich .publication-authors .author-block a {
  color: #ffffff;
  font-weight: 660;
  text-shadow: 0 2px 9px rgba(9, 18, 50, 0.38);
}

.visual-rich .publication-authors .author-block sup {
  color: #ffffff;
  font-weight: 620;
}

.visual-rich .publication-authors .author-block a:hover {
  color: rgba(255, 255, 255, 0.98);
}

.visual-rich .publication-authors .affiliations {
  color: var(--hero-tier-affiliation);
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.85rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(6, 14, 40, 0.26);
  opacity: 0;
  animation: heroMetaReveal 0.95s cubic-bezier(0.18, 0.8, 0.2, 1) 2.72s both;
}

.visual-rich .publication-authors .affiliations .affiliation-row + .affiliation-row {
  margin-top: 0.28rem;
}

.visual-rich .publication-authors .author-notes {
  color: var(--hero-tier-note);
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 560;
  margin-top: 0.65rem;
  line-height: 1.6;
  letter-spacing: 0.016em;
  text-shadow: 0 1px 5px rgba(6, 14, 40, 0.22);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 0.2rem;
  opacity: 0;
  animation: heroMetaReveal 0.95s cubic-bezier(0.18, 0.8, 0.2, 1) 2.9s both;
}

.visual-rich .publication-authors .author-notes .note-item + .note-item::before {
  color: rgba(207, 220, 246, 0.62);
}

.visual-rich .publication-links {
  margin-top: 1.08rem !important;
  animation: heroLinksReveal 1.2s cubic-bezier(0.12, 0.82, 0.16, 1) 3.1s both;
}

.visual-rich .publication-links .icon-btn {
  animation: heroIconPulse 5.4s ease-in-out 3.95s infinite;
}

.visual-rich .publication-links .icon-btn:nth-child(2) {
  animation-delay: 0.8s;
}

.visual-rich .publication-links .icon-btn:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes heroMistDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.92; }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); opacity: 1; }
}

@keyframes heroScan {
  0% {
    transform: translate3d(-7%, -2%, 0) rotate(-1.4deg) scale(1.02);
    background-position: 0 0, 0 0, 0 0;
  }
  50% {
    transform: translate3d(6%, 2%, 0) rotate(1.1deg) scale(1.06);
    background-position: 4% -3%, -3% 3%, 180px 90px;
  }
  100% {
    transform: translate3d(-7%, -2%, 0) rotate(-1.4deg) scale(1.02);
    background-position: 0 0, 0 0, 360px 180px;
  }
}

@keyframes heroColorFlow {
  0% {
    transform: translate3d(-8%, -3%, 0) scale(1.06);
    background-position: 2% 8%, 98% 92%, 8% 78%;
  }
  50% {
    transform: translate3d(7%, 3%, 0) scale(1.11);
    background-position: 48% 14%, 60% 74%, 50% 44%;
  }
  100% {
    transform: translate3d(-8%, -3%, 0) scale(1.06);
    background-position: 92% 30%, 16% 58%, 88% 18%;
  }
}

@keyframes heroBackdropFlow {
  0% {
    background-position: 6% 12%, 88% 30%, 48% 50%;
    background-size: 170% 170%, 166% 166%, 136% 136%;
  }
  50% {
    background-position: 50% 20%, 58% 58%, 52% 50%;
    background-size: 178% 178%, 172% 172%, 142% 142%;
  }
  100% {
    background-position: 92% 28%, 24% 76%, 54% 48%;
    background-size: 170% 170%, 166% 166%, 136% 136%;
  }
}

@keyframes heroBackdropFlowStrong {
  0% {
    background-position:
      calc(4% + var(--flow-bg-x)) calc(8% + var(--flow-bg-y)),
      calc(92% - var(--flow-bg-x)) calc(24% + var(--flow-mid-y)),
      48% 52%;
  }
  50% {
    background-position:
      calc(52% + var(--flow-bg-x)) calc(18% + var(--flow-bg-y)),
      calc(58% - var(--flow-bg-x)) calc(58% + var(--flow-mid-y)),
      54% 48%;
  }
  100% {
    background-position:
      calc(96% + var(--flow-bg-x)) calc(30% + var(--flow-bg-y)),
      calc(22% - var(--flow-bg-x)) calc(78% + var(--flow-mid-y)),
      46% 54%;
  }
}

@keyframes heroLayerFlowStrong {
  0% {
    background-position:
      calc(0% + var(--flow-bg-x)) calc(2% + var(--flow-bg-y)),
      calc(100% - var(--flow-bg-x)) calc(98% + var(--flow-mid-y)),
      calc(10% + var(--flow-bg-x)) calc(84% - var(--flow-mid-y));
  }
  50% {
    background-position:
      calc(46% + var(--flow-bg-x)) calc(14% + var(--flow-bg-y)),
      calc(60% - var(--flow-bg-x)) calc(70% + var(--flow-mid-y)),
      calc(46% + var(--flow-bg-x)) calc(48% - var(--flow-mid-y));
  }
  100% {
    background-position:
      calc(94% + var(--flow-bg-x)) calc(34% + var(--flow-bg-y)),
      calc(18% - var(--flow-bg-x)) calc(56% + var(--flow-mid-y)),
      calc(90% + var(--flow-bg-x)) calc(18% - var(--flow-mid-y));
  }
}

@keyframes heroFieldFlowStrong {
  0% { transform: translate3d(calc(var(--flow-field-x) - 30px), calc(var(--flow-field-y) - 12px), 0) scale(calc(var(--flow-field-s) * 0.98)); }
  50% { transform: translate3d(calc(var(--flow-field-x) + 24px), calc(var(--flow-field-y) + 16px), 0) scale(calc(var(--flow-field-s) * 1.04)); }
  100% { transform: translate3d(calc(var(--flow-field-x) - 30px), calc(var(--flow-field-y) - 12px), 0) scale(calc(var(--flow-field-s) * 0.98)); }
}

@keyframes flowBlobA {
  0% { transform: translate3d(-6%, -2%, 0) scale(1); opacity: 0.42; }
  50% { transform: translate3d(8%, 4%, 0) scale(1.1); opacity: 0.62; }
  100% { transform: translate3d(-3%, 9%, 0) scale(0.98); opacity: 0.48; }
}

@keyframes flowBlobB {
  0% { transform: translate3d(4%, -4%, 0) scale(0.98); opacity: 0.38; }
  50% { transform: translate3d(-8%, 6%, 0) scale(1.12); opacity: 0.58; }
  100% { transform: translate3d(3%, 10%, 0) scale(1.02); opacity: 0.45; }
}

@keyframes flowBlobC {
  0% { transform: translate3d(-4%, 2%, 0) scale(1.02); opacity: 0.36; }
  50% { transform: translate3d(7%, -6%, 0) scale(1.1); opacity: 0.52; }
  100% { transform: translate3d(2%, 8%, 0) scale(0.98); opacity: 0.4; }
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.64; }
  50% { opacity: 0.92; }
}

@keyframes heroFieldShift {
  0% { transform: translate3d(-2%, 0, 0) scale(1.01); opacity: 0.9; }
  50% { transform: translate3d(2%, 2%, 0) scale(1.04); opacity: 1; }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.01); opacity: 0.9; }
}

@keyframes heroTitleIn {
  0% { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes heroFadeInUp {
  0% { opacity: 0; transform: translateY(18px); filter: blur(5px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroBodyIntro {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroFieldIntro {
  0% { opacity: 0; transform: translate3d(0, 18px, 0) scale(1.08); filter: blur(34px); }
  100% { opacity: 0.96; transform: translate3d(var(--flow-field-x), var(--flow-field-y), 0) scale(var(--flow-field-s)); filter: blur(22px); }
}

@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(38px) scale(0.94);
    letter-spacing: 0.08em;
    filter: blur(14px);
    clip-path: inset(0 0 100% 0 round 18px);
  }
  55% {
    opacity: 0.82;
    transform: translateY(8px) scale(0.985);
    letter-spacing: 0.04em;
    filter: blur(4px);
    clip-path: inset(0 0 18% 0 round 18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.01em;
    filter: blur(0);
    clip-path: inset(0 0 0 0 round 18px);
  }
}

@keyframes heroSubReveal {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
    filter: blur(9px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroChipGroupReveal {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroPanelReveal {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.94);
    filter: blur(14px);
    clip-path: inset(0 0 100% 0 round 20px);
  }
  55% {
    opacity: 0.88;
    transform: translateY(10px) scale(0.985);
    filter: blur(4px);
    clip-path: inset(0 0 16% 0 round 20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    clip-path: inset(0 0 0 0 round 20px);
  }
}

@keyframes heroAuthorLineReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroMetaReveal {
  0% {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroLinksReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroTitleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes titleSheen {
  0%, 58% { transform: translateX(-250%); opacity: 0; }
  67% { opacity: 1; }
  84%, 100% { transform: translateX(360%); opacity: 0; }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes heroIconPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .visual-rich .publication-title::after,
  .visual-rich .publication-title,
  .visual-rich .publication-subtitle,
  .hero-meta-chips,
  .visual-rich .publication-authors,
  .visual-rich .publication-authors .author-block,
  .visual-rich .publication-authors .affiliations,
  .visual-rich .publication-authors .author-notes,
  .visual-rich .publication-links,
  .visual-rich .hero-chip,
  .visual-rich .publication-links .icon-btn {
    animation: none !important;
  }
}

.visual-rich .section {
  padding: 4.3rem 1.3rem;
  position: relative;
}

.visual-rich section.section:not(.bibtex-section) > .container.is-max-desktop {
  background: var(--vr-card);
  border: 1px solid var(--vr-border);
  border-radius: 26px;
  box-shadow: var(--vr-shadow);
  padding: clamp(1.2rem, 2.2vw, 2.2rem);
  backdrop-filter: blur(8px);
}

.visual-rich .section.has-background-light {
  background: transparent;
}

.visual-rich #taxonomy,
.visual-rich #methods {
  background:
    radial-gradient(900px 360px at 10% 0%, rgba(93, 131, 248, 0.12), transparent 60%),
    radial-gradient(1000px 400px at 88% 100%, rgba(113, 234, 198, 0.12), transparent 64%);
}

.visual-rich #taxonomy > .container.is-max-desktop > .title {
  margin-bottom: 1.35rem;
}

.visual-rich #taxonomy > .container.is-max-desktop > .has-text-centered.mb-5 {
  margin-bottom: 1.65rem !important;
}

.visual-rich #overview > .container.is-max-desktop {
  background:
    linear-gradient(158deg, rgba(246, 250, 255, 0.96) 0%, rgba(236, 244, 255, 0.92) 58%, rgba(236, 250, 246, 0.9) 100%);
  border-color: rgba(102, 126, 190, 0.22);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.visual-rich #overview > .container.is-max-desktop::before {
  content: '';
  position: absolute;
  top: -110px;
  right: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 128, 236, 0.22) 0%, rgba(99, 128, 236, 0.02) 72%);
  z-index: 0;
  pointer-events: none;
}

.visual-rich #overview > .container.is-max-desktop::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(121, 147, 222, 0.08) 0%, rgba(121, 147, 222, 0) 35%),
    repeating-linear-gradient(135deg, rgba(103, 126, 195, 0.05) 0 1px, transparent 1px 11px);
  z-index: 0;
  pointer-events: none;
}

.visual-rich #overview > .container.is-max-desktop > * {
  position: relative;
  z-index: 1;
}

.visual-rich #overview .has-text-centered.mb-5 {
  border-radius: 18px;
  padding: 1.05rem 1.05rem 1.2rem;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(112, 137, 202, 0.22);
  box-shadow: 0 10px 28px rgba(47, 71, 130, 0.12);
  margin-bottom: 1.35rem !important;
}

.visual-rich .section h2.title {
  font-family: 'M PLUS Rounded 1c', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.62rem, 2vw, 2rem);
  color: #1a2a4f;
  letter-spacing: 0.01em;
  margin-bottom: 1.05rem;
  position: relative;
}

.visual-rich .section h2.title::after {
  content: '';
  display: block;
  width: 74px;
  height: 4px;
  margin: 0.72rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 114, 224, 0.95), rgba(76, 198, 175, 0.92));
}

.visual-rich .section-subtitle {
  color: var(--vr-soft-text);
  font-size: 1.04rem;
  line-height: 1.8;
  max-width: 780px;
  margin: 0.2rem auto 1.8rem;
  text-wrap: pretty;
}

.visual-rich .method-abbrev-legend .legend-eq {
  color: #3f5686;
}

.visual-rich .abstract-content {
  color: #24385f;
  font-size: 1.03rem;
  line-height: 1.92;
  text-align: left;
}

.visual-rich #overview .abstract-content {
  max-width: 900px;
  padding: 1.45rem 1.55rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(158deg, rgba(244, 248, 255, 0.72) 0%, rgba(237, 245, 255, 0.66) 52%, rgba(236, 248, 244, 0.62) 100%);
  border: 1px solid rgba(112, 134, 188, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66), 0 7px 20px rgba(48, 74, 132, 0.09);
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.visual-rich #overview .abstract-content:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 25px rgba(48, 74, 132, 0.11);
}

.visual-rich #overview .abstract-content::before {
  content: '';
  position: absolute;
  left: 0.9rem;
  top: 1.05rem;
  bottom: 1.05rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(92, 121, 228, 0.9), rgba(73, 194, 170, 0.9));
}

.visual-rich #overview .abstract-content p {
  margin: 0;
  font-family: 'Source Serif 4', 'Times New Roman', serif;
  font-size: 1.08rem;
  line-height: 1.96;
  letter-spacing: 0.004em;
  color: #1f3359;
  text-wrap: pretty;
  padding-left: 0.95rem;
}

.visual-rich #overview .abstract-content p::first-letter {
  float: left;
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-size: 2.4em;
  line-height: 0.9;
  margin: 0.08em 0.12em 0 0;
  color: #4b67d8;
  font-weight: 700;
  text-shadow: 0 2px 7px rgba(72, 102, 193, 0.25);
}

.visual-rich .figure-image {
  border-radius: 14px;
  border: 1px solid rgba(90, 113, 170, 0.22);
  box-shadow: 0 10px 28px rgba(56, 74, 130, 0.14);
}

.visual-rich .figure-caption {
  color: #4b5f89;
  font-size: 0.95rem;
  line-height: 1.72;
  max-width: 760px;
  font-style: normal;
  margin-top: 1rem;
}

.visual-rich .figure-caption .caption-kicker {
  color: #4863b7;
  margin-bottom: 0.36rem;
}

.visual-rich .figure-block,
.visual-rich .taxonomy-tabs .tab-content,
.visual-rich .method-tabs .tab-content,
.visual-rich .highlight-card,
.visual-rich .criteria-card,
.visual-rich .demo-card {
  border-radius: 18px;
  border: 1px solid rgba(96, 122, 190, 0.16);
  box-shadow: 0 10px 28px rgba(48, 68, 124, 0.1);
}

.visual-rich .taxonomy-tabs .tabs ul,
.visual-rich .method-tabs .tabs ul {
  border-bottom: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.visual-rich .taxonomy-tabs .tabs,
.visual-rich .method-tabs .tabs {
  position: relative;
  z-index: 3;
  transform: translateY(-0.68rem);
  margin-bottom: 1rem;
}

.visual-rich .taxonomy-tabs .tabs li,
.visual-rich .method-tabs .tabs li {
  flex: 1 1 0;
  min-width: 178px;
  max-width: 216px;
}

.visual-rich .taxonomy-tabs .tabs.is-boxed a,
.visual-rich .method-tabs .tabs.is-boxed a {
  border-radius: 999px;
  border: 1px solid rgba(90, 112, 176, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 246, 255, 0.82) 100%);
  min-height: 2.5rem;
  color: #445982;
  font-weight: 650;
  letter-spacing: 0.004em;
  box-shadow: 0 7px 18px rgba(70, 90, 152, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.visual-rich .taxonomy-tabs .tabs.is-boxed a:hover,
.visual-rich .method-tabs .tabs.is-boxed a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(70, 90, 152, 0.18);
}

.visual-rich .taxonomy-tabs .tabs.is-boxed li.is-active a,
.visual-rich .method-tabs .tabs.is-boxed li.is-active a {
  background: linear-gradient(135deg, #5c71e3 0%, #5e8ee0 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px rgba(76, 109, 208, 0.44);
}

.visual-rich .taxonomy-tabs .tab-content,
.visual-rich .method-tabs .tab-content {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(96, 122, 190, 0.16);
  margin-top: 0.72rem;
  color: #2e426d;
  padding: 1.65rem 1.75rem 1.7rem;
  line-height: 1.85;
}

.visual-rich .taxonomy-tabs .tab-content p,
.visual-rich .method-tabs .tab-content p {
  color: #2f466f;
  text-wrap: pretty;
}

.visual-rich .taxonomy-tabs .tab-content .tab-intro {
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  line-height: 1.78;
  letter-spacing: 0.006em;
  color: #2a406b;
  background: rgba(246, 250, 255, 0.72);
  border: 1px solid rgba(96, 123, 190, 0.18);
  border-left: 3px solid rgba(88, 113, 210, 0.56);
  border-radius: 10px;
  padding: 0.62rem 0.78rem;
  margin-bottom: 0.9rem;
}

.visual-rich .tab-content-heading {
  font-size: 0.92rem;
  color: #4e67d6;
  letter-spacing: 0.08em;
}

.visual-rich .method-highlights li {
  padding: 0.82rem 0 0.82rem 1.45rem;
  border-bottom: 1px solid rgba(111, 132, 190, 0.16);
  font-size: 0.95rem;
  line-height: 1.7;
}

.visual-rich .method-highlights li strong {
  color: #1f3663;
}

.visual-rich .method-row > span:first-child {
  line-height: 1.72;
}

.visual-rich .pipeline-flow {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(100, 124, 185, 0.16);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.visual-rich .taxonomy-mini-title {
  color: #415cae;
  border-color: rgba(95, 118, 187, 0.3);
  background: rgba(244, 248, 255, 0.84);
  box-shadow: 0 5px 14px rgba(67, 90, 160, 0.14);
  margin-top: 0.4rem;
  margin-bottom: 0.48rem;
  text-shadow: 0 1px 3px rgba(58, 80, 146, 0.1);
}

.visual-rich .taxonomy-mini-title + .pipeline-flow {
  margin-top: 0.34rem;
}

.visual-rich .pipeline-stage {
  border-radius: 12px;
}

.visual-rich .method-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(90, 114, 177, 0.2);
}

.visual-rich .method-table thead th {
  background: linear-gradient(130deg, #4b65d8 0%, #5f80e6 100%);
  letter-spacing: 0.01em;
  font-size: 0.93rem;
  padding-top: 0.84rem;
  padding-bottom: 0.84rem;
}

.visual-rich .method-table td {
  color: #253962;
  font-size: 0.93rem;
  line-height: 1.65;
}

.visual-rich .highlight-desc,
.visual-rich .criteria-card-desc {
  color: #536a97;
  font-size: 0.9rem;
  line-height: 1.64;
  text-wrap: pretty;
}

.visual-rich .demo-category-title {
  color: #233863;
  border-bottom-color: rgba(96, 122, 190, 0.24);
  margin-bottom: 1.25rem !important;
}

.visual-rich .method-table tbody tr:nth-child(2n) {
  background: rgba(94, 130, 232, 0.05);
}

.visual-rich .method-table tbody tr:hover {
  background: rgba(102, 126, 234, 0.14);
}

.visual-rich .highlight-card {
  background: linear-gradient(170deg, #ffffff 0%, #f8fbff 100%);
}

.visual-rich .criteria-card {
  background: linear-gradient(170deg, #ffffff 0%, #f9fbff 100%);
}

.visual-rich .demo-card {
  border-style: solid;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.visual-rich .demo-card-preview {
  background: linear-gradient(135deg, #eef3ff 0%, #e6edff 45%, #e8f7ff 100%);
}

.visual-rich .demo-preview-image {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.18) 34%, transparent 60%),
    linear-gradient(180deg, #edf3ff 0%, #d9e6ff 54%, #d8f5fb 100%);
}

.visual-rich .bibtex-section {
  background:
    radial-gradient(700px 300px at 8% -10%, rgba(116, 152, 255, 0.26), transparent 58%),
    radial-gradient(900px 380px at 95% 100%, rgba(81, 220, 190, 0.2), transparent 62%),
    #10192f !important;
}

.visual-rich .bibtex-block pre {
  border-radius: 14px;
  border: 1px solid rgba(160, 184, 241, 0.2);
  box-shadow: 0 18px 42px rgba(7, 16, 40, 0.45);
}

.visual-rich .footer {
  background: #0d1529;
}

.visual-rich .reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.56s ease, transform 0.56s ease;
}

.visual-rich .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 768px) {
.visual-rich .hero.is-light .hero-body {
    padding: 6.3rem 1rem 3.9rem;
  }

  .visual-rich .section {
    padding: 2.6rem 0.9rem;
  }

  .visual-rich section.section:not(.bibtex-section) > .container.is-max-desktop {
    border-radius: 18px;
    padding: 1rem 0.95rem 1.2rem;
  }

  .visual-rich .section h2.title {
    font-size: 1.42rem;
  }

  .visual-rich .section h2.title::after {
    width: 62px;
    margin-top: 0.58rem;
  }

  .visual-rich .section-subtitle {
    font-size: 0.97rem;
    line-height: 1.72;
    margin-bottom: 1.25rem;
  }

  .visual-rich .method-abbrev-legend {
    margin: 0.78rem auto 1.75rem !important;
  }

  .visual-rich #overview .abstract-content {
    padding: 1.02rem 0.95rem 1.08rem;
    border-radius: 12px;
  }

  .visual-rich #overview .abstract-content p {
    font-size: 1rem;
    line-height: 1.82;
    padding-left: 0.7rem;
  }

  .visual-rich #overview .abstract-content::before {
    left: 0.64rem;
    top: 0.8rem;
    bottom: 0.8rem;
  }

  .visual-rich #overview .abstract-content p::first-letter {
    font-size: 2.05em;
    margin-right: 0.1em;
  }

  .visual-rich .taxonomy-tabs .tab-content,
  .visual-rich .method-tabs .tab-content {
    padding: 1.2rem 1.05rem 1.22rem;
    line-height: 1.76;
  }

  .visual-rich .taxonomy-tabs .tabs,
  .visual-rich .method-tabs .tabs {
    transform: translateY(-0.42rem);
    margin-bottom: 0.8rem;
  }

  .visual-rich .taxonomy-tabs .tab-content .tab-intro {
    font-size: 0.92rem;
    line-height: 1.68;
    padding: 0.52rem 0.62rem;
  }

  .visual-rich .method-highlights li {
    font-size: 0.91rem;
    line-height: 1.63;
  }

  .visual-rich .method-table td,
  .visual-rich .method-table thead th {
    font-size: 0.86rem;
  }

  .visual-rich .publication-title {
    margin-bottom: 0.9rem !important;
  }

  .visual-rich .publication-subtitle {
    margin-top: 0.95rem;
    margin-bottom: 1.2rem;
  }

  .hero-meta-chips {
    margin-top: 0.7rem;
    gap: 0.45rem;
  }

  .hero-chip {
    font-size: 0.72rem;
    padding: 0.29rem 0.72rem;
  }

  .visual-rich .publication-authors {
    padding: 0.7rem 0.72rem 0.74rem;
    border-radius: 13px;
  }

  .visual-rich .publication-authors .affiliations {
    font-size: 0.86rem;
    letter-spacing: 0.012em;
  }

  .visual-rich .publication-authors .author-notes {
    font-size: 0.77rem;
    line-height: 1.52;
    letter-spacing: 0.01em;
  }
}

@media screen and (max-width: 480px) {
  .visual-rich .hero.is-light .hero-body {
    padding: 5.35rem 0.85rem 3.15rem;
  }

  .visual-rich .section h2.title {
    font-size: 1.3rem;
  }

  .visual-rich .section h2.title::after {
    width: 54px;
    height: 3px;
    margin-top: 0.5rem;
  }

  .visual-rich .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1rem;
  }

  .visual-rich .method-abbrev-legend {
    margin: 0.64rem auto 1.45rem !important;
  }

  .visual-rich #overview .has-text-centered.mb-5 {
    padding: 0.62rem 0.62rem 0.74rem;
    border-radius: 12px;
  }

  .visual-rich .publication-title {
    margin-bottom: 0.72rem !important;
  }

  .visual-rich .publication-subtitle {
    margin-top: 0.78rem;
    margin-bottom: 1rem;
  }

  .visual-rich .publication-authors .author-block {
    margin: 0.12rem 0.05rem;
  }

  .visual-rich .publication-authors .author-notes {
    font-size: 0.73rem;
    row-gap: 0.12rem;
  }

  .visual-rich .publication-authors .author-notes .note-item + .note-item::before {
    content: ' ';
    margin: 0;
  }
}

/* ============================================
   DYNAMIC COLOR FLOW EFFECTS
   Flowing, animated color effects across the
   page. Does NOT alter entrance animations,
   existing color palette, or text content.
   ============================================ */

/* --- 1. Page background ambient color drift --- */
body.visual-rich {
  background:
    radial-gradient(600px 600px at 50% 50%, rgba(102, 126, 234, 0.07), transparent 70%),
    radial-gradient(500px 500px at 50% 50%, rgba(67, 233, 123, 0.05), transparent 70%),
    radial-gradient(450px 450px at 50% 50%, rgba(240, 147, 251, 0.04), transparent 70%),
    radial-gradient(1200px 500px at 12% -2%, rgba(99, 121, 220, 0.2), transparent 60%),
    radial-gradient(900px 450px at 90% 22%, rgba(96, 224, 197, 0.16), transparent 62%),
    linear-gradient(180deg, #f4f7ff 0%, #eef3ff 46%, #f8fbff 100%);
  background-size:
    180% 180%, 160% 160%, 200% 200%,
    100% 100%, 100% 100%, 100% 100%;
  animation: pageColorDrift 25s ease-in-out infinite;
}

@keyframes pageColorDrift {
  0%, 100% {
    background-position:
      15% 20%, 85% 75%, 50% 40%,
      0 0, 0 0, 0 0;
  }
  33% {
    background-position:
      65% 45%, 35% 35%, 80% 70%,
      0 0, 0 0, 0 0;
  }
  66% {
    background-position:
      85% 15%, 15% 85%, 20% 60%,
      0 0, 0 0, 0 0;
  }
}

/* --- 2. Section heading underline gradient flow --- */
.visual-rich .section h2.title::after {
  background: linear-gradient(90deg,
    #5b72e0, #4cc6af, #f093fb, #4facfe, #5b72e0);
  background-size: 300% 100%;
  animation: titleUnderlineFlow 4s ease-in-out infinite;
}

@keyframes titleUnderlineFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- 3. Highlight numbers flowing color shimmer --- */
.visual-rich .highlight-number {
  background: linear-gradient(135deg,
    #667eea 0%, #764ba2 20%, #f093fb 40%, #4facfe 60%, #43e97b 80%, #667eea 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: numberShimmer 6s ease-in-out infinite;
}

.visual-rich .highlights-grid .column:nth-child(2) .highlight-number { animation-delay: -2s; }
.visual-rich .highlights-grid .column:nth-child(3) .highlight-number { animation-delay: -4s; }

@keyframes numberShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- 4. Taxonomy top rainbow bar flow --- */
.visual-rich .section--taxonomy::before {
  background: linear-gradient(90deg,
    #667eea, #764ba2, #f093fb, #4facfe, #43e97b, #fa709a,
    #667eea, #764ba2, #f093fb);
  background-size: 200% 100%;
  animation: taxonomyRainbowFlow 6s linear infinite;
}

@keyframes taxonomyRainbowFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* --- 5. Section card cycling glow aura --- */
.visual-rich section.section:not(.bibtex-section):not(#hero) > .container.is-max-desktop {
  animation: cardAuraGlow 8s ease-in-out infinite;
}

.visual-rich #taxonomy > .container.is-max-desktop { animation-delay: -1.3s; }
.visual-rich #visual-results > .container.is-max-desktop { animation-delay: -2.6s; }
.visual-rich #glance > .container.is-max-desktop { animation-delay: -3.9s; }
.visual-rich #criteria > .container.is-max-desktop { animation-delay: -5.2s; }
.visual-rich #methods > .container.is-max-desktop { animation-delay: -6.5s; }
.visual-rich #demos > .container.is-max-desktop { animation-delay: -7.8s; }

@keyframes cardAuraGlow {
  0%, 100% {
    box-shadow:
      0 16px 42px rgba(43, 62, 112, 0.12),
      0 0 0 1px rgba(102, 126, 234, 0.06);
  }
  25% {
    box-shadow:
      0 16px 42px rgba(43, 62, 112, 0.12),
      0 0 35px -5px rgba(102, 126, 234, 0.15),
      0 0 70px -10px rgba(102, 126, 234, 0.06);
  }
  50% {
    box-shadow:
      0 16px 42px rgba(43, 62, 112, 0.12),
      0 0 35px -5px rgba(76, 198, 175, 0.15),
      0 0 70px -10px rgba(76, 198, 175, 0.06);
  }
  75% {
    box-shadow:
      0 16px 42px rgba(43, 62, 112, 0.12),
      0 0 35px -5px rgba(240, 147, 251, 0.12),
      0 0 70px -10px rgba(240, 147, 251, 0.05);
  }
}

/* --- 6. Pipeline stage glow wave (staggered) --- */
.visual-rich .pipeline-stage {
  animation: pipelineStageGlow 4s ease-in-out infinite;
}

.visual-rich .pipeline-flow > :nth-child(1)  { animation-delay: 0s; }
.visual-rich .pipeline-flow > :nth-child(3)  { animation-delay: 0.45s; }
.visual-rich .pipeline-flow > :nth-child(5)  { animation-delay: 0.9s; }
.visual-rich .pipeline-flow > :nth-child(7)  { animation-delay: 1.35s; }
.visual-rich .pipeline-flow > :nth-child(9)  { animation-delay: 1.8s; }
.visual-rich .pipeline-flow > :nth-child(11) { animation-delay: 2.25s; }
.visual-rich .pipeline-flow > :nth-child(13) { animation-delay: 2.7s; }

@keyframes pipelineStageGlow {
  0%, 100% {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.06),
      0 0 20px rgba(102, 126, 234, 0.2),
      0 0 40px rgba(102, 126, 234, 0.06);
  }
}

/* --- 7. Pipeline arrow color pulse (staggered) --- */
.visual-rich .pipeline-arrow {
  animation: arrowPulse 2s ease-in-out infinite;
}

.visual-rich .pipeline-flow > :nth-child(2)  { animation-delay: 0.2s; }
.visual-rich .pipeline-flow > :nth-child(4)  { animation-delay: 0.65s; }
.visual-rich .pipeline-flow > :nth-child(6)  { animation-delay: 1.1s; }
.visual-rich .pipeline-flow > :nth-child(8)  { animation-delay: 1.55s; }
.visual-rich .pipeline-flow > :nth-child(10) { animation-delay: 2s; }
.visual-rich .pipeline-flow > :nth-child(12) { animation-delay: 2.45s; }

@keyframes arrowPulse {
  0%, 100% { color: #b0b4cc; opacity: 0.7; }
  50% { color: #667eea; opacity: 1; }
}

/* --- 8. Criteria icon pulsing glow (staggered) --- */
.visual-rich .criteria-icon {
  animation: criteriaIconPulse 5s ease-in-out infinite;
}

.visual-rich .criteria-grid .column:nth-child(1) .criteria-icon { animation-delay: 0s; }
.visual-rich .criteria-grid .column:nth-child(2) .criteria-icon { animation-delay: -0.7s; }
.visual-rich .criteria-grid .column:nth-child(3) .criteria-icon { animation-delay: -1.4s; }
.visual-rich .criteria-grid .column:nth-child(4) .criteria-icon { animation-delay: -2.1s; }
.visual-rich .criteria-grid .column:nth-child(5) .criteria-icon { animation-delay: -2.8s; }
.visual-rich .criteria-grid .column:nth-child(6) .criteria-icon { animation-delay: -3.5s; }

@keyframes criteriaIconPulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.18),
      0 0 18px rgba(102, 126, 234, 0.22);
    transform: scale(1.06);
  }
}

/* --- 9. Table header gradient shimmer --- */
.visual-rich .method-table thead th {
  background: linear-gradient(130deg,
    #4b65d8 0%, #5f80e6 33%, #7b68ee 66%, #4b65d8 100%);
  background-size: 300% 100%;
  animation: tableHeaderShimmer 8s ease-in-out infinite;
}

@keyframes tableHeaderShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- 10. Demo badge shimmer sweep --- */
.visual-rich .demo-card-badge {
  position: relative;
  overflow: hidden;
}

.visual-rich .demo-card-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 65%
  );
  animation: badgeShimmerSweep 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes badgeShimmerSweep {
  0%, 55% { left: -120%; }
  100% { left: 220%; }
}

/* --- 11. Highlight card rotating border glow --- */
.visual-rich .highlight-card {
  position: relative;
  z-index: 0;
}

.visual-rich .highlight-card::before {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: conic-gradient(
    #667eea, #764ba2, #f093fb, #4facfe, #43e97b, #fa709a, #667eea);
  z-index: -1;
  opacity: 0.12;
  filter: blur(20px);
  transition: opacity 0.4s ease;
  animation: rotateGlowElement 6s linear infinite;
}

.visual-rich .highlights-grid .column:nth-child(2) .highlight-card::before { animation-delay: -2s; }
.visual-rich .highlights-grid .column:nth-child(3) .highlight-card::before { animation-delay: -4s; }

.visual-rich .highlight-card:hover::before {
  opacity: 0.4;
}

@keyframes rotateGlowElement {
  to { transform: rotate(360deg); }
}

/* --- 12. Active tab glow pulse --- */
.visual-rich .taxonomy-tabs .tabs.is-boxed li.is-active a,
.visual-rich .method-tabs .tabs.is-boxed li.is-active a {
  animation: activeTabPulse 3s ease-in-out infinite;
}

@keyframes activeTabPulse {
  0%, 100% {
    box-shadow: 0 12px 26px rgba(76, 109, 208, 0.44);
  }
  50% {
    box-shadow:
      0 12px 26px rgba(76, 109, 208, 0.44),
      0 0 24px rgba(102, 126, 234, 0.25);
  }
}

/* --- 13. Abstract left accent bar color flow --- */
.visual-rich #overview .abstract-content::before {
  background: linear-gradient(180deg,
    rgba(92, 121, 228, 0.9),
    rgba(73, 194, 170, 0.9),
    rgba(240, 147, 251, 0.8),
    rgba(79, 172, 254, 0.9),
    rgba(92, 121, 228, 0.9));
  background-size: 100% 300%;
  animation: abstractBarFlow 5s ease-in-out infinite;
}

@keyframes abstractBarFlow {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}

/* --- 14. Footer aurora sweep --- */
.visual-rich .footer {
  position: relative;
  overflow: hidden;
}

.visual-rich .footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 300%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(102, 126, 234, 0.06) 15%,
    rgba(76, 198, 175, 0.05) 30%,
    rgba(240, 147, 251, 0.04) 45%,
    transparent 60%,
    transparent 100%);
  animation: footerAuroraSweep 10s linear infinite;
  pointer-events: none;
}

@keyframes footerAuroraSweep {
  0% { transform: translateX(0); }
  100% { transform: translateX(33.33%); }
}

/* --- 15. BibTeX section ambient glow drift --- */
.visual-rich .bibtex-section {
  position: relative;
}

.visual-rich .bibtex-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 250px at 50% 50%, rgba(102, 126, 234, 0.1), transparent 70%),
    radial-gradient(400px 200px at 50% 50%, rgba(76, 198, 175, 0.08), transparent 70%);
  background-size: 200% 200%, 180% 180%;
  animation: bibtexGlowDrift 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes bibtexGlowDrift {
  0%, 100% { background-position: 20% 30%, 80% 70%; }
  33% { background-position: 70% 50%, 30% 30%; }
  66% { background-position: 40% 80%, 60% 50%; }
}

.visual-rich .bibtex-section > .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   HOVER ROTATING COLOR GLOW
   Same effect as Survey at a Glance highlight
   cards, applied across all card elements.
   Uses site palette for color harmony.
   ============================================ */

/* --- Criteria cards --- */
.visual-rich .criteria-card {
  position: relative;
  z-index: 0;
}

.visual-rich .criteria-card::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  filter: blur(18px);
  transition: opacity 0.45s ease;
  animation: rotateGlowElement 6s linear infinite;
}

/* Per-card glow colors matching each card's accent */
.visual-rich .criteria-grid .column:nth-child(1) .criteria-card::before {
  background: conic-gradient(#667eea, #764ba2, #8e9aef, #667eea);
  animation-delay: 0s;
}
.visual-rich .criteria-grid .column:nth-child(2) .criteria-card::before {
  background: conic-gradient(#f093fb, #f5576c, #fbb1cf, #f093fb);
  animation-delay: -1s;
}
.visual-rich .criteria-grid .column:nth-child(3) .criteria-card::before {
  background: conic-gradient(#4facfe, #00f2fe, #7ec8f8, #4facfe);
  animation-delay: -2s;
}
.visual-rich .criteria-grid .column:nth-child(4) .criteria-card::before {
  background: conic-gradient(#43e97b, #38f9d7, #7af0b8, #43e97b);
  animation-delay: -3s;
}
.visual-rich .criteria-grid .column:nth-child(5) .criteria-card::before {
  background: conic-gradient(#fa709a, #fee140, #fcb07e, #fa709a);
  animation-delay: -4s;
}
.visual-rich .criteria-grid .column:nth-child(6) .criteria-card::before {
  background: conic-gradient(#a18cd1, #fbc2eb, #c8a4e6, #a18cd1);
  animation-delay: -5s;
}

.visual-rich .criteria-card:hover::before {
  opacity: 0.45;
}

.visual-rich .criteria-card:hover {
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.09),
    0 0 30px rgba(102, 126, 234, 0.12),
    0 0 60px rgba(102, 126, 234, 0.05);
}

/* --- Demo cards --- */
.visual-rich .demo-card {
  position: relative;
  z-index: 0;
}

.visual-rich .demo-card::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(
    #667eea, #764ba2, #f093fb, #4facfe, #667eea);
  z-index: -1;
  opacity: 0;
  filter: blur(16px);
  transition: opacity 0.4s ease;
  animation: rotateGlowElement 5s linear infinite;
}

.visual-rich .demo-grid .column:nth-child(2) .demo-card::before { animation-delay: -1.2s; }
.visual-rich .demo-grid .column:nth-child(3) .demo-card::before { animation-delay: -2.4s; }
.visual-rich .demo-grid .column:nth-child(4) .demo-card::before { animation-delay: -3.6s; }

.visual-rich .demo-card:hover::before {
  opacity: 0.38;
}

.visual-rich .demo-card:hover {
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.08),
    0 0 24px rgba(102, 126, 234, 0.14),
    0 0 48px rgba(102, 126, 234, 0.05);
}

/* --- Figure blocks (Visual Results) --- */
.visual-rich .figure-block {
  position: relative;
  z-index: 0;
  overflow: visible;
}

.visual-rich .figure-block::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  background: conic-gradient(
    #667eea, #4facfe, #43e97b, #f093fb, #764ba2, #667eea);
  z-index: -1;
  opacity: 0;
  filter: blur(14px);
  transition: opacity 0.5s ease;
  animation: rotateGlowElement 8s linear infinite;
}

.visual-rich .figure-block:nth-child(2)::before { animation-delay: -3s; }

.visual-rich .figure-block:hover::before {
  opacity: 0.3;
}

.visual-rich .figure-block:hover {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 28px rgba(102, 126, 234, 0.12);
}

/* --- Pipeline stages --- */
.visual-rich .pipeline-stage {
  position: relative;
  z-index: 0;
}

.visual-rich .pipeline-stage::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    #667eea, #764ba2, #4facfe, #43e97b, #667eea);
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.35s ease;
  animation: rotateGlowElement 4s linear infinite;
}

.visual-rich .pipeline-stage:hover::before {
  opacity: 0.5;
}

/* --- BibTeX code block --- */
.visual-rich .bibtex-block {
  position: relative;
  z-index: 0;
}

.visual-rich .bibtex-block::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  background: conic-gradient(
    #667eea, #4facfe, #43e97b, #f093fb, #764ba2, #667eea);
  z-index: -1;
  opacity: 0;
  filter: blur(16px);
  transition: opacity 0.5s ease;
  animation: rotateGlowElement 7s linear infinite;
}

.visual-rich .bibtex-block:hover::before {
  opacity: 0.35;
}

/* --- Tab buttons (inactive) hover glow --- */
.visual-rich .taxonomy-tabs .tabs.is-boxed li:not(.is-active) a:hover,
.visual-rich .method-tabs .tabs.is-boxed li:not(.is-active) a:hover {
  box-shadow:
    0 7px 18px rgba(70, 90, 152, 0.16),
    0 0 18px rgba(102, 126, 234, 0.12);
  border-color: rgba(102, 126, 234, 0.4);
}

/* --- Highlight card enhanced hover (existing) --- */
.visual-rich .highlight-card:hover {
  box-shadow:
    0 10px 28px rgba(48, 68, 124, 0.1),
    0 0 40px rgba(102, 126, 234, 0.15),
    0 0 80px rgba(102, 126, 234, 0.06);
}

/* --- Method table row hover color flow --- */
.visual-rich .method-table tbody tr {
  position: relative;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.visual-rich .method-table tbody tr:hover {
  background: linear-gradient(90deg,
    rgba(102, 126, 234, 0.1),
    rgba(240, 147, 251, 0.06),
    rgba(79, 172, 254, 0.1));
  box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.12);
}

/* --- Respect reduced motion preference --- */
@media (prefers-reduced-motion: reduce) {
  body.visual-rich,
  .visual-rich .section h2.title::after,
  .visual-rich .highlight-number,
  .visual-rich .section--taxonomy::before,
  .visual-rich section.section:not(.bibtex-section):not(#hero) > .container.is-max-desktop,
  .visual-rich .pipeline-stage,
  .visual-rich .pipeline-arrow,
  .visual-rich .criteria-icon,
  .visual-rich .method-table thead th,
  .visual-rich .highlight-card::before,
  .visual-rich .criteria-card::before,
  .visual-rich .demo-card::before,
  .visual-rich .figure-block::before,
  .visual-rich .pipeline-stage::before,
  .visual-rich .bibtex-block::before,
  .visual-rich .taxonomy-tabs .tabs.is-boxed li.is-active a,
  .visual-rich .method-tabs .tabs.is-boxed li.is-active a,
  .visual-rich #overview .abstract-content::before,
  .visual-rich .footer::before,
  .visual-rich .bibtex-section::after {
    animation: none !important;
  }

  .visual-rich .demo-card-badge::after {
    display: none;
  }
}
