/* Service-page calibration and on-demand location scene. */
.department-hero {
  position: relative;
}

.department-hero > .calibration-line {
  position: absolute;
  top: 28px;
  right: 24px;
  width: min(300px, 32vw);
}

.department-hero__media > picture,
.department-hero__media > picture img {
  width: 100%;
  height: 100%;
}

.department-hero__media > picture img {
  object-fit: cover;
  object-position: center;
}

.department-body-work .department-editorial__media::before {
  position: absolute;
  inset: -30% auto -30% -24%;
  z-index: 2;
  width: 14%;
  background: rgba(255, 255, 255, .2);
  content: "";
  pointer-events: none;
  transform: skewX(-17deg);
}

.department-body-work .department-editorial.is-scene-active .department-editorial__media::before {
  animation: bodyWorkLightSweep var(--motion-cinematic, 900ms) var(--ease-natural, cubic-bezier(.22, 1, .36, 1)) both;
}

.department-location {
  position: relative;
  padding-block: clamp(82px, 9vw, 136px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(19, 24, 27, .035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(19, 24, 27, .035) 1px, transparent 1px) 0 0 / 72px 72px,
    #e4e8e9;
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.department-location > .calibration-line {
  position: absolute;
  top: 34px;
  right: max(24px, calc((100vw - 1180px) / 2));
  width: min(360px, 38vw);
}

.department-location__layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(440px, 1.2fr);
  align-items: center;
  gap: clamp(50px, 8vw, 112px);
}

.department-location__copy h2 {
  max-width: 12ch;
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  line-height: 1.16;
  text-wrap: balance;
}

.department-location__copy > p:not(.eyebrow) {
  color: #596166;
  font-size: 1.03rem;
  line-height: 1.9;
}

.department-location__copy > small {
  display: block;
  max-width: 58ch;
  margin-top: 14px;
  color: #687176;
  line-height: 1.75;
}

.department-location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.department-location__visual {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(19, 24, 27, .14);
  background: #242a2e;
  box-shadow: 18px 18px 0 rgba(143, 16, 20, .1);
}

.department-location__schematic {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, .11), transparent 24%),
    linear-gradient(145deg, #394247, #1c2124);
  transition: opacity var(--motion-interface, 420ms) ease;
}

.department-location__schematic::before,
.department-location__schematic::after {
  position: absolute;
  content: "";
}

.department-location__schematic::before {
  top: 48%;
  right: -8%;
  width: 116%;
  height: 1px;
  background: #e2353c;
  transform: rotate(-10deg);
  box-shadow: 0 -46px rgba(255, 255, 255, .12), 0 46px rgba(255, 255, 255, .12);
}

.department-location__schematic::after {
  top: 19%;
  right: 15%;
  width: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.department-location__schematic > span,
.department-location__schematic > i {
  position: absolute;
  z-index: 2;
  width: 19px;
  height: 19px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #d9272d;
}

.department-location__schematic > span { top: 30%; right: 25%; }
.department-location__schematic > i { bottom: 27%; left: 25%; }

.department-location__schematic > b {
  position: absolute;
  right: 50%;
  bottom: 16%;
  z-index: 2;
  min-width: 180px;
  padding: 12px 15px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(18, 22, 25, .85);
  font-size: .82rem;
  text-align: center;
  transform: translateX(50%);
}

.department-location__schematic > small {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: #949da2;
  font-size: .68rem;
}

.department-location__map-frame,
.department-location__map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.department-location__visual > .btn {
  position: absolute;
  right: 50%;
  bottom: 28px;
  z-index: 4;
  color: #fff;
  border-color: rgba(255, 255, 255, .34);
  background: rgba(17, 21, 24, .88);
  transform: translateX(50%);
}

.department-location__visual.is-map-loaded .department-location__schematic {
  opacity: 0;
  pointer-events: none;
}

.department-location__visual.is-map-loaded > .btn {
  display: none;
}

.department-mechanic .journey-list,
.department-individual-inspection .journey-list {
  position: relative;
}

.department-mechanic .journey-list::before,
.department-individual-inspection .journey-list::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b62429, #b62429, transparent);
  content: "";
}

.department-mechanic .journey-list > li,
.department-individual-inspection .journey-list > li {
  position: relative;
  z-index: 1;
}

@keyframes bodyWorkLightSweep {
  from { transform: skewX(-17deg) translateX(0); }
  to { transform: skewX(-17deg) translateX(900%); }
}

@media (max-width: 900px) {
  .department-location__layout {
    grid-template-columns: 1fr;
  }

  .department-location__visual {
    min-height: min(72vw, 540px);
  }
}

@media (max-width: 620px) {
  .department-hero > .calibration-line {
    top: 18px;
    right: 18px;
    width: 52vw;
  }

  .department-location {
    padding-block: 68px;
  }

  .department-location__copy h2 {
    font-size: clamp(2rem, 9.5vw, 3.4rem);
  }

  .department-location__visual {
    min-height: 430px;
    box-shadow: 9px 9px 0 rgba(143, 16, 20, .1);
  }

  .department-location__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .department-location__actions .btn {
    width: 100%;
  }

  .department-mechanic .journey-list::before,
  .department-individual-inspection .journey-list::before {
    top: 0;
    right: 21px;
    bottom: 0;
    left: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, #b62429, #b62429, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .department-body-work .department-editorial.is-scene-active .department-editorial__media::before {
    animation: none;
    display: none;
  }

  .department-location__schematic {
    transition: none;
  }
}
