/* ==================================================
   OUR TEAM PAGE (our-team.php)
   Hero: the same layout as the Careers page hero (copied from career.css)
================================================== */

.cs-careers-hero {
    --careers-surface: #f4f8fd;
    --careers-ink: #102542;
    --careers-copy: #344c64;
    --careers-orange: #e87818;
    --careers-photo-start: 42%;
    --careers-photo-position: 72% center;

    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: clamp(310px, 29vw, 480px);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 0% 100%, #fff0e0, transparent 32%),
        linear-gradient(105deg, #f9fbfe, var(--careers-surface) 44%);
}

/* Keep the copy aligned with the rest of the page. */
.cs-careers-hero > .container {
    position: relative;
    z-index: 1;
}

.cs-careers-hero .cs-careers-hero__content {
    width: min(47%, 570px);
    padding-block: clamp(36px, 5vw, 72px);
    text-align: left;
}

.cs-careers-hero .cs-careers-hero__content > .cs-title {
    margin: 0;
    text-align: left;
}

.cs-careers-hero .cs-careers-hero__brand {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.cs-careers-hero__brand::after {
    display: block;
    width: clamp(82px, 44%, 158px);
    height: 5px;
    margin: 8px 0 0 3px;
    border-radius: 100% 45% 70% 30%;
    background: linear-gradient(90deg, var(--cs-c-blue), var(--cs-c-cyan));
    transform: rotate(-3deg);
    content: "";
}

.cs-careers-hero .cs-careers-hero__content > p {
    max-width: 45ch;
    margin: 16px 0 0;
    color: var(--careers-copy);
    font-size: clamp(.98rem, 1.3vw, 1.15rem);
    line-height: 1.6;
}

/* Full-bleed photo with a soft fade along its left edge. */
.cs-careers-hero .cs-careers-hero__media {
    position: absolute;
    inset: 0 0 0 var(--careers-photo-start);
}

.cs-careers-hero .cs-careers-hero__media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--careers-photo-position);
}

.cs-careers-hero .cs-careers-hero__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--careers-surface) 0%,
        rgb(244 248 253 / 94%) 9%,
        rgb(244 248 253 / 60%) 19%,
        transparent 36%
    );
    content: "";
    pointer-events: none;
}

/* Tablet and phone — copy first, then the photo. */
@media (max-width: 991.98px) {
    .cs-careers-hero {
        min-height: 0;
    }

    .cs-careers-hero .cs-careers-hero__content {
        width: 100%;
        padding-block: 34px 18px;
    }

    .cs-careers-hero .cs-careers-hero__media {
        position: relative;
        inset: auto;
        height: clamp(205px, 47vw, 350px);
    }

    .cs-careers-hero .cs-careers-hero__media > img {
        object-position: center 35%;
    }

    .cs-careers-hero .cs-careers-hero__media::after {
        background: linear-gradient(
            180deg,
            var(--careers-surface),
            rgb(244 248 253 / 45%) 10%,
            transparent 28%
        );
    }
}

@media (max-width: 575.98px) {
    .cs-careers-hero .cs-careers-hero__content {
        padding-block: 28px 16px;
    }
}



/* ==================================================
   SHARED: LinkedIn button over a photo, initials when there is no photo
================================================== */
.cs-team-linkedin {
    position: absolute;
    z-index: 2;
    inset-block-end: 12px;
    inset-inline-end: 12px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #d5e7f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 14px rgb(8 46 86 / 18%);
    color: #0870af !important;
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cs-team-linkedin:hover {
    background: #082e56;
    color: #fff !important;
    transform: translateY(-2px);
}

.cs-team-linkedin:focus-visible {
    outline: 2px solid #082e56;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #fff;
}

.cs-team-initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #0870af;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.55;
}

/* ==================================================
   LEADERSHIP
================================================== */
.cs-leadership {
    --leader-title: var(--cs-c-title, #172b3d);
    --leader-text: var(--cs-c-text, #526674);

    background:
        radial-gradient(ellipse at 50% 0%, #e5f3fb, transparent 62%),
        #f5f9fb;
}

.cs-leadership .cs-leadership__card--blue {
    --leader-accent: #065a8c;
    --leader-tint: #e7f4fc;
    --leader-edge: #cfe4f2;
}

.cs-leadership .cs-leadership__card--teal {
    --leader-accent: #146b65;
    --leader-tint: #e6f5ef;
    --leader-edge: #cde7dc;
}

.cs-leadership .cs-leadership__card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(15px, 2vw, 26px);
    height: 100%;
    min-width: 0;
    padding: clamp(14px, 1.7vw, 22px);
    border: 1px solid #dde6ed;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(28, 65, 91, 0.07);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cs-leadership .cs-leadership__photo {
    position: relative;
    min-width: 0;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid var(--leader-edge);
    border-radius: 16px;
    background: linear-gradient(155deg, #f8fcfe, var(--leader-tint));
}

.cs-leadership .cs-leadership__photo > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
}

.cs-leadership .cs-leadership__photo .cs-team-initials {
    color: var(--leader-accent);
}

.cs-leadership .cs-leadership__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding-block: 12px;
    padding-inline-end: 4px;
    text-align: left;
}

.cs-leadership .cs-leadership__details h3 {
    margin: 0;
    color: var(--leader-title);
    font-size: clamp(21px, 1.9vw, 28px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.cs-leadership .cs-leadership__role {
    max-width: 100%;
    margin: 8px 0 0;
    padding: 5px 9px;
    border: 1px solid var(--leader-edge);
    border-radius: 7px;
    background: var(--leader-tint);
    color: var(--leader-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.cs-leadership .cs-leadership__bio {
    width: 100%;
    margin: 15px 0 0;
    padding-top: 13px;
    border-top: 1px solid var(--leader-edge);
    color: var(--leader-text);
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .cs-leadership .cs-leadership__card:hover {
        transform: translateY(-4px);
        border-color: var(--leader-edge);
        box-shadow: 0 18px 35px rgba(28, 65, 91, 0.11);
    }
}

@media (max-width: 575.98px) {
    .cs-leadership .cs-leadership__card {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 19px;
    }

    .cs-leadership .cs-leadership__photo {
        min-height: 0;
        height: clamp(230px, 82vw, 310px);
        border-radius: 13px;
    }

    .cs-leadership .cs-leadership__details {
        padding: 2px 4px 8px;
    }
}

/* ==================================================
   SPECIALISTS
================================================== */
.cs-specialists {
    --specialist-ink: var(--cs-c-title, #172b3d);
    --specialist-border: #d5e7f2;

    background:
        radial-gradient(ellipse at 50% 100%, #dceef9, transparent 68%),
        linear-gradient(180deg, #fff, #f8fcff 45%, #edf6fc);
}

.cs-specialists .cs-specialist-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    padding: 7px;
    border: 1px solid var(--specialist-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 32px -19px rgb(16 67 104 / 32%), 0 3px 8px rgb(16 67 104 / 4%);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cs-specialists .cs-specialist-card__portrait {
    position: relative;
    aspect-ratio: 12 / 13;
    overflow: hidden;
    border-radius: 18px 18px 12px 12px;
    background: linear-gradient(145deg, #edf8ff, #d6ebf8);
}

.cs-specialists .cs-specialist-card__portrait > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.4s ease;
}

.cs-specialists .cs-specialist-card__profile {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-top: 7px;
    padding: 15px 12px 17px;
    border-radius: 12px 12px 17px 17px;
    background: linear-gradient(180deg, #fff, #edf7fe);
    text-align: center;
}

.cs-specialists .cs-specialist-card__profile h3 {
    margin: 0;
    color: var(--specialist-ink);
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.cs-specialists .cs-specialist-card__role {
    max-width: 100%;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid #d5e8f5;
    border-radius: 999px;
    background: #e8f4fc;
    color: #075c8b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.cs-specialists .cs-specialist-card__description {
    margin: 0;
    padding-top: 4px;
    color: #496175;
    font-size: 13px;
    line-height: 1.55;
    text-wrap: pretty;
    /* descriptions come from the admin panel: keep the cards even, at most 4 lines */
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

@media (hover: hover) {
    .cs-specialists .cs-specialist-card:hover {
        transform: translateY(-4px);
        border-color: #a8d2eb;
        box-shadow: 0 21px 38px -17px rgb(16 67 104 / 36%);
    }

    .cs-specialists .cs-specialist-card:hover .cs-specialist-card__portrait > img {
        transform: scale(1.035);
    }
}

@media (max-width: 575.98px) {
    .cs-specialists .cs-specialist-card {
        max-width: 370px;
        margin-inline: auto;
    }
}

/* ==================================================
   HOW WE WORK TOGETHER — four connected teams
================================================== */
.cs-team-network {
    --team-ink: var(--cs-c-title, #172b3d);
    --team-text: var(--cs-c-text, #526779);
    --team-blue: var(--cs-c-blue, #0870af);
    --team-cyan: var(--cs-c-cyan, #159dd3);
    --team-line: #dbe7ef;

    background:
        radial-gradient(ellipse at 100% 4%, #dceff9, transparent 45%),
        radial-gradient(ellipse at 0% 100%, #ebedf9, transparent 42%),
        linear-gradient(180deg, #f9fcff 0%, #eef5fb 100%);
}

.cs-team-network__grid {
    --team-column-gap: 22px;
    --team-branch: 34px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px var(--team-column-gap);
}

.cs-team-network__hub {
    position: relative;
    display: grid;
    grid-column: 1 / -1;
    justify-items: center;
}

.cs-team-network__hub-card {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(100%, 360px);
    padding: 22px 24px;
    border: 1px solid #315774;
    border-radius: 23px;
    background:
        radial-gradient(ellipse at 100% 0%, #1a5377, transparent 75%),
        linear-gradient(135deg, #10283f, #101b30);
    box-shadow: 0 18px 36px -16px rgba(16, 40, 63, 0.58);
    text-align: center;
}

.cs-team-network__hub-card::before {
    position: absolute;
    inset-block-start: -6px;
    inset-inline-start: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #69d6ff;
    box-shadow: 0 0 0 5px rgba(105, 214, 255, 0.2);
    content: "";
}

.cs-team-network__hub-card h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.22;
}

.cs-team-network__hub-card p {
    margin: 0;
    color: #d1e5f2;
    font-size: 14px;
    line-height: 1.55;
}

.cs-team-network__card {
    --team-accent: #0870af;
    --team-tint: #eaf5ff;

    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(18px, 2vw, 27px);
    border: 1px solid var(--team-line);
    border-top: 3px solid var(--team-accent);
    border-radius: 22px;
    background: linear-gradient(155deg, #fff 58%, var(--team-tint) 100%);
    box-shadow: 0 16px 34px -23px rgba(19, 58, 85, 0.35), 0 3px 8px rgba(19, 58, 85, 0.035);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.cs-team-network__card--advertising {
    --team-accent: #714caa;
    --team-tint: #f2ecfc;
}

.cs-team-network__card--branding {
    --team-accent: #94602d;
    --team-tint: #fcf2e5;
}

.cs-team-network__card--web {
    --team-accent: #14796f;
    --team-tint: #e8f7f3;
}

.cs-team-network__card-head {
    display: grid;
    justify-items: start;
    gap: 13px;
    margin-bottom: 10px;
}

.cs-team-network__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #ffffffb3;
    border-radius: 15px;
    background: var(--team-tint);
    box-shadow: 0 3px 8px rgba(19, 58, 85, 0.06);
    color: var(--team-accent);
    font-size: 22px;
    line-height: 1;
}

.cs-team-network__card h3 {
    margin: 0;
    color: var(--team-ink);
    font-size: clamp(18px, 1.6vw, 23px);
    font-weight: 750;
    line-height: 1.22;
    letter-spacing: -0.025em;
}

.cs-team-network__card > p {
    margin: 0 0 19px;
    color: var(--team-text);
    font-size: 14px;
    line-height: 1.7;
}

.cs-team-network .cs-team-network__chips {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 8px;
    margin: auto 0 0;
    padding: 15px 0 0;
    border-top: 1px solid var(--team-line);
    list-style: none;
}

.cs-team-network .cs-team-network__chips li {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 34px;
    padding: 4px 11px 4px 5px;
    border: 1px solid var(--team-line);
    border-radius: 50px;
    background: linear-gradient(105deg, #fff 35%, var(--team-tint));
    box-shadow: 0 2px 4px rgba(19, 58, 85, 0.045);
    color: var(--team-ink);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.cs-team-network__chips li > i {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--team-tint);
    color: var(--team-accent);
    font-size: 13px;
    line-height: 1;
}

.cs-team-network__chips li > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (hover: hover) {
    .cs-team-network__card:hover {
        border-inline-color: #bfd7e6;
        border-bottom-color: #bfd7e6;
        box-shadow: 0 18px 38px -20px rgba(19, 58, 85, 0.36);
    }
}

/* desktop: connector rail and four downward arrows */
@media (min-width: 992px) {
    .cs-team-network__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: calc(2 * var(--team-branch));
    }

    .cs-team-network__hub::before,
    .cs-team-network__card::before,
    .cs-team-network__card::after {
        position: absolute;
        inset-inline-start: 50%;
        transform: translateX(-50%);
        pointer-events: none;
        content: "";
    }

    .cs-team-network__hub::before {
        top: 100%;
        width: 2px;
        height: calc(var(--team-branch) + 1px);
        background: linear-gradient(var(--team-blue), var(--team-cyan));
    }

    /* the rail runs from the first card's centre to the fourth's */
    .cs-team-network__hub::after {
        position: absolute;
        top: calc(100% + var(--team-branch));
        inset-inline: calc(12.5% - var(--team-column-gap) * 0.375);
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, #0870af 0%, #714caa 33.33%, #94602d 66.67%, #14796f 100%);
        pointer-events: none;
        content: "";
    }

    .cs-team-network__card::before {
        bottom: calc(100% + 3px);
        width: 2px;
        height: var(--team-branch);
        background: var(--team-accent);
        opacity: 0.72;
    }

    .cs-team-network__card::after {
        z-index: 1;
        bottom: calc(100% + 2px);
        width: 12px;
        height: 9px;
        background: var(--team-accent);
        clip-path: polygon(0 0, 100% 0, 50% 100%);
    }
}

@media (max-width: 575.98px) {
    .cs-team-network__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .cs-team-network__hub-card {
        width: 100%;
    }

    .cs-team-network__card {
        border-radius: 18px;
    }

    .cs-team-network .cs-team-network__chips {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }
}

/* ==================================================
   CAREERS CTA — the site's dark brand band (.cs-bg-dark), cs-title,
   cs-subtext and the light button, as on the other pages
================================================== */
.cs-team-cta__banner {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    overflow: hidden;
    padding: clamp(28px, 4.5vw, 56px);
    border: 1px solid rgba(48, 170, 245, 0.14);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(19, 145, 195, 0.32), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(8, 105, 166, 0.18), transparent 38%),
        var(--cs-grad-dark);
    box-shadow: 0 22px 55px rgba(42, 44, 46, 0.22);
}

/* faint grid, as on the site's final call-to-action */
.cs-team-cta__banner::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
    content: "";
}

.cs-team-cta__content {
    min-width: 0;
    text-align: left;
}

.cs-team-cta__content .cs-eyebrow {
    justify-content: flex-start;
}

.cs-team-cta__content .cs-title {
    margin: 0;
    text-align: left;
}

.cs-team-cta__content .cs-title .cs-accent {
    display: block;
}

.cs-team-cta__content .cs-subtext {
    max-width: 56ch;
    margin: 12px 0 0;
    text-align: left;
}

@media (max-width: 767.98px) {
    .cs-team-cta__banner {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        border-radius: 22px;
    }
}

@media (max-width: 479.98px) {
    .cs-team-cta__action .cs-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-leadership .cs-leadership__card,
    .cs-specialists .cs-specialist-card,
    .cs-specialists .cs-specialist-card__portrait > img,
    .cs-team-network__card,
    .cs-team-linkedin {
        transition: none;
    }

    .cs-specialists .cs-specialist-card:hover,
    .cs-specialists .cs-specialist-card:hover .cs-specialist-card__portrait > img {
        transform: none;
    }
}
