.home-preview { --home-space: clamp(48px, 6vw, 88px); }
.home-preview section[id] { scroll-margin-top: 102px; }
.home-preview h2 { font-size: clamp(30px, 3.1vw, 42px); line-height: 1.15; font-weight: 700; color: var(--green); }
.home-preview p { line-height: 1.65; }
.home-content-notice { padding-block: 18px; color: var(--green); }
.home-section { padding-block: var(--home-space); }
.home-label { display: inline-block; color: var(--green); font-size: 15px; font-weight: 600; margin-bottom: 18px; }
/* same look as the site's existing button (globals/component-button): orange, white text, black on hover */
.home-button { display: inline-flex; align-items: center; gap: 24px; min-height: 54px; background: var(--orange); color: #fff; border-radius: 40px; padding: 8px 9px 8px 22px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.home-button > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #ff964d; flex-shrink: 0; }
.home-button:hover { background: #000; }
.home-button:hover > span { background: var(--orange); }
.home-hero { position: relative; min-height: 690px; min-height: min(780px, calc(100svh - 86px)); display: flex; align-items: end; isolation: isolate; background: var(--green); color: #fff; }
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.home-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 25, 17, .84), rgba(0, 25, 17, .16) 90%); }
.home-hero-content { padding-block: 105px 64px; }
.home-hero-image-link { position: absolute; inset: 0; }
.home-hero-content { position: relative; pointer-events: none; }
.home-hero-content a { pointer-events: auto; }
.home-hero h1 { font-size: clamp(36px, 4.35vw, 60px); line-height: 1.06; max-width: 850px; letter-spacing: -.025em; font-weight: 700; }
.home-hero p { max-width: 700px; margin: 24px 0; font-size: 18px; }
.home-intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 95px; }
.home-intro h2 { max-width: 390px; }
.home-intro p { margin-bottom: 16px; font-size: 17px; }
.home-intro .home-lead { font-size: 23px; line-height: 1.45; color: var(--green); }
.home-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.home-values h3 { color: var(--green); font-size: 21px; margin-bottom: 10px; }
.home-values p { font-size: 16px; color: var(--muted); }
.home-heading { text-align: center; max-width: 750px; margin: 0 auto 36px; }
.home-heading p { max-width: 650px; margin: 18px auto 0; font-size: 18px; }
.home-impact { background: #f7faf8; }
.home-impact-gallery { display: flex; gap: 18px; }
.home-impact-card { position: relative; flex: 1; min-width: 0; min-height: 440px; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; color: #fff; background: var(--green); isolation: isolate; transition: flex .35s ease; }
.home-impact-card > img { position: absolute; inset: 0; z-index: -2; object-fit: cover; width: 100%; height: 100%; }
.home-impact-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #00271ef5, #00271ea6 45%, #00271e80); }
.home-impact-card h3 button { color: white; background: none; border: 0; text-align: left; font-size: 21px; font-weight: 600; padding: 26px; width: 100%; min-height: 76px; text-shadow: 0 1px 5px #0008; }
.home-impact-card h3 button:focus-visible { outline-color: white; outline-offset: -6px; }
.home-impact-copy { padding: 70px 28px 30px; margin-top: auto; }
.home-impact-copy p { font-size: 21px; font-weight: 500; line-height: 1.4; }
.home-impact-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0; }
.home-impact-metrics > div { display: grid; grid-template-rows: auto 1fr; text-align: center; overflow-wrap: anywhere; }
.home-impact-metrics dt { grid-row: 2; font-size: 16px; line-height: 1.35; margin-top: 6px; }
.home-impact-metrics dd { grid-row: 1; margin: 0; font-size: clamp(27px, 2.6vw, 38px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.home-impact-gallery:not(.is-interactive) { flex-direction: column; }
.home-impact-gallery.is-interactive .home-impact-card { flex: .7; }
.home-impact-gallery.is-interactive .home-impact-card.is-active { flex: 3; }
.home-impact-gallery.is-interactive .home-impact-card:not(.is-active) h3 button { position: absolute; inset: 0; height: 100%; writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; display: flex; align-items: start; padding: 28px; }
.home-impact-note { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 22px; }
.home-impact-note p { font-size: 15px; color: var(--muted); }
.pillar-section-heading { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 80px; margin-bottom: 56px; }
.pillar-section-heading h2 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -.025em; }
.pillar-section-heading > p { font-size: 18px; max-width: 470px; padding-bottom: 4px; }
.home-pillars { display: grid; gap: 88px; }
.home-pillar { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.pillar-portrait { position: relative; align-self: stretch; margin: 0; min-height: 650px; border-radius: 16px; overflow: hidden; background: var(--green); color: white; isolation: isolate; }
.pillar-portrait > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pillar-portrait::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #002e24e8, #002e2450 38%, transparent 70%); }
.pillar-portrait figcaption { position: absolute; bottom: 34px; left: 36px; right: 36px; }
.pillar-portrait figcaption > span { font-size: 16px; font-weight: 500; }
.pillar-portrait h3 { font-size: clamp(90px, 10vw, 144px); font-weight: 700; line-height: 1.05; letter-spacing: -.065em; margin: 5px 0 12px -5px; }
.pillar-portrait figcaption > p { font-size: 18px; max-width: 330px; }
.home-pillar:nth-child(even) .pillar-portrait { grid-column: 2; grid-row: 1; }
.home-pillar:nth-child(even) .pillar-story { grid-column: 1; grid-row: 1; }
.pillar-story h4 { color: var(--green); font-size: clamp(30px, 3vw, 42px); line-height: 1.15; max-width: 400px; letter-spacing: -.02em; }
.pillar-story-intro { font-size: 17px; margin-top: 18px; max-width: 500px; }
.pillar-program-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 32px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--green); }
.pillar-program-label > span { color: var(--muted); font-size: 13px; font-weight: 400; white-space: nowrap; }
.pillar-program { border-top: 1px solid var(--line); }
.pillar-program:last-child { border-bottom: 1px solid var(--line); }
.pillar-program summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; padding: 17px 0; min-height: 64px; color: var(--green); font-size: 22px; line-height: 1.2; font-weight: 600; }
.pillar-program summary::-webkit-details-marker { display: none; }
.pillar-program-toggle { width: 30px; height: 30px; padding: 5px; border-radius: 50%; color: var(--green); background: var(--tint); }
.pillar-program[open] .pillar-program-toggle { background: var(--orange); color: #fff; }
.pillar-program[open] .plus-stroke { display: none; }
.pillar-program summary:hover > span { text-decoration: underline; text-underline-offset: 5px; }
.pillar-program-description { padding: 0 42px 18px 0; }
.pillar-program-description > p { font-size: 16px; color: var(--muted); }
.pillar-program-description .text-link { margin-top: 8px; font-size: 14px; }
.pillar-all-link { margin-top: 20px; }
@media (min-width: 921px) {
    .home-pillar:nth-child(even) .pillar-story { padding-left: 35px; }
}
@media (max-width: 1100px) {
    .home-pillar { gap: 38px; }
    .pillar-section-heading { gap: 38px; }
}
@media (max-width: 920px) {
    .home-pillar { grid-template-columns: 1fr; gap: 30px; }
    .home-pillar:nth-child(even) .pillar-portrait, .home-pillar:nth-child(even) .pillar-story { grid-column: auto; grid-row: auto; }
    .pillar-portrait { min-height: 460px; }
    .pillar-story h4, .pillar-story-intro { max-width: none; }
    .pillar-section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
    .pillar-section-heading > p { max-width: 600px; }
}
@media (max-width: 700px) {
    .home-pillars { gap: 55px; }
    .pillar-portrait { min-height: 380px; }
    .pillar-portrait figcaption { bottom: 24px; left: 24px; right: 24px; }
    .pillar-portrait h3 { font-size: 92px; }
    .pillar-portrait figcaption > p { font-size: 16px; }
    .pillar-portrait figcaption > span { font-size: 14px; }
    .pillar-story-intro, .pillar-section-heading > p { font-size: 16px; }
    .pillar-program summary { font-size: 20px; gap: 12px; }
    .pillar-program-description { padding-right: 0; }
}
.home-connections { display: grid; grid-template-columns: .85fr 1.4fr; gap: 16px 70px; margin-top: 40px; padding: 32px 36px; background: var(--tint); border-radius: 14px; }
.home-connections h3 { font-size: 26px; color: var(--green); line-height: 1.25; grid-row: span 2; }
.home-connections p { font-size: 16px; }
.home-connections strong { font-weight: 600; }
.home-programs { background: var(--green); color: white; }
.home-program-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.home-program-intro { grid-column: 2; grid-row: 1; }
.home-programs h2, .home-programs .home-label { color: white; }
.home-program-intro p { font-size: 17px; margin-block: 24px; }
.home-program-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(195px, auto); gap: 18px; }
.home-program-tile { position: relative; display: flex; align-items: end; min-height: 240px; border-radius: 14px; overflow: hidden; isolation: isolate; overflow-wrap: anywhere; }
.home-program-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .25s; }
.home-program-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #001e16ed, #001e1610 85%); z-index: -1; }
.home-program-tile > div { padding: 70px 22px 22px; }
.home-program-tile span { font-size: 13px; }
.home-program-tile h3 { font-size: 24px; line-height: 1.1; margin: 8px 0; }
.home-program-tile p { font-size: 14px; line-height: 1.45; }
.home-program-tile:nth-child(1) { grid-row: span 3; }
.home-program-tile:nth-child(3), .home-program-tile:nth-child(4) { grid-row: span 2; }
.home-program-tile:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.home-program-tile:hover > img { transform: scale(1.035); }
.home-notes-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 3px solid #fbd8bf; padding-bottom: 15px; margin-bottom: 28px; }
.home-notes-heading h3 { font-size: 24px; color: var(--green); }
.home-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.home-note { display: grid; grid-template-columns: .9fr 1fr; border-radius: 14px; overflow: hidden; background: #fbf5f5; }
.home-note > img { width: 100%; height: 100%; min-height: 275px; object-fit: cover; }
.home-note > div { padding: 25px; }
.home-note span { font-size: 13px; color: #276b83; }
.home-note h3 { font-size: 23px; line-height: 1.25; color: var(--green); margin: 12px 0; }
.home-note p { font-size: 15px; }
.home-note strong { display: block; font-size: 14px; margin-top: 18px; color: #a33e00; }
.home-note:hover strong { text-decoration: underline; text-underline-offset: 4px; }
#cta.home-section { padding-top: 12px; }
.home-partnership { position: relative; background: var(--green); color: #fff; border-radius: 14px; display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 30px; padding: 55px 55px 0; }
.home-partnership > div { padding-bottom: 55px; }
.home-partnership h2, .home-partnership .home-label { color: white; }
.home-partnership p { font-size: 17px; margin: 22px 0 26px; }
.home-partnership > img { width: 100%; height: 430px; object-fit: contain; object-position: bottom; }
#partners.home-section { padding-top: 0; }
.home-partners { text-align: center; }
.home-partners h2 { font-size: clamp(27px, 2.6vw, 35px); }
.home-partners > p { font-size: 17px; margin-top: 16px; }
.home-partner-logos { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 24px 38px; margin: 40px 0 20px; }
.home-partner-logo { display: flex; align-items: center; width: 165px; min-height: 90px; }
.home-partner-logo a { width: 100%; }
.home-partner-logo.is-highlighted { width: 210px; }
.home-partner-logos img { width: 100%; height: 75px; object-fit: contain; }
.home-marquee { padding: 23px 24px; background: var(--blue); color: #fff; text-align: center; }
.home-marquee p { font-size: clamp(20px, 2.5vw, 34px); font-weight: 600; }
.home-marquee span { display: inline-block; margin-inline: 20px; }
@media (max-width: 1100px) {
    .home-intro { gap: 40px; }
    .home-program-layout { grid-template-columns: 1fr; gap: 35px; }
    .home-program-intro { grid-column: 1; grid-row: 1; max-width: 620px; }
    .home-notes { grid-template-columns: 1fr; }
    .home-note { grid-template-columns: 250px 1fr; }
    .home-note > img { min-height: 245px; }
    .home-partnership { padding: 38px 35px 0; }
}
@media (max-width: 700px) {
    .home-hero { min-height: 720px; }
    .home-hero > img { object-position: 20% center; }
    .home-hero-content { padding-block: 100px 42px; }
    .home-hero h1 { font-size: 39px; }
    .home-hero p { font-size: 17px; }
    .home-intro { grid-template-columns: 1fr; gap: 28px; }
    .home-intro .home-lead { font-size: 21px; }
    .home-values { grid-template-columns: 1fr; gap: 24px; margin-top: 25px; }
    .home-heading p { font-size: 16px; }
    .home-impact-gallery { flex-direction: column; }
    .home-impact-card { min-height: 355px; display: flex; flex-direction: column; }
    .home-impact-copy { position: static; padding: 0 26px 26px; margin-top: auto; }
    .home-impact-copy h4 { font-size: 25px; }
    .home-impact-copy p { font-size: 16px; }
    .home-impact-metrics { gap: 12px; margin-top: 20px; }
    .home-impact-metrics dt { font-size: 13px; }
    .home-impact-note, .home-notes-heading { align-items: start; flex-direction: column; gap: 8px; }
    .home-connections { grid-template-columns: 1fr; gap: 16px; padding: 26px; }
    .home-connections h3 { grid-row: auto; }
    .home-program-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 14px; }
    .home-program-tile { min-height: 260px; }
    .home-program-tile:nth-child(n) { grid-row: auto; }
    .home-program-tile:first-child { grid-column: span 2; min-height: 330px; }
    .home-program-tile > div { padding: 17px; }
    .home-program-tile h3 { font-size: 20px; }
    .home-note { grid-template-columns: 1fr; }
    .home-note > img { height: 230px; min-height: 0; }
    .home-partnership { grid-template-columns: 1fr; padding: 30px 26px 0; gap: 0; }
    .home-partnership > div { padding-bottom: 15px; }
    .home-partnership > img { height: 300px; }
    .home-partner-logos { gap: 20px 28px; margin-top: 25px; }
    .home-partner-logo { width: 120px; }
    .home-partner-logo.is-highlighted { width: 155px; }
    .home-marquee span { margin-inline: 8px; }
}
@media (max-width: 380px) {
    .home-program-mosaic { grid-template-columns: 1fr; }
    .home-program-tile:first-child { grid-column: auto; }
    .home-hero h1 { font-size: 35px; }
}
@media (max-width: 480px) {
    .home-impact-metrics { grid-template-columns: 1fr; gap: 16px; }
    .home-impact-metrics > div { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 18px; text-align: left; }
    .home-impact-metrics dd { flex: 0 0 44%; font-size: 30px; }
    .home-impact-metrics dt { flex: 1; margin: 0; font-size: 14px; overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .home-preview *, .home-preview *::before, .home-preview *::after { transition: none !important; animation: none !important; }
}

/* ---- Live homepage compatibility: the mockup got these from its own page shell (public/mockups/project-archive.css). ---- */
.home-preview { --green: #00594c; --blue: #4aa2c1; --orange: #f96906; --ink: #333; --muted: #626b68; --line: #dce6e2; --tint: #f0f7f4; font-family: "Hanken Grotesk", system-ui, sans-serif; color: var(--ink); }
body:has(.mm-header) .home-preview { padding-top: 80px; } /* the fixed header is 80px high (72px on phones) */
@media (max-width: 600px) { body:has(.mm-header) .home-preview { padding-top: 72px; } }
.home-preview .container { width: min(1240px, calc(100% - 80px)); max-width: none; margin-inline: auto; padding-inline: 0; }
@media (max-width: 600px) { .home-preview .container { width: calc(100% - 36px); } }
.home-preview .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.home-preview .text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-weight: 700; min-height: 44px; font-size: 14px; }
.home-preview .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-preview .home-fit-links { display: flex; gap: 22px; flex-wrap: wrap; }
.home-preview .home-know { margin-top: 40px; padding: 34px; border-radius: 10px; background: var(--tint); display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.home-preview .home-know h3 { color: var(--green); font-size: 26px; line-height: 1.2; margin-top: 8px; }
.home-preview .home-know p { line-height: 1.65; color: var(--ink); }
.home-preview .home-know .home-know-links { grid-column: 2; display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 800px) { .home-preview .home-know { grid-template-columns: 1fr; gap: 14px; padding: 24px; } .home-preview .home-know .home-know-links { grid-column: 1; } }
