:root {
    --deep-teal: #262362;
    --vibrant-cyan: #4EC7E5;
    
    /* Theme Variables (Light by default) */
    --bg-color: #f8fafb;
    --surface-color: #ffffff;
    --indigo-text: #262362;
    --secondary-text: #000000;
    --surface-glass: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.04);
    --border-glass: rgba(255, 255, 255, 0.4);
    --central-box-border: rgba(78, 199, 229, 0.3);
    
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}


html { scroll-behavior: smooth; }

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

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--indigo-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    letter-spacing: -0.05em;
}

/* ==============================
   GLASSMORPHISM
   ============================== */
.glass {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

/* ==============================
   PRELOADER
   ============================== */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-color);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-assemble-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(5);
}

.mark-pieces {
    position: relative;
    display: flex;
    height: 28px;
    width: 79px; /* Reserve space so p-1 doesn't shrink when absolutely positioned */
}

.p-piece {
    opacity: 0;
}

/* 4 pieces flying into their fixed grid spots */
.p-1 { animation: p-assemble-1 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.p-2 { animation: p-assemble-2 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.p-3 { animation: p-assemble-3 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.p-4 { animation: p-assemble-4 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }

@keyframes p-assemble-1 {
    0% { transform: translateY(-30vh); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes p-assemble-2 {
    0% { transform: translateY(30vh); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes p-assemble-3 {
    0% { transform: translateY(-30vh); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes p-assemble-4 {
    0% { transform: translateY(30vh); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ==============================
   NAVBAR
   ============================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 36px;
    width: auto;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--indigo-text);
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}
.mobile-menu-btn svg { width: 100%; height: 100%; }

.nav-link {
    text-decoration: none;
    color: var(--indigo-text);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:not(.btn-contact) {
    padding-left: 12px;
    margin-left: -12px;
}

.nav-link:not(.btn-contact):hover {
    background: linear-gradient(90deg, var(--vibrant-cyan), var(--deep-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link:not(.btn-contact)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: linear-gradient(180deg, var(--vibrant-cyan), var(--deep-teal));
    transform: skewX(-30deg) translateX(-10px);
    opacity: 0;
    transition: var(--transition);
}

.nav-link:not(.btn-contact):hover::before {
    opacity: 1;
    transform: skewX(-30deg) translateX(0);
}

.btn-contact,
.btn-primary {
    display: inline-block;
    background: var(--deep-teal);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.btn-contact:hover,
.btn-primary:hover {
    background: var(--vibrant-cyan);
    color: white;
    box-shadow: 0 4px 15px rgba(38, 35, 98, 0.4);
    transform: translateY(-2px);
}

/* ==============================
   HOVER SLASH ON HEADINGS
   ============================== */
.hover-slash {
    position: relative;
    display: inline-block;
    padding-left: 36px;
    margin-left: -36px;
    transition: var(--transition);
    cursor: default;
}

.hover-slash::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10%;
    height: 80%;
    width: 8px;
    background: linear-gradient(180deg, var(--vibrant-cyan), var(--deep-teal));
    transform: skewX(-30deg) translateX(-20px);
    opacity: 0;
    transition: var(--transition);
}

.hover-slash:hover {
    background: linear-gradient(90deg, var(--vibrant-cyan), var(--deep-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-slash:hover::before {
    opacity: 1;
    transform: skewX(-30deg) translateX(0);
}

/* ==============================
   TEXT GRADIENT UTILITY
   ============================== */
.text-gradient {
    background: linear-gradient(90deg, var(--vibrant-cyan), var(--deep-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 6px;
    display: inline-block;
}

/* ==============================
   LAYOUT
   ============================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.section-title { font-size: 3rem; }

.section-subtitle {
    font-size: 1.15rem;
    margin-top: 16px;
    margin-bottom: 48px;
    color: var(--secondary-text);
    max-width: 700px;
    line-height: 1.7;
}

.section-meta {
    font-size: 1rem;
    color: var(--secondary-text);
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 48px;
}

/* ==============================
   LANDING SECTION
   ============================== */
.landing-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 0;
    margin-bottom: 0;
}

.landing-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

#data-pulse-network {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: visible;
    pointer-events: none;
}

.hero-container { 
    width: 100%; 
    z-index: 2; 
    position: relative; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-left {
    flex: 1;
    min-width: 300px;
}

.hero-right {
    flex: 0 0 320px;
}

.question-bubbles-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    min-height: 180px;
}

.q-bubble {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(38, 35, 98, 0.08);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border-left: 4px solid var(--vibrant-cyan);
}

.q-bubble.active {
    opacity: 1;
    transform: translateY(0);
}

.q-bubble:nth-child(even) {
    border-left-color: var(--deep-teal);
    transform: translateY(-10px);
}

.q-bubble:nth-child(even).active {
    transform: translateY(0);
}

.q-bubble-heading {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--deep-teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.q-bubble-text {
    font-size: 0.95rem;
    color: var(--secondary-text);
    font-weight: 500;
}

.bubble-nav-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

/* ==============================
   FOUNDER MODAL
   ============================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 20, 0.5); /* dark overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.modal-content {
    width: 90%;
    max-width: 1250px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(38, 35, 98, 0.2);
    position: relative;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: var(--indigo-text);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.modal-close:hover {
    background: #f8fafb;
    transform: scale(1.1);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
}

.modal-left {
    padding: 40px;
    background: #f8fafb;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid var(--border-color);
}

.modal-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--indigo-text);
    margin: 0;
}

.modal-social-links {
    display: flex;
    gap: 12px;
}

.modal-social-links a {
    color: var(--secondary-text);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.modal-social-links a:hover {
    color: var(--vibrant-cyan);
}

.modal-social-links a.linkedin-link {
    color: #0A66C2;
}
.modal-social-links a.linkedin-link:hover {
    color: #004182;
}

.modal-social-links a.instagram-link {
    color: #E1306C;
}
.modal-social-links a.instagram-link:hover {
    color: #C13584;
}

.modal-founder-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.modal-image-placeholder {
    width: 100%;
    height: 300px;
    background: #e2e8f0;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-right {
    padding: 40px 60px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-heading {
    font-size: 1.4rem;
    color: var(--deep-teal);
    position: relative;
    display: inline-block;
    align-self: flex-start;
}


.modal-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-text);
}

.modal-list {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-text);
    padding-left: 20px;
    margin: 0;
}

.modal-list li {
    margin-bottom: 8px;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--indigo-text);
    border-left: 4px solid var(--vibrant-cyan);
    padding-left: 16px;
    margin: 8px 0;
}

.quote-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--deep-teal);
    font-style: normal;
    display: block;
    margin-top: 8px;
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .modal-right {
        padding: 30px;
    }
}

.bubble-nav-btn {
    background: transparent;
    border: 1px solid rgba(38, 35, 98, 0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-teal);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bubble-nav-btn:hover {
    background: var(--deep-teal);
    border-color: var(--deep-teal);
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-text);
    max-width: 560px;
    margin-top: 24px;
    line-height: 1.65;
}

/* ==============================
   INTERACTIVE LOCALISED GRADIENT
   ============================== */
.interactive-heading-container {
    position: relative;
    display: inline-block;
    cursor: default;
}

.hero-title {
    line-height: 1.08;
    margin-bottom: 0;
    user-select: none;
}

.hero-title .main-head {
    font-size: 4.8rem;
    display: block;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-title .sub-head {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-text);
    display: inline-block;
    position: relative;
    margin-top: 24px;
    padding-top: 24px;
    transition: padding-left 0.4s ease, color 0.4s ease;
}

.hero-title .sub-head::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 4px;
    background: var(--vibrant-cyan);
    transition: all 0.4s ease;
    border-radius: 2px;
}

.hero-title .sub-head:hover {
    padding-left: 40px;
}

.hero-title .sub-head:hover::before {
    width: 32px;
    top: 34px;
    left: 0px;
    transform: rotate(-65deg);
    background: var(--vibrant-cyan);
}

.base-text { color: var(--indigo-text); }

.gradient-text {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--hover-color, #4EC7E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
    will-change: -webkit-mask-image;
    -webkit-mask-image: radial-gradient(circle 120px at var(--mouse-x, -200px) var(--mouse-y, -200px), rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    mask-image: radial-gradient(circle 120px at var(--mouse-x, -200px) var(--mouse-y, -200px), rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

/* ==============================
   LANDING STRIP
   ============================== */
.landing-strip-container {
    width: 100%;
    margin-top: -3.2vw; /* Use vw to scale with the SVG's built-in 46px viewBox gap */
    margin-bottom: 0;
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.landing-strip-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: left center;
    display: block;
}

/* ==============================
   SERVICES SECTION
/* ==============================
   SPLIT SERVICES SECTION
   ============================== */
.firms-section.split-mode {
    padding: 0;
    margin: 0;
}

.services-split-layout {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .services-split-layout {
        flex-direction: row;
        align-items: stretch;
    }
}

.services-left {
    background-color: #040714;
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
    margin: 20px;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(115deg, 
        transparent 50%, 
        rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.02) 62%, 
        transparent 62%, transparent 68%, 
        rgba(255, 255, 255, 0.015) 68%, rgba(255, 255, 255, 0.015) 80%, 
        transparent 80%, transparent 86%, 
        rgba(255, 255, 255, 0.01) 86%, rgba(255, 255, 255, 0.01) 100%
    );
}

@media (min-width: 1024px) {
    .services-left {
        flex: 0 0 35%;
        padding: 80px 40px;
        margin: 80px 0 80px 40px;
    }
}

.services-logo {
    width: 80px;
    margin-bottom: 40px;
}

.services-left-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

@media (min-width: 1200px) {
    .services-left-heading {
        font-size: 3.5rem;
    }
}

.services-left-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 400px;
}

.services-chips {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.services-chips .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.services-chips .chip svg {
    color: var(--vibrant-cyan);
}

.services-right {
    background-color: var(--bg-color);
    padding: 80px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .services-right {
        padding: 80px 50px;
    }
}

.services-right-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--indigo-text);
    margin-bottom: 40px;
    text-align: center;
}



.firms-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 900px) {
    .firms-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.firm-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 16px rgba(0, 0, 0, 0.04),
        0 12px 32px rgba(78, 199, 229, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
    box-sizing: border-box;
}

.firm-card.clickable {
    cursor: pointer;
}

.firm-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 20px rgba(0, 0, 0, 0.06),
        0 16px 40px rgba(78, 199, 229, 0.12);
    border-color: rgba(78, 199, 229, 0.25);
}

.firm-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    color: var(--vibrant-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(78, 199, 229, 0.05);
    border-radius: 50%;
    margin-top: 4px;
}

.firm-icon svg {
    width: 28px;
    height: 28px;
}

.firm-content {
    flex: 1;
}

.firm-card h3 {
    font-size: 1.15rem;
    color: var(--indigo-text);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--secondary-text);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.service-list .check-icon {
    color: var(--vibrant-cyan);
    flex-shrink: 0;
    margin-top: 2px;
}

.laptop-br {
    display: none;
}

@media (min-width: 901px) and (max-width: 1350px) {
    .laptop-br {
        display: block;
    }
}


/* Central Box */
.nivo-central-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    position: relative;
    z-index: 3;
    width: 100%;
}

.nivo-central-box {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(78, 199, 229, 0.12), 0 0 60px rgba(78, 199, 229, 0.08);
    border: 1px solid var(--central-box-border);
    width: 100%;
    box-sizing: border-box;
}

.nivo-central-logo {
    height: 44px;
    flex-shrink: 0;
}

.nivo-central-separator {
    width: 1px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.1);
}

.nivo-central-text {
    color: var(--indigo-text);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .nivo-central-wrap {
        margin-top: 40px;
    }
}
@media (max-width: 600px) {
    .nivo-central-box {
        flex-direction: column;
        padding: 24px;
    }
    .nivo-central-separator {
        width: 40px;
        height: 1px;
    }
    .nivo-central-text {
        white-space: normal;
        text-align: center;
    }
}

/* ==============================
   PHILOSOPHY SECTION
   ============================== */
.philosophy-section {
    background: var(--indigo-text);
    color: white;
    overflow: hidden;
}

.philosophy-stage {
    max-width: 900px;
    margin: 0 auto;
}

/* Quote */
.philosophy-quote {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 60px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.philosophy-quote em {
    font-style: normal;
    color: var(--vibrant-cyan);
}

.pq-slash {
    display: inline-block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--vibrant-cyan);
    margin-right: 12px;
    transform: skewX(-15deg);
    opacity: 0.8;
}

/* Bridge — Finance ←/→ Design */
.philosophy-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 60px;
}

.bridge-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 160px;
}

.bridge-left { text-align: right; padding-right: 32px; }
.bridge-right { text-align: left; padding-left: 32px; }

.bridge-side span {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.bridge-side span:hover {
    color: white;
}

.bridge-center {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 20px 0;
}

.bridge-slash {
    width: 6px;
    height: 40px;
    background: var(--vibrant-cyan);
    transform: skewX(-30deg);
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.philosophy-bridge:hover .bridge-slash {
    opacity: 0.8;
}

.bridge-slash:nth-child(2) { height: 50px; }
.bridge-slash:nth-child(3) { height: 40px; }

.bridge-equals {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vibrant-cyan);
    margin-left: 12px;
    opacity: 0.8;
}

/* Body */
.philosophy-body {
    margin-bottom: 48px;
}

.philosophy-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Tagline */
.philosophy-tagline {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tag-word {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.4s ease;
}

.tag-word:hover { color: white; }

.tag-highlight {
    color: var(--vibrant-cyan);
    opacity: 0.9;
}

/* Scroll reveal animation */
.anim-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   TEAM SECTION
   ============================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(39, 35, 97, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(39, 35, 97, 0.12);
}

.team-card.clickable {
    cursor: pointer;
}


.team-photo-wrap {
    width: 100%;
    height: 460px; /* Much taller to accommodate portrait photos */
    overflow: hidden;
    position: relative;
    background: #f8fafb; /* Slight tint in case of letterboxing */
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole photo is visible */
    object-position: center;
    transition: transform 0.6s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.04);
}

.team-card:hover .mihir-photo {
    transform: scale(1.15);
}

.mihir-photo {
    object-fit: cover;
    object-position: center 10%;
    transform: scale(1.1);
    transform-origin: center 15%;
}

.team-card:hover .sam-photo {
    transform: scale(1.3);
}

.sam-photo {
    object-fit: cover;
    object-position: center top;
    transform: scale(1.25);
}

.team-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.partner-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.partner-name {
    font-size: 1.7rem;
    margin-bottom: 0;
}

.partner-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    transform: scale(1.1);
}

.linkedin-link { color: #0A66C2; }
.linkedin-link:hover { color: #004182; }

.instagram-link { color: #E1306C; }
.instagram-link:hover { color: #C13584; }

.social-icon {
    width: 24px;
    height: 24px;
}

.partner-role {
    color: var(--vibrant-cyan);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.partner-skills-bar {
    height: 6px;
    width: 100%;
    margin-top: auto;
    position: relative;
    background: linear-gradient(90deg, var(--vibrant-cyan), var(--deep-teal));
    overflow: hidden;
}

.partner-skills-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        115deg,
        transparent,
        transparent 12px,
        rgba(255, 255, 255, 0.25) 12px,
        rgba(255, 255, 255, 0.25) 15px
    );
}

.partner-desc {
    line-height: 1.65;
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid #eef1f3;
    margin-top: auto;
}

.credential-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 135px; /* Ensures both cards have equal height logo sections, aligning the divider and logos perfectly */
}

.credential-logo-wrap {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.credential-text {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 0.75rem;
    color: #6c7a89;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    margin-top: 8px;
    text-transform: capitalize;
}

.credential-logo {
    height: 64px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    transition: var(--transition);
}

.merisis-logo {
    height: 90px;
    transform: scale(1.1);
}

.partner-logos-3 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 70px;
}

.speed-shop-logo {
    max-width: 120px !important;
    height: 60px;
    filter: none !important;
}

.speed-shop-logo:hover {
    filter: none !important;
    box-shadow: none !important;
}

.credential-logo:hover {
    transform: scale(1.05);
}

.placeholder-logo {
    height: 28px;
    width: 70px;
    background: #e8ecee;
    border-radius: 4px;
    display: inline-block;
}

/* ==============================
   FOOTER SECTION
   ============================== */
.footer-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: linear-gradient(135deg, var(--deep-teal) 0%, #155b7d 100%);
    padding: 64px 80px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 24px 48px rgba(3, 115, 137, 0.15);
}

.footer-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-right: 40px;
}

.footer-title {
    font-size: 2.8rem;
    margin-bottom: 24px;
    position: relative;
}

.cyan-dot {
    color: var(--vibrant-cyan);
}

.footer-card .hover-slash { color: white; }
.footer-card .hover-slash::before { background: white; }
.footer-card .hover-slash:hover {
    background: none;
    -webkit-text-fill-color: white;
}

.footer-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 32px;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    color: var(--vibrant-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-email:hover {
    color: white;
    transform: scale(1.02);
}

.email-icon {
    width: 24px;
    height: 24px;
}

.footer-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 40px;
}

.footer-logo {
    max-width: 480px;
    width: 100%;
    margin-bottom: 12px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==============================
   SERVICE MODAL
   ============================== */
.service-modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    font-family: 'Helvetica', 'Arial', sans-serif;
    max-width: 1250px;
    width: calc(100% - 180px);
}
@media (max-width: 1024px) {
    .service-modal-content {
        width: 95%;
    }
}
.service-modal-content h2,
.service-modal-content h3,
.service-modal-content h4 {
    font-family: 'Helvetica', 'Arial', sans-serif;
    letter-spacing: normal;
}
.service-modal-content .modal-grid {
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 24px;
    min-height: 680px;
    height: auto;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: white;
}
.service-modal-content .modal-close {
    background: transparent;
    border: none;
    box-shadow: none;
    width: auto;
    height: auto;
    top: 32px;
    right: 32px;
    color: #6c7a89;
}
.service-modal-content .modal-close:hover {
    background: transparent;
    transform: none;
    color: #1a202c;
}

.service-modal-grid {
    grid-template-columns: minmax(220px, 1fr) 2.8fr;
}

/* Navigation Arrows */
.s-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}
.s-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}
.s-nav-btn svg {
    width: 28px;
    height: 28px;
}
#s-nav-prev {
    left: 40px;
}
#s-nav-next {
    right: 40px;
}
@media (max-width: 1400px) {
    #s-nav-prev { left: 20px; }
    #s-nav-next { right: 20px; }
}
@media (max-width: 1024px) {
    .s-nav-btn { display: none; }
}

.service-modal-left {
    background-color: #040714;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 40px;
    border-right: none;
}

.s-left-top {
    min-height: 260px;
    height: auto;
}

.s-left-top .s-icon-wrap {
    color: var(--vibrant-cyan);
    margin-bottom: 24px;
}
.s-left-top .s-icon-wrap svg {
    width: 48px;
    height: 48px;
}

.s-title {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
}

.s-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    line-height: 1.5;
}

.s-left-bottom {
    margin-top: 0;
}

.s-left-divider {
    width: 100%;
    height: 1px;
    background: #1e3a8a;
    margin-bottom: 24px;
}

.s-suited-label {
    color: var(--vibrant-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.s-suited-desc {
    color: white;
    font-size: 1rem;
    line-height: 1.5;
}

.service-modal-right {
    padding: 48px 48px 40px 48px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.s-section-title {
    color: var(--vibrant-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.s-process-main-title {
    margin-left: 20px;
}

/* Process Timeline */
.s-process-section {
    padding-top: 8px;
}
.s-process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 16px;
}
.s-process-timeline::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 10%;
    right: 10%;
    height: 0;
    border-top: 2px solid #cbd5e0;
    z-index: 0;
}
.s-step {
    flex: 1;
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.s-step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 0 0 6px white;
    color: var(--deep-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}
.s-step-icon {
    color: var(--vibrant-cyan);
    margin-bottom: 14px;
}
.s-step-icon svg {
    width: 28px;
    height: 28px;
}
.s-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--deep-teal);
    margin-bottom: 4px;
    line-height: 1.3;
    max-width: 140px;
    min-height: 2.6em;
    height: auto;
}
.s-step-desc {
    font-size: 0.85rem;
    color: #6c7a89;
    line-height: 1.4;
    max-width: 160px;
    min-height: 4.2em;
    height: auto;
}

/* Split Section */
.s-split-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    padding: 24px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    background: linear-gradient(to bottom, #ffffff, #fafcff);
    min-height: 260px;
    height: auto;
}
.s-split-left {
    padding-right: 32px;
    border-right: 1px solid #edf2f7;
}
.s-split-right {
    padding-left: 32px;
}
.s-deliverables-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.s-deliverables-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 500;
    line-height: 1.4;
}
.s-deliverables-list li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #262362;
    margin-top: 2px;
}
.s-fit-text {
    font-size: 0.95rem;
    color: #6c7a89;
    line-height: 1.5;
    margin-bottom: 0;
    min-height: 92px;
}

/* Diagram */
.s-diagram {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0;
    margin-top: 16px;
}
.s-diagram-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #718096;
    gap: 6px;
    flex: 1;
}
.s-diagram-item.active {
    color: var(--vibrant-cyan);
    font-weight: bold;
}
.s-diagram-icon svg {
    width: 20px;
    height: 20px;
}
.s-diagram-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}
.s-diagram-arrow {
    color: #cbd5e0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.s-diagram-arrow svg {
    width: 12px;
    height: 12px;
}

/* Footer */
.s-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 72px;
    margin-top: auto;
    margin-bottom: -40px;
    margin-left: -48px;
    margin-right: -48px;
    background: #f8fafc;
    border-top: 1px solid #eef1f3;
    font-size: 0.85rem;
    color: #1f2937;
    font-weight: 500;
}
.s-footer > svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--indigo-text);
}
.s-mailto {
    color: var(--vibrant-cyan);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    white-space: nowrap;
}
.s-mailto svg {
    width: 16px;
    height: 16px;
    color: currentColor;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
    .hero-title { font-size: 3.5rem; }
    .section-title { font-size: 2.2rem; }
    .hover-slash { padding-left: 0; margin-left: 0; }
    .hover-slash::before { display: none; }
    .philosophy-quote { font-size: 1.6rem; }
    .philosophy-bridge { flex-direction: column; gap: 24px; }
    .bridge-left, .bridge-right { text-align: center; padding: 0; }
    .bridge-center { transform: rotate(90deg); }
    .tag-word { font-size: 1.3rem; }
    .team-grid { grid-template-columns: 1fr; }
    .team-info { padding: 24px; }
    .partner-name { font-size: 1.5rem; }
    .partner-logos { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
    .partner-logos-3 { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
    .speed-shop-logo { max-width: 90px !important; height: auto; }
    .credential-item { min-height: auto; }
    .nav-links { gap: 20px; }
}

@media (max-width: 600px) {
    /* Mobile Menu - Accordion Style */
    .navbar {
        position: relative;
        background: var(--surface-color) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        flex-wrap: wrap;
        height: auto;
        padding: 16px 5%;
    }
    .mobile-menu-btn { display: block; }
    .nav-links {
        flex-basis: 100%;
        position: static;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
        text-align: right;
        padding: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: max-height 0.4s ease, margin 0.4s ease;
        z-index: 999;
    }
    .nav-links.mobile-menu-active {
        max-height: 400px;
        margin-top: 24px;
        margin-bottom: 16px;
    }
    .nav-link { font-size: 1.2rem; }

    /* Sub-head Click Animation */
    .hero-title .sub-head { font-size: 1.4rem; white-space: nowrap; letter-spacing: -0.02em; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero-title .sub-head:hover { padding-left: 0; }
    .hero-title .sub-head:hover::before { width: 48px; top: 0; left: 0; transform: none; }
    .hero-title .sub-head.mobile-active { padding-left: 40px; }
    .hero-title .sub-head.mobile-active::before { width: 32px; top: 34px; left: 0px; transform: rotate(-65deg); }

    /* Bubble Nav Controls (Questions) */
    .bubble-nav-controls { margin-top: 4px; margin-bottom: 24px; padding: 0; }

    /* Pre-seed, Seed, Series A Chips */
    .services-chips { gap: 8px; justify-content: flex-start; }
    .services-chips .chip { font-size: 0.8rem; padding: 6px 10px; }
    
    /* Services Section adjustments */
    .services-left { padding: 32px 16px; margin: 16px; }
    .services-right-heading { text-align: left; padding-left: 16px; }
    
    /* Right Services Whitespace and Card Grid */
    .services-right { padding: 32px 16px; }
    .firm-card { padding: 16px; flex-direction: row; align-items: flex-start; gap: 12px; }
    .firm-icon { margin-bottom: 0; flex-shrink: 0; width: 40px; height: 40px; }
    .firm-icon svg { width: 20px; height: 20px; }
    .firm-content h3 { font-size: 1.1rem; margin-bottom: 12px; }
    
    /* Service List to 2x2 grid on mobile */
    .service-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .service-list li { font-size: 0.85rem; }

    /* Footer adjustments */
    #contact.section { padding-top: 24px; }
    .footer-card { padding: 32px 24px; flex-direction: column; text-align: left; gap: 32px; }
    .footer-left { padding: 0; align-items: flex-start; }
    .footer-right { padding: 0; align-items: flex-start; justify-content: flex-start; }
    .footer-title { font-size: 2.2rem; margin-bottom: 16px; text-align: left; }
    .footer-desc { font-size: 1rem; }
    .footer-divider { display: none; }
    .footer-logo { max-width: 240px; margin-left: 0; }

    /* Modal Mobile */
    .modal-grid { grid-template-columns: 1fr; }
    .modal-left { padding: 24px; border-right: none; border-bottom: 1px solid var(--border-color); }
    .modal-right { padding: 32px 24px; }
    .modal-image-placeholder { height: 220px; }
    .modal-close { top: 16px; right: 16px; }
    .modal-profile-header { 
        flex-direction: row; 
        flex-wrap: wrap;
        align-items: center; 
        gap: 12px; 
        padding-right: 60px; 
    }

    /* Service Modal Mobile */
    .service-modal-grid { grid-template-columns: 1fr; }
    .service-modal-left { padding: 40px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .service-modal-right { padding: 40px 24px; }
    .s-process-main-title { margin-left: 0; text-align: center; }
    .s-process-timeline { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 32px 16px; 
    }
    .s-process-timeline .s-step:last-child { grid-column: 1 / -1; }
    .s-process-timeline::before { display: none; }
    .s-step-num { margin-bottom: 12px; }
    .s-split-section { grid-template-columns: 1fr; gap: 40px; }
    .s-split-left { padding-right: 0; border-right: none; }
    .s-split-right { padding-left: 0; }
    .s-fit-text { min-height: 0; }
    .s-left-top { min-height: 0; margin-bottom: 32px; }
    .s-diagram { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; padding: 16px 0; }
    .s-diagram-arrow { display: none; }
    .s-footer { 
        flex-direction: column; 
        align-items: center; 
        text-align: center;
        gap: 16px; 
        padding: 24px;
        margin-left: -24px;
        margin-right: -24px;
        margin-bottom: 0;
    }
    .s-mailto { margin-left: 0; justify-content: center; }
}
