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

:root {
  --bg: #0a0a0a;
  --surface: rgba(255, 255, 255, .04);
  --surface-hover: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .1);
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --accent: #ffffff;
  --tg: #2aabee;
  --wa: #25d366;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow: 0 12px 40px rgba(0, 0, 0, .55);
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: #030303;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

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

.bio-bg__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 255, 255, .09) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(255, 255, 255, .04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(255, 255, 255, .05) 0%, transparent 45%),
    linear-gradient(180deg, #0c0c0c 0%, #030303 45%, #050505 100%);
}

.bio-bg__grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(58deg) translateY(-12%);
  transform-origin: center top;
  opacity: .35;
  animation: grid-drift 24s linear infinite;
}

.bio-bg__beam {
  position: absolute;
  top: -40%;
  left: -30%;
  width: 60%;
  height: 180%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, .03) 42%,
    rgba(255, 255, 255, .08) 50%,
    rgba(255, 255, 255, .03) 58%,
    transparent 100%
  );
  transform: rotate(-12deg);
  animation: beam-sweep 8s ease-in-out infinite;
}

.bio-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .4;
  animation: float 18s ease-in-out infinite;
}

.bio-bg__orb--1 {
  width: 380px;
  height: 380px;
  top: -120px;
  left: 50%;
  margin-left: -190px;
  background: radial-gradient(circle, rgba(255, 255, 255, .5) 0%, transparent 68%);
}

.bio-bg__orb--2 {
  width: 280px;
  height: 280px;
  bottom: 5%;
  right: -80px;
  background: radial-gradient(circle, rgba(180, 180, 180, .35) 0%, transparent 70%);
  animation-delay: -6s;
}

.bio-bg__orb--3 {
  width: 200px;
  height: 200px;
  bottom: 35%;
  left: -50px;
  background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, transparent 70%);
  animation-delay: -12s;
  animation-duration: 22s;
}

.bio-bg__noise {
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.bio-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 30%, rgba(0, 0, 0, .75) 100%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, 18px) scale(1.06); }
  66% { transform: translate(-16px, 28px) scale(1.03); }
}

@keyframes grid-drift {
  0% { transform: perspective(500px) rotateX(58deg) translateY(-12%) translateX(0); }
  100% { transform: perspective(500px) rotateX(58deg) translateY(-12%) translateX(48px); }
}

@keyframes beam-sweep {
  0%, 100% { opacity: .4; transform: rotate(-12deg) translateX(-8%); }
  50% { opacity: .9; transform: rotate(-12deg) translateX(12%); }
}

.bio {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 440px);
  margin: 0 auto;
  padding: 40px 0 48px;
}

.reveal {
  animation: rise .7s cubic-bezier(.22, 1, .36, 1) both;
}

.reveal--delay-1 { animation-delay: .08s; }
.reveal--delay-2 { animation-delay: .16s; }
.reveal--delay-3 { animation-delay: .24s; }
.reveal--delay-4 { animation-delay: .32s; }

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

.bio__hero {
  text-align: center;
  margin-bottom: 28px;
}

.bio__avatar-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
}

.bio__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  animation: spin 12s linear infinite;
}

.bio__ring::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.bio__avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow);
  background: #1a1a1a;
  filter: grayscale(100%) contrast(1.12);
}

.bio__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.bio__badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #fff;
  color: #0a0a0a;
}

.bio__badge--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.bio__handle {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.bio__tagline {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(180deg, #fff 30%, #888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bio__about {
  margin: 0 auto;
  max-width: 36ch;
  font-size: 15px;
  color: var(--muted);
}

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

.bio__social-hint {
  margin: 0 0 32px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.bio__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease, border-color .2s ease;
}

.bio__social-btn:hover {
  transform: translateY(-4px) scale(1.05);
}

.bio__social-icon {
  width: 32px;
  height: 32px;
}

.bio__social-btn--tg { color: var(--tg); }
.bio__social-btn--tg:hover {
  border-color: var(--tg);
  box-shadow: 0 12px 32px rgba(42, 171, 238, .35);
  background: rgba(42, 171, 238, .12);
}

.bio__social-btn--wa { color: var(--wa); }
.bio__social-btn--wa:hover {
  border-color: var(--wa);
  box-shadow: 0 12px 32px rgba(37, 211, 102, .35);
  background: rgba(37, 211, 102, .12);
}

.bio__social-btn--mail { color: #fff; }
.bio__social-btn--mail:hover {
  border-color: #fff;
  box-shadow: 0 12px 32px rgba(255, 255, 255, .2);
}

.bio__section {
  margin-bottom: 32px;
}

.bio__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.bio__section-title svg {
  width: 18px;
  height: 18px;
  color: #fff;
  opacity: .7;
}

.bio__services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bio__services li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  color: #e0e0e0;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.bio__services li:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, .18);
  transform: translateX(4px);
}

.bio__service-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  font-size: 20px;
  line-height: 1;
}

.bio__works {
  display: grid;
  gap: 10px;
}

.bio__work {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .02) 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.bio__work:hover {
  border-color: rgba(255, 255, 255, .25);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

.bio__work-thumb {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  color: #0a0a0a;
}

.bio__work-thumb svg {
  width: 24px;
  height: 24px;
}

.bio__work-text {
  flex: 1;
  min-width: 0;
}

.bio__work strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--accent);
}

.bio__work span {
  font-size: 13px;
  color: var(--muted);
}

.bio__work-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
}

.bio__work:hover .bio__work-arrow {
  transform: translateX(4px);
  color: #fff;
}

.bio__footer {
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.bio__cta {
  margin: 0 0 12px;
  font-size: 14px;
  color: #ccc;
}

.bio__footer-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.bio__dot {
  margin: 0 6px;
  opacity: .5;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .bio-bg__orb,
  .bio-bg__grid,
  .bio-bg__beam,
  .bio__ring {
    animation: none;
  }

  .bio__social-btn:hover,
  .bio__services li:hover,
  .bio__work:hover {
    transform: none;
  }
}
