:root {
    --primary-bg: #111827;
    --accent-color: #005FD8;
    --text-primary: #FFFFFF;
    --text-secondary: #D1D5DB;
    --border-color: rgba(0, 95, 216, 0.2);
    --font-sans: 'Manrope', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-size-hero: clamp(2.5rem, 5vw, 3.5rem);
    --font-size-subhero: clamp(2.125rem, 4.25vw, 3rem);
    --font-size-heading: clamp(1.2rem, 2vw, 1.8rem);
    --font-size-body: clamp(1rem, 1.2vw, 1.125rem);
    --font-size-support: clamp(0.8rem, 1vw, 0.95rem);
    --font-size-meta: clamp(0.7rem, 0.9vw, 0.85rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 400;
}
/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease-in-out;
}
.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-logo {
    font-family: var(--font-serif);
    color: var(--text-primary);
    font-size: 2em;
    font-weight: 600;
    letter-spacing: 1.25px;
    text-shadow: 0 0 10px var(--accent-color);animation: fadeInOut 2s ease-in-out infinite;
}
.loader-logo sup { font-size: 0.4em; position: relative; top: -1em; left: -3px; }

@keyframes fadeInOut {
    0%, 100% {}
    50% { opacity: 1; }
}


@media (min-width: 769px) {
    body.has-custom-cursor { cursor: none; }
}

/* --- Custom Cursor --- */
.cursor, .cursor-dot {
    display: none;
}
@media (min-width: 769px) {
    .cursor {
        display: block;
        position: fixed; top: 0; left: 0; width: 32px; height: 32px;
        border: 1px solid var(--accent-color); border-radius: 50%;
        pointer-events: none; transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s, border-width 0.3s, background-color 0.3s;
        z-index: 9999;
        will-change: transform;
    }
    .cursor-dot {
        display: block;
        position: fixed; top: 0; left: 0; width: 6px; height: 6px;
        background-color: var(--accent-color); border-radius: 50%;
        pointer-events: none; transform: translate(-50%, -50%);
        z-index: 9999;
        will-change: transform;
    }
    .cursor.grow {
        width: 60px; height: 60px; border-width: 2px;
        background-color: rgba(0, 95, 216, 0.1);
    }
}

/* --- On-Page Branding --- */
.branding-on-page {
    position: fixed;
    top: 1rem;
    left: 1rem;
    transform: none;
    z-index: 1000;
    text-align: left;
    pointer-events: none;
}

.branding-on-page .logo {
    font-family: var(--font-serif);
    color: var(--text-primary);
    font-size: 1.03em; /* further reduced ~10% */
    font-weight: 600;
    letter-spacing: 1.25px;
    text-shadow: 0 0 10px var(--accent-color);
}
.branding-on-page .logo sup {
    font-size: 0.36em;
    position: relative;
    top: -0.9em;
    left: -3px;
}
.branding-on-page .full-name {
    display: none;
}

@media (min-width: 769px) {
    .branding-on-page {
        left: 1rem;
    }
    .branding-on-page .logo {
        margin-bottom: 1px; /* even tighter gap */
    }
    .branding-on-page .full-name {
        display: block;
        font-family: var(--font-serif);
        color: var(--text-primary);
        font-size: 0.73em; /* further reduced ~10% */
        line-height: 1.1;
        text-transform: capitalize;
        letter-spacing: 0.02em;
    }
}

/* --- Main Journey Container --- */
.journey-section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5%;
    overflow: hidden;
    text-align: center;
}
@media (min-width: 769px) {
    .journey-section {
        text-align: left;
        justify-content: flex-start;
        padding: 8rem 8%;
    }
}
.journey-section.intro-section {
    align-items: center;
    justify-content: center;
}
@media (min-width: 769px) {
    .journey-section.intro-section {
        justify-content: center;
        padding-left: 8%;
        text-align: center;
    }
    .intro-section .content-card .body {
        margin-left: auto;
        margin-right: auto;
    }
}


.journey-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(75deg, rgba(17, 24, 39, 0.75) 0%, rgba(17, 24, 39, 0.35) 60%, transparent 100%);
    z-index: 1;
}

.journey-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: min(80%, 960px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(0, 95, 216, 0) 0%, rgba(0, 95, 216, 0.65) 50%, rgba(0, 95, 216, 0) 100%);
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 768px) {
    .journey-section::after {
        width: 88%;
    }
}

/* --- Background Visuals & Parallax Effect --- */
.section-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.3); /* Increased scale to prevent gaps */
    z-index: 0;
    will-change: transform;
}

/* --- Standard Content Card --- */
.content-card {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    font-size: 0.9rem; font-weight: 600; color: var(--accent-color);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.content-card h1,
.content-card h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.content-card h1 {
    font-size: var(--font-size-hero);
}

.content-card h2 {
    font-size: var(--font-size-subhero);
}
.content-card .body {
    font-size: var(--font-size-body);
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 1.5rem;
    font-weight: 300;
}
@media (min-width: 769px) {
    .content-card .body { margin-left: 0; margin-right: auto; }
}
.deliverables { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0; margin: 1.5rem 0; }
@media (max-width: 768px) {
    .deliverables { justify-content: center; }
}
.deliverables li {
    font-size: var(--font-size-support);
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background-color 0.3s, transform 0.3s;
}
.deliverables li:hover { background-color: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #051C2C; /* CELA Navy */
    color: #FFFFFF;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.cta-button::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%;
    background-color: #005FD8; /* CELA Blue Hover */
    transition: width 0.3s ease; z-index: -1;
}
.cta-button:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.cta-button:hover::before { width: 100%; }
.cta-button:focus-visible {
    outline: 2px solid #005FD8;
    outline-offset: 2px;
}

/* --- Scroll Down Indicator --- */
.scroll-down-indicator {
    position: absolute;
    bottom: clamp(20px, 4vh, 56px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: #ffffff;
    font-size: .9em;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;animation: fadeIn 1s 1.5s both;
}

.scroll-down-indicator .arrow {
    display: inline-block;
    animation: arrowMoveDown 1.5s infinite;
}
@keyframes arrowMoveDown {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); }
    75% {}
}
@keyframes fadeIn { from {} to { opacity: 1; } }
.scroll-down-indicator:hover { color: var(--accent-color); }

/* --- Progress Bar --- */
.progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px;
    background-color: transparent; z-index: 1001;
    pointer-events: none;
}
.progress-bar {
    width: 100%; /* Width is now controlled by scaleX */
    height: 100%;
    background-color: var(--accent-color);
    transform-origin: left;
    transform: scaleX(0); /* Start at scale 0 */
}

/* --- Playbook Grid Section --- */
.journey-section.playbook-section {
    background-color: #ffffff;
    align-items: center;
    color: #1E3A8A;
}
.playbook-section::before { display: none; }
.playbook-section .content-card {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}
.playbook-section .eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.playbook-section .content-card h2 {
    color: #1E3A8A;
    text-shadow: none;
    font-size: var(--font-size-subhero);
    font-weight: 400;
    line-height: 1.2;
}

.playbook-section .content-card .body {
    color: #1E3A8A;
    text-shadow: none;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.6;
    font-weight: 300;
    max-width: 65ch;
    margin: 0 auto 1.5rem auto;
}

.playbook-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    width: 100%;
}

/* --- Playbook Card Styling (from startups.php) --- */
.playbook-card-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0s 0.2s;
    width: 100%;
    height: 400px;
    flex-shrink: 0;
    border: 1px solid rgba(156, 163, 175, 0.2);
    display: block;
    color: inherit;
    text-decoration: none;
}
.playbook-card-wrapper:hover,
.playbook-card-wrapper:focus-within,
.playbook-card-wrapper.touch-active {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0s 0s;
}
.playbook-card-wrapper .background-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: filter 0.6s ease;
    filter: brightness(0.65);
}
.playbook-card-wrapper:hover .background-image,
.playbook-card-wrapper:focus-within .background-image,
.playbook-card-wrapper.touch-active .background-image {
    filter: brightness(0.85);
}
.playbook-card-wrapper .tag {
    display: inline-block;
    background-color: #0b1f54;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 600;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playbook-card-wrapper .box-content {
    position: absolute;
    inset: 0;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    padding: 40px 25px 30px;
    z-index: 2;
    text-align: center;
}
.playbook-card-wrapper .content-inner {
    position: relative;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
    z-index: 1;
}
.playbook-card-wrapper:hover .content-inner,
.playbook-card-wrapper:focus-within .content-inner,
.playbook-card-wrapper.touch-active .content-inner {
    transform: translateY(-8px);
}
.playbook-card-wrapper .box-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18) 0%, rgba(17, 24, 39, 0.65) 60%, rgba(17, 24, 39, 0.78) 100%);
    transition: opacity 0.4s ease;
    opacity: 0.9;
    z-index: 0;
}
.playbook-card-wrapper:hover .box-content::before,
.playbook-card-wrapper:focus-within .box-content::before,
.playbook-card-wrapper.touch-active .box-content::before {
    opacity: 1;
}
.playbook-card-wrapper .title {
    font-size: 1.25em;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
    font-family: var(--font-serif);
    text-shadow: none;
}
.playbook-card-wrapper .description {
    font-size: 0.9em;
    color: rgba(229, 231, 235, 0.95);
    line-height: 1.5;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin-top 0.4s ease-out;
    text-shadow: none;
    text-align: center;
}
.playbook-card-wrapper:hover .description,
.playbook-card-wrapper:focus-within .description,
.playbook-card-wrapper.touch-active .description {
    max-height: 200px;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.5s ease-in, margin-top 0.5s ease-in;
}
.playbook-card-wrapper .text-link {
    display: block;
    width: 100%;
    color: #ffffff;
    font-size: 0.82em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0.85;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    transition: opacity 0.4s ease, color 0.3s ease;
}
.playbook-card-wrapper .text-link:hover {
    color: var(--accent-color);
}
.playbook-card-wrapper:hover .text-link,
.playbook-card-wrapper:focus-within .text-link,
.playbook-card-wrapper.touch-active .text-link {
    opacity: 1;
}
.playbook-card-wrapper .text-link:focus-visible {
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

@media (max-width: 1024px) {
    .playbook-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .playbook-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Two-Column Layout Sections --- */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0; /* REMOVED gap for a seamless edge-to-edge look */
    background-color: #ffffff;
    align-items: center;
    padding: 0; /* IMPORTANT: Ensures the section itself has no padding */
}

/* Add padding ONLY to the text column */
.two-column-section .text-column {
    padding: 8rem 8%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Make text dark on the new white background */
.two-column-section .content-card h2 {
    color: var(--primary-bg);
    text-shadow: none;
    font-size: var(--font-size-subhero);
}

.two-column-section .content-card .body {
    color: var(--primary-bg);
    text-shadow: none;
}

/* Hide the dark gradient overlay for these sections */
.two-column-section::before {
    display: none;
}

/* Style for the image container column */
.two-column-section .image-column {
    width: 100%;
    height: 100%; /* Ensure container stretches to full section height */
}

.two-column-section .image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Class to reverse the column order */
.two-column-section.reverse .text-column {
    order: 2; /* CSS Grid order property */
}
.two-column-section.reverse .image-column {
    order: 1; /* CSS Grid order property */
}

/* Responsive styles for mobile */
@media (max-width: 900px) {
    .two-column-section {
        grid-template-columns: 1fr; /* Stack columns on top of each other */
    }
    .two-column-section .text-column {
        padding: 4rem 5%;
        text-align: center;
    }
    .two-column-section .content-card .body {
        margin-left: auto;
        margin-right: auto;
    }
    .two-column-section.reverse .text-column,
    .two-column-section.reverse .image-column {
        order: initial; /* Reset the order on mobile */
    }
    .two-column-section .image-column {
        height: 350px; /* Match mobile image height from index.php */
    }
}

/* Text Visibility Fixes for Two-Column Sections */
.two-column-section .deliverables li {
    color: #4B5563; /* Dark grey text for readability */
    background-color: #F3F4F6; /* Light grey background for contrast */
    border-color: #E5E7EB; /* A slightly darker grey border */
}

.two-column-section .deliverables li:hover {
    background-color: #E5E7EB; /* A darker grey background on hover */
}



/* --- Mobile Spacing Tweaks --- */
@media (max-width: 768px) {
    .journey-section { padding: 3rem 5%; }
    .content-card h1,
    .content-card h2 { margin-bottom: 0.75rem; }
    .content-card .body { margin-bottom: 1rem; line-height: 1.7; }
    .deliverables { margin: 1rem 0; gap: 0.5rem; }
    .deliverables li { padding: 0.4rem 1rem; }
    .cta-button {
        width: min(100%, 320px);
        margin: clamp(1rem, 2.5vw, 1.35rem) auto 0;
        justify-content: center;
    }
    .two-column-section .cta-button { width: min(100%, 320px); }
    .playbook-grid { gap: 1rem; margin-top: 2rem; }
    .playbook-card-wrapper { height: 320px; }
    .two-column-section .text-column { padding: 3rem 5%; }
    .two-column-section .image-column { height: 350px; }
}

@media (max-width: 520px) {
    .journey-section { padding: 2.75rem 1.75rem; }
    .cta-button { width: 100%; }
}

/* --- Mobile: Playbook horizontal snap carousel --- */
@media (max-width: 768px) {
    .playbook-grid {
        grid-template-columns: 1fr;
    }
}



/* --- XS readability and branding spacing --- */
@media (max-width: 480px) {
    .journey-section { padding: 2.5rem 5%; }
    .content-card .body { font-size: .98rem; }
    .branding-on-page { opacity: .8; }
}