nav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 19;
    justify-content: center;
    align-items: center;
    opacity: 0;
    flex-direction: column;
}
nav .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1125px;
    height: 100px;
    transition: all .5s;
}
.nav-hr {
    width: 100%;
    max-width: 1125px;
    height: 1px;
    top: 100px;
    position: fixed;
    background:
    linear-gradient(
      to left, 
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,1) 20%,
      rgba(255,255,255,1) 80%,
      rgba(255,255,255,0) 100%
    )
    left 
    bottom
    transparent 
    no-repeat; 
    background-size: 100% 1px ;
    left: 50%;
    transform: translateX(-50%);
    transition: all .5s;
    z-index: 17;
    opacity: 0;
}

nav.blurred .content {
    height: 55px;
}
.nav-hr.blurred {
    opacity: 0 !important;
    top: 55px;
}
.blur-box {
    position: fixed;
    width: 100%;
    height: 100px;
    z-index: 10;
    top: 0;
    opacity: 0;
    display: flex;
    backdrop-filter: blur(20px) saturate(0.8);
    -webkit-backdrop-filter: blur(20px) saturate(0.8);
    z-index: 10;
    background-color: #0004;
    margin-top: -1px;
}
.blur-box.blurred {
    opacity: 1;
    height: 55px;
}

nav,
nav .content,
.blur-box,
nav .logo {
    transition-property: height, opacity, font-size;
    transition-duration: .5s;
}

nav .logo {
    font-size: 38px;
    color: white;
}
.nav-black nav .logo {
    color: black;
}
nav.blurred .logo {
    font-size: 30px;
}

nav .logo,
nav label {
    z-index: 20;
}

#menu_checkbox {
    display: none;
}

nav .menu-label {
    right: 0;
    left: 0;
    display: block;
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 0;
}

nav .menu-label:before {
    content: "";
    position: fixed;
    width: 20px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: -10px auto 0 auto;
    transition: 1.2s cubic-bezier(0, 0.96, 1, 0.02) background-color;
}

nav .menu-label div {
    position: relative;
    top: 0;
    height: 1px;
    background-color: white;
    margin-bottom: 7px;
    transition: 0.3s ease transform, 0.3s ease top, 0.3s ease width,
        0.3s ease right;
    width: unset;
}
.nav-black nav .menu-label div {
    background-color: black;
}
.nav-black .menu-item a {
    color: black;
}

nav .menu-label div:first-child {
    transform-origin: 0;
}

nav .menu-label div:last-child {
    margin-bottom: 0;
    transform-origin: 20px;
}

nav .menu-label div:nth-child(2) {
    right: 0;
    width: 20px;
}

#menu_checkbox:checked + .menu-label div:first-child {
    top: -2px;
    transform: rotateZ(45deg);
}

#menu_checkbox:checked + .menu-label div:last-child {
    top: 2px;
    transform: rotateZ(45deg);
}

#menu_checkbox:checked + .menu-label div:nth-child(2) {
    width: 28.33px;
    top: 0;
    right: 4.33px;
    transform: rotateZ(-45deg);
}

.menu {
    position: fixed;
    height: 100lvh;
    top: 0;
    width: calc((100vw - 1025px) / 2 + 400px);
    right: calc(-1 * (100vw - 1025px) / 2 - 400px);
    backdrop-filter: blur(20px) saturate(0.8);
    -webkit-backdrop-filter: blur(20px) saturate(0.8);
    background-color: #0004;
    z-index: 18;
    transition: right .5s ease-in-out 1.2s;
}
.menu-inner {
    height: 100svh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    position: relative;
}
.menu.show-menu {
    right: 0;
    transition: right .5s ease-in-out 0s;
}
.menu .menu-item {
    margin: 20px 50px;
    transform: translateX(100%);
    width: 100%;
    opacity: 0;
}
.menu.show-menu .menu-item:nth-child(1) {
    transition: transform 1s ease-in-out 0s, opacity .6s ease-in-out .4s;
}
.menu.show-menu .menu-item:nth-child(2) {
    transition: transform 1s ease-in-out .15s, opacity .6s ease-in-out .55s;
}
.menu.show-menu .menu-item:nth-child(3) {
    transition: transform 1s ease-in-out .3s, opacity .6s ease-in-out .7s;
}
.menu.show-menu .menu-item:nth-child(4) {
    transition: transform 1s ease-in-out .45s, opacity .6s ease-in-out .85s;
}
.menu.show-menu footer .main .half:nth-child(1) {
    transition: transform 1s ease-in-out .6s, opacity .6s ease-in-out 1s;
    transform: translateX(0);
    opacity: 1;
}
.menu.show-menu footer .main .half:nth-child(2) {
    transition: transform 1s ease-in-out .75s, opacity .6s ease-in-out 1.15s;
    transform: translateX(0);
    opacity: 1;
}
.menu.show-menu footer .bottom {
    transition: transform 1s ease-in-out .9s, opacity .6s ease-in-out 1.3s;
    transform: translateX(0);
    opacity: 1;
}

.menu .menu-item:nth-child(1) {
    transition: transform 1s ease-in-out 1s, opacity .6s ease-in-out .9s;
}
.menu .menu-item:nth-child(2) {
    transition: transform 1s ease-in-out .85s, opacity .6s ease-in-out .75s;
}
.menu .menu-item:nth-child(3) {
    transition: transform 1s ease-in-out .7s, opacity .6s ease-in-out .6s;
}
.menu .menu-item:nth-child(4) {
    transition: transform 1s ease-in-out .55s, opacity .6s ease-in-out .45s;
}
.menu footer .main .half:nth-child(1) {
    transition: transform 1s ease-in-out .4s, opacity .6s ease-in-out .3s;
    opacity: 0;
    transform: translateX(100%);
}
.menu footer .main .half:nth-child(2) {
    transition: transform 1s ease-in-out .25s, opacity .6s ease-in-out .15s;
    opacity: 0;
    transform: translateX(100%);
}
.menu footer .bottom {
    transition: transform 1s ease-in-out .1s, opacity .6s ease-in-out 0s;
    opacity: 0;
    transform: translateX(100%);
}

.menu.show-menu .menu-item {
    opacity: 1;
    transform: translateX(0);
}

@media screen and (max-width: 750px) {
    nav .content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 85%;
        height: 100px;
        transition: all .5s;
    }

    .menu {
        width: 100%;
        right: calc(-100vw - 50px);
    }
}