:root {
    --ink: #243b39;
    --ink-soft: #526662;
    --cream: #fbf6e9;
    --paper: #fffdf6;
    --mint: #dcebe1;
    --mint-deep: #1d6254;
    --coral: #d7684c;
    --coral-dark: #ad4936;
    --sun: #e8b84f;
    --line: #d9dfd2;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Trebuchet MS", "Segoe UI", sans-serif;
    --content: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mint-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.4;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 25px; height: 2px; background: var(--coral); }
.section { padding: 94px 0; }
.section[id] { scroll-margin-top: 94px; }
.section-tint { background: var(--cream); }
.section-mint { background: var(--mint); }
.section-head { max-width: 750px; margin: 0 auto 45px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-title {
    font: 700 clamp(2.1rem, 4vw, 3.35rem)/1.08 var(--serif);
    letter-spacing: -.035em;
    margin: 15px 0 16px;
}
.section-intro { max-width: 680px; margin: 0 auto; color: var(--ink-soft); font-size: 17px; }
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 253, 246, .97);
    border-bottom: 1px solid var(--line);
}
.header-content { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.logo-section { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.logo { width: 72px; height: 54px; object-fit: cover; object-position: center; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.org-name { font: 700 17px/1.2 var(--serif); }
.org-tagline { margin-top: 4px; color: var(--ink-soft); font-size: 11px; letter-spacing: .025em; }
.nav-list { display: flex; list-style: none; align-items: center; gap: 5px; }
.nav-link { display: block; padding: 9px 11px; border-radius: 99px; color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--mint-deep); background: var(--mint); }
.mobile-menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 9px; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: currentColor; }

.hero { min-height: 660px; background: var(--ink); color: var(--paper); position: relative; display: grid; align-items: stretch; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 42, 40, .9) 0%, rgba(20, 42, 40, .72) 45%, rgba(20, 42, 40, .1) 100%); }
.hero-inner { position: relative; z-index: 2; width: min(var(--content), calc(100% - 48px)); min-height: 660px; margin: auto; display: flex; align-items: center; padding: 82px 0 108px; }
.hero-copy { max-width: 720px; }
.hero .eyebrow { color: #f2d27e; }
.hero-title { max-width: 770px; margin: 19px 0 20px; font: 700 clamp(2.5rem, 4.5vw, 4.25rem)/.99 var(--serif); letter-spacing: -.045em; }
.hero-subtitle { max-width: 640px; color: rgba(255,253,246,.9); font-size: 18px; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 19px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.btn-primary { color: #fffdf6; background: var(--coral); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-light { color: var(--ink); background: var(--paper); }
.btn-light:hover { background: var(--sun); }
.btn-outline-light { color: var(--paper); border-color: rgba(255,253,246,.68); background: transparent; }
.btn-outline-light:hover { color: var(--ink); background: var(--paper); }
.hero-caption { position: absolute; z-index: 3; right: max(24px, calc((100% - var(--content))/2)); bottom: 32px; width: min(360px, calc(100% - 48px)); color: rgba(255,253,246,.86); text-align: right; font-size: 12px; line-height: 1.5; }
.hero-controls { position: absolute; z-index: 4; bottom: 26px; left: max(24px, calc((100% - var(--content))/2)); display: flex; align-items: center; gap: 8px; }
.gallery-control { min-width: 42px; min-height: 42px; padding: 7px 12px; border: 1px solid rgba(255,253,246,.55); border-radius: 4px; color: var(--paper); background: rgba(28,49,46,.66); font-weight: 700; cursor: pointer; }
.gallery-control:hover { color: var(--ink); background: var(--paper); }
.hero-gallery-arrow { display: grid; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; place-items: center; border: 1px solid rgba(255,253,246,.82); border-radius: 50%; color: var(--ink); background: rgba(255,253,246,.94); box-shadow: 0 4px 16px rgba(12, 27, 25, .2); }
.hero-gallery-arrow:hover { color: var(--paper); background: var(--coral); }
.hero-gallery-arrow svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.slide-count { padding: 0 8px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--paper); }
.hero-controls .slide-count { display: grid; min-width: 62px; min-height: 36px; padding: 0 10px; place-items: center; border: 1px solid rgba(255,253,246,.3); border-radius: 999px; background: rgba(28,49,46,.52); }

.impact-banner { padding: 28px 0; color: var(--ink); background: var(--sun); }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.impact-item { padding: 5px 12px; border-left: 2px solid rgba(36,59,57,.28); }
.impact-item:first-child { border-left: 0; }
.impact-number { font: 700 20px/1.2 var(--serif); }
.impact-label { margin-top: 5px; color: #4e5c47; font-size: 13px; }

.about-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 70px; align-items: center; }
.about-main .section-title { max-width: 620px; }
.about-main .lead-text { max-width: 750px; margin: 0 0 20px; font: 700 21px/1.5 var(--serif); }
.body-text { margin: 0 0 16px; color: var(--ink-soft); line-height: 1.8; }
.about-stats { display: grid; gap: 12px; }
.stat-card { padding: 21px 24px; border-radius: 5px 24px 5px 5px; background: var(--cream); border: 1px solid var(--line); }
.stat-number { color: var(--coral-dark); font: 700 26px/1.15 var(--serif); }
.stat-label { margin-top: 4px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }

.tools-section { background: var(--mint); }
.tools-grid-main { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; align-items: stretch; }
.tool-card-large { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 30px; border-radius: 7px 28px 7px 7px; background: var(--paper); border: 1px solid #c7d8ca; }
.tool-card-large::before { position: absolute; content: ""; height: 5px; inset: 0 0 auto; background: var(--coral); }
.tool-card-large:nth-child(2)::before { background: var(--sun); }
.tool-header { display: flex; gap: 16px; align-items: flex-start; margin: 8px 0 18px; }
.tool-icon-large { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; color: var(--mint-deep); background: var(--mint); border-radius: 50% 50% 50% 8px; }
.tool-icon-large .icon { width: 27px; height: 27px; }
.tool-title-large { font: 700 24px/1.16 var(--serif); }
.tool-subtitle-large { margin-top: 6px; color: var(--coral-dark); font-size: 13px; font-weight: 800; }
.tool-description-large { margin-bottom: 18px; color: var(--ink-soft); line-height: 1.75; }
.tool-features-list { margin-top: auto; padding: 18px; background: var(--cream); border-radius: 5px; }
.features-heading { margin-bottom: 8px; font-size: 14px; }
.features-ul { list-style: none; }
.features-ul li { position: relative; margin: 7px 0; padding-left: 21px; color: var(--ink-soft); font-size: 14px; }
.features-ul li::before { content: ""; position: absolute; left: 1px; top: .68em; width: 7px; height: 7px; background: var(--coral); border-radius: 50%; }
.tool-cta, .event-cta { display: inline-block; align-self: flex-start; margin-top: 18px; color: var(--mint-deep); font-weight: 800; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.trace-explainer { margin-top: 44px; padding: 34px; background: var(--ink); color: var(--paper); border-radius: 8px 34px 8px 8px; }
.trace-heading { max-width: 690px; margin-bottom: 24px; }
.trace-heading .eyebrow { color: #f2d27e; }
.trace-heading h3 { margin: 11px 0; font: 700 clamp(1.7rem, 3vw, 2.5rem)/1.1 var(--serif); }
.trace-heading p { color: rgba(255,253,246,.78); }
.trace-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trace-step { padding: 18px; min-height: 152px; color: var(--ink); background: var(--paper); border-top: 4px solid var(--coral); }
.trace-step:nth-child(even) { border-color: var(--sun); }
.trace-step b { display: block; margin-bottom: 8px; font: 700 17px/1.25 var(--serif); }
.trace-step p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.trace-image-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; margin-top: 12px; }
.trace-carousel { position: relative; min-width: 0; height: 245px; overflow: hidden; background: var(--ink); }
.trace-image { width: 100%; height: 100%; object-fit: cover; }
.trace-photo-caption { position: absolute; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 48px 13px 12px; color: var(--paper); background: linear-gradient(0deg, rgba(24,43,40,.94), rgba(24,43,40,0)); }
.trace-photo-caption p { max-width: 330px; font-size: 12px; line-height: 1.45; }
.trace-photo-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.trace-photo-controls .gallery-control { min-width: auto; min-height: 36px; padding: 5px 8px; font-size: 11px; }
.trace-photo-controls .slide-count { padding-inline: 3px; font-size: 11px; }
.gallery-control:disabled { cursor: not-allowed; opacity: .72; }
.trace-note { display: flex; flex-direction: column; justify-content: center; padding: 26px; color: var(--ink); background: #f3d184; }
.trace-note b { margin-bottom: 8px; font: 700 21px/1.15 var(--serif); }
.trace-note p { font-size: 14px; }

.pillars-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; align-items: stretch; }
.pillar-card { padding: 27px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px 25px 6px 6px; }
.pillar-number { display: inline-block; margin-bottom: 16px; color: var(--coral-dark); font: 700 26px/1 var(--serif); }
.pillar-title { margin-bottom: 13px; font: 700 21px/1.2 var(--serif); }
.pillar-description { margin-bottom: 23px; color: var(--ink-soft); font-size: 14px; }
.highlight-title { margin-bottom: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.framework-box { padding: 16px; background: var(--cream); border-left: 3px solid var(--sun); }
.framework-header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.framework-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #f2d184; color: var(--ink); font-size: 14px; font-weight: 800; }
.framework-name { font: 700 15px/1.3 var(--serif); }
.framework-text, .implementation-list { color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.framework-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.tag { padding: 5px 8px; color: var(--mint-deep); background: var(--mint); font-size: 10px; font-weight: 800; border-radius: 99px; }
.implementation-list { list-style: none; }
.implementation-list li { margin-bottom: 12px; }
.implementation-list li:last-child { margin-bottom: 0; }
.implementation-list strong { color: var(--ink); }

.events-grid-main { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.event-card-main { display: flex; flex-direction: column; padding: 25px 22px; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--coral); border-radius: 5px 5px 22px 5px; }
.event-card-main:nth-child(2) { border-top-color: var(--mint-deep); }
.event-card-main:nth-child(3) { border-top-color: var(--sun); }
.event-badge { align-self: flex-start; margin: 0 0 15px; padding: 5px 10px; color: var(--coral-dark); background: #f8e8de; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event-badge.policy { color: var(--mint-deep); background: var(--mint); }
.event-title-main { font: 700 23px/1.14 var(--serif); }
.event-meta-main { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.event-location-main, .event-type { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.event-type { padding-left: 8px; border-left: 1px solid var(--line); }
.event-description-main { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.event-topics-main { margin-top: 18px; padding: 15px; background: var(--cream); }
.topics-heading { margin-bottom: 8px; font-size: 13px; }
.topics-list { list-style: none; }
.topics-list li { position: relative; margin: 7px 0; padding-left: 15px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.topics-list li::before { position: absolute; left: 0; color: var(--coral); content: "•"; font-weight: 800; }
.event-cta { margin-top: auto; padding-top: 17px; font-size: 13px; }

.leadership-layout { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0,1.2fr); max-width: 880px; margin: 0 auto; background: var(--paper); border-radius: 7px 38px 7px 7px; overflow: hidden; border: 1px solid #c7d8ca; }
.leadership-photo { width: 100%; height: 100%; min-height: 350px; object-fit: cover; object-position: center 24%; }
.leadership-card { padding: 43px; align-self: center; }
.leadership-name { font: 700 32px/1.1 var(--serif); }
.leadership-title { margin: 10px 0 17px; color: var(--coral-dark); font-size: 14px; font-weight: 800; }
.leadership-bio { color: var(--ink-soft); line-height: 1.8; }

.gallery-section { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: 1.25fr .85fr .85fr; grid-template-rows: 255px 255px; gap: 15px; }
.gallery-item { position: relative; min-width: 0; overflow: hidden; background: var(--ink); }
.gallery-item:first-child { grid-row: span 2; }
.gallery-item:last-child { grid-column: span 2; }
.gallery-image { position: relative; width: 100%; height: 100%; object-fit: cover; }
.gallery-overlay { position: absolute; inset: auto 0 0; padding: 38px 20px 18px; color: var(--paper); background: linear-gradient(0deg, rgba(24,43,40,.88), rgba(24,43,40,0)); }
.gallery-title { font: 700 20px/1.2 var(--serif); }
.gallery-caption { margin-top: 6px; color: rgba(255,253,246,.87); font-size: 12px; line-height: 1.5; }
.gallery-section #galleryTitle { scroll-margin-top: 94px; }

.cta-section { padding: 76px 0; color: var(--paper); background: var(--mint-deep); }
.cta-section .eyebrow { color: #f2d27e; }
.cta-content { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-title { font: 700 clamp(2.3rem, 4vw, 3.5rem)/1 var(--serif); }
.cta-text { max-width: 660px; margin: 17px auto 25px; color: rgba(255,253,246,.84); font-size: 17px; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.footer { padding: 54px 0 20px; color: var(--paper); background: #233b38; }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-bottom: 40px; }
.footer-heading { margin-bottom: 17px; color: #f2d27e; font: 700 19px/1.2 var(--serif); }
.footer-buttons, .footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-btn, .footer-nav a { color: rgba(255,253,246,.83); font-size: 13px; text-decoration: none; }
.footer-btn:hover, .footer-nav a:hover { color: #f2d27e; text-decoration: underline; }
.footer-bottom { padding-top: 18px; border-top: 1px solid rgba(255,253,246,.2); color: rgba(255,253,246,.65); font-size: 12px; }

@media (max-width: 980px) {
    .header-content { min-height: 74px; }
    .mobile-menu-toggle { display: block; }
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 24px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
    .nav.active { display: block; }
    .nav-list { flex-wrap: wrap; justify-content: center; }
    .about-layout { gap: 35px; }
    .pillars-grid, .events-grid-main { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .pillar-card:last-child, .event-card-main:last-child { grid-column: 1 / -1; }
    .trace-steps { grid-template-columns: repeat(2,1fr); }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 210px 210px; }
    .gallery-item:first-child { grid-row: span 2; }
    .gallery-item:last-child { grid-column: auto; }
}
@media (max-width: 767px) {
    .container, .hero-inner { width: min(100% - 34px, var(--content)); }
    .section { padding: 67px 0; }
    .logo { width: 58px; height: 46px; }
    .org-name { max-width: 185px; font-size: 14px; }
    .org-tagline { font-size: 10px; }
    .hero, .hero-inner { min-height: 720px; }
    .hero-inner { align-items: flex-start; padding: 80px 0 150px; }
    .hero-title { font-size: clamp(2.25rem, 10.5vw, 3.5rem); }
    .hero-subtitle { font-size: 16px; }
    .hero-shade { background: linear-gradient(90deg, rgba(20,42,40,.91), rgba(20,42,40,.66)), linear-gradient(0deg, rgba(20,42,40,.6), transparent 55%); }
    .hero-controls { left: 17px; bottom: 24px; }
    .hero-caption { right: 17px; bottom: 81px; text-align: left; }
    .impact-grid { grid-template-columns: 1fr 1fr; gap: 14px 8px; }
    .impact-item:nth-child(odd) { border-left: 0; }
    .impact-item { padding-left: 12px; }
    .about-layout, .tools-grid-main { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .stat-card:last-child { grid-column: 1 / -1; }
    .tool-card-large { padding: 24px 20px; }
    .trace-explainer { padding: 23px 17px; }
    .trace-steps { grid-template-columns: 1fr 1fr; gap: 8px; }
    .trace-step { min-height: 163px; padding: 14px 12px; }
    .trace-image-row { grid-template-columns: 1fr; }
    .trace-carousel { height: 260px; }
    .trace-photo-caption { align-items: flex-start; flex-direction: column; gap: 8px; }
    .trace-photo-caption p { max-width: none; }
    .trace-photo-controls { justify-content: flex-start; }
    .pillars-grid, .events-grid-main { grid-template-columns: 1fr; }
    .pillar-card:last-child, .event-card-main:last-child { grid-column: auto; }
    .leadership-layout { grid-template-columns: 1fr; }
    .leadership-photo { height: 310px; min-height: 0; object-position: center 22%; }
    .leadership-card { padding: 27px 23px 32px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 210px 210px; gap: 9px; }
    .gallery-item:first-child { grid-column: 1 / -1; grid-row: auto; }
    .gallery-item:last-child { grid-column: 1 / -1; }
    .gallery-title { font-size: 17px; }
    .gallery-overlay { padding: 34px 12px 12px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 25px; }
}
@media (max-width: 420px) {
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; }
    .trace-steps { grid-template-columns: 1fr; }
    .trace-step { min-height: auto; }
    .about-stats { grid-template-columns: 1fr; }
    .stat-card:last-child { grid-column: auto; }
    .footer-content { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
