/*
 * The pages a company reads before it calls us: Enterprise, Clients, Company, Contact and the
 * Trust Center. They share the home page's scale and pace: the headline at 64, every section
 * heading at 44, one gap between sections, and things that take a full second to arrive.
 */
main {
  --reveal-time: 1s;
  --step: 110ms;
}

html:root .hero-title,
html:root .contact h1 {
  font-size: clamp(40px, 4.6vw, 64px);
}

html:root .big-h2,
html:root main .section h2,
html:root .final-band h2 {
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.08;
}

html:root main > .section {
  margin-top: 144px;
}

/* A heading and its list side by side: the heading stays in view while the list scrolls. */
.two-col > div:first-child {
  position: sticky;
  top: 120px;
  align-self: start;
}

/* Steps that light up one by one (site.js, data-scroll-steps): the ones not reached yet wait in
   grey, with a line down the side that fills as the reader goes. */
.is-stepping {
  position: relative;
}

.is-stepping::after {
  position: absolute;
  top: 0;
  left: -24px;
  width: 2px;
  height: calc(100% * var(--done, 0));
  border-radius: 2px;
  background: var(--brand);
  content: "";
  transition: height 0.5s var(--ease);
}

.is-stepping > li {
  padding: 36px 0;
  transition: opacity 0.5s var(--ease);
}

.is-stepping > li:not(.is-on) {
  opacity: 0.3;
}

.is-stepping > li.is-on::before {
  color: var(--brand);
}

@media (max-width: 860px) {
  html:root main > .section {
    margin-top: 80px;
  }

  .two-col > div:first-child {
    position: static;
  }

  .is-stepping::after {
    left: -12px;
  }
}
