:root {
    --grass-green: #213138;
    --bg-color: #000000;
    --dark-bg: #000000;
    --font-primary: 'Syne', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--bg-color);
    color: var(--grass-green);
    font-family: var(--font-secondary);
    overflow-x: clip;
    scroll-behavior: smooth;
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: var(--grass-green);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: transform 1.5s cubic-bezier(0.45, 0, 0.15, 1);
}

.preloader-text {
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 2.6rem;
    letter-spacing: -0.02em;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: #ffffff;
    border-radius: 2px;
    margin-left: 4px;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

@media(min-width: 768px) {
    .navbar {
        padding: 1.5rem 4rem;
    }
}

.nav-brand {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--grass-green);
    text-decoration: none;
    transition: color 0.35s ease;
}

.brand-dot {
    font-weight: 900;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    color: var(--grass-green);
    transition: color 0.35s ease;
}

.burger-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 28px;
}

    .burger-lines span {
        display: block;
        height: 1px;
        width: 100%;
        background-color: currentColor;
        transition: width 0.3s ease;
    }

.menu-toggle:hover .line-top {
    width: 20px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .mobile-menu.is-open {
        opacity: 1;
        pointer-events: auto;
    }

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .mobile-link:hover {
        color: #666;
    }

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: visible;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url('https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260603_073200_7082add5-f1f8-4873-8696-d6f78a44089b.png&w=1920&q=85');
}

.hero-text-block {
    opacity: 0;
    transform: translateY(-28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

    .hero-text-block.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.hero-heading-top {
    padding: 0 1.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: -0.04em;
}

@media(min-width: 768px) {
    .hero-heading-top {
        padding: 0 4rem;
    }
}

.hero-own-the {
    font-family: var(--font-primary);
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-subtitle-desktop {
    display: none;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(10px, 0.95vw, 14px);
    max-width: 300px;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 0.2em;
    letter-spacing: 0.02em;
    text-align: right;
}

.hero-headline-wrap {
    overflow: hidden;
    padding: 0 1.5rem;
}

@media(min-width: 768px) {
    .hero-headline-wrap {
        padding: 0 4rem;
    }
}

.hero-extraordinary {
    font-family: var(--font-primary);
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    letter-spacing: -0.03em;
}

.hero-subtitle-mobile {
    display: block;
    padding: 0 1.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: clamp(12px, 3vw, 15px);
    opacity: 0.65;
    margin-top: 0.9em;
    line-height: 1.5;
}

@media (max-width: 639px) {
    .hero-subtitle-desktop {
        display: none !important;
    }

    .hero-subtitle-mobile {
        display: block !important;
    }

    .hero-text-block {
        padding-top: 90px !important;
    }

    .hero-heading-top {
        justify-content: flex-start !important;
    }

    .hero-own-the {
        font-size: 7.5vw !important;
    }

    .hero-extraordinary {
        font-size: 14.5vw !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 0.9 !important;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .hero-subtitle-desktop {
        display: none !important;
    }

    .hero-subtitle-mobile {
        display: block !important;
    }

    .hero-text-block {
        padding-top: 110px !important;
    }

    .hero-heading-top {
        justify-content: flex-start !important;
    }

    .hero-own-the {
        font-size: 5.5vw !important;
    }

    .hero-extraordinary {
        font-size: 11vw !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 0.9 !important;
    }
}

@media (min-width: 1024px) {
    .hero-subtitle-desktop {
        display: block !important;
    }

    .hero-subtitle-mobile {
        display: none !important;
    }

    .hero-text-block {
        padding-top: calc(28vh - 50px) !important;
    }

    .hero-own-the {
        font-size: 3vw !important;
    }

    .hero-extraordinary {
        font-size: clamp(52px, 6.5vw, 9vw) !important;
        white-space: nowrap !important;
        line-height: 0.88 !important;
    }
}

/* --- HOUSE ANIMATION --- */
.house-wrapper {
    position: fixed;
    z-index: 22;
    pointer-events: none;
    will-change: transform;
    bottom: 0;
    left: 50%;
    width: 100%;
    min-width: 1400px;
    transform: translateX(-50%) translateY(102vh);
    transition: none;
}

.house-img {
    width: 100%;
    display: block;
}

/* --- DARK STATEMENT + STATS --- */
.dark-section-wrapper {
    position: relative;
    height: 100vh;
    z-index: 20;
}

.s2-section {
    position: relative;
    height: 100vh;
    background-color: var(--dark-bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.s2-content {
    padding: clamp(20px, 2vw, 40px) 1.5rem clamp(20px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    transform: scale(0.8);
    transform-origin: center center; /* Scale from center to evenly distribute space */
    margin-bottom: 0; /* Removed negative margin */
}
@media(min-width: 768px) {
    .s2-content {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.s2-statement-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media(min-width: 768px) {
    .s2-statement-container {
        padding-left: 15%;
    }
}

@media(min-width: 1024px) {
    .s2-statement-container {
        padding-left: 25%;
    }
}

.s2-statement {
    font-family: var(--font-secondary);
    font-weight: 300;
    color: #e8e4df;
    letter-spacing: -0.02em;
    line-height: 1.35;
    white-space: nowrap;
    font-size: clamp(22px, 2.6vw, 42px);
}

.s2-stats-row {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    margin-top: clamp(48px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media(min-width: 768px) {
    .s2-stats-row {
        flex-direction: row;
        gap: 0;
        padding-left: 15%;
    }
}

@media(min-width: 1024px) {
    .s2-stats-row {
        padding-left: 25%;
    }
}

.stat-col {
    flex: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: clamp(20px, 2.5vw, 40px);
}

.stat-number {
    font-family: var(--font-secondary);
    font-weight: 300;
    color: #ffffff;
    font-size: clamp(36px, 4.5vw, 72px);
    line-height: 1.1;
}

.stat-label {
    font-family: var(--font-secondary);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(12px, 1.1vw, 16px);
    margin-top: clamp(4px, 0.5vw, 8px);
    letter-spacing: 0.01em;
}

@media(max-width: 767px) {
    .s2-statement-container, .s2-stats-row {
        padding-left: 0 !important;
    }

    .s2-statement {
        white-space: normal !important;
    }
}

/* --- GALLERY SECTION --- */
.s3-gallery-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: clamp(10px, 2vw, 30px);
    transform: scale(0.8);
    transform-origin: center center; /* Scale from center */
    margin-bottom: 0; /* Removed negative margin */
}

.s3-ticker-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
}

    .ticker-track span {
        font-family: var(--font-primary);
        font-weight: 800;
        font-size: clamp(80px, 12vw, 180px);
        color: rgba(255, 255, 255, 0.04);
        letter-spacing: -0.02em;
        user-select: none;
        padding-right: 0.3em;
    }

.s3-gallery-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: clamp(24px, 4vw, 60px);
    /* 20% scale-down with whitespace compensation */
    transform: scale(0.8);
    transform-origin: top center;
    margin-bottom: -15vh;
}

.gallery-expand-row {
    display: flex;
    gap: 10px;
    height: 65vh;
    max-width: 1400px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.gallery-expand-item {
    width: 140px;
    height: 480px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
}

    .gallery-expand-item:hover {
        width: 460px;
    }

    .gallery-expand-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
        display: block;
    }

/* Gallery Mobile / Tablet Rules & Whitespace Fixes */
@media (max-width: 1023px) {
    .s3-gallery-section {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    .s3-ticker-wrap {
        position: absolute !important;
        top: auto;
        height: 100%;
        width: 100%;
        margin-bottom: 0 !important;
    }

    .s3-gallery-content {
        height: auto !important;
        align-items: flex-start !important;
        padding: 80px 16px 60px !important;
        transform: none !important; /* Reset transform on smaller screens if needed */
        margin-bottom: 0 !important;
    }

    .gallery-expand-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        height: auto !important;
        width: 100%;
        max-width: 700px;
    }

    .gallery-expand-item {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4/5;
        border-radius: 10px;
        transition: transform 0.3s ease;
    }

        .gallery-expand-item:hover {
            width: 100% !important;
            transform: scale(1.02);
        }

        .gallery-expand-item:last-child:nth-child(odd) {
            grid-column: 1 / -1;
            max-width: calc(50% - 4px);
            justify-self: center;
        }
}

@media (max-width: 479px) {
    .s3-gallery-content {
        padding: 60px 12px 48px !important;
    }

    .gallery-expand-row {
        gap: 6px !important;
    }
}
