/* ============================================================
   NTM Profile — About (Figma-aligned)

   Light section. Huge serif "About" title with hairline rule below.
   2-col body: left = drop-cap bio + Key Areas Of Focus pill grid;
   right = teal-eyebrow blocks (Education / Memberships / Credentials)
   with title + subtitle entries separated by hairlines.
   ============================================================ */

.ntm-profile-about {
    --ntm-font-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
    --ntm-about-muted: rgba(0, 0, 0, 0.6);
    --ntm-about-hairline: rgba(0, 0, 0, 0.15);
    --ntm-about-pill-bg: #f5efe0;
    position: relative;
    background-color: #ffffff;
    color: #121212;
    padding: clamp(64px, 8vw, 120px) 0;
    font-family: var(--ntm-font-sans);
}

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

/* ---------- Header ---------- */
.ntm-profile-about__header {
    padding-bottom: clamp(24px, 3vw, 36px);
    margin-bottom: clamp(48px, 6vw, 80px);
    border-bottom: 1px solid var(--ntm-about-hairline);
}

.ntm-profile-about__title {
    margin: 0;
    font-family: var(--ntm-font-serif);
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    color: #121212;
}

/* ---------- Grid ---------- */
.ntm-profile-about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(48px, 6vw, 96px);
}

@media (min-width: 992px) {
    .ntm-profile-about__grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    }
}

/* ---------- Main column: bio + focus areas ---------- */
.ntm-profile-about__main {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 5vw, 72px);
}

.ntm-profile-about__bio {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 1.6vw, 24px);
    max-width: 640px;
}

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

/* Quill-stored bios render their own <p> children inside the paragraph
   container — normalise their margins so spacing matches the plain-text
   case (which relies on the bio container's flex gap). */
.ntm-profile-about__paragraph > p {
    margin: 0 0 clamp(18px, 1.6vw, 24px);
}
.ntm-profile-about__paragraph > p:last-child {
    margin-bottom: 0;
}

/* Drop cap: plain-text bios have text directly in the container; Quill
   bios wrap the first sentence in <p>. Target both so the cap survives
   either storage shape. */
.ntm-profile-about__paragraph--lead::first-letter,
.ntm-profile-about__paragraph--lead > p:first-child::first-letter {
    float: left;
    font-family: var(--ntm-font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(3.5rem, 6.5vw, 6rem);
    line-height: 0.85;
    padding: 0.05em 0.22em 0 0;
    color: var(--ntm-accent-teal);
}

/* ---------- Key Areas Of Focus ---------- */
.ntm-profile-about__focus {
    max-width: 640px;
}

.ntm-profile-about__focus-title {
    margin: 0 0 clamp(20px, 2vw, 28px);
    font-family: var(--ntm-font-serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.1;
    color: #121212;
}

.ntm-profile-about__focus-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.ntm-profile-about__focus-item {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 18px 28px;
    background-color: var(--ntm-about-pill-bg);
    border: 0;
    font-family: var(--ntm-font-serif);
    font-weight: 400;
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    line-height: 1.25;
    color: #121212;
}

.ntm-profile-about__focus-num {
    font-family: var(--ntm-font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    color: var(--ntm-accent-teal);
    flex-shrink: 0;
}

.ntm-profile-about__focus-label {
    flex: 1;
}

@media (max-width: 575px) {
    .ntm-profile-about__focus-list {
        grid-template-columns: 1fr;
    }
}

/* ---------- Sidebar ---------- */
.ntm-profile-about__sidebar {
    display: flex;
    flex-direction: column;
}

.ntm-profile-about__block {
    display: flex;
    flex-direction: column;
    padding-bottom: clamp(20px, 2.5vw, 32px);
    margin-bottom: clamp(20px, 2.5vw, 32px);
    border-bottom: 1px solid var(--ntm-about-hairline);
}

.ntm-profile-about__block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.ntm-profile-about__block-eyebrow {
    margin: 0 0 clamp(16px, 1.8vw, 24px);
    font-family: var(--ntm-font-sans);
    font-weight: 500;
    font-size: clamp(0.8125rem, 0.95vw, 0.9375rem);
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ntm-accent-teal);
}

.ntm-profile-about__block-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.5vw, 20px);
}

.ntm-profile-about__block-entry {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.ntm-profile-about__block-title {
    margin: 0;
    font-family: var(--ntm-font-serif);
    font-weight: 400;
    font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
    line-height: 1.25;
    color: #121212;
}

.ntm-profile-about__block-subtitle {
    margin: 0;
    font-family: var(--ntm-font-sans);
    font-weight: 400;
    font-size: clamp(0.8125rem, 0.95vw, 0.9375rem);
    line-height: 1.35;
    color: var(--ntm-about-muted);
}

/* ---------- Defining Moments (last sidebar block) ----------
   Every selector ends in a class that exists only in this block: the
   critical-CSS extractor can drop parent scoping, and a rule that loses
   its parent must still match nothing else. */
.ntm-profile-about__moments-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ntm-profile-about__moment {
    margin: 0;
    min-width: 0;
}

.ntm-profile-about__moment-link {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--ntm-about-pill-bg);
}

.ntm-profile-about__moment-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ntm-profile-about__moment-link:hover .ntm-profile-about__moment-img,
.ntm-profile-about__moment-link:focus-visible .ntm-profile-about__moment-img {
    transform: scale(1.04);
}

.ntm-profile-about__moment-caption {
    margin-top: 8px;
    font-family: var(--ntm-font-sans);
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ntm-about-muted);
}

.ntm-profile-about__moment-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.ntm-profile-about__moment-text.is-expanded {
    display: block;
    overflow: visible;
}

.ntm-profile-about__moment-toggle {
    display: inline-block;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--ntm-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ntm-accent-teal);
    cursor: pointer;
}

.ntm-profile-about__moment-toggle:hover {
    text-decoration: underline;
}

.ntm-profile-about__moment-toggle[hidden] {
    display: none;
}
