:root {
    --ink: #261b2e;
    --forest: #3a2745;
    --moss: #826c98;
    --clay: #d8675c;
    --sand: #eadde7;
    --paper: #f8f2f6;
    --white: #fffafd;
    --line: rgba(38, 27, 46, .16);
    --muted: #766b79;
    --font-ar: "Alexandria", sans-serif;
    --font-en: "DM Serif Display", serif;
    --shadow: 0 28px 70px rgba(38, 27, 46, .13);
    --radius: 2px;
    --shell: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-ar);
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 120px 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--forest); color: var(--white); }
.section--sand { background: var(--sand); }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    color: var(--white);
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.site-header.is-solid {
    color: var(--white);
    background: rgba(38, 27, 46, .95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.header-row {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 13px; width: fit-content; }
.brand-logo {
    width: 132px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    padding: 0;
    transform: translateY(-6px);
}
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    filter: none;
    mix-blend-mode: normal;
}
.site-header.is-solid .brand-logo,
.site-header.is-solid .brand-logo img {
    background: transparent;
    filter: none;
}
.brand-logo--footer {
    width: 168px;
    height: 52px;
    transform: none;
}
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 14px; font-weight: 600; }
.brand-copy small { font-size: 9px; opacity: .68; letter-spacing: .08em; }
.main-nav { display: flex; justify-content: center; gap: 28px; }
.main-nav a {
    position: relative;
    font-size: 12px;
    font-weight: 500;
    padding: 10px 0;
    opacity: .8;
}
.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 3px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .25s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { opacity: 1; }
.header-contact {
    display: inline-flex;
    gap: 24px;
    align-items: center;
    border: 1px solid currentColor;
    padding: 10px 16px;
    font-size: 11px;
}
.menu-button { display: none; }

.home-hero,
.project-hero {
    min-height: 100svh;
    position: relative;
    color: var(--white);
    isolation: isolate;
    overflow: hidden;
}
.home-hero__image,
.project-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.home-hero::after,
.project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(38, 27, 46, .92) 0%, rgba(38, 27, 46, .52) 46%, rgba(38, 27, 46, .12) 100%);
}
.home-hero__content {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 180px 0 86px;
}
.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
}
.hero-kicker::before,
.eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.home-hero h1 {
    max-width: 880px;
    margin: 24px 0;
    font-size: clamp(48px, 7.3vw, 112px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -.05em;
}
.home-hero h1 em {
    font-family: var(--font-en);
    font-weight: 400;
    color: #f0b4c8;
}
.home-hero__lead {
    max-width: 610px;
    margin: 0 0 38px;
    color: rgba(255, 255, 255, .76);
    font-size: 17px;
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    padding: 0 22px;
    border: 1px solid var(--ink);
    font-size: 12px;
    font-weight: 600;
    transition: .25s ease;
}
.button--light { color: var(--ink); background: var(--white); border-color: var(--white); }
.button--outline { color: var(--white); border-color: rgba(255,255,255,.55); }
.button--dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.14); }
.hero-note {
    position: absolute;
    left: 24px;
    bottom: 32px;
    writing-mode: vertical-rl;
    font: italic 16px var(--font-en);
    opacity: .6;
}

.intro-grid {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 110px;
    align-items: start;
}
.section-number {
    display: block;
    font: 18px var(--font-en);
    color: var(--clay);
    margin-bottom: 24px;
}
.display-title {
    margin: 0;
    font-size: clamp(36px, 5.3vw, 78px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -.045em;
}
.display-title em { font: italic 1em var(--font-en); color: var(--clay); }
.intro-copy { padding-top: 45px; }
.intro-copy p { max-width: 640px; margin: 0; font-size: 20px; line-height: 2; color: #4f5751; }
.fact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 52px;
    border-top: 1px solid var(--line);
}
.fact { padding: 24px 0; border-left: 1px solid var(--line); }
.fact:last-child { border-left: 0; }
.fact strong { display: block; font: 42px var(--font-en); }
.fact small { color: var(--muted); font-size: 11px; }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    margin-bottom: 54px;
}
.section-heading h2 {
    margin: 0;
    font-size: clamp(34px, 4.7vw, 68px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.04em;
}
.section-heading p { max-width: 390px; margin: 0; color: var(--muted); }
.section--dark .section-heading p { color: rgba(255,255,255,.6); }

.projects-list { display: grid; gap: 36px; }
.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    min-height: 520px;
    background: var(--white);
    border: 1px solid var(--line);
}
.project-card:nth-child(even) { grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr); }
.project-card:nth-child(even) .project-card__media { order: 2; }
.project-card__media { position: relative; overflow: hidden; min-height: 430px; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.project-card:hover .project-card__media img { transform: scale(1.035); }
.project-index {
    position: absolute;
    top: 22px;
    right: 22px;
    background: var(--white);
    color: var(--ink);
    padding: 9px 12px;
    font-size: 10px;
}
.project-card__body {
    padding: 58px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 5px solid var(--project-accent);
}
.project-card__body h3 {
    margin: 14px 0 0;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 500;
    line-height: 1.15;
}
.project-card__body h3 span { font-family: var(--font-en); }
.project-card__body p { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 18px; font-size: 12px; font-weight: 600; }
.text-link span { font-size: 21px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-5px); }

.vienta-feature {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    min-height: 720px;
}
.vienta-feature__image { position: relative; overflow: hidden; }
.vienta-feature__image img { width: 100%; height: 100%; object-fit: cover; }
.vienta-feature__content {
    background: #eadde7;
    padding: 90px 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.vienta-feature h2 { margin: 18px 0 0; font: clamp(68px, 9vw, 140px)/.9 var(--font-en); }
.vienta-feature h3 { margin: 8px 0 30px; font: italic clamp(24px, 3vw, 43px) var(--font-en); color: var(--moss); }
.vienta-feature p { max-width: 550px; color: #66566d; }

.gallery-mosaic {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    grid-template-rows: repeat(2, 330px);
    gap: 16px;
}
.gallery-mosaic button {
    padding: 0;
    border: 0;
    cursor: zoom-in;
    overflow: hidden;
    background: transparent;
}
.gallery-mosaic button:first-child { grid-row: span 2; }
.gallery-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-mosaic button:hover img { transform: scale(1.03); }

.project-hero__content {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 190px 0 78px;
}
.project-hero h1 {
    margin: 20px 0 12px;
    font: clamp(72px, 12vw, 190px)/.82 var(--font-en);
    letter-spacing: -.035em;
}
.project-hero h2 { margin: 0; font-size: clamp(22px, 3vw, 40px); font-weight: 400; }
.project-hero__meta {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.35);
}
.project-hero__meta span { font-size: 12px; color: rgba(255,255,255,.72); }
.project-hero__meta strong { display: block; color: var(--white); font-size: 15px; }

.project-story {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 100px;
}
.project-story__aside { position: sticky; top: 130px; align-self: start; }
.project-story__aside h2 { margin: 10px 0 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.25; font-weight: 500; }
.project-story__copy > p { margin-top: 0; font-size: 20px; line-height: 2; color: #4f5751; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 45px; border-top: 1px solid var(--line); }
.detail { padding: 24px 0; border-bottom: 1px solid var(--line); }
.detail:nth-child(odd) { border-left: 1px solid var(--line); padding-left: 24px; }
.detail:nth-child(even) { padding-right: 24px; }
.detail small { display: block; color: var(--muted); font-size: 10px; }
.detail strong { font-size: 14px; font-weight: 500; }

.amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.amenity {
    min-height: 170px;
    padding: 30px 24px;
    border-left: 1px solid rgba(255,255,255,.2);
    border-bottom: 1px solid rgba(255,255,255,.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.amenity:nth-child(4n) { border-left: 0; }
.amenity span { font: 24px var(--font-en); color: #efb1c5; }
.amenity strong { font-size: 13px; font-weight: 500; }

.units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.unit-card {
    min-height: 280px;
    padding: 34px;
    border: 1px solid var(--line);
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.unit-card span { font: 48px var(--font-en); color: var(--clay); }
.unit-card h3 { margin: 0; font-size: 22px; font-weight: 500; }

.vienta-page {
    background: #eee2eb;
    color: var(--ink);
}
.vienta-page .section-heading p { color: #66566d; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.price-card { padding: 38px 26px; border-left: 1px solid var(--line); }
.price-card:last-child { border-left: 0; }
.price-card small { color: var(--muted); }
.price-card h3 { margin: 10px 0 40px; font-size: 22px; }
.price-card strong { display: block; font-size: 20px; }
.price-card span { font-size: 12px; color: var(--muted); }
.payment-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    margin-top: 50px;
}
.payment-banner div { padding: 26px; }
.payment-banner div:first-child { border-left: 1px solid var(--line); }
.payment-banner small { display: block; color: var(--muted); }

.d2n-panel {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 80px;
    align-items: start;
}
.d2n-panel h2 { margin: 0; font: clamp(80px, 12vw, 170px)/.8 var(--font-en); color: #efb1c5; }
.d2n-panel__content h3 { margin-top: 0; font-size: clamp(28px, 4vw, 48px); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; padding: 0; margin: 36px 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.spec-list li { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-size: 12px; }
.d2n-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.d2n-price { padding: 22px; border: 1px solid rgba(255,255,255,.25); }
.d2n-price strong, .d2n-price span { display: block; }
.d2n-price span { color: rgba(255,255,255,.6); font-size: 12px; }

.site-footer { background: #1d1424; color: var(--white); padding: 78px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 80px; }
.footer-intro p { max-width: 450px; color: rgba(255,255,255,.55); margin-top: 28px; }
.brand--footer { margin-bottom: 10px; }
.site-footer h3 { margin: 0 0 20px; font-size: 12px; font-weight: 600; color: #efb1c5; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { color: rgba(255,255,255,.65); font-size: 12px; }
.site-footer li a:hover { color: var(--white); }
.footer-bottom {
    margin-top: 64px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,.42);
    font-size: 10px;
}
.fixed-contacts {
    position: fixed;
    z-index: 80;
    left: 16px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fixed-contact {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 10px 28px rgba(38, 27, 46, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fixed-contact svg { width: 24px; height: 24px; display: block; }
.fixed-contact--wa { background: #25d366; }
.fixed-contact--call { background: var(--clay); }
.fixed-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(38, 27, 46, .28);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(25, 16, 31, .97);
    display: grid;
    place-items: center;
    padding: 60px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 120px); max-width: min(1100px, 100%); }
.lightbox button {
    position: absolute;
    top: 20px;
    left: 24px;
    background: none;
    border: 0;
    color: var(--white);
    font-size: 42px;
    cursor: pointer;
}

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
    :root { --shell: min(100% - 32px, 900px); }
    .header-row { grid-template-columns: 1fr auto; min-height: 74px; }
    .header-contact { display: none; }
    .menu-button {
        display: grid;
        gap: 6px;
        width: 42px;
        height: 42px;
        place-content: center;
        color: inherit;
        background: none;
        border: 1px solid currentColor;
    }
    .menu-button span { width: 18px; height: 1px; background: currentColor; }
    .main-nav {
        position: fixed;
        inset: 78px 0 auto;
        display: none;
        padding: 24px;
        background: var(--paper);
        color: var(--ink);
        border-top: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .main-nav.is-open { display: flex; }
    .intro-grid, .project-story, .d2n-panel { grid-template-columns: 1fr; gap: 50px; }
    .project-story__aside { position: static; }
    .project-card, .project-card:nth-child(even) { grid-template-columns: 1fr; }
    .project-card:nth-child(even) .project-card__media { order: 0; }
    .vienta-feature { grid-template-columns: 1fr; }
    .vienta-feature__image { min-height: 540px; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .amenity:nth-child(2n) { border-left: 0; }
    .units-grid, .pricing-grid { grid-template-columns: 1fr; }
    .price-card { border-left: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
    :root { --shell: calc(100% - 24px); }
    .section { padding: 80px 0; }
    .home-hero,
    .project-hero {
        min-height: 68svh;
    }
    .home-hero__content,
    .project-hero__content {
        min-height: 68svh;
        justify-content: flex-end;
        padding: 96px 0 36px;
    }
    .home-hero h1 { font-size: 40px; margin: 16px 0; }
    .home-hero__lead { font-size: 15px; margin-bottom: 24px; line-height: 1.7; }
    .hero-note { display: none; }
    .section-heading { display: block; }
    .section-heading p { margin-top: 18px; }
    .intro-copy { padding-top: 0; }
    .intro-copy p { font-size: 17px; }
    .fact-row { grid-template-columns: 1fr; }
    .fact { border-left: 0; border-bottom: 1px solid var(--line); }
    .project-card__body { padding: 36px 26px; min-height: 400px; }
    .project-card__media { min-height: 330px; }
    .vienta-feature__image { min-height: 400px; }
    .vienta-feature__content { padding: 62px 24px; }
    .gallery-mosaic { grid-template-columns: 1fr; grid-template-rows: repeat(3, 270px); }
    .gallery-mosaic button:first-child { grid-row: auto; }
    .project-hero h1 { font-size: 56px; }
    .project-hero h2 { font-size: 20px; }
    .project-hero__meta { gap: 20px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; }
    .detail-grid, .amenities-grid, .spec-list, .d2n-prices { grid-template-columns: 1fr; }
    .detail:nth-child(odd) { border-left: 0; padding-left: 0; }
    .detail:nth-child(even) { padding-right: 0; }
    .amenity { border-left: 0; }
    .payment-banner { grid-template-columns: 1fr; }
    .payment-banner div:first-child { border-left: 0; border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { display: grid; gap: 8px; }
    .fixed-contacts { left: 12px; bottom: 14px; gap: 8px; }
    .fixed-contact { width: 48px; height: 48px; }
    .fixed-contact svg { width: 22px; height: 22px; }
    .lightbox { padding: 20px; }
}
