/* Retained Rooted / Rocket closing moment with deliberately smaller word scale. */
.rr-v2.route-home .home-close {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(var(--rr-carolina-blue-rgb), .12), transparent 26rem),
    var(--rr-primary-navy);
  color: var(--rr-white);
}

.rr-v2.route-home .home-close__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(var(--rr-copper-rgb), .62);
  stroke-dasharray: 7 15;
  stroke-width: 1.4;
  animation: rr-home-compact-path 36s linear infinite;
  pointer-events: none;
}

.rr-v2.route-home .home-close__path path:last-child {
  stroke: rgba(var(--rr-carolina-blue-rgb), .35);
  stroke-dasharray: 2 18;
  animation-direction: reverse;
}

.rr-v2.route-home .home-close__brand {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(4rem, 6vw, 6rem);
}

.rr-v2.route-home .home-close__word strong {
  display: block;
  color: var(--rr-white);
  font-size: clamp(3.75rem, 5vw, 5.5rem) !important;
  font-weight: 760;
  letter-spacing: -.075em;
  line-height: .88;
}

.rr-v2.route-home .home-close__word p {
  max-width: 22rem;
  margin: 1.25rem 0 0;
  color: rgba(var(--rr-white-rgb), .68);
}

.rr-v2.route-home .home-close__word--rocket {
  text-align: right;
}

.rr-v2.route-home .home-close__word--rocket p {
  margin-left: auto;
}

.rr-v2.route-home .home-close__mark {
  display: grid;
  width: clamp(6rem, 7vw, 7.5rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(var(--rr-white-rgb), .24);
  border-radius: 50%;
  background: rgba(var(--rr-primary-navy-rgb), .82);
  box-shadow:
    0 0 0 1.25rem rgba(var(--rr-carolina-blue-rgb), .045),
    0 0 0 2.5rem rgba(var(--rr-copper-rgb), .035);
}

.rr-v2.route-home .home-close__mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.rr-v2.route-home .home-close__cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem;
  padding-block: clamp(3rem, 5vw, 5rem);
  border-top: 1px solid rgba(var(--rr-white-rgb), .22);
}

.rr-v2.route-home .home-close__cta h2 {
  max-width: 17ch;
  margin-bottom: 1rem;
  color: var(--rr-white);
}

.rr-v2.route-home .home-close__cta p {
  max-width: 39rem;
  margin: 0;
  color: rgba(var(--rr-white-rgb), .7);
}

@keyframes rr-home-compact-path {
  to { stroke-dashoffset: -420; }
}

@media (max-width: 800px) {
  .rr-v2.route-home .home-close__brand {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-block: 4rem;
  }

  .rr-v2.route-home .home-close__word strong {
    font-size: clamp(3.25rem, 14vw, 4.5rem) !important;
  }

  .rr-v2.route-home .home-close__word--rocket {
    width: 100%;
    text-align: right;
  }

  .rr-v2.route-home .home-close__mark {
    justify-self: center;
  }

  .rr-v2.route-home .home-close__cta {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rr-v2.route-home .home-close__path {
    animation: none;
  }
}

/* Immediate homepage replacement: remove the operating-map interface from view. */
.rr-v2.route-home .hero-copy .button-row a[href="#company-system"] {
  display: none !important;
}

@media (min-width: 801px) {
  .rr-v2.route-home .company-system {
    position: relative;
    display: grid;
    min-height: 35.5rem;
    place-items: center;
    overflow: hidden;
  }

  .rr-v2.route-home .company-system > * {
    display: none !important;
  }

  .rr-v2.route-home .company-system::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: url("/assets/img/rooted-rocket-mark-reversed.png") center / min(88%, 43rem) auto no-repeat;
    content: "";
    filter: none;
    opacity: .055;
    pointer-events: none;
  }

  .rr-v2.route-home .company-system::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    border: 0;
    background: url("/assets/img/rooted-rocket-mark-reversed.png") center / clamp(15rem, 43%, 22rem) auto no-repeat;
    content: "";
    filter: drop-shadow(0 1.25rem 2.5rem rgba(var(--rr-black-rgb), .22));
    opacity: 1;
    pointer-events: none;
  }
}

@media (max-width: 800px) {
  .rr-v2.route-home .company-system {
    display: none !important;
    min-height: 0 !important;
  }
}
