/* Focused homepage polish. Keeps the existing LIGHTMGROUP layout and tokens. */
.home-page {
  --home-ink: #17251d;
  --home-muted: #455249;
  --home-line: #d5ddd3;
  background: #f7f7f2;
  color: var(--home-ink);
}

.home-page .hero-main { min-height: min(760px, 76vh); padding-block: 76px 52px; }
.home-page .hero-copy { max-width: 610px; }
.home-page .hero h1 { max-width: 9.8ch; line-height: .96; text-wrap: balance; }
.home-page .hero-desc { max-width: 500px; color: var(--home-muted); font-size: 17px; line-height: 1.75; }
.home-page .hero-actions { margin-top: 34px; }
.home-page .hero-footnote { margin-top: 42px; letter-spacing: .02em; }
.home-page .hero-art { height: 570px; }
.home-page .hero-art > .art-stage,
.home-page .hero-art > .art-label,
.home-page .hero-art > .art-caption { display: none; }
.home-page .africa-visual-stage { position: absolute; inset: 0; display: grid; place-items: center; min-width: 0; }
.home-page .africa-map-shadow { position: absolute; width: 68%; height: 68%; border-radius: 50%; background: radial-gradient(circle, rgba(14,82,43,.28), rgba(14,82,43,0) 68%); filter: blur(16px); transform: translateY(8%); }
.home-page .africa-map-frame { position: relative; width: min(480px, 92%); aspect-ratio: 520 / 560; transform: perspective(900px) rotateY(-7deg) rotateX(2deg); filter: drop-shadow(22px 30px 28px rgba(14,42,27,.16)); }
.home-page .africa-map-frame::before,
.home-page .africa-map-frame::after { content: ''; position: absolute; inset: 7% 10% 5% 8%; border: 1px solid rgba(145,13,53,.3); border-radius: 47% 53% 45% 50%; transform: translate(12px, 15px) scale(.96); z-index: -1; }
.home-page .africa-map-frame::after { border-color: rgba(214,239,141,.4); transform: translate(-8px, -9px) scale(.98); }
.home-page .africa-map-base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: saturate(.82) contrast(1.05) drop-shadow(0 0 18px rgba(214,239,141,.14)); }
.home-page .africa-network { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.home-page .africa-routes path { stroke-width: 1.4; stroke-dasharray: 2 7; animation: africa-route-drift 12s linear infinite; }
.home-page .africa-pulse-lines { opacity: .65; animation: africa-signal-pulse 3.5s ease-in-out infinite; }
.home-page .africa-pulse-lines path { stroke-width: 1.3; }
.home-page .africa-nodes circle { fill: #f3d5dd; stroke: #6d1232; stroke-width: 1.4; }
.home-page .africa-nodes .node-kigali { r: 8; fill: #d6ef8d; stroke: #fff; stroke-width: 2; }
.home-page .africa-node-labels text:first-child { font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.home-page .africa-node-labels text:last-child { font-size: 7px; opacity: .72; letter-spacing: .06em; }
.home-page .africa-visual-label { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.85); border-radius: 999px; background: rgba(255,255,255,.85); box-shadow: 0 10px 30px rgba(18,50,33,.1); color: #21402d; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(9px); }
.home-page .africa-visual-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--wine); }
.home-page .africa-label-north { top: 9%; left: 4%; }
.home-page .africa-label-east { top: 43%; right: -3%; }
.home-page .africa-label-south { bottom: 13%; left: 4%; }
.home-page .africa-visual-caption { position: absolute; right: 1%; bottom: 3%; color: #68766b; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
@keyframes africa-route-drift { to { stroke-dashoffset: -54; } }
@keyframes africa-signal-pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.home-page .section { padding-block: clamp(78px, 9vw, 126px); }
.home-page .section-head { margin-bottom: 52px; }
.home-page .section-head h2,
.home-page .services h2 { text-wrap: balance; }
.home-page .section-head > p:last-child:not(.kicker),
.home-page .split > div > p:not(.kicker),
.home-page .services-intro > p:last-child { color: var(--home-muted); }

.home-page .section[aria-labelledby="credibility-title"] { padding-block: 58px 66px; }
.home-page .section[aria-labelledby="credibility-title"] .section-head { margin-bottom: 30px; }
.home-page .section[aria-labelledby="credibility-title"] h2 { max-width: 510px; }
.home-page .logo-marquee { overflow: hidden; }
.home-page .logo-viewport { overflow: hidden; padding: 4px 0 12px; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.home-page .logo-row { display: flex; width: max-content; gap: 14px; animation: documented-relationships-slide 34s linear infinite; }
.home-page .logo-group { display: flex; gap: 14px; padding-right: 14px; }
.home-page .logo-row a { display: grid; width: clamp(150px, 16vw, 190px); min-height: 92px; place-items: center; padding: 14px 16px; border: 1px solid var(--home-line); border-radius: 12px; background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.home-page .logo-row a:hover { border-color: #b5c5b3; box-shadow: 0 12px 28px rgba(23,37,29,.08); transform: translateY(-2px); }
.home-page .logo-row img { width: auto; max-width: 100%; height: 48px; max-height: 52px; object-fit: contain; }
@keyframes documented-relationships-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.home-page .logo-viewport:hover .logo-row,
.home-page .logo-viewport:focus-within .logo-row { animation-play-state: paused; }

.home-page .services { border-radius: 28px 28px 0 0; }
.home-page .service summary { min-height: 78px; }
.home-page .service summary { gap: 16px; }
.home-page .service-icon { display: grid; width: 38px; height: 38px; place-items: center; flex: 0 0 38px; border: 1px solid #cbd5c8; border-radius: 11px; background: #f7faf4; color: var(--wine); }
.home-page .service-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; }
.home-page .service[open] .service-icon { border-color: #b9d29b; background: #eaf3dd; color: var(--green); }
.home-page .service summary:focus-visible { outline: 3px solid var(--wine); outline-offset: 6px; }
.home-page .service-body { max-width: 610px; color: var(--home-muted); }
.home-page .service-body .text-link { min-height: 40px; }

.home-page .showcases { gap: 34px; }
.home-page .showcase .shot { background: #e6ebe3; }
.home-page .project-visual-link { position: relative; display: block; width: 100%; height: 100%; min-height: inherit; overflow: hidden; }
.home-page .showcase img { object-fit: contain; object-position: center; background: #edf1eb; }
.home-page .showcase .project-image-asset.is-screenshot { object-fit: cover; object-position: top center; }
.home-page .showcase .project-image-asset.is-logo { width: 62%; height: 62%; margin: auto; object-fit: contain; background: transparent; filter: drop-shadow(0 18px 28px rgba(21,48,35,.12)); }
.home-page .project-visual-cta { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.58); border-radius: 999px; background: rgba(20,49,35,.82); color: #fff; font-size: 10px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.home-page .project-visual-cta svg { width: 13px; height: 13px; }
.home-page .project-visual-link:hover .project-visual-cta, .home-page .project-visual-link:focus-visible .project-visual-cta { opacity: 1; transform: none; }
.home-page .showcase:first-child .shot img { object-fit: cover; object-position: top center; }
.home-page .showcase:first-child { grid-template-columns: .8fr 1.2fr; }
.home-page .showcase:first-child .shot { min-height: 500px; }
.home-page .showcase > div:not(.shot) { display: flex; flex-direction: column; align-items: flex-start; }
.home-page .showcase .meta { margin-top: 22px; }
.home-page .showcase .text-link { margin-top: 8px; }

.home-page .stack li { font-size: 13px; line-height: 1.55; }
.home-page .principles article { padding-top: 4px; }
.home-page .principles p, .home-page .process p, .home-page .product-card p { color: var(--home-muted); }
.home-page .product-card { min-height: 374px; overflow: hidden; }
.home-page .product-card > span { color: var(--wine); }
.home-page .product-visual { height: 108px; margin: 18px -4px 18px; overflow: hidden; border: 1px solid rgba(23,37,29,.1); border-radius: 12px; background: #f7faf4; }
.home-page .product-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.home-page .product-ui { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100%; padding: 17px; }
.home-page .product-ui i { grid-column: 1 / -1; display: block; height: 7px; border-radius: 4px; background: #b7cbaa; }
.home-page .product-ui i:nth-child(2) { width: 68%; background: #d7e3cc; }
.home-page .product-ui i:nth-child(3) { width: 42%; background: #e2c2cd; }
.home-page .product-ui b { display: block; height: 35px; border: 1px solid #d3ded0; border-radius: 7px; background: #fff; }
.home-page .product-ui em { grid-column: 1 / -1; display: block; height: 8px; width: 55%; border-radius: 4px; background: var(--wine); }
.home-page .final-cta { background: #73122f; }
.home-page .final-grid h2 { text-wrap: balance; }
.home-page .final-grid > div > p:not(.kicker) { max-width: 470px; }
.home-page .site-footer { padding-top: 72px; }
.home-page .footer-links a { min-height: 36px; display: inline-flex; align-items: center; }
.home-page .wordmark-control { min-height: 40px; }
.home-page .approach-diagram { margin: -4px 0 42px; padding: 15px 0 0; border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
.home-page .approach-diagram svg { width: 100%; height: auto; overflow: visible; }
.home-page .approach-diagram path { fill: none; stroke: #b9c9b2; stroke-width: 2; stroke-dasharray: 4 6; }
.home-page .approach-diagram circle { fill: #eff5e9; stroke: var(--wine); stroke-width: 2; }
.home-page .approach-diagram text { fill: var(--wine); font: 700 10px 'DM Sans', sans-serif; text-anchor: middle; }
.home-page .approach-labels { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: -2px; color: var(--home-muted); font-size: 10px; font-weight: 700; text-align: center; }

@media (max-width: 1100px) {
  .home-page .hero-main { min-height: 650px; }
  .home-page .hero-art { height: 500px; }
  .home-page .africa-map-frame { width: min(430px, 96%); }
  .home-page .logo-row a { width: 170px; }
}

@media (max-width: 800px) {
  .home-page .hero-main { min-height: auto; padding-block: 52px 28px; }
  .home-page .hero-art { height: 400px; }
  .home-page .africa-map-frame { width: min(390px, 88%); }
  .home-page .africa-label-north { left: 0; }
  .home-page .africa-label-east { right: 0; }
  .home-page .africa-label-south { left: 0; }
  .home-page .section[aria-labelledby="credibility-title"] { padding-block: 54px 60px; }
  .home-page .logo-row, .home-page .logo-group { gap: 12px; }
  .home-page .logo-group { padding-right: 12px; }
  .home-page .logo-row a { width: 160px; min-height: 82px; padding-inline: 10px; }
  .home-page .logo-row img { max-width: 112px; height: 44px; }
  .home-page .showcase:first-child { grid-template-columns: 1fr; }
  .home-page .showcase:first-child .shot { min-height: 0; aspect-ratio: 1.7; }
  .home-page .showcase:first-child .shot img { object-fit: contain; }
  .home-page .project-visual-cta { opacity: 1; transform: none; }
  .home-page .approach-diagram { overflow-x: auto; }
  .home-page .approach-diagram svg { min-width: 680px; }
  .home-page .approach-labels { min-width: 680px; }
}

@media (max-width: 520px) {
  .home-page .hero-desc { font-size: 16px; line-height: 1.7; }
  .home-page .hero-art { height: 335px; }
  .home-page .africa-map-frame { width: min(320px, 86%); }
  .home-page .africa-visual-label { padding: 9px 10px; font-size: 7px; }
  .home-page .africa-label-north { top: 4%; }
  .home-page .africa-label-east { top: 42%; }
  .home-page .africa-label-south { bottom: 9%; }
  .home-page .africa-visual-caption { font-size: 7px; }
  .home-page .logo-row a { width: 146px; min-height: 76px; }
  .home-page .logo-row img { max-width: 110px; max-height: 42px; }
  .home-page .showcase:first-child .shot { aspect-ratio: 1.45; }
  .home-page .final-grid h2 { max-width: 10ch; }
  .home-page .service-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .home-page .service summary { gap: 10px; }
  .home-page .product-visual { height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .africa-routes path,
  .home-page .africa-pulse-lines { animation: none; }
  .home-page .logo-row { animation: none; }
  .home-page .logo-viewport { mask-image: none; overflow-x: auto; }
  .home-page .logo-group { flex-wrap: wrap; }
  .home-page .logo-group[aria-hidden="true"] { display: none; }
  .home-page .logo-row a:hover,
  .home-page .btn:hover,
  .home-page .button:hover,
  .home-page .project-visual-cta { transform: none; }
}

[data-theme="dark"] .home-page .service-icon { border-color: #49634b; background: #1d3427; color: #f1a4bc; }
[data-theme="dark"] .home-page .brand img { mix-blend-mode: normal; filter: brightness(0) invert(1); background: transparent; padding: 0; border-radius: 0; }
[data-theme="dark"] .home-page .site-user-avatar { border-color: rgba(220,235,210,.3); }
[data-theme="dark"] .home-page .service[open] .service-icon { border-color: #68865c; background: #2b452f; color: #d6ef8d; }
[data-theme="dark"] .home-page .product-visual { border-color: #49634b; background: #1a3025; }
[data-theme="dark"] .home-page .product-ui b { background: #203a2b; border-color: #49634b; }
[data-theme="dark"] .home-page .approach-diagram { border-color: #405945; }
[data-theme="dark"] .home-page .approach-diagram path { stroke: #6a8867; }
[data-theme="dark"] .home-page .approach-diagram circle { fill: #203a2b; }

.home-page .site-user-avatar{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;border:1px solid rgba(18,61,40,.2);transition:transform .2s ease,box-shadow .2s ease}.home-page .site-user-avatar:hover,.home-page .site-user-avatar:focus-visible{transform:translateY(-1px);box-shadow:0 0 0 3px rgba(139,13,34,.14)}.home-page .site-user-avatar img{width:30px;height:30px;border-radius:50%;object-fit:cover}
