/* Paper: Grounded desktop 335-0 and mobile 364-0. */
.grounded-footer {
  --grounded-paper: #f5f3ea;
  position: relative;
  isolation: isolate;
  color: var(--ink, #191713);
  background: var(--grounded-paper);
  font-family: var(--font, "Neue Montreal", Arial, sans-serif);
}

.grounded-footer *,
.grounded-footer *::before,
.grounded-footer *::after {
  box-sizing: border-box;
}

.grounded-footer :where(h2, h3, p, ul) {
  margin: 0;
}

.grounded-content {
  position: relative;
  z-index: 1;
  width: var(--page-width, min(90vw, 1728px));
  margin-inline: auto;
  padding-top: 64px;
}

.grounded-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.grounded-brand {
  grid-column: span 6;
  min-width: 0;
}

.grounded-identity {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  margin-bottom: 40px;
}

.grounded-mark {
  display: block;
  width: 48px;
  height: 46px;
  flex: 0 0 48px;
}

.grounded-identity-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.grounded-footer .grounded-eyebrow {
  color: var(--secondary, #56514a);
  font: 400 12px/16px var(--mono, "Plex Mono", monospace);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.grounded-identity .grounded-eyebrow {
  color: var(--ink, #191713);
}

.grounded-footer .grounded-tagline {
  color: var(--secondary, #56514a);
  font-size: 16px;
  line-height: 24px;
}

.grounded-conclusion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.grounded-footer .grounded-heading {
  color: var(--ink, #191713);
  font-family: inherit;
  font-size: clamp(40px, 3.889vw, 56px);
  font-weight: 400;
  line-height: 1.07143;
  letter-spacing: -0.04em;
}

.grounded-footer .grounded-description {
  max-width: 526px;
  color: var(--body, #3a3834);
  font-size: 18px;
  line-height: 28px;
}

.grounded-navigation {
  grid-column: span 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  padding-top: 16px;
}

.grounded-link-group {
  min-width: 0;
}

.grounded-links {
  padding: 0;
  margin-top: 16px;
  list-style: none;
}

.grounded-links li {
  margin: 0;
  padding: 0;
}

.grounded-links :is(a, button) {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.grounded-arrow {
  white-space: nowrap;
}

.grounded-links :is(a, button):hover,
.grounded-return:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.grounded-footer :is(a, button):focus-visible {
  outline: 2px solid var(--ink, #191713);
  outline-offset: 4px;
}

.grounded-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 12px;
  border-top: 1px solid rgb(25 23 19 / 18%);
  color: var(--body, #3a3834);
  font-size: 14px;
  line-height: 20px;
}

.grounded-utility p {
  color: inherit;
}

.grounded-return {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

/* Overlap only the decorative image: its opaque fade protects the utility row. */
.grounded-earth {
  position: relative;
  z-index: 0;
  height: 488px;
  margin-top: -137px;
  overflow: hidden;
  pointer-events: none;
}

.grounded-earth img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
}

.grounded-earth::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    180deg,
    #f5f3ea 0%,
    rgb(245 243 234 / 96%) 20%,
    rgb(245 243 234 / 60%) 40%,
    rgb(245 243 234 / 12%) 58%,
    rgb(245 243 234 / 0%) 74%
  );
}

@media (max-width: 1023px) {
  .grounded-content {
    width: var(--page-width);
    padding-top: 48px;
  }

  .grounded-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .grounded-brand,
  .grounded-navigation {
    grid-column: 1;
  }

  .grounded-identity {
    margin-bottom: 32px;
  }

  .grounded-footer .grounded-heading {
    font-size: 48px;
    line-height: 52px;
  }

  .grounded-navigation {
    padding-top: 0;
  }

  .grounded-utility {
    min-height: 64px;
    margin-top: 32px;
    padding-top: 16px;
  }

  .grounded-earth {
    height: 400px;
    margin-top: 0;
  }
}

@media (max-width: 719px) {
  .grounded-content {
    width: var(--page-width);
  }

  .grounded-conclusion {
    gap: 20px;
  }

  .grounded-footer .grounded-heading {
    font-size: clamp(32px, 8.718vw, 34px);
    line-height: 38px;
  }

  .grounded-footer .grounded-description {
    line-height: 26px;
  }

  .grounded-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "explore company" "explore legal";
    gap: 24px;
  }

  .grounded-explore {
    grid-area: explore;
  }

  .grounded-company {
    grid-area: company;
  }

  .grounded-legal {
    grid-area: legal;
  }

  .grounded-links {
    margin-top: 12px;
  }

  .grounded-links :is(a, button) {
    font-size: 18px;
  }

  .grounded-explore li:last-child a {
    line-height: 22px;
  }

  .grounded-earth {
    height: 336px;
  }

  .grounded-earth img {
    object-position: 50% 60%;
  }
}

/* The renderer uses the existing SVG outline; keep a visible static fallback. */
.grounded-rotating-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  margin-inline: -16px;
}
