.team-page {
    --team-navy: #071d49;
    --team-blue: #0758d5;
    --team-royal: #2454f4;
    --team-pink: #e83e79;
    --team-ink: #19304f;
    --team-muted: #60718a;
    --team-soft: #f4f7fc;
    color: var(--team-ink);
    overflow: hidden;
}

.team-page *,
.team-page *::before,
.team-page *::after {
    box-sizing: border-box;
}

/* ─── Chip / badge ─── */
.service-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(15, 76, 219, 0.08);
    color: #0054df;
    border: 1px solid rgba(15, 76, 219, 0.14);
}

.service-chip.invert {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.pd-hero__name {
    display: block;
    width: max-content;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7fb0ff;
    margin-bottom: 12px;
}

.team-container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.team-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(72px, 9vw, 124px) 0 82px;
    background:
        radial-gradient(
            ellipse at 86% 20%,
            rgba(80, 131, 255, 0.26),
            transparent 30%
        ),
        radial-gradient(
            ellipse at 12% 100%,
            rgba(232, 62, 121, 0.18),
            transparent 34%
        ),
        linear-gradient(125deg, #061a43 0%, #0b347b 58%, #0758d5 100%);
    color: #fff;
}

.team-hero::before,
.team-hero::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.team-hero::before {
    top: -210px;
    right: -90px;
    width: 540px;
    height: 540px;
}

.team-hero::after {
    right: 70px;
    bottom: -310px;
    width: 520px;
    height: 520px;
}

.team-hero__content {
    max-width: 820px;
    padding-top: clamp(24px, 3vw, 40px);
    animation: team-rise-in 0.7s ease both;
}

.team-hero .breadcrumb-wrapper {
    display: table;
    margin: 0 0 30px !important;
}

.team-hero .breadcrumb-wrapper span {
    color: #fff;
}

.team-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.team-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.team-breadcrumb a:hover {
    text-decoration: underline;
}

.team-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #c9dbff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.team-eyebrow::before {
    width: 28px;
    height: 2px;
    background: var(--team-pink);
    content: "";
}

.team-hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(38px, 5.2vw, 66px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.team-hero h1 span {
    color: #8db4ff;
}

.team-hero__intro {
    max-width: 740px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.8;
}

.team-hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.team-hero__highlights span {
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
}

.team-section {
    padding: clamp(64px, 8vw, 96px) 0;
}

.team-section--soft {
    background: var(--team-soft);
}

.team-section-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.team-section-heading .team-eyebrow {
    color: var(--team-blue);
}

.team-section-heading h2 {
    margin: 0 0 16px;
    color: var(--team-navy);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.team-section-heading p {
    margin: 0;
    color: var(--team-muted);
    font-size: 16px;
    line-height: 1.8;
}

.team-leadership-grid {
    display: grid;
    gap: 28px;
}

.team-leader-card {
    position: relative;
    display: grid;
    grid-template-areas: "portrait content";
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    align-items: stretch;
    gap: clamp(24px, 5vw, 64px);
    min-width: 0;
    padding: clamp(18px, 3vw, 32px);
    overflow: hidden;
    border: 1px solid #e6ebf4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(13, 39, 84, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.team-leader-card--reverse {
    grid-template-areas: "content portrait";
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
}

.team-leader-card:hover {
    transform: translateY(-3px);
    border-color: #c8d8ff;
    box-shadow: 0 24px 54px rgba(13, 39, 84, 0.13);
}

.team-leader-card__portrait {
    position: relative;
    display: grid;
    grid-area: portrait;
    width: 100%;
    min-height: 330px;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(140deg, #eaf1ff, #dce8ff 55%, #f9e9f0);
}

.team-leader-card__portrait::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(7, 29, 73, 0.06);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.team-leader-card__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
    transition: transform 0.45s ease;
}

.team-leader-card:hover .team-leader-card__portrait img {
    transform: scale(1.045);
}

.team-leader-card__fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--team-blue);
    font-size: 68px;
}

.team-leader-card__content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(8px, 2vw, 24px) 0;
}

.team-leader-card--reverse .team-leader-card__content {
    padding-left: clamp(0px, 2vw, 22px);
}

.team-leader-card__role {
    margin: 0 0 12px;
    color: var(--team-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.team-leader-card h3 {
    margin: 0 0 16px;
    color: var(--team-navy);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.team-leader-card__bio {
    margin: 0;
    color: var(--team-muted);
    font-size: 16px;
    line-height: 1.85;
}

.team-leadership-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 30px;
    border: 1px dashed #c9d6ec;
    border-radius: 16px;
    background: #fff;
    color: var(--team-muted);
    text-align: center;
    line-height: 1.7;
}

.team-delivery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: clamp(34px, 7vw, 82px);
}

.team-delivery__copy .team-eyebrow {
    color: var(--team-blue);
}

.team-delivery__copy h2 {
    margin: 0 0 18px;
    color: var(--team-navy);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.team-delivery__copy > p {
    margin: 0;
    color: var(--team-muted);
    font-size: 16px;
    line-height: 1.8;
}

.team-capability-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 27px 0 0;
    padding: 0;
    list-style: none;
}

.team-capability-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--team-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.team-capability-list li::before {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--team-pink);
    content: "";
}

.team-delivery__visual {
    position: relative;
    min-width: 0;
    margin: 4px 12px 18px 0;
    animation: floatElement 4s ease-in-out infinite;
}

/* --- Floating Animation Keyframe --- */
@keyframes floatElement {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
        /* Moves up smoothly by 12px */
    }
}

.team-delivery__visual::before {
    position: absolute;
    z-index: 0;
    inset: 18px -18px -18px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #2454f4, #0b347b);
    content: "";
}

.team-delivery__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 1.12;
    border: 7px solid #fff;
    border-radius: 22px;
    box-shadow: 0 22px 50px rgba(10, 39, 91, 0.16);
    object-fit: cover;
}

.team-delivery__caption {
    position: absolute;
    z-index: 2;
    right: -8px;
    bottom: 20px;
    max-width: 230px;
    padding: 16px 18px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(10, 39, 91, 0.16);
    color: var(--team-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;

    animation-delay: 0.2s;
}

.team-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.team-tech-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    background: #fff;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.team-tech-card:hover {
    transform: translateY(-4px);
    border-color: #c8d8ff;
    box-shadow: 0 16px 34px rgba(13, 39, 84, 0.09);
}

.team-tech-card__icon {
    display: grid;
    width: 43px;
    height: 43px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 12px;
    background: #eaf1ff;
    color: var(--team-blue);
    font-size: 13px;
    font-weight: 800;
}

.team-tech-card h3 {
    margin: 0 0 13px;
    color: var(--team-navy);
    font-size: 18px;
    font-weight: 700;
}

.team-tech-card__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-tech-card__items span {
    padding: 7px 10px;
    border: 1px solid #e7edf7;
    border-radius: 999px;
    background: #f8faff;
    color: #4c607e;
    font-size: 12px;
    line-height: 1.2;
}

.team-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    counter-reset: team-process;
}

.team-process-card {
    position: relative;
    min-width: 0;
    padding: 28px 22px;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    background: #fff;
    counter-increment: team-process;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.team-process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(13, 39, 84, 0.09);
}

.team-process-card::before {
    display: block;
    margin-bottom: 24px;
    color: var(--team-blue);
    content: "0" counter(team-process);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.team-process-card h3 {
    margin: 0 0 10px;
    color: var(--team-navy);
    font-size: 19px;
    font-weight: 700;
}

.team-process-card p {
    margin: 0;
    color: var(--team-muted);
    font-size: 14px;
    line-height: 1.7;
}

.team-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(52px, 7vw, 78px) 0;
    background: linear-gradient(120deg, #071d49, #0d3d97 65%, #0758d5);
    color: #fff;
}

.team-cta::after {
    position: absolute;
    z-index: -1;
    top: -160px;
    right: -90px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    content: "";
}

.team-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.team-cta__copy {
    max-width: 700px;
}

.team-cta__copy .team-eyebrow {
    color: #c9dbff;
}

.team-cta h2 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.team-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.8;
}

.team-cta__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}

.team-cta__button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #fff;
    color: var(--team-blue);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.team-cta__button:hover {
    transform: translateY(-2px);
    background: transparent;
    color: #fff;
}

.team-cta__button--outline {
    background: transparent;
    color: #fff;
}

.team-cta__button--outline:hover {
    background: #fff;
    color: var(--team-blue);
}

@keyframes team-rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .team-leader-card,
    .team-leader-card--reverse {
        grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
        gap: 28px;
    }

    .team-leader-card--reverse {
        grid-template-areas: "content portrait";
    }

    .team-delivery {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .team-tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .service-chip {
        font-size: 10px;
        padding: 7px 13px;
        letter-spacing: 0.08em;
    }

    .team-container {
        width: min(100% - 32px, 520px);
    }

    .team-hero {
        padding: 62px 0 64px;
    }

    .team-breadcrumb {
        margin-bottom: 24px;
    }

    .team-leadership-grid,
    .team-delivery,
    .team-tech-grid,
    .team-process-grid {
        grid-template-columns: 1fr;
    }

    .team-leader-card,
    .team-leader-card--reverse {
        grid-template-areas:
            "portrait"
            "content";
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 16px;
    }

    .team-leader-card__portrait {
        min-height: 0;
        aspect-ratio: 1.25;
    }

    .team-leader-card__content,
    .team-leader-card--reverse .team-leader-card__content {
        padding: 8px 4px 6px;
    }

    .team-section-heading {
        margin-bottom: 34px;
        text-align: left;
    }

    .team-delivery__visual {
        margin: 4px 12px 18px 0;
    }

    .team-capability-list {
        grid-template-columns: 1fr;
    }

    .team-cta__actions {
        width: 100%;
    }

    .team-cta__button {
        flex: 1 1 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-page *,
    .team-page *::before,
    .team-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
