:root {
  color-scheme: dark;
  --bg: #131b25;
  --bg-2: #1c2434;
  --panel: #1c2434;
  --brand: #3bd671;
  --text: #e6eaeb;
  --line: #2d3340;
  --on-brand: #131b25;
  --pop: #63e552;
  --muted: rgba(230, 234, 235, 0.72);
  --soft-brand: rgba(59, 214, 113, 0.11);
  --shell: 78rem;
  --radius: 0.35rem;
  --shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 20rem;
  color: var(--text);
  background: var(--bg);
  font: 400 1rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: 0.22em; }
a:hover { color: var(--text); }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 0.18rem solid var(--brand); outline-offset: 0.2rem; }
.shell { width: min(calc(100% - 3rem), var(--shell)); margin-inline: auto; }
.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; z-index: 1000; top: 0.5rem; left: 0.5rem; padding: 0.75rem 1rem; color: var(--bg); background: var(--text); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(19, 27, 37, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(1rem); }
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text); text-decoration: none; font-size: 1.02rem; font-weight: 730; letter-spacing: 0.12em; text-transform: uppercase; }
.brand img { width: 3rem; height: 3rem; object-fit: contain; }
.brand b { color: var(--brand); font-weight: inherit; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(0.6rem, 1.7vw, 1.5rem); list-style: none; padding: 0; margin: 0; }
.primary-nav a { position: relative; display: block; padding: 1.8rem 0 1.65rem; color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 650; letter-spacing: 0.04em; }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.primary-nav a:hover { color: var(--text); }
.primary-nav a[aria-current="page"] { color: var(--brand); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; place-content: center; gap: 0.3rem; border: 1px solid var(--line); color: var(--text); background: transparent; }
.menu-toggle span:not(.sr-only) { width: 1.25rem; height: 2px; background: currentColor; }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(5rem, 11vw, 9rem) 0 clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 35%, rgba(59, 214, 113, 0.08), transparent 25rem), linear-gradient(145deg, var(--bg), var(--bg-2)); }
.page-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0.18; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px); background-size: 4.5rem 4.5rem; mask-image: linear-gradient(to right, transparent, #000 50%); }
.page-hero--mapped { padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.hero-composition { display: grid; grid-template-columns: minmax(29rem, .95fr) minmax(35rem, 1.25fr); align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.hero-composition .hero-copy { position: relative; z-index: 2; }
.page-hero--mapped .hero-composition h1 { max-width: none; font-size: clamp(2.55rem, 3.1vw, 3.25rem); line-height: 1.02; }
.page-hero h1 { max-width: 18ch; margin: 0; color: var(--text); font-size: clamp(2.65rem, 6.5vw, 6rem); font-weight: 680; line-height: 0.98; letter-spacing: -0.055em; }
.page-hero h1 span { color: var(--brand); }
.hero-line { display: block; }
.hero-line--text { color: var(--text) !important; }
.eyebrow { margin: 0 0 1rem; color: var(--brand); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.lead { max-width: 50rem; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-composition .lead { max-width: 37rem; margin-top: 1.25rem; font-size: clamp(.98rem, 1.25vw, 1.12rem); }
.hero-cta { width: min(100%, 16rem); display: grid; gap: .7rem; margin-top: 1.5rem; }
.hero-cta .button { width: 100%; height: 3.15rem; min-height: 3.15rem; }
.button { min-height: 3.1rem; display: inline-flex; align-items: center; justify-content: center; padding: 0.78rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius); text-decoration: none; font-size: 0.9rem; font-weight: 750; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--on-brand); background: var(--brand); box-shadow: 0 0.7rem 2rem rgba(59, 214, 113, 0.14); }
.button--primary:hover { color: var(--on-brand); background: var(--brand); }
.button--ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.035); }
.button--ghost:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.07); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--panel { border-block: 1px solid var(--line); background: var(--bg-2); }
.section-heading { max-width: 48rem; margin-bottom: 2.5rem; }
.section-heading h2, .section h2 { margin: 0 0 1rem; color: var(--text); font-size: clamp(1.65rem, 3vw, 2.8rem); line-height: 1.12; letter-spacing: -0.035em; }
.section p { color: var(--muted); }
.inline-link { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
main p a, .inline-link a, .feature-card a { color: var(--brand); }
.inline-link a, .feature-card a { font-weight: 700; text-decoration-color: var(--brand); }
.card-grid { display: grid; gap: 1rem; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { min-height: 15.5rem; position: relative; padding: clamp(1.5rem, 3vw, 2.35rem); border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); box-shadow: var(--shadow); }
.feature-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 4rem; height: 2px; background: var(--brand); }
.feature-card h2 { font-size: 1.35rem; letter-spacing: -0.02em; }
.card-index { display: block; margin-bottom: 1.8rem; color: var(--brand); font: 800 0.72rem/1 monospace; letter-spacing: 0.12em; }
.split-feature, .content-grid, .monitor-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 7vw, 7rem); }
.split-feature > div + div, .content-grid > article + article { padding-left: clamp(1.5rem, 4vw, 4rem); border-left: 1px solid var(--line); }
.cta-band { border-block: 1px solid var(--line); background: var(--bg-2); color: var(--text); }
.cta-band .shell { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { color: var(--text); }
.cta-band p { color: var(--muted); }

.world-map { position: relative; min-width: 0; overflow: visible; }
.world-map svg { width: 100%; height: auto; aspect-ratio: 1000 / 420; overflow: visible; }
.world-map--hero { align-self: center; width: min(112%, 52rem); max-width: none; margin-right: -6%; justify-self: end; }
.world-map--hero .map-land { opacity: 1; }
.world-map--detail { width: 100%; }
.map-marker { cursor: default; color: var(--pop); }
.map-marker .core { fill: currentColor; }
.map-marker .pulse { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .4; transform-box: fill-box; transform-origin: center; animation: map-pulse 2.8s ease-out infinite; }
.map-marker.high .core { r: 5px; }
.map-marker.high .pulse { stroke-width: 2; }
.map-marker.primary .pulse { r: 14px; animation-duration: 2s; }
.map-marker:focus .pulse { stroke: var(--text); opacity: 1; }
.map-label line { stroke: var(--pop); stroke-width: 1; }
.map-label text { fill: var(--text); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.map-key { display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; align-items: center; margin: 0; padding: 0.8rem 0.5rem 0; font-size: 0.75rem; }
.map-key span, .map-key strong { display: inline-flex; align-items: center; gap: 0.45rem; }
.map-key strong { margin-left: auto; color: var(--text); }
.key-dot, .key-ring { width: 0.55rem; height: 0.55rem; display: inline-block; border-radius: 50%; background: var(--pop); }
.key-ring { border: 1px solid var(--pop); background: transparent; }
@keyframes map-pulse { 0% { transform: scale(.55); opacity: .8; } 80%,100% { transform: scale(1.55); opacity: 0; } }

.stats-section { padding-block: 1rem; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-grid div { padding: 1.15rem 2rem; border-left: 1px solid var(--line); }
.stat-grid div:last-child { border-right: 1px solid var(--line); }
.stat-grid strong { display: block; color: var(--text); font-size: clamp(2.35rem, 4vw, 3.75rem); line-height: 1; letter-spacing: -0.06em; }
.stat-grid span { color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.regions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); }
.regions-grid article { padding: 1.5rem; background: var(--bg-2); }
.regions-grid h3 { color: var(--text); font-size: 1rem; }
.network-subnav { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.network-subnav ul { display: flex; gap: .45rem; margin: 0; padding: .8rem 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.network-subnav a { min-height: 2.65rem; display: inline-flex; align-items: center; padding: .55rem .9rem; color: var(--muted); border: 1px solid transparent; text-decoration: none; white-space: nowrap; font-size: .82rem; font-weight: 700; }
.network-subnav a:hover { color: var(--text); border-color: var(--line); }
.network-subnav a[aria-current="page"] { color: var(--on-brand); border-color: var(--brand); background: var(--brand); }
.region-directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.region-directory > a { min-height: 17rem; display: flex; flex-direction: column; padding: 1.6rem; color: var(--text); border: 1px solid var(--line); background: var(--bg-2); text-decoration: none; }
.region-directory > a:hover { border-color: var(--brand); }
.region-directory span { font-size: 1.25rem; font-weight: 750; }
.region-directory p { font-size: .9rem; }
.region-directory strong { margin-top: auto; color: var(--brand); font-size: .82rem; }
.region-directory i { font-style: normal; }
.location-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.location-groups section { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); background: var(--bg-2); }
.location-groups h2 { min-height: 2.5em; font-size: 1.25rem; }
.location-groups ul { display: grid; gap: .7rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.location-groups li { position: relative; padding-left: 1.1rem; color: var(--text); }
.location-groups li::before { content: ""; position: absolute; top: .68rem; left: 0; width: .4rem; height: .4rem; background: var(--pop); }
.region-back { margin-top: 2rem; }
.region-back a { color: var(--brand); font-weight: 750; }

@media (min-width: 64.01rem) {
  .hero-line--text { white-space: nowrap; }
}

.primary-location { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.location-line { color: var(--text) !important; font-weight: 700; }
.check-list { display: grid; gap: .7rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.5rem; color: var(--text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .65rem; width: .5rem; height: .5rem; background: var(--pop); }
.fra-diagram { min-height: 22rem; display: grid; place-items: center; align-content: center; padding: 2rem; border: 1px solid var(--line); background: radial-gradient(circle, var(--soft-brand), transparent 60%); text-align: center; }
.fra-diagram strong { padding: 1.5rem; color: var(--on-brand); border: 1px solid var(--brand); background: var(--brand); font-size: 1.6rem; }
.fra-diagram span { color: var(--text); font-weight: 700; }
.fra-diagram i { width: 1px; height: 3rem; background: linear-gradient(var(--pop), var(--line)); }

.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principles-grid article { min-height: 16rem; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles-grid span { color: var(--brand); font: 800 .75rem monospace; }
.principles-grid h2 { margin-top: 3rem; font-size: 1.25rem; }
.prose { max-width: 52rem; }
.signal-stack { display: grid; gap: .65rem; align-content: center; }
.signal-stack span, .signal-stack strong { padding: 1rem 1.25rem; border: 1px solid var(--line); background: var(--bg-2); }
.signal-stack span::before { content: ""; width: .5rem; height: .5rem; display: inline-block; margin-right: .7rem; background: var(--pop); }
.signal-stack strong { color: var(--text); border-color: var(--brand); background: var(--soft-brand); text-align: center; }
.status-access { max-width: 58rem; display: grid; grid-template-columns: 10rem 1fr; gap: 3rem; align-items: center; }
.status-symbol { width: 9rem; height: 9rem; display: grid; place-content: center; gap: .5rem; border: 1px solid var(--line); background: var(--bg-2); }
.status-symbol i { width: 4rem; height: 2px; display: block; background: var(--pop); }
.status-symbol i:nth-child(2) { width: 2.8rem; }
.status-symbol i:nth-child(3) { width: 1.6rem; }

.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.contact-meta { display: grid; gap: 1.5rem; margin-top: 2rem; }
.contact-meta div { padding-top: 1rem; border-top: 1px solid var(--line); }
.contact-meta strong { display: block; color: var(--text); }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow); }
.field { display: grid; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--text); font-size: .86rem; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 3rem; padding: .75rem .8rem; color: var(--text); border: 1px solid var(--line); border-radius: 0; background: var(--bg); }
.field textarea { min-height: 10rem; resize: vertical; }
.field small { color: var(--muted); }
.form-note { grid-column: 1 / -1; margin: 0; font-size: .82rem; }
.form-errors, .form-success { grid-column: 1 / -1; padding: 1rem; border-left: .25rem solid var(--brand); background: var(--soft-brand); }
.form-success { border-color: var(--pop); background: rgba(99,229,82,.1); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.error-page { min-height: 65vh; display: grid; align-items: center; padding: 5rem 0; }
.error-page h1 { max-width: 15ch; color: var(--text); font-size: clamp(2.4rem, 8vw, 6rem); line-height: 1; }
.error-code { color: var(--brand); font: 800 1rem monospace; letter-spacing: .2em; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; padding-block: 4rem; }
.footer-grid h2 { margin: 0 0 1rem; color: var(--text); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-grid ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-brand img { width: 3.25rem; height: 3.25rem; }
.footer-brand p { margin: 0; color: var(--muted); font-size: .9rem; }
.footer-brand strong { color: var(--text); }
.footer-base { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

@media (max-width: 64rem) {
  .hero-composition { grid-template-columns: 1fr; }
  .world-map--hero { width: 100%; margin-right: 0; justify-self: stretch; }
  .primary-nav { position: fixed; inset: 5rem 0 auto; display: none; padding: 1rem 1.5rem 2rem; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 0; }
  .primary-nav a { min-height: 3.1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: grid; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(.42rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.42rem) rotate(-45deg); }
  .card-grid--3, .principles-grid, .regions-grid, .region-directory { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 48rem) {
  .shell { width: min(calc(100% - 2rem), var(--shell)); }
  .page-hero { padding-top: 4.5rem; }
  .page-hero h1 { font-size: clamp(2.45rem, 12vw, 4.3rem); }
  .page-hero--mapped { padding-block: 3rem 2.5rem; }
  .page-hero--mapped .hero-composition h1 { font-size: clamp(2rem, 9vw, 2.55rem); line-height: 1.04; }
  .hero-composition { gap: 2.25rem; }
  .card-grid--3, .split-feature, .content-grid, .monitor-layout, .primary-location, .contact-layout { grid-template-columns: 1fr; }
  .split-feature > div + div, .content-grid > article + article { padding: 2rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid div, .stat-grid div:last-child { padding: 1.25rem 0; border-right: 0; border-bottom: 1px solid var(--line); border-left: 0; }
  .cta-band .shell, .footer-base { align-items: flex-start; flex-direction: column; }
  .location-groups { grid-template-columns: 1fr; }
  .location-groups h2 { min-height: 0; }
  .map-key strong { width: 100%; margin-left: 0; }
  .status-access { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-form { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
}

@media (max-width: 34rem) {
  .brand { font-size: .88rem; letter-spacing: .08em; }
  .brand img { width: 2.6rem; height: 2.6rem; }
  .header-inner { min-height: 4.5rem; }
  .primary-nav { inset-block-start: 4.5rem; }
  .hero-cta, .hero-cta .button, .cta-band .button { width: 100%; }
  .regions-grid, .principles-grid, .footer-grid, .region-directory { grid-template-columns: 1fr; }
  .region-directory > a { min-height: 13rem; }
  .principles-grid article { min-height: 13rem; }
  .world-map svg { min-height: 0; transform: none; }
  .world-map--hero .map-label text { font-size: 15px; }
  .map-key { position: relative; z-index: 2; padding: .75rem 0; }
  .footer-base { padding-block: 1.5rem; }
}

@media (orientation: landscape) and (max-height: 34rem) and (max-width: 64rem) {
  .primary-nav { max-height: calc(100vh - 4.5rem); overflow-y: auto; }
  .page-hero { padding-block: 3.5rem 2.5rem; }
  .page-hero--mapped { padding-block: 2.5rem 2rem; }
}

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

@media print {
  .site-header, .menu-toggle, .site-footer { display: none; }
  body { color: #111; background: #fff; }
  .page-hero, .section, .section--panel { color: #111; background: #fff; border-color: #aaa; }
  .page-hero h1, .section h2, .feature-card h2 { color: #111; }
}
