.ref-contact .contact-details {
  gap: 22px;
}

.ref-contact .contact-detail {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ref-contact .contact-details h2 {
  margin: 0;
  color: #72d4ed;
  font: 500 16px/1.5 var(--font);
  letter-spacing: 0;
}

.ref-contact .reference-enquiry .enquiry-copy > p,
.ref-contact .reference-form input,
.ref-contact .reference-form select,
.ref-contact .reference-form textarea {
  font-size: 18px;
  line-height: 1.65;
}

.ref-contact .reference-form label {
  font-size: 16px;
  line-height: 1.5;
}

.ref-contact .contact-detail p,
.ref-contact .contact-detail address,
.ref-contact .contact-detail a {
  margin: 0;
  color: #e5eef4;
  font: 400 18px/1.65 var(--font);
  overflow-wrap: anywhere;
}

.ref-contact .contact-detail a:hover {
  color: #00a3df;
}

.ref-contact .contact-map {
  width: 100%;
  height: 280px;
  display: block;
  border: 1px solid #98d5e54d;
  border-radius: 8px;
  background: #eaf2f5;
}

.ref-contact .contact-detail .map-directions {
  color: #72d4ed;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ref-gamified-simulations .four-features svg,
.ref-gamified-simulations .solution-grid .item-content > svg,
.ref-gamified-simulations .six-features svg {
  width: 52px;
  height: 52px;
  padding: 12px;
  box-sizing: border-box;
  flex-shrink: 0;
  border-radius: 14px;
  background: #00a3df18;
  color: #00a3df;
}

.ref-hr-consulting .solution-grid article > img {
  filter: none;
  opacity: 1;
}

.ref-gamified-simulations .solution-grid > article:first-child > img {
  object-fit: contain;
  background: #001b2e;
}

.language .uk-flag {
  width: 23px;
  height: 16px;
  stroke: none;
  vertical-align: middle;
}

.client-slide img {
  mix-blend-mode: normal;
}

@media (max-width: 800px) {
  .ref-crack-the-code #main .ref-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .ref-crack-the-code #main .ref-hero > .wrap {
    order: 1;
  }

  .ref-crack-the-code #main .ref-hero-copy {
    min-height: 0;
    padding-block: 36px;
  }

  .ref-crack-the-code #main .ref-hero-photo {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 2053 / 766;
    z-index: 0;
  }

  .ref-crack-the-code #main .ref-hero-photo > img {
    object-fit: contain;
    object-position: center;
  }

  .ref-crack-the-code #main .ref-hero::after {
    display: none;
  }
}

.ref-home .client-banner-deck > .home-people-film {
  position: absolute;
  inset: 0;
  width: 72%;
  inset-inline-start: 28%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity .4s ease;
}

.ref-home .client-brand-video .client-banner-frame img {
  width: 72%;
  margin-inline-start: 28%;
  object-fit: contain;
  object-position: center;
  animation: none;
  transform: none;
}

.ref-home .client-banner-deck > .home-people-film.film-ready {
  opacity: 1;
}

@media (max-width: 600px) {
  .ref-home .client-banner-deck > .home-people-film {
    width: 100%;
    inset-inline-start: 0;
    object-fit: contain;
    object-position: center top;
  }

  .ref-home .client-brand-video .client-banner-frame img {
    width: 100%;
    margin-inline-start: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ref-home .client-banner-deck > .home-people-film {
    transition: none;
  }
}

/* Extend the supplied film's navy gradient across the complete opening. */
.ref-home .ref-hero {
  background: linear-gradient(90deg, #1b3253 0%, #1b3253 28%, #182a46 42%, #132032 64%, #0f161f 85%, #0a0d13 100%);
}
[dir=rtl] .ref-home .ref-hero {
  background: linear-gradient(90deg, #1b3253 0%, #182a46 14%, #132032 36%, #0f161f 57%, #0a0d13 72%, #0a0d13 100%);
}
.ref-home .ref-hero-photo,
[dir=rtl] .ref-home .ref-hero-photo,
.ref-home .client-brand-video { background: transparent; }
.ref-home .ref-hero::after,
[dir=rtl] .ref-home .ref-hero::after { display: none; }
.ref-home .client-banner-deck > .home-people-film,
.ref-home .client-brand-video .client-banner-frame img {
  position: absolute;
  inset-block-start: 50%;
  inset-block-end: auto;
  inset-inline-start: 28%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  transform: translateY(-50%);
  mask-image: linear-gradient(transparent, #000 22px, #000 calc(100% - 22px), transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 22px, #000 calc(100% - 22px), transparent);
}
@media(max-width:600px) {
  .ref-home .ref-hero,
  [dir=rtl] .ref-home .ref-hero {
    background: linear-gradient(90deg, #1b3253, #182a46 20%, #132032 50%, #0f161f 80%, #0a0d13);
  }
  .ref-home .client-banner-deck > .home-people-film,
  .ref-home .client-brand-video .client-banner-frame img {
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 100%;
    transform: none;
    mask-image: linear-gradient(transparent, #000 12px, #000 calc(100% - 18px), transparent);
    -webkit-mask-image: linear-gradient(transparent, #000 12px, #000 calc(100% - 18px), transparent);
  }
}

/* Preserve readable desktop proportions on presentation and TV displays. */
@media (min-width:1800px) {
  .ref-page.ref-home #main .ref-hero { min-height: 840px; }
  .ref-page.ref-home #main .ref-hero-copy { min-height:840px; padding-block:110px 125px; }
  .ref-home .client-banner-deck > .home-people-film,
  .ref-home .client-brand-video .client-banner-frame img { max-height:100%; object-fit:contain; }
}
@media (min-width:2200px) { body.ref-page { zoom:1.25; } }
@media (min-width:2800px) { body.ref-page { zoom:1.5; } }
@media (min-width:3600px) { body.ref-page { zoom:2; } }

@media(min-width:1800px){.ref-home .hero-film-caption{inset-inline-start:max(60px,calc((100% - 1280px)/2));}}
