/* ============================================================
   NTM Cover Story — Jerome O'Grady
   Every class is prefixed `nmcs-` to avoid colliding with
   Bootstrap, theme.css, homepage utilities, or any other
   site-wide rule. CSS variables live on the page wrapper
   (`.ntm-cover-story-page`) so they don't leak globally.
   ============================================================ */

.ntm-cover-story-page {
    --ink: #0A0E14;
    --ink-soft: #141923;
    --paper: #FFFFFF;
    --paper-soft: #FAFAF7;
    --cream: #F5EFE0;
    --cream-deep: #E8DCC0;
    --cyan: #5FBCC4;
    --cyan-deep: #2A8B94;
    --text-light: #FFFFFF;
    --text-light-soft: rgba(255, 255, 255, 0.78);
    --text-light-mute: rgba(255, 255, 255, 0.55);
    --text-dark: #1A1A1A;
    --text-dark-soft: #4A4A4A;
    --text-dark-mute: #8A8580;
    --rule-dark: #E5E0D5;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    background: var(--paper);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Scoped reset — replaces the global `* { margin:0; padding:0 }`
   from the mockup. We intentionally don't touch elements outside
   the wrapper. */
.ntm-cover-story-page,
.ntm-cover-story-page *,
.ntm-cover-story-page *::before,
.ntm-cover-story-page *::after {
    box-sizing: border-box;
}
.ntm-cover-story-page h1,
.ntm-cover-story-page h2,
.ntm-cover-story-page h3,
.ntm-cover-story-page h4,
.ntm-cover-story-page p,
.ntm-cover-story-page ul,
.ntm-cover-story-page ol,
.ntm-cover-story-page figure {
    margin: 0;
    padding: 0;
}
.ntm-cover-story-page img {
    display: block;
    max-width: 100%;
}
.ntm-cover-story-page a {
    text-decoration: none;
    color: inherit;
}

/* === COVER === */
.ntm-cover-story-page .nmcs-cover {
    min-height: 760px;
    background: var(--ink);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}
.ntm-cover-story-page .nmcs-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(95, 188, 196, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(245, 239, 224, 0.04) 0%, transparent 50%),
        linear-gradient(160deg, #14202E 0%, #0A0E14 100%);
}
.ntm-cover-story-page .nmcs-cover-cutout {
    position: absolute;
    right: -4%;
    bottom: 0;
    height: 92%;
    width: 48%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}
.ntm-cover-story-page .nmcs-cover-cutout img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 60%, #000 50%, transparent 95%);
    mask-image: radial-gradient(ellipse 75% 90% at 50% 60%, #000 50%, transparent 95%);
    filter: drop-shadow(0 10px 50px rgba(0, 0, 0, 0.5));
}

.ntm-cover-story-page .nmcs-cover-content {
    position: relative;
    z-index: 4;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ntm-cover-story-page .nmcs-cover-title-block {
    max-width: 720px;
}
.ntm-cover-story-page .nmcs-cover-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.ntm-cover-story-page .nmcs-cover-eyebrow .nmcs-badge {
    background: var(--cream);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
}

.ntm-cover-story-page .nmcs-cover-headline {
    font-family: var(--font-display);
    font-size: clamp(52px, 6.8vw, 102px);
    line-height: 0.95;
    letter-spacing: -0.025em;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 28px;
}
.ntm-cover-story-page .nmcs-cover-headline em {
    font-style: italic;
    color: var(--cream);
    font-weight: 500;
}

.ntm-cover-story-page .nmcs-cover-deck {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(17px, 1.7vw, 22px);
    line-height: 1.4;
    color: var(--text-light-soft);
    max-width: 520px;
    margin-bottom: 28px;
    border-left: 2px solid var(--cyan);
    padding-left: 20px;
}

.ntm-cover-story-page .nmcs-cover-meta-row {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.ntm-cover-story-page .nmcs-cover-meta {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light-mute);
}
.ntm-cover-story-page .nmcs-cover-meta strong {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    margin-top: 4px;
    font-family: var(--font-display);
}

.ntm-cover-story-page .nmcs-scroll-cue {
    position: absolute;
    bottom: 32px;
    right: 48px;
    z-index: 4;
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--cream);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.ntm-cover-story-page .nmcs-scroll-cue .nmcs-line {
    width: 1px;
    height: 56px;
    background: var(--cream);
    opacity: 0.6;
    animation: nmcs-scroll-pulse 2s ease-in-out infinite;
}
@keyframes nmcs-scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50%      { opacity: 0.8; transform: scaleY(1); }
}

/* === OPENING ESSAY === */
.ntm-cover-story-page .nmcs-opening-section {
    padding: 100px 32px 80px;
    background: var(--paper);
}
.ntm-cover-story-page .nmcs-opening-inner {
    max-width: 760px;
    margin: 0 auto;
}
.ntm-cover-story-page .nmcs-opening-eyebrow {
    text-align: center;
    margin-bottom: 32px;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--cyan-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.ntm-cover-story-page .nmcs-opening-eyebrow::before,
.ntm-cover-story-page .nmcs-opening-eyebrow::after {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--cyan-deep);
}
.ntm-cover-story-page .nmcs-opening-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--ink);
    text-align: center;
    margin-bottom: 56px;
}
.ntm-cover-story-page .nmcs-opening-title em {
    font-style: italic;
    color: var(--cyan-deep);
    font-weight: 400;
}

.ntm-cover-story-page .nmcs-essay-body {
    font-size: 19px;
    line-height: 1.75;
    color: var(--text-dark);
}
.ntm-cover-story-page .nmcs-essay-body p { margin-bottom: 28px; }
.ntm-cover-story-page .nmcs-essay-body > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 96px;
    font-weight: 600;
    float: left;
    line-height: 0.85;
    margin: 8px 16px 0 0;
    color: var(--cyan-deep);
    font-style: italic;
}
.ntm-cover-story-page .nmcs-essay-body em {
    font-style: italic;
    color: var(--ink);
    font-weight: 500;
}
.ntm-cover-story-page .nmcs-essay-body strong { font-weight: 600; }

.ntm-cover-story-page .nmcs-editorial-quote {
    margin: 72px -32px;
    padding: 64px 32px;
    text-align: center;
    background: var(--paper-soft);
    border-top: 1px solid var(--rule-dark);
    border-bottom: 1px solid var(--rule-dark);
    position: relative;
}
.ntm-cover-story-page .nmcs-editorial-quote::before {
    content: '"';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--paper);
    padding: 0 20px;
    color: var(--cyan-deep);
    font-size: 80px;
    font-family: var(--font-display);
    line-height: 1;
}
.ntm-cover-story-page .nmcs-editorial-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.25;
    color: var(--ink);
    font-weight: 500;
    max-width: 720px;
    margin: 0 auto 24px;
}
.ntm-cover-story-page .nmcs-editorial-quote .nmcs-attr {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dark-mute);
    font-weight: 600;
}

/* === PHOTO ESSAY === */
.ntm-cover-story-page .nmcs-photo-essay {
    padding: 80px 32px;
    background: var(--ink);
}
.ntm-cover-story-page .nmcs-photo-essay-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    height: 600px;
}
.ntm-cover-story-page .nmcs-photo-essay-main {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.ntm-cover-story-page .nmcs-photo-essay-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ntm-cover-story-page .nmcs-photo-essay-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ntm-cover-story-page .nmcs-photo-essay-small {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.ntm-cover-story-page .nmcs-photo-essay-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ntm-cover-story-page .nmcs-photo-caption {
    position: absolute;
    bottom: 16px;
    left: 20px;
    color: var(--cream);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 2;
}
.ntm-cover-story-page .nmcs-photo-essay-main::after,
.ntm-cover-story-page .nmcs-photo-essay-small::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 14, 20, 0.6) 100%);
}

/* === CLOSING === */
.ntm-cover-story-page .nmcs-closing-section {
    padding: 80px 32px 100px;
    background: var(--paper);
}
.ntm-cover-story-page .nmcs-closing-inner {
    max-width: 760px;
    margin: 0 auto;
}
.ntm-cover-story-page .nmcs-closing-eyebrow {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--cyan-deep);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.ntm-cover-story-page .nmcs-closing-eyebrow::before,
.ntm-cover-story-page .nmcs-closing-eyebrow::after {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--cyan-deep);
}
.ntm-cover-story-page .nmcs-closing-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--ink);
    text-align: center;
    margin-bottom: 48px;
}
.ntm-cover-story-page .nmcs-closing-title em {
    font-style: italic;
    color: var(--cyan-deep);
    font-weight: 400;
}

.ntm-cover-story-page .nmcs-share-strip {
    margin: 56px 0;
    padding: 32px 0;
    border-top: 1px solid var(--rule-dark);
    border-bottom: 1px solid var(--rule-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.ntm-cover-story-page .nmcs-share-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dark-mute);
    font-weight: 600;
}
.ntm-cover-story-page .nmcs-share-icons {
    display: flex;
    gap: 10px;
}
.ntm-cover-story-page .nmcs-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--rule-dark);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.ntm-cover-story-page .nmcs-share-btn:hover {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}
.ntm-cover-story-page .nmcs-share-btn svg {
    width: 16px;
    height: 16px;
}

/* === BIO === */
.ntm-cover-story-page .nmcs-bio-section {
    padding: 80px 32px;
    background: var(--ink);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}
.ntm-cover-story-page .nmcs-bio-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 130%;
    background: radial-gradient(circle, rgba(95, 188, 196, 0.10) 0%, transparent 60%);
}
.ntm-cover-story-page .nmcs-bio-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.ntm-cover-story-page .nmcs-bio-photo {
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
}
.ntm-cover-story-page .nmcs-bio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ntm-cover-story-page .nmcs-bio-eyebrow {
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
}
.ntm-cover-story-page .nmcs-bio-name {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.ntm-cover-story-page .nmcs-bio-role {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    color: var(--cream);
    margin-bottom: 28px;
}
.ntm-cover-story-page .nmcs-bio-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light-soft);
    margin-bottom: 24px;
    max-width: 580px;
}
.ntm-cover-story-page .nmcs-bio-credentials {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.ntm-cover-story-page .nmcs-credential {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 11px;
    color: var(--cream);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}
.ntm-cover-story-page .nmcs-bio-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream);
    border-bottom: 1px solid var(--cream);
    padding-bottom: 4px;
}
.ntm-cover-story-page .nmcs-bio-link svg {
    width: 12px;
    height: 12px;
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
    .ntm-cover-story-page .nmcs-cover { min-height: 720px; }
    .ntm-cover-story-page .nmcs-cover-cutout {
        width: 100%;
        right: 0;
        height: 70%;
        opacity: 0.5;
    }
    .ntm-cover-story-page .nmcs-cover-cutout img {
        -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, #000 30%, transparent 80%);
        mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, #000 30%, transparent 80%);
    }
    .ntm-cover-story-page .nmcs-cover-title-block { max-width: 100%; }
    .ntm-cover-story-page .nmcs-cover-headline { font-size: clamp(44px, 9vw, 72px); }
    .ntm-cover-story-page .nmcs-cover-content { padding: 32px 24px; }
    .ntm-cover-story-page .nmcs-scroll-cue { display: none; }
    .ntm-cover-story-page .nmcs-photo-essay-inner { grid-template-columns: 1fr; height: auto; }
    .ntm-cover-story-page .nmcs-photo-essay-main,
    .ntm-cover-story-page .nmcs-photo-essay-small { aspect-ratio: 16 / 10; }
    .ntm-cover-story-page .nmcs-bio-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .ntm-cover-story-page .nmcs-bio-photo {
        max-width: 280px;
        margin: 0 auto;
    }
    .ntm-cover-story-page .nmcs-bio-credentials { justify-content: center; }
}
@media (max-width: 600px) {
    .ntm-cover-story-page .nmcs-opening-section,
    .ntm-cover-story-page .nmcs-closing-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .ntm-cover-story-page .nmcs-editorial-quote {
        margin-left: -20px;
        margin-right: -20px;
        padding: 48px 24px;
    }
}
