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

html {
    scroll-behavior: smooth;
}

body {
    background: #111;
    color: white;
    font-family: "Manrope", sans-serif;
}

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

/* Hero section */

.hero {
    position: relative;
    min-height: 100vh;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.5)
        ),
        url("../images/hero.JPG");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

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

    text-align: center;
}

/* Navigation */

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

    width: 100%;
    padding: 28px 5%;

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

.logo {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.15rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

/* Hero text */

.hero-content {
    padding: 0 24px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    margin-bottom: 18px;
    letter-spacing: -0.04em;
    font-weight: 500;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.35rem);
    letter-spacing: 0.12em;
    line-height: 1.6;
}

/* Scroll indicator */

.scroll-link {
    position: absolute;
    bottom: 30px;

    display: flex;
    flex-direction: column;
    gap: 8px;

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

.scroll-link span {
    font-size: 1.3rem;
}

/* General sections */

.section {
    min-height: 70vh;
    padding: 120px 8%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.section-label {
    margin-bottom: 24px;

    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
}

.section h2 {
    max-width: 900px;

    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-text {
    max-width: 720px;
    margin-top: 32px;

    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.75;
}



/* Contact */

.contact-links {
    margin-top: 48px;

    display: flex;
}

.contact-links a {
    font-size: 1rem;

    opacity: 0.6;

    border-bottom: 1px solid rgba(255,255,255,0.3);

    padding-bottom: 5px;

    transition:
        opacity .25s ease,
        border-color .25s ease;
}

.contact-links a:hover {
    opacity: 1;

    border-bottom-color: white;
}

.footer-note {
    margin-top: 80px;

    font-size: .8rem;

    letter-spacing: .08em;

    opacity: .25;
}




/* Featured engineering project */

.engineering-section {
    padding-bottom: 160px;
}

.featured-project {
    width: 100%;
    margin-top: 80px;

    display: block;
}

.featured-project-image {
    width: 100%;
    overflow: hidden;
    border-radius: 3px;
}

.featured-project-image img {
    width: 100%;
    height: auto;
    display: block;

    filter: grayscale(100%);

    transition:
        transform 0.7s ease,
        opacity 0.4s ease;
}

.featured-project:hover .featured-project-image img {
    transform: scale(1.008);
    opacity: 0.9;
}

.featured-project-info {
    margin-top: 28px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

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

    font-size: 0.7rem;
    letter-spacing: 0.15em;
    opacity: 0.4;
}

.featured-project h3 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.project-summary {
    max-width: 500px;
    justify-self: end;
}

.project-summary p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.65;
}

.project-link {
    display: inline-block;
    margin-top: 24px;

    font-size: 0.85rem;
    letter-spacing: 0.04em;
    opacity: 0.7;

    transition: opacity 0.25s ease;
}

.featured-project:hover .project-link {
    opacity: 1;
}

























/* Photography contact sheet */

.photography-section {
    padding-bottom: 160px;
}


.contact-sheet {
    width: 100%;
    margin-top: 100px;

    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 90px 36px;

    align-items: start;
}



.photo-frame {
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;

    display: block;
    overflow: hidden;
}


.photo-large {
    grid-column: span 7;
}

.photo-medium {
    grid-column: span 5;
}

.photo-small {
    grid-column: span 4;
}

.photo-lower {
    margin-top: 80px;
}



.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;

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

.photo-frame:hover img {
    transform: scale(1.015);
    opacity: 0.88;
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;

    padding: 40px;

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

    background: rgba(8, 8, 8, 0.96);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: min(92vw, 1500px);
    max-height: 92vh;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    display: block;

    max-width: 100%;
    max-height: 72vh;

    object-fit: contain;
}


.lightbox-caption {
    margin-top: 24px;
    padding-bottom: 8px;

    text-align: center;
    color: rgba(255, 255, 255, 0.52);
}

.lightbox-caption p {
    margin: 4px 0;

    font-size: 0.78rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.lightbox-caption .lightbox-title {
    margin-bottom: 10px;

    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.lightbox-caption .lightbox-film {
    margin-top: 10px;
}

.lightbox-caption .lightbox-credit {
    margin-top: 10px;
    font-size: 0.7rem;
    opacity: 0.75;
}



.lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;

    border: 0;
    padding: 8px;

    background: none;
    color: white;

    font-family: inherit;
    font-size: 2rem;
    font-weight: 200;

    cursor: pointer;
    opacity: 0.65;
}

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

body.lightbox-open {
    overflow: hidden;
}























/* Tablet and smartphone layout */

@media (max-width: 700px) {
    .hero {
        min-height: 100svh;

        /*
        Move the visible crop toward the most important
        part of the photograph.
        */
        background-position: 62% center;
    }

    .navbar {
        padding: 20px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero-content {
        width: 100%;
        padding: 0 24px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.2rem);
        line-height: 1;
        margin-bottom: 16px;
    }

    .hero-content p {
        max-width: 300px;
        margin: 0 auto;

        font-size: 0.9rem;
        line-height: 1.7;
        letter-spacing: 0.08em;
    }

    .scroll-link {
        bottom: 22px;
        font-size: 0.65rem;
    }

    .section {
        min-height: auto;
        padding: 90px 24px;
    }

    .section h2 {
        font-size: clamp(2.2rem, 11vw, 3.4rem);
    }

    .section-text {
        font-size: 1rem;
        line-height: 1.7;
    }


    .photography-section {
    padding-bottom: 100px;
    }


    .contact-sheet {
        margin-top: 56px;

        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 16px;
    }

    .photo-large,
    .photo-medium,
    .photo-small {
        grid-column: span 1;
    }

    .photo-lower {
        margin-top: 32px;
    }
 

    .lightbox {
        padding: 18px;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 68vh;
    }

    .lightbox-close {
        top: 14px;
        right: 16px;
    }


    .lightbox-content {
    max-width: 100%;
    max-height: 92vh;
    }


    .lightbox-caption {
        margin-top: 18px;
    }

    .lightbox-caption p {
        font-size: 0.72rem;
    }


    .engineering-section {
    padding-bottom: 100px;
    }

    .featured-project {
        margin-top: 56px;
    }

    .featured-project-info {
        margin-top: 20px;

        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-summary {
        justify-self: start;
    }

    .featured-project h3 {
        font-size: 2.4rem;
    }

}

@media (max-width: 520px) {
    .nav-links a:nth-child(2),
    .nav-links a:nth-child(3) {
        display: none;
    }

    .contact-sheet {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .photo-large,
    .photo-medium,
    .photo-small {
        grid-column: 1;
    }

    .photo-lower {
        margin-top: 0;
    }
}














/* Individual project page */

.project-page {
    background: #111;
}

.project-navigation {
    width: 100%;
    padding: 28px 5%;

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

.project-home {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.project-back {
    font-size: 0.8rem;
    opacity: 0.6;

    transition: opacity 0.25s ease;
}

.project-back:hover {
    opacity: 1;
}

.project-introduction {
    padding: 120px 8% 100px;
}

.project-introduction h1 {
    max-width: 1100px;

    font-size: clamp(4rem, 11vw, 10rem);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.project-lead {
    max-width: 700px;
    margin-top: 48px;

    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    line-height: 1.55;
    opacity: 0.68;
}

.project-details {
    margin-top: 80px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;

    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 24px;
}

.project-details p {
    font-size: 0.85rem;
}

.project-detail-label {
    margin-bottom: 8px;

    font-size: 0.68rem !important;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    opacity: 0.4;
}

.project-hero-image,
.project-secondary-image {
    margin: 0;
    padding: 0 5%;
}

.project-hero-image img,
.project-secondary-image img {
    width: 100%;
    height: auto;
    display: block;

    border-radius: 3px;
    filter: grayscale(100%);
}

.project-hero-image figcaption,
.project-secondary-image figcaption {
    margin-top: 12px;

    font-size: 0.72rem;
    line-height: 1.5;
    opacity: 0.4;
}

.project-story {
    padding: 160px 8%;
}

.project-story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.project-story h2 {
    max-width: 620px;

    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.project-story-text {
    max-width: 600px;
}

.project-story-text p {
    margin-bottom: 28px;

    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.68;
}

.project-secondary-image {
    max-width: 1250px;
    margin: 0 auto;
}

.project-reflection {
    padding-bottom: 180px;
}

.project-footer {
    margin: 0 8%;
    padding: 40px 0 60px;

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

    border-top: 1px solid rgba(255, 255, 255, 0.14);

    font-size: 0.8rem;
    opacity: 0.5;
}


.project-video {
    max-width: 760px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.project-video h2 {
    margin: 0.75rem 0 1.25rem;
}

.project-video p {
    max-width: 620px;
    line-height: 1.7;
}

.video-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.2rem;
}

.video-link:hover {
    opacity: 0.6;
}




























/* Project page — mobile correction */

@media (max-width: 700px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .project-page main {
        width: 100%;
    }

    .project-navigation {
        width: 100%;
        padding: 20px 24px;

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

    .project-home,
    .project-back {
        font-size: 0.78rem;
    }

    .project-introduction {
        width: 100%;
        padding: 80px 24px 64px;
    }

    .project-introduction h1 {
        width: 100%;
        max-width: none;

        font-size: clamp(3.8rem, 20vw, 6rem);
        line-height: 0.92;
        letter-spacing: -0.06em;

        overflow-wrap: break-word;
    }

    .project-lead {
        max-width: 100%;
        margin-top: 32px;

        font-size: 1.08rem;
        line-height: 1.65;
    }

    .project-details {
        width: 100%;
        margin-top: 52px;

        grid-template-columns: 1fr;
        gap: 26px;

        padding-top: 22px;
    }

    .project-hero-image,
    .project-secondary-image {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 24px;
    }

    .project-hero-image img,
    .project-secondary-image img {
        width: 100%;
        height: auto;

        object-fit: contain;
    }

    .project-hero-image figcaption,
    .project-secondary-image figcaption {
        margin-top: 10px;
        padding-right: 12px;

        font-size: 0.68rem;
    }

    .project-story {
        width: 100%;
        padding: 96px 24px;
    }

    .project-story-layout {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .project-story h2 {
        max-width: 100%;

        font-size: clamp(2.3rem, 11vw, 3.2rem);
        line-height: 1.08;
    }

    .project-story-text {
        max-width: 100%;
    }

    .project-story-text p {
        margin-bottom: 24px;

        font-size: 1rem;
        line-height: 1.75;
    }

    .project-reflection {
        padding-bottom: 110px;
    }

    .project-footer {
        width: auto;
        margin: 0 24px;
        padding: 34px 0 44px;

        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}