@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page-padding-x: clamp(1.25rem, 4.8vw, 5.75rem);
  --page-padding-y: clamp(1.25rem, 4.6vh, 3.5rem);
  --text: rgba(255, 255, 255, 0.96);
  --text-soft: rgba(244, 248, 255, 0.72);
  --text-muted: rgba(235, 241, 250, 0.5);
  --line: rgba(255, 255, 255, 0.2);
  --line-hover: rgba(255, 255, 255, 0.42);
  --glass: rgba(18, 23, 33, 0.34);
  --glass-hover: rgba(38, 49, 68, 0.54);
  --accent: #a9c9ff;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: #10141d;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: #10141d;
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.backdrop,
.backdrop__poster,
.backdrop__video,
.backdrop__wash,
.backdrop__vignette {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.backdrop {
  z-index: 0;
  overflow: hidden;
  background: #10141d;
}

.backdrop__poster,
.backdrop__video {
  object-fit: cover;
  object-position: center center;
}

.backdrop__poster {
  background: #10141d url("/assets/video/background-poster.webp") center center / cover no-repeat;
  transform: scale(1.01);
}

.backdrop__video {
  opacity: 0;
  transition: opacity 700ms ease;
}

.video-ready .backdrop__video {
  opacity: 1;
}

.backdrop__wash {
  background:
    linear-gradient(90deg, rgba(8, 12, 19, 0.67) 0%, rgba(9, 13, 21, 0.42) 37%, rgba(8, 12, 18, 0.08) 72%),
    linear-gradient(0deg, rgba(6, 9, 15, 0.46) 0%, transparent 46%),
    rgba(30, 52, 82, 0.08);
}

.backdrop__vignette {
  box-shadow: inset 0 0 18vw 2vw rgba(2, 5, 10, 0.34);
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(var(--page-padding-y), env(safe-area-inset-top))
    max(var(--page-padding-x), env(safe-area-inset-right))
    max(var(--page-padding-y), env(safe-area-inset-bottom))
    max(var(--page-padding-x), env(safe-area-inset-left));
}

.intro {
  width: min(100%, 59rem);
  margin-bottom: clamp(2rem, 7.5vh, 5.75rem);
  animation: intro-in 700ms cubic-bezier(.22, .8, .24, 1) both;
}

.intro__eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: clamp(0.7rem, 0.74vw, 0.82rem);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(3, 8, 16, 0.7);
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.6rem, 7.15vw, 8.2rem);
  font-weight: 700;
  letter-spacing: -0.067em;
  line-height: 0.84;
  text-wrap: balance;
  text-shadow: 0 3px 34px rgba(2, 6, 12, 0.5);
}

h1 span {
  display: block;
}

.intro__lead {
  max-width: 37rem;
  margin: clamp(1.55rem, 3.1vh, 2.35rem) 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.28vw, 1.35rem);
  font-weight: 420;
  letter-spacing: -0.012em;
  line-height: 1.48;
  text-shadow: 0 2px 16px rgba(2, 6, 12, 0.7);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 55rem;
  margin-top: clamp(1.5rem, 3.1vh, 2.4rem);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.68rem 0.9rem;
  gap: 0.58rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  color: rgba(249, 251, 255, 0.82);
  background: var(--glass);
  box-shadow: 0 0.45rem 1.7rem rgba(2, 6, 13, 0.11);
  font-size: 0.83rem;
  font-weight: 550;
  letter-spacing: 0.006em;
  line-height: 1;
  text-decoration: none;
  -webkit-backdrop-filter: blur(9px) saturate(115%);
  backdrop-filter: blur(9px) saturate(115%);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.social-link__icon {
  flex: 0 0 auto;
  width: 1.08rem;
  height: 1.08rem;
  fill: currentColor;
}

.social-link__icon--m {
  display: block;
  background: currentColor;
  -webkit-mask: url("/assets/icons/m-ranked.svg") center / contain no-repeat;
  mask: url("/assets/icons/m-ranked.svg") center / contain no-repeat;
}

.social-link--project {
  border-color: rgba(169, 201, 255, 0.32);
  color: rgba(220, 233, 255, 0.9);
}

.social-link:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: var(--line-hover);
  background: var(--glass-hover);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.copyright {
  position: absolute;
  right: max(var(--page-padding-x), env(safe-area-inset-right));
  bottom: max(var(--page-padding-y), env(safe-area-inset-bottom));
  margin: 0;
  color: rgba(220, 233, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

@keyframes intro-in {
  from {
    opacity: 0;
    transform: translateY(1.15rem);
  }

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

@media (max-width: 760px) {
  :root {
    --page-padding-x: clamp(1rem, 5vw, 1.45rem);
    --page-padding-y: 1.2rem;
  }

  .backdrop__poster,
  .backdrop__video {
    object-position: center center;
  }

  .backdrop__poster {
    background-position: center center;
  }

  .backdrop__wash {
    background:
      linear-gradient(0deg, rgba(6, 9, 15, 0.78) 0%, rgba(7, 11, 18, 0.42) 53%, rgba(8, 12, 19, 0.14) 100%),
      linear-gradient(90deg, rgba(12, 18, 29, 0.3), transparent),
      rgba(30, 52, 82, 0.1);
  }

  .page {
    justify-content: flex-end;
  }

  .intro {
    margin-bottom: 2.35rem;
  }

  .intro__eyebrow {
    margin-bottom: 0.85rem;
    font-size: 0.64rem;
    letter-spacing: 0.13em;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 15vw, 4.55rem);
    line-height: 0.87;
  }

  .intro__lead {
    max-width: 30rem;
    margin-top: 1.25rem;
    font-size: clamp(0.92rem, 4vw, 1.05rem);
    line-height: 1.42;
  }

  .socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
    max-width: 29rem;
    margin-top: 1.25rem;
  }

  .social-link {
    justify-content: flex-start;
    min-height: 2.75rem;
    padding-inline: 0.8rem;
    font-size: 0.78rem;
    border-radius: 0.66rem;
  }

  .copyright {
    right: max(var(--page-padding-x), env(safe-area-inset-right));
    left: auto;
    bottom: max(var(--page-padding-y), env(safe-area-inset-bottom));
    font-size: 0.63rem;
  }
}

@media (max-width: 370px), (max-height: 700px) {
  .intro {
    margin-bottom: 1.05rem;
  }

  .intro__eyebrow {
    margin-bottom: 0.65rem;
  }

  h1 {
    font-size: clamp(2.65rem, 13.5vw, 3.45rem);
  }

  .intro__lead {
    margin-top: 0.95rem;
    font-size: 0.88rem;
  }

  .socials {
    gap: 0.38rem;
    margin-top: 0.95rem;
  }

  .social-link {
    min-height: 2.48rem;
    padding-block: 0.55rem;
  }

  .copyright {
    display: none;
  }
}

@media (hover: none) {
  .social-link:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop__video {
    display: none;
  }

  .intro {
    animation: none;
  }

  .social-link {
    transition: none;
  }
}
