/* ENV-I universal footer: same grid on every page, continuous with Explore. */
#footer.env-footer {
  background: #000 !important;
  color: #fff;
  padding: 0 !important;
  margin: 0;
}
#footer.env-footer .env-footer__container {
  width: 100%;
  max-width: none;
  padding: clamp(32px, 3vw, 56px) clamp(20px, 3vw, 60px) clamp(24px, 2vw, 36px);
}
#footer.env-footer .env-footer__invitation {
  margin-bottom: clamp(20px, 2vw, 32px);
}
/* The two upper groups share a vertical midpoint, not a top edge. */
#footer.env-footer .env-footer__art-col,
#footer.env-footer .env-footer__copy-col {
  display: flex;
  align-items: center;
  min-width: 0;
}
#footer.env-footer .env-footer__art-col { justify-content: center; }
#footer.env-footer .env-footer__artwork {
  display: block;
  width: min(100%, 630px);
  height: auto;
  object-fit: contain;
}
/* Both upper-right and lower-right share one right-hand alignment axis. */
#footer.env-footer .env-footer__copy-col {
  justify-content: flex-end;
  padding-right: 64px;
}
#footer.env-footer .env-footer__message {
  width: min(100%, 610px);
  margin: 0;
  text-align: left;
}
#footer.env-footer .env-footer__statement {
  margin: 0 0 16px;
  color: #f2f2f2;
  font-size: clamp(1.05rem, 1.2vw, 1.3rem);
  font-weight: 400;
  line-height: 1.45;
}
#footer.env-footer .env-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 175px;
  padding: 11px 16px;
  border: 1px solid #777;
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s;
}
#footer.env-footer .env-footer__cta:is(:hover,:focus-visible) {
  color: #000;
  background: #fff;
  border-color: #fff;
}
#footer.env-footer .env-footer__brand-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Header-identical logo/descriptor geometry: same 220px grid and 9px tracking. */
#footer.env-footer .env-footer__brand {
  display: grid;
  grid-template-columns: 220px;
  grid-template-rows: 52px auto;
  justify-items: center;
  align-content: center;
  gap: 2px;
  width: 220px;
  max-width: 100%;
  text-decoration: none;
  color: #fff;
}
#footer.env-footer .env-footer__brand > img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: 52px;
  object-fit: contain;
}
#footer.env-footer .env-footer__descriptor {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .108em;
  color: #fff !important;
}
#footer.env-footer .env-footer__descriptor span,
#footer.env-footer .env-footer__descriptor .forest,
#footer.env-footer .env-footer__descriptor .ocean { color: #fff !important; }
#footer.env-footer .env-footer__meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  padding-right: 64px;
}
#footer.env-footer .env-footer__social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}
#footer.env-footer .env-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
  transition: color .25s;
}
#footer.env-footer .env-footer__social a:is(:hover,:focus-visible) {
  color: var(--glacier-teal,#7dead5);
}
#footer.env-footer .env-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 20px;
  color: #aaa;
  text-align: right;
}
#footer.env-footer .env-footer__legal small,
#footer.env-footer .env-footer__legal a { font-size: .7rem; line-height: 1.5; }
#footer.env-footer .env-footer__legal a { color: #aaa; text-decoration: none; }
#footer.env-footer .env-footer__legal a:is(:hover,:focus-visible) { color: #fff; }
@media (max-width: 991.98px) {
  #footer.env-footer .env-footer__invitation { row-gap: 24px; }
  #footer.env-footer .env-footer__artwork { width: min(100%, 500px); }
  #footer.env-footer .env-footer__copy-col { justify-content: center; padding-right: 0; }
  #footer.env-footer .env-footer__message { text-align: center; }
  #footer.env-footer .env-footer__base { row-gap: 22px; }
  #footer.env-footer .env-footer__meta-col { align-items: center; padding-right: 0; }
  #footer.env-footer .env-footer__social,
  #footer.env-footer .env-footer__legal { justify-content: center; text-align: center; }
  #footer.env-footer .env-footer__legal > a { white-space: nowrap; }
}
@media (max-width: 575.98px) {
  #footer.env-footer .env-footer__container { padding: 30px 20px 26px; }
  #footer.env-footer .env-footer__artwork { width: min(100%, 340px); }
  #footer.env-footer .env-footer__brand { grid-template-columns: 190px; grid-template-rows: 45px auto; width: 190px; }
  #footer.env-footer .env-footer__brand > img { width: 190px; height: 45px; }
  #footer.env-footer .env-footer__descriptor { font-size: 7.77px; }
  #footer.env-footer .env-footer__legal { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #footer.env-footer a { transition: none; }
}

/* Index-only closing invitation; the universal footer grid stays unchanged. */
#footer.env-footer .env-footer__awards { margin-bottom: clamp(38px, 5vw, 76px); padding-block: clamp(18px, 3vw, 46px); }
#footer.env-footer .env-footer__awards-title { width: min(100%, 630px); margin: 0; color: #fff; font-size: clamp(2.1rem, 4vw, 4.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; }
#footer.env-footer .env-footer__awards-title span { color: var(--ocean-teal, #08c4b2); }
@media (max-width: 991.98px) {
  #footer.env-footer .env-footer__awards-title { text-align: center; }
  #footer.env-footer .env-footer__awards .env-footer__copy-col { padding-inline: calc(var(--bs-gutter-x) * .5); }
}
/* Index only: gradient ends before the shared black utility footer. */
body.index-page #footer.env-footer .env-footer__container { position: relative; isolation: isolate; overflow: hidden; }
body.index-page #footer.env-footer .env-footer__awards { position: relative; }
body.index-page #footer.env-footer .env-footer__awards::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: calc(-1 * clamp(32px, 3vw, 56px));
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--electric-blue-600, #1C44DC), var(--electric-blue-900, #061F79) 48%, #000 100%);
}
@media (max-width: 575.98px) {
  body.index-page #footer.env-footer .env-footer__awards::before { top: -30px; }
}

/* Index-only awards alignment and CTA contrast; shared footer base is untouched. */
body.index-page #footer.env-footer .env-footer__awards .env-footer__cta { border-color: rgba(255,255,255,.65); }
body.index-page #footer.env-footer .env-footer__awards .env-footer__cta:is(:hover,:focus-visible) { border-color: #fff; }
@media (min-width: 992px) {
  body.index-page #footer.env-footer .env-footer__awards .env-footer__art-col { justify-content: flex-start; }
  body.index-page #footer.env-footer .env-footer__awards .env-footer__copy-col { padding-right: calc(var(--bs-gutter-x) * .5); }
}

/* Shared mobile legal layout: copyright always spans the full row. */
@media (max-width: 991.98px) {
  #footer.env-footer .env-footer__legal { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 8px 20px; max-width: 100%; }
  #footer.env-footer .env-footer__legal > small { grid-column: 1 / -1; justify-self: center; max-width: 90vw; white-space: normal; }
  #footer.env-footer .env-footer__legal > a { justify-self: center; }
}

/* Allow the docked Explore panel to open above the closing invitation. */
body.index-page[data-env-adaptive] #footer.env-footer { z-index: 2; overflow: visible; margin-top:-1px; border-top:0; }
body.index-page[data-env-adaptive] #footer.env-footer .env-footer__container { overflow: visible; }
body.index-page[data-env-adaptive] #footer.env-footer .env-footer__awards::before {
  left: calc(-1 * var(--bs-gutter-x, 1.5rem) * .5);
  right: calc(-1 * var(--bs-gutter-x, 1.5rem) * .5);
  width: auto;
  transform: none;
  /* The full-width gradient is painted on the footer itself below. */
  background: none;
}
body.index-page[data-env-adaptive] #footer.env-footer {
  background: linear-gradient(to bottom, var(--electric-blue-900,#061F79) 0, #000 clamp(105px, 13vw, 190px), #000 100%) !important;
}


/* Overlap the shared color boundary by one CSS pixel to avoid a raster seam. */
body.index-page[data-env-adaptive] > main.environment-index-main {padding-bottom:0;margin-bottom:0;}
