:root {
    /* Brand Config - Academic / Legal Professional */
    --bg-main: #FFFFFF;
    --bg-surface: #F8F9FA;
    --bg-paper: #FDFBF7;
    /* Subtle warm paper tone for cards */

    --accent-primary: #003366;
    /* Navy Blue */
    --accent-secondary: #C5A059;
    /* Muted Gold */

    --text-main: #2C3E50;
    --text-muted: #626D78;
    --text-light: #FFFFFF;

    /* Typography */
    --font-heading: 'Libre Baskerville', serif;
    --font-body: 'Lato', system-ui, sans-serif;

    --border-color: #E1E4E8;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    /* Slightly clearer reading line-height */
    overflow-x: hidden;
}

/* Hide futuristic artifacts */
.noise-overlay,
.ambient-glow {
    display: none;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.logo-container {
    border: 2px solid var(--accent-primary);
    padding: 0.25rem 0.75rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-primary);
    letter-spacing: -0.02em;
}

.links {
    display: flex;
    gap: 2.5rem;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.links a:hover {
    color: var(--accent-primary);
}

.cta-small {
    background: var(--accent-primary);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    /* Structured corners */
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.cta-small:hover {
    background: #002244;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 101;
    /* Above mobile menu */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent-primary);
    transition: all 0.3s ease;
}

/* Hamburger Active State (X) */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* Hero Section */
.hero {
    min-height: 90vh;
    /* Slightly tighter hero */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 10% 4rem;
    gap: 6rem;
    flex-wrap: wrap;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)), url('assets/bg_abstract.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
}

.pill-label {
    display: inline-block;
    padding: 0.5rem 0;
    color: var(--accent-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-secondary);
    background: none;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.gradient-text {
    /* No gradient for academic look, just solid classic color or subtle shift */
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-main);
    font-style: italic;
}

.hero-sub {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.cta-primary {
    background: var(--accent-primary);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 51, 102, 0.2);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 51, 102, 0.3);
}

.cta-secondary {
    background: transparent;
    color: var(--accent-primary);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: rgba(0, 51, 102, 0.05);
}

/* Hero Visual - Abstract Legal/Tech Concept */
.hero-visual {
    position: relative;
}

.glass-card {
    /* Retiring the glass card for a "Document" or "Certificate" look */
    width: 100%;
    max-width: 500px;
    padding: 3rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    /* Soft deep shadow */
    position: relative;
}

.founder-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

/* Decorative Gold Corner */
.glass-card::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    border-top: 4px solid var(--accent-secondary);
    border-right: 4px solid var(--accent-secondary);
    z-index: -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

/* Replace mac-style dots with a date or reference number */
.circle {
    display: none;
}

.card-header::before {
    content: "EST. 2021";
    font-family: var(--font-heading);
    color: var(--accent-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.code-preview {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.8;
}

.line {
    display: block;
    margin-bottom: 6px;
}

.str {
    color: #D35400;
}

/* Burnt Orange for strings */
.num {
    color: #2980B9;
}

/* Blue for numbers */

/* Trust Bar */
.trust-bar {
    padding: 3rem 10%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.trust-bar p {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.trust-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-main);
    opacity: 0.8;
}

/* Philosophy */
.philosophy {
    padding: 8rem 10%;
    text-align: center;
    background: var(--bg-main);
}

.philosophy h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    font-style: italic;
    background: none;
    -webkit-text-fill-color: initial;
}

.philosophy p {
    font-size: 1.35rem;
    /* Larger academic typography */
    color: var(--text-main);
    max-width: 750px;
    margin: 0 auto;
    font-weight: 300;
}

/* Bento Grid -> Structured Grid */
.features {
    padding: 6rem 10%;
    background: var(--bg-surface);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-primary);
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-secondary);
    margin: 1rem auto 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.bento-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 280px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-secondary);
}

.large {
    grid-column: span 2;
}

.highlight {
    /* No gradients, simple solid backing or subtle tint */
    background: linear-gradient(to bottom right, #FFFFFF, #F8F9FA);
    border-left: 4px solid var(--accent-primary);
}

.item-content h3 {
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
}

.role-meta {
    color: var(--accent-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    display: inline-block;
}

.item-content p {
    color: var(--text-muted);
    font-size: 1rem;
}


/* Case Studies (Speaking) */
.case-studies {
    padding: 6rem 10%;
    background: var(--bg-main);
}

.case-card {
    background: var(--bg-main);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.case-card:hover {
    border-color: var(--accent-primary);
}

.placeholder-video {
    width: 100%;
    height: 200px;
    background: #EDF0F2;
    /* Light grey placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-style: italic;
    border-bottom: 1px solid var(--border-color);
}

.case-content {
    padding: 2rem;
}

.case-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.case-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
}

/* Footer */
.audit-footer {
    padding: 6rem 10%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: #002244;
    /* Dark Navy Footer */
    color: #FFFFFF;
}

.audit-footer h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.audit-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.cta-primary.big {
    background: var(--accent-secondary);
    /* Gold CTA */
    color: #002244;
}

.cta-primary.big:hover {
    background: #E5C079;
}

.footer-links {
    margin-top: 4rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Speaker Image Update */
.speaking-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.5s ease;
}

.case-card:hover .speaking-img {
    transform: scale(1.05);
}

/* Force 2x2 Grid for Speaking Section */
.case-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .case-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 1000px;
        margin: 0 auto;
    }
}

/* LinkedIn Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.video-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #E8ECEF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.video-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.video-meta {
    padding: 1rem;
    text-align: center;
}

.video-meta .date {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Video Container for Iframes */
.video-container {
    width: 100%;
    height: 500px;
    /* Taller height for LinkedIn embeds */
    overflow: hidden;
}

.video-link {
    display: inline-block;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {

    /* Navigation */
    .glass-nav {
        /* Keep row layout for logo and hamburger */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
    }

    .hamburger {
        display: flex;
        /* Show hamburger on mobile */
    }

    .links {
        /* Hide links by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;

        /* Hidden state */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
    }

    .links.active {
        /* Active state */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .cta-small {
        display: none;
        /* Hide top CTA on mobile if redundant, or put inside links if needed. For now hiding to clean up header */
    }

    /* Hero Section */
    .hero {
        padding: 8rem 5% 4rem;
        /* Adjusted top padding */
        gap: 3rem;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        min-width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
    }

    h1 {
        font-size: 2.2rem;
        /* Reduced from 3.5rem */
    }

    .hero-sub {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    /* Glass Card / Hero Visual */
    .glass-card {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding: 1.5rem;
    }

    .glass-card::after {
        width: 60px;
        height: 60px;
        /* Smaller decorative corner */
    }

    /* General Sections */
    .trust-bar,
    .philosophy,
    .features,
    .case-studies,
    .audit-footer {
        padding: 4rem 5%;
        /* Reduced side padding slightly */
    }

    .logos-grid {
        gap: 2rem;
    }

    .trust-logo {
        font-size: 1.1rem;
    }

    /* Philosophy */
    .philosophy h2 {
        font-size: 1.8rem;
    }

    .philosophy p {
        font-size: 1.1rem;
    }

    /* Bento Grid */
    .large {
        grid-column: span 1;
        /* Stack large items on mobile */
    }

    .bento-grid {
        grid-template-columns: 1fr;
        /* Single column */
    }

    .bento-item {
        min-height: auto;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }

    /* Footer */
    .audit-footer h2 {
        font-size: 2rem;
    }

    /* Video Container */
    .video-container {
        height: 400px;
    }
}