.contact-band {
  --contact-ink: #fff;
  margin-top: 56px;
  scroll-margin-top: 90px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--accent);
  color: var(--contact-ink);
}

.contact-band__inner {
  box-sizing: border-box;
  min-height: 164px;
  padding: 29px 32px 31px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, .8fr) auto;
  align-items: center;
  gap: 34px;
}

.contact-band__copy {
  min-width: 0;
  max-width: 610px;
}

.contact-band__copy h2 {
  max-width: 25ch;
  margin: 0;
  font: 500 29px/1.18 "Space Grotesk", sans-serif;
  text-wrap: balance;
}

.contact-band__copy p {
  max-width: 61ch;
  margin: 11px 0 0;
  font-size: 16.5px;
  line-height: 1.5;
}

.contact-band__signal {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 300 / 186;
  color: var(--paper);
  --signal-rest: color-mix(in srgb, var(--paper) 34%, var(--accent));
}

.contact-band__part,
.contact-band__speaker,
.contact-band__speech,
.contact-band__audience {
  fill: var(--signal-rest);
}

.contact-band__part {
  transform: var(--assembled);
}

.contact-band__frame {
  fill: none;
  stroke: var(--paper);
  stroke-width: 1.5;
  opacity: .65;
}

.contact-band__frame--phone {
  opacity: 0;
}

.contact-band__chrome {
  fill: var(--paper);
  stroke: none;
}

.contact-band__speaker,
.contact-band__speech,
.contact-band__audience {
  transform-box: fill-box;
  transform-origin: center;
}

.contact-band__speech {
  transform-origin: left center;
}

.contact-band__link {
  position: relative;
  justify-self: end;
  padding: 8px 0 6px;
  color: inherit;
  font: 600 16px/1.25 "Space Grotesk", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.contact-band__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: .7;
  transition: opacity 160ms ease;
}

.contact-band__link:hover::after,
.contact-band__link:focus-visible::after {
  opacity: 1;
}

.contact-band__link span {
  display: inline-block;
  transition: transform 160ms ease;
}

.contact-band__link:hover span,
.contact-band__link:focus-visible span {
  transform: translateX(4px);
}

.contact-band__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .contact-band.is-motion-enabled .contact-band__part {
    animation: contact-assemble 14s cubic-bezier(.22, .8, .22, 1) infinite both;
    animation-delay: var(--signal-delay, 0ms);
    animation-play-state: paused;
  }

  .contact-band.is-motion-enabled .contact-band__frame {
    animation: contact-browser 14s ease-in-out infinite both;
    animation-play-state: paused;
  }

  .contact-band.is-motion-enabled .contact-band__frame--phone {
    animation-name: contact-phone;
  }

  .contact-band.is-motion-enabled .contact-band__speaker,
  .contact-band.is-motion-enabled .contact-band__speech,
  .contact-band.is-motion-enabled .contact-band__audience {
    animation: contact-listen 8.8s cubic-bezier(.2, .72, .22, 1) infinite both;
    animation-delay: var(--signal-delay, 0ms);
    animation-play-state: paused;
  }

  .contact-band.is-motion-enabled .contact-band__speech {
    animation-name: contact-speak;
  }

  .contact-band.is-animating .contact-band__part,
  .contact-band.is-animating .contact-band__frame,
  .contact-band.is-animating .contact-band__speaker,
  .contact-band.is-animating .contact-band__speech,
  .contact-band.is-animating .contact-band__audience {
    animation-play-state: running;
  }

  @keyframes contact-browser {
    0%, 14%, 53%, 100% { opacity: 0; }
    27%, 43% { opacity: .65; }
  }

  @keyframes contact-phone {
    0%, 53%, 96%, 100% { opacity: 0; }
    62%, 78% { opacity: .65; }
  }

  @keyframes contact-assemble {
    0%, 8%, 96%, 100% {
      fill: var(--signal-rest);
      transform: var(--loose);
    }
    27% {
      fill: var(--paper);
      transform: var(--assembled);
    }
    43% {
      fill: var(--signal-rest);
      transform: var(--assembled);
    }
    62% {
      fill: var(--paper);
      transform: var(--alternate);
    }
    78% {
      fill: var(--signal-rest);
      transform: var(--alternate);
    }
  }

  @keyframes contact-listen {
    0%, 4%, 36%, 100% {
      fill: var(--signal-rest);
      transform: scale(1);
    }
    14%, 20% {
      fill: var(--paper);
      transform: scale(1.12);
    }
  }

  @keyframes contact-speak {
    0%, 4% {
      opacity: 0;
      fill: var(--paper);
      transform: scaleX(.18);
    }
    12%, 23% {
      opacity: 1;
      fill: var(--paper);
      transform: scaleX(1);
    }
    38%, 78% {
      opacity: 1;
      fill: var(--signal-rest);
      transform: scaleX(1);
    }
    90%, 100% {
      opacity: 0;
      fill: var(--signal-rest);
      transform: scaleX(1);
    }
  }
}

@media (min-width: 1001px) {
  .contact-band__signal {
    max-width: calc(150px * 300 / 186);
    justify-self: center;
  }
}

@media (max-width: 1000px) {
  .contact-band__inner {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 20px 32px;
  }

  .contact-band__signal {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .contact-band__link {
    grid-column: 1;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .contact-band__inner {
    min-height: 0;
    padding: 30px 24px 32px;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .contact-band__copy h2 {
    font-size: 25px;
  }

  .contact-band__signal {
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 280px);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-band__link span,
  .contact-band__link::after {
    transition: none;
  }
}
