@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter Fallback";
    src: local("Arial");
    ascent-override: 90.44%;
    descent-override: 22.52%;
    line-gap-override: 0%;
    size-adjust: 107.12%;
}

:root {
    --bg: #0a0a0c;
    --fg: #f2f2f0;
    --muted: #8a8a92;
    --faint: #4a4a52;
    --accent: #6b93d2;
    --line: rgba(255, 255, 255, .08);
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: Inter, "Inter Fallback", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80vmin 60vmin at 50% 42%, rgba(107, 147, 210, .14), transparent 70%),
        radial-gradient(ellipse 60vmin 30vmin at 50% 100%, rgba(255, 255, 255, .03), transparent 70%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: max(32px, env(safe-area-inset-top)) 24px 32px;
}

.hi {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 300;
    color: var(--muted);
    letter-spacing: -.01em;
    animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.name {
    margin-top: 12px;
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.035em;
    animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both;
}

.name span {
    color: var(--accent);
}

.tagline {
    margin-top: clamp(16px, 2.5vh, 28px);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 300;
    color: var(--muted);
    letter-spacing: .01em;
    animation: rise .9s .3s cubic-bezier(.2, .7, .2, 1) both;
}

.site {
    margin-top: clamp(18px, 3vh, 28px);
    animation: rise .9s .4s cubic-bezier(.2, .7, .2, 1) both;
}

.site a {
    display: inline-block;
    opacity: .45;
    transition: opacity .25s ease;
}

.site a:hover {
    opacity: 1;
}

.site img {
    display: block;
    height: clamp(20px, 2.4vw, 26px);
    width: auto;
}

footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    padding: 20px clamp(20px, 4vw, 48px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    font-size: .8rem;
    color: var(--muted);
    animation: fade 1s .5s ease both;
}

footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease;
}

footer a:hover {
    color: var(--fg);
}

.email a {
    color: var(--fg);
    font-weight: 500;
}

.social {
    display: flex;
    gap: 22px;
    list-style: none;
}

.copy {
    text-align: right;
    color: var(--faint);
}

html.js:not(.fonts-ready) .hi,
html.js:not(.fonts-ready) .name,
html.js:not(.fonts-ready) .tagline,
html.js:not(.fonts-ready) .site,
html.js:not(.fonts-ready) footer {
    animation-play-state: paused;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 640px) {
    footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .social {
        justify-content: center;
        gap: 18px;
    }

    .copy {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hi, .name, .tagline, .site, footer {
        animation: none;
    }
}
