.section-title {
  margin: 0;
  max-width: var(--content-narrow);
  font-family: "Linux Biolinum", Arial, sans-serif;
  font-size: 4.7rem;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 9, 11, 0.44);
  color: var(--text);
  cursor: pointer;
  font-family: "Linux Biolinum", Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
}

.button--primary {
  border-color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.22);
  color: #ffffff;
}

.button--light {
  border-color: rgba(0, 0, 0, 0.28);
  background: #ffffff;
  color: #111111;
  text-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.button--light:hover,
.button--light:focus-visible {
  border-color: rgba(0, 0, 0, 0.55);
  background: #f1f1f1;
}

.button--disclosure {
  justify-self: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.disclosure-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid currentColor;
  transition: transform 160ms ease;
}

.button--disclosure[aria-expanded="true"] .disclosure-arrow {
  transform: rotate(180deg);
}

.media-popover {
  position: fixed;
  inset: 24px;
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 9, 11, 0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.media-popover-actions {
  justify-self: end;
  display: flex;
  gap: 10px;
}

.media-popover-actions .button {
  min-height: 40px;
  padding: 10px 14px;
}

.video-frame {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050607;
}

.paper-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.section {
  position: relative;
  width: min(var(--content-wide), calc(100% - 120px));
  margin: 0 auto;
  padding: 120px 0;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(var(--accent-rgb), 0.34) 18%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(var(--accent-rgb), 0.34) 82%,
    rgba(255, 255, 255, 0) 100%
  );
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.54fr);
  gap: 84px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading--full {
  display: block;
}

.section-heading--full .section-title {
  max-width: none;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.42;
}

.section-heading--compact {
  display: block;
  max-width: 940px;
}

.section-heading--compact.section-heading--full {
  max-width: none;
}

.section-heading--compact .section-title {
  margin-bottom: 22px;
}

.section-heading .section-intro {
  max-width: var(--content-readable);
  margin: 0;
  color: var(--muted);
  font-size: 1.44rem;
  line-height: 1.35;
}

.wide-figure,
.figure-panel,
.gradient-comparison,
.gradient-item,
.figure-stack {
  margin: 0;
}

.wide-figure {
  overflow: visible;
  background: transparent;
}

.figure-panel {
  overflow: hidden;
  border-radius: 8px;
  background: #f4f0e8;
  box-shadow: var(--shadow);
}

.plot-figure {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wide-figure img,
.figure-panel img {
  width: 100%;
}

figcaption {
  color: var(--muted);
  font-size: 1.44rem;
  line-height: 1.35;
}

.wide-figure figcaption {
  padding: 14px 0 0;
  background: transparent;
}

.table-scroll {
  margin-bottom: 54px;
  overflow-x: auto;
}

.metrics {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metrics caption {
  caption-side: bottom;
  padding-top: 12px;
  color: var(--subtle);
  font-size: 1.08rem;
  line-height: 1.28;
  text-align: left;
}

.metrics th,
.metrics td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.metrics th:first-child,
.metrics td:first-child {
  text-align: left;
}

.metrics thead th {
  color: var(--accent-strong);
  font-family: "Linux Biolinum", Arial, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metrics tbody th {
  font-weight: 400;
}

.metrics .metric-group th {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: "Linux Biolinum", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.metrics tr:last-child th,
.metrics tr:last-child td {
  border-bottom: 0;
}

.metrics .best {
  background: rgba(var(--accent-rgb), 0.11);
  color: #ffffff;
}

.metrics .best th,
.metrics .best td {
  font-weight: 700;
}

.figure-card {
  display: grid;
  gap: 44px;
  padding: 34px;
  border-radius: 8px;
}

.figure-card--light {
  background: #ffffff;
}

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

.figure-card--light figcaption {
  color: #111111;
}

.figure-stack {
  display: grid;
  gap: 18px;
}

.citation {
  padding-bottom: 96px;
}

.citation-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0f14;
  box-shadow: var(--shadow);
}

.copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 12px;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #ffffff;
  font-family: "Linux Libertine Mono", "LinLibertine_M", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  line-height: 1.5;
}

.site-footer {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  font-family: "Linux Biolinum", Arial, sans-serif;
  font-size: 1rem;
  text-align: center;
}

.site-footer a {
  color: #ffffff;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-strong);
}

@media (max-width: 980px) {
  .section-title {
    font-size: 3.4rem;
  }

  .section {
    width: calc(100% - 64px);
    padding: 80px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }
}

@media (max-width: 739px) {
  .section-title {
    font-size: 2.3rem;
  }

  .button {
    min-height: 38px;
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .button--disclosure {
    padding: 10px 14px;
  }

  .media-popover {
    inset: 10px;
  }

  .section {
    width: calc(100% - 28px);
    padding: 56px 0;
  }

  .section-heading {
    gap: 22px;
    margin-bottom: 28px;
  }

  .section-heading p {
    font-size: 1.08rem;
  }

  .figure-card {
    padding: 12px;
  }

  .metrics th,
  .metrics td {
    padding: 10px 11px;
  }

  pre {
    padding: 58px 16px 18px;
    font-size: 0.86rem;
  }
}
