/* 12-footer-skyline.css — Site-wide ambient Charlotte skyline & botanical signal horizon.
   Scoped prefix: snft | Zero text, zero buttons, full-bleed responsive down to 320px. */

.snft-root {
  --snft-bg: #0A2E1A;
  --snft-gold: #E8A423;
  --snft-gold-hi: #F7D27A;
  --snft-gold-lo: #8B5E0E;
  --snft-sage: #4FB878;

  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(76px, 7.6vw, 108px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  background-color: var(--snft-bg);
  line-height: 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  contain: layout paint style;
}

/* Subtle top botanical sheen bridging both dark CTA sections and light pages */
.snft-root::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(79, 184, 120, 0.08) 0%,
    rgba(79, 184, 120, 0.32) 32%,
    rgba(232, 164, 35, 0.34) 50%,
    rgba(79, 184, 120, 0.32) 68%,
    rgba(79, 184, 120, 0.08) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Crisp 2px brushed-gold horizon hairline separating the skyline from the white footer */
.snft-root::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--snft-gold-lo) 0%,
    var(--snft-gold) 22%,
    var(--snft-gold-hi) 50%,
    var(--snft-gold) 78%,
    var(--snft-gold-lo) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.snft-svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Gentle staggered starlight & architectural window twinkle */
.snft-star {
  opacity: 0.55;
  animation: snft-star-twinkle 6.4s ease-in-out infinite;
}
.snft-s1 { animation-duration: 5.8s; animation-delay: -0.6s; }
.snft-s2 { animation-duration: 7.2s; animation-delay: -2.4s; }
.snft-s3 { animation-duration: 6.4s; animation-delay: -4.1s; }
.snft-s4 { animation-duration: 8.1s; animation-delay: -1.5s; }

.snft-win {
  opacity: 0.72;
  animation: snft-win-shimmer 7.6s ease-in-out infinite;
}
.snft-w1 { animation-duration: 6.8s; animation-delay: -0.4s; }
.snft-w2 { animation-duration: 8.2s; animation-delay: -2.1s; }
.snft-w3 { animation-duration: 7.4s; animation-delay: -3.7s; }
.snft-w4 { animation-duration: 9.1s; animation-delay: -5.2s; }
.snft-w5 { animation-duration: 6.3s; animation-delay: -1.6s; }
.snft-w6 { animation-duration: 8.8s; animation-delay: -4.6s; }

/* Spire crown beacon gentle breathing */
.snft-node {
  opacity: 0.88;
  animation: snft-beacon-breathe 4.8s ease-in-out infinite;
}
.snft-b1 { animation-duration: 4.6s; animation-delay: -0.5s; }
.snft-b2 { animation-duration: 5.4s; animation-delay: -2.1s; }
.snft-b3 { animation-duration: 6.0s; animation-delay: -3.6s; }

.snft-pulse {
  will-change: transform, opacity;
}

@keyframes snft-star-twinkle {
  0%, 100% { opacity: 0.28; }
  45% { opacity: 0.86; }
  70% { opacity: 0.44; }
}

@keyframes snft-win-shimmer {
  0%, 100% { opacity: 0.34; }
  38% { opacity: 0.94; }
  62% { opacity: 0.82; }
  82% { opacity: 0.46; }
}

@keyframes snft-beacon-breathe {
  0%, 100% { opacity: 0.62; }
  50% { opacity: 1; }
}

/* Global Pause contract (WCAG 2.2.2) */
html.snam-paused .snft-root *,
html.snam-paused .snft-root *::before,
html.snam-paused .snft-root *::after {
  animation-play-state: paused !important;
}

/* Reduced motion contract: disable all looping animations, keep resting composition crisp & visible */
@media (prefers-reduced-motion: reduce) {
  .snft-root,
  .snft-root *,
  .snft-root *::before,
  .snft-root *::after {
    animation: none !important;
    transition: none !important;
  }
  .snft-root {
    opacity: 1;
  }
  .snft-root .snft-star {
    opacity: 0.62;
  }
  .snft-root .snft-win {
    opacity: 0.78;
  }
  .snft-root .snft-node,
  .snft-root .snft-pulse {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .snft-root {
    height: 76px;
  }
}

@media print {
  .snft-root {
    height: 72px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
