/* ---------- Base ---------- */

:root {
    --bg: #0b0f14;
    --surface: #111820;
    --surface-hover: #151e28;

    --text: #f3f5f7;
    --text-muted: #9aa7b5;

    --accent: #4da3ff;
    --border: #24303d;

    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);

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

    line-height: 1.6;
}


/* ---------- Page Layout ---------- */

main {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
}


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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 28px 0;
}

.logo {
    color: var(--text);

    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.site-header nav {
    display: flex;
    gap: 28px;
}

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

    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;

    transition: color 150ms ease;
}

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


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

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: calc(100vh - 180px);
    margin: 0;
    padding: 40px 0 70px;
}

.hero h1 {
    margin: 0;

    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.eyebrow {
    margin: 32px 0 0;

    color: var(--accent);

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

.hero-description {
    max-width: 760px;
    margin: 18px 0 0;

    color: var(--text-muted);

    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.5;
}


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

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;

    margin-top: 32px;
}

.button-primary {
    display: inline-block;
    padding: 12px 20px;

    background: var(--accent);
    color: #07111c;

    border-radius: 6px;

    font-weight: 700;
    text-decoration: none;

    transition:
        transform 150ms ease,
        opacity 150ms ease;
}

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

.button-secondary {
    color: var(--text);

    font-weight: 600;
    text-decoration: none;

    transition: color 150ms ease;
}

.button-secondary:hover {
    color: var(--accent);
}


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

#projects {
    margin-top: 0;
    padding: 100px 0 140px;
    border-top: 1px solid var(--border);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 64px;
}

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

    color: var(--accent);

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#projects h2 {
    margin: 0;

    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.project-list {
    display: grid;
    gap: 24px;
}

.project-card {
    padding: 40px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;

    transition:
        transform 150ms ease,
        background 150ms ease,
        border-color 150ms ease;
}

.project-card:hover {
    transform: translateY(-3px);
    background: var(--surface-hover);
    border-color: #34475b;
}

.project-meta {
    display: flex;
    justify-content: space-between;

    margin-bottom: 48px;

    color: var(--text-muted);

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

.project-status {
    color: var(--accent);
}

.project-card h3 {
    margin: 0;

    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.035em;
}

.project-question {
    max-width: 800px;
    margin: 16px 0 0;

    color: var(--text);

    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
}

.project-description {
    max-width: 800px;
    margin: 18px 0 0;

    color: var(--text-muted);

    font-size: 1rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 28px;
}

.project-tags span {
    padding: 6px 10px;

    color: var(--text-muted);
    background: var(--bg);

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

    font-size: 0.8rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 24px;

    margin-top: 36px;
}

.project-links a {
    color: var(--text);

    font-weight: 700;
    text-decoration: none;
}

.project-links a:first-child {
    color: var(--accent);
}

.project-links a:hover {
    text-decoration: underline;
}

/* ---------- How I Work ---------- */

#approach {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;

    margin-top: 64px;

    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.approach-item {
    padding: 40px;
    background: var(--surface);
}

.approach-number {
    color: var(--accent);

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

.approach-item h3 {
    margin: 24px 0 16px;

    font-size: 1.8rem;
    letter-spacing: -0.03em;
}

.approach-item p {
    margin: 0;

    color: var(--text-muted);

    line-height: 1.7;
}

.approach-item ul {
    margin: 28px 0 0;
    padding: 0;

    list-style: none;
}

.approach-item li {
    padding: 8px 0;

    color: var(--text);

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

    font-size: 0.9rem;
    font-weight: 600;
}

.approach-item li:last-child {
    border-bottom: 0;
}


/* ---------- Process Flow ---------- */

.approach-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    margin-top: 48px;
    padding: 24px;

    color: var(--text);

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

.flow-arrow {
    color: var(--accent);
}

/* ---------- About ---------- */

#about {
    padding: 120px 0 140px;
    border-top: 1px solid var(--border);
}

.about-label {
    margin-bottom: 56px;
}

.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.about-content h2 {
    margin: 0;

    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.about-story {
    max-width: 680px;
}

.about-story p {
    margin: 0 0 24px;

    color: var(--text-muted);

    font-size: 1.05rem;
    line-height: 1.8;
}

.about-story p:first-child {
    color: var(--text);
    font-size: 1.15rem;
}

.about-link {
    display: inline-block;
    margin-top: 12px;

    color: var(--accent);

    font-weight: 700;
    text-decoration: none;
}

.about-link:hover {
    text-decoration: underline;
}

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

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 36px 0 48px;

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

    color: var(--text-muted);

    font-size: 0.85rem;
}

.footer-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    color: var(--text);

    font-weight: 800;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;

    transition: color 150ms ease;
}

.footer-links a:hover {
    color: var(--text);
}

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

@media (max-width: 700px) {

    main {
        width: min(100% - 32px, var(--max-width));
    }

    .site-header {
        padding: 22px 0;
    }

    .site-header nav {
        gap: 18px;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 120px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .project-card {
        padding: 28px;
    }

    #projects {
        padding-top: 80px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .approach-item {
        padding: 28px;
    }

    .approach-flow {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    #about {
        padding: 80px 0 100px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}