:root {
    --page-bg: #ededed;
    --card-bg: #ffffff;
    --media-bg: #f3f3f3;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
    --card-radius: 34px;
    --media-radius: 24px;
    --shell-width: 440px;
    --nav-height: 58px;
    --stack-gap: 12px;
}

/* =========================================
   GLOBAL
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    color: #111;
}

.hero__poster,
.hero__video,
.apartment-card__media img,
.contact-section__media img,
.gallery-item img,
.tour-wrap iframe,
.hero-video,
.hero-overlay-png,
model-viewer {
    display: block;
    width: 100%;
}

/* =========================================
   HOME PAGE
========================================= */

.site-body.home-page {
    background: #f5f1ea;
    color: #171717;
}

.home-main {
    width: 100%;
    overflow-x: clip;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    background: linear-gradient(180deg, rgba(12,12,12,0.30) 0%, rgba(12,12,12,0.00) 100%);
}

.site-header__inner {
    position: relative;
    width: min(1500px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-header__brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-decoration: none;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.site-header__nav {
    display: flex;
    margin-left: auto;
    gap: 22px;
}

    .site-header__nav a {
        color: #fff;
        text-decoration: none;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    background: #cfc7bb;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__poster,
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__poster {
    z-index: 0;
}

.hero__video {
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.08) 0%, rgba(8, 8, 8, 0.52) 100%);
}

.hero__content {
    position: relative;
    z-index: 45;
    width: min(1500px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 118px 0 54px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.hero__intro {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 182px;
}

.hero__icon {
    width: 100%;
    height: auto;
    display: block;
}

.hero__eyebrow,
.section-kicker,
.apartment-card__eyebrow,
.urban-copy__eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero__title {
    margin: 0;
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(32px, 4.2vw, 62px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero__title b {
    color: rgb(241, 191, 1);
}

.hero__intro .hero__eyebrow {
    width: 100%;
    margin: 0;
    display: block;
    text-align: justify;
    text-align-last: justify;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.14em;
}

.hero__intro .hero__eyebrow::after {
    content: "";
    display: inline-block;
    width: 100%;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn--light {
    background: #ffffff;
    color: #111111;
}

.btn--ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: transparent;
}

.btn--dark {
    background: #111111;
    color: #ffffff;
}

.project-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: #efe8dd;
}

.project-band__item {
    padding: 18px 20px;
    border-right: 1px solid rgba(0,0,0,0.08);
}

    .project-band__item:last-child {
        border-right: 0;
    }

.project-band__label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.project-band__item strong {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.section {
    width: min(1500px, calc(100% - 32px));
    margin: 0 auto;
    padding: 84px 0 0;
}

.section-heading {
    margin-bottom: 28px;
}

    .section-heading h2 {
        margin: 0;
        max-width: 12ch;
        font-family: "Times New Roman", Times, serif;
        font-size: clamp(38px, 3.4vw, 64px);
        font-weight: 500;
        line-height: 0.96;
        letter-spacing: -0.04em;
    }

.section-heading--tight h2 {
    max-width: 14ch;
}

.section-heading--split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.section-note {
    max-width: 320px;
    margin: 0;
    color: #5f5f5f;
    font-size: 15px;
    line-height: 1.7;
}

.intro-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.intro-copy--single {
    grid-template-columns: minmax(0, 860px);
}

.intro-copy p {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    color: #3f3f3f;
}

/* =========================================
   INTRO EDITORIALE
========================================= */

.intro-editorial {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 88px 32px 94px;
    background: #d9cec2;
    overflow: hidden;
}

.intro-editorial__inner {
    width: min(980px, 100%);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.intro-editorial__ornament {
    width: 62px;
    margin: 0 auto 18px;
    opacity: 0.42;
    position: relative;
    z-index: 2;
}

    .intro-editorial__ornament img {
        display: block;
        width: 100%;
        height: auto;
    }

.intro-editorial__eyebrow {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(70, 52, 47, 0.70);
}

.intro-editorial__title {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(42px, 4.4vw, 68px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    color: #4a3632;
}

.intro-editorial__text {
    width: min(860px, 100%);
    margin: 18px auto 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: rgba(88, 69, 64, 0.82);
}

.intro-editorial__mark-right {
    position: absolute;
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
    width: min(34vw, 520px);
    opacity: 0.14;
    pointer-events: none;
}

    .intro-editorial__mark-right img {
        display: block;
        width: 100%;
        height: auto;
    }

/* =========================================
   URBAN
========================================= */

.section--urban {
    padding-top: 84px;
    margin-bottom: 64px;
}

.urban-heading {
    margin-bottom: 28px;
}

.urban-heading h2 {
        margin: 0;
        font-family: "Times New Roman", Times, serif;
        font-size: clamp(34px, 3.6vw, 66px);
        font-weight: 400;
        line-height: 0.9;
        letter-spacing: -0.045em;
        white-space: nowrap;
        color: #4a3632;
    }

.urban-heading__note {
    width: min(620px, 100%);
    margin: 18px 0 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: rgba(88, 69, 64, 0.82);
    text-align: left;
}

.urban-layout {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
}

.urban-viewer-wrap {
    width: 100%;
}

.urban-viewer {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #d8d2c8;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}

.urban-copy {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    /*  row-gap: 24px; */
    height: 520px; /* stessa altezza del viewer */
    min-height: 520px;
    min-width: 0;
}

.urban-copy__top {
    min-width: 0;
}

.urban-copy__eyebrow {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.urban-copy__top h3 {
    margin: 0 0 14px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(23px, 3.5vw, 45px);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.urban-copy__top p:last-child {
    margin: 0;
    max-width: 980px;
    color: #4d4d4d;
    font-size: 17px;
    line-height: 1.65;
}

.urban-copy__image {
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    background: #d8d2c8;
    position: relative;
}

    .urban-copy__image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
/* viewer message fallback */
.urban-viewer-message {
    letter-spacing: 0.01em;
}

.context-map {
    width: 100%;
    height: 100%;
}

.context-carousel {
    position: relative;
    width: 100vw;
    height: min(100vh, 840px);
    min-height: 560px;
    margin: 64px 0 0 calc(50% - 50vw);
    overflow: hidden;
    background: #d8d2c8;
}

.context-carousel__track,
.context-carousel__image {
    width: 100%;
    height: 100%;
}

.context-carousel__track {
    position: relative;
}

.context-carousel__image {
    position: absolute;
    inset: 0;
    display: block;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.context-carousel__image.is-active {
    opacity: 1;
}

.context-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    appearance: none;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 56px;
    line-height: 1;
    padding: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.context-carousel__nav--prev {
    left: 24px;
}

.context-carousel__nav--next {
    right: 24px;
}

.context-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 2;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.context-carousel__dot {
    width: 34px;
    height: 3px;
    padding: 0;
    appearance: none;
    border: 0;
    background: rgba(255,255,255,0.46);
    cursor: pointer;
}

.context-carousel__dot.is-active {
    background: #ffffff;
}

@media (max-width: 1200px) {
    .urban-heading {
        grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
        column-gap: 34px;
    }

    .urban-layout {
        grid-template-columns: 440px minmax(0, 1fr);
        column-gap: 24px;
    }

    .urban-copy {
        min-height: 440px;
        row-gap: 20px;
    }
}

@media (max-width: 980px) {
    .urban-heading {
        grid-template-columns: 1fr;
        row-gap: 16px;
        margin-bottom: 22px;
    }

    .urban-heading__note {
        justify-self: start;
        max-width: 520px;
        padding-top: 0;
    }

    .urban-layout {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .urban-viewer {
        max-width: 520px;
    }

    .urban-copy {
        min-height: auto;
        grid-template-rows: auto auto;
        row-gap: 20px;
    }

    .urban-copy__image {
        height: 360px;
    }
}

@media (max-width: 760px) {
    .section--urban {
        padding-top: 52px;
    }

    .urban-heading h2 {
        font-size: clamp(34px, 10vw, 50px);
        line-height: 0.94;
    }

    .urban-heading__note {
        line-height: 1.28;
    }

    .urban-copy__top h3 {
        font-size: clamp(34px, 9vw, 46px);
    }

    .urban-copy__top p:last-child {
        font-size: 16px;
        line-height: 1.6;
    }

    .urban-copy__image {
        height: 280px;
    }

    .context-carousel {
        height: 78vh;
        min-height: 420px;
        margin-top: 40px;
    }

    .context-carousel__nav {
        font-size: 42px;
    }

    .context-carousel__nav--prev {
        left: 14px;
    }

    .context-carousel__nav--next {
        right: 14px;
    }

    .context-carousel__dots {
        bottom: 18px;
    }
}

/* =========================================
   APARTMENTS
========================================= */

.section--apartments .section-heading,
.section--apartments .apartment-grid {
    width: min(1500px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.section--apartments {
    width: 100%;
    margin: 0;
    padding: 84px 32px 72px;
    background: #d9cec2;
}

.apartment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.section--apartments .section-heading--split {
    display: block;
}

.apartments-heading__content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: end;
}

.apartments-heading__content .section-kicker,
.apartments-heading__title {
    grid-column: 1;
}

.apartments-heading__title {
    width: 100%;
    max-width: none;
    text-align: left;
}

.apartments-heading__text {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
    align-self: end;
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: rgba(88, 69, 64, 0.82);
}

.apartment-card {
    display: flex;
    flex-direction: column-reverse;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.apartment-card__eyebrow {
    font-size: 18px;
    line-height: 1.2;
}

.apartment-card__subeyebrow {
    margin: 0;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 200;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

    .apartment-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 36px rgba(0,0,0,0.08);
    }

.apartment-card__media {
    aspect-ratio: 4 / 5;
    background: #F5F6F6;
    overflow: hidden;
}

    .apartment-card__media img {
        width: 100%;
        height: 100%;
        object-fit: contain; 
    }

.apartment-card__placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #666;
    font-size: 14px;
}

.apartment-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    background: #000000;
    color: #ffffff;
}

.apartment-card__body h3,
.apartment-card__body .apartment-card__eyebrow,
.apartment-card__body .apartment-card__link {
    color: #ffffff;
}

.apartment-card__body .apartment-card__link svg {
    color: #ffffff;
}

    .apartment-card__body h3 {
        margin: 0;
        font-size: 30px;
        line-height: 1;
        letter-spacing: -0.035em;
    }

.apartment-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 15px;
    color: #616161;
}

    .apartment-card__meta strong {
        color: #111;
    }

.apartment-card__link,
.apartments-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.apartment-card__link {
    align-self: center;
    margin-top: 18px;
}

.apartment-card__link:hover,
.apartments-more-link:hover {
    transform: translateY(-1px);
}

.apartment-card__link svg,
.apartments-more-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
/* =========================================
   TUTTI GLI APPARTAMENTI
========================================= */

.apartments-more-link {
    display: flex;
    width: max-content;
    max-width: 100%;
    min-height: 64px;
    margin: 40px auto 0 auto;
    padding: 0 34px;
    border-color: #111111;
    background: #111111;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-align: center;
}

.section--all-apartments {
    padding-top: 132px;
    padding-bottom: 72px;
}

    .section--all-apartments .section-heading,
    .section--all-apartments .apartment-grid {
        width: min(1500px, calc(100% - 32px));
        margin-left: auto;
        margin-right: auto;
    }

.apartments-group + .apartments-group {
    margin-top: 56px;
}

.apartments-group--bilocali {
    position: relative;
    padding: 56px 0;
}

.apartments-group--bilocali::before {
    content: "";
    position: absolute;
    inset: 0 50%;
    z-index: 0;
    width: 100vw;
    margin-left: -50vw;
    background: #d9cec2;
}

.apartments-group--bilocali > * {
    position: relative;
    z-index: 1;
}

.apartments-group__title {
    margin: 0 0 22px;
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-size: clamp(30px, 2.4vw, 44px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #111111;
}

.section--all-apartments .apartment-card__body {
    align-items: flex-start;
    padding: 18px;
}

.section--all-apartments .apartment-card__body h3 {
    margin: 0;
    align-self: flex-start;
    font-size: 25px;
    text-align: left;
}

.section--all-apartments .apartment-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.section--all-apartments .apartment-card__media {
    aspect-ratio: 4 / 4.6;
}

.section--all-apartments .apartment-card__link {
    min-height: 46px;
    padding: 0 18px;
    font-size: 12px;
}

@media (max-width: 760px) {
    .apartments-group + .apartments-group {
        margin-top: 40px;
    }

    .apartments-group--bilocali {
        padding: 40px 0;
    }

    .apartments-group__title {
        margin-bottom: 18px;
        font-size: clamp(26px, 8vw, 36px);
    }
}

@media (max-width: 1200px) {
    .section--all-apartments .apartment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .section--all-apartments .apartment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .section--all-apartments {
        padding-top: 104px;
        padding-bottom: 56px;
    }

        .section--all-apartments .section-heading,
        .section--all-apartments .apartment-grid {
            width: calc(100% - 40px);
            margin-left: auto;
            margin-right: auto;
        }

    .section--all-apartments .apartment-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   GALLERY RENDERS
========================================= */

.section--gallery {
    width: 100%;
    margin: 0;
    padding: 84px 32px 72px;
    background: #f5f1ea;
}

    .section--gallery .section-heading,
    .section--gallery .gallery-render-grid {
        width: min(1500px, calc(100% - 32px));
        margin-left: auto;
        margin-right: auto;
    }

.gallery-render-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 28px;
}

.gallery-render-copy {
    grid-column: 1;
    display: flex;
    align-items: center;
    min-height: 100%;
}

.gallery-render-copy .intro-editorial__text {
    width: 100%;
    margin: 0;
}

.gallery-render-carousel {
    position: relative;
    grid-column: 2;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    background: #ffffff;
}

.gallery-render-carousel__stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 640px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.gallery-render-carousel__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-render-carousel__image.is-active {
    opacity: 1;
}

.gallery-render-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    appearance: none;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 56px;
    line-height: 1;
    padding: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.gallery-render-carousel__nav--prev {
    left: 20px;
}

.gallery-render-carousel__nav--next {
    right: 20px;
}

.gallery-render-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 2;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.gallery-render-carousel__dot {
    width: 34px;
    height: 3px;
    padding: 0;
    appearance: none;
    border: 0;
    background: rgba(255,255,255,0.46);
    cursor: pointer;
}

.gallery-render-carousel__dot.is-active {
    background: #ffffff;
}

/* =========================================
   RENDER LIGHTBOX
========================================= */

.render-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(12, 12, 12, 0.88);
}

    .render-lightbox.is-open {
        display: flex;
    }

.render-lightbox__content {
    max-width: min(72vw, 720px);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .render-lightbox__content img {
        display: block;
        max-width: 100%;
        max-height: 88vh;
        width: auto;
        height: auto;
        object-fit: contain;
        box-shadow: 0 18px 48px rgba(0,0,0,0.28);
    }

.render-lightbox__close,
.render-lightbox__nav {
    appearance: none;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.render-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.render-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    font-size: 36px;
    line-height: 1;
}

.render-lightbox__nav--prev {
    left: 20px;
}

.render-lightbox__nav--next {
    right: 20px;
}

.render-lightbox__close:hover,
.render-lightbox__nav:hover {
    background: rgba(255,255,255,0.18);
}

/* =========================================
   GALLERY RESPONSIVE
========================================= */

@media (max-width: 1100px) {
    .gallery-render-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .gallery-render-copy {
        grid-column: 1 / -1;
    }

    .gallery-render-carousel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .section--gallery {
        width: 100%;
        margin: 0;
        padding: 52px 0 56px;
        background: #f5f1ea;
    }

        .section--gallery .section-heading,
        .section--gallery .gallery-render-grid {
            width: calc(100% - 40px);
            margin-left: auto;
            margin-right: auto;
        }

    .gallery-render-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-render-copy {
        grid-column: 1;
    }

    .gallery-render-carousel {
        grid-column: 1;
    }

    .gallery-render-carousel__stage {
        min-height: 500px;
    }

    .gallery-render-carousel__nav {
        font-size: 42px;
    }

    .gallery-render-carousel__nav--prev {
        left: 10px;
    }

    .gallery-render-carousel__nav--next {
        right: 10px;
    }

    .render-lightbox {
        padding: 20px;
    }

    .render-lightbox__content {
        max-width: 100%;
    }

    .render-lightbox__close {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
        font-size: 26px;
    }

    .render-lightbox__nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .render-lightbox__nav--prev {
        left: 10px;
    }

    .render-lightbox__nav--next {
        right: 10px;
    }
}

/* =========================================
   CONTACT
========================================= */

.contact-section {
    width: min(1500px, calc(100% - 32px));
    margin: 0 auto;
    padding: 84px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 28px;
    align-items: stretch;
    position: relative;
}

    .contact-section::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 100vw;
        transform: translateX(-50%);
        background: #d9cec2;
        z-index: -1;
    }

.contact-section__media {
    min-height: 520px;
    overflow: hidden;
    background: #d8d2c8;
}

    .contact-section__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.contact-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0;
}

    .contact-section__content h2 {
        margin: 0 0 12px;
        font-family: "Times New Roman", Times, serif;
        font-size: clamp(40px, 3vw, 62px);
        font-weight: 500;
        line-height: 0.96;
        letter-spacing: -0.04em;
    }

    .contact-section__content p {
        margin: 0 0 20px;
        color: #4d4d4d;
        line-height: 1.8;
    }

.contact-list {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

    .contact-list a {
        color: #111;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
    }

/* =========================================
   SINGLE PAGES
========================================= */

.page {
    min-height: 100vh;
    padding: 22px 12px 36px;
}

.app-card {
    width: min(100%, var(--shell-width));
    margin: 0 auto;
    padding: 12px;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
}

.block + .block {
    margin-top: var(--stack-gap);
}

.section-nav {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    gap: 6px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto 12px;
    padding: 8px 10px;
    background: #1f1f1f;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

    .section-nav a {
        color: #ffffff;
        text-decoration: none;
        font-size: 17px;
        font-weight: 700;
        line-height: 1;
        padding: 7px 8px;
        border-radius: 12px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        transition: background 0.2s ease, color 0.2s ease;
    }

        .section-nav a:hover,
        .section-nav a.is-active {
            background: #ffffff;
            color: #000000;
        }

.media-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--media-radius);
    background: var(--media-bg);
}

.scroll-target {
    scroll-margin-top: calc(var(--nav-height) + 18px);
}

.hero-media {
    aspect-ratio: 9 / 16;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.hero-overlay-png {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    pointer-events: none;
}

.gallery-column {
    display: grid;
    gap: var(--stack-gap);
}

.gallery-item {
    aspect-ratio: 9 / 16;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: #ddd;
    }

.viewer-wrap {
    min-height: 520px;
    aspect-ratio: 9 / 16;
}

.three-viewer {
    position: relative;
    overflow: hidden;
    border-radius: var(--media-radius);
    background: #f3f3f3;
    aspect-ratio: 9 / 16;
}

#three-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.tour-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--media-radius);
    background: #000;
    aspect-ratio: 9 / 16;
}

    .tour-wrap iframe {
        width: 100%;
        height: 100%;
        border: 0;
        background: #000;
    }

.tour-provisional-page {
    margin: 0;
    background: #000;
}

.tour-provisional {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.tour-provisional__frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.tour-provisional--empty {
    display: grid;
    place-items: center;
    color: #ffffff;
    font-family: "Inter", Arial, Helvetica, sans-serif;
}

.tour-home-btn {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 12;
    min-width: 188px;
    justify-content: center;
    text-align: center;
}

.tour-fullscreen-btn {
    display: inline-flex;
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 10;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.78);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

    .tour-fullscreen-btn:hover {
        background: #ffffff;
        color: #000000;
    }

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1200px) {
    .urban-heading {
        grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
        column-gap: 34px;
    }

    .urban-layout {
        grid-template-columns: 440px minmax(0, 1fr);
        column-gap: 24px;
    }

    .urban-copy {
        height: 440px;
        min-height: 440px;
        row-gap: 20px;
    }
}

@media (max-width: 1100px) {
    .urban-layout,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .apartments-heading__content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .apartments-heading__text {
        grid-column: 2;
    }

    .urban-copy {
        max-width: 760px;
        height: auto;
        min-height: auto;
        grid-template-rows: auto auto;
    }

    .urban-copy__image {
        min-height: 260px;
        height: 360px;
    }

    .apartment-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .site-header__nav {
        gap: 16px;
    }
}

@media (max-width: 980px) {
    .urban-heading {
        grid-template-columns: 1fr;
        row-gap: 16px;
        margin-bottom: 22px;
    }

        .urban-heading h2 {
            white-space: normal;
        }

    .urban-heading__note {
        white-space: normal;
        justify-self: start;
        max-width: 520px;
        padding-top: 0;
    }

    .urban-layout {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .urban-viewer {
        max-width: 520px;
    }

    .urban-copy {
        min-height: auto;
        grid-template-rows: auto auto;
        row-gap: 20px;
        max-width: none;
    }

    .urban-copy__top h3 {
        white-space: normal;
    }

    .urban-copy__image {
        height: 360px;
    }
}

@media (max-width: 760px) {
    .site-header__inner,
    .hero__content,
    .section,
    .contact-section {
        width: min(100% - 20px, 100%);
    }

    .site-header__inner {
        min-height: 68px;
        justify-content: flex-end;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__brand {
        left: auto;
        right: 0;
        transform: none;
    }

    .hero__content {
        padding-bottom: 28px;
        min-height: 100vh;
        padding-top: 100px;
    }

    .hero__intro {
        top: 0;
        width: 150px;
    }

    .project-band {
        grid-template-columns: 1fr;
    }

    .project-band__item {
        border-right: 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

        .project-band__item:last-child {
            border-bottom: 0;
        }

    .section {
        padding-top: 52px;
    }

    .section-heading--split {
        flex-direction: column;
        align-items: flex-start;
    }

    .intro-editorial {
        padding: 60px 20px 68px;
    }

    .intro-editorial__ornament {
        width: 50px;
        margin-bottom: 14px;
    }

    .intro-editorial__title {
        font-size: clamp(34px, 10vw, 50px);
        line-height: 1.12;
    }

    .intro-editorial__text {
        margin-top: 14px;
        font-size: 22px;
        line-height: 1.34;
    }

    .intro-editorial__mark-right {
        right: -110px;
        width: 68vw;
        opacity: 0.10;
    }

    /* URBAN MOBILE */
    .section--urban {
        padding-top: 52px;
        margin-bottom: 40px;
    }

    .urban-heading {
        grid-template-columns: 1fr;
        row-gap: 12px;
        margin-bottom: 18px;
    }

        .urban-heading h2 {
            white-space: normal;
            font-size: clamp(34px, 10vw, 50px);
            line-height: 0.96;
        }

    .urban-heading__note {
        white-space: normal;
        justify-self: start;
        max-width: none;
        padding-top: 0;
        line-height: 1.28;
    }

    .urban-layout {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .urban-viewer {
        width: 100%;
        max-width: none;
    }

    .urban-copy {
        height: auto;
        min-height: auto;
        grid-template-rows: auto auto;
        row-gap: 18px;
    }

    .urban-copy__top h3 {
        white-space: normal;
        font-size: clamp(28px, 8vw, 40px);
        line-height: 0.98;
    }

    .urban-copy__top p:last-child {
        font-size: 16px;
        line-height: 1.6;
    }

    .urban-copy__image {
        height: 280px;
    }

    /* APARTMENTS MOBILE */
    .section--apartments {
        width: 100%;
        margin: 0;
        padding: 52px 0 56px;
        background: #d9cec2;
    }

        .section--apartments .section-heading,
        .section--apartments .apartment-grid {
            width: calc(100% - 40px);
            margin-left: auto;
            margin-right: auto;
        }

    .apartment-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .apartments-heading__content {
        grid-template-columns: 1fr;
    }

    .apartments-heading__content .section-kicker,
    .apartments-heading__title,
    .apartments-heading__text {
        grid-column: 1;
    }

    .apartments-heading__text {
        grid-row: auto;
        margin-top: 14px;
        font-size: 22px;
        line-height: 1.34;
    }

    .apartment-card {
        width: 100%;
    }

    .apartment-card__media {
        aspect-ratio: 4 / 5;
    }

        .apartment-card__media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
        }

    .apartment-card__body {
        padding: 18px;
        gap: 14px;
    }

        .apartment-card__body h3 {
            font-size: 24px;
        }

    .apartment-card__link {
        font-size: 15px;
    }

    /* CONTACT MOBILE */
    .contact-section {
        width: calc(100% - 40px);
        margin: 40px auto 0;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-section__media {
        min-height: 360px;
    }

    .section-nav {
        width: 100%;
        gap: 4px;
        padding: 7px 8px;
    }

        .section-nav a {
            font-size: 15px;
            padding: 6px 5px;
            letter-spacing: 0.02em;
        }
    /*GALLERY*/
    .section--gallery {
        width: 100%;
        margin: 0;
        padding: 52px 0 56px;
        background: #f5f1ea;
    }

        .section--gallery .section-heading,
        .section--gallery .gallery-render-grid {
            width: calc(100% - 40px);
            margin-left: auto;
            margin-right: auto;
        }

    .gallery-render-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-render-card img {
        aspect-ratio: 9 / 16;
    }

    .contact-section {
        width: calc(100% - 40px);
        margin: 0 auto;
        padding: 52px 0 56px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

        .contact-section::before {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            width: 100vw;
            transform: translateX(-50%);
            background: #d9cec2;
            z-index: -1;
        }
}

@media (min-width: 900px) {
    .page {
        padding-top: 34px;
        padding-bottom: 44px;
    }

    .app-card {
        width: 440px;
    }
}
