:root {
  --bg: #0a0a0b;
  --bg-radial: #141417;
  --card: #141417;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f3;
  --muted: #8a8a92;
  --accent: #f6821f; /* Cloudflare orange, used sparingly */
  --hover: rgba(255, 255, 255, 0.06);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(
      1200px 600px at 50% -10%,
      var(--bg-radial),
      transparent 70%
    ),
    var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px 20px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.avatar {
  width: 256px;
  height: 256px;
  margin: 0 auto 22px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), #ffb56b);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #222;
  border: 3px solid var(--card);
}

.name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.role {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.role-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 130, 31, 0.5);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.role-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contacts {
  margin: 26px 0 22px;
}

.contact-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border: 1px dashed var(--card-border);
  border-radius: 14px;
}

.contact-hint {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

.contact-hint.is-error {
  color: #ff6b6b;
}

.cf-turnstile {
  min-height: 65px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.18s ease, transform 0.18s ease;
}

.contact-list a:hover {
  background: var(--hover);
}

.contact-list a:active {
  transform: scale(0.99);
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-list .icon {
  color: var(--accent);
}

.vcard-ready {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.vcard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  color: #0a0a0b;
  background: linear-gradient(135deg, var(--accent), #ffb56b);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.vcard-btn:hover {
  filter: brightness(1.05);
}

.vcard-btn:active {
  transform: scale(0.99);
}

.vcard-btn .icon {
  color: #0a0a0b;
}

.socials {
  display: flex;
  gap: 10px;
}

.social {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.social:hover {
  background: var(--hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.social:active {
  transform: scale(0.99);
}

.footer {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

@media (max-width: 420px) {
  .card {
    padding: 32px 22px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
}
