.about-hero {
  overflow: hidden;
  background: var(--color-black);
}

.about-hero__inner {
  position: relative;
  display: grid;
  height: 100%;
  gap: var(--space-5);
  align-items: start;
}

.about-hero__copy {
  position: relative;
  z-index: 1;
  align-self: start;
}

.about-hero h1 {
  margin-bottom: 1.25rem;
  font-size: var(--type-hero-font-size);
  font-weight: var(--type-hero-font-weight);
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
}

.about-hero h1 span {
  display: block;
}

.about-hero__copy p {
  max-width: 44rem;
  margin-bottom: 0.75rem;
  color: var(--color-copy);
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
}

.text-link {
  color: var(--color-green);
  font-weight: var(--type-body-strong-font-weight);
  text-decoration: none;
}

.about-hero__visual {
  position: absolute;
  right: -1.875rem;
  bottom: -2.3rem;
  width: min(65vw, 17.5rem);
  aspect-ratio: 564 / 470;
  overflow: visible;
  pointer-events: none;
  perspective: 75rem;
}

.about-hero__float {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: about-breathe 1.8s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
  will-change: transform;
}

.about-hero__image {
  --about-logo-render-fade-duration: 800ms;

  position: absolute;
  top: 14%;
  left: 50%;
  width: 80%;
  aspect-ratio: 1 / 1;
  max-width: none;
  transform:
    translateX(-50%)
    rotateX(var(--about-logo-tilt-x, 0deg))
    rotateY(var(--about-logo-tilt-y, 0deg));
  transform-origin: center;
  transform-style: preserve-3d;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.about-hero__image-source,
.about-hero__image-render {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity var(--about-logo-render-fade-duration) ease;
  will-change: opacity;
}

.about-hero__image-source {
  opacity: 1;
}

.about-hero__image-render {
  opacity: 0;
}

.about-hero__image.is-render-visible .about-hero__image-source {
  opacity: 0;
}

.about-hero__image.is-render-visible .about-hero__image-render {
  opacity: 1;
}

@keyframes about-breathe {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -0.75rem, 0);
  }
}

.about-panel {
  overflow-x: clip;
  background: var(--color-black);
}

.about-section h2 {
  /* max-width: 55rem; */
  margin-bottom: var(--space-5);
  font-size: var(--type-title-font-size);
}

.threat-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.about-copy {
  color: var(--color-copy);
}

.about-copy p + p {
  margin-top: var(--space-4);
}

.threat-grid__image {
  width: 100%;
  border-radius: var(--radius-sm);
}

.defense-grid {
  display: grid;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: center;
}

.defense-diagram {
  margin: 0;
}

.defense-diagram__visual {
  transform: scale(1.2);
  position: relative;
  width: min(100%, 41rem);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.defense-diagram__gear {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75%;
  opacity: 0.2;
  transform: translate(-50%, -50%);
}

.defense-diagram__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  transform: translate(-50%, -50%);
}

.defense-diagram__labels {
  position: absolute;
  inset: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.defense-diagram__labels li {
  position: absolute;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(48, 230, 107, 0.35);
  border-radius: 0.2rem;
  background: rgba(3, 255, 92, 0.05);
  font-size: calc(var(--type-body-font-size) / 1.2);
  text-align: center;
  animation: about-breathe 1.8s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
  will-change: transform;
  transform: translate(-50%, -50%);
}

.defense-diagram__labels li:nth-child(1) {
  top: 24%;
  left: 11%;
}

.defense-diagram__labels li:nth-child(2) {
  top: 20%;
  right: 13%;
}

.defense-diagram__labels li:nth-child(3) {
  bottom: 25%;
  left: 11%;
}

.defense-diagram__labels li:nth-child(4) {
  bottom: 30%;
  right: 11%;
}

.defense-diagram__labels li:nth-child(5) {
  bottom: 10%;
  left: 34%;
}

.defense-features {
  display: grid;
  gap: var(--space-5);
}

.defense-feature h3 {
  margin-bottom: var(--space-2);
  color: var(--color-green);
  font-size: var(--type-subtitle-font-size);
}

.defense-feature p {
  margin: 0;
  color: var(--color-copy);
}

@media (max-width: 47.999rem) {
  .defense-diagram__labels li:nth-child(2) {
    top: 13%;
    right: 13%;
  }

  .defense-diagram__labels li:nth-child(3) {
    bottom: 20%;
    left: 11%;
  }
}

@media (min-width: 47.5rem) {
  .about-hero h1 {
    width: max-content;
  }

  .about-hero h1 span {
    white-space: nowrap;
  }
}

@media (min-width: 48rem) {
  .about-hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    align-items: end;
  }

  .about-hero__copy {
    margin-top: 1.25rem;
  }

  .about-hero__visual {
    position: static;
    width: min(100%, 30rem);
    margin-inline: auto;
  }

  .threat-grid {
    grid-template-columns:
      minmax(0, 1fr)
      clamp(24rem, calc(75vw - 12rem), 27rem);
    gap: clamp(2rem, calc(12.5vw - 4rem), 4rem);
  }

  .defense-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .threat-grid__image {
    order: 2;
    max-width: 27rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .about-hero__float {
    animation: none;
  }

  .defense-diagram__labels li {
    animation: none;
  }

  .about-hero__image {
    transition: none;
  }

  .about-hero__image-source,
  .about-hero__image-render {
    transition: none;
  }

}

@media (min-width: 64rem) {
  .about-section h2 {
    margin-bottom: 1rem;
  }

  .threat-grid {
    gap: clamp(4rem, 4vw, 8rem);
  }

  .defense-grid {
    gap: clamp(5rem, 7vw, 10rem);
  }
}
