/* Connect page layer. Shared chrome stays in sharon-c.css. */

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero.section {
  padding-top: clamp(1.75rem, 3.2vw, 2.8rem);
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.page-block.section {
  padding-top: clamp(1.6rem, 3vw, 2.6rem);
  padding-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.page-glow,
.page-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-glow {
  background:
    radial-gradient(540px 300px at 12% 30%, rgba(61, 220, 151, 0.22), transparent 70%),
    radial-gradient(480px 280px at 92% 8%, rgba(56, 189, 248, 0.16), transparent 68%);
}

.page-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 72% 80% at 68% 42%, #000 10%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 72% 80% at 68% 42%, #000 10%, transparent 74%);
}

.hero-top {
  position: relative;
  z-index: 1;
  min-height: 220px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(40rem, calc(100% - 300px));
}

.page-hero h1.section-title::before,
.page-block h2.section-title::before {
  display: flex;
  width: fit-content;
}

.page-hero h1.section-title {
  max-width: 14em;
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  letter-spacing: -0.02em;
}

.page-block h2.section-title {
  max-width: 18em;
  font-size: clamp(1.28rem, 2vw, 1.6rem);
}

.contour {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 0;
  width: 280px;
  height: 280px;
  transform: translateY(-50%);
  pointer-events: none;
}

.contour svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: contour-spin 48s linear infinite;
}

@keyframes contour-spin {
  to { transform: rotate(360deg); }
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.step-rail {
  position: relative;
  padding: 1.35rem 1.25rem 1.3rem;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background:
    radial-gradient(480px 200px at 0% 0%, rgba(61, 220, 151, 0.08), transparent 62%),
    rgba(255, 255, 255, 0.03);
}

.page-connect .connect-clients {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.page-connect .connect-clients li {
  height: 100%;
  transition: border-color 500ms var(--ease), background 500ms var(--ease);
}

.page-connect .connect-clients li:hover {
  border-color: rgba(61, 220, 151, 0.4);
  background: rgba(61, 220, 151, 0.05);
}

.page-note,
.page-after {
  margin-top: 1.15rem;
  max-width: 44rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.page-contacts {
  max-width: 52rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 861px) {
  .page-connect .steps {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }

  .page-connect .steps::before,
  .page-connect .steps::after {
    content: none;
  }

  .page-connect .steps li {
    flex: 1 1 0;
    padding: 3.15rem 1.35rem 0.15rem 0;
  }

  .page-connect .steps li:last-child {
    padding-right: 0;
    padding-bottom: 0.15rem;
  }

  .page-connect .steps li::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 2rem;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(61, 220, 151, 0.85), rgba(56, 189, 248, 0.55));
    pointer-events: none;
  }

  .page-connect .steps li:last-child::after {
    content: none;
  }
}

@media (max-width: 860px) {
  .hero-copy {
    max-width: none;
  }

  .hero-top {
    min-height: 0;
  }

  .contour {
    display: none;
  }

  .page-connect .connect-clients,
  .page-contacts {
    grid-template-columns: 1fr;
  }
}
