:root {
    color-scheme: light;
    --ink: #151a18;
    --muted: #59645f;
    --soft: #f4f7f3;
    --paper: #fbfcfa;
    --panel: #ffffff;
    --line: #dce5de;
    --line-strong: #bdcbc3;
    --green: #176b46;
    --green-dark: #0d4b34;
    --teal: #127987;
    --clay: #a7573a;
    --amber: #9d7118;
    --shadow: 0 18px 46px rgba(21, 26, 24, 0.11);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
}

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

a:hover {
    text-decoration: underline;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(251, 252, 250, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav-shell {
    max-width: 1180px;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    letter-spacing: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    background: var(--green-dark);
    font-size: 13px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.nav-links a:hover {
    color: var(--green-dark);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 8px;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 6px 0;
}

.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 112px 24px 70px;
    overflow: hidden;
    background: #0d1c15;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(54vw, 790px);
    background-image:
        linear-gradient(90deg, #0d1c15 0%, rgba(13, 28, 21, 0.88) 12%, rgba(13, 28, 21, 0.18) 34%, rgba(13, 28, 21, 0) 52%),
        url("./images/me.png");
    background-size: 100% 100%, cover;
    background-position: center, 64% center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(13, 28, 21, 0.98) 0%, rgba(13, 28, 21, 0.92) 42%, rgba(13, 28, 21, 0.28) 72%, rgba(13, 28, 21, 0.08) 100%);
    pointer-events: none;
}

.hero-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--clay);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f1c283;
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero h1 span {
    display: block;
}

.hero-copy {
    max-width: 720px;
    margin: 24px 0 0;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.84);
}

.hero-actions,
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid currentColor;
    padding: 10px 16px;
    font-weight: 800;
}

.button.primary {
    color: white;
    background: var(--green);
    border-color: var(--green);
}

.button.secondary {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.34);
}

.contact-panel .button.secondary {
    color: var(--green-dark);
    background: white;
    border-color: var(--line-strong);
}

.signal-bar {
    width: min(1120px, calc(100% - 48px));
    margin: -34px auto 0;
    position: relative;
    z-index: 2;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.signal-grid div {
    background: var(--panel);
    padding: 20px;
}

.signal-grid strong {
    display: block;
    font-size: 26px;
    line-height: 1.1;
}

.signal-grid span {
    color: var(--muted);
    font-size: 13px;
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 82px 24px;
}

.section-muted {
    max-width: none;
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-muted > .section-heading,
.section-muted > .project-list,
.section-muted > .timeline {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2,
.education-panel h2,
.contact-panel h2 {
    margin: 0;
    font-size: clamp(30px, 4.5vw, 52px);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-heading p:not(.section-kicker),
.contact-panel p,
.education-panel p {
    color: var(--muted);
    font-size: 18px;
}

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

.capability,
.project-row,
.stack-column,
.timeline-item,
.education-panel,
.contact-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.capability {
    padding: 24px;
}

.capability-index {
    display: inline-flex;
    color: var(--teal);
    font-weight: 900;
    margin-bottom: 34px;
}

.capability h3,
.project-row h3,
.stack-column h3,
.timeline-item h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.18;
}

.capability p,
.project-row p,
.stack-column p,
.timeline-item p {
    margin: 0;
    color: var(--muted);
}

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

.project-row {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 230px 180px;
    gap: 22px;
    align-items: start;
    padding: 22px;
}

.project-row.featured {
    border-color: #aac8b8;
}

.project-type {
    display: block;
    color: var(--clay);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    margin-bottom: 8px;
}

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

.project-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--muted);
    background: white;
    font-size: 12px;
    font-weight: 750;
}

.project-links {
    display: grid;
    gap: 8px;
    font-weight: 850;
    color: var(--green-dark);
}

.stack-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stack-column {
    padding: 22px;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 24px;
    padding: 22px;
}

.timeline-date {
    color: var(--clay);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.education-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    padding: 30px;
}

.education-panel p {
    margin: 0 0 10px;
}

.contact-section {
    padding-top: 18px;
}

.contact-panel {
    padding: 34px;
    background: #eef7f1;
    border-color: #bfd4c6;
}

.footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 44px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 980px) {
    .project-row {
        grid-template-columns: 1fr;
    }

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

    .capability-grid,
    .signal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .nav-shell {
        min-height: 62px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .nav-links {
        position: fixed;
        left: 14px;
        right: 14px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
    }

    .hero {
        min-height: 84vh;
    }

    .hero::before {
        width: 100%;
        opacity: 0.42;
        background-position: 66% center;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(13, 28, 21, 0.96), rgba(13, 28, 21, 0.8));
    }

    .hero-copy {
        font-size: 18px;
    }

    .capability-grid,
    .stack-layout,
    .timeline-item,
    .education-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 96px 18px 58px;
    }

    .section {
        padding: 64px 18px;
    }

    .signal-bar {
        width: calc(100% - 28px);
    }

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

    .hero-actions,
    .contact-links {
        display: grid;
    }

    .button {
        width: 100%;
    }
}
