:root {
    --champagne: #cbb077;
    --ink: #171816;
    --paper: #f7f7f5;
    --line: #d6d1c7;
}

* { box-sizing: border-box; }

body {
    background: var(--paper);
    letter-spacing: -0.005em;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html { scroll-behavior: smooth; }
body > section { scroll-margin-top: 88px; }
h1, h2, h3 { text-wrap: balance; }
h2 { text-transform: uppercase; }
p { text-wrap: pretty; }
summary::-webkit-details-marker { display: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--champagne);
    outline-offset: 3px;
}

.site-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(23, 24, 22, 0.1);
    box-shadow: 0 12px 35px rgba(23, 24, 22, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brand-logo {
    filter: brightness(0) invert(1);
    transition: filter .35s ease;
}

.site-header.is-scrolled .brand-logo {
    filter: brightness(0) saturate(100%);
}

.nav-link {
    color: #fff;
    position: relative;
    letter-spacing: .04em;
    transition: color .25s ease;
}

.site-header.is-scrolled .nav-link { color: var(--ink); }

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -9px;
    height: 1px;
    background: var(--champagne);
    transition: right .3s ease;
}

.nav-link:hover::after { right: 0; }

.header-cta {
    background: #fff;
    color: var(--ink);
    border: 1px solid #fff;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
}

.header-cta:hover {
    background: transparent;
    color: #fff;
}

.site-header.is-scrolled .header-cta {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.site-header.is-scrolled .header-cta:hover {
    background: var(--champagne);
    border-color: var(--champagne);
}

.hero-section { min-height: 720px; }

.hero-media {
    background-position: center 42%;
    transform: scale(1.01);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(9, 11, 10, .96) 0%, rgba(9, 11, 10, .76) 44%, rgba(9, 11, 10, .22) 78%),
        linear-gradient(0deg, rgba(9, 11, 10, .42) 0%, transparent 42%);
}

.hero-copy-panel {
    position: relative;
    isolation: isolate;
}

.hero-copy-panel::before {
    content: "";
    position: absolute;
    inset: -34px -78px -34px -38px;
    z-index: -1;
    background: linear-gradient(90deg, rgba(6, 8, 7, .56), rgba(6, 8, 7, 0));
    pointer-events: none;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .9);
}

.hero-kicker::before {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--champagne);
}

.hero-title {
    text-transform: uppercase;
    text-shadow:
        0 4px 15px rgba(0, 0, 0, .72),
        0 18px 55px rgba(0, 0, 0, .5);
}

.hero-description {
    color: #fff;
    font-weight: 500;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .92);
}

.hero-meta-label {
    color: rgba(255, 255, 255, .88);
    font-size: 11px !important;
    font-weight: 600;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .72);
}

.hero-meta-value {
    font-weight: 600;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .9);
}

.hero-meta {
    border-top: 1px solid rgba(255, 255, 255, .34);
    border-bottom: 1px solid rgba(255, 255, 255, .34);
}

.hero-meta > div + div { border-left: 1px solid rgba(255, 255, 255, .22); }

.premium-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 600;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.premium-button--gold {
    background: var(--champagne);
    color: #fff;
    border: 1px solid var(--champagne);
}

.premium-button--gold:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

.premium-button--outline {
    color: #fff;
    border: 1px solid rgba(255,255,255,.7);
}

.premium-button--outline:hover {
    background: #fff;
    color: var(--ink);
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.scroll-cue::after {
    content: "";
    width: 1px;
    height: 38px;
    background: linear-gradient(var(--champagne) 50%, rgba(255,255,255,.25) 50%);
    background-size: 100% 200%;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { background-position: 0 100%; }
    100% { background-position: 0 -100%; }
}

.quick-facts {
    background: #fff;
    border-bottom: 1px solid rgba(23,24,22,.1);
}

.quick-fact {
    min-height: 132px;
    padding: 32px 26px;
    border-left: 1px solid rgba(23,24,22,.1);
}

.quick-fact:last-child { border-right: 1px solid rgba(23,24,22,.1); }

.quick-fact-value {
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    line-height: 1.05;
    font-weight: 500;
    color: var(--ink);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #8d713c;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 11px;
    font-weight: 600;
}

.section-kicker::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--champagne);
}

.section-kicker--light { color: var(--champagne); }

article {
    box-shadow: none !important;
    transition: transform .35s ease;
}

article:hover { transform: translateY(-5px); }
article img { transition: transform .7s cubic-bezier(.2,.65,.3,1); }
article:hover img { transform: scale(1.035); }

.gallery-item {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.gallery-item:focus-visible {
    outline-color: var(--champagne);
    outline-offset: 4px;
}

.gallery-item::after {
    content: "zoom_in";
    font-family: "Material Symbols Outlined";
    font-variation-settings: 'FILL' 0, 'wght' 300;
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    font-size: 21px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
    opacity: 1;
    transform: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 72px 88px 58px;
    background: rgba(9, 10, 9, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gallery-lightbox[hidden] { display: none; }

.gallery-lightbox__figure {
    margin: 0;
    max-width: min(1200px, 88vw);
    max-height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gallery-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .42);
}

.gallery-lightbox__meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    letter-spacing: .05em;
}

.gallery-lightbox__control {
    position: absolute;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .34);
    color: #fff;
    background: rgba(255, 255, 255, .04);
    transition: background-color .2s ease, color .2s ease;
}

.gallery-lightbox__control:hover {
    background: #fff;
    color: var(--ink);
}

.gallery-lightbox__close { top: 22px; right: 24px; }
.gallery-lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }

article.rounded-xl,
div.rounded-xl,
details.rounded-xl {
    border-radius: 2px !important;
}

a.rounded-full,
button.rounded-full {
    border-radius: 0 !important;
}

#amenities .grid.grid-cols-2 > div {
    min-height: 126px;
    background: transparent;
    box-shadow: none;
    border-width: 0 0 1px;
    border-color: rgba(23,24,22,.14);
}

#amenities .grid.grid-cols-2 > div:hover { border-color: var(--champagne); }
#amenities .material-symbols-outlined { font-size: 27px; }

.payment-panel {
    background:
        linear-gradient(90deg, rgba(23,24,22,.97), rgba(23,24,22,.86)),
        url('../../images/tilal-binghatti-exterior-3.webp') center/cover;
}

#location iframe { filter: grayscale(.18) contrast(.95); }

#faq details {
    background: transparent;
    border-width: 1px 0 0;
    border-color: rgba(23,24,22,.15);
    padding: 24px 0;
}

#faq details:last-child { border-bottom-width: 1px; }

#faq summary {
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 500;
}

.lead-form-intro {
    background:
        linear-gradient(rgba(18,19,18,.88), rgba(18,19,18,.9)),
        url('../../images/tilal-binghatti-exterior-5.webp') center/cover;
}

.developer-section {
    background:
        linear-gradient(rgba(16,17,15,.91), rgba(16,17,15,.93)),
        url('../../images/tilal-binghatti-interior-3.webp') center 58%/cover;
}

#lead-form input:not([type="checkbox"]),
#lead-form textarea {
    border-radius: 0;
    border-width: 0 0 1px;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

#lead-form input:not([type="checkbox"]):focus,
#lead-form textarea:focus {
    box-shadow: none;
}

.form-submit {
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 11px;
}

.form-spinner {
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: formSpinner .7s linear infinite;
}

@keyframes formSpinner {
    to { transform: rotate(360deg); }
}

.contact-rail {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translate(16px, -50%);
    z-index: 35;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 10px 32px rgba(23,24,22,.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

.contact-rail.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
}

.contact-rail a {
    width: 74px;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--ink);
    border-bottom: 1px solid rgba(23,24,22,.12);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 9px;
    text-align: center;
    transition: background-color .25s ease, color .25s ease;
}

.contact-rail a:last-child { border-bottom: 0; }
.contact-rail a:hover { background: var(--ink); color: #fff; }
.site-footer { background: #10110f; }
.site-footer .footer-logo { filter: brightness(0) invert(1); }

.reveal-section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.65,.3,1);
}

.reveal-section.is-visible {
    opacity: 1;
    transform: none;
}

.form-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.iti { width: 100%; }
.iti__tel-input { width: 100%; }
.iti__country-container { color: #1a1c1c; }
.iti__dropdown-content { z-index: 60; }
.iti__search-input { padding-left: 30px !important; }

@media (max-width: 767px) {
    .site-header nav { height: 72px; }
    .brand-logo { width: 118px; }
    .header-cta { padding: 10px 13px; font-size: 9px; }
    .hero-section { min-height: 680px; }
    .hero-title { font-size: 42px !important; line-height: .98 !important; }
    .hero-meta-value { font-size: 22px !important; }
    h2.text-headline-lg { font-size: 34px !important; line-height: 1.06 !important; }
    h3.text-headline-md { font-size: 23px !important; line-height: 1.12 !important; }
    .text-display-hero-mobile { font-size: 42px !important; line-height: 1 !important; }
    .quick-fact-value { font-size: 22px; }
    #amenities .text-5xl { font-size: 38px !important; }
    #location .text-4xl { font-size: 31px !important; }
    .hero-media { background-position: 61% center; }
    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(9,11,10,.92), rgba(9,11,10,.42)),
            linear-gradient(0deg, rgba(9,11,10,.72), transparent 58%);
    }
    .hero-copy-panel::before {
        inset: -25px -24px -25px -24px;
        background: linear-gradient(90deg, rgba(6,8,7,.48), rgba(6,8,7,.08));
    }
    .hero-meta > div + div { border-left: 0; }
    .hero-meta > div:nth-child(even) { border-left: 1px solid rgba(255,255,255,.22); }
    .quick-fact { min-height: 112px; padding: 25px 18px; }
    .quick-fact:nth-child(odd) { border-left: 0; }
    .quick-fact:last-child { border-right: 0; }
    .contact-rail { display: none; }
    .scroll-cue { display: none; }
    .gallery-item::after {
        opacity: 1;
        transform: none;
        right: 12px;
        bottom: 12px;
        width: 38px;
        height: 38px;
    }
    .gallery-lightbox { padding: 68px 16px 86px; }
    .gallery-lightbox__figure {
        max-width: 100%;
        max-height: calc(100vh - 154px);
    }
    .gallery-lightbox__image { max-height: calc(100vh - 210px); }
    .gallery-lightbox__meta { font-size: 11px; }
    .gallery-lightbox__close { top: 14px; right: 14px; }
    .gallery-lightbox__prev {
        left: calc(50% - 58px);
        top: auto;
        bottom: 18px;
        transform: none;
    }
    .gallery-lightbox__next {
        right: calc(50% - 58px);
        top: auto;
        bottom: 18px;
        transform: none;
    }
    .py-section-gap {
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal-section {
        opacity: 1;
        transform: none;
    }
}
