/* CASCODE — dynamic process sequence */
html,
body {
  overflow-x: clip !important;
}

#processo.process {
  position: relative !important;
  z-index: 6;
  width: 100% !important;
  max-width: none !important;
  min-height: 240vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
}

#processo .process__center {
  --process-progress: 0;
  position: sticky !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  max-width: none !important;
  height: 100svh !important;
  min-height: 620px;
  padding: clamp(88px, 10vh, 112px) clamp(76px, 8vw, 126px) 56px !important;
  overflow: hidden;
  display: grid !important;
  align-content: center;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(5,8,12,.9), rgba(5,8,12,.28) 48%, rgba(5,8,12,.72)),
    radial-gradient(circle at calc(18% + var(--process-progress) * 64%) 54%, rgba(93,231,197,.14), transparent 28%);
}

#processo .section-index {
  margin-bottom: 18px;
}

#processo .section-title {
  position: relative;
  z-index: 2;
  margin: 0 0 clamp(28px, 4.5vh, 46px) !important;
  font-size: clamp(54px, 6.4vw, 96px) !important;
  line-height: .9 !important;
  letter-spacing: -.06em !important;
  text-wrap: balance;
}

#processo .steps {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 !important;
  margin: 0 !important;
  padding: 32px 0 0 !important;
  border-top: 1px solid rgba(255,255,255,.16);
  counter-reset: process;
}

#processo .steps::before,
#processo .steps::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  height: 3px;
  transform-origin: left;
}

#processo .steps::before {
  width: 100%;
  background: rgba(255,255,255,.06);
}

#processo .steps::after {
  width: 100%;
  background: #5de7c5;
  transform: scaleX(var(--process-progress));
  box-shadow: 0 0 18px rgba(93,231,197,.42);
}

#processo .step {
  --step-opacity: .24;
  --step-y: 46px;
  position: relative;
  min-height: 160px;
  padding: 0 clamp(20px, 2.7vw, 42px) !important;
  border-right: 1px solid rgba(255,255,255,.1);
  opacity: var(--step-opacity) !important;
  transform: translate3d(0, var(--step-y), 0) !important;
  transition: opacity .18s linear, color .25s ease;
  will-change: transform, opacity;
}

#processo .step:last-child { border-right: 0; }

#processo .step::before {
  content: "";
  position: absolute;
  top: -39px;
  left: clamp(20px, 2.7vw, 42px);
  width: 11px;
  height: 11px;
  border: 2px solid #5de7c5;
  border-radius: 50%;
  background: #05080c;
  box-shadow: 0 0 0 5px rgba(93,231,197,.08);
}

#processo .step:first-child::before { left: 0; }

#processo .step.is-active {
  color: #f4f2ec;
}

#processo .step.is-active::before {
  background: #5de7c5;
  box-shadow: 0 0 18px rgba(93,231,197,.72);
}

#processo .step__num {
  display: block;
  margin-bottom: 18px;
  color: #5de7c5 !important;
  font: 11px/1 var(--font-mono, monospace) !important;
}

#processo .step h3 {
  margin: 0 0 12px !important;
  font-size: clamp(28px, 3vw, 46px) !important;
  line-height: 1 !important;
}

#processo .step p {
  max-width: 33ch;
  margin: 0 auto !important;
  color: #929ba1 !important;
  font-size: clamp(14px, 1.15vw, 17px) !important;
  line-height: 1.55 !important;
}

.cascode-process-word {
  position: absolute;
  z-index: 1;
  right: -3vw;
  top: 46%;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.045);
  font-family: var(--font-sans, sans-serif);
  font-size: clamp(180px, 28vw, 460px);
  font-weight: 800;
  line-height: .7;
  letter-spacing: -.1em;
  transform: translate3d(calc((.5 - var(--process-progress)) * 13vw), -50%, 0);
  pointer-events: none;
}

@media (max-width: 860px) {
  #processo.process {
    min-height: 260vh !important;
  }

  #processo .process__center {
    min-height: 100svh;
    padding: 86px 22px 54px !important;
    align-content: center;
  }

  #processo .section-index {
    margin-bottom: 14px;
  }

  #processo .section-title {
    max-width: 8ch;
    margin-bottom: 26px !important;
    font-size: clamp(40px, 12.2vw, 58px) !important;
    line-height: .88 !important;
  }

  #processo .steps {
    display: block !important;
    min-height: 220px;
    padding-top: 25px !important;
  }

  #processo .step {
    position: absolute;
    inset: 25px 0 auto 0;
    min-height: 0;
    padding: 0 !important;
    border: 0;
    pointer-events: none;
  }

  #processo .step::before {
    top: -32px;
    left: calc((var(--step-index) / 2) * (100% - 11px));
  }

  #processo .step h3 {
    font-size: clamp(34px, 11vw, 48px) !important;
  }

  #processo .step p {
    max-width: 29ch;
    font-size: 15px !important;
  }

  .cascode-process-word {
    top: 59%;
    font-size: 62vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  #processo .step { transition: none; }
}
