/* ============================================================
   Notable Men — Editorial Team member profile (/editorial-team/{slug})
   Dark hero (ghost initials + offset frame photo) + centered
   paper pull quote + paper article sections with drop caps +
   coverage list + published articles + more-from-the-team +
   teal CTA. Values mirror .cursor/ntml-editorial-team mockup.
   ============================================================ */

.ntm-edteam-profile {
    --edteam-black: #121212;
    --edteam-panel: #1a1a1a;
    --edteam-teal: #0f7b82;
    --edteam-teal-bright: #17a2ab;
    --edteam-cream: #f5f0e8;
    --edteam-paper: #fbf8f2;
    --edteam-line-d: rgba(245, 240, 232, 0.14);
    --edteam-line-l: rgba(19, 16, 19, 0.16);
    --edteam-serif: 'Gloock', 'Playfair Display', Georgia, serif;
    --edteam-sans: 'Inter', system-ui, sans-serif;

    font-family: var(--edteam-sans);
    line-height: 1.7;
    background: var(--edteam-black);
    color: var(--edteam-cream);
    -webkit-font-smoothing: antialiased;
}

.ntm-edteam-profile a {
    color: inherit;
    text-decoration: none;
}

.ntm-edteam-profile img {
    display: block;
    max-width: 100%;
}

.ntm-edteam-profile__wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.ntm-edteam-profile__eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--edteam-teal-bright);
    text-decoration: none;
}

.ntm-edteam-profile__eyebrow--light,
.ntm-edteam-profile__eyebrow--teal {
    color: var(--edteam-teal);
}

.ntm-edteam-profile__eyebrow--cream {
    color: var(--edteam-cream);
}

/* ---------- Hero ---------- */

.ntm-edteam-profile__hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--edteam-line-d);
}

.ntm-edteam-profile__hero-ghost {
    position: absolute;
    top: -40px;
    right: -60px;
    font-family: var(--edteam-serif);
    font-size: clamp(200px, 30vw, 420px);
    line-height: 1;
    color: rgba(245, 240, 232, 0.04);
    pointer-events: none;
    user-select: none;
}

.ntm-edteam-profile__hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    padding: 90px 0 100px;
    align-items: center;
}

.ntm-edteam-profile__hero-photo {
    position: relative;
}

.ntm-edteam-profile__hero-photo::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--edteam-teal-bright);
}

.ntm-edteam-profile__hero-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.06);
}

.ntm-edteam-profile__hero-tag {
    position: absolute;
    bottom: -1px;
    left: -1px;
    background: var(--edteam-teal-bright);
    color: var(--edteam-black);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 10px 18px;
}

.ntm-edteam-profile__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.5);
    margin-bottom: 36px;
    transition: color 0.2s;
}

.ntm-edteam-profile__back:hover {
    color: var(--edteam-teal-bright);
}

.ntm-edteam-profile__hero-text .ntm-edteam-profile__eyebrow {
    display: block;
    margin-bottom: 18px;
}

.ntm-edteam-profile__name {
    font-family: var(--edteam-serif);
    font-weight: 400;
    line-height: 1.05;
    font-size: clamp(52px, 6.4vw, 104px);
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--edteam-cream);
}

.ntm-edteam-profile__role {
    margin: 20px 0 0;
    font-size: 16px;
    color: rgba(245, 240, 232, 0.65);
}

.ntm-edteam-profile__role b {
    color: var(--edteam-cream);
    font-weight: 600;
}

.ntm-edteam-profile__meta {
    display: flex;
    gap: 0;
    margin-top: 44px;
    border: 1px solid var(--edteam-line-d);
}

.ntm-edteam-profile__meta-cell {
    padding: 18px 28px;
    border-right: 1px solid var(--edteam-line-d);
}

.ntm-edteam-profile__meta-cell:last-child {
    border-right: none;
}

.ntm-edteam-profile__meta-cell b {
    display: block;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.45);
    margin-bottom: 4px;
    font-weight: 700;
}

.ntm-edteam-profile__meta-cell span {
    font-size: 14px;
    font-weight: 500;
}

/* ---------- Pull quote ---------- */

.ntm-edteam-profile__pull {
    position: relative;
    overflow: hidden;
    background: var(--edteam-paper);
    color: var(--edteam-black);
    padding: 110px 0 90px;
    border-bottom: 1px solid var(--edteam-line-l);
}

.ntm-edteam-profile__pull-mark {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--edteam-serif);
    font-size: 340px;
    line-height: 1;
    color: rgba(15, 123, 130, 0.1);
    pointer-events: none;
}

.ntm-edteam-profile__pull blockquote {
    position: relative;
    font-family: var(--edteam-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(28px, 3.8vw, 48px);
    line-height: 1.28;
    max-width: 24ch;
    margin: 0 auto;
    text-align: center;
}

.ntm-edteam-profile__pull cite {
    display: block;
    margin-top: 34px;
    font-style: normal;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--edteam-teal);
}

.ntm-edteam-profile__pull cite::before {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    background: var(--edteam-teal);
    margin: 0 auto 18px;
}

/* ---------- About / Industry Insight ---------- */

.ntm-edteam-profile__article {
    background: var(--edteam-paper);
    color: var(--edteam-black);
    padding: 100px 0;
    border-bottom: 1px solid var(--edteam-line-l);
}

.ntm-edteam-profile__art-grid {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 28px;
}

.ntm-edteam-profile__art-side {
    margin-bottom: 20px;
}

.ntm-edteam-profile__art-side .ntm-edteam-profile__eyebrow {
    display: block;
}

.ntm-edteam-profile__prose {
    font-size: 17px;
    color: rgba(19, 16, 19, 0.82);
}

.ntm-edteam-profile__prose p {
    margin: 0 0 22px;
}

.ntm-edteam-profile__prose p:last-child {
    margin-bottom: 0;
}

.ntm-edteam-profile__prose p:first-of-type::first-letter {
    font-family: var(--edteam-serif);
    font-size: 76px;
    float: left;
    line-height: 0.8;
    padding: 6px 14px 0 0;
    color: var(--edteam-teal);
}

/* Fully-italic Quill paragraphs are rewrapped as .inline-pull by
   EditorialTeamService — the design's dark callout with a teal edge. */
.ntm-edteam-profile__prose .inline-pull {
    margin: 44px 0;
    padding: 34px 40px;
    background: var(--edteam-black);
    color: var(--edteam-cream);
    font-family: var(--edteam-serif);
    font-style: italic;
    font-size: 24px;
    line-height: 1.4;
    position: relative;
}

.ntm-edteam-profile__prose .inline-pull::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--edteam-teal-bright);
}

/* ---------- Areas of coverage ---------- */

.ntm-edteam-profile__covers {
    background: var(--edteam-paper);
    color: var(--edteam-black);
    padding: 72px 0;
    border-bottom: 1px solid var(--edteam-line-l);
}

.ntm-edteam-profile__covers-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 28px;
}

.ntm-edteam-profile__covers .ntm-edteam-profile__eyebrow--teal {
    display: block;
    margin-bottom: 12px;
}

.ntm-edteam-profile__covers-title {
    font-family: var(--edteam-serif);
    font-weight: 400;
    font-size: 26px;
    margin: 0 0 26px;
    color: var(--edteam-black);
}

.ntm-edteam-profile__tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    counter-reset: edteam-tag;
}

.ntm-edteam-profile__tag-row {
    counter-increment: edteam-tag;
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--edteam-line-l);
    transition: padding-left 0.25s;
}

.ntm-edteam-profile__tag-row:first-child {
    border-top: 1px solid var(--edteam-line-l);
}

.ntm-edteam-profile__tag-row::before {
    content: counter(edteam-tag, lower-roman) ".";
    font-family: var(--edteam-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--edteam-teal);
    min-width: 44px;
}

.ntm-edteam-profile__tag-row span {
    font-size: 16px;
    font-weight: 500;
}

.ntm-edteam-profile__tag-row:hover {
    padding-left: 14px;
}

.ntm-edteam-profile__tag-row:hover span {
    color: var(--edteam-teal);
}

/* ---------- Published articles ---------- */

.ntm-edteam-profile__pub {
    background: var(--edteam-paper);
    color: var(--edteam-black);
    padding: 88px 0;
    border-bottom: 1px solid var(--edteam-line-l);
}

.ntm-edteam-profile__pub-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 28px;
}

.ntm-edteam-profile__pub-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 38px;
}

.ntm-edteam-profile__pub-head h2 {
    font-family: var(--edteam-serif);
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 42px);
    margin: 0;
}

.ntm-edteam-profile__pub-item {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 34px;
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid var(--edteam-line-l);
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

.ntm-edteam-profile__pub-item:last-child {
    border-bottom: 1px solid var(--edteam-line-l);
}

.ntm-edteam-profile__pub-item:hover {
    background: #fff;
    color: inherit;
}

.ntm-edteam-profile__pub-img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    transition: filter 0.3s;
}

.ntm-edteam-profile__pub-item:hover .ntm-edteam-profile__pub-img {
    filter: grayscale(0%);
}

.ntm-edteam-profile__pub-item h3 {
    font-family: var(--edteam-serif);
    font-weight: 400;
    font-size: clamp(21px, 2.6vw, 28px);
    line-height: 1.15;
    margin: 0 0 6px;
}

.ntm-edteam-profile__pub-item:hover h3 {
    color: var(--edteam-teal);
}

.ntm-edteam-profile__pub-item p {
    font-size: 14px;
    color: rgba(19, 16, 19, 0.62);
    margin: 0;
}

.ntm-edteam-profile__pub-arrow {
    font-family: var(--edteam-serif);
    font-size: 26px;
    color: var(--edteam-teal);
    transition: transform 0.25s;
}

.ntm-edteam-profile__pub-item:hover .ntm-edteam-profile__pub-arrow {
    transform: translateX(8px);
}

/* ---------- More from the team ---------- */

.ntm-edteam-profile__more {
    background: var(--edteam-black);
    color: var(--edteam-cream);
    padding: 100px 0;
}

.ntm-edteam-profile__more-head {
    max-width: 1040px;
    margin: 0 auto 48px;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
}

.ntm-edteam-profile__more-head h2 {
    font-family: var(--edteam-serif);
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 42px);
    margin: 0;
    color: var(--edteam-cream);
}

.ntm-edteam-profile__more-grid {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.ntm-edteam-profile__more-card {
    background: var(--edteam-panel);
    border: 1px solid var(--edteam-line-d);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ntm-edteam-profile__more-card:hover {
    transform: translateY(-6px);
    box-shadow: 10px 10px 0 var(--edteam-teal-bright);
    color: inherit;
}

.ntm-edteam-profile__more-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(100%);
    border-bottom: 1px solid var(--edteam-line-d);
}

.ntm-edteam-profile__more-card:hover .ntm-edteam-profile__more-img {
    filter: grayscale(0%);
}

.ntm-edteam-profile__more-body {
    padding: 24px 26px 28px;
}

.ntm-edteam-profile__more-field {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--edteam-teal-bright);
}

.ntm-edteam-profile__more-body h3 {
    font-family: var(--edteam-serif);
    font-weight: 400;
    font-size: 24px;
    margin: 10px 0 4px;
    color: var(--edteam-cream);
}

.ntm-edteam-profile__more-body p {
    font-size: 13px;
    color: rgba(245, 240, 232, 0.6);
    margin: 0;
}

/* ---------- CTA ---------- */

.ntm-edteam-profile__cta {
    background: var(--edteam-teal);
    color: var(--edteam-cream);
    padding: 96px 0;
    text-align: center;
}

.ntm-edteam-profile__cta-title {
    font-family: var(--edteam-serif);
    font-weight: 400;
    font-size: clamp(30px, 4.2vw, 52px);
    max-width: 20ch;
    margin: 18px auto;
    color: var(--edteam-cream);
}

.ntm-edteam-profile__cta-title em {
    font-style: italic;
    color: var(--edteam-black);
}

.ntm-edteam-profile__cta-text {
    max-width: 52ch;
    margin: 0 auto 34px;
    color: rgba(245, 240, 232, 0.9);
}

.ntm-edteam-profile__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid var(--edteam-cream);
    color: var(--edteam-cream);
    text-decoration: none;
    transition: all 0.2s;
}

.ntm-edteam-profile__btn:hover {
    background: var(--edteam-cream);
    color: var(--edteam-teal);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .ntm-edteam-profile__hero-inner {
        grid-template-columns: 1fr;
        gap: 52px;
        padding: 64px 0 72px;
    }

    .ntm-edteam-profile__hero-photo {
        max-width: 340px;
    }

    .ntm-edteam-profile__meta {
        flex-direction: column;
    }

    .ntm-edteam-profile__meta-cell {
        border-right: none;
        border-bottom: 1px solid var(--edteam-line-d);
    }

    .ntm-edteam-profile__meta-cell:last-child {
        border-bottom: none;
    }
}

@media (max-width: 820px) {
    .ntm-edteam-profile__more-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .ntm-edteam-profile__pub-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ntm-edteam-profile__pub-img {
        width: 100%;
        height: 180px;
    }

    .ntm-edteam-profile__pub-arrow {
        display: none;
    }
}
