/* Hero navigation: a quiet, interactive map of the AIP story. */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: stretch;
  gap: clamp(28px, 4vw, 60px);
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 680px;
}

.hero .hero-copy p {
  max-width: 580px;
  margin-bottom: 0;
}

.hero-orbit {
  position: relative;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  justify-self: end;
  color: var(--text-secondary);
}

.hero-orbit-art {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .16));
}

.hero-tooltip-area {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 100%;
  height: 150px;
  pointer-events: none;
  z-index: 2;
}

.hero-tooltip {
  position: absolute;
  inset: 8px 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  padding: 17px 20px 18px;
  border: 1px solid rgba(155, 190, 255, .28);
  border-radius: 3px;
  background: rgba(8, 19, 36, .88);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
  color: rgba(237, 244, 255, .83);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
  z-index: 1;
}

.hero-tooltip::before {
  position: absolute;
  top: -1px;
  left: 20px;
  width: 34px;
  height: 1px;
  background: rgba(176, 207, 255, .8);
  content: "";
}

.hero-tooltip-kicker {
  margin-bottom: 7px;
  color: rgba(164, 196, 255, .86);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.hero-tooltip strong {
  color: #f3f7ff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.hero .hero-tooltip p {
  max-width: 390px;
  margin: 7px 0 0;
  color: rgba(224, 234, 250, .77);
  font-size: .875rem;
  line-height: 1.55;
}

.hero-orbit[data-active-tooltip="who"] .hero-tooltip-who,
.hero-orbit[data-active-tooltip="what"] .hero-tooltip-what,
.hero-orbit[data-active-tooltip="how"] .hero-tooltip-how,
.hero-orbit[data-active-tooltip="why"] .hero-tooltip-why {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.orbit-link {
  cursor: pointer;
  outline: none;
}

.orbit-ring {
  stroke-width: 1.1;
  transition: fill .22s ease, stroke .22s ease, stroke-width .22s ease;
}

.orbit-link text {
  fill: rgba(237, 244, 255, .72);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  transition: fill .22s ease, letter-spacing .22s ease;
  pointer-events: none;
}

.orbit-who text,
.orbit-what text,
.orbit-how text {
  font-size: 22px;
  font-weight: 700;
}

.orbit-who .orbit-ring {
  fill: rgba(105, 160, 255, .035);
  stroke: rgba(155, 190, 255, .30);
}

.orbit-what .orbit-ring {
  fill: rgba(82, 142, 255, .045);
  stroke: rgba(127, 174, 255, .34);
}

.orbit-how .orbit-ring {
  fill: rgba(58, 126, 255, .06);
  stroke: rgba(103, 158, 255, .42);
}

.orbit-why .orbit-ring {
  fill: rgba(59, 130, 246, .19);
  stroke: rgba(115, 169, 255, .66);
}

.orbit-link:hover .orbit-ring,
.orbit-link:focus-visible .orbit-ring {
  fill: rgba(76, 145, 255, .18);
  stroke: rgba(176, 207, 255, .92);
  stroke-width: 2;
}

.orbit-link:hover text,
.orbit-link:focus-visible text {
  fill: #f3f7ff;
  letter-spacing: 3.6px;
}

.orbit-link:focus-visible .orbit-ring {
  stroke-width: 3;
}

@media (max-width: 899px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-orbit {
    width: min(100%, 430px);
    height: auto;
    aspect-ratio: 1;
    justify-self: center;
  }

  .hero-orbit-art {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .hero-tooltip-area {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    min-height: 170px;
    margin-top: 8px;
    pointer-events: none;
  }

  .hero-tooltip {
    inset: 0 0 auto;
  }

}

@media (max-width: 479px) {
  .hero .hero-content {
    padding-top: 120px;
    padding-bottom: 100px;
  }

  .hero-layout {
    gap: 22px;
  }

  .hero-orbit {
    width: min(100%, 350px);
  }

  .hero-tooltip-area {
    min-height: 220px;
  }

  .hero-tooltip {
    padding: 14px 16px 15px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring,
  .orbit-link text,
  .hero-tooltip {
    transition: none;
  }
}
