* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #f3f1ec;
    color: #171817;
    font-family: "DM Sans", Arial, sans-serif
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: auto
}

a {
    text-decoration: none;
    color: inherit
}

.eyebrow {
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #77756e
}

.nav {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    height: 78px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    font-family: Manrope;
    font-size: 17px;
    letter-spacing: .2em;
    font-weight: 600
}

.brand small {
    display: block;
    font-size: 7px;
    letter-spacing: .16em;
    font-weight: 400;
    opacity: .75;
    margin-top: 3px
}

.links {
    display: flex;
    gap: 27px;
    font-weight: 700;
    font-size: 40rem;
}

.links a {
    font-size: 1rem;
}

.links a:hover {
    opacity: .65
}

.navbtn {
    border: 2px solid rgba(255, 255, 255, .8);
    padding: 10px 14px;
    font-size: 9px;
    font-weight: 500;
    font-style: bold;
}

.navbtn:hover{
    color: #0b0d12;
    background-color:  rgba(255, 255, 255, .8);
}

.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    color: #fff;
    display: flex;
    align-items: flex-end;
    overflow: hidden
}

.hero>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .58), transparent 72%), linear-gradient(0deg, rgba(0, 0, 0, .48), transparent 55%)
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 70px
}

.hero .eyebrow {
    color: #fff
}

.hero h1 {
    font-family: Manrope;
    font-size: clamp(50px, 8vw, 100px);
    font-weight: 500;
    letter-spacing: -.065em;
    line-height: .9;
    max-width: 850px;
    margin: 18px 0 25px
}

.hero p {
    font-size: 13px;
    max-width: 350px;
    color: #ddd
}

.btn {
    display: inline-block;
    background: #171918;
    color: #fff;
    border: 0;
    padding: 13px 17px;
    font-size: 10px;
    margin-top: 24px;
    cursor: default
}

.btn.light {
    background: #fff;
    color: #111
}

.section {
    padding: 95px 0
}

.about {
    background: #f8f6f1
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center
}

.about img {
    height: 550px;
    object-fit: cover
}

.h2 {
    font-family: Manrope;
    font-size: clamp(40px, 5vw, 70px);
    font-weight: 500;
    line-height: .96;
    letter-spacing: -.06em;
    margin: 15px 0 25px
}

.muted {
    font-size: 14px;
    color: #74736d;
    max-width: 545px;
    margin-right: 1.5rem;
    line-height: 1.65;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #d5d2ca;
    margin-top: 45px
}

.stat {
    padding-top: 17px
}

.stat strong {
    font-family: Manrope;
    font-size: 35px;
    font-weight: 500
}

.stat span {
    display: block;
    color: #77756e;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: 3px
}

.works {
    background: #fff
}

.workhead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 30px
}

.carousel {
    height: 520px;
    background: transparent;
    position: relative;
    overflow: hidden;
    perspective: 1400px;
    touch-action: pan-y;
    cursor: default;
}

.carousel:active {
    cursor: default;
}

.stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d
}

.card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 380px;
    overflow: hidden;
    background: #0b0d12;
    border-radius: 18px;
    box-shadow: 0 30px 60px -20px #000a, 0 8px 20px -10px #0008;
    transition: none;
    will-change: transform, opacity, filter;
    transform-origin: center center;
    backface-visibility: hidden;
    cursor: default
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: #05060a;
    opacity: 0;
    mix-blend-mode: multiply;
    pointer-events: none
}

.carousel-label {
    position: absolute;
    z-index: 20;
    top: 22px;
    left: 22px;
    color: #171817;
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase
}

.arrow {
    position: absolute;
    z-index: 30;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid #ffffff30;
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
    color: #171817;
    backdrop-filter: blur(8px);
    cursor: default;
    font-size: 24px
}

.arrow:hover {
    background: #fff
}

.prev {
    left: 15px
}

.next {
    right: 15px
}

.dots {
    position: absolute;
    z-index: 30;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 20px;
    background: rgba(20, 20, 20, .08);
    backdrop-filter: blur(6px)
}

.dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(23, 24, 23, .28);
    cursor: default
}

.dot.active {
    width: 20px;
    border-radius: 20px;
    background: #171817
}

.services {
    background: #f8f6f1
}

.servicegrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

.service {
    border: 1px solid #d7d4cc;
    padding: 24px;
    min-height: 225px
}

.service h3 {
    font-family: Manrope;
    font-weight: 500;
    font-size: 21px;
    margin: 38px 0 10px
}

.service p {
    font-size: 12px;
    color: #777
}

.philosophy {
    background: #171918;
    color: #fff
}

.philimg {
    height: 520px;
    object-fit: cover
}

.philosophy .muted {
    color: #aaa
}

.process {
    background: #fff
}

.processrow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #d5d2ca
}

.step {
    padding: 25px 25px 10px 0;
    border-right: 1px solid #d5d2ca
}

.step:not(:first-child) {
    padding-left: 25px
}

.step:last-child {
    border-right: 0
}

.step b {
    font-size: 10px;
    color: #888
}

.step h3 {
    font-family: Manrope;
    font-size: 22px;
    font-weight: 500;
    margin: 34px 0 7px
}

.step p {
    font-size: 11px;
    color: #777
}

.contact {
    background: #e6e2da
}

.form {
    border-top: 1px solid #c9c5bd
}

.field {
    padding: 17px 0;
    border-bottom: 1px solid #c9c5bd
}

.field label {
    display: block;
    font-size: 8px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 7px
}

.field input,
.field textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 14px
}

.field textarea {
    min-height: 80px;
    resize: vertical
}

.footer {
    background: #171918;
    color: #fff;
    padding: 60px 0 25px
}

.footgrid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 35px;
    padding-bottom: 50px
}

.footer h4 {
    font-size: 9px;
    letter-spacing: .15em;
    text-transform: uppercase
}

.footer a,
.footer p {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 9px
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 18px;
    color: #777;
    font-size: 9px;
    display: flex;
    justify-content: space-between
}

@media(max-width:850px) {

    .links,
    .navbtn {
        display: none
    }

    .container {
        width: min(100% - 36px, 1180px)
    }

    .grid2 {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .about img,
    .philimg {
        height: 430px
    }

    .servicegrid {
        grid-template-columns: 1fr 1fr
    }

    .processrow {
        grid-template-columns: 1fr 1fr
    }

    .step {
        border-bottom: 1px solid #d5d2ca
    }

    .step:nth-child(2) {
        border-right: 0
    }

    .carousel {
        height: 470px
    }

    .property-grid {
        grid-template-columns: 1fr 1fr
    }

    .property-image {
        height: 300px
    }

    .property-head {
        gap: 20px
    }

    .footgrid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:600px) {
    body {
        overflow-x: hidden
    }

    .container {
        width: calc(100% - 28px)
    }

    .nav {
        height: 68px
    }

    .hero {
        min-height: 650px;
        height: 92svh
    }

    .hero-content {
        padding-bottom: 45px
    }

    .hero h1 {
        font-size: clamp(46px, 14vw, 60px);
        line-height: .92;
        max-width: 100%
    }

    .hero p {
        font-size: 12px;
        max-width: 300px
    }

    .section {
        padding: 68px 0
    }

    .h2 {
        font-size: clamp(38px, 11vw, 52px);
        line-height: .95
    }

    .about img,
    .philimg {
        height: 360px
    }

    .servicegrid,
    .processrow {
        grid-template-columns: 1fr
    }

    .step,
    .step:not(:first-child) {
        padding: 21px 0;
        border-right: 0
    }

    .carousel {
        height: 430px;
        margin: 0 -4px
    }

    .card {
        width: 245px;
        height: 325px
    }

    .arrow {
        width: 38px;
        height: 38px;
        font-size: 21px
    }

    .prev {
        left: 8px
    }

    .next {
        right: 8px
    }

    .carousel-label {
        top: 16px;
        left: 15px;
        font-size: 8px
    }

    .property-head {
        display: block;
        margin-bottom: 28px
    }

    .property-tabs {
        display: flex;
        overflow-x: auto;
        gap: 22px;
        padding-bottom: 1px
    }

    .property-tab {
        white-space: nowrap
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .property-image {
        height: 340px
    }

    .property-info {
        padding: 18px 17px 20px
    }

    .property-info h3 {
        font-size: 22px
    }

    .property-bottom {
        margin-top: 20px
    }

    .property-price {
        font-size: 20px
    }

    .stats {
        gap: 8px
    }

    .stat strong {
        font-size: 28px
    }

    .stat span {
        font-size: 8px
    }

    .contact .grid2 {
        gap: 35px;
        align-items: flex-start;
        margin-left: 0.91rem;
    }

    .form {
        width: 100%
    }

    .footgrid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 18px
    }

    .copyright {
        display: block;
        line-height: 2.2
    }
}

@media(max-width:380px) {
    .hero h1 {
        font-size: 45px
    }

    .carousel {
        height: 405px
    }

    .card {
        width: 220px;
        height: 300px
    }

    .stats {
        grid-template-columns: repeat(3, 1fr)
    }

    .stat strong {
        font-size: 25px
    }

    .stat span {
        font-size: 7px
    }

    .footgrid {
        grid-template-columns: 1fr
    }
}

.stats {
    overflow: hidden
}

.stat {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1)
}

.stat.is-visible {
    opacity: 1;
    transform: translateY(0)
}

.stat:nth-child(1) {
    transition-delay: .05s
}

.stat:nth-child(2) {
    transition-delay: .15s
}

.stat:nth-child(3) {
    transition-delay: .25s
}

.stat strong {
    display: inline-block;
    min-width: 1.7em
}


.property-section {
    background: #f3f1ec
}

.property-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 38px
}

.property-tabs {
    display: flex;
    border-bottom: 1px solid #cfcac1;
    gap: 28px
}

.property-tab {
    border: 0;
    background: none;
    padding: 0 0 10px;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    color: #777
}

.property-tab.active {
    color: #171817;
    border-bottom: 1px solid #171817
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.property-card {
    background: #fff;
    position: relative;
    overflow: hidden
}

.property-image {
    height: 360px;
    position: relative;
    overflow: hidden
}

.property-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* Longer duration with a gentler easing curve */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    /* Hardware acceleration & anti-aliasing fixes */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.property-card:hover .property-image img {
    /* Slight rotation prevents pixel snapping during scale */
    transform: scale(1.06) translateZ(0);
}

.property-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.property-card:hover .property-image::after {
    opacity: 1;
}
.property-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #fff;
    padding: 8px 10px;
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
    z-index: 2
}

.property-info {
    padding: 20px 20px 23px
}

.property-info h3 {
    font-family: Manrope;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.04em;
    margin: 0 0 8px
}

.property-meta {
    font-size: 10px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: .1em
}

.property-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: 25px;
    border-top: 1px solid #e0ddd6;
    padding-top: 15px
}

.property-price {
    font-family: Manrope;
    font-size: 21px;
    font-weight: 500
}

.property-link {
    font-size: 10px;
    font-weight: 600
}

.property-section .property-card {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1)
}

.property-section.is-visible .property-card {
    opacity: 1;
    transform: translateY(0)
}

.property-section.is-visible .property-card:nth-child(2) {
    transition-delay: .1s
}

.property-section.is-visible .property-card:nth-child(3) {
    transition-delay: .2s
}

@media(max-width:850px) {
    .property-grid {
        grid-template-columns: 1fr 1fr
    }

    .property-image {
        height: 300px
    }
}

@media(max-width:520px) {
    .property-head {
        display: block
    }

    .property-tabs {
        margin-top: 22px;
        gap: 20px
    }

    .property-grid {
        grid-template-columns: 1fr
    }

    .property-image {
        height: 360px
    }
}


.mobile-menu {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: default
}

@media(max-width:850px) {
    .mobile-menu {
        display: block
    }

    .mobile-menu-panel {
        position: fixed;
        z-index: 100;
        top: 0;
        right: 0;
        width: min(82vw, 340px);
        height: 100vh;
        background: #171918;
        color: #fff;
        padding: 90px 28px 30px;
        transform: translateX(105%);
        transition: transform .45s cubic-bezier(.22, 1, .36, 1);
        box-shadow: -20px 0 60px #0004
    }

    .mobile-menu-panel.open {
        transform: translateX(0)
    }

    .mobile-menu-panel a {
        display: block;
        padding: 17px 0;
        border-bottom: 1px solid #ffffff1f;
        font-family: Manrope;
        font-size: 23px
    }

    .mobile-menu-close {
        position: absolute;
        top: 25px;
        right: 25px;
        border: 0;
        background: none;
        color: #fff;
        font-size: 24px;
        cursor: default
    }
}


/* FINAL MOBILE-SAFE LAYOUT */
*,
*::before,
*::after {
    max-width: 100%
}

html,
body {
    width: 100%;
    overflow-x: hidden
}

img {
    max-width: 100%
}

button,
input,
textarea {
    max-width: 100%
}

@media(max-width:850px) {
    .container {
        width: calc(100% - 32px);
        max-width: none;
    }

    .hero {
        width: 100%;
        min-height: 100svh;
        height: auto;
    }

    .hero-content {
        width: 100%;
        padding-top: 120px;
        padding-bottom: 48px;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;
        font-size: clamp(42px, 12vw, 64px);
        overflow-wrap: break-word;
    }

    .hero p {
        width: 100%;
        max-width: 330px
    }

    .section {
        width: 100%;
        padding: 72px 0
    }

    .h2 {
        width: 100%;
        max-width: 100%;
        font-size: clamp(36px, 10.5vw, 54px);
        overflow-wrap: break-word;
    }

    .grid2 {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .about img,
    .philimg {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        object-fit: cover;
    }

    .stats {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .stat {
        min-width: 0
    }

    .stat strong {
        font-size: clamp(24px, 7vw, 32px);
        white-space: nowrap;
    }

    .stat span {
        white-space: normal;
        line-height: 1.25;
    }

    /* Project depth carousel stays completely inside the viewport */
    .carousel {
        width: 100%;
        height: 430px;
        margin: 0;
        overflow: hidden;
    }

    .stage {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .card {
        width: min(245px, 62vw);
        height: min(325px, 82vw);
    }

    .carousel-label {
        max-width: calc(100% - 90px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .arrow {
        width: 38px;
        height: 38px;
        flex: none;
    }

    .dots {
        max-width: calc(100% - 110px);
        overflow: hidden
    }

    .workhead {
        display: block;
        width: 100%;
    }

    .servicegrid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .service {
        width: 100%;
        min-width: 0;
    }

    .property-section {
        width: 100%
    }

    .property-head {
        display: block;
        width: 100%;
    }

    .property-tabs {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .property-tabs::-webkit-scrollbar {
        display: none
    }

    .property-tab {
        flex: 0 0 auto
    }

    .property-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .property-card {
        width: 100%;
        min-width: 0;
    }

    .property-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1.25/1;
    }

    .property-info {
        width: 100%;
        min-width: 0;
    }

    .property-info h3 {
        overflow-wrap: break-word;
    }

    .property-bottom {
        gap: 12px;
    }

    .property-price,
    .property-link {
        min-width: 0;
    }

    .processrow {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .step {
        width: 100%;
        min-width: 0;
        border-right: 0 !important;
    }

    .contact .grid2 {
        width: 100%;
        gap:1rem;
        right: -1.5rem;
    }

    .form {
        width: 100% !important;
        min-width: 0;
    }

    .field input,
    .field textarea {
        width: 100%;
        min-width: 0;
    }

    .footgrid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width:420px) {
    .container {
        width: calc(100% - 24px)
    }

    .hero-content {
        padding-top: 105px;
        padding-bottom: 38px
    }

    .hero h1 {
        font-size: clamp(40px, 12.8vw, 54px)
    }

    .section {
        padding: 60px 0
    }

    .carousel {
        height: 405px
    }

    .card {
        width: min(220px, 60vw);
        height: min(300px, 82vw);
    }

    .arrow {
        width: 36px;
        height: 36px
    }

    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .stat strong {
        font-size: clamp(22px, 7.5vw, 28px)
    }

    .stat span {
        font-size: 7px
    }

    .property-image {
        aspect-ratio: 1.15/1
    }

    .footgrid {
        grid-template-columns: minmax(0, 1fr)
    }
}

@media(max-width:340px) {
    .container {
        width: calc(100% - 20px)
    }

    .hero h1 {
        font-size: 39px
    }

    .carousel {
        height: 385px
    }

    .card {
        width: 190px;
        height: 270px
    }

    .carousel-label {
        font-size: 7px
    }

    .stats strong {
        font-size: 21px
    }
}


.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 1.2s ease, transform 5.5s ease;
    will-change: opacity, transform
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1)
}

.hero-slideshow:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .58), transparent 72%), linear-gradient(0deg, rgba(0, 0, 0, .48), transparent 55%)
}

.hero:after {
    display: none
}

@media(prefers-reduced-motion:reduce) {
    .hero-slide {
        transition: none;
        transform: none
    }
}


.nav {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    height: 78px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.nav .links {
    display: flex;
    gap: 27px;
    font-size: 11px;
    align-items: center
}

.nav .links a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap
}

.mobile-menu,
.mobile-menu-panel {
    display: none
}

@media(max-width:850px) {
    .nav {
        height: 68px
    }

    .nav .links,
    .nav .navbtn {
        display: none
    }

    .mobile-menu {
        display: block;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 24px;
        line-height: 1;
        cursor: default
    }

    .mobile-menu-panel {
        display: block;
        position: fixed;
        z-index: 100;
        top: 0;
        right: 0;
        width: min(82vw, 340px);
        height: 100vh;
        background: #171918;
        color: #fff;
        padding: 90px 28px 30px;
        transform: translateX(105%);
        transition: transform .45s cubic-bezier(.22, 1, .36, 1);
        box-shadow: -20px 0 60px #0004
    }

    .mobile-menu-panel.open {
        transform: translateX(0)
    }

    .mobile-menu-panel a {
        display: block;
        padding: 17px 0;
        border-bottom: 1px solid #ffffff1f;
        font-family: Manrope;
        font-size: 23px;
        color: #fff;
        text-decoration: none
    }

    .mobile-menu-close {
        position: absolute;
        top: 25px;
        right: 25px;
        border: 0;
        background: none;
        color: #fff;
        font-size: 28px;
        cursor: default
    }
}