<style>
/* ============================================================
   TRAP NINE PROJECTS
   ============================================================ */

.tn-projects {
    position: relative;
    padding: 120px 0;
    background: #080b0c;
    color: #edf2ef;
    overflow: hidden;
}

.tn-projects::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        );

    background-size: 64px 64px;
    pointer-events: none;
}


/* ------------------------------------------------------------
   SECTION HEADER
   ------------------------------------------------------------ */

.tn-section-header {
    position: relative;
    z-index: 1;

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

    gap: 50px;
    margin-bottom: 55px;
}

.tn-eyebrow {
    margin-bottom: 18px;

    color: #b8ff00;

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        Consolas,
        monospace;

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

    letter-spacing: .18em;
}

.tn-section-header h2 {
    margin: 0;

    font-size: clamp(3rem, 6vw, 6rem);
    line-height: .85;

    font-weight: 900;

    letter-spacing: -.07em;
}

.tn-section-header h2 span {
    color: #b8ff00;
}

.tn-section-header > p {
    max-width: 420px;
    margin: 0;

    color: #77827e;

    font-size: 15px;
    line-height: 1.7;
}


/* ------------------------------------------------------------
   TOOLBAR
   ------------------------------------------------------------ */

.tn-project-toolbar {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(220px, 1fr)
        auto
        auto;

    gap: 10px;

    margin-bottom: 25px;
}


/* Search */

.tn-search {
    display: flex;
    align-items: center;

    height: 48px;

    padding: 0 15px;

    background: #0d1112;

    border: 1px solid #252d2d;
}

.tn-search:focus-within {
    border-color: #4d6200;
}

.tn-search-icon {
    margin-right: 10px;

    color: #b8ff00;

    font-size: 20px;
}

.tn-search input {
    width: 100%;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #fff;

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 12px;
}

.tn-search input::placeholder {
    color: #56605d;
}


/* Language filters */

.tn-language-filters {
    display: flex;
    align-items: stretch;

    gap: 5px;

    flex-wrap: wrap;
}

.tn-filter {
    height: 48px;

    padding: 0 14px;

    border: 1px solid #252d2d;

    background: #0d1112;

    color: #68726f;

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .08em;

    cursor: pointer;

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

.tn-filter:hover,
.tn-filter.active {
    border-color: #b8ff00;
    color: #b8ff00;
}


/* Sort */

.tn-sort {
    height: 48px;

    padding: 0 14px;

    border: 1px solid #252d2d;

    background: #0d1112;

    color: #858f8c;

    outline: none;

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 10px;
}


/* ------------------------------------------------------------
   STATUS
   ------------------------------------------------------------ */

.tn-project-status {
    min-height: 25px;

    margin-bottom: 15px;

    color: #596461;

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        Consolas,
        monospace;

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

    letter-spacing: .04em;
}

.tn-spinner {
    display: inline-block;

    width: 10px;
    height: 10px;

    margin-right: 8px;

    border: 1px solid #46504d;
    border-top-color: #b8ff00;

    border-radius: 50%;

    animation: tn-spin .7s linear infinite;
}

@keyframes tn-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ------------------------------------------------------------
   PROJECT CARD
   ------------------------------------------------------------ */

.tn-project-card {
    position: relative;

    display: flex;
    flex-direction: column;

    height: 100%;

    padding: 27px;

    background:
        linear-gradient(
            145deg,
            #111617 0%,
            #0d1011 100%
        );

    border: 1px solid #252d2d;

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.tn-project-card:hover {
    transform: translateY(-6px);

    border-color: #48514f;

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


/* Featured card */

.tn-project-card.tn-featured {
    border-color: #536700;
}

.tn-project-card.tn-featured::before {
    content: "FEATURED";

    position: absolute;

    top: 0;
    right: 0;

    padding: 7px 10px;

    background: #b8ff00;

    color: #111500;

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .1em;
}


/* Subtle green corner glow */

.tn-project-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -120px;
    bottom: -120px;

    border-radius: 50%;

    background: rgba(184,255,0,.045);

    transition: .3s;
}

.tn-project-card:hover::after {
    right: -80px;
    bottom: -80px;
}


/* ------------------------------------------------------------
   CARD HEADER
   ------------------------------------------------------------ */

.tn-card-top {
    position: relative;
    z-index: 1;

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

    min-height: 20px;
}

.tn-project-language {
    color: #b8ff00;

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .12em;
}

.tn-project-private {
    padding: 4px 7px;

    border: 1px solid #303735;

    color: #697471;

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 8px;
    font-weight: 700;
}


/* ------------------------------------------------------------
   CARD NAME
   ------------------------------------------------------------ */

.tn-project-name {
    position: relative;
    z-index: 1;

    margin: 27px 0 10px;

    font-size: 23px;
    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -.035em;
}

.tn-project-name a {
    color: #edf2ef;

    transition: color .2s;
}

.tn-project-name a:hover {
    color: #b8ff00;
}


/* ------------------------------------------------------------
   DESCRIPTION
   ------------------------------------------------------------ */

.tn-project-description {
    position: relative;
    z-index: 1;

    min-height: 52px;

    margin: 0 0 22px;

    color: #707b78;

    font-size: 13px;
    line-height: 1.65;
}


/* ------------------------------------------------------------
   TOPICS
   ------------------------------------------------------------ */

.tn-project-topics {
    position: relative;
    z-index: 1;

    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-bottom: 25px;
}

.tn-topic {
    padding: 5px 7px;

    border: 1px solid #2c3433;

    color: #68726f;

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 9px;

    transition: .2s;
}

.tn-topic:hover {
    border-color: #46514f;
    color: #b8ff00;
}


/* ------------------------------------------------------------
   CARD FOOTER
   ------------------------------------------------------------ */

.tn-card-bottom {
    position: relative;
    z-index: 1;

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

    gap: 10px;

    margin-top: auto;
    padding-top: 17px;

    border-top: 1px solid #222928;
}

.tn-project-stats {
    display: flex;
    gap: 15px;

    color: #68726f;

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 9px;
    font-weight: 600;
}

.tn-project-stats strong {
    color: #a0aaa7;
}

.tn-project-updated {
    color: #4f5956;

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 8px;
}


/* GitHub link */

.tn-project-link {
    position: relative;
    z-index: 1;

    display: inline-block;

    margin-top: 18px;

    color: #b8ff00;

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .06em;

    transition: transform .2s;
}

.tn-project-link:hover {
    color: #d6ff63;
    transform: translateX(4px);
}


/* ------------------------------------------------------------
   EMPTY STATE
   ------------------------------------------------------------ */

.tn-project-empty {
    padding: 100px 0;

    text-align: center;
}

.tn-empty-nine {
    color: #182000;

    font-size: 130px;
    line-height: .7;

    font-weight: 950;

    letter-spacing: -.1em;
}

.tn-project-empty h3 {
    margin-top: 30px;

    font-size: 25px;
}

.tn-project-empty p {
    color: #697471;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 991px) {

    .tn-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tn-project-toolbar {
        grid-template-columns: 1fr;
    }

    .tn-language-filters {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {

    .tn-projects {
        padding: 85px 0;
    }

    .tn-section-header h2 {
        font-size: 3.5rem;
    }

    .tn-project-card {
        padding: 23px;
    }

    .tn-project-name {
        font-size: 21px;
    }
}
</style>
