/* footer.css: the "Noche andina" footer, rebuilt with depth in a second pass on 2026-10-27 (photo band, floating glass cards,
   live Cusco time). Every rule starts with .ft so nothing leaks into the pages. */

@keyframes ft-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(111 207 151 / 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgb(111 207 151 / 0);
  }
}
@keyframes ft-drift {
  from {
    translate: 0 -7%;
  }
  to {
    translate: 0 7%;
  }
}
.ft {
  /* Same width as the header bar. */
  --wrap: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  overflow: clip;
  background: var(--night-deep);
  color: rgb(255 255 255 / 0.74);
  font-size: 0.95rem;
}

/* Closing band: the photo drifts slower than the page and melts into the night at the bottom. */
.ft .ft-band {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(480px, 46vw, 640px);
  padding: clamp(80px, 9vw, 130px) 0 clamp(130px, 12vw, 180px);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.ft .ft-band picture img {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 50% 40%;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ft .ft-band picture img {
      animation: ft-drift linear both;
      animation-timeline: view();
    }
  }
}
.ft .ft-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(8 18 26 / 0.42), rgb(8 18 26 / 0.36) 45%, var(--night-deep) 100%),
  radial-gradient(ellipse at 50% 45%, rgb(8 18 26 / 0.12), rgb(8 18 26 / 0.5) 75%);
}
.ft .ft-band-in {
  display: grid;
  justify-items: center;
  text-align: center;
}
.ft .ft-tag {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  font: 700 0.74rem/1 var(--body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.ft .ft-tag::before,
.ft .ft-tag::after {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
}
.ft .ft-title {
  max-width: 17ch;
  margin: 0;
  font: 300 clamp(2.3rem, 5.4vw, 4.8rem) / 1.02 var(--display);
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgb(8 18 26 / 0.45);
}
.ft .ft-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}
.ft .ft-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 0.76rem/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.ft .ft-pill.mint {
  background: var(--accent);
  color: var(--night);
  box-shadow: 0 16px 40px -14px rgb(111 207 151 / 0.7);
}
.ft .ft-pill.mint:hover {
  background: #fff;
}
.ft .ft-pill.ghost {
  border-color: rgb(255 255 255 / 0.6);
  background: rgb(8 18 26 / 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
}
.ft .ft-pill.ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--night);
}
.ft .ft-pill svg {
  transition: transform 0.4s var(--ease);
}
.ft .ft-pill:hover svg:last-child:not(:first-child) {
  transform: translateX(4px);
}

/* Three glass cards floating over the bottom edge of the photo. */
.ft .ft-reach {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: calc(-1 * clamp(84px, 8vw, 110px));
}
.ft .ft-card {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 22px 24px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.03)), rgb(14 28 36 / 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 34px 60px -32px rgb(0 0 0 / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.14);
  color: #fff;
  text-decoration: none;
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.ft a.ft-card:hover,
.ft a.ft-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgb(111 207 151 / 0.55);
}
.ft .ft-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border: 1px solid rgb(111 207 151 / 0.3);
  border-radius: 15px;
  background: rgb(111 207 151 / 0.12);
  color: var(--accent);
  transition: background 0.4s, color 0.4s;
}
.ft a.ft-card:hover .ft-ico {
  background: var(--accent);
  color: var(--night);
}
.ft .ft-card small {
  display: block;
  margin-bottom: 7px;
  font: 700 0.68rem/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.6);
}
.ft .ft-card b {
  display: block;
  font: 400 1.18rem/1.2 var(--display);
  /* The email is one unbreakable word: it may wrap rather than push the page sideways. */
  overflow-wrap: anywhere;
}
.ft .ft-now {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgb(255 255 255 / 0.7);
}
.ft .ft-now[hidden] {
  display: none;
}
.ft .ft-now i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.35);
}
.ft .ft-now.open i {
  background: var(--accent);
  animation: ft-pulse 2.4s infinite;
}
.ft .ft-now time {
  font-variant-numeric: tabular-nums;
  color: #fff;
}

/* The brand on the left, a large globe in the middle and the company pages on the right (user, 2026-10-27).
   --globe is the side of the square the globe draws itself in; the sphere fills about 79 % of it. */
.ft .top {
  --globe: clamp(420px, 40vw, 620px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--globe) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(32px, 4vw, 56px);
}
.ft .top > .col {
  justify-self: end;
  gap: 0;
  min-width: 12rem;
}
.ft .brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  font: 500 1.4rem/1 var(--display);
  white-space: nowrap;
}
.ft .about {
  max-width: 34ch;
  margin: 22px 0 18px;
  line-height: 1.65;
}
.ft .place {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.ft .place svg {
  color: var(--accent);
}
.ft .col {
  display: grid;
  align-content: start;
  gap: 36px;
}
.ft .col h2 {
  margin-bottom: 18px;
  font: 700 0.72rem/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.ft .col h2 a {
  text-decoration: none;
}
.ft .col ul {
  display: grid;
  gap: 10px;
}
/* Links draw a thin line under themselves on hover. */
.ft .col a,
.ft .claim-book {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.25s, background-size 0.45s var(--ease);
}
.ft .col a:hover,
.ft .claim-book:hover {
  color: var(--accent);
  background-size: 100% 1px;
}

.ft .bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.85rem;
}
.ft .bottom p {
  margin: 0;
}
.ft .closing {
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid rgb(255 255 255 / 0.25);
}
.ft .bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.ft .claim-book {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
}
.ft .claim-book img {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.ft .ft-up {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 18px 0 14px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.ft .ft-up svg {
  transition: transform 0.4s var(--ease);
}
.ft .ft-up:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.ft .ft-up:hover svg {
  transform: translateY(-3px);
}

/* Interactive globe, on every screen. The library loads when the footer comes near the viewport (public/js/footer-globe.js). */
.ft .footer-earth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--globe);
  height: var(--globe);
  overflow: hidden;
  isolation: isolate;
}
/* Resting planet shown while the library downloads. A pseudo element survives globe.gl emptying the container. */
.ft .footer-earth::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 79%;
  height: 79%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 38% 34%, #1d4a60, #12303f 55%, #0a1f29);
  box-shadow: 0 0 calc(var(--globe) * 0.12) calc(var(--globe) * 0.02) rgb(143 198 219 / 0.24);
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.ft .footer-earth > * {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.ft .footer-earth.is-globe-ready > * {
  opacity: 1;
}
.ft .footer-earth.is-globe-ready::before {
  opacity: 0;
}
.ft .footer-earth .footer-globe__sphere {
  position: relative;
  z-index: 1;
  display: block;
  outline: none;
}
.ft .footer-earth .footer-globe__stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.ft .footer-earth .footer-globe__planes {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.ft .footer-earth .footer-globe__trails {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ft .footer-earth .footer-globe__plane {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.55));
}
.ft .footer-earth .footer-globe__plane svg {
  display: block;
}

/* Narrow screens: brand, globe and company pages stacked and centred. */
@media (max-width: 1000px) {
  .ft .ft-reach {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    gap: 12px;
  }
  .ft .top {
    --globe: min(92vw, 520px);
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 4px;
    padding-top: clamp(48px, 10vw, 72px);
    text-align: center;
  }
  .ft .about {
    margin-inline: auto;
  }
  .ft .top > .col {
    justify-self: center;
    min-width: 0;
  }
  .ft .top > .col ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
  }
}

/* Phones */
@media (max-width: 600px) {
  .ft .ft-band {
    min-height: 0;
    padding: 84px 0 150px;
  }
  .ft .ft-tag {
    gap: 12px;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }
  .ft .ft-tag::before,
  .ft .ft-tag::after {
    width: 22px;
  }
  .ft .ft-title {
    font-size: 2.3rem;
  }
  .ft .ft-actions {
    flex-direction: column;
    align-self: stretch;
    width: 100%;
  }
  .ft .ft-pill {
    justify-content: center;
  }
  .ft .ft-reach {
    margin-top: -112px;
    gap: 10px;
  }
  .ft .ft-card {
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
  }
  .ft .ft-ico {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }
  .ft .ft-card b {
    font-size: 1.08rem;
  }
  .ft .col ul {
    font-size: 0.95rem;
  }
  .ft .bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .ft .closing {
    display: block;
    margin: 6px 0 0;
    padding: 0;
    border: 0;
  }
}
