/* Homepage scientific identity: scoped to the About page component. */
.qs-about-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  margin-bottom: 1.35rem;
}

.qs-about-identity-copy {
  min-width: 0;
}

/* Align the top of the circular animation with the opening scientific
   identity heading in the left column. */
.qs-about-identity-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 0;
  min-width: 0;
}

.qs-marine-identity {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  background: #0b1320;
  contain: layout paint;
}

.qs-marine-identity canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Keep the visual subordinate to the text when the content column narrows. */
@media (max-width: 1280px) {
  .qs-about-identity {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
    gap: 1.75rem;
  }

  .qs-about-identity-visual {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .qs-about-identity {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .qs-about-identity-visual {
    margin-top: 0.25rem;
  }

  .qs-marine-identity {
    width: min(78vw, 320px);
  }
}

@media (max-width: 520px) {
  .qs-marine-identity {
    width: min(84vw, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qs-marine-identity {
    scroll-behavior: auto;
  }
}
