:root {
  --blue: #0824a7;
  --blue-900: #06145c;
  --blue-700: #123cbd;
  --green: #008d12;
  --green-800: #006b22;
  --teal: #00656a;
  --yellow: #fff200;
  --yellow-soft: #fff7a6;
  --ink: #102038;
  --muted: #5e6a7d;
  --line: #dfe7ef;
  --soft: #f4f8f6;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(6, 20, 92, 0.14);
  --radius: 8px;
  --container: min(1160px, calc(100% - 40px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: var(--container); margin: 0 auto; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 1000; padding: 10px 14px; background: var(--yellow); color: var(--blue-900); font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 99; background: rgba(255,255,255,0.96); border-bottom: 1px solid rgba(8,36,167,0.1); backdrop-filter: blur(16px); }
.nav { width: var(--container); margin: 0 auto; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 230px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand strong { display: block; color: var(--blue-900); line-height: 1.05; font-size: 0.98rem; }
.brand span { display: block; color: var(--green-800); font-size: 0.78rem; font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 3px; }
.nav__links a { text-decoration: none; font-size: 0.78rem; font-weight: 800; color: #24324a; padding: 9px 8px; border-radius: var(--radius); }
.nav__links a:hover, .nav__links a[aria-current="page"] { background: rgba(0,141,18,0.09); color: var(--green-800); }
.nav__toggle { display: none; border: 0; background: var(--blue); color: var(--white); border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; }

.hero { min-height: calc(100vh - 82px); position: relative; display: grid; align-items: center; overflow: hidden; background: var(--blue-900); }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,92,0.9) 0%, rgba(8,36,167,0.72) 45%, rgba(0,107,34,0.32) 100%); }
.hero__content { position: relative; color: var(--white); padding: 92px 0 110px; max-width: 820px; margin-left: max(20px, calc((100vw - 1160px) / 2)); }
.hero__slogan { color: var(--yellow); font-weight: 900; letter-spacing: 0; margin: 0 0 14px; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: 0; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.7rem); max-width: 880px; }
.hero p:not(.hero__slogan) { max-width: 720px; font-size: 1.18rem; margin: 22px 0 0; color: rgba(255,255,255,0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: var(--radius); border: 2px solid transparent; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--light { background: var(--white); color: var(--blue-900); border-color: rgba(255,255,255,0.75); }
.text-link { color: var(--blue); font-weight: 900; text-decoration-thickness: 3px; text-decoration-color: var(--yellow); text-underline-offset: 6px; }

.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--blue { background: linear-gradient(135deg, var(--blue-900), var(--teal)); color: var(--white); }
.section-head { max-width: 750px; margin-bottom: 34px; }
.section-head--center { max-width: 860px; margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { color: var(--green-800); font-size: 0.78rem; font-weight: 950; text-transform: uppercase; letter-spacing: .09em; }
.section--blue .eyebrow, .feature-panel--dark .eyebrow { color: var(--yellow); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-top: 10px; color: var(--blue-900); }
.section--blue h2, .feature-panel--dark h2 { color: var(--white); }
h3 { font-size: 1.15rem; color: var(--blue-900); }
p { color: var(--muted); margin: 14px 0 0; }
.section--blue p, .feature-panel--dark p { color: rgba(255,255,255,0.84); }
.split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 58px; align-items: center; }
.statement-grid, .value-grid, .partner-types { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.statement-grid article, .value-card, .partner-types article, .pillar-card, .pillar-detail, .program-list article, .impact-list, .cta-panel, .contact-info, .contact-form, .story-card, .content-card, .article-card, .timeline-card, .quote-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 44px rgba(16,32,56,0.07); }
.statement-grid article, .value-card, .partner-types article { padding: 26px; }
.statement-grid svg, .value-card svg, .partner-types svg, .pillar-card svg, .pillar-detail svg { color: var(--green); width: 34px; height: 34px; stroke-width: 2.2; margin-bottom: 15px; }

.pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pillar-card { padding: 24px; min-height: 230px; border-top: 4px solid var(--blue); }
.pillar-card--feature { grid-column: span 2; background: linear-gradient(135deg, var(--blue-900), var(--green-800)); border-color: var(--yellow); }
.pillar-card--feature h3, .pillar-card--feature p { color: var(--white); }
.pillar-card--feature svg { color: var(--yellow); }

.feature-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 42px; align-items: center; }
.feature-row--reverse { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
.feature-row--reverse .feature-media { order: 2; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-panel { padding: 42px; border-left: 6px solid var(--yellow); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-panel--dark { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-left: 6px solid var(--yellow); }
.kleos-band, .cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: 36px; }
.kleos-band { background: linear-gradient(100deg, #f7fbff, #ffffff); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.kleos-logo { max-width: 310px; margin-bottom: 18px; }
.impact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.impact-list { padding: 32px; display: grid; align-content: center; border-left: 5px solid var(--green); }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.content-grid--two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.content-card { padding: 28px; border-top: 4px solid var(--green); }
.content-card svg { color: var(--green); width: 34px; height: 34px; margin-bottom: 16px; }
.content-card h2 { font-size: 1.55rem; }
.content-card h3 { font-size: 1.25rem; }
.content-card ul, .quote-panel ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
.content-card li, .quote-panel li { margin: 8px 0; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.article-card { overflow: hidden; display: flex; flex-direction: column; }
.article-card img { width: 100%; height: 210px; object-fit: cover; }
.article-card div { padding: 24px; }
.article-card span { color: var(--green-800); font-size: 0.76rem; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.article-card h2, .article-card h3 { font-size: 1.35rem; margin-top: 10px; }
.article-card a { margin-top: auto; color: var(--blue); font-weight: 900; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.timeline-list { display: grid; gap: 18px; counter-reset: step; }
.timeline-card { position: relative; padding: 28px 28px 28px 82px; border-left: 5px solid var(--green); }
.timeline-card::before { counter-increment: step; content: counter(step); position: absolute; left: 24px; top: 28px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--blue); color: var(--white); border-radius: 50%; font-weight: 950; }
.quote-panel { padding: 34px; background: linear-gradient(135deg, var(--blue-900), var(--green-800)); color: var(--white); }
.quote-panel h2, .quote-panel h3 { color: var(--white); }
.quote-panel p, .quote-panel li { color: rgba(255,255,255,0.86); }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 26px; }
.stat-strip article { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.stat-strip strong { display: block; color: var(--blue-900); font-size: 1.5rem; line-height: 1; }
.stat-strip span { display: block; color: var(--muted); margin-top: 8px; font-weight: 700; }

.section--ecosystem { background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 52%, #f4f8f6 100%); overflow: hidden; }
.ecosystem-map { position: relative; margin-top: 38px; }
.ecosystem-parent { position: relative; z-index: 2; width: min(640px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 24px; background: linear-gradient(135deg, var(--blue-900), var(--green-800)); color: var(--white); border: 1px solid rgba(255,255,255,0.24); border-radius: var(--radius); box-shadow: var(--shadow); }
.ecosystem-parent img { width: 96px; height: 96px; object-fit: contain; background: var(--white); border-radius: 50%; padding: 5px; }
.ecosystem-parent span { display: inline-block; color: var(--yellow); font-size: 0.78rem; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.ecosystem-parent h3 { color: var(--white); font-size: clamp(2rem, 4vw, 3.5rem); margin-top: 3px; }
.ecosystem-parent p { color: rgba(255,255,255,0.86); margin-top: 3px; font-weight: 800; }
.ecosystem-lines { position: relative; height: 76px; width: min(760px, 80%); margin: 0 auto; }
.ecosystem-lines::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 39px; background: linear-gradient(var(--blue), var(--green)); transform: translateX(-50%); }
.ecosystem-lines::after { content: ""; position: absolute; left: 0; right: 0; top: 38px; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), var(--green), transparent); }
.ecosystem-lines span::before, .ecosystem-lines span::after { content: ""; position: absolute; top: 38px; width: 2px; height: 38px; background: linear-gradient(var(--green), rgba(8,36,167,0.35)); }
.ecosystem-lines span::before { left: 0; }
.ecosystem-lines span::after { right: 0; }
.arms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.arm-card { position: relative; min-height: 100%; display: flex; flex-direction: column; padding: 30px; background: rgba(255,255,255,0.94); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: var(--radius); box-shadow: 0 22px 65px rgba(6,20,92,0.11); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.arm-card:hover { transform: translateY(-6px); box-shadow: 0 28px 78px rgba(6,20,92,0.18); border-top-color: var(--yellow); }
.arm-card:focus-visible { outline: 4px solid rgba(255,242,0,0.85); outline-offset: 4px; }
.arm-card--hismil { border-top-color: #5c128d; }
.arm-card--kleos { border-top-color: #168ee7; }
.arm-card__top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.arm-card__top img { max-width: 190px; max-height: 82px; object-fit: contain; }
.arm-card--hismil .arm-card__top img { width: 84px; height: 84px; border-radius: 50%; }
.arm-card__top span { flex: 0 0 auto; padding: 7px 11px; background: rgba(0,141,18,0.1); color: var(--green-800); border: 1px solid rgba(0,141,18,0.18); border-radius: var(--radius); font-size: 0.78rem; font-weight: 950; text-transform: uppercase; letter-spacing: .06em; }
.arm-card h3 { font-size: clamp(1.5rem, 2.4vw, 2.3rem); color: var(--blue-900); }
.arm-card p { margin-top: 12px; }
.section-head--center h2, .arm-card h3, .arm-card p, .arm-card li { overflow-wrap: anywhere; }
.arm-card ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px; padding: 0; margin: 22px 0 24px; list-style: none; }
.arm-card li { position: relative; padding-left: 18px; color: #24324a; font-weight: 750; font-size: 0.92rem; }
.arm-card li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); transform: translateY(-50%); }
.arm-card strong { margin-top: auto; color: var(--blue); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.dual-logos { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.dual-logos img { max-height: 86px; max-width: 260px; object-fit: contain; }
.dual-logos img:first-child { width: 82px; height: 82px; border-radius: 50%; }
.button-stack { display: grid; gap: 12px; min-width: 230px; }
.btn--outline { border-color: var(--line); box-shadow: none; }

.page-hero { padding: 96px 0 76px; color: var(--white); background: linear-gradient(135deg, rgba(6,20,92,0.96), rgba(0,107,34,0.9)), url("assets/hero-community.png") center/cover; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 780px; font-size: 1.12rem; }
.page-logo { max-width: 360px; background: var(--white); padding: 18px; border-radius: var(--radius); margin-bottom: 24px; }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-stack img { height: 360px; width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-stack img:nth-child(2) { margin-top: 42px; }
.philosophy { text-align: center; }
.philosophy .value-grid { margin-top: 28px; }
.pillar-detail-list { display: grid; gap: 18px; }
.pillar-detail { display: grid; grid-template-columns: 62px 1fr; gap: 22px; padding: 28px; }
.pillar-detail h2 { font-size: 1.7rem; }
.program-list { display: grid; gap: 18px; }
.program-list article { padding: 24px; border-left: 5px solid var(--green); }
.program-list h2 { font-size: 1.55rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.story-card { overflow: hidden; }
.story-card img { width: 100%; height: 260px; object-fit: cover; }
.story-card div { padding: 24px; }
.story-card h2 { font-size: 1.45rem; }
.partner-types { grid-template-columns: repeat(3, minmax(0,1fr)); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.gallery-grid img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 14px 38px rgba(16,32,56,0.11); }
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.contact-info, .contact-form { padding: 32px; }
.contact-info p { display: flex; gap: 12px; align-items: center; font-weight: 800; color: var(--ink); }
.contact-info svg { color: var(--green); }
.contact-form { display: grid; gap: 10px; }
.contact-form label { font-weight: 900; color: var(--blue-900); }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #cfd9e5; border-radius: var(--radius); padding: 13px 14px; font: inherit; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(255,242,0,0.55); border-color: var(--blue); }
.form-note { min-height: 24px; font-weight: 800; color: var(--green-800); }

.site-footer { background: var(--blue-900); color: var(--white); padding: 48px 0 28px; }
.footer-grid { width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.35fr 0.85fr 0.8fr; gap: 34px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; background: var(--white); border-radius: 50%; padding: 4px; }
.footer-grid h2, .footer-grid h3 { color: var(--white); }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,0.82); }
.footer-grid a { display: block; text-decoration: none; margin: 7px 0; }
.footer-bottom { width: var(--container); margin: 32px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.7); font-size: 0.9rem; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { color: var(--yellow); font-weight: 900; text-decoration: none; }
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 100; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: var(--white); box-shadow: var(--shadow); }
.whatsapp svg { width: 29px; height: 29px; }
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
#strategic-arms { scroll-margin-top: 92px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .arm-card:hover { transform: none; }
}

@media (max-width: 1040px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { position: fixed; inset: 82px 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line); display: grid; padding: 14px 20px 22px; transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 13px; }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ecosystem-lines { width: min(620px, 76%); }
  .arm-card ul { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 1160px); }
  .brand { min-width: 0; }
  .brand { max-width: calc(100% - 62px); }
  .brand img { width: 52px; height: 52px; }
  .brand > span { display: block; }
  .brand strong { font-size: 0.78rem; max-width: 180px; }
  .brand > span > span { display: none; }
  .nav { position: relative; }
  .nav__toggle { position: fixed; left: min(330px, calc(100vw - 58px)); right: auto; top: 19px; z-index: 200; display: inline-flex; flex: 0 0 44px; margin-left: auto; background: var(--blue); }
  .nav__toggle::before { content: ""; width: 20px; height: 14px; background: linear-gradient(currentColor 0 0) top/100% 2px no-repeat, linear-gradient(currentColor 0 0) center/100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom/100% 2px no-repeat; }
  .nav__toggle svg { display: none; }
  .hero { min-height: 720px; }
  .hero__content { width: min(330px, calc(100vw - 28px)); max-width: min(330px, calc(100vw - 28px)); padding: 74px 0 88px; margin-left: 14px; margin-right: 14px; }
  .hero h1 { font-size: 2.72rem; max-width: 8.8ch; overflow-wrap: normal; }
  .hero p:not(.hero__slogan) { width: min(310px, 100%); max-width: min(310px, 100%); font-size: 1.02rem; overflow-wrap: anywhere; }
  .hero__actions { display: grid; grid-template-columns: 1fr; max-width: 300px; }
  .hero__actions .btn { width: 100%; }
  .section { padding: 68px 0; }
  .split, .feature-row, .feature-row--reverse, .impact-layout, .contact-layout { grid-template-columns: 1fr; }
  .feature-row--reverse .feature-media { order: 0; }
  .statement-grid, .value-grid, .partner-types, .story-grid, .gallery-grid, .content-grid, .content-grid--two, .article-grid, .stat-strip { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card--feature { grid-column: auto; }
  .kleos-band, .cta-panel { display: grid; padding: 26px; }
  .ecosystem-parent { display: grid; justify-items: center; text-align: center; padding: 24px 20px; }
  .ecosystem-parent img { width: 82px; height: 82px; }
  .ecosystem-lines { height: 42px; width: 2px; }
  .ecosystem-lines::before { height: 42px; }
  .ecosystem-lines::after, .ecosystem-lines span::before, .ecosystem-lines span::after { display: none; }
  .arms-grid { grid-template-columns: 1fr; gap: 18px; }
  .arm-card { padding: 24px; }
  .arm-card__top { align-items: flex-start; display: grid; justify-items: start; }
  .arm-card__top img { max-width: 220px; }
  .arm-card ul { grid-template-columns: 1fr; }
  .dual-logos img { max-width: 210px; }
  .button-stack { min-width: 0; }
  .feature-panel { padding: 28px; }
  .photo-stack { grid-template-columns: 1fr; }
  .photo-stack img, .photo-stack img:nth-child(2) { margin-top: 0; height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 260px; }
  .timeline-card { padding-left: 70px; }
}
