:root {
    box-sizing: border-box;
    --accent: #4aa8ff;
    --line: #1c2a36;
    --muted: #9aa7b2
}

*, *::before, *::after {
    box-sizing: inherit
}

html, body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: Montserrat,"Segoe UI",Arial,sans-serif
}

body {
    min-height: 100%;
    overflow-x: hidden
}

/* header + menu */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(14px + env(safe-area-inset-top,0px)) 5vw 14px;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line)
}

.brand {
    font-family: Anton,Impact,sans-serif;
    font-size: 22px;
    letter-spacing: .06em;
    color: #fff;
    text-decoration: none
}

nav {
    display: flex;
    gap: 6px
}

    nav a {
        display: flex;
        align-items: center;
        gap: 9px;
        color: #cfd8df;
        text-decoration: none;
        font-family: Rajdhani,"Segoe UI",Arial,sans-serif;
        font-size: 17px;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        padding: 9px 16px;
        border-radius: 6px;
        transition: .2s
    }

        nav a svg {
            width: 19px;
            height: 19px;
            flex: none;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            transition: .2s
        }

        nav a:hover svg, nav a.active svg {
            stroke: var(--accent)
        }

        nav a:hover {
            color: #fff;
            background: #0d1822
        }

        nav a.active {
            color: #fff;
            box-shadow: inset 0 -2px 0 var(--accent)
        }

#burger {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    width: 44px;
    height: 40px;
    cursor: pointer;
    padding: 0
}

    #burger span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        margin: 5px auto;
        transition: .25s
    }

    #burger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg)
    }

    #burger.open span:nth-child(2) {
        opacity: 0
    }

    #burger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg)
    }

/* pages */
.page {
    display: none;
    min-height: 100vh;
    padding: calc(90px + env(safe-area-inset-top,0px)) 5vw calc(60px + env(safe-area-inset-bottom,0px))
}

    .page.show {
        display: block
    }

#home.show {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(76px + env(safe-area-inset-top,0px));
    padding-bottom: 50px;
    overflow: hidden;
    cursor: pointer
}

/* home */
#logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
    font-family: Montserrat,"Segoe UI",Arial,sans-serif;
    font-weight: 900;
    font-size: min(25vw,calc((100vh - 200px)/2.7));
    line-height: .9;
    letter-spacing: -.02em;
    perspective: 800px
}

.row {
    display: flex
}

.l {
    display: inline-block;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 100% 100%;
    -webkit-text-stroke: 1.5px #fff;
    opacity: 0;
    will-change: transform,opacity,filter;
    padding: 0
}

#sub {
    margin-top: 2.5vh;
    font-size: min(2.2vw,26px);
    font-weight: 500;
    letter-spacing: .3em;
    color: #fff;
    opacity: 0;
    text-align: left;
    padding: 0;
    text-shadow: 0 0 12px rgba(255,255,255,.35)
}

#hint {
    position: absolute;
    left: 5vw;
    bottom: calc(14px + env(safe-area-inset-bottom,0px));
    font-size: 12px;
    color: #333
}

/* content pages */
.wrap {
    max-width: 1000px;
    margin: 0 auto
}

h1 {
    font-family: Anton,Impact,sans-serif;
    font-weight: 400;
    font-size: clamp(40px,7vw,80px);
    letter-spacing: .03em;
    margin: 0 0 6px
}

.kicker {
    color: var(--accent);
    letter-spacing: .3em;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px
}

.lead {
    color: #d6dde3;
    font-size: clamp(16px,2vw,19px);
    line-height: 1.75;
    max-width: 720px;
    margin: 18px 0 38px
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
    gap: 18px
}

.card {
    border: 1px solid var(--line);
    background: #060d14;
    border-radius: 12px;
    padding: 24px;
    transition: .25s
}

    .card:hover {
        border-color: var(--accent);
        transform: translateY(-4px)
    }

    .card .n {
        font-family: Consolas,"Courier New",monospace;
        color: var(--accent);
        font-size: 14px
    }

    .card h3 {
        margin: 10px 0 8px;
        font-size: 18px;
        letter-spacing: .04em
    }

    .card p {
        margin: 0;
        color: var(--muted);
        line-height: 1.65;
        font-size: 15px
    }

.since {
    margin-top: 38px;
    padding: 22px 24px;
    border-left: 3px solid var(--accent);
    background: #060d14;
    font-size: 17px;
    letter-spacing: .06em
}

    .since b {
        font-family: Anton,Impact,sans-serif;
        font-weight: 400;
        font-size: 34px;
        color: #fff;
        margin-right: 10px
    }

.grid2 {
    max-width: 640px;
    margin-top: 30px
}

form {
    display: grid;
    gap: 16px
}

label {
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    display: grid;
    gap: 8px
}

input, textarea {
    font: inherit;
    font-size: 16px;
    color: #fff;
    background: #060d14;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    width: 100%
}

    input:focus, textarea:focus {
        outline: none;
        border-color: var(--accent)
    }

textarea {
    min-height: 140px;
    resize: vertical
}

button.send {
    font: inherit;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: 14px;
    color: #000;
    background: #fff;
    border: 0;
    border-radius: 8px;
    padding: 15px 24px;
    cursor: pointer;
    transition: .2s
}

    button.send:hover {
        background: var(--accent)
    }

.info {
    display: grid;
    gap: 14px;
    align-content: start
}

    .info .card p {
        color: #e4eaef
    }

#note {
    font-size: 14px;
    color: var(--accent);
    min-height: 20px
}

    #note.err {
        color: #ff7a7a
    }

button.send:disabled {
    opacity: .6;
    cursor: wait
}

/* simple desktop menu: plain text links, no icons */
@media (min-width:761px) {
    nav {
        gap: 34px
    }

        nav a {
            padding: 8px 0;
            border-radius: 0;
            font-size: 16px;
            letter-spacing: .16em;
            color: #aeb9c2;
            background: none
        }

            nav a svg {
                display: none
            }

            nav a:hover {
                background: none;
                color: #fff
            }

            nav a.active {
                box-shadow: inset 0 -2px 0 #fff;
                color: #fff
            }
}

@media (max-width:760px) {
    #burger {
        display: block
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #000;
        padding: calc(72px + env(safe-area-inset-top,0px)) 5vw 20px;
        border-bottom: 1px solid var(--line);
        transform: translateY(-110%);
        transition: transform .3s;
        z-index: -1
    }

        nav.open {
            transform: none
        }

        nav a {
            padding: 16px 6px;
            border-bottom: 1px solid var(--line);
            border-radius: 0;
            font-size: 19px
        }

            nav a.active {
                box-shadow: none;
                color: var(--accent)
            }

    #sub {
        font-size: 3.4vw;
        letter-spacing: .14em
    }
}
