/* The AfroSAT Group — design system
   Layout concept: a mission-control reading room. Night-sky hero bands carry the
   thesis; content sits in a calm two-column dossier (section rail + prose).
   Dark-first; light theme mirrors it for daylight reading. */
:root {
  --bg: #070b14;          /* deep space, blue-biased */
  --surface: #0d1323;
  --surface-2: #131b30;
  --line: #222d47;
  --fg: #e7ebf4;
  --muted: #9ba6be;
  --accent: #f0a93b;      /* equatorial sun gold */
  --accent-ink: #1b1204;
  --signal: #5fd4c6;      /* telemetry teal */
  --hero-bg: #050810;
  --hero-fg: #eef2fa;
  --hero-muted: #a8b2c8;
  --hero-accent: #f0a93b;
  --shadow: 0 18px 50px -24px rgba(0,0,0,.7);
  --f-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --s-1: .8125rem; --s0: 1rem; --s1: 1.1875rem; --s2: 1.5rem; --s3: 2rem; --s4: clamp(2.1rem, 4.4vw, 3.4rem); --s5: clamp(2.5rem, 6vw, 4.6rem);
  --r: 10px;
  --wrap: 1240px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6fa; --surface: #ffffff; --surface-2: #e9edf5; --line: #d3d9e6;
    --fg: #0b1222; --muted: #4c5871; --accent: #a8650a; --accent-ink: #ffffff; --signal: #0c766c;
    --shadow: 0 18px 40px -26px rgba(12,24,52,.35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f6fa; --surface: #ffffff; --surface-2: #e9edf5; --line: #d3d9e6;
  --fg: #0b1222; --muted: #4c5871; --accent: #a8650a; --accent-ink: #ffffff; --signal: #0c766c;
  --shadow: 0 18px 40px -26px rgba(12,24,52,.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.ico { width: 22px; height: 22px; flex: none; }
.ico.sm { width: 16px; height: 16px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 500 .9375rem/1 var(--f-body); padding: .85rem 1.2rem; border-radius: 999px; text-decoration: none; border: 1px solid transparent; transition: transform .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { color: var(--accent-ink); transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost { border-color: color-mix(in srgb, var(--hero-fg) 35%, transparent); color: var(--hero-fg); }
.btn-ghost:hover { border-color: var(--hero-fg); color: var(--hero-fg); }
.btn-line { border-color: var(--line); color: var(--fg); }
.btn-line:hover { border-color: var(--accent); color: var(--fg); }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr-inner { max-width: 1400px; margin-inline: auto; display: flex; align-items: center; gap: 1rem; padding-block: .7rem; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--fg); flex: none; }
.brand:hover { color: var(--fg); }
.logo-mark { width: 38px; height: 38px; color: var(--fg); }
.logo { display: block; height: 52px; width: auto; max-width: 100%; }
.brand-foot .logo { height: 64px; }
.logo-on-light { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .logo-on-light { display: block; } :root:not([data-theme="dark"]) .logo-on-dark { display: none; } }
:root[data-theme="light"] .logo-on-light { display: block; }
:root[data-theme="light"] .logo-on-dark { display: none; }
@media (max-width: 520px) { .logo { height: 38px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.brand-sub { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.primary { flex: 1; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: .1rem; }
.nav-dd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .35rem; padding: .55rem .62rem; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--fg); white-space: nowrap; }
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary:hover, .nav-dd[open] > summary { background: var(--surface-2); }
.nav-item[data-current="true"] > .nav-dd > summary { color: var(--accent); }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; transition: transform .2s; }
.nav-dd[open] .caret { transform: rotate(225deg) translateY(-1px); }
.mega { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 1px); width: min(980px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 1.6rem; }
.mega-intro p { color: var(--muted); font-size: .92rem; margin: .5rem 0 1rem; }
.mega-all { display: inline-flex; gap: .4rem; align-items: center; font-weight: 500; text-decoration: none; }
.mega-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .15rem 1rem; }
.mega-links a { display: block; padding: .42rem .55rem; border-radius: 6px; color: var(--fg); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.mega-links a:hover { background: var(--surface-2); color: var(--accent); }
.hdr-tools { display: flex; align-items: center; gap: .35rem; flex: none; }
.tool-btn { display: inline-flex; align-items: center; gap: .4rem; background: transparent; border: 1px solid var(--line); color: var(--fg); border-radius: 999px; padding: .5rem .7rem; font: 500 .85rem var(--f-body); cursor: pointer; }
.tool-btn:hover { border-color: var(--accent); }
.hdr-cta { padding: .62rem 1rem; font-size: .875rem; }
.burger { display: none; flex-direction: column; gap: 4px; padding: .7rem .65rem; }
.burger span { display: block; width: 18px; height: 1.6px; background: currentColor; }

@media (max-width: 1240px) { .tool-label { display: none; } .nav-dd > summary { padding: .5rem .45rem; font-size: .85rem; } }
@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .hdr-cta { display: none; }
  .primary { position: fixed; inset: 0; top: calc(env(safe-area-inset-top, 0px) + 62px); background: var(--bg); overflow-y: auto; display: none; padding: 1rem max(16px, env(safe-area-inset-left, 0px)) 2rem; padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  body.nav-open .primary { display: block; }
  body.nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; }
  .nav-dd > summary { justify-content: space-between; font-size: 1.05rem; padding: .9rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mega { position: static; transform: none; width: auto; border: 0; box-shadow: none; grid-template-columns: 1fr; padding: .8rem .2rem 1rem; gap: .6rem; background: transparent; }
  .mega-intro p { display: none; }
  .mega-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .mega-links { grid-template-columns: 1fr; } .brand-sub { display: none; } }

/* search */
.search-layer { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--hero-bg) 70%, transparent); display: flex; justify-content: center; align-items: flex-start; padding: calc(env(safe-area-inset-top, 0px) + 8vh) 16px 16px; }
.search-box { width: min(720px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.search-row { display: flex; gap: .6rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-row input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--fg); font: 1.05rem var(--f-body); padding: .4rem 0; }
.search-row input:focus { outline: none; }
.search-results { list-style: none; margin: 0; padding: .4rem; max-height: 60vh; overflow-y: auto; }
.search-results a { display: block; padding: .65rem .8rem; border-radius: 8px; text-decoration: none; color: var(--fg); }
.search-results a:hover, .search-results a:focus { background: var(--surface-2); }
.search-results .sr-g { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.search-results .sr-d { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.search-results .empty { padding: 1rem; color: var(--muted); }

/* page hero */
.page-hero { position: relative; background: var(--hero-bg); color: var(--hero-fg); overflow: hidden; border-bottom: 1px solid var(--line); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring { position: absolute; right: -14vw; top: -40%; width: 60vw; max-width: 820px; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--hero-accent) 35%, transparent); box-shadow: inset 0 0 120px color-mix(in srgb, var(--hero-accent) 10%, transparent); pointer-events: none; }
.ring::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--hero-fg) 14%, transparent); }
.hero-inner { position: relative; padding-block: clamp(2.6rem, 6vw, 5rem); display: grid; gap: 1rem; }
.page-hero h1 { font-size: var(--s4); max-width: 22ch; }
.page-hero .lead { color: var(--hero-muted); font-size: var(--s1); max-width: 62ch; margin: 0; }
.page-hero .eyebrow { color: var(--hero-accent); }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: var(--hero-muted); }
.crumbs a { color: var(--hero-muted); text-decoration: none; }
.crumbs a:hover { color: var(--hero-fg); }

/* article layout */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4rem); }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); align-self: start; display: grid; gap: 1.8rem; max-height: calc(100vh - 110px); overflow-y: auto; }
.side-h { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: .6rem; }
.side-nav, .toc { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.side-nav a, .toc a { display: block; padding: .32rem 0 .32rem .9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .89rem; line-height: 1.4; }
.side-nav a:hover, .toc a:hover { color: var(--fg); }
.side-nav a[aria-current="page"] { color: var(--fg); border-left-color: var(--accent); font-weight: 500; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .side { position: static; max-height: none; order: 2; } .toc { display: none; } .side-block:has(.toc) { display: none; } }

.prose { max-width: 74ch; min-width: 0; }
.prose > * + * { margin-top: 1.15rem; }
.prose p { margin: 0; font-size: 1.0625rem; }
.prose > p:first-of-type { font-size: 1.2rem; line-height: 1.6; color: var(--fg); }
.prose h2 { font-size: var(--s2); margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.prose h3 { font-size: 1.08rem; margin-top: 1.8rem; }
.prose strong { color: var(--fg); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); }
.numbered { padding-left: 1.4rem; margin: 0; display: grid; gap: .7rem; }
.numbered li::marker { font-family: var(--f-mono); color: var(--signal); }

.cards { display: grid; gap: 1rem; }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .cards.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .cards.c2, .cards.c3, .prose .cards.c3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.card h3 { font-size: 1.02rem; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.card .ico { color: var(--accent); }
.link-card { text-decoration: none; color: var(--fg); transition: border-color .2s, transform .2s; }
.link-card:hover { border-color: var(--accent); color: var(--fg); transform: translateY(-2px); }
.link-card .more { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 500; color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { padding: 1.1rem 1.2rem; border-right: 1px solid var(--line); display: grid; gap: .25rem; background: var(--surface); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--f-display); font-size: 1.6rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: .85rem; color: var(--muted); line-height: 1.35; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: .4rem; padding: .2rem 0 1.3rem; position: relative; }
.steps li::before { content: ""; position: absolute; left: -5px; top: .55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.step-n { font-family: var(--f-mono); color: var(--signal); font-size: .8rem; padding-left: 1rem; padding-top: .2rem; }
.steps h3 { margin: 0 0 .2rem !important; font-size: 1rem; }
.steps p { color: var(--muted); font-size: .98rem !important; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-variant-numeric: tabular-nums; }

blockquote.pull { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--accent); }
blockquote.pull p { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem !important; line-height: 1.45; }
blockquote.pull cite { display: block; margin-top: .8rem; font-style: normal; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.callout { background: var(--surface-2); border-radius: var(--r); padding: 1rem 1.2rem; display: grid; gap: .3rem; }
.callout-tag, .prop-tag { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
.callout p { font-size: .98rem !important; color: var(--muted); }
.prop { margin-top: 2.4rem !important; padding: 1.4rem 1.5rem; background: var(--hero-bg); color: var(--hero-fg); border-radius: var(--r); display: grid; gap: .5rem; border: 1px solid var(--line); }
.prop p { font-family: var(--f-display); font-size: 1.12rem !important; line-height: 1.5; color: var(--hero-fg) !important; }
.prop .prop-tag { color: var(--hero-accent); }

.profile-head { display: grid; grid-template-columns: 150px 1fr; gap: 1.6rem; align-items: center; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.monogram { width: 150px; aspect-ratio: 1; max-width: 100%; border-radius: 50%; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 35% 30%, var(--surface-2), var(--hero-bg)); border: 1px solid var(--line); }
.monogram::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.monogram span { font-family: var(--f-display); font-size: 2.4rem; color: var(--hero-accent); }
.profile-meta { margin: 0; display: grid; gap: .6rem; }
.profile-meta div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .8rem; }
.profile-meta dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.profile-meta dd { margin: 0; font-size: .98rem; }
@media (max-width: 600px) { .profile-head { grid-template-columns: 1fr; } .monogram { width: 110px; } .profile-meta div { grid-template-columns: 1fr; gap: .1rem; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.2rem !important; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.pg { display: grid; gap: .25rem; text-decoration: none; color: var(--fg); padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); font-weight: 500; line-height: 1.35; }
.pg:hover { border-color: var(--accent); color: var(--fg); }
.pg.next { text-align: right; }

.related { padding-block: 3rem 4rem; border-top: 1px solid var(--line); background: var(--surface); }
.related .card { background: var(--bg); }
.sec-h { font-size: var(--s2); margin-bottom: 1.4rem; }

/* CTA band + footer */
.cta-band { background: var(--hero-bg); color: var(--hero-fg); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -10%; bottom: -160%; width: 120%; aspect-ratio: 1; border-radius: 50%; border-top: 1px solid color-mix(in srgb, var(--hero-accent) 40%, transparent); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--hero-accent) 10%, transparent), transparent 40%); }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.6rem; padding-block: clamp(3rem, 6vw, 4.6rem); }
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 26ch; margin-top: .6rem; }
.cta-inner .mono { color: var(--hero-accent); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; font-size: .9rem; }
.f-top { display: grid; grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); gap: 2rem; }
.f-brand p { color: var(--muted); margin: .9rem 0 0; max-width: 34ch; }
.f-brand .f-small { font-size: .82rem; }
.f-coord { color: var(--signal) !important; }
.f-h { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); font-weight: 500; margin-bottom: .8rem; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.f-col a { color: var(--muted); text-decoration: none; line-height: 1.35; display: inline-block; }
.f-col a:hover { color: var(--accent); }
.f-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .82rem; }
.f-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.f-legal a { color: var(--muted); }
@media (max-width: 1080px) { .f-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .f-top { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------ home */
.home-hero { position: relative; background: var(--hero-bg); color: var(--hero-fg); overflow: hidden; }
.home-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem; align-items: center; padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.home-hero h1 { font-size: var(--s5); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; }
.home-hero h1 em { font-style: normal; color: var(--hero-accent); }
.home-hero .lead { color: var(--hero-muted); font-size: var(--s1); max-width: 54ch; margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.2rem; color: var(--hero-muted); }
.hero-meta .mono { color: var(--hero-muted); }
.globe-wrap { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.globe { width: 100%; height: auto; display: block; overflow: visible; }
.telemetry { position: absolute; left: 0; bottom: 4%; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; color: var(--hero-muted); background: color-mix(in srgb, var(--hero-bg) 80%, transparent); border: 1px solid color-mix(in srgb, var(--hero-fg) 15%, transparent); border-radius: 8px; padding: .6rem .8rem; line-height: 1.7; }
.telemetry b { color: var(--hero-accent); font-weight: 500; }
@media (max-width: 900px) { .home-hero-inner { grid-template-columns: 1fr; } .globe-wrap { max-width: 400px; } }

.fact-strip { background: var(--hero-bg); border-top: 1px solid color-mix(in srgb, var(--hero-fg) 10%, transparent); }
.fact-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fact-strip li { padding: 1.3rem 1rem 1.4rem; border-right: 1px solid color-mix(in srgb, var(--hero-fg) 10%, transparent); display: grid; gap: .2rem; color: var(--hero-fg); }
.fact-strip li:last-child { border-right: 0; }
.fact-strip .fv { font-family: var(--f-display); font-size: 1.5rem; color: var(--hero-accent); }
.fact-strip .fl { font-size: .82rem; color: var(--hero-muted); line-height: 1.35; }
@media (max-width: 860px) { .fact-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact-strip li:nth-child(2n) { border-right: 0; } .fact-strip li { border-bottom: 1px solid color-mix(in srgb, var(--hero-fg) 10%, transparent); } .fact-strip li:last-child { grid-column: 1 / -1; } }

.h-sec { padding-block: clamp(3.5rem, 7vw, 6rem); }
.h-sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.h-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2.2rem; }
.h-sec-head h2 { font-size: var(--s4); max-width: 20ch; margin-top: .6rem; }
.h-sec-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split p { margin: 0 0 1rem; color: var(--muted); font-size: 1.05rem; }
.split .big { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; color: var(--fg); font-weight: 400; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.domain-scale { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.domain-scale a { display: grid; gap: .5rem; padding: 1.3rem 1rem 1.4rem; text-decoration: none; color: var(--fg); border-right: 1px solid var(--line); height: 100%; background: var(--surface); transition: background .2s; }
.domain-scale li:last-child a { border-right: 0; }
.domain-scale a:hover { background: var(--surface-2); color: var(--fg); }
.domain-scale .dist { font-family: var(--f-mono); font-size: .68rem; color: var(--signal); letter-spacing: .06em; }
.domain-scale .dn { font-family: var(--f-display); font-size: 1rem; }
.domain-scale .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
@media (max-width: 960px) { .domain-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } .domain-scale a { border-bottom: 1px solid var(--line); } .domain-scale li:last-child { grid-column: 1 / -1; } }

.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.3fr) 2rem; gap: 1.2rem; align-items: baseline; padding: 1.4rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); transition: background .2s, padding .2s; }
.svc-list a:hover { background: var(--surface); padding-left: .8rem; color: var(--fg); }
.svc-list .sn { font-family: var(--f-mono); color: var(--signal); font-size: .8rem; }
.svc-list h3 { font-size: 1.2rem; }
.svc-list p { margin: 0; color: var(--muted); }
.svc-list .ico { color: var(--accent); }
@media (max-width: 760px) { .svc-list a { grid-template-columns: 2.5rem 1fr; } .svc-list p { grid-column: 2; } .svc-list .ico { display: none; } }

.practice { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .practice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .practice { grid-template-columns: 1fr; } }

.leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.leader { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--fg); background: var(--bg); transition: border-color .2s; }
.leader:hover { border-color: var(--accent); color: var(--fg); }
.leader .mg { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--hero-bg); border: 1px solid var(--line); font-family: var(--f-display); color: var(--hero-accent); }
.leader strong { display: block; font-weight: 600; line-height: 1.3; }
.leader span.r { display: block; color: var(--muted); font-size: .86rem; line-height: 1.35; margin-top: .15rem; }
@media (max-width: 960px) { .leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .leaders { grid-template-columns: 1fr; } }

.ceo-quote { background: var(--hero-bg); color: var(--hero-fg); position: relative; overflow: hidden; }
.ceo-quote blockquote { margin: 0; position: relative; padding-block: clamp(3.5rem, 7vw, 6rem); display: grid; gap: 1.6rem; }
.ceo-quote p { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.3; max-width: 30ch; margin: 0; }
.ceo-quote cite { font-style: normal; color: var(--hero-muted); display: grid; gap: .2rem; }
.ceo-quote cite strong { color: var(--hero-fg); font-weight: 600; }
.ceo-quote a { color: var(--hero-accent); }

.region-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.region { border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; display: grid; gap: .5rem; text-decoration: none; color: var(--fg); background: var(--surface); transition: border-color .2s; }
.region:hover { border-color: var(--accent); color: var(--fg); }
.region .mono { color: var(--signal); }
.region h3 { font-size: 1.1rem; }
.region p { margin: 0; color: var(--muted); font-size: .92rem; }
.region .who { font-size: .85rem; color: var(--fg); margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .region-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .region-board { grid-template-columns: 1fr; } }

/* forms */
.form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 500; }
.form input, .form select, .form textarea { font: 1rem var(--f-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: transparent; }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-status { font-size: .92rem; color: var(--signal); margin: 0; }
.form-status.err { color: var(--accent); }
