@font-face {
    font-family: 'Hanken';
    src: url('/hanken.woff2') format('woff2');
    font-weight: 300 800;
    font-display: swap;
}

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

body {
    font-family: 'Hanken', system-ui, -apple-system, sans-serif;
    background: radial-gradient(900px 600px at 30% 30%, #101f36 0%, #0a1626 45%, #050c16 100%);
    background-attachment: fixed;
    color: #eaf0f8;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem clamp(1.5rem, 10vw, 9rem);
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

/* Ghost monogram — adds depth behind the content */
body::before {
    content: 'AM';
    position: absolute;
    right: -3rem;
    top: 46%;
    transform: translateY(-50%);
    font-weight: 800;
    font-size: 44rem;
    line-height: 1;
    letter-spacing: -0.06em;
    color: #ffffff;
    opacity: 0.028;
    z-index: 0;
    pointer-events: none;
}

/* Fine grain over the gradient — kills banding, adds a photographic finish */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
    max-width: 56rem;
    position: relative;
    z-index: 2;
}

h1 {
    font-size: clamp(3.6rem, 11vw, 7rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.06;
    padding-bottom: 0.08em;
    margin-bottom: 1.2rem;
    background: linear-gradient(176deg, #ffffff 24%, #a9bdd8 82%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.role {
    font-size: 1.12rem;
    font-weight: 400;
    color: #8fa3bf;
    margin-bottom: 2.6rem;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2.4rem;
}

nav a {
    color: #eaf0f8;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    text-decoration-color: #2b4468;
    font-size: 1.05rem;
    font-weight: 500;
    transition: text-decoration-color 0.18s ease;
}

nav a:hover,
nav a:focus-visible {
    text-decoration-color: #eaf0f8;
}

footer {
    position: fixed;
    bottom: 1.7rem;
    color: #5d7191;
    font-size: 0.82rem;
    z-index: 2;
}

::selection {
    background: #1f3a63;
    color: #ffffff;
}

@media (max-width: 640px) {
    body::before {
        font-size: 20rem;
        right: -1rem;
        opacity: 0.035;
    }
}

/* Choreographed entrance: name, then role, then links */
@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

h1,
.role,
nav {
    animation: rise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

h1 { animation-delay: 0.05s; }
.role { animation-delay: 0.16s; }
nav { animation-delay: 0.27s; }

@media (prefers-reduced-motion: reduce) {
    h1, .role, nav { animation: none; }
    nav a { transition: none; }
}
