:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0b0d;
  color: #f5f5f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; margin: 0; }

body {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(105, 105, 118, .09), transparent 40%),
    #0b0b0d;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: 45%;
  left: 50%;
  width: 68vmax;
  height: 68vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 20, 31, .07), rgba(104, 13, 24, .025) 38%, transparent 69%);
  filter: blur(24px);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.92);
  animation: red-ambience 10s ease-in-out infinite alternate;
}

.profile {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 800px);
  padding: 64px 28px 48px;
}

.avatar-frame {
  position: relative;
  width: clamp(144px, 18vw, 184px);
  aspect-ratio: 1;
  border-radius: 50%;
  isolation: isolate;
}

.avatar-frame::before,
.avatar-frame::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.avatar-frame::before {
  inset: -5px;
  opacity: .45;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(225, 35, 47, .08) 73%, rgba(255, 54, 64, .9) 81%, rgba(225, 35, 47, .14) 89%, transparent 95% 100%);
  filter: blur(1px);
  animation: red-orbit 9s linear infinite;
}

.avatar-frame::after {
  inset: -3px;
  z-index: -1;
  border: 1px solid rgba(234, 45, 57, .2);
  box-shadow: 0 0 22px rgba(201, 24, 38, .16);
  animation: red-pulse 3.4s ease-in-out infinite;
}

.avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 80px rgba(0,0,0,.45);
}

.avatar-picture { display: block; width: 100%; height: 100%; border-radius: 50%; }

.bio {
  display: grid;
  gap: 20px;
  width: 100%;
  margin-top: 32px;
  text-align: center;
}

.bio p, .bio h1 { margin: 0; }
.bio-role {
  font-size: clamp(1.625rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.045em;
  color: #f5f5f7;
}
.bio-role span { color: #939398; }
.bio .bio-note {
  max-width: 440px;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -.015em;
  color: #a1a1a6;
  text-wrap: balance;
}
.bio-quote {
  margin: 56px 0 0;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: #85858b;
}

.contacts {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.contact {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: #a3a3aa;
  background: rgba(255,255,255,.025);
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.contact svg { width: 19px; height: 19px; fill: currentColor; }
.contact:hover, .contact:focus-visible { color: #fff; border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.09); box-shadow: 0 0 14px rgba(255,255,255,.08); transform: translateY(-2px); }
.contact:focus-visible { outline: 2px solid #f5f5f6; outline-offset: 4px; }
.linkedin { color: #0a66c2; border-color: rgba(10,102,194,.32); background: rgba(10,102,194,.09); }
.linkedin:hover, .linkedin:focus-visible { color: #3f9bff; border-color: rgba(63,155,255,.6); background: rgba(10,102,194,.2); box-shadow: 0 0 16px rgba(10,102,194,.22); }
.x-link { color: #050506; border-color: rgba(228,228,231,.62); background: rgba(228,228,231,.55); }
.x-link:hover, .x-link:focus-visible { color: #000; border-color: rgba(255,255,255,.82); background: rgba(255,255,255,.72); box-shadow: 0 0 14px rgba(255,255,255,.16); }
.podcast { color: #f28b24; border-color: rgba(242,139,36,.32); background: rgba(242,139,36,.09); }
.podcast:hover, .podcast:focus-visible { color: #ffb45f; border-color: rgba(255,180,95,.62); background: rgba(242,139,36,.2); box-shadow: 0 0 16px rgba(242,139,36,.2); }
.mail { color: #ff6570; background: rgba(220, 38, 52, .13); border-color: rgba(255, 83, 96, .42); }
.mail:hover, .mail:focus-visible { color: #fff; background: #c92534; border-color: #ef4653; box-shadow: 0 0 16px rgba(220,38,52,.24); }

@keyframes red-orbit { to { transform: rotate(360deg); } }
@keyframes red-pulse { 50% { box-shadow: 0 0 30px rgba(225,35,47,.28); border-color: rgba(255,54,64,.38); } }
@keyframes red-ambience { to { opacity: .62; transform: translate(-50%, -50%) scale(1.08); } }

@media (max-width: 480px) {
  .profile { padding: 48px 22px 36px; }
  .bio { margin-top: 32px; gap: 18px; }
  .bio-note span { display: block; }
  .bio .bio-note { max-width: 290px; font-size: .9375rem; }
  .contacts { gap: 14px; margin-top: 28px; }
  .bio-quote { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
