/* ==========================================================
   TEAM.CSS — Camille Market Insight
   ========================================================== */

/* ── Intro blurb ── */
.team-intro {
    max-width:     620px;
    margin-bottom: 64px;
}
.team-intro h2 { font-family: var(--font-heading); font-size: clamp(28px,4vw,48px); font-weight: 800; line-height: 1.1; color: var(--color-ink); margin: 16px 0 10px; }
.team-intro h2 em { font-style: italic; color: var(--crimson); }
.team-intro p { font-size: 16px; font-weight: 400; color: var(--color-stone); line-height: 1.9; }

/* ── Grid ── */
.team-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   32px;
}

/* ── Card ── */
.team-card {
    background:  #fff;
    border:      .5px solid rgba(0,0,0,.07);
    overflow:    hidden;
    transition:  box-shadow .3s, transform .3s;
}
.team-card:hover {
    box-shadow: 0 20px 48px rgba(0,0,0,.1);
    transform:  translateY(-6px);
}

/* ── Photo / placeholder ── */
.team-card__photo-wrap {
    width:            100%;
    aspect-ratio:     4 / 5;
    overflow:         hidden;
    background:       var(--color-parchment);
    position:         relative;
}
.team-card__photo {
    width:       100%;
    height:      100%;
    object-fit:  cover;
    object-position: center top;
    display:     block;
    transition:  transform .5s ease;
}
.team-card:hover .team-card__photo { transform: scale(1.04); }

.team-card__placeholder {
    width:           100%;
    height:          100%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      linear-gradient(135deg, var(--navy) 0%, rgba(64,64,64,.75) 100%);
}
.team-card__placeholder span {
    font-family:     var(--font-heading);
    font-size:       clamp(2.5rem, 6vw, 4rem);
    font-weight:     700;
    color:           rgba(255,255,255,.25);
    letter-spacing:  .05em;
    user-select:     none;
}

/* ── Body ── */
.team-card__body {
    padding: 24px 28px 28px;
}
.team-card__name {
    font-family:    var(--font-heading);
    font-size:      1.0625rem;
    font-weight:    700;
    color:          var(--color-ink);
    margin:         0 0 6px;
    line-height:    1.2;
}
.team-card__title {
    font-family:    var(--font-sans);
    font-size:      .6875rem;
    font-weight:    500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color:          var(--crimson);
    margin:         0 0 18px;
    line-height:    1.5;
}

/* ── LinkedIn link ── */
.team-card__linkedin {
    display:         inline-flex;
    align-items:     center;
    gap:             7px;
    font-family:     var(--font-sans);
    font-size:       .6875rem;
    font-weight:     600;
    letter-spacing:  .1em;
    text-transform:  uppercase;
    color:           #404040;
    text-decoration: none;
    transition:      color .2s, gap .2s;
    border:          none;
    background:      none;
    padding:         0;
}
.team-card__linkedin:hover {
    color: #2a2a2a;
    gap:   10px;
}
.team-card__linkedin svg { flex-shrink: 0; }

/* ── Bottom CTA band ── */
.team-cta-band {
    background:  var(--navy);
    padding-block: 56px;
}
.team-cta-band .container {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             24px;
    flex-wrap:       wrap;
}
.team-cta-band__text {
    font-family:    var(--font-heading);
    font-size:      clamp(1.25rem, 3vw, 2rem);
    font-weight:    700;
    color:          #fff;
    margin:         0;
}

/* h-btn--white variant (reuse existing button system) */
.h-btn--white {
    background:      #fff !important;
    color:           var(--navy) !important;
    border-color:    #fff !important;
}
.h-btn--white:hover {
    background:      transparent !important;
    color:           #fff !important;
}

/* ── Card — clickable ── */
.team-card { cursor: pointer; }
.team-card__cta {
    display:        block;
    font-family:    var(--font-sans);
    font-size:      .6875rem;
    font-weight:    600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color:          var(--crimson);
    margin-top:     8px;
    transition:     opacity .2s;
}
.team-card:hover .team-card__cta { opacity: .7; }

/* ── Modal ── */
.tm-modal {
    position:        fixed;
    inset:           0;
    z-index:         9999;
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         24px;
}
.tm-modal[hidden] { display: none; }

.tm-modal__overlay {
    position:       absolute;
    inset:          0;
    background:     rgba(0,0,0,.6);
    backdrop-filter: blur(5px);
    cursor:         pointer;
}

.tm-modal__panel {
    position:              relative;
    z-index:               1;
    background:            #fff;
    display:               grid;
    grid-template-columns: 300px 1fr;
    max-width:             820px;
    width:                 100%;
    max-height:            88vh;
    overflow:              hidden;
    box-shadow:            0 40px 100px rgba(0,0,0,.3);
}

.tm-modal__close {
    position:   absolute;
    top:        14px;
    right:      14px;
    z-index:    2;
    width:      38px;
    height:     38px;
    border:     none;
    background: rgba(255,255,255,.92);
    cursor:     pointer;
    display:    flex;
    align-items:     center;
    justify-content: center;
    transition: background .2s;
}
.tm-modal__close:hover { background: #fff; }

.tm-modal__photo-col { overflow: hidden; flex-shrink: 0; }

.tm-modal__photo-wrap {
    width:      100%;
    height:     100%;
    min-height: 420px;
    position:   relative;
    background: var(--color-parchment);
}

.tm-modal__photo {
    width:            100%;
    height:           100%;
    object-fit:       cover;
    object-position:  center top;
    display:          block;
}

.tm-modal__initials {
    position:        absolute;
    inset:           0;
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      linear-gradient(135deg, var(--navy) 0%, rgba(64,64,64,.75) 100%);
    font-family:     var(--font-heading);
    font-size:       5rem;
    font-weight:     700;
    color:           rgba(255,255,255,.2);
    letter-spacing:  .05em;
    user-select:     none;
}

.tm-modal__bio-col {
    padding:    48px 40px 40px;
    overflow-y: auto;
    max-height: 88vh;
}

.tm-modal__role {
    font-family:    var(--font-sans);
    font-size:      .6875rem;
    font-weight:    500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color:          var(--crimson);
    margin:         0 0 10px;
}

.tm-modal__name {
    font-family: var(--font-heading);
    font-size:   clamp(1.25rem, 2.5vw, 1.875rem);
    font-weight: 800;
    color:       var(--color-ink);
    margin:      0 0 24px;
    line-height: 1.2;
}

.tm-modal__bio p {
    font-size:   15px;
    line-height: 1.85;
    color:       var(--color-stone);
    margin:      0 0 14px;
}
.tm-modal__bio p:last-child { margin-bottom: 0; }

.tm-modal__links {
    display:      flex;
    flex-wrap:    wrap;
    gap:          16px;
    margin-top:   28px;
    padding-top:  24px;
    border-top:   1px solid rgba(0,0,0,.07);
    align-items:  center;
}

.tm-modal__link {
    display:        inline-flex;
    align-items:    center;
    gap:            8px;
    font-family:    var(--font-sans);
    font-size:      .6875rem;
    font-weight:    600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color:          #404040;
    text-decoration: none;
    transition:     color .2s;
    word-break:     break-all;
}
.tm-modal__link:hover { color: var(--crimson); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .tm-modal { padding: 0; align-items: flex-end; }
    .tm-modal__panel {
        grid-template-columns: 1fr;
        grid-template-rows:    260px 1fr;
        max-height:            94vh;
        overflow:              hidden;
    }
    .tm-modal__photo-col  { height: 260px; }
    .tm-modal__photo-wrap { min-height: 260px; height: 260px; }
    .tm-modal__bio-col {
        padding:    28px 24px 32px;
        overflow-y: auto;
        max-height: calc(94vh - 260px);
    }
}

@media (max-width: 600px) {
    .team-grid { grid-template-columns: 1fr; gap: 24px; }
    .team-cta-band .container { flex-direction: column; text-align: center; }
}
