/* The homepage's career and home-search paths share one editorial grid. */
.home-page .intent-curtain--paths {
  padding-top: clamp(6.5rem, 12vh, 8.5rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.direction-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2rem, 4vh, 3.5rem);
}

.direction-path {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
}

.direction-homes {
  padding-left: clamp(2rem, 4vw, 4rem);
  border-left: 1px solid rgb(5 5 5 / 32%);
}

.direction-eyebrow {
  display: flex;
  gap: 0.85rem;
  margin: 0 0 clamp(1.5rem, 3vh, 2.5rem);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.direction-eyebrow > :first-child {
  flex-shrink: 0;
}

.direction-path h3 {
  margin: 0;
  font-size: clamp(2.8rem, 4.5vw, 5.5rem);
  font-weight: 680;
  letter-spacing: -0.065em;
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
}

.direction-path h3 em {
  font-weight: 450;
}

.direction-career h3 > * {
  display: block;
}

.direction-career h3 em {
  margin-top: 0.08em;
}

.direction-homes h3 {
  font-size: clamp(2.8rem, 4vw, 5rem);
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

.direction-description {
  max-width: 38rem;
  margin: 1.5rem 0;
  color: rgb(5 5 5 / 75%);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.55;
}

.direction-career .direction-description {
  max-width: 34ch;
  margin-bottom: 2rem;
}

.direction-button {
  display: flex;
  min-height: 4.5rem;
  padding: 1.25rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  color: #fff;
  background: #050505;
  border: 1px solid #050505;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  transition: color 180ms ease, background-color 180ms ease;
}

.direction-button svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.5;
}

.direction-button:hover {
  color: #050505;
  background: #f4f0eb;
}

.direction-button:focus-visible,
.direction-secondary a:focus-visible,
.direction-benefits a:focus-visible {
  outline: 3px solid #050505;
  outline-offset: 5px;
}

.direction-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}

.direction-secondary a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgb(5 5 5 / 55%);
  font-size: 0.875rem;
  line-height: 1.4;
}

.direction-secondary a:hover {
  border-bottom-color: #050505;
  background: rgb(255 255 255 / 15%);
}

.direction-benefits {
  margin-top: auto;
  padding-top: 2rem;
}

.direction-benefits a {
  display: flex;
  min-height: 3.5rem;
  padding: 0.85rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgb(5 5 5 / 40%);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.direction-benefits a:last-child {
  border-bottom: 1px solid rgb(5 5 5 / 40%);
}

.direction-benefits a:hover {
  background: rgb(255 255 255 / 15%);
}

.direction-home-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #5f554a;
}

.direction-home-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
}

.direction-search-button {
  margin-top: auto;
}

html:lang(pt) .direction-career h3 {
  font-size: clamp(2.65rem, 3.9vw, 4.75rem);
}

@media (max-width: 1100px) and (min-width: 901px) {
  .direction-grid {
    gap: 1.5rem;
  }

  .direction-homes {
    padding-left: 1.5rem;
  }

  .direction-path h3,
  .direction-homes h3 {
    font-size: 2.8rem;
  }
}

@media (max-width: 900px) {
  .home-page .intent-curtain--paths {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .direction-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
  }

  .direction-path h3,
  .direction-homes h3,
  html:lang(pt) .direction-career h3 {
    max-width: 15ch;
    font-size: clamp(2.5rem, 7.5vw, 4.5rem);
  }

  .direction-homes {
    padding: 2rem 0 0;
    border-top: 1px solid rgb(5 5 5 / 40%);
    border-left: 0;
  }

  .direction-eyebrow {
    margin-bottom: 1.5rem;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
  }

  .direction-career .direction-description {
    max-width: 38rem;
  }

  .direction-button {
    padding: 1.1rem 1.25rem;
    font-size: 0.8rem;
    letter-spacing: 0.07em;
  }

  .direction-benefits {
    padding-top: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .direction-button {
    transition: none;
  }
}
