/* header */
.wrapper .header {
    width: 100%;
    max-width: 1500px;
    height: 100svh;
    background-color: transparent;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    position: relative;
    overflow: hidden;
    z-index: auto;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* centered logo (from loader) */
.header-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

.header-logo-center .loading-logo {
    width: 100px;
    height: 100px;
    opacity: 0;
}

/* background */
.header .header-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.header-background .header-spotlight-frame {
    width: max-content;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.header-spotlight-frame::before,
.header-spotlight-frame::after,
.header-spotlight-frame .header-sparkles::before,
.header-spotlight-frame .header-sparkles::after {
    content: '';
    width: 24px;
    height: 30px;
    background: url('/assets/img/artwork/decorations/sparkle.svg?v=1') no-repeat center/contain;
    position: absolute;
    z-index: 5;
}

.header-spotlight-frame::before {
    left: -12px;
    bottom: -15px;
}

.header-spotlight-frame::after {
    right: -12px;
    bottom: -15px;
}

.header-spotlight-frame .header-sparkles::before {
    left: -12px;
    top: -15px;
}

.header-spotlight-frame .header-sparkles::after {
    right: -12px;
    top: -15px;
}

.header-spotlight-frame .header-frame-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.header-frame-lines .line-extension-x,
.header-frame-lines .line-extension-y {
    position: absolute;
    inset: 0;
}

/* Horizontal line extensions from top and bottom frame edges */
.header-frame-lines .line-extension-x::before,
.header-frame-lines .line-extension-x::after {
    content: '';
    width: 200vw;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-top: solid .5px #44474D;
    z-index: 1;
}

.header-frame-lines .line-extension-x::before {
    top: -0.5px;
}

.header-frame-lines .line-extension-x::after {
    bottom: -0.5px;
}

/* Vertical line extensions from left and right frame edges */
.header-frame-lines .line-extension-y::before,
.header-frame-lines .line-extension-y::after {
    content: '';
    height: 200svh;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-left: solid .5px #44474D;
    z-index: 1;
}

.header-frame-lines .line-extension-y::before {
    left: -0.5px;
}

.header-frame-lines .line-extension-y::after {
    right: -0.5px;
}

.header-spotlight-image {
    width: auto;
    height: clamp(500px, 50vw, 600px);
    aspect-ratio: 400 / 530;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 5;
}

.header-spotlight-frame .header-decoration {
    width: auto;
    height: clamp(650px, 50vw, 850px);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    z-index: 2;
    pointer-events: none;
}

.header-spotlight-frame .header-grid-decoration {
    width: clamp(600px, 50vw, 1000px);
    height: auto;
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.5;
}

/* content */
.header .header-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    align-content: flex-end;
    justify-content: center;
    gap: 25px;
    padding: 25px 25px 75px 25px;
    position: relative;
    isolation: isolate;
    opacity: 0;
    border-left: solid .5px transparent;
    border-right: solid .5px transparent;
    border-bottom: solid .5px #44474D;
    z-index: 2;
    overflow: visible;
    transition: border .5s ease;
}

/* hello rotator (replaces old greeting) */
/* name */
.header-content .big-name {
    width: 100%;
    height: auto;
    display: flex;
    position: relative;
    z-index: 10;
}

.big-name .name-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.big-name .name-title {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
    gap: max(calc(11em / 3), calc(13vw / 3));
    height: max(11em, 13vw);
    color: #E4EDFF;
    line-height: 1;
    white-space: nowrap;
    margin-right: max(calc(11em / 3), calc(13vw / 3));
}

.big-name .name-wordmark {
    display: block;
    height: 100%;
    width: auto;
}

.big-name .name-divider {
    display: block;
    width: auto;
    height: max(calc(11em / 5), calc(13vw / 5));
    flex: 0 0 auto;
    rotate: 90deg;
}

/* screen media for tablets */
@media screen and (max-width: 1024px) {
    .header .header-background {
        max-width: 100%;
        border-left: none;
        border-right: none;
    }

    .header-background .header-spotlight-frame {
        padding: 15px;
    }

    .header-content .header-section {
        margin-top: auto;
        padding-bottom: 25px;
    }

    .header .hello-rotator {
        bottom: 25px;
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    .header-background .header-spotlight-frame {
        top: 55%;
    }

    .header-spotlight-image {
        height: clamp(400px, 80vw, 500px);
    }

    .big-name .name-title {
        gap: max(calc(7em / 3), calc(10vw / 3));
        height: max(7em, 10vw);
        margin-right: max(calc(7em / 3), calc(10vw / 3));
    }

    .big-name .name-divider {
        height: max(calc(7em / 5), calc(10vw / 5));
    }
}