/*
Theme Name: 487 Park Ave
Theme URI: https://487parkave.com
Author: 487 Park Ave Development
Author URI: https://487parkave.com
Description: 487 Park Ave — Green Living Ecosystem. A premium dark-mode luxury real estate theme featuring cinematic hero sections, glassmorphism panels, and animated scroll reveals.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 487park
Tags: dark-mode, luxury, real-estate, full-width-template, custom-colors
*/

/* ============================================================
   DESIGN TOKENS & ROOT VARIABLES
   ============================================================ */
:root {
    --luxury-gold: #D4AF37;
    --deep-charcoal: #0A0A0A;
    --surface: #131313;
    --surface-container: #20201f;
    --surface-container-low: #1c1b1b;
    --surface-container-lowest: #0e0e0e;
    --surface-container-high: #2a2a2a;
    --surface-container-highest: #353535;
    --surface-bright: #393939;
    --surface-variant: #353535;
    --on-surface: #e5e2e1;
    --on-surface-variant: #c4c7c7;
    --on-background: #e5e2e1;
    --background: #131313;
    --primary: #c9c6c5;
    --primary-container: #0a0a0a;
    --on-primary: #313030;
    --secondary: #c8c6c2;
    --secondary-container: #494946;
    --tertiary: #a1d494;
    --on-tertiary-container: #56854d;
    --outline: #8e9192;
    --outline-variant: #444748;
    --inverse-surface: #e5e2e1;
    --inverse-on-surface: #313030;
    --error: #ffb4ab;
    --error-container: #93000a;

    /* Layout */
    --margin-desktop: 80px;
    --margin-mobile: 24px;
    --section-gap: 160px;
    --gutter: 32px;
    --container-max: 1440px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.8s var(--ease-out-expo);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--deep-charcoal);
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img, video { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

input {
    font-family: inherit;
    background: transparent;
    border: none;
    outline: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-display-lg,
.text-display-lg {
    font-family: 'Playfair Display', serif;
    font-size: clamp(56px, 7vw, 84px);
    line-height: 1.09;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.font-headline-lg,
.text-headline-lg {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.17;
    font-weight: 600;
}

.font-headline-md,
.text-headline-md {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.25;
    font-weight: 500;
}

.font-subhead-lg,
.text-subhead-lg {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.56;
    letter-spacing: 0.1em;
    font-weight: 300;
}

.font-body-lg,
.text-body-lg {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.67;
    font-weight: 400;
}

.font-body-md,
.text-body-md {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.625;
    font-weight: 400;
}

.font-label-caps,
.text-label-caps {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.33;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
}

@media (max-width: 768px) {
    .container {
        padding-left: var(--margin-mobile);
        padding-right: var(--margin-mobile);
    }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gold-text { color: var(--luxury-gold); }
.gold-stroke { border: 1px solid var(--luxury-gold); }

.section-py { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1.2s ease;
}
.reveal-fade.active { opacity: 1; }

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-stagger.active > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.reveal-stagger.active > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 120ms; }
.reveal-stagger.active > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 240ms; }
.reveal-stagger.active > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 360ms; }

/* ============================================================
   PARALLAX
   ============================================================ */
.parallax-bg {
    will-change: transform;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(19, 19, 19, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(68, 71, 72, 0.1);
    transition: background 0.4s ease, border-color 0.4s ease;
}

#site-header.scrolled {
    background: rgba(19, 19, 19, 0.92);
    border-bottom-color: rgba(68, 71, 72, 0.25);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 24px var(--margin-desktop);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-inner { padding: 20px var(--margin-mobile); }
}

.site-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.33;
    color: var(--on-surface);
    letter-spacing: -0.01em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) { .nav-links { display: none; } }

.nav-links a {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a.active,
.nav-links a:hover { color: var(--on-surface); }

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary);
}

.nav-cta {
    background: var(--luxury-gold);
    color: var(--deep-charcoal) !important;
    padding: 12px 32px;
    border-radius: 4px;
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    transition: transform 0.2s ease, letter-spacing 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.35);
    color: var(--deep-charcoal) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
@media (max-width: 900px) { .hamburger { display: flex; } }
.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--on-surface);
    transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
    pointer-events: none;
}
.mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    animation: menuFadeIn 0.4s var(--ease-out-expo) forwards;
}
.mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 600;
    color: var(--on-surface);
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(16px);
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open a {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.open .btn-primary { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.mobile-menu .btn-primary {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s ease;
    margin-top: 8px;
}
.mobile-menu a:hover { color: var(--luxury-gold); }

@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 115%;
    background-size: cover;
    background-position: center;
    transform-origin: center center;
    will-change: transform;
}

/* ── Hero Slideshow ─────────────────────────────────────────── */
.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 115%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    transform-origin: center center;
}

.hero-slide.active {
    opacity: 1;
}

/* Subtle Ken Burns zoom on active slide */
@keyframes heroKenBurns {
    from { transform: scale(1.0); }
    to   { transform: scale(1.06); }
}
.hero-slide.active {
    animation: heroKenBurns 7s ease-out forwards;
}

/* Dot navigation */
.hero-dots {
    position: absolute;
    bottom: 100px;
    right: var(--margin-desktop);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .hero-dots {
        flex-direction: row;
        bottom: 130px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.hero-dot.active {
    background: var(--luxury-gold);
    border-color: var(--luxury-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    transform: scale(1.4);
}

.hero-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
}


.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--background) 0%,
        transparent 40%,
        rgba(10,10,10,0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 var(--margin-mobile);
    width: 100%;
    max-width: var(--container-max);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 7vw, 84px);
    line-height: 1.09;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.hero-title.active { opacity: 1; transform: translateY(0); }

.hero-title .gold { color: var(--luxury-gold); }

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 2.5vw, 18px);
    line-height: 1.56;
    letter-spacing: 0.08em;
    font-weight: 300;
    max-width: 640px;
    margin: 0 auto 48px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s 0.2s var(--ease-out-expo), transform 1s 0.2s var(--ease-out-expo);
}
.hero-subtitle.active { opacity: 1; transform: translateY(0); }

/* Hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1024px;
    margin: 48px auto 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s 0.4s var(--ease-out-expo), transform 1s 0.4s var(--ease-out-expo);
    padding: 0 var(--margin-mobile);
}
.hero-stats.active { opacity: 1; transform: translateY(0); }

@media (min-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        margin-top: 80px;
        gap: var(--gutter);
        padding: 0;
    }
}

.stat-card {
    padding: 20px 16px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .stat-card { padding: 24px; }
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,175,55,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.stat-card:hover::before { opacity: 1; }

.stat-label {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--luxury-gold);
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: 500;
    line-height: 1.25;
}

/* Animated gold line on stat cards */
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--luxury-gold);
    transition: width 0.6s var(--ease-out-expo);
}
.stat-card:hover::after { width: 100%; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 1s 1.5s forwards;
}
.scroll-indicator span {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--luxury-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(0.7); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   MANIFESTO SECTION
   ============================================================ */
#manifesto {
    padding: var(--section-gap) var(--margin-desktop);
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (max-width: 768px) {
    #manifesto { padding: 100px var(--margin-mobile); }
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
    align-items: center;
}

@media (min-width: 900px) {
    .manifesto-grid { grid-template-columns: 5fr 7fr; }
}

.manifesto-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.manifesto-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(212,175,55,0.06);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.manifesto-image:hover::before { opacity: 1; }

.manifesto-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--luxury-gold);
    margin-top: 32px;
}

.manifesto-badge .material-symbols-outlined {
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ============================================================
   REVENUE ARCHITECTURE SECTION
   ============================================================ */
#ecosystem {
    padding: var(--section-gap) 0;
    background: var(--surface-container-lowest);
}

.ecosystem-inner {
    padding: 0 var(--margin-desktop);
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (max-width: 768px) { .ecosystem-inner { padding: 0 var(--margin-mobile); } }

.ecosystem-title {
    text-align: center;
    margin-bottom: 80px;
}

.revenue-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

@media (min-width: 900px) { .revenue-cards { grid-template-columns: repeat(3, 1fr); } }

.revenue-card {
    padding: 40px;
    border-radius: 4px;
    transition: background 0.4s ease, transform 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.revenue-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--luxury-gold), transparent);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}
.revenue-card:hover::before { transform: scaleX(1); }
.revenue-card:hover { background: var(--surface-container); transform: translateY(-4px); }

.revenue-card .material-symbols-outlined {
    font-size: 36px;
    color: var(--luxury-gold);
    margin-bottom: 32px;
    display: block;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
    transition: transform 0.4s var(--ease-out-expo);
}
.revenue-card:hover .material-symbols-outlined { transform: scale(1.15) rotate(-5deg); }

.revenue-bar-track {
    height: 2px;
    width: 100%;
    background: var(--surface-variant);
    margin: 32px 0 24px;
    overflow: hidden;
    border-radius: 1px;
}

.revenue-bar-fill {
    height: 100%;
    background: var(--tertiary);
    width: 0;
    transition: width 1.2s 0.3s var(--ease-out-expo);
    border-radius: 1px;
}

.revenue-card.active .revenue-bar-fill { width: var(--bar-width); }

/* ============================================================
   INTERCONNECTED VALUE / ECOSYSTEM ENGINE
   ============================================================ */
#ecosystem-engine {
    padding: var(--section-gap) var(--margin-desktop);
    overflow: hidden;
    text-align: center;
}

@media (max-width: 768px) { #ecosystem-engine { padding: 100px var(--margin-mobile); } }

.engine-inner { max-width: var(--container-max); margin: 0 auto; }

.engine-nodes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 900px;
    margin: 80px auto 0;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) { .engine-nodes { grid-template-columns: repeat(4, 1fr); } }

.engine-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
}

.engine-node-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid var(--luxury-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.engine-node-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.4s ease;
}
.engine-node:hover .engine-node-ring::before { transform: scale(1.5); }
.engine-node:hover .engine-node-ring {
    background: rgba(212,175,55,0.1);
    box-shadow: 0 0 30px rgba(212,175,55,0.3), 0 0 60px rgba(212,175,55,0.1);
}

/* Connector lines between nodes */
.engine-nodes::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(12.5% + 36px);
    right: calc(12.5% + 36px);
    height: 1px;
    background: linear-gradient(90deg, var(--luxury-gold), rgba(212,175,55,0.3), var(--luxury-gold));
    opacity: 0.4;
}

@media (max-width: 768px) { .engine-nodes::before { display: none; } }

/* Pulse animation on connector */
.engine-connector-pulse {
    position: absolute;
    top: 35px;
    left: calc(12.5% + 36px);
    width: 12px;
    height: 3px;
    background: var(--luxury-gold);
    border-radius: 2px;
    animation: connectorPulse 3s ease-in-out infinite;
}

@keyframes connectorPulse {
    0% { left: calc(12.5% + 36px); opacity: 1; }
    100% { left: calc(87.5% - 48px); opacity: 0; }
}

@media (max-width: 768px) { .engine-connector-pulse { display: none; } }

/* ============================================================
   GALLERY SECTION
   ============================================================ */
#gallery {
    padding: var(--section-gap) 0;
    background: var(--surface-container-low);
}

.gallery-inner {
    padding: 0 var(--margin-desktop);
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (max-width: 768px) { .gallery-inner { padding: 0 var(--margin-mobile); } }

.gallery-main-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
    margin-bottom: var(--gutter);
    align-items: end;
}

@media (min-width: 900px) { .gallery-main-row { grid-template-columns: 8fr 4fr; } }

.gallery-secondary-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

@media (min-width: 900px) { .gallery-secondary-row { grid-template-columns: 4fr 8fr; } }

.gallery-img {
    border-radius: 4px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--surface-container-lowest);
    overflow: hidden;
    position: relative;
}

.gallery-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(212,175,55,0.05);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.gallery-img:hover::after { opacity: 1; }

.gallery-tertiary-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
    margin-bottom: var(--gutter);
}

@media (min-width: 768px) {
    .gallery-tertiary-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-quaternary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gutter);
}

@media (min-width: 768px) {
    .gallery-quaternary-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   DOCUMENTS & DRAWINGS
   ============================================================ */
.documents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }
}

.document-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease;
    gap: 24px;
}

@media (min-width: 768px) {
    .document-card {
        flex-direction: row;
        text-align: left;
        padding: 32px;
    }
}

.document-card:hover {
    transform: translateY(-6px);
    border-color: var(--luxury-gold);
}

.document-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,175,55,0.08);
    border-radius: 50%;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    color: var(--on-surface);
    margin-bottom: 8px;
}

.document-download {
    color: var(--on-surface-variant);
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.document-card:hover .document-download {
    color: var(--luxury-gold);
    transform: translateY(-2px);
}

/* ============================================================
   RESIDENTIAL SHOWCASE
   ============================================================ */
#residential {
    padding: var(--section-gap) var(--margin-desktop);
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (max-width: 768px) { #residential { padding: 100px var(--margin-mobile); } }

.residential-header {
    text-align: center;
    margin-bottom: 96px;
}

.residential-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    align-items: stretch;
}

@media (min-width: 900px) { .residential-grid { grid-template-columns: 1fr 1fr; } }

.unit-card {
    padding: 48px;
    border-radius: 4px;
    border-left: 4px solid var(--luxury-gold);
    position: relative;
    overflow: hidden;
}

.unit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,175,55,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.unit-table { width: 100%; }

.unit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(68,71,72,0.1);
}

.unit-row:last-child { border-bottom: none; }

.unit-cta {
    margin-top: 40px;
    width: 100%;
    border: 1px solid var(--primary);
    padding: 16px;
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--on-surface);
    background: transparent;
    border-radius: 2px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.unit-cta:hover {
    background: var(--primary);
    color: var(--deep-charcoal);
}

.unit-image {
    min-height: 400px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

/* ============================================================
   COMMERCIAL & MOBILITY
   ============================================================ */
#commercial {
    padding: 0;
}

.commercial-split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

@media (min-width: 768px) { .commercial-split { grid-template-columns: 1fr 1fr; } }

.commercial-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
    overflow: hidden;
    min-height: 60vh;
}

@media (max-width: 768px) { .commercial-panel { padding: 60px var(--margin-mobile); } }

.commercial-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: transform 1s ease, opacity 0.5s ease;
}

.commercial-panel:hover .commercial-panel-bg {
    transform: scale(1.08);
    opacity: 0.75;
}

.commercial-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 50%);
}

.commercial-panel-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.commercial-panel-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    margin-bottom: 16px;
}

/* ============================================================
   EV / ENERGY GRID SECTION
   ============================================================ */
#energy-grid {
    padding: var(--section-gap) var(--margin-desktop);
    background: #000;
    text-align: center;
}

@media (max-width: 768px) { #energy-grid { padding: 100px var(--margin-mobile); } }

.energy-inner { max-width: var(--container-max); margin: 0 auto; }

.energy-panel {
    padding: 80px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-top: 48px;
}

@media (max-width: 768px) { .energy-panel { padding: 48px var(--margin-mobile); } }

/* Animated grid lines background */
.energy-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212,175,55,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridScroll 8s linear infinite;
}

@keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.energy-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.energy-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) { .energy-stats { grid-template-columns: repeat(3, 1fr); } }

.energy-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    color: var(--luxury-gold);
    display: block;
    margin-bottom: 8px;
    counter-increment: stat;
}

/* Counting animation */
.count-up {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* ============================================================
   INVESTMENT SECTION
   ============================================================ */
#investors {
    padding: var(--section-gap) var(--margin-desktop);
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (max-width: 768px) { #investors { padding: 100px var(--margin-mobile); } }

.investors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

@media (min-width: 900px) { .investors-grid { grid-template-columns: 1fr 1fr; } }

.valuation-cards { display: flex; flex-direction: column; gap: 32px; }

.valuation-card {
    padding: 32px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease;
    border: 1px solid transparent;
}
.valuation-card:hover { border-color: rgba(212,175,55,0.2); }

.revenue-viz {
    height: 100%;
    min-height: 400px;
    padding: 48px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.revenue-chart { width: 100%; }

.revenue-row { margin-bottom: 48px; }
.revenue-row:last-child { margin-bottom: 0; }

.revenue-row-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.revenue-track {
    height: 8px;
    background: var(--surface-container-highest);
    border-radius: 100px;
    overflow: hidden;
}

.revenue-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), rgba(201,198,197,0.6));
    border-radius: 100px;
    width: 0;
    transition: width 1.4s 0.3s var(--ease-out-expo);
}

.revenue-row.active .revenue-fill { width: var(--fill-width); }

/* ============================================================
   SUPERLATIVES SECTION
   ============================================================ */
#superlatives {
    padding: var(--section-gap) var(--margin-desktop);
    text-align: center;
    overflow: hidden;
}

@media (max-width: 768px) { #superlatives { padding: 100px var(--margin-mobile); } }

.superlative-item {
    margin-bottom: 96px;
    position: relative;
}
.superlative-item:last-child { margin-bottom: 0; }

.superlative-word {
    font-family: 'Playfair Display', serif;
    font-size: clamp(80px, 12vw, 140px);
    font-weight: 700;
    line-height: 1;
    opacity: 0.08;
    letter-spacing: -0.02em;
    display: block;
    transition: opacity 0.5s ease;
    will-change: transform;
}

.superlative-item:hover .superlative-word { opacity: 0.14; }

.superlative-desc {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 500;
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   LOCATION MAP SECTION
   ============================================================ */
#location {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    #location {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
}

.location-map-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #1a1f2e; /* dark fallback while iframe loads */
}

@media (max-width: 768px) {
    .location-map-wrap {
        position: relative;
        height: 340px;
        width: 100%;
        flex-shrink: 0;
    }
}

.location-map-iframe {
    width: 100%;
    height: 100%;
    display: block;
    /* Invert + hue-rotate to create a dark/satellite-style look matching the site theme */
    filter: invert(90%) hue-rotate(180deg) saturate(0.6) brightness(0.85);
    pointer-events: none; /* prevent accidental scroll-lock on desktop */
    transition: filter 0.3s ease;
}

.location-map-overlay {
    position: absolute;
    inset: 0;
    /* Subtle vignette + gold tint on top of the inverted map */
    background:
        radial-gradient(ellipse at 60% 50%, rgba(212,175,55,0.06) 0%, transparent 60%),
        linear-gradient(to top, rgba(10,10,10,0.5) 0%, transparent 40%);
    pointer-events: none;
}

/* Re-enable pointer events on mobile so users can tap to open Maps */
@media (max-width: 768px) {
    .location-map-iframe { pointer-events: auto; }
}


.location-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--background) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 768px) {
    .location-fade {
        background: linear-gradient(to top, var(--background) 0%, transparent 60%);
    }
}

.location-panel-wrap {
    position: absolute;
    left: var(--margin-desktop);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

@media (max-width: 768px) {
    .location-panel-wrap {
        position: relative;
        left: auto;
        top: auto;
        right: auto;
        bottom: auto;
        transform: none;
        padding: 40px var(--margin-mobile);
        background: var(--background);
    }
}

.location-panel {
    padding: 40px;
    border-radius: 4px;
    max-width: 440px;
}

@media (max-width: 768px) {
    .location-panel {
        padding: 0;
        max-width: 100%;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
    }
}

.location-address {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.location-address .material-symbols-outlined {
    color: var(--luxury-gold);
    font-size: 20px;
    margin-top: 2px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Map gold pin pulse */
.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

@media (max-width: 768px) {
    .map-pin { top: 40%; }
}

.map-pin-dot {
    width: 12px;
    height: 12px;
    background: var(--luxury-gold);
    border-radius: 50%;
    position: relative;
}

.map-pin-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: 2px solid var(--luxury-gold);
    border-radius: 50%;
    animation: pinRipple 2s ease-out infinite;
}

.map-pin-ring:nth-child(2) { animation-delay: 0.6s; }
.map-pin-ring:nth-child(3) { animation-delay: 1.2s; }

@keyframes pinRipple {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(6); opacity: 0; }
}

/* ============================================================
   ROADMAP SECTION
   ============================================================ */
#roadmap {
    padding: var(--section-gap) var(--margin-desktop);
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (max-width: 768px) { #roadmap { padding: 100px var(--margin-mobile); } }

.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
    margin-top: 80px;
}

@media (min-width: 768px) { .roadmap-grid { grid-template-columns: repeat(4, 1fr); } }

.roadmap-item { position: relative; padding-top: 20px; }

/* Connecting line */
@media (min-width: 768px) {
    .roadmap-item::before {
        content: '';
        position: absolute;
        top: 6px;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, var(--outline-variant), transparent);
    }
    .roadmap-item:first-child::before { left: 50%; }
    .roadmap-item:last-child::before { right: 50%; }
}

.roadmap-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--on-tertiary-container);
    margin-bottom: 16px;
}
.roadmap-dot.active { background: var(--luxury-gold); }
.roadmap-dot.future { background: var(--outline-variant); }

/* ============================================================
   FOUNDER SECTION
   ============================================================ */
#founder {
    padding: var(--section-gap) 0;
    background: var(--surface-container-lowest);
}

.founder-inner {
    padding: 0 var(--margin-desktop);
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (max-width: 768px) { .founder-inner { padding: 0 var(--margin-mobile); } }

.founder-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
    align-items: center;
}

@media (min-width: 900px) { .founder-grid { grid-template-columns: 4fr 8fr; } }

.founder-image {
    aspect-ratio: 3/4;
    border-radius: 4px;
    background-size: cover;
    background-position: center top;
    filter: grayscale(1);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    transition: filter 0.5s ease;
}
.founder-image:hover { filter: grayscale(0.6); }

.founder-content { padding-left: 0; }

@media (min-width: 900px) { .founder-content { padding-left: 80px; } }

.founder-quote {
    font-style: italic;
    color: var(--on-surface-variant);
    position: relative;
    padding-left: 24px;
    margin-bottom: 40px;
}

.founder-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -8px;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: rgba(212,175,55,0.3);
    line-height: 1;
}

.founder-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding-left: 76px;
}

@media (max-width: 768px) {
    .founder-contact {
        padding-left: 0;
    }
}

.founder-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.founder-contact-link:hover {
    color: var(--luxury-gold);
}

/* ============================================================
   FOUR PILLARS SECTION
   ============================================================ */
#pillars {
    padding: var(--section-gap) var(--margin-desktop);
    overflow: hidden;
}

@media (max-width: 768px) { #pillars { padding: 100px var(--margin-mobile); } }

.pillars-inner { max-width: var(--container-max); margin: 0 auto; }

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gutter);
    width: 100%;
    margin-top: 0;
}

@media (min-width: 768px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }

.pillar-card {
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.4s var(--ease-out-expo), background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 0;
    background: linear-gradient(to top, rgba(212,175,55,0.08), transparent);
    transition: height 0.4s ease;
}
.pillar-card:hover::before { height: 100%; }
.pillar-card:hover { transform: translateY(-16px); }

.pillar-card .material-symbols-outlined {
    font-size: 36px;
    margin-bottom: 24px;
    display: block;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
    transition: color 0.3s ease, transform 0.4s ease;
}
.pillar-card:hover .material-symbols-outlined {
    color: var(--luxury-gold);
    transform: scale(1.2);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
#cta {
    padding: var(--section-gap) var(--margin-desktop);
    position: relative;
    overflow: hidden;
    text-align: center;
}

@media (max-width: 768px) { #cta { padding: 100px var(--margin-mobile); } }

.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: grayscale(1);
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: var(--container-max);
    margin: 0 auto;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 700;
    line-height: 1.09;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}

.cta-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.56;
    letter-spacing: 0.1em;
    font-weight: 300;
    max-width: 640px;
    margin: 0 auto 64px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 600px) { .cta-buttons { flex-direction: row; } }

.btn-primary {
    background: var(--luxury-gold);
    color: var(--deep-charcoal);
    padding: 20px 48px;
    border-radius: 4px;
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, letter-spacing 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 48px rgba(212,175,55,0.4);
    letter-spacing: 0.2em;
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    color: var(--on-surface);
    padding: 20px 48px;
    border-radius: 4px;
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, letter-spacing 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    letter-spacing: 0.2em;
    transform: scale(1.02);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: var(--surface-container-lowest);
    padding: var(--section-gap) 0 0;
    border-top: 1px solid rgba(68,71,72,0.05);
}

.footer-inner {
    padding: 0 var(--margin-desktop);
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (max-width: 768px) { .footer-inner { padding: 0 var(--margin-mobile); } }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gutter);
}

@media (min-width: 900px) { .footer-grid { grid-template-columns: 4fr 2fr 2fr 4fr; } }

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 32px;
    display: block;
}

.footer-col-title {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--luxury-gold);
    margin-bottom: 32px;
    display: block;
}

.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--on-surface-variant);
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--primary); }

.footer-email-row {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--outline-variant);
    padding-bottom: 12px;
}

.footer-email-input {
    background: transparent;
    border: none;
    outline: none;
    flex: 1;
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    padding: 12px 0;
    transition: border-color 0.3s ease;
}
.footer-email-input::placeholder { color: var(--on-surface-variant); }

.footer-email-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-email-btn:hover {
    color: var(--luxury-gold);
    transform: translateX(4px);
}

.footer-bottom {
    padding: 80px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    opacity: 0.5;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-legal {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
}

.footer-legal-links {
    display: flex;
    gap: 40px;
}

.footer-legal-links a {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    transition: color 0.3s ease;
}
.footer-legal-links a:hover { color: var(--primary); }

/* ============================================================
   ANIMATED CURSOR
   ============================================================ */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--luxury-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212,175,55,0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.hover {
    width: 64px;
    height: 64px;
    border-color: var(--luxury-gold);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   LOADING SCREEN — REMOVED
   ============================================================ */

/* ============================================================
   MATERIAL SYMBOLS
   ============================================================ */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ============================================================
   FLOATING PARTICLES
   ============================================================ */
#particles-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* ============================================================
   MISC ANIMATIONS
   ============================================================ */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer {
    background: linear-gradient(90deg,
        rgba(212,175,55,0) 0%,
        rgba(212,175,55,0.5) 50%,
        rgba(212,175,55,0) 100%);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Horizontal marquee */
.marquee-track {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(68,71,72,0.3);
    border-bottom: 1px solid rgba(68,71,72,0.3);
    padding: 20px 0;
}

.marquee-inner {
    display: inline-flex;
    gap: 80px;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.marquee-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--luxury-gold);
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --section-gap: 80px;
        --margin-desktop: 24px;
        --gutter: 20px;
    }
    .font-display-lg, .text-display-lg { font-size: 44px; }
    .font-headline-lg, .text-headline-lg { font-size: 30px; }
    .font-headline-md, .text-headline-md { font-size: 22px; }
    .superlative-word { font-size: 60px; }
    .superlative-desc { margin-top: -20px; font-size: 18px; }

    /* Hero mobile */
    .hero-title { font-size: clamp(36px, 10vw, 56px) !important; margin-bottom: 20px; }
    .hero-content { padding: 0 20px; }
    .scroll-indicator { display: none; }

    /* Manifesto mobile */
    #manifesto { padding: 80px var(--margin-mobile) !important; }
    .manifesto-grid { gap: 40px; }
    .manifesto-image { aspect-ratio: 4/3; }

    /* Revenue cards */
    #ecosystem { padding: 80px 0; }
    .revenue-card { padding: 28px 24px; }

    /* Engine nodes mobile */
    #ecosystem-engine { padding: 80px var(--margin-mobile); }
    .engine-nodes { gap: 32px; margin-top: 48px; }
    .engine-node-ring { width: 60px; height: 60px; font-size: 18px; }

    /* Gallery */
    #gallery { padding: 80px 0; }
    .gallery-inner { padding: 0 var(--margin-mobile); }
    .gallery-img[style*="aspect-ratio:21/9"] { aspect-ratio: 16/9 !important; }
    .gallery-img[style*="aspect-ratio:1/1"] { aspect-ratio: 4/3 !important; }

    /* Residential */
    #residential { padding: 80px var(--margin-mobile) !important; }
    .residential-header { margin-bottom: 48px; }
    .residential-grid { gap: 40px; }
    .unit-card { padding: 28px 20px; }
    .unit-image { min-height: 280px; }

    /* Commercial panels */
    .commercial-split { min-height: auto; }
    .commercial-panel { min-height: 50vh; padding: 40px var(--margin-mobile); }

    /* Energy grid */
    #energy-grid { padding: 80px var(--margin-mobile); }
    .energy-panel { padding: 40px 24px; }
    .energy-stat-value { font-size: clamp(32px, 10vw, 48px); }

    /* Investors */
    #investors { padding: 80px var(--margin-mobile) !important; }
    .revenue-viz { min-height: auto; padding: 32px 24px; }
    .revenue-row { margin-bottom: 32px; }
    .valuation-card { padding: 20px; flex-wrap: wrap; gap: 8px; }

    /* Superlatives */
    #superlatives { padding: 80px var(--margin-mobile); }
    .superlative-item { margin-bottom: 60px; }

    /* Roadmap */
    #roadmap { padding: 80px var(--margin-mobile) !important; }
    .roadmap-grid { gap: 40px; margin-top: 48px; }
    .roadmap-item { padding-top: 0; padding-left: 32px; position: relative; }
    .roadmap-dot { position: absolute; left: 0; top: 4px; margin-bottom: 0; }

    /* Founder */
    #founder { padding: 80px 0; }
    .founder-inner { padding: 0 var(--margin-mobile) !important; }
    .founder-grid { gap: 40px; }
    .founder-image { aspect-ratio: 4/3; }
    .founder-quote { font-size: 16px; }

    /* Pillars */
    #pillars { padding: 80px var(--margin-mobile) !important; }
    .pillars-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .pillar-card { padding: 24px 16px; }

    /* CTA */
    #cta { padding: 80px var(--margin-mobile) !important; }
    .cta-title { font-size: clamp(36px, 10vw, 56px) !important; margin-bottom: 24px; }
    .cta-subtitle { font-size: 15px; margin-bottom: 40px; }
    .btn-primary, .btn-secondary { padding: 16px 32px; width: 100%; text-align: center; }
    .cta-buttons { width: 100%; }

    /* Footer */
    #site-footer { padding: 60px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { padding: 40px 0 24px; text-align: center; }
    .footer-legal-links { gap: 24px; flex-wrap: wrap; justify-content: center; }

    /* Modal */
    #inquiry-modal > div { padding: 40px 24px !important; }

    /* Marquee */
    .marquee-track { padding: 16px 0; }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-title { font-size: clamp(30px, 9vw, 44px) !important; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px 12px; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 10px; }
    .pillars-grid { gap: 12px; }
    .pillar-card { padding: 20px 12px; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title { font-size: clamp(44px, 6vw, 64px); }
    #manifesto { padding: 100px 48px; }
    .revenue-card { padding: 32px; }
    .unit-card { padding: 36px; }
    .founder-content { padding-left: 40px; }
    .location-panel-wrap { left: 48px; }
}

/* ============================================================
   WP ADMIN BAR OFFSET
   ============================================================ */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar #site-header { top: 46px; }
}

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding-bottom: var(--section-gap);
    padding-top: 180px;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--background) 0%,
        rgba(10,10,10,0.55) 50%,
        rgba(10,10,10,0.7) 100%
    );
}

.page-hero-content {
    position: relative;
    z-index: 10;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TWO-COL GRID
   ============================================================ */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

@media (min-width: 900px) {
    .two-col-grid { grid-template-columns: 1fr 1fr; }
}

.section-py {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

/* ============================================================
   STATS FEATURE CARDS (4 ACROSS)
   ============================================================ */
.stats-4col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gutter);
}

@media (min-width: 768px) { .stats-4col { grid-template-columns: repeat(4, 1fr); } }

.stat-feature-card {
    padding: 40px 32px;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease;
}
.stat-feature-card:hover { transform: translateY(-6px); }

.stat-feature-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    line-height: 1.1;
}

/* ============================================================
   UNITS GRID (RESIDENTIAL PAGE)
   ============================================================ */
.units-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

@media (min-width: 768px) { .units-grid { grid-template-columns: repeat(3, 1fr); } }

.unit-card-header { margin-bottom: 8px; }

/* ============================================================
   AMENITIES GRID (RESIDENTIAL PAGE)
   ============================================================ */
.amenities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

@media (min-width: 768px) { .amenities-grid { grid-template-columns: repeat(3, 1fr); } }

.amenity-card {
    border-radius: 4px;
    overflow: hidden;
    background: var(--surface-container);
    transition: transform 0.4s var(--ease-out-expo);
}
.amenity-card:hover { transform: translateY(-6px); }

.amenity-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.amenity-card:hover .amenity-img { transform: scale(1.05); }

.amenity-body { padding: 32px; }

/* ============================================================
   MODAL INPUT STYLE
   ============================================================ */
.modal-input {
    width: 100%;
    padding: 16px;
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    border-radius: 4px;
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    display: block;
}
.modal-input:focus {
    border-color: rgba(212,175,55,0.6);
    box-shadow: 0 0 0 1px rgba(212,175,55,0.2);
}
select.modal-input option {
    background: var(--surface-container);
    color: var(--on-surface);
}

/* ============================================================
   PAGE TRANSITION — instant fade-in on new pages
   ============================================================ */
body:not(.is-home) main,
body:not(.is-home) .page-hero {
    animation: pageFadeIn 0.5s ease forwards;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   WP ADMIN BAR OFFSET
   ============================================================ */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar #site-header { top: 46px; }
}

/* ============================================================
   MOBILE-SPECIFIC ANIMATIONS & ENHANCEMENTS
   ============================================================ */

/* Floating/pulse animation for map pin on mobile */
@media (max-width: 768px) {
    .map-pin-dot {
        animation: pinFloat 3s ease-in-out infinite;
    }
}

@keyframes pinFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* Mobile touch active states */
@media (max-width: 768px) {
    .revenue-card:active,
    .pillar-card:active,
    .stat-card:active {
        transform: scale(0.97) !important;
        transition: transform 0.15s ease !important;
    }

    .btn-primary:active {
        transform: scale(0.95) !important;
        box-shadow: 0 4px 16px rgba(212,175,55,0.3) !important;
        transition: transform 0.1s ease !important;
    }

    .btn-secondary:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }

    /* Stagger animation on mobile for revenue cards */
    .revenue-cards .revenue-card:nth-child(1) { transition-delay: 0ms; }
    .revenue-cards .revenue-card:nth-child(2) { transition-delay: 100ms; }
    .revenue-cards .revenue-card:nth-child(3) { transition-delay: 200ms; }

    /* Stagger for pillars */
    .pillars-grid .pillar-card:nth-child(1) { transition-delay: 0ms; }
    .pillars-grid .pillar-card:nth-child(2) { transition-delay: 80ms; }
    .pillars-grid .pillar-card:nth-child(3) { transition-delay: 160ms; }
    .pillars-grid .pillar-card:nth-child(4) { transition-delay: 240ms; }

    /* Smoother reveal transitions on mobile */
    .reveal-on-scroll,
    .reveal-left,
    .reveal-right {
        transition-duration: 0.6s !important;
    }

    /* Better roadmap on mobile — vertical timeline style */
    .roadmap-grid::before {
        content: '';
        position: absolute;
        left: 6px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(to bottom, var(--luxury-gold), rgba(212,175,55,0.2), transparent);
    }
    .roadmap-grid {
        position: relative;
        padding-left: 0;
    }

    /* Hero subtitle spacing on mobile */
    .hero-subtitle {
        margin-bottom: 32px;
        font-size: 15px;
        letter-spacing: 0.06em;
    }

    /* Commercial panels stack with proper height */
    .commercial-panel:first-child { min-height: 55vw; }
    .commercial-panel:last-child  { min-height: 55vw; }

    /* Gallery secondary row — stack properly */
    .gallery-secondary-row > .reveal-right .gallery-img {
        aspect-ratio: 16/9 !important;
    }

    /* Founder section — image proportions */
    .founder-image {
        max-height: 320px;
        aspect-ratio: 3/2 !important;
    }

    /* Energy grid — stack vertically with dividers */
    .energy-stats > div {
        padding-bottom: 32px;
        border-bottom: 1px solid rgba(68,71,72,0.2);
    }
    .energy-stats > div:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    /* Valuation cards on mobile */
    .valuation-cards { gap: 16px; }
    .valuation-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Footer email row */
    .footer-email-row { flex-wrap: wrap; gap: 12px; }

    /* Page hero on mobile */
    .page-hero {
        min-height: 50vh;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    /* Inquiry modal full-screen on small screens */
    #inquiry-modal {
        padding: 0 !important;
        align-items: flex-end !important;
    }
    #inquiry-modal > div {
        border-radius: 16px 16px 0 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ============================================================
   MOBILE — location section bottom fade
   ============================================================ */
@media (max-width: 768px) {
    .location-map-wrap::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(to top, var(--background), transparent);
        z-index: 3;
        pointer-events: none;
    }
}

/* ============================================================
   ENSURE IMAGES LOAD — fallback tints for all bg-image sections
   ============================================================ */
.hero-bg-img,
.manifesto-image,
.unit-image,
.commercial-panel-bg,
.founder-image,
.location-map-wrap,
.cta-bg {
    background-color: var(--surface-container-low);
}

/* ============================================================
   PRINT / REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-on-scroll,
    .reveal-left,
    .reveal-right,
    .reveal-fade,
    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */

/* Full-width template: remove any padding, let Elementor stretch edge-to-edge */
.elementor-full-width-main {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Elementor editor iframe: inherit dark theme variables */
.elementor-editor-active body,
.elementor-preview body {
    background: var(--background, #0a0a0a);
    color: var(--on-surface, #e8e8e4);
}

/* Prevent our custom cursor from interfering in the Elementor editor */
.elementor-editor-active .cursor-dot,
.elementor-editor-active .cursor-ring,
.elementor-editor-active #particles-canvas {
    display: none !important;
}

/* Ensure Elementor sections can sit behind the header properly */
.elementor-section,
.e-con {
    position: relative;
}

/* Make sure Elementor popups/modals appear above theme header */
.elementor-popup-modal {
    z-index: 10001 !important;
}

/* Admin bar offset for Elementor editor */
.admin-bar .elementor-editor-active #site-header {
    top: 32px;
}

