:root {
  --bg: #edf1f6;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #18232f;
  --muted: #516274;
  --accent: #0f469c;
  --accent-deep: #0b3270;
  --accent-soft: #dbe8ff;
  --line: rgba(14, 53, 112, 0.12);
  --shadow: 0 20px 48px rgba(13, 30, 56, 0.10);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(960px 480px at 12% -8%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(195, 220, 255, 0.52) 0%, rgba(195, 220, 255, 0) 58%),
    linear-gradient(180deg, #f6f9fd 0%, var(--bg) 100%);
}

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

.topbar {
  padding: 40px 20px 34px;
  color: #ffffff;
  background:
    radial-gradient(620px 320px at 0% 0%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(135deg, #0d377d 0%, #0f469c 45%, #0b2f69 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.topbar-inner {
  width: min(1140px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.title-stack {
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  font-variant-caps: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.brand-subtitle {
  margin: 10px 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-authors-block,
.hero-summary {
  max-width: 900px;
}

.hero-authors-block {
  margin: 18px 0 0;
}

.hero-authors-line,
.hero-institutions-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.hero-authors-line {
  gap: 8px 18px;
}

.hero-institutions-line {
  margin-top: 10px;
  gap: 10px 22px;
}

.hero-author,
.hero-institution {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hero-author-link {
  color: inherit;
  text-decoration: none;
}

.hero-author-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.hero-author-icon,
.hero-institution-icon {
  display: inline-block;
  vertical-align: middle;
  height: auto;
  object-fit: contain;
}

.hero-author-icon-asu {
  width: 22px;
}

.hero-author-icon-mayo {
  width: 28px;
  height: 20px;
}

.hero-institution-icon-asu {
  width: 26px;
}

.hero-institution-icon-mayo {
  width: 26px;
}

.hero-summary {
  margin: 18px 0 0;
  font-size: 1.18rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
}

.stat-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.stat-card strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.1;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn.active {
  background: #ffffff;
  color: var(--accent-deep);
}

.btn-icon svg {
  fill: currentColor;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.subnav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
}

.subnav a:hover {
  color: #ffffff;
}

main {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 48px 20px 88px;
}

.section + .section {
  margin-top: 54px;
}

.section-head {
  max-width: 860px;
  margin-bottom: 22px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-intro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.grid-two,
.grid-three,
.workflow-grid {
  display: grid;
  gap: 18px;
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.callout-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.callout-card {
  margin-top: 18px;
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 244, 255, 0.96) 100%);
}

.card h3,
.callout-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.24rem;
  line-height: 1.2;
}

.card p,
.callout-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.card p + p {
  margin-top: 12px;
}

.feature-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-list li {
  margin: 0;
  line-height: 1.65;
}

.feature-list li + li {
  margin-top: 8px;
}

.compact-list li + li {
  margin-top: 6px;
}

.inline-note {
  margin-top: 14px;
}

.step-card {
  position: relative;
  min-height: 100%;
}

.figure-card {
  margin-bottom: 18px;
  padding: 20px;
}

.figure-frame {
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98) 0%, rgba(232, 240, 252, 0.92) 100%);
  border: 1px solid rgba(14, 53, 112, 0.10);
}

.paper-figure {
  display: block;
  width: min(100%, 920px);
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(13, 30, 56, 0.14);
}

.figure-caption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.64;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.results-grid {
  align-items: stretch;
}

.table-card {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}

.table-head {
  padding: 22px 24px 12px;
}

.table-head h3 {
  margin: 0;
}

.table-head p {
  margin: 6px 0 0;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 18px;
  text-align: left;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

.table-wrap th {
  background: rgba(219, 232, 255, 0.42);
  color: var(--accent-deep);
  font-weight: 700;
}

.table-wrap tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.56);
}

.metric-selector-card {
  margin-bottom: 18px;
  padding: 20px 24px;
}

.metric-selector-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
}

.metric-selector-head h3 {
  margin: 0;
}

.metric-selector-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.metric-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid rgba(14, 53, 112, 0.12);
  background: rgba(219, 232, 255, 0.46);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.metric-chip:hover {
  transform: translateY(-1px);
  background: rgba(219, 232, 255, 0.7);
  border-color: rgba(14, 53, 112, 0.2);
}

.metric-chip.is-active {
  background: linear-gradient(135deg, #0f469c 0%, #0b3270 100%);
  border-color: rgba(11, 50, 112, 0.6);
  color: #ffffff;
}

.benchmark-table-card {
  overflow: hidden;
}

.benchmark-table-wrap {
  overflow-x: auto;
}

.benchmark-table {
  min-width: 980px;
}

.benchmark-table th[rowspan] {
  vertical-align: top;
  background: rgba(219, 232, 255, 0.24);
  color: var(--accent-deep);
  font-weight: 700;
}

.benchmark-table td,
.benchmark-table th {
  white-space: nowrap;
}

.benchmark-table td:first-child,
.benchmark-table th:first-child,
.benchmark-table td:nth-child(2),
.benchmark-table th:nth-child(2) {
  white-space: normal;
}

.strategy-divider th,
.strategy-divider td {
  border-top: 2px solid rgba(14, 53, 112, 0.16);
}

.strategy-ours th[rowspan] {
  background: rgba(18, 109, 64, 0.09);
}

.model-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.93rem;
}

.score-good {
  color: #1b7f3a;
  font-weight: 700;
}

.score-warn {
  color: #b42318;
}

.score-top {
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.14em;
}

.score-na {
  color: #7f8da0;
}

.institution-section {
  padding-top: 8px;
}

.institution-shell {
  display: flex;
  justify-content: center;
}

.institution-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.institution-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 126px;
  padding: 18px 24px;
  border-radius: 22px;
  border: 1px solid rgba(14, 53, 112, 0.10);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(13, 30, 56, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.institution-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(13, 30, 56, 0.12);
  border-color: rgba(14, 53, 112, 0.18);
}

.institution-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.institution-logo-asu {
  width: min(132px, 34vw);
}

.institution-logo-mayo {
  width: min(132px, 34vw);
}

.limitations-card {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.98) 0%, rgba(255, 244, 221, 0.92) 100%);
}

.video-page-main {
  padding-top: 54px;
}

.video-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.video-player-shell {
  padding: 18px;
}

.video-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #071a3f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.video-player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-sidecard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-sidecard .feature-list {
  margin-top: -4px;
}

.video-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-route-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.video-route-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94em;
  color: var(--accent-deep);
}

footer {
  padding: 0 20px 28px;
  text-align: center;
  color: #5b6b7b;
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

@media (max-width: 1100px) {
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-three {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .brand {
    align-items: flex-start;
  }

  .grid-two,
  .workflow-grid,
  .video-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-summary,
  .section-intro,
  .card p,
  .callout-card p,
  .feature-list {
    font-size: 0.98rem;
  }

  .metric-selector-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-author,
  .hero-institution {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 28px 16px 26px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .brand-logo {
    width: 66px;
    height: 66px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .metric-chip {
    width: 100%;
  }

  .subnav {
    gap: 12px;
  }

  .institution-link {
    width: 100%;
    min-height: 110px;
    padding: 16px 18px;
  }

  .institution-logo-asu {
    width: min(112px, 34vw);
  }

  .institution-logo-mayo {
    width: min(112px, 34vw);
  }

  main {
    padding: 34px 16px 72px;
  }

  .video-page-main {
    padding-top: 34px;
  }

  .card,
  .callout-card {
    border-radius: 18px;
  }
}
