/* Homepage v4 — THE SPACE BETWEEN. Loaded after the shared visual system. */
.home-page {
  --hero-scale: 1.045;
  background: #eef1f2;
}

.home-page .home-main {
  overflow: clip;
  background:
    linear-gradient(90deg, rgba(22, 27, 30, .025) 1px, transparent 1px) 0 0 / 88px 88px,
    #eef1f2;
}

.home-page .home-hero {
  min-height: max(680px, calc(94svh - var(--header-height)));
  padding-block: clamp(78px, 10vh, 122px) clamp(96px, 11vh, 138px);
  overflow: hidden;
  background: #d7dcde;
}

.home-page .home-hero::before {
  background:
    linear-gradient(270deg, rgba(243, 245, 245, .98) 0%, rgba(239, 242, 242, .92) 34%, rgba(231, 235, 236, .58) 58%, rgba(20, 25, 28, .16) 100%),
    linear-gradient(180deg, rgba(244, 246, 246, .08), transparent 55%, rgba(18, 23, 26, .22));
}

.home-page .home-hero__copy {
  width: min(760px, 69vw);
}

.home-page .home-hero h1 {
  max-width: 11.4ch;
  margin-bottom: 26px;
  font-size: clamp(2.75rem, 5.4vw, 6.1rem);
  line-height: 1.08;
  white-space: normal;
  text-wrap: balance;
}

.home-page .home-hero h1 span {
  display: block;
}

.home-page .home-hero h1 span:last-child {
  color: var(--visual-red, #8f1014);
}

.home-page .home-hero__lead {
  max-width: 61ch;
  font-size: clamp(1rem, 1.22vw, 1.16rem);
}

.home-page .home-hero__media,
.home-page .home-hero__media picture,
.home-page .home-hero__media img {
  width: 100%;
  height: calc(100% + 48px);
}

.home-page .home-hero__media {
  inset-block-start: -24px;
}

.home-page .home-hero__media img {
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(.82) contrast(1.04) brightness(1.03);
  transform: scale(var(--hero-scale));
  transform-origin: 38% 48%;
  transition: transform var(--motion-interface, 420ms) var(--ease-natural, cubic-bezier(.22, 1, .36, 1));
}

.home-page .home-hero .calibration-line {
  z-index: 6;
  top: clamp(42px, 8vh, 86px);
  right: max(24px, calc((100vw - 1180px) / 2));
  width: min(440px, 42vw);
}

.home-page .home-hero__edition {
  margin-bottom: 20px;
}

.home-page .home-hero__facts li {
  box-shadow: 0 12px 30px rgba(16, 19, 22, .075);
  backdrop-filter: none;
}

.home-page .home-hero__facts span {
  font-size: .76rem;
}

.home-service-chapters {
  position: relative;
  padding-block-start: clamp(82px, 9vw, 132px);
  background: #eef1f2;
}

.home-service-chapters__heading {
  max-width: 1180px;
  margin-bottom: clamp(52px, 7vw, 92px);
}

.home-service-chapters__heading h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  line-height: 1.2;
  text-wrap: balance;
}

.home-service-chapters__heading > p:last-child {
  max-width: 62ch;
  color: #626a6f;
  font-size: 1.04rem;
  line-height: 1.9;
}

.home-service-chapters__list {
  border-top: 1px solid rgba(17, 22, 25, .12);
}

.service-chapter {
  position: relative;
  min-height: 720px;
  padding-block: clamp(76px, 8vw, 120px);
  border-bottom: 1px solid rgba(17, 22, 25, .12);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .9), rgba(224, 228, 230, .82));
  content-visibility: auto;
  contain-intrinsic-size: auto 820px;
}

.service-chapter:nth-child(even) {
  background:
    linear-gradient(230deg, rgba(247, 249, 249, .96), rgba(207, 213, 216, .76));
}

.service-chapter__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(340px, .83fr);
  align-items: center;
  gap: clamp(52px, 8vw, 112px);
}

.service-chapter--reverse .service-chapter__media {
  order: 2;
}

.service-chapter--reverse .service-chapter__copy {
  order: 1;
}

.service-chapter__media {
  position: relative;
  min-height: clamp(440px, 50vw, 620px);
  margin: 0;
  overflow: hidden;
  background: #cbd1d4;
  box-shadow: 20px 20px 0 rgba(143, 16, 20, .11);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.service-chapter--reverse .service-chapter__media {
  box-shadow: -20px 20px 0 rgba(143, 16, 20, .11);
}

.service-chapter__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(8, 11, 13, .66)),
    linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 35%);
  content: "";
  pointer-events: none;
}

.service-chapter__media picture,
.service-chapter__media img {
  width: 100%;
  height: 100%;
}

.service-chapter__media img {
  object-fit: cover;
  object-position: center;
  filter: saturate(.84) contrast(1.04);
  transition: transform var(--motion-cinematic, 900ms) var(--ease-natural, cubic-bezier(.22, 1, .36, 1));
}

.service-chapter__media:hover img {
  transform: scale(1.025);
}

.service-chapter__media figcaption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.service-chapter__media figcaption span {
  color: #ff858b;
  font: 900 .7rem/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
}

.service-chapter__copy {
  position: relative;
  padding-block: 30px;
}

.service-chapter__copy h3 {
  max-width: 12ch;
  margin: 0 0 26px;
  color: #171b1e;
  font-size: clamp(2.25rem, 4vw, 4.7rem);
  line-height: 1.12;
  text-wrap: balance;
}

.service-chapter__lead {
  max-width: 49ch;
  margin: 0;
  color: #596167;
  font-size: clamp(.98rem, 1.15vw, 1.1rem);
  line-height: 1.95;
}

.service-chapter__distinction {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  max-width: 47ch;
  margin: 30px 0 0;
  padding-block: 18px;
  color: #202529;
  border-block: 1px solid rgba(17, 22, 25, .13);
  font-weight: 800;
  line-height: 1.8;
}

.service-chapter__distinction span {
  color: var(--visual-red, #8f1014);
}

.service-chapter__copy > small {
  display: block;
  margin-top: 13px;
  color: #687176;
  font-size: .76rem;
  line-height: 1.7;
}

.service-chapter__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.service-chapter__contact {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  color: #343a3e;
  border-bottom: 1px solid #aeb4b7;
  font-size: .85rem;
  font-weight: 800;
}

.service-chapter__contact:hover {
  color: var(--visual-red, #8f1014);
}

.service-chapter > .calibration-line {
  top: 36px;
  right: max(24px, calc((100vw - 1180px) / 2));
  width: min(340px, 36vw);
}

.home-page .home-work-showcase {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.home-location {
  position: relative;
  padding-block: clamp(92px, 10vw, 152px);
  color: #eef1f2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 72px 72px,
    #171c1f;
  content-visibility: auto;
  contain-intrinsic-size: auto 880px;
}

.home-location__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(54px, 9vw, 128px);
}

.home-location__copy h2 {
  max-width: 13ch;
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(2.2rem, 4.7vw, 5.1rem);
  line-height: 1.2;
  text-wrap: balance;
}

.home-location__copy > p:not(.eyebrow) {
  max-width: 55ch;
  color: #b8c0c4;
  line-height: 1.95;
}

.home-location__centers {
  display: grid;
  gap: 1px;
  margin-top: 36px;
  background: rgba(255, 255, 255, .14);
}

.home-location__centers article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 21px;
  background: #202629;
}

.home-location__centers article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border: 1px solid #9f2a2e;
  border-radius: 50%;
}

.home-location__centers h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: .96rem;
}

.home-location__centers p {
  margin: 0;
  color: #aeb7bb;
  font-size: .8rem;
  line-height: 1.7;
}

.home-location__centers nav {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.home-location__centers nav a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding-inline: 12px;
  color: #e9edef;
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: .72rem;
  font-weight: 800;
}

.home-location__visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  background: #252c30;
}

.route-schematic {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 28%, rgba(177, 186, 190, .14), transparent 30%),
    linear-gradient(145deg, #30383c, #1b2023);
  transition: opacity var(--motion-interface, 420ms) ease;
}

.route-schematic::before,
.route-schematic::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  content: "";
}

.route-schematic::before {
  top: 8%;
  right: 8%;
  width: 54%;
  aspect-ratio: 1;
}

.route-schematic::after {
  right: 20%;
  bottom: 4%;
  width: 38%;
  aspect-ratio: 1;
}

.route-schematic__road {
  position: absolute;
  top: 52%;
  right: 0;
  width: 100%;
  height: 1px;
  background: #e3353c;
  transform: rotate(-12deg);
}

.route-schematic__road::before,
.route-schematic__road::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, .16);
  content: "";
}

.route-schematic__road::before { top: -42px; }
.route-schematic__road::after { top: 42px; }

.route-schematic__node {
  position: absolute;
  z-index: 2;
  width: 19px;
  height: 19px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #d9272d;
  box-shadow: 0 0 0 8px rgba(217, 39, 45, .16);
}

.route-schematic__node--inspection { top: 32%; right: 27%; }
.route-schematic__node--cars { bottom: 29%; left: 24%; }

.route-schematic strong,
.route-schematic b {
  position: absolute;
  z-index: 2;
  padding: 10px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(21, 26, 29, .88);
  font-size: .8rem;
}

.route-schematic strong { top: 23%; right: 12%; }
.route-schematic b { bottom: 18%; left: 10%; }
.route-schematic small { position: absolute; right: 18px; bottom: 16px; color: #899399; font-size: .68rem; }

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

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

.home-location__visual.is-map-loaded .route-schematic {
  opacity: 0;
  pointer-events: none;
}

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

.home-proof__sequence {
  display: grid;
  gap: clamp(26px, 4vw, 54px);
}

.home-page .home-certificate {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: center;
  gap: clamp(38px, 7vw, 96px);
  width: 100%;
}

.home-page .home-certificate__media {
  width: 100%;
}

.home-trust-score {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 12px 32px;
  padding: clamp(36px, 5vw, 72px);
  border-block: 1px solid rgba(16, 19, 22, .14);
}

.home-trust-score .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.home-trust-score strong {
  color: #171b1e;
  font: 900 clamp(5.5rem, 13vw, 12rem)/.78 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: -.09em;
}

.home-trust-score strong span {
  color: #c21f26;
  font-size: .42em;
}

.home-trust-score > p:last-child {
  max-width: 32ch;
  margin: 0 0 8px;
  color: #5c656a;
  line-height: 1.8;
}

.home-page .home-reviews {
  width: 100%;
  padding: clamp(30px, 5vw, 68px);
}

.home-proof__closing {
  max-width: 17ch;
  margin: clamp(42px, 7vw, 94px) auto 0;
  color: #171b1e;
  font-size: clamp(2.3rem, 5.5vw, 6rem);
  font-weight: 900;
  line-height: 1.22;
  text-align: center;
  text-wrap: balance;
}

.home-proof__closing::before {
  display: block;
  width: 1px;
  height: 72px;
  margin: 0 auto 30px;
  background: #c21f26;
  content: "";
}

.home-page .home-proof {
  content-visibility: auto;
  contain-intrinsic-size: auto 1700px;
}

@media (max-width: 980px) {
  .service-chapter__layout,
  .home-location__layout {
    grid-template-columns: 1fr;
  }

  .service-chapter--reverse .service-chapter__media,
  .service-chapter--reverse .service-chapter__copy {
    order: initial;
  }

  .service-chapter__media {
    min-height: min(66vw, 560px);
  }

  .home-location__visual {
    min-height: min(74vw, 620px);
  }

  .home-page .home-certificate {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .home-page .home-hero {
    min-height: 850px;
    padding: 72px 18px 168px;
    color: #171b1e;
    background: #d7dcde;
  }

  .home-page .home-hero::before {
    z-index: 2;
    background:
      linear-gradient(180deg, rgba(241, 244, 244, .7) 0%, rgba(238, 241, 241, .88) 48%, rgba(236, 239, 240, .98) 75%, #e9edee 100%);
  }

  .home-page .home-hero__copy {
    width: 100%;
    padding: 22px 0;
    color: #171b1e;
    text-shadow: none;
  }

  .home-page .home-hero h1,
  .home-page .home-hero h1 span,
  .home-page .home-hero h1 em {
    max-width: 12ch;
    color: #171b1e;
    text-shadow: none;
  }

  .home-page .home-hero h1 span:last-child {
    color: #8f1014;
  }

  .home-page .home-hero__lead {
    color: #41494e;
  }

  .home-page .home-hero__facts li {
    color: #171b1e;
    border-color: rgba(17, 22, 25, .13);
    background: rgba(246, 248, 248, .82);
  }

  .home-page .home-hero__facts {
    margin-top: 92px;
  }

  .home-page .home-hero__facts strong { color: #171b1e; }
  .home-page .home-hero__facts span { color: #596166; font-size: .75rem; }
  .home-page .home-hero .btn-secondary { color: #171b1e; border-color: rgba(17, 22, 25, .24); background: rgba(248, 249, 249, .88); }

  .home-page .home-hero__mobile-media img {
    filter: saturate(.72) contrast(1.02) brightness(1.12);
    object-position: 52% center;
  }

  .home-page .home-hero .calibration-line {
    top: 24px;
    right: 18px;
    width: min(56vw, 260px);
  }

  .home-service-chapters {
    padding-top: 70px;
  }

  .service-chapter {
    min-height: 0;
    padding-block: 64px;
  }

  .service-chapter__layout {
    gap: 34px;
  }

  .service-chapter__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    box-shadow: 11px 11px 0 rgba(143, 16, 20, .11);
  }

  .service-chapter__copy {
    padding: 0;
  }

  .service-chapter__copy h3 {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .service-chapter__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-chapter__actions .btn,
  .service-chapter__contact {
    width: 100%;
    justify-content: center;
  }

  .home-location {
    padding-block: 72px;
  }

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

  .home-location__visual {
    min-height: 520px;
  }

  .home-trust-score {
    grid-template-columns: 1fr;
  }

  .home-trust-score strong {
    font-size: clamp(5.5rem, 34vw, 9rem);
  }

  .home-proof__closing {
    font-size: clamp(2rem, 9vw, 3.8rem);
  }
}

@media (max-width: 520px) {
  .home-page .home-hero {
    min-height: 930px;
  }

  .home-page .home-hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.8rem);
    letter-spacing: -.045em;
  }

  .home-page .home-hero__edition {
    font-size: .62rem;
    letter-spacing: .15em;
  }

  .home-page .home-hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .home-page .home-hero__facts li {
    min-width: 0;
  }

  .home-page .home-hero__facts span {
    font-size: .75rem;
    line-height: 1.45;
  }

  .home-service-chapters__heading h2 {
    font-size: 2.25rem;
  }

  .home-location__centers article {
    grid-template-columns: 34px 1fr;
    padding: 18px 14px;
  }

  .home-location__centers nav {
    grid-column: 1 / -1;
  }

  .home-location__centers nav a {
    flex: 1 1 28%;
    justify-content: center;
  }

  .home-location__visual {
    min-height: 450px;
  }

  .route-schematic strong,
  .route-schematic b {
    font-size: .7rem;
  }

  .home-page .home-certificate {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero__media img,
  .service-chapter__media img,
  .route-schematic {
    transition: none !important;
    transform: none !important;
  }
}
