/* =========================================================
   FOOTER: flight-path divider + credit + social buttons
   ========================================================= */
.footer { max-width: var(--max); margin: 40px auto 0; padding: 0 var(--gutter) 40px; font-family: var(--inter); }

/* divider: a dotted route between two airport codes, plane gliding along it */
.footer__divider { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.footer__airport {
  flex: none; font: 600 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; color: #8b867f;
  padding: 6px 9px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px rgba(15, 15, 15, .08);
}
.footer__route {
  position: relative; flex: 1; height: 24px;
  background: radial-gradient(circle, rgba(28, 42, 79, .35) 1.1px, transparent 1.4px) 0 50% / 10px 4px repeat-x;
}
.footer__route::before, .footer__route::after {          /* fade the dots in and out at the ends */
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none;
}
.footer__route::before { left: 0;  background: linear-gradient(90deg, #F5F3F1, transparent); }
.footer__route::after  { right: 0; background: linear-gradient(-90deg, #F5F3F1, transparent); }
.footer__plane {
  position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  fill: #1c2a4f; z-index: 1;
  animation: footer-cruise 14s ease-in-out infinite;
}
@keyframes footer-cruise {
  0%   { left: 6%;  transform: translateY(0); }
  50%  { left: 94%; transform: translateY(-2px); }
  50.01% { transform: scaleX(-1); }
  100% { left: 6%;  transform: scaleX(-1) translateY(0); }
}

.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer__credit { margin: 0; font-size: 14.5px; line-height: 1.5; color: #57534e; max-width: 70ch; }
.footer__credit strong { font-weight: 600; color: #0f0f0f; }

/* social buttons */
.footer__social { display: flex; gap: 10px; flex: none; }
.social {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px 10px 12px; border-radius: 999px; text-decoration: none;
  font: 500 14px/1 var(--inter); color: #0f0f0f; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 15, 15, .09), 0 1px 2px rgba(15, 15, 15, .05);
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .25s ease;
}
.social svg { width: 20px; height: 20px; flex: none; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.social--linkedin svg { color: #0A66C2; }
.social--instagram svg { color: #E1306C; }
.social:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 24px -12px rgba(15, 15, 15, .45); }
.social:hover svg { transform: rotate(-8deg) scale(1.08); }
.social--linkedin:hover { background: #0A66C2; }
.social--linkedin:hover svg { color: #fff; }
.social--linkedin:hover svg path { stroke: #0A66C2; }
.social--instagram:hover { background: linear-gradient(45deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4); }
.social--instagram:hover svg { color: #fff; }
.social:focus-visible { outline: 2px solid #1c2a4f; outline-offset: 3px; }

@media (max-width: 760px) {
  .footer__row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .footer__plane { animation: none; left: 50%; } }

/* hidden with the rest of the page until the passport is opened */
html.pp-locked .footer { opacity: 0; visibility: hidden; }
html.pp-opening .footer { animation: ui-in .8s cubic-bezier(.2, .7, .2, 1) 1.9s both; }
