:root {
    --primary-red: #E60000;
    --primary-red-glow: rgba(230, 0, 0, 0.2);
    --black: #000000;
    --off-white: #FFFFFF;
    --light-grey: #F5F5F7;
    --dark-grey: #1d1d1f;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: initial;
    font-family: var(--font-body);
}

body {
    background-color: var(--off-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Utilities */
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; }
.hidden { display: none; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 3rem; }
.mb-xl { margin-bottom: 5rem; }
.py-xxl { padding-top: 8rem; padding-bottom: 8rem; }
.text-red { color: var(--primary-red); }

/* Buttons */
.btn-primary-red {
    background-color: var(--primary-red);
    color: var(--off-white);
    border: none;
    padding: 1.2rem 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-red:hover {
    background-color: var(--off-white);
    color: var(--black);
    transform: scale(1.05);
}

.btn-glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 1.2rem 3rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Custom Cursor */
.custom-cursor {
    width: 15px;
    height: 15px;
    background: var(--primary-red);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    height: 70px;
    width: 100%;
    z-index: 1000;
    background: var(--off-white);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--black);
}

/* Nav on Hero Section (Dark State) */
.nav.on-dark {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav.on-dark .logo { color: var(--off-white); }
.nav.on-dark .nav-link { color: rgba(255,255,255,0.8); }

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    margin: 0 20px;
}

.nav-link:hover {
    color: var(--primary-red);
}

/* Hero Section */
.sec-hero {
    min-height: 100vh;
    background: radial-gradient(circle at center, #1a0000 0%, #000000 100%);
    color: var(--off-white);
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 8vw; /* Slightly smaller to accommodate longer strings */
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: 2px; /* Increased letter spacing */
    color: var(--off-white);
    text-transform: uppercase;
}

#typewriter {
    letter-spacing: 4px; /* More spacing for the dynamic part */
}

#static-who {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
}

#typewriter::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 5px;
    color: var(--primary-red);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtext {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

/* Updated Hero Buttons */
.sec-hero .btn-primary-red {
    background-color: var(--primary-red);
    color: var(--off-white);
    box-shadow: 0 0 20px var(--primary-red-glow);
}

.sec-hero .btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--off-white);
}

.sec-hero .btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

.silhouette-glow {
    position: absolute;
    left: 10%;
    top: 40%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(230, 0, 0, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

/* Question Sections (Stacking Effect) */
.sec-question {
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    box-shadow: 0 -20px 50px rgba(0,0,0,0.05); /* Subtle shadow for stack separation */
}

.bg-light { background-color: var(--light-grey); }

.sec-question:nth-child(even) {
    background: var(--light-grey);
}

.q-huge-title {
    font-family: var(--font-heading);
    font-size: 5vw;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--black);
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.journey-card {
    padding: 4rem 2rem;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
    text-align: center;
    cursor: pointer;
    will-change: transform, opacity;
}

.journey-card:hover, .active-selection {
    background: var(--black);
    color: var(--off-white);
    border-color: var(--black);
    transform: translateY(-10px);
}

.step-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

/* Reveal & Subsequent Sections (Fix Overlap) */
.sec-reveal, .sec-proof, .sec-contact {
    position: relative;
    z-index: 100; /* Higher than sticky questions */
    background: var(--off-white);
    box-shadow: 0 -20px 50px rgba(0,0,0,0.1);
}

.sec-reveal {
    min-height: 100vh;
    background: var(--black);
    color: var(--off-white);
}

/* Hero Text Animation Helper */
.text-reveal-mask {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

.reveal-text {
    font-family: var(--font-heading);
    font-size: 5vw;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
}

/* Proof Section */
.sec-proof {
    background: var(--off-white);
}

.stats-grid {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 150px; /* Large horizontal gap */
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary-red); /* Changed to Red */
    margin-bottom: 1rem; /* Added gap */
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Lead Flow */
.sec-contact {
    background: var(--light-grey);
}

.interactive-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--black);
    color: var(--black);
    font-size: 3rem;
    font-weight: 900;
    padding: 1rem 0;
    outline: none;
}

/* Our Work Section */
.sec-work {
    padding: 8rem 0;
    background: var(--off-white);
}

.work-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-red);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-red);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.work-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--light-grey);
    border-radius: 4px;
    cursor: pointer;
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-item:hover .work-img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 2rem;
    text-align: center;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-category {
    color: var(--primary-red);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.work-title {
    color: var(--off-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

/* Clients Section */
.sec-clients {
    padding: 6rem 0;
    background: var(--off-white);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 4rem;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: 4rem;
    animation: scroll 40s linear infinite;
}

.client-logo {
    height: 80px; /* Bigger logos */
    filter: grayscale(0); /* Original color by default */
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.client-logo:hover {
    filter: grayscale(1); /* Greyed out on hover */
    opacity: 0.5;
    transform: scale(0.95); /* Subtle shrink on hover */
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 4rem; }
    .q-huge-title { font-size: 3rem; }
    .stat-number { font-size: 4rem; }
    .stats-grid { 
        flex-direction: column;
        gap: 50px;
    }
}
