/* Nova's silhouette is alpha-transparent; animate only individual character parts. */
nova-mascot {
  display: inline-block;
  position: relative;
  width: 180px;
  aspect-ratio: 1;
  flex-shrink: 0;
  vertical-align: middle;
  isolation: isolate;
}
nova-mascot .nova-rig {
  display: block;
  position: absolute;
  inset: 0;
  background: none;
}
nova-mascot .nova-part {
  position: absolute;
  inset: 0;
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
}
nova-mascot .nova-part img,
nova-mascot > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  padding: 0;
  animation: none;
  transform: none;
}
nova-mascot .nova-torso {
  clip-path: polygon(0 63%, 64% 63%, 64% 100%, 0 100%);
}
nova-mascot .nova-head {
  clip-path: polygon(
    0 0,
    84% 0,
    84% 44%,
    80% 44%,
    80% 56%,
    74% 60%,
    64% 63%,
    0 63%
  );
  transform-origin: 46% 65%;
  animation: nova-head-nod 8s ease-in-out infinite;
}
nova-mascot .nova-arm {
  clip-path: polygon(
    84% 44%,
    100% 44%,
    100% 100%,
    64% 100%,
    64% 63%,
    74% 60%,
    80% 56%,
    80% 44%
  );
  transform-origin: 65% 70%;
  animation: nova-thumb-gesture 8s ease-in-out infinite;
}
nova-mascot .nova-head .nova-wink-frame {
  mask-image: radial-gradient(
    ellipse 12% 12% at 57% 40%,
    #000 65%,
    transparent 100%
  );
  opacity: 0;
  animation: nova-eye-wink 8s linear infinite;
}
@keyframes nova-head-nod {
  0%,
  15%,
  36%,
  100% {
    transform: rotate(0deg);
  }
  22%,
  28% {
    transform: rotate(-3deg);
  }
  25% {
    transform: rotate(-1deg);
  }
}
@keyframes nova-thumb-gesture {
  0%,
  39%,
  70%,
  100% {
    transform: rotate(0deg);
  }
  47%,
  60% {
    transform: rotate(-10deg);
  }
  53% {
    transform: rotate(-5deg);
  }
}
@keyframes nova-eye-wink {
  0%,
  21%,
  25%,
  100% {
    opacity: 0;
  }
  21.8%,
  24% {
    opacity: 1;
  }
}
.nova-portrait {
  flex-basis: 190px;
}
.nova-portrait nova-mascot {
  width: 190px;
}
.nova-portrait > .nova-portrait-label {
  display: block;
  background: #223c31;
  color: white;
  border-radius: 22px;
  padding: 7px 12px;
  font-size: 13px;
}
.nova-portrait:hover nova-mascot .nova-arm {
  animation-duration: 3s;
}
.nova-avatar,
.nova-launcher > img,
.agent-card .avatar,
.auth-art > img,
.nova-greeting > img,
.inbox-empty > img {
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  animation: none;
  transform: none;
}
.nova-greeting nova-mascot {
  width: 150px;
}
.setup-companion nova-mascot {
  width: 92px;
}
.auth-art > nova-mascot {
  width: min(350px, 85%);
  margin: auto;
}
.ki-brand-lockup {
  display: block;
  flex-shrink: 0;
}
.brand .ki-brand-logo {
  display: block;
  width: 180px;
  height: auto;
  max-width: 100%;
  border-radius: 0;
}
.brand .ki-brand-lockup .brand-subtitle,
.brand .ki-brand-lockup .brand-product {
  display: block;
  padding-left: 51px;
  margin-top: -3px;
  letter-spacing: 0.04em;
  font-size: 9px;
  font-weight: 450;
}
.brand .ki-brand-lockup .brand-product {
  color: #a3aba0;
}
.legal-page > .brand {
  align-items: center;
}
.legal-page > .brand .brand-subtitle {
  margin-left: 0;
}
.landing-mascot {
  width: 80px;
  margin: -8px 0;
  pointer-events: none;
}
@media (max-width: 760px) {
  .brand .ki-brand-logo {
    width: 156px;
  }
  .brand .ki-brand-lockup .brand-subtitle,
  .brand .ki-brand-lockup .brand-product {
    padding-left: 44px;
    font-size: 8px;
  }
}
@media (max-width: 600px) {
  .nova-portrait {
    flex-basis: 112px;
  }
  .nova-portrait nova-mascot {
    width: 112px;
  }
  .nova-portrait > .nova-portrait-label {
    font-size: 11px;
    padding: 6px 8px;
  }
  .nova-home-main {
    gap: 15px;
    padding: 20px 16px;
  }
  .landing-mascot {
    width: 68px;
  }
}
@media (prefers-reduced-motion: reduce) {
  nova-mascot .nova-head,
  nova-mascot .nova-arm,
  nova-mascot .nova-head .nova-wink-frame {
    animation: none !important;
    transform: none;
  }
}

.nova-portrait:hover nova-mascot .nova-part img {
  transform: none;
}
