@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

:root {
    /* Palette: GRAVIC (Soft Cream, Burnt Orange, Earthy Charcoal) */
    --color-warm-sand: #F5F2ED;
    /* Soft Cream */
    --color-terracotta: #BF4F38;
    /* Deep Burnt Orange */
    --color-clay-charcoal: #3E3B36;
    /* Earthy Charcoal */
    --color-deep-earth: #4A3C31;
    /* Deep Earth/Brown */
    --color-text-dark: #1A1A1A;
    --color-text-light: #F5F2ED;

    /* Internal Page Colors */
    --color-project-charcoal: #2C2C2B;
    /* Project Detail */
    --color-sector-terracotta: #D95D39;
    /* SaaS */
    --color-sector-sand: #E3C4A8;
    /* EdTech */
    --color-sector-sport: #8F3928;
    /* Sport */

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --text-hero: 7vw;
    --text-xl: 6vw;
    --text-lg: 3.5rem;
    --text-md: 1.5rem;
    --text-sm: 1rem;

    /* Spacing */
    --spacing-container: 10vw;
    --spacing-section: 150px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-warm-sand);
    color: var(--color-text-dark);
    transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3 {
    font-family: var(--font-main);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

p {
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem var(--spacing-container);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: white;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: inherit;
    cursor: pointer;
}

.nav-links a {
    margin-left: 2.5rem;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

/* Layout */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-section) 0;
}

/* Hero Section */
.hero-title {
    font-size: var(--text-hero);
    max-width: 95%;
    margin-bottom: 3rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    max-width: 700px;
    opacity: 0.9;
    font-weight: 400;
}

/* Service Sections */
.label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    opacity: 0.8;
    border-top: 2px solid currentColor;
    padding-top: 1.5rem;
    width: fit-content;
    font-weight: 700;
}

.section-title {
    font-size: var(--text-xl);
    margin-bottom: 2.5rem;
}

.section-desc {
    font-size: 2rem;
    max-width: 800px;
}

/* Client Ledger (Partners) */
.ledger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
    opacity: 0.7;
}

.client-name {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.client-name:hover {
    opacity: 1;
}

/* Legacy Archive */
.archive-list {
    margin-top: 4rem;
    border-top: 1px solid currentColor;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid currentColor;
    font-size: 2rem;
    opacity: 0.7;
    transition: opacity 0.3s, padding-left 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.archive-item:hover {
    opacity: 1;
    padding-left: 2rem;
}

.archive-name {
    font-weight: 700;
}

.archive-meta {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Floating Cursor Image */
.cursor-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 300px;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transform: scale(0.8) translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background-size: cover;
    background-position: center;
    background-color: #333;
    box-shadow: none;
}

.cursor-image.active {
    opacity: 1;
    transform: scale(1) translate(-50%, -50%);
}

/* Footer */
.footer {
    min-height: 60vh;
    justify-content: flex-end;
}

.footer-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.email-link {
    font-size: 2.5rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 3px solid currentColor;
    padding-bottom: 5px;
    display: inline-block;
}

.footer-bottom {
    margin-top: 5rem;
    font-size: 0.9rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .section-desc {
        font-size: 1.4rem;
    }

    .ledger-grid {
        gap: 2rem;
    }

    .archive-item {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cursor-image {
        display: none;
    }
}

/* Case Study Specifics */
.case-hero {
    min-height: 80vh;
    padding-bottom: 4rem;
    justify-content: flex-end;
}

.context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-container);
    margin: 8rem 0;
    padding-top: 4rem;
    border-top: 1px solid currentColor;
}

.context-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.context-column p {
    font-size: 1.4rem;
    max-width: 600px;
}

/* Mockup Gallery */
.mockup-section {
    margin: 10rem 0;
}

.mockup-full {
    width: 100%;
    height: 80vh;
    background-color: rgba(0, 0, 0, 0.05);
    /* Placeholder tint */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
}

.mockup-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.mockup-item {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-label {
    font-size: 1.2rem;
    opacity: 0.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Feature Deep Dive */
.feature-block {
    margin: 10rem 0;
}

.feature-title {
    font-size: 4rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .context-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .mockup-split {
        grid-template-columns: 1fr;
    }
}





/* EdTech Overhaul Specifics (Previous) */
.abstract-icon {
    /* ... rest of file ... */
    width: 60px;
    height: 60px;
    background-color: currentColor;
    border-radius: 50%;
    /* Simple abstract circle for now */
    margin-bottom: 2rem;
    opacity: 0.8;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.mobile-mockup {
    width: 280px;
    height: 560px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button {
    display: inline-block;
    background-color: var(--color-clay-charcoal);
    color: var(--color-warm-sand);
    padding: 1.5rem 3rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 3rem;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-5px);
}

/* Rawuser Project Specific Layout */
.content-container {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 60px;
    padding-right: 60px;
    width: 100%;
}

.rawuser-section-padding {
    padding-bottom: 120px;
}

/* EMERGENCY FIX: Surgical Layout Container */
.case-study-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    box-sizing: border-box !important;
}

@media (min-width: 1024px) {
    .case-study-container {
        padding-left: 80px !important;
        padding-right: 80px !important;
    }
}

/* Force Left Alignment for Rawuser */
.rawuser-narrative,
.rawuser-headline,
.detail-text-col h2,
.detail-text-col p {
    text-align: left !important;
    margin-left: 0 !important;
}

/* Precision Layout Override for Rawuser & Mobility */
#project-mobility section,
#project-rawuser section {
    box-sizing: border-box !important;
    padding-left: 10% !important;
    padding-right: 10% !important;
}

#project-mobility .container,
#project-rawuser .container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}