/* TechOps Living Topography design direction */
:root {
  --topo-cyan: #10d8e8;
  --topo-green: #49c887;
  --topo-blue: #1265ce;
  --topo-panel: rgba(5, 22, 35, .82);
  --topo-rule: rgba(55, 207, 190, .18);
}

[data-theme="light"] {
  --topo-panel: rgba(255, 255, 255, .88);
  --topo-rule: rgba(12, 104, 88, .18);
}

body { background-image: url("assets/topography/namibia-network-field-v2.png"); background-size: 0 0; }
.site-header { height: 78px; background: rgba(3, 15, 27, .82); border-color: var(--topo-rule); }
[data-theme="light"] .site-header { background: rgba(244, 247, 247, .9); }
.site-header .nav { height: 78px; }
.site-header .brand-crop { width: 42px; height: 45px; border: 0; background: transparent; }
.site-header .brand-crop img { width: 136px; height: 91px; left: -47px; top: -15px; }
.site-header .brand-word strong { font-size: 16px; letter-spacing: .18em; }
.site-header .nav-links a { padding-block: 27px; }
.site-header .nav-links a::after { bottom: 16px; background: var(--topo-green); }
.theme-button { border-color: var(--topo-rule); }
.button { border-radius: 4px; letter-spacing: -.01em; }
.button i, .text-link i { font-size: 17px; }
.button-primary { background: var(--topo-green); border-color: var(--topo-green); box-shadow: 0 12px 35px rgba(73, 200, 135, .14); }
.button-primary:hover { background: #61d89a; border-color: #61d89a; box-shadow: 0 16px 42px rgba(73, 200, 135, .22); }
.button-outline { border-color: rgba(73, 200, 135, .58); color: var(--topo-green); }
.eyebrow { color: var(--topo-green); }

.topo-hero { position: relative; min-height: 650px; overflow: hidden; border-bottom: 1px solid var(--topo-rule); background: #03101d; }
.topo-stage { position: relative; min-height: 650px; isolation: isolate; perspective: 1200px; }
.topo-field { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: right center; opacity: .88; transform: translate3d(var(--map-x, 0), var(--map-y, 0), 0); transition: transform .25s ease-out; }
.topo-stage::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #03101d 0%, rgba(3,16,29,.94) 30%, rgba(3,16,29,.24) 66%, rgba(3,16,29,.06)); pointer-events: none; }
[data-theme="light"] .topo-hero { background: #edf3f2; }
[data-theme="light"] .topo-field { opacity: .55; filter: saturate(.8) brightness(1.18); }
[data-theme="light"] .topo-stage::after { background: linear-gradient(90deg, #f4f7f7 0%, rgba(244,247,247,.92) 32%, rgba(244,247,247,.28) 68%, rgba(244,247,247,.08)); }
.topo-hero-grid { position: relative; min-height: 650px; display: grid; grid-template-columns: .82fr 1.18fr; }
.topo-copy { align-self: center; width: min(520px, 100%); padding: 62px 0 70px; }
.topo-copy h1 { margin: 24px 0 22px; font-size: clamp(62px, 6.1vw, 84px); line-height: .98; letter-spacing: -.065em; font-weight: 500; }
.topo-copy h1 span { color: var(--topo-green); }
.topo-copy .hero-lead { width: min(510px, 100%); margin-bottom: 26px; font-size: 14px; line-height: 1.72; }
.topo-hotspots { position: relative; min-height: 650px; }
.topo-hotspot { position: absolute; width: 215px; min-height: 88px; display: grid; grid-template-columns: 35px 1fr 18px; align-items: center; gap: 11px; padding: 15px; border: 1px solid rgba(67, 213, 199, .35); border-radius: 7px; background: var(--topo-panel); box-shadow: 0 16px 45px rgba(0,0,0,.24); backdrop-filter: blur(16px); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.topo-hotspot:hover, .topo-hotspot:focus-visible { z-index: 3; transform: translateY(-5px) scale(1.025); border-color: var(--topo-green); box-shadow: 0 22px 55px rgba(4, 230, 191, .17); }
.topo-hotspot > i:first-child { color: var(--topo-green); font-size: 29px; }
.topo-hotspot > i:last-child { color: var(--topo-green); font-size: 16px; }
.topo-hotspot span { display: grid; }
.topo-hotspot strong { font-size: 13px; font-weight: 600; }
.topo-hotspot small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.hotspot-projects { top: 94px; left: 41%; }
.hotspot-events { top: 320px; left: 24%; }
.hotspot-opportunities { top: 435px; right: 3%; }
.map-coordinate { position: absolute; right: 0; bottom: 26px; display: grid; justify-items: end; color: rgba(255,255,255,.62); font-size: 10px; }
[data-theme="light"] .map-coordinate { color: var(--muted); }
.map-coordinate span { color: var(--topo-green); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.map-coordinate b { font-weight: 500; }

.signal-section { display: grid; grid-template-columns: 185px minmax(0,1fr); gap: 34px; padding-block: 42px 82px; }
.live-rail { padding-right: 22px; border-right: 1px solid var(--topo-rule); }
.live-rail-title { display: flex; align-items: center; gap: 9px; color: var(--topo-green); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.live-rail-title i { font-size: 18px; }
.live-rail ol { position: relative; display: grid; gap: 20px; margin: 23px 0 28px; padding: 0 0 0 25px; list-style: none; border-left: 1px solid var(--topo-rule); }
.live-rail li { position: relative; display: grid; }
.live-rail li::before { content: ""; position: absolute; left: -30px; top: 5px; width: 9px; height: 9px; border: 1px solid var(--topo-green); border-radius: 50%; background: var(--bg); }
.live-rail li.active::before { background: var(--topo-green); box-shadow: 0 0 0 5px rgba(73,200,135,.13), 0 0 20px rgba(73,200,135,.55); animation: topoPulse 2s ease-in-out infinite; }
.live-rail time { color: var(--muted-2); font-size: 9px; }
.live-rail strong { margin-top: 3px; font-size: 10px; line-height: 1.4; font-weight: 600; }
.live-rail li span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.live-rail .text-link { font-size: 9px; }
.featured-signal { min-width: 0; }
.featured-label { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--topo-rule); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.featured-layout { min-height: 302px; display: grid; grid-template-columns: 1.25fr 1fr .38fr; margin-top: 16px; border: 1px solid var(--topo-rule); background: rgba(6,20,32,.42); }
[data-theme="light"] .featured-layout { background: rgba(255,255,255,.58); }
.featured-visual { min-width: 0; overflow: hidden; border-right: 1px solid var(--topo-rule); }
.featured-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.featured-signal:hover .featured-visual img { transform: scale(1.025); }
.featured-copy { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.featured-copy h2 { margin: 14px 0 14px; font-size: clamp(26px, 2.7vw, 38px); line-height: 1.06; letter-spacing: -.045em; font-weight: 500; }
.featured-copy p { color: var(--muted); font-size: 12px; line-height: 1.62; }
.featured-copy .text-link { margin-top: 8px; }
.featured-meta { display: flex; flex-direction: column; justify-content: center; gap: 18px; margin: 0; padding: 24px 20px; border-left: 1px solid var(--topo-rule); }
.featured-meta div { display: grid; gap: 3px; }
.featured-meta dt { color: var(--topo-green); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.featured-meta dd { margin: 0; color: var(--muted); font-size: 10px; }

.ecosystem-flow { padding-block: 90px; overflow: hidden; }
.flow-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 90px; align-items: end; }
.flow-heading h2 { margin: 18px 0 0; font-size: clamp(44px, 5vw, 64px); line-height: 1.02; letter-spacing: -.055em; font-weight: 500; }
.flow-heading > p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.flow-steps { position: relative; display: grid; grid-template-columns: repeat(4,1fr); margin-top: 62px; border-top: 1px solid var(--topo-rule); }
.flow-steps a { position: relative; min-height: 230px; display: flex; flex-direction: column; padding: 26px 24px; border-right: 1px solid var(--topo-rule); transition: background .25s ease, transform .25s ease; }
.flow-steps a:first-child { border-left: 1px solid var(--topo-rule); }
.flow-steps a:hover { background: var(--accent-soft); transform: translateY(-4px); }
.flow-steps span { margin-left: auto; color: var(--muted-2); font-size: 10px; }
.flow-steps i { width: 48px; height: 48px; display: grid; place-items: center; margin-top: 20px; border: 1px solid var(--topo-rule); border-radius: 50%; color: var(--topo-cyan); font-size: 22px; }
.flow-steps strong { margin-top: auto; font-size: 15px; }
.flow-steps p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.topo-projects { padding-block: 100px; }
.topo-projects .project-grid { grid-template-columns: repeat(3,1fr); }
.topo-projects .project-card { min-height: 360px; background: rgba(5,20,32,.42); border-color: var(--topo-rule); }
[data-theme="light"] .topo-projects .project-card { background: rgba(255,255,255,.7); }
.topo-projects .project-glyph { background-image: url("assets/topography/namibia-network-field-v2.png"); background-size: cover; background-position: center; border-color: var(--topo-rule); color: #fff; }
.topo-projects .section-end { display: flex; justify-content: center; margin-top: 42px; }
.topo-closing { position: relative; overflow: hidden; background-image: url("assets/topography/namibia-network-field-v2.png"); background-position: 70% 52%; background-size: cover; }
.topo-closing::before { content: ""; position: absolute; inset: 0; background: rgba(3,16,29,.76); }
.topo-closing .closing-cta-inner { position: relative; }
.topo-closing h2 { color: #fff; }

/* Shared destination pages inherit the same terrain language. */
body:not([data-page="home"]) .page-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 560px; }
body[data-page="member"] .member-hero { min-height: 480px; }
body:not([data-page="home"]) .page-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; left: 38%; background: url("assets/topography/namibia-network-field-v2.png") 60% 50% / cover no-repeat; opacity: .54; }
body:not([data-page="home"]) .page-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 36%, transparent 74%); }
body:not([data-page="home"]) .page-hero h1 { max-width: 720px; }
body:not([data-page="home"]) .page-kicker { color: var(--topo-green); }
body:not([data-page="home"]) .page-kicker i { background: var(--topo-green); box-shadow: 0 0 12px rgba(73,200,135,.65); }
.project-card, .product-card, .event-feature, .event-card, .opportunity-card, .detail-card, .manifesto, .community-card, .contact-card, .page-cta { border-color: var(--topo-rule); border-radius: 0; }
.project-card:hover, .product-card:hover, .opportunity-card:hover, .community-card:hover { border-color: rgba(73,200,135,.55); box-shadow: 0 18px 45px rgba(0,0,0,.12); }
.project-glyph, .product-visual { border-color: var(--topo-rule); }
.filter-bar { border-color: var(--topo-rule); }
.filter-chip.active { background: var(--topo-green); border-color: var(--topo-green); }
.event-feature { background-image: url("assets/topography/namibia-network-field-v2.png"); background-size: cover; background-position: center; }
.event-feature .event-main, .event-feature .countdown-wrap { background: rgba(3,16,29,.82); backdrop-filter: blur(8px); }
[data-theme="light"] .event-feature .event-main, [data-theme="light"] .event-feature .countdown-wrap { background: rgba(255,255,255,.86); }
.footer { border-color: var(--topo-rule); background: #020c16; }
[data-theme="light"] .footer { background: #eef2f2; }

@keyframes topoPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .72; } }

@media (max-width: 1020px) {
  .topo-field { left: 0; width: 100%; }
  .topo-hero-grid { grid-template-columns: 1fr 1fr; }
  .topo-copy h1 { font-size: 66px; }
  .hotspot-projects { left: 23%; }
  .hotspot-events { left: 8%; }
  .hotspot-opportunities { right: 0; }
  .signal-section { grid-template-columns: 160px minmax(0,1fr); }
  .featured-layout { grid-template-columns: 1.1fr 1fr; }
  .featured-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,1fr); border-left: 0; border-top: 1px solid var(--topo-rule); }
}

@media (max-width: 820px) {
  .site-header, .site-header .nav { height: 70px; }
  .site-header .nav-links { top: 70px; }
  .topo-hero, .topo-stage, .topo-hero-grid { min-height: auto; }
  .topo-hero-grid { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 430px; }
  .topo-copy { width: min(620px,100%); padding: 48px 0 40px; }
  .topo-copy h1 { font-size: clamp(58px, 11vw, 78px); }
  .topo-field { inset: auto 0 -2% -52%; width: 152%; height: 520px; opacity: .78; object-position: right center; }
  .topo-stage::after { background: linear-gradient(180deg, #03101d 0%, rgba(3,16,29,.96) 42%, rgba(3,16,29,.08) 78%); }
  [data-theme="light"] .topo-stage::after { background: linear-gradient(180deg, #f4f7f7 0%, rgba(244,247,247,.94) 42%, rgba(244,247,247,.08) 78%); }
  .topo-hotspots { position: absolute; left: 0; right: 0; bottom: 20px; height: 330px; min-height: 0; }
  .topo-hotspot { width: 205px; }
  .hotspot-projects { top: 0; left: 8%; }
  .hotspot-events { top: 112px; left: 33%; }
  .hotspot-opportunities { top: 224px; right: 4%; }
  .map-coordinate { display: none; }
  .signal-section { grid-template-columns: 1fr; }
  .live-rail { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--topo-rule); }
  .live-rail ol { grid-template-columns: repeat(4,1fr); border-left: 0; }
  .live-rail li::before { display: none; }
  .featured-layout { grid-template-columns: 1fr; }
  .featured-visual { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--topo-rule); }
  .flow-heading { grid-template-columns: 1fr; gap: 20px; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .topo-projects .project-grid { grid-template-columns: 1fr 1fr; }
  body:not([data-page="home"]) .page-hero::before { left: 20%; opacity: .34; }
}

@media (max-width: 600px) {
  .topo-hero-grid { padding-top: 0; padding-bottom: 470px; }
  .topo-copy { padding-top: 54px; }
  .topo-copy h1 { font-size: 52px; }
  .topo-copy .hero-lead { font-size: 14px; }
  .topo-field { right: auto; left: -80%; width: 180%; height: 500px; }
  .topo-hotspots { bottom: 18px; height: 390px; }
  .topo-hotspot { width: min(250px, calc(100vw - 54px)); min-height: 82px; }
  .hotspot-projects { top: 0; left: 0; }
  .hotspot-events { top: 106px; left: 22%; }
  .hotspot-opportunities { top: 212px; right: 0; }
  .signal-section { padding-block: 50px 70px; }
  .live-rail ol { grid-template-columns: 1fr 1fr; padding-left: 0; }
  .featured-label { gap: 12px; }
  .featured-layout { margin-top: 12px; }
  .featured-visual { min-height: 230px; }
  .featured-copy { padding: 22px; }
  .featured-meta { grid-template-columns: 1fr 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-steps a { min-height: 190px; border-left: 1px solid var(--topo-rule); border-bottom: 1px solid var(--topo-rule); }
  .topo-projects .project-grid { grid-template-columns: 1fr; }
  body:not([data-page="home"]) .page-hero::before { left: 0; opacity: .18; }
  body[data-page="member"] .member-hero { min-height: auto; }
  body:not([data-page="home"]) .page-hero::after { background: rgba(4,17,31,.78); }
  [data-theme="light"] body:not([data-page="home"]) .page-hero::after { background: rgba(244,246,247,.8); }
}

@media (prefers-reduced-motion: reduce) {
  .topo-field { transform: none !important; }
  .live-rail li.active::before { animation: none; }
}
