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

:root {
    --text: #eef3fb;
    --muted: rgba(238, 243, 251, 0.67);
    --line: rgba(238, 243, 251, 0.14);
    --accent: #d4b152;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(212, 177, 82, 0.09), transparent 28%),
        radial-gradient(circle at 82% 14%, rgba(94, 124, 176, 0.12), transparent 24%),
        linear-gradient(160deg, #06101a 0%, #091728 46%, #07111d 100%);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
    pointer-events: none;
    z-index: 0;
}

#mesh-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

main {
    position: relative;
    z-index: 1;
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 42px 28px 72px;
}

.eyebrow,
.top-nav a,
h2,
.company-name,
.job-date,
.project-links a {
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.top-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.top-nav a,
.hero-links a,
.project-links a,
footer a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    font-size: 0.72rem;
    font-weight: 600;
}

.top-nav a::after,
.hero-links a::after,
.project-links a::after,
footer a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background: rgba(212, 177, 82, 0.72);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.top-nav a:hover::after,
.hero-links a:hover::after,
.project-links a:hover::after,
footer a:hover::after,
.top-nav a:focus-visible::after,
.hero-links a:focus-visible::after,
.project-links a:focus-visible::after,
footer a:focus-visible::after {
    transform: scaleX(1);
}

.hero {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    margin-bottom: 52px;
}

.headshot {
    width: 150px;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    filter: saturate(0.94) contrast(1.02);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
}

h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(3.8rem, 8vw, 6.4rem);
    line-height: 0.9;
    font-weight: 500;
    margin-bottom: 16px;
}

h1 em {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}

.about {
    max-width: 600px;
    color: rgba(238, 243, 251, 0.8);
    font-size: 1.03rem;
    line-height: 1.82;
    margin-bottom: 16px;
}

.hero-links,
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
}

.divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0 0 42px;
}

section {
    margin-bottom: 46px;
}

h2 {
    color: var(--accent);
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 177, 82, 0.34);
}

.job {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 26px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.job:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.job-logo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.job-logo img {
    display: block;
    max-width: 148px;
    width: 100%;
    height: auto;
}

.job-logo img[alt*="Netrex"] {
    max-width: 164px;
}

.job-logo img.stony-logo {
    max-width: 112px;
}

.projects .job-logo img {
    max-width: 132px;
}

.projects .job-logo img[alt*="CFA"] {
    max-width: 118px;
}

.job-date {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.job-content h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    line-height: 1.08;
    font-weight: 600;
    margin-bottom: 6px;
}

.company-name {
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.job-desc {
    color: rgba(238, 243, 251, 0.78);
    line-height: 1.82;
    font-size: 1rem;
    max-width: 680px;
}

.project-links {
    margin-top: 16px;
}

footer {
    margin-top: 54px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-dot {
    color: rgba(212, 177, 82, 0.7);
}

@media (max-width: 760px) {
    main {
        padding: 28px 18px 44px;
    }

    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 28px;
    }

    .top-nav-links,
    .hero-links,
    .project-links {
        gap: 10px 16px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 44px;
    }

    .headshot {
        width: 122px;
        height: 146px;
    }

    .about {
        font-size: 0.98rem;
    }

    h2 {
        font-size: 0.9rem;
        margin-bottom: 18px;
        padding-bottom: 8px;
    }

    .job {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .job-logo {
        gap: 10px;
    }

    .job-logo img {
        max-width: 124px;
    }

    .job-logo img[alt*="Netrex"] {
        max-width: 138px;
    }

    .projects .job-logo img[alt*="CFA"] {
        max-width: 108px;
    }

    footer {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .top-nav a::after,
    .hero-links a::after,
    .project-links a::after,
    footer a::after {
        transition: none;
    }
}
