:root {
  --abyss: #030812;
  --navy: #071229;
  --cobalt: #1b4dff;
  --ice: #6fb4ff;
  --mist: #c9d8f2;
  --text: #e8efff;
  --text-dim: #9fb2d4;

  --font-display: "Unbounded", "Arial Black", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
}

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

html {
  scroll-behavior: smooth;
  background: var(--abyss);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--abyss);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- фон ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--abyss) url("assets/poster.jpg") center / cover no-repeat;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.bg-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 15% 100%, rgba(27, 77, 255, 0.28) 0%, rgba(27, 77, 255, 0) 55%),
    linear-gradient(180deg, rgba(3, 8, 18, 0.55) 0%, rgba(3, 8, 18, 0.72) 55%, rgba(3, 8, 18, 0.92) 100%);
}

.bubbles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- каркас ---------- */

.page {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad);
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: clamp(3.5rem, 12vh, 7rem);
  padding-top: 3rem;
}

/* ---------- имя ---------- */

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.name-main {
  display: inline-flex;
  font-size: clamp(5rem, 22vw, 17rem);
  color: var(--text);
  text-shadow: 0 0 60px rgba(27, 77, 255, 0.55), 0 0 140px rgba(27, 77, 255, 0.25);
}

.name-main .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(14px);
  animation: rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 110ms + 250ms);
}

@keyframes rise {
  to { opacity: 1; transform: none; filter: blur(0); }
}

.name-sub {
  margin-top: clamp(0.4rem, 1.2vw, 1rem);
  font-weight: 500;
  font-size: clamp(1.5rem, 5.2vw, 4rem);
  color: var(--ice);
  letter-spacing: -0.01em;
}

/* ---------- роль ---------- */

.role {
  margin: clamp(1.75rem, 4vw, 3rem) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 600;
}

.role-at { color: var(--ice); }

.since {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  color: var(--text-dim);
  font-size: 1rem;
}

.since-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 0 0 rgba(27, 77, 255, 0.7);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(27, 77, 255, 0.7); }
  70%  { box-shadow: 0 0 0 0.7rem rgba(27, 77, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 77, 255, 0); }
}

.since-count {
  padding: 0.15rem 0.7rem;
  border: 1px solid rgba(111, 180, 255, 0.35);
  border-radius: 999px;
  color: var(--mist);
  font-size: 0.9rem;
}

.since-count:empty { display: none; }

.scroll {
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.scroll:hover { color: var(--text); }

.scroll-line {
  position: relative;
  width: 3rem;
  height: 1px;
  background: rgba(159, 178, 212, 0.4);
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ice);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}

.scroll:hover .scroll-line::after { transform: translateX(0); }

/* ---------- о себе ---------- */

.about {
  padding: clamp(2rem, 8vh, 5rem) 0 clamp(3rem, 10vh, 6rem);
  display: flex;
}

.about-card {
  max-width: 44rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(160deg, rgba(10, 26, 62, 0.62), rgba(4, 10, 24, 0.78));
  border: 1px solid rgba(111, 180, 255, 0.18);
  border-left: 3px solid var(--cobalt);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.about-card h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

.about-card p {
  margin: 0 0 1rem;
  color: var(--text-dim);
  max-width: 62ch;
}

.about-card p:last-child { margin-bottom: 0; }

.about-card .lead {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 500;
}

/* ---------- подвал ---------- */

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(111, 180, 255, 0.14);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- доступность и адаптив ---------- */

a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .about-card .lead { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .name-main .ch { animation: none; opacity: 1; transform: none; filter: none; }
  .since-dot { animation: none; }
  .scroll-line::after { transition: none; }
}
