/* ==========================================================================
   Contact block and footer
   Closing call-to-action section and the site footer.
   ========================================================================== */

.contact {
  text-align: center;
  background: var(--grain), var(--cbg);
  color: var(--cf);
  border: 1px solid var(--cline);
  border-radius: 40px;
  padding: 96px 24px 72px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact:before,
.contact:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--cf) 16%, transparent);
  z-index: -1;
  pointer-events: none;
}
.contact:before {
  width: 460px;
  height: 460px;
  right: -150px;
  top: -180px;
  animation: drift 22s ease-in-out infinite alternate;
}
.contact:after {
  width: 300px;
  height: 300px;
  left: -100px;
  bottom: -140px;
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  to {
    transform: translate(-26px, 22px) scale(1.06);
  }
}
.contact h2 {
  margin: 0 auto;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  max-width: 12em;
  text-wrap: balance;
}
.contact p {
  margin: 22px auto 0;
  max-width: 30em;
  opacity: 0.88;
  text-wrap: balance;
}
.contact :focus-visible {
  outline-color: var(--lime);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.contact .cta {
  justify-content: center;
  margin-top: 42px;
  gap: 14px;
}
.contact .btn {
  min-width: 236px;
  justify-content: center;
  font-size: 1.05rem;
  padding: 17px 28px;
  background: var(--lime);
  color: var(--cink);
  border-color: var(--lime);
}
.contact .btn:hover {
  background: #fff;
  border-color: #fff;
}
.contact .btn.sec {
  background: none;
  color: var(--cf);
  border-color: color-mix(in srgb, var(--cf) 45%, transparent);
}
.contact .btn.sec:hover {
  background: var(--cf);
  color: var(--cink);
}
.soc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: center;
  max-width: 680px;
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--cf) 22%, transparent);
  font-weight: 500;
}
.soc a {
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.2s;
}
.soc a:hover {
  opacity: 1;
}
footer {
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
