:root {
  --article-read: 760px;
  --article-wide: 1020px;
}

.benchmark-article {
  background:
    radial-gradient(circle at 78% 0, rgba(62, 116, 255, 0.035), transparent 25rem),
    #fafafa;
}

.benchmark-article .skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #090a0c;
  color: #fff;
  font-size: 13px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.benchmark-article .article-site-header {
  border-bottom: 0;
  background: rgba(250, 250, 250, 0.9);
}

.benchmark-article .article-hero {
  width: min(var(--article-read), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(148px, 13vw, 194px) 0 30px;
}

.benchmark-article .article-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 160ms ease, transform 160ms ease;
}

.benchmark-article .article-back:hover {
  color: var(--ink);
  transform: translateX(-2px);
}

.benchmark-article .article-hero h1 {
  max-width: 1040px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.15;
  white-space: nowrap;
}

.benchmark-article .article-body {
  width: min(var(--article-read), calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 132px;
}

.benchmark-article .prose-section + .prose-section { margin-top: 56px; }

.benchmark-article .prose-section p {
  margin-bottom: 0;
  color: #454b54;
  font-size: 16px;
  line-height: 2.02;
}

.benchmark-article .prose-section p + p { margin-top: 24px; }
.benchmark-article .prose-section sup { vertical-align: super; font-family: var(--font-mono); font-size: 10px; }
.benchmark-article .prose-section sup a { color: #3569ff; }

.benchmark-article .article-section {
  margin-top: 118px;
  padding-top: 0;
}

.benchmark-article .article-section h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.35;
  white-space: nowrap;
}

.benchmark-article .article-section h2 { margin: 0 0 28px; }

.benchmark-article .article-figure {
  position: relative;
  left: 50%;
  width: min(var(--article-wide), calc(100vw - (var(--page-gutter) * 2)));
  margin: clamp(70px, 8vw, 108px) 0;
  transform: translateX(-50%);
}

.benchmark-article .article-figure-bleed {
  width: min(1120px, calc(100vw - clamp(72px, 8vw, 132px)));
}

.benchmark-article .article-figure img {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(17, 26, 45, 0.07);
}

.benchmark-article .article-figure-frame {
  box-sizing: border-box;
  padding: clamp(24px, 3.2vw, 46px);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(17, 26, 45, 0.07);
}

.benchmark-article .article-figure-frame img {
  display: block;
  border-radius: 12px;
  box-shadow: none;
}

.benchmark-article .article-figure figcaption {
  margin-top: 18px;
  color: #8a9098;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.benchmark-article .method-figure img { border-radius: 18px; }

.benchmark-article .article-conclusion {
  margin-top: 126px;
  padding-bottom: 84px;
}

.benchmark-article .references {
  padding-top: 42px;
}

.benchmark-article .references h2 {
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

.benchmark-article .references p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.75;
}

.benchmark-article .article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 120px;
  padding: 0 var(--page-gutter);
}

.benchmark-article .article-footer a {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.25em;
}

.benchmark-article .article-footer p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .benchmark-article .article-hero {
    width: min(var(--article-read), calc(100% - 48px));
    padding-top: 144px;
  }

  .benchmark-article .article-hero h1 {
    font-size: clamp(34px, 5vw, 38px);
    white-space: normal;
  }
  .benchmark-article .article-figure { width: calc(100vw - 56px); }
  .benchmark-article .article-figure-bleed { width: calc(100vw - 32px); }
}

@media (max-width: 700px) {
  .benchmark-article .article-hero {
    width: calc(100% - 44px);
    padding: 122px 0 78px;
  }

  .benchmark-article .article-hero h1 { font-size: clamp(32px, 8.5vw, 37px); }
  .benchmark-article .article-body { width: calc(100% - 44px); padding: 26px 0 96px; }
  .benchmark-article .article-section { margin-top: 90px; padding-top: 0; }
  .benchmark-article .article-section h2 { font-size: 20px; white-space: normal; }
  .benchmark-article .article-figure,
  .benchmark-article .article-figure-bleed { width: calc(100vw - 24px); margin: 64px 0; }
  .benchmark-article .article-figure img { border-radius: 13px; }
  .benchmark-article .article-figure-frame { padding: 12px; border-radius: 13px; }
  .benchmark-article .article-figure-frame img { border-radius: 8px; }
  .benchmark-article .article-figure figcaption { padding: 0 6px; }
  .benchmark-article .article-footer { min-height: 110px; padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .benchmark-article .site-header { transition: none; }
}
