:root {
  --ink: #fff;
  --dim: rgba(255, 255, 255, 0.62);
  --font: system-ui, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family: var(--font);
}
body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
}
.glass::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 46%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-30%) rotate(12deg);
  animation: glass-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glass-sheen {
  0%, 70% { transform: translateX(-40%) rotate(12deg); opacity: 0; }
  80% { opacity: 1; }
  100% { transform: translateX(380%) rotate(12deg); opacity: 0; }
}

.bg, .bg-still, .bg-video, .bg-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.bg { z-index: 0; }
.bg-still, .bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: brightness(0.68) saturate(0.88) contrast(1.05);
  transition: opacity .45s ease;
}
.bg-video.swap { opacity: 0; }
.bg-veil {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.34), rgba(0,0,0,0.22) 38%, rgba(0,0,0,0.5)),
    radial-gradient(circle at 50% 40%, rgba(0,0,0,0.28), rgba(0,0,0,0.62));
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
}
.gate.out { animation: fade .4s ease forwards; }
@keyframes fade { to { opacity: 0; visibility: hidden; } }

.qq {
  font-size: clamp(88px, 20vw, 190px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
  color: #fff;
  text-shadow:
    0 0 24px rgba(255,255,255,0.35),
    0 10px 40px rgba(0,0,0,0.45);
  animation: qq 0.16s infinite, qq-glow 1.4s ease-in-out infinite;
  transition: transform .2s ease, filter .2s ease;
}
.qq:hover { filter: brightness(1.15); }
.qq:active { transform: scale(0.92); }
@keyframes qq {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-8px, 5px) rotate(-3deg); }
  50% { transform: translate(9px, -6px) rotate(3deg); }
  75% { transform: translate(-5px, -4px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
@keyframes qq-glow {
  50% { text-shadow: 0 0 42px rgba(255,255,255,0.7), 0 10px 40px rgba(0,0,0,0.45); }
}

.stage { position: relative; z-index: 2; min-height: 100vh; }

.dock {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 30;
  translate: -50% 0;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  animation: down .55s cubic-bezier(.2,1.2,.2,1) both;
}
.dock button {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  transition:
    transform .22s cubic-bezier(.2,1.4,.2,1),
    background .22s ease,
    color .22s ease,
    box-shadow .22s ease;
}
.dock button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.45) 50%, transparent 65%);
  transform: translateX(-140%);
  pointer-events: none;
}
.dock button:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.2);
}
.dock button:hover::after { animation: shine .7s ease; }
.dock button:active { transform: scale(0.94); }
.dock button.on {
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.14), 0 12px 28px rgba(0,0,0,0.3);
}
@keyframes down { from { transform: translateY(-22px); opacity: 0; } }
@keyframes shine { to { transform: translateX(140%); } }

.hero {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: min(420px, calc(100vw - 32px));
  padding: 36px 28px 28px;
  border-radius: 32px;
  text-align: center;
  translate: -50% -50%;
  animation: hero-in .7s cubic-bezier(.2,1.15,.2,1) both, float 6.5s ease-in-out 0.8s infinite;
}
@keyframes hero-in {
  from { opacity: 0; scale: 0.94; }
}
@keyframes float {
  0%, 100% { translate: -50% -50%; }
  50% { translate: -50% calc(-50% - 7px); }
}
.avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.25);
  animation: avatar-ring 2.8s ease-in-out infinite;
}
.avatar svg { width: 42px; height: 42px; }
@keyframes avatar-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.18); }
  50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}
.hero h1 {
  margin: 0;
  font-size: 48px;
  letter-spacing: -0.07em;
  animation: title-in .7s ease both;
}
.tag {
  margin: 10px 0 20px;
  color: var(--dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  animation: title-in .8s ease .08s both;
}
@keyframes title-in {
  from { opacity: 0; transform: translateY(10px); }
}
.contacts { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.chip {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  transition:
    transform .22s cubic-bezier(.2,1.4,.2,1),
    background .22s ease,
    color .22s ease,
    box-shadow .22s ease;
  animation: chip-in .55s cubic-bezier(.2,1.2,.2,1) both;
}
.contacts .chip:nth-child(1) { animation-delay: .12s; }
.contacts .chip:nth-child(2) { animation-delay: .2s; }
.contacts .chip:nth-child(3) { animation-delay: .28s; }
.chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.4) 50%, transparent 65%);
  transform: translateX(-140%);
  pointer-events: none;
}
.chip:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}
.chip:hover::after { animation: shine .65s ease; }
.chip:active { transform: scale(0.95); }
.chip:hover, .chip.ok {
  background: #fff;
  color: #111;
}
.chip.ok { animation: ok-pop .35s cubic-bezier(.2,1.6,.2,1); }
@keyframes chip-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
}
@keyframes ok-pop {
  50% { transform: scale(1.08); }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 84px 16px 24px;
  background: rgba(6, 8, 12, 0.34);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  animation: cover .35s ease;
}
@keyframes cover {
  from { opacity: 0; backdrop-filter: blur(0); }
  to { opacity: 1; }
}

.sheet {
  width: min(560px, 100%);
  max-height: calc(100vh - 120px);
  overflow: auto;
  overflow-x: hidden;
  padding: 28px 22px 24px;
  border-radius: 28px;
  animation: rise .5s cubic-bezier(.2,1.15,.2,1);
}
@keyframes rise {
  from { transform: translateY(28px) scale(.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.close {
  float: right;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.close:hover {
  background: #fff;
  color: #111;
  transform: rotate(8deg) scale(1.06);
}
.close:active { transform: scale(0.94); }

.label {
  margin: 0 0 8px;
  color: var(--dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
}
h2 {
  margin: 0 0 18px;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.list { display: grid; gap: 10px; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  text-align: left;
  transition:
    transform .22s cubic-bezier(.2,1.3,.2,1),
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
  animation: row-in .45s cubic-bezier(.2,1.1,.2,1) both;
}
.list .row:nth-child(1) { animation-delay: .04s; }
.list .row:nth-child(2) { animation-delay: .1s; }
.list .row:nth-child(3) { animation-delay: .16s; }
.list .row:nth-child(4) { animation-delay: .22s; }
.list .row:nth-child(5) { animation-delay: .28s; }
.row span { color: var(--dim); }
.row:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.4);
  transform: translateX(6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.row:active { transform: scale(0.98); }
@keyframes row-in {
  from { opacity: 0; transform: translateX(-12px); }
}

.about .bio { min-height: 16em; }
.line {
  display: block;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.line.on {
  opacity: 1;
  transform: none;
}
.line.soft {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--dim);
}

.hud {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: hud-in .55s cubic-bezier(.2,1.2,.2,1) .15s both;
}
@keyframes hud-in {
  from { opacity: 0; transform: translateY(12px); }
}
.views, .mute {
  display: grid;
  place-items: center;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}
.views { padding: 0 16px; }
.views.pop { animation: ok-pop .35s cubic-bezier(.2,1.6,.2,1); }
.mute {
  width: 38px;
  min-width: 38px;
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.mute:hover { transform: scale(1.12) rotate(-14deg); }
.mute:active, .mute.tap { transform: scale(0.9) rotate(12deg); }
.mute:not(.off) { animation: note-pulse 2.2s ease-in-out infinite; }
.mute.off { opacity: 0.45; }
@keyframes note-pulse {
  50% { box-shadow: 0 0 0 7px rgba(255,255,255,0.08); }
}

@media (max-width: 700px) {
  .hero { width: calc(100vw - 24px); }
  .dock { width: calc(100vw - 24px); justify-content: space-between; }
  .dock button { padding: 0 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .qq, .overlay, .sheet, .dock, .hero, .chip, .row, .hud, .glass::before, .mute {
    animation: none !important;
  }
  .hero { translate: -50% -50%; }
}
