/* Carry the original dark caption band across the bottom of each portrait. */
.cf-site.cf-home .cf-people .cf-principal-card > img {
  transform: none;
}

.cf-site.cf-home .cf-people .cf-principal-caption {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  margin-block-start: -23%;
  padding: clamp(16px, 2.5vw, 28px);
  border-top: 1px solid rgba(245, 239, 225, .28);
  background: linear-gradient(to bottom, rgba(10, 14, 20, .8), #0a0e14 56px);
  color: #f5efe1;
}

.cf-site.cf-home .cf-people .cf-principal-caption > span {
  color: #d8b47a;
}

.cf-site.cf-home .cf-people .cf-principal-caption a {
  text-decoration-color: #d8b47a;
}

.cf-site.cf-home .cf-people .cf-principal-caption a:focus-visible {
  outline-color: #f5efe1;
}

/* Center standalone green enquiry panels inside their own dark section. */
.cf-site .nf-conversion-band {
  display: grid;
  justify-items: center;
  box-sizing: border-box;
  padding: clamp(32px, 5.75vw, 88px) clamp(20px, 4vw, 32px);
  background-color: #0b1016;
}

.cf-site .nf-conversion-band > .nf-conversion {
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin: 0;
}

/* The home layout formerly made this component a full-bleed section. */
.cf-site.cf-home .nf-conversion-band > .nf-conversion:not(.nf-conversion-inline) {
  max-width: 1280px;
  border-inline: 1px solid rgba(208, 180, 128, .28);
  border-bottom: 1px solid rgba(208, 180, 128, .28);
}

/* The five historical photographs share the retained XF aperture and drift. */
body.nf-demand.cf-home .hero .has-xf-sequence .media-layer {
  transition: none;
}

body.nf-demand.cf-home .hero .has-xf-sequence .media-layer.is-leaving {
  display: block;
  opacity: 1;
  z-index: 0;
  animation: media-drift 14s ease-in-out infinite alternate;
}

body.nf-demand.cf-home .hero .has-xf-sequence .media-layer.is-active {
  z-index: 1;
}

body.nf-demand.cf-home .hero .has-xf-sequence .media-layer.is-entering {
  animation: media-drift 14s ease-in-out infinite alternate, xf-photo-reveal 1.35s ease both;
}

body.nf-demand.cf-home .hero .has-xf-sequence .material-grain {
  z-index: 2;
  pointer-events: none;
}

body.nf-demand.cf-home .hero .has-xf-sequence .media-routes:not(.is-historical-route) {
  background-image: none !important;
}

body.nf-demand.cf-home .hero .has-xf-sequence .media-routes.is-historical-route .home-primary-picture {
  opacity: 0;
}

body.nf-demand.cf-home .hero .has-xf-sequence .media-structure {
  background-position: center 66%;
}

body.nf-demand.cf-home .hero .has-xf-sequence .media-diagnostic {
  background-position: center 35%;
}

body.nf-demand.cf-home .hero .has-xf-sequence .media-principal-lex,
body.nf-demand.cf-home .hero .has-xf-sequence .media-principal-ray {
  filter: saturate(.86) contrast(1.03) brightness(.72);
}

body.nf-demand.cf-home .hero .has-xf-sequence .media-principal-lex {
  background-position: center 17%;
}

body.nf-demand.cf-home .hero .has-xf-sequence .media-principal-ray {
  background-position: center 16%;
}

@keyframes xf-photo-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.nf-demand.cf-home .hero .has-xf-sequence .media-layer:not(.media-routes) {
    display: none;
    opacity: 0;
  }

  body.nf-demand.cf-home .hero .has-xf-sequence .media-routes {
    display: block;
    opacity: 1;
    z-index: 1;
  }
}
