body.contact-body {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: radial-gradient(circle at top, rgba(0, 255, 221, 0.08), transparent 55%), #080808;
  color: #e7f8ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem) 4rem;
  overflow-x: hidden;
  position: relative;
  text-align: center;
}

a.back-link {
  align-self: center;
  margin-bottom: 1.5rem;
  color: #00fff4;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
  z-index: 2;
}

a.back-link::before {
  content: "←";
  font-size: 1rem;
}

a.back-link:hover,
a.back-link:focus-visible {
  color: #7dfffa;
  outline: none;
}

#contact-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.hidden-clue-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  padding: 14px;
  border: 0;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  background: transparent;
  opacity: 0.85;
  cursor: pointer;
  z-index: 16;
  pointer-events: auto;
  touch-action: manipulation;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.hidden-clue-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 255, 0.45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
}

.hidden-clue-dot::after {
  --hidden-dot-shadow: 0 0 6px rgba(0, 255, 255, 0.45), 0 0 12px rgba(0, 140, 160, 0.28);
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(170, 255, 255, 0.94) 0%,
    rgba(0, 206, 214, 0.65) 55%,
    rgba(0, 40, 48, 0) 100%
  );
  box-shadow: var(--hidden-dot-shadow);
  opacity: 0.9;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: box-shadow 0.35s ease, opacity 0.35s ease;
  animation: hiddenClueIridescence 6.4s ease-in-out infinite;
}

.hidden-clue-dot.is-revealing {
  opacity: 0;
  pointer-events: none;
}

.hidden-clue-dot.is-revealing::after,
.hidden-clue-dot.is-revealing::before {
  opacity: 0;
  animation-play-state: paused;
}

.hidden-clue-dot.is-scramble-locked {
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.hidden-clue-dot.is-dormant {
  opacity: 0;
  pointer-events: none;
  animation-play-state: paused;
}

.hidden-clue-dot.is-dormant::after {
  animation-play-state: paused;
  opacity: 0;
}

.hidden-clue-dot.is-triggered {
  transform: translate3d(-50%, -50%, 0) scale(1.25);
}

.hidden-clue-dot.is-triggered::after {
  --hidden-dot-shadow: 0 0 9px rgba(0, 255, 255, 0.6), 0 0 16px rgba(0, 210, 230, 0.38);
  opacity: 1;
}

.hidden-clue-dot.is-triggered::before {
  animation: hiddenClueRipple 0.8s ease-out;
}

.hidden-clue-dot:focus-visible {
  outline: 2px solid rgba(0, 255, 234, 0.9);
  outline-offset: 4px;
}

.hidden-clue-dot:active {
  opacity: 1;
}

.hidden-clue-dot:active::after {
  --hidden-dot-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 18px rgba(0, 210, 225, 0.45);
  opacity: 1;
}

@keyframes hiddenClueIridescence {
  0% {
    filter: hue-rotate(0deg) brightness(0.95);
  }
  45% {
    filter: hue-rotate(16deg) brightness(1.08);
  }
  100% {
    filter: hue-rotate(-8deg) brightness(0.98);
  }
}

@keyframes hiddenClueRipple {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.4);
  }
  60% {
    opacity: 0.18;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.65);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hidden-clue-dot {
    transition: none;
  }

  .hidden-clue-dot::after {
    animation: none;
    transition: none;
  }

  .hidden-clue-dot::before {
    animation: none;
  }
}

.contact-wrapper {
  width: min(980px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
  align-items: center;
}

header.contact-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6ffff;
}

header.contact-header p {
  max-width: 640px;
  line-height: 1.7;
  color: rgba(223, 255, 251, 0.8);
  margin-top: 0.75rem;
  font-size: 1rem;
}

.relay-container {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  justify-items: center;
  text-align: center;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3rem);
}

.relay-core {
  position: relative;
  width: clamp(160px, 32vw, 220px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.18), rgba(0, 0, 0, 0.6));
  border: 1px solid rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 22px rgba(0, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.relay-core:focus-visible {
  outline: 2px solid #00ffea;
  outline-offset: 4px;
}

.relay-core::before,
.relay-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 255, 0.2);
  inset: 10%;
  transition: transform 1.2s ease, opacity 1s ease;
}

.relay-core::after {
  inset: 24%;
  border-color: rgba(0, 255, 221, 0.45);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.45);
}

.relay-core .core-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 255, 0.65);
  box-shadow: inset 0 0 12px rgba(0, 255, 255, 0.5);
  color: #eaffff;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  text-transform: uppercase;
}

.relay-core .core-glyph::after {
  content: "SYNC";
}

.relay-core:hover {
  transform: scale(1.04);
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.3);
}

.relay-core.is-active {
  box-shadow: 0 0 40px rgba(0, 255, 245, 0.42), 0 0 120px rgba(0, 195, 255, 0.25);
}

.relay-core.is-active::before {
  transform: scale(1.15) rotate(8deg);
  opacity: 0.6;
}

.relay-core.is-active::after {
  transform: scale(0.85) rotate(-12deg);
  opacity: 0.85;
}

.relay-hint {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(170, 255, 255, 0.7);
  margin: 0;
}

.relay-status {
  font-size: 0.95rem;
  color: rgba(204, 255, 255, 0.75);
  text-align: center;
  letter-spacing: 0.08em;
}

.relay-progress {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.relay-progress .progress-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 255, 0.25);
  position: relative;
  transition: all 0.4s ease;
  box-shadow: inset 0 0 4px rgba(0, 255, 255, 0.18);
}

.progress-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(0, 255, 247, 0.2);
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: scale(0.2);
  opacity: 0.15;
}

.progress-dot.is-active::after {
  background: rgba(0, 255, 247, 0.55);
  transform: scale(1);
  opacity: 0.9;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

.progress-dot.is-complete {
  border-color: rgba(0, 255, 200, 0.7);
  box-shadow: 0 0 18px rgba(0, 255, 200, 0.35);
}

.progress-dot.is-complete::after {
  background: rgba(142, 255, 239, 0.9);
  transform: scale(1);
  opacity: 1;
}

.contact-info {
  background: rgba(4, 28, 34, 0.78);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 18px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.6s ease, box-shadow 0.6s ease,
    transform 0.6s ease, background 0.6s ease;
}

.contact-signal {
  position: absolute;
  bottom: clamp(0.85rem, 3vw, 1.6rem);
  left: 50%;
  transform: translate(-50%, 18px);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(0, 36, 42, 0.85);
  border: 1px solid rgba(0, 255, 255, 0.35);
  color: rgba(200, 255, 255, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.035;
  transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease;
  pointer-events: none;
  max-width: min(90%, 26rem);
  line-height: 1.6;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  text-align: center;
  z-index: 5;
  display: none;
  white-space: pre-wrap;
  filter: brightness(0.45) contrast(0.6) saturate(0.65);
}

.contact-signal.has-content {
  display: block;
  pointer-events: auto;
  opacity: 0.045;
  cursor: help;
}

.contact-signal.is-floating {
  position: fixed;
  inset: auto;
  top: var(--signal-top, 50%);
  left: var(--signal-left, 50%);
  bottom: auto;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
  z-index: 18;
  filter: brightness(0.7) contrast(0.85) saturate(0.75);
}

.contact-signal.is-floating.has-content {
  display: block;
}

.contact-signal.is-floating.is-visible {
  opacity: 0.96;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  filter: brightness(1.08) contrast(1.12) saturate(1.08);
}

.contact-signal.is-floating.is-active {
  opacity: 1;
  z-index: 22;
}

.contact-signal.is-active {
  animation: signal-flicker 1.75s steps(3, end) infinite,
    signal-shift 6.4s ease-in-out infinite;
}

.contact-signal.is-scrambling {
  letter-spacing: 0.24em;
  filter: contrast(1.35) saturate(1.2);
}

.contact-info:hover .contact-signal.has-content:not(.is-floating),
.contact-info:focus-within .contact-signal.has-content:not(.is-floating) {
  opacity: 0.12;
  transform: translate(-50%, 10px);
  filter: brightness(0.55) contrast(0.75) saturate(0.75);
}

.contact-info:hover .contact-signal.is-active:not(.is-floating),
.contact-info:focus-within .contact-signal.is-active:not(.is-floating) {
  opacity: 0.18;
}

.contact-signal.has-content:is(:hover, :focus-visible) {
  opacity: 0.6;
  transform: translate(-50%, 0);
  filter: brightness(0.85) contrast(1.1) saturate(1.1);
}

.contact-info::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(
      circle at top,
      rgba(0, 255, 255, 0.22),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(0, 37, 44, 0.6), rgba(0, 0, 0, 0.3));
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

@keyframes signal-flicker {
  0% {
    opacity: 0.65;
  }
  28% {
    opacity: 0.82;
  }
  46% {
    opacity: 0.68;
  }
  72% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.75;
  }
}

@keyframes signal-shift {
  0% {
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.45),
      0 0 18px rgba(0, 180, 255, 0.25);
    letter-spacing: 0.2em;
  }
  50% {
    text-shadow: 0 0 12px rgba(0, 255, 200, 0.6),
      0 0 32px rgba(0, 120, 255, 0.35);
    letter-spacing: 0.3em;
  }
  100% {
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4),
      0 0 20px rgba(0, 140, 255, 0.28);
    letter-spacing: 0.22em;
  }
}

.contact-info > *:not(.contact-signal) {
  position: relative;
  z-index: 1;
}

.contact-info h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e8feff;
}

.contact-info p.tagline {
  margin-top: 0.5rem;
  color: rgba(180, 240, 250, 0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.contact-details {
  position: relative;
  margin-top: 1.75rem;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  opacity: 0.35;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.8s ease;
}

.contact-details::before {
  content: "";
  position: absolute;
  inset: -0.85rem;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.contact-details.is-highlighted::after {
  content: "";
  position: absolute;
  inset: -0.65rem;
  border-radius: 16px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(86, 255, 240, 0.45), rgba(0, 28, 36, 0.1) 55%, rgba(0, 12, 18, 0));
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.35);
  animation: contact-highlight-glow 2.2s ease-out forwards;
  z-index: 0;
}

.contact-details > div {
  position: relative;
  width: min(100%, 420px);
  z-index: 1;
}

.contact-details dt {
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(0, 255, 255, 0.7);
}

.contact-details dd {
  margin: 0.25rem 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: #f5ffff;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.contact-details dd,
.contact-details dd a {
  max-width: 100%;
  display: inline-block;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
}

.contact-details a {
  color: #9bfff5;
  text-decoration: none;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: #c9fffb;
  text-decoration: underline;
  outline: none;
}

.contact-info.is-locked .contact-details {
  pointer-events: none;
  user-select: none;
}

.contact-info.is-locked .contact-details::before {
  opacity: 1;
  background: linear-gradient(140deg, rgba(0, 32, 36, 0.45), rgba(0, 10, 18, 0.6));
  border: 1px dashed rgba(102, 255, 239, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.12);
}

.contact-info.is-locked::after {
  content: "COORDINATES SEALED";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(102, 255, 239, 0.55);
  background: linear-gradient(135deg, rgba(0, 66, 66, 0.5), rgba(1, 12, 20, 0.7));
  backdrop-filter: blur(8px);
  z-index: 2;
}

.contact-info.is-unlocked .contact-details {
  opacity: 1;
  transform: translateY(0);
}

.contact-info.is-unlocked .contact-details::before {
  opacity: 0;
}


.contact-info.is-unlocked {
  background: rgba(6, 40, 48, 0.88);
  border-color: rgba(0, 255, 222, 0.6);
  box-shadow: 0 0 45px rgba(0, 255, 255, 0.28),
    0 30px 90px rgba(0, 0, 0, 0.45);
  transform: translateY(-6px) scale(1.01);
}

.contact-info.is-unlocked::before {
  opacity: 0.65;
  transform: scale(1);
  animation: contact-glow 1.8s ease-out forwards;
}

.contact-info.is-unlocked.is-spotlight {
  transform: translateY(-10px) scale(1.025);
  box-shadow: 0 0 65px rgba(0, 255, 255, 0.35),
    0 40px 110px rgba(0, 0, 0, 0.55);
}

.contact-info.is-unlocked.is-spotlight::before {
  opacity: 0.9;
}

.contact-info.is-unlocked .tagline {
  color: rgba(198, 255, 255, 0.78);
  letter-spacing: 0.16em;
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.45);
}

.contact-info.is-unlocked .contact-details {
  opacity: 1;
}

.contact-info.is-unlocked .contact-details dt {
  color: rgba(0, 255, 230, 0.82);
}

.contact-info.is-unlocked .contact-details dd {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.contact-info h2:focus-visible {
  outline: 2px solid rgba(0, 255, 222, 0.6);
  outline-offset: 6px;
}

@keyframes contact-highlight-glow {
  0% {
    opacity: 1;
    transform: scale(0.96);
  }
  40% {
    opacity: 0.85;
    transform: scale(1.01);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes contact-glow {
  0% {
    opacity: 0.95;
    transform: scale(0.86);
  }
  45% {
    opacity: 0.85;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
}

footer {
  text-align: center;
  color: rgba(140, 200, 206, 0.45);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

@media (prefers-reduced-motion: reduce) {
  .contact-info,
  .contact-details {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .contact-signal,
  .contact-signal::before,
  .contact-signal::after {
    animation: none !important;
    transition: none !important;
    filter: none !important;
  }
}

footer a {
  color: #63fef1;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
  color: #a5fff7;
  outline: none;
}

@media (max-width: 720px) {
  .relay-core {
    width: clamp(140px, 48vw, 180px);
  }

  .contact-details {
    gap: 1.5rem;
  }

  .contact-info {
    padding: 1.5rem;
  }
}

@media (max-width: 520px) {
  .contact-details dt {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
  }

  .contact-details dd {
    font-size: clamp(1rem, 5vw, 1.2rem);
    letter-spacing: 0.02em;
  }
}

.no-js-contact {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  background: rgba(0, 18, 25, 0.85);
  color: #dff;
  letter-spacing: 0.08em;
}

.no-js-contact a {
  color: #9bfff5;
}
