:root {
  --text: #111111;
  --muted: #4b5563;
  --line: #d1d5db;
  --soft-line: #e8edf3;
  --light: #f1f5f9;
  --page-bg: #ffffff;
  --panel-bg: #ffffff;
  --panel-bg-soft: #f8fafc;
  --panel-border: #e2e8f0;
  --panel-shadow: 0 22px 58px rgba(15, 23, 42, 0.07);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-border: rgba(226, 232, 240, 0.78);
  --heading: #111827;
  --table-head-bg: #f8fafc;
  --table-row-alt: rgba(248, 250, 252, 0.72);
  --table-hover: rgba(53, 167, 255, 0.12);
  --table-pin: rgba(85, 175, 123, 0.16);
  --table-best: rgba(85, 175, 123, 0.18);
  --reference-bg: rgba(255, 255, 255, 0.88);
  --reference-border: rgba(226, 232, 240, 0.86);
  --control-bg: rgba(255, 255, 255, 0.9);
  --control-bg-hover: #ffffff;
  --control-text: #111827;
  --progress-dot: rgba(17, 24, 39, 0.28);
  --progress-dot-active: #111827;
  --content-measure: 1080px;
  --hero-sky-top: #f4e8c6;
  --hero-sky-bottom: #fff8ec;
  --cola-dark: #170502;
  --cola-mid: #280903;
  --cola-light: #4a1506;
}

html[data-theme="dark"] {
  --text: #ffffff;
  --muted: #d5dde8;
  --line: #445063;
  --soft-line: rgba(190, 204, 224, 0.18);
  --light: #202a38;
  --page-bg: #0b1018;
  --panel-bg: #111827;
  --panel-bg-soft: #162033;
  --panel-border: rgba(190, 204, 224, 0.18);
  --panel-shadow: 0 26px 74px rgba(0, 0, 0, 0.38);
  --nav-bg: rgba(11, 16, 24, 0.84);
  --nav-border: rgba(190, 204, 224, 0.16);
  --heading: #ffffff;
  --table-head-bg: #182234;
  --table-row-alt: rgba(255, 255, 255, 0.035);
  --table-hover: rgba(79, 140, 255, 0.15);
  --table-pin: rgba(47, 191, 143, 0.18);
  --table-best: rgba(47, 191, 143, 0.24);
  --reference-bg: rgba(17, 24, 39, 0.9);
  --reference-border: rgba(190, 204, 224, 0.2);
  --control-bg: rgba(255, 255, 255, 0.14);
  --control-bg-hover: rgba(148, 163, 184, 0.18);
  --control-text: #ffffff;
  --progress-dot: rgba(255, 255, 255, 0.34);
  --progress-dot-active: #ffffff;
  --hero-sky-top: #111827;
  --hero-sky-bottom: #1f2937;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  transition: background 0.24s ease, color 0.24s ease;
}

body.media-preview-open {
  overflow: hidden;
}

.page-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-110%);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

body.page-nav-visible .page-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.page-nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, calc(var(--content-measure) + 2rem));
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--heading);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.page-nav-brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.page-nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.page-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.78rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-nav-links a:hover,
.page-nav-links a.is-active {
  background: var(--light);
  color: var(--heading);
}

.theme-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-left: 0.55rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel-bg);
  color: var(--heading);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--light);
}

.theme-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.reading-progress {
  height: 3px;
  background: var(--soft-line);
}

.reading-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ef4b34, #f59e0b, #35a7ff, #22c55e);
  transition: width 0.12s linear;
}

a {
  color: #2563eb;
}

a:hover {
  color: #1d4ed8;
}

.project-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 244, 214, 0.95) 0%, rgba(255, 244, 214, 0.45) 18%, transparent 34%),
    linear-gradient(to bottom, var(--hero-sky-top), var(--hero-sky-bottom));
  transition: height 0.65s ease, min-height 0.65s ease;
}

.project-hero.is-collapsed {
  height: 0;
  min-height: 0;
  border: 0;
}

.hero-title-wrap {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  padding: 0 1.5rem 12rem;
  transition: transform 0.65s ease, opacity 0.5s ease;
}

.hero-title-in-cola {
  position: absolute;
  left: 50%;
  bottom: clamp(5.2rem, 14vh, 8.2rem);
  z-index: 4;
  width: min(92vw, 1380px);
  transform: translateX(-50%);
  transition: opacity 0.5s ease, transform 0.65s ease;
}

.hero-logo-block {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.65s ease, opacity 0.5s ease;
}

.hero-logo-shell {
  position: relative;
  width: min(29vw, 320px);
  min-width: 180px;
}

.hero-logo-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.14));
}

.publication-title {
  margin: 0;
  font-size: min(max(52px, 6vw), 150px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.05em;
  text-align: center;
  transition: transform 0.65s ease, opacity 0.5s ease, filter 0.5s ease;
}

.title-mark {
  font-weight: 800;
}

.publication-title-cola {
  color: #fff4d6;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(255, 180, 92, 0.16),
    0 10px 30px rgba(0, 0, 0, 0.28);
}

.project-hero.is-collapsed .hero-title-wrap {
  transform: translateY(8rem);
  opacity: 0;
  pointer-events: none;
}

.project-hero.is-collapsed .publication-title {
  filter: blur(4px);
}

.project-hero.is-collapsed .hero-title-in-cola {
  opacity: 0;
  transform: translateX(-50%) translateY(2rem);
}

.project-hero.is-collapsed .hero-logo-block {
  opacity: 0;
  transform: translateY(1rem) scale(0.92);
}

.project-hero.is-collapsed .hero-bubbles {
  opacity: 0;
}

.project-hero.is-collapsed .cola-surface {
  height: 10rem;
  transform: translateY(-1rem);
}

.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.92) 55%, rgba(0, 0, 0, 0.18) 76%, transparent 88%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.92) 55%, rgba(0, 0, 0, 0.18) 76%, transparent 88%);
}

.bubble {
  position: absolute;
  bottom: 8rem;
  border-radius: 999px;
  opacity: 0;
  background: transparent;
  border: 4px solid currentColor;
  box-shadow: none;
  animation-name: bubble-rise;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}

.bubble-1 { left: 7%; width: 22px; height: 22px; animation-duration: 5.6s; animation-delay: 0s; color: #ef4b34; }
.bubble-2 { left: 12%; width: 14px; height: 14px; animation-duration: 6.4s; animation-delay: 0.4s; color: #ff7b2f; }
.bubble-3 { left: 18%; width: 34px; height: 34px; animation-duration: 6s; animation-delay: 0.25s; color: #ffd243; }
.bubble-4 { left: 24%; width: 16px; height: 16px; animation-duration: 5.2s; animation-delay: 0.5s; color: #ffe86e; }
.bubble-5 { left: 31%; width: 26px; height: 26px; animation-duration: 6.8s; animation-delay: 0.45s; color: #59d4c8; }
.bubble-6 { left: 38%; width: 18px; height: 18px; animation-duration: 5.7s; animation-delay: 0.45s; color: #35d4ff; }
.bubble-7 { left: 45%; width: 30px; height: 30px; animation-duration: 6.6s; animation-delay: 0.15s; color: #4b8cff; }
.bubble-8 { left: 51%; width: 12px; height: 12px; animation-duration: 4.9s; animation-delay: 0.35s; color: #5757f1; }
.bubble-9 { left: 57%; width: 24px; height: 24px; animation-duration: 6.2s; animation-delay: 0.5s; color: #8f46f5; }
.bubble-10 { left: 63%; width: 18px; height: 18px; animation-duration: 5.5s; animation-delay: 0.25s; color: #bb44ff; }
.bubble-11 { left: 70%; width: 28px; height: 28px; animation-duration: 6.5s; animation-delay: 0.35s; color: #ef4b34; }
.bubble-12 { left: 76%; width: 10px; height: 10px; animation-duration: 4.8s; animation-delay: 0.4s; color: #ffbe2f; }
.bubble-13 { left: 82%; width: 20px; height: 20px; animation-duration: 5.9s; animation-delay: 0.3s; color: #59d4c8; }
.bubble-14 { left: 89%; width: 32px; height: 32px; animation-duration: 6.9s; animation-delay: 0.1s; color: #4b8cff; }
.bubble-15 { left: 94%; width: 15px; height: 15px; animation-duration: 5.1s; animation-delay: 0.45s; color: #bb44ff; }
.bubble-16 { left: 15%; width: 9px; height: 9px; animation-duration: 4.6s; animation-delay: 0.2s; color: #ffd243; }
.bubble-17 { left: 35%; width: 13px; height: 13px; animation-duration: 5.3s; animation-delay: 0.05s; color: #ef4b34; }
.bubble-18 { left: 48%; width: 21px; height: 21px; animation-duration: 6.1s; animation-delay: 0.5s; color: #35d4ff; }
.bubble-19 { left: 68%; width: 11px; height: 11px; animation-duration: 4.7s; animation-delay: 0.35s; color: #8f46f5; }
.bubble-20 { left: 86%; width: 17px; height: 17px; animation-duration: 5.4s; animation-delay: 0.15s; color: #ff7b2f; }

@keyframes bubble-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.7);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  55% {
    opacity: 0.62;
  }
  82% {
    opacity: 0.16;
  }
  100% {
    transform: translate3d(24px, -68vh, 0) scale(1.08);
    opacity: 0;
  }
}


.cola-surface {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50vh;
  min-height: 360px;
  z-index: 2;
  transition: height 0.65s ease, transform 0.65s ease;
}

.cola-wave {
  position: absolute;
  left: -10%;
  width: 120%;
  border-radius: 48% 52% 0 0;
}

.cola-wave-back {
  top: 0.8rem;
  height: calc(100% - 0.8rem);
  background: linear-gradient(to bottom, rgba(45, 13, 4, 0.94), rgba(18, 4, 1, 1));
  animation: wave-sway 10s ease-in-out infinite alternate;
}

.cola-wave-front {
  top: 1.1rem;
  height: calc(100% - 1.1rem);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 189, 99, 0.08), transparent 22%),
    radial-gradient(circle at 72% 20%, rgba(255, 226, 168, 0.06), transparent 22%),
    linear-gradient(to bottom, rgba(54, 15, 4, 0.98), rgba(10, 2, 1, 1));
  animation: wave-sway-alt 7.2s ease-in-out infinite alternate;
}

@keyframes wave-sway {
  from { transform: translateX(-1.5%) rotate(-1.1deg); }
  to { transform: translateX(1.5%) rotate(1deg); }
}

@keyframes wave-sway-alt {
  from { transform: translateX(1.2%) rotate(1deg); }
  to { transform: translateX(-1.2%) rotate(-1deg); }
}

.after-hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 1.35rem 0 0.75rem;
}

.after-hero .container {
  position: relative;
  z-index: 2;
}

.after-hero-cola {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(0.85rem);
  transition: height 0.45s ease, opacity 0.35s ease, transform 0.45s ease;
  pointer-events: none;
}

body.hero-collapsed .after-hero-cola {
  height: clamp(6px, 0.9vw, 11px);
  opacity: 1;
  transform: translateY(0);
}

.after-hero-cola::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: -28px;
  height: 36px;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(93, 31, 9, 0.13) 0%, rgba(93, 31, 9, 0.06) 34%, transparent 72%),
    linear-gradient(
      to bottom,
      rgba(255, 250, 241, 0) 0%,
      rgba(255, 250, 241, 0.54) 40%,
      rgba(255, 250, 241, 0.18) 68%,
      rgba(69, 20, 6, 0.32) 100%
    );
}

.after-hero-cola-wave {
  position: absolute;
  left: -6%;
  bottom: -1px;
  width: 112%;
  height: 100%;
  border-radius: 42% 58% 0 0;
  z-index: 2;
}

.after-hero-cola-wave-back {
  background: linear-gradient(to bottom, rgba(57, 18, 7, 0.52), rgba(20, 4, 1, 0.86));
}

.after-hero-cola-wave-front {
  bottom: -0.25rem;
  height: calc(100% + 0.35rem);
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 190, 110, 0.08), transparent 20%),
    linear-gradient(to bottom, rgba(70, 23, 8, 0.66), rgba(10, 2, 1, 0.92));
}

.after-hero-bubbles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 142px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  mask-image: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 1) 24%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 1) 24%, rgba(0, 0, 0, 0.72) 68%, transparent 100%);
}

.mini-bubble {
  position: absolute;
  bottom: 0.1rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  opacity: 0;
  animation-name: mini-bubble-rise;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}

.mini-bubble-1 { left: 14%; width: 13px; height: 13px; color: #ef4b34; animation-duration: 4.8s; animation-delay: 0.1s; }
.mini-bubble-2 { left: 25%; width: 10px; height: 10px; color: #f2b84b; animation-duration: 5.3s; animation-delay: 0.8s; }
.mini-bubble-3 { left: 38%; width: 16px; height: 16px; color: #4f8cff; animation-duration: 5.8s; animation-delay: 0.35s; }
.mini-bubble-4 { left: 49%; width: 11px; height: 11px; color: #2fbf8f; animation-duration: 4.6s; animation-delay: 1s; }
.mini-bubble-5 { left: 61%; width: 15px; height: 15px; color: #7c83ff; animation-duration: 5.6s; animation-delay: 0.55s; }
.mini-bubble-6 { left: 72%; width: 10px; height: 10px; color: #ff8a65; animation-duration: 4.9s; animation-delay: 0.25s; }
.mini-bubble-7 { left: 83%; width: 14px; height: 14px; color: #26c6da; animation-duration: 5.2s; animation-delay: 0.95s; }
.mini-bubble-8 { left: 92%; width: 11px; height: 11px; color: #d8b4fe; animation-duration: 4.7s; animation-delay: 0.45s; }

@keyframes mini-bubble-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.75);
  }
  12% {
    opacity: 0.88;
  }
  72% {
    opacity: 0.28;
  }
  100% {
    opacity: 0;
    transform: translate3d(14px, -112px, 0) scale(1.08);
  }
}

.hero-logo-flyer {
  position: fixed;
  z-index: 80;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.16));
}

body.logo-flight-active .page-nav-brand img {
  opacity: 0;
}

.collapsed-title-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 980px);
  padding: 1rem 1.25rem 1.15rem;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
  border: 1px solid #eadfc8;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(41, 22, 8, 0.08);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-0.8rem);
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin-bottom 0.35s ease;
}

body.hero-collapsed .collapsed-title-bar {
  opacity: 1;
  max-height: 10rem;
  margin-bottom: 1.1rem;
  transform: translateY(0);
}

.collapsed-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.14;
  font-weight: 300;
  letter-spacing: -0.04em;
  text-align: center;
}

.content-narrow {
  max-width: 1040px;
  padding: 0 1rem;
}

.content-wide {
  max-width: 1180px;
  padding: 0 1rem;
}

.authors-block {
  text-align: center;
  font-size: 1.18rem;
  line-height: 1.45;
}

.team-label {
  margin: 0 0 0.45rem;
  font-size: 1.18rem;
  font-weight: 700;
}

.author-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.38rem;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.author-line-blue {
  text-decoration-color: #3b82f6;
}

.author-line-amber {
  text-decoration-color: #f59e0b;
}

.author-line-green {
  text-decoration-color: #22c55e;
}

.author-block {
  padding: 0 0.5rem;
  display: inline-block;
}

.authors-note {
  margin: 0.85rem 0 0;
}

.affiliation-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.85rem;
}

.resource-grid {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding: 1.4rem 0 0.45rem;
  font-size: 1.08rem;
}

.resource-card {
  width: 7.5rem;
  padding: 0.45rem 0.25rem;
  border-radius: 0.5rem;
  color: #000000;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
  transition: background 0.18s ease, transform 0.18s ease;
}

.resource-card svg,
.resource-card .resource-icon {
  display: block;
  width: 4.2rem !important;
  height: 4.2rem !important;
  fill: currentColor;
  color: currentColor;
  font-size: 4.2rem !important;
  line-height: 1;
}

.resource-icon-paper {
  color: #b31b1b;
}

.resource-icon-pdf {
  color: #111111;
}

.resource-icon-code {
  color: #24292f;
}

.resource-icon-model {
  color: #3b3b3b !important;
}

.resource-icon-datasets {
  color: #2f80ed;
}

.resource-card:hover {
  background: #f1f5f9;
  color: #000000;
  transform: translateY(-1px);
}

.media-caption {
  text-align: center;
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.media-band {
  width: 100%;
  background: var(--panel-bg-soft);
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  padding: 2rem 0.5rem;
}

.media-carousel {
  max-width: 1760px;
  position: relative;
  padding: 0 3.5rem;
}

.media-carousel-viewport {
  overflow: hidden;
}

.media-carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.35s ease;
}

.media-tile {
  position: relative;
  flex: 0 0 calc((100% - 4rem) / 3);
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: zoom-in;
  outline: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.media-tile:hover,
.media-tile:focus-visible {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}

.media-tile video,
.media-tile img {
  display: block;
  width: 100%;
  height: auto;
}

.media-speed-badge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.55rem;
  background: rgba(241, 245, 249, 0.82);
  color: #44403c;
  font-size: 0.9rem;
  font-weight: 500;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 4.5rem;
  height: 4.5rem;
  border: none;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  color: #111111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.carousel-arrow svg,
.scroll-to-top svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: currentColor;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

.media-preview-modal[hidden] {
  display: none;
}

.media-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.media-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.54);
  cursor: zoom-out;
  backdrop-filter: blur(18px) saturate(0.9);
}

.media-preview-frame {
  position: relative;
  z-index: 1;
  width: min(1120px, 94vw);
  max-height: 88vh;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(10, 15, 24, 0.82);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
  animation: media-preview-pop 0.24s ease both;
}

.media-preview-content {
  display: grid;
  place-items: center;
  width: 100%;
  max-height: 88vh;
}

.media-preview-content video,
.media-preview-content img {
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  background: #020617;
}

.media-preview-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.media-preview-close:hover {
  background: rgba(15, 23, 42, 0.88);
  transform: scale(1.04);
}

.media-preview-close svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

@keyframes media-preview-pop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.carousel-arrow-left {
  left: 0.5rem;
}

.carousel-arrow-right {
  right: 0.5rem;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 0.72rem;
  height: 0.8rem;
  border: none;
  border-radius: 999px;
  background: var(--progress-dot);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dot.is-active {
  width: 2.1rem;
  background: var(--progress-dot-active);
}

.collapsed-title {
  position: relative;
  z-index: 2;
}

.section {
  padding: 3.25rem 1rem 0;
}

.content-section {
  position: relative;
  scroll-margin-top: 5.5rem;
}

.citation-section {
  scroll-margin-top: 5.5rem;
}

#top {
  scroll-margin-top: 0;
}

.content-section + .content-section::before,
.citation-section::before {
  content: "";
  display: block;
  width: min(100%, var(--content-measure));
  height: 1px;
  margin: 0 auto 3.15rem;
  background: var(--soft-line);
}

.lead-paragraph,
.body-paragraph,
.citation-note {
  color: var(--heading);
  font-size: 1.12rem;
  line-height: 1.68;
  letter-spacing: 0;
  margin-top: 1rem;
}

.lead-paragraph {
  max-width: var(--content-measure);
  margin: 0 auto 0;
  font-size: 1.18rem;
  line-height: 1.7;
  text-align: left;
}

.body-paragraph {
  max-width: var(--content-measure);
  margin-left: auto;
  margin-right: auto;
}

.citation-note {
  max-width: var(--content-measure);
  margin-left: auto;
  margin-right: auto;
}

.teaser-image,
.section-figure {
  display: block;
  margin-top: 2.2rem;
  margin-left: auto;
  margin-right: auto;
}

.teaser-image,
.section-figure-wide {
  width: 100%;
  max-width: var(--content-measure);
}

.section-figure-narrow {
  width: 50%;
  min-width: 280px;
  padding: 0 0.5rem;
}

.eyebrow-label {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.method-diagram-scroll {
  display: block;
  width: 100%;
  max-width: var(--content-measure);
  margin: 2.8rem auto 0;
}

.method-diagram-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 17% 20%, rgba(255, 210, 67, 0.18), transparent 26%),
    radial-gradient(circle at 80% 28%, rgba(53, 167, 255, 0.14), transparent 28%),
    radial-gradient(circle at 50% 82%, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(145deg, #ffffff 0%, #f8fafc 58%, #eef4fb 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --method-color: #ef4b34;
  --method-color-soft: rgba(239, 75, 52, 0.12);
  --method-color-shadow: rgba(239, 75, 52, 0.16);
}

.method-node {
  position: absolute;
  z-index: 2;
  width: 22%;
  min-width: 225px;
  min-height: 152px;
  padding: 1.05rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(12px);
  transform: translateZ(0);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.method-node strong {
  display: block;
  margin-top: 0.35rem;
  color: #111827;
  font-size: 1.28rem;
  line-height: 1.1;
}

.method-node span:last-child {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.method-node-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 800;
}

.method-node.is-active {
  border-color: rgba(239, 75, 52, 0.42);
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 24px 58px var(--method-color-shadow);
  transform: translateY(-4px);
}

.method-node.is-active .method-node-kicker {
  background: var(--method-color);
  color: #ffffff;
}

.method-node-data {
  left: 14%;
  top: 10%;
}

.method-node-model {
  left: 64%;
  top: 10%;
}

.method-node-deployment {
  left: 64%;
  bottom: 10%;
}

.method-node-feedback {
  left: 14%;
  bottom: 10%;
}

.method-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.method-link {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 14;
  opacity: 0.7;
  transition: stroke 0.28s ease, opacity 0.28s ease, stroke-width 0.28s ease;
  animation: method-link-flow 1.3s linear infinite;
}

.method-link.is-active {
  stroke: var(--method-color);
  stroke-width: 7.5;
  opacity: 1;
}

@keyframes method-link-flow {
  to {
    stroke-dashoffset: -27;
  }
}

.method-steps-viewport {
  position: relative;
  overflow: hidden;
  margin-top: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.method-steps-viewport::after {
  content: "Scroll over this module to move through the pipeline";
  position: absolute;
  right: 1rem;
  top: 0.85rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.method-scroll-steps {
  display: flex;
  width: 100%;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.method-step {
  flex: 0 0 100%;
  min-height: 190px;
  padding: 2rem 2.1rem 1.7rem;
  border-left: 0;
  border-top: 5px solid #e2e8f0;
  border-radius: 0;
  background: #ffffff;
  color: #475569;
  --step-color: #ef4b34;
  --step-bg: #fffaf6;
  transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
}

.method-step[data-method-step="data"] {
  --step-color: #ef4b34;
  --step-bg: #fff6f3;
}

.method-step[data-method-step="model"] {
  --step-color: #35a7ff;
  --step-bg: #f1f9ff;
}

.method-step[data-method-step="deployment"] {
  --step-color: #f59e0b;
  --step-bg: #fff8eb;
}

.method-step[data-method-step="feedback"] {
  --step-color: #22c55e;
  --step-bg: #f0fdf4;
}

.method-step span {
  display: block;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-step h3 {
  margin: 0.35rem 0 0.6rem;
  color: var(--step-color);
  font-size: 1.65rem;
  line-height: 1.15;
}

.method-step p {
  margin: 0;
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.62;
}

.method-step.is-active {
  border-top-color: var(--step-color);
  background: var(--step-bg);
  color: #1f2937;
  box-shadow: none;
}

.model-architecture {
  width: 100%;
  max-width: var(--content-measure);
  margin: 2.4rem auto 0;
  padding: 1.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 8%, rgba(139, 92, 246, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.07);
  --architecture-glow: #8b5cf6;
  --architecture-flow: #ec5cff;
}

.model-architecture-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.35rem 1rem;
}

.model-architecture-header h3 {
  margin: 0.35rem 0 0;
  color: #111827;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.model-architecture-header p {
  max-width: 440px;
  margin: 0.2rem 0 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
}

.model-architecture-canvas {
  overflow: visible;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.1), transparent 34%),
    radial-gradient(circle at 80% 58%, rgba(34, 197, 94, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.system-architecture {
  position: relative;
  min-height: 640px;
  padding: clamp(1rem, 1.5vw, 1.35rem);
  overflow: visible;
  background:
    radial-gradient(circle at 20% 22%, rgba(59, 130, 246, 0.08), transparent 24%),
    radial-gradient(circle at 50% 62%, rgba(139, 92, 246, 0.1), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(34, 197, 94, 0.1), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.system-architecture-lines,
.system-model-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.system-architecture-lines {
  z-index: 1;
}

.system-model-lines {
  z-index: 2;
}

.system-panel-model .system-model-lines {
  top: 5.75rem;
  left: 50%;
  right: auto;
  bottom: auto;
  width: var(--model-layout-width);
  height: var(--model-layout-height);
  transform: translateX(-50%);
}

.system-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-line-muted {
  stroke: rgba(100, 116, 139, 0.35);
  stroke-width: 3;
}

.system-line-main,
.system-line-purple,
.system-line-blue,
.system-line-green,
.system-line-feedback {
  stroke-width: 5;
  stroke-dasharray: 18 24;
  animation: architecture-flow 1.7s linear infinite;
}

.system-line-main {
  stroke-width: 3.5;
  stroke-dasharray: 14 18;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.26));
}

.system-line-data {
  stroke: #6081f4;
}

.system-line-inference {
  stroke: #5abf63;
}

.system-line-src {
  stroke: rgba(100, 116, 139, 0.54);
  stroke-width: 2.6;
  marker-end: url("#system-arrow-src");
}

.system-line-purple {
  stroke: #a855f7;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.45));
  marker-end: url("#system-arrow-purple");
}

.system-line-blue {
  stroke: #6366f1;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.36));
}

.system-line-green {
  stroke: #5abf63;
}

.system-line-feedback {
  stroke: #eca832;
}

.system-line-delay {
  animation-delay: -0.8s;
}

#system-arrow-src path {
  fill: rgba(100, 116, 139, 0.62);
}

#system-arrow-purple path {
  fill: #a855f7;
}

.system-panel,
.system-chip {
  position: absolute;
  z-index: 3;
  overflow: visible;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.system-panel {
  top: 9%;
  height: 50%;
}

.system-panel::after,
.system-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.system-panel-train {
  left: 4%;
  width: 19%;
  border-color: rgba(96, 129, 244, 0.38);
  background: #f9fbff;
}

.system-panel-model {
  left: 28%;
  width: 44%;
  border-color: rgba(139, 92, 246, 0.62);
  background: #fcfaff;
  --model-layout-width: min(390px, calc(100% - 4rem));
  --model-layout-height: 184px;
}

.system-panel-test {
  left: 77%;
  width: 19%;
  border-color: rgba(87, 185, 104, 0.46);
  background: #f8fffa;
}

.system-panel-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 4.35rem;
  padding: 1.15rem 1.35rem 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  color: #111827;
  font-weight: 850;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.system-panel-heading .system-formula {
  flex: 0 0 auto;
  color: #111827;
  font-size: clamp(1.25rem, 1.55vw, 1.85rem);
  font-weight: 850;
}

.system-panel-heading span:last-child {
  flex: 1 1 5.8rem;
  min-width: 0;
  color: #4f46e5;
  font-size: clamp(0.72rem, 0.82vw, 0.88rem);
  line-height: 1.35;
}

.system-panel-train .system-panel-heading span:last-child {
  color: #4265d6;
}

.system-panel-test .system-panel-heading span:last-child {
  color: #448a4d;
}

.system-mini-plot {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 53%;
  height: 31%;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.system-mini-plot svg {
  width: 100%;
  height: 100%;
}

.system-mini-plot path {
  fill: none;
  stroke: #84cc16;
  stroke-width: 4;
  stroke-linecap: round;
}

.system-model-grid {
  position: absolute;
  top: 5.75rem;
  left: 50%;
  width: var(--model-layout-width);
  height: var(--model-layout-height);
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  grid-template-columns: 76px 76px 40px 130px;
  justify-content: center;
  align-content: center;
  align-items: center;
  column-gap: 16px;
  row-gap: 12px;
  min-height: 0;
}

.system-stack {
  display: grid;
  gap: 12px;
  width: 100%;
}

.system-stack span,
.system-mix {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(2.35rem, 3.25vw, 2.85rem);
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(100, 116, 139, 0.34);
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  text-align: center;
  overflow-wrap: anywhere;
}

.system-stack-q span {
  min-height: clamp(2.35rem, 3.25vw, 2.85rem);
}

.system-plus {
  justify-self: center;
  align-self: center;
  color: #7c3aed;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.4);
  margin: -0.1rem 0.15rem 0 -0.35rem;
}

.system-mix {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: clamp(6.1rem, 7.3vw, 7rem);
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  border-color: rgba(99, 102, 241, 0.72);
  background: #eef2ff;
  color: #4f46e5;
}

.system-mix .system-formula {
  font-size: clamp(1rem, 1.25vw, 1.3rem);
}

.system-mix small {
  color: #64748b;
  font-size: clamp(0.72rem, 0.92vw, 0.9rem);
  font-weight: 850;
  letter-spacing: 0;
}

.system-chip {
  bottom: 15%;
  width: 19.5%;
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  border-color: rgba(100, 116, 139, 0.38);
  text-align: center;
}

.system-chip-advantage {
  left: 30.1%;
}

.system-chip-feedback {
  left: 53.4%;
}

.system-chip span {
  color: #1f2937;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  font-weight: 850;
  letter-spacing: 0;
}

.system-chip small {
  color: #64748b;
  font-size: clamp(0.62rem, 0.7vw, 0.72rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.system-formula mjx-container,
.system-chip mjx-container,
.system-stack mjx-container {
  margin: 0 !important;
}

.system-chip mjx-container {
  max-width: 100%;
  font-size: 76% !important;
  overflow: hidden;
}

.model-architecture-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 420px;
}

.architecture-panel > rect:first-child {
  fill: rgba(255, 255, 255, 0.9);
  stroke: rgba(148, 163, 184, 0.42);
  stroke-width: 2;
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.1));
}

.architecture-panel line {
  stroke: rgba(148, 163, 184, 0.32);
  stroke-width: 1.4;
}

.architecture-panel-train > rect:first-child {
  stroke: rgba(59, 130, 246, 0.45);
  fill: rgba(248, 251, 255, 0.95);
}

.architecture-panel-model > rect:first-child,
.architecture-node-glow > rect:first-child {
  fill: rgba(252, 250, 255, 0.96);
  stroke: rgba(139, 92, 246, 0.72);
  filter: url("#architecture-glow");
  animation: architecture-panel-pulse 3.4s ease-in-out infinite;
}

.architecture-panel-test > rect:first-child {
  fill: rgba(247, 254, 249, 0.96);
  stroke: rgba(34, 197, 94, 0.52);
}

.architecture-title {
  fill: #111827;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.architecture-kicker {
  fill: #7c3aed;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.architecture-panel-train .architecture-kicker {
  fill: #2563eb;
}

.architecture-panel-test .architecture-kicker {
  fill: #16a34a;
}

.architecture-media {
  fill: #f8fafc;
  stroke: rgba(148, 163, 184, 0.32);
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.08));
}

.architecture-sparkline,
.architecture-advantage-line,
.architecture-feedback-wave {
  fill: none;
  stroke: #84cc16;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 180;
  animation: architecture-sketch 3.2s ease-in-out infinite alternate;
}

.architecture-src-stack rect,
.architecture-q-stack rect {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(100, 116, 139, 0.5);
  stroke-width: 1.4;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.06));
}

.architecture-src-stack text,
.architecture-q-stack text {
  fill: #334155;
  font-size: 13px;
  font-weight: 800;
}

.architecture-module {
  fill: #eef2ff;
  stroke: rgba(99, 102, 241, 0.88);
  stroke-width: 2;
  filter: url("#architecture-glow");
  animation: architecture-module-glow 2.8s ease-in-out infinite;
}

.architecture-module-title {
  fill: #4f46e5;
  font-size: 21px;
  font-weight: 900;
}

.architecture-module-caption {
  fill: #64748b;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.architecture-operator {
  fill: #7c3aed;
  font-size: 44px;
  font-weight: 300;
  opacity: 0.95;
  filter: url("#architecture-glow");
  animation: architecture-operator-spin 6s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.architecture-connector {
  fill: none;
  stroke: rgba(100, 116, 139, 0.42);
  stroke-width: 3;
  stroke-linecap: round;
}

.architecture-flow-line {
  fill: none;
  stroke: url("#architecture-flow-gradient");
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 18 20;
  filter: url("#architecture-glow");
  animation: architecture-flow 1.55s linear infinite;
}

.architecture-flow-line-delay {
  animation-delay: -0.75s;
}

.architecture-feedback-flow {
  stroke: url("#architecture-feedback-gradient");
  stroke-width: 3.5;
  stroke-dasharray: 14 18;
}

.architecture-panel-small > rect:first-child {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(100, 116, 139, 0.42);
}

.architecture-badge {
  fill: #111827;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.model-architecture-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.3rem;
  align-items: center;
  padding: 1rem 0.25rem 0.15rem;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.model-architecture-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot-data {
  background: #3b82f6;
}

.legend-dot-model {
  background: #8b5cf6;
}

.legend-dot-deploy {
  background: #22c55e;
}

.legend-dot-feedback {
  background: #f59e0b;
}

@keyframes architecture-flow {
  to {
    stroke-dashoffset: -38;
  }
}

@keyframes architecture-panel-pulse {
  0%,
  100% {
    stroke-opacity: 0.6;
  }

  50% {
    stroke-opacity: 1;
  }
}

@keyframes architecture-module-glow {
  0%,
  100% {
    opacity: 0.88;
  }

  50% {
    opacity: 1;
  }
}

@keyframes architecture-sketch {
  from {
    stroke-dashoffset: 160;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes architecture-operator-spin {
  to {
    transform: rotate(360deg);
  }
}

.interactive-data-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 1.5rem;
  width: 100%;
  max-width: var(--content-measure);
  margin: 2.4rem auto 0;
  padding: 1.2rem;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(53, 167, 255, 0.12), transparent 28%),
    linear-gradient(135deg, var(--panel-bg), var(--panel-bg-soft));
  box-shadow: var(--panel-shadow);
}

.data-pie-panel,
.video-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: 1.5rem;
  width: 100%;
  max-width: var(--content-measure);
  margin: 2.4rem auto 0;
  padding: 1.2rem;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(79, 140, 255, 0.13), transparent 30%),
    radial-gradient(circle at 88% 84%, rgba(47, 191, 143, 0.13), transparent 30%),
    linear-gradient(135deg, var(--panel-bg), var(--panel-bg-soft));
  box-shadow: var(--panel-shadow);
}

.video-card {
  background:
    radial-gradient(circle at 16% 18%, rgba(242, 184, 75, 0.16), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(79, 140, 255, 0.12), transparent 30%),
    linear-gradient(135deg, var(--panel-bg), var(--panel-bg-soft));
}

.data-pie-plot {
  min-height: 420px;
  border-radius: 22px;
  background: var(--panel-bg-soft);
}

.data-donut-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(180px, 0.38fr);
  align-items: center;
  gap: 1.1rem;
  min-height: 420px;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.data-donut-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.data-donut-svg {
  width: min(100%, 360px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 22px 28px rgba(15, 23, 42, 0.14));
}

.data-donut-track,
.data-donut-segment {
  fill: none;
  stroke-width: 34;
  transform-origin: 130px 130px;
  transform: rotate(-90deg);
}

.data-donut-track {
  stroke: color-mix(in srgb, var(--heading) 10%, transparent);
}

.data-donut-segment {
  stroke: var(--slice-color);
  stroke-linecap: round;
  stroke-dasharray: var(--slice-size) 100;
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.22s ease, stroke-width 0.22s ease, filter 0.22s ease;
}

.data-donut-segment.is-active,
.data-donut-segment:hover {
  stroke-width: 40;
  opacity: 1;
  filter: drop-shadow(0 12px 16px color-mix(in srgb, var(--slice-color) 36%, transparent));
}

.data-donut-center {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10.5rem;
  min-height: 6.4rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--heading);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: none;
}

.data-donut-center strong {
  display: block;
  font-size: clamp(2.1rem, 5vw, 3.45rem);
  line-height: 1;
  letter-spacing: 0;
}

.data-donut-center span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.data-donut-legend {
  display: grid;
  gap: 0.62rem;
}

.data-donut-legend-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.8rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-bg) 70%, transparent);
  color: var(--heading);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.data-donut-legend-item:hover,
.data-donut-legend-item.is-active {
  border-color: color-mix(in srgb, var(--slice-color) 34%, var(--panel-border));
  background: color-mix(in srgb, var(--slice-color) 14%, var(--panel-bg));
  transform: translateX(2px);
}

.data-donut-legend-item span:nth-child(2) {
  overflow-wrap: anywhere;
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: 780;
}

.data-donut-legend-item strong {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.data-donut-swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: var(--slice-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--slice-color) 16%, transparent);
}

.interactive-panel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem;
}

.interactive-panel-copy h3,
.metrics-header h3,
.demo-gallery-copy h3,
.vertical-results-header h3 {
  margin: 0.35rem 0 0.75rem;
  color: var(--heading);
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.interactive-panel-copy p,
.demo-gallery-copy p,
.vertical-chart-caption {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.tsne-plot {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: var(--panel-bg);
}

.tsne-fallback {
  min-height: 520px;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(30deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, #ffffff, #f8fafc);
  background-size: 38px 38px, 42px 42px, auto;
}

.tsne-fallback::before,
.tsne-fallback::after {
  content: "";
  position: absolute;
  left: 18%;
  bottom: 23%;
  width: 42%;
  height: 2px;
  border-radius: 999px;
  background: #64748b;
  transform-origin: left center;
}

.tsne-fallback::before {
  transform: rotate(-16deg);
}

.tsne-fallback::after {
  transform: rotate(-68deg);
}

.tsne-fallback-dot {
  position: absolute;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--dot-color);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
  transform: translate(-50%, -50%);
}

.tsne-fallback-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
  backdrop-filter: blur(10px);
}

.metrics-dashboard,
.demo-gallery,
.tables-panel {
  width: 100%;
  max-width: var(--content-measure);
  margin: 2.4rem auto 0;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
}

.metrics-dashboard {
  padding: 1.25rem;
}

.metrics-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel-bg-soft);
}

.metric-tab {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 0.55rem 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.metric-tab.is-active {
  background: var(--heading);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.metric-chart {
  display: grid;
  gap: 0.9rem;
}

.metric-row {
  --metric-from: #ef4b34;
  --metric-to: #f59e0b;
  --metric-soft: rgba(239, 75, 52, 0.13);
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) 4rem;
  align-items: center;
  gap: 0.85rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background:
    linear-gradient(90deg, var(--metric-soft), rgba(255, 255, 255, 0) 46%),
    var(--panel-bg);
}

.metric-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--heading);
  font-weight: 800;
}

.metric-label::before {
  content: "";
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--metric-from), var(--metric-to));
  box-shadow: 0 0 0 4px var(--metric-soft);
}

.metric-bar-track {
  overflow: hidden;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--metric-soft);
}

.metric-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--metric-from), var(--metric-to));
  box-shadow: 0 8px 18px var(--metric-soft);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-value {
  color: var(--metric-to);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  text-align: right;
}

.vertical-results-panel {
  width: 100%;
  max-width: var(--content-measure);
  margin: 2.4rem auto 0;
  padding: 1.25rem;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 14%, rgba(85, 175, 123, 0.16), transparent 30%),
    radial-gradient(circle at 18% 92%, rgba(66, 134, 243, 0.12), transparent 30%),
    var(--panel-bg);
  box-shadow: var(--panel-shadow);
}

.vertical-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vertical-results-header h3 {
  margin: 0.35rem 0 0;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.vertical-chart-stage {
  position: relative;
}

.vertical-charts-viewport {
  position: relative;
  overflow: hidden;
  min-height: 450px;
}

.vertical-charts-grid {
  position: absolute;
  inset: 0;
}

.media-carousel-track.is-resetting {
  transition: none;
}

.vertical-chart-card {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 1rem;
  border: 0;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--panel-bg-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
  transition:
    opacity 0.34s ease,
    transform 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.36s ease;
  will-change: transform, opacity;
}

.vertical-chart-card.is-active {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  filter: none;
  transform: translateX(0);
}

.vertical-chart-card.is-prev,
.vertical-chart-card.is-next {
  z-index: 1;
  opacity: 0.001;
  filter: blur(1.5px) saturate(0.86);
}

.vertical-chart-card.is-prev {
  transform: translateX(-12%) scale(0.985);
}

.vertical-chart-card.is-next {
  transform: translateX(12%) scale(0.985);
}

.vertical-charts-grid.is-moving-forward .vertical-chart-card.is-exiting {
  z-index: 2;
  opacity: 0;
  transform: translateX(-12%) scale(0.985);
  filter: blur(1.5px) saturate(0.86);
}

.vertical-charts-grid.is-moving-backward .vertical-chart-card.is-exiting {
  z-index: 2;
  opacity: 0;
  transform: translateX(12%) scale(0.985);
  filter: blur(1.5px) saturate(0.86);
}

.vertical-charts-grid.is-moving-forward .vertical-chart-card.is-active {
  animation: vertical-chart-enter-forward 0.58s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.vertical-charts-grid.is-moving-backward .vertical-chart-card.is-active {
  animation: vertical-chart-enter-backward 0.58s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes vertical-chart-enter-forward {
  from {
    opacity: 0;
    transform: translateX(12%) scale(0.985);
    filter: blur(1.5px) saturate(0.86);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: none;
  }
}

@keyframes vertical-chart-enter-backward {
  from {
    opacity: 0;
    transform: translateX(-12%) scale(0.985);
    filter: blur(1.5px) saturate(0.86);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: none;
  }
}

.vertical-chart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.vertical-chart-title-row h4 {
  margin: 0;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
}

.vertical-chart-plot {
  min-height: 340px;
}

.vertical-chart-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--control-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.vertical-chart-arrow:hover {
  background: var(--control-bg-hover);
  transform: translateY(-50%) scale(1.04);
}

.vertical-chart-arrow svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.vertical-chart-prev {
  left: 0.7rem;
}

.vertical-chart-next {
  right: 0.7rem;
}

.vertical-chart-progress {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.vertical-chart-dot {
  width: 0.72rem;
  height: 0.8rem;
  border: none;
  border-radius: 999px;
  background: var(--progress-dot);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.vertical-chart-dot.is-active {
  width: 2.1rem;
  background: var(--progress-dot-active);
}

.vertical-chart-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.vertical-fallback-chart {
  min-height: 340px;
  padding: 1rem 0.25rem 0;
}

.vertical-fallback-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  height: 300px;
  border-bottom: 1px solid var(--panel-border);
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 58px,
    var(--soft-line) 59px,
    transparent 60px
  );
}

.vertical-fallback-group {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.6rem;
  min-width: 0;
}

.vertical-fallback-stack {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.28rem;
  min-height: 0;
}

.vertical-fallback-bar {
  width: min(1.6rem, 28%);
  height: var(--bar-height);
  min-height: 0.35rem;
  border-radius: 6px 6px 2px 2px;
  background: var(--bar-color);
  opacity: 0.78;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.vertical-fallback-bar.is-highlight {
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8), 0 14px 28px rgba(85, 175, 123, 0.2);
}

.vertical-fallback-label {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.demo-gallery,
.tables-panel {
  padding: 1.2rem;
  background: var(--panel-bg);
  border-color: var(--panel-border);
}

.demo-gallery-copy,
.tables-panel-copy {
  margin-bottom: 1rem;
}

.demo-gallery-copy h3,
.tables-panel-copy h3 {
  color: var(--heading);
}

.demo-gallery-copy p,
.tables-panel-copy p {
  color: var(--muted);
}

.demo-gallery-stage {
  position: relative;
  padding: 1rem 0 0.25rem;
}

.demo-gallery-viewport {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 46vw, 620px);
  border-radius: 28px;
  background: var(--panel-bg-soft);
  perspective: 1400px;
}

.demo-gallery-track {
  position: absolute;
  inset: 0;
}

.demo-card {
  position: absolute;
  top: 8%;
  left: 50%;
  z-index: 1;
  width: min(76%, 840px);
  min-height: 78%;
  overflow: hidden;
  border: 10px solid rgba(110, 181, 130, 0.92);
  border-radius: 18px;
  background: var(--panel-bg);
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateZ(-220px) scale(0.74);
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease, filter 0.38s ease;
}

.demo-card video {
  display: block;
  width: 100%;
  height: clamp(300px, 35vw, 500px);
  min-height: 100%;
  object-fit: cover;
}

.demo-card-player video {
  background: #020617;
  object-fit: contain;
}

.demo-card.is-active {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  filter: none;
  transform: translateX(-50%) translateZ(0) scale(1);
}

.demo-card.is-prev {
  z-index: 2;
  opacity: 0.52;
  filter: brightness(0.82) saturate(0.72);
  transform: translateX(-110%) translateZ(-260px) rotateY(8deg) scale(0.74);
}

.demo-card.is-next {
  z-index: 2;
  opacity: 0.52;
  filter: brightness(0.82) saturate(0.72);
  transform: translateX(10%) translateZ(-260px) rotateY(-8deg) scale(0.74);
}

.demo-card.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateZ(-340px) scale(0.64);
}

.demo-card-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: min(420px, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  backdrop-filter: blur(12px);
}

.demo-card-caption span {
  display: block;
  color: #525252;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-card-caption strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.15rem;
}

.demo-card-player .demo-card-caption {
  top: 1rem;
  bottom: auto;
  pointer-events: none;
}

.demo-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 3.25rem;
  height: 3.25rem;
  border: none;
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--control-text);
  cursor: pointer;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.demo-gallery-arrow:hover {
  background: var(--control-bg-hover);
  transform: translateY(-50%) scale(1.04);
}

.demo-gallery-arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.demo-gallery-prev {
  left: 0.85rem;
}

.demo-gallery-next {
  right: 0.85rem;
}

.demo-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.demo-gallery-dot {
  width: 0.72rem;
  height: 0.8rem;
  border: none;
  border-radius: 999px;
  background: var(--progress-dot);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.demo-gallery-dot.is-active {
  width: 2.1rem;
  background: var(--progress-dot-active);
}

.video-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem;
}

.video-card-copy h3 {
  margin: 0.35rem 0 0.75rem;
  color: var(--heading);
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.video-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.video-embed-wrap {
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel-bg-soft);
}

.video-embed-wrap iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.video-embed-wrap figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.section-title {
  max-width: var(--content-measure);
  margin: 0 auto 1rem;
  font-size: 2.35rem;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-align: left;
}

.tables-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.35fr);
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  margin-top: 0;
  overflow: visible;
  padding: 0;
}

html[data-theme="dark"] .demo-card-caption {
  background: rgba(0, 0, 0, 0.86);
  color: #ffffff;
}

html[data-theme="dark"] .demo-card-caption span {
  color: #d4d4d4;
}

.results-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  text-align: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.table-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 16%, rgba(242, 184, 75, 0.1), transparent 30%),
    radial-gradient(circle at 88% 78%, rgba(79, 140, 255, 0.08), transparent 32%),
    linear-gradient(145deg, var(--panel-bg), var(--panel-bg-soft));
  box-shadow: var(--panel-shadow);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.table-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.34);
}

.results-table-compact {
  font-size: 0.82rem;
}

.results-table-wide {
  font-size: 0.68rem;
  min-width: 660px;
}

.results-table th,
.results-table td {
  position: relative;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--soft-line);
  color: var(--text);
  line-height: 1.15rem;
  font-weight: 400;
  transition: background 0.16s ease, color 0.16s ease;
}

.results-table td:first-child {
  text-align: left;
  color: var(--heading);
  font-weight: 760;
}

.results-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--table-head-bg);
  color: var(--heading);
  font-weight: 800;
}

.results-table tbody tr:nth-child(even) td {
  background: var(--table-row-alt);
}

.results-table tbody tr:hover td,
.results-table tbody tr.is-pinned td {
  background: var(--table-hover);
}

.results-table tbody tr.is-pinned td {
  box-shadow: inset 0 0 0 999px var(--table-pin);
}

.results-table .is-column-hovered {
  box-shadow: inset 0 0 0 999px rgba(53, 167, 255, 0.08);
}

.results-table tbody td.is-best,
.results-table tbody tr:nth-child(even) td.is-best,
.results-table tbody tr:hover td.is-best,
.results-table tbody tr.is-pinned td.is-best {
  background: var(--table-best);
  color: #147a47;
  font-weight: 850;
}

html[data-theme="dark"] .results-table tbody td.is-best,
html[data-theme="dark"] .results-table tbody tr:nth-child(even) td.is-best,
html[data-theme="dark"] .results-table tbody tr:hover td.is-best,
html[data-theme="dark"] .results-table tbody tr.is-pinned td.is-best {
  background: rgba(47, 191, 143, 0.2);
  color: #c9f7e8;
}

.table-title {
  font-size: 1.125rem;
  font-weight: 800;
  padding: 0.85rem 0.7rem;
}

.header-rule {
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.bottom-rule {
  border-bottom: 1px solid var(--panel-border);
}

.strong-row {
  font-weight: 700;
}

.strong-row td {
  font-weight: 700;
}

.table-footnotes {
  max-width: 100%;
  margin-top: 0.5rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.75rem;
}

.table-caption {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

.body-paragraph-spaced {
  margin-top: 1.7rem;
}

.inline-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45em;
  margin: 0 0.08em;
  border-radius: 999px;
  color: #ef4b34;
  font-size: 0.78em;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
  vertical-align: super;
}

.inline-ref:hover {
  background: rgba(239, 75, 52, 0.12);
  color: #ef4b34;
}

.paragraph-with-reference {
  position: relative;
  display: block;
  width: 100%;
  max-width: var(--content-measure);
  margin-left: auto;
  margin-right: auto;
}

.paragraph-with-reference .body-paragraph,
.paragraph-with-reference .lead-paragraph {
  margin-left: 0;
  margin-right: 0;
}

.paragraph-reference-note {
  position: absolute;
  left: calc(100% + 1.4rem);
  top: 0.45rem;
  width: 9.5rem;
}

.reference-sidebar-card {
  padding: 0.72rem;
  border: 1px solid var(--reference-border);
  border-radius: 16px;
  background: var(--reference-bg);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.reference-sidebar-kicker {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.32rem;
  padding: 0.48rem;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.reference-item + .reference-item {
  margin-top: 0.45rem;
}

.reference-item.is-active,
.reference-item:hover {
  border-color: rgba(239, 75, 52, 0.24);
  background: rgba(239, 75, 52, 0.08);
}

.reference-back {
  color: #ef4b34;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.reference-title {
  display: block;
  color: var(--heading);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.32;
  text-decoration: none;
}

.reference-title:hover {
  color: #ef4b34;
}

.reference-item p,
.reference-url {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.reference-url {
  display: block;
  text-decoration: none;
}

.references-mobile {
  display: none;
  max-width: var(--content-measure);
  margin: 1.2rem auto 0;
  padding: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel-bg);
}

.references-mobile h3 {
  margin: 0 0 0.7rem;
  color: var(--heading);
  font-size: 1rem;
}

.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  max-width: var(--content-measure);
  margin-left: auto;
  margin-right: auto;
}

.bibtex-header .section-title {
  max-width: none;
  margin: 0;
}

.section-title.no-accent {
  margin-top: 0;
}

.copy-bibtex-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-bg);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transform: translateY(0.55rem);
}

.copy-bibtex-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.copy-bibtex-btn:hover {
  background: var(--light);
}

.copy-bibtex-btn.copied {
  background: #153f8f;
  border-color: #153f8f;
  color: #ffffff;
}

pre {
  max-width: var(--content-measure);
  margin: 1rem auto 0;
  overflow-x: auto;
  background: var(--panel-bg-soft) !important;
  padding: 2rem !important;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

code {
  background: transparent !important;
  color: var(--heading) !important;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace !important;
}

.footer {
  padding: 3rem 1rem 2rem;
  background: var(--page-bg);
}

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

.scroll-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: #101828;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

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

.scroll-to-top:hover {
  transform: translateY(-2px);
}

@media screen and (max-width: 1024px) {
  .page-nav-inner {
    width: 100%;
  }

  .media-carousel {
    padding: 0 1rem;
  }

  .resource-grid {
    justify-content: center;
    flex-wrap: wrap;
  }

  .carousel-arrow {
    width: 3.5rem;
    height: 3.5rem;
  }

  .carousel-arrow-left {
    left: -0.2rem;
  }

  .carousel-arrow-right {
    right: -0.2rem;
  }
}

@media screen and (max-width: 1460px) {
  .paragraph-reference-note {
    position: static;
    width: min(100%, 26rem);
    margin: 0.6rem auto 0;
  }
}

@media screen and (max-width: 768px) {
  .page-nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    height: auto;
    min-height: 4rem;
    padding: 0.7rem 1rem 0.6rem;
  }

  .page-nav-brand img {
    width: 2rem;
    height: 2rem;
  }

  .page-nav-links {
    width: calc(100% - 3rem);
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .page-nav-links::-webkit-scrollbar {
    display: none;
  }

  .page-nav-links a {
    flex: 0 0 auto;
    min-height: 2rem;
    padding: 0 0.65rem;
    font-size: 0.82rem;
  }

  .theme-toggle {
    position: absolute;
    right: 1rem;
    top: 0.7rem;
  }

  .project-hero {
    min-height: 560px;
  }

  .project-hero.is-collapsed {
    height: 0;
    min-height: 0;
  }

  .hero-title-wrap {
    padding: 0 1rem 6rem;
  }

  .hero-logo-shell {
    width: min(46vw, 240px);
    min-width: 150px;
  }

  .publication-title {
    font-size: min(max(42px, 8vw), 80px);
  }

  .hero-title-in-cola {
    bottom: 4.4rem;
    width: min(94vw, 860px);
  }

  .publication-title-cola {
    font-size: min(max(34px, 7vw), 64px);
  }

  .collapsed-title {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .collapsed-title-bar {
    padding: 0.85rem 0.85rem 1rem;
    border-radius: 18px;
  }
  .authors-block {
    font-size: 1rem;
  }

  .media-band {
    padding: 1.4rem 0.5rem;
  }

  .section {
    padding-top: 2.6rem;
  }

  .content-section + .content-section::before,
  .citation-section::before {
    margin-bottom: 2.3rem;
  }

  .lead-paragraph,
  .body-paragraph,
  .citation-note {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .section-title {
    font-size: 2rem;
    text-align: left;
  }

  .resource-grid {
    padding-left: 0;
    padding-right: 0;
    gap: 0.5rem;
  }

  .resource-card {
    width: calc(50% - 0.5rem);
  }

  .resource-card .resource-icon {
    width: 3.8rem !important;
    height: 3.8rem !important;
    font-size: 3.8rem !important;
  }

  .method-diagram-scroll {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.8rem;
  }

  .method-diagram-stage {
    position: relative;
    top: auto;
    min-height: 520px;
  }

  .method-node {
    width: min(42vw, 190px);
    min-height: 128px;
    padding: 0.85rem;
  }

  .method-node strong {
    font-size: 1.08rem;
  }

  .method-node span:last-child {
    font-size: 0.78rem;
  }

  .method-step {
    min-height: auto;
  }

  .model-architecture {
    padding: 0.85rem;
    border-radius: 22px;
  }

  .model-architecture-header {
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.15rem 0.15rem 0.85rem;
  }

  .model-architecture-header h3 {
    font-size: 1.35rem;
  }

  .model-architecture-header p {
    max-width: none;
  }

  .model-architecture-canvas {
    overflow-x: auto;
    border-radius: 18px;
  }

  .model-architecture-svg {
    width: 900px;
    max-width: none;
    min-height: 360px;
  }

  .system-architecture {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
    padding: 1rem;
    overflow: hidden;
  }

  .system-architecture-lines,
  .system-model-lines {
    display: none;
  }

  .system-panel,
  .system-chip {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    min-height: 180px;
  }

  .system-panel {
    height: auto;
  }

  .system-panel-model {
    min-height: 330px;
  }

  .system-model-grid {
    position: relative;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem;
    width: auto;
    height: auto;
    transform: none;
  }

  .system-stack {
    display: flex;
    flex-direction: row;
    gap: 0.55rem;
    max-width: none;
    width: 100%;
    justify-content: center;
  }

  .system-stack span,
  .system-mix {
    min-height: 2.7rem;
  }

  .system-plus {
    font-size: 1.85rem;
  }

  .system-chip small {
    font-size: 0.74rem;
  }

  .model-architecture-legend {
    gap: 0.7rem 1rem;
    font-size: 0.75rem;
  }

  .interactive-data-panel,
  .data-pie-panel,
  .video-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.85rem;
    border-radius: 22px;
  }

  .interactive-panel-copy,
  .video-card-copy {
    padding: 0.75rem;
  }

  .interactive-panel-copy h3,
  .metrics-header h3,
  .demo-gallery-copy h3,
  .tables-panel-copy h3,
  .vertical-results-header h3,
  .video-card-copy h3 {
    font-size: 1.35rem;
  }

  .tsne-plot,
  .tsne-fallback,
  .data-pie-plot {
    min-height: 420px;
  }

  .metrics-dashboard,
  .demo-gallery,
  .vertical-results-panel,
  .tables-panel {
    margin-top: 1.7rem;
    border-radius: 22px;
  }

  .metrics-dashboard,
  .demo-gallery,
  .vertical-results-panel,
  .tables-panel {
    padding: 0.85rem;
  }

  .metrics-header {
    flex-direction: column;
    gap: 0.8rem;
  }

  .metric-tabs {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
  }

  .metric-tab {
    flex: 0 0 auto;
  }

  .metric-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .metric-value {
    text-align: left;
  }

  .vertical-results-header {
    flex-direction: column;
  }

  .vertical-chart-card {
    padding: 0.75rem;
  }

  .vertical-chart-plot {
    min-height: 300px;
  }

  .vertical-chart-arrow {
    width: 2.55rem;
    height: 2.55rem;
  }

  .demo-card,
  .demo-card video {
    min-height: 300px;
  }

  .demo-gallery-viewport {
    min-height: 360px;
    border-radius: 22px;
  }

  .demo-card {
    top: 12%;
    width: 82%;
    border-width: 6px;
    border-radius: 14px;
  }

  .demo-card.is-prev {
    transform: translateX(-104%) translateZ(-220px) rotateY(7deg) scale(0.72);
  }

  .demo-card.is-next {
    transform: translateX(4%) translateZ(-220px) rotateY(-7deg) scale(0.72);
  }

  .demo-card-caption {
    left: 0.65rem;
    bottom: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
  }

  .demo-gallery-arrow {
    width: 2.65rem;
    height: 2.65rem;
  }

  .demo-gallery-prev {
    left: 0.55rem;
  }

  .demo-gallery-next {
    right: 0.55rem;
  }

  .results-table-wide {
    font-size: 0.5rem;
  }

  .tables-wrap {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .results-table {
    min-width: 520px;
  }

  .results-table-wide {
    min-width: 720px;
  }

  .media-carousel-track {
    gap: 1rem;
  }

  .media-tile {
    flex-basis: 100%;
  }

  .carousel-arrow {
    top: calc(50% - 1.6rem);
    width: 3rem;
    height: 3rem;
  }

  .carousel-arrow-left {
    left: 0.2rem;
  }

  .carousel-arrow-right {
    right: 0.2rem;
  }

  .table-footnotes {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .bibtex-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-bibtex-btn {
    transform: none;
  }
}

@media screen and (max-width: 520px) {
  .resource-card {
    width: 100%;
  }

  .section-figure-narrow {
    width: 100%;
  }

  .results-table-compact,
  .results-table-wide {
    font-size: 0.55rem;
  }
}

html[data-theme="dark"] a {
  color: #ffffff;
}

html[data-theme="dark"] a:hover {
  color: #d4d4d4;
}

html[data-theme="dark"] .after-hero {
  background: var(--page-bg);
}

html[data-theme="dark"] .after-hero-cola-wave-back {
  background: linear-gradient(to bottom, rgba(43, 12, 4, 0.58), rgba(10, 2, 1, 0.9));
}

html[data-theme="dark"] .after-hero-cola::before {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(86, 29, 10, 0.18) 0%, rgba(86, 29, 10, 0.08) 34%, transparent 72%),
    linear-gradient(
      to bottom,
      rgba(17, 24, 39, 0) 0%,
      rgba(17, 24, 39, 0.56) 38%,
      rgba(17, 24, 39, 0.18) 68%,
      rgba(35, 10, 4, 0.36) 100%
    );
}

html[data-theme="dark"] .after-hero-cola-wave-front {
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 190, 110, 0.07), transparent 20%),
    linear-gradient(to bottom, rgba(53, 15, 4, 0.62), rgba(5, 1, 1, 0.94));
}

html[data-theme="dark"] .collapsed-title-bar {
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .method-diagram-stage,
html[data-theme="dark"] .model-architecture,
html[data-theme="dark"] .interactive-data-panel,
html[data-theme="dark"] .data-pie-panel,
html[data-theme="dark"] .video-card,
html[data-theme="dark"] .tables-panel,
html[data-theme="dark"] .table-card {
  border-color: var(--panel-border);
  background:
    radial-gradient(circle at 17% 20%, rgba(242, 184, 75, 0.12), transparent 26%),
    radial-gradient(circle at 80% 28%, rgba(79, 140, 255, 0.13), transparent 28%),
    radial-gradient(circle at 86% 82%, rgba(47, 191, 143, 0.1), transparent 26%),
    linear-gradient(145deg, #111827 0%, #0f172a 66%, #111827 100%);
  box-shadow: var(--panel-shadow);
}

html[data-theme="dark"] .project-hero {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 244, 214, 0.16) 0%, rgba(255, 244, 214, 0.08) 12%, transparent 24%),
    linear-gradient(to bottom, var(--hero-sky-top), var(--hero-sky-bottom));
}

html[data-theme="dark"] .method-node,
html[data-theme="dark"] .method-node.is-active,
html[data-theme="dark"] .method-steps-viewport,
html[data-theme="dark"] .method-step,
html[data-theme="dark"] .model-architecture-canvas,
html[data-theme="dark"] .system-panel,
html[data-theme="dark"] .system-chip,
html[data-theme="dark"] .system-mini-plot {
  border-color: var(--panel-border);
  background: rgba(17, 24, 39, 0.9);
  color: var(--muted);
}

html[data-theme="dark"] .method-node strong,
html[data-theme="dark"] .method-step.is-active,
html[data-theme="dark"] .model-architecture-header h3,
html[data-theme="dark"] .system-panel-heading,
html[data-theme="dark"] .system-panel-heading .system-formula {
  color: var(--heading);
}

html[data-theme="dark"] .system-chip span,
html[data-theme="dark"] .system-chip small,
html[data-theme="dark"] .system-chip mjx-container,
html[data-theme="dark"] .model-architecture-legend,
html[data-theme="dark"] .model-architecture-legend span,
html[data-theme="dark"] .system-mix small {
  color: #f8fafc;
}

html[data-theme="dark"] .system-chip {
  background: rgba(24, 34, 52, 0.94);
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .system-chip::after {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .system-stack span,
html[data-theme="dark"] .system-mix {
  border-color: rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 20% 12%, rgba(79, 140, 255, 0.14), transparent 30%),
    rgba(24, 34, 52, 0.94);
  color: #f8fafc;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .system-mix {
  border-color: rgba(167, 139, 250, 0.48);
  background:
    radial-gradient(circle at 22% 18%, rgba(167, 139, 250, 0.18), transparent 32%),
    rgba(24, 34, 52, 0.96);
}

html[data-theme="dark"] .system-plus {
  color: #d8b4fe;
  text-shadow: 0 0 18px rgba(216, 180, 254, 0.38);
}

html[data-theme="dark"] .system-mix .system-formula,
html[data-theme="dark"] .system-stack mjx-container {
  color: #ffffff;
}

html[data-theme="dark"] .method-step[data-method-step="data"],
html[data-theme="dark"] .method-step[data-method-step="model"],
html[data-theme="dark"] .method-step[data-method-step="deployment"],
html[data-theme="dark"] .method-step[data-method-step="feedback"] {
  --step-bg: rgba(15, 23, 42, 0.9);
}

html[data-theme="dark"] .model-architecture-header p {
  color: var(--muted);
}

html[data-theme="dark"] strong,
html[data-theme="dark"] b,
html[data-theme="dark"] .strong-row,
html[data-theme="dark"] .strong-row td,
html[data-theme="dark"] .metric-label,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .publication-title,
html[data-theme="dark"] .collapsed-title,
html[data-theme="dark"] .table-title {
  color: #ffffff;
}

html[data-theme="dark"] .resource-icon-datasets,
html[data-theme="dark"] .resource-icon-code,
html[data-theme="dark"] .resource-icon-pdf,
html[data-theme="dark"] .resource-icon-model {
  color: #ffffff !important;
}

html[data-theme="dark"] .resource-card:hover,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .copy-bibtex-btn:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #ffffff;
}

html[data-theme="dark"] .carousel-arrow:hover,
html[data-theme="dark"] .demo-gallery-arrow:hover,
html[data-theme="dark"] .media-preview-close:hover {
  background: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .copy-bibtex-btn.copied {
  background: #ffffff;
  border-color: #ffffff;
  color: #111827;
}

html[data-theme="dark"] .reference-sidebar-card {
  border-color: rgba(242, 184, 75, 0.42);
  background:
    radial-gradient(circle at 18% 14%, rgba(242, 184, 75, 0.18), transparent 36%),
    rgba(17, 24, 39, 0.94);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(242, 184, 75, 0.08);
}

html[data-theme="dark"] .reference-sidebar-kicker,
html[data-theme="dark"] .reference-back {
  color: #ffd166;
}

html[data-theme="dark"] .inline-ref {
  color: #ffd166;
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.24);
}

html[data-theme="dark"] .inline-ref:hover,
html[data-theme="dark"] .inline-ref:focus-visible {
  background: rgba(242, 184, 75, 0.16);
  color: #ffe08a;
}

html[data-theme="dark"] .reference-title {
  color: #ffffff;
}

html[data-theme="dark"] .reference-item p,
html[data-theme="dark"] .reference-url {
  color: #e5e7eb;
}

html[data-theme="dark"] .reference-item.is-active,
html[data-theme="dark"] .reference-item:hover {
  border-color: rgba(242, 184, 75, 0.34);
  background: rgba(242, 184, 75, 0.12);
}

html[data-theme="dark"] .scroll-to-top {
  background: #f8fafc;
  color: #111827;
}

html[data-theme="dark"] .metric-tab.is-active {
  color: #111827;
}
