:root {
  --bg: #020306;
  --text: #f8f8fb;
  --muted: rgba(237, 239, 247, 0.72);
  --border: rgba(255, 255, 255, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 107, 39, 0.08), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(11, 11, 16, 0.62), transparent 40%),
    linear-gradient(180deg, #010103 0%, #04050a 46%, #05060a 100%);
  color: var(--text);
  overflow: hidden;
}

body.loaded .page-fade {
  opacity: 0;
  pointer-events: none;
}

body.loaded .profile-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

a {
  color: inherit;
  text-decoration: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-fade {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #020204;
  transition: opacity 0.9s ease;
}

.background-media {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.background-video,
.background-overlay,
.background-vignette {
  position: absolute;
  inset: 0;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  opacity: 1;
  filter: brightness(0.72) saturate(1.06) contrast(1.02);
}

.background-overlay {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 138, 79, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(8, 8, 13, 0.38) 0%, rgba(5, 6, 12, 0.46) 100%);
}

.background-vignette {
  background:
    radial-gradient(circle at center, transparent 32%, rgba(0, 0, 0, 0.18) 65%, rgba(0, 0, 0, 0.42) 100%);
}

.site-header {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 10;
  padding: 2rem 2.5rem;
}

.brand {
  font-size: clamp(1.05rem, 1vw + 0.95rem, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7rem 1.5rem 2rem;
}

.profile-panel {
  width: min(100%, 38rem);
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  text-align: center;
  opacity: 0;
  transform: translateY(28px) scale(0.94);
  transition:
    opacity 1.05s ease,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.05s ease;
  filter: blur(10px);
  background: none;
  box-shadow: none;
  border: 0;
}

.avatar {
  position: relative;
  width: 7.6rem;
  height: 7.6rem;
  overflow: visible;
}

.avatar img {
  display: block;
}

#profile-avatar {
  position: relative;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.46),
    0 0 30px rgba(255, 255, 255, 0.08),
    0 0 44px rgba(255, 102, 0, 0.12);
  object-fit: cover;
  object-position: center;
}

.avatar-decoration {
  /* Final manually tuned Discord-like alignment. Do not change these values
     unless explicitly requested, and do not replace them with responsive or
     computed positioning logic. */
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 126%;
  height: 126%;
  display: none;
  opacity: 1;
  visibility: visible;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  object-fit: contain;
  pointer-events: none;
  filter: none;
  transform: translate(-56%, -48%) scale(1.08);
}

.avatar-decoration.is-visible {
  display: block;
}

.avatar img {
  width: 100%;
  height: 100%;
}

.profile-copy h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.profile-copy p {
  margin: 0.55rem 0 0;
  font-size: clamp(0.95rem, 1vw + 0.6rem, 1.05rem);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.bio {
  width: min(100%, 36rem);
  min-height: 7.5em;
  font-size: clamp(0.82rem, 0.72rem + 0.35vw, 0.96rem);
  line-height: 1.7;
  white-space: pre-line;
}

.typing-cursor {
  display: inline-block;
  width: 0.55ch;
  margin-left: 0.08rem;
  border-right: 1px solid rgba(248, 248, 251, 0.8);
  vertical-align: -0.08em;
  animation: blinkCursor 0.95s step-end infinite;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.social-link {
  position: relative;
  width: 2.95rem;
  height: 2.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0 0.95rem 0 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition:
    width 0.3s ease,
    padding 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.social-icon {
  width: 2.95rem;
  height: 2.95rem;
  min-width: 2.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex: 0 0 auto;
}

.social-svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.social-label {
  display: inline-block;
  max-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-10px);
  transition:
    max-width 0.3s ease,
    opacity 0.28s ease,
    transform 0.28s ease;
}

.roblox-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1) contrast(2) saturate(0);
}

.social-link:hover,
.social-link:focus-visible {
  width: 8.2rem;
  padding-right: 1.2rem;
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 178, 129, 0.32);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(255, 122, 24, 0.18);
}

.social-link:hover .social-label,
.social-link:focus-visible .social-label {
  max-width: 4.3rem;
  opacity: 1;
  transform: translateX(0);
}

.social-link:focus-visible {
  outline: 2px solid rgba(255, 172, 126, 0.7);
  outline-offset: 3px;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }
  to {
    transform: translate3d(-4%, -2%, 0) scale(1.04);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(2rem, -1rem, 0);
  }
}

@keyframes blinkCursor {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
  }

  .site-header {
    padding: 1.25rem 1.2rem;
  }

  .hero {
    padding-top: 5.5rem;
    padding-bottom: 2.4rem;
  }

  .avatar {
    width: 6.6rem;
    height: 6.6rem;
  }

  .bio {
    width: min(100%, 32rem);
  }

  .socials {
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .profile-panel {
    gap: 1.15rem;
  }

  .social-link,
  .social-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .social-link {
    padding-right: 0.85rem;
  }

  .social-label {
    font-size: 0.84rem;
  }

  .bio {
    min-height: 8.6em;
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .social-link:hover,
  .social-link:focus-visible {
    width: 7.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
