/* ============================================
   1. BASE VARIABLES & THEME (White & Gold)
   ============================================ */
:root {
    --bg-white: #F5EFE6;
    --lxe-gold: #987B58;
    --lxe-dark-gold: #7A6246;
    --text-dark: #987B58;
    --text-white: #F5EFE6;
    --glass-bg: rgba(245, 239, 230, 0.82);
    --glass-border: rgba(152, 123, 88, 0.35);
    --travertine-vein: rgba(180, 160, 130, 0.18);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

/* ---- shared travertine texture definition ---- */
:root {
    --travertine-bg:
        linear-gradient(112deg, rgba(192,168,136,0.52) 0%, transparent 38%),
        linear-gradient(258deg, rgba(176,154,124,0.42) 0%, transparent 50%),
        linear-gradient(22deg,  rgba(210,194,164,0.32) 15%, transparent 65%),
        linear-gradient(148deg, rgba(228,214,190,0.24) 28%, transparent 78%),
        linear-gradient(65deg,  rgba(200,180,150,0.16) 45%, transparent 85%),
        repeating-linear-gradient(
            84deg,
            transparent,
            transparent 48px,
            rgba(152,126,92,0.16) 48px,
            rgba(152,126,92,0.16) 49px
        ),
        repeating-linear-gradient(
            166deg,
            transparent,
            transparent 72px,
            rgba(170,144,108,0.12) 72px,
            rgba(170,144,108,0.12) 73px
        ),
        repeating-linear-gradient(
            38deg,
            transparent,
            transparent 105px,
            rgba(162,138,104,0.09) 105px,
            rgba(162,138,104,0.09) 106px
        ),
        repeating-linear-gradient(
            120deg,
            transparent,
            transparent 140px,
            rgba(178,154,118,0.07) 140px,
            rgba(178,154,118,0.07) 141px
        );
}

body {
    background-color: var(--bg-white);
    background-image: var(--travertine-bg);
    background-attachment: fixed;
    color: var(--text-dark);
    font-family: "Futura Bk BT", "Futura Bk", "Futura", "Jost", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    cursor: none;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   LOADER
   ============================================ */
#lxe-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    background-image: var(--travertine-bg);
    background-attachment: fixed;
    clip-path: inset(0 0 0 0);
}

#lxe-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.ldr-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
    text-align: center;
}

.ldr-logo {
    display: flex;
    gap: 0.1em;
    overflow: visible;
    margin-bottom: 1.4rem;
}

.ldr-logo-l {
    overflow: hidden;
    display: inline-block;
    line-height: 1;
}

.ldr-logo-l span {
    display: inline-block;
    font-size: clamp(4rem, 11vw, 9rem);
    font-weight: 400;
    color: var(--lxe-gold);
    text-shadow: 0 4px 40px rgba(152, 123, 88, 0.18);
    transform: translateY(110%);
    will-change: transform;
    line-height: 1;
}

.ldr-sub {
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--lxe-gold);
    opacity: 0;
    margin-bottom: 3.5rem;
    padding-left: 0.5em;
}

.ldr-divider {
    width: 48px;
    height: 1px;
    background: var(--lxe-gold);
    transform: scaleX(0);
    transform-origin: center;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.ldr-progress-track {
    width: 180px;
    height: 1px;
    background: rgba(152, 123, 88, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 1.4rem;
}

.ldr-progress-fill {
    position: absolute;
    inset: 0;
    background: var(--lxe-gold);
    transform: scaleX(0);
    transform-origin: left;
}

.ldr-status {
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    padding-left: 0.3em;
    text-transform: uppercase;
    color: var(--text-dark);
    opacity: 0;
}

h1, h2, h3, p { 
    margin: 0; 
    font-weight: 300; 
}

.subtitle {
    color: var(--lxe-gold);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    margin-bottom: 2vh;
    text-transform: uppercase;
    display: block;
}

.body-text {
    color: var(--text-dark);
    opacity: 0.85;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 2vh;
}

/* ============================================
   2. REUSABLE UTILITIES
   ============================================ */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: 16px;
}

/* ============================================
   3. LAYERING ARCHITECTURE
   ============================================ */
#hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

#hero-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(245, 239, 230, 0) 0%,
        rgba(245, 239, 230, 0) 78%,
        var(--bg-white) 100%
    );
    z-index: 1;
    pointer-events: none;
}


/* ============================================
   PHOTO STAGE — replaces the former #webgl-canvas.
   Two full-bleed photographs stand in for the
   exterior/interior 3D models and are pinned,
   scaled and cross-faded via js/scene.js.
   ============================================ */
#scene-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    overflow: hidden;
    background-color: #F5EFE6;
}

.scene-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transform-origin: center center;
    will-change: transform, opacity;
}

.scene-layer.layer-active {
    visibility: visible;
}

.scene-layer img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.06);
    will-change: transform;
}

.scene-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(20,15,8,0.2) 100%),
        linear-gradient(to bottom, rgba(20,15,8,0.16) 0%, rgba(20,15,8,0) 20%, rgba(20,15,8,0) 76%, rgba(20,15,8,0.24) 100%);
}

.scene-caption {
    position: absolute;
    left: 6vw;
    bottom: 8vh;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    color: #F5EFE6;
    font-family: inherit;
}

.scene-caption-index {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--lxe-gold);
    opacity: 0.9;
}

.scene-caption-label {
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Gold ring flourish — a lightweight CSS stand-in for the old
   rotating wireframe icosahedron intro/outro flare. */
.scene-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.scene-ring .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(152, 123, 88, 0.55);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: sceneRingSpin 18s linear infinite;
}

.scene-ring .r1 { width: 340px; height: 340px; animation-duration: 22s; }
.scene-ring .r2 { width: 460px; height: 460px; animation-duration: 30s; animation-direction: reverse; opacity: 0.7; }
.scene-ring .r3 { width: 220px; height: 220px; animation-duration: 14s; opacity: 0.85; }

@keyframes sceneRingSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.content-wrapper {
    position: relative;
    z-index: 10;
    overflow-x: hidden;
}

/* ============================================
   4. SECTIONS & BLOCKS
   ============================================ */
#founder-section {
    margin-top: 35vh; 
    padding-top: 10vh;
    position: relative;
    z-index: 10;
}

.text-block h2 {
    color: var(--lxe-gold);
}

/* ============================================
   5. PROCESS SECTION (Centered & Aligned)
   ============================================ */
#process-section {
    padding: 15vh 5vw;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vw; 
    width: 100%;
    max-width: 1600px; 
    margin: 0 auto;
    align-items: stretch; 
}

.process-item {
    background: rgba(245, 239, 230, 0.68);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    border: 1px solid rgba(152, 123, 88, 0.25);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.55);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.process-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(152, 123, 88, 0.15);
}

.process-item h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--lxe-gold);
    font-weight: 500;
    letter-spacing: -0.02em;
    width: 100%;
}

.process-item p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark); 
    margin: 0;
    max-width: 90%; 
}

/* ============================================
   6. NAVIGATION
   ============================================ */
.lxe-nav {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    min-height: 100px; 
    padding: 0 6vw;    
    z-index: 100;
    display: flex;
    align-items: center;
    pointer-events: auto;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease, min-height 0.4s ease;
}

.lxe-nav.glass-active,
.lxe-nav.glass-always {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--glass-border), 0 8px 32px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
    min-height: 80px;
}

.nav-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

/* --------------------------------------
   FORCED CENTER LOGO
   -------------------------------------- */
.lxe-logo-container { 
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-decoration: none;
    z-index: 10;
    white-space: nowrap; 
    width: max-content;  
}

.lxe-logo-main {
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-right: -0.05em;
    line-height: 0.8;
    color: var(--lxe-gold);
    text-shadow: 0 2px 12px rgba(152, 123, 88, 0.2);
    text-align: center;
}

.lxe-logo-sub {
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    margin-right: -0.35em;
    margin-top: 6px;
    color: var(--lxe-gold);
    text-transform: uppercase;
    opacity: 0.75;
    text-align: center;
}

/* --------------------------------------
   NAV LINKS & BUTTONS
   -------------------------------------- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 3vw;
    list-style: none;
}

.nav-links.right-links {
    margin-left: auto; 
}

.nav-links a {
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dark);
    font-weight: 600;
    transition: opacity 0.3s ease, color 0.3s ease;
    position: relative;
}

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

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

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   7. CUSTOM CURSOR
   ============================================ */
.custom-cursor {
    display: none;
    width: 12px;
    height: 12px;
    background-color: var(--lxe-gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    mix-blend-mode: normal;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor.hover-active {
    width: 50px;
    height: 50px;
    background-color: rgba(152, 123, 88, 0.15);
    border: 2px solid var(--lxe-gold);
    mix-blend-mode: normal;
}

/* ============================================
   8. INTERACTIVE ELEMENTS (Hotspots, Menus, Modals)
   ============================================ */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4vh;
}

.mobile-menu ul li a {
    text-decoration: none;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.mobile-menu ul li a:hover { 
    opacity: 1;
    color: var(--lxe-gold);
}

.mobile-menu-close {
    position: absolute;
    top: 3.5vh; 
    right: 6vw;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--lxe-gold);
    cursor: none;
}








/* ============================================
   9. NAV HAMBURGER BUTTON
   ============================================ */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: none;
    padding: 4px;
    z-index: 101;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* ============================================
   10. RESPONSIVE QUERIES
   ============================================ */
@media screen and (max-width: 1024px) {
    .nav-links {
        gap: 2vw;
    }
    
    .nav-links a {
        font-size: 0.65rem;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4vw;
    }
}

@media screen and (max-width: 768px) {
    body {
        background-image: none;
        background-attachment: unset;
    }
    body::before { display: none; }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }
    
    .nav-container {
        display: flex;
        justify-content: center;
    }

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

    .process-item {
        padding: 3rem 2rem;
    }


    
    
    
}
/* --------------------------------------
   GLASS CONTAINER EFFECT
   -------------------------------------- */
.glass-container {
    background: rgba(245, 239, 230, 0.65);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(152, 123, 88, 0.28);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255,255,255,0.55);
    padding: 2.5rem;
    border-radius: 24px;
}