@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}


body {
    background: #1A0004;
    color: #f3e9e5;
    font-family: 'DM Mono', monospace;
}



/* NAVIGATION */

header {
    width: 100%;
    padding: 30px 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: absolute;
    top: 0;

    z-index: 10;
}


.logo {
    font-family: "Math Sans", sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
}


nav {
    display: flex;
    gap: 30px;
}


nav a {
    color: #f3e9e5;
    text-decoration: none;
    font-size: 12px;
    text-transform: lowercase;
}


nav a:hover {
    opacity: 0.5;
}



/* HERO */

.hero {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 120px 20px;

    background:
        radial-gradient(
            circle at center,
            #2A0008 0%,
            #1A0004 55%,
            #090001 100%
        );

    overflow: hidden;
}


.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;

    margin-bottom: 25px;

    opacity: 0.7;
}


.hero h1 {
    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(60px, 14vw, 180px);

    font-weight: 400;
    font-style: italic;

    letter-spacing: -5px;

    max-width: 100%;
}

.hero-text {
    margin-top: 15px;

    font-size: 14px;

    opacity: 0.7;
}


.button {
    margin-top: 45px;

    padding: 15px 25px;

    border: 1px solid rgba(243, 233, 229, 0.5);

    color: #f3e9e5;

    text-decoration: none;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 2px;

    transition: 0.3s;
}


.button:hover {
    background: #f3e9e5;
    color: #1A0004;
}



/* GENERAL SECTIONS */

section {
    padding: 150px 8%;
}


.section-number {
    font-size: 10px;

    letter-spacing: 2px;

    opacity: 0.5;

    margin-bottom: 40px;
}


h2 {
    font-family: 'Playfair Display', serif;

    font-size: clamp(45px, 7vw, 90px);

    font-weight: 400;

    line-height: 0.95;
}



/* ABOUT */

.about {
    min-height: 80vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.description {
    max-width: 550px;

    margin-top: 50px;

    font-size: 13px;

    line-height: 2;

    opacity: 0.7;
}



/* CHALLENGES */

.challenges {
    background: #120002;
}


.challenge-grid {
    margin-top: 80px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

    width: 100%;
}


.challenge {
    border-top: 1px solid rgba(243, 233, 229, 0.3);

    padding-top: 20px;

    min-width: 0;
}


.challenge img {
    width: 100%;

    height: 400px;

    object-fit: cover;

    display: block;

    margin-bottom: 25px;
}


.challenge span {
    font-size: 10px;

    opacity: 0.5;
}


.challenge h3 {
    margin-top: 20px;

    font-family: 'Playfair Display', serif;

    font-size: 30px;

    font-weight: 400;
}


.challenge p {
    margin-top: 20px;

    font-size: 11px;

    line-height: 1.8;

    opacity: 0.6;
}



/* GALLERY */

.gallery-grid {
    margin-top: 70px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    align-items: start;

    width: 100%;
}


.gallery-grid img {
    width: 100%;

    height: auto;

    display: block;
}


.gallery-grid img.hidden {
    display: none;
}



/* GALLERY LAYOUT OVERRIDES (1x1 / 2x2 / 3x3 toggle) */

.gallery-grid.cols-1 {
    grid-template-columns: 1fr;
}


.gallery-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}


.gallery-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}



/* FILTERS */

.filters {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 25px;

    margin-top: 50px;

    margin-bottom: 50px;
}


.filter {
    background: none;

    border: none;

    color: #f3e9e5;

    font-family: 'DM Mono', monospace;

    font-size: 10px;

    letter-spacing: 1px;

    cursor: pointer;

    padding: 0;

    opacity: 0.45;
}


.filter:hover {
    opacity: 1;
}


.filter.active {
    opacity: 1;
}



/* LAYOUT TOGGLE (1x1 / 2x2 / 3x3 buttons) */

.layout-toggle {
    display: flex;

    gap: 15px;

    margin-left: auto;
}


.layout-btn {
    background: none;

    border: none;

    color: #f3e9e5;

    font-family: 'DM Mono', monospace;

    font-size: 10px;

    letter-spacing: 1px;

    cursor: pointer;

    padding: 0;

    opacity: 0.45;
}


.layout-btn:hover {
    opacity: 1;
}


.layout-btn.active {
    opacity: 1;
}



/* FOOTER */

footer {
    padding: 40px 8%;

    border-top: 1px solid rgba(243, 233, 229, 0.15);

    display: flex;

    justify-content: space-between;

    font-size: 10px;

    opacity: 0.5;
}



/* TABLET */

@media (max-width: 900px) {

    section {
        padding: 120px 6%;
    }


    .challenge-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .challenge img {
        height: 350px;
    }
}



/* MOBILE */

@media (max-width: 700px) {

    header {
        padding: 25px 5%;
    }


    nav {
        gap: 15px;
    }


    nav a {
        font-size: 10px;
    }


    .hero {
        padding: 120px 20px;

        overflow: hidden;
    }


    .hero h1 {
        font-size: clamp(55px, 17vw, 100px);

        letter-spacing: -3px;

        word-break: break-word;
    }


    .hero-text {
        font-size: 12px;

        max-width: 90%;
    }


    section {
        padding: 100px 6%;
    }


    h2 {
        font-size: clamp(45px, 12vw, 70px);
    }


    .description {
        margin-top: 35px;

        font-size: 12px;
    }


    .challenge-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 12px;
    }


    .challenge img {
        height: 350px;
    }


    .filters {
        gap: 18px;

        margin-top: 40px;

        margin-bottom: 40px;
    }


    footer {
        padding: 30px 6%;

        flex-direction: column;

        gap: 15px;
    }
}