/* =========================================================
   ROOT
========================================================= */

:root {
    --black: #080b0f;
    --black-2: #0d1218;
    --black-3: #111820;

    --white: #f7f9fb;
    --text: #151a20;
    --muted: #687482;
    --muted-light: #9aa7b5;

    --line: #d8dee5;
    --line-dark: #28323d;

    --green: #a4ff5f;
    --green-dark: #1f7000;

    --max-width: 1180px;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #f5f7f9;
    color: var(--text);

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

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

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

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   UTILITIES
========================================================= */

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

    margin-left: auto;
    margin-right: auto;
}

.section {
    padding-top: 120px;
    padding-bottom: 120px;
}

.eyebrow {
    margin: 0 0 22px;

    color: #758291;

    font-family:
        "DM Mono",
        monospace;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: .16em;
    text-transform: uppercase;
}


/* =========================================================
   HEADER
========================================================= */

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

    background: rgba(8, 11, 15, .94);

    border-bottom: 1px solid #1c252e;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav {
    height: 72px;

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

    gap: 30px;
}

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

    gap: 10px;

    color: #ffffff;

    font-family:
        "DM Mono",
        monospace;

    font-size: 14px;
}

.brand-mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid #35404b;

    color: var(--green);

    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 30px;

    color: #8f9ba8;

    font-size: 13px;
}

.nav-links a {
    transition:
        color .2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-github {
    color: var(--green);

    font-family:
        "DM Mono",
        monospace;

    font-size: 12px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    overflow: hidden;

    background: var(--black);

    color: #ffffff;
}

.hero-background {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(164, 255, 95, .09),
            transparent 30%
        ),

        radial-gradient(
            circle at 80% 70%,
            rgba(72, 194, 255, .055),
            transparent 28%
        );
}

.hero-grid {
    position: relative;
    z-index: 1;

    min-height: 700px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, .65fr);

    align-items: center;

    gap: 80px;
}

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

.hero .eyebrow {
    color: #8d9aa7;
}

.status-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 3px rgba(164, 255, 95, .08),
        0 0 16px rgba(164, 255, 95, .65);
}

.hero h1 {
    margin: 0 0 35px;

    max-width: 850px;

    font-size:
        clamp(54px, 7.2vw, 96px);

    line-height: .93;

    letter-spacing: -.075em;

    font-weight: 800;
}

.hero h1 span {
    color: var(--green);
}

.hero-description {
    max-width: 700px;

    margin: 0;

    color: #aab5c0;

    font-size: 18px;

    line-height: 1.75;
}

.hero-actions {
    display: flex;

    gap: 12px;

    margin-top: 40px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-flex;

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

    gap: 12px;

    min-height: 48px;

    padding: 0 19px;

    border: 1px solid #34404c;

    font-size: 13px;
    font-weight: 600;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

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

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

    background: var(--green);

    color: var(--black);
}

.button-primary:hover {
    background: #b7ff82;
    border-color: #b7ff82;
}

.button-secondary {
    color: #e5ebf0;
}

.button-secondary:hover {
    border-color: #697583;
}


/* =========================================================
   TERMINAL
========================================================= */

.terminal {
    background: #0e141b;

    border: 1px solid #293540;

    box-shadow:
        0 35px 90px rgba(0, 0, 0, .35);
}

.terminal-header {
    height: 44px;

    display: flex;
    align-items: center;

    padding: 0 15px;

    border-bottom: 1px solid #293540;
}

.terminal-dots {
    display: flex;

    gap: 6px;
}

.terminal-dots span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #35404c;
}

.terminal-title {
    margin-left: 12px;

    color: #697685;

    font-family:
        "DM Mono",
        monospace;

    font-size: 10px;
}

.terminal-body {
    padding: 28px;

    font-family:
        "DM Mono",
        monospace;

    font-size: 12px;
    line-height: 1.8;
}

.terminal-line {
    display: flex;

    gap: 10px;

    margin-bottom: 5px;

    color: #d7dee6;
}

.terminal-prompt {
    color: var(--green);
}

.terminal-output {
    padding-left: 20px;

    margin-bottom: 18px;

    color: #96a4b2;
}

.terminal-status {
    padding-left: 20px;

    color: var(--green);
}


/* =========================================================
   SIGNAL BAR
========================================================= */

.signal-bar {
    background: var(--green);

    color: var(--black);
}

.signal-grid {
    min-height: 125px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    align-items: center;
}

.signal {
    padding: 0 30px;

    border-right: 1px solid rgba(8, 11, 15, .18);
}

.signal:first-child {
    padding-left: 0;
}

.signal:last-child {
    border-right: none;
}

.signal strong {
    display: block;

    font-size: 36px;

    line-height: 1;

    letter-spacing: -.06em;
}

.signal span {
    display: block;

    margin-top: 9px;

    font-family:
        "DM Mono",
        monospace;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .08em;

    opacity: .68;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        360px;

    align-items: end;

    gap: 70px;

    margin-bottom: 55px;
}

.section-heading h2 {
    margin: 0;

    font-size:
        clamp(38px, 5vw, 62px);

    line-height: 1;

    letter-spacing: -.065em;
}

.section-heading > p {
    margin: 0;

    color: var(--muted);

    font-size: 15px;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    background: #f5f7f9;
}

.intro-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 100px;
}

.intro h2 {
    margin: 0;

    font-size:
        clamp(40px, 5vw, 65px);

    line-height: .98;

    letter-spacing: -.065em;
}

.intro-copy {
    max-width: 590px;
}

.intro-copy p {
    margin: 0 0 24px;

    color: #596574;

    font-size: 17px;

    line-height: 1.8;
}

.intro-copy p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   WORK
========================================================= */

.work-section {
    background: #f5f7f9;
}

.projects {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1px;

    overflow: hidden;

    background: #d8dee5;

    border: 1px solid #d8dee5;
}

.project {
    position: relative;

    min-height: 520px;

    display: flex;
    flex-direction: column;

    padding: 38px;

    background: #ffffff;
}

.project-dark {
    grid-row: span 2;

    background: var(--black);

    color: #ffffff;
}

.project-number {
    position: absolute;

    top: 38px;
    left: 38px;

    font-family:
        "DM Mono",
        monospace;

    font-size: 11px;

    color: #8995a2;
}

.project-category {
    align-self: flex-end;

    color: #7b8794;

    font-family:
        "DM Mono",
        monospace;

    font-size: 9px;

    letter-spacing: .08em;

    text-align: right;
}

.project-content {
    margin-top: 95px;
}

.project h3 {
    margin: 0 0 20px;

    font-size: 38px;

    line-height: 1;

    letter-spacing: -.055em;
}

.project p {
    max-width: 570px;

    margin: 0 0 18px;

    color: #5f6b78;

    font-size: 15px;

    line-height: 1.75;
}

.project-dark p {
    color: #a0acb8;
}

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: auto;

    padding-top: 30px;
}

.tags span {
    padding: 6px 8px;

    border: 1px solid #d8dee5;

    color: #687482;

    font-family:
        "DM Mono",
        monospace;

    font-size: 9px;
}

.project-dark .tags span {
    border-color: #33404c;

    color: #aab5c0;
}

.project-link {
    display: flex;

    justify-content: space-between;

    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid #d8dee5;

    font-family:
        "DM Mono",
        monospace;

    font-size: 11px;
}

.project-dark .project-link {
    border-color: #293540;
    color: var(--green);
}

.project-link span {
    transition: transform .2s ease;
}

.project-link:hover span {
    transform: translate(3px, -3px);
}


/* =========================================================
   DARK SECTION
========================================================= */

.dark-section {
    background: var(--black);

    color: #ffffff;
}

.dark-heading > p {
    color: #7e8b99;
}

.expertise-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

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

.expertise {
    min-height: 255px;

    padding: 36px 50px 36px 0;

    border-bottom: 1px solid var(--line-dark);
}

.expertise:nth-child(odd) {
    padding-right: 55px;

    border-right: 1px solid var(--line-dark);
}

.expertise:nth-child(even) {
    padding-left: 55px;
}

.expertise-number {
    color: var(--green);

    font-family:
        "DM Mono",
        monospace;

    font-size: 11px;
}

.expertise h3 {
    margin: 20px 0 15px;

    font-size: 25px;

    line-height: 1.1;

    letter-spacing: -.035em;
}

.expertise p {
    max-width: 480px;

    margin: 0;

    color: #8d9aa8;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   PRINCIPLES
========================================================= */

.principles {
    background: #f5f7f9;
}

.principle-list {
    border-top: 1px solid var(--line);
}

.principle {
    display: grid;

    grid-template-columns:
        70px
        1fr;

    gap: 35px;

    padding: 32px 0;

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

.principle > span {
    color: #8a96a3;

    font-family:
        "DM Mono",
        monospace;

    font-size: 11px;
}

.principle h3 {
    margin: 0 0 8px;

    font-size: 20px;

    letter-spacing: -.02em;
}

.principle p {
    max-width: 700px;

    margin: 0;

    color: #687482;

    font-size: 15px;
}


/* =========================================================
   JOURNEY
========================================================= */

.journey-section {
    background: #e9eef2;
}

.timeline {
    max-width: 900px;

    margin-left: auto;
}

.timeline-item {
    display: grid;

    grid-template-columns:
        150px
        1fr;

    gap: 45px;

    padding: 32px 0;

    border-top: 1px solid #c9d1d9;
}

.timeline-item:last-child {
    border-bottom: 1px solid #c9d1d9;
}

.timeline-year {
    color: #7b8794;

    font-family:
        "DM Mono",
        monospace;

    font-size: 11px;

    text-transform: uppercase;
}

.timeline-content h3 {
    margin: 0 0 8px;

    font-size: 23px;

    letter-spacing: -.035em;
}

.timeline-content p {
    max-width: 650px;

    margin: 0;

    color: #687482;

    font-size: 15px;
}

.timeline-current h3 {
    color: var(--green-dark);
}


/* =========================================================
   GITHUB
========================================================= */

.github-section {
    background: #f5f7f9;
}

.github-card {
    display: grid;

    grid-template-columns:
        1fr
        auto;

    align-items: end;

    gap: 35px;

    padding: 55px;

    background: #10161d;

    border: 1px solid #293540;

    color: #ffffff;
}

.github-card .eyebrow {
    color: #84919f;
}

.github-card h2 {
    margin: 0 0 15px;

    font-size: 52px;

    line-height: 1;

    letter-spacing: -.065em;
}

.github-copy > p:last-child {
    max-width: 620px;

    margin: 0;

    color: #9ca8b5;

    font-size: 15px;
}

.github-stats {
    display: flex;

    gap: 35px;
}

.github-stat {
    min-width: 80px;
}

.github-stats strong {
    display: block;

    font-size: 28px;

    line-height: 1;
}

.github-stats span {
    display: block;

    margin-top: 7px;

    color: #778492;

    font-family:
        "DM Mono",
        monospace;

    font-size: 9px;

    text-transform: uppercase;
}

.github-card .button {
    grid-column: 2;

    justify-self: end;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    background: #f5f7f9;

    text-align: center;
}

.contact-inner {
    max-width: 850px;
}

.contact h2 {
    margin: 0;

    font-size:
        clamp(52px, 7vw, 92px);

    line-height: .92;

    letter-spacing: -.075em;
}

.contact-description {
    max-width: 650px;

    margin: 28px auto 45px;

    color: #687482;

    font-size: 17px;

    line-height: 1.7;
}

.contact-links {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

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

.contact-links a {
    display: flex;

    justify-content: space-between;

    padding: 19px 20px;

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

    font-family:
        "DM Mono",
        monospace;

    font-size: 11px;

    text-align: left;

    transition:
        background .2s ease,
        padding .2s ease;
}

.contact-links a:hover {
    padding-left: 25px;

    background: #ffffff;
}

.contact-links strong {
    color: #7a8693;

    font-weight: 400;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: var(--black);

    color: #6f7c89;

    font-family:
        "DM Mono",
        monospace;

    font-size: 10px;
}

.footer-inner {
    min-height: 80px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 25px;

        padding-bottom: 80px;
    }

    .hero-content {
        padding-bottom: 30px;
    }

    .terminal {
        max-width: 650px;
    }

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

        padding-top: 20px;
        padding-bottom: 20px;
    }

    .signal {
        min-height: 75px;

        display: flex;
        flex-direction: column;
        justify-content: center;

        padding: 15px 25px;

        border-bottom: 1px solid rgba(8, 11, 15, .15);
    }

    .signal:nth-child(2) {
        border-right: none;
    }

    .signal:nth-child(3),
    .signal:nth-child(4) {
        border-bottom: none;
    }

    .intro-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .section-heading {
        grid-template-columns: 1fr;

        gap: 20px;
    }

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

    .project-dark {
        grid-row: auto;

        min-height: 500px;
    }

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

    .expertise,
    .expertise:nth-child(odd),
    .expertise:nth-child(even) {
        padding: 32px 0;

        border-right: none;
    }

    .github-card {
        grid-template-columns: 1fr;
    }

    .github-card .button {
        grid-column: 1;

        justify-self: start;
    }

    .timeline {
        margin-left: 0;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {

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

    .site-header {
        position: relative;
    }

    .nav {
        height: 64px;
    }

    .nav-links {
        display: none;
    }

    .nav-github {
        font-size: 11px;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-content {
        padding-top: 75px;
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: clamp(50px, 15vw, 78px);

        margin-bottom: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .terminal-body {
        padding: 22px;

        font-size: 10px;
    }

    .signal strong {
        font-size: 28px;
    }

    .signal span {
        font-size: 8px;
    }

    .section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .section-heading h2 {
        font-size: 42px;
    }

    .project {
        min-height: 430px;

        padding: 27px;
    }

    .project-dark {
        min-height: 470px;
    }

    .project-number {
        top: 27px;
        left: 27px;
    }

    .project-content {
        margin-top: 80px;
    }

    .project h3 {
        font-size: 31px;
    }

    .expertise {
        min-height: auto;
    }

    .principle {
        grid-template-columns: 45px 1fr;

        gap: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .github-card {
        padding: 30px;
    }

    .github-card h2 {
        font-size: 40px;
    }

    .github-stats {
        gap: 22px;
    }

    .github-stats strong {
        font-size: 24px;
    }

    .contact h2 {
        font-size: 56px;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        min-height: auto;

        padding-top: 25px;
        padding-bottom: 25px;

        align-items: flex-start;

        flex-direction: column;
    }

}
