/* Syncromesh Arts — radar-scope theme */
:root {
  --bg: #000;
  --text: #e6f2e9;
  --phos: #3dff7f;            /* phosphor green from the radar artwork */
  --glow: rgba(61, 255, 127, 0.45);
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.4 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {               /* faint CRT scanlines */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,0.2) 2px 3px);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--phos); outline-offset: 4px; border-radius: 50%; }

/* rotating sweep, shared by both radar images */
.sweep::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 76%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0 300deg, rgba(61,255,127,0.2) 359deg, transparent 360deg);
  mix-blend-mode: screen;
  animation: sweep 6s linear infinite;
  pointer-events: none;
}
@keyframes sweep { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- home ---------- */
.home {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px 16px;
}
.home .scope {
  position: relative; margin: 0;
  width: min(88vw, 70vh, 560px); aspect-ratio: 1;
  -webkit-mask-image: radial-gradient(circle, #000 69%, transparent 72%);
          mask-image: radial-gradient(circle, #000 69%, transparent 72%);
}
.home .scope img { width: 100%; height: 100%; display: block; }
.names { display: flex; gap: 12px 40px; flex-wrap: wrap; justify-content: center; }
.names a {
  font-size: 20px; text-decoration: none; padding: 8px 4px;
  border-bottom: 1px solid rgba(61,255,127,0.35);
  transition: color .15s, text-shadow .15s;
}
.names a:hover { color: var(--phos); text-shadow: 0 0 12px var(--glow); }

/* ---------- contact pages ---------- */
.person { overflow: hidden; }
.radar {
  position: fixed; left: 50%; top: 50%;
  width: max(118vmin, 520px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: block;
}
.radar img { width: 100%; height: 100%; display: block; }
.card {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 34px; padding: 24px 16px;
}
h1 {
  margin: 0; text-align: center;
  font-weight: 600; font-size: clamp(30px, 8vw, 46px); letter-spacing: -0.01em;
  text-shadow: 0 0 18px rgba(0,0,0,0.9), 0 0 24px var(--glow);
}
.icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 360px; }
.ib, .back {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--phos);
  background: rgba(0, 12, 4, 0.55);
  border: 1px solid rgba(61,255,127,0.4);
  box-shadow: 0 0 16px rgba(61,255,127,0.15), inset 0 0 12px rgba(61,255,127,0.08);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  cursor: pointer; padding: 0; font: inherit;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.ib:hover, .back:hover { background: rgba(61,255,127,0.14); box-shadow: 0 0 22px var(--glow); }
.ib:active { transform: scale(0.94); }
.ib svg, .back svg { width: 24px; height: 24px; }
.back {
  position: fixed; z-index: 3;
  top: max(16px, env(safe-area-inset-top)); left: 16px;
  width: 46px; height: 46px;
}
.back svg { width: 20px; height: 20px; }

/* ---------- QR pop-up ---------- */
dialog { border: 0; padding: 14px; border-radius: 16px; background: #fff; }
dialog::backdrop { background: rgba(0,0,0,0.8); }
dialog .qr { width: min(70vw, 260px); aspect-ratio: 1; }
dialog .qr svg { display: block; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) { .sweep::after { animation: none; opacity: 0; } }

/* hide the white corners outside the round bezel */
.radar img {
  -webkit-mask-image: radial-gradient(circle closest-side, #000 96%, transparent 98%);
          mask-image: radial-gradient(circle closest-side, #000 96%, transparent 98%);
}
