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

:root {
    --sage: #c7d0ba;
    --graphite: #0d1014;
    --graphite-soft: rgba(13, 16, 20, 0.7);
    --shift-x: 0px;
    --shift-y: 0px;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    /* background-color: var(--graphite); */
    color: var(--sage);
}

body {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
}

.background-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.background-container img {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%)
        translate(calc(var(--shift-x) * 0.03), calc(var(--shift-y) * 0.03));
    min-width: 115%;
    min-height: 115%;
    object-fit: cover;
    filter: saturate(0.35);
}

@media (min-width: 1024px) {
    .background-container img {
        top: 58%;
        left: 60%;
    }
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(6, 6, 6, 0.3), rgba(13, 16, 20, 0.85));
    pointer-events: none;
}

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 6vw, 5rem) clamp(2.25rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: 4rem;
    transform: translate(calc(var(--shift-x) * 0.005), calc(var(--shift-y) * 0.01));
    transition: transform 0.2s ease-out;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.nav-pills a,
.contact-pill {
    text-decoration: none;
    color: var(--sage);
    padding: 0.55rem 1.6rem;
    border: 1px solid rgba(199, 208, 186, 0.4);
    border-radius: 999px;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s;
    backdrop-filter: blur(6px);
}

.nav-pills a:hover,
.contact-pill:hover {
    background: rgba(199, 208, 186, 0.12);
    border-color: rgba(199, 208, 186, 0.8);
}

.contact-pill {
    font-weight: 600;
}

.hero-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2rem;
    transform: translate(calc(var(--shift-x) * 0.01), calc(var(--shift-y) * 0.02));
}

.name-stack {
    line-height: 0.95;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.first-name {
    display: block;
    font-size: clamp(4rem, 18vw, 11rem);
}

.last-name {
    display: block;
    font-size: clamp(4rem, 18vw, 11rem);
}

.role {
    align-self: flex-start;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    transform: translate(calc(var(--shift-x) * 0.01), calc(var(--shift-y) * 0.01));
}

@media (max-width: 768px) {
    .hero {
        gap: 2.5rem;
        padding: 2rem clamp(1rem, 6vw, 2rem) 2.5rem;
    }

    .top-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 1rem;
    }

    .nav-pills {
        width: 100%;
        justify-content: space-between;
    }

    .nav-pills a {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
        text-align: center;
    }

    .contact-pill {
        align-self: stretch;
        text-align: center;
    }

    .name-stack {
        text-align: left;
    }

    .hero-layout {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        gap: 1rem;
        padding: 1.25rem 1rem 1.75rem;
    }

    .top-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .nav-pills {
        flex-direction: row;
        gap: 0.4rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
    }

    .nav-pills a {
        flex: 0 0 auto;
        min-width: auto;
        padding: 0.45rem 1rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .name-stack {
        letter-spacing: -0.01em;
        gap: 0.2rem;
    }

    .first-name,
    .last-name {
        font-size: clamp(3rem, 18vw, 3.9rem);
        line-height: 1;
    }

    .role {
        font-size: 0.9rem;
        letter-spacing: 0.05em;
    }

    .contact-pill {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        text-align: center;
    }

    .hero-layout {
        justify-content: flex-end;
        gap: 0.85rem;
    }

    .nav-pills::-webkit-scrollbar {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero,
    .hero-layout,
    .role {
        transform: none !important;
    }

    .background-container img {
        transform: translate(-50%, -50%);
    }
}
