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

:root {
  --bg: #030304;
  --bg-card: rgba(12, 12, 14, 0.84);
  --silver: #d8d8d8;
  --silver-soft: rgba(255, 255, 255, 0.18);
  --red: #f5f5f5;
  --red-bright: #ffffff;
  --red-glow: rgba(255, 255, 255, 0.28);
  --white: #f5f5f5;
  --muted: #b9b9b9;
  --green: #3ddc84;
  --border: rgba(255, 255, 255, 0.16);
  --radius: 14px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 255, 255, 0.08), transparent 68%),
    linear-gradient(180deg, #050506 0%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 44%, rgba(255, 255, 255, 0.08) 0%, transparent 68%),
    url("assets/reis-logo-transparent.png") center / min(72vw, 720px) no-repeat;
  opacity: 0.18;
}

.music-controls {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.72);
  box-shadow: none;
}

.music-toggle {
  min-width: 72px;
  padding: 0.48rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
}

.music-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 0.35rem;
  color: var(--muted);
}

.volume-control span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.volume-control input {
  width: 72px;
  accent-color: var(--white);
  cursor: pointer;
}

.home-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 65% 55% at 50% 45%, rgba(255, 255, 255, 0.1), transparent 65%),
    rgba(3, 3, 4, 0.92);
  transition: opacity 0.65s ease, visibility 0.65s ease, transform 0.65s ease;
}

.home-screen--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

.home-screen[hidden],
.loading-overlay[hidden] {
  display: none;
}

.enter-site {
  display: grid;
  place-items: center;
  width: min(78vw, 520px);
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.22));
  animation: logo-intro 1.1s ease-out both, logo-float 4s ease-in-out 1.1s infinite;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.enter-site:hover,
.enter-site:focus-visible {
  transform: scale(1.04);
  filter: drop-shadow(0 0 46px rgba(255, 255, 255, 0.36));
  outline: none;
}

.home-logo {
  display: block;
  width: 100%;
  height: auto;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(3, 3, 4, 0.72);
  transition: opacity 0.5s ease, visibility 0.5s ease;
  will-change: opacity;
}

.loading-overlay--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-panel {
  width: min(86vw, 360px);
  text-align: center;
}

.loading-logo {
  width: 120px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.25));
}

.loading-label,
.loading-count {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loading-label {
  margin-bottom: 0.85rem;
  color: var(--white);
}

.loading-progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  appearance: none;
}

.loading-progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.06);
}

.loading-progress::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, #8f8f8f, #ffffff, #c7c7c7);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.34);
  transition: width 0.25s ease;
}

.loading-progress::-moz-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f8f8f, #ffffff, #c7c7c7);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.34);
}

.loading-count {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes logo-intro {
  from {
    opacity: 0;
    transform: scale(0.86);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logo-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-height);
  padding: 0 2rem;
  background: rgba(8, 6, 8, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, #8b1028 100%);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 0 20px var(--red-glow);
}

.brand-name {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link--active {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 24px var(--red-glow);
}

.btn-login {
  flex-shrink: 0;
  padding: 0.5rem 1.35rem;
  border: 1.5px solid var(--white);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-login:hover {
  background: var(--white);
  color: var(--bg);
}

.main {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem 3.5rem;
  max-width: 1320px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

.site-entered .main {
  opacity: 1;
  transform: translateY(0);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.member-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 38%),
    var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 34px rgba(0, 0, 0, 0.38);
  animation: card-reveal 0.65s ease-out both;
  animation-delay: var(--card-delay, 0ms);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  content-visibility: auto;
  contain-intrinsic-size: 260px;
}

.members-grid .member-card {
  cursor: pointer;
}

.members-grid .member-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 4px;
}

.members-grid .member-card:nth-child(1) {
  animation-delay: 0ms;
}

.members-grid .member-card:nth-child(2) {
  animation-delay: 45ms;
}

.members-grid .member-card:nth-child(3) {
  animation-delay: 90ms;
}

.members-grid .member-card:nth-child(4) {
  animation-delay: 135ms;
}

.members-grid .member-card:nth-child(5) {
  animation-delay: 180ms;
}

.members-grid .member-card:nth-child(6) {
  animation-delay: 225ms;
}

.members-grid .member-card:nth-child(7) {
  animation-delay: 270ms;
}

.members-grid .member-card:nth-child(8) {
  animation-delay: 315ms;
}

.members-grid .member-card:nth-child(9) {
  animation-delay: 360ms;
}

.members-grid .member-card:nth-child(10) {
  animation-delay: 405ms;
}

.members-grid .member-card:nth-child(11) {
  animation-delay: 450ms;
}

.members-grid .member-card:nth-child(12) {
  animation-delay: 495ms;
}

.members-grid .member-card:nth-child(13) {
  animation-delay: 540ms;
}

.members-grid .member-card:nth-child(14) {
  animation-delay: 585ms;
}

.members-grid .member-card:nth-child(n + 15) {
  animation-delay: 600ms;
}

.member-card::before {
  display: none;
}

.member-card--border-glow {
  border-color: rgba(255, 255, 255, 0.62);
  animation:
    card-reveal 0.65s ease-out both,
    profile-border-glow 2.6s ease-in-out infinite;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 44px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(255, 255, 255, 0.16);
}

.member-card--border-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: inherit;
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.12),
    0 0 18px rgba(255, 255, 255, 0.16);
  opacity: 0.76;
  animation: profile-border-scan 3.2s linear infinite;
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 42px rgba(0, 0, 0, 0.48),
    0 0 18px rgba(255, 255, 255, 0.12);
}

@keyframes profile-border-glow {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 14px 44px rgba(0, 0, 0, 0.48),
      0 0 16px rgba(255, 255, 255, 0.1);
  }

  50% {
    border-color: rgba(255, 255, 255, 0.86);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 16px 50px rgba(0, 0, 0, 0.5),
      0 0 34px rgba(255, 255, 255, 0.28);
  }
}

@keyframes profile-border-scan {
  0%,
  100% {
    opacity: 0.48;
    filter: hue-rotate(0deg);
  }

  50% {
    opacity: 0.95;
    filter: hue-rotate(18deg);
  }
}

.card-banner {
  position: relative;
  height: 84px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(120, 120, 120, 0.14) 48%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, #1a1a1d 0%, #09090b 100%);
  overflow: hidden;
}

.card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/reis-logo-transparent.png") center / 135px no-repeat;
  opacity: 0.035;
}

.card-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 35%);
}

.card-banner-image,
.card-banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.card-banner--custom::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
}

.card-banner--custom::after {
  z-index: 2;
  opacity: 0.035;
}

.card-banner-pattern {
  display: none;
}

.card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 0.95rem;
  margin-top: -24px;
  text-align: center;
}

.card-avatar-wrap {
  position: relative;
  display: inline-block;
  z-index: 0;
  margin-bottom: 0.55rem;
}

.card-avatar-wrap::before,
.card-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card-avatar-wrap::before {
  display: none;
}

.card-avatar-wrap::after {
  inset: -3px;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
  filter: blur(3px);
}

.member-card[data-status="online"] .card-avatar {
  border-color: rgba(61, 220, 132, 0.85);
  box-shadow: 0 0 10px rgba(61, 220, 132, 0.34);
}

.member-card[data-status="idle"] .card-avatar {
  border-color: rgba(240, 178, 50, 0.85);
  box-shadow: 0 0 10px rgba(240, 178, 50, 0.32);
}

.member-card[data-status="dnd"] .card-avatar {
  border-color: rgba(237, 66, 69, 0.85);
  box-shadow: 0 0 10px rgba(237, 66, 69, 0.32);
}

.member-card[data-status="offline"] .card-avatar {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

.card-avatar {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  object-fit: cover;
  background: #1a1a1a;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.skeleton,
.skeleton-text,
.skeleton-panel {
  position: relative;
  overflow: hidden;
  color: transparent;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-text {
  width: min(100%, 220px);
  border-radius: 999px;
}

.skeleton-text--short {
  width: 130px;
}

.skeleton-panel {
  width: min(100%, 260px);
  min-height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

.card-name {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 0.15rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.card-handle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--red-bright);
  margin-bottom: 0.25rem;
}

.card-activity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  min-height: 2.25rem;
  max-width: 100%;
}

.activity-badge {
  padding: 0.14rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.card-activity-title,
.card-activity-detail {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-activity-title {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.card-activity-title[href]:hover {
  text-decoration: underline;
}

.card-activity-detail {
  color: var(--muted);
}

.activity-emoji {
  width: 1em;
  height: 1em;
  margin-right: 0.25rem;
  vertical-align: -0.15em;
}

.activity-emoji-text {
  margin-right: 0.25rem;
  opacity: 0.9;
}

.profile-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 58% 44% at 50% 44%, rgba(255, 255, 255, 0.11), transparent 68%),
    linear-gradient(180deg, #040405 0%, #010102 100%);
}

.profile-page .bg-watermark {
  position: fixed;
  background: radial-gradient(ellipse 50% 42% at 50% 45%, rgba(255, 255, 255, 0.08), transparent 70%);
  opacity: 0.18;
  filter: none;
}

.profile-background-image,
.profile-background-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.36;
  filter: brightness(0.45) saturate(0.9);
}

.profile-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.profile-particles--snow span {
  position: absolute;
  top: -12px;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.34);
  animation: snow-fall linear infinite;
}

@keyframes snow-fall {
  from {
    transform: translate3d(0, -12px, 0);
  }

  to {
    transform: translate3d(var(--snow-drift), 110vh, 0);
  }
}

.profile-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 42%, rgba(255, 255, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
}

.profile-main {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 4rem 1.25rem;
  animation: profile-enter 0.55s ease-out both;
}

.profile-card {
  width: min(90vw, 460px);
  cursor: default;
}

.profile-card .card-banner {
  height: 128px;
}

.profile-card--banner-blur .card-banner {
  overflow: hidden;
}

.profile-card--banner-blur .card-banner::before {
  z-index: 2;
  backdrop-filter: blur(14px) saturate(1.25);
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.16), transparent 34%),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(20, 20, 24, 0.38));
  opacity: 0.54;
}

.profile-card--banner-blur .card-banner::after {
  z-index: 3;
  opacity: 0.055;
  filter: blur(0.2px);
}

.profile-card--banner-blur .card-banner-image,
.profile-card--banner-blur .card-banner-video {
  filter: blur(10px) brightness(0.72) saturate(1.08);
  transform: scale(1.08);
}

.profile-card .card-body {
  padding-bottom: 1.55rem;
  margin-top: -50px;
}

.profile-avatar {
  width: 108px;
  height: 108px;
}

.profile-avatar-wrap {
  margin-bottom: 1rem;
}

.profile-name {
  font-size: clamp(1.45rem, 4.2vw, 2.2rem);
  line-height: 1.05;
}

.profile-activity {
  min-height: 3.2rem;
  font-size: 0.95rem;
}

.profile-views {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: -0.1rem 0 0.5rem;
  color: rgba(245, 245, 245, 0.58);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.profile-views .profile-social-icon {
  width: 15px;
  height: 15px;
}

.profile-bio {
  position: relative;
  max-width: 34rem;
  margin: -0.15rem auto 0.8rem;
  color: rgba(245, 245, 245, 0.78);
  font-size: 0.95rem;
  line-height: 1.5;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.14);
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 34rem;
  margin: 0 0 0.9rem;
}

.profile-social-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: transform 0.18s, border-color 0.18s, background 0.18s, color 0.18s;
}

.profile-social-icon {
  width: 17px;
  height: 17px;
}

.profile-social-link:hover,
.profile-social-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  outline: none;
}

.profile-bio--silver-shine {
  color: transparent;
  background: linear-gradient(90deg, #a9a9a9 0%, #ffffff 42%, #c8c8c8 58%, #8f8f8f 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: bio-silver-shine 2.8s ease-in-out infinite;
}

.profile-bio--neon {
  color: #ffffff;
  animation: bio-neon-pulse 1.9s ease-in-out infinite;
}

.profile-bio--fade {
  animation: bio-fade-loop 2.8s ease-in-out infinite;
}

.profile-bio--scramble {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.34),
    0 0 18px rgba(255, 255, 255, 0.14);
}

.profile-bio--typewriter::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-left: 0.18em;
  border-right: 2px solid rgba(255, 255, 255, 0.82);
  vertical-align: -0.16em;
  animation: bio-cursor-blink 0.85s steps(1) infinite;
}

.profile-bio--glitch::before,
.profile-bio--glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  overflow: hidden;
}

.profile-bio--glitch::before {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: -1px 0 rgba(255, 255, 255, 0.65);
  transform: translateX(-1px);
  clip-path: inset(0 0 54% 0);
  animation: bio-glitch-top 2.4s infinite steps(1);
}

.profile-bio--glitch::after {
  color: rgba(210, 210, 210, 0.72);
  text-shadow: 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateX(1px);
  clip-path: inset(48% 0 0 0);
  animation: bio-glitch-bottom 2.1s infinite steps(1);
}

@keyframes bio-silver-shine {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@keyframes bio-neon-pulse {
  0%,
  100% {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.32),
      0 0 18px rgba(255, 255, 255, 0.18);
  }

  50% {
    text-shadow:
      0 0 12px rgba(255, 255, 255, 0.72),
      0 0 28px rgba(255, 255, 255, 0.38);
  }
}

@keyframes bio-fade-loop {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }

  24%,
  76% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes bio-cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes bio-glitch-top {
  0%,
  74%,
  100% {
    transform: translateX(0);
    clip-path: inset(0 0 58% 0);
  }

  76% {
    transform: translate(-3px, -1px);
    clip-path: inset(0 0 72% 0);
  }

  78% {
    transform: translate(2px, 1px);
    clip-path: inset(18% 0 46% 0);
  }

  80% {
    transform: translate(-1px, 0);
    clip-path: inset(4% 0 64% 0);
  }
}

@keyframes bio-glitch-bottom {
  0%,
  64%,
  100% {
    transform: translateX(0);
    clip-path: inset(46% 0 0 0);
  }

  66% {
    transform: translate(3px, 1px);
    clip-path: inset(62% 0 8% 0);
  }

  68% {
    transform: translate(-2px, 0);
    clip-path: inset(42% 0 22% 0);
  }

  70% {
    transform: translate(1px, -1px);
    clip-path: inset(56% 0 4% 0);
  }
}

.back-link {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.72);
  color: var(--white);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.22);
  outline: none;
}

@keyframes profile-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .main,
  .site-entered .main {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .main {
    padding: 1.5rem 1rem 3rem;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.1rem;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}
