/* ============================================================
   NTM Profile — Perspectives
   Light section. Header in a single row: title on the left, description
   + "View all articles" CTA on the right (top-aligned with the title).
   2x2 grid of split cards: dark text block on the left, portrait photo
   on the right.
   ============================================================ */

.ntm-profile-perspectives {
    --ntm-font-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
    background-color: #ffffff;
    color: #121212;
    padding: clamp(56px, 8vw, 112px) 0;
    font-family: var(--ntm-font-sans);
}

.ntm-profile-perspectives__container {
    max-width: var(--ntm-container-max);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Header ---------- */
.ntm-profile-perspectives__header {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 32px);
    padding-bottom: clamp(28px, 3.5vw, 40px);
    margin-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
    .ntm-profile-perspectives__header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: clamp(48px, 6vw, 96px);
    }
}

.ntm-profile-perspectives__header-left {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.8vw, 24px);
    min-width: 0;
}

.ntm-profile-perspectives__eyebrow {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-weight: 500;
    font-size: clamp(0.875rem, 1.05vw, 1rem);
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ntm-accent-teal);
}

.ntm-profile-perspectives__title {
    margin: 0;
    font-family: var(--ntm-font-serif);
    font-weight: 400;
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    line-height: 1.05;
    color: #121212;
    letter-spacing: -0.01em;
}

.ntm-profile-perspectives__title-roman {
    font-style: normal;
    display: block;
}

.ntm-profile-perspectives__title-italic {
    font-style: italic;
    color: var(--ntm-accent-teal);
    display: block;
}

.ntm-profile-perspectives__header-right {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2vw, 28px);
    max-width: 420px;
}

@media (min-width: 992px) {
    .ntm-profile-perspectives__header-right {
        align-items: flex-start;
        padding-top: 6px; /* aligns description baseline with title's roman line */
    }
}

.ntm-profile-perspectives__description {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-size: clamp(0.9375rem, 1.05vw, 1rem);
    line-height: 1.55;
    color: #121212;
}

.ntm-profile-perspectives__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    font-family: var(--ntm-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #121212;
    background-color: transparent;
    border: 0.5px solid #121212;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ntm-profile-perspectives__cta:hover,
.ntm-profile-perspectives__cta:focus {
    background-color: #121212;
    color: #ffffff;
}

/* ---------- Grid ---------- */
.ntm-profile-perspectives__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 2.5vw, 32px);
}

@media (min-width: 768px) {
    .ntm-profile-perspectives__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Card ---------- */
.ntm-profile-perspectives__card {
    position: relative;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 260px;
    isolation: isolate;
    transition: transform 0.25s ease;
}

.ntm-profile-perspectives__card:hover {
    transform: translateY(-2px);
}

.ntm-profile-perspectives__card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    text-indent: -9999px;
    overflow: hidden;
}

.ntm-profile-perspectives__card-media {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.ntm-profile-perspectives__card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Dark gradient bleeding from the text side into the image */
.ntm-profile-perspectives__card-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.85) 25%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0) 80%
    );
    z-index: 2;
    pointer-events: none;
}

.ntm-profile-perspectives__card-body {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.4vw, 32px);
    width: 60%;
    max-width: 360px;
    pointer-events: none;
}

.ntm-profile-perspectives__card-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-family: var(--ntm-font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #ffffff;
    background-color: transparent;
    border: 0.5px solid rgba(255, 255, 255, 0.7);
}

.ntm-profile-perspectives__card-text {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1vw, 14px);
}

.ntm-profile-perspectives__card-title {
    margin: 0;
    font-family: var(--ntm-font-serif);
    font-weight: 400;
    font-size: clamp(1.375rem, 2vw, 1.875rem);
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.005em;
}

.ntm-profile-perspectives__card-description {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-size: clamp(0.8125rem, 0.95vw, 0.9375rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

.ntm-profile-perspectives__card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: clamp(6px, 0.8vw, 10px);
    font-family: var(--ntm-font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
}

.ntm-profile-perspectives__card-readmore-text {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 0.5px;
}

.ntm-profile-perspectives__card-readmore-icon {
    flex-shrink: 0;
    display: block;
}

@media (max-width: 575px) {
    .ntm-profile-perspectives__card {
        aspect-ratio: auto;
        min-height: 280px;
    }

    .ntm-profile-perspectives__card-body {
        width: 100%;
        max-width: 100%;
    }

    .ntm-profile-perspectives__card-media::before {
        background: linear-gradient(
            to top,
            rgba(10, 10, 10, 0.95) 0%,
            rgba(10, 10, 10, 0.7) 45%,
            rgba(10, 10, 10, 0) 100%
        );
    }
}
