:root {
    /* User Recommended Palette */
    --bg-primary: #FAFAF8;
    /* Warm White */
    --bg-secondary: #E2E0EE;
    /* Lavender Mist */
    --accent-mint: #A2D8CB;
    /* Mint Teal */
    --accent-blue: #A6C9D8;
    /* Soft Blue */
    --accent-pink: #F2C6CC;
    /* Blush Pink */
    --accent-peach: #F7D8C9;
    /* Soft Peach */
    --accent-forest: #1a3927;
    /* Deep Forest Green */
    --text-dark: #6B5F5B;
    /* Soft Cocoa */
    --text-muted: rgba(107, 95, 91, 0.7);

    /* Villa Specific Accents */
    --accent-type-a: #5e0032;
    /* Burgundy */
    --accent-type-b: #1a3927;
    /* Forest Green */
    --accent-type-c: #91785b;
    /* Bronze */
    --accent-fuoco: #C02B0A;
    /* Flame Red */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-hand: 'Oooh Baby', cursive;
    --font-sans: 'Montserrat', sans-serif;

    /* Spacing & Transitions */
    --container-padding: 6vw;
    --br-main: 2rem;
    --easing: cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: 1.2s var(--easing);
    --transition-med: 0.6s var(--easing);
    --transition-fast: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Navigation Menu & Overlay --- */
.nav-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 20px;
    /* Compact height */
    position: relative;
    z-index: 2001;
    /* Above overlay */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-line {
    width: 100%;
    height: 1px;
    background-color: var(--text-dark);
    transition: transform 0.4s var(--easing), opacity 0.4s var(--easing), background-color 0.4s;
    transform-origin: center;
}

.nav-menu-btn:hover .burger-line {
    background-color: var(--accent-mint);
}

/* Transform to Close Icon */
/* Transform to Close Icon */
body.menu-open .burger-line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

body.menu-open .burger-line:nth-child(2) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Ensure button is white when nav is white, EVEN if menu is open (or maybe dark if menu background is light? Menu bg is primary (white-ish)) */
/* If menu overlay is white, button should be dark. */
/* But if we are in hero section (white nav), button starts white. */
/* When menu opens, overlay covers hero, so button should be dark to be visible on overlay. */

/* Ensure button is visible when menu is open */
body.menu-open .nav-menu-btn .burger-line {
    background-color: var(--text-dark) !important;
}

/* Specific fix: If the nav was white (hero section), the button might be invisible if not overridden correctly. 
   The above !important usually handles it, but let's be safe against specificity issues if .nav-white is applied later. */
body.menu-open .nav-fixed {
    mix-blend-mode: normal !important;
    /* Ensure the nav container itself doesn't hide things */
}

/* Overlay Styles */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--easing), visibility 0.6s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Villa Typology Logos (Sprites using Clip-Path) --- */
.butterfly-logo {
    display: block;
    width: 250px;
    height: 150px;
    object-fit: none;
    margin: 0 auto 1.5rem;
    transition: transform var(--transition-med);
}

.butterfly-logo-a {
    object-position: 0% 50%;
    width: 33.3%;
}

.butterfly-logo-b {
    object-position: 50% 50%;
    width: 33.3%;
}

.butterfly-logo-c {
    object-position: 100% 50%;
    width: 33.3%;
}

/* Layout adjustments for typology info */
.typology-info .hand-written {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 250, 248, 0.1);
}

.stat-item h4 {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item p {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.menu-content {
    text-align: center;
    padding-top: 80px;
}

.menu-links {
    list-style: none;
}

.menu-links li {
    margin: 1.5rem 0;
    overflow: hidden;
}

.menu-links a {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-dark);
    text-decoration: none;
    transform: translateY(100%);
    transition: color 0.3s;
    /* GSAP will handle the translation */
}

.menu-links a:hover {
    color: var(--accent-mint);
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Global Texture Overlay --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 2rem 0;
}

.hand-written {
    font-family: var(--font-hand);
    font-size: 1.5em;
    color: var(--accent-forest);
}

.display-large {
    font-size: clamp(4rem, 10vw, 12rem);
    letter-spacing: -0.02em;
}

/* --- Layout Components --- */
section {
    position: relative;
    padding: 10vh var(--container-padding);
    min-height: auto;
    /* Allow sections to collapse if content is short */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* --- Navigation --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: multiply;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-decoration: none;
    color: var(--text-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    /* Added to center image if needed */
    align-items: center;
    /* Center vertically */
    transition: opacity 0.5s var(--easing), visibility 0.5s;
}

.logo.is-hidden {
    opacity: 0;
    visibility: hidden;
}

/* When menu is open, lower nav-fixed z-index so it sits below menu overlay */
body.menu-open .nav-fixed {
    z-index: 1;
}

/* Hide logo when menu is open for cleaner UX and to fix overlap */
body.menu-open .logo {
    opacity: 0;
    visibility: hidden;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* --- Hero Section (Sophisticated Reveal) --- */
.hero-reveal {
    height: 100vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.hero-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(15% 20% 15% 20% round var(--br-main));
    transition: clip-path var(--transition-slow);
}

.hero-mask.active {
    clip-path: inset(0% 0% 0% 0% round 0px);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform var(--transition-slow);
}

.hero-mask.active .hero-image {
    transform: scale(1);
}

/* Ensure text is white when image is full screen */
.hero-mask.active~.hero-content-wrap .hero-title,
.hero-mask.active~.hero-content-wrap .hand-written {
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Fix for fixed nav items if they overlay the hero image */
/* Using body class added by JS since CSS sibling selector fails across DOM text nodes */
body.nav-white .nav-fixed {
    mix-blend-mode: normal;
    /* "multiply" would hide white text */
}

body.nav-white .nav-fixed .logo,
body.nav-white .nav-fixed .hand-written,
body.nav-white .nav-fixed .btn-premium {
    color: #FFFFFF !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    /* Boost legibility */
}

body.nav-white .nav-fixed .logo img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

body.nav-white .nav-fixed .btn-premium {
    border-color: #FFFFFF;
    /* If it has a border */
    background: rgba(255, 255, 255, 0.2) !important;
    /* Frosted white button */
    backdrop-filter: blur(10px);
    color: #FFFFFF;
}

.hero-content-wrap {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--bg-primary);
}

.hero-title span {
    display: block;
}

/* --- Intro Section with Atmosphere --- */
.intro-section {
    padding: 15vh var(--container-padding);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6vw;
    align-items: center;
}

.intro-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.intro-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    border-radius: var(--br-main);
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.intro-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s var(--easing);
}

.intro-visual:hover img {
    transform: scale(1.05);
}

.intro-deco-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: calc(var(--br-main) - 10px);
    pointer-events: none;
    z-index: 1;
}

.intro-signature-leaf {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    color: var(--accent-forest);
    opacity: 0.8;
    z-index: 2;
    transform: rotate(-15deg);
}

/* Floating blurred leaf for depth */
.intro-section::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background-image: url('https://images.unsplash.com/photo-1596327038162-8182b8344f60?auto=format&fit=crop&q=80&w=300');
    /* Use a leaf/nature texture */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.08;
    filter: blur(4px);
    z-index: 0;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .intro-visual {
        justify-content: center;
    }

    .intro-img-wrapper {
        height: 500px;
    }
}

/* --- Photo Flip Section (Split then Flip) --- */
.split-section {
    height: 400vh;
    /* Extra scroll for the flip */
    background: var(--bg-primary);
    position: relative;
    padding: 0 0 15vh 0;
    /* Bottom padding to create space before next section on desktop */
    display: block;
    /* Override default flex centering */
}

.split-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    perspective: 2500px;
    padding-top: 5vh;
    /* Manual spacer for the title */
}

.split-container {
    position: relative;
    width: 90vw;
    max-width: 1300px;
    height: 70vh;
    display: flex;
    justify-content: center;
}

.card-perspective {
    position: absolute;
    width: 33.4%;
    /* 0.1% overlap to remove the 1px seam */
    height: 100%;
    perspective: 2000px;
    transform-style: preserve-3d;
}

/* Position cards initially stacked or next to each other */
.card-perspective:nth-child(1) {
    left: 0%;
    z-index: 3;
}

.card-perspective:nth-child(2) {
    left: 33.3%;
    z-index: 2;
}

/* Slight pull left */
.card-perspective:nth-child(3) {
    left: 66.6%;
    z-index: 1;
}

/* Slight pull left */

.split-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--easing);
    will-change: transform;
}

.split-card-front,
.split-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0;
    /* Start sharp */
    overflow: hidden;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    /* Start no shadow */
    transition: border-radius 0.6s var(--easing), box-shadow 0.6s var(--easing);
}

.split-card-inner.is-card .split-card-front,
.split-card-inner.is-card .split-card-back {
    border-radius: 2.5rem;
    /* Turn into rounded cards */
    box-shadow: none;
    /* Removed shadow to fix sharp edge issue */
}

.split-card-front {
    background: var(--bg-secondary);
}

.split-card-front img {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    /* Exactly 3 cards wide */
    height: 100%;
    object-fit: cover;
}

.card-perspective:nth-child(1) .split-card-front img {
    left: 0;
}

.card-perspective:nth-child(2) .split-card-front img {
    left: -100%;
}

.card-perspective:nth-child(3) .split-card-front img {
    left: -200%;
}

.split-card-back {
    transform: rotateY(180deg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card Content Styling from Reference */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-icon {
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

.card-number {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    width: 30px;
    height: 30px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.card-main h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.card-main p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Back Colors based on Pastel Palette + Reference contrast */
.card-back-01 {
    background-color: #f0ede9;
    color: var(--text-dark);
}

.card-back-02 {
    background-color: var(--accent-forest);
    color: #FAFAF8;
}

.card-back-02 .hand-written {
    color: #FAFAF8;
}

.card-back-02 p {
    color: rgba(250, 250, 248, 0.8);
}

.card-back-03 {
    background-color: var(--accent-peach);
    color: var(--text-dark);
}

.card-back-03 .hand-written {
    color: var(--text-dark);
}

/* Interactive Hover state ( SSR-Interactive ) */
.split-card-inner.ssr-interactive {
    cursor: pointer;
}

/* Apply hover to the CONTENT (Child) so we don't overwrite GSAP's positioning on the parent */
.split-card-inner.ssr-interactive:hover .split-card-back {
    transform: rotateY(180deg) translateY(-4px) scale(1.005);
    transition: transform 0.4s var(--easing);
}

.split-card-inner.ssr-interactive:hover .split-card-front {
    /* Optional: if front is ever visible during interaction, lift it too, 
       but usually we are fully flipped here */
    transform: translateY(-4px) scale(1.005);
}

/* --- Atmosphere Masonry --- */
.atmosphere-section {
    background: var(--bg-secondary);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--br-main);
    isolation: isolate;
    /* Improves clipping performance for rounded corners */
}

.masonry-item img {
    width: 100%;
    height: 120%;
    /* Increased height for parallax safety */
    object-fit: cover;
    will-change: transform;
    position: relative;
    top: 0;
    /* Removed border-radius here to prevent warping during animation */
}

.m-1 {
    grid-column: 1 / 6;
    grid-row: span 2;
    height: 70vh;
}

.m-2 {
    grid-column: 7 / 12;
    grid-row: span 1;
    height: 40vh;
    margin-top: 10vh;
}

.m-3 {
    grid-column: 7 / 10;
    grid-row: span 1;
    height: 40vh;
}

.m-4 {
    grid-column: 10 / 13;
    grid-row: span 1;
    height: 30vh;
    align-self: end;
}

/* --- Buttons --- */
.btn-premium {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--accent-mint);
    /* Swapped: Green as default */
    color: var(--text-dark);
    /* Swapped: Dark text as default */
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: color var(--transition-med);
    z-index: 1;
    border-radius: var(--br-main);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-forest);
    /* Deep Forest Green as hover fill */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--easing), height 0.6s var(--easing);
    z-index: -1;
}

.btn-premium:hover {
    color: var(--bg-primary);
    /* Swapped: White/Light text on hover */
}

.btn-premium:hover::before {
    width: 300%;
    height: 500%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: center;
}

/* --- Heritage Section --- */
.heritage-section {
    background: var(--bg-primary);
}

.heritage-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Stack visually */
    border-radius: var(--br-main);
    overflow: hidden;
    position: relative;
    min-height: 70vh;
    /* Ensure tall enough canvas */
}

/* Image Background Layer */
.heritage-image {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.heritage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Container (heritage-grid) handles radius */
}

/* Dark Gradient Overlay for Readability */
.heritage-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

/* Content Overlay Layer */
.heritage-content {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    z-index: 2;
    padding: 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    /* Restrict width for readability */
}

/* Update Text Colors for Overlay */
.heritage-content .hand-written,
.heritage-content h2,
.heritage-content p {
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.heritage-content p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.heritage-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* --- Commerces Section --- */
.commerces-section {
    background: var(--bg-secondary);
}

.commerces-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    align-items: center;
}

.commerces-image {
    position: relative;
    padding: 1rem;
    /* Space for the border offset */
    overflow: hidden;
    border-radius: var(--br-main);
    isolation: isolate;
}

.commerces-image::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-dark);
    /* Fallback or define accent-dark if needed, using text-dark for now */
    border-color: var(--text-dark);
    opacity: 0.3;
    z-index: 0;
    transform: translate(1rem, -1rem);
    /* Offset effect */
}

.commerces-image img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* --- Localisation Section (Parallax Window) --- */
.localisation-section {
    background: var(--bg-primary);
}

.localisation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    align-items: center;
}

.infrastructure-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    /* Force identical row heights */
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
    /* Ensure cards fill the row height completely */
}

.infra-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--br-main);
    transition: transform var(--transition-med), background var(--transition-med);
}

.infra-item:hover {
    transform: translateY(-4px);
    background: var(--accent-mint);
}

.infra-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent-forest);
}

.infra-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Map Styling */
.map-wrapper {
    position: relative;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--br-main);
    overflow: hidden;
}

.map-container {
    position: relative;
    border-radius: calc(var(--br-main) - 1rem);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    background: #e5e3df;
    /* Map placeholder color */
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%) contrast(1.1) brightness(0.95);
    transition: filter 0.6s var(--easing), transform 0.6s var(--easing);
}

.map-container:hover .map-image {
    filter: sepia(0%) contrast(1) brightness(1);
    transform: scale(1.05);
}

.map-deco-frame {
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: calc(var(--br-main) - 1.5rem);
    pointer-events: none;
    z-index: 2;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.2rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(162, 216, 203, 0.3);
    transition: transform 0.4s var(--easing), background 0.4s var(--easing);
}

.floating-badge:hover {
    transform: scale(1.1);
    background: #fff;
}

.badge-top-right {
    top: 2rem;
    right: -1rem;
}

.badge-bottom-left {
    bottom: 2rem;
    left: -1rem;
}

.floating-badge .badge-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
    color: var(--accent-forest);
}

.floating-badge .badge-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-weight: 600;
}

@media (max-width: 992px) {
    .localisation-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .badge-top-right {
        right: 1rem;
    }

    .badge-bottom-left {
        left: 1rem;
    }
}

/* --- Typologies Section --- */
.typologies-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Floor plan watermark */
.typologies-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&q=80');
    /* Architectural sketch */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    transform: translate(-50%, -50%) scale(1.5);
    pointer-events: none;
    filter: invert(1);
    /* Make it look like a line drawing if possible, or just subtle */
}

.typologies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.typologie-card {
    background: var(--bg-primary);
    padding: 3rem 2rem;
    border-radius: var(--br-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.typologie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(107, 95, 91, 0.15);
}

.typo-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--accent-forest);
    margin-bottom: 1.5rem;
}

.typologie-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.typologie-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.typo-options .hand-written {
    font-size: 0.9rem;
    color: var(--accent-forest);
}

/* --- Developer Section --- */
.developer-section {
    background: var(--accent-peach);
    color: var(--text-dark);
}

.developer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    align-items: start;
}

.developer-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dev-badge {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--br-main);
    border: 1px solid rgba(107, 95, 91, 0.1);
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.dev-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(107, 95, 91, 0.15);
    border-color: rgba(107, 95, 91, 0.2);
}

.dev-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.dev-badge:nth-child(1) .dev-icon {
    color: var(--text-dark);
}

.dev-badge:nth-child(2) .dev-icon {
    color: var(--text-dark);
}

.dev-badge:nth-child(3) .dev-icon {
    color: var(--text-dark);
}

.dev-badge:nth-child(4) .dev-icon {
    color: var(--text-dark);
}

.dev-badge h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.dev-badge p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Main Footer --- */
.main-footer {
    padding: 8rem var(--container-padding) 4rem;
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4vw;
    margin-bottom: 6rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.footer-nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s var(--easing), transform 0.3s var(--easing);
    display: inline-block;
}

.footer-nav-links a:hover {
    color: var(--accent-forest);
    transform: translateX(5px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    opacity: 0.6;
}

.contact-value {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
}

.contact-value:hover {
    color: var(--accent-forest);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    background: var(--accent-forest);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
}

.whatsapp-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 57, 39, 0.2);
}

.footer-brand .promoter-mention {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.footer-brand .promoter-name {
    color: var(--accent-forest);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.footer-social-bottom {
    display: flex;
    gap: 2rem;
}

.footer-social-bottom a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-social-bottom a:hover {
    color: var(--accent-forest);
}

/* --- Responsive Update --- */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .split-sticky {
        padding: 8vh var(--container-padding) 5vh;
        /* Increased top padding from 5vh to 8vh to add space between header and first card */
        justify-content: flex-start;
    }

    .split-sticky .container {
        margin-bottom: 1rem !important;
    }

    .split-sticky .section-title {
        font-size: 1.8rem;
        margin: 0.5rem 0;
    }

    .split-sticky .hand-written {
        font-size: 1.2rem;
    }

    .masonry-grid {
        display: flex;
        flex-direction: column;
    }

    .masonry-item {
        height: 50vh !important;
        margin-top: 0 !important;
    }

    .display-large {
        font-size: 15vw;
    }

    .contact-grid {

        grid-template-columns: 1fr;
        gap: 4rem;
    }

    /* --- Mobile Split Section (Vertical) --- */
    .split-section {
        padding: 0;
        /* Remove bottom padding on mobile */
    }

    .split-container {
        width: 85vw;
        height: 75vh;
        /* Reduced height to prevent overlap with next section */
    }

    .card-perspective {
        width: 100%;
        height: 33.5%;
        /* Overlap slightly to avoid gaps */
        left: 0 !important;
        /* Reset horizontal positioning */
    }

    /* Position cards vertically */
    .card-perspective:nth-child(1) {
        top: 0%;
        z-index: 3;
    }

    .card-perspective:nth-child(2) {
        top: 33.3%;
        z-index: 2;
    }

    .card-perspective:nth-child(3) {
        top: 66.6%;
        z-index: 1;
    }

    /* Adjust Images for Vertical Split */
    .split-card-front img {
        width: 100%;
        height: 300%;
        /* 3 cards tall */
        left: 0 !important;
        /* Reset horizontal offset */
    }

    .card-perspective:nth-child(1) .split-card-front img {
        top: 0;
    }

    .card-perspective:nth-child(2) .split-card-front img {
        top: -100%;
    }

    .card-perspective:nth-child(3) .split-card-front img {
        top: -200%;
    }

    /* Compact Content for Mobile Cards */
    .split-card-back {
        padding: 1rem;
        justify-content: flex-start;
        gap: 0.4rem;
    }

    .card-top {
        margin-bottom: 0.2rem;
    }

    .card-icon {
        width: 28px;
        height: 28px;
    }

    .card-number {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }

    .card-main h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
        line-height: 1.1;
    }

    .card-main p {
        font-size: 0.75rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-footer {
        margin-top: auto;
        padding-top: 0.5rem;
    }

    .card-footer .hand-written {
        font-size: 1rem;
    }

    /* --- New Sections Responsive --- */
    .commerces-section {
        margin-top: 2.5vh;
        /* Balanced gap for mobile */
    }

    .heritage-grid,
    .commerces-grid,
    .localisation-grid,
    .developer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .typologies-grid {
        grid-template-columns: 1fr;
    }

    .localisation-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .distance-badge {
        width: 140px;
        height: 140px;
    }

    .badge-number {
        font-size: 2.5rem;
    }

    .infrastructure-list {
        grid-template-columns: 1fr;
    }

    .developer-badges {
        grid-template-columns: 1fr;
    }

    /* --- Responsive Footer --- */
    .footer-top {
        flex-direction: column;
        gap: 3rem;
        margin-bottom: 4rem;
    }

    .footer-social {
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
        gap: 2rem;
    }
}

/* Main Layout */
.app-main-wrapper {
    height: 450vh;
    /* Scroll space for animations */
    position: relative;
}

.app-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #fff;
}

/* Phase 1: Grid View */
.app-grid-view {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10;
}

.app-grid-inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 80rem;
    /* max-w-7xl */
    height: 85vh;
}

/* Grid Columns */
.app-col-left {
    grid-column: span 12;
    grid-row: span 2;
    position: relative;
    overflow: hidden;
    border-radius: var(--br-main);
    /* rounded-xl */
}

.app-col-center {
    grid-column: span 12;
    grid-row: span 2;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
}

.app-col-right {
    grid-column: span 12;
    grid-row: span 2;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .app-col-left {
        grid-column: span 3;
    }

    .app-col-center {
        grid-column: span 6;
    }

    .app-col-right {
        grid-column: span 3;
    }
}

.app-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--br-main);
    width: 100%;
    height: 100%;
}

.app-grid-item img,
.app-col-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SPECIAL MOBILE FIXES */
@media (max-width: 767px) {

    /* Hide the second main image in the grid to avoid duplication visual */
    .app-expand-trigger {
        opacity: 0 !important;
        pointer-events: none;
    }

    /* Ensure grid takes full height */
    .app-grid-inner {
        height: 100%;
        gap: 0.5rem;
    }

    /* Newsletter adjustments for mobile */
    .app-newsletter-content {
        padding: 5rem var(--container-padding) 8rem var(--container-padding);
    }

    .app-newsletter-content h2 {
        font-size: 2.5rem !important;
        /* Smaller heading */
        margin: 1rem 0 !important;
    }

    .app-newsletter-content p {
        font-size: 1rem !important;
        /* line-height: 1.8; */
    }

    /* Move newsletter lower to ensure previous header is cleared */
    .app-newsletter-section {
        transform: translateY(110%);
    }
}

/* Special z-index for the expanding image to sit on top */
.app-expand-trigger {
    z-index: 20;
}

/* Phase 2: Full Screen Expanding Image */
.app-hero-image-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    z-index: 30;
    opacity: 0;
}

.app-hero-image-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform: scale(0.4);
}

.app-hero-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Phase 3: Text Overlay */
.app-text-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    pointer-events: none;
    /* Container is visible/invisible but we control children */
}

.app-text-title {
    position: absolute;
    /* Stack them */
    font-size: clamp(3rem, 15vw, 9rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    /* Slightly tighter for longer words */
    color: #fff;
    text-transform: uppercase;
    mix-blend-mode: overlay;
    text-shadow: 0 0 80px rgba(0, 0, 0, 0.4);
    font-family: var(--font-heading);
    opacity: 0;
    /* Hidden by default */
    transform: translateY(30px);
    /* Start slightly down */
}

.app-icon-plane {
    position: absolute;
    right: 5%;
    bottom: 20%;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    color: rgba(255, 255, 255, 0.9);
}

.app-icon-plane svg {
    width: 64px;
    height: 64px;
}

/* Phase 4: Newsletter */
.app-newsletter-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transform: translateY(100%);
}

.app-newsletter-content {
    background: var(--accent-forest);
    color: #FAFAF8;
    padding: 2rem var(--container-padding) 5rem var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* This centers the .container wrapper within the section */
    text-align: left;
}

.app-newsletter-content .section-title {
    color: #FAFAF8;
}

.app-newsletter-content .hand-written {
    color: var(--accent-mint);
}

.app-newsletter-content p {
    color: rgba(250, 250, 248, 0.7) !important;
}

.app-newsletter-gradient {
    height: 12rem;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 57, 39, 0.7) 40%, rgba(26, 57, 39, 0.95) 70%, #1a3927 100%);
    width: 100%;
}

.app-newsletter-icon {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.app-newsletter-icon-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.app-newsletter-icon svg {
    position: absolute;
    width: 2rem;
    height: 2rem;
    color: #d1d5db;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
}

.app-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}

.app-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-family: serif;
    color: #111827;
    margin-bottom: 1rem;
}

.app-description {
    font-size: 1rem;
    color: #4b5563;
    max-width: 28rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.app-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 28rem;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .app-form {
        flex-direction: row;
    }
}

.app-input {
    flex: 1;
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0;
    font-size: 0.875rem;
    outline: none;
}

.app-input:focus {
    border-color: #111827;
}

.app-btn {
    height: 3rem;
    padding: 0 2rem;
    background-color: #111827;
    color: #fff;
    border: none;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.app-btn:hover {
    background-color: #1f2937;
}

.app-success-msg {
    margin-top: 1rem;
    color: #16a34a;
    font-size: 0.875rem;
    display: none;
    /* hidden by default */
}

.app-success-msg.visible {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Elevated Invest Section V2 (Art Deco) --- */
.invest-section-v2 {
    background-color: var(--bg-primary);
    position: relative;
    padding: 15vh var(--container-padding);
    overflow: hidden;
    min-height: 100vh;
}

.deco-bg-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.deco-circle {
    position: absolute;
    border: 1px solid var(--accent-mint);
    border-radius: 50%;
    opacity: 0.15;
}

.c-1 {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -10%;
}

.c-2 {
    width: 400px;
    height: 400px;
    bottom: -5%;
    right: -5%;
    border-color: var(--accent-peach);
}

.deco-line-v {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--text-dark), transparent);
    opacity: 0.1;
}

.l-1 {
    left: 15%;
}

.l-2 {
    left: 85%;
}

.deco-sunburst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    color: var(--text-dark);
    opacity: 0.03;
}

.invest-v2-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8vw;
    align-items: center;
    position: relative;
    z-index: 1;
}

.invest-v2-visual {
    position: relative;
}

.visual-stack {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
}

.visual-img-container {
    position: absolute;
    overflow: hidden;
    border-radius: var(--br-main);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.v-img-1 {
    width: 70%;
    height: 70%;
    left: 0;
    z-index: 2;
}

.v-img-2 {
    width: 60%;
    height: 60%;
    right: 0;
    top: 40%;
    z-index: 1;
    transform: translateY(-20%);
}

.visual-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deco-frame {
    position: absolute;
    inset: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 3;
    pointer-events: none;
}

.deco-number-large {
    position: absolute;
    top: -2rem;
    left: -2rem;
    font-family: var(--font-heading);
    font-size: 15vw;
    line-height: 1;
    color: var(--accent-mint);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.invest-v2-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.display-medium {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-top: 1.5rem;
}

.invest-v2-features {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feature-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-mint);
    flex-shrink: 0;
    padding: 10px;
    background: rgba(162, 216, 203, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-text h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.btn-deco {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 3rem;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--easing);
}

.btn-premium:hover .btn-arrow {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .invest-v2-grid {
        grid-template-columns: 1fr;
        gap: 10vh;
    }

    .visual-stack {
        height: 60vh;
    }
}


/* --- Sticky Inquire Button --- */
.sticky-inquire-wrapper {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
}

.sticky-inquire-btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    border: 1px solid var(--text-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Property Overlay --- */
.property-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3000;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.overlay-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.overlay-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.overlay-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    padding: 6vw;
    color: #FFFFFF;
    text-align: left;
}

.overlay-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.overlay-number {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--br-main);
}

.overlay-body h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 2rem;
    line-height: 1;
}

.overlay-deco-line {
    width: 100px;
    height: 2px;
    background: var(--accent-mint);
    margin-bottom: 2rem;
}

.overlay-body p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 4rem;
    opacity: 0.9;
}

.overlay-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.overlay-feature h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.overlay-feature p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 1;
}

.overlay-close {
    position: absolute;
    top: 3rem;
    right: 3rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.3s var(--easing), background 0.3s;
}

.overlay-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.overlay-close svg {
    width: 24px;
    height: 24px;
    color: #FFFFFF;
}

/* --- Art Deco Corners for Overlay --- */
.overlay-deco-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 5;
    pointer-events: none;
}

.overlay-deco-corner.tl {
    top: 40px;
    left: 40px;
    border-right: none;
    border-bottom: none;
}

.overlay-deco-corner.tr {
    top: 40px;
    right: 40px;
    border-left: none;
    border-bottom: none;
}

.overlay-deco-corner.bl {
    bottom: 40px;
    left: 40px;
    border-right: none;
    border-top: none;
}

.overlay-deco-corner.br {
    bottom: 40px;
    right: 40px;
    border-left: none;
    border-top: none;
}

.overlay-deco-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 4;
}

@media (max-width: 768px) {
    .overlay-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .overlay-close {
        top: 1.5rem;
        right: 1.5rem;
    }

    .overlay-content {
        padding: 10vw 6vw;
    }
}