:root {
  --bg: #000;
  --text: #e9e9e9;
  --muted: #8a8a8a;
  --faint: #3a3a3a;
  --line: #4a4a4a;
  --button: #2a2a2a;
  --button-hover: #3d3d3d;
  --tile: #111;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  overflow-x: hidden;
}

:root { --fade: 1.6s; }

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
}

.slide {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) blur(3px) brightness(0.35);
  opacity: 0;
  transition: opacity var(--fade) ease;
}

.slide.show { opacity: 1; }

/* Darker edges so the card stays easy to read. */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 100%);
}

.card {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: rise 0.8s ease-out both;
}

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

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px #222, 0 0 40px rgba(255, 255, 255, 0.06);
}

h1 { margin: 10px 0 0; line-height: 0; }

.signature {
  width: min(280px, 80vw);
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

.divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0;
}

.divider span {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divider img {
  width: 26px;
  height: auto;
  opacity: 0.7;
}

.icons {
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.icons a {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--button);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background 0.15s, transform 0.15s;
}

.icons a:hover,
.icons a:focus-visible {
  background: var(--button-hover);
  transform: translateY(-2px);
}

.icons svg { width: 20px; height: 20px; fill: currentColor; }

/* Label that appears above each icon on hover, like a tooltip. */
.icons a::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}

.icons a:hover::after,
.icons a:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%);
}

.profile {
  margin-top: 12px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: rgba(12, 12, 12, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid #1c1c1c;
  color: inherit;
  text-decoration: none;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.profile:hover,
.profile:focus-visible { border-color: #3a3a3a; background: rgba(24, 24, 24, 0.85); }

.profile img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #1e1e1e;
  object-fit: contain;
}

.who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.who strong { font-size: 1rem; }
.who small { color: var(--muted); font-size: 0.82rem; }

.tag {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

footer {
  margin-top: 6px;
  color: var(--faint);
  font-size: 0.85rem;
}

a:focus-visible { outline: 2px solid #777; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .icons a, .profile { transition: none; }
}
