/* ---- Caros font (self-hosted). Heavy is used for headlines. ---- */
@font-face { font-family: "Caros"; src: url("fonts/caros-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caros"; src: url("fonts/caros-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Caros"; src: url("fonts/caros-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caros"; src: url("fonts/caros-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---- Settings you might change ---- */
:root {
  --primary: #16478e;   /* brand primary */
  --secondary: #2474e8; /* brand secondary (buttons, highlights) */
  --light: #91bdff;     /* brand light blue (small labels, accents) */
  --bg: #061428;        /* very dark navy page background, made from the primary blue */
  --text: #f4f7fc;      /* main text */
  --muted: #9fb0c8;     /* soft blue-grey text */
  --accent: #91bdff;    /* accent used across the page */
  --line: var(--line);    /* thin divider lines */
  --card: #0d2447;      /* card background */
  --stage: #030a16;     /* dark stage behind the project gallery */
  --veil: rgba(6, 20, 40, 0.82);
  --nav-bg: rgba(6, 20, 40, 0.55);
}
/* Light mode: switched with the sun/moon button */
html[data-theme="light"] {
  --bg: #f2f6fc;
  --text: #0a1b33;
  --muted: #475b79;
  --accent: #16478e;
  --line: #16478e30;
  --card: #dbe6f5;
  --stage: #e3ecf8;
  --veil: rgba(242, 246, 252, 0.85);
  --nav-bg: rgba(242, 246, 252, 0.7);
}
html[data-theme="light"] .logo img { filter: brightness(0); }  /* white logo becomes dark on light pages */


* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Caros", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* 3D canvas fixed behind everything */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 5vw;
  /* frosted-glass bar: blurs whatever scrolls underneath so the menu stays readable */
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.logo img { height: 38px; width: auto; display: block; }
.nav nav a { color: var(--text); text-decoration: none; margin-left: 28px; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; }
.nav nav a:hover { opacity: .6; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 11; }
#progressBar { height: 100%; width: 0; background: var(--secondary); }

main { position: relative; z-index: 5; }
.panel {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 12vh 5vw;
  max-width: 100%;
}
.panel > * { max-width: 560px; }
.panel.right { align-items: flex-end; text-align: left; }
.panel.right > * { width: 100%; max-width: 520px; }

.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; margin-bottom: 24px; }
h1 { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; max-width: 880px; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 28px; }
.lead { color: var(--muted); font-size: 1.1rem; margin-top: 24px; }
.scroll-hint { margin-top: 48px; color: var(--muted); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }

.services { list-style: none; }
.services li { padding: 20px 0; border-top: 1px solid var(--line); }
.services strong { display: block; font-weight: 500; font-size: 1.2rem; margin-bottom: 4px; }
.services span { color: var(--muted); }

.projects { list-style: none; }
.projects li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 16px 0; border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 800;
  transition: padding-left .3s, color .3s; cursor: default;
}
.projects li:hover { padding-left: 16px; color: var(--accent); }
.projects span { color: var(--muted); font-size: .8rem; }
.projects em { margin-left: auto; font-style: normal; font-size: .75rem; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }

.panel.wide > * { max-width: 1200px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.card { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 0; padding: 0; background: var(--card); cursor: pointer; color: var(--text); text-align: left; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease, filter .5s; filter: brightness(.8); }
.card:hover img { transform: scale(1.07); filter: brightness(1); }
.card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; background: linear-gradient(transparent, #000000f0 70%); }
.card-info small { display: block; color: var(--accent); letter-spacing: .15em; text-transform: uppercase; font-size: .7rem; }
.card-info strong { font-weight: 700; font-size: 1.15rem; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: #000000ee; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 80vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; padding: 16px; }
.lb-close { top: 8px; right: 16px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lightbox p { position: absolute; bottom: 24px; color: var(--muted); font-size: .85rem; letter-spacing: .1em; }

.stats { display: flex; gap: 32px; margin-top: 40px; }
.stats b { display: block; font-size: 2.4rem; font-weight: 800; color: var(--secondary); }
.stats span { color: var(--muted); font-size: .8rem; }

.contact p { margin-bottom: 14px; }
.big { color: var(--text); font-size: clamp(1.4rem, 3vw, 2.4rem); text-decoration: none; border-bottom: 2px solid var(--secondary); }
.small { color: var(--muted); font-size: .85rem; }
.copy { margin-top: 48px; }

@media (max-width: 700px) {
  .panel.right { align-items: flex-start; }
  .panel { background: var(--veil); } /* keeps text readable over the 3D scene on phones */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Africa map ---- */
.reach { display: grid; grid-template-columns: minmax(260px, 520px) 1fr; gap: 6vw; align-items: center; }
#africaMap { width: 100%; height: auto; max-height: 78vh; display: block; filter: drop-shadow(0 0 40px #2474e822); }
#africaMap .land { fill: var(--primary); fill-opacity: .55; stroke: var(--accent); stroke-opacity: .6; stroke-width: .6; stroke-linejoin: round; }
.beacon .dot { fill: var(--light); stroke: #fff; stroke-width: 1.5; animation: blink 1.6s ease-in-out infinite; animation-delay: var(--delay); }
.beacon .ring { fill: none; stroke: var(--secondary); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; animation-delay: var(--delay); }
.beacon .ring2 { animation-delay: calc(var(--delay) + 1.2s); }
.beacon text { fill: var(--text); font-size: 17px; letter-spacing: .08em; font-family: inherit; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }
.cities { list-style: none; }
.cities li { padding: 18px 0; border-top: 1px solid var(--line); }
.cities strong { display: block; font-size: 1.6rem; font-weight: 800; }
.cities span { color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---- Offices and maps ---- */
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.office h3 { font-weight: 400; font-size: 1.1rem; margin-bottom: 4px; }
.office iframe { width: 100%; height: 300px; border: 1px solid #91bdff55; border-radius: 6px; margin: 12px 0 8px; background: #e8eef7; /* normal map colors so streets are easy to read */ }
.office a { color: var(--light); text-decoration: none; }

/* ---- WhatsApp button ---- */
.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  background: var(--secondary); color: #fff; text-decoration: none;
  padding: 14px 18px; border-radius: 40px; font-size: .85rem; letter-spacing: .05em;
  box-shadow: 0 8px 30px #2474e866; transition: background .3s, transform .3s;
}
.whatsapp:hover { background: var(--primary); transform: translateY(-3px); }
@media (max-width: 700px) {
  .whatsapp span { display: none; }
  .whatsapp { padding: 14px; }
  .reach { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .beacon .dot, .beacon .ring { animation: none; } }

/* ---- Projects: dark stage so the photos pop and the 3D scene stays quiet ---- */
#projects {
  background: linear-gradient(180deg, transparent 0, var(--stage) 12%, var(--stage) 88%, transparent 100%);
  padding-top: 18vh; padding-bottom: 18vh;
}
.card { box-shadow: 0 20px 50px #00000080; }
.card-info em { display: block; font-style: normal; color: var(--muted); font-size: .8rem; margin-top: 2px; }
#scene { transition: opacity .9s ease; }
body.dim #scene { opacity: .22; }   /* 3D scene fades back while you browse projects */

/* ---- Scroll reveal: things rise and fade in as you reach them ---- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--stagger, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Label badges: solid blue box with white text so they read on any photo ---- */
.card-info small, .project-hero .eyebrow {
  display: block; width: fit-content; background: var(--primary); color: #fff;
  padding: 5px 11px; border-radius: 3px; font-weight: 600; letter-spacing: .14em;
  margin-bottom: 8px; box-shadow: 0 2px 10px #00000055;
}
.card-info em { color: #dbe6f5; }
.card-info strong { color: #fff; display: block; }
.card { color: #fff; }

/* ---- Buttons ---- */
.button { display: inline-block; background: var(--secondary); color: #fff; border: 0; padding: 14px 24px; border-radius: 40px; font: inherit; font-size: .9rem; letter-spacing: .05em; text-decoration: none; cursor: pointer; transition: background .3s, transform .3s; margin-top: 16px; }
.button:hover { background: var(--primary); transform: translateY(-2px); }

/* ---- Theme toggle ---- */
.theme-toggle { margin-left: 24px; background: none; border: 1px solid var(--line); color: var(--text); width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer; }
.theme-toggle:hover { border-color: var(--secondary); }

/* ---- Custom cursor ---- */
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .compare, body.has-cursor input[type=range] { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--secondary); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid var(--secondary); border-radius: 50%; display: grid; place-items: center; transition: width .25s, height .25s, margin .25s, background .25s; }
.cursor-ring span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor-ring.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor-ring.label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--secondary); }
.cursor-ring.label span { opacity: 1; }

/* ---- Page transition ---- */
.page-fade { position: fixed; inset: 0; z-index: 200; background: var(--bg); pointer-events: none; opacity: 1; transition: opacity .35s ease; }
.page-fade.gone { opacity: 0; }

/* ---- Before / after slider ---- */
.compare { position: relative; width: 100%; max-width: 1000px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; user-select: none; box-shadow: 0 20px 60px #00000055; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.compare-handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--secondary); color: #fff; font-style: normal; display: grid; place-items: center; font-size: .8rem; box-shadow: 0 4px 16px #00000066; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tag { position: absolute; top: 14px; background: var(--primary); color: #fff; padding: 5px 11px; border-radius: 3px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; pointer-events: none; }
.tag-left { left: 14px; } .tag-right { right: 14px; }

/* ---- Counters + timeline ---- */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 48px; }
.counters b { display: block; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; color: var(--secondary); line-height: 1; }
.counters .stat > span { color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.timeline { list-style: none; border-left: 2px solid var(--line); padding-left: 28px; max-width: 720px; }
.timeline li { position: relative; padding: 0 0 28px; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px var(--line); }
.timeline b { display: block; color: var(--accent); letter-spacing: .15em; font-weight: 600; font-size: .85rem; }
.timeline span { color: var(--muted); }

/* ---- About: why choose us ---- */
.why { list-style: none; margin: 28px 0 20px; }
.why li { padding: 14px 0; border-top: 1px solid var(--line); }
.why strong { display: block; font-weight: 500; }
.why span { color: var(--muted); font-size: .92rem; }

/* ---- Clients strip (scrolls by itself) ---- */
.clients { position: relative; z-index: 5; padding: 56px 0; background: var(--stage); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients .eyebrow { text-align: center; margin-bottom: 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; list-style: none; animation: scroll-left 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { font-size: clamp(1.3rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: .05em; white-space: nowrap; color: var(--muted); transition: color .3s; }
.marquee-track li:hover { color: var(--text); }
@keyframes scroll-left { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---- Contact form + modal ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; margin-top: 32px; }
.form label, .modal-card label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.form input, .form select, .form textarea, .modal-card input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.form input:focus, .form select:focus, .form textarea:focus, .modal-card input:focus { outline: 2px solid var(--secondary); }
.hp { position: absolute; left: -9999px; }
.form-note { margin-top: 12px; color: var(--accent); font-size: .9rem; }
.form-note a { color: var(--accent); }
.modal { position: fixed; inset: 0; z-index: 60; background: #000000cc; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 32px; width: 100%; max-width: 420px; }
.modal-card h3 { font-weight: 400; margin-bottom: 6px; }
.modal-card .small { margin-bottom: 18px; }
.modal-close { position: absolute; top: 8px; right: 14px; background: none; border: 0; color: var(--text); font-size: 1.8rem; cursor: pointer; }

/* ---- Project pages ---- */
.project-hero { position: relative; height: 78vh; min-height: 420px; overflow: hidden; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, #000000cc); }
.project-hero-text { position: absolute; z-index: 2; left: 5vw; right: 5vw; bottom: 6vh; color: #fff; }
.project-hero-text h1 { color: #fff; }
.project-body, .project-gallery, .project-next { padding: 56px 5vw; max-width: 1300px; margin: 0 auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.facts small { display: block; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; font-size: .7rem; }
.facts strong { font-weight: 400; font-size: 1.15rem; }
.project-body .lead { max-width: 760px; margin-top: 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pgrid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--card); }
.pgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pgrid a:hover img { transform: scale(1.06); }
.project-next { display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.project-next a { color: var(--text); text-decoration: none; font-size: 1.2rem; }
.project-next a:hover { color: var(--secondary); }
.subpage { background: var(--bg); }

/* ---- Growth section: dark stage, stat cards, bar chart, timeline ---- */
#growth {
  background: linear-gradient(180deg, transparent 0, var(--stage) 12%, var(--stage) 88%, transparent 100%);
  padding-top: 18vh; padding-bottom: 18vh;
}
.growth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; margin-bottom: 56px; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px 22px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.stat::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--secondary), var(--light)); transform: scaleX(.25); transform-origin: left; transition: transform .6s; }
.stat:hover { transform: translateY(-4px); border-color: var(--secondary); }
.stat:hover::after { transform: scaleX(1); }
.counters b { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.chart { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px; }
.chart h3 { font-weight: 400; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.bars { list-style: none; margin-bottom: 14px; }
.bars li { display: grid; grid-template-columns: 72px 1fr 36px; align-items: center; gap: 12px; padding: 7px 0; font-size: .9rem; }
.bar-track { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--light)); transition: width 1.2s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d); }
.bars.go .bar-track i { width: var(--w); }
.bar-num { color: var(--muted); text-align: right; }

.timeline-h { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; padding-top: 34px; max-width: none; border: 0; }
.timeline-h::before { content: ""; position: absolute; top: 9px; left: 0; height: 2px; width: 100%; background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform 1.8s ease; }
.timeline-h.go::before { transform: scaleX(1); }
.timeline-h li { position: relative; padding: 0; }
.timeline-h li::before { content: ""; position: absolute; top: -34px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--secondary); opacity: 0; transform: scale(0); transition: opacity .4s, transform .4s; box-shadow: 0 0 0 6px var(--line); }
.timeline-h.go li::before { opacity: 1; transform: scale(1); }
.timeline-h.go li:nth-child(1)::before { transition-delay: .1s; } .timeline-h.go li:nth-child(2)::before { transition-delay: .6s; }
.timeline-h.go li:nth-child(3)::before { transition-delay: 1.1s; } .timeline-h.go li:nth-child(4)::before { transition-delay: 1.6s; }
.timeline-h b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: 4px; letter-spacing: 0; }
.timeline-h span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) {
  .growth-grid { grid-template-columns: 1fr; }
  .timeline-h { grid-template-columns: 1fr; border-left: 2px solid var(--line); padding: 0 0 0 28px; }
  .timeline-h::before { display: none; }
  .timeline-h li::before { top: 4px; left: -39px; opacity: 1; transform: none; width: 16px; height: 16px; }
  .timeline-h li { padding-bottom: 24px; }
}

/* ---- Offices: address cards + one framed map that fades between offices ---- */
.offices { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 28px; margin-top: 56px; align-items: stretch; }
.office-list { display: flex; flex-direction: column; gap: 14px; }
.office-tab { text-align: left; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: 8px; padding: 22px 22px 18px; cursor: pointer; transition: border-color .3s, transform .3s, background .3s; display: block; width: 100%; }
.office-tab small { display: block; color: var(--accent); letter-spacing: .15em; text-transform: uppercase; font-size: .7rem; margin-bottom: 4px; }
.office-tab strong { display: block; font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.office-tab span { display: block; color: var(--muted); font-size: .92rem; }
.office-tab .dir { display: inline-block; margin-top: 12px; color: var(--accent); text-decoration: none; font-size: .88rem; }
.office-tab .dir:hover { text-decoration: underline; }
.office-tab.active, .office-tab:hover { border-left-color: var(--secondary); background: var(--card); transform: translateX(6px); box-shadow: 0 10px 30px #2474e822; }
.office-tab:not(.active) { opacity: .75; }
.hint { margin-top: 4px; }

.map-frame { position: relative; min-height: 420px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: 0 20px 60px #00000055, 0 0 0 4px #2474e814; }
.map-view { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.map-view.active { opacity: 1; pointer-events: auto; }
/* In dark mode the map is tinted navy so it matches the page */
html:not([data-theme="light"]) .map-view { filter: invert(.92) hue-rotate(180deg) saturate(.75) brightness(.95) contrast(.95); }
.map-badge { position: absolute; left: 14px; bottom: 14px; z-index: 3; background: var(--primary); color: #fff; padding: 7px 14px; border-radius: 3px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; box-shadow: 0 2px 12px #00000066; pointer-events: none; }
@media (max-width: 900px) {
  .offices { grid-template-columns: 1fr; }
  .office-tab.active, .office-tab:hover { transform: none; }
  .map-frame { min-height: 340px; }
}

/* ---- Heavy Caros for headlines and labels ---- */
h1, h2, h3 { font-weight: 800; }
.eyebrow, .tag, .map-badge, .button, .nav nav a { font-weight: 700; }
.services strong, .why strong, .cities strong { font-weight: 700; }

/* ---- Logo: full logo at the top, shrinks into the icon when you scroll ---- */
.logo { position: relative; display: block; height: 38px; width: 132px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.logo-full, .logo-icon { position: absolute; left: 0; top: 0; height: 100%; width: auto; transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1), filter .45s ease; }
.logo-icon { color: var(--text); opacity: 0; }
.logo-icon path { opacity: 0; transform: scale(.3) translateY(14px); transform-box: fill-box; transform-origin: center; transition: opacity .4s ease, transform .6s cubic-bezier(.3,1.5,.5,1); }
.nav.scrolled .logo { width: 32px; }
.nav.scrolled .logo-full { opacity: 0; transform: translateX(-14px) scale(.85); filter: blur(5px); pointer-events: none; }
.nav.scrolled .logo-icon { opacity: 1; }
.nav.scrolled .logo-icon path { opacity: 1; transform: none; }
.nav.scrolled .logo-icon path:nth-child(1) { transition-delay: .15s; }
.nav.scrolled .logo-icon path:nth-child(2) { transition-delay: .25s; }
.nav.scrolled .logo-icon path:nth-child(3) { transition-delay: .32s; }
.nav.scrolled .logo-icon path:nth-child(4) { transition-delay: .39s; }
.nav.scrolled .logo-icon path:nth-child(5) { transition-delay: .5s; }
.nav { transition: padding .4s ease, background .4s ease; }
.nav.scrolled { padding-top: 10px; padding-bottom: 10px; }
.logo-icon:hover { color: var(--secondary); }
html[data-theme="light"] .logo-full { filter: brightness(0); }
html[data-theme="light"] .nav.scrolled .logo-full { filter: brightness(0) blur(5px); }

/* ---- Rolling-digit numbers ---- */
.odo { display: block; line-height: 1; height: 1em; white-space: nowrap; }
.odo .digit { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.odo .reel { display: block; transition: transform 2.2s cubic-bezier(.12,.7,.15,1); will-change: transform; }
.odo .reel > span { display: block; height: 1em; line-height: 1; }
.odo .sym { display: inline-block; vertical-align: top; line-height: 1; }
.stat b.odo { margin-bottom: 14px; }
.stat:hover b { text-shadow: 0 0 24px #2474e888; }
@media (prefers-reduced-motion: reduce) { .odo .reel, .logo, .logo-full, .logo-icon, .logo-icon path { transition: none; } }


/* =================== Header: menu button + dropdown on smaller screens =================== */
.nav nav { display: flex; align-items: center; }
.menu-toggle { display: none; position: relative; width: 42px; height: 42px; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, top .3s; }
.menu-toggle span:first-child { top: 16px; } .menu-toggle span:last-child { top: 24px; }
.nav.open .menu-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .menu-toggle span:last-child { top: 20px; transform: rotate(-45deg); }
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 0 5vw; background: var(--bg); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: max-height .5s ease, opacity .3s ease, padding .4s ease; }
  .nav.open nav { max-height: 560px; opacity: 1; pointer-events: auto; padding-top: 10px; padding-bottom: 24px; }
  .nav nav a { margin: 0; padding: 14px 0; width: 100%; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav nav .theme-toggle { margin: 18px 0 0; }
}

/* =================== Inner pages (Team, Studio, Site) =================== */
.subpage main { display: block; }
.section { padding: 90px max(5vw, calc((100vw - 1300px) / 2)); position: relative; }
.section.alt { background: var(--stage); }
.section h2 { max-width: 760px; }
.page-hero { position: relative; min-height: 80vh; display: flex; align-items: flex-end; overflow: hidden; padding: 150px max(5vw, calc((100vw - 1300px) / 2)) 70px; background: var(--stage); color: #fff; }
.page-hero .bg { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; z-index: 0; transform: scale(1.08); will-change: transform; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #06142899 0%, #06142855 40%, #061428f2 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 920px; }
.page-hero h1 { color: #fff; font-size: clamp(2.8rem, 8vw, 6.4rem); }
.page-hero .lead { color: #dbe6f5; max-width: 640px; }
.page-hero.plain { min-height: 62vh; color: var(--text); background: radial-gradient(900px 520px at 85% 15%, #2474e840, transparent 60%), linear-gradient(180deg, var(--stage), var(--bg)); }
.page-hero.plain h1 { color: var(--text); }
.page-hero.plain .lead { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6vw; align-items: end; margin-bottom: 48px; }
.two-col .lead { margin: 0; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 16px; } }

/* Team */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: inherit; font-weight: 700; font-size: .85rem; letter-spacing: .04em; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 40px; padding: 10px 18px; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.chip b { margin-left: 6px; color: var(--accent); font-weight: 700; }
.chip:hover { border-color: var(--secondary); }
.chip.active { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.chip.active b { color: #fff; }
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 28px; }
.member { position: relative; border-radius: 10px; overflow: hidden; background: var(--card); }
.member[hidden] { display: none; }
.member figure { margin: 0; aspect-ratio: 4 / 5; position: relative; }
.member img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; filter: grayscale(1) contrast(1.05); transition: filter .5s, transform .8s; display: block; }
.member:hover img { filter: none; transform: scale(1.05); }
.member figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 16px 14px; background: linear-gradient(transparent, #000000e6); color: #fff; }
.member strong { display: block; font-weight: 700; font-size: 1.05rem; }
.member figcaption span { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--light); margin-top: 2px; }
.team-grid:not(.filtered) .member.feature { grid-column: span 2; grid-row: span 2; }
.team-grid:not(.filtered) .member.feature figure { height: 100%; aspect-ratio: auto; }
.member.pop { animation: pop .5s both; animation-delay: var(--stagger, 0s); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .team-grid:not(.filtered) .member.feature { grid-column: span 2; grid-row: auto; } .team-grid:not(.filtered) .member.feature figure { aspect-ratio: 4 / 4.2; } }
.join { margin-top: 80px; padding: 44px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, var(--card), transparent); }
.join h3 { font-size: 1.8rem; margin-bottom: 10px; }
.join .lead { margin: 0; max-width: 680px; }
.join a { color: var(--accent); }

/* Studio + Site galleries */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; margin-top: 40px; }
.bento a { display: block; overflow: hidden; border-radius: 10px; background: var(--card); }
.bento a.wide { grid-column: span 2; } .bento a.tall { grid-row: span 2; }
.bento img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s; }
.bento a:hover img { transform: scale(1.06); }
@media (max-width: 800px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }
.masonry { column-width: 240px; column-gap: 12px; margin-top: 36px; }
.masonry a { display: block; margin-bottom: 12px; break-inside: avoid; border-radius: 8px; overflow: hidden; background: var(--card); }
.masonry img { width: 100%; height: auto; display: block; transition: transform .6s, filter .4s; filter: saturate(.9); }
.masonry a:hover img { transform: scale(1.05); filter: none; }

/* Pillars, tools, studio cards */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 32px; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.pillar:hover { transform: translateY(-6px); border-color: var(--secondary); box-shadow: 0 16px 40px #2474e822; }
.pillar b { color: var(--secondary); font-weight: 800; letter-spacing: .1em; }
.pillar h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.pillar p { color: var(--muted); }
.tools { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 30px 0; }
.tools li { border-top: 3px solid var(--secondary); padding: 18px 0; }
.tools span { display: block; color: var(--accent); letter-spacing: .15em; text-transform: uppercase; font-size: .72rem; font-weight: 700; }
.tools strong { font-size: 1.7rem; font-weight: 800; }
.studios { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 28px; }
.studio-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.studio-card small { color: var(--accent); letter-spacing: .15em; text-transform: uppercase; font-size: .72rem; font-weight: 700; }
.studio-card strong { display: block; font-size: 1.4rem; font-weight: 700; margin: 6px 0 14px; }
.studio-card a { color: var(--accent); text-decoration: none; }
.studio-card a:hover { text-decoration: underline; }

/* Footer */
.button.ghost { background: transparent; border: 1px solid var(--secondary); color: var(--text); margin-left: 10px; }
.button.ghost:hover { background: var(--secondary); color: #fff; }
.footer { background: var(--stage); border-top: 1px solid var(--line); padding: 90px max(5vw, calc((100vw - 1300px) / 2)) 40px; }
.footer-cta h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); max-width: 900px; margin-bottom: 8px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; margin: 70px 0 30px; padding-top: 34px; border-top: 1px solid var(--line); }
.footer h4 { color: var(--accent); letter-spacing: .15em; text-transform: uppercase; font-size: .75rem; font-weight: 700; margin-bottom: 8px; }
.footer-cols p { color: var(--muted); line-height: 1.7; }
.footer-cols a { color: var(--text); text-decoration: none; }
.footer-cols a:hover { color: var(--accent); }

/* Home page: strip linking to Team, Studio and Site */
.people-links { position: relative; z-index: 5; background: var(--stage); padding: 90px 5vw; }
.people-links .intro { margin-bottom: 32px; }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p-card { position: relative; min-height: 360px; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; background: var(--card); isolation: isolate; }
.p-card > img.bg, .p-card .faces { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.p-card > img.bg { object-fit: cover; transition: transform .8s, filter .5s; filter: brightness(.7); }
.p-card .faces { display: grid; grid-template-columns: 1fr 1fr; transition: transform .8s; }
.p-card .faces img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) brightness(.65); transition: filter .5s; }
.p-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, #000000e8); }
.p-card:hover > img.bg { transform: scale(1.08); filter: brightness(.95); }
.p-card:hover .faces { transform: scale(1.04); } .p-card:hover .faces img { filter: grayscale(0) brightness(.85); }
.p-card small { align-self: flex-start; background: var(--primary); color: #fff; padding: 5px 11px; border-radius: 3px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.p-card h3 { font-size: 1.6rem; line-height: 1.1; }
.p-card em { font-style: normal; color: var(--light); margin-top: 10px; font-weight: 500; }
@media (max-width: 900px) { .people-grid { grid-template-columns: 1fr; } .p-card { min-height: 280px; } }

/* Labels on hero photos: solid badge so they read on any image */
.page-hero:not(.plain) .eyebrow { display: block; width: fit-content; background: var(--primary); color: #fff; padding: 6px 13px; border-radius: 3px; letter-spacing: .16em; box-shadow: 0 2px 12px #00000066; }


/* =================== Services: hover to preview =================== */
.services-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; }
.service-stage { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 74vh; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 30px 80px #00000066, 0 0 0 1px var(--line); }
.slides { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.slides.active { opacity: 1; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s ease, transform 6s ease; }
.slides img.on { opacity: 1; transform: scale(1); }
.service-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, #000000c0); pointer-events: none; }
.stage-cap, .stage-num { position: absolute; z-index: 2; background: var(--primary); color: #fff; padding: 6px 12px; border-radius: 3px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; box-shadow: 0 2px 12px #00000066; }
.stage-cap { left: 16px; bottom: 16px; max-width: 70%; }
.stage-num { top: 16px; left: 16px; font-size: 1rem; }
.stage-dots { position: absolute; z-index: 2; right: 16px; bottom: 24px; display: flex; gap: 6px; }
.stage-dots i { width: 18px; height: 3px; border-radius: 2px; background: #ffffff66; transition: background .3s, width .3s; }
.stage-dots i.on { background: #fff; width: 28px; }
.services-text .eyebrow, .services-text h2 { max-width: none; }
.services-hint { margin: -8px 0 18px; }
.services li { cursor: pointer; padding: 18px 18px; border-left: 3px solid transparent; transition: background .3s, border-color .3s, padding-left .3s; outline: none; }
.services li strong { transition: color .3s; }
.services li:hover, .services li.active, .services li:focus-visible { border-left-color: var(--secondary); background: linear-gradient(90deg, #2474e826, transparent); padding-left: 24px; }
.services li.active strong, .services li:hover strong { color: var(--accent); }
@media (max-width: 900px) {
  .services-wrap { grid-template-columns: 1fr; gap: 28px; }
  .service-stage { aspect-ratio: 16 / 11; max-height: none; }
}


/* =================== Nigeria expansion on the map =================== */
.map-wrap { position: relative; }
#africaMap .land, #africaMap .state { vector-effect: non-scaling-stroke; }
#africaMap .state { fill: var(--primary); fill-opacity: .55; stroke: var(--accent); stroke-opacity: .22; stroke-width: .6px; transition: fill .3s, fill-opacity .3s, stroke-opacity .6s; cursor: pointer; }
#africaMap .state.active { fill: var(--secondary); fill-opacity: .5; }
#africaMap .state.hot { fill: var(--light); fill-opacity: .75; }
#africaMap.zoomed .state { stroke-opacity: .6; cursor: default; }
#nigeria:hover .state:not(.hot) { fill-opacity: .8; }
#africaMap.zoomed #nigeria:hover .state:not(.hot) { fill-opacity: .5; }
.ng-hint { fill: none; stroke: var(--secondary); stroke-width: 1.2px; stroke-dasharray: 5 7; vector-effect: non-scaling-stroke; opacity: .9; animation: hint-spin 14s linear infinite, hint-fade 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; pointer-events: none; transition: opacity .5s; }
@keyframes hint-spin { to { transform: rotate(360deg); } }
@keyframes hint-fade { 50% { opacity: .35; } }
#africaMap.zoomed .ng-hint { opacity: 0; animation: none; }
.africa-beacons, .ng-beacons { transition: opacity .6s ease; pointer-events: none; }
#africaMap.zoomed .africa-beacons { opacity: 0; }
.ng-beacons { opacity: 0; }
#africaMap.zoomed .ng-beacons { opacity: 1; pointer-events: auto; }
.ng-beacon .dot { fill: var(--light); stroke: #fff; stroke-width: .35px; vector-effect: non-scaling-stroke; animation: blink 1.8s ease-in-out infinite; animation-delay: var(--delay); cursor: pointer; }
.ng-beacon .ring { fill: none; stroke: var(--secondary); stroke-width: .5px; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; animation-delay: var(--delay); }
.ng-beacon .ring2 { animation-delay: calc(var(--delay) + 1.3s); }
.ng-beacon text { fill: var(--text); font-size: 2.9px; font-weight: 700; letter-spacing: .02em; paint-order: stroke; stroke: var(--bg); stroke-width: 1px; stroke-linejoin: round; pointer-events: none; }
.ng-beacon.hot .dot { fill: #fff; }
.ng-beacon.hot text { fill: var(--accent); }
.map-back { position: absolute; top: 8px; left: 8px; z-index: 3; background: var(--primary); color: #fff; border: 0; border-radius: 30px; padding: 9px 16px; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .06em; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .4s, transform .4s, background .3s; }
.map-wrap.expanded .map-back { opacity: 1; pointer-events: auto; transform: none; }
.map-back:hover { background: var(--secondary); }
#mapHint { margin: -12px 0 22px; min-height: 1.4em; }

/* The list on the right changes to the full Nigeria list */
.reach-lists { min-width: 0; }
.ng-list { max-height: 74vh; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--secondary) transparent; }
.ng-list:not([hidden]) { animation: list-in .6s ease both; }
@keyframes list-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.ng-list li { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; padding: 11px 10px; transition: background .25s, padding-left .25s; border-radius: 6px; cursor: default; }
.ng-list li.hot { background: linear-gradient(90deg, #2474e833, transparent); padding-left: 16px; }
.ng-count { font-size: 1.7rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.ng-list strong { font-size: 1.15rem; font-weight: 700; }
.ng-list em { font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-left: 6px; font-weight: 700; }
.ng-list span { display: block; color: var(--muted); font-size: .85rem; letter-spacing: 0; text-transform: none; }

/* services stage: keep the caption clear of the progress dashes */
.stage-cap { max-width: calc(100% - 150px); }
