/* Canonical homepage footer.
 * Keep the image band, then transition into the white Footer 2 panel used by
 * the approved reference: curved shoulders, oversized black wordmark, flat links,
 * centered social row and quiet legal metadata. */
html body.project-home > footer.project-footer.project-footer {
  position: relative !important;
  isolation: isolate !important;
  min-height: 720px !important;
  overflow: hidden !important;
  padding: 0 0 18px !important;
  background-color: #fff !important;
  background-image: none !important;
  color: #111 !important;
}

/* Crop into the photographic part of the source so the previous flat gray area
 * on the right never appears in the footer band. */
html body.project-home > footer.project-footer.project-footer::before {
  position: absolute !important;
  z-index: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 250px !important;
  background-color: #fff !important;
  background-image: url("../../../assets/home/design-dna-interior.jpg") !important;
  background-repeat: no-repeat !important;
  background-position: left 50% !important;
  background-size: 160% auto !important;
  content: "" !important;
  pointer-events: none !important;
}

html body.project-home > footer.project-footer.project-footer::after {
  display: none !important;
  content: none !important;
}

/* Main white panel. */
html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  width: calc(100% - 64px) !important;
  max-width: none !important;
  grid-template-columns: repeat(6, max-content) !important;
  justify-content: center !important;
  align-content: center !important;
  align-items: center !important;
  gap: 24px 30px !important;
  margin: 188px 32px 0 !important;
  padding: clamp(74px, 8vw, 118px) 48px clamp(54px, 6vw, 78px) !important;
  box-sizing: border-box !important;
  background: #fff !important;
  color: #111 !important;
  text-align: center !important;
}

/* Raised white shoulders form the same notch as the approved reference. */
html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid::before,
html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid::after {
  position: absolute !important;
  z-index: -1 !important;
  top: -88px !important;
  width: clamp(210px, 19vw, 340px) !important;
  height: 90px !important;
  background: #fff !important;
  content: "" !important;
  pointer-events: none !important;
}

html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid::before {
  left: 0 !important;
  border-radius: 0 42px 0 0 !important;
}

html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid::after {
  right: 0 !important;
  border-radius: 42px 0 0 0 !important;
}

html body.project-home > footer.project-footer.project-footer .footer-brand {
  display: grid !important;
  grid-column: 1 / -1 !important;
  justify-items: center !important;
  margin: 0 0 clamp(18px, 2vw, 28px) !important;
}

html body.project-home > footer.project-footer.project-footer .footer-brand strong {
  margin: 0 !important;
  color: #0b0b0b !important;
  font-size: clamp(82px, 11.5vw, 176px) !important;
  font-weight: 650 !important;
  letter-spacing: -.07em !important;
  line-height: .82 !important;
  text-shadow: none !important;
}

html body.project-home > footer.project-footer.project-footer .footer-brand p {
  max-width: 680px !important;
  margin: clamp(30px, 3vw, 44px) auto 0 !important;
  color: #111 !important;
  font-size: clamp(17px, 1.55vw, 24px) !important;
  font-weight: 450 !important;
  line-height: 1.35 !important;
}

/* Flatten the three existing nav groups into one clean text row. */
html body.project-home > footer.project-footer.project-footer .footer-grid nav {
  display: contents !important;
}

html body.project-home > footer.project-footer.project-footer .footer-grid nav strong {
  display: none !important;
}

html body.project-home > footer.project-footer.project-footer .footer-grid nav a {
  position: relative !important;
  display: inline-flex !important;
  min-height: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 0 4px !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111 !important;
  font-size: clamp(12px, 1vw, 15px) !important;
  font-weight: 500 !important;
  letter-spacing: .01em !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html body.project-home > footer.project-footer.project-footer .footer-grid nav a:hover {
    border-bottom-color: #111 !important;
    background: transparent !important;
    color: #111 !important;
    transform: none !important;
  }
}

/* Social row + legal row, using the existing footer-bottom DOM. */
html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  width: calc(100% - 64px) !important;
  max-width: none !important;
  min-height: 154px !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 32px !important;
  margin: 0 32px !important;
  padding: 94px 2px 34px !important;
  border-top: 0 !important;
  box-sizing: border-box !important;
  background: #fff !important;
  color: #4b4b4b !important;
  font-size: 0 !important;
  font-weight: 450 !important;
  letter-spacing: .01em !important;
}

html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom::before,
html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom > .footer-github,
html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom > span:last-child::before {
  position: absolute !important;
  top: 22px !important;
  line-height: 1 !important;
}

html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom::before {
  left: calc(50% - 138px) !important;
  color: #111 !important;
  content: "𝕏" !important;
  font-size: 27px !important;
  font-weight: 500 !important;
}

html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom > .footer-github {
  left: 50% !important;
  color: #171717 !important;
  text-decoration: none;
  font-size: 15px !important;
  font-weight: 650 !important;
  letter-spacing: -.01em !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important;
}

html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom > span:last-child::before {
  left: calc(50% + 116px) !important;
  padding: 7px 11px !important;
  border-radius: 8px !important;
  background: #ff2f55 !important;
  color: #fff !important;
  content: "RED" !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  letter-spacing: .02em !important;
}

html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom::after {
  position: absolute !important;
  top: 70px !important;
  right: 0 !important;
  left: 0 !important;
  height: 1px !important;
  background: #e6e6e6 !important;
  content: "" !important;
}

/* Keep the spans static so their absolute pseudo-elements use footer-bottom as the containing block. */
html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom > span:first-child,
html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom > span:last-child {
  position: static !important;
  font-size: 0 !important;
}

html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom > span:first-child::after {
  color: #4b4b4b !important;
  content: "© 2026 ONDesign · All rights reserved." !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom > span:last-child::after {
  display: block !important;
  max-width: 300px !important;
  color: #4b4b4b !important;
  content: "DESIGN SYSTEMS FOR AI CODING\A OPEN-SOURCE DESIGN WORKFLOW\A EST. 2026" !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  text-align: right !important;
  white-space: pre-line !important;
}

@media (max-width: 900px) {
  html body.project-home > footer.project-footer.project-footer {
    min-height: 620px !important;
  }

  html body.project-home > footer.project-footer.project-footer::before {
    height: 205px !important;
    background-size: 170% auto !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid {
    width: calc(100% - 32px) !important;
    grid-template-columns: repeat(3, max-content) !important;
    gap: 18px 24px !important;
    margin: 154px 16px 0 !important;
    padding: 78px 24px 64px !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid::before,
  html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid::after {
    top: -62px !important;
    width: clamp(120px, 24vw, 210px) !important;
    height: 64px !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid::before {
    border-radius: 0 30px 0 0 !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid::after {
    border-radius: 30px 0 0 0 !important;
  }

  html body.project-home > footer.project-footer.project-footer .footer-brand strong {
    font-size: clamp(68px, 16vw, 118px) !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom {
    width: calc(100% - 32px) !important;
    margin-inline: 16px !important;
  }
}

@media (max-width: 560px) {
  html body.project-home > footer.project-footer.project-footer {
    min-height: 540px !important;
  }

  html body.project-home > footer.project-footer.project-footer::before {
    height: 170px !important;
    background-size: 185% auto !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid {
    grid-template-columns: repeat(2, max-content) !important;
    gap: 15px 20px !important;
    margin-top: 132px !important;
    padding: 64px 18px 54px !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid::before,
  html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid::after {
    top: -46px !important;
    width: 32vw !important;
    height: 48px !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid::before {
    border-radius: 0 24px 0 0 !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-grid::after {
    border-radius: 24px 0 0 0 !important;
  }

  html body.project-home > footer.project-footer.project-footer .footer-brand strong {
    font-size: clamp(58px, 20vw, 86px) !important;
  }

  html body.project-home > footer.project-footer.project-footer .footer-brand p {
    margin-top: 24px !important;
    font-size: 14px !important;
  }

  html body.project-home > footer.project-footer.project-footer .footer-grid nav a {
    font-size: 11px !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom {
    min-height: 180px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 94px 18px 28px !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom::before {
    left: calc(50% - 105px) !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom > span:last-child::before {
    left: calc(50% + 80px) !important;
  }

  html body.project-home > footer.project-footer.project-footer > .project-container.footer-bottom > span:last-child::after {
    text-align: left !important;
  }
}
