.project-index-hero {
    min-height: 470px;
    padding: 170px 9vw 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #f0eee9;
}

.project-index-hero h1 {
    max-width: 850px;
    margin: 0 0 24px;
    font: 600 clamp(52px, 7vw, 100px)/.94 "Optima", serif;
    letter-spacing: -3px;
}

.project-index-hero h1 em {
    color: #6e8391;
    font-weight: 500;
}

.project-index-hero > p:last-child {
    max-width: 520px;
    margin: 0;
    color: #5e5b55;
    font-size: 14px;
    line-height: 1.8;
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 28px 7vw;
    background: #fff;
}

.project-tab {
    min-width: 140px;
    padding: 13px 22px;
    border: 1px solid #c9c7c1;
    background: transparent;
    color: #454541;
    cursor: pointer;
    font: 600 11px "DM Mono", monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.project-tab.active,
.project-tab:hover {
    border-color: #263945;
    background: #263945;
    color: #fff;
}

.project-tab:focus-visible {
    outline: 2px solid #6e8391;
    outline-offset: 3px;
}

.project-category[hidden] {
    display: none;
}

.project-category-heading {
    padding: 70px 9vw 0;
}

.project-category-heading .eyebrow {
    margin: 0 0 11px;
    color: #6e8391;
}

.project-category-heading h2 {
    margin: 0;
    color: #263945;
    font: 500 clamp(38px, 4.2vw, 60px)/1 "Optima", serif;
    letter-spacing: -1.8px;
}

.ongoing-projects {
    background: #fff;
}

.sonesta-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    align-items: center;
    gap: clamp(55px, 8vw, 130px);
    padding-top: 44px;
    padding-bottom: 95px;
    background: #fff;
}

.sonesta-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 3px;
    background: #ddd;
}

.sonesta-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center;
    transition: transform .55s ease;
}

.sonesta-media:hover img {
    transform: none;
}

.sonesta-media figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 18px;
    background: rgba(20, 20, 20, .88);
    color: #fff;
}

.sonesta-media figcaption span {
    color: #9badb8;
    font: 10px "DM Mono", monospace;
}

.sonesta-media figcaption strong {
    font: 600 10px "Avenir", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sonesta-content {
    max-width: 620px;
}

.sonesta-content .eyebrow {
    color: #6e8391;
}

.sonesta-content h2 {
    margin: 0 0 24px;
    color: #263945;
    font: 500 clamp(46px, 5vw, 74px)/1 "Optima", serif;
    letter-spacing: -2px;
}

.sonesta-content > p:not(.eyebrow) {
    max-width: 590px;
    margin: 0 0 17px;
    color: #66635e;
    font-size: 13px;
    line-height: 1.85;
}

.sonesta-content .sonesta-lead {
    color: #302f2c;
    font-size: 15px;
}

.sonesta-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 32px 0 30px;
    border-top: 1px solid #cbc7bf;
    border-bottom: 1px solid #cbc7bf;
}

.sonesta-details div {
    padding: 17px 20px 17px 0;
}

.sonesta-details div + div {
    padding-left: 22px;
    border-left: 1px solid #cbc7bf;
}

.sonesta-details dt {
    margin-bottom: 6px;
    color: #6e8391;
    font: 10px "DM Mono", monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sonesta-details dd {
    margin: 0;
    color: #292825;
    font-size: 13px;
    font-weight: 600;
}

.sonesta-link {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    min-width: 148px;
    padding: 13px 18px;
    border: 1px solid #5d5a55;
    color: #222;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.sonesta-link:hover,
.sonesta-link:focus-visible {
    border-color: #6e8391;
    background: #6e8391;
    color: #fff;
}

.sonesta-link:focus-visible {
    outline: 2px solid #263945;
    outline-offset: 4px;
}

.upcoming-projects {
    background: #f0eee9;
}

.upcoming-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    align-items: center;
    gap: clamp(55px, 8vw, 130px);
    padding-top: 44px;
    padding-bottom: 95px;
}

.upcoming-media {
    position: relative;
    min-height: 360px;
    margin: 0;
    overflow: hidden;
    border-radius: 3px;
    background: linear-gradient(145deg, #253641, #10171d);
}

.upcoming-media::after {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(211, 173, 105, .24);
    pointer-events: none;
}

.upcoming-content h2 {
    margin: 0;
    color: #263945;
    font: 500 clamp(48px, 5vw, 74px)/1 "Optima", serif;
    letter-spacing: -2px;
}

.project-gallery-slider {
    padding: 56px 0 92px;
    overflow: hidden;
    background: #fff;
}

.project-gallery-track {
    display: flex;
    align-items: stretch;
    gap: 30px;
    overflow-x: auto;
    padding: 0 0 18px 4px;
    scroll-padding-left: 4px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
}

.project-gallery-track::-webkit-scrollbar {
    display: none;
}

.project-gallery-track.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.project-gallery-track.is-auto-running {
    scroll-snap-type: none;
}

.project-gallery-track:focus-visible {
    outline: 2px solid #6e8391;
    outline-offset: -2px;
}

.project-gallery-slide {
    flex: 0 0 auto;
    height: clamp(380px, 43vw, 575px);
    margin: 0;
    overflow: hidden;
    scroll-snap-align: start;
    background: #dedede;
}

.project-gallery-slide.gallery-wide {
    width: min(65vw, 1035px);
}

.project-gallery-slide.gallery-narrow {
    width: min(37vw, 585px);
}

.home-page .project-gallery-slide.gallery-wide,
.home-page .project-gallery-slide.gallery-narrow {
    width: min(62vw, 920px);
}

.project-gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.project-gallery-slide.gallery-narrow img {
    object-position: center 24%;
}

.project-cta {
    padding: 110px 8vw;
    text-align: center;
    background: #17232a;
    color: #fff;
}

.project-cta .eyebrow {
    color: #aebbc2;
}

.project-cta h2 {
    margin: 0 0 32px;
    font: 600 clamp(44px, 5.5vw, 78px)/.97 "Optima", serif;
    letter-spacing: -2px;
}

.project-cta h2 em {
    color: #aebbc2;
    font-weight: 500;
}

@media (max-width: 900px) {
    .sonesta-showcase,
    .upcoming-showcase {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .sonesta-content {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .project-index-hero {
        min-height: 410px;
        padding: 135px 7vw 62px;
    }

    .project-index-hero h1 {
        font-size: clamp(46px, 14vw, 70px);
        letter-spacing: -2px;
    }

    .sonesta-showcase {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .project-category-heading {
        padding: 52px 7vw 0;
    }

    .sonesta-showcase,
    .upcoming-showcase {
        padding-top: 32px;
        padding-bottom: 65px;
    }

    .upcoming-media {
        min-height: 280px;
    }

    .project-gallery-slider {
        padding: 38px 0 65px;
    }

    .project-gallery-track {
        gap: 14px;
        padding-left: 7vw;
        scroll-padding-left: 7vw;
    }

    .project-gallery-slide,
    .project-gallery-slide.gallery-wide,
    .project-gallery-slide.gallery-narrow {
        width: 84vw;
        height: 360px;
    }

    .sonesta-details {
        grid-template-columns: 1fr;
    }

    .sonesta-details div + div {
        padding-left: 0;
        border-top: 1px solid #cbc7bf;
        border-left: 0;
    }

    .project-cta {
        padding: 82px 7vw;
    }
}

/* Compact homepage gallery carousel */
.home-page .project-gallery-slider {
    padding: 92px 0 96px;
    background: #e9e7e2;
}

.home-page .gallery-section-heading {
    width: min(86vw, 1320px);
    margin: 0 auto 38px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.home-page .gallery-section-heading > div:first-child {
    max-width: 790px;
}

.home-page .gallery-section-heading .eyebrow {
    margin: 0 0 13px;
    color: #6e8391;
}

.home-page .gallery-section-heading h2 {
    margin: 0;
    color: #171717;
    font: 500 clamp(43px, 5vw, 70px)/1.02 "Optima", serif;
    letter-spacing: -2px;
}

.home-page .gallery-section-heading h2 em {
    color: #6e8391;
    font-weight: 500;
}

.home-page .gallery-section-heading > div:first-child > p:last-child {
    max-width: 670px;
    margin: 18px 0 0;
    color: #595752;
    font: 400 14px/1.8 Avenir, sans-serif;
}

.home-page .gallery-carousel-controls {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
    padding-bottom: 6px;
}

.home-page .gallery-carousel-controls button {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(23, 23, 23, .28);
    border-radius: 50%;
    background: transparent;
    color: #263945;
    font-size: 13px;
    cursor: pointer;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.home-page .gallery-carousel-controls button:hover,
.home-page .gallery-carousel-controls button:focus-visible {
    border-color: #263945;
    background: #263945;
    color: #fff;
    transform: translateY(-2px);
}

.home-page .gallery-carousel-controls button:focus-visible {
    outline: 2px solid var(--mah-gold, #c9a25b);
    outline-offset: 3px;
}

.home-page .gallery-carousel-shell {
    width: min(86vw, 1320px);
    margin: 0 auto;
    overflow: hidden;
}

.home-page .project-gallery-track {
    gap: 18px;
    padding: 0 0 12px;
    scroll-padding-left: 0;
}

.home-page .project-gallery-slide,
.home-page .project-gallery-slide.gallery-wide,
.home-page .project-gallery-slide.gallery-narrow {
    position: relative;
    flex: 0 0 calc((100% - 54px) / 4);
    width: auto;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    background: #d5d2cc;
    box-shadow: none;
}

.home-page .project-gallery-slide img,
.home-page .project-gallery-slide.gallery-narrow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .55s cubic-bezier(.2, .75, .25, 1), filter .35s ease;
}

.home-page .project-gallery-slide:hover img {
    transform: scale(1.035);
    filter: saturate(1.04);
}

@media (max-width: 1199px) {
    .home-page .project-gallery-slide,
    .home-page .project-gallery-slide.gallery-wide,
    .home-page .project-gallery-slide.gallery-narrow {
        flex-basis: calc((100% - 36px) / 3);
    }
}

@media (max-width: 767.98px) {
    .home-page .project-gallery-slider {
        padding: 66px 0 70px;
    }

    .home-page .gallery-section-heading {
        width: 86vw;
        margin-bottom: 30px;
        align-items: flex-end;
        gap: 18px;
    }

    .home-page .gallery-section-heading h2 {
        font-size: clamp(39px, 11vw, 52px);
        letter-spacing: -1.5px;
    }

    .home-page .gallery-section-heading h2 br {
        display: none;
    }

    .home-page .gallery-section-heading > div:first-child > p:last-child {
        font-size: 13px;
    }

    .home-page .gallery-carousel-controls button {
        width: 42px;
        height: 42px;
    }

    .home-page .gallery-carousel-shell {
        width: 93vw;
        margin-right: 0;
        margin-left: 7vw;
    }

    .home-page .project-gallery-track {
        gap: 14px;
        padding-left: 0;
        scroll-padding-left: 0;
    }

    .home-page .project-gallery-slide,
    .home-page .project-gallery-slide.gallery-wide,
    .home-page .project-gallery-slide.gallery-narrow {
        flex-basis: 78vw;
        width: auto;
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 520px) {
    .home-page .gallery-section-heading {
        display: block;
    }

    .home-page .gallery-carousel-controls {
        margin-top: 22px;
        padding-bottom: 0;
    }
}
