.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 40;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width 80ms linear;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 790px;
  margin: -38px 0 66px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  padding: 18px 18px 18px 0;
}

.hero-facts > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-facts span {
  grid-row: 1 / 3;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-facts b {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 600;
}

.hero-facts small {
  color: var(--muted);
  font-size: 11px;
}

.result-callout {
  align-self: center;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .55s ease .45s, transform .55s ease .45s;
}

.chart-card.is-visible .result-callout {
  opacity: 1;
  transform: none;
}

.grouped-chart {
  height: 370px;
}

.grouped-chart .bars {
  height: 260px;
}

.result-callout small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
}

.chart-card {
  position: relative;
  overflow: hidden;
}

.chart-card::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -120px;
  top: -140px;
  border: 1px solid rgba(44, 99, 214, .12);
  border-radius: 50%;
  transition: transform .8s ease;
}

.chart-card:hover::before {
  transform: scale(1.08);
}

.bars i {
  cursor: help;
}

.average-chart .avg-row > div {
  position: relative;
}

.average-chart .avg-row > div::after {
  content: '';
  position: absolute;
  inset: 0 25% 0 auto;
  width: 1px;
  background: rgba(24, 32, 31, .08);
}

.experiments-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
  margin: 92px 0 28px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.experiments-heading .chart-kicker {
  grid-column: 1 / -1;
}

.experiments-heading h3 {
  margin: 8px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -.035em;
}

.experiments-heading p {
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
}

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

.experiment-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 250, 246, .68);
}

.experiment-number {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.experiment-card h4 {
  min-height: 58px;
  margin: 14px 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  line-height: 1.2;
}

.experiment-card > p {
  min-height: 62px;
  color: var(--muted);
  font-size: 13px;
}

.depth-plot {
  width: 100%;
  margin-top: 4px;
  overflow: visible;
}

.depth-plot line {
  stroke: var(--line);
  stroke-width: 1;
}

.depth-plot polyline {
  fill: none;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.depth-plot .line-with { stroke: var(--blue); }
.depth-plot .line-without { stroke: #9aa39f; }
.depth-plot .points.with { fill: var(--blue); }
.depth-plot .points.without { fill: #9aa39f; }
.depth-plot text { fill: var(--muted); font: 10px Arial, sans-serif; }

.mini-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.mini-legend span {
  width: 18px;
  height: 2px;
  margin-left: 7px;
  background: #9aa39f;
}

.mini-legend span:first-child { margin-left: 0; }
.mini-legend .with { background: var(--blue); }

.module-bars {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.module-bars > div {
  display: grid;
  grid-template-columns: 82px 1fr 34px;
  gap: 8px;
  align-items: center;
  font-size: 10px;
}

.module-bars i {
  display: block;
  width: var(--w);
  height: 8px;
  border-radius: 2px;
  background: #abb3b0;
}

.module-bars b { text-align: right; }
.module-bars .full { color: var(--blue); font-weight: 800; }
.module-bars .full i { background: var(--blue); }
.zoom-note { display: block; margin-top: 16px; color: var(--muted); font-size: 9px; }

.transfer-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.transfer-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.transfer-list p { display: flex; gap: 9px; margin: 0; }
.transfer-list s { color: var(--muted); text-decoration: none; }
.transfer-list s::after { content: '→'; margin-left: 9px; color: var(--line); }
.transfer-list b { color: var(--blue); }
.transfer-key { display: flex; justify-content: flex-end; gap: 24px; margin-top: 10px; color: var(--muted); font-size: 9px; }

@media (max-width: 800px) {
  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: -24px;
  }

  .hero-facts > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .grouped-chart {
    height: 320px;
  }

  .grouped-chart .bars {
    height: 225px;
  }

  .result-callout {
    font-size: 13px;
  }

  .experiments-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .experiment-card h4,
  .experiment-card > p {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress span,
  .result-callout,
  .chart-card::before {
    transition: none;
  }
}
