/* Animated background behind the whole site, dimmed so the content stays readable. */
.site-bg { position: fixed; inset: 0; z-index: -1; background: #000 url('/bg.gif') center / cover no-repeat; pointer-events: none; }
.site-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 30%, rgba(0,0,0,.35), rgba(0,0,0,.85)),
    rgba(0,0,0,.45);
}
:root[data-theme="light"] .site-bg::after { background: radial-gradient(ellipse 120% 90% at 50% 30%, rgba(9,9,9,.4), rgba(9,9,9,.85)); }

/* Hero: profile picture with a Discord invite link under it. */
.hero { display: grid; place-items: center; min-height: min(72svh, 680px); padding-block: 40px 56px; }
.profile { display: grid; justify-items: center; gap: 22px; }

/* Commission badge between the picture and the button. */
.profile .availability {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 4px; padding: 7px 12px;
  border: 1px solid rgba(74,222,128,.3); border-radius: 8px; background: rgba(74,222,128,.08);
  color: #d9f7e3; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.profile .availability > span { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: avail-pulse 2.4s ease-out infinite; }
@keyframes avail-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
}

.profile-avatar { position: relative; width: clamp(150px, 20vw, 210px); }
.profile-avatar::before {
  content: ''; position: absolute; inset: -14px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.profile-avatar .discord-avatar { width: 100%; border: 3px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.profile-avatar .discord-status {
  position: absolute; right: 7%; bottom: 7%; display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0; border: 5px solid #050505; border-radius: 50%; background: #050505;
}
.profile-avatar .status-dot { width: 100%; height: 100%; }

.discord-invite {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px;
  border: 1px solid #5865f2; border-radius: 10px; background: #5865f2;
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.discord-invite svg { width: 22px; height: 22px; fill: #fff; }
.invite-arrow { color: rgba(255,255,255,.8); transition: transform .2s ease; }
.discord-invite:hover { border-color: #6d78f5; background: #4752c4; box-shadow: 0 10px 30px rgba(88,101,242,.35); transform: translateY(-2px); }
.discord-invite:hover .invite-arrow { transform: translate(2px, -2px); }
.discord-invite:active { transform: scale(.97); }

@media (max-width: 640px) {
  .hero { min-height: 60svh; padding-block: 28px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-bg { background-image: none; }
  .discord-invite:hover, .discord-invite:hover .invite-arrow { transform: none; }
  .profile .availability > span { animation: none; }
}
