/* =========================================================
   Meet the Lightstone Team page
   Hero band reuses .hero/.hero-title/.hero-sub/.rail-sponsor
   tokens and layout so it matches the Market Overview hero.
   ========================================================= */

.team-hero {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - (2 * var(--gutter)));
    padding: 28px;
}

.hero.team-hero {
    background: url('/images/background_market_overview2.png') center / cover no-repeat;
}

/* Sponsor lockup, top-right, reusing the rail-sponsor panel look */
.team-hero-sponsor {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 160px;
    padding: 10px;
}

    .team-hero-sponsor img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .team-hero-sponsor .rail-sponsor-caption {
        font-size: var(--fs-meta);
        margin: 6px 0 0;
    }

/* Two-column split: headline left, supporting copy right */
.team-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--gutter);
    align-items: end;
    padding-right: 180px;
    margin-bottom: 24px;
}

.team-hero-title {
    max-width: none;
    margin: 0;
}

.team-hero-sub {
    max-width: 42ch;
    margin: 0;
}

/* Portrait row, contained within the hero band and page gutters */
.team-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gutter);
    margin-top: 110px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.team-card {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--bg-panel);
    border: 1px solid var(--brand-green);
    border-radius: var(--radius);
    overflow: hidden;
}

.team-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Per-portrait focal point keeps a common eyeline and head size
  across the row, since source crops/framing differ per photo. */
    object-position: center 20%;
}

.team-photo-sonja {
    object-position: center 18%;
}

.team-photo-renate {
    object-position: center 15%;
}

.team-photo-lerato {
    object-position: center 22%;
}

.team-photo-colette {
    object-position: center 12%;
}

.team-photo-melissa {
    object-position: center 18%;
}

.team-photo-jaco {
    object-position: center 18%;
}

/* Caption sits inside the tile, over the dark base of the photo */
.team-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 10px 10px 8px;
    background: linear-gradient(180deg, rgba(7, 9, 15, 0) 0%, rgba(7, 9, 15, 0.55) 40%, rgba(7, 9, 15, 0.92) 100%);
}

.team-name {
    font-size: var(--fs-kpi-label);
    font-weight: 600;
    color: var(--text-hi);
    margin: 0 0 2px;
}

.team-name-accent {
    color: var(--brand-green-text);
}

.team-title {
    font-size: var(--fs-meta);
    color: var(--text-mid);
    margin: 0;
    line-height: 1.3;
}

.team-blurb {
    font-size: var(--fs-meta);
    font-style: italic;
    color: var(--text-lo);
    margin: 2px 0 0;
    line-height: 1.3;
}

.team-photo-placeholder {
    display: grid;
    place-items: center;
    background: var(--bg-panel-alt);
    color: var(--brand-green-text);
    font-size: 2.5rem;
    font-weight: 700;
}

.team-qr {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    z-index: 2;
    width: 28%;
    max-width: 84px;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 4px;
    background: #000;
    filter: invert(1);
    border-radius: 6px;
}

@media (max-width: 1279px) {
    .team-hero-content {
        grid-template-columns: minmax(0, 1fr);
        padding-right: 0;
        padding-top: 90px;
    }

    .team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 24px;
    }
}

@media (max-width: 1023px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-hero-sponsor {
        position: static;
        width: 130px;
        margin-bottom: 12px;
    }
}
