/* Star Davos V5 portfolio/story layer. Additive and easy to roll back. */

.scene-identity .identity-copy h1 {
  max-width: 950px;
}

.scene-identity .identity-copy p:last-child {
  max-width: 860px;
}

.profile-manifesto p:last-child {
  max-width: 720px;
  line-height: 1.7;
}

.doctrine-quiet {
  max-width: 1080px;
}

.doctrine-quiet > p:last-of-type {
  max-width: 880px;
  margin: 24px auto 0;
  line-height: 1.75;
  font-size: clamp(.94rem, 1.3vw, 1.12rem);
}

.doctrine-love {
  display: inline-flex;
  margin-top: 28px;
  padding: 9px 12px;
  border: 1px solid rgba(255,118,24,.28);
  border-radius: 999px;
  background: rgba(255,118,24,.05);
  color: #f8d7bf;
  font: 800 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}

.scene-missions {
  grid-template-columns: .88fr 1.12fr;
}

.missions-copy h2 {
  max-width: 610px;
}

.mission-detail {
  max-width: 590px;
}

.mission-detail > p {
  line-height: 1.55;
}

.mission-facts {
  display: grid;
  gap: 9px;
  margin: 16px 0 14px;
}

.mission-facts div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(71,143,194,.16);
}

.mission-facts dt,
.mission-facts dd {
  margin: 0;
  font: 650 .62rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mission-facts dt {
  color: var(--orange);
  letter-spacing: .08em;
}

.mission-facts dd {
  color: #b9cad7;
}

.mission-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.mission-badges b,
.mission-badges em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font: 800 .54rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  font-style: normal;
}

.mission-badges b {
  margin: 0;
  border: 1px solid rgba(126,244,128,.28);
  color: var(--green);
  background: rgba(126,244,128,.04);
}

.mission-badges em {
  border: 1px solid rgba(39,169,255,.28);
  color: var(--blue);
  background: rgba(39,169,255,.04);
}

.lab-note {
  margin: 14px 0 0 !important;
  padding-top: 11px;
  border-top: 1px solid rgba(71,143,194,.16);
  color: var(--soft) !important;
  font: 700 .53rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.lab-note span {
  color: #d6e5ef;
}

.constellation {
  width: min(68vh, 670px);
}

.project-node {
  width: 76px;
  height: 76px;
}

.project-node span {
  max-width: 68px;
  text-align: center;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.constellation-core {
  width: 26%;
}

.constellation-core::after {
  content: "8 FEATURED MISSIONS";
  position: absolute;
  top: 118%;
  left: 50%;
  translate: -50% 0;
  color: var(--blue);
  font: 800 .48rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
  white-space: nowrap;
}

.service-lines {
  max-width: 760px;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .scene-missions {
    grid-template-columns: .96fr 1.04fr;
    gap: 12px;
  }

  .project-node {
    width: 66px;
    height: 66px;
  }

  .project-node span {
    font-size: .49rem;
  }

  .mission-detail {
    margin-top: 18px;
  }

  .mission-detail > p {
    font-size: .88rem;
  }

  .mission-facts dt,
  .mission-facts dd {
    font-size: .56rem;
  }
}

@media (max-width: 900px) {
  .scene-missions {
    align-content: start;
    overflow-y: auto;
    padding-bottom: 110px;
  }

  .missions-copy {
    pointer-events: auto;
  }

  .mission-detail {
    margin-top: 14px;
  }

  .mission-facts {
    display: none;
  }

  .lab-note {
    display: none;
  }

  .constellation {
    width: min(39vh, 330px);
    margin-top: 4px;
    flex: none;
  }

  .project-node {
    width: 54px;
    height: 54px;
  }

  .project-node b {
    font-size: .48rem;
  }

  .project-node span {
    max-width: 46px;
    font-size: .40rem;
  }

  .constellation-core::after {
    display: none;
  }

  .doctrine-quiet > p:last-of-type {
    line-height: 1.55;
    font-size: .86rem;
  }

  .doctrine-love {
    margin-top: 18px;
    font-size: .48rem;
  }
}

@media (max-width: 560px) {
  .scene-missions {
    padding-top: 16px;
  }

  .missions-copy h2 {
    font-size: clamp(1.8rem, 8.8vw, 2.55rem);
  }

  .mission-detail > p {
    font-size: .76rem;
  }

  .mission-badges b,
  .mission-badges em {
    min-height: 21px;
    font-size: .44rem;
  }

  .constellation {
    width: min(35vh, 265px);
  }

  .project-node {
    width: 46px;
    height: 46px;
  }

  .project-node span {
    max-width: 40px;
    font-size: .36rem;
  }

  .doctrine-love {
    display: block;
    border-radius: 8px;
    line-height: 1.45;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .mission-detail {
    margin-top: 14px;
    padding-top: 12px;
  }

  .mission-detail > p {
    margin: 7px 0;
    font-size: .78rem;
  }

  .mission-facts {
    margin: 9px 0;
    gap: 5px;
  }

  .mission-facts div {
    padding-top: 6px;
  }

  .mission-facts dt,
  .mission-facts dd {
    font-size: .50rem;
  }

  .lab-note {
    display: none;
  }

  .constellation {
    width: min(61vh, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-missions {
    overflow-y: auto;
  }
}
