/* Monochrome engraved panorama, with real navigation above the flight scene. */
.mars-footer {
  --mars-ink: #ededeb;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(618px, calc(34.5vw + 176px), 865px);
  background: #090909;
  color: var(--mars-ink);
}
.mars-footer__scene { position: absolute; inset: 0; pointer-events: none; filter: grayscale(1); }
.mars-footer__landscape, .mars-footer__flight, .mars-footer__effects {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}
.mars-footer__landscape { object-fit: cover; object-position: 50% 100%; }
.mars-footer__starship { filter: brightness(.82) contrast(.96); }
.mars-footer__starship--bounce { filter: brightness(1.45) contrast(.96); }
.mars-footer__scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #090909cc, #09090980 24%, #09090900 47%, #09090900 78%, #09090970);
}
.mars-footer__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: inherit;
  padding: clamp(36px, 4vw, 64px) clamp(24px, 4.5vw, 86px) 24px;
}
.mars-footer__top { display: grid; grid-template-columns: 1.1fr 2.9fr; gap: clamp(32px, 5vw, 96px); }
.mars-footer__label {
  margin: 0 0 16px;
  color: #b1b1ae;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1.5;
}
.mars-footer__intro h2 {
  margin: 0;
  max-width: 8ch;
  color: var(--mars-ink);
  font-size: clamp(30px, 3vw, 50px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.mars-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.mars-footer__nav > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.mars-footer__nav a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 34px;
  padding: 5px 0;
  color: #d7d7d3;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.mars-footer__nav a:hover { color: #fff; transform: translateX(3px); }
.mars-footer :is(a, button):focus-visible { outline: 1px solid #eee; outline-offset: 5px; }
.mars-footer__pause {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 24px;
  padding: 5px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ffffff40;
  border-radius: 0;
  color: #bbb;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  cursor: pointer;
}
.mars-footer__pause[hidden] { display: none; }
.mars-footer__pause:hover { color: #fff; }
.mars-footer__space { flex: 1; min-height: 160px; }
.mars-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #ffffff35;
  color: #d9d9d6;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  line-height: 1.5;
}
.mars-footer__bottom a { display: inline-flex; align-items: center; gap: 12px; min-height: 32px; color: inherit; text-decoration: none; }
.mars-footer__bottom a:hover { color: #fff; }
.mars-footer__location { letter-spacing: .13em; text-transform: uppercase; }
.mars-footer__settlement-lights { animation: mars-habitat-lights 5s ease-in-out infinite alternate; }
.mars-footer[data-animation-paused="true"] .mars-footer__settlement-lights { animation-play-state: paused; }
@keyframes mars-habitat-lights { from { opacity: .4; } to { opacity: .8; } }
@media (max-width: 900px) {
  .mars-footer { min-height: 700px; }
  .mars-footer__top { grid-template-columns: 1fr; gap: 30px; }
  .mars-footer__intro { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
  .mars-footer__intro > .mars-footer__label { grid-column: 1 / -1; margin-bottom: 0; }
  .mars-footer__intro h2 { max-width: none; }
  .mars-footer__pause { margin-top: 0; }
}
@media (max-width: 600px) {
  .mars-footer { min-height: 0; }
  .mars-footer__content { padding: 36px 24px 20px; }
  .mars-footer__scene { top: auto; height: 420px; bottom: 72px; }
  .mars-footer__landscape, .mars-footer__flight, .mars-footer__effects { width: calc(100% + 180px); left: -180px; }
  .mars-footer__scene::after { background: linear-gradient(180deg, #090909 0%, #09090900 28%, #09090900 80%, #090909 100%); }
  .mars-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
  .mars-footer__nav a { min-height: 44px; font-size: 13px; }
  .mars-footer__nav > div:last-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; grid-column: 1 / -1; }
  .mars-footer__nav > div:last-child h3 { grid-column: 1 / -1; }
  .mars-footer__label { font-size: 9px; margin-bottom: 12px; }
  .mars-footer__space { min-height: 244px; }
  .mars-footer__bottom { flex-wrap: wrap; gap: 6px 16px; font-size: 9px; }
  .mars-footer__bottom a { width: 100%; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .mars-footer__settlement-lights { animation: none; }
  .mars-footer * { transition: none !important; }
}
