/* ── Card wrapper ── */
.dc-tm {
    max-width: 1100px;
    margin: 0 auto;
}
.dc-tm .dc-tm__card {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(167, 130, 120, 0.08);
}
.dc-tm--horizontal .dc-tm__card {
    grid-template-columns: 40% 60%;
}

/* ── Photo ── */
.dc-tm .dc-tm__photo-wrap {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}
.dc-tm .dc-tm__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
    min-height: 400px;
    transition: transform 0.6s ease;
}
.dc-tm--horizontal .dc-tm__photo {
    border-radius: 20px 0 0 20px;
}
.dc-tm .dc-tm__card:hover .dc-tm__photo {
    transform: scale(1.03);
}

/* ── Content area ── */
.dc-tm .dc-tm__content {
    padding: 36px 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}
.dc-tm--horizontal .dc-tm__content {
    padding: 40px 44px;
}

/* ── Name ── */
.dc-tm .dc-tm__name {
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 300;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.2;
}

/* ── Function title badge ── */
.dc-tm .dc-tm__function {
    font-family: 'Trajan Pro', 'Cinzel', serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #A78278;
    margin-bottom: 14px;
    display: inline-block;
}

/* ── BIG registration chip ── */
.dc-tm .dc-tm__big {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(167, 130, 120, 0.06);
    border: 1px solid rgba(167, 130, 120, 0.1);
    border-radius: 50px;
    font-size: 12px;
    color: #505059;
    margin-bottom: 20px;
    width: fit-content;
}
.dc-tm .dc-tm__big svg {
    width: 14px;
    height: 14px;
    color: #A78278;
    flex-shrink: 0;
}

/* ── Description ── */
.dc-tm .dc-tm__desc {
    font-size: 15px;
    color: #505059;
    line-height: 1.7;
    margin: 0 0 20px;
    font-weight: 300;
}

/* ── Quote ── */
.dc-tm .dc-tm__quote {
    font-style: italic;
    font-size: 16px;
    color: #1a1a2e;
    line-height: 1.6;
    padding-left: 20px;
    border-left: 3px solid #A78278;
    margin: 0 0 24px;
    font-weight: 300;
}

/* ── Specializations ── */
.dc-tm .dc-tm__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.dc-tm .dc-tm__spec-tag {
    padding: 6px 16px;
    background: rgba(167, 130, 120, 0.05);
    border: 1px solid rgba(167, 130, 120, 0.1);
    border-radius: 50px;
    font-size: 13px;
    color: #505059;
    font-weight: 400;
    transition: all 0.3s ease;
}
.dc-tm .dc-tm__spec-tag:hover {
    background: rgba(167, 130, 120, 0.1);
    color: #1a1a2e;
    transform: translateY(-1px);
}

/* ── CTA button ── */
.dc-tm .dc-tm__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #A78278;
    color: #fff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(167, 130, 120, 0.3);
    transition: all 0.3s ease;
    width: fit-content;
}
.dc-tm .dc-tm__cta:hover {
    background: #96716a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(167, 130, 120, 0.4);
    color: #fff;
}
.dc-tm .dc-tm__cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}
.dc-tm .dc-tm__cta:hover svg {
    transform: translateX(3px);
}

/* ── Entrance animations ── */
.dc-tm--anim .dc-tm__card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.dc-tm--anim.dc-tm--visible .dc-tm__card {
    opacity: 1;
    transform: translateY(0);
}
.dc-tm--anim .dc-tm__name {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s 0.2s ease, transform 0.5s 0.2s ease;
}
.dc-tm--anim.dc-tm--visible .dc-tm__name {
    opacity: 1;
    transform: translateY(0);
}
.dc-tm--anim .dc-tm__function {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s 0.25s ease, transform 0.5s 0.25s ease;
}
.dc-tm--anim.dc-tm--visible .dc-tm__function {
    opacity: 1;
    transform: translateY(0);
}
.dc-tm--anim .dc-tm__big {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s 0.3s ease, transform 0.5s 0.3s ease, background 0.3s ease;
}
.dc-tm--anim.dc-tm--visible .dc-tm__big {
    opacity: 1;
    transform: translateY(0);
}
.dc-tm--anim .dc-tm__desc {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s 0.35s ease, transform 0.5s 0.35s ease;
}
.dc-tm--anim.dc-tm--visible .dc-tm__desc {
    opacity: 1;
    transform: translateY(0);
}
.dc-tm--anim .dc-tm__quote {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.5s 0.4s ease, transform 0.5s 0.4s ease;
}
.dc-tm--anim.dc-tm--visible .dc-tm__quote {
    opacity: 1;
    transform: translateX(0);
}
.dc-tm--anim .dc-tm__spec-tag {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
}
.dc-tm--anim.dc-tm--visible .dc-tm__spec-tag {
    opacity: 1;
    transform: translateY(0);
}
.dc-tm--anim .dc-tm__cta {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s 0.55s ease, transform 0.5s 0.55s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.dc-tm--anim.dc-tm--visible .dc-tm__cta {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 800px) {
    .dc-tm .dc-tm__card,
    .dc-tm--horizontal .dc-tm__card {
        grid-template-columns: 1fr;
    }
    .dc-tm .dc-tm__photo,
    .dc-tm--horizontal .dc-tm__photo {
        border-radius: 20px 20px 0 0;
        min-height: 320px;
        max-height: 450px;
        width: 100%;
    }
    .dc-tm .dc-tm__content,
    .dc-tm--horizontal .dc-tm__content {
        padding: 28px 24px 36px;
    }
}
@media (max-width: 480px) {
    .dc-tm .dc-tm__photo {
        min-height: 280px;
    }
    .dc-tm .dc-tm__content {
        padding: 24px 20px 32px;
    }
    .dc-tm .dc-tm__name {
        font-size: 22px;
    }
    .dc-tm .dc-tm__function {
        font-size: 10px;
        letter-spacing: 2.5px;
    }
    .dc-tm .dc-tm__cta {
        width: 100%;
        justify-content: center;
    }
}
