/* ── Founder story section ────────────────────────────── */

.nq-founder {
    position: relative;
    overflow: hidden;
    padding-top: 5.25rem;
    padding-bottom: 5.25rem;
    isolation: isolate;
}

body.nq-homepage-2 .neuroquest-home-2 .nq-founder__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 62% 48% at 16% 20%, rgba(73, 222, 255, 0.24), transparent 58%),
        radial-gradient(ellipse 58% 48% at 82% 74%, rgba(15, 134, 248, 0.18), transparent 56%),
        linear-gradient(180deg, rgba(239, 253, 255, 0.94) 0%, rgba(221, 246, 255, 0.9) 100%);
    pointer-events: none;
    z-index: -2;
}

.nq-founder__orbit {
    position: absolute;
    top: 8%;
    right: -5%;
    width: 22rem;
    max-width: 55vw;
    height: auto;
    opacity: 0.44;
    pointer-events: none;
    z-index: 0;
}

.nq-founder__orb {
    transform-box: fill-box;
    transform-origin: center;
    animation: nq-founder-orb-pulse 3.4s ease-in-out infinite;
}

.nq-founder__orb--2 { animation-delay: 0.7s; }
.nq-founder__orb--3 { animation-delay: 1.4s; }

@keyframes nq-founder-orb-pulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.35); }
}

.nq-founder__panel {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 2rem;
    padding: 1.35rem;
    border: 1px solid rgba(15, 134, 248, 0.14);
    border-radius: 2rem;
    background:
        radial-gradient(ellipse 95% 60% at 18% 0%, rgba(73, 222, 255, 0.20), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 252, 255, 0.66));
    backdrop-filter: blur(16px);
    box-shadow:
        0 24px 70px rgba(15, 134, 248, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.68);
    overflow: hidden;
}

.nq-founder__panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, #0f86f8, #49deff, #0f86f8, transparent);
    background-size: 200% 100%;
    opacity: 0.72;
    pointer-events: none;
    animation: nq-section-edge-shimmer 4.8s ease-in-out infinite;
}

.nq-founder__media {
    position: relative;
    min-height: 19rem;
}

.nq-founder__portrait {
    position: relative;
    height: 100%;
    min-height: 19rem;
    overflow: hidden;
    border-radius: 1.6rem;
    border: 1px solid rgba(15, 134, 248, 0.14);
    background:
        radial-gradient(circle at 36% 24%, rgba(73, 222, 255, 0.32), transparent 32%),
        linear-gradient(180deg, rgba(231, 250, 255, 0.98), rgba(208, 238, 255, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 20px 48px rgba(15, 134, 248, 0.12);
}

.nq-founder__portrait::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 1.25rem;
    pointer-events: none;
    z-index: 1;
}

.nq-founder__photo {
    width: 100%;
    height: 100%;
    min-height: 19rem;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.nq-founder__badge {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(15, 134, 248, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--nq-text);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(15, 134, 248, 0.16);
    backdrop-filter: blur(12px);
}

.nq-founder__badge-icon {
    color: var(--nq-primary);
}

.nq-founder__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.15rem;
}

.nq-founder__heading {
    max-width: 43rem;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--nq-text);
}

.nq-founder__intro,
.nq-founder__quote p {
    max-width: 39rem;
    font-size: clamp(0.98rem, 1.55vw, 1.08rem);
    line-height: 1.8;
    color: var(--nq-text-soft);
}

.nq-founder__quote {
    position: relative;
    padding: 1rem 1rem 1rem 1.15rem;
    border-left: 3px solid rgba(15, 134, 248, 0.42);
    border-radius: 0 1rem 1rem 0;
    background: rgba(255, 255, 255, 0.48);
}

.nq-founder__quote p {
    margin: 0;
}

.nq-founder__quote p + p {
    margin-top: 0.85rem;
}

.nq-founder__profile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.35rem;
}

.nq-founder__name {
    margin-bottom: 0.25rem;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--nq-text);
}

.nq-founder__role {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nq-primary);
}

.nq-founder__link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 2.6rem;
    padding: 0.62rem 0.92rem;
    border: 1px solid rgba(15, 134, 248, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--nq-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nq-founder__link:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 134, 248, 0.28);
    background: rgba(255, 255, 255, 0.78);
}

.nq-founder__credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 0.35rem;
}

.nq-founder__credential {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.48rem 0.75rem;
    border: 1px solid rgba(15, 134, 248, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: rgba(7, 56, 104, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .nq-founder {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .nq-founder__panel {
        grid-template-columns: minmax(18rem, 0.78fr) 1.22fr;
        gap: 2.5rem;
        padding: 1.5rem;
    }

    .nq-founder__media,
    .nq-founder__portrait,
    .nq-founder__photo {
        min-height: 28rem;
    }

    .nq-founder__profile {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .nq-founder__panel {
        grid-template-columns: minmax(20rem, 0.82fr) 1.18fr;
        gap: 3.5rem;
        padding: 1.75rem;
    }
}

@media (max-width: 767px) {
    .nq-founder__orbit {
        width: 15rem;
        right: -5rem;
        opacity: 0.28;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nq-founder__orb,
    .nq-founder__panel::after {
        animation: none !important;
    }
}
