/* =========================================================
   CYBER CREATIVE — TEAM PAGE
   ========================================================= */

/* ---------- PAGE BASE ---------- */

.team-page {
    position: relative;
    background: var(--black);
    overflow: hidden;
}

.team-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}


/* =========================================================
   HERO
   ========================================================= */

.team-hero {
    min-height: 72vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.team-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,215,0,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,215,0,0.045) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

.team-hero-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 45%,
        rgba(255,215,0,0.12),
        transparent 32%);
}

.team-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.team-orb-1 {
    width: 300px;
    height: 300px;
    left: -120px;
    top: 25%;
    background: rgba(255,215,0,0.08);
}

.team-orb-2 {
    width: 350px;
    height: 350px;
    right: -150px;
    bottom: -100px;
    background: rgba(0,220,255,0.06);
}

.team-hero-content {
    position: relative;
    z-index: 2;
    width: min(1100px, 90%);
    text-align: center;
    padding: 8rem 0 7rem;
}

.team-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.team-eyebrow span {
    width: 35px;
    height: 1px;
    background: var(--gold);
    opacity: 0.7;
}

.team-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(4rem, 9vw, 9rem);
    line-height: 0.82;
    letter-spacing: -0.025em;
    color: #fff;
}

.team-hero h1 span {
    color: var(--gold);
    position: relative;
}

.team-hero h1 span::after {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: -8px;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 15px rgba(255,215,0,0.5);
}

.team-hero-content > p {
    max-width: 650px;
    margin: 2.5rem auto 0;
    color: var(--dim);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
}

.team-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;

    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--dim);
}

.team-hero-meta span:nth-child(2) {
    color: var(--gold);
}

.team-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;

    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.18em;
}

.team-scroll i {
    color: var(--gold);
    animation: teamScrollArrow 1.8s ease-in-out infinite;
}

@keyframes teamScrollArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}


/* =========================================================
   TEAM SECTIONS
   ========================================================= */

.team-section {
    position: relative;
    z-index: 1;

    width: min(1250px, 90%);
    margin: 0 auto;

    padding: 8rem 0;
}

.team-section + .team-section {
    border-top: 1px solid rgba(255,255,255,0.055);
}

.team-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-section-number {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 0.1em;

    padding-top: 0.5rem;
    min-width: 35px;
}

.team-section-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;

    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;

    margin-bottom: 1rem;
}

.team-section-label span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--gold);
}

.team-section-heading h2 {
    margin: 0;

    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.85;
    letter-spacing: -0.015em;
    color: #fff;
}

.team-section-heading h2 em {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.45);
    font-style: normal;
}


/* =========================================================
   CARDS
   ========================================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.team-leaders {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 380px));
    justify-content: center;
    gap: 1.5rem;
}

.specialist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 380px));
    justify-content: center;
    gap: 1.5rem;
}

.team-card {
    position: relative;
    min-width: 0;
    overflow: hidden;

    background: #0b0b0d;
    border: 1px solid rgba(255,255,255,0.08);

    transition:
        transform 0.45s cubic-bezier(.16,1,.3,1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.team-card::before {
    content: "";
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    width: 45px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,215,0,0.35);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.4),
        0 0 30px rgba(255,215,0,0.05);
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card-number {
    position: absolute;
    z-index: 6;
    top: 1rem;
    right: 1rem;

    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;

    color: rgba(255,255,255,0.5);
}

.team-card-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;

    background:
        radial-gradient(circle at 50% 40%, rgba(255,215,0,0.12), transparent 45%),
        #111114;
}

.team-card-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(5,5,7,0.98) 0%,
            rgba(5,5,7,0.65) 18%,
            rgba(5,5,7,0.08) 55%,
            transparent 75%
        );
}

.team-image-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255,215,0,0.18);
    font-size: 4rem;

    background-image:
        linear-gradient(rgba(255,215,0,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,215,0,0.035) 1px, transparent 1px);
    background-size: 35px 35px;
}

.team-card-info {
    position: relative;
    z-index: 7;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    min-height: 90px;
    padding: 1rem 1.1rem 1.15rem;

    margin-top: -90px;
}

.team-card-info h3 {
    margin: 0 0 0.4rem;

    color: #fff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.team-card-info p {
    margin: 0;

    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-card-arrow,
.team-role-icon {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,215,0,0.25);
    border-radius: 50%;

    color: var(--gold);
    font-size: 0.75rem;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.team-card:hover .team-card-arrow,
.team-card:hover .team-role-icon {
    background: var(--gold);
    color: #000;
    transform: rotate(45deg);
}


/* =========================================================
   LEADERS
   ========================================================= */

.team-leader-card .team-card-image {
    aspect-ratio: 4 / 5;
}

.team-leader-card .team-card-info {
    min-height: 105px;
    margin-top: -105px;
}

.team-leader-card .team-card-info h3 {
    font-size: 1.45rem;
}


/* =========================================================
   SPECIALISTS
   ========================================================= */

.specialist-card .team-card-image {
    aspect-ratio: 5 / 5;
}

.specialist-card .team-card-info {
    min-height: 95px;
    margin-top: -95px;
}


/* =========================================================
   CTA
   ========================================================= */

.team-cta {
    position: relative;
    min-height: 65vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-top: 1px solid rgba(255,255,255,0.06);
    background: #08080a;
}

.team-cta-bg {
    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    white-space: nowrap;

    font-family: var(--font-display);
    font-size: clamp(8rem, 25vw, 25rem);
    line-height: 1;

    color: rgba(255,255,255,0.018);

    pointer-events: none;
}

.team-cta::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(255,215,0,0.09),
            transparent 45%
        );
}

.team-cta-content {
    position: relative;
    z-index: 2;

    text-align: center;
}

.team-cta-content .team-section-label {
    justify-content: center;
}

.team-cta h2 {
    margin: 1.5rem 0 2.5rem;

    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: 0.85;
    color: #fff;
}

.team-cta h2 em {
    color: var(--gold);
    font-style: normal;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

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

    .team-section {
        width: min(900px, 90%);
    }

}


@media (max-width: 700px) {

    .team-hero {
        min-height: 70vh;
    }

    .team-hero-content {
        padding: 6rem 0;
    }

    .team-hero h1 {
        font-size: clamp(3.6rem, 16vw, 6rem);
    }

    .team-hero-content > p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .team-hero-meta {
        flex-wrap: wrap;
        font-size: 0.55rem;
    }

    .team-section {
        padding: 5rem 0;
        width: 90%;
    }

    .team-section-heading {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .team-section-heading h2 {
        font-size: clamp(2.8rem, 12vw, 4.5rem);
    }

    .team-leaders,
    .specialist-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .team-card-info {
        padding: 0.8rem;
    }

    .team-card-info h3 {
        font-size: 1rem;
    }

    .team-card-info p {
        font-size: 0.48rem;
    }

    .team-card-arrow,
    .team-role-icon {
        width: 30px;
        height: 30px;
        font-size: 0.65rem;
    }

    .team-cta {
        min-height: 55vh;
    }

}


@media (max-width: 450px) {

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .team-hero-meta span:nth-child(2) {
        display: none;
    }

    .team-hero-meta {
        flex-direction: column;
        gap: 0.4rem;
    }

}

/* TEAM PHOTO FIX */
.team-card-image {
    height: 360px;
    min-height: 360px;
    overflow: hidden;
}

.team-image-placeholder {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.team-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* =========================================================
   TEAM — UNIFORM CARD LAYOUT
========================================================= */

.team-grid {
    display: grid !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.team-card {
    width: 100% !important;
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
}

/* Same photo area on EVERY card */
.team-card-image {
    width: 100% !important;
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    overflow: hidden !important;
}

.team-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.team-image-placeholder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

/* Mobile */
@media (max-width: 700px) {
    .team-grid {
        grid-template-columns: 1fr !important;
        max-width: 500px !important;
    }
}

/* =========================================================
   TEAM — FIX ALL CARD GRIDS
========================================================= */

/* LEADERSHIP — keep 2 cards, same size */
.team-leaders {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* CORE TEAM — 2 cards, same size */
.specialist-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* VIDEO EDITORS — 4 across */
.team-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* EVERY CARD — same height */
.team-leaders .team-card,
.specialist-grid .team-card,
.team-grid .team-card {
    width: 100% !important;
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
}

/* EVERY PHOTO FRAME — exactly same size */
.team-leaders .team-card-image,
.specialist-grid .team-card-image,
.team-grid .team-card-image {
    width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    overflow: hidden !important;
}

/* PHOTO */
.team-leaders .team-image-placeholder,
.specialist-grid .team-image-placeholder,
.team-grid .team-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.team-leaders .team-image-placeholder img,
.specialist-grid .team-image-placeholder img,
.team-grid .team-image-placeholder img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
}

/* MOBILE */
@media (max-width: 700px) {
    .team-leaders,
    .specialist-grid {
        grid-template-columns: 1fr !important;
        max-width: 500px !important;
    }

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

/* Center the final 2 video editor cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Last two cards move to the center */
.team-grid .team-card:nth-last-child(2) {
    grid-column: 2;
}

.team-grid .team-card:last-child {
    grid-column: 3;
}