:root {
    /* Colors */
    --bg-color: #ffffff;
    /* Pure White */
    --text-main: #111111;
    /* Deep Black for contrast */
    --text-muted: #555555;
    /* Darker grey for accessibility */
    --border-color: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-serif: "Cormorant Garamond", serif;
    --font-sans: "Inter", sans-serif;

    /* Layout */
    --container-max: 1400px;
    --gutter: clamp(1.5rem, 5vw, 4rem);
    --section-pad: clamp(6rem, 15vh, 12rem);

    /* Animation */
    --ease: cubic-bezier(0.2, 1, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-weight: 400;
    /* Increased from 300 for readability */
    line-height: 1.8;
    /* Increased slightly for airiness */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    /* Spacious */
    background: transparent;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    color: #fff !important;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

header * {
    pointer-events: auto;
    /* Re-enable clicks on links */
}

.logo {
    font-family: var(--font-sans);
    /* Switch to Sans for modern look */
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    /* Smaller */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    font-weight: 400;
    /* Lighter */
    position: relative;
    padding-bottom: 2px;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s var(--ease);
}

.desktop-nav a:hover {
    color: #fff;
    opacity: 0.7;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: #111;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-overlay a {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-main);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    padding: 120px var(--gutter) 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
}

/* Mobile Background Layer (Hidden on Desktop) */
.hero-bg-mobile {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg-mobile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
}

/* Hero Content */
.hero-text {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-overline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    display: block;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    line-height: 1;
}

.hero-desc {
    font-size: 1.15rem;
    /* Slightly larger */
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 50ch;
    /* Adjusted for better reading line length */
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    /* Larger, more prominent */
    background: var(--text-main);
    /* Solid Black */
    color: var(--bg-color);
    /* White Text */
    border: 1px solid var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.4s var(--ease);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Subtle depth */
}

.btn:hover {
    background: transparent;
    color: var(--text-main);
    box-shadow: none;
    transform: translateY(2px);
}

/* Hero Visual (Desktop Only Frame) */
.hero-visual {
    height: 80vh;
    position: relative;
    border: 1px solid var(--border-color);
    padding: 10px;
    z-index: 1;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% center;
    display: block;
}

/* Sections */
.chapter {
    padding: var(--section-pad) var(--gutter);
    border-top: 1px solid var(--border-color);
}

.chapter-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 6vw;
    align-items: start;
}

.chapter-header {
    position: sticky;
    top: 100px;
}

.chapter-num {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.chapter-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.chapter-body p {
    color: var(--text-muted);
    font-size: 1.1rem;
    /* Slightly larger for body reading */
    margin-bottom: 1.6rem;
    max-width: 65ch;
    /* Optimal reading width */
}

/* Galleries */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    padding: 8px;
    /* Soft frame effect */
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
}

/* Video */
.video-container {
    grid-column: 1 / -1;
    border: 1px solid var(--border-color);
    padding: 8px;
    background: #f9f9f9;
    margin-bottom: 2rem;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    display: block;
}

/* Vision Section */
.chapter.text-only {
    text-align: center;
    padding: calc(var(--section-pad) * 1.5) var(--gutter);
}

.chapter.text-only .chapter-inner {
    display: block;
    max-width: 750px;
    margin: 0 auto;
}

.vision-header {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.vision-quote p {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-main);
    opacity: 0.95;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem var(--gutter);
}

.footer-line {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.ig-link {
    border-bottom: 1px solid transparent;
}

.ig-link:hover {
    border-bottom-color: currentColor;
}

.footer-credit {
    font-size: 0.7rem;
    text-align: right;
    letter-spacing: 0.05em;
    font-family: var(--font-sans);
    color: var(--text-muted);
    opacity: 0.5;
}

/* Mobile-Specific Overrides */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: 100vh;
        padding: 0 var(--gutter);
        grid-template-columns: 1fr;
    }

    /* Mobile Header: Blends in ("not there always") */
    /* Mobile Header: Reset Floating Style to Full/Transparent */
    /* Mobile Header: Matches Global Fixed Style */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 2000;
        padding: 1.25rem var(--gutter);
        /* Smaller on mobile */
        border-radius: 0;
        transform: none;
    }

    .logo {
        color: #fff;
        /* White logo */
    }

    .mobile-toggle span {
        background: #fff;
        /* White hamburger */
    }

    .hero-bg-mobile {
        display: block;
        background-color: #000;
        /* Dark fallback */
        background-image: url('Assets/public speaking/hero.jpeg') !important;
        background-size: cover;
        background-position: 20% center;
        height: 100vh;
        /* Ensure full height */
    }

    .hero-bg-mobile::after {
        background: rgba(0, 0, 0, 0.6);
        /* Darker overlay for text legibility */
    }

    .hero-visual {
        display: none;
    }

    .hero-text {
        margin: 0 auto;
        color: #ffffff !important;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
        /* Strong shadow */
        max-width: 100%;
    }

    .hero-title {
        color: #ffffff !important;
    }

    .hero-overline {
        display: none !important;
        /* Hide name on mobile */
    }

    .hero-desc {
        color: rgba(255, 255, 255, 0.95);
        max-width: 100%;
    }

    /* Mobile Button - High Contrast */
    .hero-ctas .btn {
        background: #ffffff;
        color: #000000;
        border-color: #ffffff;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    /* Fixed double declaration removal */

    .hero-ctas {
        justify-content: center;
    }

    .chapter-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .chapter-header {
        position: static;
    }

    .gallery-grid {
        display: flex;
        overflow-x: auto;
        gap: 1.5rem;
        padding-bottom: 2rem;
        scroll-snap-type: x mandatory;
        margin-right: calc(var(--gutter) * -1);
        padding-right: var(--gutter);
    }

    .gallery-item {
        min-width: 80vw;
        scroll-snap-align: start;
    }

    /* Adjust Vision sizing on mobile */
    .vision-quote p {
        font-size: 1.4rem;
    }
}