:root {
  --bg: #111111;
  --card: #1b1b1b;
  --card-hi: #232323;
  --line: rgba(255, 255, 255, 0.07);
  --text: #f5f5f5;
  --muted: #a1a1a1;
  --sky: #7cc4ff;
  --ember: #ff7a45;
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* soft vignette so the dots fade toward the edges */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(17, 17, 17, 0.5) 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 460px);
  padding: clamp(48px, 10vh, 96px) 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- profile ---------- */

.profile {
  text-align: center;
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 22px;
  border-radius: 50%;
  z-index: 10;
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: transform;
}

.avatar.dragging { cursor: grabbing; }

.avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--sky), var(--ember), var(--sky));
  animation: spin 6s linear infinite;
  z-index: -1;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.28), transparent 70%);
  z-index: -2;
  filter: blur(6px);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  pointer-events: none;
}

.name {
  margin: 0;
  font-size: clamp(2.5rem, 11vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--sky) 0%, #ffffff 50%, var(--ember) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}

.tagline {
  margin: 12px 0 0;
  font-size: clamp(1rem, 4.2vw, 1.15rem);
  font-weight: 500;
  color: var(--muted);
}

.hl {
  color: var(--text);
}

/* ---------- links ---------- */

.links {
  width: 100%;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s, background 0.25s, box-shadow 0.25s;
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--i) * 90ms + 180ms);
}

/* spotlight that follows the cursor inside the card */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(255, 122, 69, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-3px);
  background: var(--card-hi);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.55);
}

.link:hover::before,
.link:focus-visible::before { opacity: 1; }

.link:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.link:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.3s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.link:hover .icon,
.link:focus-visible .icon {
  background: linear-gradient(135deg, var(--sky), var(--ember));
  color: #111;
  transform: rotate(-6deg) scale(1.05);
}

.text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.label {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.handle {
  font-size: 0.85rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  margin-left: auto;
  flex: none;
  color: var(--muted);
  transition: transform 0.25s, color 0.25s;
}

.arrow svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link:hover .arrow,
.link:focus-visible .arrow {
  color: var(--ember);
  transform: translate(3px, -3px);
}

/* ---------- footer ---------- */

.hint {
  margin: 36px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.8;
  animation: rise 0.7s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(255, 122, 69, 0.6);
  animation: pulse 2s infinite;
}

.foot {
  margin-top: 14px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- keyframes ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 122, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 69, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
