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

.page-hero {
    padding: 150px 0 80px;

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

.page-hero-grid {
    display: grid;

    grid-template-columns: 1fr 300px;

    gap: 80px;

    align-items: end;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 25px;

    color: #777;

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

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #555;
    animation: pulse-gray 2s infinite;
}

.page-hero h1 {
    font-size: clamp(58px, 9vw, 100px);

    line-height: 0.92;

    letter-spacing: -0.07em;

    font-weight: 700;
}

.page-hero h1 span {
    color: #888;
}

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

    margin-top: 30px;

    color: var(--text-secondary);

    font-size: 17px;

    line-height: 1.75;
}


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

.hero-aside {
    padding-left: 28px;

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

.aside-label {
    margin-bottom: 8px;

    color: #999;

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

    font-size: 10px;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.aside-value {
    margin-bottom: 25px;

    color: #444;

    font-size: 13px;
}

.aside-value:last-child {
    margin-bottom: 0;
}


/* =========================================================
       PROJECT AREA
    ========================================================= */

.projects-section {
    padding: 75px 0 110px;
}


/* =========================================================
       FILTER TABS
    ========================================================= */

.filter-bar {
    display: flex;

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

    margin-bottom: 35px;

    padding-bottom: 18px;

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

.filters {
    display: flex;

    align-items: center;

    gap: 7px;
}

.filter-button {
    padding: 8px 13px;

    border: 1px solid transparent;
    border-radius: 6px;

    background: transparent;

    color: #888;

    cursor: pointer;

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

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.filter-button:hover {
    color: #333;

    background: #efefec;
}

.filter-button.active {
    border-color: #d2d2ce;

    background: #fff;

    color: #222;
}

.project-count {
    color: #aaa;

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

    font-size: 10px;

    letter-spacing: 0.05em;
}


/* =========================================================
       FEATURED PROJECT
    ========================================================= */

.featured-project {
    display: grid;

    grid-template-columns: 1.2fr 1fr;

    min-height: 390px;

    margin-bottom: 55px;

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

    background: #fff;
}

.featured-visual {
    position: relative;

    overflow: hidden;

    min-height: 390px;

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

    background:
        linear-gradient(135deg,
            #f0f0ed 0%,
            #fafaf9 50%,
            #e7e7e3 100%);
}

/*
      Abstract technical visual.
      Replace this later with a real project screenshot.
    */

.visual-grid {
    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(rgba(0, 0, 0, 0.045) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.045) 1px,
            transparent 1px);

    background-size: 32px 32px;
}

.visual-node {
    position: absolute;

    width: 82px;
    height: 82px;

    display: grid;

    place-items: center;

    border: 1px solid #aaa;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.8);

    color: #666;

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

    font-size: 10px;
}

.node-a {
    top: 23%;
    left: 22%;
}

.node-b {
    top: 48%;
    left: 53%;
}

.node-c {
    bottom: 17%;
    left: 30%;
}

.visual-line {
    position: absolute;

    height: 1px;

    background: #aaa;

    transform-origin: left center;
}

.line-a {
    width: 180px;

    top: 43%;
    left: 29%;

    transform: rotate(18deg);
}

.line-b {
    width: 150px;

    top: 60%;
    left: 36%;

    transform: rotate(-30deg);
}

.featured-content {
    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 38px;
}

.featured-meta {
    display: flex;

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

.featured-label {
    color: #999;

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

    font-size: 10px;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.featured-year {
    color: #aaa;

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

    font-size: 10px;
}

.featured-title {
    margin-top: auto;
    margin-bottom: 15px;

    font-size: 34px;

    line-height: 1.05;

    letter-spacing: -0.045em;
}

.featured-description {
    margin-bottom: 25px;

    color: #777;

    font-size: 13px;

    line-height: 1.75;
}

.featured-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 30px;
}

.featured-tech span {
    padding: 5px 8px;

    border: 1px solid #e1e1de;
    border-radius: 4px;

    background: #fafaf9;

    color: #777;

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

    font-size: 9px;
}

.featured-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    width: fit-content;

    color: #333;

    font-size: 12px;
    font-weight: 650;

    border-bottom: 1px solid #aaa;
}

.featured-link:hover {
    color: #000;

    border-color: #000;
}



/* =========================================================
       PROJECT LIST
    ========================================================= */

.list-header {
    display: grid;

    grid-template-columns: 60px 1fr 190px 80px;

    gap: 30px;

    padding-bottom: 13px;

    color: #aaa;

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

    font-size: 9px;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

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

.project {
    display: grid;

    grid-template-columns: 60px 1fr 190px 80px;

    gap: 30px;

    align-items: start;

    padding: 29px 0;

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

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

.project:hover {
    background: #f0f0ed;

    padding-left: 10px;
    padding-right: 10px;
}

.project.hidden {
    display: none;
}

.project-number {
    color: #aaa;

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

    font-size: 10px;
}

.project-title {
    margin-bottom: 8px;

    font-size: 20px;

    line-height: 1.25;

    letter-spacing: -0.025em;
}

.project-description {
    max-width: 600px;

    color: #777;

    font-size: 12px;

    line-height: 1.7;
}

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;
}

.project-tech span {
    color: #777;

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

    font-size: 9px;
}

.project-tech span:not(:last-child)::after {
    content: "·";

    margin-left: 5px;

    color: #bbb;
}

.project-arrow {
    color: #999;

    font-size: 13px;

    text-align: right;

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

.project:hover .project-arrow {
    color: #111;

    transform: translateX(3px);
}


/* =========================================================
       PROJECT STATUS
    ========================================================= */

.project-status {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: 12px;

    color: #999;

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

    font-size: 9px;
}

.status-dot {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #aaa;
}


/* =========================================================
       RESPONSIVE
    ========================================================= */

@media (max-width: 850px) {

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

        gap: 50px;
    }

    .hero-aside {
        padding-left: 0;
        padding-top: 25px;

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

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

    .featured-visual {
        min-height: 300px;

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

    .list-header {
        grid-template-columns: 45px 1fr 70px;
    }

    .list-header span:nth-child(3) {
        display: none;
    }

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

        gap: 20px;
    }

    .project-tech {
        display: none;
    }
}


@media (max-width: 600px) {

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

    .navbar {
        height: 64px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a:nth-child(1),
    .nav-links a:nth-child(4) {
        display: none;
    }

    .nav-resume {
        padding: 7px 10px;
    }

    .page-hero {
        padding: 120px 0 65px;
    }

    .page-hero h1 {
        font-size: 58px;
    }

    .page-description {
        font-size: 15px;
    }

    .projects-section {
        padding: 55px 0 80px;
    }

    .filter-bar {
        align-items: flex-start;

        flex-direction: column;

        gap: 16px;
    }

    .filters {
        width: 100%;

        overflow-x: auto;

        padding-bottom: 4px;
    }

    .filter-button {
        white-space: nowrap;
    }

    .featured-visual {
        min-height: 260px;
    }

    .featured-content {
        padding: 25px;
    }

    .featured-title {
        margin-top: 55px;

        font-size: 29px;
    }

    .list-header {
        display: none;
    }

    .project {
        grid-template-columns: 30px 1fr 25px;

        gap: 13px;

        padding: 25px 0;
    }

    .project:hover {
        padding-left: 5px;
        padding-right: 5px;
    }

    .project-title {
        font-size: 18px;
    }

    .project-description {
        font-size: 11px;
    }

    .footer-inner {
        display: block;
    }

    .footer-right {
        margin-top: 10px;
    }
}

@keyframes pulse-gray {
    0% {
        box-shadow: 0 0 0 0 rgba(85, 85, 85, 0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(85, 85, 85, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(85, 85, 85, 0);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 185, 97, 0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(15, 185, 97, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 185, 97, 0);
    }
}