:root {
  --menu-width: min(460px, 40vw);
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow: clip;
  overscroll-behavior: none;
  background: #000;
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overflow: clip;
  overscroll-behavior: none;
}

body.menu-open {
  overflow: hidden;
  overflow: clip;
}

.site-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  background: #000;
  transform: perspective(1200px) translate3d(0, 0, 0) rotateY(0);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition:
    transform 0.58s cubic-bezier(.18, .88, .2, 1),
    filter 0.58s ease,
    opacity 0.58s ease;
  will-change: transform, filter;
  contain: layout paint;
  touch-action: none;
}

.site-stage > #matrix-bg {
  z-index: 0 !important;
}

.site-stage > .hologram-logo,
.site-stage > h1,
.site-stage > #contacts {
  position: relative;
  z-index: 1;
}

.wizard-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  perspective: 1600px;
  perspective-origin: right center;
  transform-style: preserve-3d;
  overflow: hidden;
  overflow: clip;
  touch-action: none;
}

.menu-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 23;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, .46);
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: background .25s ease, transform .25s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(0, 26, 54, .72);
  box-shadow: none;
  outline: 0;
}

.menu-toggle:active {
  transform: scale(.96);
}

.menu-toggle__glyph {
  position: relative;
  width: 28px;
  height: 20px;
}

.menu-toggle__line {
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: #00d4ff;
  box-shadow: none;
  transition:
    top .28s ease,
    transform .28s ease,
    opacity .2s ease,
    background .28s ease;
}

.menu-toggle__line:nth-child(1) {
  top: 0;
}

.menu-toggle__line:nth-child(2) {
  top: 9px;
}

.menu-toggle__line:nth-child(3) {
  top: 18px;
}

body.menu-open .menu-toggle {
  background: rgba(0, 14, 28, .48);
  box-shadow: none;
}

body.menu-open .menu-toggle__line {
  background: #00d4ff;
}

body.menu-open .menu-toggle__line:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.menu-open .menu-toggle__line:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 21;
  background: linear-gradient(90deg, rgba(0, 0, 0, .14), rgba(0, 8, 18, .44));
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease;
  touch-action: none;
}

.menu-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 123, 255, .055) 1px, transparent 1px),
    linear-gradient(rgba(0, 212, 255, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, #000, transparent 74%);
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .site-stage {
  transform: perspective(1200px) translate3d(calc(var(--menu-width) * -.58), 0, -90px) rotateY(11deg);
  filter: brightness(.48) saturate(.82);
  opacity: .96;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  width: var(--menu-width);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 22px 26px 20px;
  border: 0;
  border-left: 1px solid rgba(0, 212, 255, .48);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(2, 8, 18, .98), rgba(0, 18, 36, .96) 56%, rgba(0, 0, 0, .98));
  box-shadow: -18px 0 46px rgba(0, 0, 0, .42), inset 24px 0 46px rgba(0, 212, 255, .045);
  opacity: 0;
  filter: brightness(.45) saturate(.8);
  backface-visibility: hidden;
  transform-origin: right center;
  transform: perspective(1600px) translate3d(34%, 0, -360px) rotateY(-68deg) scaleX(.88);
  pointer-events: none;
  transition:
    opacity .42s ease,
    filter .42s ease,
    transform .96s cubic-bezier(.16, .82, .18, 1);
  touch-action: pan-y;
}

.menu-brand {
  position: absolute;
  top: 22px;
  left: 26px;
  right: 92px;
  z-index: 1;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  min-height: 58px;
  display: flex;
  align-items: center;
}

.menu-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 36%, rgba(0, 212, 255, .12) 44%, transparent 52%);
  transform: translateX(-120%);
  opacity: .8;
}

.menu-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 212, 255, .85), rgba(255, 47, 121, .7), transparent);
  filter: blur(1px);
  opacity: 0;
}

body.menu-open .menu-panel {
  opacity: 1;
  filter: brightness(1) saturate(1);
  transform: perspective(1600px) translate3d(0, 0, 0) rotateY(0) scaleX(1);
  pointer-events: auto;
}

body.menu-open.menu-animate .menu-panel {
  animation: none;
}

body.menu-open.menu-animate .menu-panel::before {
  animation: menuSheenOpen 1.75s ease-out both;
}

body.menu-open.menu-animate .menu-panel::after {
  opacity: 1;
  animation: menuScanOpen 1.55s linear both;
}

.menu-links {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  flex: 1;
  min-height: 0;
  gap: 6px;
  margin: 58px 0 12px;
  padding: 4px 6px 4px 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(0, 212, 255, .42) transparent;
  scrollbar-width: thin;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.menu-links::-webkit-scrollbar {
  width: 4px;
}

.menu-links::-webkit-scrollbar-track {
  background: transparent;
}

.menu-links::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, .42);
  border-radius: 999px;
}

.menu-group {
  position: relative;
  display: grid;
  gap: 4px;
  opacity: 0;
  transform: translateX(22px);
  transition:
    transform .28s ease,
    opacity .28s ease;
}

.menu-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 14px 0 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-family: inherit;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  opacity: 0;
  transform: translateX(22px);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    border-color .22s ease,
    background .22s ease,
    color .22s ease,
    transform .22s ease,
    opacity .28s ease;
}

.menu-group > .menu-link {
  opacity: 1;
  transform: none;
}

.menu-link--group {
  appearance: none;
  justify-content: flex-start;
  min-height: 37px;
  padding-right: 42px;
  text-align: left;
}

.menu-link__chevron {
  position: absolute;
  right: 16px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #00d4ff;
  border-bottom: 2px solid #00d4ff;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, .72));
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition:
    border-color .24s ease,
    transform .28s ease,
    filter .24s ease;
}

.menu-link::before {
  content: attr(data-order);
  position: absolute;
  left: 16px;
  color: #00d4ff;
  font-size: .78rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(0, 212, 255, .8);
}

.menu-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, #25d366, #00d4ff, #ff2f79);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}

.menu-link:hover,
.menu-link:focus-visible {
  border-color: rgba(0, 212, 255, .6);
  background: rgba(0, 123, 255, .16);
  color: #dff7ff;
  outline: 0;
  transform: translateX(0) translateY(-1px);
}

.menu-link:hover::after,
.menu-link:focus-visible::after {
  transform: scaleX(1);
}

.menu-group.is-open > .menu-link {
  border-color: rgba(0, 212, 255, .68);
  background: linear-gradient(90deg, rgba(0, 123, 255, .2), rgba(255, 47, 121, .08));
  color: #fff;
}

.menu-group.is-open > .menu-link::after {
  transform: scaleX(1);
}

.menu-group.is-open .menu-link__chevron {
  border-color: #ff2f79;
  filter: drop-shadow(0 0 7px rgba(255, 47, 121, .7));
  transform: rotate(-135deg) translate(-2px, -1px);
}

body.menu-open .menu-links > .menu-link,
body.menu-open .menu-group {
  opacity: 1;
  transform: translateX(0);
}

body.menu-open .menu-links > :nth-child(1) { transition-delay: .08s; }
body.menu-open .menu-links > :nth-child(2) { transition-delay: .13s; }
body.menu-open .menu-links > :nth-child(3) { transition-delay: .18s; }
body.menu-open .menu-links > :nth-child(4) { transition-delay: .23s; }
body.menu-open .menu-links > :nth-child(5) { transition-delay: .28s; }
body.menu-open .menu-links > :nth-child(6) { transition-delay: .33s; }
body.menu-open .menu-links > :nth-child(7) { transition-delay: .38s; }

.menu-sub-links {
  position: relative;
  display: grid;
  gap: 7px;
  max-height: 0;
  margin: 0 0 0 27px;
  padding: 0 0 0 14px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition:
    max-height .34s cubic-bezier(.2, .78, .2, 1),
    margin .34s ease,
    padding .34s ease,
    opacity .22s ease,
    transform .3s ease;
}

.menu-sub-links::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: rgba(0, 212, 255, .2);
  box-shadow: none;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .32s ease;
}

.menu-group.is-open .menu-sub-links {
  max-height: 300px;
  margin: 5px 0 5px 27px;
  padding: 6px 0 6px 16px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-group.is-open .menu-sub-links::before {
  transform: scaleY(1);
}

.menu-sub-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 212, 255, .045), rgba(255, 255, 255, .015));
  color: rgba(223, 247, 255, .74);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-8px);
  touch-action: manipulation;
  transition:
    border-color .22s ease,
    background .22s ease,
    color .22s ease,
    opacity .26s ease,
    transform .26s ease;
}

.menu-sub-link::before {
  content: "";
  position: absolute;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 212, 255, .72);
  box-shadow: 0 0 10px rgba(0, 212, 255, .6);
}

.menu-sub-link:hover,
.menu-sub-link:focus-visible {
  border-color: rgba(0, 212, 255, .3);
  background: linear-gradient(90deg, rgba(0, 123, 255, .18), rgba(255, 47, 121, .08));
  color: #fff;
  outline: 0;
  transform: translateX(3px);
}

.menu-group.is-open .menu-sub-link {
  opacity: 1;
  transform: translateX(0);
}

.menu-group.is-open .menu-sub-link:nth-child(1) { transition-delay: .03s; }
.menu-group.is-open .menu-sub-link:nth-child(2) { transition-delay: .07s; }
.menu-group.is-open .menu-sub-link:nth-child(3) { transition-delay: .11s; }

.menu-socials {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-socials li {
  position: static;
  margin: 0;
  list-style: none;
  cursor: pointer;
}

.menu-socials a {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #2a3440;
  text-decoration: none;
  touch-action: manipulation;
  transition: color .22s ease, transform .22s ease;
}

.menu-socials li a::before {
  content: none;
  display: none;
}

.menu-socials li a .fa-brands {
  font-size: 2rem;
  color: currentColor;
}

.menu-socials a:hover,
.menu-socials a:focus-visible {
  color: #00d4ff;
  transform: translateY(-1px);
  outline: 0;
}

.menu-socials li:nth-child(1) a:hover,
.menu-socials li:nth-child(1) a:focus-visible {
  color: #25d366;
}

.menu-socials li:nth-child(2) a:hover,
.menu-socials li:nth-child(2) a:focus-visible {
  color: #0088cc;
}

.menu-socials li:nth-child(3) a:hover,
.menu-socials li:nth-child(3) a:focus-visible {
  color: #dc2743;
}

@keyframes menuScanOpen {
  0% { top: -12%; }
  100% { top: 112%; }
}

@keyframes menuSheenOpen {
  0%, 18% { transform: translateX(-120%); }
  58%, 100% { transform: translateX(120%); }
}

@media (max-width: 900px) {
  :root {
    --menu-width: min(390px, 86vw);
  }

  body.menu-open .site-stage {
    transform: perspective(1200px) translate3d(calc(var(--menu-width) * -.7), 0, -90px) rotateY(12deg);
  }
}

@media (max-width: 768px) {
  .site-stage {
    padding: 10px;
  }

  .menu-toggle {
    top: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }

  .menu-panel {
    padding: 16px 18px 22px;
  }

  .menu-brand {
    top: 16px;
    left: 18px;
    right: 82px;
    min-height: 54px;
  }

  .menu-link {
    min-height: 39px;
    padding-left: 52px;
    font-size: .94rem;
  }

  .menu-links {
    margin: 70px 0 18px;
    gap: 7px;
  }

  .menu-sub-links {
    margin-left: 26px;
  }

  .menu-group.is-open .menu-sub-links {
    margin-left: 26px;
  }

  .menu-sub-link {
    min-height: 32px;
    font-size: .86rem;
  }
}

@media (max-width: 420px) {
  :root {
    --menu-width: 88vw;
  }

  .menu-link {
    font-size: .92rem;
  }

  .menu-sub-link {
    font-size: .84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-stage,
  .menu-toggle,
  .menu-toggle__line,
  .menu-backdrop,
  .menu-panel,
  .menu-link,
  .menu-link__chevron,
  .menu-sub-links,
  .menu-sub-link,
  .menu-link::after {
    transition: none;
  }

  .menu-panel,
  .menu-panel::before,
  .menu-panel::after {
    animation: none !important;
  }

  body.menu-open .site-stage {
    transform: translateX(calc(var(--menu-width) * -.5));
  }
}
