/*
 * LongBanana project page.
 * The original KlingAI Research design (warm paper, ink, gold, white cards, arc carousel),
 * refined: Inter is now actually delivered, the type scale starts at 13px for labels and 16–18px
 * for reading, secondary text meets WCAG AA, and the layering of later patches is consolidated.
 */
@font-face {
  font-family: "Inter LB";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-opsz.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f7f5f2;
  --ink: #141826;
  --body: #4a5060;
  --muted: #686c74;
  --line: #e3e0db;
  --line-strong: #d3cec5;
  --white: #fff;
  --soft: #efede8;
  --accent: #c1a454;
  --accent-ink: #7a6528;
  --accent-wash: #f3eddc;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgb(20 24 38 / 4%), 0 12px 32px -18px rgb(20 24 38 / 18%);
  --sans: "Inter LB", Inter, "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --page: 1200px;
  --gutter: 40px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a,
button,
input,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
img {
  max-width: 100%;
  display: block;
}
:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(34px, 3.9vw, 52px);
  font-weight: 700;
  line-height: 1.06;
}
h3 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
p {
  text-wrap: pretty;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
sup {
  line-height: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  font-size: 15px;
}
.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 88%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.nav-shell {
  max-width: 1440px;
  margin: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  min-height: 44px;
}
.brand img {
  width: 46px;
  height: 28px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}
.nav-links > a {
  color: var(--body);
  padding: 10px 12px;
  border-radius: 999px;
  transition:
    color 0.15s,
    background 0.15s;
}
.nav-links > a:hover {
  color: var(--ink);
  background: var(--soft);
}
.nav-links > a[aria-current] {
  color: var(--ink);
  font-weight: 600;
}
.nav-links .nav-cta {
  margin-left: 10px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  gap: 12px;
  font-weight: 550;
}
.nav-links .nav-cta:hover {
  background: #2b3040;
  color: var(--white);
}

/* Shared controls */
.eyebrow {
  font-size: 13px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgb(20 24 38 / 4%);
  transition:
    background 0.18s,
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.button:hover {
  border-color: #aaa59e;
  background: #fbfaf7;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -10px rgb(20 24 38 / 30%);
}
.button-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  padding-inline: 26px;
}
.button-primary:hover {
  background: #2b3040;
  border-color: #2b3040;
}
.button-primary span {
  margin-left: 4px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 72px 24px 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 620px;
  background: radial-gradient(closest-side, rgb(255 222 102 / 16%), rgb(255 222 102 / 0%));
  pointer-events: none;
  z-index: -1;
}
.hero h1 {
  font-size: clamp(64px, 8.2vw, 124px);
  font-weight: 750;
  letter-spacing: -0.058em;
  line-height: 1;
}
.title-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
}
.title-lockup > img {
  object-fit: contain;
  flex-shrink: 0;
}
.title-lockup > span {
  white-space: nowrap;
  padding-bottom: 0.08em;
}
.home-title > img {
  width: 1.3em;
  height: auto;
  aspect-ratio: 2;
  transform: translateY(0.02em);
}
.hero-subtitle {
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.4;
  font-weight: 550;
  letter-spacing: -0.025em;
  margin: 24px auto 14px;
}
.mobile-break {
  display: none;
}
.hero-description {
  max-width: 700px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.7;
  margin: auto;
}
.hero-actions {
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.resource-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}
.resource-note span {
  margin: 0 8px;
}
.resource-note a {
  color: var(--body);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.resource-note a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.resource-note .venue {
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
}
/* Phones: one item per line instead of a wrapped "a · b · c" row. */
@media (max-width: 600px) {
  .resource-note {
    line-height: 1.6;
  }
  .resource-note > span[aria-hidden="true"] {
    display: none;
  }
  .resource-note .venue {
    display: block;
    margin-bottom: 2px;
  }
  .resource-note a {
    display: block;
    width: fit-content;
    margin: 6px auto 0;
  }
}

/* Hero carousel: case cards travel along an arc (positions are set by site.js). */
.showcase-viewport {
  position: relative;
  overflow: hidden;
  margin: 30px -24px 0;
  padding: 28px 0 40px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.showcase-viewport:active {
  cursor: grabbing;
}
.showcase-viewport .hero-showcase {
  position: relative;
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
}
.showcase-viewport .showcase-group {
  display: contents;
}
.showcase-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 272px;
  border: 1px solid #d6d2cb;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgb(20 24 38 / 6%),
    0 22px 40px -24px rgb(20 24 38 / 32%);
  text-align: left;
  will-change: transform;
  transition: box-shadow 0.25s;
}
.showcase-card:hover,
.showcase-card:focus-visible {
  box-shadow:
    0 1px 2px rgb(20 24 38 / 8%),
    0 30px 50px -22px rgb(20 24 38 / 42%);
}
.showcase-card img {
  -webkit-user-drag: none;
}
.mini-window {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  background: #f4f2ee;
  border-bottom: 1px solid #e4e0d9;
}
.mini-window > span {
  width: 7px;
  height: 7px;
  background: #cbc7bf;
  border-radius: 50%;
}
.mini-window b {
  margin-left: auto;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.showcase-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.32;
  object-fit: cover;
  background: var(--soft);
}
.showcase-caption {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.showcase-caption strong {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.showcase-caption span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.showcase-control {
  margin-top: 0;
}
.showcase-control button {
  min-height: 40px;
  min-width: 96px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 60%);
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
}
.showcase-control button:hover {
  background: var(--white);
  color: var(--ink);
}
.showcase-note {
  margin: 14px auto 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
}

/* Sections */
.section {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: auto;
  padding: 112px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.section-intro {
  padding-top: 120px;
}
.section-heading {
  margin-bottom: 48px;
}
.section-heading > p:not(.eyebrow),
.section-heading > div + p {
  color: var(--body);
  font-size: 18px;
  line-height: 1.7;
}
.centered {
  text-align: center;
}
.centered > p:last-child {
  margin: 20px auto 0;
  max-width: 680px;
}
.split {
  display: flex;
  gap: 64px;
  align-items: end;
  justify-content: space-between;
}
.split > p {
  max-width: 470px;
}

/* What LongBanana measures */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.feature-number {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.feature h3 {
  margin: 18px 0 12px;
  font-size: 24px;
  line-height: 1.22;
}
.feature p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  flex: 1;
}
.feature-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.feature-foot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 64px 0 0;
}
.stats-row > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  padding: 4px 12px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stats-row > div:last-child {
  border: 0;
}
.stats-row strong {
  font-size: clamp(46px, 4.6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stats-row span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Contributors: the author line, then one numbered key of affiliations in the
   paper's order. Every institution gets the same cell. */
.author-list {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  font-size: 19px;
  line-height: 2;
  color: var(--ink);
  text-wrap: balance;
}
.author {
  white-space: nowrap;
}
.author sup,
.author-notes sup {
  margin-left: 1px;
  font-size: 0.64em;
  font-weight: 600;
  color: var(--accent-ink);
}
.affiliations {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.affiliations > li {
  display: flex;
}
.affiliation {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 168px;
  padding: 40px 18px 24px;
  background: var(--white);
  text-align: center;
  transition: background 0.15s;
}
.affiliation:hover {
  background: var(--paper);
}
/* The grid clips overflow, so draw the focus ring inside the cell. */
.affiliation:focus-visible {
  outline-offset: -4px;
}
.affiliation-number {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.affiliation > img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
/* KlingAI's mark is a solid app icon; a slightly smaller tile keeps its visual
   weight in line with the line-art crests. */
.affiliation > img.affiliation-app-icon {
  width: 46px;
  height: 46px;
  margin: 5px;
  border-radius: 11px;
}
.affiliation-name {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--body);
  text-wrap: balance;
}
.affiliation-wordmark > img {
  width: 168px;
  max-width: 100%;
}
.author-notes {
  max-width: 920px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  text-wrap: balance;
}
.author-notes > span:not(:last-child) {
  white-space: nowrap;
}
@media (max-width: 1080px) {
  .affiliations {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 44px;
  }
  .affiliation {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    min-height: 84px;
    padding: 14px 20px 14px 18px;
    text-align: left;
  }
  .affiliation-number {
    position: static;
    min-width: 1.4em;
  }
  .affiliation > img {
    width: 48px;
    height: 48px;
  }
  .affiliation > img.affiliation-app-icon {
    width: 40px;
    height: 40px;
    margin: 4px;
    border-radius: 9px;
  }
  .affiliation-wordmark > img {
    width: 150px;
    object-position: left center;
  }
  /* In a row, Vector's wordmark already spells its name. */
  .affiliation-wordmark .affiliation-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 600px) {
  .author-list {
    font-size: 17px;
    line-height: 1.95;
  }
  .affiliations {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .affiliation {
    min-height: 76px;
    padding: 12px 18px 12px 16px;
  }
  .author-notes {
    font-size: 14.5px;
  }
}
.fine-print {
  font-size: 14px;
  color: var(--muted);
}

/* Taxonomy */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.suite-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 28px 28px 10px;
  box-shadow: var(--shadow-card);
}
.suite-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
}
.suite-top b {
  font-weight: 550;
  letter-spacing: 0;
  color: var(--body);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
}
.suite-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  font-size: 26px;
}
.paper-suite-icon {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 12px;
  background-image: url("assets/taxonomy_grid_1600.webp");
  background-size: 1109px auto;
  background-repeat: no-repeat;
}
.paper-suite-composition {
  background-position: -365px -30px;
}
.paper-suite-appearance {
  background-position: -366px -143px;
}
.paper-suite-reasoning {
  background-position: -365px -259px;
}
.suite-card > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin: 14px 0 22px;
  min-height: 52px;
}
.suite-card > a.category-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 16px;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--body);
}
svg.paper-category-icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  stroke: none;
  fill: none;
  overflow: hidden;
  padding: 4px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px #e4e8ed;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.suite-card:nth-child(2) .paper-category-icon {
  box-shadow: 0 0 0 1px #ede5d8;
}
.suite-card:nth-child(3) .paper-category-icon {
  box-shadow: 0 0 0 1px #dfe9df;
}
.category-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.suite-card .category-copy b {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.category-copy > span {
  font-size: 15px;
  line-height: 1.45;
  color: var(--body);
}
.category-arrow {
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.18s;
}
.category-link:hover .category-copy > span {
  color: var(--ink);
}
.category-link:hover .category-arrow {
  color: var(--ink);
  transform: translate(2px, -2px);
}
.category-link:hover svg.paper-category-icon {
  transform: scale(1.06);
}
.figure-details {
  margin-top: 28px;
  font-size: 16px;
  color: var(--body);
}
.figure-details summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  font-weight: 550;
}
.figure-details summary:hover {
  color: var(--ink);
}
.figure-details img {
  width: 100%;
  margin-top: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
}

/* Figures */
.paper-figure {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 28px 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.paper-figure img {
  width: 100%;
  height: auto;
}
.paper-figure figcaption {
  font-size: 14px;
  color: var(--muted);
  padding: 18px 0 20px;
  line-height: 1.6;
}

/* Evaluation */
.dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 44px;
}
.dimension-grid > div {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.dimension-grid > div > span {
  font-size: 13px;
  font-weight: 650;
  color: var(--accent-ink);
  letter-spacing: 0.12em;
}
.dimension-grid h3 {
  font-size: 22px;
  margin: 10px 0;
  line-height: 1.25;
}
.dimension-grid p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
}
.scoring-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  font-size: 15px;
  color: var(--body);
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.scoring-note b {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  color: var(--ink);
  margin-right: 4px;
  font-size: 15px;
  font-weight: 650;
}
.scoring-note > span {
  margin: 0 10px;
  color: var(--line-strong);
}
.scoring-note > span.scoring-divider {
  margin: 0 14px;
}
.method-details {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.method-details .method-panel {
  border-bottom: 1px solid var(--line);
}
.method-details .method-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0;
  list-style: none;
  cursor: pointer;
}
.method-panel summary::-webkit-details-marker {
  display: none;
}
.method-copy {
  flex: 1;
  min-width: 0;
}
.method-details .method-panel summary b {
  display: block;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 6px;
}
.method-copy > span {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.method-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
}
.method-toggle-label::before {
  content: "View details";
}
.method-panel[open] .method-toggle-label::before {
  content: "Hide details";
}
.method-chevron {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  position: relative;
  flex-shrink: 0;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.method-chevron::before,
.method-chevron::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  margin: -0.75px 0 0 -7px;
  background: var(--ink);
}
.method-chevron::after {
  transform: rotate(90deg);
  transition: transform 0.18s;
}
.method-panel[open] .method-chevron::after {
  transform: rotate(0deg);
}
.method-details .method-panel > summary:hover .method-chevron {
  background: var(--soft);
  border-color: #a9a49a;
}
.method-details .method-panel > p {
  margin: 0 0 26px;
  max-width: 820px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
}
.method-details .method-panel > .paper-figure {
  margin: 0 0 32px;
}

/* Leaderboard */
.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.text-tabs {
  display: flex;
  gap: 28px;
}
.text-tabs button {
  min-height: 52px;
  padding: 0 2px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 550;
}
.text-tabs button:hover {
  color: var(--ink);
}
.text-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--ink);
}
.detail-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  color: var(--body);
  cursor: pointer;
}
input[type="checkbox"] {
  accent-color: var(--ink);
  width: 18px;
  height: 18px;
  margin: 0;
}
.table-context {
  font-size: 15px;
  color: var(--muted);
  margin: 20px 0;
}
.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  scrollbar-width: thin;
}
.leaderboard-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.leaderboard-table th,
.leaderboard-table td {
  border-bottom: 1px solid #eeece8;
  text-align: right;
  padding: 16px 18px;
}
.leaderboard-table th {
  background: #f4f2ee;
  color: var(--body);
  font-size: 14px;
  font-weight: 600;
  padding-block: 0;
}
.leaderboard-table th button {
  min-height: 48px;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
}
.leaderboard-table th button:hover,
.leaderboard-table th[aria-sort] button {
  color: var(--ink);
}
.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--white);
  z-index: 1;
  min-width: 220px;
}
.leaderboard-table th:first-child {
  background: #f4f2ee;
  z-index: 2;
}
.leaderboard-table tr:last-child td {
  border-bottom: 0;
}
.leaderboard-table td:nth-child(2),
.leaderboard-table th:nth-child(2) {
  text-align: left;
}
.leaderboard-table tbody tr:hover td {
  background: #fbf9f4;
}
.rank-number {
  color: var(--muted);
  display: inline-block;
  width: 32px;
  font-size: 14px;
}
.row-name,
.leaderboard-table th,
.type-tag {
  font-variant-numeric: normal;
}
.row-name {
  font-weight: 600;
}
.type-tag {
  border-radius: 6px;
  background: var(--accent-wash);
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 550;
  color: var(--accent-ink);
}
.mobile-tag {
  display: none;
}
.best {
  font-weight: 750;
}
.score-bar {
  width: 56px;
  height: 5px;
  display: inline-block;
  background: #ece9e2;
  margin-left: 12px;
  vertical-align: middle;
  border-radius: 4px;
  overflow: hidden;
}
.score-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.table-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 18px;
}
.table-note b {
  color: var(--body);
}
.results-readout {
  display: grid;
  grid-template-columns: 1fr 1fr 1.45fr;
  gap: 20px;
  margin-top: 44px;
}
.results-readout > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}
.results-readout > div > span {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.results-readout strong {
  display: block;
  font-weight: 700;
  font-size: 52px;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 12px 0 8px;
  font-variant-numeric: tabular-nums;
}
.results-readout strong span {
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}
.results-readout p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}
.results-readout > div:last-child {
  background: var(--ink);
  border-color: var(--ink);
}
.results-readout > div:last-child > span {
  color: #c9b77f;
}
.results-readout > div:last-child > p {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.65;
  color: #e7e8ee;
}
.protocol-details {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--body);
}
.protocol-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.protocol-details summary::-webkit-details-marker {
  display: none;
}
.protocol-details[open] summary > span {
  font-size: 0;
}
.protocol-details[open] summary > span::after {
  content: "−";
  font-size: 18px;
}
.protocol-details p {
  padding-bottom: 26px;
  max-width: 860px;
  font-size: 16px;
  line-height: 1.75;
}

/* Gallery invitation */
.gallery-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 72px;
  padding-block: 104px;
}
.gallery-invite h2 {
  max-width: 560px;
}
.gallery-invite p:not(.eyebrow) {
  color: var(--body);
  font-size: 18px;
  line-height: 1.7;
  margin: 22px 0 30px;
}
.gallery-invite > img {
  width: 380px;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: contain;
  transform: rotate(-3deg);
  filter: drop-shadow(0 22px 26px rgb(20 24 38 / 16%));
}

/* Paper and citation */
.citation {
  border-bottom: 0;
}
.citation .section-heading > p:last-child {
  text-wrap: balance;
}
.citation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: -16px;
}
.bibtex {
  max-width: 1000px;
  margin: 44px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.bibtex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
}
#copy-bibtex {
  min-height: 44px;
  min-width: 96px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
}
#copy-bibtex:hover {
  background: var(--soft);
  color: var(--ink);
}
.bibtex pre {
  margin: 0;
  padding: 22px 24px 24px;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
/* The panel clips overflow, so draw the focus ring inside it. */
.bibtex pre:focus-visible {
  outline-offset: -4px;
}
/* Below the panel's full width, wrap long lines instead of hiding them behind a sideways scroll. */
@media (max-width: 1080px) {
  .bibtex pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  max-width: 1440px;
  margin: auto;
  padding: 52px 60px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.site-footer > div > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 12px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: flex-end;
  align-items: start;
  font-size: 15px;
  color: var(--body);
  padding-top: 2px;
}
.footer-links a {
  padding: 10px 10px;
  border-radius: 8px;
}
.footer-links a:hover {
  color: var(--ink);
  background: var(--soft);
}
.footer-bottom {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Responsive */
@media (min-width: 1500px) {
  .hero {
    padding-top: 104px;
  }
}
@media (max-width: 1080px) {
  :root {
    --gutter: 28px;
  }
  .nav-links {
    gap: 0;
  }
  .nav-links > a {
    padding-inline: 10px;
  }
  .section {
    padding-block: 88px;
  }
  .feature {
    padding: 26px 22px 22px;
  }
  .feature h3 {
    font-size: 21px;
  }
  .suite-grid {
    gap: 14px;
  }
  .suite-card {
    padding: 24px 20px 8px;
  }
  .suite-heading {
    font-size: 21px;
    gap: 10px;
  }
  .paper-suite-icon {
    transform: scale(0.85);
    margin-inline: -4px;
  }
  .suite-card > a.category-link {
    grid-template-columns: 46px minmax(0, 1fr) 14px;
    gap: 10px;
  }
  svg.paper-category-icon {
    width: 46px;
    height: 46px;
  }
  .category-copy > span {
    font-size: 14px;
  }
  .results-readout {
    grid-template-columns: 1fr 1fr;
  }
  .results-readout > div:last-child {
    grid-column: 1/-1;
  }
  .site-footer {
    padding-inline: 28px;
  }
  .gallery-invite {
    gap: 32px;
  }
  .gallery-invite > img {
    width: 300px;
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }
  body {
    font-size: 16px;
  }
  .nav-shell {
    min-height: 60px;
    gap: 12px;
  }
  .brand {
    font-size: 17px;
    gap: 7px;
  }
  .brand img {
    width: 38px;
    height: 24px;
  }
  .nav-links {
    font-size: 15px;
  }
  .nav-links > .nav-home,
  .nav-links > a[href$="#benchmark"],
  .nav-links > a[href$="#contributors"],
  .nav-links > .nav-cta {
    display: none;
  }
  .hero {
    padding-top: 56px;
  }
  .hero .eyebrow {
    font-size: 12.5px;
    letter-spacing: 0.1em;
  }
  .hero h1.home-title {
    font-size: clamp(44px, 13vw, 76px);
  }
  .hero-subtitle {
    font-size: 21px;
    margin-top: 22px;
  }
  .hero-description {
    font-size: 17px;
    max-width: 520px;
  }
  .hero-actions {
    gap: 10px 8px;
    max-width: 420px;
  }
  .hero-actions .button {
    flex: 1 1 auto;
    padding-inline: 14px;
  }
  .hero-actions .button svg {
    display: none;
  }
  .hero-actions .button-primary {
    flex-basis: 100%;
    order: -1;
  }
  /* Paper, GitHub, Leaderboard and Dataset as a 2 × 2 grid under the gallery button. */
  .hero-actions .button:not(.button-primary) {
    flex: 1 1 calc(50% - 4px);
  }
  .bibtex-head {
    padding-left: 16px;
  }
  .bibtex pre {
    padding: 18px 16px 20px;
    font-size: 14px;
  }
  .showcase-viewport {
    margin-top: 34px;
    padding-bottom: 28px;
  }
  .showcase-card {
    width: 214px;
  }
  .showcase-caption strong {
    font-size: 15px;
  }
  .showcase-note {
    max-width: 330px;
  }
  .section {
    padding-block: 72px;
  }
  .section-intro {
    padding-top: 80px;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .section-heading > p:not(.eyebrow),
  .section-heading > div + p {
    font-size: 17px;
  }
  .section-heading p br {
    display: none;
  }
  .feature-grid,
  .suite-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature h3 {
    font-size: 22px;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
    margin-top: 44px;
  }
  .stats-row > div:nth-child(2) {
    border: 0;
  }
  .stats-row span {
    font-size: 12.5px;
    letter-spacing: 0.06em;
  }
  .split {
    display: block;
  }
  .split > p {
    margin-top: 18px;
    max-width: 100%;
  }
  .split h2 br {
    display: none;
  }
  .suite-card {
    padding: 24px 22px 8px;
  }
  .suite-heading {
    font-size: 24px;
  }
  .paper-suite-icon {
    transform: none;
    margin: 0;
  }
  .suite-card > p {
    min-height: 0;
  }
  .dimension-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px;
  }
  .paper-figure {
    padding: 12px 12px 0;
    border-radius: 14px;
  }
  .paper-figure figcaption {
    font-size: 14px;
    padding: 14px 4px 16px;
  }
  .scoring-note > span.scoring-divider {
    flex-basis: 100%;
    height: 0;
    margin: 0;
    font-size: 0;
  }
  .method-details .method-panel > summary {
    gap: 16px;
    align-items: flex-start;
    padding: 24px 0;
  }
  .method-details .method-panel summary b {
    font-size: 20px;
  }
  .method-toggle-label {
    display: none;
  }
  .method-details .method-panel > p {
    font-size: 16px;
  }
  .table-controls {
    flex-wrap: wrap;
    gap: 4px 20px;
    padding-bottom: 6px;
  }
  .text-tabs {
    gap: 22px;
  }
  .leaderboard-table {
    font-size: 15px;
  }
  .leaderboard-table th,
  .leaderboard-table td {
    padding: 14px 12px;
  }
  .leaderboard-table th:first-child,
  .leaderboard-table td:first-child {
    min-width: 0;
  }
  /* Family moves under the method name so the scores stay on screen. */
  .leaderboard-table th:nth-child(2),
  .leaderboard-table td:nth-child(2) {
    display: none;
  }
  .rank-number {
    width: 26px;
  }
  .mobile-tag {
    display: table;
    margin: 6px 0 0 26px;
  }
  .score-bar {
    display: none;
  }
  .results-readout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .results-readout strong {
    font-size: 44px;
  }
  .gallery-invite {
    display: block;
    text-align: center;
    padding-block: 72px;
  }
  .gallery-invite > img {
    width: 260px;
    margin: 36px auto 0;
  }
  .gallery-invite br {
    display: none;
  }
  .site-footer {
    padding: 40px 20px 24px;
    grid-template-columns: 1fr;
  }
  .footer-links {
    justify-content: flex-start;
    margin-left: -10px;
  }
  .mobile-break {
    display: block;
  }
}
@media (max-width: 400px) {
  .nav-links > a[href$="#leaderboard"] {
    display: none;
  }
  .showcase-card {
    width: 190px;
  }
}

/* Motion preferences: the carousel becomes a still row people can scroll. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .showcase-viewport {
    overflow-x: auto;
    mask-image: none;
  }
  .showcase-viewport .hero-showcase {
    display: flex;
    width: max-content;
    gap: 20px;
    padding: 0 24px;
  }
  .showcase-viewport .showcase-group {
    display: flex;
    gap: 20px;
  }
  .showcase-viewport .showcase-card {
    position: relative;
  }
  .showcase-group[aria-hidden="true"],
  .showcase-control {
    display: none;
  }
}
