/* Quiet signature interaction; the original outlined letterforms are preserved. */
.site-footer__brand-reveal {
  position: relative;
  isolation: isolate;
  --signature-light: #c0d1fa;
}

.site-footer__brand-reveal .site-footer__wordmark {
  height: auto;
  min-height: 0;
  pointer-events: auto;
  -webkit-mask-image: none;
  mask-image: none;
}

.site-footer__brand-button {
  display: flex;
  width: 100%;
  padding: 0;
  align-items: flex-start;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.site-footer__brand-button:focus-visible {
  outline: 1px solid var(--signature-light);
  outline-offset: -5px;
}

.site-footer__signature {
  display: block;
  flex: 0 0 auto;
  width: 92%;
  height: auto;
  overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 31%, rgba(0,0,0,.48) 70%, rgba(0,0,0,.08) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 31%, rgba(0,0,0,.48) 70%, rgba(0,0,0,.08) 100%);
}

.site-footer__letter path {
  fill: rgba(192, 209, 250, 0);
  stroke: #858585;
  stroke-width: 1.1px;
  transition: fill 650ms ease, stroke 650ms ease;
  pointer-events: none;
}

.site-footer__letter-hit {
  fill: transparent;
  pointer-events: all;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__letter:hover path {
    fill: var(--signature-light);
    stroke: var(--signature-light);
    transition-duration: 220ms;
  }
}

.site-footer__brand-button:focus-visible .site-footer__letter path {
  stroke: var(--signature-light);
  fill: rgba(192, 209, 250, .1);
}

.site-footer__archive {
  display: grid;
  grid-template-rows: 0fr;
  min-width: 0;
  opacity: 1;
  pointer-events: none;
  transition: grid-template-rows 560ms cubic-bezier(.22, 1, .36, 1);
}

.site-footer__brand-reveal.is-revealed .site-footer__archive {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.site-footer__archive-inner {
  min-height: 0;
  overflow: hidden;
}

.site-footer__archive-rail {
  display: flex;
  align-items: center;
  padding-block: clamp(1.25rem, 2.2vw, 2.25rem);
  border-top: 1px solid #202020;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.site-footer__archive-rail.is-dragging { cursor: grabbing; }

.site-footer__archive-track {
  display: flex;
  width: max-content;
  align-items: center;
  flex: 0 0 auto;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.site-footer__archive-set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(2.5rem, 5.8vw, 6rem);
  padding-right: clamp(2.5rem, 5.8vw, 6rem);
}

.site-footer__archive-logo {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: clamp(6.75rem, 10.5vw, 10rem);
  height: clamp(4rem, 7vw, 7rem);
  min-width: 0;
  min-height: 0;
}

.site-footer__archive-logo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  opacity: .7;
  filter: grayscale(1) brightness(.94);
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

@media (max-width: 640px) {
  .site-footer__signature { width: 96%; }
  .site-footer__archive-rail { padding-block: 1.25rem; }
  .site-footer__archive-set { gap: 2rem; padding-right: 2rem; }
  .site-footer__archive-logo { width: 6.6rem; height: 4.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__letter path,
  .site-footer__archive { transition: none; }
}

/* Leave the revealed artwork clear of the floating page-scroll control. */
body.is-footer-archive-viewing .section-jump-control {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* A short left-to-right fade, independent of the continuous carousel motion. */
.site-footer__archive-logo {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 260ms ease, transform 350ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--logo-exit-delay, 0ms);
}

.site-footer__brand-reveal.is-logos-visible .site-footer__archive-logo {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-duration: 600ms, 700ms;
  transition-delay: var(--logo-enter-delay, 0ms);
}

.site-cursor__footer-symbol {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 1;
  transform: translate(-50%, -50%) scale(.94);
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1), filter 350ms ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer-eye {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10040;
    display: block;
    width: 50px;
    height: 30px;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 400ms ease, visibility 0s linear 400ms;
    will-change: transform;
  }
  .site-footer-eye.is-in-view {
    visibility: visible;
    opacity: 1;
    transition: opacity 400ms ease, visibility 0s;
  }
  .site-footer-eye > span {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: #171717;
    box-shadow: none;
    -webkit-mask: url("assets/navigation/footer-cursor-eye.svg") center / 100% 100% no-repeat;
    mask: url("assets/navigation/footer-cursor-eye.svg") center / 100% 100% no-repeat;
    transition: background-color 350ms ease;
  }
  body.is-footer-brand-hover .site-footer-eye > span {
    background: #fff;
  }
  body.is-footer-brand-hover .site-footer-eye .site-cursor__footer-symbol {
    filter: brightness(0);
    transform: translate(-50%, -50%) scale(1);
  }
  body.is-footer-brand-pressed .site-footer-eye > span {
    background: #171717;
    transition-duration: 130ms;
  }
  body.is-footer-brand-pressed .site-footer-eye .site-cursor__footer-symbol {
    filter: brightness(0) invert(1);
    transform: translate(-50%, -50%) scale(.72);
    transition-duration: 130ms;
  }
  /* The original round mouse cursor, if enabled elsewhere, must not
     overlap the travelling eye while interacting with the signature. */
  body:is(.is-footer-brand-hover, .is-footer-brand-returning) .site-cursor {
    opacity: 0 !important;
  }
  body.is-footer-brand-hover .site-footer__brand-button,
  body.is-footer-brand-hover .site-footer__brand-button * {
    cursor: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .site-footer-eye { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__archive-logo,
  .site-footer__brand-reveal.is-logos-visible .site-footer__archive-logo,
  .site-footer-eye,
  .site-footer-eye > span,
  .site-footer-eye .site-cursor__footer-symbol {
    transition: none;
  }
}
