/*Project pages — shared light theme
    1. General styles
    2. Header and navigation
    3. Page introduction
    4. Project layouts
    5. Footer
    6. Responsive layouts*/
:root {
    --ink: #111315;
    --paper: #f4f1e9;
    --paper-deep: #e9e5db;
    --blue: #2773f7;
    --muted: #686b6b;
    --font-head: "Space Grotesk",sans-serif;
    --font-body: "DM Sans",sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 82px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    color: #ffffff;
    border-bottom: 1px solid transparent;
    transition: background .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
    background: var(--paper);
    color: var(--ink);
    border-bottom-color: rgba(23,25,27,.14);
    box-shadow: 0 5px 18px rgba(17,19,21,.045);
}

.brand {
    font: 700 23px var(--font-head);
    letter-spacing: -1.2px;
    color: inherit;
}

.brand span {
    font-weight: 400;
}

.brand i {
    color: var(--blue);
    font-style: normal;
}

.navigation {
    display: flex;
    gap: 34px;
}

.navigation a {
    color: rgba(255,255,255,.88);
    font-size: 0.9rem;
    transition: color .2s ease;
}

.site-header.is-scrolled .navigation a,
.site-header.menu-open .navigation a {
    color: var(--muted);
}

.navigation a:hover,
.site-header.is-scrolled .navigation a:hover,
.site-header.menu-open .navigation a:hover {
    color: var(--blue);
}

.page-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 158px 7% 78px;
    background-color: #102c69;
    background-image: linear-gradient(rgba(8, 24, 58, .34), rgba(8, 24, 58, .42)), url("../images/category-blue-bg.webp");
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.back-link {
    display: inline-block;
    margin-bottom: 54px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
}

.back-link:hover {
    color: #ffffff;
}

.eyebrow,
.project-number {
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.eyebrow2 {
    color: var(--paper);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.page-intro h1 {
    margin: 12px 0 18px;
    font: 600 clamp(48px,7vw,76px)/1 var(--font-head);
    letter-spacing: -3px;
}

.page-intro h1 em {
    color: var(--blue);
    font-style: normal;
}

.intro-copy {
    max-width: 590px;
    color: rgba(255,255,255,.86);
    font-size: 16px;
    line-height: 1.75;
}

.project-section {
    padding: 74px 7% 82px;
    display: grid;
    grid-template-columns: minmax(280px,.82fr) minmax(0,1.18fr);
    gap: 70px;
    border-top: 1px solid #d8d4cb;
}

.project-section.alternate {
    background: var(--paper-deep);
    max-width: none;
    padding-left: 7%;
    padding-right: 7%;
}

.project-info {
    align-self: start;
    padding-top: 8px;
}

.project-number {
    margin: 0 0 18px;
}

.project-info h2 {
    margin: 0 0 12px;
    font: 600 clamp(32px,4vw,48px)/1.1 var(--font-head);
    letter-spacing: -1.5px;
}

.project-summary {
    margin: 0 0 30px;
    color: #55595a;
    font-size: 16px;
    line-height: 1.65;
}

.project-description h3 {
    margin: 24px 0 8px;
    font: 600 14px var(--font-head);
}

.project-description p {
    margin: 0;
    color: #55595a;
    font-size: 14px;
    line-height: 1.8;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #d3cfc6;
}

.project-meta div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.project-meta span {
    color: #777a79;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.project-meta strong {
    font-size: 12px;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--blue);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.project-link span {
    color: var(--blue);
    font-size: 17px;
}

.project-media {
    min-width: 0;
}

.project-media figure {
    margin: 0 0 18px;
    overflow: hidden;
    background: var(--paper-deep);
}

.project-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.main-image {
    max-height: 560px;
    border-radius: 3px;
}

.image-caption,
.media-caption {
    margin: 10px 0 18px;
    color: #777a79;
    font-size: 11px;
}

.project-media video {
    display: block;
    width: 100%;
    max-height: 680px;
    margin-top: 30px;
    background: var(--ink);
    object-fit: contain;
}

.project-media .secondary-image {
    max-width: 72%;
    margin-left: auto;
}

.image-grid {
    display: grid;
    gap: 12px;
}

.two-images {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.three-images {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.image-grid img {
    height: 145px;
    object-fit: cover;
    border-radius: 3px;
}

.site-footer {
    min-height: 100px;
    padding: 25px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--paper);
    color: var(--ink);
    border-top: 1px solid #d8d4cb;
}

.site-footer p,
.back-top {
    color: var(--muted);
    font-size: 11px;
}

.back-top {
    letter-spacing: 1px;
}

.eyebrow-line {
    display: inline-block;
    width: 28px;
    height: 1px;
    margin: 0 10px 4px 0;
    background: var(--blue);
}

@media (max-width:850px) {
    .project-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .project-section.alternate {
        padding-left: 7%;
        padding-right: 7%;
    }

    .project-info {
        max-width: 680px;
    }

}

@media (max-width:600px) {
    .site-header {
        min-height: 70px;
        padding: 0 6%;
    }

    .navigation {
        gap: 12px;
    }

    .navigation a {
        font-size: 9px;
        letter-spacing: .4px;
    }

    .brand {
        font-size: 19px;
    }

    .page-intro {
        padding: 140px 6% 45px;
    }

    .back-link {
        margin-bottom: 38px;
    }

    .page-intro h1 {
        letter-spacing: -2px;
    }

    .project-section,
    .project-section.alternate {
        padding: 52px 6% 58px;
    }

    .image-grid img {
        height: 100px;
    }

    .site-footer {
        padding: 24px;
        flex-wrap: wrap;
    }

}

/*Shared colour aliases used by every page.*/
:root {
    --cream: var(--paper);
    --line: rgba(23, 25, 27, 0.14);
}

/*Responsive navigation shared by every page*/
.menu-toggle {
    display: none;
    appearance: none;
    -webkit-appearance: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width:768px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        min-height: 70px;
        padding: 0 6%;
        background: transparent;
        color: #ffffff;
        border-bottom-color: transparent;
        box-shadow: none;
    }

    .site-header.is-scrolled,
    .site-header.menu-open {
        background: var(--paper);
        color: var(--ink);
        border-bottom-color: rgba(23,25,27,.14);
        box-shadow: 0 5px 18px rgba(17,19,21,.045);
    }

    .menu-toggle {
        display: flex;
    }

    .site-header .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 18px 6% 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        background: var(--paper);
        color: var(--ink);
        border-bottom: 1px solid rgba(23,25,27,.14);
        box-shadow: 0 12px 20px rgba(23,25,27,.06);
    }

    .site-header .navigation.is-open {
        display: flex;
    }

    .site-header .navigation a {
        font-size: 15px;
        letter-spacing: 0;
    }

}

/*Lightbox image viewing*/
.thumbnail-button,
.gallery-image-button {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.thumbnail-button img,
.gallery-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(12,14,18,.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

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

.lightbox-image {
    display: block;
    max-width: min(92vw,1500px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 70px rgba(0,0,0,.25);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    font: 300 38px/1 var(--font-body);
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width:768px) {
    .menu-toggle {
        width: 36px;
        height: 36px;
        padding: 7px 4px;
    }

    .lightbox-overlay {
        padding: 18px;
    }

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

}
