.container {
  width: min(var(--container-max), 100% - var(--container-pad) * 2);
  margin-inline: auto;
}

section {
  position: relative;
  padding-block: var(--section-space);
}

.section-head {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(30px, 4vw, 56px);
}

.section-head h2 {
  font-size: clamp(2rem, 1.5rem + 1.85vw, 3.5rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-soft);
}

.section-head-wide {
  max-width: 780px;
}

.scroll-progress {
  position: fixed;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 45;
  pointer-events: none;
  background: rgb(0 0 0 / 6%);
}

.scroll-progress-top {
  top: 0;
}

.scroll-progress-bottom {
  bottom: 0;
}

.scroll-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
}

.scroll-progress-top .scroll-progress-fill {
  transform-origin: left center;
  transform: scaleX(0);
}

.scroll-progress-bottom .scroll-progress-fill {
  transform-origin: right center;
  transform: scaleX(1);
}
