.site-footer {
  position: relative;
  z-index: 1;
  background: #020617;
  color: #f8fafc;
}

.site-footer__shell {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}

.site-footer__intro {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.site-footer__eyebrow {
  margin: 0;
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
}

.site-footer__copy {
  max-width: 36rem;
  margin: 0;
  color: rgba(248, 250, 252, 0.76);
  font-size: 0.95rem;
  line-height: 1.8;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer__resume {
  justify-self: start;
  margin-top: 0.5rem;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  padding: 0.75rem 1rem;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.site-footer__social-link i {
  font-size: 1rem;
}

.site-footer__form-wrap {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
}

.site-footer__form {
  display: grid;
  gap: 1rem;
}

.site-footer__form-grid {
  display: grid;
  gap: 1rem;
}

.site-footer__field {
  display: grid;
  gap: 0.45rem;
}

.site-footer__field label {
  color: rgba(248, 250, 252, 0.84);
  font-size: 0.8rem;
}

.site-footer__field input,
.site-footer__field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
}

.site-footer__field textarea {
  resize: vertical;
  min-height: 8rem;
}

.site-footer__field input::placeholder,
.site-footer__field textarea::placeholder {
  color: rgba(248, 250, 252, 0.42);
}

.site-footer__field input:focus,
.site-footer__field textarea:focus {
  outline: 0;
  border-color: rgba(255, 255, 255, 0.32);
}

.site-footer__field input:disabled,
.site-footer__field textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.site-footer__error {
  color: #fca5a5;
  font-size: 0.78rem;
}

.site-footer__notice {
  margin: 0;
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.78rem;
  line-height: 1.7;
}

.site-footer__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 9.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #020617;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-footer__submit-text {
  line-height: 1;
}

.site-footer__submit-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.site-footer__submit-icon--spinner {
  border: 2px solid rgba(2, 6, 23, 0.2);
  border-top-color: #020617;
  border-radius: 999px;
  animation: site-footer-submit-spin 700ms linear infinite;
}

.site-footer__submit-icon--check {
  position: relative;
}

.site-footer__submit-icon--check::before {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.05rem;
  width: 0.32rem;
  height: 0.62rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.site-footer__submit.is-sending {
  cursor: wait;
}

.site-footer__submit.is-sent {
  background: #dcfce7;
  border-color: rgba(34, 197, 94, 0.28);
  color: #166534;
}

.site-footer__submit:hover,
.site-footer__submit:focus-visible {
  transform: translateY(-1px);
  opacity: 0.92;
}

.site-footer__submit:disabled {
  opacity: 1;
}

.site-footer__messages {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.site-footer__message {
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
}

.site-footer__message--success {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.site-footer__message--error {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.site-footer__form.is-disabled {
  opacity: 0.92;
}

.site-footer__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0 1.75rem;
  color: rgba(248, 250, 252, 0.58);
  font-size: 0.8rem;
}

@keyframes site-footer-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 992px) {
  .site-footer {
    position: sticky;
    bottom: 0;
  }

  .site-footer__shell {
    padding: 4rem 0;
    transform: translateY(2.5rem);
    transition: transform 280ms ease;
  }

  .site-footer.is-revealed .site-footer__shell {
    transform: translateY(0);
  }

  .site-footer__shell {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem);
    align-items: start;
  }

  .site-footer__form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__field--full {
    grid-column: 1 / -1;
  }
}
