:root {
    --background: #0b0d12;
    --background-light: #11141b;
    --surface: #171b24;
    --surface-hover: #1d222d;

    --text: #f4f5f7;
    --text-muted: #a7adb9;

    --accent: #ffffff;
    --border: #282e3a;

    --max-width: 1100px;
    --narrow-width: 720px;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* ---------- Reset ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ---------- Shared ---------- */

.container {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: 0 auto;
}

.narrow {
    max-width: var(--narrow-width);
}

.section {
    padding: 110px 0;
}

.section-alt {
    background: var(--background-light);
}

.section-label {
    margin: 0 0 18px;

    color: var(--text-muted);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.1;
}

h1 {
    margin-bottom: 25px;

    font-size: clamp(3.5rem, 9vw, 7rem);
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 25px;

    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: -0.04em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

p {
    color: var(--text-muted);
}

.section-intro {
    max-width: 600px;
    margin-bottom: 45px;

    font-size: 1.1rem;
}


/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(11, 13, 18, 0.85);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(14px);
}

.nav-container {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 72px;
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-muted);

    font-size: 0.9rem;
    font-weight: 500;

    transition:
        color 0.2s ease;
}

nav a:hover {
    color: var(--text);
}


/* ---------- Hero ---------- */

.hero {
    display: flex;
    align-items: center;

    min-height: 75vh;

    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(255, 255, 255, 0.07),
            transparent 35%
        );
}

.hero-content {
    padding: 100px 0;
}

.eyebrow {
    margin-bottom: 25px;

    color: var(--text-muted);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.hero-text {
    max-width: 650px;
    margin-bottom: 35px;

    font-size: 1.2rem;
}


/* ---------- Buttons ---------- */

.button {
    display: inline-block;

    padding: 13px 22px;

    background: var(--accent);
    color: #0b0d12;

    border-radius: 7px;

    font-size: 0.9rem;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}


/* ---------- Projects ---------- */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 25px;
}

.project-card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 12px;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    background: var(--surface-hover);
}

.project-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    aspect-ratio: 16 / 9;

    background:
        linear-gradient(
            135deg,
            #161a22,
            #0e1117
        );

    color: #737b89;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-content {
    padding: 25px;
}

.project-content p {
    margin-bottom: 20px;
}

.status {
    display: inline-block;

    padding: 5px 9px;

    border: 1px solid var(--border);
    border-radius: 5px;

    color: var(--text-muted);

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}


/* ---------- Contact ---------- */

.contact-email {
    display: inline-block;

    margin-top: 10px;

    color: var(--text);

    font-size: 1.15rem;
    font-weight: 600;

    border-bottom: 1px solid var(--border);

    transition:
        border-color 0.2s ease;
}

.contact-email:hover {
    border-color: var(--text);
}


/* ---------- Footer ---------- */

.site-footer {
    padding: 30px 0;

    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;

    justify-content: space-between;
    gap: 20px;
}

.footer-content p {
    margin: 0;

    font-size: 0.8rem;
}


/* ---------- Mobile ---------- */

@media (max-width: 650px) {

    .container {
        width: min(
            calc(100% - 30px),
            var(--max-width)
        );
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 0.8rem;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        min-height: 70vh;
    }

    .footer-content {
        flex-direction: column;
    }
}