/* ═════════ CONTACT · SECTION 2 · WHAT HAPPENS NEXT ═════════
   Three steps joined by a line that fills as you scroll (--p, set by contact.js). */
.ct-section2 {
  position: relative;
  padding: 100px 0;
}

.ct2-steps {
  --p: 0;
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* the line behind the three icons */
.ct2-steps::before,
.ct2-steps::after {
  content: '';
  position: absolute;
  top: 58px;
  inset-inline: 16.6%;
  height: 1px;
}

.ct2-steps::before {
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 5px, transparent 5px 10px);
}

.ct2-steps::after {
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  box-shadow: 0 0 10px var(--blue-glow);
  transform: scaleX(var(--p));
  transform-origin: left;
}

[dir="rtl"] .ct2-steps::after {
  transform-origin: right;
}

.ct2-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 26px 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 70%);
  text-align: center;
}

.ct2-n {
  position: absolute;
  top: 18px;
  inset-inline-start: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.ct2-ico {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text-dim);
  transition: background 0.6s, color 0.6s, border-color 0.6s, box-shadow 0.6s;
}

.ct2-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct2-step.is-on .ct2-ico {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 30px -4px var(--blue-glow);
}

.ct2-step h3 {
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.ct2-step p {
  max-width: 280px;
  color: var(--text-dim);
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .ct-section2 { padding: 70px 0; }
  .ct2-steps { grid-template-columns: 1fr; gap: 12px; }
  .ct2-steps::before,
  .ct2-steps::after {
    top: 30px;
    bottom: 30px;
    inset-inline: auto;
    inset-inline-start: 47px;
    width: 1px;
    height: auto;
  }
  .ct2-steps::before { background: repeating-linear-gradient(180deg, var(--border-strong) 0 5px, transparent 5px 10px); }
  .ct2-steps::after { transform: scaleY(var(--p)); transform-origin: top; }
  [dir="rtl"] .ct2-steps::after { transform-origin: top; }
  .ct2-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas: "ico title" "ico text";
    column-gap: 18px;
    align-items: start;
    padding: 20px;
    text-align: start;
  }
  .ct2-n { display: none; }
  .ct2-ico { grid-area: ico; margin: 0; }
  .ct2-step h3 { grid-area: title; margin: 4px 0 4px; font-size: 1.2rem; }
  .ct2-step p { grid-area: text; }
}
