/* ═══════════════════════════════════════════════════════════════
   §12 FILM HERO + FOOTER RESTORE — build 2.2.8
   Spec: #571 art direction (TASK-1793094352373-W2SGH) — mandate 1:
   full-bleed active video hero ("the film opens before the words");
   mandate 2: footer grid CSS restore (loss confirmed on live 27 Oct:
   zero .mkx-footer rules in deployed style.css — the whole block was
   dropped in the 2.2.x rewrite, not just the grid).
   Tokens/palette = Territory 2. No gradients. Reduced-motion/no-JS = final state.
   ═══════════════════════════════════════════════════════════════ */

/* — 12.1 FULL-BLEED FILM HERO — */
.mkx-filmhero { padding: 160px 0 96px; align-items: flex-end; }
.mkx-filmhero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.mkx-filmhero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: saturate(0.9);
}
.mkx-filmhero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(22,22,43,0.92) 0%,
    rgba(22,22,43,0.78) 24%,
    rgba(22,22,43,0.34) 42%,
    rgba(22,22,43,0.06) 68%,
    rgba(22,22,43,0.25) 100%
  );
}
/* copy plane: bottom-left, above scrim */
.mkx-filmhero__content { position: relative; z-index: 2; padding-bottom: 88px; }
.mkx-filmhero .mkx-wow-hero__h1 { max-width: 14ch; }
/* constellation = separate slow plane behind content, over the film */
.mkx-wow-hero__plane {
  position: absolute; inset: -8% 0; z-index: 1;
  pointer-events: none; will-change: transform; opacity: 0.55;
}
/* Ep2 chip: bottom-right (formerly the framed-card badge) */
.mkx-filmhero__chip {
  position: absolute; right: 24px; bottom: 24px; z-index: 2;
  font-family: var(--mkx-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mkx-paper); text-decoration: none;
  background: rgba(22,22,43,0.72); border: 1px solid var(--mkx-dark-rule);
  padding: 8px 12px; border-radius: 3px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.mkx-filmhero__chip:hover { background: rgba(22,22,43,0.9); border-color: var(--mkx-teal); }

@media (max-width: 859px) {
  .mkx-filmhero { padding: 140px 0 72px; align-items: flex-end; }
  .mkx-filmhero__content { padding-bottom: 96px; }
  /* chip above content on small screens */
  .mkx-filmhero__chip { right: 16px; bottom: 16px; }
  .mkx-wow-hero__plane { opacity: 0.35; }
}

/* — 12.2 FOOTER RESTORE (the one true regression) — */
.mkx-footer { background: var(--mkx-ink); color: var(--mkx-paper); border-top: 1px solid var(--mkx-dark-rule); padding: 72px 0 40px; }
.mkx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
.mkx-footer-brand img { width: 180px; height: auto; opacity: 0.95; }
.mkx-footer-tagline { margin: 16px 0 0; color: rgba(245,242,234,0.75); font-size: 0.95rem; }
.mkx-footer-col h4 {
  font-family: var(--mkx-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mkx-teal); margin: 0 0 16px;
}
.mkx-footer-col ul { list-style: none; margin: 0; padding: 0; }
.mkx-footer-col li { margin: 0 0 10px; }
.mkx-footer-col a, .mkx-footer-event-line a {
  color: rgba(245,242,234,0.85); text-decoration: none;
  border-bottom: 1px solid rgba(245,242,234,0.25);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.mkx-footer-col a:hover, .mkx-footer-event-line a:hover { color: var(--mkx-teal); border-bottom-color: var(--mkx-teal); }
.mkx-footer-bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--mkx-dark-rule); padding-top: 24px;
  font-family: var(--mkx-mono); font-size: 0.72rem;
  color: rgba(245,242,234,0.65); letter-spacing: 0.03em;
}
.mkx-footer-bottom .mkx-star { color: var(--mkx-amber); }
.mkx-footer-event-line { font-size: 0.8rem; color: rgba(245,242,234,0.75); }
@media (max-width: 899px) {
  .mkx-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .mkx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .mkx-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* — 12.3 FOOTER STAGGERED RISE (html.sig-js gated; no-JS = visible) — */
html.sig-js .mkx-footer-grid { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.sig-js .mkx-footer.is-in .mkx-footer-grid { opacity: 1; transform: none; }
html.sig-js .mkx-footer-col:nth-child(2), html.sig-js .mkx-footer-col:nth-child(3), html.sig-js .mkx-footer-col:nth-child(4) {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.sig-js .mkx-footer.is-in .mkx-footer-col:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
html.sig-js .mkx-footer.is-in .mkx-footer-col:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
html.sig-js .mkx-footer.is-in .mkx-footer-col:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html.sig-js .mkx-footer-grid, html.sig-js .mkx-footer-col { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mkx-filmhero__video { display: none; } /* poster fallback */
  .mkx-filmhero {
    background: var(--mkx-ink);
    background-image: url('../media/ep2-hero-loop.jpg');
    background-size: cover; background-position: center;
  }
  .mkx-filmhero__bg::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* poster as static backdrop when film hidden */
  .mkx-filmhero__bg::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--mkx-hero-poster, none);
    background-size: cover; background-position: center; opacity: 0.45;
  }
}
@media (max-width: 859px) {
  html.sig-js .mkx-footer-grid, html.sig-js .mkx-footer-col { opacity: 1 !important; transform: none !important; transition: none !important; }
}