
/*
 * Core growth pass: homepage routes brand arrivals into the directory, and the
 * tools archive reads as the primary OSINT4ALL workspace rather than a passive
 * archive list.
 */
.hero-home .hero-copy-column h1 {
  max-width: 15.5ch !important;
}

.hero-home .hero-intro {
  max-width: 42rem;
}

.home-core-routes-section {
  padding-top: clamp(28px, 4vw, 54px);
  padding-bottom: 0;
}

.home-core-routes-head {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(260px, 0.42fr);
  gap: clamp(18px, 3vw, 38px);
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(238, 240, 242, 0.09);
}

.home-core-routes-head h2 {
  max-width: 16ch;
  margin: 0;
  color: #f6f3ec;
  font-size: clamp(1.9rem, 3.4vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-core-routes-head > p {
  max-width: 34rem;
  margin: 0;
  color: rgba(238, 240, 242, 0.66);
  font-size: 0.96rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.home-core-routes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(238, 240, 242, 0.08);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(238, 240, 242, 0.07);
}

.home-core-route {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 238px;
  padding: clamp(16px, 1.8vw, 22px);
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.034), transparent 46%),
    rgba(17, 19, 24, 0.94);
}

.home-core-route::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 184, 141, 0.64), transparent);
  opacity: 0;
}

.home-core-route-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(200, 184, 141, 0.2);
  border-radius: 8px;
  color: rgba(200, 184, 141, 0.96);
  background: rgba(200, 184, 141, 0.055);
}

.home-core-route-icon .o4-ui-icon {
  width: 21px;
  height: 21px;
}

.home-core-route-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.home-core-route-copy small,
.home-core-route-meta {
  font-family: var(--o4-font-ui);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-core-route-copy small {
  color: rgba(200, 184, 141, 0.9);
}

.home-core-route-copy strong {
  color: #f4f1e9;
  font-family: var(--o4-font-ui);
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-core-route-copy > span {
  color: rgba(238, 240, 242, 0.63);
  font-size: 0.9rem;
  line-height: 1.5;
}

.home-core-route-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(238, 240, 242, 0.09);
  border-radius: 999px;
  color: rgba(238, 240, 242, 0.62);
  background: rgba(3, 6, 11, 0.3);
  line-height: 1;
}

.directory-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.directory-hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(238, 240, 242, 0.1);
  border-radius: 999px;
  color: rgba(238, 240, 242, 0.72);
  background: rgba(3, 6, 11, 0.26);
  font-family: var(--o4-font-ui);
  font-size: 0.74rem;
  font-weight: 820;
  text-decoration: none;
}

.directory-journey-panel {
  display: grid;
  gap: 14px;
  margin-top: clamp(18px, 2.6vw, 30px);
  padding: clamp(16px, 2vw, 22px) 0;
  border-top: 1px solid rgba(238, 240, 242, 0.08);
  border-bottom: 1px solid rgba(238, 240, 242, 0.08);
}

.directory-journey-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.directory-journey-head h2 {
  max-width: 18ch;
  margin: 0;
  color: #f4f1e9;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.directory-journey-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(238, 240, 242, 0.08);
  border-radius: 8px;
  background: rgba(238, 240, 242, 0.07);
}

.directory-journey-step {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  background: rgba(17, 19, 24, 0.9);
}

.directory-journey-step > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(200, 184, 141, 0.18);
  border-radius: 8px;
  color: rgba(200, 184, 141, 0.94);
  background: rgba(200, 184, 141, 0.05);
}

.directory-journey-step .o4-ui-icon {
  width: 17px;
  height: 17px;
}

.directory-journey-step strong {
  color: #f4f1e9;
  font-family: var(--o4-font-ui);
  font-size: 0.9rem;
  line-height: 1.15;
}

.directory-journey-step small {
  color: rgba(238, 240, 242, 0.58);
  font-size: 0.78rem;
  line-height: 1.42;
}

@media (prefers-reduced-motion: no-preference) {
  .home-core-route,
  .home-core-route::after,
  .directory-hero-actions a,
  .directory-journey-step {
    transition: transform 190ms ease, border-color 190ms ease, background 190ms ease, color 190ms ease, opacity 190ms ease;
  }

  .home-core-route:hover,
  .home-core-route:focus-visible,
  .directory-journey-step:hover {
    transform: translateY(-2px);
    background:
      linear-gradient(145deg, rgba(200, 184, 141, 0.05), transparent 46%),
      rgba(20, 23, 28, 0.96);
  }

  .home-core-route:hover::after,
  .home-core-route:focus-visible::after {
    opacity: 1;
  }

  .directory-hero-actions a:hover,
  .directory-hero-actions a:focus-visible {
    color: #f4f1e9;
    border-color: rgba(200, 184, 141, 0.22);
    background: rgba(200, 184, 141, 0.055);
  }
}

@media (max-width: 1120px) {
  .home-core-routes-head,
  .directory-journey-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-core-routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-journey-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-home .hero-copy-column h1 {
    max-width: 13.5ch !important;
    font-size: clamp(2.2rem, 10.3vw, 2.85rem) !important;
  }

  .home-core-routes-section {
    padding-top: 30px;
  }

  .home-core-routes-head {
    gap: 10px;
    padding-bottom: 12px;
  }

  .home-core-routes-head h2 {
    max-width: 13ch;
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .home-core-routes-head > p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .home-core-routes {
    grid-template-columns: 1fr;
    border-radius: 0 0 8px 8px;
  }

  .home-core-route {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    min-height: 0;
    gap: 12px;
    padding: 14px;
  }

  .home-core-route-icon {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
  }

  .home-core-route-copy {
    gap: 5px;
  }

  .home-core-route-copy > span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-core-route-meta {
    grid-column: 2;
  }

  .directory-hero-actions {
    gap: 6px;
  }

  .directory-hero-actions a:nth-child(n+4) {
    display: none;
  }

  .directory-journey-panel {
    margin-top: 12px;
    padding: 14px 0;
  }

  .directory-journey-head .section-link {
    justify-self: start;
  }

  .directory-journey-steps {
    grid-template-columns: 1fr;
  }

  .directory-journey-step {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    gap: 8px 10px;
    padding: 12px;
  }

  .directory-journey-step > span {
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
  }
}
