.contact-page,
.contact-view {
  background: #f8f8f8;
}

.contact-view {
  min-height: 100%;
  overflow: hidden;
}

.contact-header {
  z-index: 20;
}

.contact-header-cta {
  color: #f8f8f8;
  text-decoration: none;
}

.contact-main {
  height: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 104px clamp(24px, 5vw, 86px) 82px;
}

.contact-panel {
  position: relative;
  width: min(1320px, 88vw);
  min-height: clamp(220px, 28vh, 300px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 28vw, 420px) minmax(0, 1fr);
  align-items: stretch;
  background: transparent;
}

.contact-copy {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 64px);
}

.contact-intro {
  margin: 0;
}

.contact-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 3.4vw, 56px);
  font-weight: 600;
  line-height: 0.92;
}

.contact-intro {
  max-width: 30ch;
  color: #626262;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.35;
}

.contact-cube {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: clamp(300px, 32vw, 470px);
  height: clamp(340px, 45vh, 520px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-cube canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-channels {
  position: relative;
  z-index: 3;
  grid-column: 3;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(30px, 4vw, 64px);
}

.contact-channels a {
  min-height: 72px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: center;
  gap: 4px 12px;
  padding: 14px 18px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  color: #151515;
  background: #f8f8f8;
  text-decoration: none;
  transition: color 280ms ease, background-color 280ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-channels a:hover,
.contact-channels a:focus-visible {
  color: #f8f8f8;
  background: #151515;
  transform: translateX(-8px);
}

.channel-note {
  font-size: 9px;
  line-height: 1.1;
}

.channel-icon {
  grid-row: 1 / 3;
  align-self: center;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-channels strong {
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 500;
  line-height: 1;
}

.channel-note {
  color: #777;
}

.contact-footer {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 4vw, 64px);
  bottom: 24px;
  left: clamp(24px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  color: #747474;
  font-size: 10px;
}

@media (max-width: 760px) {
  .contact-header-cta {
    display: none;
  }

  .contact-main {
    height: auto;
    min-height: 100svh;
    padding: 92px 18px 72px;
  }

  .contact-panel {
    width: 100%;
    min-height: 650px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 210px 1fr;
  }

  .contact-copy {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    padding: 32px 24px;
  }

  .contact-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(42px, 13vw, 58px);
  }

  .contact-cube {
    top: 49%;
    width: 280px;
    height: 300px;
  }

  .contact-channels {
    grid-column: 1;
    grid-row: 3;
    align-content: end;
    gap: 10px;
    padding: 24px;
  }

  .contact-channels a {
    min-height: 64px;
  }

  .contact-footer {
    right: 18px;
    bottom: 16px;
    left: 18px;
  }

  .contact-footer span:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-channels a {
    transition: none;
  }
}

