:root {
  color-scheme: light;
  --ink: #211437;
  --muted: #736780;
  --paper: #fbf9ff;
  --panel: #ffffff;
  --line: #e6ddf1;
  --purple: #6e35c7;
  --violet: #9257df;
  --lilac: #e8d8ff;
  --cyan: #8358d0;
  --teal: #6e35c7;
  --coral: #9b5de5;
  --gold: #ba8cff;
  --shadow: 0 24px 80px rgba(69, 29, 113, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(172, 113, 238, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 16%, rgba(119, 75, 191, 0.15), transparent 34rem),
    linear-gradient(180deg, #f6f0ff 0%, var(--paper) 38rem);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 54px;
  padding: 0;
  border-bottom: 1px solid rgba(126, 80, 177, 0.12);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  position: relative;
  width: min(1320px, calc(100% - 36px));
  min-height: 54px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6934b8;
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.25vw, 34px);
  color: #6f6578;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--purple);
}

.nav-toggle {
  display: none;
}

.section {
  width: min(1360px, calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 108px) 0;
}

.narrow {
  width: min(880px, calc(100% - 40px));
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(26px, 4vw, 42px);
  min-height: calc(100vh - 54px);
  padding-top: clamp(42px, 6vw, 76px);
  padding-bottom: clamp(42px, 6vw, 76px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero.section {
  width: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 7, 27, 0.2) 0%, rgba(17, 8, 38, 0.16) 55%, rgba(12, 5, 28, 0.64) 100%),
    linear-gradient(90deg, rgba(13, 8, 29, 0.54) 0%, rgba(29, 13, 54, 0.2) 48%, rgba(10, 6, 23, 0.12) 100%),
    url("assets/figures/worldscape-hero-robot-arm.webp") center center / cover no-repeat;
  transform: scale(1.015);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  padding-inline: 28px;
  box-sizing: border-box;
}

@media (max-aspect-ratio: 4 / 5) {
  .hero::before {
    background-position: 68% center;
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

p,
li,
figcaption,
.story-text,
.feature-list,
.video-card p,
.showcase-item p,
.contributions p,
.result-panels p {
  text-align: justify;
  text-justify: inter-word;
}

.hero-copy .hero-text,
.button,
.nav-links,
.brand,
.media-caption span,
.stat-row span,
.table-head,
th,
td {
  text-align: initial;
}

h1 {
  margin: 0;
  width: 100%;
  max-width: min(1120px, calc(100vw - 72px));
  font-family:
    "Arial Black", "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(3.25rem, 6vw, 6.35rem);
  line-height: 0.9;
  letter-spacing: -0.038em;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
  color: #28133f;
  text-align: center;
}

h1 span {
  color: var(--purple);
  background: linear-gradient(100deg, #5a20b7, #a156dc 62%, #7045dd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-align: center;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
  text-align: center;
}

.subtitle {
  margin: 44px auto 0;
  max-width: min(1120px, calc(100vw - 72px));
  color: #4e3a67;
  font-size: clamp(1.12rem, 1.95vw, 1.72rem);
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

mark {
  padding: 0.05em 0.28em;
  border-radius: 999px;
  background: #efe2ff;
  color: #6122b4;
}

.hero-text,
.lead {
  color: #655873;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
}

.hero-team {
  margin: 34px auto 0;
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 14px;
  margin: 42px auto 0;
  width: auto;
  max-width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 196px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(16, 32, 47, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(16, 32, 47, 0.08);
  white-space: nowrap;
}

.github-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.arxiv-logo {
  display: inline-grid;
  min-width: 30px;
  height: 18px;
  padding-inline: 3px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 3px;
  background: #fff;
  color: #6c2ec3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hf-logo {
  flex: 0 0 auto;
  font-size: 1.08rem;
  line-height: 1;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(120deg, #5220aa, #8b4ed4);
  color: white;
  box-shadow: 0 12px 32px rgba(110, 53, 199, 0.3);
}

.button[aria-disabled="true"] {
  color: #7a8793;
  cursor: not-allowed;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 8px 36px rgba(8, 2, 18, 0.36);
}

.hero h1 span {
  background: linear-gradient(100deg, #fff 0%, #dbc5ff 48%, #bfa0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 3px 18px rgba(8, 2, 18, 0.5);
}

.hero .hero-team {
  color: #e4d4ff;
}

.hero .button:not(.primary) {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero .button[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.68);
}

.hero-media,
.figure-panel,
.figure-card,
.video-card,
.contributions article,
.result-panels article,
.code-wrap {
  border: 1px solid rgba(109, 54, 184, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-media {
  overflow: hidden;
  width: min(100%, 920px);
  margin-inline: auto;
}

.hero-media video,
.hero-media > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #211437;
}

.media-caption {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.media-caption span {
  min-height: 56px;
  padding: 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.media-caption span:last-child {
  border-right: 0;
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading .eyebrow,
.subsection-heading .eyebrow {
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  letter-spacing: 0.03em;
}

.narrow p:not(.eyebrow) {
  color: #655873;
  font-size: 1.08rem;
}

#showcase .section-heading h2,
.results .section-heading h2 {
  white-space: nowrap;
}

.subsection-heading {
  text-align: center;
}

.contribution-intro {
  width: min(920px, 100%);
  margin: 0 auto 30px;
  color: #51425f;
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  font-weight: 650;
  line-height: 1.65;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

.keyword-marquee {
  margin: 24px 0 0;
  border-radius: 16px;
}

.contributions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.contributions article {
  min-width: 0;
}

.contributions h3 {
  font-size: clamp(0.98rem, 1.05vw, 1.16rem);
  white-space: nowrap;
}

.contributions span {
  text-align: center;
}

.contributions article,
.result-panels article {
  padding: clamp(20px, 3vw, 30px);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.contributions article:hover,
.result-panels article:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(69, 29, 113, 0.17);
}

.contributions span {
  display: block;
  margin-bottom: 42px;
  color: var(--coral);
  font-size: 2rem;
  font-weight: 820;
  line-height: 1;
}

.contributions p,
.result-panels p,
.feature-list {
  color: var(--muted);
}

.figure-panel {
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 52px);
}

.overview-section .figure-panel {
  width: min(1320px, 100%);
  margin-inline: auto;
  margin-top: clamp(48px, 6vw, 84px);
}

.overview-section .figure-panel img {
  padding: clamp(14px, 2vw, 28px) clamp(18px, 2.5vw, 34px) 0;
}

.figure-panel img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: white;
}

figcaption {
  padding: 14px 18px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

figcaption strong {
  color: #302040;
}

.video-feature {
  padding-top: clamp(76px, 9vw, 128px);
}

.overview-section {
  padding-top: clamp(60px, 7vw, 96px);
}

.story-text {
  width: min(920px, 100%);
  margin: 0 auto 28px;
  color: #655873;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  text-align: center;
}

.story-text p {
  margin: 0 auto 16px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: clamp(30px, 4vw, 54px);
}

.figure-card {
  overflow: hidden;
}

.figure-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: white;
}

.method-grid .figure-card img {
  padding: clamp(14px, 2vw, 28px) clamp(18px, 2.5vw, 34px) 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 52px);
  align-items: center;
}

#dataset h2 {
  font-size: clamp(2.15rem, 3vw, 3.2rem);
  white-space: nowrap;
}

#dataset > div > .eyebrow {
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  letter-spacing: 0.03em;
  text-align: center;
}

#dataset .flush img {
  padding: clamp(12px, 1.6vw, 22px) clamp(8px, 1.2vw, 16px) 0;
}

.dataset-visuals .figure-card img {
  padding: clamp(14px, 2vw, 28px) 0 0;
}

.feature-list {
  margin: 24px 0 0;
  padding-left: 1.1rem;
}

.feature-list li {
  margin-bottom: 10px;
}

.flush {
  margin: 0;
}

.video-grid,
.result-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  overflow: hidden;
}

.video-card video,
.video-card img,
.showcase-item video,
.showcase-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f7f2fc;
}

.video-card > div {
  padding: 20px;
}

.video-card p {
  margin: 0;
  color: var(--muted);
}

.real-demo-grid .video-card > img,
.real-demo-grid .video-card > video {
  display: block;
  aspect-ratio: 1254 / 1080;
  object-fit: cover;
}

.video-card > .prompt-carousel {
  min-height: 118px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbf9ff;
}

.video-card > .episode-task {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fbf9ff;
  text-align: center;
}

.episode-task strong {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 76px;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(120deg, #5220aa, #8b4ed4);
  color: white;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(110, 53, 199, 0.24);
}

.prompt-track {
  display: grid;
  grid-auto-columns: minmax(220px, 78%);
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.prompt-track::-webkit-scrollbar {
  display: none;
}

.prompt-card {
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid #d9cde5;
  border-radius: 10px;
  background: white;
  color: #6e6478;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: center;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.prompt-card.is-active {
  border-color: transparent;
  background: linear-gradient(120deg, #5220aa, #8b4ed4);
  color: white;
  box-shadow: 0 8px 20px rgba(110, 53, 199, 0.24);
}

.prompt-timeline {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.prompt-timeline span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #ddd3e8;
  transition: background 180ms ease;
}

.prompt-timeline span.is-active {
  background: var(--purple);
}

.showcase-scroll {
  display: grid;
  grid-auto-columns: minmax(360px, 43%);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.showcase-scroll::-webkit-scrollbar {
  height: 10px;
}

.showcase-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbb6e5;
}

.showcase-item {
  overflow: hidden;
  border: 1px solid rgba(109, 54, 184, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.showcase-item div {
  padding: 20px;
}

.showcase-item h3 {
  font-size: clamp(0.95rem, 1vw, 1.08rem);
  white-space: nowrap;
}

.showcase-item p {
  margin: 0;
  color: var(--muted);
}

.results .figure-panel {
  margin-top: 18px;
}

.result-panels {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.citation {
  padding-bottom: 70px;
}

.code-wrap {
  position: relative;
  overflow: hidden;
  background: #211437;
  color: #f5fbff;
}

.copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 70px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 780;
  cursor: pointer;
}

pre {
  margin: 0;
  padding: 26px;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.65;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  padding: 28px 20px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.visitor-counter {
  color: #6f5b81;
  font-weight: 700;
}

.visitor-counter strong {
  color: var(--purple);
  font-weight: 850;
}

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    margin: 3px 0;
    background: var(--ink);
  }

  .nav-links {
    position: absolute;
    top: 58px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px;
  }

  .hero,
  .split,
  .method-grid,
  .result-panels,
  .video-grid,
  .real-demo-grid {
    grid-template-columns: 1fr;
  }

  .showcase-scroll {
    grid-auto-columns: minmax(300px, 78%);
  }

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

  .hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 28px, 1180px);
  }

  .hero-actions {
    width: auto;
    flex-wrap: wrap;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand span {
    max-width: 190px;
    line-height: 1.1;
  }

  .media-caption {
    grid-template-columns: 1fr;
  }

  .contributions,
  .dataset-visuals,
  .tables-grid {
    grid-template-columns: 1fr;
  }

  .media-caption span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .media-caption span:last-child {
    border-bottom: 0;
  }

  pre {
    padding: 64px 18px 22px;
    font-size: 0.78rem;
  }
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #8c45d1;
  box-shadow: 0 0 0 7px rgba(140, 69, 209, 0.12);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-media {
  position: relative;
  transform: none;
}

.media-label {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(35, 18, 58, 0.6);
  color: white;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  backdrop-filter: blur(10px);
}

.marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #2b1742;
  color: #f7efff;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  padding: 15px 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: marquee 28s linear infinite;
}

.marquee-track i {
  color: #c79af5;
  font-style: normal;
}

.training-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #4a2870, #7442a0);
  color: white;
}

.subsection-heading {
  margin-top: clamp(32px, 5vw, 54px);
  margin-bottom: 18px;
}

.subsection-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.training-flow article {
  min-height: 178px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.training-flow b {
  display: block;
  color: #d5b4fa;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.training-flow h3 {
  margin-top: 14px;
  font-size: 1.22rem;
}

.training-flow p {
  margin: 0;
  color: #efe5f8;
  font-size: 0.94rem;
  line-height: 1.55;
}

.flow-arrow {
  color: #c895ff;
  font-size: 1.8rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.stat-row div {
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.stat-row strong,
.stat-row span {
  display: block;
}

.stat-row strong {
  color: var(--purple);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1;
}

.stat-row span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.dataset-visuals,
.tables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: clamp(28px, 4vw, 52px);
}

.dataset-visuals .figure-card img {
  aspect-ratio: auto;
}

.capability-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.capability-strip span {
  padding: 12px 20px;
  border: 1px solid #d9c8eb;
  border-radius: 999px;
  background: #f4edfc;
  color: #5d318f;
  font-size: 1rem;
  font-weight: 820;
}

.tables-grid {
  margin-top: 18px;
}

.real-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #f7f2fc;
  font-weight: 800;
}

.table-head small {
  color: #9c86ad;
  font-weight: 650;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid #eee8f4;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #7a668b;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ours td {
  background: #f5edff;
  color: #5d269e;
  font-weight: 780;
}

.tables-grid .table-card:nth-child(2) th:last-child,
.tables-grid .table-card:nth-child(2) td:last-child {
  background: #f5edff;
  color: #5d269e;
  font-weight: 780;
}

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

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

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 12px rgba(140, 69, 209, 0); }
}

@media (max-width: 940px) {
  .training-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .status-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 560px) {
  .contributions,
  .dataset-visuals,
  .tables-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5rem);
    white-space: normal;
  }

  .subtitle {
    white-space: normal;
  }

  #showcase .section-heading h2,
  .results .section-heading h2 {
    white-space: normal;
  }

  .hero-media {
    transform: none;
  }
}
