/* v0.1.9 premium contact, footer and transformation presentation */

@media (min-width: 1181px) {
  .xa-contact-actions {
    width: auto;
    align-self: start;
    gap: 5px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 14px 40px rgba(31, 55, 68, .13), inset 0 1px rgba(255, 255, 255, .85);
    backdrop-filter: blur(13px) saturate(1.15);
    -webkit-backdrop-filter: blur(13px) saturate(1.15);
  }

  .xa-contact-actions > a {
    gap: 10px;
    padding: 2px 12px 2px 2px;
    color: var(--xa-navy-dark);
  }

  .xa-contact-actions > a + a {
    padding-left: 12px;
    border-left: 1px solid rgba(46, 76, 95, .16);
  }

  .xa-contact-actions > a > span:last-child {
    color: #657782;
    font-family: var(--xa-body);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .xa-contact-actions strong {
    margin-top: 5px;
    color: var(--xa-navy-dark);
    font-family: var(--xa-head);
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: .015em;
    line-height: 1;
    text-transform: none;
  }

  .xa-contact-actions .xa-contact-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    background: linear-gradient(145deg, #fff, #f2f5f6);
    box-shadow: 0 7px 18px rgba(31, 55, 68, .11);
  }

  .xa-contact-actions .xa-contact-icon svg {
    width: 21px;
  }
}

/* Tonal masked emblem gives the footer depth without a flat transparent image. */
.xa-footer__wash {
  right: -95px;
  top: -88px;
  width: clamp(360px, 31vw, 560px);
  height: clamp(285px, 24vw, 440px);
  background: linear-gradient(145deg, rgba(255, 255, 255, .2), rgba(124, 20, 18, .13) 72%);
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 18px 24px rgba(124, 20, 18, .08));
  -webkit-mask: url('../images/logo-reversed.webp') center / contain no-repeat;
  mask: url('../images/logo-reversed.webp') center / contain no-repeat;
  pointer-events: none;
}

/* Give every legacy photograph the same frame without destructively cropping it. */
.xa-result__images > div {
  min-height: 0;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #e8edef, #dce4e7);
}

.xa-result__images img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

@media (hover: hover) and (pointer: fine) {
  .xa-result:hover .xa-result__images--composite img:first-child,
  .xa-result:hover .xa-result__images--composite img:last-child {
    transform: scale(1.035);
  }
}

.xa-result__images--composite {
  grid-template-columns: 1fr;
}

.xa-result__images--composite > div {
  aspect-ratio: 4 / 3;
}

.xa-story__comparison figure {
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(430px, 48vw, 720px);
  background: linear-gradient(145deg, #edf1f2, #dfe6e8);
  overflow: hidden;
}

.xa-story__comparison img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.xa-story__comparison--composite {
  grid-template-columns: 1fr;
}

.xa-story__comparison--composite figure {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

@media (max-width: 780px) {
  /* The image gets its own stage; the message follows on a clean brand panel. */
  .xa-impact {
    min-height: 0;
    display: block;
    padding: 390px 0 112px;
    background: var(--xa-navy-dark);
  }

  .xa-impact:before {
    display: block;
    inset: 0 0 auto;
    height: 390px;
    background: linear-gradient(180deg, rgba(16, 27, 34, .05), rgba(16, 27, 34, .12)), url('../images/expect-more.webp') 46% center / cover no-repeat;
    opacity: 1;
  }

  .xa-impact__grid {
    width: 100%;
    padding: 34px 24px 8px;
    text-align: center;
  }

  .xa-impact .xa-display {
    font-size: clamp(2.65rem, 12vw, 3.65rem);
    text-shadow: none;
  }

  .xa-impact h3 {
    margin: 14px auto 0;
    font-size: 1.45rem;
  }

  .xa-footer__wash {
    right: -85px;
    top: -56px;
    width: 300px;
    height: 238px;
    opacity: 1;
  }

  .xa-story__comparison figure {
    height: min(128vw, 650px);
  }

  .xa-story__comparison--composite figure {
    height: auto;
  }
}
