@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("fonts/Sora-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: "Druk Wide";
  src:
    url("fonts/druktextwidecyr-medium.woff2") format("woff2"),
    url("fonts/druktextwidecyr-medium.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --color-bg: #06080f;
  --color-ink: #f4f6ff;
  --color-line: rgba(255, 255, 255, 0.2);
  --grad-ig: linear-gradient(130deg, #f58529, #dd2a7b, #8134af);
  --grad-of: linear-gradient(130deg, #0a87d9, #00a4ff);
  --grad-mono: linear-gradient(130deg, #040404, #171717);
  --frame-width: clamp(380px, 36vw, 980px);
  --frame-skew: 24%;
  --frame-overlap: 0.24;
  --button-lift: clamp(72px, 10vh, 102px);
}

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

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  min-height: 100dvh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
}

body[data-loading="true"] .strip-bg,
body[data-loading="true"] .stage {
  opacity: 0;
}

body[data-gate-open="true"] .strip-bg,
body[data-gate-open="true"] .stage {
  filter: blur(8px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: #06080f;
  transition: opacity 0.58s ease, visibility 0.58s ease, background-color 0.42s ease;
}

.boot-screen[data-fade-bg="true"] {
  background: rgba(6, 8, 15, 0);
}

.boot-screen[data-done="true"] {
  opacity: 0;
  visibility: hidden;
}

.boot-screen__logo {
  width: clamp(260px, 52vw, 620px);
  max-width: 94vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 34px rgba(3, 7, 18, 0.58));
  animation: boot-throb 1.9s ease-in-out infinite;
}

@keyframes boot-throb {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.strip-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transition: opacity 0.8s ease;
  transform: translate3d(0, 0, 0);
}

.strip-bg__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.strip-bg__lane {
  display: flex;
  height: 100%;
  width: max-content;
  align-items: stretch;
  animation: strip-scroll var(--strip-duration, 78s) linear infinite;
  will-change: transform;
}

@keyframes strip-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(var(--strip-distance, 100%) * -1), 0, 0);
  }
}

.strip-bg__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.13) 0%,
      rgba(255, 255, 255, 0.06) 30%,
      rgba(255, 255, 255, 0) 66%
    ),
    linear-gradient(
      to right,
      rgba(5, 7, 12, 0.74) 0%,
      rgba(5, 7, 12, 0.48) 12%,
      rgba(5, 7, 12, 0.18) 30%,
      rgba(255, 255, 255, 0.04) 50%,
      rgba(5, 7, 12, 0.18) 70%,
      rgba(5, 7, 12, 0.48) 88%,
      rgba(5, 7, 12, 0.74) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(6, 8, 15, 0.28) 0%,
      rgba(6, 8, 15, 0.06) 34%,
      rgba(6, 8, 15, 0.22) 100%
    );
}

.strip-frame {
  flex: 0 0 var(--frame-width);
  width: var(--frame-width);
  height: 100%;
  margin-right: calc(var(--frame-width) * var(--frame-overlap) * -1);
  background: #0b1018;
  object-fit: cover;
  object-position: center;
  clip-path: polygon(var(--frame-skew) 0, 100% 0, calc(100% - var(--frame-skew)) 100%, 0 100%);
  -webkit-clip-path: polygon(var(--frame-skew) 0, 100% 0, calc(100% - var(--frame-skew)) 100%, 0 100%);
  filter: saturate(1.06) contrast(1.02) brightness(1.08);
  pointer-events: none;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.stage {
  position: relative;
  z-index: 10;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 2rem) clamp(0.8rem, 1.4vw, 1.2rem) 1.3rem;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.brand {
  width: min(1160px, 94vw);
  margin: clamp(1.8rem, 4.8vh, 3.3rem) auto 0;
  min-height: clamp(100px, 20vh, 220px);
  display: grid;
  place-items: center;
  pointer-events: auto;
  text-align: center;
}

.brand__art {
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.brand__logo {
  display: block;
  width: clamp(240px, 34vw, 520px);
  max-width: 92vw;
  max-height: 22vh;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(3, 7, 18, 0.55));
}

.brand__wordmark {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-shadow: 0 8px 22px rgba(4, 7, 18, 0.5);
}

.brand__wordmark-dark {
  color: #0a0c12;
}

.brand__wordmark-accent {
  color: #ee5caf;
  margin-left: 0.03em;
}

.links {
  display: grid;
  gap: 0.7rem;
  width: min(440px, 92vw);
  margin: 0 auto clamp(0.75rem, 2.4vh, 1.9rem);
  transform: translate3d(0, calc(var(--button-lift) * -1), 0);
  pointer-events: auto;
}

.link {
  width: min(420px, 100%);
  margin: 0 auto;
  min-height: 60px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  color: #fff;
  font-family: "Druk Wide", "Manrope", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
  opacity: 0.88;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.link span {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.link__glyph {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.link__svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.link:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
}

.link--primary {
  background: var(--grad-of);
  border: none;
  width: min(440px, 100%);
  min-height: 68px;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.link--primary .link__glyph {
  width: 21px;
  height: 21px;
}

.link--primary:hover {
  transform: translateY(-2px) scale(1.1);
}

.link--instagram,
.link--mv,
.link--x {
  width: min(357px, 100%);
  min-height: 51px;
}

.link--instagram {
  background: var(--grad-ig);
}

.link--instagram .link__svg {
  width: 24px;
  height: 24px;
  transform: translateY(1px);
}

.link--x {
  background: var(--grad-mono);
}

.link--mv {
  background: var(--grad-mono);
}

.link__glyph--mv,
.link__glyph--x {
  width: 23px;
  height: 23px;
  transform: translateY(1px);
}

.link__glyph--x {
  filter: invert(1);
}

.js-adult {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.js-adult:active {
  transform: none;
  filter: none;
}

@keyframes link-primary-pop {
  from,
  to {
    transform: scale3d(1, 1, 1);
  }
  10%,
  20% {
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }
  30%,
  50%,
  70%,
  90% {
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }
  40%,
  60%,
  80% {
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }
}

.link--primary[data-pop="true"] {
  animation: link-primary-pop 0.9s ease both;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gate__veil {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.54);
}

.gate__card {
  position: relative;
  width: min(560px, 92vw);
  padding: clamp(1.2rem, 2.8vw, 1.9rem) clamp(1rem, 3.2vw, 1.8rem);
  text-align: center;
}

.gate__icon {
  margin: 0 auto 0.75rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}

.gate__icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.gate__title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

.gate__body {
  margin: 1rem 0 1.4rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.4;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.gate__cta {
  width: min(430px, 100%);
  padding: 0 1.1rem;
  min-height: 64px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0d1019;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(1.18rem, 2.8vw, 2rem);
  line-height: 1;
  cursor: pointer;
}

.gate__cta:hover {
  filter: brightness(0.96);
}

@media (max-width: 1000px) {
  :root {
    --frame-width: clamp(320px, 44vw, 760px);
    --frame-skew: 22%;
    --frame-overlap: 0.22;
  }
}

@media (max-width: 760px) {
  :root {
    --frame-width: clamp(260px, 62vw, 520px);
    --frame-skew: 20%;
    --frame-overlap: 0.2;
  }

  .brand {
    margin-top: clamp(1.4rem, 3.2vh, 2.3rem);
    min-height: clamp(90px, 16vh, 150px);
  }
}

@media (max-width: 700px) {
  .link span {
    font-size: 20px;
  }

  .link--instagram .link__svg,
  .link__glyph--mv,
  .link__glyph--x {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 680px) {
  .stage {
    padding: 0.95rem 0.7rem;
  }
}

@media (max-width: 540px) {
  .brand__logo {
    width: clamp(220px, 70vw, 360px);
    max-height: 17vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-screen,
  .boot-screen__logo {
    transition: none;
    animation: none;
  }

  .strip-bg__lane {
    animation: none;
    transform: none !important;
  }

  .link--primary[data-pop="true"] {
    animation: none !important;
  }

  .link--primary:hover,
  .link:hover {
    transform: none;
  }
}
