:root {
  color-scheme: dark;
  --page-bg: #07090e;
  --text-main: #f8fafc;
  --text-soft: #9299a8;
  --accent: #2f7df6;
  --accent-rgb: 47, 125, 246;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--accent-rgb), .055), transparent 24rem),
    linear-gradient(180deg, #090b11 0%, var(--page-bg) 100%);
  color: var(--text-main);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.contact-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  box-sizing: border-box;
  isolation: isolate;
  overflow: hidden;
}

.contact-message {
  width: min(680px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #63a4ff;
}

.contact-label__dot {
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.signal {
  position: relative;
  width: 104px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
}

.signal::before,
.signal::after,
.signal .signal__ring {
  content: "";
  position: absolute;
  inset: 50%;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(var(--accent-rgb), .48);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  animation: signal-wave 2.8s cubic-bezier(.18, .67, .32, 1) infinite;
}

.signal::after {
  animation-delay: .9s;
}

.signal .signal__ring {
  animation-delay: 1.8s;
}

.signal__core {
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 9px rgba(var(--accent-rgb), .075),
    0 0 18px rgba(var(--accent-rgb), .85),
    0 0 48px rgba(var(--accent-rgb), .45);
  animation: signal-breathe 1.9s ease-in-out infinite;
}

.contact-message h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(20px, 3.4vw, 28px);
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: -.025em;
}

.contact-message p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}

.page-ready .contact-message {
  animation: content-enter .65s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes signal-wave {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.55);
  }
  15% {
    opacity: .42;
  }
  80%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.15);
  }
}

@keyframes signal-breathe {
  0%, 100% {
    transform: scale(.92);
    filter: brightness(.92);
  }
  50% {
    transform: scale(1.08);
    filter: brightness(1.25);
  }
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .contact-screen {
    padding-inline: 24px;
  }

  .contact-label {
    margin-bottom: 20px;
  }

  .signal {
    width: 90px;
    margin-bottom: 28px;
  }

  .contact-message p {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
