/* CTPF-NET-007: home-only PX base generated from the shared visual system. */
: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: 1248px;
  --radius: 5.6px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font: 400 16px/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: 2.88px solid var(--brand); outline-offset: 3.2px; }
.shell { width: min(calc(100% - 48px), 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: 8px; left: 8px; padding: 12px 16px; 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(16px); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 16.32px; font-weight: 730; letter-spacing: 0.12em; text-transform: uppercase; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand b { color: var(--brand); font-weight: inherit; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(9.6px, 1.7vw, 24px); list-style: none; padding: 0; margin: 0; }
.primary-nav a { position: relative; display: block; padding: 28.8px 0 26.4px; color: var(--muted); text-decoration: none; font-size: 14.08px; 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: 44px; height: 44px; place-content: center; gap: 4.8px; border: 1px solid var(--line); color: var(--text); background: transparent; }
.menu-toggle span:not(.sr-only) { width: 20px; height: 2px; background: currentColor; }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 11vw, 144px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 35%, rgba(59, 214, 113, 0.08), transparent 400px), 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: 72px 72px; mask-image: linear-gradient(to right, transparent, #000 50%); }
.page-hero--mapped { padding-block: clamp(44px, 5vw, 68px); }
.hero-composition { display: grid; grid-template-columns: minmax(464px, .95fr) minmax(560px, 1.25fr); align-items: center; gap: clamp(16px, 2.5vw, 40px); }
.hero-composition .hero-copy { position: relative; z-index: 2; }
.page-hero--mapped .hero-composition h1 { max-width: none; font-size: clamp(40.8px, 3.1vw, 52px); line-height: 1.02; }
.page-hero h1 { max-width: 18ch; margin: 0; color: var(--text); font-size: clamp(42.4px, 6.5vw, 96px); 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 16px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.lead { max-width: 800px; margin: 24px 0 0; color: var(--muted); font-size: clamp(16.8px, 2vw, 20.8px); }
.hero-composition .lead { max-width: 592px; margin-top: 20px; font-size: clamp(15.68px, 1.25vw, 17.92px); }
.hero-cta { width: min(100%, 256px); display: grid; gap: 11.2px; margin-top: 24px; }
.hero-cta .button { width: 100%; height: 50.4px; min-height: 50.4px; }
.button { min-height: 49.6px; display: inline-flex; align-items: center; justify-content: center; padding: 12.48px 20px; border: 1px solid transparent; border-radius: var(--radius); text-decoration: none; font-size: 14.4px; 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 11.2px 32px 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(64px, 8vw, 112px) 0; }
.section--panel { border-block: 1px solid var(--line); background: var(--bg-2); }
.section-heading { max-width: 768px; margin-bottom: 40px; }
.section-heading h2, .section h2 { margin: 0 0 16px; color: var(--text); font-size: clamp(26.4px, 3vw, 44.8px); line-height: 1.12; letter-spacing: -0.035em; }
.section p { color: var(--muted); }
.inline-link { display: flex; justify-content: flex-end; margin-top: 24px; }
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: 16px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { min-height: 248px; position: relative; padding: clamp(24px, 3vw, 37.6px); 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: 64px; height: 2px; background: var(--brand); }
.feature-card h2 { font-size: 21.6px; letter-spacing: -0.02em; }
.card-index { display: block; margin-bottom: 28.8px; color: var(--brand); font: 800 11.52px/1 monospace; letter-spacing: 0.12em; }
.split-feature, .content-grid, .monitor-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 7vw, 112px); }
.split-feature > div + div, .content-grid > article + article { padding-left: clamp(24px, 4vw, 64px); 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: 32px; }
.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%, 832px); 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: 11.2px 24px; align-items: center; margin: 0; padding: 12.8px 8px 0; font-size: 12px; }
.map-key span, .map-key strong { display: inline-flex; align-items: center; gap: 7.2px; }
.map-key strong { margin-left: auto; color: var(--text); }
.key-dot, .key-ring { width: 8.8px; height: 8.8px; 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: 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-grid div { padding: 18.4px 32px; 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(37.6px, 4vw, 60px); line-height: 1; letter-spacing: -0.06em; }
.stat-grid span { color: var(--muted); font-size: 13.12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.regions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 32px; background: var(--line); border: 1px solid var(--line); }
.regions-grid article { padding: 24px; background: var(--bg-2); }
.regions-grid h3 { color: var(--text); font-size: 16px; }
.network-subnav { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.network-subnav ul { display: flex; gap: 7.2px; margin: 0; padding: 12.8px 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.network-subnav a { min-height: 42.4px; display: inline-flex; align-items: center; padding: 8.8px 14.4px; color: var(--muted); border: 1px solid transparent; text-decoration: none; white-space: nowrap; font-size: 13.12px; 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: 16px; }
.region-directory > a { min-height: 272px; display: flex; flex-direction: column; padding: 25.6px; 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: 20px; font-weight: 750; }
.region-directory p { font-size: 14.4px; }
.region-directory strong { margin-top: auto; color: var(--brand); font-size: 13.12px; }
.region-directory i { font-style: normal; }
.location-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.location-groups section { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--bg-2); }
.location-groups h2 { min-height: 2.5em; font-size: 20px; }
.location-groups ul { display: grid; gap: 11.2px; margin: 24px 0 0; padding: 0; list-style: none; }
.location-groups li { position: relative; padding-left: 17.6px; color: var(--text); }
.location-groups li::before { content: ""; position: absolute; top: 10.88px; left: 0; width: 6.4px; height: 6.4px; background: var(--pop); }
.region-back { margin-top: 32px; }
.region-back a { color: var(--brand); font-weight: 750; }

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

.primary-location { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: clamp(48px, 8vw, 128px); }
.location-line { color: var(--text) !important; font-weight: 700; }
.check-list { display: grid; gap: 11.2px; padding: 0; margin: 32px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 24px; color: var(--text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 10.4px; width: 8px; height: 8px; background: var(--pop); }
.fra-diagram { min-height: 352px; display: grid; place-items: center; align-content: center; padding: 32px; border: 1px solid var(--line); background: radial-gradient(circle, var(--soft-brand), transparent 60%); text-align: center; }
.fra-diagram strong { padding: 24px; color: var(--on-brand); border: 1px solid var(--brand); background: var(--brand); font-size: 25.6px; }
.fra-diagram span { color: var(--text); font-weight: 700; }
.fra-diagram i { width: 1px; height: 48px; 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: 256px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles-grid span { color: var(--brand); font: 800 12px monospace; }
.principles-grid h2 { margin-top: 48px; font-size: 20px; }
.prose { max-width: 832px; }
.signal-stack { display: grid; gap: 10.4px; align-content: center; }
.signal-stack span, .signal-stack strong { padding: 16px 20px; border: 1px solid var(--line); background: var(--bg-2); }
.signal-stack span::before { content: ""; width: 8px; height: 8px; display: inline-block; margin-right: 11.2px; background: var(--pop); }
.signal-stack strong { color: var(--text); border-color: var(--brand); background: var(--soft-brand); text-align: center; }
.status-access { max-width: 928px; display: grid; grid-template-columns: 160px 1fr; gap: 48px; align-items: center; }
.status-symbol { width: 144px; height: 144px; display: grid; place-content: center; gap: 8px; border: 1px solid var(--line); background: var(--bg-2); }
.status-symbol i { width: 64px; height: 2px; display: block; background: var(--pop); }
.status-symbol i:nth-child(2) { width: 44.8px; }
.status-symbol i:nth-child(3) { width: 25.6px; }

.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
.contact-meta { display: grid; gap: 24px; margin-top: 32px; }
.contact-meta div { padding-top: 16px; 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: 16px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow); }
.field { display: grid; gap: 7.2px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--text); font-size: 13.76px; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 12.8px; color: var(--text); border: 1px solid var(--line); border-radius: 0; background: var(--bg); }
.field textarea { min-height: 160px; resize: vertical; }
.field small { color: var(--muted); }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 13.12px; }
.form-errors, .form-success { grid-column: 1 / -1; padding: 16px; border-left: 4px 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: 80px 0; }
.error-page h1 { max-width: 15ch; color: var(--text); font-size: clamp(38.4px, 8vw, 96px); line-height: 1; }
.error-code { color: var(--brand); font: 800 16px 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: 32px; padding-block: 64px; }
.footer-grid h2 { margin: 0 0 16px; color: var(--text); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.footer-grid ul { display: grid; gap: 8.8px; margin: 0; padding: 0; list-style: none; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 14.4px; }
.footer-grid a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: flex-start; gap: 16px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 14.4px; }
.footer-brand strong { color: var(--text); }
.footer-base { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.48px; }

@media (max-width: 1024px) {
  .hero-composition { grid-template-columns: 1fr; }
  .world-map--hero { width: 100%; margin-right: 0; justify-self: stretch; }
  .primary-nav { position: fixed; inset: 80px 0 auto; display: none; padding: 16px 24px 32px; 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: 49.6px; padding: 13.6px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: grid; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.72px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.72px) 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: 768px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .page-hero { padding-top: 72px; }
  .page-hero h1 { font-size: clamp(39.2px, 12vw, 68.8px); }
  .page-hero--mapped { padding-block: 48px 40px; }
  .page-hero--mapped .hero-composition h1 { font-size: clamp(32px, 9vw, 40.8px); line-height: 1.04; }
  .hero-composition { gap: 36px; }
  .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: 32px 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: 20px 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: 24px; }
  .contact-form { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
}

@media (max-width: 544px) {
  .brand { font-size: 14.08px; letter-spacing: .08em; }
  .brand img { width: 41.6px; height: 41.6px; }
  .header-inner { min-height: 72px; }
  .primary-nav { inset-block-start: 72px; }
  .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: 208px; }
  .principles-grid article { min-height: 208px; }
  .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: 12px 0; }
  .footer-base { padding-block: 24px; }
}

@media (orientation: landscape) and (max-height: 544px) and (max-width: 1024px) {
  .primary-nav { max-height: calc(100vh - 72px); overflow-y: auto; }
  .page-hero { padding-block: 56px 40px; }
  .page-hero--mapped { padding-block: 40px 32px; }
}

@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; }
}
