/* NTM Homepage — Editorial Team panel.
   The one homepage section that inverts to cream; teal cap rules top and
   bottom make the inversion read as deliberate. Palette is component-local
   (client-approved mockup values), fully scoped under .ntm-team-panel. */

.ntm-team-panel {
    --nteam-teal: #0F7B82;
    --nteam-teal-dk: #0B5D63;
    --nteam-ink: #141413;
    position: relative;
    background: linear-gradient(178deg, #F5F1E8 0%, #EAE4D8 100%);
    color: var(--nteam-ink);
    padding: clamp(76px, 9vw, 120px) 24px;
    overflow: hidden;
}

.ntm-team-panel::before,
.ntm-team-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--nteam-teal);
}

.ntm-team-panel::before { top: 0; }
.ntm-team-panel::after { bottom: 0; }

.ntm-team-panel__watermark {
    position: absolute;
    right: -2%;
    bottom: -8%;
    font-family: 'Gloock', Georgia, serif;
    font-size: clamp(180px, 26vw, 360px);
    line-height: 0.8;
    color: rgba(20, 20, 19, 0.045);
    pointer-events: none;
    user-select: none;
}

.ntm-team-panel__inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}

.ntm-team-panel__head {
    max-width: 66ch;
    margin: 0 0 clamp(44px, 5vw, 64px);
}

.ntm-team-panel__mark {
    display: block;
    width: 54px;
    height: 3px;
    background: var(--nteam-teal);
    margin: 0 0 26px;
}

.ntm-team-panel__title {
    font-family: 'Gloock', Georgia, serif;
    font-weight: 400;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.012em;
    margin: 0 0 20px;
    color: #111;
}

.ntm-team-panel__deck {
    font-size: 16.5px;
    line-height: 1.72;
    color: rgba(20, 20, 19, 0.72);
    font-weight: 300;
    margin: 0;
}

.ntm-team-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: clamp(20px, 2.4vw, 32px);
}

.ntm-team-panel__card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ntm-team-panel__shot {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #ddd7ca;
    margin-bottom: 18px;
}

.ntm-team-panel__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.5s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ntm-team-panel__card:hover .ntm-team-panel__shot img,
.ntm-team-panel__card:focus-visible .ntm-team-panel__shot img {
    filter: grayscale(0);
    transform: scale(1.035);
}

/* Teal underline sweep on hover */
.ntm-team-panel__shot::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    background: var(--nteam-teal);
    z-index: 2;
    transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ntm-team-panel__card:hover .ntm-team-panel__shot::before,
.ntm-team-panel__card:focus-visible .ntm-team-panel__shot::before {
    width: 100%;
}

.ntm-team-panel__name {
    font-family: 'Gloock', Georgia, serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.18;
    margin: 0 0 7px;
    color: #111;
}

.ntm-team-panel__role {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nteam-teal-dk);
    margin: 0 0 11px;
}

.ntm-team-panel__cred {
    font-size: 13.5px;
    line-height: 1.62;
    color: rgba(20, 20, 19, 0.7);
    margin: 0;
    font-weight: 300;
}

.ntm-team-panel__card:focus-visible {
    outline: 2px solid var(--nteam-teal);
    outline-offset: 6px;
}

.ntm-team-panel__foot {
    margin-top: clamp(40px, 4vw, 56px);
    padding-top: 26px;
    border-top: 1px solid rgba(20, 20, 19, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    align-items: center;
    justify-content: space-between;
}

.ntm-team-panel__note {
    font-size: 13.5px;
    color: rgba(20, 20, 19, 0.62);
    margin: 0;
    max-width: 52ch;
    line-height: 1.6;
    font-weight: 300;
}

.ntm-team-panel__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: var(--nteam-teal);
    color: #fff;
    text-decoration: none;
    padding: 14px 26px;
    transition: 0.25s;
}

.ntm-team-panel__link:hover {
    background: var(--nteam-teal-dk);
    color: #fff;
    transform: translateY(-2px);
}
