/* ==========================================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    background-color: var(--snow-white);
    /* Ensure no gaps show through */
}

:root {
    --bg-dark: #493121;
    /* Cream/Maroon Palette */
    --snow-white: #FCF9F5;
    /* Creamy white */
    --terracotta: #bf5a1a;
    /* Deeper maroon for accents */
    --text-maroon: #493121;
    --text-light: #FFFFFF;
    --accent-brown: #7B6C62;
    --form-brown: #F2F2F2;
    --form-text: #493121;
    --transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    --popup-max-width: 600px;
    --popup-padding: 2.5rem 2rem 2rem;
    --logo-size: 1500px;
    /* Massive 3x scaling */
    --logo-max-width: 150vw;
    /* Allow significant overflow for impact */
    --logo-max-height: 150vh;

    --z-index-background: 1;
    --z-index-landing-section: 10;
    --z-index-logo: 20;
    --z-index-popup: 1000;
    --z-index-popup-close: 1001;
    --navbar-height: 100px;
    --hero-gap: 2rem;
    --vh: 1vh; /* Dynamic viewport height unit */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    overflow: hidden;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    width: 100vw;
    background-color: #000;
    color: var(--text-maroon);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Unlock Scroll for Phase 2 (Reveal Page) */
body.reveal-page {
    overflow-y: scroll !important; /* Windows fix: always reserve scrollbar space → no layout shift */
    overflow-x: hidden !important;
    height: auto !important;
    width: 100% !important;
    position: relative !important;
    touch-action: auto !important;
    background-color: var(--snow-white);
}

/* Full-page SVG background â€” tiled seamlessly down to the footer */
.page-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('../img/bgclairiere.svg');
    background-size: 100% auto !important; /* Force fit to width */
    background-repeat: repeat-y;
    opacity: 0.03 !important; /* Min opacity */
    background-position: top center;
}

.page-bg-svg img {
    display: none;
}

.reveal-page .sections-container {
    overflow: visible !important;
    height: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure all wrappers are transparent so body SVG background shows through */
#mainContainer.reveal-page {
    background: transparent !important;
}

.sections-container,
.main-footer {
    background: transparent !important;
}

/* Hide scrollbars globally but keep functionality */
* {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}





/* Success State Animations */
.modal-logo-fadein {
    width: 60px;
    height: auto;
    opacity: 0;
    filter: brightness(0);
    animation: logoFadeOnly 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes logoFadeOnly {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.thank-you-message {
    font-family: 'Space Mono', monospace;
    font-size: 1.125rem;
    color: var(--text-maroon);
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    opacity: 0;
    z-index: 2;
}

.success-state .popup-content {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        repeating-linear-gradient(45deg, #493121 0, #493121 20px, #3d2817 20px, #3d2817 40px);
    background-size: cover;
}

.thank-you-fadein {
    animation: thankYouFade 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.thank-you-fadeout {
    animation: thankYouFade 1.5s cubic-bezier(0.22, 1, 0.36, 1) reverse forwards;
}

@keyframes thankYouFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   3. LANDING SECTION (PHASE 1)
   ========================================================================== */

.sections-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    overflow-y: hidden;
    overflow-x: hidden;
    /* Prevent scroll until Phase 2 */
}

.unlocked.sections-container {
    overflow-y: auto;
}

.sections-container.unlocked {
    overflow-y: auto;
    height: auto;

}

.landing-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: visible;
    transform: translateX(0);
    background: transparent;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
    z-index: 10;
    cursor: pointer;
    /* Feedback for clickability */
    transition: opacity 2.5s cubic-bezier(0.22, 1, 0.36, 1);
}



.home-page::before,
.welcome-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('https://grey-elk-790010.hostingersite.com/wp-content/uploads/2026/02/landing_img.webp') no-repeat center center / cover;
    pointer-events: none;
}

.landing-section.success-active {
    background-color: #000;
    /* Fallback */
}

.landing-section.success-active .background-video-container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s ease, visibility 2s ease;
}

.landing-section.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 10;
}

@keyframes backgroundFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes rotating {
    from {
        transform: rotate(0deg) scale(var(--image-scale));
    }

    to {
        transform: rotate(360deg) scale(var(--image-scale));
    }
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.background-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

/* Video Background */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.popup-title {

    font-size: 1rem !important;
}


@media (min-width: 1025px) {
    /* Logo container visibility handled by .landing-section states */
}

.background-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: -1;
}

.logo-container {
    position: relative;
    /* Anchor for all absolutely positioned children */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    opacity: 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: var(--z-index-logo);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-center-row {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    z-index: 2;
}

.click-text,
.contact-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) !important;
    z-index: 10;
    pointer-events: none;
    width: max-content;
}

.click-text {
    left: min(-180px, -15vw);
    /* Brought back closer to center for professional balance */
    text-align: right;
    transform: translate(-100%, -50%) !important;
}

.contact-text {
    left: max(180px, 15vw);
    /* Brought back closer to center for professional balance */
    text-align: left;
    transform: translate(0, -50%) !important;
}

.bottom-text {
    position: absolute;
    top: max(220px, 20vh);
    left: 50%;
    transform: translate(-50%, -50%) !important;
    z-index: 10;
    pointer-events: none;
    width: max-content;
    text-align: center;
}

.landing-section.show-logo .logo-container {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    /* Ensure interactivity */
}

.landing-section .logo-container {
    display: flex;
    /* Changed from none to show on desktop */
}

/* welcome-page specifics */
.welcome-page {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.welcome-page #welcomeLogoContainer {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    /* Use gap as a fallback, but phrase uses absolute to override massive GIF height */
    gap: 0 !important;
}

.welcome-page #welcomeLogoContainer.revealed {
    opacity: 1 !important;
}

@media (max-width: 1024px) {
    .logo-container.success-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        width: 90% !important;
        text-align: center !important;
    }

    .logo-container.success-layout .click-text {
        order: 1 !important;
        font-size: 1.125rem !important;
        white-space: normal !important;
        max-width: none !important;
    }

    .logo-container.success-layout .logo-wrapper {
        order: 2 !important;
    }

    .logo-container.success-layout .join-text {
        order: 3 !important;
        font-size: 1.125rem !important;
        white-space: normal !important;
        max-width: none !important;
    }
}

.logo-container.success-layout.revealed {
    opacity: 1 !important;
}

.logo-container.success-layout .logo-image {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.logo-container.success-layout.revealed .logo-image.logo-base {
    opacity: 1 !important;
    transform: scale(1) !important;
    animation: none !important;
}

.logo-container.success-layout .click-text,
.logo-container.success-layout .join-text {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 2s ease;
    color: #ffffff;
}

.logo-container.success-layout.revealed .click-text,
.logo-container.success-layout.revealed .join-text {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

/* Consolidated to top mobile media query */

.logo-image {
    position: absolute;
    width: clamp(1500px, 150vw, 4000px);
    height: auto;
    max-height: 150vh;
    filter: brightness(0) invert(1);
    border: none;
    outline: none;
    transform-origin: center;
    opacity: 0;
    transform: scale(1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    z-index: 1;
}

.logo-wrapper {
    display: none;
    /* Element removed from HTML but kept here for safety/cleanliness */
}

.logo-stack {
    position: relative;
    width: var(--logo-size);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-stack .logo-base {
    position: relative;
    z-index: 2;
}


.contact-text {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.5s ease;
    letter-spacing: 0.05em;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.returning-visitor .contact-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.click-text,
.contact-text,
.bottom-text {
    font-family: 'Space Mono', 'Courier New', monospace !important;
    font-size: clamp(1.4rem, 3.5vw, 1.8rem) !important;
    /* Extra-bold for maximum impact */
    font-weight: 800 !important;
    color: #ffffff !important;
    white-space: normal !important;
    opacity: 0;
    transform: translateY(-10px);
    text-transform: none !important;
    letter-spacing: 0.05em !important;
    pointer-events: none;
    user-select: none;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.5s ease;
    text-align: center;
}

.success-phrase {
    font-family: 'Space Mono', 'Courier New', monospace !important;
    font-size: clamp(1.4rem, 3.5vw, 1.8rem) !important;
    position: absolute !important;
    bottom: 45% !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    /* Position it towards the bottom of the viewport */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(90vw, 800px) !important;
    line-height: 1.4 !important;
    z-index: 100 !important;
    white-space: normal !important;
    text-align: center !important;
    /* Reset inherited flex spacing */
    margin: 0 !important;
}


@media (max-width: 768px) {
    .success-phrase {
        bottom: 45% !important;
        font-size: clamp(1.1rem, 3.5vw, 1.8rem) !important;
        color: #ffffff !important;
        font-weight: 500 !important;
    }
}

.join-text {
    position: absolute;
    bottom: 5rem;
    font-family: 'Space Mono', monospace !important;
    color: #FFFFFF !important;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    text-align: center;
}

.join-top {
    font-size: clamp(0.875rem, 1.1vw, 1.25rem) !important;
    letter-spacing: 0.1em !important;
    /* Increased spacing for clarity */
    /* Uppercase for better impact/clarity */
    opacity: 1;
    /* Full opacity for clarity */
    transition: all 0.3s ease;
    animation: pulseHoverGlow 0.8s ease-in-out infinite alternate;
}

@keyframes pulseHoverGlow {
    0% {
        font-weight: 500;
        text-shadow: none;
        opacity: 0.8;
    }

    100% {
        font-weight: 900;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.4);
        opacity: 1;
    }
}

@media (hover: hover) {
    .join-text:hover {
        color: #FFFFFF !important;
        text-decoration: none !important;
        /* Extra bold effect without shifting width */
        text-shadow: 0.8px 0 0 currentColor, -0.8px 0 0 currentColor, 0 0 15px rgba(255, 255, 255, 0.4);
    }

    .join-text:hover .join-top {
        font-weight: 900 !important;
        /* Simple bold, no expansion */
        opacity: 1;
        animation: none !important;
        /* Match the glow animation end-state */
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.4);
    }
}

.landing-section.show-logo .click-text,
.landing-section.show-logo .contact-text,
.landing-section.show-logo .bottom-text,
.logo-container.revealed .click-text,
.logo-container.revealed .contact-text,
.logo-container.revealed .bottom-text,
.logo-container.revealed .success-phrase {
    visibility: visible !important;
    animation: textFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards !important;
}

.landing-section.show-logo .join-text,
.logo-container.revealed .join-text {
    visibility: visible !important;
    animation: textFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards !important;
}

.returning-visitor .click-text,
.returning-visitor .join-text {
    font-size: 1.125rem;
    white-space: nowrap;
    transition: all 0.5s ease;
}

@media (max-width: 1024px) {

    .returning-visitor .click-text,
    .returning-visitor .join-text {
        white-space: normal;
        max-width: 180px;
        line-height: 1.2;
    }
}

.click-text,
.join-text {
    text-align: right;
}

.join-text {
    text-align: left;
}

/* Custom Premium Cursor: Magnetic Lens */
.cursor-lens {
    width: 25px;
    height: 25px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        background 0.4s ease,
        border 0.4s ease,
        transform 0.1s ease-out;
    /* Micro-lag for fluidity */
    transform: translate(-50%, -50%);
    display: none;
    /* Mobile/Initial Guard */
    opacity: 0;
    /* Hidden until hover */
}

/* Ensure completely invisible on any mobile/tablet device */
@media (max-width: 1024px),
(pointer: coarse) {
    .cursor-lens {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Hover State: Expanded Lens */
.cursor-lens.active {
    width: 65px;
    height: 65px;
    border: 1px solid rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    opacity: 1 !important;
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.landing-section.show-logo .logo-image,
.logo-container.revealed .logo-image {
    /* Animation removed to allow JS control of the loop */
    opacity: 0;
}

.landing-section.show-logo:first-child .logo-image {
    animation: logoVideoAnimation 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes logoVideoAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Loader Visibility Overrides for JS Loop */
.logo-image.loader-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.logo-image.loader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

.scroll-prompt {
    position: absolute;
    bottom: 3.5rem;
    /* Adjusted for elite balance */
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    /* Extra-bold for maximum impact */
    font-weight: 800;
    /* High-contrast solid white */
    color: #FFFFFF;
    letter-spacing: 0.45em;
    opacity: 0;
    transition: opacity 2s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
}

@media (max-width: 1024px) {
    .scroll-prompt {
        bottom: 2.5rem;
        /* Safe-area guard for modern phones */
    }
}

/* Vertical line animation removed as requested */

.success-active .scroll-prompt {
    opacity: 1;
}



@keyframes imageFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes imageRotate {
    0% {
        transform: scale(var(--image-scale)) rotate(0deg);
    }

    100% {
        transform: scale(var(--image-scale)) rotate(360deg);
    }
}



/* ==========================================================================
   4. POPUP & FORM INTERACTION
   ========================================================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grey-elk-790010.hostingersite.com/wp-content/uploads/2026/02/landing_img.webp') no-repeat center center;
    background-size: cover;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: var(--z-index-popup);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
    padding: 2rem;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    /* Wider landscape layout */
    min-width: 20%;
    background-color: transparent;
    /* Container itself is transparent to hold the separate header and white card */
    box-shadow: none;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.form-header-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.white-card-container {
    background-color: #ffffff;
    width: 100%;
    padding: 3rem 6rem;
    border-radius: 4px;
    /* Minimal rounding for premium feel */
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}


.popup-container:focus {
    outline: none;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: var(--z-index-popup-close);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--form-text);
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    border-radius: 50%;
    opacity: 0.7;
    box-sizing: border-box;
}

.popup-close:focus {
    outline: 2px solid var(--form-text);
    outline-offset: 2px;
}

.popup-close:hover {
    opacity: 1;
}

.popup-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.popup-close:active {
    transform: rotate(90deg) scale(0.95);
}

.popup-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
}

.popup-content {
    padding: var(--popup-padding);
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 2rem);
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    /* Ensure absolute positioning of hidden stages works relative to this */

    /* Global scrollbar hiding as requested */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.popup-content::-webkit-scrollbar {
    display: none;
}

/* Force no scroll during success/processing */
.popup-container.processing-state .popup-content,
.popup-container.success-state .popup-content {
    overflow: hidden !important;
}

.content-stage {
    transition: opacity 0.5s ease;
    width: 100%;
}

.content-stage.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Scrollbar styling removed to enforce hidden scrollbar */

.popup-title {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    font-weight: 700;
    color: var(--accent-brown);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 1.3;
    max-width: 100%;
    white-space: normal;
    /* Match width of popup-container */
    margin: 0 auto;
}

.popup-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    color: var(--form-text);
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.7;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.2px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.inscription-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.form-group {
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: 'Space Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--form-text);
    margin-bottom: 1rem;
    letter-spacing: 0.4px;
    opacity: 0.9;
}

.form-group input,
.form-group textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid #7B6C62;
    /* Thin minimal border */
    background: transparent;
    font-size: 1rem;
    font-family: 'Space Mono', monospace;
    color: var(--terracotta);
    transition: border-color 0.3s ease;
    min-height: 44px;
    letter-spacing: 0.2px;
    line-height: 1.5;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--terracotta);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-bottom-color: #e74c3c;
}

.error-message {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #ff0000;
    /* Pure red */
    margin-top: 0.25rem;
    height: 1.25rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.error-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(61, 40, 23, 0.4);
    opacity: 1;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
    padding-top: 0.5rem;
    line-height: 1.6;
}

.submit-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem auto 0;
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    color: var(--terracotta);
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 44px;
    letter-spacing: 0.05em;
    text-transform: none;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.submit-button span {
    color: var(--terracotta) !important;
}

/* Remove all hover effects as requested */
.submit-button:hover {
    opacity: 1;
    /* No opacity change */
}

.submit-button:active {
    transform: none;
}

.unlock-icon {
    width: 32px;
    height: auto;
    margin-top: 5px;
    /* Spacing between text and icon */
}

/* Ensure no hover states on the icon */
.submit-button:hover .unlock-icon {
    transform: none;
}

@media (max-width: 1024px) {
    .popup-container {
        max-width: 90vw;
        max-height: calc(100vh - 1rem);
        min-width: 0;
    }

    .popup-content {
        max-height: calc(100vh - 1rem);
        padding: 2rem 1.5rem 1.5rem;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .popup-overlay {
        padding: 0.5rem;
    }

    .popup-container {
        max-width: 95vw;
        max-height: calc(100vh - 1rem);
        border-radius: 8px;
        min-width: 0;
    }

    .popup-content {
        padding: 1rem 1rem 1rem;
        max-height: 100vh;
        min-width: 0;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .popup-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
        white-space: normal;
    }

    .white-card-container {
        padding: 4rem 3rem;
    }

    .popup-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .inscription-form {
        gap: 0.75rem;
    }

    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        /* Better for avoiding iOS auto-zoom */
        padding: 0.5rem 0;
        min-height: 44px;
        text-align: left !important;
    }

    .form-group label {
        text-align: left !important;
        display: block;
    }

    .editorial-logo {
        display: none !important;
    }

    .form-group textarea {
        min-height: 60px;
        padding-top: 0.35rem;
    }

    .submit-button {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        margin-top: 1rem;
        min-height: 44px;
    }

    /* Hide scrollbar */
    .popup-content::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .popup-overlay {
        padding: 1.5rem;
    }

    .popup-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 8px;
        min-width: 0;
    }

    .popup-content {
        padding: 1rem 0.75rem 0.75rem;
        max-height: 100vh;
        min-width: 0;
    }

    .popup-title {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
        max-width: 100% !important;
        white-space: normal !important;
        margin-left: auto;
        margin-right: auto;
    }

    .white-card-container {
        padding: 2.5rem 1.5rem !important;
    }


    .popup-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .inscription-form {
        gap: 0.5rem;
    }

    .form-row {
        gap: 0.5rem;
    }

    .form-group label {
        font-size: 0.7rem;
        margin-bottom: 0.1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        min-height: 44px;
        padding: 0.5rem 0;
    }

    .form-group textarea {
        min-height: 50px;
    }

    .submit-button {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        min-height: 36px;
    }

    .unlock-icon {
        width: 18px;
        /* Slightly smaller for mobile */
    }

    /* Success Modal Overrides for Mobile */
    .modal-flow-content {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .modal-logo-small {
        width: 80px;
        margin-bottom: 1.5rem;
    }

    .success-text {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-height: 600px) {
    .popup-content {
        padding: 1rem 1.5rem 1rem;
    }

    .popup-title {
        font-size: 1.6rem !important;
        font-weight: 700 !important;
        margin-bottom: 1rem !important;
    }

    .popup-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .inscription-form {
        gap: 0.75rem;
    }

    .form-group textarea {
        min-height: 60px;
    }
}


@keyframes logoOverlayAnimation {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    100% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

.landing-section.show-logo .logo-overlay {
    animation: logoOverlayAnimation 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

/* Success Modal Styles */
.popup-container.processing-state,
.popup-container.success-state {
    /* Keeping original size (max-width: 600px) as requested */
    transition: none;
    /* No resizing transition needed if size doesn't change */
}

.modal-flow-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    /* More breathing room for a larger container */
    width: 100%;
    min-height: 300px;
    /* Ensure a consistent height for the center alignment */
    opacity: 1;
    transition: opacity 0.4s ease;
    box-sizing: border-box;
}

.modal-flow-content.fade-out {
    opacity: 0;
}

.modal-flow-content.fade-in {
    animation: slideInRight 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.modal-logo-small {
    width: 90px;
    height: auto;
    margin-bottom: 2rem;
    filter: invert(24%) sepia(21%) saturate(1001%) hue-rotate(346deg) brightness(96%) contrast(90%);
}

.modal-logo-big {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: invert(24%) sepia(21%) saturate(1001%) hue-rotate(346deg) brightness(96%) contrast(90%);
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.processing-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.processing-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--form-brown);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-bottom: 0;
    flex-shrink: 0;
}

.status-text {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--form-text);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.success-title {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-maroon);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.success-text {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-maroon);
    font-size: 1.15rem;
    /* Matched register page success size */
    line-height: 1.8;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Legacy mobile overrides removed for professional consolidation */

@media (min-width: 1440px) {

    .click-text,
    .join-text {
        font-size: 1.5rem;
        letter-spacing: 1.2px;
    }

    .logo-container {
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .background-image {
        animation: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #000;
    }
}

/* Main Navbar */
/* ==========================================================================
   5. NAVIGATION BARS & MENUS
   ========================================================================== */

.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.reveal-page {
    background-color: var(--snow-white) !important;
}

.unlocked .main-navbar,
.reveal-page .main-navbar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.reveal-page .main-navbar {
    background-color: transparent !important;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    padding: 2.5rem 4rem;
    /* Spacious starting padding */
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-page .main-navbar.nav-scrolled {
    background-color: rgba(252, 249, 245, 0.92) !important;
    /* Semi-transparent Snow White */
    backdrop-filter: blur(10px);
    /* Premium glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: none;
    box-shadow: 0 10px 30px rgba(73, 49, 33, 0.08);
    padding: 1.2rem 4rem;
    /* Compact on scroll */
}

/* Contact Button Transformation on Scroll */
.reveal-page .main-navbar.nav-scrolled .nav-links li:last-child a {
    background-color: var(--text-maroon);
    /* Matching project maroon */
    color: #FFFFFF !important;
    padding: 0.8rem 2.2rem !important;
    border-radius: 2px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 15px rgba(73, 49, 33, 0.15);
}

.reveal-page .main-navbar.nav-scrolled .nav-links li:last-child a:hover {
    background-color: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(73, 49, 33, 0.2);
}

/* Hide the minimalist indicator for the button version */
.reveal-page .main-navbar.nav-scrolled .nav-links li:last-child a::after {
    display: none !important;
}

.reveal-page .nav-links a {
    color: var(--text-maroon);
    font-weight: 500;
    /* text-transform: lowercase; */
    /* as in mockup */
    font-size: 15px;
    letter-spacing: 0.5px;
}

.reveal-page .nav-links a.active {
    /* Border removed to prevent double line - using ::after instead */
    padding-bottom: 2px;
}

.main-navbar.nav-hidden {
    transform: translateY(-100%) !important;
    opacity: 0;
    visibility: hidden;
}

/* Hide Phase 1 on Unlock */
.unlocked .landing-section {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.navbar-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.navbar-logo img {
    height: 40px;
    /* Shrunk for professionalism */
    filter: none;
}

@media (max-width: 480px) {
    .navbar-logo img {
        height: 32px;
        /* Extra small on tiny phones */
    }
}

.logo-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--text-maroon);
    margin-top: 4px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-maroon);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-transform: none;
    /* Changed from uppercase */
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    /* Full width line */
    height: 1.5px;
    background-color: var(--text-maroon);
    transition: width 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-maroon);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--terracotta);
}

.nav-links a:hover::after {
    width: 100%;
    /* Full width hover line */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-maroon);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Menu Overlay -> Elegant Sidebar */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: auto !important;
    width: 280px !important;
    height: 100%;
    background-color: #FFFFFF !important;
    z-index: 2100;
    display: flex;
    justify-content: flex-start !important;
    /* Align content to top-left of sidebar */
    align-items: flex-start !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(100%) !important;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05) !important;
    padding: 0 !important;
}

.mobile-menu-overlay.active {
    transform: translateX(0) !important;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.1) !important;
}

/* Subtle backdrop when menu is active */
body.mobile-menu-active::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

body.mobile-menu-active.menu-open::after {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-maroon);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 2102;
}

.mobile-menu-close svg {
    width: 28px;
    height: 28px;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
    text-align: left !important;
    padding: 8rem 2.5rem 2.5rem !important;
    /* Top padding to clear navbar */
    width: 100%;
}

.mobile-nav-links li {
    margin: 1.5rem 0 !important;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-links a {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem !important;
    color: var(--text-maroon) !important;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.05em !important;
    font-weight: 500 !important;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--terracotta) !important;
}

/* Global Image Border Reset - Phase 2 (Forcefully Professional) */
.reveal-page img,
.reveal-page .reveal-img img,
.reveal-page .le-lieu-card img,
.reveal-page .figma-img-wrapper img,
.reveal-page .villas-section img,
.reveal-page .gallery-thumb img,
.reveal-page .texture-item img,
.reveal-page .villas-gallery img {
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    /* Optional: remove if user wants rounded, but mockups show sharp/square */
}

/* Phase 2 Content */
.phase2-content {
    position: relative;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.phase2-content.unlocked {
    opacity: 1;
    visibility: visible;
}

/* Phase 2 Hero */
/* ==========================================================================
   6. PHASE 2 CONTENT (HERO, LIEU, VILLAS)
   ========================================================================== */

.phase2-hero {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Balanced centering */
    padding-top: 100px;
    /* Precise offset for navbar height */
    scroll-snap-align: start;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-frame {
    width: 90%;
    /* Much wider as requested */
    max-width: 1600px;
    height: 80vh;
    /* Constrained height to prevent it being too tall */
    position: relative;
    background: url('https://grey-elk-790010.hostingersite.com/wp-content/uploads/2026/02/herosection.webp') no-repeat center center;
    background-size: cover;
    /* Fill the wider frame (minor crop) */
    background-position: center 25%;
    /* Ensure subjects heads are visible */
    border-top: 4px solid #FFFFFF;
    border-bottom: 4px solid #FFFFFF;
    border-left: none;
    border-right: none;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 2;
    margin: 0 auto;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.phase2-hero.animate-in .hero-frame {
    opacity: 1;
    transform: scale(1);
}

.hero-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    /* Matched Figma scale */
    height: 90px;
    z-index: 4;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0.85;
}

.hero-play-button:hover {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
}

.hero-content-centered {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    /* Increased gap to frame the play button perfectly */
    padding: 0 4rem;
    position: relative;
    z-index: 5;
}

.hero-link {
    font-family: 'Space Mono', monospace;
    font-weight: 500;
    font-size: 15px;
    /* Larger as in mockup */
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 1px solid #FFFFFF;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px);
    transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-link:hover {
    border-bottom-color: #FFFFFF;
    color: #FFFFFF;
}

.phase2-hero.animate-in .hero-link {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    transition-delay: 0.8s;
}

.hero-key-logo {
    width: 100px !important;
    /* Professional fixed size */
    max-width: 25vw !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    opacity: 1 !important;
    /* Ensure visibility */
    filter: brightness(0) invert(1) !important;
    /* Force white */
    transform: none !important;
    transition: none !important;
    z-index: 10 !important;
}

.phase2-hero.animate-in .hero-key-logo {
    opacity: 1;
    filter: brightness(0) invert(1) blur(0);
    transform: scale(1);
    transition-delay: 0.5s;
}

.hero-reveal-title,
.scroll-indicator-down {
    display: none;
}

.scroller {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #fff, transparent);
    position: relative;
    overflow: hidden;
}

.scroller::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--terracotta);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.content-section {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent;
    /* Transparent so body SVG background shows through */
    scroll-snap-align: start;
    position: relative;
    overflow: visible;
}

.project-section {
    background-color: transparent !important;
    color: var(--text-maroon) !important;
    padding-bottom: 4rem !important;
}

.project-section .section-title-centered,
.project-section .section-description-centered,
.project-section .project-subtitle-figma,
.project-section .project-features-list li {
    color: var(--text-maroon) !important;
}


.project-section .container,
.villas-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto;
    /* Spacing from top/bottom */
    padding: 4rem;
    /* Generous internal padding */
    border-radius: 4px;
    /* Subtle rounding for professional look */
    position: relative;
    z-index: 2;
}

.section-title,
.subsection-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-maroon);
    margin-bottom: 3rem;
}

.section-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-maroon);
    max-width: 800px;
}

/* Refined Project Section Redesign */
.section-header-centered {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.section-signature-icon {
    display: block;
    width: 30px;
    /* Scaled for prominence like Benchmark Dior */
    height: auto;
    margin: 0 auto 1.5rem;
    filter: brightness(0) saturate(100%) invert(24%) sepia(21%) saturate(1001%) hue-rotate(346deg) brightness(96%) contrast(90%);
    /* Matching project maroon */
    opacity: 0.7;
}

.section-title-centered {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--bg-dark);
    margin-bottom: 2rem;
}

.section-description-centered {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-maroon);
}

/* Maroon Overlap Section (Image 1115) */
.maroon-overlap-section {
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background-color: transparent;
    /* Changed from #F8F8F8 */
    scroll-snap-align: start;
}

.project-grid-refined {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6rem;
    margin-top: 4rem;
}

@media (max-width: 991px) {
    .project-grid-refined {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
}

.project-info-left {
    padding-top: 3rem;
    flex: 1;
}

.project-subtitle-figma {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    /* Standardized to match main title size reduced from 1.5rem */
    font-weight: 700;
    color: var(--text-maroon);
    margin-bottom: 2rem;
}

.project-features-list {
    list-style: none;
    padding: 0;
}

.project-features-list li {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-maroon);
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.project-features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--terracotta);
    font-weight: bold;
}

.project-image-right {
    flex: 1.2;
}

.figma-img-wrapper {
    width: 100%;
    overflow: visible;
    /* Allow shadow */
}

.figma-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1) !important;
    /* Soft depth without border */
}

/* Professional Framed Gallery Style - Minimal Border */
.villas-main-image,
.texture-item {
    background-color: #FFFFFF !important;
    padding: 1px !important;
    /* Minimal white frame as requested */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
    border-radius: 1px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.villas-main-image img,
.texture-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    /* Perfect square symmetry */
    display: block;
}

.amenities-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.amenities-text {
    flex: 1;
}

.amenities-image {
    flex: 1;
}

.reveal-img {
    width: 100%;
    height: auto;
    box-shadow: none;
}

.amenities-list {
    list-style: none;
    margin-top: 2rem;
}

.amenities-list li {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: var(--terracotta);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.amenities-list li::before {
    content: 'â€”';
    position: absolute;
    left: 0;
    color: var(--terracotta);
}

/* REDESIGNED LE LIEU SECTION (High-End Card Layout) */
.le-lieu-redesign-section {
    min-height: 100vh;
    height: auto;
    /* Fluid height: let content define it */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    scroll-snap-align: start;
    overflow: hidden;
    padding: 0;
}

.le-lieu-bg-container {
    background-color: #493121;
    /* Maroon background box */
    width: 90%;
    min-height: 100vh;
    /* Sufficient room for high-line-height text */
    max-width: 1400px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 14vh;
    /* Ensure text is well below card overlap */
    margin-top: 18vh;
    /* Increased from 12vh for better starting position */
}

.le-lieu-cards-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: absolute;
    top: -30vh;
    width: 100%;
    padding: 0 4rem;
    left: 50%;
    transform: translateX(-50%);
    align-items: stretch;
    z-index: 10;
}

.le-lieu-card {
    flex: 1;
    max-width: 380px;
    height: auto;
    min-height: 400px;
    position: relative;
    border: 2.5px solid #FFFFFF !important;
    background-color: #000;
    overflow: hidden;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
}

.le-lieu-card img, 
.le-lieu-card video {
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: cover !important;
    opacity: 1;
    transition: transform 0.8s ease;
}



.card-label-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.card-label {
    color: #FFFFFF;
    font-family: 'Space Mono', monospace;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.le-lieu-text-content {
    text-align: center;
    color: #FFFFFF;
    max-width: 900px;
}

.le-lieu-main-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    /* Adjusted from 1.4rem to match Le Projet */
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.le-lieu-description {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    line-height: 2;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .le-lieu-redesign-section {
        height: auto;
        min-height: auto;
        overflow: visible;
        padding: 4rem 0;
    }

    .le-lieu-bg-container {
        height: auto;
        min-height: auto;
        margin-top: 0;
        padding: 3rem 1rem 4rem;
    }

    .le-lieu-cards-wrapper {
        flex-direction: column;
        align-items: center;
        position: relative;
        top: 0;
        margin-top: 0;
        gap: 1.5rem;
        padding: 0;
        margin-bottom: 2rem;
    }

    .le-lieu-card {
        width: 100%;
        max-width: 420px;
        height: auto;
        min-height: auto; /* Remove min-height to allow perfect wrapping */
        border: 2px solid #FFFFFF;
    }

    .le-lieu-card.framed-y {
        border: none !important;
        border-top: 2px solid #FFFFFF !important;
        border-bottom: 2px solid #FFFFFF !important;
        box-shadow: none !important;
        background: transparent !important;
    }
}

/* Les Villas Section (Image 1039) */
.villas-section {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
    background-color: transparent;
    /* Show topo bg */
    scroll-snap-align: start;
    overflow: visible;
}

.villas-gallery-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
}

@media (max-width: 991px) {
    .villas-gallery-wrapper {
        flex-direction: column-reverse;
        gap: 2rem;
    }
}

.villas-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Balanced 50/50 split as per mockup */
    gap: 1.5rem;
    /* Increased spacing for the frames to breathe */
    align-items: start;
}

.villas-main-image,
.villas-textures-grid {
    height: auto !important;
    /* Removed fixed height to prevent content cropping */
    min-height: auto !important;
}

.villas-main-image {
    border: none;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.texture-item {
    border: none;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.villas-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    /* Standard professional photo ratio */
}

.villas-textures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    /* Match main grid gap */
}

.texture-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    /* Keep wood textures as perfect squares */
}

/* ── NEW DUAL HERO SYSTEM (DESKTOP) ── */
.hero-dual-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
    background: #000;
}

.hero-divider {
    position: absolute;
    z-index: 10;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: rgba(252, 249, 245, 0.4);
    transform: scaleY(0);
    transform-origin: top;
    animation: heroLineDown 1.1s 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes heroLineDown { to { transform: scaleY(1); } }

.hero-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.95s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Stable 50/50 split - No expansion but darkening logic */
.hero-dual-wrapper.active-side-left  .panel-right { filter: brightness(0.25); }
.hero-dual-wrapper.active-side-right .panel-left  { filter: brightness(0.25); }

.hero-panel video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1), filter 0.8s ease;
    filter: brightness(0.55) saturate(0.85); /* 'A bit darker' base state per request */
}

.hero-panel:hover video {
    transform: scale(1.05); /* Subtle zoom without expanding panel */
}

.hero-panel.is-active video {
    filter: brightness(0.85) saturate(1);
}

.panel-overlay {
    position: absolute; inset: 0; z-index: 2;
    transition: opacity 0.8s ease;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.hero-panel-label {
    position: absolute;
    z-index: 14;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(252, 249, 245, 0.4);
    top: 100px;
}
.panel-left .hero-panel-label  { left: 56px; }
.panel-right .hero-panel-label { right: 56px; text-align: right; }

.hero-panel-cta {
    position: absolute;
    bottom: 80px; 
    left: 56px; /* Aligned to the left margin */
    z-index: 15;
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}

.hero-panel-link {
    font-family: 'Space Mono', monospace;
    font-size: 14px; /* Slightly larger for readable normal case */
    letter-spacing: 0.05em;
    text-transform: none; /* No more uppercase */
    color: #FFFFFF;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 6px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    transition: border-color 0.4s ease, opacity 0.4s ease;
}

.hero-panel-link:hover {
    border-color: #FFFFFF;
    opacity: 0.8;
}

.play-btn-circle {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
}

.play-btn-circle svg { fill: #FFFFFF; transition: transform 0.3s ease; }
.icon-pause { display: none; }

.hero-panel.is-active .play-btn-circle {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.hero-panel.is-active .icon-play  { display: none; }
.hero-panel.is-active .icon-pause { display: block; }

.hero-center-logo {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    pointer-events: none;
}

.hero-center-logo img { 
    width: clamp(80px, 7vw, 110px); /* Larger premium size for desktop */
    height: auto; 
    display: block;
    filter: drop-shadow(0 4px 30px rgba(0,0,0,0.5));
}

/* Mobile stability - Ensure logo stays fixed */
@media (max-width: 1024px) {
    .hero-center-logo img {
        width: 64px;
        transform: translate(0, 0) scale(1) !important;
    }
}

/* --- White Navbar over Hero --- */
.reveal-page .main-navbar:not(.nav-scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.reveal-page .main-navbar:not(.nav-scrolled) .navbar-logo img {
    filter: brightness(0) invert(1); /* Force white logo over hero */
}

.reveal-page .main-navbar:not(.nav-scrolled) .mobile-menu-toggle span {
    background-color: #FFFFFF !important;
}

.villas-nav-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    display: flex;
    align-items: center; justify-content: center;
    padding: 0;
    transition: all 0.4s ease;
}

.nav-icon {
    width: 32px;
    height: 32px;
    stroke: var(--terracotta);
    stroke-width: 1.5;
    z-index: 2;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.villas-nav-btn:hover .nav-icon {
    transform: scale(1.2);
    stroke-width: 2.5;
    /* Slightly bolder on hover */
}

.villas-nav-btn.prev:hover .nav-icon {
    transform: translateX(-5px) scale(1.2);
}

.villas-nav-btn.next:hover .nav-icon {
    transform: translateX(5px) scale(1.2);
}





.villas-content {
    max-width: 1000px;
    margin: 0 auto;
}

.villas-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    /* Standardized from 2rem */
    color: var(--text-maroon);
    margin-bottom: 2rem;
}

.villas-description {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text-maroon);
    opacity: 0.7;
}

/* Responsiveness for Villas */
@media (max-width: 1024px) {
    .villas-section {
        padding: 4rem 0;
        min-height: auto;
        height: auto;
    }

    .villas-grid {
        grid-template-columns: 1fr;
    }

    .villas-main-image {
        height: 55vw;
        min-height: 220px;
    }

    .villas-textures-grid {
        height: auto;
        min-height: auto;
    }

    .texture-item {
        height: 26vw;
        min-height: 120px;
    }

    .villas-gallery-wrapper {
        gap: 1rem;
        margin-bottom: 2rem;
    }
}

/* Maroon Map Section (Mockup 1115) */
.maroon-map-section {
    background-color: #493121;
    padding: 6rem 0;
    color: #FFFFFF;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    overflow: visible;
}

.maroon-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    /* Standardized from 2rem */
    line-height: 1.3;
    margin-bottom: 3rem;
    color: #FFFFFF;
}

.location-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    /* Standardized from 1.1rem */
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.location-text p {
    margin-bottom: 1.5rem;
}

.map-wrapper {
    height: auto;
    width: 100%;
    max-width: 480px;
    /* Square proportion */
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    position: relative;
    border: 2px solid #FFFFFF;
    background-color: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: contrast(1.05) brightness(1.02);
    /* Clean light mode */
}

.map-wrapper:hover iframe {
    filter: grayscale(0.1) contrast(1) brightness(1);
}

@media (max-width: 991px) {
    .maroon-map-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .location-title {
        font-size: 1.5rem;
    }
}

/* Timeline Section (Image 1179) */
/* ==========================================================================
   7. TIMELINE & CONTACT SECTION
   ========================================================================== */

/* =======================================================================
   â˜… DESKTOP TIMELINE (PROFESSIONAL ARCHITECTURAL VERSION)
   Horizontal axis with vertical markers and alternating milestones.
   ======================================================================= */
.timeline-section {
    padding: 8rem 0;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    overflow: visible;
    position: relative;
    z-index: 5;
}

.timeline-main-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 350px; /* Enough space for long markers */
}

/* 1. Horizontal Axis */
.timeline-axis {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #493121;
    z-index: 1;
    transform: translateY(-50%);
}

.axis-arrow {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 12px solid #493121;
}

/* 2. Events Container */
.timeline-events {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 100%;
    z-index: 2;
}

/* 3. Milestone Logic (Above / Below) */
.timeline-event {
    position: absolute;
    display: flex;
    flex-direction: row; /* Marker next to text block */
    align-items: flex-start;
    gap: 12px;
    z-index: 10;
}

/* Event Horizontal Distribution */
.timeline-event:nth-child(1) { left: 10%; }  /* Lancement chantier */
.timeline-event:nth-child(2) { left: 45%; }  /* Commercialisation */
.timeline-event:nth-child(3) { left: 80%; }  /* Livraison */

/* Visual Orientation */
.timeline-event.above {
    bottom: 50%;
    align-items: flex-end; /* Anchors marker to AXIS */
}

.timeline-event.below {
    top: 50%;
    align-items: flex-start; /* Anchors marker to AXIS */
}

/* Vertical Marker Lines */
.event-marker {
    width: 2px;
    height: 100px; /* Striking vertical separation */
    background-color: #493121;
    flex-shrink: 0;
}

.timeline-event.below .event-marker {
    height: 120px; /* Slightly longer for middle contrast */
}

/* 4. Text Content Styling */
.event-content {
    font-family: 'Space Mono', monospace;
    color: #493121;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 2rem; /* Spacing from axis for 'above' */
}

.timeline-event.below .event-content {
    margin-bottom: 0;
    margin-top: 2rem; /* Spacing from axis for 'below' */
}

.event-title {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.event-date {
    font-size: 1.1rem;
    font-weight: 700;
}

/* MOBILE TIMELINE â€” definitive styles at bottom of file */

.villas-contact-section {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10rem 0;
    background-image: url('https://grey-elk-790010.hostingersite.com/wp-content/uploads/2026/02/landing_img.webp');
    /* Using wood texture */
    background-size: cover;
    background-position: center;
    color: var(--text-maroon);
    scroll-snap-align: start;
}

.villas-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Light overlay for readability */
}

.contact-editorial-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.editorial-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -1px;
    color: var(--snow-white);
}

.editorial-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    /* Standardized from 1.1rem */
    line-height: 1.6;
    opacity: 0.8;
    max-width: 400px;
    margin-bottom: 2rem;
    color: var(--snow-white);
}

.editorial-logo img {
    width: 200px;
    opacity: 0.9;
}


.thank-you-message {
    font-size: 1.25rem;
    color: var(--text-maroon);
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .thank-you-message {
        font-size: 0.9rem;
    }
}

.form-item label {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-maroon);
    text-transform: none;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.form-item input,
.form-item textarea {
    background: none;
    border: none;
    border-bottom: 2px solid var(--text-maroon);
    padding: 0.5rem 0;
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-maroon);
    transition: var(--transition);
}

.form-item textarea {
    resize: none;
    overflow: hidden;
}

.form-item input:focus,
.form-item textarea:focus {
    outline: none;
    border-bottom-color: var(--terracotta);
}

.form-submit-row {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.text-btn {
    background: none;
    border: none;
    border-bottom: 2px solid var(--text-maroon);
    font-family: 'Space Mono', monospace;
    font-size: 1.4rem;
    color: var(--text-maroon);
    padding: 0.5rem 0;
    cursor: pointer;
    transition: var(--transition);
}

.text-btn:hover {
    color: var(--terracotta);
    border-bottom-color: var(--terracotta);
    transform: translateY(-2px);
}

/* Responsiveness for Final Contact */
@media (max-width: 1024px) {
    .contact-editorial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .editorial-subtitle {
        margin: 0 auto 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-item.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .villas-contact-section {
        padding: 1rem 0;
    }

    .editorial-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .editorial-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        max-width: 100%;
    }

    .editorial-logo img {
        width: 100px;
    }

    .contact-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .villas-contact-section {
        padding: 0.5rem 0;
    }

    .editorial-title {
        font-size: 1.35rem;
    }

    .editorial-logo img {
        width: 100px;
    }

    .contact-card {
        padding: 1rem 0.75rem;
    }

    .minimal-form {
        gap: 0.8rem;
    }

    .form-grid {
        gap: 0.8rem;
    }

    .form-item {
        gap: 0.4rem;
    }

    .form-item label {
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .form-item input,
    .form-item textarea {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    .form-submit-row {
        margin-top: 1rem;
    }

    .text-btn {
        font-size: 1rem;
    }
}

/* Main Footer Redesign (Image 1205) */
/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.main-footer {
    padding: 2rem 0 2rem;
    color: #493121;
    position: relative;
    z-index: 100;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../css/topo-bg.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    /* Increased as per new reference */
    pointer-events: none;
}

.footer-separator {
    width: 100%;
    height: 2px;
    background-color: var(--text-maroon);
    /* Slightly clearer as requested */
    margin-bottom: 2rem;
    opacity: 0.5;
}

.popup-overlay.embedded-form {
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.popup-overlay.embedded-form .popup-container {
    position: static !important;
    transform: none !important;
    max-width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
    width: 100% !important;
}

.popup-overlay.embedded-form .white-card-container {
    margin: 0 !important;
    box-shadow: 0 20px 60px rgba(73, 49, 33, 0.1) !important;
}

@media (max-width: 768px) {
    .popup-overlay.embedded-form .white-card-container {
        padding: 2rem 1.5rem !important;
    }
}

.footer-refined-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4rem;
    padding: 2.5rem 4rem;
    position: relative;
    z-index: 10;
}

.footer-brand-minimal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand-minimal .footer-brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: #493121;
    line-height: 1;
}

.footer-brand-minimal .footer-brand-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    color: #493121;
    opacity: 0.7;
    margin-top: 0.3rem;
}

.footer-links-minimal {
    display: flex;
    margin-left: auto;
    gap: 4rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links-minimal a {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #493121;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-weight: 400;
    text-transform: none;
}

.footer-links-minimal a:hover {
    opacity: 1;
    color: var(--terracotta);
    transform: translateY(-1px);
}

.footer-copyright-minimal {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #493121;
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .footer-refined-row {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding: 2rem 1.5rem;
    }

    .footer-brand-minimal {
        align-items: center;
        margin-bottom: 1rem;
    }

    .footer-brand-minimal .footer-brand-title {
        font-size: 1.8rem;
    }

    .footer-brand-minimal .footer-brand-subtitle {
        font-size: 0.6rem;
        letter-spacing: 0.5em;
    }

    .footer-links-minimal {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin: 0 auto;
        width: 100%;
    }

    .footer-links-minimal a {
        font-size: 0.72rem;
        letter-spacing: 0.05em;
        text-transform: none;
        font-weight: 400;
        opacity: 0.6;
    }

    .footer-copyright-minimal {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(73, 49, 33, 0.1);
        width: 100%;
        font-size: 0.7rem;
        letter-spacing: 0.05em;
        opacity: 0.4;
    }
}

/* Specific Phone Fix for Footer - Remove Grid in favor of centered stack */
@media (max-width: 480px) {
    .footer-links-minimal {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .footer-links-minimal a:last-child {
        grid-column: unset;
        margin-top: 0;
    }
}

.footer-bottom-minimal {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.3;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.05em;
}

/* Responsiveness for Footer */
@media (max-width: 991px) {
    .footer-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav-columns {
        justify-content: center;
        gap: 3rem;
    }
}

/* Reveal Animations */
.reveal-img,
.collage-item,
.content-section,
.project-text,
.amenities-text,
.map-container,
.contact-details {
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.center {
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag-line {
    display: block;
    margin-bottom: 1rem;
}

.amenities-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.amenities-text,
.amenities-image {
    flex: 1;
}

.reveal-img {
    width: 100%;
    height: auto;
    box-shadow: none;
}

.amenities-list {
    list-style: none;
    margin-top: 2rem;
}

.amenities-list li {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: var(--terracotta);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.amenities-list li::before {
    content: 'â€”';
    position: absolute;
    left: 0;
    color: var(--terracotta);
}

@media (max-width: 768px) {
    .main-navbar {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
        /* Hide on mobile for simplicity, can add burger later */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .footer-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        width: 180px;
    }

    .footer-nav-columns {
        flex-direction: column;
        gap: 3rem;
    }

    .phase2-hero .hero-content-centered {
        flex-direction: column;
        gap: 2rem;
        padding: 0 2rem;
    }

    .clef-logo {
        width: 80px;
    }

    .section-title,
    .subsection-title {
        font-size: 2.5rem;
        margin-bottom: 5rem;
    }

    .phase2-hero,
    .content-section,
    .integrated-collage-section,
    .villas-section,
    .maroon-map-section,
    .timeline-section,
    .villas-contact-section {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
    }

    .reveal-page .sections-container {
        scroll-snap-type: none !important;
    }

    .villas-main-image,
    .villas-textures-grid {
        height: 25vh !important;
        min-height: 180px !important;
    }

    .villas-main-image img,
    .texture-item img {
        transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .villas-main-image.swapping img {
        opacity: 0.5;
        transform: scale(0.95);
    }

    .texture-item.swapping img {
        opacity: 0.5;
        transform: scale(0.8);
    }

    /* Timeline wrapper height reset only */
    .timeline-main-wrapper {
        height: auto !important;
        padding: 0;
    }

    .project-subtitle-figma {
        font-size: 1.4rem;
    }

    .collage-grid {
        padding: 0 1rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

/* 
   ==========================================================================
   FINAL PROFESSIONAL OPTIMIZATION (V9 - DEFINITIVE)
   Consolidated Source of Truth for Mobile & Desktop Redesign.
   ========================================================================== 
*/

/* 1. Mobile & Tablet Optimization (max-width: 1024px) */
@media (max-width: 1024px) {
    .background-video-container {
        display: none !important;
    }

    .landing-section.active,
    .landing-section {
        background-color: transparent !important;
        animation: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Teasing Page (index.html) Professional Mobile Fix */
    .home-page .logo-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100vh !important;
        height: -webkit-fill-available !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 20 !important;
    }

    .home-page .logo-center-row {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: auto !important;
        gap: 1.5rem !important;
        margin-top: -5vh !important;
        /* Visual centering adjustment */
    }

    .home-page .click-text {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
        opacity: 0.8 !important;
        visibility: visible !important;
        display: block !important;
    }

    .home-page .logo-stack {
        width: min(300px, 70vw) !important;
        height: auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .home-page .logo-image {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        position: relative !important;
        transform: scale(1.4) !important;
        /* Elite impact scale */
    }

    .home-page .contact-text {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        font-size: 1.2rem !important;
        margin-top: 1rem !important;
        opacity: 0.8 !important;
        visibility: visible !important;
    }

    .home-page .join-text {
        position: relative !important;
        bottom: auto !important;
        margin-top: 3rem !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Original Reveal-page overrides keep their place */
    .reveal-page .logo-container.revealed {
        --logo-size: min(400px, 80vw) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        height: 100% !important;
        text-align: center !important;
        position: relative !important;
    }

    .reveal-page .logo-center-row {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 0.5rem 1rem !important;
        z-index: 5 !important;
    }

    .click-text,
    .contact-text {
        font-size: clamp(1.1rem, 4.5vw, 1.4rem) !important;
        font-weight: 800 !important;
        color: #FFFFFF !important;
        white-space: nowrap !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    }

    /* Timeline events reset for mobile - detailed styles at end of file */
    .timeline-event {
        position: static !important;
        width: 100% !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
    }
}

/* 2. Global Container & Side Margin Fix (All viewports) */
.container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 5rem !important;
    width: 100% !important;
}

.container-footer {
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem !important;
    }
}

/* 3. Professional Horizontal Timeline (Deadline Mockup Version) */
@media (min-width: 1025px) {
    .timeline-section {
        display: flex !important;
    }

    .timeline-main-wrapper {
        display: block !important;
        height: 400px !important;
        width: 100% !important;
    }

    .timeline-axis {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        width: 100% !important;
        height: 2px !important;
        background-color: #493121 !important;
        z-index: 1 !important;
        transform: translateY(-50%) !important;
    }

    /* Arrow Head */
    .axis-arrow {
        position: absolute !important;
        right: -10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 0 !important;
        height: 0 !important;
        border-top: 10px solid transparent !important;
        border-bottom: 10px solid transparent !important;
        border-left: 15px solid #493121 !important;
    }

    .timeline-events .timeline-event {
        display: flex !important;
        flex-direction: row !important;
        /* Row layout: marker then text */
        align-items: flex-start !important;
        z-index: 10 !important;
        width: auto !important;
    }

    /* Distribution to match mockup */
    .timeline-events .timeline-event:nth-of-type(1) {
        left: 10% !important;
    }

    .timeline-events .timeline-event:nth-of-type(2) {
        left: 45% !important;
    }

    .timeline-events .timeline-event:nth-of-type(3) {
        left: 75% !important;
    }

    .timeline-event.above {
        bottom: 50% !important;
        align-items: flex-end !important;
    }

    .timeline-event.below {
        top: 50% !important;
        align-items: flex-start !important;
    }

    .event-marker {
        width: 2px !important;
        height: 120px !important;
        background-color: #493121 !important;
        flex-shrink: 0 !important;
    }

    .event-content {
        display: flex !important;
        flex-direction: column !important;
        text-align: left !important;
        align-items: flex-start !important;
        padding-left: 0.5rem !important;
        /* Increased space from marker */
        margin-bottom: 5rem !important;
        /* Proper separation from axis */
    }

    .timeline-event.below .event-content {
        margin-top: 5rem !important;
        margin-bottom: 0 !important;
    }

    .event-title,
    .event-date {
        font-family: 'Space Mono', monospace !important;
        font-style: normal !important;
        line-height: 1.2 !important;
        color: #493121 !important;
        white-space: nowrap !important;
    }

    .event-title {
        font-size: 0.95rem !important;
        font-weight: 400 !important;
        margin-bottom: 0.3rem !important;
    }

    .event-date {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }
}

/* 4. Contact Section Refinement (Full Definition) */
.villas-contact-section {
    padding: 8rem 0 !important;
    background-image: url('https://grey-elk-790010.hostingersite.com/wp-content/uploads/2026/02/landing_img.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative !important;
    min-height: auto !important;
    height: auto !important;
}

.villas-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    /* Darker overlay for better contrast */
    z-index: 1;
}

.contact-editorial-grid {
    grid-template-columns: 1fr 1.2fr !important;
    /* Slightly more space for card */
    gap: 5rem !important;
    display: grid !important;
    position: relative !important;
    z-index: 2;
    align-items: center !important;
}

.contact-hero {
    color: #FFFFFF !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.contact-hero .location-title {
    color: #FFFFFF !important;
    font-size: 1.5rem !important;
    /* Slightly smaller */
    font-weight: 700 !important;
    font-family: 'Space Mono', monospace !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.1 !important;
    max-width: 400px !important;
}

.editorial-subtitle {
    color: #FFFFFF !important;
    font-family: 'Space Mono', monospace !important;
    font-size: 0.9rem !important;
    /* Slightly smaller */
    line-height: 1.6 !important;
    opacity: 0.8 !important;
    max-width: 380px !important;
}

.editorial-logo {
    position: absolute !important;
    bottom: -11.7rem !important;
    /* Move it lower towards the edge */
    left: 4.5rem !important;
    /* Slightly inside container padding */
    margin: 0 !important;
    z-index: 5 !important;
}

.editorial-logo img {
    max-width: 300px !important;
    /* Increased for impact as seen in image */
    height: auto !important;
    filter: brightness(0) invert(1) !important;
    display: block !important;
}


.contact-card {
    background: #FFFFFF !important;
    padding: 3rem 4rem !important;
    /* Wide padding */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 850px !important;
    /* Even wider */
}

.minimal-form .form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem 2.5rem !important;
    /* Reduced vertical gap */
}

.minimal-form .full-width {
    grid-column: span 2 !important;
}

.villas-contact-section .minimal-form .form-item label {
    font-family: 'Space Mono', monospace !important;
    font-size: 0.6rem !important;
    /* Minimized labels */
    text-transform: none !important;
    /* No uppercase as requested */
    letter-spacing: 0.5px !important;
    color: #493121 !important;
    opacity: 0.5 !important;
    margin-bottom: 0.2rem !important;
    display: block !important;
}

.form-item input,
.form-item textarea {
    font-family: 'Space Mono', monospace !important;
    border: none !important;
    border-bottom: 1px solid rgba(73, 49, 33, 0.2) !important;
    color: #493121 !important;
    width: 100% !important;
    padding: 0.4rem 0 !important;
    /* Minimized padding */
    background: transparent !important;
    font-size: 0.85rem !important;
    /* Minimized input text */
    border-radius: 0 !important;
    transition: border-color 0.3s ease !important;
}

.form-item input:focus,
.form-item textarea:focus {
    border-bottom-color: #493121 !important;
    outline: none !important;
}

.form-submit-row {
    margin-top: 2rem !important;
    display: flex !important;
    justify-content: center !important;
    /* Centered as requested */
}

.text-btn {
    font-family: 'Space Mono', monospace !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    /* Slightly lighter weight */
    color: #493121 !important;
    background: none !important;
    border: none !important;
    border-bottom: 1px solid #493121 !important;
    padding: 0.3rem 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    /* respect HTML casing */
}


@media (max-width: 1024px) {
    .contact-editorial-grid {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
    }

    .contact-card {
        margin: 0 auto !important;
        padding: 2.5rem !important;
    }

    .contact-hero .location-title {
        font-size: 2.5rem !important;
    }
}


/* 5. Footer Polish */
/* 5. Footer Polish - Consolidated above */

.footer-nav-columns {
    display: flex !important;
    gap: 4rem !important;
}

.footer-col h4 {
    font-size: 1rem !important;
    text-transform: none !important;
    letter-spacing: 0.05em !important;
    /* Reduced for better readability */
    margin-bottom: 1.5rem !important;
    /* Slightly tighter */
    /* Slightly more visible */
    font-weight: 700 !important;
}

.footer-col a {
    display: block !important;
    margin-bottom: 0.6rem !important;
    opacity: 0.8 !important;
    font-size: 0.82rem !important;
    transition: opacity 0.3s ease !important;
    text-decoration: none !important;
}

.footer-col a:hover {
    opacity: 1 !important;
}

/* ==========================================================================
   9. GLOBAL RESPONSIVE REFACTOR (MOBILE FIRST/MOBILE OVERRIDES)
   ========================================================================== */

@media (max-width: 1024px) {

    /* 1. Global Reset & Safeguards - Scoped to Reveal Page to avoid breaking Teasing Page */
    .reveal-page .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 2. Grid & Layout Refinement - Force 1-column Stacking */
    .project-grid-refined,
    .amenities-flex,
    .villas-gallery-wrapper,
    .contact-editorial-grid,
    .footer-content-wrapper,
    .footer-nav-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        text-align: center !important;
    }

    .maroon-map-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
        align-items: center !important;
    }

    /* 3. Typography Scaling - Scoped */
    .reveal-page h1,
    .reveal-page .section-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    }

    .reveal-page h2,
    .reveal-page .section-title-centered,
    .reveal-page .project-subtitle-figma,
    .reveal-page .location-title,
    .reveal-page .villas-title {
        font-size: clamp(1.3rem, 6vw, 1.6rem) !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }

    .reveal-page p,
    .reveal-page .section-description-centered,
    .reveal-page .villas-description,
    .reveal-page .location-text p {
        font-size: 15px !important;
        line-height: 1.5 !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 90% !important;
    }

    /* 4. Navigation Adjustments */
    .main-navbar {
        padding: 0 20px !important;
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    /* 5. Component Specifics: Images & Lists */
    .figma-img-wrapper img,
    .villas-main-image img,
    .texture-item img,
    .le-lieu-card img,
    .map-wrapper iframe {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .project-features-list {
        text-align: left !important;
        margin: 2rem auto !important;
        display: table !important;
        /* Center the list block while keeping items together */
        padding: 0 0 0 2rem !important;
        /* Base padding for bullets */
    }

    .project-features-list li {
        width: auto !important;
        /* Remove 100% width to allow 'display: table' to work */
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
        padding-left: 0.5rem !important;
        text-align: left !important;
    }

    /* 6. Component Specifics: Forms & Buttons (Force 1-column) */
    .minimal-form .form-grid {
        display: block !important;
        /* Force items to stack naturally */
    }

    .form-item {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    .form-item label {
        text-align: left !important;
        display: block !important;
        margin-bottom: 5px !important;
    }

    .form-item input,
    .form-item textarea {
        min-height: 44px !important;
    }

    .text-btn {
        width: auto !important;
        text-align: center !important;
        font-size: 1rem !important;
        padding: 0.8rem 0 !important;
    }

    /* 7. Component Specifics: Footer */
    .main-footer {
        padding-top: 2rem !important;
        background-color: transparent !important;
        /* Ensure cohesive background */
    }

    .footer-content-wrapper {
        padding: 2rem 20px !important;
        align-items: center !important;
    }

    .footer-logo {
        margin-bottom: 2rem !important;
    }

    .footer-nav-columns {
        width: 100% !important;
        gap: 2rem !important;
    }

    .footer-col {
        align-items: center !important;
        margin-bottom: 1.5rem !important;
    }

    .footer-col h4 {
        margin-bottom: 0.8rem !important;
    }

    .footer-bottom-minimal {
        text-align: center !important;
        padding: 1.5rem 0 !important;
    }

    /* 8. Component Specifics: Le Lieu (Critical Overlap Fix) */
    .le-lieu-redesign-section {
        height: auto !important;
        min-height: auto !important;
        padding: 4rem 0 !important;
        display: block !important;
    }

    .le-lieu-bg-container {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        margin-top: 0 !important;
        padding: 3rem 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    .le-lieu-cards-wrapper {
        position: relative !important;
        top: 0 !important;
        margin-top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 !important;
        margin-bottom: 3rem !important;
    }

    .le-lieu-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        /* Let it wrap naturally */
    }

    .le-lieu-text-content {
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Timeline Redundant Styles Removed - consolidated above */

    /* 10. Component Specifics: Villas & Map */
    .villas-section {
        height: auto !important;
        min-height: auto !important;
        padding: 4rem 0 !important;
    }

    .villas-main-image,
    .villas-textures-grid {
        height: auto !important;
        min-height: auto !important;
    }

    .texture-item {
        height: 150px !important;
    }

    .maroon-map-section {
        height: auto !important;
        min-height: auto !important;
        padding: 4rem 0 !important;
    }

    .location-title {
        margin-bottom: 2rem !important;
    }

    /* 11. Final Polish: Spacing & Overlaps - Scoped to Reveal Section */
    .reveal-page section {
        padding: 4rem 0;
        position: relative;
        overflow: visible;
    }

    .villas-contact-section {
        padding: 6rem 0 10rem !important;
        /* Extra space for absolute logo */
    }

    .editorial-logo {
        bottom: 1rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 180px !important;
    }

    .editorial-logo img {
        max-width: 180px !important;
    }
}

/* ==========================================================================
   10. MOBILE PHONE RESPONSIVE (max-width: 768px) â€” PHONE-FIRST FIX
   Targets reveal.html sections only. Desktop styles are NOT affected.
   ========================================================================== */

@media (max-width: 768px) {

    /* === HERO SECTION === */
    .phase2-hero {
        padding-top: 80px;
        min-height: auto;
        height: auto;
    }

    .hero-frame {
        width: 100%;
        height: 60vw;
        min-height: 260px;
        max-height: 70vh;
        border-left: none;
        border-right: none;
    }

    .hero-content-centered {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .hero-key-logo {
        width: 70px !important;
    }

    .hero-link {
        font-size: 13px;
    }

    /* === PROJECT SECTION === */
    .content-section,
    .project-section {
        min-height: auto;
        height: auto;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .villas-section .container {
        padding: 2rem 5px !important; /* Fixed 5px gap from device frame */
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .section-header-centered {
        margin-bottom: 2.5rem;
    }

    .project-grid-refined {
        flex-direction: column;
        gap: 2rem;
        margin-top: 1.5rem;
        text-align: center;
    }

    .figma-img-wrapper img {
        box-shadow: none !important;
    }

    /* === LE LIEU SECTION === */
    .le-lieu-redesign-section {
        min-height: auto;
        height: auto;
        padding: 0;
        overflow: visible;
    }

    .le-lieu-bg-container {
        width: 100%;
        margin-top: 0;
        padding: 2.5rem 1rem 3rem;
        min-height: auto;
    }

    .le-lieu-cards-wrapper {
        position: relative;
        top: 0;
        margin-top: 0;
        /* 2 images per row on mobile */
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.6rem;
        padding: 0;
        margin-bottom: 2rem;
        flex-direction: unset;
    }

    .le-lieu-card {
        width: 100%;
        max-width: 100%;
        height: auto !important;
        aspect-ratio: 2 / 3 !important;
        /* Force portrait format to prevent cropping */
        min-height: auto !important;
        background-color: transparent !important;
        /* avoid black showing */
        border: 2px solid #FFFFFF;
    }

    .le-lieu-card.framed-y {
        border: none !important;
        border-top: 2px solid #FFFFFF !important;
        border-bottom: 2px solid #FFFFFF !important;
        box-shadow: none !important;
    }

    .le-lieu-card img {
        display: block !important;
    }

    /* Center the 3rd (odd last) card */
    .le-lieu-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 0.3rem) !important;
        /* Force exact same width as siblings */
        max-width: none !important;
        justify-self: center;
    }

    .le-lieu-text-content {
        max-width: 100%;
        padding: 0 1.2rem;
    }

    .le-lieu-main-title {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }

    .le-lieu-description {
        font-size: 0.88rem;
        line-height: 1.8;
        text-align: center;
        opacity: 0.85;
    }

    /* === PROFESSIONAL TEXT SIZING â€” ALL SECTIONS === */

    /* Section generic titles */
    .section-title-centered {
        font-size: 1.05rem !important;
        letter-spacing: 1.8px !important;
        margin-bottom: 1rem !important;
    }

    /* Project section */
    .section-description-centered {
        font-size: 0.88rem !important;
        line-height: 1.75 !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }

    .project-subtitle-figma {
        font-size: 1rem !important;
        margin-bottom: 1.2rem !important;
        text-align: center;
    }

    .project-features-list li {
        font-size: 0.88rem !important;
        line-height: 1.7 !important;
        margin-bottom: 0.9rem !important;
        padding-left: 0 !important;
        text-align: left !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 0.8rem;
    }

    .project-features-list li::before {
        content: "•" !important;
        position: static !important;
        color: var(--terracotta) !important;
        font-size: 1.2rem !important; /* Larger dots */
        line-height: 0.8 !important; /* Align with first line of text */
    }

    /* Villas */
    .villas-title {
        font-size: 1.05rem !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 0.8rem !important;
    }

    .villas-description {
        font-size: 0.88rem !important;
        line-height: 1.75 !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }

    /* Location / map */
    .location-title {
        font-size: 1.1rem !important;
        line-height: 1.35 !important;
        margin-bottom: 1.2rem !important;
    }

    .location-text p {
        font-size: 0.88rem !important;
        line-height: 1.7 !important;
        margin-bottom: 0.8rem !important;
    }

    /* Timeline */
    .event-title {
        font-size: 0.85rem !important;
    }

    .event-date {
        font-size: 0.95rem !important;
    }

    /* Contact */
    .contact-hero .location-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }

    .editorial-subtitle {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        max-width: 85% !important;
        margin: 0 auto 1.2rem !important;
    }

    .form-item label {
        font-size: 0.72rem !important;
    }

    .form-item input,
    .form-item textarea {
        font-size: 0.9rem !important;
    }

    .text-btn {
        font-size: 0.95rem !important;
    }

    /* === VILLAS SECTION === */
    .villas-section {
        padding: 3rem 0;
        min-height: auto;
        height: auto;
    }

    .villas-gallery-wrapper {
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem !important;
        position: relative !important;
        padding: 0 !important; /* Spacing handled by container for 5px precision */
        box-sizing: border-box !important;
    }

    .villas-grid {
        grid-template-columns: 1fr !important; /* Stack vertically while preserving grid logic */
        gap: 1.5rem !important;
        padding: 0 !important;
    }

    .villas-main-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        border: 2.5px solid #FFFFFF !important; /* Smaller architectural frame */
        box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
        overflow: hidden !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .villas-textures-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding: 10px 0 25px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .texture-item {
        flex: 0 0 100px !important;
        height: 100px !important;
        border: 2.5px solid #FFFFFF !important; /* Smaller architectural frame */
        box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
        scroll-snap-align: start !important;
    }

    /* Glassmorphism Navigation Buttons - Final Refinement */
    .villas-nav-btn {
        display: flex !important;
        position: absolute !important;
        top: 35% !important; /* Visual center of the house image */
        transform: translateY(-50%) !important;
        width: 46px !important;
        height: 46px !important;
        background: rgba(255, 255, 255, 0.45) !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        border-radius: 50% !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
        z-index: 10 !important;
    }

    /* Professional Terracotta Icons - Matching Desktop but Bolder */
    .villas-nav-btn.prev { left: 15px !important; }
    .villas-nav-btn.next { right: 15px !important; }

    .villas-nav-btn svg,
    .nav-icon {
        width: 22px !important;
        height: 22px !important;
        stroke: var(--terracotta) !important; /* Brand Consistency */
        stroke-width: 2.5 !important; /* Extra 'Claire' presence */
        opacity: 1 !important;
    }

    .villas-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .villas-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* === MAP SECTION === */
    .maroon-map-section {
        min-height: auto;
        height: auto;
        padding: 3rem 0 !important;
    }

    .maroon-map-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    .location-info {
        order: 1;
        padding-top: 3rem !important;
    }

    .map-wrapper {
        order: 2;
        max-width: 480px !important;
        width: 100% !important;
        margin: 0 auto !important;
        aspect-ratio: 1 / 1;
        border: 2px solid #FFFFFF;
        box-shadow: 0 15px 45px rgba(0,0,0,0.15);
        background-color: #FFFFFF;
    }

    .map-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .location-title {
        font-size: 1.2rem !important;
        margin-bottom: 1.2rem !important;
        text-align: center !important;
    }

    .location-text {
        font-size: 0.9rem !important;
        text-align: center !important;
    }

    .location-text p {
        margin-bottom: 1rem !important;
    }

    /* === TIMELINE SECTION === */
    .timeline-section {
        min-height: auto;
        height: auto;
        padding: 3rem 0;
    }

    .timeline-main-wrapper {
        height: auto;
        margin: 1rem auto;
    }

    /* === CONTACT SECTION === */
    .villas-contact-section {
        padding: 5rem 0 12rem !important;
        position: relative !important;
        min-height: auto !important;
        height: auto !important;
    }

    .contact-editorial-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    .contact-hero {
        position: static !important;
        padding-bottom: 0 !important;
    }

    .contact-hero .location-title {
        font-size: 1.3rem !important;
        max-width: 100% !important;
    }

    .editorial-subtitle {
        font-size: 0.85rem !important;
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-card {
        padding: 2rem 1.5rem !important;
        max-width: 100% !important;
    }

    .minimal-form .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .minimal-form .full-width {
        grid-column: span 1 !important;
    }

    .editorial-logo {
        bottom: -7rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .editorial-logo img {
        max-height: 100px !important;
        width: auto !important;
    }

    /* === FOOTER === */
    .main-footer {
        padding: 2rem 0 0rem;
    }

    .footer-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem 1rem;
        text-align: center;
    }

    .footer-nav-columns {
        flex-direction: column !important;
        gap: 2rem !important;
        align-items: center;
    }

    .footer-brand-title {
        font-size: 1.8rem;
    }
}

/* Extra-small phones (max-width: 480px) */
@media (max-width: 480px) {

    /* Hero */
    .hero-frame {
        height: 65vw;
        min-height: 220px;
    }

    .hero-key-logo {
        width: 55px !important;
    }

    /* Le Lieu cards wrap tightly on very small screens */
    .le-lieu-card {
        height: auto !important;
        min-height: auto !important;
    }

    /* Villas */
    .villas-main-image {
        height: 65vw;
        min-height: 180px;
    }

    .texture-item {
        height: 32vw;
        min-height: 100px;
    }

    /* Contact */
    .villas-contact-section {
        padding: 4rem 0 11rem !important;
        position: relative !important;
    }

    .contact-card {
        padding: 1.5rem 1rem !important;
    }

    /* Section titles */
    .section-title-centered,
    .villas-title,
    .le-lieu-main-title {
        font-size: 1.1rem !important;
    }

    .section-description-centered,
    .villas-description,
    .le-lieu-description {
        font-size: 0.88rem !important;
    }
}

/* =======================================================================
   â˜… MOBILE TIMELINE â€” Single Clean Source of Truth
   Professional vertical timeline for phones.
   LABEL (left) ........... DATE (right) on one clean row.
   Desktop untouched â€” all rules scoped to .timeline-section
   ======================================================================= */
@media (max-width: 1024px) {

    /* --- Section wrapper --- */
    .timeline-section {
        padding: 3rem 1.5rem !important;
        display: block !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* Container: remove all centering */
    .timeline-section .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Wrapper: relative so spine can be absolute inside it */
    .timeline-section .timeline-main-wrapper {
        position: relative !important;
        display: block !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Spine: thin 1px vertical line on the far left */
    .timeline-section .timeline-axis {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 1px !important;
        height: 100% !important;
        background-color: #493121 !important;
        opacity: 0.15 !important;
        transform: none !important;
        z-index: 1 !important;
    }

    /* Show arrow on mobile axis (bottom) */
    .timeline-section .axis-line {
        display: none !important;
    }

    .timeline-section .axis-arrow {
        display: block !important;
        position: absolute !important;
        bottom: -5px !important;
        left: -5.5px !important;
        transform: rotate(90deg) !important;
        border-left-width: 8px !important;
        border-top-width: 6px !important;
        border-bottom-width: 6px !important;
        z-index: 5 !important;
    }

    /* Events list: tight flex column, no gap */
    .timeline-section .timeline-events {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        z-index: 2 !important;
    }

    /* Each event: one horizontal row â€” label left | date right */
    .timeline-section .timeline-event,
    .timeline-section .timeline-event.above,
    .timeline-section .timeline-event.below {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        padding: 1.25rem 0 1.25rem 24px !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(73, 49, 33, 0.08) !important;
        box-sizing: border-box !important;
    }

    .timeline-section .timeline-events .timeline-event:last-child {
        border-bottom: none !important;
    }

    /* Dot: small circle centered on the spine */
    .timeline-section .event-marker {
        position: absolute !important;
        left: -5px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 9px !important;
        height: 9px !important;
        background-color: #493121 !important;
        border-radius: 50% !important;
        box-shadow: 0 0 0 4px #f5f0ea !important;
        z-index: 10 !important;
        flex-shrink: 0 !important;
    }

    /* Content row: Label and Date stacked on new lines */
    .timeline-section .event-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        gap: 0.4rem !important;
    }

    /* Label: tiny, muted, uppercase, no wrap ever */
    .timeline-section .event-title {
        font-family: 'Space Mono', monospace !important;
        font-size: 0.6rem !important;
        font-weight: 400 !important;
        color: rgba(73, 49, 33, 0.4) !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    /* Date: bold, on its own line */
    .timeline-section .event-date {
        font-family: 'Space Mono', monospace !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #493121 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        text-align: left !important;
        flex-shrink: 0 !important;
    }
}

/* =======================================================================
   â˜… MOBILE ICON & SECTION SPACING
   ======================================================================= */
@media (max-width: 1024px) {

    .section-signature-icon {
        width: 20px !important;
        height: auto !important;
        margin-bottom: 1rem !important;
    }

    .content-section,
    .project-section,
    .villas-section,
    .maroon-map-section,
    .le-lieu-redesign-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .section-header-centered {
        margin-bottom: 2rem !important;
    }

    .section-title-centered {
        font-size: 1.15rem !important;
        margin-bottom: 1rem !important;
        letter-spacing: 1.5px !important;
    }

    .section-description-centered {
        font-size: 0.85rem !important;
        line-height: 1.7 !important;
    }
}

/* =======================================================================
   â˜… MOBILE HEADER & HERO LAYOUT â€” Definitive Fix
   Resolves overlap between fixed navbar and hero content.
   ======================================================================= */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px !important;
    }

    /* 1. FORCE COMPACT HEADER (60px) */
    .reveal-page .main-navbar {
        padding: 0 1.5rem !important;
        height: 60px !important;
        min-height: 60px !important; 
        max-height: 60px !important;
        background-color: rgba(252, 249, 245, 0.98) !important;
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(10px);
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        z-index: 1000 !important;
        border-bottom: 1px solid rgba(73, 49, 33, 0.05) !important;
    }

    .reveal-page .navbar-logo {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .reveal-page .navbar-logo img {
        height: 20px !important; 
        width: auto !important;
        margin: 0 !important;
    }

    .reveal-page .logo-subtitle {
        font-size: 5px !important;
        margin-top: 0 !important;
        line-height: 1 !important;
        letter-spacing: 1px !important;
    }

    .mobile-menu-toggle {
        width: 24px !important;
        height: 18px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 !important;
    }

    .mobile-menu-toggle span {
        height: 1.5px !important;
        width: 100% !important;
    }

    /* 2. FIX OVERLAP & SECTION SPACING (Close the Gaps) */
    /* ── HIGH-FIDELITY DUAL HERO ── */
    #hero {
        position: relative !important;
        width: 100% !important;
        height: 100dvh !important;
        overflow: hidden !important;
        padding: 0 !important;
        background: #000 !important;
    }

    .hero-dual-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        position: relative;
        flex-direction: column; /* Mobile stack */
    }

    .hero-divider {
        position: absolute;
        z-index: 10;
        pointer-events: none;
        background: rgba(255,255,255,0.2);
        left: 0; right: 0; top: 50%;
        height: 1px; width: 100%;
        transform: scaleX(0);
        transform-origin: left;
        animation: heroLineAcross 1.1s 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    }

    @keyframes heroLineAcross { to { transform: scaleX(1); } }

    .hero-panel {
        flex: 1;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        transition: flex 0.95s cubic-bezier(0.76, 0, 0.24, 1);
        -webkit-tap-highlight-color: transparent;
    }

    /* Stable 50/50 split */
    .hero-dual-wrapper.active-side-left  .panel-right { filter: brightness(0.2); }
    .hero-dual-wrapper.active-side-right .panel-left  { filter: brightness(0.2); }

    .hero-panel video {
        position: absolute; inset: 0;
        width: 100%; height: 100%;
        object-fit: cover;
        transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1), filter 1.1s ease;
        filter: brightness(0.5) saturate(0.85);
    }

    .hero-panel.is-active video {
        transform: scale(1.05);
        filter: brightness(0.85) saturate(1);
    }

    .panel-overlay {
        position: absolute; inset: 0; z-index: 2;
        background: linear-gradient(to bottom, rgba(73,49,33,0.4) 0%, transparent 100%);
        transition: opacity 0.9s ease;
    }
    .panel-right .panel-overlay {
        background: linear-gradient(to top, rgba(73,49,33,0.4) 0%, transparent 100%);
    }

    .hero-panel-label {
        position: absolute;
        z-index: 14;
        font-family: 'Space Mono', monospace;
        font-size: 10px;
        letter-spacing: 0.4em;
        text-transform: uppercase;
        color: rgba(252, 249, 245, 0.6);
        top: 85px; left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        opacity: 0;
        animation: heroFadeIn 0.9s 1.4s ease forwards;
    }

    .hero-panel-cta {
        position: absolute;
        bottom: 50px; 
        left: 20px; /* Tighter mobile margin */
        z-index: 15;
        display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
        top: auto;
        transform: none;
    }

    .hero-panel-link {
        font-family: 'Space Mono', monospace;
        font-size: 14px;
        color: #FFFFFF;
        text-decoration: none;
        padding-bottom: 5px;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

    .play-btn-circle {
        width: 42px; height: 42px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.4);
        display: flex; align-items: center; justify-content: center;
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(8px);
        transition: all 0.4s ease;
    }
    .hero-panel.is-active .play-btn-circle {
        border-color: var(--snow-white);
        background: rgba(255,255,255,0.25);
        transform: scale(1.1);
    }

    .hero-center-logo {
        position: absolute;
        left: 50%; top: 50%;
        transform: translate(-50%, -50%);
        z-index: 20;
        pointer-events: none;
        opacity: 0;
        animation: heroFadeIn 1s 2s ease forwards;
    }

    @keyframes heroFadeIn { to { opacity: 1; } }

    /* Specific spacing between sections */
    .content-section,
    .project-section,
    .villas-section,
    .maroon-map-section,
    .le-lieu-redesign-section {
        padding-top: 1.5rem !important; /* BRING CONTENT CLOSER TO HERO */
        padding-bottom: 1.5rem !important;
    }

    .section-signature-icon {
        width: 16px !important;
        height: auto !important;
        margin-bottom: 0.5rem !important;
    }

    .section-header-centered {
        margin-bottom: 1rem !important;
    }

    .section-title-centered {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
}