.footer {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(880px 360px at 0% 0%, rgba(45, 135, 177, 0.2), transparent 55%),
    radial-gradient(520px 240px at 92% 8%, rgba(185, 95, 41, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(9, 22, 36, 0.97), rgba(6, 17, 28, 0.99));
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 82%);
}

.footer-topline {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.footer-topline-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1.3rem 0;
}

.footer-topline-copywrap {
  display: grid;
  gap: 0.35rem;
}

.footer-topline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-topline-title {
  color: #fff7ef;
  font-weight: 700;
  margin: 0 0 0.35rem;
  max-width: 48ch;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
}

.footer-topline-copy {
  color: rgba(248, 242, 234, 0.72);
  margin: 0;
  font-size: 0.94rem;
  max-width: 70ch;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr repeat(4, minmax(150px, 1fr));
  padding: 2.8rem 0 2.3rem;
  position: relative;
  z-index: 1;
}

.footer-company {
  display: grid;
  gap: 0.8rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-2) 100%);
  color: #fff7ef;
  font-weight: 800;
  box-shadow: 0 18px 26px rgba(0, 0, 0, 0.16);
}

.footer-name {
  color: #fff7ef;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.footer-muted {
  color: var(--muted);
  margin: 0;
}

.footer-blurb {
  color: rgba(248, 242, 234, 0.72);
  font-size: 0.93rem;
  max-width: 42ch;
}

.footer-presence {
  color: rgba(248, 242, 234, 0.72);
  font-size: 0.88rem;
  max-width: 42ch;
}

.footer h3 {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer a {
  display: block;
  color: rgba(247, 249, 255, 0.9);
  margin: 0.28rem 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer a:hover {
  color: #fffaf2;
  transform: translateX(2px);
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 1.5rem;
  color: rgba(248, 242, 234, 0.66);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.footer-meta-sep {
  opacity: 0.7;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-topline-title {
    max-width: none;
  }
}
