/* The first screen flows into the full-width solar system. */
.home-page--front .home-trust { border-bottom: 0; }
.home-cosmos {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 8vw, 128px) 0 48px;
  color: #edf4f7;
  background: linear-gradient(180deg, #0d1319 0, #090f16 85px, #04080e 190px, #010205 310px, #000 440px);
}
.home-cosmos .solar-intro {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
}
.home-cosmos .solar-intro h2 {
  max-width: 760px;
  font-family: var(--home-display);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.home-cosmos .solar-intro > p { color: #adbcca; }
.home-page .home-cosmos .solar-system {
  width: 100%;
  margin: 0;
  background: transparent;
}
.home-cosmos .solar-system__toolbar { padding-inline: 0; border-bottom: 0; }
.home-cosmos .solar-system__canvas {
  -webkit-mask-image: linear-gradient(90deg, transparent, #0009 4%, #000 12%, #000 88%, #0009 96%, transparent), linear-gradient(180deg, transparent, #000 12%, #000);
  mask-image: linear-gradient(90deg, transparent, #0009 4%, #000 12%, #000 88%, #0009 96%, transparent), linear-gradient(180deg, transparent, #000 12%, #000);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* Sparse, offset layers bridge the header and the existing animated WebGL sky. */
.home-cosmos__stars {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 500px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 62%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 62%, transparent);
}
.home-cosmos__stars i {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 26%, #b0d5ff 0 .65px, transparent 1.5px),
    radial-gradient(circle at 27% 61%, #d8eaff 0 .5px, transparent 1.2px),
    radial-gradient(circle at 45% 13%, #91bcef 0 .75px, transparent 1.7px),
    radial-gradient(circle at 61% 42%, #d4e8ff 0 .6px, transparent 1.3px),
    radial-gradient(circle at 78% 84%, #6caaff 0 .8px, transparent 1.6px),
    radial-gradient(circle at 94% 32%, #bfdeff 0 .6px, transparent 1.4px);
  background-size: 397px 241px;
  opacity: .55;
  animation: cosmos-twinkle 5.7s ease-in-out infinite alternate;
}
.home-cosmos__stars i:nth-child(2) {
  background-position: 103px 71px;
  background-size: 541px 307px;
  animation-duration: 7.3s;
  animation-delay: -3.8s;
}
.home-cosmos__stars i:nth-child(3) {
  background-position: -71px 139px;
  background-size: 677px 283px;
  animation-duration: 4.3s;
  animation-delay: -2.4s;
}
.home-cosmos:has([data-motion="paused"]) .home-cosmos__stars i { animation-play-state: paused; }
@keyframes cosmos-twinkle { from { opacity: .2; } to { opacity: .8; } }
@media (max-width: 920px) {
  .home-cosmos { padding-top: 72px; }
  .home-cosmos .solar-intro { margin-bottom: 20px; }
  .home-cosmos .solar-intro > p { max-width: 420px; }
}
@media (max-width: 600px) {
  .home-cosmos { padding-top: 56px; padding-bottom: 28px; }
  .home-cosmos .solar-intro h2 { max-width: 330px; }
  .home-cosmos .solar-system__toolbar { min-height: 100px; padding-block: 16px; }
  .home-cosmos__stars { height: 400px; }
  .home-cosmos__stars i:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-cosmos__stars i { animation: none; opacity: .5; }
}
@media print {
  .home-cosmos { color: #161a20; background: #f4f6fa; }
  .home-cosmos__stars { display: none; }
}
