/* --- RESET & CORE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none; }

/* --- LUXURY COLOR PALETTE --- */
:root { 
    --bg-color: #0a0908;       /* Deep Warm Charcoal */
    --text-color: #E0D8C8;     /* Bone/Cream White */
    --accent-color: #C2A374;   /* Muted Gold/Brass */
    --gray-dim: #8C867A;       /* Warm Taupe */
    --border-color: #2A2622;   /* Subtle Dark Brown Border */
    --font-main: 'Helvetica Neue', 'Arial Black', sans-serif; 
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: var(--font-main); 
    overflow-x: hidden; 
    width: 100%;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }

/* --- LENIS SMOOTH SCROLL --- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { oversizer-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* --- CUSTOM CURSOR --- */
.cursor { 
    position: fixed; top: 0; left: 0; width: 20px; height: 20px; 
    border: 1px solid var(--accent-color); 
    border-radius: 50%; pointer-events: none; 
    z-index: 9999; transform: translate(-50%, -50%); 
    transition: width 0.3s, height 0.3s, background-color 0.3s; 
    will-change: transform; mix-blend-mode: normal;
}
.cursor.active { 
    width: 80px; height: 80px; 
    background-color: rgba(194, 163, 116, 0.2); 
    border-color: var(--accent-color);
}

/* --- NOISE TEXTURE --- */
.noise { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    pointer-events: none; z-index: 10000; opacity: 0.03; 
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E'); 
}

/* --- LOADER --- */
.loader { position: fixed; inset: 0; background: #F2EEE6; z-index: 9998; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.loader-logo-text { font-size: 15vw; font-weight: 900; color: var(--bg-color); letter-spacing: -0.05em; z-index: 2; position: relative; text-transform: uppercase; }
.loader-bg-expand { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; background-color: var(--accent-color); border-radius: 50%; transform: translate(-50%, -50%); z-index: 1; }

/* --- TYPOGRAPHY --- */
.split-char { display: inline-block; will-change: transform, opacity; }
h1, h2, h3 { text-transform: uppercase; line-height: 1.1; }

/* --- NAV --- */
nav { 
    position: fixed; top: 30px; width: 100%; padding: 0 5vw; 
    display: flex; justify-content: flex-start; align-items: center; 
    z-index: 100; 
}

.logo { display: block; cursor: pointer; z-index: 101; pointer-events: auto; }
.logo img { 
    height: 90px; width: auto; display: block; 
    filter: sepia(1) hue-rotate(10deg) saturate(0.5) brightness(1.2); 
    transition: filter 0.3s ease;
}
.logo:hover img { filter: sepia(1) hue-rotate(10deg) saturate(1) brightness(1.1); }

/* --- HERO SECTION --- */
.hero { 
    min-height: 100vh; 
    display: flex; flex-direction: column; justify-content: center; 
    padding: 150px 5vw 100px 5vw; position: relative; z-index: 2; 
    background: var(--bg-color); overflow: hidden; 
}

.video-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; opacity: 0.6;
}

.video-bg video {
    width: 100%; height: 100%; object-fit: cover;
}

.hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(194, 163, 116, 0.05) 0%, rgba(10, 9, 8, 0.4) 100%);
    pointer-events: none; z-index: 2;
}

.hero-title { 
    font-size: clamp(3rem, 8vw, 10rem); font-weight: 900; letter-spacing: -0.03em; 
    z-index: 5; position: relative; line-height: 1; max-width: 100%; 
    word-wrap: break-word; pointer-events: none; will-change: transform;
}
.hero-title .line { display: block; }
.hero-title .line[style*="italic"] { opacity: 1 !important; color: var(--gray-dim); }

.hero-sub { 
    margin-top: 40px; font-size: 1.1rem; max-width: 500px; 
    line-height: 1.6; color: var(--gray-dim); text-transform: uppercase; 
    position: relative; z-index: 5; pointer-events: none; 
}

/* --- CAPABILITIES --- */
.services-section { 
    padding: 15vh 5vw; background: #0F0D0B; 
    border-top: 1px solid var(--border-color); 
    position: relative; z-index: 2; 
}
.section-header { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent-color); opacity: 0.8; margin-bottom: 60px; display: block; }

.service-item { border-top: 1px solid var(--border-color); padding: 30px 0; cursor: pointer; transition: all 0.3s; }
.service-item:last-child { border-bottom: 1px solid var(--border-color); }

.service-header { display: flex; justify-content: space-between; align-items: center; }
.service-title { font-size: 4vw; font-weight: 900; text-transform: uppercase; transition: padding-left 0.4s ease, color 0.3s; }
.service-title[style*="#888"] { color: var(--accent-color) !important; opacity: 0.7; }

.service-icon { width: 30px; height: 30px; transition: transform 0.4s; display: flex; align-items: center; justify-content: center; }
.service-icon svg { width: 100%; height: 100%; stroke: var(--text-color); stroke-width: 1.5; transition: stroke 0.3s; }

.service-details { height: 0; overflow: hidden; font-size: 1.1rem; color: var(--gray-dim); max-width: 600px; line-height: 1.5; opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.service-details p { padding-top: 20px; }

.service-item:hover { background: #141210; }
.service-item:hover .service-title { color: var(--accent-color); padding-left: 20px; }
.service-item:hover .service-icon svg { stroke: var(--accent-color); }
.service-item:hover .service-details { height: auto; opacity: 1; transform: translateY(0); display: block; padding-bottom: 20px; }
.service-item:hover .service-icon { transform: rotate(90deg); }

/* --- PROCESS --- */
.process-section { padding: 10vh 5vw; background: var(--bg-color); position: relative; z-index: 2; }
.process-intro { font-size: clamp(1.2rem, 3vw, 2.5rem); line-height: 1.4; max-width: 90%; margin-bottom: 100px; font-weight: 600; color: var(--gray-dim); }
.word-highlight { display: inline-block; margin-right: 0.25em; opacity: 0.3; transition: opacity 0.1s; }
.timeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.timeline-item { padding-top: 30px; border-top: 2px solid var(--accent-color); transition: opacity 0.4s ease, filter 0.4s ease; cursor: default; }
.timeline-grid:hover .timeline-item { opacity: 0.2; filter: blur(3px); }
.timeline-grid .timeline-item:hover { opacity: 1; filter: blur(0px); }
.t-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.t-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: flex-start; }
.t-icon svg { width: 30px; height: 30px; stroke: var(--accent-color); stroke-width: 1.5; fill: none; }
.t-title { font-size: 1.5rem; font-weight: 700; color: var(--text-color); }
.t-duration { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-dim); margin-top: 5px; display: block; }
.t-desc { font-size: 1rem; color: var(--gray-dim); line-height: 1.6; }

/* --- MARQUEE BANNER --- */
.marq-banner { padding: 12vh 0; background: #0F0D0B; position: relative; z-index: 10; overflow: hidden; display: flex; flex-direction: column; gap: 20px; }
.marq-line { 
    font-size: clamp(3rem, 7vw, 10rem); 
    font-weight: 900; text-transform: uppercase; 
    line-height: 1.1; white-space: nowrap; will-change: transform; 
    backface-visibility: hidden; color: var(--accent-color); opacity: 0.8;
}
.marq-outline { color: transparent; -webkit-text-stroke: 1px var(--accent-color); opacity: 0.5; }

/* --- ZOOM PORTAL (VIDEO BG) --- */
.zoom-portal { height: 300vh; position: relative; z-index: 5; }
.sticky-wrapper { 
    position: sticky; top: 0; width: 100%; height: 100dvh; 
    overflow: hidden; display: flex; align-items: center; justify-content: center; 
    background: #0a0908; 
}

.zoom-img { 
    position: absolute; 
    /* RESTORED INITIAL SIZE FOR ANIMATION */
    width: 400px; 
    height: 300px; 
    object-fit: cover; 
    z-index: 1; 
    will-change: transform, width, height;
}

.portal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 9, 8, 0.9); z-index: 2; opacity: 0; will-change: opacity; }
.agency-content { 
    position: absolute; z-index: 5; color: var(--text-color); text-align: left; 
    width: 100%; padding: 0 5vw; 
    top: 50%; transform: translate(0, 50%); 
    opacity: 0; will-change: transform, opacity;
}
.ac-title { font-size: clamp(3rem, 6vw, 8rem); font-weight: 900; text-transform: uppercase; margin-bottom: 50px; line-height: 0.9; color: var(--accent-color); }
.ac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ac-item h3 { font-size: 1.5rem; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; color: var(--text-color); }
.ac-item p { font-size: 1rem; color: var(--gray-dim); line-height: 1.4; }

/* --- PROJECTS --- */
.projects { padding: 10vh 0; background: var(--bg-color); position: relative; z-index: 10; }
.project-item { 
    padding: 5vh 5vw; border-top: 1px solid var(--border-color); 
    display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; 
    transition: background 0.4s ease; position: relative; z-index: 2; min-height: 250px; overflow: hidden; 
}
.project-item:last-child { border-bottom: 1px solid var(--border-color); }
.project-item:hover { background: #0F0D0B; }

.project-info { z-index: 4; position: relative; }
.project-name { font-size: clamp(2rem, 5vw, 6rem); font-weight: 900; text-transform: uppercase; line-height: 0.9; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s; white-space: nowrap; color: var(--text-color); }
.project-img-wrapper { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: flex-end; z-index: 3; }
.project-fixed-img { width: 300px; height: 180px; object-fit: cover; opacity: 0; filter: grayscale(100%) brightness(0.8) sepia(0.2); transform: scale(0.8) rotate(-5deg); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.project-cat { display: block; margin-top: 10px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; color: var(--gray-dim); transition: color 0.3s; }

.project-item:hover .project-name { transform: translateX(10px); color: var(--accent-color); }
.project-item:hover .project-fixed-img { opacity: 1; transform: scale(1) rotate(0deg); filter: grayscale(0%) brightness(1) sepia(0); }
.project-item:hover .project-cat { opacity: 1; color: var(--accent-color); }

/* --- TESTIMONIALS CAROUSEL --- */
.testimonials { padding: 15vh 0; background: #0F0D0B; position: relative; z-index: 10; border-top: 1px solid var(--border-color); overflow: hidden; }
.section-header-carousel { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-color); opacity: 0.8; margin-bottom: 60px; margin-left: 5vw; display: block; }
.testi-track { display: flex; width: fit-content; gap: 4vw; padding-left: 5vw; will-change: transform; }
.testi-item { display: flex; flex-direction: column; justify-content: space-between; width: 35vw; min-width: 400px; flex-shrink: 0; background: var(--bg-color); padding: 40px; border: 1px solid var(--border-color); transition: all 0.3s; }
.testi-item:hover { background: #141210; border-color: var(--accent-color); }
.testi-quote { font-size: 1.3rem; font-weight: 500; line-height: 1.4; margin-bottom: 40px; color: var(--text-color); }
.testi-client { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-color); border-top: 1px solid var(--border-color); padding-top: 20px; display: flex; justify-content: space-between; }
.testi-role { opacity: 0.7; color: var(--gray-dim); }

/* --- CTA --- */
.cta { height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background-color: #E0D8C8; color: var(--bg-color); position: relative; z-index: 10; }
.cta h2 { font-size: 10vw; font-weight: 900; line-height: 0.85; color: var(--bg-color); }
.cta-btn { 
    margin-top: 50px; padding: 20px 50px; 
    background: var(--bg-color); color: var(--accent-color);
    border: 1px solid var(--bg-color); 
    text-transform: uppercase; font-weight: 700; letter-spacing: 0.1em; 
    transition: all 0.3s ease; 
}
.cta-btn:hover { background: var(--accent-color); color: var(--bg-color); border-color: var(--accent-color); }

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .cursor { display: none; } body { cursor: auto; }
    .loader-logo-text { font-size: 18vw; }
    .logo img { height: 60px; } 
    nav { padding: 0 30px; }
    .hero { padding: 120px 30px 80px 30px; }
    
    /* Make zoom img start bigger on mobile */
    .zoom-img { width: 80vw; height: 40vh; }

    .services-section { padding: 10vh 30px; } .service-icon { width: 20px; height: 20px; }
    .process-section { padding: 8vh 30px; }
    .timeline-grid { grid-template-columns: 1fr; gap: 40px; }
    .marq-banner { gap: 15px; padding: 8vh 0; } 
    .agency-content { padding: 0 30px; top: 60%; transform: translate(0, 50%); } 
    .ac-grid { grid-template-columns: 1fr; gap: 40px; }
    .project-item { grid-template-columns: 1fr; height: auto; padding: 40px 30px; gap: 20px; }
    .project-name { white-space: normal; line-height: 1.1; }
    .project-img-wrapper { justify-content: flex-start; width: 100%; height: 200px; }
    .project-fixed-img { opacity: 1; transform: none; width: 100%; height: 100%; border-radius: 4px; filter: grayscale(0%) brightness(1) sepia(0); }
    .project-cat { margin-top: 5px; opacity: 0.7; }
    .testimonials { padding: 10vh 0; }
    .section-header-carousel { margin-left: 30px; }
    .testi-track { padding-left: 30px; gap: 20px; }
    .testi-item { width: 85vw; min-width: auto; padding: 30px; }
    .cta h2 { font-size: 14vw; }
    .cta-btn { padding: 15px 30px; font-size: 0.9rem; }
}