/* ==========================================================================
   1. GLOBAL CLEAN RESETS & SCROLLING LOCKS 
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    /* scroll-behavior: smooth; */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    overflow-x: clip; /* Prevents horizontal sway without breaking position: sticky */
}
body {
    overflow-x: clip;
    width: 100%;
}


/* ==========================================================================
   2. CORE SYSTEM UTILITIES
   ========================================================================== */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.text-center { text-align: center; }
.bg-white { background-color: #ffffff; }
.bg-gray { background-color: #f8fafc; }
.border-y { border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.bg-dark { background-color: #0f172a; } 
.text-white { color: #ffffff; }
.max-w-xl { max-width: 650px; margin-left: auto; margin-right: auto; }
.section-spacing { padding-top: 80px; padding-bottom: 80px; }

/* ==========================================================================
   3. STICKY NAVIGATION HEADER
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
    height: 64px;
    width: 100%;
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-brand .nav-logo > rect {
    transition: fill 0.2s ease;
}

.nav-brand:hover,
.nav-brand:hover span {
    color: #475569; /* Shifts clearly to match your nav link color */
}

.nav-brand:hover .nav-logo > rect {
    fill: #475569; /* Only targets the outer slate box, leaving the mask untouched */
}

.nav-logo {
    height: 32px;
    width: auto;
    display: block;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover { color: #4f46e5; }
.menu-toggle { display: none; }



/* ==========================================================================
   4. BUTTON GRAPHICS
   ========================================================================== */
.btn-primary {
    background-color: #4f46e5;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
}
.btn-primary:hover { background-color: #4338ca; }

.btn-dark {
    background-color: #0f172a;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Clean Math Fix: Invisible edge layout balances out btn-light's 1px border */
    border: 1px solid transparent; 
}
.btn-dark:hover { background-color: #1e293b; }

.btn-light {
    background-color: white;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-light:hover { background-color: #f8fafc; }



/* ==========================================================================
   5. HERO ARCHITECTURE BLOCK (LAYERED CUTOUT & BACKDROP)
   ========================================================================== */
.hero-section {
    position: relative;
    background-color: #f1f5f9;
    background-image: url('images/bg-hero-islandsofadventure-bw.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile single stack */
    gap: 32px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 0; /* Keeps cutout flush with the metrics banner */
}

.hero-text-col {
    padding-bottom: 16px;
}

.hero-headline {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 16px;
}

.hero-subheadline {
    font-size: 16px;
    color: #334155;
    margin-bottom: 28px;
}

.hero-actions { 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
    align-items: center;
}

/* Transparent button styling to match your mockup */
.hero-actions .btn-light {
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid #94a3b8;
}

.hero-actions .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.85);
}

/* Anchors the portrait to the bottom edge */
.hero-image-frame { 
    display: flex; 
    justify-content: center; 
    align-items: flex-end;
    align-self: end;
    height: 100%;
}

.hero-cutout-img {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block; /* Removes tiny baseline gap under images */
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.12));
}

/* Desktop Side-by-Side Alignment */
@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 6.5fr 5.5fr !important;
        gap: 32px !important;
        padding-top: 64px !important;
        padding-bottom: 0 !important;
        align-items: end !important;
    }

    .hero-text-col {
        padding-bottom: 64px !important; /* Balances vertical text spacing while image stays flush */
        align-self: center !important;
    }

    .hero-headline {
        font-size: 46px;
    }

    .hero-cutout-img {
        max-width: 440px;
    }
}



/* ==========================================================================
   6. METRICS HIGHLIGHT BANNER
   ========================================================================== */
.metrics-banner {
    background-color: #0f172a;
    padding: 40px 0;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid on mobile */
    gap: 24px;
}
.metric-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.metric-num { font-size: 36px; font-weight: 900; color: #818cf8; }
.metric-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-top: 4px; }

/* ==========================================================================
   7. PORTFOLIO CASE STUDY CARDS
   ========================================================================== */
.section-header { margin-bottom: 48px; }
.section-title { font-size: 28px; font-weight: 700; color: #0f172a; }
.section-title-light { font-size: 28px; font-weight: 700; color: #ffffff; }
.section-subtitle { color: #64748b; margin-top: 6px; font-size: 15px; }
.card-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column mobile default */
    gap: 24px;
}
.card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* CHANGED: Keeps the column alignment strict instead of forcing awkward gaps */
    justify-content: flex-start; 
    height: 100%; /* Ensures cards stretch equally inside desktop grid rows */
}
.card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
    background-color: #e2e8f0;
}
.card-image-wrapper button {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: block;
}
.card-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card-stat-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    z-index: 10;
}

/* FIXED CELL HEIGHT ENGINE RULES */
.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* CRITICAL: Forces this box to expand and absorb all empty space uniformly */
}

.card-tag { font-size: 11px; font-weight: 700; color: #4f46e5; text-transform: uppercase; letter-spacing: 0.5px; }
.card-title { font-size: 18px; font-weight: 700; margin-top: 4px; margin-bottom: 12px; }
.card-text { font-size: 14px; color: #475569; margin-bottom: 12px; line-height: 1.5; }

.card-footer { 
    border-top: 1px solid #f1f5f9; 
    padding-top: 12px; 
    margin-top: auto; /* CRITICAL: Snaps the result block flat to the bottom baseline */
}
.result-label { font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.5; display: block; }
.result-text { font-size: 14px; color: #64748b; margin-top: 2px; }


/* ==========================================================================
   HORIZONTAL CARD SPECIFIC MODIFIERS
   ========================================================================== */
.card-horizontal {
    grid-column: 1 / -1; /* Spans full width across your desktop 3-column system */
    padding: 0 !important;
    overflow: hidden;
}
.card-horizontal-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.card-side-image-area {
    width: 100%;
    height: 240px;
    background-color: #020617;
}
.card-side-image-area button {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}
.card-side-content-area {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
.card-footer-split {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 16px;
    align-items: flex-start;
}
.btn-modal-trigger {
    cursor: pointer;
    border: none;
}

@media (min-width: 768px) {
    .card-horizontal-wrapper {
        flex-direction: row; /* Horizontal desktop orientation */
    }
    .card-side-image-area {
        width: 25%;       /* Precise 25% layout footprint allocation */
        height: auto;
        min-height: 100%;
    }
    .card-side-content-area {
        width: 75%;       /* Precise 75% typography text footprint */
    }
    .card-footer-split {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ==========================================================================
   CASE STUDY MODAL OVERLAY STYLES
   ========================================================================== */
.case-study-overlay-container {
    width: 100%;
    max-width: 1000px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-case-grid {
    display: grid;
    grid-template-columns: 1fr;
}
.modal-visual-pane {
    background: #f8fafc; /* Matches the light modal theme cleanly */
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-visual-pane img {
    width: 100%;
    height: auto;
    max-height: 45vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e2e8f0; /* Subtle border so the white Twitter card stands out cleanly */
}
.modal-text-pane {
    padding: 32px;
    color: #0f172a;
}
.modal-case-title {
    font-size: 24px;
    font-weight: 900;
    margin-top: 8px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.modal-body-section {
    margin-bottom: 24px;
}
.modal-body-section h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4f46e5;
    margin-bottom: 8px;
}
.modal-body-section p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}
.fan-quote {
    border-left: 3px solid #8b5cf6;
    padding-left: 12px;
    font-style: italic;
    font-size: 13px;
    color: #334155;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .modal-case-grid {
        grid-template-columns: 4.5fr 5.5fr;
    }
    .modal-visual-pane {
        border-bottom: none;
        border-right: 1px solid #e2e8f0;
    }
    .modal-visual-pane img {
        max-height: 75vh;
    }
    .case-study-overlay-container {
        overflow-y: hidden;
    }
    .modal-text-pane {
        max-height: 80vh;
        overflow-y: auto;
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
/* ==========================================================================
   INTEGRATED INTERIOR MODAL CAROUSEL ENGINE STYLES
   ========================================================================== */
.carousel-container-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.carousel-slide-pane {
    display: none; /* Hide default baseline states */
    width: 100%;
}
.carousel-slide-pane.active-slide {
    display: block; /* Unlocks clean visibility block when triggered active */
    animation: slideFadeIn 0.25s ease-out;
}
.bullet-list-modal {
    margin-top: 12px;
    padding-left: 20px;
}
.bullet-list-modal li {
    font-size: 14px;
    color: #475569;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* CAROUSEL CONTROLLER INTERFACE STYLING */
.carousel-navigation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.btn-carousel-nav {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}
.btn-carousel-nav:hover:not(.prev-disabled):not(.next-disabled) {
    background-color: #f1f5f9;
}
.btn-carousel-nav.prev-disabled,
.btn-carousel-nav.next-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #e2e8f0;
}
.carousel-indicator-dots-group {
    display: flex;
    gap: 8px;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.carousel-dot:hover {
    background-color: #94a3b8;
}
.carousel-dot.active-dot {
    background-color: #4f46e5;
    transform: scale(1.2);
}

@keyframes slideFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   8. VIDEO PRODUCTION COMPONENT GRID (9:16 CONSOLIDATED VIEWPORT)
   ========================================================================== */
.video-grid { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; 
    gap: 64px !important; /* Premium breathing room spacing */
    justify-content: center !important; 
    justify-items: center !important;
    align-items: stretch !important; /* Forces uniform heights for copy text containers */
    max-width: 900px !important; /* Centers the dual stacked columns cleanly */
    margin: 0 auto !important;
}

.video-card { 
    background-color: #1e293b !important; 
    border: 1px solid #334155 !important; 
    border-radius: 12px !important; 
    overflow: hidden !important; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    width: 100% !important;
    max-width: 360px !important;
    display: flex !important; 
    flex-direction: column !important;
}

.video-wrapper { 
    position: relative !important; 
    width: 100% !important; 
    height: 0 !important; 
    padding-bottom: 177.78% !important; /* Strict 9:16 vertical video ratio footprint */
    background-color: #000000 !important; 
    overflow: hidden !important;
    border-radius: 12px !important;
}

/* absolute positions all iframe, native video, and tiktok elements together */
.video-wrapper iframe,
.video-wrapper video,
.video-wrapper .tiktok-embed {
    position: absolute !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    height: 100% !important; 
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: cover !important; /* Keeps local MP4 scaled flawlessly */
}

.video-info { 
    padding: 24px !important; 
    flex-grow: 1 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: flex-start !important; /* Stacks text cleanly at the top */
}

.video-info .video-title {
    margin-top: 6px !important;
    margin-bottom: 10px !important;
}

.video-info .card-text {
    margin-bottom: 0 !important;
}


/* Force side-by-side layout on desktop viewports */
@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px !important;
        width: 100% !important;
    }
}



/* ==========================================================================
   9. EXPERTISE LAYOUT
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
.bullet-list { list-style: none; margin-top: 12px; }
.bullet-list li { display: flex; gap: 8px; font-size: 14px; color: #334155; margin-bottom: 8px; }
.bullet-list li span { color: #4f46e5; }
.badge { display: inline-block; background-color: #eef2ff; border: 1px solid #e0e7ff; color: #4338ca; padding: 6px 12px; border-radius: 9999px; font-size: 13px; font-weight: 600; margin-top: 16px; }

/* ==========================================================================
   10. CONTACT FRAME & FOOTER
   ========================================================================== */
.contact-headline { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.contact-subheadline { color: #94a3b8; font-size: 16px; }
.email-wrapper { margin-top: 24px; }
.email-link { font-size: 20px; font-weight: 700; color: #818cf8; text-decoration: underline; text-underline-offset: 6px; }
.footer { background-color: #020617; color: #475569; padding: 24px 0; text-align: center; font-size: 11px; font-weight: 600; border-top: 1px solid #0f172a; }

/* ==========================================================================
   11. NATIVE DIALOG LIGHTBOX MODAL MOTOR
   ========================================================================== */
.lightbox-dialog-window {
    border: none;
    background-color: rgba(2, 6, 23, 0.96);
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    padding: 16px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
}
.lightbox-dialog-window[open] { display: flex; align-items: center; justify-content: center; }
.lightbox-dialog-window::backdrop { background: rgba(2, 6, 23, 0.96); }
.lightbox-content-frame { width: 100%; max-width: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox-content-frame img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: scale-down !important; /* Safeguard: Prevents smaller images from stretching past 100% */
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.lightbox-close-btn {
    position: fixed;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000002;
}
/* ==========================================================================
   NAVIGATION BREAKPOINT UPDATE (HANDLES PORTRAIT IPADS UP TO 1023PX)
   ========================================================================== */

/* 1. Show full horizontal nav ONLY on landscape tablets & desktops (1024px+) */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none !important;
    }
    .nav-links {
        display: flex !important;
        align-items: center !important;
        gap: 24px !important;
    }
}

/* 2. Show hamburger menu on phones AND vertical iPads (up to 1023px) */
@media (max-width: 1023px) {
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 24px !important;
        height: 18px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        z-index: 1000 !important;
    }
    
    .menu-toggle .bar {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background-color: #0f172a !important;
        border-radius: 2px !important;
    }

    nav.nav-links {
        display: none !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 64px !important;
        left: 0 !important;
        width: 100% !important;
        background-color: rgba(255, 255, 255, 0.98) !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 24px !important;
        gap: 16px !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
        z-index: 999 !important;
        align-items: stretch !important;
    }

    nav.nav-links.active {
        display: flex !important;
    }

    nav.nav-links a {
        width: 100% !important;
        display: block !important;
    }
}

/* 2. Format the Download Resume Button Size Adjustments */
.btn-primary.btn-sm {
    font-size: 13px !important;
    padding: 6px 14px !important;
    white-space: nowrap !important;
}

/* 3. Handle Mobile Responsive Engine Breakdowns */
@media (max-width: 767px) {
    /* Break down case study grids into single stacks */
    .card-grid, .metrics-grid, .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    /* Bring back the interactive hamburger toggle */
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 24px !important;
        height: 18px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        z-index: 1000 !important;
    }
    
    .menu-toggle .bar {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background-color: #0f172a !important;
        border-radius: 2px !important;
    }

    /* Transform the nav tag container into an active drawer overlay */
    nav.nav-links {
        display: none !important; /* Managed via script toggles */
        flex-direction: column !important;
        position: absolute !important;
        top: 64px !important;
        left: 0 !important;
        width: 100% !important;
        background-color: rgba(255, 255, 255, 0.98) !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 24px !important;
        gap: 16px !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
        z-index: 999 !important;
        align-items: stretch !important;
    }

    /* Pull drawer into operational view */
    nav.nav-links.active {
        display: flex !important;
    }

    /* Expand button blocks to cover finger touch spaces */
    nav.nav-links a {
        width: 100% !important;
        display: block !important;
    }
    nav.nav-links a.btn-primary.btn-sm {
        text-align: center !important;
        padding: 10px 16px !important;
        margin-top: 8px !important;
    }
}

/* ==========================================================================
   16. EXPERTISE LAYOUT ENGINE
   ========================================================================== */
.expertise-pillar {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.tool-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tool-tag {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

/* Toolset Bottom Ribbon */
.toolset-ribbon {
    margin-top: 48px;
    background-color: #0f172a;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}
.ribbon-title {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ribbon-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.ribbon-badge {
    background-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Force Desktop Double Column Integration */
@media (min-width: 768px) {
    .toolset-ribbon {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 32px;
    }
    .ribbon-title {
        margin-bottom: 0;
    }
    .ribbon-tags {
        justify-content: flex-end;
    }
}
/* ==========================================================================
   17. SPEAKING ENGAGEMENTS LAYOUT ENGINE
   ========================================================================== */
.speaking-engagement-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.speaking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.speaking-date {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}
.speaking-venue {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}
.speaking-takeaway {
    margin-top: auto; /* Pushes box firmly to the bottom card border for perfect alignment */
    background-color: #f8fafc;
    border-left: 4px solid #8b5cf6; /* Executive purple signature border accent */
    border-radius: 0 8px 8px 0;
    padding: 16px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}
/* ==========================================================================
   18. EXECUTIVE CONTACT WRAPPER & FOOTER REFINEMENTS
   ========================================================================== */
.contact-headline {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.contact-subheadline {
    font-size: 15px;
    color: #94a3b8;
    margin-top: 12px;
    line-height: 1.6;
}
.email-wrapper {
    margin-top: 32px;
}
.email-link {
    font-size: 22px;
    font-weight: 700;
    color: #818cf8;
    text-decoration: underline;
    text-underline-offset: 8px;
    transition: color 0.2s;
}
.email-link:hover {
    color: #a5b4fc;
}

/* Responsive Font Scales */
@media (min-width: 768px) {
    .contact-headline { font-size: 42px; }
    .email-link { font-size: 32px; }
}
.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-linkedin:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   19. FADED VISUAL BACKGROUND OVERLAY ENGINE
   ========================================================================== */
.bg-cinematic {
    position: relative;
    /* Layer 1: Dark Gradient Tint | Layer 2: The Core Asset File URL */
    /* background-image: 
        linear-gradient(rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.92)), 
        url('images/epicuniverse-stardustracer.avif'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Smooth scrolling performance on mobile */
    z-index: 1;
}

/* Ensure the text content floats safely over the background image layer */
.bg-cinematic .container {
    position: relative;
    z-index: 2;
}
/* ==========================================================================
   20. RE-ANCHORED PHOTOGRAPHY SHOWCASE LABELS
   ========================================================================== */
.photo-portfolio-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100%;
}
.photo-gallery-item {
    position: relative !important;
    width: 100% !important;
    height: 280px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    border: none !important;
    background: #0f172a !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: block !important;
}
.gallery-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.4s ease !important;
}

/* Base Hidden State for the Dark Overlay */
.gallery-hover-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(15, 23, 42, 0.65) !important; /* Tint background overlay */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 5 !important;
    padding: 20px !important;
}

/* Explicit Inside Typography Styling */
.gallery-hover-text {
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    background-color: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    text-align: center !important;
    width: auto !important;
    max-width: 90% !important;
    pointer-events: none !important; /* Blocks text tracking box conflicts */
}

/* Active Hover Transitions */
.photo-gallery-item:hover .gallery-img {
    transform: scale(1.04) !important;
}
.photo-gallery-item:hover .gallery-hover-overlay {
    opacity: 1 !important;
}

/* Media Query Columns Extensions */
@media (min-width: 480px) and (max-width: 767px) {
    .photo-portfolio-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 768px) {
    .photo-portfolio-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 24px !important; }
}

/* ==========================================================================
   KAELYN'S PORTFOLIO: PORTFOLIO OVERLAY CAROUSEL STYLES
   ========================================================================== */

/* Ensure inactive slides drop out of visibility math seamlessly */
.carousel-slide-pane {
    display: none;
    width: 100%;
}

/* ==========================================================================
    EDUCATION SECTION WITH LIGHT FADED GRAPHIC BACKGROUND LAYER
    ========================================================================== */
.education-marquee-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 100px 24px;
    background-color: #ffffff;
    color: #1e293b;
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
    overflow: clip; /* Replaces overflow: hidden so background-attachment: fixed stays pinned */
}

.education-marquee-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('images/fsu-westcott-fountain.webp');
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: luminosity;
    z-index: 1;
}

/* Fix for iOS Safari: disables fixed attachment on mobile/tablet touch devices */
@media (max-width: 1024px) {
    .education-marquee-container::before {
        background-attachment: scroll;
    }
}


/* Forces inner container structures to sit safely above the image overlay layer */
.education-marquee-container .section-header-block,
.education-row-layout {
    position: relative;
    z-index: 2;
}

.education-marquee-container .section-header-block {
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px;
}

.education-marquee-container .section-main-title {
    color: #0f172a !important; /* Deep charcoal section header */
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.education-marquee-container .section-subtitle-description {
    color: #475569 !important; /* Muted contrast description text */
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.education-row-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
}

/* Left logo positioning block - completely transparent with zero card frames */
.education-logo-column {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.university-logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.university-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Soft shadow adjusted to look natural against a light background image grid */
    filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.15)); 
}

/* Right-aligned text details typography hierarchy */
.education-content-column {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.edu-primary-statement {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a; /* Deep layout accent color */
    line-height: 1.4;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.edu-degree-details {
    font-size: 16px;
    font-weight: 500;
    color: #334155; /* Mid-tone slate styling details */
    margin: 0 0 6px 0;
    line-height: 1.5;
}

.edu-timeline-span {
    font-size: 14px;
    font-weight: 400;
    color: #64748b; /* Soft metadata timeline string */
    margin: 0;
}

/* Responsive collapse transformation configurations */
@media (max-width: 640px) {
    .education-row-layout {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .education-content-column {
        text-align: center;
    }
}


/* ==========================================================================
   KAELYN'S PORTFOLIO: BALANCED MULTI-SECTION BACKGROUND CADENCE
   ========================================================================== */

/* 1. Featured Campaigns Section (Clean White Background) */
#featured-campaigns {
    background-color: #ffffff !important;
}

/* 2. Expertise Section (Soft Gray Tint separates information layers) - MIGHT NEED FFF */
#expertise {
    background-color: #f8fafc !important; /* Matches base utility resets */
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
/* Ensure the white item tags pop beautifully on top of the gray background */
#expertise .tool-tag {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

/* 3. Video Production Section (Cinema Mode Dark Theme Overlay) */
#video-production {
    background-color: #0f172a !important; /* Deep layout charcoal */
    color: #ffffff !important;
}
/* Force typography strings inside the dark video grid to shift colors safely */
#video-production .section-title {
    color: #ffffff !important;
}
#video-production .section-subtitle {
    color: #94a3b8 !important;
}
#video-production .card-tag {
    color: #a5b4fc !important;
}
#video-production .video-title {
    color: #ffffff !important;
}
#video-production .video-info p {
    color: #cbd5e1 !important;
}

/* 4. Visual Direction & Photography Section (Clean White Backdrop) */
#visual-direction {
    background-color: #ffffff !important;
}

/* 5. Education Section (Light Faded fixed image layer - preserved exactly as designed) */
#education {
    /* Retains your light-faded background styling rules safely */
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* 6. Contact Footer Section (Deep anchoring layout canvas - already integrated) */
#contact-footer {
    border-top: none !important;
}

/* ==========================================================================
   SMOOTH SCROLL ENTRANCE FRAMEWORK
   ========================================================================== */

.scroll-reveal-element {
    opacity: 0;
    /* DOUBLE THE DISTANCE: Gives the element a clear, visible path to travel */
    transform: translateY(60px); 
    
    /* SPEED & SNAP FIX: A faster transition coupled with a tight spring curve 
       makes the entry crisp, sharp, and highly noticeable */
    transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    
    will-change: opacity, transform;
}

.scroll-reveal-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* AMPLIFIED GRID STAGGERING: Increasing the gap between items makes the 
   "domino effect" incredibly obvious and satisfying as a grid enters the screen */
.delay-100 { transition-delay: 150ms; }
.delay-200 { transition-delay: 300ms; }
.delay-300 { transition-delay: 450ms; }


/* ==========================================================================
   MOBILE HERO BACKGROUND POSITIONING & BODY FONT BOOST
   ========================================================================== */
@media (max-width: 767px) {
    /* 1. Scales & repositions the hero background to show both the coaster & tower */
    .hero-section {
        background-size: 420% auto !important;
        background-position: 50% bottom !important; /* Adjust this % left or right as needed */
        background-color: #ffffff !important;
    }

   /* 2. Increases section intro text & hero subheadline on mobile */
    .hero-subheadline,
    .section-subtitle,
    .section-subtitle-description {
        font-size: 17px !important;
        line-height: 1.6 !important;
    }

    .card-text,
    .result-label,
    .result-text,
    .bullet-list li,
    .speaking-venue,
    .speaking-takeaway,
    .video-info p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
}

/* ==========================================================================
   MOBILE HERO BACKGROUND POSITIONING & BODY FONT BOOST
   ========================================================================== */
@media (max-width: 767px) {
    /* 1. Scales & repositions the hero background to show both the coaster & tower */
    .hero-section {
        background-size: 410% auto !important; /* Increase this % to make the image larger */
        background-position: 50% bottom !important; /* Adjust 75% left/right to center the tower/coaster */
        background-color: #ffffff !important;
    }

    /* 2. Increases section intro text & hero subheadline on mobile */
    .hero-subheadline,
    .section-subtitle,
    .section-subtitle-description {
        font-size: 17px !important;
        line-height: 1.6 !important;
    }

    /* 3. Increases body paragraph readability on mobile across cards, videos, and modal carousel */
    .card-text,
    .result-label,
    .result-text,
    .bullet-list li,
    .speaking-venue,
    .speaking-takeaway,
    .video-info p,
    .modal-body-section p,
    .bullet-list-modal li,
    .fan-quote {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
}

/* ==========================================================================
   DESKTOP CAMPAIGN GRID & FULL-WIDTH CARDS (768PX AND UP)
   ========================================================================== */
@media (min-width: 768px) {
    #campaigns .card-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 32px !important;
        width: 100% !important;
    }

    #campaigns .card-grid .card-full-width {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: none !important;
    }
}
/* Anchor the stat badge inside linked side images just like button triggers */
.card-side-image-area a {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}