/* ── FOOTER ROOT ──────────────────────────────────────────── */
.footer-root {
  position: relative;
  overflow: hidden;
  padding: 80px 64px 40px;
  border-top: 1px solid var(--sand-border);
}

/* Radial gradient background */
.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(125% 125% at 50% 10%, rgba(15,15,17,0.4) 50%, rgba(60,162,250,0.08) 100%);
  pointer-events: none;
}

/* All direct children sit above the bg */
.footer-root > *:not(.footer-bg) {
  position: relative;
  z-index: 1;
}

/* Brand logo */
.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  align-self: flex-start;   /* stop flex stretch from forcing full column width */
  margin-bottom: 4px;
}

/* ── CONTENT GRID ─────────────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

/* ── COLUMN ───────────────────────────────────────────────── */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-heading {
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
}

/* Brand column */
.footer-brand-tagline {
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--sand);
  letter-spacing: 0.04em;
}

.footer-brand-desc {
  font-family: Inter, sans-serif;
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
  max-width: 300px;
}

/* Navigation column */
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Contact column */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

.footer-social-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

/* ── TEXT SCRAMBLE ────────────────────────────────────────── */
.footer-scramble {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
}

.footer-scramble-chars {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

.footer-scramble-char {
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-scramble-char.active {
  color: var(--sand);
  transform: scaleY(1.1);
}

.footer-scramble-line {
  position: relative;
  display: block;
  height: 1px;
  width: 100%;
  overflow: hidden;
  margin-top: 2px;
}

.footer-scramble-line-base {
  position: absolute;
  inset: 0;
  background: rgba(200, 184, 149, 0.15);
}

.footer-scramble-line-fill {
  position: absolute;
  inset: 0;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-scramble-line-fill.visible {
  transform: scaleX(1);
}

.footer-scramble:hover .footer-scramble-chars {
  color: rgba(200, 184, 149, 0.75);
}

/* ── BOTTOM BAR ───────────────────────────────────────────── */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--sand-border);
}

.footer-copy {
  font-family: Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(110, 110, 110, 0.5);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-root {
    padding: 60px 24px 32px;
  }

  .footer-wordmark {
    height: 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
