/* footer-six.css: a classic footer. The big name, line and links sit on the left;
   the six AI looks stand small on the right, their studio wall dissolving into the
   page ground so the film reads as part of the footer, not a separate band. */
.site-footer.has-six {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  column-gap: clamp(24px, 4vw, 64px);
  padding: clamp(72px, 12vh, 140px) var(--gutter) 28px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.site-footer.has-six .footer-body { grid-column: 1; grid-row: 1; display: grid; gap: 18px; align-self: end; position: relative; z-index: 2; }
.site-footer.has-six .footer-mark { display: block; width: 100%; max-width: 220px; height: 90px; margin-bottom: 8px; }
.site-footer.has-six .footer-name { font-size: clamp(64px, 10vw, 176px); line-height: .9; letter-spacing: -.04em; white-space: nowrap; }
.site-footer.has-six nav { margin: 6px 0 18px; }
.site-footer.has-six .foot-ai, .site-footer.has-six .foot-copy { margin: 0; }

/* the six, on the right, faded into the ground on every side but the floor */
.six-stage { grid-column: 2; grid-row: 1; position: relative; align-self: end; aspect-ratio: 21 / 9; margin-right: calc(-1 * var(--gutter)); margin-bottom: -10px; }
.six-stage video, .six-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.six-stage img { z-index: 0; }
.six-stage::before { content: ""; position: absolute; z-index: 0; left: 4%; right: 2%; bottom: 2%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(242,244,247,.07), transparent); pointer-events: none; }
.six-stage video { z-index: 1; opacity: 0; transition: opacity 900ms var(--ease-soft, ease-out); }
.six-stage.is-playing video { opacity: 1; }
.six-stage.is-playing img { opacity: 0; transition: opacity 400ms 500ms; }
/* the caption sits under the six, in the label voice (SPEC.md B.9), so it never covers the men or the style tag */
.site-footer.has-six > .six-caption { grid-column: 2; grid-row: 2; position: relative; z-index: 2; margin: 4px 0 0; text-align: center;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; color: var(--ink-faint); }
/* off screen the bob and the pan rest, so the page can idle (smoothness audit, item 9) */
.six-stage.is-off .six-logos li, .six-stage.is-off video, .six-stage.is-off img { animation-play-state: paused; }

.six-logos { position: absolute; inset: 0; z-index: 3; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.six-logos li { position: absolute; left: var(--x); top: 0; width: clamp(22px, 2.3vw, 38px); aspect-ratio: 1; transform: translate(-50%, -115%); color: #f2f4f7; opacity: 0; transition: opacity 700ms var(--ease-soft, ease-out), transform 700ms var(--ease-soft, ease-out); filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.six-logos li svg { display: block; width: 100%; height: 100%; }
.six-stage.is-in .six-logos li { opacity: 1; transform: translate(-50%, -100%); animation: six-bob 4.8s ease-in-out infinite; }
.six-stage.is-in .six-logos li:nth-child(2) { transition-delay: 90ms; animation-delay: -.8s; }
.six-stage.is-in .six-logos li:nth-child(3) { transition-delay: 180ms; animation-delay: -1.6s; }
.six-stage.is-in .six-logos li:nth-child(4) { transition-delay: 270ms; animation-delay: -2.4s; }
.six-stage.is-in .six-logos li:nth-child(5) { transition-delay: 360ms; animation-delay: -3.2s; }
.six-stage.is-in .six-logos li:nth-child(6) { transition-delay: 450ms; animation-delay: -4s; }
@keyframes six-bob { 0%, 100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, -112%); } }

@media (max-width: 1100px) {
  .site-footer.has-six { grid-template-columns: 1fr; row-gap: 8px; }
  .site-footer.has-six .footer-body { grid-row: 1; }
  .six-stage { grid-column: 1; grid-row: 2; margin: 0 calc(-1 * var(--gutter)) 0; }
  .site-footer.has-six > .six-caption { grid-column: 1; grid-row: 3; margin-top: 14px; }
}
@media (max-width: 820px) {
  .site-footer.has-six .footer-mark { height: 72px; }
  .site-footer.has-six .footer-name { font-size: clamp(56px, 17vw, 96px); }
  .six-stage { aspect-ratio: auto; height: 46vh; overflow: hidden; }
  .six-stage video, .six-stage img { width: 260%; right: auto; animation: six-pan 26s ease-in-out infinite alternate;
 }
  .six-logos { display: none; }
}
@keyframes six-pan { from { transform: translateX(0); } to { transform: translateX(-61.5%); } }
@media (prefers-reduced-motion: reduce) {
  .six-stage video { display: none; }
  .six-stage video, .six-stage img, .six-stage.is-in .six-logos li { animation: none; }
}
