/* AFRIQ Agent Factory — product site.
   Light, with gradient washes in the Africonology greens: the brand olive
   (#273619), the sage (#C3D1B5) and the green-black ink (#0E1110), plus a
   forest and a moss stop for the gradients. DM Sans and Geist Mono, 8px
   radius; the emerald --live is only for "live", "passed" and "verified".
   The factory drawings are line art in two strokes: ink and olive. */
:root {
  --bg: 90 22% 98.2%;
  --bg-2: 92 26% 95%;
  --fg: 150 9% 6%;
  --dim: 120 6% 34%;
  --faint: 110 5% 45%;
  --line: 95 18% 87%;
  --line-hi: 95 14% 77%;
  --card: 0 0% 100%;
  --accent: 90 42% 28%;
  --accent-deep: 91 37% 15%;
  --accent-in: 150 40% 20%;
  --accent-mg: 82 42% 36%;
  --scene: 90 30% 94.5%;
  --sage: 90 23% 76%;              /* Africonology sage, #C3D1B5 */
  --live: 158 82% 30%;
  --warn: 30 95% 50%;
  --stroke: 100 30% 16%;
  --g-accent: linear-gradient(100deg, hsl(var(--accent-in)), hsl(var(--accent)) 50%, hsl(var(--accent-mg)));
  --radius: 8px;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, Monaco, monospace;
  --wrap: 1180px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
html.lenis, html.lenis body { height: auto }
.lenis.lenis-smooth { scroll-behavior: auto !important }
body { margin: 0; background: hsl(var(--bg)); color: hsl(var(--fg)); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden }
img, svg { display: block; max-width: 100% }
figure { margin: 0 }
a { color: inherit }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.05 }
p { margin: 0 }
:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 3px; border-radius: 4px }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: hsl(var(--fg)); color: hsl(var(--bg)); padding: 8px 12px; border-radius: var(--radius) }
.skip:focus { left: 16px }
[id] { scroll-margin-top: 80px }
::selection { background: hsl(var(--accent) / .2) }

/* blueprint grid, used behind the hero and the line */
.grid-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(hsl(var(--accent) / .07) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--accent) / .07) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%) }

/* ------------------------------------------------------------ wordmark */
.wm { display: inline-flex; flex-direction: column; gap: 3px; line-height: 1; text-decoration: none }
.wm-name { font-size: 1.125rem; font-weight: 700; letter-spacing: .04em }
.wm-iq { position: relative; display: inline-block; color: hsl(var(--accent)); font-weight: 800; letter-spacing: -.01em; padding-bottom: 2px }
.wm-iq::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, hsl(var(--accent-in)), hsl(var(--accent-mg))) }
.wm-sub { font-size: 8.5px; font-weight: 500; letter-spacing: .155em; text-transform: uppercase; color: hsl(var(--fg) / .5); white-space: nowrap }

/* ------------------------------------------------------------ nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s ease, border-color .3s ease; border-bottom: 1px solid transparent }
.nav.is-scrolled { background: hsl(0 0% 100% / .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: hsl(var(--line)) }
.nav-inner { display: flex; align-items: center; gap: 36px; height: 68px }
.nav-links { display: flex; gap: 6px }
.nav-links a { padding: 6px 10px; font-size: .875rem; color: hsl(var(--dim)); text-decoration: none; transition: color .2s }
.nav-links a:hover { color: hsl(var(--fg)) }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid hsl(var(--line-hi)); border-radius: var(--radius); background: transparent; color: hsl(var(--fg)); cursor: pointer; place-items: center }
.drawer { display: none }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font: 500 .9375rem/1 var(--sans); text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem }
.btn-primary { background: var(--g-accent); background-size: 160% 100%; background-position: 0 0; color: #fff; box-shadow: 0 8px 24px -10px hsl(var(--accent) / .7), inset 0 1px 0 hsl(0 0% 100% / .25); transition: background-position .5s ease, box-shadow .3s }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 0 0 4px hsl(var(--accent) / .14), 0 14px 36px -10px hsl(var(--accent) / .8) }
.btn-ghost { border-color: hsl(var(--line-hi)); color: hsl(var(--fg)); background: hsl(0 0% 100% / .7); backdrop-filter: blur(6px) }
.btn-ghost:hover { border-color: hsl(var(--accent) / .5) }
.btn-text { color: hsl(var(--dim)); padding: 0 8px }
.btn-text:hover { color: hsl(var(--fg)) }
.arrow::after { content: "\2192"; display: inline-block; transition: transform .2s }
.arrow:hover::after { transform: translateX(3px) }

/* ------------------------------------------------------------ type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--accent)) }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor }
.h-display { font-size: clamp(2.5rem, 6vw, 5.25rem); font-weight: 600; letter-spacing: -.045em; line-height: .96; text-wrap: balance }
.h-section { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.04em; line-height: 1; text-wrap: balance }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: hsl(var(--dim)) }
.grad { background: var(--g-accent); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em .06em 0; margin-right: -.1em }
.section { position: relative; padding: 128px 0 }
.section-head { max-width: 760px; display: grid; gap: 22px; margin-bottom: 80px }

/* split-word reveal (afriq.js wraps words; without JS the text shows as is) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.7,.1,1); transition-delay: calc(var(--i) * 45ms) }
.split.is-in .w > span { transform: none }
/* gradient words: the clip goes on each moving word, not on the parent, or the
   moved word paints no gradient and the text is invisible */
.split .grad { background: none; color: inherit; padding-bottom: 0; white-space: nowrap }
.split .grad .w > span { background: var(--g-accent); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em .06em; margin: 0 -.1em }
.split .grad .w { padding-left: .1em; padding-right: .1em; margin-left: -.1em; margin-right: -.1em }
.fade { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.1,1) }
.fade.is-in { opacity: 1; transform: none }

/* line art: every .d stroke is drawn on (pathLength = 1) */
.art { fill: none; stroke: hsl(var(--stroke) / .72); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
.art .a, .art.a { stroke: hsl(var(--accent)) }
.art .f { fill: hsl(var(--scene)) }
.ind .art .f, .hero .art .f { fill: #fff }
.art .fa { fill: hsl(var(--accent) / .1) }
.art text { fill: hsl(var(--stroke) / .75); stroke: none; font: 500 13px var(--mono); letter-spacing: .12em }
.art text.at { fill: hsl(var(--accent)) }
.draw .d { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.6,.1,.2,1); transition-delay: calc(var(--i, 0) * 60ms) }
.draw.is-in .d { stroke-dashoffset: 0 }

/* ------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 68px; overflow: hidden; isolation: isolate }
.hero { background: radial-gradient(60% 55% at 18% 8%, hsl(var(--accent-in) / .16), transparent 70%), radial-gradient(55% 50% at 85% 12%, hsl(var(--accent-mg) / .14), transparent 70%), radial-gradient(70% 60% at 50% 100%, hsl(var(--accent) / .12), transparent 70%), linear-gradient(180deg, hsl(var(--bg-2)), hsl(var(--bg))) }
.hero::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 18vh; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, hsl(0 0% 100% / .9), transparent 70%) }
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; align-content: center; gap: 28px; text-align: center; padding: 72px 0 24px }
.hero-copy .lede { max-width: 640px }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid hsl(var(--line-hi)); background: hsl(0 0% 100% / .7); box-shadow: 0 4px 16px -8px hsl(var(--accent) / .3); font-size: .8125rem; color: hsl(var(--dim)); text-decoration: none }
.badge b { font: 500 .625rem/1 var(--mono); letter-spacing: .1em; color: #fff; background: var(--g-accent); padding: 4px 7px; border-radius: 999px }
.skyline { position: relative; z-index: 1; width: 100%; height: auto; max-height: 46vh; margin-top: -2vh }
.skyline-wrap { position: relative }
.skyline-wrap::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, hsl(var(--bg))) }
.cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 500 .625rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: hsl(var(--faint)) }
.cue i { width: 1px; height: 36px; background: linear-gradient(hsl(var(--accent)), transparent); animation: cue 2s ease-in-out infinite }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

/* hero loops */
.spin { transform-box: fill-box; transform-origin: center; animation: spin 9s linear infinite }
.spin.rev { animation-direction: reverse; animation-duration: 6s }
@keyframes spin { to { transform: rotate(360deg) } }
.belt-run { animation: belt 1.4s linear infinite }
@keyframes belt { to { stroke-dashoffset: -32 } }
.boxes { animation: boxes 14s linear infinite }
@keyframes boxes { from { transform: translateX(0) } to { transform: translateX(400px) } }
.trolley { animation: trolley 10s ease-in-out infinite alternate }
@keyframes trolley { from { transform: translateX(0) } to { transform: translateX(-260px) } }
.hoist { transform-box: view-box; animation: hoist 5s ease-in-out infinite alternate }
@keyframes hoist { from { transform: scaleY(.35) } to { transform: scaleY(1) } }
.load { animation: load 5s ease-in-out infinite alternate }
@keyframes load { from { transform: translateY(-130px) } to { transform: translateY(0) } }
.smoke { stroke-dasharray: 6 10; animation: smoke 3s linear infinite; opacity: .5 }
@keyframes smoke { to { stroke-dashoffset: -64 } }
.tractor { animation: tractor 26s linear infinite }
@keyframes tractor { from { transform: translateX(-260px) } to { transform: translateX(1900px) } }
.blink { animation: blink 1.6s steps(1) infinite }
@keyframes blink { 50% { opacity: .15 } }
.armswing { transform-box: view-box; animation: armswing 4s ease-in-out infinite alternate }
@keyframes armswing { from { transform: rotate(-14deg) } to { transform: rotate(18deg) } }

/* ------------------------------------------------------------ the line (pinned scene) */
.line { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: hsl(var(--scene)); isolation: isolate }
.line::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 45% at 20% 25%, hsl(var(--accent-in) / .12), transparent 70%), radial-gradient(45% 45% at 85% 30%, hsl(var(--accent-mg) / .1), transparent 70%), linear-gradient(180deg, hsl(var(--scene)), hsl(90 28% 91%)) }
.scene { position: absolute; inset: 0; width: 100%; height: 100% }
.line-head { position: absolute; z-index: 2; top: 96px; left: 0; right: 0; pointer-events: none }
.line-head .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px }
.line-title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -.03em; max-width: 520px }
.stations { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0 }
.stations { pointer-events: auto }
.stations button { font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--faint)); padding: 8px 10px; border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer; transition: color .3s, border-color .3s, background-color .3s; white-space: nowrap }
.stations button:hover { color: hsl(var(--fg)); border-color: hsl(var(--accent) / .35) }
.stations button:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 2px }
.stations li.on button { color: #fff; border-color: transparent; background: var(--g-accent) }
.stations li.done button { color: hsl(var(--dim)) }
.caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 56px; pointer-events: none }
.caption .wrap { display: flex }
.cap { max-width: 440px; padding: 22px 24px; border: 1px solid hsl(0 0% 100% / .8); border-radius: 14px; background: hsl(0 0% 100% / .72); box-shadow: 0 20px 50px -24px hsl(var(--accent) / .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 8px }
.cap-n { font: 500 .75rem/1 var(--mono); letter-spacing: .12em; color: hsl(var(--accent)) }
.cap h3 { font-size: 1.5rem; letter-spacing: -.02em }
.cap p { color: hsl(var(--dim)); font-size: .9875rem }
.cap.swap { animation: capin .5s cubic-bezier(.2,.7,.1,1) }
@keyframes capin { from { opacity: 0; transform: translateY(10px) } }
.progress { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 2px; background: hsl(var(--line)) }
.progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--g-accent) }
.scene .belt-top { stroke-dasharray: 22 14 }
.scene .laser { stroke: hsl(var(--accent-mg)); stroke-width: 3; filter: drop-shadow(0 0 6px hsl(var(--accent-mg))) }
.scene .spark { stroke: hsl(var(--warn)); stroke-width: 2.4 }
.scene .ok { stroke: hsl(var(--live)) }
.scene text.ok { fill: hsl(var(--live)) }
.scene .okf { fill: hsl(var(--live) / .8); stroke: hsl(var(--live)) }
.scene .eye { fill: hsl(var(--accent)); stroke: none; filter: drop-shadow(0 0 6px hsl(var(--accent))) }
.scene .beam { fill: url(#beamGrad); stroke: none }
.scene .far { stroke: hsl(var(--accent) / .16) }
.scene .big { font-size: 18px }

/* ------------------------------------------------------------ marquee */
.marquee { position: relative; padding: 56px 0; border-block: 1px solid hsl(var(--line)); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent) }
.marquee p { text-align: center; font: 500 .6875rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: hsl(var(--faint)); margin-bottom: 28px }
.track { display: flex; width: max-content; animation: marquee 40s linear infinite }
.track ul { display: flex; gap: 64px; padding-right: 64px; margin: 0; list-style: none }
.track li { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: hsl(var(--fg) / .32); white-space: nowrap }
@keyframes marquee { to { transform: translateX(-50%) } }

/* ------------------------------------------------------------ governance */
.gov { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px }
.gov-item { display: grid; gap: 14px; align-content: start }
.gov-item svg { width: 72px; height: 72px; margin-bottom: 8px; padding: 12px; border-radius: 18px; background: linear-gradient(140deg, hsl(var(--scene)), #fff); border: 1px solid hsl(var(--line)) }
.gov-item h3 { font-size: 1.375rem; letter-spacing: -.02em }
.gov-item p { color: hsl(var(--dim)) }
.chain-art { margin-top: 80px; width: 100%; height: auto }
.also { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 10px }
.also span { font-size: .875rem; color: hsl(var(--dim)); padding: 8px 14px; border: 1px solid hsl(var(--line)); border-radius: 999px; background: #fff }

/* ------------------------------------------------------------ industries */
.inds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.ind { position: relative; border: 1px solid hsl(var(--line)); border-radius: 18px; padding: 28px; display: grid; gap: 14px; align-content: start; background: #fff; box-shadow: 0 24px 60px -36px hsl(var(--accent) / .4); overflow: hidden; transition: border-color .3s, transform .4s cubic-bezier(.2,.7,.1,1) }
.ind:hover { border-color: hsl(var(--accent) / .4); transform: translateY(-4px) }
.ind svg { max-width: none; width: calc(100% + 56px); height: 170px; margin: -28px -28px 6px; padding: 18px 28px 0; background: linear-gradient(180deg, hsl(var(--scene)), #fff); border-bottom: 1px solid hsl(var(--line)) }
.ind-top { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.ind h3 { font-size: 1.5rem; letter-spacing: -.02em }
.mark { font: 500 .625rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; border: 1px solid hsl(var(--line-hi)); color: hsl(var(--dim)) }
.mark.is-proven { border-color: hsl(var(--accent) / .45); color: hsl(var(--accent)) }
.ind p { color: hsl(var(--dim)); font-size: .9375rem }

/* ------------------------------------------------------------ plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.plan { border: 1px solid hsl(var(--line)); border-radius: 18px; padding: 32px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; background: #fff }
.plan.is-main { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--g-accent) border-box; border-width: 1.5px; box-shadow: 0 30px 80px -34px hsl(var(--accent) / .7) }
.plan h3 { font-size: 1rem; font-weight: 500; color: hsl(var(--dim)); letter-spacing: 0 }
.plan .price { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1 }
.plan .price small { display: block; margin-top: 6px; font-size: .875rem; font-weight: 400; letter-spacing: 0; color: hsl(var(--faint)) }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; font-size: .9375rem; color: hsl(var(--dim)) }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 10px }
.plan li::before { content: "\2713"; color: hsl(var(--accent)) }
.plan .btn { width: 100% }

/* ------------------------------------------------------------ CTA + footer */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: radial-gradient(60% 80% at 15% 0%, hsl(var(--accent-in) / .9), transparent 70%), radial-gradient(60% 80% at 90% 100%, hsl(var(--accent-mg) / .85), transparent 70%), linear-gradient(120deg, hsl(150 40% 18%), hsl(var(--accent)) 50%, hsl(88 38% 30%)) }
.cta-band .grid-bg { background-image: linear-gradient(hsl(0 0% 100% / .08) 1px, transparent 1px), linear-gradient(90deg, hsl(0 0% 100% / .08) 1px, transparent 1px) }
.cta { position: relative; text-align: center; display: grid; justify-items: center; gap: 26px; padding: 130px 0 120px }
.cta .eyebrow { color: hsl(0 0% 100% / .85) }
.cta .lede { color: hsl(0 0% 100% / .82) }
.cta .btn-primary { background: #fff; color: hsl(var(--accent)); box-shadow: 0 14px 40px -12px hsl(100 40% 8% / .6) }
.cta .btn-ghost { background: hsl(0 0% 100% / .1); border-color: hsl(0 0% 100% / .45); color: #fff }
.cta .art { stroke: hsl(0 0% 100% / .85) }
.cta .art .a { stroke: #fff }
.cta .art text { fill: #fff }
.gate { width: min(560px, 90%); height: auto; margin-bottom: 8px }
.foot { padding: 56px 0 44px; background: #fff; font-size: .875rem; color: hsl(var(--dim)) }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px }
.foot h4 { font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--faint)); margin: 0 0 14px }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px }
.foot a { text-decoration: none }
.foot a:hover { color: hsl(var(--fg)) }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid hsl(var(--line)); font-size: .8125rem; color: hsl(var(--faint)) }

/* ------------------------------------------------------------ motion off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important }
  .split .w > span, .fade { transform: none; opacity: 1; transition: none }
  .draw .d { stroke-dashoffset: 0; transition: none }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .gov { grid-template-columns: 1fr; gap: 48px }
  .inds, .plans { grid-template-columns: 1fr }
  .foot-grid { grid-template-columns: 1fr 1fr }
  .line-head .wrap { flex-direction: column; gap: 14px }
  .stations { flex-wrap: nowrap; gap: 4px }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions .btn-text, .nav-actions .btn-ghost { display: none }
  .nav-toggle { display: grid }
  .drawer { position: fixed; inset: 68px 0 0; z-index: 49; background: hsl(var(--bg)); padding: 16px 28px 32px; display: grid; align-content: start; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s }
  .drawer a:not(.btn) { padding: 16px 0; border-bottom: 1px solid hsl(var(--line)); font-size: 1.125rem; text-decoration: none }
  .drawer .btn { margin-top: 18px }
  body.is-open .drawer { opacity: 1; visibility: visible; transform: none }
  body.is-open { overflow: hidden }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px }
  .section { padding: 120px 0 }
  .section-head { margin-bottom: 56px }
  .line-head { top: 84px }
  .stations button { padding: 7px 7px; letter-spacing: .04em }
  .caption { bottom: 28px }
  .cap { padding: 16px 18px }
  .cap h3 { font-size: 1.25rem }
  .cap p { font-size: .9375rem }
  .track li { font-size: 1.125rem }
  .skyline { height: 42vh; max-height: none; width: 100% }
  .track ul { gap: 40px; padding-right: 40px }
  .foot-grid { grid-template-columns: 1fr }
  .cta { padding: 100px 0 90px }
  .btn-sm { height: 40px }
  .badge b, .cue, .mark { font-size: .6875rem }
  .marquee p, .foot h4 { font-size: .75rem }
}

@media (max-height: 560px) and (min-width: 760px) {
  .line-head { top: 72px }
  .line-title { font-size: 1.125rem; max-width: none }
  .caption { bottom: 14px }
  .cap { max-width: 300px; padding: 12px 14px; gap: 4px }
  .cap h3 { font-size: 1.0625rem }
  .cap p { font-size: .8125rem; line-height: 1.4 }
}

/* tinted section washes, so no band is flat white */
.wash-a { background: linear-gradient(180deg, hsl(var(--bg)), hsl(var(--bg-2)) 60%, hsl(var(--bg))) }
.wash-b { background: radial-gradient(50% 40% at 90% 10%, hsl(var(--accent-mg) / .07), transparent 70%), radial-gradient(50% 40% at 5% 80%, hsl(var(--accent-in) / .07), transparent 70%), hsl(var(--bg)) }

/* ------------------------------------------------------------ Request Demo page */
.nav.is-solid { background: hsl(0 0% 100% / .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: hsl(var(--line)) }
.demo-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 150px 0 190px; background: radial-gradient(60% 90% at 10% 0%, hsl(var(--accent-in) / .95), transparent 70%), radial-gradient(60% 90% at 95% 100%, hsl(var(--accent-mg) / .8), transparent 70%), hsl(150 40% 14%) }
.demo-band .grid-bg { background-image: linear-gradient(hsl(0 0% 100% / .07) 1px, transparent 1px), linear-gradient(90deg, hsl(0 0% 100% / .07) 1px, transparent 1px) }
.demo-head { position: relative; display: grid; gap: 18px; text-align: center; justify-items: center }
.demo-head .eyebrow { color: hsl(0 0% 100% / .8) }
.demo-head .lede { color: hsl(0 0% 100% / .82); max-width: 620px }
.demo-body { position: relative; z-index: 2; margin-top: -120px; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start }
.demo-card { background: hsl(var(--card)); border: 1px solid hsl(var(--line)); border-radius: 16px; box-shadow: 0 30px 80px -40px hsl(var(--accent-deep) / .45); padding: 44px }
.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px }
.demo-form .f { display: grid; gap: 7px; align-content: start }
.demo-form .wide { grid-column: 1 / -1 }
.demo-form label { font-size: .875rem; font-weight: 500 }
.demo-form label i { font-style: normal; color: hsl(var(--accent)) }
.demo-form label span { color: hsl(var(--faint)); font-weight: 400 }
.demo-form input:not([type=checkbox]), .demo-form select, .demo-form textarea { width: 100%; font: inherit; font-size: 1rem; color: hsl(var(--fg)); background: hsl(var(--bg)); border: 1px solid hsl(var(--line-hi)); border-radius: var(--radius); padding: 11px 13px; transition: border-color .2s, box-shadow .2s }
.demo-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23515c51' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px }
.demo-form textarea { resize: vertical; min-height: 104px }
.demo-form :is(input, select, textarea):focus { outline: none; border-color: hsl(var(--accent)); box-shadow: 0 0 0 3px hsl(var(--accent) / .16) }
.demo-form [aria-invalid=true] { border-color: hsl(0 70% 45%) }
.demo-form .err { min-height: 0; font-size: .8125rem; color: hsl(0 70% 40%) }
.demo-form .err:empty { display: none }
.demo-form .check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: hsl(var(--dim)); line-height: 1.5 }
.demo-form .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: hsl(var(--accent)); flex: none }
.demo-form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px }
.form-msg { margin: 0; font-size: .9rem; color: hsl(var(--dim)) }
.form-msg.is-bad { color: hsl(0 70% 40%) }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }
.demo-done { display: grid; justify-items: start; gap: 14px; outline: none }
.demo-done .art { stroke: hsl(var(--accent)); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round }
.demo-done h2 { font-size: 1.75rem; letter-spacing: -.02em }
.demo-done p { color: hsl(var(--dim)); max-width: 520px }
.demo-side { padding: 140px 0 0; display: grid; gap: 18px }
.demo-side h2 { font-size: 1.125rem }
.demo-side ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s }
.demo-side li { display: grid; gap: 4px; padding-left: 38px; position: relative; counter-increment: s }
.demo-side li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; font: 500 .75rem/1.6 var(--mono); color: hsl(var(--accent)) }
.demo-side li span { color: hsl(var(--dim)); font-size: .9375rem }
.demo-note { font: 500 .75rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--faint)) }
@media (max-width: 1000px) {
  .demo-body { grid-template-columns: 1fr }
  .demo-side { padding: 0 }
}
@media (max-width: 640px) {
  .demo-band { padding: 120px 0 150px }
  .demo-card { padding: 26px 20px }
  .demo-form { grid-template-columns: 1fr; gap: 18px }
  .demo-body { margin-top: -96px; padding-bottom: 80px }
}
.demo-form[hidden], .demo-done[hidden] { display: none }


/* Back to the parent site. This page is reached from Offers on
   africonology.ai, and its own wordmark points at #top -- so without this
   there is no way out of it but the browser's back button. */
.nav-up {
  color: hsl(var(--dim));
  font-weight: 500;
  padding-right: 14px;
  border-right: 1px solid hsl(var(--line-hi));
}
.nav-up:hover { color: hsl(var(--accent)); }
@media (max-width: 900px) { .nav-up { border-right: 0; padding-right: 0; } }
