/* =============================================================================
   TRAZZOS — Neolith-Inspired Premium CSS
   Brand Colors: #1E3163 (Primary Blue), #00AEEF (Cyan Accent)
   Typography: Cormorant Garamond (Serif) + Archivo (Sans-Serif)
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Archivo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #1e3163;
    --primary-dark: #0d1a3a;
    --primary-deeper: #080f24;
    --accent: #00aeef;
    --accent-glow: rgba(0, 174, 239, 0.15);
    --accent-soft: #4dc9f6;
    --accent-text-light: #0077a8;
    --gold: #c9a96e;
    --bg-dark: #0a0e1a;
    --bg-cream: #f5f0eb;
    --bg-offwhite: #faf8f5;
    --text-dark: #0f172a;
    --text-body: #475569;
    --text-light: rgba(255, 255, 255, 0.95);
    --text-muted-light: rgba(255, 255, 255, 0.78);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-dark: #e2e8f0;
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Archivo', 'Inter', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --max-width: 1400px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 1024px) {
    .container { padding: 0 4rem; }
}

/* =========================================================================
   LOADER — Neolith-style opening sequence
   ========================================================================= */
.loader {
    position: fixed;
    inset: 0;
    background: var(--primary-deeper);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
}

.loader-logo {
    height: 80px;
    width: auto;
    margin-bottom: 2rem;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    mix-blend-mode: screen;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    animation: loaderFill 1.8s var(--ease-out-expo) forwards;
}

@keyframes loaderFill {
    to { width: 100%; }
}

/* =========================================================================
   HEADER — White clean header with dark text
   ========================================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0; /* Reduced padding to compensate for larger logo */
    height: 100px; /* Fixed height to ensure it doesn't grow */
    transition: all 0.5s var(--ease-out-expo);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.25rem 0;
    height: 80px; /* Slightly smaller on scroll but still ample for logo */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 2001;
    height: 100%;
}

.logo-img {
    height: 45px; /* Reduced further to avoid overlap */
    width: auto;
    object-fit: contain;
    transition: all 0.5s var(--ease-out-expo);
    mix-blend-mode: multiply;
}

@media (min-width: 1024px) {
    .logo-img { height: 100px; } 
    header.scrolled .logo-img { height: 75px; }
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 100%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 3000;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
}

@media (min-width: 480px) {
    .nav-links {
        width: 400px; /* Drawer width on tablets/large phones */
    }
}

.nav-links.active {
    right: 0;
    box-shadow: -10px 0 50px rgba(0,0,0,0.1);
}

/* Menu Header Label inside the drawer */
.nav-links::before {
    content: 'MENÚ';
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: rgba(0,0,0,0.3);
    font-weight: 600;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-serif); /* Serif for luxury look like Natalia's */
    font-style: italic;
    font-weight: 400;
    font-size: 2rem; /* Larger for mobile menu */
    letter-spacing: 0;
    text-transform: none;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.nav-links.active a {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for menu links */
.nav-links.active a:nth-child(1) { transition-delay: 0.2s; }
.nav-links.active a:nth-child(2) { transition-delay: 0.3s; }
.nav-links.active a:nth-child(3) { transition-delay: 0.4s; }
.nav-links.active a:nth-child(4) { transition-delay: 0.5s; }
.nav-links.active a:nth-child(5) { transition-delay: 0.6s; }

.nav-links a:hover {
    color: var(--accent-text-light);
    padding-left: 10px;
}

@media (min-width: 768px) {
    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        right: auto;
        gap: 2rem;
        opacity: 1;
        transition: none;
        z-index: 1000;
    }

    .nav-links::before { display: none; }

    .nav-links a {
        font-family: var(--font-sans);
        font-style: normal;
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 2px;
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 1200px) {
    .nav-links a { font-size: 0.8rem; }
    .nav-links { gap: 2.5rem; }
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

.btn-outline-nav {
    display: none;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.4s var(--ease-out-expo);
    background: transparent;
}

.btn-outline-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (min-width: 768px) {
    .btn-outline-nav { display: inline-flex; }
}

/* Hamburger Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 3001;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--text-dark);
    transition: all 0.4s var(--ease-out-expo);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

/* =========================================================================
   HERO SECTION — Full-screen immersive like Neolith
   ========================================================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8, 15, 36, 0.85) 0%,
        rgba(30, 49, 99, 0.6) 40%,
        rgba(30, 49, 99, 0.15) 70%,
        transparent 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem 0; /* Added 8rem top padding to clear header */
    max-width: 900px;
}

@media (min-width: 1024px) {
    .hero-content {
        padding: 8rem 6rem 0; /* Maintain horizontal padding and add top clearance */
    }
}

.hero-text-wrapper {
    overflow: hidden;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    font-size: clamp(2.5rem, 5.5vw, 4.8rem);
    text-transform: uppercase;
}

.hero-title .line {
    display: block;
}

.hero-title em {
    font-style: normal;
    font-weight: 900;
    color: var(--accent-soft);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
    .hero-subtitle { font-size: 1.1rem; }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* =========================================================================
   BUTTONS — Refined, Architectural Style
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.4s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
    position: relative;
    box-shadow: none !important; /* Eliminate ghost shadows */
    outline: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.4s var(--ease-out-expo);
    font-size: 1.1rem;
}

.btn:hover .btn-arrow {
    transform: translateX(6px);
}

.btn-primary-hero {
    padding: 1rem 2rem;
    background: #ffffff;
    color: var(--primary-deeper);
    font-weight: 700;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-primary-hero:hover {
    background: var(--accent);
    color: var(--primary-deeper);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-ghost-hero {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 0;
}

.btn-ghost-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-explore {
    padding: 0;
    background: none;
    color: var(--accent-text-light);
    margin-top: 2rem;
}

.btn-explore::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-text-light);
    transition: width 0.4s var(--ease-out-expo);
}

.btn-explore:hover::after {
    width: 100%;
}

.btn-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 0;
    justify-content: center;
    font-size: 0.85rem;
}

.btn-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* =========================================================================
   SECTION HEADERS — Neolith editorial style
   ========================================================================= */
.section-header {
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-text-light);
    margin-bottom: 1.5rem;
    display: block;
}

.section-materials .section-label,
.section-cta-visual .section-label,
.materials-hero .section-label,
.section-team-full .section-label {
    color: var(--accent);
}

.section-heading {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    color: var(--text-dark);
}

.section-heading .line {
    display: block;
}

.section-heading em {
    font-style: italic;
    font-weight: 400;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-body);
    margin-top: 1.5rem;
    max-width: 500px;
    line-height: 1.8;
}

/* =========================================================================
   SERVICES SECTION — 50/50 Dual Panel Layout (Visible en 1 pantalla PC/Móvil)
   ========================================================================= */
.section-services {
    background: var(--bg-offwhite);
    padding: 3rem 0 4rem 0;
}

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

.section-services .section-desc {
    max-width: 750px;
    font-size: 1rem;
}

.service-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .service-panels {
        gap: 2.5rem;
        padding: 0 4rem;
    }
}

.service-panel {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    min-height: auto;
}

.service-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.panel-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 180px; /* Recortado a la mitad en móviles para encajar en 1 sola pantalla */
}

@media (min-width: 768px) {
    .panel-image-wrapper {
        height: 320px; /* Recortado al 50% de altura en PC */
    }
}

.panel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: transform 1.2s var(--ease-out-expo), opacity 1.2s var(--ease-out-expo);
}

.service-panel:hover .panel-image {
    transform: scale(1.05);
}

.panel-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    flex-grow: 1;
}

@media (min-width: 1024px) {
    .panel-content {
        padding: 2.5rem;
    }
}

.panel-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.panel-title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(1.5rem, 3.2vw, 3rem);
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.panel-title .line {
    display: block;
}

.panel-title em {
    font-style: italic;
    font-weight: 400;
}

.panel-desc {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 100%;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .panel-desc {
        font-size: 0.95rem;
    }
}

/* =========================================================================
   MATERIALS SECTION — Immersive hero + 3D cards
   ========================================================================= */
.section-materials {
    background: var(--bg-dark);
    padding: 0;
    overflow: hidden;
}

.materials-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.materials-hero-bg {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.materials-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 14, 26, 0.6) 0%,
        rgba(10, 14, 26, 0.85) 100%
    );
}

.materials-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
}

.materials-heading {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
}

.materials-heading .line {
    display: block;
}

.materials-heading em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-soft);
}

.materials-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto;
}

/* Materials Grid — 3D Perspective Cards */
.materials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 5rem 0 8rem;
}

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

.material-card-3d {
    perspective: 1000px;
    cursor: pointer;
}

.material-card-inner {
    position: relative;
    height: 550px;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

/* Lazy Loading Optimizations — Fast & Premium */
.lazy-img {
    opacity: 0;
    transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
    transform: scale(1.02);
}

.lazy-img.loaded {
    opacity: 1;
    transform: scale(1);
}

.material-card-inner {
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.material-card-3d:hover .material-card-inner {
    transform: rotateY(-3deg) rotateX(2deg) translateZ(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.material-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo);
}

.material-card-3d:hover .material-card-inner img {
    transform: scale(1.1);
}

.material-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(8, 15, 36, 0.95) 0%,
        rgba(8, 15, 36, 0.4) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: white;
    transform: translateY(20px);
    transition: transform 0.6s var(--ease-out-expo);
}

.material-card-3d:hover .material-card-overlay {
    transform: translateY(0);
}

.material-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.material-card-overlay h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
}

.material-card-overlay p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.material-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: gap 0.4s var(--ease-out-expo);
}

.material-cta:hover {
    gap: 1rem;
}

/* =========================================================================
   STATEMENT SECTION — "Your imagination" like Neolith
   ========================================================================= */
.section-statement {
    background: var(--bg-cream);
    padding: 10rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.statement-heading {
    font-family: var(--font-serif);
    font-weight: 500; /* Increased for better visibility */
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    line-height: 1.15;
    color: #000000; /* Maximum contrast (Black) */
    max-width: 900px;
    margin: 0 auto;
}

.statement-heading .line {
    display: block;
}

.statement-heading em {
    font-style: italic;
    font-weight: 500;
    color: #b5893e; /* A darker, more saturated gold for contrast */
}

.statement-small {
    font-family: var(--font-sans);
    font-size: clamp(0.8rem, 1.5vw, 1rem) !important;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary); /* Darker blue for contrast */
    margin-top: 2rem;
    display: block;
}

/* =========================================================================
   PROJECTS SECTION — Case study feature + masonry grid
   ========================================================================= */
.section-projects {
    background: var(--bg-offwhite);
    padding: 8rem 0;
}

.project-feature {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 60vh;
    margin-bottom: 5rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .project-feature {
        grid-template-columns: 1.4fr 0.6fr;
        min-height: 80vh;
    }
}

.project-feature-image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.project-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo);
}

.project-feature:hover .project-feature-image img {
    transform: scale(1.05);
}

.project-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--primary-dark);
    color: white;
}

@media (min-width: 1024px) {
    .project-feature-content { padding: 4rem 4rem; }
}

.project-feature-content .panel-label {
    color: var(--accent);
}

.project-feature-title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
}

.project-feature-title .line {
    display: block;
}

.project-feature-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-soft);
}

.project-feature-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 400px;
}

.project-feature-content .btn-explore {
    color: var(--accent);
}

/* Projects Masonry Grid */
.projects-grid-masonry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    grid-auto-rows: 280px;
    grid-auto-flow: dense;
}

@media (min-width: 768px) {
    .projects-grid-masonry {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 300px;
    }
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo), opacity 1.2s var(--ease-out-expo);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 15, 36, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s var(--ease-out-expo);
}

.project-card:hover .project-card-info {
    opacity: 1;
    transform: translateY(0);
}

.project-card-info h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.3rem;
}

.project-card-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .project-card-tall { grid-row: span 2; }
    .project-card-wide { grid-column: span 2; }
}

/* =========================================================================
   TEAM SECTION — Neolith Horizontal Scroll Carousel
   ========================================================================= */
.section-team {
    background: #fff;
    padding: 10rem 0 6rem;
    overflow: hidden;
    position: relative;
}

.team-gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 5vh;
}

.team-gallery {
    display: flex;
    gap: 0;
    padding: 0;
    /* CSS animation carousel — no GSAP dependency */
    animation: teamScroll 30s linear infinite;
}

.team-gallery:hover {
    animation-play-state: paused;
}

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

.team-member,
.team-card {
    width: 380px;
    height: 600px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .team-member,
    .team-card {
        width: calc(100vw / 5);
        height: 70vh;
        min-height: 500px;
    }

    .team-gallery {
        /* On desktop: show all 5 cards across, no animation needed */
        animation: none;
        width: 100%;
    }
}

.team-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s var(--ease-out-expo);
}

.team-member:hover .team-image,
.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 10;
}

/* The distinct Neolith black box label */
.team-info {
    background: #000;
    padding: 1.5rem 2rem;
    width: fit-content;
    min-width: 220px;
    pointer-events: auto;
}

.team-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.team-role {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .team-member,
    .team-card {
        width: 85vw;
        height: 500px;
    }
}

/* =========================================================================
   CTA VISUAL SECTION — "If exploring inspires you" like Neolith
   ========================================================================= */
.section-cta-visual {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 6rem 2rem;
}

.cta-visual-bg {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.cta-visual-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 36, 0.75);
}

.cta-visual-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cta-visual-heading {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1.15;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-visual-heading .line {
    display: block;
}

.cta-visual-heading em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-soft);
}

.cta-visual-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto 2.5rem;
}

/* =========================================================================
   CONTACT SECTION
   ========================================================================= */
.section-contact {
    background: var(--bg-offwhite);
    padding: 4rem 0;
}

@media (min-width: 1024px) {
    .section-contact {
        padding: 8rem 0;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 1.3fr 0.7fr; gap: 4rem; }
}

.contact-form {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .contact-form {
        padding: 0;
        border-radius: 0;
    }
}

.form-intro {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: 1px solid var(--border-dark);
    border-radius: 0;
    background: white;
    color: var(--text-dark);
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-body);
    line-height: 1.4;
    cursor: pointer;
}

.form-checkbox label a {
    color: var(--accent-text-light);
    text-decoration: underline;
    transition: color 0.3s;
}

.form-checkbox label a:hover {
    color: var(--primary);
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-map {
    height: 300px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
}

.contact-details {
    background: white;
    padding: 2rem;
    border: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail-item .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 2px;
}

.contact-detail-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-detail-item p {
    font-size: 0.85rem;
    color: var(--text-body);
}

/* =========================================================================
   FOOTER — Clean, dark, like Neolith
   ========================================================================= */
footer {
    background: var(--primary-deeper);
    color: white;
    padding: 6rem 0 2rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 4rem;
    }
}

.footer-brand .logo-img {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    mix-blend-mode: screen;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    max-width: 300px;
}

.footer-links-group h5 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-group ul a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links-group ul a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-deeper);
}

.footer-newsletter span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

/* =========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    transition: transform 0.3s var(--ease-out-expo);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* =========================================================================
   REVEAL ANIMATIONS — CSS class-based (triggered by JS)
   Elements start hidden and animate in when .is-visible is added.
   ========================================================================= */
.reveal-text {
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.9s;
}

.reveal-text.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Staggered line reveals */
.reveal-text .line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.is-visible .line:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-text.is-visible .line:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-text.is-visible .line:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-text.is-visible .line:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* Panel content reveal */
.panel-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.panel-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Material cards reveal */
.material-card-3d {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.material-card-3d.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Statement heading reveal */
.statement-heading {
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.statement-heading:not(.is-visible) {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.statement-heading.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Project cards reveal */
.project-card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact form & info reveal */
.contact-form,
.contact-info-side {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form.is-visible,
.contact-info-side.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth cursor for the whole page */
::selection {
    background: var(--accent);
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--primary-deeper);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-soft);
}

/* =========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================= */
@media (max-width: 767px) {
    .hero-scroll-indicator { display: none; }
    
    .materials-grid { gap: 1.5rem; padding: 3rem 2rem 5rem; }
    .material-card-inner { height: 400px; }
    
    .about-stats { gap: 2rem; }
    .stat-number { font-size: 2.5rem; }
    
    .contact-form { padding: 2rem; }
    
    .projects-grid-masonry { gap: 1rem; grid-auto-rows: 250px; }
}

/* =========================================================================
   NOSOTROS PAGE SPECIFIC
   ========================================================================= */
.section-nosotros-hero {
    padding: 6rem 0 2rem;
    background: var(--bg-offwhite);
}

.section-story {
    background: var(--bg-offwhite);
    padding: 4rem 0 8rem;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: flex-start;
}

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

.story-image-wrapper {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.story-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-text-wrapper {
    padding-top: 2rem;
}

.story-paragraph {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 3rem;
    white-space: pre-line; /* Respect line breaks from Sheet */
}

.story-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.2;
    color: var(--primary);
}

.section-team-full {
    padding: 10rem 0;
    background: var(--bg-dark);
    color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: 0.8fr 1.2fr;
    }
}

.team-text h2 {
    color: white;
    margin-bottom: 2rem;
}

.team-text p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.team-image-large {
    height: 700px;
    overflow: hidden;
}

.team-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-vision {
    padding: 10rem 0;
    background: var(--bg-offwhite);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .vision-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.vision-img {
    height: 500px;
    overflow: hidden;
}

.vision-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vision-content p {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-top: 2rem;
}


/* =========================================================================
   CUSTOM CURSOR SYSTEM — Magnetic & Fluid (Cimenta Inspired)
   ========================================================================= */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 10000;
    display: none; /* Hidden by default, shown via JS if not touch */
    align-items: center;
    justify-content: center;
    mix-blend-mode: difference;
    transition: width 0.4s var(--ease-out-expo), 
                height 0.4s var(--ease-out-expo), 
                background-color 0.4s var(--ease-out-expo),
                border-radius 0.4s var(--ease-out-expo);
}

.cursor-dot {
    width: 24px;
    height: 24px;
    background-color: #87CEEB; /* Sky Blue */
    border-radius: 50%;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.4s var(--ease-out-expo);
}

.cursor-label {
    position: absolute;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s var(--ease-out-expo);
}

/* Hover States */
.custom-cursor.hovering {
    width: 320px;
    height: 320px;
}

.custom-cursor.hovering .cursor-dot {
    width: 100%;
    height: 100%;
    background-color: rgba(135, 206, 235, 0.4); /* Sky Blue semi-transparent */
    border: 1px solid rgba(135, 206, 235, 0.8);
}

.custom-cursor.hovering .cursor-label {
    opacity: 1;
    transform: scale(1);
}

/* Magnetic capture classes */
.magnetic-wrap {
    display: inline-block;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Project Card & CTA Cursor Expansion */
.project-card, .team-card, .btn, .nav-links a {
    cursor: none !important;
}

@media (hover: none) and (pointer: coarse) {
    .custom-cursor { display: none !important; }
    .project-card, .team-card, .btn, .nav-links a { cursor: pointer !important; }
}

@media (min-width: 1024px) {
    body {
        cursor: none;
    }
    
    .custom-cursor {
        display: flex;
    }
}

/* =========================================================================
   VIDEO OPTIMIZATIONS — Added by Optimization Expert
   ========================================================================= */
.project-feature-image video.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo);
}

.project-feature:hover .project-feature-image video.project-video {
    transform: scale(1.05);
}

.project-card video.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo), opacity 1.2s var(--ease-out-expo);
}

.project-card:hover video.project-video {
    transform: scale(1.1);
}

.service-panel video.panel-video {
    position: absolute;
    inset: -15%;
    width: 130%;
    height: 130%;
    object-fit: cover;
    will-change: transform;
    transition: transform 1.2s var(--ease-out-expo), opacity 1.2s var(--ease-out-expo);
}

.service-panel:hover video.panel-video {
    transform: scale(1.05);
}

/* =========================================================================
   HERO STATS BAR — METRIC INDICATORS
   ========================================================================= */
.hero-stats-bar {
    background: #080f24;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

.stat-item,
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.stat-item:not(:last-child)::after,
.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    display: none;
}

@media (min-width: 1024px) {
    .stat-item:not(:last-child)::after,
    .stat-card:not(:last-child)::after {
        display: block;
    }
}

.stat-value-wrap {
    display: flex;
    align-items: baseline;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-symbol {
    color: var(--accent);
    margin-left: 0.2rem;
}

.stat-label {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* =========================================================================
   BEFORE / AFTER COMPARISON SLIDER
   ========================================================================= */
.section-before-after {
    padding: 8rem 0;
    background: #0d1a3a;
    position: relative;
    overflow: hidden;
}

.before-after-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.before-after-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    user-select: none;
    touch-action: pan-y;
    cursor: e-resize;
}

@media (min-width: 768px) {
    .before-after-container {
        height: 600px;
    }
}

.ba-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ba-after {
    z-index: 1;
}

.ba-before {
    z-index: 2;
    overflow: hidden;
    border-right: 2px solid var(--accent);
    transition: width 0.05s linear;
}

.ba-badge {
    position: absolute;
    top: 1.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 3;
    pointer-events: none;
}

.ba-badge-after {
    right: 1.5rem;
    color: var(--accent);
}

.ba-badge-before {
    left: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    margin-left: -20px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ba-handle-line {
    width: 2px;
    flex-grow: 1;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.ba-handle-button {
    width: 48px;
    height: 48px;
    padding: 10px;
    background: #ffffff;
    color: var(--primary-deeper);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    border: 2px solid var(--accent);
    pointer-events: auto;
}

.ba-caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ba-caption-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.ba-caption-item span.material-symbols-outlined {
    color: var(--accent);
    font-size: 1.2rem;
}

/* =========================================================================
   PORTFOLIO FILTER TABS & PROJECT MODAL
   ========================================================================= */
.portfolio-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.75rem 1.8rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.filter-btn:hover, .filter-btn.active {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--primary-deeper);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.project-item {
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.project-item.hidden-project {
    display: none !important;
    opacity: 0;
    transform: scale(0.95);
}

/* Project Modal */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
    padding: 2rem;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 36, 0.9);
    backdrop-filter: blur(12px);
}

.project-modal-dialog {
    position: relative;
    z-index: 2;
    background: #0d1a3a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.project-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-modal-close:hover {
    background: var(--accent);
}

.project-modal-content {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .project-modal-content {
        grid-template-columns: 1.2fr 1fr;
    }
}

.project-modal-media img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}

.project-modal-details {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-modal-details h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #ffffff;
    margin: 0.5rem 0 1rem;
}

.project-modal-details p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spec-item span {
    color: var(--accent);
}

.spec-item h5 {
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* =========================================================================
   BEFORE / AFTER CONTRAST FIXES
   ========================================================================= */
.section-before-after .section-label {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 2px;
}

.section-before-after .section-heading .line {
    color: #ffffff !important;
}

.section-before-after .section-heading em {
    color: var(--accent);
    font-style: italic;
}

.section-before-after .section-desc {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* =========================================================================
   MULTI-STEP CONCIERGE FORM — HIGH CONTRAST STYLING
   ========================================================================= */
.form-progress {
    margin-bottom: 2.5rem;
    position: relative;
}

.form-progress-bar {
    height: 4px;
    background: var(--accent);
    border-radius: 4px;
    width: 33.33%;
    transition: width 0.4s var(--ease-out-expo);
}

.form-steps-indicators {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.step-indicator {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    transition: color 0.3s ease;
}

@media (min-width: 480px) {
    .step-indicator {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
}

.step-indicator.active {
    color: var(--accent-text-light);
}

.form-step {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-step.form-step-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin: 1.5rem 0 2rem;
}

@media (min-width: 640px) {
    .step-options-grid {
        gap: 1rem;
    }
}

.step-option,
.step-option-card {
    cursor: pointer;
}

.step-option input[type="radio"],
.step-option-card input[type="radio"] {
    display: none;
}

.option-tile,
.option-card-inner {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.85rem 0.5rem;
    text-align: center;
    transition: all 0.3s var(--ease-out-expo);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .option-tile,
    .option-card-inner {
        border-radius: 14px;
        padding: 1.5rem;
    }
}

.option-tile span.material-symbols-outlined,
.option-card-inner span.material-symbols-outlined {
    font-size: 1.8rem;
    color: #0077a8;
    margin-bottom: 0.3rem;
    display: block;
}

@media (min-width: 640px) {
    .option-tile span.material-symbols-outlined,
    .option-card-inner span.material-symbols-outlined {
        font-size: 2.4rem;
        margin-bottom: 0.6rem;
    }
}

.option-tile .option-title,
.option-tile h3,
.option-card-inner h4 {
    color: #0f172a !important;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

@media (min-width: 640px) {
    .option-tile .option-title,
    .option-tile h3,
    .option-card-inner h4 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }
}

.option-tile p,
.option-card-inner p {
    font-size: 0.72rem;
    color: #475569 !important;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .option-tile p,
    .option-card-inner p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

.step-option input[type="radio"]:checked + .option-tile,
.step-option-card input[type="radio"]:checked + .option-card-inner {
    background: #f0f9ff;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.step-option input[type="radio"]:checked + .option-tile .option-title,
.step-option input[type="radio"]:checked + .option-tile h3,
.step-option-card input[type="radio"]:checked + .option-card-inner h4 {
    color: var(--primary) !important;
}

.step-option input[type="radio"]:checked + .option-tile p,
.step-option-card input[type="radio"]:checked + .option-card-inner p {
    color: #0f172a !important;
}

.step-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.btn-next-step, .btn-submit {
    background: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 0.9rem 2rem !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
}

.btn-next-step:hover, .btn-submit:hover {
    background: var(--primary-dark) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3) !important;
}

.btn-prev-step {
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

.btn-prev-step:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}



