/* ============================================================
   home.css — styles specific to the homepage only
   Loaded after diged.css for sections not on other pages
   (hero, mission, pillars, impact, challenge, speaking).
   ============================================================ */


/* ============================================
   HERO
   ============================================ */
.hero {
    padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 8vw, 100px);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    align-items: end;
}
.hero-tag {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0 0 28px;
}
.hero-tag .dot {
    display: inline-block;
    width: 7px; height: 7px;
    background: var(--clay);
    border-radius: 50%;
    margin: 0 10px 2px 0;
    vertical-align: middle;
}
.hero h1 {
    margin-bottom: 32px;
}
.hero-lede {
    font-size: clamp(17px, 1.5vw, 19px);
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 56ch;
    margin: 0 0 36px;
}
.hero-actions {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-bottom: 0;
}

/* Hero stats */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 8px;
}
.stat {
    border-top: 1px solid var(--rule-strong);
    padding-top: 14px;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.stat-num sup { font-size: 0.5em; vertical-align: top; color: var(--clay); }
.stat-label {
    font-size: 13px;
    color: var(--ink-mute);
    margin-top: 6px;
    letter-spacing: 0.04em;
}

/* Speaking ribbon */
.speaking-ribbon {
    margin-top: 56px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 18px 0;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
}
.ribbon-tag {
    background: var(--clay-dark);
    color: var(--bg);
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.ribbon-text { color: var(--ink-soft); }
.ribbon-text strong { color: var(--ink); font-weight: 600; }


/* ============================================
   MISSION
   ============================================ */
.mission {
    padding: clamp(80px, 10vw, 140px) 0;
    border-top: 1px solid var(--rule);
}
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: start;
}
.mission h2 { margin: 0; }
.mission-body {
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink-soft);
}
.mission-body p + p { margin-top: 1.2em; }


/* ============================================
   WHAT WE DO (six pillars)
   ============================================ */
.what {
    padding: clamp(80px, 10vw, 140px) 0;
    background: linear-gradient(180deg, var(--bg) 0%, #EEE7D4 100%);
    border-top: 1px solid var(--rule);
}
.what-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 64px;
}
.what-head h2 {
    font-size: clamp(36px, 5vw, 64px);
    margin: 0;
}
.what-head p {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 8px;
}
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pillar {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 32px 30px 36px;
    position: relative;
    transition: transform .35s cubic-bezier(.2,.7,.3,1.2), border-color .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}
.pillar:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
    box-shadow: 0 16px 40px -20px rgba(26,35,50,.25);
}
.pillar-num {
    font-family: var(--font-display);
    font-size: 14px;
    font-style: italic;
    color: var(--clay);
    font-weight: 500;
    margin-bottom: 18px;
}
.pillar-icon {
    width: 44px; height: 44px;
    margin-bottom: 22px;
    color: var(--clay-dark);
}
.pillar h3 {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: var(--ink);
}
.pillar-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 16px;
}
.pillar p {
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
    font-size: 15.5px;
}
.pillar.is-placeholder {
    background: transparent;
    border: 1px dashed var(--rule-strong);
    color: var(--ink-mute);
}
.pillar.is-placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--rule-strong);
}
.pillar.is-placeholder h3 { color: var(--ink-mute); font-style: italic; }
.pillar.is-placeholder p  { color: var(--ink-mute); }
.placeholder-plus {
    font-size: 36px;
    color: var(--ink-mute);
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-weight: 300;
}


/* ============================================
   IMPACT (dark band)
   ============================================ */
.impact {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--ink);
    color: var(--bg);
}
.impact h2 {
    color: var(--bg);
    font-size: clamp(34px, 4.6vw, 56px);
    margin: 0 0 60px;
    max-width: 18ch;
}
.impact h2 em { color: var(--clay-light); }
.impact .eyebrow { color: var(--clay-light); }
.impact .eyebrow::before { background: var(--clay-light); }
.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule-light);
}
.impact-card {
    padding: 40px 36px;
    border-bottom: 1px solid var(--rule-light);
    border-right: 1px solid var(--rule-light);
}
.impact-card:nth-child(2n) { border-right: none; }
.impact-card h3 {
    color: var(--bg);
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 500;
}
.impact-card p {
    color: rgba(245,241,232,.78);
    line-height: 1.6;
    margin: 0;
    font-size: 15.5px;
}
.impact-num {
    font-family: var(--font-display);
    font-size: 56px;
    line-height: 1;
    color: var(--clay-light);
    margin-bottom: 18px;
    font-weight: 400;
    letter-spacing: -0.02em;
}


/* ============================================
   CHALLENGE
   ============================================ */
.challenge {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--sand);
}
.challenge h2 {
    font-size: clamp(34px, 4.6vw, 56px);
    margin: 0 0 64px;
    max-width: 20ch;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.stat-block {
    border-top: 2px solid var(--ink);
    padding-top: 24px;
}
.stat-block .big {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 84px);
    line-height: 0.9;
    color: var(--ink);
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.stat-block h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}
.stat-block p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}


/* ============================================
   SPEAKING
   ============================================ */
.speaking {
    padding: clamp(80px, 10vw, 120px) 0;
    border-top: 1px solid var(--rule);
}
.speaking-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
}
.speaking h2 {
    font-size: clamp(32px, 4.4vw, 52px);
    margin: 0;
}
.event {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid var(--rule-strong);
}
.event:last-child { border-bottom: 1px solid var(--rule-strong); }
.event-date {
    text-align: center;
    border-right: 1px solid var(--rule);
    padding-right: 24px;
}
.event-date .m {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clay-dark);
}
.event-date .d {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
}
.event-date .y {
    font-size: 12px;
    color: var(--ink-mute);
    margin-top: 2px;
}
.event-body h3 {
    font-size: 20px;
    margin: 0 0 4px;
    font-weight: 500;
}
.event-body p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.event-body em { font-style: italic; color: var(--clay-dark); display: block; margin-top: 6px; }
.pill {
    background: var(--forest);
    color: var(--bg);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ============================================
   ANIMATIONS — quiet, single page-load reveal
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(14px);
        animation: rise .9s cubic-bezier(.16,.84,.2,1) forwards;
    }
    .reveal[data-delay="1"] { animation-delay: .08s; }
    .reveal[data-delay="2"] { animation-delay: .18s; }
    .reveal[data-delay="3"] { animation-delay: .28s; }
    .reveal[data-delay="4"] { animation-delay: .38s; }
    .reveal[data-delay="5"] { animation-delay: .48s; }
    .reveal[data-delay="6"] { animation-delay: .58s; }

    @keyframes rise {
        to { opacity: 1; transform: translateY(0); }
    }

    .in-view-target {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity .8s ease, transform .8s cubic-bezier(.16,.84,.2,1);
    }
    .in-view-target.in-view {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   RESPONSIVE (homepage sections)
   ============================================ */
@media (max-width: 960px) {
    .hero-grid,
    .mission-grid,
    .what-head,
    .speaking-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .impact-grid { grid-template-columns: 1fr; }
    .impact-card,
    .impact-card:nth-child(2n) { border-right: none; }
    .stats-row { grid-template-columns: 1fr; gap: 32px; }
    .event { grid-template-columns: 70px 1fr; }
    .event > .pill { grid-column: 2; justify-self: start; }
}

@media (max-width: 600px) {
    .pillars { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 20px; }
    .hero-stats .stat { flex: 1 1 calc(50% - 10px); }
}

@media (forced-colors: active) {
    .pillar, .impact-card, .stat-block { border: 1px solid CanvasText; }
}
