/* All closing CONTACT banners share one background and motion owner. */
@property --contact-pan-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@layer contact-backdrop-motion {
  [data-contact-parallax] {
    --contact-pan-range: 40px;
    view-timeline-name: --contact-backdrop-view;
    view-timeline-axis: block;
  }
  [data-contact-parallax] .contact-backdrop picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  [data-contact-parallax] .contact-backdrop img {
    position: relative !important;
    top: calc(-1 * var(--contact-pan-range)) !important;
    display: block;
    width: 100%;
    height: calc(100% + 2 * var(--contact-pan-range)) !important;
    object-fit: cover;
    object-position: center 70% !important;
    transform: translate3d(0,var(--contact-pan-y),0) !important;
    will-change: transform !important;
  }
  [data-contact-parallax-mode="timeline"] .contact-backdrop img {
    animation: contact-backdrop-pan linear both;
    animation-duration: auto;
    animation-timeline: --contact-backdrop-view;
    animation-range: entry 0% exit 100%;
  }
  @media (max-width: 680px) {
    [data-contact-parallax] {
      --contact-pan-range: 24px;
      /* Keep the keyboard and hand below the centered copy and buttons. */
      padding-bottom: 200px !important;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    [data-contact-parallax] .contact-backdrop img {
      top: 0 !important;
      height: 100% !important;
      transform: none !important;
      animation: none !important;
      will-change: auto !important;
    }
  }
}
@keyframes contact-backdrop-pan {
  from { --contact-pan-y: calc(-1 * var(--contact-pan-range)); }
  to { --contact-pan-y: var(--contact-pan-range); }
}

/* Restrained brand accents stay separate from the photographic lighting. */
[data-contact-parallax] .contact-pixels { position: absolute; inset: 0; pointer-events: none; }
[data-contact-parallax] .contact-pixels > i {
  position: absolute;
  display: block;
  background: #c9002e;
  opacity: .65;
  transform: translate3d(0,var(--contact-pixel-y,0px),0);
}
@media (prefers-reduced-motion: no-preference) {
  [data-contact-parallax] .contact-pixels > i { will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  [data-contact-parallax] .contact-pixels > i { transform: none; }
}
[data-contact-parallax] .contact-pixels > i:nth-child(1) { left: 9%; top: 20%; width: 6px; height: 6px; }
[data-contact-parallax] .contact-pixels > i:nth-child(2) { left: 16%; top: 73%; width: 4px; height: 4px; }
[data-contact-parallax] .contact-pixels > i:nth-child(3) { right: 9%; top: 30%; width: 8px; height: 8px; }
[data-contact-parallax] .contact-pixels > i:nth-child(4) { right: 13%; top: 81%; width: 5px; height: 5px; }
[data-contact-parallax] .contact-pixels > i:nth-child(5) { left: 19%; top: 39%; width: 5px; height: 5px; }
[data-contact-parallax] .contact-pixels > i:nth-child(6) { right: 6%; top: 62%; width: 4px; height: 4px; }
[data-contact-parallax] .contact-pixels > i:nth-child(7) { left: 24%; top: 11%; width: 4px; height: 4px; }
[data-contact-parallax] .contact-pixels > i:nth-child(8) { right: 22%; top: 88%; width: 6px; height: 6px; }
[data-contact-parallax] .contact-pixels > i:nth-child(9) { left: 5%; top: 51%; width: 12px; height: 12px; }
[data-contact-parallax] .contact-pixels > i:nth-child(10) { right: 18%; top: 14%; width: 16px; height: 16px; opacity: .55; }
[data-contact-parallax] .contact-pixels > i:nth-child(11) { left: 7%; top: 87%; width: 10px; height: 10px; }
[data-contact-parallax] .contact-pixels > i:nth-child(12) { right: 3%; top: 48%; width: 7px; height: 7px; }

/* Compact banners keep the three upper accents and five lower accents. */
@media (max-width: 767px) {
  [data-contact-parallax] .contact-pixels > i:nth-child(n+9) { display: none; }
}

/* Architecture panels use native scroll timelines on supported mobile browsers. */
@layer mobile-panel-parallax {
  @media (max-width:767px) and (prefers-reduced-motion:no-preference) {
    @supports (animation-timeline:view()) and (animation-range:entry 0% exit 100%) {
      [data-mobile-parallax] {
        view-timeline-name: --site-mobile-panel-view;
        view-timeline-axis: block;
      }
      [data-mobile-parallax]::before {
        inset: -48px 0 !important;
        animation-name: site-mobile-panel-pan !important;
        animation-duration: auto !important;
        animation-timing-function: linear !important;
        animation-fill-mode: both !important;
        animation-timeline: --site-mobile-panel-view !important;
        animation-range: entry 0% exit 100% !important;
      }
    }
  }
  @media (max-width:767px) and (prefers-reduced-motion:reduce) {
    [data-mobile-parallax]::before {
      inset: 0 !important;
      animation: none !important;
      transform: none !important;
      will-change: auto !important;
    }
  }
}
@keyframes site-mobile-panel-pan {
  from { transform: translate3d(0,-40px,0); }
  to { transform: translate3d(0,40px,0); }
}
