:root {
    --linen: #eae0d5;
    --lightlinen: #f5f0e9;
    --black: #0a0908;
    --halblue: #313689;
    --darkblue: #050720;
    --tan: #c6ac8f;
    --white: #ffffff;
    --gallery-gap: 1.5rem;
    --gallery-section-space: 64px;
    color-scheme: dark;

}

@media (max-width: 1200px) {
    :root {
        --gallery-gap: 1rem;
    }
}

p {
    color: #111;
}

.project-hero-fixed-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
}

.project-hero {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.project-hero picture,
.project-hero img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.project-hero-spacer {
    width: 100vw;
    height: 100vh;
}

body.people-page .project-hero {
    height: auto;
    max-height: none;
}

body.people-page .project-hero picture {
    width: 100vw;
    height: auto;
}

body.people-page .project-hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

body.people-page .project-hero-fixed-wrapper {
    height: auto;
}

body.people-page .project-hero-spacer {
    height: auto;
    aspect-ratio: 16 / 9;
}

.project-info-section {
    width: 100vw;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
    padding: 64px 0;
    position: relative;
    z-index: 10;
    margin-top: -5vh;
}

.project-page-info-section {
    width: 100vw;
    background: #fff;
    display: flex;
    padding: 64px 64px;
    position: relative;
    z-index: 10;
}

.project-info-inner {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
}

.project-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7em;
    font-size: 1.5rem;
    font-weight: 300;

}

.project-info-text h1 {
    font-size: 2.8em;
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    margin: 0 0 0.2em 0;
    color: #111;
}

.project-info-meta {
    display: flex;
    gap: 1.5em;
    font-size: 1.2em;
    color: #444;
    font-weight: 500;
    margin-bottom: 0.2em;
}

.project-info-location {
    font-family: 'Gambetta', serif;
}

.project-info-description {
    font-size: 1.15em;
    color: #222;
    max-width: 700px;
    line-height: 1.6;
}

.project-shape {
    position: absolute;
    top: -107px;
    left: 0;
    width: clamp(300px, 50vw, 640px);
    aspect-ratio: 640 / 107;
    overflow: visible;
    z-index: 30;
}

.project-shape svg {
    width: 100%;
    height: 100%;
    display: block;
    z-index: 30;
    fill: yellowgreen;
}

.project-shape-text {
    dominant-baseline: middle;
}

/* Tighten title-to-meta spacing: the h1 margin and flex gap were stacking */
.project-page-info-section .project-info-text h1 {
    margin-bottom: 0;
}

.project-page-info-section .project-info-meta {
    margin-bottom: 0.6rem;
}

/* Keep project shape anchored flush to the section edge as it scales */
.project-page-info-section {
    --project-shape-width: clamp(260px, 40vw, 520px);
    --project-shape-height: calc(var(--project-shape-width) * 107 / 640);
    --project-shape-overlap: 0px;
    /* Space above the title scales with the tab so the gap stays proportionate at every width */
    padding-top: calc(var(--project-shape-height) * 0.3);
}

/* Tab built from three pieces (fixed-proportion curve caps + a stretchy middle) so curves always scale uniformly */
.project-page-info-section .project-shape {
    display: flex;
    width: var(--project-shape-width);
    height: calc(var(--project-shape-width) * 107 / 640);
    aspect-ratio: auto;
    top: calc(-1 * (var(--project-shape-width) * 107 / 640) + var(--project-shape-overlap));
}

.project-page-info-section .project-shape svg {
    flex: none;
    height: 100%;
    overflow: visible;
}

.project-page-info-section .project-shape .tab-left {
    width: calc(100% * 86 / 640);
}

.project-page-info-section .project-shape .tab-right {
    width: calc(100% * 205 / 640);
}

.project-page-info-section .project-shape::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 1px;
    background: #fff;
}

.project-page-info-section .project-shape .tab-middle {
    flex: 1;
    margin: 0 -0.5px;
    background: #fff;
    box-shadow: -1px 0 0 #fff, 1px 0 0 #fff;
}

@media (max-width: 900px) {
    .project-info-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-info-section {
        padding: 32px 0;
    }

    .project-info-text h1 {
        font-size: 1.6em;
    }

    .project-info-meta {
        font-size: 1.2rem;
    }

    .project-info-description {
        font-size: 1em;
    }

    .project-shape {
        position: absolute;
        top: -107px;
        left: 0;
        width: clamp(300px, 50vw, 640px);
        aspect-ratio: 640 / 350;
        overflow: visible;
        z-index: 30;
    }

    .project-page-info-section {
        padding: 30px 6vw;
        padding-top: calc(var(--project-shape-height) * 0.4);
        --project-shape-width: 50vw;
        padding-bottom: 40px;
    }

    .project-page-info-section .project-info-inner {
        padding: 0;
    }

    /* Heading > subheading stays tight; subheading > body gets a little more room */
    .project-page-info-section .project-info-text {
        gap: 0.5rem;
    }

    .project-page-info-section .project-info-meta {
        margin-bottom: 0.5rem;
    }

    .project-page-info-section .project-shape {
        top: calc(-1 * (var(--project-shape-width) * 107 / 640) + var(--project-shape-overlap));
    }
}

.project-description-continuation {
    padding-bottom: var(--gallery-section-space);
}

/* Discover more section (full-width rule with 4rem side padding) */
.discover-more {
    width: 100vw;
    background: var(--white);
    position: relative;
    z-index: 28;
    display: flex;
    justify-content: center;
    padding-bottom: 32px;
}

.discover-more-inner {
    --discover-pad: 4rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0 var(--discover-pad);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Full-bleed rule: flat line, then the same eased dip as the project tab's right side, then flat again.
   Built from fixed-pixel pieces (no stretching) so the curve is identical at every width. */
.discover-rule {
    --dip: 32px;
    --dip-w: 49.2px;
    --dip-at: min(50vw, calc(4rem + 15rem));
    position: relative;
    align-self: stretch;
    height: 1px;
    margin: 0 calc(-1 * var(--discover-pad));
    background: linear-gradient(#000, #000) 0 0 / calc(var(--dip-at) + 1px) 1px no-repeat;
}

.discover-rule::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--dip-at);
    width: var(--dip-w);
    height: calc(var(--dip) + 1px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 49.2 33'%3E%3Cpath d='M0 .5 C18.4 .5 18.4 32.5 49.2 32.5' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") no-repeat;
}

.discover-rule::after {
    content: "";
    position: absolute;
    top: var(--dip);
    left: calc(var(--dip-at) + var(--dip-w) - 1px);
    right: 0;
    height: 1px;
    background: #000;
}

.discover-more h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #111;
}

@media (max-width: 900px) {
    .discover-more-inner {
        --discover-pad: 6vw;
        gap: 0.5rem;
    }

    .discover-rule {
        --dip-at: calc(6vw + 10rem);
    }

    .discover-more {
        padding-bottom: 1rem;
    }

    .discover-more h2 {
        font-size: 1.25rem;
    }

    .discover-more .discover-more-wrapper {
        padding-top: 0.5rem;
    }
}

@media (max-width: 600px) {
    .discover-more-inner {
        --discover-pad: 5vw;
    }
}

/* Lightbox for connect page images */
.image-lightbox-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1200;
    backdrop-filter: blur(6px);
}

.image-lightbox-wrapper {
    max-width: 90vw;
    max-height: 90vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.image-lightbox-wrapper img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.image-lightbox-status {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 4px #000;
}

@media (max-width: 900px) {
    .image-lightbox-overlay {
        align-items: flex-end;
    }

    .image-lightbox-wrapper {
        max-width: 90vw;
        max-height: calc(50vh - 64px);
        margin-bottom: 50vh;
    }

    .image-lightbox-wrapper img {
        max-height: calc(50vh - 64px);
    }
}

/* Lightbox arrows and close */
.image-lightbox-arrow,
.carousel-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 0;
    color: #fff;
    cursor: pointer;
    backdrop-filter: none;
}

.image-lightbox-arrow {
    z-index: 1210;
}

.carousel-arrow {
    z-index: 2;
}

.image-lightbox-arrow.left,
.carousel-arrow.left {
    left: 0;
}

.image-lightbox-arrow.right,
.carousel-arrow.right {
    right: 0;
}

.image-lightbox-arrow .arrow-shape,
.carousel-arrow .arrow-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.image-lightbox-arrow.right .arrow-shape,
.carousel-arrow.right .arrow-shape {
    transform: scaleX(-1);
}

.image-lightbox-arrow .arrow-shape path,
.carousel-arrow .arrow-shape path {
    stroke: #fff;
    stroke-width: 1.5px;
}

.image-lightbox-arrow .arrow-chevron,
.carousel-arrow .arrow-chevron {
    position: relative;
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.image-lightbox-arrow.left .arrow-chevron,
.carousel-arrow.left .arrow-chevron {
    margin-right: 6px;
}

.image-lightbox-arrow.right .arrow-chevron,
.carousel-arrow.right .arrow-chevron {
    margin-left: 6px;
}

.carousel-arrow.left .arrow-shape,
.carousel-arrow.left .arrow-chevron {
    pointer-events: none;
    filter: drop-shadow(-4px 0 5px rgba(0, 0, 0, 0.8));
}

.carousel-arrow.right .arrow-shape,
.carousel-arrow.right .arrow-chevron {
    pointer-events: none;
    filter: drop-shadow(4px 0 5px rgba(0, 0, 0, 0.8));
}

.carousel-arrow::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50vw;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.015) 25%,
            rgba(0, 0, 0, 0.04) 50%,
            rgba(0, 0, 0, 0.1) 75%,
            rgba(0, 0, 0, 0.28) 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.carousel-arrow.left::after {
    left: 0;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H11 V380 C11 410 70 410 70 460 V540 C70 590 11 590 11 620 V1000 H0 Z' fill='white'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H11 V380 C11 410 70 410 70 460 V540 C70 590 11 590 11 620 V1000 H0 Z' fill='white'/%3E%3C/svg%3E");
}

.carousel-arrow.right::after {
    right: 0;
    background: linear-gradient(to left,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.015) 25%,
            rgba(0, 0, 0, 0.04) 50%,
            rgba(0, 0, 0, 0.1) 75%,
            rgba(0, 0, 0, 0.28) 100%);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M1000 0 H989 V380 C989 410 930 410 930 460 V540 C930 590 989 590 989 620 V1000 H1000 Z' fill='white'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M1000 0 H989 V380 C989 410 930 410 930 460 V540 C930 590 989 590 989 620 V1000 H1000 Z' fill='white'/%3E%3C/svg%3E");
}

.carousel-arrow .arrow-shape,
.carousel-arrow .arrow-chevron {
    z-index: 1;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
    background: none;
    opacity: 0.7;
}

/* Mobile: straight line runs full height; the curve's top starts at screen center */
@media (max-width: 900px) {
    .carousel-arrow::after {
        top: 12vh;
        bottom: auto;
        height: 100vh;
    }

    .image-lightbox-arrow::before,
    .carousel-arrow::before {
        content: "";
        position: absolute;
        top: 0;
        height: 13vh;
        width: 1.5px;
        background: #fff;
    }

    .carousel-arrow::before {
        box-shadow: -14px 0 14px rgba(0, 0, 0, 0.9);
    }

    .carousel-arrow.right::before {
        box-shadow: 14px 0 14px rgba(0, 0, 0, 0.9);
    }

    .image-lightbox-arrow.left::before,
    .carousel-arrow.left::before {
        left: 6.4px;
    }

    .image-lightbox-arrow.right::before,
    .carousel-arrow.right::before {
        right: 6.4px;
    }

    .image-lightbox-arrow .arrow-shape,
    .carousel-arrow .arrow-shape {
        inset: auto;
        top: 12vh;
        height: 100vh;
        width: 100%;
    }

    .image-lightbox-arrow .arrow-chevron,
    .carousel-arrow .arrow-chevron {
        position: absolute;
        top: calc(62vh - 10px);
        margin: 0;
    }

    .image-lightbox-arrow.left .arrow-chevron,
    .carousel-arrow.left .arrow-chevron {
        left: 9px;
    }

    .image-lightbox-arrow.right .arrow-chevron,
    .carousel-arrow.right .arrow-chevron {
        right: 9px;
    }
}

.image-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 0;
    color: #fff;
    z-index: 1210;
    cursor: pointer;
}

.image-lightbox-close svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
}

/* Lightbox line wipe (bottom to top), then cross and chevrons fade in */
@keyframes lightbox-line-wipe {
    from {
        clip-path: inset(100% 0 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes lightbox-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.image-lightbox-arrow .arrow-shape {
    animation: lightbox-line-wipe 0.9s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.image-lightbox-arrow .arrow-chevron,
.image-lightbox-close {
    animation: lightbox-fade-in 0.5s ease 0.9s both;
}

@media (max-width: 900px) {

    /* Wipe the whole button so the straight extension and the curve draw as one continuous line */
    .image-lightbox-arrow {
        animation: lightbox-line-wipe 0.9s cubic-bezier(0.65, 0, 0.35, 1) both;
    }

    .image-lightbox-arrow .arrow-shape,
    .image-lightbox-arrow::before {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .image-lightbox-arrow,
    .image-lightbox-arrow .arrow-shape,
    .image-lightbox-arrow::before,
    .image-lightbox-arrow .arrow-chevron,
    .image-lightbox-close {
        animation: none;
    }
}

/* Lightbox exit: controls fade out, then the lines wipe away from the bottom up */
@keyframes lightbox-line-unwipe {
    from {
        clip-path: inset(0 0 0 0);
    }

    to {
        clip-path: inset(0 0 100% 0);
    }
}

@keyframes lightbox-fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.image-lightbox-overlay.closing {
    pointer-events: none;
}

.image-lightbox-overlay.closing .arrow-shape {
    animation: lightbox-line-unwipe 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.4s both;
}

.image-lightbox-overlay.closing .arrow-chevron,
.image-lightbox-overlay.closing .image-lightbox-close {
    animation: lightbox-fade-out 0.4s ease both;
}

@media (max-width: 900px) {
    .image-lightbox-overlay.closing .image-lightbox-arrow {
        animation: lightbox-line-unwipe 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.4s both;
    }

    .image-lightbox-overlay.closing .image-lightbox-arrow .arrow-shape,
    .image-lightbox-overlay.closing .image-lightbox-arrow::before {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .image-lightbox-overlay.closing .image-lightbox-arrow,
    .image-lightbox-overlay.closing .arrow-shape,
    .image-lightbox-overlay.closing .arrow-chevron,
    .image-lightbox-overlay.closing .image-lightbox-close {
        animation: none;
    }
}

.discover-more-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-top: 16px;
}

/* Fixed carousel hero effect */
.carousel-fixed-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.carousel {
    width: 100%;
    height: 100vh;
    max-width: 100%;
    max-height: 100vh;
    pointer-events: auto;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
}

.carousel-spacer {
    width: 100%;
    height: 100vh;
}

.section-header {
    width: 100%;
    background: #fff;
    position: relative;
    z-index: 27;
    overflow: hidden;
    padding-top: 3rem;
}

.section-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-header-inner .section-header-title {
    font-family: 'Gambetta', serif;
    font-size: 8rem;
    font-weight: 400;
    letter-spacing: -7%;
    margin: 0;
    color: var(--linen);
}

.line-track.white {
    background-color: #fff;
}

.line-track {
    inset: 0%;
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #000;
}

.line-track.black {
    background-color: #000;
}

.button-footer {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    font-size: 1.5rem;
    flex-flow: column;
    padding: 0;
    grid-row-gap: .08rem;
    grid-column-gap: .08rem;
    text-shadow: 0 2px 16px #000a;
}

.button-discover {
    position: absolute;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    font-size: 1.5rem;
    font-weight: 200;
    padding-left: 4rem;
    padding-bottom: 4rem;
    bottom: 0;
    left: 0;
    transition: font-weight 0.15s ease;
}

.button-discover:hover {
    font-weight: 300;
}

.line-wrap {
    position: relative;
    width: 100%;
    height: 1px;
    overflow: hidden;
    margin-top: 0.2rem;
}

/* Directors Section */
.directors-section {
    width: 100vw;
    background: var(--white);
    padding: 6rem 4rem;
    position: relative;
    z-index: 12;
}

.directors-header {
    margin-bottom: 4rem;
}

.directors-header h2 {
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.directors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 100%;
}

.director-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.director-image {
    width: 100%;
    padding-bottom: 133.33%;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.director-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-info {
    text-align: center;
}

.director-name {
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.5rem 0;
}

.director-discipline {
    font-size: 0.875rem;
    color: var(--halblue);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.director-qualifications {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Responsive directors grid */
@media (max-width: 1200px) {
    .directors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .directors-section {
        padding: 4rem 2rem;
    }

    .directors-header h2 {
        font-size: 1.75rem;
    }

    .directors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.site-footer {
    width: 100%;
    background: var(--darkblue);
    color: #fff;
    padding: 4rem;
    position: sticky;
    bottom: 0;
    z-index: 0;
    margin-top: 0;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-row-gap: 16px;
    grid-column-gap: 16px;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    padding-right: 4rem;
}

.f-top-wrapper {
    grid-template-columns: 1fr 1fr auto;
    grid-column-gap: 4vw;
    grid-template-rows: auto;
    align-items: flex-start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-logo-column {
    align-items: flex-start;
}

.footer-links-wrapper {
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 5rem;
    align-items: start;
    grid-template-rows: auto;
}

.footer-slogan-column {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-nav-column,
.footer-social-column {
    grid-column-gap: 2px;
    grid-row-gap: 2px;
    flex-direction: column;
    grid-template-rows: auto;
    grid-auto-columns: 100%;
    grid-template-columns: 100%;
    place-items: flex-start start;
    display: flex;
}

.footer-logo-container {
    position: relative;
}

.footer-logo {
    width: 4rem;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-slogan {
    font-family: 'Gambetta', serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 200px;
    color: #fff;
    margin: 0;
    letter-spacing: -1%;
}

.footer-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bbb;
    margin: 0 0 1.5rem 0;
}

.footer-nav,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a,
.footer-social a {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-social a:hover {
    color: var(--tan);
}

.footer-copyright {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #999;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}



.carousel-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 4rem;
    background: none;
    color: #fff;
    z-index: 5;
    min-width: 220px;
    max-width: 80vw;
    border-top-right-radius: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-shadow: 0 2px 16px #000a;
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 500;
    font-family: 'Gambetta', serif;
    margin: 0 0 0.18em 0;
    line-height: 1.1;
    letter-spacing: -2%;
}

.carousel-caption-location {
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 0.1em;
}

.carousel-caption-year {
    font-size: 1.1em;
    font-weight: 400;
    opacity: 0.7;
}

/* --- HERO CAROUSEL STYLES --- */
.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    max-width: 100%;
    max-height: 100vh;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Carousel horizontal flex and responsive styles */
.carousel-track {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    transition: transform 0.7s cubic-bezier(.77, 0, .18, 1);
    will-change: transform;
}

.carousel-slide {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100%;
    position: relative;
}

.carousel-slide picture,
.carousel-slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.carousel-arrow {
    transition: opacity 0.2s ease;
}

.carousel .hero-text {
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 2px 16px #000a;
    z-index: 3;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Scroll-down arrow: squared, no animation, double width */
.scroll-down-arrow {
    position: absolute;
    left: 50%;
    bottom: 2vw;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 40px;
    opacity: 0.85;
}

@media (max-width: 900px) {

    .the-gabba-image {
        width: 100%;
        height: 60vh;
        object-fit: cover;
        display: block;
        margin: 0;
        padding: 0;
        position: sticky;
        top: 20vh;
        z-index: 5;
        background: #fff;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
        transition: top 0.2s;
    }

    .carousel,
    .carousel-track,
    .carousel-slide,
    .carousel-slide picture,
    .carousel-slide img {
        height: 100vh;
        min-height: 100vw;
        max-height: 100vh;
    }

    .carousel .hero-text {
        top: 24%;
        font-size: 1.2em;
        width: 100%;
        padding: 0 8vw;
    }

    .scroll-down-arrow {
        width: 112px;
        height: 28px;
        bottom: 4vw;
    }
}


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

html {
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: auto;
}

body {
    min-height: 100vh;
    background: var(--darkblue);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #f5f5f5;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.skip-home-loader .loading-screen {
    display: none;
}

.skip-home-loader .top-navbar {
    opacity: 1;
    transform: translateY(0);
}

.loading-screen.fade-out {
    animation: fadeOutLoading 1s ease-out forwards;
    pointer-events: none;
}

@keyframes fadeOutLoading {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.loading-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0%);
    animation: saturateFilter 1.8s linear forwards;
}

@keyframes saturateFilter {
    0% {
        filter: saturate(0%);
    }

    100% {
        filter: saturate(100%);
    }
}

.loading-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.loading-logo {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo img {
    height: 120px;
    width: auto;
    filter: brightness(0) invert(1);
}

.top-navbar {
    /* Notch uses the lightbox line proportions turned horizontal (240 x 62 units: 10 strip, 80/80/80 curve-flat-curve, 52 depth); height drives width so the curves never distort */
    --nav-h: clamp(56px, 6vw, 72px);
    --nav-strip-h: calc(var(--nav-h) * 10 / 62);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-100px);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

body.has-static-nav .top-navbar {
    opacity: 1;
    transform: translateY(0);
}

.top-navbar .nav-shape {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
}

.top-navbar .nav-bar {
    flex: 1;
    height: var(--nav-strip-h);
    margin: 0 -0.5px;
    background: var(--lightlinen);
    box-shadow: -1px 0 0 var(--lightlinen), 1px 0 0 var(--lightlinen);
}

.top-navbar .nav-notch {
    flex: none;
    height: 100%;
    width: calc(var(--nav-h) * 240 / 62);
    display: block;
    overflow: visible;
    fill: var(--lightlinen);
}

.top-navbar .logo-slot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0b0b0f;
    font-weight: 700;
    letter-spacing: 0.08em;
    /* pointer-events: none; removed to allow link click */
}

.top-navbar .logo-slot a {
    display: inline-block;
    pointer-events: auto;
}

.top-navbar .logo-slot img {
    display: block;
    height: 40px;
    width: auto;
    filter: brightness(0);
}

.menu-button {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: #e7e7e7;
    color: #2c2c2c;
    border: 2px solid #0b0b0f;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    color: #ffffff;
    font-family: 'Gestura Headline Regular', serif;
    mix-blend-mode: screen;
}

.hero-text h1 {
    font-size: 7.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    font-family: 'Gestura Headline Regular', serif;
}

.hero-text p {
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.02em;
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.placeholder-section {
    width: 100%;
    padding: 6rem 2rem;
    background: #e7e7e7;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 150vh;
}

.placeholder-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.placeholder-text {
    flex: 1;
    background: #1a1a20;
    padding: 2rem;
    border-radius: 1rem;
}

.placeholder-image {
    flex: 0 0 300px;
    height: 450px;
    object-fit: cover;
    border-radius: 1rem;
}

.placeholder-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-family: 'Gestura Headline Regular', serif;
}

.placeholder-section p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #d0d0d0;
}

.gallery-section-2-image {
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--gallery-gap);
    position: relative;
    z-index: 21;
}

.header-section {
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 64px;
    position: relative;
    z-index: 21;
}

.header-section-inner {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 24px;
}

.text-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1.5rem;
    grid-template-rows: auto;
    grid-row-gap: 4rem;
    grid-auto-columns: 1fr;
    padding-left: 4rem;
    padding-right: 4rem;
    width: 100%;
}

@media (max-width: 1200px) {
    .text-img-grid {
        grid-column-gap: 1rem;
    }

    .three-image-grid-inner {
        gap: 1rem;
    }

    .image-content-right .button-discover {
        padding-bottom: 2vh;
    }
}

@media (max-width: 900px) {
    .text-img-grid {
        grid-template-columns: 1fr;
        grid-column-gap: 0;
        padding-left: 6vw;
        padding-right: 6vw;
        gap: 1rem;
    }

    .text-content-left {
        max-width: none;
        order: 2;
    }

    .image-content-right {
        width: 100%;
        order: 1;
    }

    .image-content-left {
        order: 1;
    }

    .header-image {
        height: auto;
        border-radius: 0.75rem;
    }
}

.text-content-left {
    display: flex;
    border-radius: 0;
    display: block;
    will-change: transform;
    align-items: flex-start;
    gap: 0.7em;
    max-width: 40rem;
}

.header-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

.text-size-medium {
    font-size: 1.5rem;
    font-weight: 300;
}

.text-size-large {
    font-size: 2.8rem;
    font-family: 'Gambetta', serif;
    font-weight: 400;
    margin: 0 0 2rem 0;
    line-height: 1;
    color: #111;
    letter-spacing: -2%;
}

.image-content-right {
    position: relative;
}

.image-content-right {
    overflow: hidden;
    border-radius: 1rem;
}

/* Mirror wrapper for left-side images */
.image-content-left {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.three-image-grid {
    width: 100%;
    padding-bottom: 32px;
    background: #fff;
    position: relative;
    z-index: 21;
    /* appears above fixed hero wrapper */
}

.three-image-grid-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.discover-projects-error {
    grid-column: 1 / -1;
    color: #111;
}

.discover-projects-error a {
    color: inherit;
}

.three-image-item {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
    height: 32vh;
}

.three-image-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.discover-project-title {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.9rem;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #fff;
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 2;
    pointer-events: none;
}

.three-image-item:hover::after,
.three-image-item:focus-visible::after,
.three-image-item:focus-within::after {
    opacity: 1;
}

.three-image-item:hover .discover-project-title,
.three-image-item:focus-visible .discover-project-title,
.three-image-item:focus-within .discover-project-title {
    transform: translateY(0);
    opacity: 1;
}

@media (hover: none) {
    .three-image-item::after {
        opacity: 1;
    }

    .discover-project-title {
        transform: translateY(0);
        opacity: 1;
    }
}

.three-image-item .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
}

@media (max-width: 900px) {
    .three-image-grid {
        padding-bottom: 1.5rem;
    }

    .three-image-grid-inner {
        grid-template-columns: 1fr;
        padding: 0 6vw;
    }

    .three-image-item {
        height: 40vh;
    }

    .discover-project-title {
        font-size: 0.9rem;
        left: 0.85rem;
        right: 0.85rem;
        bottom: 0.8rem;
    }

    .discover-section {
        padding-top: 2rem;
    }
}

.fullwidth-image-section {
    width: 100vw;
    overflow: hidden;
    display: block;
    position: relative;
    z-index: 11;
    background: var(--white);
    padding-bottom: calc(var(--gallery-section-space) - var(--gallery-gap));
}

.fullwidth-image-section .fullwidth-image {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.image-content-right .button-discover {
    z-index: 6;
}

.discover-section {
    width: 100%;
    display: flex;
    padding-top: 4rem;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #fff;
    z-index: 27;
}

.discover-section-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.discover-heading h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    letter-spacing: -2%;
    color: #ffffff;
    width: 100%;
    padding: 4rem 4rem 0.5em 0;
    position: absolute;
    bottom: 0;
    padding-left: 4rem;
    padding-bottom: 4rem;
}

.discover-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.discover-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .discover-section-inner picture {
        width: 100%;
    }

    .discover-image {
        height: min(177.78vw, 80vh);
    }
}

/* Contact Form Section */
.contact-section {
    --rule-gap: 32px;
    --dip: 32px;
    --dip-w: 49.2px;
    --dip-at: min(50vw, calc(4rem + 15rem));
    width: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--rule-gap);
    padding-bottom: 64px;
    position: relative;
    z-index: 60;
    overflow: hidden;
}

/* Rule above "Get in Touch": flat, eased dip (same curve as the project tab), flat again, full bleed */
.contact-section::before {
    content: "";
    position: absolute;
    top: var(--rule-gap);
    left: 0;
    width: calc(var(--dip-at) + 1px);
    height: 1px;
    background: #000;
}

.contact-section::after {
    content: "";
    position: absolute;
    top: var(--rule-gap);
    left: var(--dip-at);
    width: calc(100% - var(--dip-at));
    height: calc(var(--dip) + 1px);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 49.2 33'%3E%3Cpath d='M0 .5 C18.4 .5 18.4 32.5 49.2 32.5' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 49.2px 33px no-repeat,
        linear-gradient(#000, #000) calc(49.2px - 1px) var(--dip) / 100% 1px no-repeat;
}

.contact-section-inner {
    width: 100%;
    padding-left: 4rem;
    padding-right: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Index only: the discover section above the contact form slides down over the contact section's top rule and is masked so its bottom edge follows the same flat / eased dip / flat line. Its --rule-gap and --dip-at must mirror .contact-section (including the 900px override below). Mask pieces overlap by 1px so no seam lets the white contact section show through as a hairline */
.discover-section--contact-curve {
    --rule-gap: 32px;
    --dip: 32px;
    --dip-w: 49.2px;
    --dip-at: min(50vw, calc(4rem + 15rem));
    margin-bottom: calc(-1 * (var(--rule-gap) + var(--dip)));
    z-index: 61;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left top, var(--dip-at) bottom, right top;
    mask-position: left top, var(--dip-at) bottom, right top;
    -webkit-mask-size: 100% calc(100% - var(--dip) + 1px), var(--dip-w) var(--dip), calc(100% - var(--dip-at) - var(--dip-w) + 1px) 100%;
    mask-size: 100% calc(100% - var(--dip) + 1px), var(--dip-w) var(--dip), calc(100% - var(--dip-at) - var(--dip-w) + 1px) 100%;
    -webkit-mask-image:
        linear-gradient(#000, #000),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 49.2 32' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H49.2 V32 C18.4 32 18.4 0 0 0 Z' fill='%23000'/%3E%3C/svg%3E"),
        linear-gradient(#000, #000);
    mask-image:
        linear-gradient(#000, #000),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 49.2 32' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H49.2 V32 C18.4 32 18.4 0 0 0 Z' fill='%23000'/%3E%3C/svg%3E"),
        linear-gradient(#000, #000);
}

/* Thicken the flat parts of the contact rule by 1px upward so the masked image above always overlaps it and sub-pixel rounding can't open a white gap between them */
.discover-section--contact-curve + .contact-section::before {
    top: calc(var(--rule-gap) - 1px);
    height: 2px;
}

.discover-section--contact-curve + .contact-section::after {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 49.2 33'%3E%3Cpath d='M0 .5 C18.4 .5 18.4 32.5 49.2 32.5' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 49.2px 33px no-repeat,
        linear-gradient(#000, #000) calc(49.2px - 1px) calc(var(--dip) - 1px) / 100% 2px no-repeat;
}

/* Footer tab: the project tab shape is cut out of the contact section's bottom-left with a mask, so the sticky footer beneath shows through and reads as rising into the page */
.contact-section.footer-tab {
    --tab-w: clamp(260px, 40vw, 520px);
    --tab-h: calc(var(--tab-w) * 107 / 640);
    --tab-left: calc(var(--tab-w) * 86 / 640);
    --tab-right: calc(var(--tab-w) * 205 / 640);
    --tab-mid: calc(var(--tab-w) - var(--tab-left) - var(--tab-right));
    padding-bottom: calc(64px + var(--tab-h));
    box-shadow: none;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left top, right top, left bottom, calc(var(--tab-left) + var(--tab-mid)) bottom;
    mask-position: left top, right top, left bottom, calc(var(--tab-left) + var(--tab-mid)) bottom;
    -webkit-mask-size: 100% calc(100% - var(--tab-h) + 1px), calc(100% - var(--tab-w) + 1px) 100%, var(--tab-left) var(--tab-h), var(--tab-right) var(--tab-h);
    mask-size: 100% calc(100% - var(--tab-h) + 1px), calc(100% - var(--tab-w) + 1px) 100%, var(--tab-left) var(--tab-h), var(--tab-right) var(--tab-h);
    -webkit-mask-image:
        linear-gradient(#000, #000),
        linear-gradient(#000, #000),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 107' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H85.5 C61.7614 0 49.8921 0 40.3422 3.31164 C22.979 9.33268 9.33268 22.979 3.31164 40.3422 C0 49.8921 0 61.7614 0 85.5 Z' fill='%23000'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='435 0 205 107' preserveAspectRatio='none'%3E%3Cpath d='M475.4 0 H640 V107 C537.1 107 537.1 0 475.4 0 Z' fill='%23000'/%3E%3C/svg%3E");
    mask-image:
        linear-gradient(#000, #000),
        linear-gradient(#000, #000),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 107' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H85.5 C61.7614 0 49.8921 0 40.3422 3.31164 C22.979 9.33268 9.33268 22.979 3.31164 40.3422 C0 49.8921 0 61.7614 0 85.5 Z' fill='%23000'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='435 0 205 107' preserveAspectRatio='none'%3E%3Cpath d='M475.4 0 H640 V107 C537.1 107 537.1 0 475.4 0 Z' fill='%23000'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
    .contact-section.footer-tab {
        --tab-w: 50vw;
        padding-bottom: calc(40px + var(--tab-h));
    }
}

/* Lift the footer logo into the tab cut-out. A relative offset leaves the grid untouched, and the footer's overflow clip is lifted so the logo can sit above its top edge (the contact section still covers it everywhere except the cut-out) */
body:has(.contact-section.footer-tab) .site-footer {
    --tab-w: clamp(260px, 40vw, 520px);
    --tab-h: calc(var(--tab-w) * 107 / 640);
    --footer-pad-top: 4rem;
    --footer-logo-inset: 4rem;
    overflow: visible;
}

body:has(.contact-section.footer-tab) .footer-logo-container {
    top: calc(-1 * (var(--footer-pad-top) + var(--tab-h) - var(--footer-logo-inset)));
}

@media (max-width: 900px) {
    body:has(.contact-section.footer-tab) .site-footer {
        --tab-w: 50vw;
    }
}

@media (max-width: 600px) {
    body:has(.contact-section.footer-tab) .site-footer {
        --footer-pad-top: 2rem;
        --footer-logo-inset: 6vw;
    }
}
.contact-section-inner h2 {
    font-family: 'Gambetta', serif;
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -2%;
    color: #111;
    width: 100%;
    padding: calc(var(--dip) - 0.05em) 0 0 0;
    margin: 0 0 3rem 0;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3em;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    flex: 1;
    min-width: 250px;
}

.form-group.full-width {
    width: 100%;
}

.contact-form label {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -2%;
    color: #1111116b;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1em;
    padding: 8px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    color: #1111116b;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--halblue);
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.character-count {
    align-self: flex-end;
    color: #777;
    font-size: 0.75rem;
}

.discipline-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    width: 100%;
    padding-top: 0.25rem;
}

.discipline-option {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: #111;
    cursor: pointer;
}

.discipline-option input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #b8b8b8;
    border-radius: 4px;
    background: #fff;
    display: inline-grid;
    place-content: center;
    margin: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.discipline-option input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: transform 0.2s ease;
    background: var(--halblue);
    clip-path: polygon(14% 44%, 0 65%, 45% 100%, 100% 22%, 80% 0, 43% 62%);
}

.discipline-option input[type="checkbox"]:checked {
    border-color: var(--halblue);
    background: #eef0ff;
}

.discipline-option input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.discipline-option input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--halblue);
    outline-offset: 2px;
}

.submit-button {
    align-self: flex-end;
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1em;
    font-weight: 600;
    padding: 16px 40px;
    background: var(--halblue);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5em;
}

.submit-button:hover {
    background: var(--darkblue);
}

.submit-button:active {
    transform: scale(0.98);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Messages */
.form-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 1em;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 900px) {
    .contact-section {
        --rule-gap: 1.5rem;
        --dip-at: calc(6vw + 10rem);
        padding: var(--rule-gap) 0 0;
    }

    .discover-section--contact-curve {
        --rule-gap: 1.5rem;
        --dip-at: calc(6vw + 10rem);
    }

    /* Mobile button padding is much smaller than desktop; restore the desktop clearance above the curved edge */
    .discover-section--contact-curve .button-discover {
        padding-bottom: 4rem;
    }

    .contact-section-inner h2 {
        font-size: 2rem;
        padding-top: calc(var(--dip) - 0.05em);
        padding-bottom: 0;
        margin-bottom: 2rem;
    }

    .contact-section-inner {
        padding: 0 6vw;
    }

    .form-row {
        flex-direction: column;
        gap: 2em;
    }

    .form-group {
        min-width: unset;
        width: 100%;
    }

    .contact-form label {
        font-size: 1.2rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 1em;
        padding: 0 0;
    }

    .discipline-checkboxes {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .discipline-option {
        font-size: 1rem;
    }
}

/* Menu Styles */
.menu-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1003;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
    pointer-events: auto;
    min-width: 40px;
    min-height: 40px;
    visibility: visible !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.menu-line {
    position: relative;
    width: 80px;
    height: 2px;
    background: transparent;
    transition: transform 0.25s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
    display: block;
    visibility: visible !important;
    mix-blend-mode: multiply;
}

/* The visible stroke lives on the pseudo-element so rotate and slide can be sequenced separately */
.menu-line::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--darkblue);
    transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.3s ease;
}

.menu-toggle.active {
    background: rgba(10, 9, 8, 0.1);
    border-radius: 50%;
}

.menu-toggle.active .menu-line {
    transition: transform 0.25s cubic-bezier(0.65, 0, 0.35, 1);
}

.menu-toggle.active .menu-line::before {
    background: var(--darkblue);
    transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1) 0.2s, background-color 0.3s ease;
}

/* Lines slide together to the shared center (half of 2px line + 2px gap), then rotate into a cross */
.menu-toggle.active .menu-line:first-child {
    transform: translateY(2px);
}

.menu-toggle.active .menu-line:first-child::before {
    transform: rotate(45deg);
}

.menu-toggle.active .menu-line:last-child {
    transform: translateY(-2px);
}

.menu-toggle.active .menu-line:last-child::before {
    transform: rotate(-45deg);
}

.menu-toggle.menu-on-light {
    border-color: #0b0b0f;
}

.menu-toggle.menu-on-light .menu-line::before {
    background: #0b0b0f;
}

.menu-toggle.menu-on-dark {
    border-color: #ffffff;
}

.menu-toggle.menu-on-dark .menu-line::before {
    background: var(--halblue);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    overflow: hidden;
    display: flex;
    transform: translateY(-100%);
}

.menu-panel.active {
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(.77, 0, .18, 1);
}

.menu-block-left {
    flex: 0 0 40%;
    background: var(--white);
    overflow: hidden;
    position: relative;
}

.menu-block-right {
    flex: 0 0 60%;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.menu-block-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--halblue);
    pointer-events: none;
    z-index: 5;
}

.menu-block-bg-left {
    transform: translateY(-100%);
}

.menu-block-bg-right {
    transform: translateY(100%);
}

.menu-block-content {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
    opacity: 0;
}

.menu-block-content-left {
    width: 100%;
    height: 100%;
}

.menu-block-content-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.menu-block-content-right {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    height: 100%;
}

.menu-header {
    z-index: 10;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-logo {
    height: 40px;
    width: auto;
    filter: brightness(0);
}

.menu-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    position: relative;
    pointer-events: auto;
}

.close-line {
    position: absolute;
    width: 24px;
    height: 3px;
    background: #0b0b0f;
    display: block;
}

.close-line-1 {
    transform: rotate(45deg);
}

.close-line-2 {
    transform: rotate(-45deg);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    flex: 1;
    justify-content: center;
}

.menu-link {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: #111;
    text-decoration: none;
    letter-spacing: -1%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: fit-content;
}

.menu-link>div:first-child {
    transition: color 0.3s ease;
}

.menu-link .line-wrap {
    position: relative;
    width: 100%;
    height: 1px;
    overflow: hidden;
}

.menu-link:hover>div:first-child {
    color: var(--halblue);
}

.projects-page a {
    text-decoration: none;
}

.back-to-pages-wrap {
    z-index: 27;
}

/* Simple layout for the back to projects link */
.back-to-projects {
    position: relative;
    width: 100vw;
    background: #fff;
    display: flex;
    justify-content: left;
    z-index: 27;
    padding-left: 4rem;
    padding-top: 0;
}

.back-to-projects a {
    font-family: 'Poppins', sans-serif;
    color: #111;
    text-decoration: none;
    font-size: 1.5rem;
}

.projects-header {
    width: 100vw;
    background: var(--white);
    display: flex;
    padding-top: 4rem;
    padding-left: 4rem;
    position: relative;
    z-index: 10;
}

.projects-header-inner {
    max-width: 600px;
    width: 100%;
    padding-top: 4rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.projects-header-inner h1 {
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -2%;
    color: #111;
    margin: 0;
}

.projects-header-inner p {
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
    max-width: 800px;
}

.projects-list {
    width: 100vw;
    background: var(--white);
    padding: 0 4rem;
    position: relative;
    z-index: 28;
}

.projects-list-inner {
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

/* Line break between project items */
.line-break {
    box-sizing: border-box;
    display: block;
    align-self: stretch;
    width: 100%;
    height: 1px;
    background: #000000;
    z-index: 28;
}

.line-break-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.project-item {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    padding: 4rem 0;
}

.project-item.no-divider {
    border-bottom: none;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.project-title {
    font-family: 'Gambetta', serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -1%;
    color: #111;
    margin: 0;
}

.project-title a {
    color: #111;
    text-decoration: none;
}

.project-meta {
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: #888;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.project-location {
    font-weight: 500;
}

.project-year {
    font-weight: 400;
}

.project-image {
    flex: 0 0 50%;
    overflow: hidden;
    border-radius: 8px;
    height: 80vh;
}

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

.project-divider {
    height: 1px;
    background: #ddd;
    margin: 3rem 0 0 0;
}

@media (max-width: 900px) {
    .back-to-projects {
        padding-left: 6vw;
    }

    .back-to-projects a {
        font-size: 1.25rem;
    }

    .projects-header {
        padding: 4rem 0 6vw 6vw;
    }

    .button-discover {
        padding: 2vh 6vw;
        font-size: 1.2rem;
    }

    .projects-header-inner h1 {
        font-size: 2.2rem;
    }

    .projects-header-inner {
        padding-bottom: 0;
    }

    .section-header-inner {
        min-height: 30vh;
        height: 50vh;
    }

    .section-header-inner .section-header-title {
        font-size: 4rem;
    }

    .projects-header-inner p {
        font-size: 1rem;
    }

    .projects-list {
        padding: 2rem 2rem;
    }

    .project-item {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .project-image {
        flex: 0 0 100%;
        height: 250px;
    }

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

    .project-meta {
        font-size: 0.9rem;
        gap: 1.5rem;
    }

    .project-divider {
        margin: 2rem 0 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 0 2rem;
        min-height: auto;
    }

    .footer-slogan {
        font-size: 1.2rem;
    }

    .footer-nav-column,
    .footer-social-column {
        align-items: flex-start;
    }

    .carousel-caption {
        padding: 0 0 4em 6vw;
        min-width: 120px;
        max-width: 96vw;
        border-top-right-radius: 0.7em;
        font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        text-shadow: 0 2px 16px #000a;
    }

    .carousel-caption h2 {
        font-size: 2rem;
        font-family: 'Gambetta', serif;
    }

    .carousel-caption-location,
    .carousel-caption-year {
        font-size: 0.95em;
    }

    .menu-toggle {
        right: 1.5rem;
        top: 1.5rem;
    }

    .menu-block-left {
        display: none;
    }

    .menu-block-right {
        flex: 1;
        padding: 2rem;
        transform: none;
    }

    .menu-nav {
        gap: 2rem;
    }

    .menu-link {
        font-size: 2.2rem;
    }

    .contact-form {
        padding-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .back-to-projects {
        padding-left: 5vw;
    }

    .site-footer {
        padding: 2rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 6vw;
    }

    .footer-slogan-column {
        align-items: flex-start;
    }

    .footer-slogan {
        font-size: 1rem;
        max-width: 100%;
    }

    .footer-logo {
        width: 3rem;
    }

    .projects-header-inner h1 {
        font-size: 1.8rem;
    }

    .projects-header-inner p {
        font-size: 0.95rem;
    }

    .project-item {
        padding: 1.5rem 0;
        gap: 1rem;
    }

    .project-image {
        height: 200px;
    }

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

    .project-meta {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-divider {
        margin: 1.5rem 0 0 0;
    }

    .menu-logo {
        height: 32px;
    }

    .menu-block-right {
        padding: 1.5rem;
    }

    .menu-nav {
        gap: 1.5rem;
    }

    .menu-link {
        font-size: 1.8rem;
    }
}

/* Gallery Section - 3 Image Grid (side padding matches .gallery-section-2-image's .text-img-grid) */
.gallery-section-3-image {
    width: 100%;
    box-sizing: border-box;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--gallery-gap) 4rem;
    position: relative;
    z-index: 21;
    padding-bottom: 0;
}

.gallery-section-3-image-inner {
    width: 100%;
    padding: 0;
}

.gallery-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.gallery-grid-3 .gallery-image {
    width: 100%;
    height: 24vh;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
    will-change: transform;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.gallery-grid-3 .gallery-image:hover {
    transform: scale(1.02);
    filter: brightness(0.95);
}

@media (max-width: 1200px) {
    .gallery-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

}

@media (max-width: 900px) {
    .gallery-section-3-image {
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .gallery-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .gallery-grid-5 .gallery-image {
        height: 25vh;
    }

    .text-size-large {
        font-size: 2rem;
        margin: 0 0 1rem 0;
    }
}

@media (max-width: 600px) {
    .gallery-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .gallery-grid-5 .gallery-image {
        height: 20vh;
    }

    .gallery-section-3-image {
        padding: var(--gallery-gap) 6vw 0px;
    }
}

/* Project Details Section */
.project-details-section {
    width: 100vw;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 64px 0;
    position: relative;
    z-index: 21;
}

.project-details-inner {
    max-width: 1200px;
    width: 100%;
    padding: 0 6vw;
}

@media (max-width: 900px) {
    :root {
        --gallery-section-space: 40px;
    }

    .project-details-section {
        padding: 40px 0;
    }

    .project-details-inner>.text-size-large {
        margin-bottom: 2rem;
    }
}

.project-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.project-detail-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.project-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Poppins', sans-serif;
    min-width: 200px;
    flex-shrink: 0;
    line-height: 1.6;
}

.detail-value {
    font-size: 1.25rem;
    font-weight: 300;
    color: #111;
    line-height: 1.6;
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.client-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 900px) {
    .project-details-list {
        gap: 1rem;
    }

    .footer-links-wrapper {
        padding: 0 0;
    }

    .project-detail-item {
        gap: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .project-details-inner {
        padding: 0 6vw;
    }

    .detail-label {
        font-size: 0.9rem;
        min-width: 140px;
    }

    .detail-value {
        font-size: 1.1rem;
    }

    .text-size-medium {
        font-size: 1.2rem;
    }

    .text-content-left {
        padding-bottom: 2rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    @media (max-width: 600px) {
        .project-detail-item {
            flex-direction: column;
            gap: 0.4rem;
            padding-bottom: 0.4rem;
        }

        .detail-label {
            min-width: auto;
        }

        .text-size-medium {
            font-size: 1.2rem;
        }
    }

    @media (max-width: 600px) {
        .floating-contact-btn {
            bottom: 24px;
            right: 24px;
            width: 48px;
            height: 48px;
        }

        .floating-contact-btn svg {
            width: 24px;
            height: 24px;
        }

        .discover-section {
            padding-top: 2rem;
        }

        .menu-line {
            width: 40px;
        }
    }

}

/* Floating Contact Button - All Sizes */
.floating-contact-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background-color: var(--halblue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(49, 54, 137, 0.3);
    transition: box-shadow 0.3s ease;
    z-index: 61;
    padding: 0;
}

.floating-contact-btn:hover {
    box-shadow: 0 6px 20px rgba(49, 54, 137, 0.4);
}

.floating-contact-btn:active {
    transform: scale(0.95);
}

.floating-contact-btn svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

@media (max-width: 600px) {
    .floating-contact-btn {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }

    .floating-contact-btn svg {
        width: 24px;
        height: 24px;
    }
}

    
/* Sub-pixel seam guard: full-width white sections can show a hairline of the dark body on high-DPR phones
   (fractional vh heights). A 1px white shadow above and below paints over the gap. */
.project-info-section,
.project-page-info-section,
.discover-more,
.section-header,
.directors-section,
.gallery-section-2-image,
.header-section,
.three-image-grid,
.contact-section,
.back-to-projects,
.projects-header,
.projects-list,
.gallery-section-3-image,
.project-details-section {
    box-shadow: 0 -1px 0 var(--white), 0 1px 0 var(--white);
}

.projects-page {
    background: white;
}

.projects-page a {
    text-decoration: none;
}

.projects-page .top-navbar {
    opacity: 1;
    transform: translateY(0);
}

.projects-page .projects-header {
    padding-top: 4rem;
    padding-left: 4rem;
    background: var(--white);
}

.projects-page .projects-header-inner {
    max-width: 760px;
    padding-top: 4rem;
    padding-bottom: 2.5rem;
    gap: 1rem;
}

.projects-page .projects-header-inner h1 {
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1.06;
}

.projects-page .projects-header-inner p {
    max-width: 680px;
    color: #5c5c5c;
}

.projects-page .projects-showcase {
    width: 100vw;
    background: var(--white);
    padding: 0 4rem 6rem;
    position: relative;
    z-index: 28;
}

.projects-page .projects-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
    grid-auto-flow: row dense;
}

.projects-page .project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
    min-height: 280px;
}

.projects-page .project-card-link {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #111;
}

.projects-page .project-card-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.projects-page .project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.7s ease, filter 0.7s ease;
}

.projects-page .project-card:hover .project-card-image img,
.projects-page .project-card:focus-within .project-card-image img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.projects-page .project-card-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.2rem 1.2rem 1.1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0.8) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.projects-page .project-card-copy h2 {
    font-family: 'Gambetta', serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.08;
    margin: 0;
}

.projects-page .project-card-copy p {
    font-family: neue-haas-grotesk-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
}

.projects-page .project-card--feature-left {
    grid-column: 1 / span 8;
    grid-row: span 2;
    min-height: 620px;
}

.projects-page .project-card--portrait-right {
    grid-column: 9 / span 4;
    grid-row: span 2;
    min-height: 620px;
}

.projects-page .project-card--portrait-left {
    grid-column: 1 / span 4;
    grid-row: span 2;
    min-height: 620px;
}

.projects-page .project-card--feature-right {
    grid-column: 5 / span 8;
    grid-row: span 2;
    min-height: 620px;
}

.projects-page .project-card--full {
    grid-column: 1 / span 12;
    min-height: 420px;
}

@media (max-width: 1100px) {
    .projects-page .projects-header {
        padding-left: 2rem;
    }

    .projects-page .projects-showcase {
        padding: 0 2rem 4rem;
    }

    .projects-page .projects-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .projects-page .projects-grid {
        grid-auto-flow: row;
    }

    .projects-page .projects-grid > .project-card:nth-child(6n + 1),
    .projects-page .projects-grid > .project-card:nth-child(6n + 4) {
        grid-column: 1 / span 8;
        grid-row: auto;
        min-height: 340px;
    }

    .projects-page .projects-grid > .project-card:nth-child(6n + 2),
    .projects-page .projects-grid > .project-card:nth-child(6n + 5) {
        grid-column: 1 / span 4;
        grid-row: auto;
        min-height: 320px;
    }

    .projects-page .projects-grid > .project-card:nth-child(6n + 3),
    .projects-page .projects-grid > .project-card:nth-child(6n + 6) {
        grid-column: 5 / span 4;
        grid-row: auto;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .projects-page .projects-header {
        padding: 4rem 6vw 2rem;
    }

    .projects-page .projects-header-inner {
        padding-top: 3rem;
        padding-bottom: 1.5rem;
    }

    .projects-page .projects-header-inner h1 {
        font-size: 2.2rem;
    }

    .projects-page .projects-showcase {
        padding: 0 6vw 3rem;
    }

    .projects-page .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .projects-page .project-card,
    .projects-page .project-card--feature-left,
    .projects-page .project-card--feature-right,
    .projects-page .project-card--portrait-left,
    .projects-page .project-card--portrait-right,
    .projects-page .project-card--full {
        grid-column: auto;
        grid-row: auto;
        min-height: 300px;
    }

    .projects-page .project-card-copy h2 {
        font-size: 1.65rem;
    }

    .projects-page .project-card-copy p {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.1rem;
    }
}
