#footer-stitch {
  width: calc(100% - (var(--stitch-page-gutter, 24px) * 2));
  max-width: var(--site-max-width, 1180px);
  margin: var(--stitch-section-space, 72px) auto var(--stitch-page-gutter, 24px);
  color: var(--inverse-text-color);
}

.stitch-footer-shell {
  overflow: hidden;
  border-radius: var(--section-radius, 16px);
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent-color) 18%, transparent), transparent 36%),
    linear-gradient(135deg, var(--dark-background-color) 0%, var(--dark-background-color) 56%, var(--dark-background-color) 100%);
  padding: clamp(28px, 5vw, 52px);
}

.stitch-footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.stitch-footer-cta h2 {
  max-width: 12ch;
  margin: 0 0 26px;
  color: var(--inverse-text-color);
  font-size: var(--theme-title-font-size, 48px);
  font-weight: var(--theme-title-font-weight, 700);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stitch-footer-cta a {
  display: inline-flex;
  align-items: center;
  min-width: min(100%, 220px);
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--inverse-text-color) 24%, transparent);
  color: color-mix(in srgb, var(--inverse-text-color) 72%, transparent);
  font-size: var(--theme-body-font-size, 16px);
  text-decoration: none;
}

.stitch-footer-cta a::after {
  content: "↗";
  margin-left: auto;
  color: var(--inverse-text-color);
}

.stitch-footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 44px);
}

.stitch-footer-contact-grid div,
.stitch-footer-column {
  min-width: 0;
}

.stitch-footer-contact-grid span,
.stitch-footer-column h3 {
  display: block;
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--inverse-text-color) 54%, transparent);
  font-size: var(--theme-body-font-size, 16px);
  font-weight: var(--theme-button-font-weight, 700);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.stitch-footer-contact-grid p,
.stitch-footer-contact-grid a {
  margin: 0;
  color: color-mix(in srgb, var(--inverse-text-color) 82%, transparent);
  font-size: var(--theme-body-font-size, 16px);
  line-height: 1.55;
  text-decoration: none;
}

.stitch-footer-divider {
  height: 1px;
  margin: clamp(34px, 6vw, 64px) 0;
  background: color-mix(in srgb, var(--inverse-text-color) 12%, transparent);
}

.stitch-footer-links {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) repeat(3, minmax(120px, 0.8fr));
  gap: clamp(22px, 4vw, 46px);
}

.stitch-footer-brand .cs-logo {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--inverse-text-color);
  font-size: var(--theme-subtitle-font-size, 20px);
  font-weight: var(--theme-title-font-weight, 700);
  text-decoration: none;
}

.cs-logo-img {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 42px;
  object-fit: contain;
}

.stitch-footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.cs-link {
  color: color-mix(in srgb, var(--inverse-text-color) 78%, transparent);
  font-size: var(--theme-body-font-size, 16px);
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.cs-link:hover {
  color: var(--inverse-text-color);
}

.cs-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-social-link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--inverse-text-color) 16%, transparent);
  border-radius: 999px;
  color: var(--inverse-text-color);
  text-decoration: none;
}

.cs-social-link:hover {
  background: color-mix(in srgb, var(--inverse-text-color) 10%, transparent);
}

.stitch-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(34px, 6vw, 64px);
  color: color-mix(in srgb, var(--inverse-text-color) 60%, transparent);
  font-size: var(--theme-body-font-size, 16px);
}

.stitch-footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.stitch-footer-bottom a:hover {
  color: var(--inverse-text-color);
}

@media (max-width: 900px) {
  .stitch-footer-top,
  .stitch-footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #footer-stitch {
    width: calc(100% - 20px);
  }

  .stitch-footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .stitch-footer-bottom {
    flex-direction: column;
  }
}
