:root {
  --navy-950: #050d18;
  --navy-900: #071426;
  --navy-800: #0d2038;
  --navy-700: #183453;
  --gold: #d7a424;
  --gold-light: #f2cc67;
  --gold-pale: #fff6dc;
  --blue: #2ca1d6;
  --ink: #101b2b;
  --muted: #5d6876;
  --line: #dfe3e8;
  --paper: #f5f4f0;
  --white: #fff;
  --container: 1180px;
  --radius: 4px;
  --shadow: 0 24px 64px rgba(5, 13, 24, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: 86px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: 0 5px 30px rgba(5,13,24,.05); backdrop-filter: blur(12px); transition: background .35s, box-shadow .35s, height .35s; }
.site-header.scrolled { height: 72px; background: rgba(255,255,255,.97); border-color: var(--line); box-shadow: 0 5px 30px rgba(5,13,24,.07); backdrop-filter: blur(12px); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { position: relative; z-index: 2; width: 245px; padding: 0; background: transparent; box-shadow: none; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; color: var(--ink); font-size: .88rem; font-weight: 650; letter-spacing: .01em; }
.main-nav a:not(.nav-cta) { position: relative; padding: 12px 0; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: 6px; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-header.scrolled .main-nav { color: var(--ink); }
.nav-cta { padding: 11px 17px; color: var(--navy-900); border: 1px solid var(--gold); border-radius: var(--radius); transition: .25s; }
.nav-cta:hover { color: var(--navy-950); background: var(--gold); border-color: var(--gold); }
.site-header.scrolled .nav-cta { color: var(--navy-900); border-color: var(--gold); }
.site-header.scrolled .nav-cta:hover { background: var(--gold); }
.menu-toggle { display: none; width: 46px; height: 42px; border: 0; background: transparent; padding: 9px; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--white); transition: .25s; }
.site-header.scrolled .menu-toggle > span:not(.sr-only) { background: var(--navy-900); }

.hero { position: relative; min-height: 780px; height: 100svh; color: var(--white); background: var(--navy-950); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,13,24,.98) 0%, rgba(5,13,24,.86) 37%, rgba(5,13,24,.28) 68%, rgba(5,13,24,.22) 100%), linear-gradient(0deg, rgba(5,13,24,.9) 0%, transparent 32%); }
.hero-image { position: absolute; inset: 0; background: url("assets/macjosh-africa-technology.jpg") center/cover no-repeat; animation: hero-drift 18s ease-in-out infinite alternate; }
.hero-grid { position: absolute; z-index: 1; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-inner { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: minmax(0, 720px) 1fr; align-items: center; padding-top: 84px; }
.hero-copy { max-width: 710px; animation: hero-up .9s .1s both; }
.eyebrow { margin: 0 0 18px; color: var(--navy-700); font-size: .73rem; line-height: 1.4; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 34px; height: 2px; margin-right: 11px; vertical-align: middle; background: var(--gold); }
.eyebrow.hero-kicker, .eyebrow.light { color: var(--gold-light); }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(3.8rem, 7vw, 6.6rem); line-height: .93; letter-spacing: -.065em; font-weight: 750; }
.hero h1 em { color: var(--gold-light); font-style: normal; font-weight: 380; }
.hero-lede { max-width: 650px; margin: 28px 0 34px; color: #d8e0e9; font-size: clamp(1.08rem, 1.45vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 20px; border: 1px solid transparent; border-radius: var(--radius); font-size: .9rem; font-weight: 750; transition: transform .25s, background .25s, border-color .25s; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: var(--navy-950); background: var(--gold); }
.button-gold:hover { background: var(--gold-light); }
.button-ghost { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.05); backdrop-filter: blur(8px); }
.button-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); }
.hero-proof { position: absolute; right: 0; bottom: 55px; display: flex; align-items: center; gap: 30px; animation: hero-up .9s .35s both; }
.proof-label { max-width: 130px; margin: 0; color: var(--gold-light); font-size: .72rem; font-weight: 750; line-height: 1.5; letter-spacing: .11em; text-transform: uppercase; }
.proof-items { display: flex; border-left: 1px solid rgba(255,255,255,.25); }
.proof-items div { min-width: 132px; padding: 0 22px; border-right: 1px solid rgba(255,255,255,.18); }
.proof-items strong, .proof-items span { display: block; }
.proof-items strong { color: var(--white); font-size: 1.7rem; line-height: 1.1; }
.proof-items span { margin-top: 5px; color: #aebdcb; font-size: .72rem; }
.scroll-cue { position: absolute; z-index: 3; left: 28px; bottom: 40px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.55); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; transform: rotate(-90deg); transform-origin: left center; }
.scroll-cue i { display: block; width: 45px; height: 1px; overflow: hidden; background: rgba(255,255,255,.25); }
.scroll-cue i::after { content: ""; display: block; width: 50%; height: 100%; background: var(--gold); animation: scroll-line 1.8s infinite; }

.section-heading h2 { max-width: 670px; margin: 0; color: var(--navy-900); font-size: clamp(2.45rem, 4.2vw, 4.25rem); line-height: 1.03; letter-spacing: -.052em; font-weight: 690; }
.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(60px, 9vw, 130px); }
.intro-copy .lead { margin: 0 0 22px; color: var(--navy-800); font-size: clamp(1.32rem, 2vw, 1.72rem); line-height: 1.48; font-weight: 500; letter-spacing: -.02em; }
.intro-copy > p:not(.lead) { max-width: 760px; color: var(--muted); }
.principles { margin-top: 58px; border-top: 1px solid #cdd2d7; }
.principles article { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid #cdd2d7; }
.principles .number { color: var(--gold); font-size: .76rem; font-weight: 800; }
.principles h3 { margin: -5px 0 7px; font-size: 1.08rem; }
.principles p { margin: 0; color: var(--muted); }

.services { background: var(--white); }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 62px; }
.section-heading-row > p { max-width: 400px; margin: 0 0 5px; color: var(--muted); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 470px; padding: 34px 28px 31px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); overflow: hidden; transition: color .35s, background .35s, transform .35s, box-shadow .35s; }
.service-card::before { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service-card:hover { z-index: 2; color: var(--white); background: var(--navy-900); box-shadow: var(--shadow); transform: translateY(-6px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 66px; height: 66px; display: grid; place-items: center; color: var(--gold); background: transparent; }
.service-icon svg { width: 42px; height: 42px; stroke-width: 1.65; transition: transform .3s ease, color .3s ease; }
.service-card:hover .service-icon { background: transparent; }
.service-card:hover .service-icon svg { color: var(--gold-light); transform: translateY(-2px) scale(1.08); }
.card-index { position: absolute; top: 34px; right: 28px; margin: 0; color: #aab2bc; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.service-card h3 { margin: 70px 0 13px; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.025em; }
.service-card > p:not(.card-index) { margin: 0; color: var(--muted); font-size: .93rem; transition: color .35s; }
.service-card ul { margin: 24px 0 0; padding: 21px 0 0; list-style: none; border-top: 1px solid var(--line); color: #394759; font-size: .81rem; line-height: 1.6; transition: color .35s, border-color .35s; }
.service-card li { position: relative; padding-left: 15px; }
.service-card li::before { content: ""; position: absolute; left: 0; top: .74em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.service-card:hover > p:not(.card-index), .service-card:hover ul { color: #bdc8d3; }
.service-card:hover ul { border-color: rgba(255,255,255,.16); }

.industries { background: var(--paper); }
.industries-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 10vw, 150px); align-items: start; }
.industries .section-heading { position: sticky; top: 130px; }
.section-copy { max-width: 500px; margin: 28px 0; color: var(--muted); }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--navy-900); border-bottom: 1px solid var(--gold); font-size: .85rem; font-weight: 800; padding-bottom: 5px; }
.industry-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cdd2d7; }
.industry-list li { display: grid; grid-template-columns: 58px 1fr; align-items: center; min-height: 72px; border-bottom: 1px solid #cdd2d7; font-size: clamp(1.02rem, 1.7vw, 1.35rem); font-weight: 580; letter-spacing: -.01em; transition: padding .25s, color .25s; }
.industry-list li:hover { padding-left: 10px; color: var(--gold); }
.industry-list span { color: #9ba2ab; font-size: .7rem; letter-spacing: .12em; }

.why { background: linear-gradient(var(--white) 50%, var(--paper) 50%); }
.why-panel { position: relative; display: grid; grid-template-columns: .85fr 1.4fr; gap: 70px; padding: 80px; color: var(--white); background: var(--navy-900); box-shadow: var(--shadow); overflow: hidden; }
.why-panel::after { content: ""; position: absolute; width: 460px; height: 460px; right: -180px; top: -250px; border: 1px solid rgba(215,164,36,.24); border-radius: 50%; box-shadow: 0 0 0 50px rgba(215,164,36,.04), 0 0 0 100px rgba(215,164,36,.025); }
.why-copy { position: relative; z-index: 1; }
.why-copy h2 { margin: 0 0 25px; color: var(--white); font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.03; letter-spacing: -.05em; }
.why-copy > p:last-child { color: #aebccb; }
.why-points { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 42px 36px; }
.why-points article { border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
.why-points svg { width: 28px; height: 28px; color: var(--gold-light); }
.why-points h3 { margin: 33px 0 9px; font-size: 1.15rem; }
.why-points p { margin: 0; color: #aebccb; font-size: .9rem; }

.values { padding-top: 96px; background: var(--paper); }
.values-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 130px); }
.value-cloud { display: flex; flex-wrap: wrap; align-content: start; gap: 12px; }
.value-cloud span { padding: 13px 17px; color: var(--navy-800); background: var(--white); border: 1px solid var(--line); font-size: .88rem; font-weight: 700; box-shadow: 0 5px 15px rgba(5,13,24,.03); transition: color .25s, border-color .25s, transform .25s; }
.value-cloud span:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.commitment { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: 90px; padding-top: 58px; border-top: 1px solid #cdd2d7; }
.commitment blockquote { max-width: 900px; margin: 0; color: var(--navy-800); font-size: clamp(2rem, 3.4vw, 3.45rem); line-height: 1.16; letter-spacing: -.045em; font-weight: 520; }
.commitment > p { flex: 0 0 auto; margin: 0; color: var(--gold); font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.contact { background: var(--paper); padding-top: 0; }
.contact-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; padding: 72px 80px; color: var(--white); background: linear-gradient(125deg, var(--navy-800), var(--navy-950)); }
.contact-panel h2 { max-width: 640px; margin: 0; font-size: clamp(2.7rem, 4.5vw, 4.6rem); line-height: 1; letter-spacing: -.055em; }
.contact-panel > div:first-child > p:last-child { max-width: 560px; color: #aebccb; margin: 23px 0 0; }
.contact-actions > a { display: flex; align-items: center; justify-content: space-between; min-height: 86px; border-bottom: 1px solid rgba(255,255,255,.2); transition: color .25s, padding .25s; }
.contact-actions > a:first-child { border-top: 1px solid rgba(255,255,255,.2); }
.contact-actions > a:hover { color: var(--gold-light); padding-left: 8px; }
.contact-actions small { display: block; margin-bottom: 2px; color: #8fa1b4; font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.contact-actions p { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; color: #aebccb; font-size: .86rem; }
.contact-actions p svg { color: var(--gold); }

.site-footer { padding: 70px 0 24px; color: var(--muted); background: #eef0f2; }
.footer-grid { display: grid; grid-template-columns: 1.8fr .7fr 1fr; gap: 70px; padding-bottom: 60px; }
.footer-brand img { width: 285px; height: auto; padding: 0; background: transparent; object-fit: contain; }
.footer-brand p { margin: 22px 0 0; color: #7a5900; font-size: .82rem; font-weight: 650; letter-spacing: .07em; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: .83rem; }
.footer-links > p { margin: 0 0 10px; color: var(--navy-900); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.footer-links a:hover { color: var(--gold-light); }
.footer-base { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid #d1d6dc; font-size: .71rem; }
.footer-base p { margin: 0; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(2), .why-points .reveal:nth-child(2) { transition-delay: .08s; }
.services-grid .reveal:nth-child(3), .why-points .reveal:nth-child(3) { transition-delay: .16s; }
.services-grid .reveal:nth-child(4), .why-points .reveal:nth-child(4) { transition-delay: .24s; }

@keyframes hero-drift { from { transform: scale(1.02); } to { transform: scale(1.075) translate3d(-.6%, -.4%, 0); } }
@keyframes hero-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scroll-line { 0% { transform: translateX(-110%); } 100% { transform: translateX(210%); } }

@media (max-width: 1050px) {
  .main-nav { gap: 18px; }
  .brand { width: 220px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 430px; }
  .why-panel { padding: 60px; gap: 45px; }
  .contact-panel { gap: 55px; padding: 62px; }
}

@media (max-width: 820px) {
  .section { padding: 82px 0; }
  .container { width: min(calc(100% - 34px), var(--container)); }
  .site-header, .site-header.scrolled { height: 70px; background: rgba(255,255,255,.97); border-color: var(--line); }
  .site-header.scrolled .menu-toggle > span:not(.sr-only) { background: var(--navy-900); }
  .brand { width: 205px; }
  .menu-toggle { display: block; }
  .menu-toggle > span:not(.sr-only) { background: var(--navy-900); }
  .menu-toggle.active > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active > span:nth-child(2) { opacity: 0; }
  .menu-toggle.active > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 70px 0 auto; display: grid; gap: 0; padding: 20px 24px 28px; color: var(--white) !important; background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 40px rgba(0,0,0,.35); transform: translateY(-130%); opacity: 0; transition: transform .3s, opacity .3s; }
  .main-nav.open { transform: none; opacity: 1; }
  .main-nav a:not(.nav-cta) { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 18px; text-align: center; }
  .hero { height: auto; min-height: 790px; }
  .hero::after { background: linear-gradient(90deg, rgba(5,13,24,.96), rgba(5,13,24,.7)), linear-gradient(0deg, rgba(5,13,24,.96), transparent 55%); }
  .hero-image { background-position: 62% center; opacity: .72; }
  .hero-inner { display: flex; height: auto; min-height: 790px; padding: 145px 0 190px; }
  .hero h1 { font-size: clamp(3.4rem, 12vw, 5.8rem); }
  .hero-proof { left: 0; right: auto; bottom: 50px; display: block; width: 100%; }
  .proof-label { display: none; }
  .proof-items { border-left: 0; }
  .proof-items div { min-width: 0; flex: 1; padding: 0 14px; }
  .proof-items div:first-child { padding-left: 0; }
  .proof-items strong { font-size: 1.35rem; }
  .scroll-cue { display: none; }
  .intro-grid, .industries-grid, .values-grid { grid-template-columns: 1fr; gap: 50px; }
  .industries .section-heading { position: static; }
  .section-heading-row { align-items: start; flex-direction: column; gap: 25px; }
  .why-panel { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .commitment { display: block; }
  .commitment > p { margin-top: 28px; }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand { width: 185px; }
  .hero { min-height: 780px; }
  .hero-inner { min-height: 780px; padding-top: 128px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.5rem); }
  .hero-kicker { max-width: 300px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .proof-items span { font-size: .65rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-card h3 { margin-top: 52px; }
  .why-panel, .contact-panel { width: 100%; padding: 48px 25px; }
  .why-points { grid-template-columns: 1fr; }
  .why-points h3 { margin-top: 20px; }
  .commitment { margin-top: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 42px; }
  .footer-base { display: block; }
  .footer-base a { display: inline-block; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
