/* ==========================================================
   AI1GROUP — MEET THE TEAM
   Dedicated page stylesheet
========================================================== */


/* ==========================================================
   1. ROOT VARIABLES
========================================================== */

:root {
    --team-bg: #06100d;
    --team-bg-soft: #0a1713;
    --team-bg-card: rgba(11, 27, 22, 0.9);
    --team-bg-card-hover: rgba(14, 36, 29, 0.97);

    --team-green: #79f2a8;
    --team-green-bright: #9cffbd;
    --team-green-dark: #21a45d;
    --team-green-glow: rgba(88, 255, 154, 0.26);

    --team-cyan: #77e8df;
    --team-white: #ffffff;
    --team-text: #d7e3de;
    --team-text-muted: #9eb1aa;

    --team-border: rgba(130, 255, 177, 0.17);
    --team-border-strong: rgba(130, 255, 177, 0.36);

    --team-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34);

    --team-radius-small: 14px;
    --team-radius-medium: 24px;
    --team-radius-large: 34px;

    --team-container: 1560px;
    --team-transition:
        220ms ease;
}


/* ==========================================================
   2. PAGE RESET AND GLOBAL ELEMENTS
========================================================== */

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

.ai1-team-page {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: var(--team-text);
    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(55, 218, 126, 0.09),
            transparent 25rem
        ),
        var(--team-bg);
}

.ai1-team-page img,
.ai1-team-page video {
    display: block;
    width: 100%;
    max-width: 100%;
}

.ai1-team-page a {
    color: inherit;
}

.ai1-team-container {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 80px), var(--team-container));
    margin-inline: auto;
}


/* ==========================================================
   3. TYPOGRAPHY
========================================================== */

.ai1-team-page h1,
.ai1-team-page h2,
.ai1-team-page h3,
.ai1-team-page p {
    margin-top: 0;
}

.ai1-team-page h1,
.ai1-team-page h2,
.ai1-team-page h3 {
    color: var(--team-white);
    text-wrap: balance;
}

.ai1-team-page h1 {
    max-width: 900px;
    margin-bottom: 24px;
    font-size: clamp(3.4rem, 8vw, 7.5rem);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.ai1-team-page h2 {
    margin-bottom: 20px;
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.ai1-team-page h3 {
    margin-bottom: 8px;
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.ai1-team-page p {
    line-height: 1.75;
}

.ai1-team-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--team-green);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ai1-team-kicker::before {
    width: 34px;
    height: 2px;
    content: "";
    border-radius: 20px;
    background: var(--team-green);
    box-shadow: 0 0 16px var(--team-green-glow);
}


/* ==========================================================
   4. HERO SECTION
========================================================== */

.ai1-team-hero {
    position: relative;
    display: flex;
    min-height: min(900px, 92vh);
    align-items: center;
    isolation: isolate;
    padding: 160px 0 120px;
    background:
        linear-gradient(
            90deg,
            rgba(3, 12, 9, 0.98) 0%,
            rgba(3, 12, 9, 0.88) 48%,
            rgba(3, 12, 9, 0.6) 100%
        ),
        url("/images/backgrounds/team.jpg")
        center / cover no-repeat;
}

.ai1-team-hero__overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(5, 15, 12, 0.1),
            var(--team-bg)
        );
}

.ai1-team-hero__content {
    padding-right: min(42vw, 580px);
}

.ai1-team-hero__lead {
    max-width: 790px;
    margin-bottom: 20px;
    color: var(--team-white);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.55;
}

.ai1-team-hero__text {
    max-width: 730px;
    margin-bottom: 36px;
    color: var(--team-text-muted);
    font-size: 1.05rem;
}

.ai1-team-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* ==========================================================
   5. BUTTONS
========================================================== */

.ai1-team-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition:
        transform var(--team-transition),
        border-color var(--team-transition),
        background var(--team-transition),
        box-shadow var(--team-transition);
}

.ai1-team-button:hover,
.ai1-team-button:focus-visible {
    transform: translateY(-3px);
}

.ai1-team-button:focus-visible {
    outline: 3px solid rgba(121, 242, 168, 0.26);
    outline-offset: 4px;
}

.ai1-team-button--primary {
    color: #03110a;
    background:
        linear-gradient(
            135deg,
            var(--team-green-bright),
            var(--team-green)
        );
    box-shadow:
        0 14px 35px rgba(73, 236, 135, 0.21);
}

.ai1-team-button--primary:hover,
.ai1-team-button--primary:focus-visible {
    color: #03110a;
    box-shadow:
        0 19px 46px rgba(73, 236, 135, 0.32);
}

.ai1-team-button--secondary {
    color: var(--team-white);
    border-color: var(--team-border-strong);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(12px);
}

.ai1-team-button--secondary:hover,
.ai1-team-button--secondary:focus-visible {
    color: var(--team-white);
    border-color: var(--team-green);
    background: rgba(121, 242, 168, 0.08);
}


/* ==========================================================
   6. SECTION HEADINGS
========================================================== */

.ai1-team-section-heading {
    max-width: 830px;
    margin: 0 auto 60px;
    text-align: center;
}

.ai1-team-section-heading .ai1-team-kicker {
    justify-content: center;
}

.ai1-team-section-heading > p:last-child {
    max-width: 760px;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    color: var(--team-text-muted);
    font-size: 1.05rem;
}


/* ==========================================================
   7. INTRODUCTION AND STATS
========================================================== */

.ai1-team-intro {
    padding: 120px 0;
}

.ai1-team-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ai1-team-stat {
    position: relative;
    overflow: hidden;
    padding: 38px 26px;
    border: 1px solid var(--team-border);
    border-radius: var(--team-radius-medium);
    background:
        linear-gradient(
            145deg,
            rgba(22, 47, 38, 0.84),
            rgba(8, 22, 17, 0.9)
        );
    box-shadow: var(--team-shadow);
    text-align: center;
    transition:
        transform var(--team-transition),
        border-color var(--team-transition),
        box-shadow var(--team-transition);
}

.ai1-team-stat::before {
    position: absolute;
    width: 130px;
    height: 130px;
    content: "";
    top: -70px;
    right: -60px;
    border-radius: 50%;
    background: var(--team-green-glow);
    filter: blur(15px);
}

.ai1-team-stat:hover {
    transform: translateY(-7px);
    border-color: var(--team-border-strong);
    box-shadow:
        0 30px 76px rgba(0, 0, 0, 0.4),
        0 0 35px rgba(88, 255, 154, 0.08);
}

.ai1-team-stat strong {
    display: block;
    margin-bottom: 10px;
    color: var(--team-green);
    font-size: clamp(2.4rem, 5vw, 4.1rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.ai1-team-stat span {
    color: var(--team-text);
    font-size: 0.86rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ==========================================================
   8. GENERAL TEAM SECTIONS
========================================================== */

.ai1-team-section {
    position: relative;
    padding: 120px 0;
}

.ai1-team-section--alternate {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(46, 195, 111, 0.06),
            transparent 30rem
        ),
        var(--team-bg-soft);
}

.ai1-team-section--leadership {
    padding-top: 80px;
}

.ai1-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 28px;
}

.ai1-team-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* ==========================================================
   9. TEAM CARDS
========================================================== */

.ai1-team-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--team-border);
    border-radius: var(--team-radius-large);
    background:
        linear-gradient(
            150deg,
            rgba(16, 38, 31, 0.94),
            rgba(6, 19, 15, 0.98)
        );
    box-shadow:
        0 20px 62px rgba(0, 0, 0, 0.28);
    transition:
        transform 300ms ease,
        border-color 300ms ease,
        box-shadow 300ms ease,
        background 300ms ease;
}

.ai1-team-card::after {
    position: absolute;
    width: 160px;
    height: 160px;
    content: "";
    right: -90px;
    bottom: -100px;
    border-radius: 50%;
    background: var(--team-green-glow);
    filter: blur(28px);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.ai1-team-card:hover {
    transform: translateY(-10px);
    border-color: var(--team-border-strong);
    background:
        linear-gradient(
            150deg,
            rgba(20, 48, 38, 0.98),
            rgba(7, 22, 17, 1)
        );
    box-shadow:
        0 34px 80px rgba(0, 0, 0, 0.4),
        0 0 45px rgba(61, 246, 135, 0.09);
}

.ai1-team-card:hover::after {
    opacity: 1;
}

.ai1-team-card--featured {
    border-color: rgba(121, 242, 168, 0.25);
}


/* ==========================================================
   10. TEAM PHOTOGRAPHS AND PLACEHOLDERS
========================================================== */

.ai1-team-card__photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 4.15;
    background:
        radial-gradient(
            circle at 50% 32%,
            rgba(98, 236, 151, 0.22),
            transparent 38%
        ),
        linear-gradient(
            160deg,
            #17352a,
            #07130f
        );
}

.ai1-team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.9) contrast(1.03);
    transition:
        transform 600ms ease,
        filter 600ms ease;
}

.ai1-team-card:hover .ai1-team-card__photo img {
    transform: scale(1.045);
    filter: saturate(1.03) contrast(1.05);
}

.ai1-team-photo-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.015),
            rgba(121, 242, 168, 0.045)
        );
}

.ai1-team-photo-placeholder span {
    display: grid;
    width: 118px;
    height: 118px;
    place-items: center;
    border: 2px solid rgba(121, 242, 168, 0.48);
    border-radius: 50%;
    color: var(--team-green);
    background:
        radial-gradient(
            circle,
            rgba(121, 242, 168, 0.12),
            rgba(121, 242, 168, 0.025)
        );
    box-shadow:
        0 0 40px rgba(121, 242, 168, 0.12);
    font-size: 2.05rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.ai1-team-photo-placeholder small {
    color: var(--team-text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ai1-team-card__status {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 9px 14px;
    border: 1px solid rgba(121, 242, 168, 0.32);
    border-radius: 999px;
    color: var(--team-green-bright);
    background: rgba(3, 17, 11, 0.8);
    backdrop-filter: blur(12px);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* ==========================================================
   11. TEAM CARD CONTENT
========================================================== */

.ai1-team-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 30px;
}

.ai1-team-card__department {
    margin-bottom: 13px;
    color: var(--team-green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ai1-team-card__role {
    margin-bottom: 21px;
    color: var(--team-cyan);
    font-size: 0.92rem;
    font-weight: 700;
}

.ai1-team-card__bio {
    margin-bottom: 23px;
    color: var(--team-text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.ai1-team-card__quote {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-left: 3px solid var(--team-green);
    border-radius: 0 var(--team-radius-small) var(--team-radius-small) 0;
    color: var(--team-text);
    background: rgba(121, 242, 168, 0.055);
    font-size: 0.91rem;
    font-style: italic;
    line-height: 1.65;
}

.ai1-team-card__skills {
    display: flex;
    margin: auto 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.ai1-team-card__skills li {
    padding: 8px 11px;
    border: 1px solid rgba(121, 242, 168, 0.13);
    border-radius: 999px;
    color: #c8d7d1;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.7rem;
    font-weight: 700;
}


/* ==========================================================
   12. BYTE SECTION
========================================================== */

.ai1-team-section--byte {
    padding: 110px 0;
    background:
        radial-gradient(
            circle at 28% 50%,
            rgba(62, 233, 132, 0.12),
            transparent 25rem
        ),
        #07130f;
}

.ai1-byte-card {
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
    align-items: stretch;
    border: 1px solid var(--team-border-strong);
    border-radius: 40px;
    background:
        linear-gradient(
            130deg,
            rgba(18, 48, 37, 0.97),
            rgba(6, 19, 15, 0.99)
        );
    box-shadow:
        0 38px 100px rgba(0, 0, 0, 0.39),
        0 0 70px rgba(67, 239, 134, 0.08);
}

.ai1-byte-card__visual {
    display: flex;
    min-height: 520px;
    align-items: center;
    justify-content: center;
    padding: 50px;
    border-right: 1px solid var(--team-border);
    background:
        radial-gradient(
            circle,
            rgba(121, 242, 168, 0.14),
            transparent 55%
        );
}

.ai1-byte-card__visual img,
.ai1-byte-card__visual video {
    width: min(100%, 390px);
    max-height: 430px;
    object-fit: contain;
}

.ai1-byte-placeholder {
    display: flex;
    width: min(100%, 340px);
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    border: 2px dashed rgba(121, 242, 168, 0.3);
    border-radius: 50%;
    color: var(--team-green);
    background:
        radial-gradient(
            circle,
            rgba(121, 242, 168, 0.1),
            rgba(121, 242, 168, 0.015)
        );
    box-shadow:
        0 0 70px rgba(121, 242, 168, 0.09);
}

.ai1-byte-placeholder span {
    font-size: clamp(2rem, 6vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.ai1-byte-placeholder small {
    color: var(--team-text-muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ai1-byte-card__content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: clamp(45px, 7vw, 90px);
}

.ai1-byte-card__content h2 {
    margin-bottom: 6px;
}

.ai1-byte-card__role {
    margin-bottom: 24px;
    color: var(--team-cyan);
    font-size: 1rem;
    font-weight: 750;
}

.ai1-byte-card__content > p:not(.ai1-team-kicker):not(.ai1-byte-card__role) {
    max-width: 660px;
    margin-bottom: 28px;
    color: var(--team-text-muted);
    font-size: 1.04rem;
}

.ai1-byte-card__bubble {
    position: relative;
    max-width: 590px;
    padding: 23px 26px 23px 54px;
    border: 1px solid var(--team-border-strong);
    border-radius: 22px;
    color: var(--team-white);
    background: rgba(121, 242, 168, 0.06);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.6;
}

.ai1-byte-card__bubble span {
    position: absolute;
    top: 5px;
    left: 19px;
    color: var(--team-green);
    font-size: 3.1rem;
    font-weight: 900;
    line-height: 1;
}


/* ==========================================================
   13. TEAM VALUES
========================================================== */

.ai1-team-values {
    padding: 120px 0;
}

.ai1-team-values__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.ai1-team-value-card {
    position: relative;
    overflow: hidden;
    padding: 34px 28px;
    border: 1px solid var(--team-border);
    border-radius: var(--team-radius-medium);
    background: var(--team-bg-card);
    transition:
        transform var(--team-transition),
        border-color var(--team-transition),
        background var(--team-transition);
}

.ai1-team-value-card:hover {
    transform: translateY(-7px);
    border-color: var(--team-border-strong);
    background: var(--team-bg-card-hover);
}

.ai1-team-value-card__number {
    display: block;
    margin-bottom: 27px;
    color: var(--team-green);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.ai1-team-value-card h3 {
    font-size: 1.3rem;
}

.ai1-team-value-card p {
    margin-bottom: 0;
    color: var(--team-text-muted);
    font-size: 0.92rem;
}


/* ==========================================================
   14. CALL TO ACTION
========================================================== */

.ai1-team-cta {
    padding: 30px 0 130px;
}

.ai1-team-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
    padding: clamp(40px, 7vw, 80px);
    border: 1px solid var(--team-border-strong);
    border-radius: 38px;
    background:
        radial-gradient(
            circle at 95% 10%,
            rgba(121, 242, 168, 0.18),
            transparent 22rem
        ),
        linear-gradient(
            135deg,
            #123125,
            #071510
        );
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.38);
}

.ai1-team-cta__content {
    max-width: 760px;
}

.ai1-team-cta__content h2 {
    font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.ai1-team-cta__content > p:last-child {
    margin-bottom: 0;
    color: var(--team-text-muted);
    font-size: 1rem;
}

.ai1-team-cta__actions {
    display: flex;
    min-width: 220px;
    flex-direction: column;
    gap: 13px;
}


/* ==========================================================
   15. ENTRY ANIMATIONS
========================================================== */

@keyframes ai1TeamCardEnter {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

.ai1-team-card,
.ai1-team-stat,
.ai1-team-value-card {
    animation:
        ai1TeamCardEnter 650ms both;
}

.ai1-team-card:nth-child(2),
.ai1-team-stat:nth-child(2),
.ai1-team-value-card:nth-child(2) {
    animation-delay: 90ms;
}

.ai1-team-card:nth-child(3),
.ai1-team-stat:nth-child(3),
.ai1-team-value-card:nth-child(3) {
    animation-delay: 180ms;
}

.ai1-team-card:nth-child(4),
.ai1-team-stat:nth-child(4),
.ai1-team-value-card:nth-child(4) {
    animation-delay: 270ms;
}

.ai1-team-card:nth-child(5) {
    animation-delay: 360ms;
}


/* ==========================================================
   16. TABLET RESPONSIVE STYLES
========================================================== */

@media (max-width: 1100px) {

    .ai1-team-hero__content {
        padding-right: 25vw;
    }

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

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

    .ai1-byte-card {
        grid-template-columns: 1fr 1.15fr;
    }

    .ai1-byte-card__visual {
        min-height: 470px;
        padding: 34px;
    }

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

    .ai1-team-cta__actions {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

}


/* ==========================================================
   17. MOBILE RESPONSIVE STYLES
========================================================== */

@media (max-width: 760px) {

    .ai1-team-container {
        width: min(calc(100% - 28px), var(--team-container));
    }

    .ai1-team-hero {
        min-height: auto;
        padding: 135px 0 90px;
        background-position: 64% center;
    }

    .ai1-team-hero__content {
        padding-right: 0;
    }

    .ai1-team-hero::before {
        position: absolute;
        z-index: -1;
        content: "";
        inset: 0;
        background: rgba(2, 10, 7, 0.64);
    }

    .ai1-team-hero__actions,
    .ai1-team-cta__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ai1-team-button {
        width: 100%;
    }

    .ai1-team-intro,
    .ai1-team-section,
    .ai1-team-values {
        padding: 85px 0;
    }

    .ai1-team-section-heading {
        margin-bottom: 42px;
    }

    .ai1-team-grid,
    .ai1-team-grid--featured,
    .ai1-team-stat-grid,
    .ai1-team-values__grid {
        grid-template-columns: 1fr;
    }

    .ai1-team-card__body {
        padding: 26px 23px;
    }

    .ai1-byte-card {
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .ai1-byte-card__visual {
        min-height: 370px;
        border-right: 0;
        border-bottom: 1px solid var(--team-border);
    }

    .ai1-byte-card__content {
        padding: 38px 25px 43px;
    }

    .ai1-team-cta {
        padding-bottom: 90px;
    }

    .ai1-team-cta__inner {
        gap: 34px;
        padding: 38px 24px;
        border-radius: 28px;
    }

}


/* ==========================================================
   18. SMALL MOBILE ADJUSTMENTS
========================================================== */

@media (max-width: 430px) {

    .ai1-team-page h1 {
        font-size: clamp(3rem, 17vw, 4.7rem);
    }

    .ai1-team-page h2 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .ai1-team-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }

    .ai1-team-kicker::before {
        width: 24px;
    }

    .ai1-team-card__photo {
        aspect-ratio: 1 / 1.08;
    }

    .ai1-team-photo-placeholder span {
        width: 100px;
        height: 100px;
        font-size: 1.75rem;
    }

}


/* ==========================================================
   19. REDUCED MOTION ACCESSIBILITY
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .ai1-team-page *,
    .ai1-team-page *::before,
    .ai1-team-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* ==========================================================
   20. JOOMLA TEAM PAGE LAYOUT OVERRIDES
   The template already renders this page full width. These
   rules remove any remaining article-level width restrictions.
========================================================== */

body.team-page .ai1-main,
body.team-page .ai1-main--inner,
body.team-page .com-content-article,
body.team-page .com-content-article__body,
body.team-page .item-page,
body.team-page .article-details,
body.team-page .article-details > div {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-right: 0;
    padding-left: 0;
}

body.team-page .ai1-main {
    overflow: clip;
}

body.team-page .ai1-team-page {
    left: auto;
    width: 100%;
    max-width: none;
    margin: 0;
}

body.team-page .page-header,
body.team-page .article-info,
body.team-page .icons {
    display: none;
}


/* ==========================================================
   21. AMBIENT BACKGROUND EFFECTS
========================================================== */

.ai1-team-page::before,
.ai1-team-page::after {
    position: absolute;
    z-index: 0;
    width: 650px;
    height: 650px;
    content: "";
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.13;
    pointer-events: none;
}

.ai1-team-page::before {
    top: 9%;
    left: -300px;
    background: #62d400;
    animation: ai1TeamAmbientFloat 16s ease-in-out infinite alternate;
}

.ai1-team-page::after {
    top: 46%;
    right: -320px;
    background: #40e89b;
    animation: ai1TeamAmbientFloat 19s ease-in-out infinite alternate-reverse;
}

@keyframes ai1TeamAmbientFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(0.95);
    }

    50% {
        transform: translate3d(80px, 120px, 0) scale(1.08);
    }

    100% {
        transform: translate3d(20px, 240px, 0) scale(0.98);
    }
}


/* ==========================================================
   22. ENHANCED HERO
========================================================== */

.ai1-team-hero {
    min-height: min(920px, 92vh);
    padding: 180px 0 140px;
    background-attachment: fixed;
}

.ai1-team-hero__content {
    padding-right: min(38vw, 620px);
}

.ai1-team-hero__content::before {
    position: absolute;
    z-index: -1;
    width: 540px;
    height: 540px;
    content: "";
    top: 50%;
    left: -210px;
    border: 1px solid rgba(121, 242, 168, 0.15);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow:
        0 0 80px rgba(121, 242, 168, 0.08),
        inset 0 0 70px rgba(121, 242, 168, 0.04);
    animation: ai1TeamHeroOrbit 18s linear infinite;
}

@keyframes ai1TeamHeroOrbit {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.ai1-team-hero h1 {
    text-shadow:
        0 0 22px rgba(121, 242, 168, 0.12),
        0 10px 40px rgba(0, 0, 0, 0.55);
    animation: ai1TeamHeroTitle 900ms ease both;
}

.ai1-team-hero__lead {
    animation: ai1TeamHeroCopy 900ms 140ms ease both;
}

.ai1-team-hero__text {
    animation: ai1TeamHeroCopy 900ms 240ms ease both;
}

.ai1-team-hero__actions {
    animation: ai1TeamHeroCopy 900ms 340ms ease both;
}

@keyframes ai1TeamHeroTitle {
    from {
        opacity: 0;
        transform: translateY(42px) scale(0.97);
        filter: blur(8px);
    }

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

@keyframes ai1TeamHeroCopy {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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


/* ==========================================================
   23. WIDER GRIDS AND BALANCED LAST ROWS
========================================================== */

.ai1-team-grid,
.ai1-team-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.ai1-team-stat-grid,
.ai1-team-values__grid {
    gap: 26px;
}

.ai1-team-grid > .ai1-team-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

.ai1-team-grid > .ai1-team-card:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 1 / 2;
    margin-left: calc(50% + 18px);
}

.ai1-team-grid > .ai1-team-card:last-child:nth-child(3n + 2) {
    grid-column: 2 / 3;
    margin-left: calc(50% + 18px);
}


/* ==========================================================
   24. TEAM CARD SPECIAL EFFECTS
========================================================== */

.ai1-team-card {
    isolation: isolate;
    min-height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

.ai1-team-card::before {
    position: absolute;
    z-index: 4;
    width: 55%;
    height: 160%;
    content: "";
    top: -30%;
    left: -80%;
    transform: rotate(18deg);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.075),
            transparent
        );
    transition: left 800ms ease;
    pointer-events: none;
}

.ai1-team-card:hover::before {
    left: 135%;
}

.ai1-team-card:hover {
    transform: translateY(-13px) perspective(1000px) rotateX(1.5deg);
}

.ai1-team-card__photo::after {
    position: absolute;
    content: "";
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 50%,
            rgba(4, 17, 12, 0.76) 100%
        );
    pointer-events: none;
}

.ai1-team-photo-placeholder span {
    position: relative;
    animation: ai1TeamPortraitPulse 3.8s ease-in-out infinite;
}

.ai1-team-photo-placeholder span::before {
    position: absolute;
    z-index: -1;
    content: "";
    inset: -15px;
    border: 1px solid rgba(121, 242, 168, 0.18);
    border-radius: 50%;
    animation: ai1TeamPortraitRing 3.8s ease-out infinite;
}

@keyframes ai1TeamPortraitPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 35px rgba(121, 242, 168, 0.11);
    }

    50% {
        transform: scale(1.045);
        box-shadow: 0 0 58px rgba(121, 242, 168, 0.26);
    }
}

@keyframes ai1TeamPortraitRing {
    0% {
        opacity: 0.75;
        transform: scale(0.92);
    }

    80%,
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}


/* ==========================================================
   25. DEPARTMENT STATUS INDICATORS
========================================================== */

.ai1-team-card__department {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
}

.ai1-team-card__department::before {
    width: 7px;
    height: 7px;
    content: "";
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--team-green);
    box-shadow:
        0 0 0 5px rgba(121, 242, 168, 0.08),
        0 0 18px rgba(121, 242, 168, 0.42);
    animation: ai1TeamStatusPulse 2.4s ease-in-out infinite;
}

@keyframes ai1TeamStatusPulse {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(0.88);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}


/* ==========================================================
   26. SKILL TAG EFFECTS
========================================================== */

.ai1-team-card__skills li {
    transition:
        color 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        transform 220ms ease,
        box-shadow 220ms ease;
}

.ai1-team-card__skills li:hover {
    color: #ffffff;
    border-color: rgba(121, 242, 168, 0.5);
    background: rgba(121, 242, 168, 0.11);
    transform: translateY(-3px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.22),
        0 0 18px rgba(121, 242, 168, 0.1);
}


/* ==========================================================
   27. STAT CARD EFFECTS
========================================================== */

.ai1-team-stat {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ai1-team-stat strong {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 26px rgba(121, 242, 168, 0.22);
    transition:
        transform 300ms ease,
        text-shadow 300ms ease;
}

.ai1-team-stat:hover strong {
    transform: scale(1.09);
    text-shadow: 0 0 42px rgba(121, 242, 168, 0.48);
}

.ai1-team-stat::after {
    position: absolute;
    content: "";
    inset: 1px;
    border-radius: inherit;
    background:
        linear-gradient(
            120deg,
            transparent 10%,
            rgba(121, 242, 168, 0.05) 50%,
            transparent 90%
        );
    transform: translateX(-120%);
    transition: transform 800ms ease;
}

.ai1-team-stat:hover::after {
    transform: translateX(120%);
}


/* ==========================================================
   28. BYTE SPECIAL EFFECTS
========================================================== */

.ai1-byte-card {
    position: relative;
    isolation: isolate;
}

.ai1-byte-card::before {
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    content: "";
    top: 50%;
    left: 20%;
    border-radius: 50%;
    background: rgba(91, 255, 153, 0.14);
    filter: blur(90px);
    transform: translate(-50%, -50%);
    animation: ai1ByteGlow 4s ease-in-out infinite;
}

@keyframes ai1ByteGlow {
    0%,
    100% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.9);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.ai1-byte-placeholder {
    animation: ai1ByteFloat 4.5s ease-in-out infinite;
}

@keyframes ai1ByteFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-18px) rotate(1deg);
    }
}

.ai1-byte-card__bubble {
    animation: ai1ByteBubblePulse 3.5s ease-in-out infinite;
}

@keyframes ai1ByteBubblePulse {
    0%,
    100% {
        border-color: rgba(121, 242, 168, 0.3);
        box-shadow: none;
    }

    50% {
        border-color: rgba(121, 242, 168, 0.58);
        box-shadow: 0 0 28px rgba(121, 242, 168, 0.09);
    }
}


/* ==========================================================
   29. VALUE CARD EFFECTS
========================================================== */

.ai1-team-value-card::before {
    position: absolute;
    width: 100px;
    height: 100px;
    content: "";
    top: -60px;
    right: -55px;
    border-radius: 50%;
    background: var(--team-green);
    filter: blur(45px);
    opacity: 0;
    transition:
        opacity 350ms ease,
        transform 350ms ease;
}

.ai1-team-value-card:hover::before {
    opacity: 0.13;
    transform: scale(1.4);
}

.ai1-team-value-card__number {
    transition:
        transform 280ms ease,
        text-shadow 280ms ease;
}

.ai1-team-value-card:hover .ai1-team-value-card__number {
    transform: translateX(8px);
    text-shadow: 0 0 20px rgba(121, 242, 168, 0.42);
}


/* ==========================================================
   30. CTA GLOW AND SWEEP EFFECTS
========================================================== */

.ai1-team-cta__inner {
    position: relative;
    overflow: hidden;
}

.ai1-team-cta__inner::before {
    position: absolute;
    width: 420px;
    height: 420px;
    content: "";
    top: -280px;
    right: -160px;
    border-radius: 50%;
    background: rgba(121, 242, 168, 0.18);
    filter: blur(60px);
    animation: ai1TeamCtaGlow 6s ease-in-out infinite alternate;
}

.ai1-team-cta__inner::after {
    position: absolute;
    width: 34%;
    height: 200%;
    content: "";
    top: -50%;
    left: -50%;
    transform: rotate(20deg);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.045),
            transparent
        );
    animation: ai1TeamCtaSweep 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ai1TeamCtaGlow {
    from {
        transform: translate(0, 0) scale(0.9);
    }

    to {
        transform: translate(-100px, 90px) scale(1.25);
    }
}

@keyframes ai1TeamCtaSweep {
    0%,
    30% {
        left: -50%;
    }

    70%,
    100% {
        left: 130%;
    }
}

.ai1-team-cta__content,
.ai1-team-cta__actions {
    position: relative;
    z-index: 2;
}


/* ==========================================================
   31. LARGE DESKTOP ENHANCEMENTS
========================================================== */

@media (min-width: 1500px) {

    .ai1-team-grid,
    .ai1-team-grid--featured {
        gap: 38px;
    }

    .ai1-team-card__body {
        padding: 34px;
    }

    .ai1-team-card__bio {
        font-size: 1rem;
    }

    .ai1-team-section-heading {
        max-width: 920px;
    }

}


/* ==========================================================
   32. TABLET CORRECTIONS
========================================================== */

@media (max-width: 1100px) {

    .ai1-team-container {
        width: min(calc(100% - 48px), var(--team-container));
    }

    .ai1-team-hero {
        background-attachment: scroll;
    }

    .ai1-team-hero__content {
        padding-right: 20vw;
    }

    .ai1-team-grid > .ai1-team-card,
    .ai1-team-grid > .ai1-team-card:last-child,
    .ai1-team-grid > .ai1-team-card:nth-last-child(2) {
        grid-column: auto;
        margin-left: 0;
    }

}


/* ==========================================================
   33. MOBILE CORRECTIONS
========================================================== */

@media (max-width: 760px) {

    .ai1-team-container {
        width: min(calc(100% - 28px), var(--team-container));
    }

    .ai1-team-hero {
        padding: 135px 0 90px;
        background-attachment: scroll;
    }

    .ai1-team-page::before,
    .ai1-team-page::after {
        width: 380px;
        height: 380px;
        filter: blur(90px);
    }

}


/* ==========================================================
   34. ENHANCED REDUCED-MOTION SUPPORT
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .ai1-team-page::before,
    .ai1-team-page::after,
    .ai1-team-hero__content::before,
    .ai1-team-photo-placeholder span,
    .ai1-team-photo-placeholder span::before,
    .ai1-team-card__department::before,
    .ai1-byte-card::before,
    .ai1-byte-placeholder,
    .ai1-byte-card__bubble,
    .ai1-team-cta__inner::before,
    .ai1-team-cta__inner::after {
        animation: none !important;
    }

}

/* ==========================================================================
   35. HOMEPAGE VISUAL ALIGNMENT
   Matches the Meet the Team page to the established AI1Group homepage.
========================================================================== */

.ai1-team-page {
    --team-bg: #020504;
    --team-bg-soft: #07100b;
    --team-bg-card: rgba(11, 23, 16, 0.94);
    --team-bg-card-hover: rgba(16, 29, 21, 0.98);
    --team-green: #73d600;
    --team-green-bright: #9cff22;
    --team-green-dark: #3e8700;
    --team-green-glow: rgba(115, 214, 0, 0.28);
    --team-cyan: #f0d59a;
    --team-white: #f7faf7;
    --team-text: #dbe6de;
    --team-text-muted: #91a297;
    --team-border: rgba(156, 255, 34, 0.15);
    --team-border-strong: rgba(156, 255, 34, 0.34);
    background: var(--team-bg);
    font-family: "Comfortaa", system-ui, sans-serif;
}

.ai1-team-page h1,
.ai1-team-page h2,
.ai1-team-page h3,
.ai1-team-page p,
.ai1-team-page a,
.ai1-team-page span,
.ai1-team-page small,
.ai1-team-page li {
    font-family: "Comfortaa", system-ui, sans-serif;
}

.ai1-team-page h1,
.ai1-team-page h2,
.ai1-team-page h3 {
    font-weight: 500;
    letter-spacing: -0.045em;
}

.ai1-team-page h2 {
    font-size: clamp(3rem, 5vw, 5.15rem);
    line-height: 1.02;
}

.ai1-team-container {
    width: min(calc(100% - 80px), 1480px);
}

.ai1-team-kicker {
    gap: 18px;
    margin: 0 0 26px;
    color: #aab6ad;
    font-size: clamp(1rem, 1.15vw, 1.18rem);
    font-weight: 600;
    letter-spacing: 0.16em;
}

.ai1-team-kicker::before {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, #9cff22 0%, #73d600 58%, rgba(156, 255, 34, 0.08) 100%);
    box-shadow: 0 0 12px rgba(156, 255, 34, 0.55), 0 0 28px rgba(115, 214, 0, 0.22);
    animation: ai1TeamMatchedKicker 2.35s ease-in-out infinite;
}

@keyframes ai1TeamMatchedKicker {
    0%, 100% { opacity: 0.68; transform: scaleX(0.86); transform-origin: left; }
    50% { opacity: 1; transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   35.1 HERO — same cinematic language as the homepage
-------------------------------------------------------------------------- */

.ai1-team-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: min(940px, 100svh);
    align-items: center;
    overflow: hidden;
    padding: clamp(120px, 14vh, 180px) 0 clamp(90px, 11vh, 140px);
    background: #010302;
}

.ai1-team-hero__background-video {
    position: absolute;
    inset: 0;
    z-index: -4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.48) saturate(0.9) contrast(1.06);
}

.ai1-team-hero__veil {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(0, 4, 2, 0.94) 0%, rgba(0, 4, 2, 0.84) 44%, rgba(0, 4, 2, 0.44) 75%, rgba(0, 4, 2, 0.72) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 5, 2, 0.78));
}

.ai1-team-hero__mesh {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.26;
    background-image: radial-gradient(circle at center, rgba(156, 255, 34, 0.35) 1px, transparent 1.8px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, #000, transparent 58%);
}

.ai1-team-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: clamp(50px, 8vw, 110px);
    align-items: center;
}

.ai1-team-hero__content {
    max-width: 760px;
    padding: 0;
}

.ai1-team-hero h1 {
    max-width: 920px;
    margin: 0;
    color: var(--team-white);
    font-size: clamp(3.7rem, 6.7vw, 7.25rem);
    line-height: 0.97;
    font-weight: 500;
    letter-spacing: -0.055em;
}

.ai1-team-hero h1 span {
    color: var(--team-green-bright);
}

.ai1-team-hero__lead {
    max-width: 690px;
    margin: 26px 0 0;
    color: #d9e3dc;
    font-size: clamp(1.12rem, 1.45vw, 1.34rem);
    line-height: 1.65;
}

.ai1-team-hero__text {
    max-width: 690px;
    margin: 18px 0 0;
    color: #9dadA3;
    font-size: 1rem;
    line-height: 1.8;
}

.ai1-team-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.ai1-team-button {
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
}

.ai1-team-button--primary {
    color: #061006;
    background: linear-gradient(135deg, var(--team-green-bright), var(--team-green-dark));
    box-shadow: 0 14px 34px rgba(115, 214, 0, 0.24);
}

.ai1-team-button--secondary {
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(12px);
}

.ai1-team-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 30px;
    color: #93a197;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai1-team-hero__trust span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai1-team-hero__trust i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--team-green-bright);
    box-shadow: 0 0 12px rgba(156, 255, 34, 0.7);
}

/* --------------------------------------------------------------------------
   35.2 HERO STAGE CARD
-------------------------------------------------------------------------- */

.ai1-team-hero__stage {
    position: relative;
}

.ai1-team-hero__orbit {
    position: absolute;
    inset: -10%;
    pointer-events: none;
}

.ai1-team-hero__orbit-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(156, 255, 34, 0.12);
    border-radius: 50%;
    animation: ai1TeamMatchedSpin 26s linear infinite;
}

.ai1-team-hero__orbit-ring--two {
    inset: 11%;
    border-style: dashed;
    animation-direction: reverse;
    animation-duration: 19s;
}

.ai1-team-hero__orbit-ring--three {
    inset: 23%;
    border-color: rgba(240, 213, 154, 0.12);
    animation-duration: 32s;
}

@keyframes ai1TeamMatchedSpin { to { transform: rotate(360deg); } }

.ai1-team-hero-card {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 3px solid rgba(145, 255, 25, 0.48);
    border-radius: 36px;
    background: linear-gradient(145deg, rgba(5, 18, 9, 0.95), rgba(1, 7, 4, 0.93));
    box-shadow: 0 38px 100px rgba(0, 0, 0, 0.62), 0 0 70px rgba(145, 255, 25, 0.12), inset 0 0 46px rgba(145, 255, 25, 0.035);
    backdrop-filter: blur(22px);
}

.ai1-team-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 10%, rgba(156, 255, 34, 0.1), transparent 38%);
}

.ai1-team-hero-card__head {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--team-text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.ai1-team-hero-card__head b {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--team-green-bright);
}

.ai1-team-hero-card__head i,
.ai1-team-hero-card__departments i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.ai1-team-hero-card__core {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    align-items: center;
    padding: 30px 26px 20px;
}

.ai1-team-hero-card__byte {
    position: relative;
    display: grid;
    width: 145px;
    height: 145px;
    place-items: center;
}

.ai1-team-hero-card__byte-ring {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(145, 255, 25, 0.32);
    border-radius: 50%;
    animation: ai1TeamMatchedSpin 14s linear infinite;
}

.ai1-team-hero-card__byte video {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
}

.ai1-team-hero-card__core p {
    margin: 0 0 7px;
    color: var(--team-green-bright);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.ai1-team-hero-card__core h2 {
    margin: 0 0 5px;
    font-size: clamp(2rem, 3vw, 3.2rem);
}

.ai1-team-hero-card__core span {
    color: var(--team-muted, #91a297);
    font-size: 0.88rem;
}

.ai1-team-hero-card__metrics {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 20px 20px;
}

.ai1-team-hero-card__metrics span {
    padding: 15px 10px;
    border: 1px solid rgba(145, 255, 25, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
}

.ai1-team-hero-card__metrics b {
    display: block;
    color: var(--team-green-bright);
    font-size: 1.35rem;
}

.ai1-team-hero-card__metrics small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.64rem;
}

.ai1-team-hero-card__departments {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.ai1-team-hero-card__departments > span {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 20px;
    color: var(--team-green-bright);
    background: rgba(4, 10, 6, 0.96);
}

.ai1-team-hero-card__departments b {
    color: #fff;
    font-size: 0.88rem;
}

.ai1-team-hero-card__departments small {
    color: var(--team-text-muted);
    font-size: 0.7rem;
}

.ai1-team-hero-card__speech {
    position: relative;
    z-index: 2;
    margin: 18px 20px 20px;
    padding: 16px 18px;
    border: 1px solid rgba(145, 255, 25, 0.16);
    border-radius: 18px;
    background: rgba(145, 255, 25, 0.045);
}

.ai1-team-hero-card__speech strong {
    color: var(--team-green-bright);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
}

.ai1-team-hero-card__speech p {
    margin: 7px 0 0;
    color: #becac1;
    font-size: 0.86rem;
    line-height: 1.6;
}

.ai1-team-hero__scroll {
    position: absolute;
    right: 4vw;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #98a59d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
}

.ai1-team-hero__scroll i {
    width: 2px;
    height: 48px;
    background: linear-gradient(var(--team-green-bright), transparent);
    animation: ai1TeamMatchedScroll 1.7s ease-in-out infinite;
}

@keyframes ai1TeamMatchedScroll {
    0%, 100% { transform: scaleY(0.35); transform-origin: top; }
    50% { transform: scaleY(1); }
}

/* --------------------------------------------------------------------------
   35.3 PAGE SECTIONS AND CARDS
-------------------------------------------------------------------------- */

.ai1-team-intro,
.ai1-team-section,
.ai1-team-values {
    padding: clamp(88px, 10vw, 150px) 0;
}

.ai1-team-section--alternate {
    background:
        linear-gradient(115deg, rgba(2, 8, 4, 0.94), rgba(5, 18, 10, 0.88)),
        url("/templates/ai1group/images/backgrounds/brands.jpg") center / cover fixed;
}

.ai1-team-section-heading {
    max-width: 880px;
    margin-bottom: clamp(46px, 7vw, 84px);
}

.ai1-team-section-heading > p:last-child {
    max-width: 700px;
    color: var(--team-text-muted);
    font-size: 1.08rem;
}

.ai1-team-card,
.ai1-team-stat,
.ai1-team-value-card,
.ai1-byte-card,
.ai1-team-cta__inner {
    border-color: rgba(156, 255, 34, 0.15);
    background: linear-gradient(180deg, rgba(11, 24, 16, 0.96), rgba(5, 13, 8, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.ai1-team-card {
    border-radius: 30px;
}

.ai1-team-card:hover,
.ai1-team-stat:hover,
.ai1-team-value-card:hover {
    border-color: rgba(156, 255, 34, 0.38);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.48), 0 0 36px rgba(115, 214, 0, 0.08);
}

.ai1-team-card__department,
.ai1-team-card__skills li,
.ai1-team-card__status,
.ai1-team-value-card__number {
    color: var(--team-green-bright);
}

.ai1-team-card__role,
.ai1-byte-card__role {
    color: var(--team-gold, #f0d59a);
}

.ai1-team-card__quote {
    border-left-color: var(--team-green-bright);
    background: rgba(156, 255, 34, 0.055);
}

.ai1-team-stat strong {
    color: var(--team-green-bright);
}

.ai1-team-section--byte {
    background:
        radial-gradient(circle at 28% 50%, rgba(115, 214, 0, 0.13), transparent 25rem),
        #07100b;
}

/* --------------------------------------------------------------------------
   35.4 RESPONSIVE ALIGNMENT
-------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .ai1-team-hero__layout {
        grid-template-columns: 1fr 0.82fr;
        gap: 46px;
    }

    .ai1-team-hero-card__core {
        grid-template-columns: 105px 1fr;
    }

    .ai1-team-hero-card__byte {
        width: 100px;
        height: 100px;
    }

    .ai1-team-hero-card__byte video {
        width: 82px;
        height: 82px;
    }
}

@media (max-width: 820px) {
    .ai1-team-hero {
        min-height: auto;
    }

    .ai1-team-hero__layout {
        grid-template-columns: 1fr;
    }

    .ai1-team-hero__stage {
        max-width: 620px;
    }

    .ai1-team-hero__scroll {
        display: none;
    }

    .ai1-team-section--alternate {
        background-attachment: scroll;
    }
}

@media (max-width: 600px) {
    .ai1-team-container {
        width: min(calc(100% - 28px), 1480px);
    }

    .ai1-team-hero h1 {
        font-size: clamp(3rem, 14vw, 4.8rem);
        line-height: 1;
    }

    .ai1-team-hero__actions {
        display: grid;
    }

    .ai1-team-button {
        width: 100%;
    }

    .ai1-team-hero-card__core {
        grid-template-columns: 88px 1fr;
        padding: 22px 18px 18px;
    }

    .ai1-team-hero-card__byte {
        width: 82px;
        height: 82px;
    }

    .ai1-team-hero-card__byte video {
        width: 68px;
        height: 68px;
    }

    .ai1-team-hero-card__metrics {
        grid-template-columns: 1fr;
    }

    .ai1-team-hero-card__departments > span {
        grid-template-columns: 18px 1fr;
    }

    .ai1-team-hero-card__departments small {
        display: none;
    }

    .ai1-team-kicker {
        gap: 12px;
        font-size: 0.9rem;
        letter-spacing: 0.13em;
    }

    .ai1-team-kicker::before {
        width: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai1-team-hero__orbit-ring,
    .ai1-team-hero__scroll i,
    .ai1-team-hero-card__byte-ring,
    .ai1-team-kicker::before {
        animation: none !important;
    }
}

/* ==========================================================================
   36. FINAL MEET THE TEAM CORRECTIONS
   Restores the homepage-matched hero and applies the requested motion,
   equal-height cards, animated statistics and navigation alignment.
========================================================================== */

/* Remove Joomla/template spacing so the hero meets the navigation. */
body.team-page .ai1-main,
body.team-page .ai1-main--inner,
body.team-page main#ai1-main-content,
body.team-page .com-content-article,
body.team-page .com-content-article__body,
body.team-page .item-page,
body.team-page .article-details,
body.team-page .article-details > div {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}

body.team-page .ai1-main,
body.team-page .ai1-main--inner {
    overflow: clip;
}

body.team-page .ai1-team-page,
body.team-page .ai1-team-hero {
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-top: 0 !important;
}

body.team-page .page-header,
body.team-page .article-info,
body.team-page .icons {
    display: none !important;
}

/* All luminous green primary buttons use black copy in every state. */
.ai1-team-page .ai1-team-button--primary,
.ai1-team-page .ai1-team-button--primary:link,
.ai1-team-page .ai1-team-button--primary:visited,
.ai1-team-page .ai1-team-button--primary:hover,
.ai1-team-page .ai1-team-button--primary:focus,
.ai1-team-page .ai1-team-button--primary:focus-visible,
.ai1-team-page .ai1-team-button--primary:active {
    color: #050805 !important;
}

/* Reusable reveal system, matching the homepage behaviour. */
.ai1-team-page .ai1-reveal {
    opacity: 0;
    filter: blur(7px);
    transition:
        opacity .8s ease,
        transform .9s cubic-bezier(.2,.7,.2,1),
        filter .9s ease;
    transition-delay: var(--ai1-reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.ai1-team-page .ai1-reveal[data-ai1-reveal="left"] {
    transform: translateX(-64px);
}

.ai1-team-page .ai1-reveal[data-ai1-reveal="right"] {
    transform: translateX(64px);
}

.ai1-team-page .ai1-reveal[data-ai1-reveal="up"] {
    transform: translateY(48px);
}

.ai1-team-page .ai1-reveal.is-revealed {
    opacity: 1;
    filter: none;
    transform: none;
}

/* Equal-width, equal-height employee cards with balanced incomplete rows. */
.ai1-team-page .ai1-team-grid,
.ai1-team-page .ai1-team-grid--featured {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 36px;
}

.ai1-team-page .ai1-team-grid > .ai1-team-card,
.ai1-team-page .ai1-team-grid--featured > .ai1-team-card {
    grid-column: span 2;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
}

/* Centre a final row containing two cards without making either narrower. */
.ai1-team-page .ai1-team-grid > .ai1-team-card:nth-last-child(2):nth-child(3n + 1),
.ai1-team-page .ai1-team-grid--featured > .ai1-team-card:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2 / span 2;
}

.ai1-team-page .ai1-team-grid > .ai1-team-card:last-child:nth-child(3n + 2),
.ai1-team-page .ai1-team-grid--featured > .ai1-team-card:last-child:nth-child(3n + 2) {
    grid-column: 4 / span 2;
}

/* Centre a final row containing one card. */
.ai1-team-page .ai1-team-grid > .ai1-team-card:last-child:nth-child(3n + 1),
.ai1-team-page .ai1-team-grid--featured > .ai1-team-card:last-child:nth-child(3n + 1) {
    grid-column: 3 / span 2;
}

.ai1-team-page .ai1-team-card__photo {
    flex: 0 0 auto;
    aspect-ratio: 4 / 4.15;
}

.ai1-team-page .ai1-team-card__body {
    flex: 1 1 auto;
}

/* Counter animation polish. */
.ai1-team-page .ai1-stat-number,
.ai1-team-page .ai1-stat-special {
    display: inline-block;
    transform-origin: center;
}

.ai1-team-page .ai1-stat-number.is-counting {
    animation: ai1TeamNumberPulse .42s ease both;
}

.ai1-team-page .ai1-stat-special {
    opacity: 0;
    transform: translateY(12px) scale(.84);
    filter: blur(5px);
    transition: opacity .65s ease, transform .7s cubic-bezier(.2,.75,.2,1), filter .65s ease;
}

.ai1-team-page .ai1-stat-special.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

@keyframes ai1TeamNumberPulse {
    0% { transform: scale(.9); opacity: .72; }
    65% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

/* Subtle movement and shine without turning the page into Blackpool illuminations. */
.ai1-team-page .ai1-team-card,
.ai1-team-page .ai1-team-stat,
.ai1-team-page .ai1-team-value-card,
.ai1-team-page .ai1-byte-card,
.ai1-team-page .ai1-team-cta__inner {
    transition:
        transform .42s cubic-bezier(.2,.75,.2,1),
        border-color .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

.ai1-team-page .ai1-team-card:hover,
.ai1-team-page .ai1-team-stat:hover,
.ai1-team-page .ai1-team-value-card:hover,
.ai1-team-page .ai1-byte-card:hover {
    transform: translateY(-10px);
}

/* Desktop/tablet/mobile grid resets. */
@media (max-width: 1100px) {
    .ai1-team-page .ai1-team-grid,
    .ai1-team-page .ai1-team-grid--featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai1-team-page .ai1-team-grid > .ai1-team-card,
    .ai1-team-page .ai1-team-grid--featured > .ai1-team-card,
    .ai1-team-page .ai1-team-grid > .ai1-team-card:last-child,
    .ai1-team-page .ai1-team-grid--featured > .ai1-team-card:last-child,
    .ai1-team-page .ai1-team-grid > .ai1-team-card:nth-last-child(2),
    .ai1-team-page .ai1-team-grid--featured > .ai1-team-card:nth-last-child(2) {
        grid-column: auto;
        margin: 0;
    }
}

@media (max-width: 760px) {
    body.team-page .ai1-team-page {
        left: auto !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .ai1-team-page .ai1-team-grid,
    .ai1-team-page .ai1-team-grid--featured {
        grid-template-columns: 1fr;
    }

    .ai1-team-page .ai1-team-grid > .ai1-team-card,
    .ai1-team-page .ai1-team-grid--featured > .ai1-team-card {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai1-team-page .ai1-reveal,
    .ai1-team-page .ai1-stat-special {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }

    .ai1-team-page .ai1-stat-number.is-counting {
        animation: none !important;
    }
}

/* ==========================================================================
   37. PREMIUM TEAM SHOWCASE MOTION
   Alternating scroll reveals, centred incomplete rows and interactive polish.
========================================================================== */

/* Remove the old one-shot entrance animation so IntersectionObserver owns motion. */
.ai1-team-page .ai1-team-card,
.ai1-team-page .ai1-team-stat,
.ai1-team-page .ai1-team-value-card {
    animation: none !important;
}

/* Six-track desktop grid keeps every employee card the same width. */
.ai1-team-page .ai1-team-grid,
.ai1-team-page .ai1-team-grid--featured {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: 1fr;
    justify-content: center;
    align-items: stretch;
    gap: clamp(24px, 2.2vw, 38px);
}

.ai1-team-page .ai1-team-grid > .ai1-team-card,
.ai1-team-page .ai1-team-grid--featured > .ai1-team-card {
    grid-column: span 2;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
}

/* Two cards on the final row: both stay full-width and sit centrally. */
.ai1-team-page .ai1-team-grid > .ai1-team-card:nth-last-child(2):nth-child(3n + 1),
.ai1-team-page .ai1-team-grid--featured > .ai1-team-card:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2 / span 2;
}

.ai1-team-page .ai1-team-grid > .ai1-team-card:last-child:nth-child(3n + 2),
.ai1-team-page .ai1-team-grid--featured > .ai1-team-card:last-child:nth-child(3n + 2) {
    grid-column: 4 / span 2;
}

/* One card on the final row: true centre. */
.ai1-team-page .ai1-team-grid > .ai1-team-card:last-child:nth-child(3n + 1),
.ai1-team-page .ai1-team-grid--featured > .ai1-team-card:last-child:nth-child(3n + 1) {
    grid-column: 3 / span 2;
}

/* Equalise all internal card geometry. */
.ai1-team-page .ai1-team-card {
    --team-tilt-x: 0deg;
    --team-tilt-y: 0deg;
    --team-card-lift: 0px;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    contain: layout paint;
}

.ai1-team-page .ai1-team-card__photo {
    flex: 0 0 auto;
    min-height: 0;
    aspect-ratio: 4 / 4.15;
}

.ai1-team-page .ai1-team-card__body {
    display: flex;
    flex: 1 1 auto;
    height: auto;
    flex-direction: column;
}

.ai1-team-page .ai1-team-card__skills {
    margin-top: auto;
}

/* Scroll reveal: alternating horizontal movement with depth. */
.ai1-team-page .ai1-team-card.ai1-reveal {
    opacity: 0;
    filter: blur(9px) saturate(.8);
    transition:
        opacity .78s ease,
        transform .92s cubic-bezier(.16, .75, .2, 1),
        filter .82s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.ai1-team-page .ai1-team-card.ai1-reveal[data-ai1-reveal="left"] {
    transform: perspective(1200px) translate3d(-92px, 24px, 0) rotateY(5deg) scale(.965);
}

.ai1-team-page .ai1-team-card.ai1-reveal[data-ai1-reveal="right"] {
    transform: perspective(1200px) translate3d(92px, 24px, 0) rotateY(-5deg) scale(.965);
}

.ai1-team-page .ai1-team-card.ai1-reveal.is-revealed {
    opacity: 1;
    filter: none;
    transform:
        perspective(1200px)
        translate3d(0, var(--team-card-lift), 0)
        rotateX(var(--team-tilt-x))
        rotateY(var(--team-tilt-y))
        scale(1);
}

/* Premium hover/spotlight treatment. */
.ai1-team-page .ai1-team-card::before {
    z-index: 6;
    width: 38%;
    height: 180%;
    top: -40%;
    left: -60%;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    transform: skewX(-18deg);
    transition: left .85s ease, opacity .3s ease;
}

.ai1-team-page .ai1-team-card::after {
    width: 240px;
    height: 240px;
    right: -120px;
    bottom: -130px;
    opacity: .08;
    transition: opacity .35s ease, transform .5s ease;
}

.ai1-team-page .ai1-team-card.is-revealed:hover {
    --team-card-lift: -14px;
    border-color: rgba(156,255,34,.46);
    box-shadow:
        0 42px 100px rgba(0,0,0,.5),
        0 0 48px rgba(115,214,0,.12),
        inset 0 0 36px rgba(156,255,34,.025);
}

.ai1-team-page .ai1-team-card:hover::before {
    left: 125%;
    opacity: 1;
}

.ai1-team-page .ai1-team-card:hover::after {
    opacity: .22;
    transform: scale(1.18);
}

/* Photograph and initials animation. */
.ai1-team-page .ai1-team-card__photo {
    isolation: isolate;
}

.ai1-team-page .ai1-team-card__photo::before {
    position: absolute;
    z-index: 3;
    content: "";
    inset: 0;
    border: 1px solid transparent;
    background:
        linear-gradient(135deg, rgba(156,255,34,.16), transparent 38%, rgba(240,213,154,.08)) border-box;
    mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.ai1-team-page .ai1-team-photo-placeholder {
    position: relative;
    overflow: hidden;
}

.ai1-team-page .ai1-team-photo-placeholder::after {
    position: absolute;
    content: "";
    width: 110%;
    height: 2px;
    left: -5%;
    top: -8%;
    background: linear-gradient(90deg, transparent, rgba(156,255,34,.8), transparent);
    box-shadow: 0 0 18px rgba(156,255,34,.48);
    animation: ai1TeamPortraitScan 4.8s ease-in-out infinite;
}

.ai1-team-page .ai1-team-card:nth-child(2n) .ai1-team-photo-placeholder::after {
    animation-delay: -2.4s;
}

.ai1-team-page .ai1-team-photo-placeholder span {
    transition: transform .45s cubic-bezier(.2,.75,.2,1), box-shadow .45s ease;
}

.ai1-team-page .ai1-team-card:hover .ai1-team-photo-placeholder span {
    transform: translateZ(28px) scale(1.08) rotate(-2deg);
    box-shadow: 0 0 68px rgba(156,255,34,.32);
}

@keyframes ai1TeamPortraitScan {
    0%, 18% { top: -8%; opacity: 0; }
    30% { opacity: 1; }
    76% { opacity: .9; }
    88%, 100% { top: 108%; opacity: 0; }
}

/* Stagger skill chips on hover. */
.ai1-team-page .ai1-team-card__skills li {
    transform: translateY(0);
    transition:
        transform .28s ease,
        color .25s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.ai1-team-page .ai1-team-card:hover .ai1-team-card__skills li {
    transform: translateY(-3px);
    border-color: rgba(156,255,34,.32);
    background: rgba(156,255,34,.075);
}

.ai1-team-page .ai1-team-card:hover .ai1-team-card__skills li:nth-child(2) { transition-delay: 45ms; }
.ai1-team-page .ai1-team-card:hover .ai1-team-card__skills li:nth-child(3) { transition-delay: 90ms; }
.ai1-team-page .ai1-team-card:hover .ai1-team-card__skills li:nth-child(4) { transition-delay: 135ms; }

/* Department light and quote pulse. */
.ai1-team-page .ai1-team-card__department::before {
    animation-duration: 1.8s;
}

.ai1-team-page .ai1-team-card__quote {
    position: relative;
    overflow: hidden;
}

.ai1-team-page .ai1-team-card__quote::after {
    position: absolute;
    content: "";
    inset: 0 auto 0 -30%;
    width: 18%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.075), transparent);
    transform: skewX(-18deg);
    animation: ai1TeamQuoteSweep 6s ease-in-out infinite;
}

@keyframes ai1TeamQuoteSweep {
    0%, 58% { left: -30%; opacity: 0; }
    68% { opacity: 1; }
    100% { left: 125%; opacity: 0; }
}

/* Statistics animate and glow whenever re-entering view. */
.ai1-team-page .ai1-team-stat.ai1-reveal.is-revealed {
    animation: ai1TeamStatArrival .72s cubic-bezier(.2,.78,.2,1) both;
}

.ai1-team-page .ai1-team-stat strong {
    position: relative;
}

.ai1-team-page .ai1-team-stat strong::after {
    position: absolute;
    content: "";
    width: 68px;
    height: 68px;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(156,255,34,.2);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%,-50%) scale(.5);
}

.ai1-team-page .ai1-team-stat.is-revealed strong::after {
    animation: ai1TeamStatRing 1.2s .45s ease-out both;
}

@keyframes ai1TeamStatArrival {
    0% { transform: translateY(36px) scale(.94); }
    65% { transform: translateY(-5px) scale(1.015); }
    100% { transform: none; }
}

@keyframes ai1TeamStatRing {
    0% { opacity: .75; transform: translate(-50%,-50%) scale(.55); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(1.65); }
}

/* Section headings get a small tracking reveal. */
.ai1-team-page .ai1-team-section-heading.ai1-reveal h2 {
    transition: letter-spacing .9s cubic-bezier(.2,.75,.2,1), text-shadow .9s ease;
}

.ai1-team-page .ai1-team-section-heading.ai1-reveal:not(.is-revealed) h2 {
    letter-spacing: -.075em;
}

.ai1-team-page .ai1-team-section-heading.ai1-reveal.is-revealed h2 {
    text-shadow: 0 0 34px rgba(156,255,34,.06);
}

/* Buttons: black text on green, moving sheen, gentle magnetic translation. */
.ai1-team-page .ai1-team-button {
    --button-x: 0px;
    --button-y: 0px;
    position: relative;
    overflow: hidden;
    transform: translate(var(--button-x), var(--button-y));
}

.ai1-team-page .ai1-team-button::after {
    position: absolute;
    content: "";
    top: -50%;
    bottom: -50%;
    left: -38%;
    width: 24%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent);
    transform: skewX(-18deg);
    transition: left .7s ease;
    pointer-events: none;
}

.ai1-team-page .ai1-team-button:hover::after {
    left: 125%;
}

.ai1-team-page .ai1-team-button--primary,
.ai1-team-page .ai1-team-button--primary:link,
.ai1-team-page .ai1-team-button--primary:visited,
.ai1-team-page .ai1-team-button--primary:hover,
.ai1-team-page .ai1-team-button--primary:focus-visible,
.ai1-team-page .ai1-team-button--primary:active {
    color: #030603 !important;
}

/* Byte and CTA showcase motion. */
.ai1-team-page .ai1-byte-card.is-revealed .ai1-byte-video,
.ai1-team-page .ai1-byte-card.is-revealed .ai1-byte-placeholder {
    animation: ai1TeamByteHover 4.4s ease-in-out infinite;
}

.ai1-team-page .ai1-byte-card__bubble {
    animation: ai1TeamByteBubble 3.4s ease-in-out infinite;
}

.ai1-team-page .ai1-team-cta__inner.is-revealed {
    animation: ai1TeamCtaSettle .9s cubic-bezier(.2,.78,.2,1) both;
}

@keyframes ai1TeamByteHover {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes ai1TeamByteBubble {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 0 rgba(156,255,34,0); }
    50% { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(0,0,0,.22), 0 0 30px rgba(156,255,34,.07); }
}

@keyframes ai1TeamCtaSettle {
    0% { transform: translateY(42px) scale(.97); }
    70% { transform: translateY(-5px) scale(1.008); }
    100% { transform: none; }
}

/* Responsive resets. */
@media (max-width: 1100px) {
    .ai1-team-page .ai1-team-grid,
    .ai1-team-page .ai1-team-grid--featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai1-team-page .ai1-team-grid > .ai1-team-card,
    .ai1-team-page .ai1-team-grid--featured > .ai1-team-card,
    .ai1-team-page .ai1-team-grid > .ai1-team-card:last-child,
    .ai1-team-page .ai1-team-grid--featured > .ai1-team-card:last-child,
    .ai1-team-page .ai1-team-grid > .ai1-team-card:nth-last-child(2),
    .ai1-team-page .ai1-team-grid--featured > .ai1-team-card:nth-last-child(2) {
        grid-column: auto;
    }

    /* Centre one final tablet card. */
    .ai1-team-page .ai1-team-grid > .ai1-team-card:last-child:nth-child(odd),
    .ai1-team-page .ai1-team-grid--featured > .ai1-team-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc((100% - clamp(24px, 2.2vw, 38px)) / 2);
        justify-self: center;
    }
}

@media (max-width: 760px) {
    .ai1-team-page .ai1-team-grid,
    .ai1-team-page .ai1-team-grid--featured {
        grid-template-columns: 1fr;
    }

    .ai1-team-page .ai1-team-grid > .ai1-team-card,
    .ai1-team-page .ai1-team-grid--featured > .ai1-team-card,
    .ai1-team-page .ai1-team-grid > .ai1-team-card:last-child:nth-child(odd),
    .ai1-team-page .ai1-team-grid--featured > .ai1-team-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }

    .ai1-team-page .ai1-team-card.ai1-reveal[data-ai1-reveal="left"],
    .ai1-team-page .ai1-team-card.ai1-reveal[data-ai1-reveal="right"] {
        transform: translate3d(0, 52px, 0) scale(.97);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai1-team-page .ai1-team-card.ai1-reveal,
    .ai1-team-page .ai1-team-card.ai1-reveal[data-ai1-reveal="left"],
    .ai1-team-page .ai1-team-card.ai1-reveal[data-ai1-reveal="right"],
    .ai1-team-page .ai1-team-card.ai1-reveal.is-revealed {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }

    .ai1-team-page .ai1-team-photo-placeholder::after,
    .ai1-team-page .ai1-team-card__quote::after,
    .ai1-team-page .ai1-team-stat.is-revealed strong::after,
    .ai1-team-page .ai1-byte-card.is-revealed .ai1-byte-video,
    .ai1-team-page .ai1-byte-card__bubble,
    .ai1-team-page .ai1-team-cta__inner.is-revealed {
        animation: none !important;
    }
}

/* ==========================================================================
   38. CONSISTENT SECTION SPACING & FULL-WIDTH DIVIDERS
   Tightens the vertical rhythm and applies the same divider between every
   major page section. This final layer deliberately overrides older spacing.
========================================================================== */

.ai1-team-page {
    --team-section-space: clamp(68px, 6vw, 94px);
    --team-heading-space: clamp(34px, 4vw, 54px);
    --team-divider-height: 54px;
}

/* Every main section now follows one spacing system. */
.ai1-team-page > .ai1-team-intro,
.ai1-team-page > .ai1-team-section,
.ai1-team-page > .ai1-team-values,
.ai1-team-page > .ai1-team-cta {
    position: relative;
    isolation: isolate;
    margin: 0 !important;
    padding-top: calc(var(--team-section-space) + 12px) !important;
    padding-bottom: var(--team-section-space) !important;
}

/* Remove older one-off spacing exceptions. */
.ai1-team-page > .ai1-team-section--leadership,
.ai1-team-page > .ai1-team-section--byte,
.ai1-team-page > .ai1-team-cta {
    padding-top: calc(var(--team-section-space) + 12px) !important;
    padding-bottom: var(--team-section-space) !important;
}

/* Consistent heading-to-content distance throughout the page. */
.ai1-team-page .ai1-team-section-heading {
    margin-top: 0 !important;
    margin-bottom: var(--team-heading-space) !important;
}

.ai1-team-page .ai1-team-section-heading > :last-child,
.ai1-team-page .ai1-team-section-heading p:last-child {
    margin-bottom: 0 !important;
}

/* Keep grids and feature panels snug against their section rhythm. */
.ai1-team-page .ai1-team-grid,
.ai1-team-page .ai1-team-grid--featured,
.ai1-team-page .ai1-team-stat-grid,
.ai1-team-page .ai1-team-values__grid,
.ai1-team-page .ai1-byte-card,
.ai1-team-page .ai1-team-cta__inner {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/*
 * Shared divider: dark green band, luminous lime-to-gold upper edge and
 * softly rounded top corners, matching the supplied reference image.
 */
.ai1-team-page > .ai1-team-intro::before,
.ai1-team-page > .ai1-team-section::before,
.ai1-team-page > .ai1-team-values::before,
.ai1-team-page > .ai1-team-cta::before {
    position: absolute;
    z-index: 4;
    height: var(--team-divider-height);
    content: "";
    top: 0;
    right: 0;
    left: 0;
    border-radius: 28px 28px 0 0;
    border-top: 1px solid rgba(156, 255, 34, 0.34);
    background:
        radial-gradient(circle at 8% 15%, rgba(115, 214, 0, 0.12), transparent 32%),
        linear-gradient(90deg, rgba(13, 39, 16, 0.76), rgba(3, 17, 11, 0.82) 48%, rgba(4, 24, 20, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 -10px 34px rgba(115, 214, 0, 0.035);
    pointer-events: none;
}

.ai1-team-page > .ai1-team-intro::after,
.ai1-team-page > .ai1-team-section::after,
.ai1-team-page > .ai1-team-values::after,
.ai1-team-page > .ai1-team-cta::after {
    position: absolute;
    z-index: 5;
    height: 3px;
    content: "";
    top: 0;
    right: 0;
    left: 0;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(
        90deg,
        #8dff18 0%,
        #73d600 36%,
        #d6b86f 82%,
        rgba(214, 184, 111, 0.62) 100%
    );
    box-shadow:
        0 0 10px rgba(145, 255, 25, 0.35),
        0 0 24px rgba(115, 214, 0, 0.12);
    pointer-events: none;
}

/* Let section backgrounds begin cleanly beneath the divider band. */
.ai1-team-page > .ai1-team-intro,
.ai1-team-page > .ai1-team-section,
.ai1-team-page > .ai1-team-values,
.ai1-team-page > .ai1-team-cta {
    background-clip: padding-box;
}

/* The first divider meets the hero directly without a stray gap. */
.ai1-team-page > .ai1-team-hero + .ai1-team-intro {
    margin-top: 0 !important;
}

/* Tighter but still comfortable mobile spacing. */
@media (max-width: 760px) {
    .ai1-team-page {
        --team-section-space: clamp(52px, 12vw, 70px);
        --team-heading-space: clamp(28px, 8vw, 40px);
        --team-divider-height: 42px;
    }

    .ai1-team-page > .ai1-team-intro,
    .ai1-team-page > .ai1-team-section,
    .ai1-team-page > .ai1-team-values,
    .ai1-team-page > .ai1-team-cta,
    .ai1-team-page > .ai1-team-section--leadership,
    .ai1-team-page > .ai1-team-section--byte {
        padding-top: calc(var(--team-section-space) + 8px) !important;
        padding-bottom: var(--team-section-space) !important;
    }

    .ai1-team-page > .ai1-team-intro::before,
    .ai1-team-page > .ai1-team-section::before,
    .ai1-team-page > .ai1-team-values::before,
    .ai1-team-page > .ai1-team-cta::before {
        border-radius: 20px 20px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai1-team-page > .ai1-team-intro::before,
    .ai1-team-page > .ai1-team-section::before,
    .ai1-team-page > .ai1-team-values::before,
    .ai1-team-page > .ai1-team-cta::before,
    .ai1-team-page > .ai1-team-intro::after,
    .ai1-team-page > .ai1-team-section::after,
    .ai1-team-page > .ai1-team-values::after,
    .ai1-team-page > .ai1-team-cta::after {
        animation: none !important;
    }
}

/* ==========================================================================
   39. PREMIUM VALUES CARDS & CLEAN DIVIDERS
   Adds animated showcase treatment to the values cards and removes the
   coloured band beneath each section divider while retaining the fine line.
========================================================================== */

/* --------------------------------------------------------------------------
   39.1 CLEAN DIVIDER TREATMENT
   Keep only the thin lime-to-gold divider line. No green panel underneath.
-------------------------------------------------------------------------- */

.ai1-team-page > .ai1-team-intro::before,
.ai1-team-page > .ai1-team-section::before,
.ai1-team-page > .ai1-team-values::before,
.ai1-team-page > .ai1-team-cta::before,
section.ai1-team-cta::before {
    height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0 !important;
}

.ai1-team-page > .ai1-team-intro::after,
.ai1-team-page > .ai1-team-section::after,
.ai1-team-page > .ai1-team-values::after,
.ai1-team-page > .ai1-team-cta::after {
    height: 3px;
    border-radius: 0;
    background: linear-gradient(
        90deg,
        #91ff19 0%,
        #73d600 38%,
        #d6b86f 84%,
        rgba(214, 184, 111, 0.42) 100%
    );
    box-shadow:
        0 0 10px rgba(145, 255, 25, 0.28),
        0 0 22px rgba(115, 214, 0, 0.08);
}

/* --------------------------------------------------------------------------
   39.2 VALUES GRID
-------------------------------------------------------------------------- */

.ai1-team-page .ai1-team-values__grid {
    perspective: 1400px;
    gap: clamp(20px, 2vw, 30px);
}

.ai1-team-page .ai1-team-value-card {
    --value-accent: #91ff19;
    position: relative;
    isolation: isolate;
    min-height: 260px;
    padding: clamp(30px, 3vw, 42px);
    overflow: hidden;
    border: 1px solid rgba(145, 255, 25, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 12%, rgba(145, 255, 25, 0.10), transparent 28%),
        linear-gradient(155deg, rgba(12, 28, 18, 0.97), rgba(3, 12, 7, 0.99));
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transform-style: preserve-3d;
    transition:
        transform 520ms cubic-bezier(.2, .78, .2, 1),
        border-color 360ms ease,
        box-shadow 420ms ease,
        background 420ms ease;
}

.ai1-team-page .ai1-team-value-card:nth-child(2) {
    --value-accent: #b7ff38;
}

.ai1-team-page .ai1-team-value-card:nth-child(3) {
    --value-accent: #d6c56f;
}

.ai1-team-page .ai1-team-value-card:nth-child(4) {
    --value-accent: #91ff19;
}

/* Animated top signal line. */
.ai1-team-page .ai1-team-value-card::after {
    position: absolute;
    z-index: 4;
    height: 3px;
    content: "";
    top: 0;
    right: 12%;
    left: 12%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--value-accent), transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--value-accent) 55%, transparent);
    transform: scaleX(.28);
    opacity: .55;
    transition: transform 520ms ease, opacity 360ms ease;
    pointer-events: none;
}

/* Moving light sweep. */
.ai1-team-page .ai1-team-value-card > * {
    position: relative;
    z-index: 3;
}

.ai1-team-page .ai1-team-value-card .ai1-team-value-card__number::after {
    position: absolute;
    width: 9px;
    height: 9px;
    content: "";
    top: 50%;
    left: calc(100% + 12px);
    border-radius: 50%;
    background: var(--value-accent);
    box-shadow:
        0 0 0 6px color-mix(in srgb, var(--value-accent) 10%, transparent),
        0 0 18px color-mix(in srgb, var(--value-accent) 75%, transparent);
    transform: translateY(-50%);
    animation: ai1TeamValueSignal 2.8s ease-in-out infinite;
}

.ai1-team-page .ai1-team-value-card::before {
    position: absolute;
    z-index: 1;
    width: 46%;
    height: 180%;
    content: "";
    top: -40%;
    left: -70%;
    border-radius: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.075),
        transparent
    );
    filter: none;
    opacity: 1;
    transform: rotate(18deg);
    transition: left 900ms cubic-bezier(.2, .72, .2, 1);
    pointer-events: none;
}

/* Decorative orbit in the corner. */
.ai1-team-page .ai1-team-value-card h3::after {
    position: absolute;
    z-index: -1;
    width: 150px;
    height: 150px;
    content: "";
    top: -110px;
    right: -105px;
    border: 1px dashed color-mix(in srgb, var(--value-accent) 32%, transparent);
    border-radius: 50%;
    box-shadow: inset 0 0 34px color-mix(in srgb, var(--value-accent) 7%, transparent);
    animation: ai1TeamValueOrbit 18s linear infinite;
    pointer-events: none;
}

.ai1-team-page .ai1-team-value-card__number {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 28px;
    color: var(--value-accent);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-shadow: 0 0 16px color-mix(in srgb, var(--value-accent) 38%, transparent);
}

.ai1-team-page .ai1-team-value-card h3 {
    position: relative;
    margin-bottom: 16px;
    font-size: clamp(1.35rem, 1.8vw, 1.72rem);
    line-height: 1.18;
    transition: color 320ms ease, transform 420ms ease;
}

.ai1-team-page .ai1-team-value-card p {
    margin: 0;
    color: #9dac9f;
    font-size: .98rem;
    line-height: 1.8;
    transition: color 320ms ease, transform 420ms ease;
}

.ai1-team-page .ai1-team-value-card:hover,
.ai1-team-page .ai1-team-value-card:focus-within {
    transform: translateY(-13px) rotateX(2deg) rotateY(-1deg);
    border-color: color-mix(in srgb, var(--value-accent) 48%, transparent);
    background:
        radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--value-accent) 16%, transparent), transparent 32%),
        linear-gradient(155deg, rgba(15, 35, 22, 0.99), rgba(3, 13, 8, 1));
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.48),
        0 0 42px color-mix(in srgb, var(--value-accent) 10%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ai1-team-page .ai1-team-value-card:hover::before,
.ai1-team-page .ai1-team-value-card:focus-within::before {
    left: 135%;
}

.ai1-team-page .ai1-team-value-card:hover::after,
.ai1-team-page .ai1-team-value-card:focus-within::after {
    transform: scaleX(1);
    opacity: 1;
}

.ai1-team-page .ai1-team-value-card:hover h3,
.ai1-team-page .ai1-team-value-card:focus-within h3 {
    color: #ffffff;
    transform: translateX(5px);
}

.ai1-team-page .ai1-team-value-card:hover p,
.ai1-team-page .ai1-team-value-card:focus-within p {
    color: #c3cec6;
    transform: translateY(-2px);
}

/* Scroll-triggered stagger and direction. Existing JS retriggers these. */
.ai1-team-page .ai1-team-value-card.ai1-reveal[data-ai1-reveal="left"] {
    transform: translate3d(-78px, 18px, 0) rotateY(5deg) scale(.96);
}

.ai1-team-page .ai1-team-value-card.ai1-reveal[data-ai1-reveal="right"] {
    transform: translate3d(78px, 18px, 0) rotateY(-5deg) scale(.96);
}

.ai1-team-page .ai1-team-value-card.ai1-reveal[data-ai1-reveal="up"] {
    transform: translate3d(0, 58px, 0) scale(.95);
}

.ai1-team-page .ai1-team-value-card.ai1-reveal.is-revealed {
    opacity: 1;
    filter: none;
    transform: none;
}

.ai1-team-page .ai1-team-value-card:nth-child(1) {
    transition-delay: 0ms;
}

.ai1-team-page .ai1-team-value-card:nth-child(2) {
    transition-delay: 90ms;
}

.ai1-team-page .ai1-team-value-card:nth-child(3) {
    transition-delay: 180ms;
}

.ai1-team-page .ai1-team-value-card:nth-child(4) {
    transition-delay: 270ms;
}

@keyframes ai1TeamValueSignal {
    0%, 100% {
        opacity: .58;
        transform: translateY(-50%) scale(.84);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

@keyframes ai1TeamValueOrbit {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .ai1-team-page .ai1-team-value-card {
        min-height: 240px;
    }
}

@media (max-width: 760px) {
    .ai1-team-page .ai1-team-value-card {
        min-height: 0;
    }

    .ai1-team-page .ai1-team-value-card.ai1-reveal[data-ai1-reveal="left"],
    .ai1-team-page .ai1-team-value-card.ai1-reveal[data-ai1-reveal="right"],
    .ai1-team-page .ai1-team-value-card.ai1-reveal[data-ai1-reveal="up"] {
        transform: translate3d(0, 48px, 0) scale(.97);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai1-team-page .ai1-team-value-card,
    .ai1-team-page .ai1-team-value-card::before,
    .ai1-team-page .ai1-team-value-card::after,
    .ai1-team-page .ai1-team-value-card h3::after,
    .ai1-team-page .ai1-team-value-card .ai1-team-value-card__number::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   40. GET TO KNOW — EXPANDABLE PERSONAL PROFILES
   Styles the native <details> panel used at the bottom of every employee card.
   This section is deliberately self-contained so the established team layout,
   animations and spacing remain untouched.
========================================================================== */

.ai1-team-page .ai1-team-card__facts {
    position: relative;
    z-index: 7;
    width: 100%;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid rgba(156, 255, 34, 0.16);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 0%, rgba(156, 255, 34, 0.09), transparent 34%),
        linear-gradient(145deg, rgba(13, 31, 19, 0.88), rgba(4, 14, 8, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 14px 34px rgba(0, 0, 0, 0.2);
    transition:
        border-color 300ms ease,
        background 300ms ease,
        box-shadow 300ms ease;
}

.ai1-team-page .ai1-team-card__facts:hover,
.ai1-team-page .ai1-team-card__facts:focus-within,
.ai1-team-page .ai1-team-card__facts[open] {
    border-color: rgba(156, 255, 34, 0.38);
    background:
        radial-gradient(circle at 92% 0%, rgba(156, 255, 34, 0.14), transparent 38%),
        linear-gradient(145deg, rgba(16, 38, 23, 0.94), rgba(5, 17, 10, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 18px 42px rgba(0, 0, 0, 0.3),
        0 0 26px rgba(115, 214, 0, 0.06);
}

/* Remove the browser's default disclosure triangle. */
.ai1-team-page .ai1-team-card__facts summary {
    position: relative;
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px 15px 19px;
    color: var(--team-white);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.ai1-team-page .ai1-team-card__facts summary::-webkit-details-marker {
    display: none;
}

.ai1-team-page .ai1-team-card__facts summary::marker {
    display: none;
    content: "";
}

.ai1-team-page .ai1-team-card__facts summary > span {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai1-team-page .ai1-team-card__facts summary > span::before {
    width: 8px;
    height: 8px;
    content: "";
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--team-green-bright);
    box-shadow:
        0 0 0 5px rgba(156, 255, 34, 0.07),
        0 0 16px rgba(156, 255, 34, 0.52);
    animation: ai1TeamFactsSignal 2.4s ease-in-out infinite;
}

/* Plus/minus control built from the existing empty <i>. */
.ai1-team-page .ai1-team-card__facts summary > i {
    position: relative;
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid rgba(156, 255, 34, 0.22);
    border-radius: 50%;
    background: rgba(156, 255, 34, 0.055);
    box-shadow: inset 0 0 16px rgba(156, 255, 34, 0.025);
    transition:
        transform 360ms cubic-bezier(.2, .75, .2, 1),
        border-color 260ms ease,
        background 260ms ease,
        box-shadow 260ms ease;
}

.ai1-team-page .ai1-team-card__facts summary > i::before,
.ai1-team-page .ai1-team-card__facts summary > i::after {
    position: absolute;
    width: 12px;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: var(--team-green-bright);
    box-shadow: 0 0 9px rgba(156, 255, 34, 0.4);
    transition: transform 300ms ease, opacity 300ms ease;
}

.ai1-team-page .ai1-team-card__facts summary > i::after {
    transform: rotate(90deg);
}

.ai1-team-page .ai1-team-card__facts summary:hover > i,
.ai1-team-page .ai1-team-card__facts summary:focus-visible > i {
    border-color: rgba(156, 255, 34, 0.5);
    background: rgba(156, 255, 34, 0.11);
    box-shadow: 0 0 20px rgba(156, 255, 34, 0.1);
}

.ai1-team-page .ai1-team-card__facts[open] summary > i {
    transform: rotate(180deg);
    border-color: rgba(156, 255, 34, 0.48);
    background: rgba(156, 255, 34, 0.12);
}

.ai1-team-page .ai1-team-card__facts[open] summary > i::after {
    opacity: 0;
    transform: rotate(90deg) scaleX(0);
}

.ai1-team-page .ai1-team-card__facts summary:focus-visible {
    outline: 2px solid rgba(156, 255, 34, 0.48);
    outline-offset: -3px;
    border-radius: 16px;
}

/* Personal facts list. */
.ai1-team-page .ai1-team-card__facts dl {
    display: grid;
    margin: 0;
    padding: 4px 17px 18px;
    gap: 0;
    animation: ai1TeamFactsOpen 420ms cubic-bezier(.2, .75, .2, 1) both;
}

.ai1-team-page .ai1-team-card__facts dl > div {
    display: grid;
    grid-template-columns: minmax(92px, 0.38fr) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 13px 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.ai1-team-page .ai1-team-card__facts dt,
.ai1-team-page .ai1-team-card__facts dd {
    margin: 0;
}

.ai1-team-page .ai1-team-card__facts dt {
    color: var(--team-green-bright);
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.ai1-team-page .ai1-team-card__facts dd {
    color: #c5d0c8;
    font-size: 0.78rem;
    line-height: 1.65;
}

/* Give Byte's comment a distinct closing panel. */
.ai1-team-page .ai1-team-card__facts dl > div:last-child {
    position: relative;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 5px;
    padding: 14px 15px 15px;
    overflow: hidden;
    border: 1px solid rgba(240, 213, 154, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(240, 213, 154, 0.055), rgba(156, 255, 34, 0.035));
}

.ai1-team-page .ai1-team-card__facts dl > div:last-child::after {
    position: absolute;
    width: 76px;
    height: 76px;
    content: "";
    right: -38px;
    bottom: -42px;
    border-radius: 50%;
    background: rgba(156, 255, 34, 0.13);
    filter: blur(22px);
    pointer-events: none;
}

.ai1-team-page .ai1-team-card__facts dl > div:last-child dt {
    color: var(--team-gold, #f0d59a);
}

.ai1-team-page .ai1-team-card__facts dl > div:last-child dd {
    position: relative;
    z-index: 2;
    color: #dbe4dd;
    font-style: italic;
}

/* The panel sits beneath the skill chips without upsetting equal card heights. */
.ai1-team-page .ai1-team-card__skills + .ai1-team-card__facts {
    flex: 0 0 auto;
}

@keyframes ai1TeamFactsSignal {
    0%, 100% {
        opacity: 0.68;
        transform: scale(0.88);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

@keyframes ai1TeamFactsOpen {
    from {
        opacity: 0;
        transform: translateY(-9px);
        filter: blur(3px);
    }

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

/* --------------------------------------------------------------------------
   40.1 TABLET AND MOBILE REFINEMENTS
-------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .ai1-team-page .ai1-team-card__facts dl > div {
        grid-template-columns: minmax(88px, 0.34fr) minmax(0, 1fr);
    }

    .ai1-team-page .ai1-team-card__facts dl > div:last-child {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ai1-team-page .ai1-team-card__facts {
        margin-top: 18px;
        border-radius: 16px;
    }

    .ai1-team-page .ai1-team-card__facts summary {
        min-height: 54px;
        padding: 13px 14px 13px 16px;
    }

    .ai1-team-page .ai1-team-card__facts summary > span {
        font-size: 0.7rem;
        letter-spacing: 0.065em;
    }

    .ai1-team-page .ai1-team-card__facts summary > i {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .ai1-team-page .ai1-team-card__facts dl {
        padding: 2px 14px 15px;
    }

    .ai1-team-page .ai1-team-card__facts dl > div {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 11px 2px;
    }

    .ai1-team-page .ai1-team-card__facts dd {
        font-size: 0.76rem;
    }

    .ai1-team-page .ai1-team-card__facts dl > div:last-child {
        padding: 13px 14px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai1-team-page .ai1-team-card__facts,
    .ai1-team-page .ai1-team-card__facts summary > i,
    .ai1-team-page .ai1-team-card__facts summary > i::before,
    .ai1-team-page .ai1-team-card__facts summary > i::after,
    .ai1-team-page .ai1-team-card__facts summary > span::before,
    .ai1-team-page .ai1-team-card__facts dl {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   41. EMPLOYEE PORTRAIT CLEAN-UP
   Removes legacy initials and decorative bars, then makes each employee
   photograph fill the image area cleanly from the very top of the card.
========================================================================== */

/* The initials have been removed from the HTML; this remains as a safeguard
   against cached or older article markup. */
.ai1-team-page .ai1-team-card__initials {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* Remove any line-height gap or inherited spacing around the portrait. */
.ai1-team-page .ai1-team-card__photo {
    line-height: 0;
}

/* The portrait wrapper now occupies the complete photograph area. */
.ai1-team-page .ai1-team-card__portrait {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 0;
}

/* Remove legacy bars, overlays or decorative content attached to the wrapper. */
.ai1-team-page .ai1-team-card__portrait::before,
.ai1-team-page .ai1-team-card__portrait::after {
    display: none !important;
    content: none !important;
}

/* Keep the real photograph flush to every edge of its image area. */
.ai1-team-page .ai1-team-card__portrait .ai1-team-card__image,
.ai1-team-page .ai1-team-card__photo .ai1-team-card__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center top;
    line-height: 0;
}

/* Preserve the existing role/status badge above the photograph. */
.ai1-team-page .ai1-team-card__status {
    z-index: 5;
}


/* ==========================================================================
   42. DEPARTMENT COLOUR THEMES
   Each department uses its own accent while preserving the wider AI1Group
   visual language. Card content inherits the section accent automatically.
========================================================================== */

.ai1-team-section--theme-leadership { --department-accent: #9cff22; --department-rgb: 156, 255, 34; }
.ai1-team-section--theme-creative   { --department-accent: #f0d59a; --department-rgb: 240, 213, 154; }
.ai1-team-section--theme-hosting    { --department-accent: #64d8ff; --department-rgb: 100, 216, 255; }
.ai1-team-section--theme-security   { --department-accent: #ff8c72; --department-rgb: 255, 140, 114; }
.ai1-team-section--theme-support    { --department-accent: #c7a5ff; --department-rgb: 199, 165, 255; }

.ai1-team-page [class*="ai1-team-section--theme-"] .ai1-team-card {
    border-color: rgba(var(--department-rgb), 0.2);
    background:
        radial-gradient(circle at 88% 0%, rgba(var(--department-rgb), 0.08), transparent 30%),
        linear-gradient(180deg, rgba(11, 24, 16, 0.97), rgba(5, 13, 8, 0.99));
}

.ai1-team-page [class*="ai1-team-section--theme-"] .ai1-team-card:hover {
    border-color: rgba(var(--department-rgb), 0.52);
    box-shadow: 0 40px 95px rgba(0, 0, 0, 0.5), 0 0 44px rgba(var(--department-rgb), 0.12);
}

.ai1-team-page [class*="ai1-team-section--theme-"] .ai1-team-card__department,
.ai1-team-page [class*="ai1-team-section--theme-"] .ai1-team-card__status,
.ai1-team-page [class*="ai1-team-section--theme-"] .ai1-skill-meter__label strong {
    color: var(--department-accent);
}

.ai1-team-page [class*="ai1-team-section--theme-"] .ai1-team-card__department::before {
    background: var(--department-accent);
    box-shadow: 0 0 0 5px rgba(var(--department-rgb), 0.08), 0 0 18px rgba(var(--department-rgb), 0.52);
}

.ai1-team-page [class*="ai1-team-section--theme-"] .ai1-team-card__quote {
    border-left-color: var(--department-accent);
    background: rgba(var(--department-rgb), 0.055);
}

.ai1-team-page [class*="ai1-team-section--theme-"] .ai1-team-card__skills li {
    border-color: rgba(var(--department-rgb), 0.18);
}

/* ==========================================================================
   43. ANIMATED SKILL METERS
   Bars animate when their parent card receives the existing is-revealed class.
========================================================================== */

.ai1-team-page .ai1-team-card__meters {
    display: grid;
    gap: 13px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.025);
}

.ai1-team-page .ai1-skill-meter {
    min-width: 0;
}

.ai1-team-page .ai1-skill-meter__label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 7px;
    color: #c8d2cb;
    font-size: 0.71rem;
    font-weight: 700;
}

.ai1-team-page .ai1-skill-meter__label strong {
    flex: 0 0 auto;
    color: var(--department-accent, var(--team-green-bright));
    font-size: 0.66rem;
}

.ai1-team-page .ai1-skill-meter__track {
    position: relative;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.ai1-team-page .ai1-skill-meter__track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--department-accent, var(--team-green)), #ffffff);
    box-shadow: 0 0 16px rgba(var(--department-rgb, 156, 255, 34), 0.32);
    transition: width 1.15s cubic-bezier(.2, .78, .2, 1);
}

.ai1-team-page .ai1-skill-meter__track > span.is-active {
    width: var(--skill-level);
}

.ai1-team-page .ai1-skill-meter:nth-child(2) .ai1-skill-meter__track > span { transition-delay: 90ms; }
.ai1-team-page .ai1-skill-meter:nth-child(3) .ai1-skill-meter__track > span { transition-delay: 180ms; }
.ai1-team-page .ai1-skill-meter:nth-child(4) .ai1-skill-meter__track > span { transition-delay: 270ms; }

/* ==========================================================================
   44. AI1GROUP TIMELINE
========================================================================== */

.ai1-team-page .ai1-team-timeline {
    position: relative;
    padding: calc(var(--team-section-space) + 12px) 0 var(--team-section-space);
    background:
        radial-gradient(circle at 50% 20%, rgba(156, 255, 34, 0.065), transparent 34rem),
        #040a06;
}

.ai1-team-page .ai1-team-timeline::after {
    position: absolute;
    z-index: 5;
    height: 3px;
    content: "";
    top: 0;
    right: 0;
    left: 0;
    background: linear-gradient(90deg, #91ff19, #73d600 38%, #d6b86f 84%, rgba(214,184,111,.42));
    box-shadow: 0 0 10px rgba(145,255,25,.28), 0 0 22px rgba(115,214,0,.08);
}

.ai1-team-page .ai1-team-timeline__track {
    position: relative;
    display: grid;
    gap: 28px;
    max-width: 1120px;
    margin-inline: auto;
}

.ai1-team-page .ai1-team-timeline__track::before {
    position: absolute;
    width: 2px;
    content: "";
    top: 20px;
    bottom: 20px;
    left: 50%;
    background: linear-gradient(var(--team-green-bright), rgba(240,213,154,.45), transparent);
    box-shadow: 0 0 18px rgba(156,255,34,.18);
    transform: translateX(-50%);
}

.ai1-team-page .ai1-team-timeline__item {
    position: relative;
    display: grid;
    width: calc(50% - 36px);
    grid-template-columns: 110px 1fr;
    gap: 22px;
    align-items: start;
    padding: 26px;
    border: 1px solid rgba(156,255,34,.16);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(13,29,18,.96), rgba(4,13,8,.99));
    box-shadow: 0 26px 68px rgba(0,0,0,.34);
}

.ai1-team-page .ai1-team-timeline__item:nth-child(even) {
    justify-self: end;
}

.ai1-team-page .ai1-team-timeline__item::after {
    position: absolute;
    width: 14px;
    height: 14px;
    content: "";
    top: 34px;
    right: -44px;
    border: 3px solid #07100b;
    border-radius: 50%;
    background: var(--team-green-bright);
    box-shadow: 0 0 0 7px rgba(156,255,34,.08), 0 0 18px rgba(156,255,34,.5);
}

.ai1-team-page .ai1-team-timeline__item:nth-child(even)::after {
    right: auto;
    left: -44px;
    background: #f0d59a;
    box-shadow: 0 0 0 7px rgba(240,213,154,.08), 0 0 18px rgba(240,213,154,.42);
}

.ai1-team-page .ai1-team-timeline__year {
    color: var(--team-green-bright);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ai1-team-page .ai1-team-timeline__item:nth-child(even) .ai1-team-timeline__year {
    color: #f0d59a;
}

.ai1-team-page .ai1-team-timeline__item h3 {
    margin-bottom: 9px;
    font-size: 1.25rem;
}

.ai1-team-page .ai1-team-timeline__item p {
    margin: 0;
    color: var(--team-text-muted);
    font-size: .91rem;
}

@media (max-width: 900px) {
    .ai1-team-page .ai1-team-timeline__track::before {
        left: 8px;
    }

    .ai1-team-page .ai1-team-timeline__item,
    .ai1-team-page .ai1-team-timeline__item:nth-child(even) {
        width: calc(100% - 42px);
        justify-self: end;
    }

    .ai1-team-page .ai1-team-timeline__item::after,
    .ai1-team-page .ai1-team-timeline__item:nth-child(even)::after {
        right: auto;
        left: -41px;
    }
}

@media (max-width: 560px) {
    .ai1-team-page .ai1-team-card__meters {
        padding: 15px;
    }

    .ai1-team-page .ai1-team-timeline__item {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai1-team-page .ai1-skill-meter__track > span {
        width: var(--skill-level) !important;
        transition: none !important;
    }
}

/* ==========================================================================
   TEAM DIRECTORY — MOVED FROM components.css
========================================================================== */
.ai1-team-directory{display:grid;grid-template-columns:minmax(230px,.7fr) minmax(320px,1fr) auto;gap:18px;align-items:center;margin:0 0 54px;padding:24px;border:1px solid rgba(121,242,168,.22);border-radius:24px;background:linear-gradient(145deg,rgba(16,38,31,.94),rgba(6,19,15,.98));box-shadow:0 24px 70px rgba(0,0,0,.26)}.ai1-team-directory__copy small{display:block;color:#79f2a8;font-size:.66rem;font-weight:800;letter-spacing:.14em}.ai1-team-directory__copy strong{display:block;margin-top:6px;color:#fff;font-size:1.15rem}.ai1-team-directory input{width:100%;min-height:52px;padding:0 16px;border:1px solid rgba(130,255,177,.17);border-radius:14px;background:rgba(0,0,0,.22);color:#fff;font:inherit}.ai1-team-directory>span{color:#9eb1aa;font-size:.78rem;font-weight:700}
@media(max-width:1040px){.ai1-team-directory{grid-template-columns:1fr}}
