:root {
  --ink: #173047;
  --muted: #596d7d;
  --line: #d8e0e5;
  --paper: #fff;
  --surface: #f5f7f8;
  --warm: #f7f5f1;
  --nav: #222c36;
  --accent: #118f89;
  --accent-dark: #0d6965;
  --orange: #cf7110;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.55rem 0.8rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell,
.nav-shell {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-top: 0;
  background: var(--nav);
  backdrop-filter: none;
}

.nav-shell {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-shell-centered {
  justify-content: center;
}

.nav-brand {
  width: 146px;
  padding: 0;
  background: transparent;
}

.nav-brand img {
  width: 100%;
  clip-path: inset(2% 0.8%);
  filter: invert(1) grayscale(1) contrast(1.25) brightness(2);
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  align-self: stretch;
  align-items: stretch;
}

.nav-links a {
  display: grid;
  min-width: 128px;
  place-items: center;
  padding: 0 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.13);
}

.home-hero {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 3;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  background: #10202e;
}

.home-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(rgba(8, 18, 27, 0.64), rgba(8, 18, 27, 0.74));
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: #101a23;
}

.hero-shot {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #172634;
  box-shadow: none;
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101a23;
  filter: saturate(0.72) contrast(1.02);
}

.hero-shot.suite-s2d,
.hero-shot.suite-d2s,
.hero-shot.suite-d2d {
  border: 0;
}

.home-hero .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  text-align: center;
}

.home-hero h1 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  overflow-wrap: anywhere;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.34);
}

.home-hero .authors {
  max-width: 880px;
  margin: 1.1rem auto 0.3rem;
  color: #fff;
  font-size: 0.86rem;
}

.home-hero .authors span {
  white-space: nowrap;
}

.home-hero .authors sup,
.home-hero .affiliations sup {
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
}

.home-hero .affiliations {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.home-hero .affiliations span {
  display: inline-block;
  max-width: 100%;
  margin-inline: 0.4rem;
}

.home-hero .corresponding-author {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
}

.hero-links {
  display: flex;
  margin-top: 1.15rem;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.hero-links a {
  min-width: 92px;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 18, 27, 0.42);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.hero-links a:hover,
.hero-links a:focus-visible {
  color: var(--ink);
  background: #fff;
}

.home-hero .authors {
  overflow-wrap: anywhere;
}

.page-hero {
  padding: clamp(5rem, 10vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 82% 12%, rgba(17, 143, 137, 0.16), transparent 30%),
    linear-gradient(135deg, var(--warm), #fff 72%);
}

.page-hero-datasets {
  background:
    radial-gradient(circle at 82% 12%, rgba(207, 113, 16, 0.16), transparent 30%),
    linear-gradient(135deg, var(--warm), #fff 72%);
}

.page-hero-research {
  background:
    radial-gradient(circle at 82% 12%, rgba(23, 48, 71, 0.16), transparent 30%),
    linear-gradient(135deg, var(--warm), #fff 72%);
}

.page-hero h1 {
  max-width: 940px;
  margin: 0;
}

.page-hero > .page-shell > p:last-child {
  max-width: 780px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero {
  padding: clamp(4rem, 9vw, 7.2rem) 0 clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(circle at 13% 6%, rgba(17, 143, 137, 0.14), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(207, 113, 16, 0.1), transparent 28%),
    linear-gradient(180deg, var(--warm), #fff 72%);
}

.hero-content {
  text-align: center;
}

.hero-logo {
  width: min(490px, 78vw);
  margin: 0 auto 2rem;
  clip-path: inset(0.6%);
  mix-blend-mode: multiply;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1000px;
  margin-inline: auto;
  font-size: clamp(2.15rem, 5.1vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.authors {
  max-width: 930px;
  margin: 1.55rem auto 0.35rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 650;
}

.affiliations {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.25rem;
}

.resource-links a {
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.resource-links a:hover,
.resource-links a:focus-visible {
  color: #fff;
  background: var(--ink);
}

.paper-figure {
  width: min(82%, 880px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(23, 48, 71, 0.1);
}

.paper-figure img {
  width: 100%;
}

.paper-figure figcaption {
  padding: 0.9rem 1.2rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.91rem;
  text-align: left;
}

.overview-figure {
  margin-bottom: 2rem;
}

.animated-overview {
  width: 100%;
  max-width: 1180px;
  scroll-margin-top: 110px;
  background: var(--surface);
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  align-items: start;
  gap: 1.2rem;
  padding: 1.2rem;
}

.overview-connector {
  display: grid;
  justify-items: center;
  color: #974400;
}

.overview-connector span {
  width: 48px;
  height: 76px;
  background: #c76c09;
  clip-path: polygon(25% 0, 75% 0, 75% 62%, 100% 62%, 50% 100%, 0 62%, 25% 62%);
}

.overview-connector p {
  margin: 0.3rem 0 0;
  font-size: 1rem;
}

.animated-overview > figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.animated-overview > figcaption .overview-playback {
  flex-shrink: 0;
  margin-top: 0;
}

.overview-constraints {
  width: 100%;
  aspect-ratio: 854 / 1107;
  background: url("./assets/overview.png") left top / auto 100% no-repeat;
}

.overview-suites {
  min-width: 0;
  padding: 1rem;
  border: 2px solid #cbd8e0;
  border-radius: 32px;
  text-align: center;
}

.paper-figure .overview-logo {
  width: 125px;
  height: auto;
  margin: 0 auto 0.45rem;
}

.overview-suites h3 {
  margin: 0.7rem 0 0.35rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.3;
}

.overview-facts,
.overview-legend {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.overview-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.65rem;
  margin-top: 1rem;
}

.overview-demo {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.overview-demo h4 {
  margin: 0;
  padding: 0.5rem;
  font-size: 1.15rem;
}

.overview-demo video {
  display: block;
  width: 100%;
  max-width: 256px;
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  object-fit: contain;
  background: #101a23;
}

.animated-overview .overview-demo figcaption {
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

.overview-demo strong {
  color: var(--ink);
}

.overview-demo small {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 650;
}

.overview-playback {
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .overview-layout {
    grid-template-columns: 1fr;
  }

  .overview-constraints {
    max-width: 400px;
    margin-inline: auto;
  }
}

@media (min-width: 1001px) {
  .overview-layout {
    position: relative;
    gap: 0.6rem;
    padding: 0.6rem;
  }

  .overview-connector {
    position: absolute;
    left: 34%;
    top: 17%;
    width: 100px;
    z-index: 1;
  }

  .overview-connector span {
    width: 100px;
    height: 34px;
    clip-path: polygon(0 25%, 74% 25%, 74% 0, 100% 50%, 74% 100%, 74% 75%, 0 75%);
  }

  .overview-connector p {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .overview-suites {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.5rem;
    background: #f5f7f8;
  }

  .overview-suites h3 {
    margin: 0.3rem 0 0.25rem;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  }

  .overview-facts,
  .overview-legend {
    font-size: clamp(0.65rem, 1.05vw, 0.8rem);
  }

  .overview-legend {
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #118f89;
  }

  .overview-videos {
    gap: 0.65rem;
    padding-top: 0.5rem;
    margin-top: auto;
  }

  .overview-demo {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .overview-demo h4 {
    padding: 0.25rem 0 0.5rem;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
  }

  .overview-demo video {
    max-width: none;
    border-radius: 12px;
    object-fit: contain;
  }

  .animated-overview .overview-demo figcaption {
    padding: 0.6rem 0 0;
    border: 0;
    font-size: clamp(0.65rem, 1.1vw, 0.85rem);
  }

  .overview-demo strong {
    color: var(--muted);
    font-weight: 500;
  }

  .overview-demo figcaption span,
  .overview-demo figcaption small {
    display: none;
  }
}

.benchmark-results {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.benchmark-results summary {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.benchmark-results summary span {
  font-size: 0.8rem;
}

.benchmark-results .research-study-heading {
  width: 100%;
  margin: 0.65rem 0;
  font-size: 0.8rem;
}

.benchmark-results .results-note {
  font-size: 0.8rem;
}

.results-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.results-table caption,
.results-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.results-table caption {
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.results-table th,
.results-table td {
  padding: 0.45rem clamp(0.3rem, 1vw, 0.75rem);
  border-top: 1px solid var(--line);
  text-align: right;
}

.results-table tr > :first-child {
  text-align: left;
}

.results-table thead {
  background: var(--surface);
}

.results-note {
  margin: 0.8rem 0 0;
}

.merged-block {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.hero-figure {
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(23, 48, 71, 0.14);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  scroll-margin-top: 78px;
}

.section-muted {
  background: var(--surface);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 2rem;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 0.98rem;
}

.home-overview > .page-shell > .section-heading:first-child {
  max-width: none;
}

.home-overview > .page-shell > .section-heading:first-child h2 {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  white-space: normal;
}

.eyebrow {
  margin-bottom: 0.55rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.section-title > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.section-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
}

.section-icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

#datasets .section-icon {
  background: var(--orange);
}

#research .section-icon {
  background: var(--ink);
}

h3 {
  line-height: 1.28;
}

.abstract-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-left: 5px solid var(--accent);
  background: var(--surface);
}

.home-overview {
  font-size: 0.94rem;
}

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

.stat-grid,
.suite-grid,
.dataset-grid,
.research-figures {
  display: grid;
  gap: 1rem;
}

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

.stat-grid article {
  padding: 1.4rem 1rem;
  border: 1px solid var(--line);
  text-align: center;
}

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

.stat-grid strong {
  color: var(--accent-dark);
  font-size: 2rem;
}

.stat-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.suite-grid article {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.suite-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.suite-code,
.dataset-format {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.figure-stack {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

.dataset-grid > a {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.dataset-grid > a:hover,
.dataset-grid > a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(23, 48, 71, 0.11);
}

.dataset-grid p {
  color: var(--muted);
}

.arrow {
  color: var(--accent-dark);
  font-weight: 750;
}

.research-heading {
  max-width: 900px;
}

.research-figures {
  grid-template-columns: 1fr;
  gap: 2.4rem;
}

.research-study {
  display: grid;
  gap: 1rem;
}

.research-study-heading {
  width: min(82%, 880px);
  margin: 0 auto;
}

.research-study-heading h2,
.research-study-heading h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.research-study-heading p {
  margin: 0;
  color: var(--muted);
}

.paper-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  background: var(--surface);
}

.paper-panel p:last-child,
.paper-panel h3:last-child {
  margin-bottom: 0;
}

.paper-panel > div {
  min-width: 0;
}

.paper-link {
  display: inline-flex;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.paper-link:hover,
.paper-link:focus-visible {
  color: #fff;
  background: var(--ink);
}

.citation-block {
  max-width: 100%;
  margin: 1.1rem 0 0;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 12px;
  color: #eaf2f8;
  background: #101923;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: left;
}

.lineage {
  align-self: center;
  margin-bottom: 0;
  color: var(--muted);
}

.lineage a {
  color: var(--accent-dark);
  font-weight: 750;
}

.project-grid,
.resource-facts {
  display: grid;
  gap: 1rem;
}

.project-grid {
  grid-template-columns: repeat(4, 1fr);
}

.resource-facts {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(23, 48, 71, 0.11);
}

.project-card > span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.project-card h3 {
  margin: 0.65rem 0 0.45rem;
  font-size: 1.45rem;
}

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

.dataset-grid-large {
  margin-bottom: 2rem;
}

.dataset-grid-large h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.media-showcase {
  margin: 2rem 0;
}

.media-showcase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.media-showcase-heading h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.failure-classification {
  margin: -0.25rem 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.failure-classification strong {
  color: var(--ink);
}

.speed-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.speed-control select {
  min-height: 2rem;
  padding: 0.2rem 1.8rem 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.media-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.media-frame {
  display: grid;
  min-height: 160px;
  place-items: center;
  background: #0f1b25;
}

.media-frame video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 256px;
  object-fit: contain;
}

.media-card figcaption {
  display: grid;
  gap: 0.18rem;
  padding: 0.7rem 0.8rem 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.media-card figcaption strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.resource-facts {
  margin-top: 2rem;
}

.resource-facts article {
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.resource-facts strong {
  color: var(--accent-dark);
  font-size: 1.05rem;
}

.resource-facts h3 {
  margin: 0.55rem 0 0.35rem;
}

.resource-facts p {
  margin-bottom: 0;
  color: var(--muted);
}

.resource-facts article:last-child p {
  margin-top: 0.45rem;
  font-size: 0.9rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.page-actions a {
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.page-actions a:hover,
.page-actions a:focus-visible {
  color: #fff;
  background: var(--ink);
}

footer {
  padding: 2rem 0;
  color: #e6edf3;
  background: var(--nav);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-layout p {
  margin: 0;
  font-weight: 800;
}

.footer-layout div {
  display: flex;
  gap: 1.2rem;
}

@media (max-width: 820px) {
  .home-hero {
    aspect-ratio: auto;
  }

  .hero-collage {
    top: 50%;
    bottom: auto;
    aspect-ratio: 5 / 6;
    transform: translateY(-50%);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
  }

  .home-hero .hero-content {
    height: auto;
  }

  .nav-shell {
    min-height: 70px;
  }

  .nav-brand {
    width: 120px;
  }

  .nav-links a {
    min-width: auto;
    padding: 0 0.7rem;
    font-size: 0.9rem;
  }

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

  .suite-grid,
  .dataset-grid,
  .paper-panel,
  .project-grid,
  .resource-facts {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 560px) {
  .overview-connector {
    display: grid;
    justify-items: center;
    color: #974400;
  }

  .overview-connector span {
    width: 48px;
    height: 76px;
    background: #c76c09;
    clip-path: polygon(25% 0, 75% 0, 75% 62%, 100% 62%, 50% 100%, 0 62%, 25% 62%);
  }

  .overview-connector p {
    margin: 0.3rem 0 0;
    font-size: 1rem;
  }

  .animated-overview > figcaption {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-layout {
    padding: 0.85rem;
  }

  .overview-videos {
    grid-template-columns: 1fr;
  }

  body {
    overflow-x: hidden;
  }

  .page-shell,
  .nav-shell {
    width: min(calc(100% - 1.4rem), var(--max-width));
  }

  .nav-shell {
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.55rem;
  }

  .nav-links {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .nav-links a {
    padding: 0 0.55rem;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .home-hero::before {
    background: linear-gradient(rgba(8, 18, 27, 0.68), rgba(8, 18, 27, 0.8));
  }

  .hero-collage {
    aspect-ratio: 3 / 10;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(10, minmax(0, 1fr));
  }

  .home-hero .hero-content {
    height: auto;
    min-height: 0;
    padding: 2.5rem 0;
  }

  .home-hero h1 {
    font-size: clamp(1.35rem, 5.8vw, 1.8rem);
  }

  .home-overview > .page-shell > .section-heading:first-child h2 {
    white-space: normal;
  }

  .hero-content > *,
  .paper-figure,
  .paper-figure img {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(1.8rem, 9vw, 2.25rem);
    overflow-wrap: break-word;
  }

  .authors {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
  }

  .affiliations {
    font-size: 0.8rem;
  }

  .resource-links {
    align-items: center;
  }

  .resource-links a {
    flex: 0 1 auto;
  }

  .media-showcase-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .abstract-panel {
    padding: 1.25rem;
  }

  .section-title {
    gap: 0.65rem;
  }

  .section-icon {
    width: 2.35rem;
    height: 2.35rem;
    flex-basis: 2.35rem;
    border-radius: 10px;
  }

  .section-icon svg {
    width: 1.35rem;
    height: 1.35rem;
  }

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

  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dataset-grid > a {
    transition: none;
  }
}
