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

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

html {
    scroll-behavior: smooth;
}

body {
    background: #f4f1eb;
    color: #171717;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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


/* =========================================================
   GLOBAL
========================================================= */

section {
    position: relative;
}

.section-label {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #666;
}

.eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


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

.navbar {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    padding: 28px 4vw;

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

    z-index: 10;
}

.logo {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.navbar nav {
    display: flex;
    gap: 34px;
}

.navbar nav a {
    position: relative;

    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.navbar nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -5px;

    width: 0;
    height: 1px;

    background: #171717;

    transition: width 0.3s ease;
}

.navbar nav a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;

    border: none;
    background: transparent;

    width: 30px;
    height: 20px;

    flex-direction: column;
    justify-content: space-between;

    cursor: pointer;
}

.menu-btn span {
    display: block;

    width: 100%;
    height: 1px;

    background: #171717;
}


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

.hero {
    min-height: 100vh;

    padding: 120px 7vw 70px;

    display: grid;

    grid-template-columns: 0.7fr 1.3fr;
    grid-template-rows: 1fr auto;

    gap: 30px;
}

.hero-number {
    position: absolute;

    top: 32%;
    left: 4vw;

    font-size: 0.62rem;
    letter-spacing: 0.15em;

    writing-mode: vertical-rl;
}

.hero-text {
    align-self: center;

    position: relative;
    z-index: 2;
}

.hero-text .eyebrow {
    margin-bottom: 25px;
}

.hero h1 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(5rem, 11vw, 11rem);

    font-weight: 500;
    line-height: 0.78;

    letter-spacing: -0.055em;

    text-transform: uppercase;
}

.hero h1 span {
    margin-left: 0.8em;
}

.hero-description {
    width: 250px;

    margin-top: 45px;

    font-size: 0.75rem;
    line-height: 1.7;

    color: #555;
}

.hero-image {
    width: min(100%, 520px);
    height: 72vh;

    justify-self: end;

    position: relative;
}

.hero-image img {
    filter: grayscale(8%);
}

.image-caption {
    position: absolute;

    right: 0;
    bottom: -28px;

    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;

    color: #666;
}

.scroll-indicator {
    grid-column: 1 / -1;

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

    border-top: 1px solid #cfcac1;

    padding-top: 15px;

    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    padding: 170px 7vw;

    border-top: 1px solid #d5d0c7;
}

.about-content {
    margin-top: 90px;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;

    gap: 10vw;

    align-items: end;
}

.about h2,
.work h2,
.contact h2 {
    font-family: "Cormorant Garamond", serif;

    font-weight: 500;

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

    line-height: 0.85;

    letter-spacing: -0.045em;
}

.about h2 em,
.work h2 em,
.contact h2 em {
    font-weight: 400;
}

.about-text {
    max-width: 360px;
}

.about-text p {
    font-size: 0.82rem;
    line-height: 1.9;

    color: #555;
}

.text-link {
    display: inline-block;

    margin-top: 35px;

    padding-bottom: 7px;

    border-bottom: 1px solid #171717;

    font-size: 0.65rem;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}


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

.gallery {
    padding: 120px 5vw 180px;

    background: #171717;
    color: #f4f1eb;
}

.gallery .section-label {
    color: #999;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 90px;
}

.section-heading h2 {
    font-family: "Cormorant Garamond", serif;

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

    font-weight: 400;
    line-height: 0.8;

    letter-spacing: -0.04em;
}

.section-heading h2 em {
    font-weight: 500;
}


/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {
    display: grid;

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

    gap: 40px 20px;

    position: relative;
}


/* =========================================================
   GALLERY IMAGES
========================================================= */

.gallery-item {
    position: relative;

    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.gallery-item.show {
    opacity: 1;

    transform: translateY(0);
}

.gallery-item img {
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.025);
}

.gallery-item figcaption {
    margin-top: 12px;

    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;

    color: #888;
}


/* =========================================================
   LARGE OPENING IMAGE
========================================================= */

.gallery-item-large {
    grid-column: 1 / 8;
}

.gallery-item-large img {
    height: 650px;
}


/* =========================================================
   SMALL UPPER-RIGHT IMAGE
========================================================= */

.gallery-item-small {
    grid-column: 9 / 13;

    margin-top: 0;
}

.gallery-item-small img {
    height: 420px;
}


/* =========================================================
   FIRST WIDE IMAGE
========================================================= */

.gallery-item-wide {
    grid-column: 7 / 13;

    margin-top: 160px;
}

.gallery-item-wide img {
    height: 430px;
}


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

.gallery-item-medium {
    grid-column: 2 / 6;

    margin-top: 50px;
}

.gallery-item-medium img {
    height: 500px;
}


/* =========================================================
   SECOND WIDE IMAGE
========================================================= */

.second-wide {
    grid-column: 7 / 13;

    margin-top: 160px;
}

.second-wide img {
    height: 430px;
}


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

.gallery-item-full {
    grid-column: 2 / 12;

    margin-top: 120px;
}

.gallery-item-full img {
    height: 600px;
}


/* =========================================================
   HALF IMAGES
========================================================= */

.gallery-item-half {
    grid-column: span 5;

    margin-top: 80px;
}

.gallery-item-half img {
    height: 500px;
}


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

.gallery-item-closing {
    grid-column: 4 / 10;

    margin-top: 120px;
}

.gallery-item-closing img {
    height: 550px;
}


/* =========================================================
   EDITORIAL GALLERY TEXT
========================================================= */

.gallery-note {
    color: #aaa;

    max-width: 220px;

    align-self: center;

    z-index: 2;
}

.gallery-note span {
    display: block;

    margin-bottom: 15px;

    font-size: 0.55rem;
    letter-spacing: 0.18em;

    color: #666;
}

.gallery-note p {
    font-family: "Cormorant Garamond", serif;

    font-size: 1.35rem;
    line-height: 1.15;

    font-style: italic;
}


/* =========================================================
   EDITORIAL TEXT POSITIONS
========================================================= */

/* Beside the first large photograph */

.note-one {
    grid-column: 8 / 12;

    grid-row: 1;

    align-self: center;

    margin-left: 20px;
}


/* In the open space between the images */

.note-two {
    grid-column: 1 / 5;

    align-self: center;

    margin-top: 100px;
}


/* Right-side negative space */

.note-three {
    grid-column: 9 / 13;

    align-self: center;

    margin-top: 80px;

    text-align: left;
}


/* Lower editorial text */

.note-four {
    grid-column: 1 / 4;

    align-self: center;

    margin-left: 20px;
}


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

.work {
    padding: 170px 7vw;
}

.work-intro {
    margin-top: 90px;

    margin-bottom: 120px;
}

.work-list {
    border-top: 1px solid #bbb5aa;
}

.work-item {
    display: grid;

    grid-template-columns: 80px 1fr 40px;

    align-items: center;

    padding: 30px 0;

    border-bottom: 1px solid #bbb5aa;

    transition: padding 0.35s ease;
}

.work-item:hover {
    padding-left: 20px;
    padding-right: 20px;
}

.work-item > span {
    font-size: 0.65rem;
    color: #777;
}

.work-item h3 {
    font-family: "Cormorant Garamond", serif;

    font-size: 2rem;
    font-weight: 500;
}

.work-item p {
    margin-top: 4px;

    font-size: 0.7rem;
    color: #777;
}


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

.contact {
    min-height: 90vh;

    padding: 150px 7vw;

    background: #ded9d0;
}

.contact-content {
    margin-top: 100px;
}

.contact h2 {
    margin-top: 35px;

    font-size: clamp(5rem, 10vw, 10rem);
}

.email-link {
    display: inline-block;

    margin-top: 70px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(1.8rem, 3vw, 3rem);

    border-bottom: 1px solid #171717;
}

.social-links {
    display: flex;

    gap: 30px;

    margin-top: 70px;
}

.social-links a {
    font-size: 0.65rem;

    text-transform: uppercase;
    letter-spacing: 0.12em;

    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.45;
}


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

footer {
    padding: 25px 4vw;

    display: flex;
    justify-content: space-between;

    background: #171717;
    color: #aaa;

    font-size: 0.58rem;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}


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

@media (max-width: 900px) {

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

        padding-top: 140px;
    }

    .hero-image {
        width: 75%;
        height: 60vh;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .about-content {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    /* Gallery tablet */

    .gallery-item-large {
        grid-column: 1 / 9;
    }

    .gallery-item-small {
        grid-column: 9 / 13;
    }

    .gallery-item-medium {
        grid-column: 1 / 6;
    }

    .gallery-item-wide {
        grid-column: 6 / 13;
    }

    .second-wide {
        grid-column: 6 / 13;
    }

    .gallery-item-full {
        grid-column: 1 / 13;
    }

    .gallery-item-closing {
        grid-column: 3 / 11;
    }
}


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

@media (max-width: 650px) {

    .navbar {
        padding: 22px 6vw;
    }

    .navbar nav {
        display: none;
    }

    .menu-btn {
        display: flex;
    }


    /* HERO */

    .hero {
        min-height: 100svh;

        padding: 120px 6vw 35px;

        display: flex;
        flex-direction: column;

        gap: 50px;
    }

    .hero-number {
        display: none;
    }

    .hero h1 {
        font-size: clamp(4.5rem, 20vw, 7rem);
    }

    .hero h1 span {
        margin-left: 0.2em;
    }

    .hero-description {
        margin-top: 30px;
    }

    .hero-image {
        width: 90%;
        height: 50vh;

        align-self: flex-end;
    }

    .scroll-indicator {
        margin-top: auto;
    }


    /* ABOUT */

    .about {
        padding: 100px 6vw;
    }

    .about-content {
        margin-top: 60px;
    }

    .about h2,
    .work h2 {
        font-size: 4.5rem;
    }


    /* GALLERY */

    .gallery {
        padding: 100px 6vw;
    }

    .section-heading {
        display: block;

        margin-bottom: 60px;
    }

    .section-heading h2 {
        margin-top: 40px;

        font-size: 5rem;
    }

    .gallery-grid {
        display: block;
    }


    /* Gallery images */

    .gallery-item,
    .gallery-item-large,
    .gallery-item-small,
    .gallery-item-medium,
    .gallery-item-wide,
    .second-wide,
    .gallery-item-full,
    .gallery-item-half,
    .gallery-item-closing {
        margin: 0 0 60px;
    }

    .gallery-item img,
    .gallery-item-large img,
    .gallery-item-small img,
    .gallery-item-medium img,
    .gallery-item-wide img,
    .gallery-item-full img,
    .gallery-item-half img,
    .gallery-item-closing img {
        height: 480px;
    }


    /* Editorial text */

    .gallery-note {
        max-width: 240px;

        margin: 20px 0 70px;

        text-align: left;
    }

    .gallery-note p {
        font-size: 1.2rem;
    }


    /* WORK */

    .work {
        padding: 100px 6vw;
    }

    .work-intro {
        margin: 60px 0 80px;
    }

    .work-item {
        grid-template-columns: 35px 1fr 25px;
    }

    .work-item h3 {
        font-size: 1.5rem;
    }


    /* CONTACT */

    .contact {
        min-height: auto;

        padding: 100px 6vw 120px;
    }

    .contact-content {
        margin-top: 60px;
    }

    .contact h2 {
        font-size: 5rem;
    }

    .social-links {
        flex-wrap: wrap;

        gap: 20px;
    }


    /* FOOTER */

    footer {
        padding: 20px 6vw;

        flex-direction: column;

        gap: 8px;
    }
}


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

.lightbox {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.94);

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

    padding: 5vh 5vw;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;

    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    width: auto;

    max-width: 90vw;
    max-height: 88vh;

    object-fit: contain;

    transform: scale(0.95);

    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;

    top: 25px;
    right: 35px;

    border: none;
    background: transparent;

    color: white;

    font-size: 2.5rem;
    font-weight: 300;

    cursor: pointer;

    z-index: 2;
}

.lightbox-close:hover {
    opacity: 0.6;
}


/* =========================================================
   NAVBAR AFTER SCROLLING
========================================================= */

.navbar.scrolled {
    position: fixed;

    background: rgba(244, 241, 235, 0.94);

    backdrop-filter: blur(10px);

    padding-top: 18px;
    padding-bottom: 18px;

    transition: all 0.3s ease;
}


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

@media (max-width: 650px) {

    .navbar nav.open {
        display: flex;

        position: absolute;

        top: 70px;
        left: 6vw;
        right: 6vw;

        padding: 25px;

        flex-direction: column;

        gap: 20px;

        background: #f4f1eb;

        border: 1px solid #d5d0c7;

        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    }

    .navbar nav.open a {
        font-size: 0.7rem;
    }


    /* Hamburger animation */

    .menu-btn.open span:first-child {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-btn.open span:last-child {
        transform: rotate(-45deg);
    }

    .menu-btn span {
        transition: transform 0.3s ease;
    }
}