/* ============================================
   Noor — Footer component (premium editorial band)
   Background always uses var(--accent-current)
   ============================================ */

/* --- Footer shell --- */

.site-footer {
  position: relative;
  width: 100vw;
  overflow: hidden;
}

/* --- Surface: accent band, static 280px --- */

.site-footer__surface {
  position: relative;
  background: var(--work-color, var(--accent-current));
  height: 222px;
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  display: block;
}

/* Drag-handle hint — subtle pill at top-center */
.site-footer__surface::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.35s ease, width 0.35s ease;
}

.site-footer__surface:hover::before {
  background: rgba(255, 255, 255, 0.5);
  width: 48px;
}

.site-footer__surface:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: -2px;
}

/* --- Absolute layer spans the full surface --- */

.site-footer__inner {
  position: absolute;
  inset: 0;
}

/* --- Left meta — viewport edge, pinned to bottom --- */

.site-footer__left {
  position: absolute;
  bottom: var(--edge-margin);
  left: var(--edge-margin);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__meta-sep {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.site-footer__meta--link {
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.site-footer__meta--link:hover {
  color: color-mix(in srgb, var(--accent-current) 55%, black);
  /* Matches overlay link hover */
}

/* --- Right meta — viewport edge, pinned to bottom --- */

.site-footer__right {
  position: absolute;
  bottom: var(--edge-margin);
  right: var(--edge-margin);
}

/* --- Center brand --- */

.site-footer__center {
  position: absolute;
  top: clamp(45px, 10vh, 65px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

/* --- Meta labels --- */

.site-footer__meta {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  display: inline-block;
}

/* --- Brand mark --- */

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  will-change: transform;
}

.site-footer__mark {
  display: block;
  width: 32px;
  height: auto;
}

.site-footer__mark img {
  width: 100%;
  height: auto;
  display: block;
}


@media (max-width: 600px) {
  .site-footer__surface {
    height: auto;
    padding-block: var(--space-xl) var(--space-lg);
  }

  .site-footer__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .site-footer__left,
  .site-footer__center,
  .site-footer__right {
    position: static;
    transform: none;
    text-align: center;
  }

  .site-footer__center {
    order: -1;
  }
}

/* Reveal initial state (JS adds .is-pre-reveal before GSAP animates in) */

.site-footer__left.is-pre-reveal,
.site-footer__center.is-pre-reveal,
.site-footer__right.is-pre-reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-footer__surface::before {
    transition: none;
  }
}