@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Stencil:wght@700;800&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,300;1,400&family=JetBrains+Mono:wght@500;600&display=swap');

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    /* gunmetal / olive base */
    --bg: #14170e;
    --bg-deep: #0b0d08;
    --surface: rgba(26, 30, 19, 0.6);
    --surface-solid: #191d12;

    /* type + line */
    --text: #dedbc7;
    --muted: #8b8d72;
    --line: #383c29;
    --line-bright: #555a3c;

    /* brass stamp + dull ordnance red, used sparingly */
    --accent: #b3841f;
    --alert: #a8402a;
    --moss: #5c6b41;

    --max-width: 1500px;

    --font-display:
        'Big Shoulders Stencil',
        Impact,
        'Arial Narrow',
        sans-serif;

    --font-main:
        'Barlow',
        Arial,
        Helvetica,
        sans-serif;

    --font-mono:
        'JetBrains Mono',
        'Courier New',
        monospace;

}


/* =========================================================
   BASE
========================================================= */

html {
    scroll-behavior: smooth;
}

body {

    position: relative;

    min-height: 100vh;

    background: var(--bg-deep);

    color: var(--text);

    font-family: var(--font-main);

    line-height: 1.5;


    background-color: var(--bg-deep);

    background-image:url('images/bg.jpg');
    background-size: 100%;
    background-position: center;
    background-attachment: fixed;


}

/* frosted scrim between the texture and the content */
body::after {

    content: "";

    position: fixed;

    inset: 0;

    z-index: -1;

    background: var(--bg-deep);
opacity: 0.9;
    backdrop-filter: blur(22px) saturate(110%);

    -webkit-backdrop-filter: blur(22px) saturate(110%);

}

body.lightbox-open {
    overflow: hidden;
}

button {
    font: inherit;
}


/* =========================================================
   HAZARD DIVIDER (reused on header / heading / footer)
========================================================= */

.site-header::after,
.portfolio-heading::after,
.site-footer::before {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    height: 5px;

    background-image: repeating-linear-gradient(
        45deg,
        var(--accent) 0 8px,
        var(--bg-deep) 8px 16px
    );

    opacity: .55;

}


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

.site-header {

    position: relative;

    background: var(--surface);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    z-index: 10;

}

.site-header::after {
    bottom: -5px;
}

.header-inner {

    max-width: var(--max-width);

    margin: auto;

    padding: 26px 5vw;

    display: flex;

    align-items: center;

    justify-content: space-between;

}

.logo {

    text-decoration: none;

    color: var(--text);

    display: flex;

    align-items: baseline;

    gap: 10px;

    line-height: 1;

}

.logo span {

    font-family: var(--font-mono);

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 2.5px;

    text-transform: uppercase;

    color: var(--muted);

}

.logo strong {

    font-family: var(--font-display);

    font-weight: 700;

    font-size: 20px;

    letter-spacing: 1px;

    color: var(--accent);

}

.header-intro {

    color: var(--muted);

    font-family: var(--font-mono);

    font-size: 11px;

    letter-spacing: 1.5px;

    text-transform: uppercase;

}


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

.hero {

    min-height: 65vh;

    max-width: var(--max-width);

    margin: auto;

    padding: 10vh 5vw;

    display: flex;

    align-items: center;

    position: relative;

}

.hero::after {

    content: "";

    position: absolute;

    right: 5vw;

    bottom: 10%;

    width: 170px;

    height: 170px;

    border: 1px dashed var(--line-bright);

    clip-path: polygon(
        50% 0%, 90% 20%, 100% 60%,
        75% 100%, 25% 100%, 0% 60%, 10% 20%
    );

    transform: rotate(-4deg);

    opacity: .4;

}

.hero-content {
    max-width: 850px;
}


/* =========================================================
   EYEBROW
========================================================= */

.eyebrow {

    margin-bottom: 18px;

    display: flex;

    align-items: center;

    gap: 8px;

    font-family: var(--font-mono);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: var(--accent);

}

.eyebrow::before {

    content: "";

    display: inline-block;

    width: 7px;

    height: 7px;

    background: var(--accent);

}


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

.hero h1 {

    font-family: var(--font-display);

    font-size: clamp(
        3.2rem,
        7vw,
        7rem
    );

    line-height: 1;

    font-weight: 800;

    letter-spacing: 0;

    text-shadow:
        3px 3px 0 rgba(179, 132, 31, .22),
        -1px -1px 0 rgba(0, 0, 0, .6);

}

.hero h1 span {

    font-family: var(--font-main);

    font-weight: 300;

    font-style: italic;

    text-shadow: none;

    color: var(--muted);

}


.hero-description {

    max-width: 550px;

    margin-top: 40px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.7;

}


/* =========================================================
   PORTFOLIO
========================================================= */

.portfolio {

    max-width: var(--max-width);

    margin: auto;

    padding: 80px 5vw 120px;

}


/* =========================================================
   PORTFOLIO HEADING
========================================================= */

.portfolio-heading {

    position: relative;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 52px;

    padding-bottom: 25px;

}

.portfolio-heading::after {
    bottom: 0;
}

.portfolio-heading h2 {

    font-family: var(--font-display);

    font-weight: 700;

    font-size: clamp(
        2rem,
        4.2vw,
        4rem
    );

    line-height: 1;

    letter-spacing: 0;

}

.project-count {

    color: var(--muted);

    font-family: var(--font-mono);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 2px;

}


/* =========================================================
   MASONRY GALLERY
========================================================= */

.gallery {

    columns: 3 320px;

    column-gap: 20px;

}


/* =========================================================
   GALLERY ITEM
========================================================= */

.gallery-item {

    break-inside: avoid;

    margin-bottom: 20px;

}


/* =========================================================
   IMAGE BUTTON
   (notched corners = cut canvas, square corners = riveted)
========================================================= */

.image-button {

    display: block;

    position: relative;

    width: 100%;

    border: 0;

    padding: 0;

    cursor: pointer;

    background: var(--surface-solid);

    overflow: hidden;

    text-align: left;

    clip-path: polygon(
        0 12px,
        12px 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%
    );

    box-shadow: 0 0 0 1px var(--line) inset;

}

.image-button::before,
.image-button::after {

    content: "";

    position: absolute;

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: var(--muted);

    box-shadow: 0 0 0 1px rgba(0, 0, 0, .5);

    opacity: .75;

    z-index: 2;

}

.image-button::before {
    top: 7px;
    right: 7px;
}

.image-button::after {
    bottom: 7px;
    left: 7px;
}


/* =========================================================
   IMAGE
========================================================= */

.image-button img {

    display: block;

    width: 100%;

    height: auto;

    filter: saturate(.85) contrast(1.05) brightness(.9);

    transition:
        transform .7s cubic-bezier(
            .2,
            .7,
            .2,
            1
        );

}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.image-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 28px;

    background:
        linear-gradient(
            to top,
            rgba(9, 11, 6, .84),
            rgba(9, 11, 6, 0) 65%
        );

    color: var(--text);

    opacity: 0;

    transition: opacity .4s ease;

}

.image-button:hover img {

    transform: scale(1.035);

}

.image-button:hover .image-overlay {

    opacity: 1;

}


/* =========================================================
   IMAGE INFO
========================================================= */

.image-info h3 {

    margin-top: 5px;

    font-family: var(--font-display);

    font-weight: 700;

    font-size: 19px;

    letter-spacing: .5px;

}

.view-project {

    font-family: var(--font-mono);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: var(--accent);

    opacity: .9;

}

.arrow {

    position: absolute;

    right: 22px;

    top: 22px;

    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    background: rgba(9, 11, 6, .55);

    border: 1px solid rgba(222, 219, 199, .4);

    font-family: var(--font-mono);

    font-size: 17px;

}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {

    min-height: 400px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background: var(--surface);

    backdrop-filter: blur(6px);

    -webkit-backdrop-filter: blur(6px);

    border: 1px dashed var(--line-bright);

    padding: 40px;

}

.empty-icon {

    width: 58px;

    height: 58px;

    border: 1px dashed var(--line-bright);

    clip-path: polygon(
        30% 0, 70% 0, 100% 30%,
        100% 70%, 70% 100%, 30% 100%,
        0 70%, 0 30%
    );

    display: grid;

    place-items: center;

    font-family: var(--font-display);

    font-weight: 700;

    font-size: 26px;

    color: var(--accent);

    margin-bottom: 25px;

}

.empty-state h3 {

    font-family: var(--font-display);

    font-weight: 700;

    font-size: 22px;

    margin-bottom: 10px;

}

.empty-state p {

    max-width: 450px;

    color: var(--muted);

}


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

.site-footer {

    position: relative;

    background: var(--surface);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

}

.site-footer::before {
    top: -5px;
}

.footer-inner {

    max-width: var(--max-width);

    margin: auto;

    padding: 35px 5vw;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}

.footer-logo {

    font-family: var(--font-display);

    font-weight: 700;

    font-size: 14px;

    letter-spacing: 1.5px;

    color: var(--accent);

}

.footer-inner p {

    color: var(--muted);

    font-size: 12px;

}

.copyright {

    color: var(--muted);

    font-family: var(--font-mono);

    font-size: 10px;

    letter-spacing: .5px;

}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px;

    background: rgba(6, 8, 4, .96);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;

}

.lightbox.active {

    opacity: 1;

    visibility: visible;

}


/* =========================================================
   LIGHTBOX IMAGE
========================================================= */

.lightbox-content {

    max-width: 90vw;

    max-height: 90vh;

    display: flex;

    flex-direction: column;

    align-items: center;

}

.lightbox-content img {

    display: block;

    max-width: 90vw;

    max-height: 78vh;

    width: auto;

    height: auto;

    object-fit: contain;

    box-shadow: 0 0 0 1px var(--line-bright);

}


/* =========================================================
   LIGHTBOX CAPTION
========================================================= */

.lightbox-caption {

    width: 100%;

    margin-top: 18px;

    color: var(--text);

    text-align: center;

}

.lightbox-caption span {

    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-family: var(--font-mono);

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;

}

.lightbox-caption h3 {

    font-family: var(--font-display);

    font-weight: 700;

    font-size: 18px;

}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.lightbox-close {

    position: absolute;

    top: 25px;

    right: 30px;

    width: 46px;

    height: 46px;

    border: 1px solid rgba(222, 219, 199, .3);

    background: rgba(18, 21, 12, .6);

    color: var(--text);

    font-size: 26px;

    line-height: 1;

    cursor: pointer;

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

}

.lightbox-close:hover {

    background: rgba(179, 132, 31, .22);

    border-color: var(--accent);

}


/* =========================================================
   NAVIGATION
========================================================= */

.lightbox-nav {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 52px;

    height: 52px;

    border: 1px solid rgba(222, 219, 199, .3);

    background: rgba(18, 21, 12, .6);

    color: var(--text);

    font-size: 19px;

    cursor: pointer;

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

}

.lightbox-nav:hover {

    background: rgba(179, 132, 31, .22);

    border-color: var(--accent);

}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}


/* =========================================================
   FOCUS STATES
========================================================= */

button:focus-visible {

    outline: 2px solid var(--accent);

    outline-offset: 4px;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .hero {
        min-height: 55vh;
    }

    .hero::after {
        display: none;
    }

    .gallery {
        columns: 2 280px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .header-inner {

        padding: 22px 6vw;

    }

    .header-intro {
        display: none;
    }

    .hero {

        min-height: 65vh;

        padding: 70px 6vw;

    }

    .hero h1 {

        font-size: clamp(
            2.6rem,
            13vw,
            4.5rem
        );

    }

    .hero-description {

        margin-top: 30px;

        font-size: 15px;

    }

    .portfolio {

        padding:
            60px 6vw
            80px;

    }

    .portfolio-heading {

        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 34px;

    }

    .gallery {

        columns: 1;

    }

    .gallery-item {

        margin-bottom: 14px;

    }

    .image-overlay {

        opacity: 1;

        padding: 20px;

        background:
            linear-gradient(
                to top,
                rgba(9, 11, 6, .8),
                rgba(9, 11, 6, 0) 55%
            );

    }

    .image-info h3 {
        font-size: 17px;
    }

    .arrow {

        width: 32px;
        height: 32px;

        right: 16px;
        top: 16px;

    }

    .footer-inner {

        flex-direction: column;

        align-items: flex-start;

        gap: 12px;

    }

    .lightbox {

        padding: 20px;

    }

    .lightbox-content img {

        max-width: 94vw;

        max-height: 75vh;

    }

    .lightbox-nav {

        top: auto;

        bottom: 25px;

        transform: none;

    }

    .lightbox-prev {
        left: 25px;
    }

    .lightbox-next {
        right: 25px;
    }

    .lightbox-close {

        top: 15px;
        right: 15px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        transition: none !important;

        animation: none !important;

    }

}