/* Team directory: wide group artwork, concise dossiers, and distinct identities. */
.teams-page { margin: 0; }

.teams-page .team-directory {
    box-sizing: border-box;
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.directory-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #cbc6ba;
}

.directory-eyebrow, .directory-count, .team-number, .team-image-label {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.directory-eyebrow { margin: 0 0 6px; color: #9b2934; }
.teams-page .directory-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.directory-count { padding-bottom: 4px; color: #62605b; white-space: nowrap; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.team-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d7d1c4;
    border-radius: 6px;
    background: #fffdf8;
    box-shadow: 0 3px 12px rgb(24 27 32 / 5%);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: #a18a56;
    box-shadow: 0 12px 28px rgb(24 27 32 / 14%);
}

.teams-page .team-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #181b20;
    text-decoration: none;
}

.team-visual {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(230px, 27vw, 300px);
    overflow: hidden;
    background: radial-gradient(circle at 50% 48%, #454d57 0, #282e36 45%, #171b22 100%);
}

.team-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #ffffff18 1px, transparent 1.5px) 0 0 / 9px 9px;
    pointer-events: none;
}

.team-visual img {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.team-visual--group img {
    padding: 16px 16px 0;
    object-fit: contain;
    object-position: center bottom;
}

/* Scene artwork fills its own frame; the original group portraits keep their padding. */
.teams-page .team-visual--scene {
    height: auto;
    aspect-ratio: 1672 / 941;
    background: #181b20;
}

.team-visual--scene::before { display: none; }

.team-visual--scene img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    object-position: center;
}

.team-image-label {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: fit-content;
    max-width: calc(100% - 32px);
    box-sizing: border-box;
    padding: 9px 11px;
    background: #181b20e8;
    color: #f6cb06;
    line-height: 1.4;
}

.team-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-height: 220px;
    padding: 24px 26px 25px;
    border-top: 4px solid #bd2838;
}

.team-number { color: #9b2934; }

.teams-page .team-copy h3 {
    margin: 8px 0 10px;
    font-size: clamp(22px, 2.4vw, 28px);
    letter-spacing: -.035em;
}

.team-copy p {
    max-width: 46ch;
    margin: 0 0 22px;
    color: #4f5155;
    font-size: 16px;
    line-height: 1.6;
}

.team-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-bottom: 3px;
    border-bottom: 2px solid #bd2838;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.team-card:hover .team-link, .team-card:focus-within .team-link { color: #9b2934; }

@media screen and (max-width: 700px) {
    .team-grid { grid-template-columns: minmax(0, 1fr); }
    .team-visual { height: clamp(230px, 55vw, 330px); }
    .team-copy { min-height: 0; }
}

@media screen and (max-width: 420px) {
    .teams-page .team-directory { padding: 32px 16px 56px; }
    .team-grid { gap: 18px; }
    .team-copy { padding: 21px; }
    .team-image-label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .team-card { transition: none; }
}
