/* =========================================================
   MONOLITH — Luxury Real Estate v3
   Vivid palette: deep navy, warm gold, teal, coral
   Landing hero + About section + alive 3D universe
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
    --bg: #0b0f1a;
    --bg-landing: #070a12;
    --text: #e8ecf4;
    --text-dim: #4a5875;
    --text-bright: #ffffff;
    --accent: #a0b4d0;
    --accent-2: #5b79a8;
    --accent-3: #7b9cc4;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    cursor: none;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { appearance: none; font: inherit; border: none; background: none; cursor: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- LAYOUT ---------- */
#gl-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#scroll-spacer {
    height: 2000vh;
    position: relative;
    z-index: 0;
    pointer-events: none;
}

/* ---------- PRELOADER ---------- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.preloader__line {
    width: 0;
    height: 1px;
    background: var(--accent);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.preloader__counter {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-dim);
    position: absolute;
    bottom: 3rem;
    right: 3rem;
}
.preloader__brand {
    display: flex;
    gap: 0.08em;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    position: relative;
    z-index: 2;
}
.preloader__brand span {
    display: inline-block;
    transform: translateY(20px);
    opacity: 0;
}

/* ---------- LANDING HERO ---------- */
#landing-hero {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform, opacity;
}
.landing__bg-image {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1920&q=80') center center / cover no-repeat;
    transform: scale(1.05);
    transition: transform 12s ease-out;
}
#landing-hero.loaded .landing__bg-image {
    transform: scale(1);
}
.landing__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 18, 0.72);
}
.landing__content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.landing__title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 0.88;
}
.landing__title-line {
    display: block;
    font-size: clamp(5rem, 18vw, 16rem);
    letter-spacing: -0.04em;
    color: var(--text-bright);
    opacity: 0;
    transform: translateY(40px);
}
.landing__sub {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 1.5rem;
    opacity: 0;
}
.landing__scroll-line {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(160,180,208,0.5), transparent);
    z-index: 2;
    opacity: 0;
    transform-origin: top;
}

/* ---------- CURSOR ---------- */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    mix-blend-mode: difference;
}
.cursor__dot {
    width: 6px;
    height: 6px;
    background: var(--text-bright);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}
.cursor__circle {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), border-color 0.4s;
}
#cursor.hovering .cursor__circle {
    width: 64px;
    height: 64px;
    border-color: rgba(160, 180, 208, 0.5);
}

/* ---------- NAVIGATION ---------- */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    opacity: 0;
}
.nav__logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-bright);
}
.nav__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.06);
}
.nav__progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: width 0.15s linear;
}
.nav__menu-btn {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nav__menu-btn span {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--text-bright);
    transition: transform 0.5s var(--ease-out), opacity 0.5s;
    transform-origin: center;
}
.nav__menu-btn.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu-btn.active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- FULLSCREEN MENU ---------- */
#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 18, 0.97);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}
#menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.menu__inner {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
}
.menu__link {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 7.5vw, 6.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    text-transform: uppercase;
    display: block;
    transform: translateY(60px);
    opacity: 0;
    transition: color 0.3s, text-shadow 0.3s, transform 0.3s var(--ease-out);
}
.menu__link:hover {
    text-shadow: -3px 0 var(--accent-2), 3px 0 rgba(160,180,208,0.4);
    transform: translateX(15px) !important;
    color: var(--text-bright);
}
.menu__footer {
    margin-top: 3rem;
    display: flex;
    gap: 3rem;
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}

/* ---------- HERO OVERLAY ---------- */
#hero-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    will-change: opacity, transform;
}
.hero__title-wrap {
    text-align: center;
    mix-blend-mode: difference;
}
.hero__line {
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.hero__line .char {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.5rem, 16vw, 14rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--text-bright);
    display: inline-block;
    transform: translateY(110%);
    will-change: transform;
}
.hero__tagline {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.65rem, 1vw, 0.9rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: clamp(1rem, 3vh, 2rem);
    opacity: 0;
    transform: translateY(10px);
    mix-blend-mode: difference;
}
.hero__year {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: var(--text-dim);
    margin-top: 0.6rem;
    opacity: 0;
    mix-blend-mode: difference;
}
.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    mix-blend-mode: difference;
}
.hero__scroll span {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0;
}
.hero__scroll-line {
    width: 1px;
    height: 42px;
    background: var(--accent);
    transform-origin: top;
    transform: scaleY(0);
}

/* ---------- TEXT OVERLAYS (shared base) ---------- */
.text-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8vw;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: difference;
}
.text-overlay.active {
    pointer-events: all;
}

/* ---------- MANIFESTO ---------- */
.manifesto__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 3.5vw, 3.8rem);
    line-height: 1.3;
    color: var(--text);
    text-align: center;
    max-width: 850px;
}

/* ---------- REVEAL TEXT (word-by-word blur/fade) ---------- */
.reveal-text .word {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(15px);
    transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
    margin-right: 0.22em;
}
.reveal-text .word.visible {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

/* ---------- ABOUT OVERLAY ---------- */
#about-overlay {
    flex-direction: column;
    gap: 0;
}
.about__inner {
    text-align: center;
    max-width: 700px;
    padding: 0 2rem;
}
.about__label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0;
}
.about__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.2;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}
.about__text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    opacity: 0;
}
.about__highlights {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
}
.about__hl {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text);
    opacity: 0;
    transform: translateX(-15px);
}
.about__hl-icon {
    color: var(--accent);
    font-size: 0.45rem;
}

/* ---------- PROPERTY HUD ---------- */
#property-hud {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 2rem 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    mix-blend-mode: difference;
    backdrop-filter: blur(2px);
    background: linear-gradient(0deg, rgba(11,15,26,0.5) 0%, transparent 100%);
}
.hud__left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 0.15em;
}
.hud__divider {
    width: 20px;
    height: 1px;
    background: var(--accent);
}
.hud__center {
    text-align: center;
}
.hud__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-bright);
    margin-bottom: 0.3rem;
}
.hud__location {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 0.1em;
}
.hud__right {
    text-align: right;
}
.hud__price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--accent);
    margin-bottom: 0.15rem;
}
.hud__details {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin-bottom: 0.8rem;
}
.hud__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    pointer-events: all;
    cursor: none;
    position: relative;
}
.hud__cta::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out);
}
.hud__cta:hover::after { width: 100%; }
.hud__cta svg { transition: transform 0.4s var(--ease-out); }
.hud__cta:hover svg { transform: translate(3px, -3px); }

/* ---------- INTERSTITIALS ---------- */
.interstitial__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 4.5rem);
    line-height: 1.25;
    color: var(--text);
    text-align: center;
    max-width: 900px;
}
.interstitial__author {
    display: block;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-top: 1.2rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* ---------- STATS ---------- */
#stats-overlay {
    flex-direction: column;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 900px;
    width: 100%;
}
.stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}
.stat__number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--accent);
    line-height: 1;
}
.stat__suffix {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--accent);
}
.stat__label {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ---------- APPROACH ---------- */
#approach-overlay {
    flex-direction: column;
    gap: 2rem;
}
.approach__label {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
}
.approach__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1000px;
}
.approach__item {
    text-align: center;
    opacity: 0;
    transform: translateY(25px);
}
.approach__num {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.8rem;
}
.approach__item h4 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: var(--text-bright);
    margin-bottom: 0.6rem;
}
.approach__item p {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dim);
}

/* ---------- PHILOSOPHY ---------- */
.philosophy__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 4rem);
    line-height: 1.3;
    color: var(--text);
    text-align: center;
    max-width: 850px;
}

/* ---------- CONTACT ---------- */
#contact-overlay {
    flex-direction: column;
    gap: 0;
    padding: 0;
}
.contact__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 0 8vw;
}
.contact__label {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.contact__email {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.4rem, 5vw, 4.5rem);
    letter-spacing: -0.03em;
    color: var(--text);
    cursor: none;
    transition: text-shadow 0.35s, color 0.35s;
    text-align: center;
}
.contact__email:hover {
    text-shadow: -3px 0 var(--accent-2), 3px 0 rgba(160,180,208,0.4);
    color: var(--text-bright);
}
.contact__details {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 600px;
    width: 100%;
}
.contact__col {
    text-align: center;
}
.contact__col h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
}
.contact__col p {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.6;
}
.contact__social {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}
.contact__social a {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    cursor: none;
    transition: color 0.3s;
    position: relative;
}
.contact__social a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}
.contact__social a:hover { color: var(--accent); }
.contact__social a:hover::after { width: 100%; }

/* ---------- FOOTER ---------- */
.footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    border-top: 1px solid rgba(160,180,208,0.08);
}
.footer a {
    color: var(--accent);
    transition: opacity 0.3s;
    cursor: none;
}
.footer a:hover { opacity: 0.6; }

/* ---------- NOISE / GRAIN ---------- */
#noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-repeat: repeat;
    background-size: 128px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    #cursor { display: none; }
    body { cursor: auto; }
    a, button, .hud__cta, .contact__email, .contact__social a { cursor: auto; }

    #nav { padding: 1.2rem 1.5rem; }
    .hero__line .char { font-size: clamp(3rem, 18vw, 5rem); }
    .hero__tagline { font-size: 0.65rem; letter-spacing: 0.12em; }

    .landing__title-line { font-size: clamp(3.5rem, 20vw, 7rem); }
    .landing__sub { font-size: 0.65rem; letter-spacing: 0.2em; }

    .about__inner { padding: 0 1.5rem; }
    .about__title { font-size: clamp(1.5rem, 6vw, 2.5rem); }

    #property-hud {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 1.5rem 1.5rem;
    }
    .hud__right { text-align: left; }
    .hud__center { text-align: left; }
    .hud__name { font-size: 1.5rem; }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .approach__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact__details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .menu__link { font-size: clamp(2rem, 10vw, 3.5rem); }
    .menu__footer { flex-direction: column; gap: 0.5rem; }

    .contact__email { font-size: 1.3rem; }
    .contact__social { flex-direction: column; gap: 1rem; align-items: center; }

    .footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__line .char { font-size: 15vw; }
    .stat__number { font-size: 2.2rem; }
    .landing__title-line { font-size: 18vw; }
}

/* ---------- SELECTION ---------- */
::selection {
    background: rgba(160, 180, 208, 0.15);
    color: var(--text-bright);
}
