:root {
  --accent: #0f4f99;
  --text: #1c2430;
  --background: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

.project-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 13vh 48px 80px;
}

.project-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}

.project-name {
  color: var(--accent);
  font-weight: 700;
}

.publication-authors {
  max-width: 980px;
  margin-top: 26px;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
}

.publication-authors span {
  white-space: nowrap;
}

.publication-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  margin-top: 8px;
  color: #555555;
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: center;
}

.publication-authors sup,
.publication-affiliations sup,
.author-notes sup {
  margin-left: 1px;
  font-size: 0.68em;
  vertical-align: super;
}

.author-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin-top: 6px;
  color: #555555;
  font-size: 0.88rem;
  line-height: 1.45;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.resource-link .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: 1.05rem;
}

.resource-link:hover {
  background: var(--accent);
}

.resource-link:focus-visible {
  outline: 2px solid rgba(15, 79, 153, 0.45);
  outline-offset: 4px;
}

.video-overview {
  width: min(100%, 980px);
  margin-top: 56px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.category-headings,
.view-group {
  display: grid;
  grid-template-columns: 180px repeat(3, minmax(220px, 1fr));
  column-gap: 14px;
  min-width: 900px;
}

.category-headings {
  align-items: end;
  margin-bottom: 12px;
}

.category-headings span {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.view-groups {
  min-width: 900px;
}

.view-group {
  align-items: center;
  padding: 22px 0;
}

.view-group:first-child {
  padding-top: 0;
}

.view-group + .view-group {
  border-top: 1px solid #d8dce2;
}

.view-group h2 {
  margin: 0;
  padding-right: 22px;
  color: #555555;
  font-size: 0.98rem;
  line-height: 1.3;
  text-align: left;
}

.video-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 2 / -1;
  gap: 14px;
}

.video-row figure {
  position: relative;
  min-width: 0;
  margin: 0;
}

.video-row figure + figure::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -7px;
  width: 1px;
  background: #e1e4e8;
  content: "";
}

.video-row video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: #111111;
  object-fit: cover;
}

.video-row figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.abstract-section {
  width: min(100%, 980px);
  margin-top: 64px;
}

.abstract-section h2 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.2;
  text-align: left;
}

.abstract-content {
  color: #2d333b;
  font-size: 1.05rem;
  line-height: 1.68;
  text-align: justify;
}

.abstract-content p {
  margin: 0 0 16px;
}

.abstract-content p:last-child {
  margin-bottom: 0;
}

.overview-section {
  width: min(100%, 980px);
  margin-top: 58px;
}

.overview-section > h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.2;
  text-align: left;
}

.overview-figure {
  display: block;
  width: min(100%, 980px);
  margin-inline: auto;
}

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

.taxonomy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
}

.taxonomy-item {
  padding: 16px 26px 0;
  border-top: 4px solid;
}

.taxonomy-item + .taxonomy-item {
  border-left: 1px solid #d8dce2;
}

.taxonomy-item.atomic {
  border-top-color: #28649a;
}

.taxonomy-item.compositional {
  border-top-color: #ed7d1a;
}

.taxonomy-item.long-horizon {
  border-top-color: #6942b6;
}

.taxonomy-item h3 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.taxonomy-item p {
  margin: 0;
  color: #555555;
  font-size: 0.98rem;
  line-height: 1.55;
}

.pipeline-section {
  width: min(100%, 980px);
  margin-top: 60px;
}

.pipeline-section > h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.2;
  text-align: left;
}

.pipeline-figure {
  display: block;
  width: min(100%, 980px);
  margin-inline: auto;
}

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

.pipeline-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
}

.pipeline-copy article {
  padding: 16px 28px 0;
  border-top: 4px solid var(--accent);
}

.pipeline-copy article + article {
  border-left: 1px solid #d8dce2;
  border-top-color: #ed7d1a;
}

.pipeline-copy h3 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.35;
}

.pipeline-copy p {
  margin: 0;
  color: #555555;
  font-size: 0.98rem;
  line-height: 1.6;
}

.task-examples-section {
  width: min(100%, 980px);
  margin-top: 68px;
}

.task-examples-section > h2 {
  margin: 0 0 30px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.2;
  text-align: left;
}

.task-level {
  padding-top: 18px;
  border-top: 4px solid;
}

.task-level + .task-level {
  margin-top: 38px;
}

.atomic-level {
  border-top-color: #28649a;
}

.compositional-level {
  border-top-color: #ed7d1a;
}

.long-horizon-level {
  border-top-color: #6942b6;
}

.task-level > h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.3;
}

.task-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.task-video-card {
  min-width: 0;
  margin: 0;
}

.task-video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: #111111;
  object-fit: cover;
}

.task-video-card figcaption {
  margin-top: 10px;
  color: #333b45;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}

.citation-section {
  width: min(100%, 980px);
  margin-top: 68px;
}

.citation-section > h2 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.2;
  text-align: left;
}

.citation-block {
  position: relative;
  border: 1px solid #d8dce2;
  border-radius: 6px;
  background: #f7f8fa;
}

.citation-block pre {
  margin: 0;
  padding: 24px 90px 24px 24px;
  overflow-x: auto;
  color: #202733;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre;
}

.copy-citation {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  padding: 7px 10px;
  border: 1px solid #c9ced6;
  border-radius: 5px;
  background: #ffffff;
  color: #3d4652;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.copy-citation:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-citation:focus-visible {
  outline: 2px solid rgba(15, 79, 153, 0.35);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .project-page {
    padding: 11vh 24px 56px;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1.2;
  }

  .video-overview {
    width: calc(100% + 48px);
    margin-top: 42px;
    padding-inline: 18px;
  }

  .abstract-section {
    margin-top: 48px;
  }

  .abstract-section h2 {
    font-size: 1.75rem;
  }

  .abstract-content {
    font-size: 1rem;
    line-height: 1.62;
    text-align: left;
  }

  .overview-section {
    margin-top: 52px;
  }

  .overview-section > h2 {
    font-size: 1.75rem;
  }

  .taxonomy-summary {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }

  .taxonomy-item {
    padding: 14px 0 0;
  }

  .taxonomy-item + .taxonomy-item {
    border-left: 0;
  }

  .pipeline-section {
    margin-top: 52px;
  }

  .pipeline-section > h2 {
    font-size: 1.75rem;
  }

  .pipeline-copy {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }

  .pipeline-copy article {
    padding: 14px 0 0;
  }

  .pipeline-copy article + article {
    border-left: 0;
  }

  .task-examples-section {
    margin-top: 52px;
  }

  .task-examples-section > h2 {
    font-size: 1.75rem;
  }

  .task-video-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .single-task-grid {
    grid-template-columns: 1fr;
  }

  .citation-section {
    margin-top: 52px;
  }

  .citation-section > h2 {
    font-size: 1.75rem;
  }

  .citation-block pre {
    padding: 58px 18px 20px;
    font-size: 0.8rem;
  }

  .category-headings,
  .view-group {
    grid-template-columns: 150px repeat(3, 220px);
    min-width: 852px;
  }

  .view-groups {
    min-width: 852px;
  }
}

@media (max-width: 420px) {
  .project-page {
    padding-inline: 18px;
  }

  h1 {
    font-size: 2rem;
  }
}
