/* === QUIET LUXURY / ULTRA PREMIUM REDESIGN === */

:root {
    --black: #000000;
    --dark-grey: #111111;
    --med-grey: #444444;
    --light-grey: #cccccc;
    --white: #ffffff;
    
    --font-main: 'Inter', sans-serif;
    
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: #fff;
    animation: preloader-pulse 1.2s ease-in-out infinite;
}

@keyframes preloader-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* Base Reset & Smooth Scroll */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom cursor */
}

/* Only hide cursor on non-touch devices */
@media (pointer: coarse) {
    * { cursor: auto; }
}

html {
    overflow-x: hidden;
    background-color: var(--black);
    background-image: radial-gradient(ellipse at 50% 0%, #151515 0%, #000000 65%);
    color: var(--white);
    font-family: var(--font-main);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none; /* So it doesn't block clicks */
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--white);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), background-color 0.4s, border-color 0.4s;
}

body.cursor-hover .cursor-dot {
    opacity: 0;
}
body.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 1);
    mix-blend-mode: difference;
    border-color: transparent;
}

/* Typography base */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.container {
    padding: 0 5vw;
}

.container-narrow {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.container-medium {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* Navigation - Mix Blend Mode is key for premium feel */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 5vw;
    z-index: 100;
    mix-blend-mode: difference;
    pointer-events: none;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.menu-btn {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: none;
}

/* Fullscreen Menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--black);
    color: var(--white);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.8s var(--ease-out-expo);
}

.menu-overlay.active {
    transform: translateY(0);
}

.fullscreen-links {
    text-align: center;
}

.fullscreen-links li {
    margin: 1.5rem 0;
    overflow: hidden;
}

.fullscreen-links a {
    font-size: 4vw;
    font-weight: 800;
    display: block;
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-out-expo);
    transition-delay: 0s;
}

.menu-overlay.active .fullscreen-links a { transform: translateY(0); }
.menu-overlay.active .fullscreen-links li:nth-child(1) a { transition-delay: 0.2s; }
.menu-overlay.active .fullscreen-links li:nth-child(2) a { transition-delay: 0.3s; }
.menu-overlay.active .fullscreen-links li:nth-child(3) a { transition-delay: 0.4s; }
.menu-overlay.active .fullscreen-links li:nth-child(4) a { transition-delay: 0.5s; }
.menu-overlay.active .fullscreen-links li:nth-child(5) a { transition-delay: 0.6s; }

.menu-footer {
    position: absolute;
    bottom: 3rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5vw;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 400;
    color: var(--light-grey);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
    overflow: hidden;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.hero-content {
    padding: 0 5vw 5vh 5vw;
    width: 100%;
}

.hero-title {
    font-size: 10vw;
    line-height: 0.85;
    margin-bottom: 4vh;
}

.hero-title span { display: block; }

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
}

.hero-subtitle {
    font-weight: 300;
    font-size: 1rem;
    color: var(--light-grey);
    line-height: 1.5;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.scroll-text {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 10px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%; left: 0; width: 100%; height: 100%;
    background-color: var(--white);
    animation: scrollDrop 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes scrollDrop {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* Metrics Section */
.metrics {
    padding: 12vh 0;
    background-color: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4vw;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-size: 6vw;
    font-weight: 200;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    color: var(--white);
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--med-grey);
}

/* Philosophy */
.philosophy {
    padding: 20vh 0;
    background-color: transparent;
}

.sub-heading {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    color: var(--med-grey);
}

.split-text {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5vw;
}

.large-text {
    font-size: 3.5vw;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.large-text span { display: block; }

.body-text {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-grey);
    margin-top: 0.5rem;
}

/* Expertise / Services Section */
.expertise {
    padding: 15vh 0;
    background-color: rgba(255, 255, 255, 0.02);
}

.expertise-list {
    display: flex;
    flex-direction: column;
}

.expertise-item {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    transition: background-color 0.4s var(--ease-out-expo);
}

.expertise-item:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.expertise-item:hover {
    background-color: rgba(255,255,255,0.02);
}

.expertise-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.expertise-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-grey);
    font-weight: 300;
}

/* Properties Section */
.properties {
    padding: 20vh 0;
    background-color: transparent;
}

.props-list {
    margin-top: 8vh;
    display: flex;
    flex-direction: column;
    gap: 16vh;
}

.prop-row {
    display: flex;
    align-items: center;
    gap: 6vw;
}

.prop-row--reverse {
    flex-direction: row-reverse;
}

.prop-img-wrap {
    flex: 0 0 58%;
    aspect-ratio: 3/2;
    position: relative;
    overflow: hidden;
}

.prop-img-wrap img {
    height: 115%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: -7.5%;
    left: 0;
    transition: transform 0.7s var(--ease-out-expo);
}

.prop-row:hover .prop-img-wrap img {
    transform: scale(1.04) !important;
}

.prop-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prop-ref {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--light-grey);
    margin-bottom: 0.6rem;
}

.prop-location {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--light-grey);
    margin-bottom: 1.2rem;
}

.prop-name {
    font-size: clamp(2rem, 2.8vw, 3.2rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 1.8rem;
}

.prop-desc {
    font-size: 0.88rem;
    color: var(--light-grey);
    line-height: 1.8;
    max-width: 32ch;
    margin-bottom: 2.5rem;
}

.prop-price {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.5rem;
}

/* Decorative line under property name */
.prop-name::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: rgba(255,255,255,0.3);
    margin-top: 1.2rem;
}

/* Vertical section number */
section[data-num] {
    position: relative;
}

section[data-num]::before {
    content: attr(data-num);
    position: absolute;
    left: 2vw;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.18);
    pointer-events: none;
    user-select: none;
}

/* Quote Banner */
.quote-banner {
    padding: 16vh 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manifesto-quote {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 3.5vw;
    font-weight: 300;
    line-height: 1.3;
    max-width: 1200px;
    margin: 0 auto;
    letter-spacing: -0.02em;
}

/* Contact */
.contact {
    padding: 20vh 0;
    background-color: transparent;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
}

.contact-title {
    font-size: 6vw;
    line-height: 0.9;
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 300;
}

.hover-underline {
    position: relative;
    display: inline-block;
    width: max-content;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 0; height: 1px;
    background-color: var(--white);
    transition: width 0.4s var(--ease-out-expo);
}

.hover-underline:hover::after { width: 100%; }

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.input-group { position: relative; }

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    font-family: var(--font-main);
    font-weight: 300;
    padding: 0.5rem 0;
    outline: none;
}

.input-group input::placeholder { color: var(--med-grey); }

.input-line {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 1px;
    background-color: var(--med-grey);
    transform-origin: left;
}

.input-group input:focus ~ .input-line,
.input-group input:valid ~ .input-line {
    background-color: var(--white);
}

.btn-minimal {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 1rem;
    outline: none;
}

.btn-minimal .arrow {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-minimal:hover .arrow { transform: translateX(10px); }

.form-feedback {
    font-size: 0.85rem;
    color: var(--light-grey);
    height: 1rem;
}

/* Footer */
.footer-minimal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 3rem 0;
    background-color: var(--black);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--med-grey);
}

/* === ANIMATION UTILS === */
.reveal-text span {
    display: block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1s var(--ease-out-expo), opacity 1s;
}

.reveal-text.is-visible span {
    transform: translateY(0);
    opacity: 1;
}

.reveal-text.is-visible span:nth-child(1) { transition-delay: 0.1s; }
.reveal-text.is-visible span:nth-child(2) { transition-delay: 0.2s; }
.reveal-text.is-visible span:nth-child(3) { transition-delay: 0.3s; }
.reveal-text.is-visible span:nth-child(4) { transition-delay: 0.4s; }

.reveal-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-image {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.2s var(--ease-out-expo);
}

.reveal-image.is-visible { clip-path: inset(0 0 0 0); }

/* Responsive */
@media (max-width: 1024px) {
    .prop-row, .prop-row--reverse { flex-direction: column; gap: 3rem; }
    .prop-img-wrap { flex: 0 0 auto; width: 100%; aspect-ratio: 4/3; }
    .prop-desc { max-width: 100%; }

    .split-text { grid-template-columns: 1fr; }
    .large-text { font-size: 6vw; }

    .expertise-item { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
    .manifesto-quote { font-size: 5vw; }
}

@media (max-width: 768px) {
    /* === HERO === */
    /* 15vw = 56px на 375px — "ПРОСТРАНСТВО" не влезает (467px > 375px) */
    .hero-title { font-size: 10vw; }
    .hero-subtitle { font-size: 0.875rem; }

    /* === METRICS === */
    .metrics-grid { grid-template-columns: 1fr; gap: 3rem; }
    .metric-number { font-size: 4rem; }

    /* === PHILOSOPHY === */
    .large-text { font-size: 7.5vw; }

    /* === EXPERTISE === */
    .expertise-title { font-size: 1.1rem; }

    /* === PROPERTIES ===
       Фотки выходят на всю ширину экрана (full-bleed),
       breaking out of container padding (5vw с каждой стороны) */
    .prop-img-wrap {
        width: calc(100% + 10vw);
        margin-left: -5vw;
        aspect-ratio: 4/3;
    }
    .prop-name { font-size: clamp(1.6rem, 6vw, 2rem); }
    .props-list { gap: 10vh; }

    /* === QUOTE === */
    .manifesto-quote { font-size: 6.5vw; }
    .quote-banner { padding: 10vh 0; }

    /* === CONTACT === */
    .contact-wrapper { grid-template-columns: 1fr; gap: 15vw; }
    .contact-title { font-size: 12vw; }
    .contact-links { font-size: 1rem; }

    /* === MENU ===
       4vw = 15px на 375px — нечитабельно для fullscreen-меню */
    .fullscreen-links a { font-size: 10vw; }
    .fullscreen-links li { margin: 1rem 0; }

    /* === СЕКЦИОННЫЕ НОМЕРА ===
       Мешают на узком экране */
    section[data-num]::before { display: none; }
}
