:root {
    --green: #075f59;
    --green-dark: #034943;
    --green-soft: #126f68;
    --red: #e50922;
    --ink: #4d4d4d;
    --muted: #777;
    --line: rgba(7, 95, 89, 0.22);
    --page: #fff;
    --container: 1140px;
    --header-height: 136px;
    --radius: 22px;
    --shadow: 0 18px 40px rgba(4, 52, 48, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: "Montserrat";
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--green);
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(255, 255, 255, 0.50) 52%,
        rgba(238, 246, 244, 0.40) 100%
    );
    border-top: 1px solid rgba(7, 95, 89, 0.20);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 30px rgba(7, 95, 89, 0.06);
    backdrop-filter: blur(20px) saturate(165%);
    -webkit-backdrop-filter: blur(20px) saturate(165%);
    transition: background 0.25s ease, box-shadow 0.25s ease, min-height 0.25s ease;
}

.site-header.scrolled {
    min-height: 92px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 34px rgba(7, 95, 89, 0.12);
}

.header-shell {
    width: min(1090px, calc(100% - 48px));
    min-height: inherit;
    margin-inline: auto;
    display: flex;
    align-items: center;
}

.main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 38px;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: clamp(28px, 4vw, 66px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-group-right {
    justify-content: flex-end;
    gap: clamp(28px, 3.4vw, 58px);
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-item > a:hover,
.nav-item > a:focus-visible,
.nav-item > a[aria-current="page"] {
    color: var(--red);
}

.nav-chevron {
    width: 9px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: -18px;
    z-index: 30;
    min-width: 205px;
    margin: 0;
    padding: 10px;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.80);
    box-shadow: 0 18px 36px rgba(6, 65, 60, 0.13);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--green-dark);
    font-size: 12px;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    color: var(--red);
    background: rgba(229, 9, 34, 0.06);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.brand {
    display: grid;
    justify-items: center;
    align-content: center;
    line-height: 1;
    color: var(--green);
}

.brand-mark {
    width: 42px;
    height: 23px;
    margin-bottom: -7px;
}

.brand-name {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -1.4px;
}

.brand-subtitle {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.header-search {
    width: 193px;
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 10px 0 17px;
    border: 1px solid var(--red);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--green-dark);
    font-size: 10px;
}

.header-search input::placeholder {
    color: var(--green-dark);
    opacity: 1;
}

.header-search button {
    width: 24px;
    height: 24px;
    padding: 4px;
    cursor: pointer;
    color: var(--red);
    background: transparent;
}

.header-search svg {
    width: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 50%;
    background: rgba(7, 95, 89, 0.08);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    background: var(--green);
    transition: 0.25s ease;
}

/* Intro */
.page-intro {
    padding: 90px 0 43px;
}

.page-intro h1 {
    margin: 0;
    text-align: center;
    color: var(--green);
    font-size: clamp(42px, 4.2vw, 58px);
    font-weight: 300;
    letter-spacing: -2.5px;
    line-height: 1;
}

.page-intro h1 span {
    color: var(--red);
    font-weight:500;
}

.city-section {
    padding: 7px 0 78px;
}

.city-section + .city-section {
    padding-top: 8px;
}

.city-copy {
    margin-bottom: 66px;
}

.city-copy h2 {
    margin: 0 0 4px;
    color: var(--red);
    font-size: clamp(40px, 4.2vw, 54px);
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1.15;
}

.city-copy p {
    max-width: 1110px;
    margin: 0;
    color: #606060;
    font-size: 15px;
    line-height: 1.52;
    text-align: justify;
}

.project-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(28px, 5vw, 60px);
    margin-top: 48px;
}

.filter-btn {
    min-width: 128px;
    min-height: 32px;
    padding: 3px 13px;
    border: 1px solid rgba(7, 95, 89, 0.42);
    border-radius: 999px;
    color: var(--red);
    background: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover:not(:disabled),
.filter-btn:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--red);
}

.filter-btn.is-active {
    color: #fff;
    border-color: var(--red);
    background: var(--red);
}

.filter-btn:disabled {
    color: #bdbdbd;
    border-color: #dfdfdf;
    background: #fff;
    cursor: not-allowed;
}

/* Carousel */
.project-gallery {
    position: relative;
}

.drag-surface {
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.drag-surface.is-dragging {
    cursor: grabbing;
}

.featured-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    outline: none;
    box-shadow: var(--shadow);
}

.featured-viewport:focus-visible {
    box-shadow: 0 0 0 3px rgba(229, 9, 34, 0.22), var(--shadow);
}

.featured-track {
    display: flex;
    width: 100%;
    will-change: transform;
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-track.no-transition {
    transition: none;
}

.featured-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    height: 520px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #dbe9e7;
}

.featured-slide[hidden],
.project-thumb[hidden] {
    display: none !important;
}

.featured-image-wrap {
    position: absolute;
    inset: 0;
}

.featured-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0 58%, rgba(0, 0, 0, 0.07) 72%, rgba(0, 0, 0, 0.18) 100%);
    pointer-events: none;
}

.featured-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.project-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    padding: 58px 32px 24px;
    display: flex;
    flex-direction: column;
    color: #fff;
    background: linear-gradient(
        180deg,
        rgba(125, 201, 240, 0.48) 0%,
        rgba(70, 142, 167, 0.32) 27%,
        rgba(44, 74, 31, 0.54) 68%,
        rgba(49, 32, 18, 0.72) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    box-shadow: -14px 0 30px rgba(0, 0, 0, 0.08), inset 1px 0 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    overflow: hidden;
}

.project-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03) 45%, transparent 72%);
    pointer-events: none;
}

.project-panel > * {
    position: relative;
    z-index: 1;
}

.project-logo-text {
    display: grid;
    width: max-content;
    grid-template-columns: 32px auto;
    align-items: end;
    column-gap: 4px;
    color: #008b70;
    line-height: 0.9;
}

.project-logo-text svg {
    grid-row: span 2;
    align-self: center;
    width: 31px;
}

.project-logo-text svg path:first-child {
    fill: #008b70;
}

.project-logo-text svg path:last-child {
    fill: var(--red);
}

.project-brand {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -1px;
}

.project-logo-text strong {
    color: var(--red);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: uppercase;
}

.project-location {
    margin: 7px 0 14px;
    font-size: 12px;
    font-weight: 500;
}

.project-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    margin-bottom: 26px;
}

.project-types span {
    min-height: 20px;
    display: grid;
    place-items: center;
    padding: 2px 10px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
}

.project-types span:only-child {
    grid-column: 1;
}

.project-description {
    max-width: 330px;
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.48;
}

.project-stats {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.42;
}

.project-stats div {
    display: grid;
    grid-template-columns: 100px 14px 1fr;
}

.project-stats dt::after {
    content: ":";
    float: right;
}

.project-stats dd {
    grid-column: 3;
    margin: 0;
}

.project-panel-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.learn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.learn-link span {
    color: var(--red);
    font-size: 22px;
}

.learn-link:hover,
.learn-link:focus-visible {
    gap: 15px;
    color: #fff;
}

.carousel-arrows {
    display: flex;
    align-items: center;
    gap: 38px;
}

.carousel-arrows button {
    padding: 4px;
    color: #fff;
    background: transparent;
    font-size: 37px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.carousel-arrows button:hover,
.carousel-arrows button:focus-visible {
    color: var(--red);
    transform: scale(1.12);
}

.thumbnail-shell {
    margin-top: 18px;
    padding-top: 38px;
}

.thumbnail-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.thumbnail-viewport::-webkit-scrollbar {
    display: none;
}

.thumbnail-track {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    min-width: max-content;
}

.project-thumb {
    position: relative;
    width: 261px;
    padding: 0;
    color: var(--green);
    background: transparent;
    text-align: center;
    cursor: pointer;
}

.thumb-marker {
    position: absolute;
    top: -40px;
    left: 50%;
    width: 42px;
    height: 25px;
    color: var(--red);
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.thumb-marker svg {
    width: 100%;
    fill: currentColor;
}

.project-thumb.is-active .thumb-marker {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.thumb-image {
    position: relative;
    display: block;
    height: 219px;
    overflow: hidden;
    border-radius: 20px;
    background: #e8efee;
    box-shadow: 0 8px 13px rgba(0, 0, 0, 0.10);
}

.thumb-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    pointer-events: none;
}

.project-thumb:hover .thumb-image img,
.project-thumb:focus-visible .thumb-image img,
.project-thumb.is-active .thumb-image img {
    transform: scale(1.035);
}

.project-thumb.is-active .thumb-image::after {
    border-color: rgba(229, 9, 34, 0.30);
    background: rgba(255, 255, 255, 0.02);
}

.thumb-name {
    display: block;
    margin-top: 13px;
    font-size: 15px;
    font-weight: 400;
}

.project-thumb.is-active .thumb-name {
    color: var(--red);
}

.carousel-progress {
    position: relative;
    width: min(774px, 78%);
    height: 1px;
    margin: 31px auto 0;
    overflow: hidden;
    background: #aaa;
}

.carousel-progress span {
    display: block;
    width: 25%;
    height: 1px;
    background: var(--red);
    transform-origin: left center;
    transition: width 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.empty-state {
    margin: 30px 0 0;
    padding: 24px;
    border: 1px dashed rgba(7, 95, 89, 0.28);
    border-radius: 16px;
    color: var(--green);
    text-align: center;
    background: rgba(7, 95, 89, 0.04);
}

/* Buyer journey */
.buyer-journey {
    padding: 74px 0 108px;
}

.journey-layout {
    max-width: 1048px;
}

.journey-heading > span {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--green);
    color: var(--green);
    font-size: 14px;
}

.journey-heading h2 {
    margin: 7px 0 30px;
    color: var(--green);
    font-size: clamp(31px, 3.2vw, 41px);
    font-weight: 300;
    letter-spacing: -1.5px;
    line-height: 1.45;
}

.journey-heading h2 strong {
    color: var(--red);
    font-size: clamp(42px, 4.4vw, 56px);
    font-weight: 300;
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 26px;
    margin-left: 95px;
}

.journey-card {
    position: relative;
    min-height: 160px;
    padding: 30px 13px 18px;
    border: 1px solid var(--green);
    border-radius: 15px;
    overflow: hidden;
    color: var(--green);
    background: rgba(255, 255, 255, 0.70);
    cursor: pointer;
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(4, 52, 48, 0);
    transition:
        color 0.32s ease,
        background-color 0.32s ease,
        border-color 0.32s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.32s ease;
}

.journey-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0) 45%
        );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}

.journey-card > * {
    position: relative;
    z-index: 1;
}

.journey-card.is-highlighted {
    color: #ffffff;
    border-color: var(--green);
    background: var(--green);
    box-shadow: 0 14px 28px rgba(4, 52, 48, 0.14);
}

.journey-card strong {
    display: block;
    margin-bottom: 15px;
    color: var(--red);
    font-size: 31px;
    font-weight: 500;
    transition:
        color 0.32s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-card.is-highlighted strong {
    color: #ffffff;
}

.journey-card p {
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.45;
    transition: color 0.32s ease;
}

/* Make every hovered or keyboard-focused card look like the first card */
@media (hover: hover) and (pointer: fine) {
    .journey-card:hover {
        color: #ffffff;
        border-color: var(--green);
        background: var(--green);
        transform: translateY(-7px);
        box-shadow: 0 18px 34px rgba(4, 52, 48, 0.18);
    }

    .journey-card:hover::before {
        opacity: 1;
    }

    .journey-card:hover strong {
        color: #ffffff;
        transform: translateY(-2px);
    }
}

.journey-card:focus-visible {
    color: #ffffff;
    border-color: var(--green);
    outline: 3px solid rgba(229, 9, 34, 0.22);
    outline-offset: 4px;
    background: var(--green);
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(4, 52, 48, 0.17);
}

.journey-card:focus-visible::before {
    opacity: 1;
}

.journey-card:focus-visible strong {
    color: #ffffff;
}

/* Tap feedback for touch devices */
@media (hover: none) {
    .journey-card:active {
        color: #ffffff;
        border-color: var(--green);
        background: var(--green);
        transform: scale(0.985);
    }

    .journey-card:active strong {
        color: #ffffff;
    }
}

.advisor-cta {
    width: max-content;
    min-width: 291px;
    min-height: 30px;
    margin: 29px auto 0;
    padding: 5px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    border-radius: 5px;
    color: #fff;
    background: var(--red);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.advisor-cta:hover,
.advisor-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(229, 9, 34, 0.24);
}

.contact-anchor {
    display: block;
    scroll-margin-top: 100px;
}

/* Footer */
.site-footer {
    padding: 70px 0 22px;
    color: rgba(255, 255, 255, 0.82);
    background: var(--green-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 58px;
}

.brand-footer {
    width: max-content;
    justify-items: start;
    color: #fff;
}

.footer-brand-block p {
    max-width: 330px;
    margin: 22px 0 0;
    font-size: 13px;
}

.site-footer h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 15px;
}

.site-footer a:not(.brand) {
    display: block;
    margin: 9px 0;
    font-size: 13px;
    transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #fff;
}

.footer-bottom {
    margin-top: 54px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 11px;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 1100px) {
    :root {
        --header-height: 100px;
    }

    .header-shell {
        width: min(940px, calc(100% - 36px));
    }

    .main-nav {
        gap: 24px;
    }

    .nav-group,
    .nav-group-right {
        gap: 24px;
    }

    .header-search {
        width: 155px;
    }

    .project-panel {
        width: 390px;
        padding-inline: 28px;
    }

    .thumbnail-track {
        gap: 24px;
    }

    .project-thumb {
        width: 235px;
    }

    .thumb-image {
        height: 198px;
    }

    .journey-steps {
        margin-left: 0;
        gap: 16px;
    }
}

@media (max-width: 920px) {
    .site-header,
    .site-header.scrolled {
        min-height: 82px;
    }

    .header-shell {
        position: relative;
        justify-content: center;
    }

    .menu-toggle {
        position: absolute;
        right: 0;
        display: block;
        z-index: 4;
    }

    .main-nav {
        display: flex;
        justify-content: center;
    }

    .main-nav > .brand {
        position: relative;
        z-index: 4;
    }

    .nav-group {
        position: fixed;
        left: 0;
        right: 0;
        z-index: 3;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px 24px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
        opacity: 0;
        visibility: hidden;
        transition: 0.25s ease;
    }

    .nav-group-left {
        top: 82px;
        padding-bottom: 0;
        transform: translateY(-10px);
    }

    .nav-group-right {
        top: 226px;
        padding-top: 0;
        transform: translateY(-10px);
    }

    .main-nav.is-open .nav-group {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item > a {
        width: 100%;
        padding: 12px 0;
        font-size: 14px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 8px 15px;
        border: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .has-dropdown:hover .dropdown-menu,
    .has-dropdown:focus-within .dropdown-menu {
        display: block;
    }

    .header-search-item {
        padding: 10px 0 16px;
    }

    .header-search {
        width: 100%;
    }

    .main-nav.is-open + * {
        pointer-events: none;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .page-intro {
        padding-top: 66px;
    }

    .featured-slide {
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
    }

    .featured-image-wrap {
        position: relative;
        height: 440px;
    }

    .featured-image-wrap::after {
        display: none;
    }

    .project-panel {
        position: relative;
        width: 100%;
        min-height: 430px;
        padding: 42px 34px 28px;
        border-radius: 0 0 var(--radius) var(--radius);
        background: linear-gradient(145deg, rgba(16, 102, 94, 0.92), rgba(24, 65, 48, 0.88));
    }

    .thumbnail-shell {
        padding-top: 28px;
    }

    .journey-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 30px, var(--container));
    }

    .page-intro {
        padding: 52px 0 34px;
    }

    .page-intro h1 {
        font-size: 39px;
        letter-spacing: -1.8px;
    }

    .city-section {
        padding-bottom: 58px;
    }

    .city-copy {
        margin-bottom: 38px;
    }

    .city-copy h2 {
        font-size: 39px;
    }

    .city-copy p {
        font-size: 13px;
        text-align: left;
    }

    .project-filters {
        justify-content: flex-start;
        gap: 10px;
        margin-top: 28px;
    }

    .filter-btn {
        min-width: 0;
        padding: 7px 12px;
    }

    .featured-image-wrap {
        height: 300px;
    }

    .project-panel {
        min-height: 440px;
        padding: 34px 24px 24px;
    }

    .project-brand {
        font-size: 18px;
    }

    .project-logo-text strong {
        font-size: 24px;
    }

    .project-types {
        gap: 12px;
    }

    .project-description {
        font-size: 14px;
    }

    .project-thumb {
        width: 224px;
    }

    .thumb-image {
        height: 185px;
    }

    .carousel-progress {
        width: 100%;
    }

    .journey-heading h2 {
        font-size: 27px;
    }

    .journey-heading h2 strong {
        font-size: 38px;
    }

    .journey-steps {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .journey-card {
        min-height: 145px;
    }

    .advisor-cta {
        min-width: 0;
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .brand-name {
        font-size: 22px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .featured-image-wrap {
        height: 245px;
    }

    .project-panel {
        min-height: 470px;
    }

    .project-types {
        grid-template-columns: 1fr;
    }

    .project-types span:only-child {
        grid-column: auto;
    }

    .carousel-arrows {
        gap: 20px;
    }

    .journey-steps {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* =========================================
   MOBILE BUYER JOURNEY CAROUSEL
========================================= */

@media (max-width: 680px) {
    .buyer-journey {
        padding: 55px 0 75px;
        overflow: hidden;
    }

    .journey-layout {
        width: 100%;
        max-width: 100%;
    }

    .journey-steps {
        display: flex;
        grid-template-columns: none;
        gap: 0;
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-x;
    }

    .journey-steps::-webkit-scrollbar {
        display: none;
    }

    .journey-card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        min-height: 210px;
        padding: 32px 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        border-radius: 16px;
    }

    .journey-card strong {
        margin-bottom: 22px;
        font-size: 34px;
    }

    .journey-card p {
        font-size: 16px;
        line-height: 1.5;
    }

    .journey-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
    }

    .journey-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(7, 95, 89, 0.25);
        cursor: pointer;
        transition:
            width 0.25s ease,
            background 0.25s ease;
    }

    .journey-dot.is-active {
        width: 25px;
        border-radius: 20px;
        background: var(--red);
    }

    .advisor-cta {
        width: 100%;
        margin-top: 28px;
    }
}

/* =========================================================
   ACTIVE PROJECT ICON BETWEEN FEATURED IMAGE AND THUMBNAILS
   Matches the small red roof icon shown in the reference.
   Keep this block at the absolute end of the stylesheet.
========================================================= */

/*
 * Add enough space above the thumbnail row for the marker.
 * The marker automatically moves to whichever thumbnail has
 * the existing .is-active class.
 */
.thumbnail-shell {
    position: relative;
    margin-top: 18px;
    padding-top: 54px;
    overflow: visible;
}

.thumbnail-viewport,
.thumbnail-track,
.project-thumb {
    overflow: visible;
}

/*
 * Hide the previous marker element, if it already exists in
 * the HTML, and use one consistent CSS-drawn marker instead.
 */
.project-thumb .thumb-marker {
    display: none !important;
}

.project-thumb.is-active::before {
    content: "";
    position: absolute;
    top: -44px;
    left: 50%;
    z-index: 8;
    width: 38px;
    height: 25px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 30'%3E%3Cpath d='M4 25 24 5l20 20' fill='none' stroke='%23e50922' stroke-width='5' stroke-linecap='square' stroke-linejoin='miter'/%3E%3Cpath d='m14 25 10-10 10 10' fill='none' stroke='%23e50922' stroke-width='5' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E")
        center / contain
        no-repeat;
    pointer-events: none;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: drop-shadow(0 3px 5px rgba(229, 9, 34, 0.14));
    animation:
        activeProjectMarkerIn 0.42s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;
}

@keyframes activeProjectMarkerIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(9px) scale(0.78);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Tablet */
@media (max-width: 920px) {
    .thumbnail-shell {
        margin-top: 16px;
        padding-top: 48px;
    }

    .project-thumb.is-active::before {
        top: -39px;
        width: 34px;
        height: 22px;
    }
}

/* Mobile */
@media (max-width: 680px) {
    .thumbnail-shell {
        margin-top: 14px;
        padding-top: 44px;
    }

    .project-thumb.is-active::before {
        top: -35px;
        width: 31px;
        height: 20px;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .thumbnail-shell {
        padding-top: 40px;
    }

    .project-thumb.is-active::before {
        top: -32px;
        width: 28px;
        height: 18px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .project-thumb.is-active::before {
        animation: none !important;
    }
}

/* =========================================================
   FINAL PROJECT PAGE RESPONSIVE OVERRIDES
   Keep this block at the absolute end of project-main.css.
========================================================= */

/* Prevent long content from creating horizontal overflow */
.projects-page,
.projects-page main,
.projects-page .city-section,
.projects-page .project-gallery,
.projects-page .buyer-journey {
    max-width: 100%;
    overflow-x: clip;
}

.projects-page .container {
    width: min(var(--container), calc(100% - 40px));
}

/* Improve anchor positioning beneath the sticky header */
.projects-page .city-section,
.projects-page .buyer-journey,
.projects-page #contact {
    scroll-margin-top: calc(var(--header-height) + 18px);
}

/* Keep carousel content readable on medium desktop screens */
@media (max-width: 1180px) {
    .projects-page .featured-slide {
        height: 450px;
    }

    .projects-page .project-panel {
        width: 390px;
        padding: 46px 28px 24px;
    }

    .projects-page .project-description {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .projects-page .thumbnail-track {
        gap: 22px;
    }

    .projects-page .project-thumb {
        width: 228px;
    }

    .projects-page .thumb-image {
        height: 190px;
    }
}

/* =========================================================
   TABLET HEADER AND PAGE LAYOUT
========================================================= */

@media (max-width: 920px) {
    :root {
        --header-height: 82px;
    }

    .projects-page .container {
        width: min(var(--container), calc(100% - 32px));
    }

    /* One clean mobile menu panel instead of split fixed groups */
    .site-header,
    .site-header.scrolled {
        min-height: 82px;
    }

    .site-header .header-shell {
        position: relative;
        width: calc(100% - 28px);
        min-height: 82px;
        justify-content: center;
    }

    .site-header .menu-toggle {
        position: absolute;
        top: 50%;
        right: 0;
        z-index: 1002;
        display: grid;
        place-content: center;
        transform: translateY(-50%);
    }

    .site-header .main-nav {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .site-header .main-nav > .brand {
        position: relative;
        z-index: 1001;
        max-width: 178px;
    }

    .site-header .main-nav > .brand img {
        width: 100%;
        height: auto;
    }

    .site-header .nav-group {
        position: static;
        display: flex;
        align-items: stretch;
        width: 100%;
        padding: 0;
        flex-direction: column;
        gap: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-header .main-nav .nav-group-left,
    .site-header .main-nav .nav-group-right {
        position: static;
        top: auto;
    }

    .site-header .main-nav {
        position: fixed;
        top: 82px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: flex;
        overflow-y: auto;
        padding: 22px 24px 30px;
        flex-direction: column;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.985);
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%);
        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .site-header .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .site-header .main-nav > .brand {
        position: fixed;
        top: 13px;
        left: 50%;
        transform: translateX(-50%);
    }

    .site-header .nav-item > a {
        width: 100%;
        min-height: 52px;
        padding: 12px 2px;
        border-bottom: 1px solid rgba(7, 95, 89, 0.08);
        font-size: 15px;
    }

    .site-header .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        padding: 6px 0 8px 14px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-header .has-dropdown.dropdown-open .dropdown-menu {
        display: block;
    }

    .site-header .header-search-item {
        width: 100%;
        padding: 14px 0 0;
    }

    .site-header .header-search {
        width: 100%;
        height: 42px;
    }

    /* Page intro */
    .projects-page .page-intro {
        padding: 54px 0 32px;
    }

    .projects-page .page-intro h1 {
        font-size: clamp(38px, 7vw, 50px);
        letter-spacing: -1.8px;
    }

    /* City content */
    .projects-page .city-section {
        padding: 5px 0 68px;
    }

    .projects-page .city-copy {
        margin-bottom: 38px;
    }

    .projects-page .city-copy h2 {
        font-size: clamp(38px, 6vw, 48px);
    }

    .projects-page .city-copy p {
        max-width: none;
        font-size: 14px;
        line-height: 1.65;
        text-align: left;
    }

    .projects-page .project-filters {
        justify-content: flex-start;
        gap: 10px;
        margin-top: 28px;
    }

    .projects-page .filter-btn {
        min-width: 0;
        min-height: 36px;
        padding: 7px 14px;
        font-size: 13px;
    }

    /* Featured project becomes stacked */
    .projects-page .featured-viewport {
        border-radius: 20px;
    }

    .projects-page .featured-slide {
        height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        border-radius: 20px;
    }

    .projects-page .featured-image-wrap {
        position: relative;
        inset: auto;
        height: clamp(330px, 52vw, 470px);
    }

    .projects-page .featured-image-wrap::after {
        display: none;
    }

    .projects-page .featured-image-wrap img {
        object-position: center;
    }

    .projects-page .project-panel {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 0;
        padding: 34px 30px 28px;
        border-radius: 0 0 20px 20px;
        background:
            linear-gradient(
                145deg,
                rgba(8, 95, 88, 0.96),
                rgba(28, 66, 45, 0.94)
            );
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .projects-page .project-description {
        max-width: 680px;
    }

    .projects-page .project-panel-footer {
        margin-top: 28px;
    }

    /* Thumbnails */
    .projects-page .thumbnail-shell {
        margin-top: 14px;
        padding-top: 46px;
    }

    .projects-page .thumbnail-track {
        gap: 18px;
        padding-inline: 2px;
    }

    .projects-page .project-thumb {
        width: 220px;
    }

    .projects-page .thumb-image {
        height: 180px;
        border-radius: 17px;
    }

    .projects-page .carousel-progress {
        width: 100%;
        margin-top: 24px;
    }

    /* Buyer journey */
    .projects-page .buyer-journey {
        padding: 62px 0 82px;
    }

    .projects-page .journey-layout {
        max-width: none;
    }

    .projects-page .journey-steps {
        margin-left: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .projects-page .journey-card {
        min-height: 150px;
    }

    .projects-page .advisor-cta {
        margin-top: 26px;
    }

    /* Footer */
    .projects-page .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 30px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {
    :root {
        --header-height: 76px;
    }

    .projects-page .container {
        width: calc(100% - 28px);
    }

    .site-header,
    .site-header.scrolled,
    .site-header .header-shell {
        min-height: 76px;
    }

    .site-header .main-nav {
        top: 76px;
        padding: 18px 20px 26px;
    }

    .site-header .main-nav > .brand {
        top: 12px;
        width: 164px;
    }

    .site-header .menu-toggle {
        right: 0;
        width: 42px;
        height: 42px;
    }

    .projects-page .page-intro {
        padding: 42px 0 27px;
    }

    .projects-page .page-intro h1 {
        font-size: clamp(33px, 10vw, 42px);
        letter-spacing: -1.3px;
    }

    .projects-page .city-section {
        padding-bottom: 54px;
    }

    .projects-page .city-section + .city-section {
        padding-top: 0;
    }

    .projects-page .city-copy {
        margin-bottom: 28px;
    }

    .projects-page .city-copy h2 {
        margin-bottom: 10px;
        font-size: clamp(34px, 10vw, 41px);
        letter-spacing: -1.2px;
    }

    .projects-page .city-copy p {
        font-size: 13px;
        line-height: 1.65;
    }

    /* Horizontally scrollable filters preserve usable button sizes */
    .projects-page .project-filters {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: calc(100% + 14px);
        margin-top: 22px;
        padding: 0 14px 5px 0;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .projects-page .project-filters::-webkit-scrollbar {
        display: none;
    }

    .projects-page .filter-btn {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 7px 13px;
        font-size: 12px;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .projects-page .project-gallery {
        width: 100%;
    }

    .projects-page .featured-viewport {
        border-radius: 17px;
    }

    .projects-page .featured-slide {
        border-radius: 17px;
    }

    .projects-page .featured-image-wrap {
        height: clamp(235px, 72vw, 330px);
    }

    .projects-page .featured-image-wrap img {
        object-position: center center;
    }

    .projects-page .project-panel {
        padding: 28px 20px 22px;
        border-radius: 0 0 17px 17px;
    }

    .projects-page .project-logo-text {
        grid-template-columns: 27px auto;
    }

    .projects-page .project-logo-text svg {
        width: 27px;
    }

    .projects-page .project-brand {
        font-size: 17px;
    }

    .projects-page .project-logo-text strong {
        font-size: 22px;
    }

    .projects-page .project-location {
        margin: 8px 0 16px;
        font-size: 11px;
    }

    .projects-page .project-types {
        gap: 8px;
        margin-bottom: 18px;
    }

    .projects-page .project-types span {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .projects-page .project-description {
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.55;
    }

    .projects-page .project-stats {
        font-size: 12px;
    }

    .projects-page .project-stats div {
        grid-template-columns: 84px 10px minmax(0, 1fr);
    }

    .projects-page .project-panel-footer {
        align-items: center;
        margin-top: 24px;
        gap: 12px;
    }

    .projects-page .learn-link {
        font-size: 11px;
    }

    .projects-page .carousel-arrows {
        gap: 14px;
    }

    .projects-page .carousel-arrows button {
        min-width: 42px;
        min-height: 42px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 50%;
        font-size: 27px;
    }

    /* Show part of the next thumbnail to communicate scrolling */
    .projects-page .thumbnail-shell {
        margin-top: 10px;
        padding-top: 42px;
    }

    .projects-page .thumbnail-viewport {
        width: calc(100% + 14px);
        padding-right: 14px;
        scroll-padding-left: 0;
        scroll-snap-type: x mandatory;
    }

    .projects-page .thumbnail-track {
        gap: 14px;
    }

    .projects-page .project-thumb {
        flex: 0 0 78vw;
        width: 78vw;
        max-width: 295px;
        scroll-snap-align: start;
    }

    .projects-page .thumb-image {
        height: clamp(170px, 55vw, 220px);
        border-radius: 16px;
    }

    .projects-page .thumb-name {
        margin-top: 10px;
        font-size: 14px;
    }

    .projects-page .project-thumb.is-active::before {
        top: -33px;
        width: 29px;
        height: 19px;
    }

    /* Buyer journey becomes a touch-friendly horizontal carousel */
    .projects-page .buyer-journey {
        padding: 52px 0 68px;
    }

    .projects-page .journey-heading > span {
        font-size: 12px;
    }

    .projects-page .journey-heading h2 {
        margin: 8px 0 24px;
        font-size: clamp(25px, 7.8vw, 32px);
        line-height: 1.3;
    }

    .projects-page .journey-heading h2 strong {
        font-size: clamp(34px, 10.5vw, 43px);
        line-height: 1.12;
    }

    .projects-page .journey-steps {
        display: flex;
        width: calc(100% + 14px);
        margin: 0;
        padding: 2px 14px 12px 0;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .projects-page .journey-steps::-webkit-scrollbar {
        display: none;
    }

    .projects-page .journey-card {
        flex: 0 0 82vw;
        width: 82vw;
        min-width: 0;
        max-width: 310px;
        min-height: 190px;
        padding: 28px 22px;
        justify-content: center;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .projects-page .journey-card strong {
        margin-bottom: 18px;
        font-size: 32px;
    }

    .projects-page .journey-card p {
        font-size: 15px;
    }

    .projects-page .advisor-cta {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        margin-top: 22px;
        padding: 10px 14px;
        font-size: 12px;
        text-align: center;
    }

    /* Footer */
    .projects-page .site-footer {
        padding-top: 52px;
    }

    .projects-page .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .projects-page .footer-bottom {
        align-items: flex-start;
        margin-top: 38px;
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
    .projects-page .container {
        width: calc(100% - 24px);
    }

    .projects-page .page-intro {
        padding-top: 36px;
    }

    .projects-page .page-intro h1 {
        font-size: 32px;
    }

    .projects-page .city-copy h2 {
        font-size: 34px;
    }

    .projects-page .featured-image-wrap {
        height: 225px;
    }

    .projects-page .project-panel {
        padding: 24px 17px 20px;
    }

    .projects-page .project-types {
        grid-template-columns: 1fr;
    }

    .projects-page .project-types span:only-child {
        grid-column: auto;
    }

    .projects-page .project-panel-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .projects-page .carousel-arrows {
        align-self: flex-end;
    }

    .projects-page .project-thumb {
        flex-basis: 84vw;
        width: 84vw;
    }

    .projects-page .thumb-image {
        height: 185px;
    }

    .projects-page .journey-card {
        flex-basis: 86vw;
        width: 86vw;
        min-height: 180px;
    }
}

/* Very narrow phones */
@media (max-width: 360px) {
    .projects-page .container {
        width: calc(100% - 20px);
    }

    .projects-page .page-intro h1 {
        font-size: 29px;
    }

    .projects-page .city-copy h2 {
        font-size: 31px;
    }

    .projects-page .featured-image-wrap {
        height: 205px;
    }

    .projects-page .project-panel {
        padding-inline: 15px;
    }

    .projects-page .project-logo-text strong {
        font-size: 20px;
    }

    .projects-page .project-description {
        font-size: 12.5px;
    }

    .projects-page .project-thumb {
        flex-basis: 88vw;
        width: 88vw;
    }

    .projects-page .journey-card {
        flex-basis: 88vw;
        width: 88vw;
    }
}

/* Mobile landscape */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 920px) {
    .site-header .main-nav {
        padding-top: 12px;
    }

    .site-header .nav-item > a {
        min-height: 42px;
        padding-block: 8px;
    }

    .projects-page .featured-image-wrap {
        height: 300px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .projects-page .thumbnail-viewport,
    .projects-page .journey-steps,
    .projects-page .project-filters {
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   FINAL HEADER FIX — KEEP THIS BLOCK AT THE ABSOLUTE END
   This replaces all earlier conflicting mobile header rules.
========================================================= */

:root {
    --header-height: 96px;
    --mobile-header-height: 76px;
}

body.menu-open {
    overflow: hidden !important;
}

/* Desktop header */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
    width: 100% !important;
    min-height: var(--header-height) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    border-top: 1px solid rgba(7, 95, 89, 0.16) !important;
    border-bottom: 1px solid rgba(7, 95, 89, 0.08) !important;
    box-shadow: 0 8px 28px rgba(7, 95, 89, 0.08) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
}

.site-header.scrolled {
    min-height: 82px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 12px 34px rgba(7, 95, 89, 0.13) !important;
}

.site-header .header-shell {
    position: relative !important;
    width: min(1180px, calc(100% - 48px)) !important;
    min-height: inherit !important;
    margin-inline: auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.site-header .main-nav {
    position: static !important;
    width: 100% !important;
    min-height: inherit !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 34px !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}

.site-header .nav-group {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: clamp(24px, 3.2vw, 54px) !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: row !important;
    list-style: none !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.site-header .nav-group-right {
    justify-content: flex-end !important;
    gap: clamp(20px, 2.6vw, 42px) !important;
}

.site-header .desktop-brand {
    display: block !important;
    line-height: 0 !important;
}

.site-header .desktop-brand img {
    display: block !important;
    width: 205px !important;
    height: auto !important;
    max-height: 58px !important;
    object-fit: contain !important;
}

.site-header .mobile-brand {
    display: none !important;
}

.site-header .menu-toggle {
    display: none !important;
}

.site-header .nav-item {
    position: relative !important;
}

.site-header .nav-item > a,
.site-header .dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--green-dark) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

.site-header .nav-item > a:hover,
.site-header .nav-item > a:focus-visible,
.site-header .nav-item > a[aria-current="page"],
.site-header .dropdown-toggle:hover,
.site-header .dropdown-toggle:focus-visible {
    color: var(--red) !important;
    outline: none !important;
}

.site-header .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 18px) !important;
    left: -18px !important;
    z-index: 10010 !important;
    display: block !important;
    min-width: 205px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 10px !important;
    list-style: none !important;
    border: 1px solid rgba(7, 95, 89, 0.10) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 18px 36px rgba(6, 65, 60, 0.13) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease !important;
}

.site-header .has-dropdown:hover .dropdown-menu,
.site-header .has-dropdown:focus-within .dropdown-menu,
.site-header .has-dropdown.dropdown-open .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.site-header .dropdown-menu a {
    display: block !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    color: var(--green-dark) !important;
    font-size: 13px !important;
}

.site-header .header-search {
    width: 193px !important;
    height: 36px !important;
}

/* Mobile and tablet */
@media screen and (max-width: 920px) {
    :root {
        --header-height: var(--mobile-header-height);
    }

    .site-header,
    .site-header.scrolled {
        position: sticky !important;
        min-height: var(--mobile-header-height) !important;
    }

    .site-header .header-shell {
        width: calc(100% - 28px) !important;
        min-height: var(--mobile-header-height) !important;
        justify-content: center !important;
    }

    /* Logo remains outside the hidden navigation panel */
    .site-header .mobile-brand {
        position: relative !important;
        z-index: 10004 !important;
        display: block !important;
        line-height: 0 !important;
    }

    .site-header .mobile-brand img {
        display: block !important;
        width: 174px !important;
        height: auto !important;
        max-height: 48px !important;
        object-fit: contain !important;
    }

    .site-header .desktop-brand {
        display: none !important;
    }

    .site-header .menu-toggle {
        position: absolute !important;
        top: 50% !important;
        right: 0 !important;
        z-index: 10005 !important;
        display: grid !important;
        place-content: center !important;
        width: 44px !important;
        height: 44px !important;
        padding: 10px !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: rgba(7, 95, 89, 0.08) !important;
        transform: translateY(-50%) !important;
        cursor: pointer !important;
    }

    .site-header .menu-toggle span {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        margin: 3px auto !important;
        border-radius: 999px !important;
        background: var(--green) !important;
        transition:
            transform 0.25s ease,
            opacity 0.2s ease !important;
    }

    .site-header .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    .site-header .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0 !important;
    }

    .site-header .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    /* One full-screen navigation panel */
    .site-header .main-nav {
        position: fixed !important;
        top: var(--mobile-header-height) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 10002 !important;
        display: flex !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 20px 22px 34px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        background: #ffffff !important;
        box-shadow: 0 18px 40px rgba(7, 61, 58, 0.12) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(100%, 0, 0) !important;
        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }

    .site-header .main-nav.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
    }

    .site-header .nav-group,
    .site-header .nav-group-right {
        position: static !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-direction: column !important;
        gap: 0 !important;
        background: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .site-header .nav-item,
    .site-header .header-search-item {
        width: 100% !important;
    }

    .site-header .nav-item > a,
    .site-header .dropdown-toggle {
        width: 100% !important;
        min-height: 56px !important;
        justify-content: space-between !important;
        padding: 12px 4px !important;
        border-bottom: 1px solid rgba(7, 95, 89, 0.10) !important;
        color: var(--green-dark) !important;
        font-size: 15px !important;
        text-align: left !important;
    }

    .site-header .dropdown-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 6px 0 8px 14px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .site-header .has-dropdown:hover .dropdown-menu,
    .site-header .has-dropdown:focus-within .dropdown-menu {
        display: none !important;
    }

    .site-header .has-dropdown.dropdown-open .dropdown-menu {
        display: block !important;
    }

    .site-header .dropdown-menu a {
        padding: 11px 8px !important;
        font-size: 14px !important;
    }

    .site-header .header-search-item {
        padding-top: 18px !important;
    }

    .site-header .header-search {
        width: 100% !important;
        height: 44px !important;
    }
}

@media screen and (max-width: 480px) {
    .site-header .header-shell {
        width: calc(100% - 22px) !important;
    }

    .site-header .mobile-brand img {
        width: 158px !important;
    }

    .site-header .main-nav {
        padding: 18px 18px 28px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .main-nav,
    .site-header .menu-toggle span,
    .site-header .dropdown-menu {
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   SMOOTH PAGE MOTION
   Scroll reveals, image scale-up, carousel transitions and
   staggered cards. Keep this block at the absolute end.
========================================================= */

:root {
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-duration: 850ms;
}

/* Scroll reveal primitives */
.js.motion-ready .motion-item {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    filter: blur(5px);
    transition:
        opacity var(--motion-duration) var(--motion-ease),
        transform var(--motion-duration) var(--motion-ease),
        filter 700ms ease;
    transition-delay: var(--motion-delay, 0ms);
    will-change: opacity, transform;
}

.js.motion-ready .motion-item.motion-fade-left {
    transform: translate3d(-34px, 0, 0);
}

.js.motion-ready .motion-item.motion-fade-right {
    transform: translate3d(34px, 0, 0);
}

.js.motion-ready .motion-item.motion-scale {
    transform: translate3d(0, 24px, 0) scale(0.965);
    filter: none;
    transform-origin: center top;
}

.js.motion-ready .motion-item.motion-title {
    transform: translate3d(0, 30px, 0) scale(0.985);
    clip-path: inset(0 0 100% 0);
    filter: none;
    transition:
        opacity 900ms var(--motion-ease),
        transform 1000ms var(--motion-ease),
        clip-path 1000ms var(--motion-ease);
}

.js.motion-ready .motion-item.is-motion-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.js.motion-ready .motion-item.motion-title.is-motion-visible {
    clip-path: inset(0 0 0 0);
}

/* Page-heading accent arrives a fraction later */
.page-intro h1 span {
    display: inline-block;
}

.js.motion-ready .page-intro h1.motion-item span {
    opacity: 0;
    transform: translate3d(-14px, 0, 0);
    transition:
        opacity 700ms var(--motion-ease) 180ms,
        transform 750ms var(--motion-ease) 180ms;
}

.js.motion-ready .page-intro h1.motion-item.is-motion-visible span {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Smooth small-to-big scroll treatment */
.project-gallery[data-scroll-zoom] .featured-viewport {
    transform:
        translate3d(0, var(--gallery-y, 0px), 0)
        scale(var(--gallery-scale, 1));
    transform-origin: center center;
    backface-visibility: hidden;
    transition: transform 120ms linear;
    will-change: transform;
}

/* Active project slide motion */
.featured-slide .featured-image-wrap {
    overflow: hidden;
}

.featured-slide .featured-image-wrap img {
    backface-visibility: hidden;
    transform-origin: center center;
}

.featured-slide.is-slide-entering .featured-image-wrap img {
    animation:
        projectImageReveal 1150ms
        var(--motion-ease)
        both;
}

.featured-slide.is-slide-entering .project-panel {
    animation:
        projectPanelReveal 800ms
        var(--motion-ease)
        both;
}

.featured-slide.is-slide-entering .project-panel > * {
    opacity: 0;
    animation:
        projectContentReveal 650ms
        var(--motion-ease)
        forwards;
}

.featured-slide.is-slide-entering .project-panel > *:nth-child(1) {
    animation-delay: 120ms;
}

.featured-slide.is-slide-entering .project-panel > *:nth-child(2) {
    animation-delay: 180ms;
}

.featured-slide.is-slide-entering .project-panel > *:nth-child(3) {
    animation-delay: 240ms;
}

.featured-slide.is-slide-entering .project-panel > *:nth-child(4) {
    animation-delay: 300ms;
}

.featured-slide.is-slide-entering .project-panel > *:nth-child(5) {
    animation-delay: 360ms;
}

.featured-slide.is-slide-entering .project-panel > *:nth-child(6) {
    animation-delay: 420ms;
}

@keyframes projectImageReveal {
    from {
        opacity: 0.72;
        transform: scale(1.075);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes projectPanelReveal {
    from {
        opacity: 0;
        transform: translate3d(28px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes projectContentReveal {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Cleaner interaction motion */
.filter-btn,
.project-thumb,
.thumb-image,
.journey-card,
.advisor-cta {
    backface-visibility: hidden;
}

.filter-btn {
    transition:
        color 260ms ease,
        background 260ms ease,
        border-color 260ms ease,
        transform 320ms var(--motion-ease),
        box-shadow 320ms ease;
}

.filter-btn:hover:not(:disabled),
.filter-btn:focus-visible:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(7, 95, 89, 0.10);
}

.project-thumb {
    transition:
        color 300ms ease,
        transform 400ms var(--motion-ease);
}

.project-thumb:hover,
.project-thumb:focus-visible,
.project-thumb.is-active {
    transform: translate3d(0, -6px, 0);
}

.thumb-image {
    transition:
        transform 400ms var(--motion-ease),
        box-shadow 400ms ease;
}

.project-thumb:hover .thumb-image,
.project-thumb:focus-visible .thumb-image,
.project-thumb.is-active .thumb-image {
    box-shadow: 0 18px 30px rgba(4, 52, 48, 0.16);
}

.project-thumb .thumb-image img {
    transition:
        transform 700ms var(--motion-ease),
        filter 500ms ease;
}

.project-thumb:hover .thumb-image img,
.project-thumb:focus-visible .thumb-image img,
.project-thumb.is-active .thumb-image img {
    transform: scale(1.055);
}

/* Progress line glides rather than jumps */
.carousel-progress span {
    transition:
        width 450ms var(--motion-ease),
        transform 650ms var(--motion-ease) !important;
}

/* Journey stagger and active-card polish */
.journey-card {
    transition:
        color 360ms ease,
        background-color 360ms ease,
        border-color 360ms ease,
        transform 480ms var(--motion-ease),
        box-shadow 420ms ease !important;
}

.journey-card.is-highlighted {
    animation:
        highlightedCardIn 850ms
        var(--motion-ease)
        both;
}

@keyframes highlightedCardIn {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* Header/menu motion stays fluid without animating layout properties */
.site-header,
.mh-header {
    transition:
        background 300ms ease,
        box-shadow 350ms ease,
        min-height 350ms var(--motion-ease) !important;
}

@media (max-width: 920px) {
    .featured-slide.is-slide-entering .project-panel {
        animation-name: projectPanelRevealMobile;
    }

    @keyframes projectPanelRevealMobile {
        from {
            opacity: 0;
            transform: translate3d(0, 22px, 0);
        }

        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
}

@media (max-width: 680px) {
    :root {
        --motion-duration: 720ms;
    }

    .js.motion-ready .motion-item {
        transform: translate3d(0, 20px, 0);
        filter: blur(3px);
    }

    .js.motion-ready .motion-item.motion-scale {
        transform: translate3d(0, 16px, 0) scale(0.98);
        filter: none;
    }

    .js.motion-ready .motion-item.is-motion-visible {
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }

    .project-gallery[data-scroll-zoom] .featured-viewport {
        transition-duration: 150ms;
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-item,
    .motion-item *,
    .featured-slide,
    .featured-slide *,
    .project-gallery[data-scroll-zoom] .featured-viewport {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
        opacity: 1 !important;
    }
}


/* =========================================================
   TITLE ENTRANCE + RELIABLE AUTO-CAROUSEL POLISH
   Keep this block at the absolute end of project-main.css.
========================================================= */

.page-title-animated {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.18em;
    width: max-content;
    max-width: 100%;
    margin-inline: auto !important;
    padding-bottom: 15px;
    overflow: hidden;
}

.page-title-animated .title-part {
    display: inline-block;
    opacity: 0;
    will-change: transform, opacity, filter;
}

.page-title-animated .title-part-red {
    color: var(--red);
    transform: translate3d(-44px, 0, 0);
    filter: blur(7px);
}

.page-title-animated .title-part-green {
    color: var(--green);
    transform: translate3d(44px, 0, 0);
    filter: blur(7px);
}

.page-title-animated .title-accent-line {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--red) 0 48%,
            var(--green) 48% 100%
        );
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0.75;
}

.page-title-animated.is-title-animated .title-part-red {
    animation:
        titlePartFromLeft 950ms
        cubic-bezier(0.22, 1, 0.36, 1)
        80ms
        forwards;
}

.page-title-animated.is-title-animated .title-part-green {
    animation:
        titlePartFromRight 950ms
        cubic-bezier(0.22, 1, 0.36, 1)
        190ms
        forwards;
}

.page-title-animated.is-title-animated .title-accent-line {
    animation:
        titleAccentGrow 850ms
        cubic-bezier(0.22, 1, 0.36, 1)
        420ms
        forwards;
}

@keyframes titlePartFromLeft {
    0% {
        opacity: 0;
        transform: translate3d(-44px, 16px, 0) scale(0.96);
        filter: blur(7px);
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes titlePartFromRight {
    0% {
        opacity: 0;
        transform: translate3d(44px, 16px, 0) scale(0.96);
        filter: blur(7px);
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes titleAccentGrow {
    from {
        opacity: 0;
        transform: scaleX(0);
    }

    to {
        opacity: 0.75;
        transform: scaleX(1);
    }
}

/* Active slide gets a visible smooth zoom every time autoplay advances. */
.featured-slide.is-active .featured-image-wrap img {
    animation:
        activeProjectSlowZoom 3800ms
        linear
        both;
}

@keyframes activeProjectSlowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.045);
    }
}

/* Keep active thumbnail movement smooth during autoplay. */
.project-thumb.is-active {
    transition:
        color 350ms ease,
        transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 680px) {
    .page-title-animated {
        width: 100%;
        gap: 0.12em;
        padding-inline: 4px;
        padding-bottom: 12px;
    }

    .page-title-animated .title-accent-line {
        right: 8%;
        left: 8%;
    }
    
    }



@media (prefers-reduced-motion: reduce) {
    .page-title-animated .title-part {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }

    .page-title-animated .title-accent-line {
        opacity: 0.75 !important;
        transform: scaleX(1) !important;
        animation: none !important;
    }

    .featured-slide.is-active .featured-image-wrap img {
        animation: none !important;
    }
}

