* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #eef3f8;
    background: #0a101b;
    padding: clamp(12px, 4vw, 30px);
}

.header {
    height: 95vh;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 16% 18%, rgba(33, 205, 196, .32), transparent 28%),
        radial-gradient(circle at 78% 24%, rgba(200, 67, 185, .22), transparent 31%),
        radial-gradient(circle at 52% 88%, rgba(83, 99, 230, .28), transparent 37%),
        linear-gradient(135deg, #0f1d2f 0%, #17213c 45%, #0b101b 100%);

    clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
    transition: clip-path .42s ease;
}

.header::before,
.header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.header::before {
    background-image:
        linear-gradient(rgba(119, 234, 241, .11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(119, 234, 241, .11) 1px, transparent 1px),
        linear-gradient(135deg, transparent 0 47%, rgba(255, 255, 255, .07) 48% 52%, transparent 53% 100%);
    background-size: 48px 48px, 48px 48px, 96px 96px;
    mask-image: radial-gradient(circle at 50% 42%, black, transparent 72%);
}

.header::after {
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0 34px,
            rgba(255, 255, 255, .07) 35px,
            transparent 36px 84px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0 42px,
            rgba(119, 234, 241, .07) 43px,
            transparent 44px 96px
        );
    mix-blend-mode: screen;
    opacity: .5;
}

.site-nav {
    --nav-logo-size: clamp(54px, 12vw, 70px);
    position: absolute;
    top: clamp(20px, 5vw, 40px);
    left: clamp(20px, 5vw, 40px);
    z-index: 3;
}

.logo-button {
    display: grid;
    width: var(--nav-logo-size);
    height: var(--nav-logo-size);
    place-items: center;
    appearance: none;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #f8fbff;
    background: rgba(15, 25, 40, .44);
    box-shadow:
        0 0 28px rgba(0, 255, 234, .1),
        inset 0 0 18px rgba(255, 255, 255, .04);
    cursor: pointer;
    backdrop-filter: blur(10px);
    line-height: 0;
}

.logo-button:focus-visible {
    outline: 2px solid rgba(47, 252, 255, .9);
    outline-offset: 4px;
}

.logo {
    display: block;
    width: calc(var(--nav-logo-size) * .72);
    height: calc(var(--nav-logo-size) * .72);
    aspect-ratio: 1;
    object-fit: contain;
    color: currentColor;
    opacity: .94;
    transform: rotate(0deg);
    transition: transform .3s ease, opacity .3s ease;
}

.site-nav.is-open .logo {
    opacity: 1;
    transform: rotate(135deg);
}

.section-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 180px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(15, 23, 38, .84);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, .32),
        0 0 28px rgba(255, 0, 213, .08);
    backdrop-filter: blur(14px);
    transform: translateY(-6px);
    animation: menuIn .18s ease-out forwards;
}

.section-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #edf8ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
}

.section-menu a:hover,
.section-menu a:focus-visible {
    color: #06111d;
    background: #2ffcff;
    outline: none;
}

.hero-glyph {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(70vw, 540px);
    transform: translate(-50%, -50%) rotate(-7deg);
    color: rgba(255, 255, 255, .02);
    filter:
        drop-shadow(0 0 6px rgba(0, 255, 234, .045))
        drop-shadow(0 0 16px rgba(255, 0, 213, .035));
    opacity: .42;
    z-index: 0;
    transition: opacity .45s ease, transform .45s ease, filter .45s ease;
}

.hero-glyph img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.text-box {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 720px);
    text-align: center;
    z-index: 1;
    transition: opacity .42s ease, transform .42s ease, filter .42s ease;
}

.header-primary {
    color: #FFF;
    text-transform: uppercase;
    backface-visibility: hidden;
    text-shadow: 0 10px 34px rgba(0, 0, 0, .28);
}

.header-primary-main {
    display: block;
    font-size: clamp(28px, 8vw, 52px);
    font-weight: 400;
    letter-spacing: clamp(4px, 2.8vw, 15px);
    line-height: 1.15;

    animation: moveInLeft 2.5s ease-out;
}

.header-primary-secondary {
    display: block;
    margin-top: 12px;
    font-size: clamp(12px, 3.4vw, 18px);
    font-weight: 700;
    letter-spacing: clamp(2px, 1.5vw, 10.5px);
    line-height: 1.35;

    animation: moveInRight 2.5s ease-out;
}

.header.is-panel .hero-glyph {
    opacity: .22;
    filter:
        drop-shadow(0 0 12px rgba(0, 255, 234, .08))
        drop-shadow(0 0 18px rgba(255, 0, 213, .04));
    transform: translate(-96%, -50%) rotate(-12deg) scale(.56);
}

.header.is-panel {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.header.is-panel .text-box {
    opacity: .62;
    filter: none;
    transform: translate(-116%, -50%) scale(.5);
    width: min(44%, 520px);
}

.work-panel,
.contact-panel {
    position: absolute;
    top: 50%;
    right: clamp(18px, 7vw, 86px);
    z-index: 2;
    display: grid;
    width: min(500px, calc(100% - 36px));
    max-height: min(700px, calc(100% - 118px));
    padding: clamp(20px, 4vw, 34px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(17, 26, 42, .92), rgba(22, 29, 52, .84)),
        radial-gradient(circle at 8% 0%, rgba(80, 229, 235, .2), transparent 42%);
    box-shadow:
        -28px 0 70px rgba(0, 0, 0, .34),
        0 0 54px rgba(255, 0, 213, .1);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translate(42px, -50%) scale(.96);
    transition: opacity .34s ease, transform .42s cubic-bezier(.2, .8, .2, 1);
}

.work-panel[aria-hidden="false"],
.contact-panel[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%) scale(1);
}

.contact-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    color: #7cecff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.contact-close {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    color: #f8fbff;
    background: rgba(255, 255, 255, .06);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.section-kicker {
    margin-bottom: 14px;
    color: #2ffcff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.contact-copy h2 {
    max-width: 460px;
    color: #fff;
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 300;
    line-height: 1.08;
    text-transform: uppercase;
}

.contact-intro {
    max-width: 430px;
    margin-top: 18px;
    color: #cad6e4;
    font-size: 17px;
}

.work-cards {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.work-card {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.work-card h3 {
    color: #f8fbff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.4px;
    line-height: 1.3;
    text-transform: uppercase;
}

.work-card p {
    margin-top: 8px;
    color: #cad6e4;
    font-size: 15px;
    line-height: 1.45;
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    color: #eef8ff;
    background: rgba(255, 255, 255, .08);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.profile-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}

.profile-link:hover {
    border-color: rgba(47, 252, 255, .58);
    background: rgba(47, 252, 255, .12);
    transform: translateY(-1px);
}

.profile-link:focus-visible {
    outline: 2px solid rgba(47, 252, 255, .9);
    outline-offset: 3px;
}

.contact-form {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.contact-fields {
    display: grid;
    gap: 12px;
}

.contact-form label {
    color: #edf8ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    color: #f8fbff;
    background: rgba(255, 255, 255, .08);
    font: inherit;
}

.contact-form input {
    height: 46px;
    padding: 0 14px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    padding: 12px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(47, 252, 255, .84);
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 252, 255, .16);
}

.contact-form textarea::placeholder {
    color: #728196;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.contact-button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    color: #f8fbff;
    background: rgba(255, 255, 255, .06);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.contact-button-primary {
    border-color: #2ffcff;
    color: #06111d;
    background: #2ffcff;
}

.contact-close:focus-visible,
.contact-button:focus-visible {
    outline: 2px solid rgba(47, 252, 255, .9);
    outline-offset: 3px;
}

.contact-close:hover,
.contact-button:hover {
    transform: translateY(-1px);
}

.contact-status {
    min-height: 22px;
    color: #b8c8d9;
    font-size: 14px;
}

@media (max-width: 700px) {
    .header {
        height: 92vh;
        clip-path: polygon(0 0, 100% 0, 100% 82vh, 0 100%);
    }

    .text-box {
        top: 46%;
    }

    .hero-glyph {
        width: 112vw;
        opacity: .2;
    }

.header.is-panel .hero-glyph {
        opacity: .14;
        transform: translate(-50%, -64%) rotate(-16deg) scale(.82);
    }

    .header.is-panel .text-box {
        opacity: .28;
        transform: translate(-50%, -102%) scale(.72);
        width: min(90%, 720px);
    }

    .work-panel,
    .contact-panel {
        inset: auto 12px 18px 12px;
        width: auto;
        max-height: calc(100% - 116px);
        padding: 20px;
        transform: translateY(34px) scale(.98);
    }

    .work-panel[aria-hidden="false"],
    .contact-panel[aria-hidden="false"] {
        transform: translateY(0) scale(1);
    }

    .contact-copy h2 {
        font-size: clamp(25px, 7vw, 34px);
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .header-primary-main {
        letter-spacing: 3px;
    }

    .header-primary-secondary {
        letter-spacing: 1.5px;
    }
}

@keyframes moveInLeft {

    0% {
        opacity: 0;
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(10px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
    
}

@keyframes moveInRight {

    0% {
        opacity: 0;
        transform: translateX(50%);
    }

    75% {
        transform: translateX(-10px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
    
}

@keyframes menuIn {

    0% {
        opacity: 0;
        transform: translateY(-6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }

}
