/* ════════════════════════════════════════
   ADVOCACY — Four-Beat Trail Section
════════════════════════════════════════ */

.adv-section {
    position: relative;
    width: 100%;
    background-color: var(--bg);
}

/* ─── Section header ─── */
.adv-section-header {
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 120px) clamp(80px, 10vw, 160px) 100px;
    border-bottom: 1px solid rgba(61, 92, 58, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero intro: animates from ink-bg/light-text to plain text on scroll entry */
.adv-section-header--hero {
    background: var(--bg);
    transition: background 0.8s ease;
    padding: 3.5rem 0;
}

/* JS adds .adv-header-revealed when section scrolls into view */
.adv-section-header--hero.adv-header-init {
    background: var(--ink);
}

.adv-section-header--hero.adv-header-init .section-label,
.adv-section-header--hero.adv-header-init .adv-section-title,
.adv-section-header--hero.adv-header-init .adv-section-intro {
    color: rgba(245, 240, 232, 0.9);
    transition: color 0.8s ease;
}

.adv-section-header--hero.adv-header-init .adv-section-title {
    color: var(--cream);
}

.adv-section-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    color: var(--slate);
    margin: 0.6rem 0 1.4rem;
    line-height: 1.05;
}

.adv-section-intro {
    font-family: 'Crimson Pro', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--slate-mid);
    max-width: 620px;
    font-weight: 300;
    text-align: center;
}

.adv-section-header .section-label {
    margin: 1.2rem 0;
}

/* ─── Trail progress indicator — fixed, only visible within section ─── */
.adv-trail {
    position: fixed;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    /* Height set by JS to match node span */
}

.adv-trail.visible {
    opacity: 1;
}

.adv-trail-nodes {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    z-index: 2;
    padding: 5px 0;
}

/* Line: absolute inside adv-trail-nodes, centered, full height */
.adv-trail-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: var(--forest);
    opacity: 0.2;
    z-index: 0;
    overflow: hidden;
}

/* Fill: grows downward from top, JS sets height in px */
.adv-trail-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0px;
    background: var(--forest);
    opacity: 1;
    z-index: 1;
    transition: height 0.35s ease;
}

.adv-trail.on-dark .adv-trail-line {
    background: var(--forest-pale);
    opacity: 0.3;
}

.adv-trail-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--forest);
    background: transparent;
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.3s ease;
    flex-shrink: 0;
}

/* Active/complete = filled with forest green */
.adv-trail-node.active {
    border-color: var(--forest);
    background: var(--forest);
    transform: scale(1.15);
}

/* On dark beat — all nodes use forest-pale */
.adv-trail.on-dark .adv-trail-node {
    border-color: var(--forest-pale);
    background: transparent;
}

.adv-trail.on-dark .adv-trail-node.active {
    border-color: var(--forest-pale);
    background: var(--forest-pale);
}

.adv-trail.on-dark .adv-trail-fill {
    background: var(--forest-pale);
}

/* ─── Reveal animation ─── */
.adv-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s ease var(--delay, 0ms),
        transform 0.75s ease var(--delay, 0ms);
}

.adv-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Shared beat structure ─── */
.adv-beat {
    width: 100%;
    position: relative;
    padding: 100px 0 100px;
}

.adv-beat-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(64px, 8vw, 140px) 0 clamp(80px, 10vw, 160px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* ─── Shared typography ─── */
.adv-eyebrow {
    display: block;
    font-family: 'Crimson Pro', serif;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--forest);
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.adv-eyebrow--light {
    color: #c8d9c4;
}

.adv-eyebrow--center {
    text-align: center;
}

.adv-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 3.8vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--slate);
    margin: 0 0 2rem;
}

.adv-headline em {
    font-style: italic;
}

.adv-headline--light {
    color: var(--cream);
}

.adv-headline--light em {
    color: #c8d9c4;
}

.adv-headline--center {
    text-align: center;
}

.adv-body {
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
    line-height: 1.52;
    color: var(--slate-mid);
    margin: 0 0 1.2rem;
    font-weight: 300;
}

.adv-body em {
    font-style: italic;
}

.adv-body strong {
    font-weight: 600;
    color: var(--slate);
}

.adv-body--light {
    color: rgba(245, 240, 232, 0.72);
}

.adv-body--wide {
    max-width: 700px;
}

.adv-pullquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.3rem, 2vw, 1.85rem);
    color: var(--slate);
    border-left: 2px solid var(--forest);
    padding: 0.3rem 0 0.3rem 1.5rem;
    margin: 2.5rem 0 0;
    line-height: 1.45;
}

.adv-pullquote--light {
    color: rgba(245, 240, 232, 0.88);
    border-left-color: #c8d9c4;
}

/* light + center: no border */
.adv-pullquote--light.adv-pullquote--center {
    border-left: none;
    padding: 0;
    margin-top: 2.5rem;
    text-align: center;
    width: 100%;
}

.adv-pullquote--center {
    border-left: none;
    text-align: center;
    padding: 0;
    margin: 3.5rem auto 0;
}

.adv-pullquote--large {
    font-size: clamp(1.7rem, 2.8vw, 2.6rem);
    max-width: 780px;
}

/* ─── Org elements ─── */
.adv-orgs-label {
    font-family: 'Crimson Pro', serif;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--forest);
    font-weight: 600;
    margin: 0 0 1.4rem;
}

.adv-orgs-label--light {
    color: #c8d9c4;
}

.adv-org-card {
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(61, 92, 58, 0.15);
}

.adv-org-card:first-of-type {
    border-top: 1px solid rgba(61, 92, 58, 0.15);
}

.adv-org-name {
    font-family: 'IM Fell English', serif;
    font-size: 1.05rem;
    color: var(--slate);
    text-decoration: none;
    display: block;
    margin-bottom: 0.35rem;
    position: relative;
    transition: color 0.25s ease;
}

.adv-org-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--crimson);
    transition: width 0.3s ease;
}

.adv-org-name:hover {
    color: var(--crimson);
}

.adv-org-name:hover::after {
    width: 100%;
}

.adv-org-desc {
    font-family: 'Crimson Pro', serif;
    font-size: 0.92rem;
    color: var(--slate-light);
    margin: 0;
    line-height: 1.5;
    font-weight: 300;
}

/* ═══════════════════════════════════
   BEAT 1 — THE LAND
═══════════════════════════════════ */
.adv-beat--land {
    background-color: var(--bg);
}

.adv-col--text {
    display: flex;
    flex-direction: column;
}

/* Beat 1 pullquote spans full grid width */
.adv-beat--land .adv-pullquote--full {
    border-left: none;
    text-align: center;
    padding: 0;
    margin: 0 auto;
    max-width: 860px;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    width: 100%;
}

.adv-col--orgs {
    padding-top: 0.5rem;
}

/* ═══════════════════════════════════
   BEAT 2 — THE PEOPLE (dark)
═══════════════════════════════════ */
.adv-beat--people {
    background-color: #1e2a1c;
    position: relative;
}

.adv-beat--people::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(61, 92, 58, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.adv-beat--people .adv-beat-inner {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: start;
}

.adv-beat--people-left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: sticky;
    top: calc(var(--nav-h) + 40px);
}

.adv-stat-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.adv-stat-number {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(5.5rem, 10vw, 9rem);
    line-height: 0.9;
    color: #e8f0e6;
    letter-spacing: -0.03em;
}

.adv-stat-plus {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: #e8f0e6;
    opacity: 0.6;
    margin-left: 0.08em;
    align-self: flex-start;
    padding-top: 0.4em;
}

.adv-stat-caption {
    font-family: 'Crimson Pro', serif;
    font-size: 0.9rem;
    color: rgba(232, 240, 230, 0.45);
    letter-spacing: 0.04em;
    font-weight: 300;
    line-height: 1.55;
    width: 100%;
    margin-top: 0.9rem;
}

.adv-orgs-dark {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.adv-org-link--light {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(232, 240, 230, 0.1);
    text-decoration: none;
    transition: color 0.25s;
    font-family: 'IM Fell English', serif;
    font-size: 1rem;
    color: rgba(232, 240, 230, 0.75);
}

.adv-org-link--light:first-of-type {
    border-top: 1px solid rgba(232, 240, 230, 0.1);
}

.adv-org-link--light:hover {
    color: var(--cream);
}

.adv-org-link--light {
    position: relative;
}

.adv-org-link--light::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cream);
    transition: width 0.3s ease;
}

.adv-org-link--light:hover::after {
    width: 100%;
}

.adv-org-link--light span {
    display: block;
    font-family: 'Crimson Pro', serif;
    font-size: 0.85rem;
    color: rgba(232, 240, 230, 0.35);
    font-weight: 300;
    margin-top: 0.25rem;
    font-style: normal;
}

.adv-beat--people-right {
    padding-top: 0.4rem;
}

.adv-beat--people-right .adv-headline--light {
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    line-height: 1.15;
}

/* Hanna Harris name emphasis */
.adv-hanna {
    color: #e8f0e6;
    font-style: italic;
}

.adv-people-pullquote-row {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px clamp(64px, 8vw, 140px) 60px;
}

.adv-people-pullquote-row .adv-pullquote {
    max-width: 700px;
    text-align: center;
    border-left: none;
    padding: 0;
}

/* ═══════════════════════════════════
   BEAT 3 — THE FILM
═══════════════════════════════════ */
.adv-beat--film {
    background-color: var(--cream);
    padding: 130px 0 130px;
}

.adv-beat-inner--centered {
    grid-template-columns: 1fr;
    max-width: 820px;
    gap: 0;
    text-align: center;
}

/* Full-width pullquote row below the two-col grid */
.adv-beat-inner--pullquote {
    grid-template-columns: 1fr;
    padding-top: 0;
    margin-top: 20px;
    padding-bottom: 40px;
}

.adv-pullquote--full {
    border-left: none;
    text-align: center;
    padding: 0;
    margin: 0 auto;
    max-width: 860px;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    width: 100%;
}

.adv-film-body {
    text-align: left;
    margin: 0 auto;
    max-width: 660px;
}

.adv-film-body .adv-body em {
    color: var(--slate);
}

/* ═══════════════════════════════════
   BEAT 4 — THE PATH FORWARD
═══════════════════════════════════ */
.adv-beat--action {
    background-color: var(--bg);
    padding: 0;
}

.adv-action-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Asymmetric header: large headline left, body text right */
.adv-action-header {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: start;
    padding: 110px clamp(64px, 8vw, 140px) 80px clamp(80px, 10vw, 160px);
    border-bottom: 1px solid rgba(61, 92, 58, 0.12);
}

.adv-action-headline {
    font-size: clamp(3rem, 5.5vw, 5rem);
    line-height: 1;
    margin: 0;
}

.adv-action-header-right {
    padding-top: 1rem;
}

/* Org runway — full width, horizontal strip */
.adv-runway {
    padding: 0 clamp(64px, 8vw, 140px) 0 clamp(80px, 10vw, 160px);
    position: relative;
}

.adv-runway-labels {
    display: flex;
    justify-content: space-between;
    padding: 40px 0 20px;
}

.adv-runway-label {
    font-family: 'Crimson Pro', serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--forest);
    font-weight: 600;
}

.adv-runway-label--left {}

.adv-runway-label--right {}

.adv-runway-orgs {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(61, 92, 58, 0.15);
    border-bottom: 1px solid rgba(61, 92, 58, 0.15);
}

.adv-runway-org {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.2rem 1.8rem;
    text-decoration: none;
    border-right: 1px solid rgba(61, 92, 58, 0.12);
    transition: background 0.3s ease;
    min-width: 0;
}

.adv-runway-org:last-child {
    border-right: none;
}

.adv-runway-org:hover {
    background: rgba(61, 92, 58, 0.04);
}

.adv-runway-org-name {
    font-family: 'IM Fell English', serif;
    font-size: 1rem;
    color: var(--slate);
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.25s;
}

.adv-runway-org:hover .adv-runway-org-name {
    color: var(--crimson);
}

.adv-runway-org-desc {
    font-family: 'Crimson Pro', serif;
    font-size: 0.82rem;
    color: var(--slate-light);
    font-weight: 300;
    line-height: 1.45;
    display: block;
}

/* Group wrappers — each is a flex row of three orgs */
.adv-runway-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex: 3;
    min-width: 0;
}

.adv-runway-group .adv-runway-org {
    flex: 1;
    min-width: 0;
}

/* Last org in each group: no right border (divider handles the gap) */
.adv-runway-group .adv-runway-org:last-child {
    border-right: none;
}

/* Vertical divider between the two cause categories */
.adv-runway-divider {
    width: 1px;
    background: rgba(61, 92, 58, 0.25);
    flex-shrink: 0;
    margin: 0;
    align-self: stretch;
}

.adv-runway-above {
    display: flex;
    justify-content: space-between;
    padding: 36px 0 16px;
}

/* Closing block — full width, editorial weight */
.adv-closing-block {
    padding: 60px clamp(64px, 8vw, 140px) 100px clamp(80px, 10vw, 160px);
    display: flex;
    justify-content: center;
}

.adv-closing-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 1.8vw, 1.55rem);
    color: var(--slate-light);
    max-width: 640px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* ─── Section divider ─── */
.adv-section+.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: clamp(24px, 8vw, 120px);
    right: clamp(24px, 8vw, 120px);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(90, 82, 72, 0.2), transparent);
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
    .adv-beat-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-left: clamp(48px, 7vw, 80px);
        padding-right: clamp(24px, 5vw, 60px);
    }

    .adv-beat--people .adv-beat-inner {
        grid-template-columns: 1fr;
    }

    .adv-beat--people-left {
        position: static;
    }

    .adv-action-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-left: clamp(48px, 7vw, 80px);
        padding-right: clamp(24px, 5vw, 60px);
    }

    .adv-runway {
        padding-left: clamp(48px, 7vw, 80px);
        padding-right: clamp(24px, 5vw, 60px);
    }

    .adv-closing-block {
        padding-left: clamp(48px, 7vw, 80px);
    }

    .adv-closing-text {
        text-align: left;
    }

    .adv-trail {
        display: none;
    }
}

/* ─── Mobile: single column, even padding, centered headers ─── */
@media (max-width: 768px) {

    /* All beat padding unified */
    .adv-beat {
        padding: 60px 0;
    }

    .adv-beat-inner {
        padding-left: 24px;
        padding-right: 24px;
        gap: 2.4rem;
    }

    /* Section header */
    .adv-section-header {
        padding: calc(var(--nav-h) + 48px) 24px 48px;
    }

    /* Eyebrows and headlines center on mobile */
    .adv-eyebrow {
        text-align: center;
    }

    .adv-headline {
        text-align: center;
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .adv-headline em {
        display: inline;
    }

    /* Beat 1 orgs label center */
    .adv-orgs-label {
        text-align: center;
    }

    /* Beat 2 */
    .adv-beat--people .adv-beat-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .adv-beat--people-left {
        gap: 2rem;
    }

    .adv-stat-number {
        font-size: clamp(4rem, 15vw, 6rem);
    }

    .adv-orgs-label--light {
        text-align: center;
    }

    /* Beat 2 pullquote row */
    .adv-people-pullquote-row {
        padding: 32px 24px 48px;
    }

    /* Beat 2: flatten left col into parent so order works across all items */
    .adv-beat--people .adv-beat-inner {
        display: flex;
        flex-direction: column;
    }

    /* display:contents dissolves the wrapper, promoting children to the flex parent */
    .adv-beat--people-left {
        display: contents;
    }

    /* Stat block: center the number */
    .adv-stat-block {
        justify-content: center;
        text-align: center;
    }

    .adv-stat-caption {
        text-align: center;
    }

    /* Reorder: eyebrow 1, stat 2, body col 3, orgs 4 */
    .adv-eyebrow.adv-eyebrow--light {
        order: 1;
    }

    .adv-stat-block {
        order: 2;
    }

    .adv-orgs-dark {
        order: 4;
    }

    .adv-beat--people-right {
        order: 3;
    }

    /* Beat 3 */
    .adv-beat--film {
        padding: 60px 0;
    }

    .adv-beat-inner--centered {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Beat 4 header */
    .adv-action-header {
        padding: 60px 24px 40px;
    }

    .adv-action-headline {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
        text-align: center;
    }

    /* Runway: stack into two labeled groups */
    .adv-runway {
        padding: 0 24px;
    }

    .adv-runway-above {
        display: none;
    }

    /* Hide side-by-side labels */

    .adv-runway-orgs {
        display: block;
        border-top: none;
        border-bottom: none;
    }

    /* Each group gets a label above it */
    .adv-runway-group--mmiw::before {
        content: 'MMIWR & Tribal Justice';
        display: block;
        font-family: 'Crimson Pro', serif;
        font-size: 0.72rem;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--forest);
        font-weight: 600;
        margin-bottom: 0.8rem;
        padding-top: 1.6rem;
        border-top: 1px solid rgba(61, 92, 58, 0.15);
    }

    .adv-runway-group--wolf::before {
        content: 'Wolf & Ecosystem';
        display: block;
        font-family: 'Crimson Pro', serif;
        font-size: 0.72rem;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--forest);
        font-weight: 600;
        margin-bottom: 0.8rem;
        padding-top: 1.6rem;
        border-top: 1px solid rgba(61, 92, 58, 0.25);
    }

    .adv-runway-divider {
        display: none;
    }

    .adv-runway-group {
        flex-direction: column;
    }

    .adv-runway-org {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(61, 92, 58, 0.1);
        padding: 1.2rem 0;
    }

    /* Closing */
    .adv-closing-block {
        padding: 40px 24px 60px;
    }

    .adv-closing-text {
        text-align: center;
        max-width: 100%;
    }
}