/* Remove default browser spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Apply styles to whole page */
body {
    background-color: #f5f1e8;
    font-family: "owners-text", sans-serif;
    color: #cb2d1a;
    margin: 0;
}

/* Headings use Owners */
h1, h2, h3, h4, h5, h6 {
    font-family: "owners", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Example heading style */
h1 {
    font-size: 3rem;
    font-weight: 700;
        letter-spacing: 0.05em;
}

/* Example paragraph style */
p {
    font-size: 1.1rem;
}




header {
    padding-top: 30px; /* Space above nav */
}

header {
    position: relative;
    z-index: 1000;
}

main {
    position: relative;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

nav a {
    font-family: "owners", sans-serif;
    font-size: 1rem;
    color: #cb2d1a;
    text-decoration: none;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #191b1d;
}

nav span {
    color: #cb2d1a;
    pointer-events: none;
}

.nav-divider {
    height: 1px;
    background-color: #cb2d1a;

    margin-top: 15px;     /* Space below nav */
    margin-left: 30px;     /* Distance from edge */
    margin-right: 30px;    /* Distance from edge */
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
min-height: calc(75vh);
display: flex;
justify-content: center;
align-items: center;
padding-top: 0;
}

.logo-container {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
     gap: 7px; /* Adjust this value */
}

.logo-half {
    width: 200px; /* adjust size */

    transition: transform 1.5s ease;
    z-index: 2;
}

.hero-title {
    position: absolute;

    font-family: "owners", sans-serif;
    font-size: 4rem;

    opacity: 0;

    transition:
        opacity 0.6s ease 0.4s;

    z-index: 1;

        text-align: center; 

}

.logo-container:hover .left {
    transform: translateX(-40vw);
}

.logo-container:hover .right {
    transform: translateX(40vw);
}

.logo-container:hover .hero-title {
    opacity: 1;
}


.projects {
    padding: 30px 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px; /* space between the two images */
    align-items: stretch;
}

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

.full-row .project img {
    object-fit: contain;
    background: #f5f1e8;
}

.velovate-project img {
    object-fit: cover;
}

.velovate-project img {
    object-fit: cover !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project {
    position: relative;

    height: 400px;
    overflow: hidden;

    border-radius: 15px;
}


.section-divider {
    margin: 60px 30px 20px 30px;
    position: relative;
}

.section-divider .line {
    height: 1px;
    background-color: #cb2d1a;
    width: 100%;
}

.section-label {
    display: block;
    text-align: right;

    font-family: "owners", sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1rem;

    color: #cb2d1a;

    margin-bottom: 8px; /* space above the line */
}


.full-row {
    margin-top: 20px; /* space between rows */
    margin-bottom: 20px;
}

.full-row .full {
    grid-column: 1 / -1;
}





.rappel-project {
    position: relative;
    overflow: hidden;
}

.rappel-track {
    display: flex;
    height: 100%;
    width: max-content;

    animation: scroll-rappel 20s linear infinite;
}

.rappel-track img {
    height: 100%;
    width: auto;
    flex-shrink: 0;

    object-fit: contain;
}

@keyframes scroll-rappel {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.rappel-project:hover .rappel-track {
    animation-play-state: paused;
}

.project-overlay {
    position: absolute;
    inset: 0;

    background: #191b1d; /* CHANGE THIS COLOUR */

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

    opacity: 0;

    transition: opacity 0.4s ease;

    z-index: 2;
}

.project-overlay h3 {
    font-family: "owners", sans-serif;
    font-size: 2rem;
    color: #f5f1e8;

    opacity: 0;
    transform: translateY(10px);

    transition: all 0.4s ease;
}

.project:hover .project-overlay h3 {
    opacity: 1;
    transform: translateY(0);
}

.project img {
    transition: transform 0.6s ease;
}

.project:hover img {
    transform: scale(1.08);
}

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



.reverse-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: stretch;
}







.case-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
    align-items: stretch; /* IMPORTANT: was center */
    padding: 0 30px;
    box-sizing: border-box;
        min-height: 100vh;
}



.case-text {
    padding: 60px;
    text-align: left;
        order: 1;
}

.case-image {
    height: 100%;
}

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


.case-text h1 {
    margin-bottom: 20px;
}



.case-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    padding: 30px;
}

.case-row-2 img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.case-full {
    padding: 0 30px; /* matches your other sections */
    margin-bottom: 60px;
}

.case-full img {
    width: 100%;
    height: auto;      /* key: keeps original proportions */
    display: block;
    object-fit: contain; /* ensures no cropping */
}

.case-poster {
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.case-poster img {
    max-width: 100%;
    max-height: calc(100vh - 60px); /* accounts for the 30px top & bottom padding */
    width: auto;
    height: auto;
    display: block;
}

.video-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    padding: 30px;
}

.video-row video {
    width: 100%;
    display: block;

    border-radius: 15px; /* optional */
}


.case-text-block {
    padding: 0 30px; /* same as your images/videos */
    margin: 60px 0;
}

.case-text-block h2 {
    margin-bottom: 15px;
}

.case-text-block p {
    max-width: 700px; /* optional */
    line-height: 1.5;
}

.credits {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 20px;
    row-gap: 8px;
}

.name {
    font-weight: 500;
}

.role {
    text-align: left;
}



.case-row-2-natural {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px;
    align-items: start;
}

.case-row-2-natural img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.case-row-3-natural {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 30px;
    align-items: start;
}

.case-row-3-natural img {
    width: 100%;
    height: 30vw;      /* or 400px, see below */
    object-fit: contain;
    display: block;
}







.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 70px;

    padding: 50px;
}

.logo-button {
    border: none;
    background: none;
    cursor: pointer;

    padding: 0;
}

.logo-button img {
    width: 100%;
    height: auto;

    transition: transform 0.3s ease;
}

.logo-button:hover img {
    transform: scale(1.05);
}

.modal {
    display: none;

    position: fixed;
    inset: 0;

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

    z-index: 9999;

    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #f5f1e8;

    padding: 60px;

    border-radius: 30px;

    max-width: 500px;
    width: 90%;

    position: relative;
}

.modal-content img {
    width: 100%;
    height: auto;

    display: block;

    margin-bottom: 25px;
}

.close-btn {
    position: absolute;

    top: 20px;
    right: 20px;

    border: none;
    background: none;

    font-size: 2rem;
    cursor: pointer;
}


@media (max-width: 768px) {

    .project-grid,
    .reverse-row,
    .case-hero,
    .case-row-2,
    .case-row-2-natural,
    .case-row-3-natural,
    .video-row,
    .logo-grid {
        grid-template-columns: 1fr;
    }

    .full-row {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .project {
        height: 300px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .logo-half {
        width: 120px;
    }

    .case-text {
        padding: 30px;
    }

        .logo-grid {
        grid-template-columns: 1fr;
        gap: 120px;
        justify-items: center;
    }

    .logo-button {
        width: 60%; /* adjust as needed */
    }


    .site-footer {
    grid-template-columns: 1fr;
    gap: 30px;
}

}


.case-full video {
    width: 100%;
    height: auto;
    display: block;
}






.modal-content a {
    color: #cb2d1a;
    text-decoration: underline;
}

.modal-content a:hover {
    color: #191b1d;
}



.site-footer {
    background-color: #191b1d;
    color: #f5f1e8;

    display: grid;
    grid-template-columns: 1fr 1fr;

    padding: 60px 30px;
    gap: 40px;
}

.footer-column {
    text-align: left;
}

.site-footer h3 {
    font-family: "owners", sans-serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.site-footer a {
    color: #f5f1e8;
    text-decoration: none;

    font-family: "owners-text", sans-serif;
    font-size: 1rem;

    line-height: 1.8;
}

.site-footer a:hover {
    text-decoration: underline;
}