/* Site footer. Scoped to .abft so the rest of the theme is unchanged. */
.abft {
  --abft-night: #07262b;
  --abft-leaf: #071f1b;
  --abft-gold: #f0b252;
  --abft-sand: #f7d68e;
  --abft-display: var(--ab-font-display, "AnekBangla", sans-serif);
  --abft-body: var(--ab-font-body, "AnekBangla", sans-serif);
  --abft-mono: ui-monospace, "DM Mono", Menlo, Consolas, monospace;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
  font-family: var(--abft-body);
  font-size: 1rem;
  line-height: 1.55;
}

.abft-scene-wrap {
  position: relative;
  z-index: 0;
  height: clamp(240px, 34vw, 900px);
  overflow: hidden;
  background: transparent;
}

.abft-scene-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 46px;
  background: linear-gradient(180deg, transparent, var(--abft-leaf));
  pointer-events: none;
}

.abft-scene,
.abft-stamp {
  display: block;
  box-sizing: content-box;
  max-width: none;
}

.abft-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.abft-fall {
  stroke-dasharray: 10 14;
  animation: abft-fall 0.9s linear infinite;
}

.abft-fall-slow {
  animation-duration: 1.2s;
}

@keyframes abft-fall {
  to {
    stroke-dashoffset: -24;
  }
}

.abft-flow {
  animation: abft-flow 2.6s linear infinite;
}

.abft-flow-slow {
  animation-duration: 3.4s;
}

@keyframes abft-flow {
  to {
    stroke-dashoffset: -36;
  }
}

.abft-shim line {
  animation: abft-shim 2.8s ease-in-out infinite;
}

.abft-shim line:nth-child(2) {
  animation-delay: -0.5s;
}

.abft-shim line:nth-child(3) {
  animation-delay: -1s;
}

.abft-shim line:nth-child(4) {
  animation-delay: -1.5s;
}

.abft-shim line:nth-child(5) {
  animation-delay: -2s;
}

.abft-shim line:nth-child(6) {
  animation-delay: -2.4s;
}

@keyframes abft-shim {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.9;
  }
}

.abft-tent {
  animation: abft-flick 2.4s infinite;
}

@keyframes abft-flick {
  0%,
  100% {
    opacity: 1;
  }
  40% {
    opacity: 0.7;
  }
  60% {
    opacity: 0.95;
  }
}

.abft-ground {
  position: relative;
  z-index: 3;
  background: var(--abft-leaf);
  padding: clamp(1.25rem, 3vw, 1.85rem) 0 0;
}

.abft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2.5rem;
  align-items: center;
}

.abft-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1.6rem 2.5rem;
}

.abft-cols h4 {
  margin: 0 0 0.6rem;
  color: var(--abft-sand);
  font-family: var(--abft-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
}

.abft-cols ul,
.abft-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.abft-cols li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.abft-cols li::before {
  content: none;
}

.abft-cols a {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 0.2rem 0;
  color: rgba(233, 244, 239, 0.85);
  text-decoration: none;
  transition: transform 0.25s;
}

.abft-cols a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--abft-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.abft-cols a:hover,
.abft-cols a:focus,
.abft-cols a:focus-visible {
  color: #fff;
}

.abft-cols a:hover {
  transform: translateX(4px);
}

.abft-cols a:hover::after,
.abft-cols a:focus-visible::after {
  transform: scaleX(1);
}

.abft a:focus-visible {
  outline: 2px solid var(--abft-sand);
  outline-offset: 3px;
}

.abft-stamp {
  width: clamp(110px, 12vw, 150px);
  height: auto;
  aspect-ratio: 1;
  margin-right: 2.75rem;
}

.abft-stamp text {
  font-family: var(--abft-mono);
}

.abft-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: abft-spin 32s linear infinite;
}

@keyframes abft-spin {
  to {
    transform: rotate(360deg);
  }
}

.abft-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  padding: 1.1rem 4.75rem 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(233, 244, 239, 0.6);
  font-size: 0.88rem;
}

.abft-legal p {
  margin: 0;
  flex: 1 1 16rem;
}

.abft-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.abft-social li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.abft-social li::before {
  content: none;
}

.abft-social a {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: var(--abft-sand);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.abft-social a:hover,
.abft-social a:focus-visible {
  color: #fff;
  background: rgba(240, 178, 82, 0.16);
}

.abft-social svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
}

@media (max-width: 900px) {
  .abft-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .abft-cols > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .abft-stamp {
    display: none;
  }

  .abft-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .abft-cols {
    grid-template-columns: 1fr;
  }

  .abft-cols > :last-child {
    grid-column: auto;
  }

  .abft-legal {
    padding-right: 4.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abft,
  .abft * {
    animation: none !important;
  }

  .abft-cols a:hover {
    transform: none;
  }
}
