:root {
    --bg-main: #FAFAFA;       
    --bg-card: rgba(255, 255, 255, 0.65); 
    --text-main: #0A0A0A;     
    --text-muted: #555555;    
    --border-color: rgba(0, 0, 0, 0.08);  
    --accent-yellow: #FACC15; 
    --accent-dark: #111111;        
    --max-width: 1200px;
    --smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-main);
    color: var(--text-main); 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden;
}

h1, h2, h3, .logo { 
    font-family: 'Outfit', sans-serif; 
    letter-spacing: -0.5px; 
    color: var(--text-main); 
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 5%; }

/* --- Background & Header --- */
.tinted-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF0 50%, #FEF3C7 100%);
}

.lottie-bg-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2;
    overflow: hidden; background-color: var(--bg-main); display: flex; justify-content: center; align-items: center;
}
.lottie-bg-container iframe {
    width: 150vmax; height: 150vmax; min-width: 100vw; min-height: 100vh;
    flex-shrink: 0; border: none; opacity: 0.25; pointer-events: none; transform: scale(1.1);
}
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

header {
    padding: 1.25rem 0; position: sticky; top: 0;
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-color); z-index: 100;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
nav { display: flex; gap: 2.5rem; align-items: center; }
nav a { font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); transition: color 0.3s var(--smooth); }
nav a:hover, nav a.active { color: var(--text-main); }

/* --- Buttons & Magnetic UI --- */
.btn {
    background: var(--accent-dark); color: #FFF; padding: 0.8rem 2rem; border-radius: 4px; font-weight: 600; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; 
    display: inline-block; border: 1px solid var(--accent-dark); box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn:hover { background: var(--accent-yellow); color: #000; border-color: var(--accent-yellow); box-shadow: 0 6px 15px rgba(250, 204, 21, 0.4); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--text-main); box-shadow: none; }
.btn-outline:hover { border-color: var(--accent-dark); background: var(--accent-dark); color: #FFF; }
.magnetic { transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }

/* --- Custom Cursor --- */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 6px; height: 6px; background-color: var(--accent-dark); transition: background-color 0.3s ease; }
.cursor-outline { width: 40px; height: 40px; border: 1.5px solid rgba(17, 17, 17, 0.4); }
.cursor-hover { width: 60px; height: 60px; background-color: rgba(250, 204, 21, 0.2); border-color: transparent; }
.cursor-hover-dot { background-color: transparent; }

@media (min-width: 769px) { body, a, button, .btn { cursor: none !important; } }
@media (max-width: 768px) { .cursor-dot, .cursor-outline { display: none !important; } }

/* --- Page Transitions & Reveals --- */
.page-transition {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #050505; z-index: 10000;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1); transform-origin: top;
}
.page-transition.loaded { transform: scaleY(0); }

.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.hero { padding: 10rem 0 6rem; text-align: center; }
.hero-tag { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 3px; font-weight: 600; margin-bottom: 2rem; display: block; }
.hero h1 { font-size: 5.5rem; line-height: 1.1; margin-bottom: 2rem; font-weight: 800; text-transform: uppercase; letter-spacing: -2px; }
.hero p { color: var(--text-muted); font-size: 1.25rem; font-weight: 400; margin: 0 auto 3.5rem; max-width: 600px; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

.hero-stagger { opacity: 0; transform: translateY(30px); animation: fadeUp 1s forwards cubic-bezier(0.16, 1, 0.3, 1); }
.hero-stagger:nth-child(1) { animation-delay: 0.2s; }
.hero-stagger:nth-child(2) { animation-delay: 0.35s; }
.hero-stagger:nth-child(3) { animation-delay: 0.5s; }
.hero-stagger:nth-child(4) { animation-delay: 0.65s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

section { padding: 6rem 0; position: relative; }
.section-header { margin-bottom: 4rem; text-align: center; }
.section-header span { color: var(--text-muted); font-weight: 600; margin-bottom: 1rem; display: block; text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; }
.section-header h2 { font-size: 3.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -1px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

/* --- Cards & Case Studies --- */
.card {
    background: var(--bg-card); padding: 3rem; border: 1px solid var(--border-color); border-radius: 8px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s var(--smooth), box-shadow 0.4s var(--smooth), background 0.4s ease;
    display: flex; flex-direction: column; box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.9); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.card-num { color: var(--text-muted); font-family: 'Outfit', sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; font-weight: 600;}
.card h3 { font-size: 1.75rem; margin-bottom: 1rem; font-weight: 700; }
.card p { color: var(--text-muted); margin-bottom: 2rem; flex-grow: 1; font-weight: 400; }
.card ul li { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; font-weight: 500; display: flex; align-items: center; }
.card ul li::before { content: "—"; margin-right: 1rem; color: var(--accent-dark); font-weight: 700; }

/* Zig-Zag Work Layout */
.zigzag-row { display: flex; align-items: center; justify-content: center; gap: 6rem; margin-bottom: 8rem; }
.zigzag-row:last-child { margin-bottom: 0; }

.reel-wrapper {
    width: 100%; max-width: 320px; aspect-ratio: 9/16; background: #000; border-radius: 12px;
    overflow: hidden; border: 1px solid var(--border-color); transition: transform 0.6s var(--smooth), box-shadow 0.6s var(--smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); position: relative;
}
.reel-wrapper:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.reel-wrapper video { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; display: block; }

.case-study-card {
    width: 100%; max-width: 320px; aspect-ratio: 9/16; background: #0A0A0A; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1); padding: 2.5rem 2rem; display: flex; flex-direction: column;
    position: relative; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); color: #FFFFFF;
    transition: transform 0.6s var(--smooth), box-shadow 0.6s var(--smooth);
}
.case-study-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.case-header { margin-bottom: auto; }
.client-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 3px; color: #888; display: block; margin-bottom: 0.5rem; font-weight: 600; }
.client-name { font-size: 1.1rem; color: #FFF; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.case-result { margin-top: auto; z-index: 2; position: relative; }
.result-number { font-size: 3.5rem; line-height: 1; font-weight: 800; color: #FFF; letter-spacing: -2px; margin-bottom: 0.25rem; }
.result-label { font-size: 0.85rem; font-weight: 600; color: var(--accent-yellow); text-transform: uppercase; letter-spacing: 2px; }
.case-footer { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.2rem; z-index: 2; position: relative; }
.case-footer p { font-size: 0.75rem; color: #AAA; line-height: 1.5; font-weight: 300; margin-bottom: 0; }
.case-graph { position: absolute; bottom: 3.5rem; left: 0; width: 100%; height: 40%; z-index: 1; }
.case-graph svg { width: 100%; height: 100%; overflow: visible; }

/* SVG Graph Animations */
.graph-line { stroke-dasharray: 200; stroke-dashoffset: 200; }
.case-study-card.active .graph-line { animation: drawGraph 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.3s; }
.graph-fill { opacity: 0; }
.case-study-card.active .graph-fill { animation: fadeGraphFill 1.5s ease forwards; animation-delay: 0.8s; }
.milestone { opacity: 0; transform-origin: center; transform: scale(0); }
.case-study-card.active .m-1 { animation: popDot 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 1.2s; }
.case-study-card.active .m-2 { animation: popDot 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 1.4s; }

@keyframes drawGraph { to { stroke-dashoffset: 0; } }
@keyframes fadeGraphFill { to { opacity: 1; } }
@keyframes popDot { to { opacity: 1; transform: scale(1); } }

/* --- Pricing Elements --- */
.price-box { background: var(--accent-dark); color: #FFF; display: inline-block; padding: 0.75rem 1.5rem; border-radius: 8px; margin-bottom: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.price { font-size: 2.5rem; font-weight: 800; margin-bottom: 0; letter-spacing: -1px; color: #FFF; }
.price span { font-size: 1.1rem; color: #BBB; font-weight: 500; font-family: 'Inter', sans-serif; letter-spacing: 0;}
.card.popular { border: 2px solid var(--accent-yellow); background: rgba(255, 255, 255, 0.9); box-shadow: 0 15px 35px rgba(250, 204, 21, 0.15); transform: scale(1.02); }
.card.popular:hover { transform: scale(1.02) translateY(-5px); }
.card.popular .price-box { background: var(--accent-yellow); color: #000; }
.card.popular .price { color: #000; }
.card.popular .price span { color: rgba(0,0,0,0.7); }
.popular-badge { background: var(--accent-dark); color: #FFF; font-size: 0.7rem; padding: 0.4rem 1rem; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; display: inline-block; margin-bottom: 1.5rem; }

/* --- Testimonials & Footer --- */
.testimonial-text { font-size: 1.25rem; font-weight: 400; line-height: 1.7; color: var(--text-main); margin-bottom: 2rem; }
.testimonial-author { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }
.final-cta { background: var(--accent-dark); color: #FFF; border: none; }
.final-cta h2, .final-cta p { color: #FFF; }
.final-cta .btn { background: var(--accent-yellow); color: #000; border: none; }
.final-cta .btn:hover { background: #FFF; }

footer { border-top: 1px solid var(--border-color); padding: 4rem 0; text-align: center; }
footer p { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 1rem; font-weight: 500; }

@media (max-width: 992px) { 
    .hero h1 { font-size: 4rem; } 
    .section-header h2 { font-size: 2.75rem; } 
    .zigzag-row { gap: 3rem; margin-bottom: 6rem; }
}
@media (max-width: 768px) { 
    nav { display: none; } 
    .hero { padding: 6rem 0 4rem; } 
    .hero h1 { font-size: 2.8rem; } 
    .card { padding: 2rem; } 
    .card.popular { transform: none; } 
    .card.popular:hover { transform: translateY(-5px); } 
    .zigzag-row { flex-direction: column; gap: 3rem; margin-bottom: 4rem; }
}