/* MapEngine - coming soon. No external fonts, images or scripts. Strict CSP friendly: no inline styles. */
:root {
  color-scheme: dark;
  --bg: #0c0f12;
  --bg-2: #10141a;
  --panel: #151a21;
  --line: #232b34;
  --line-2: #303b47;
  --text: #e8edf2;
  --muted: #9aa8b5;
  --dim: #66727e;
  --cyan: #43c6ee;
  --cyan-deep: #1f9ecb;
  --amber: #ffb454;
  --amber-deep: #e59a2f;
  --radius: 14px;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; }
.skip-link:focus-visible { outline-color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 15, 18, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-name { font: 600 1.125rem/1 var(--display); letter-spacing: -0.01em; }
.brand-mark rect { fill: var(--line-2); }
.brand-mark .m1 { fill: #14446c; } .brand-mark .m2 { fill: #1a72a0; } .brand-mark .m3 { fill: #1f9ecb; }
.brand-mark .m4 { fill: #43c6ee; } .brand-mark .m5 { fill: #f0c27a; } .brand-mark .m6 { fill: #ffb454; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); text-decoration: none; font-size: .9375rem; border-radius: 8px; transition: color .15s; }
.site-nav a:hover { color: var(--text); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 .8125rem/1 var(--mono); letter-spacing: .02em; color: var(--amber); white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 180, 84, .55); animation: pulse 2.4s ease-out infinite; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 9vw, 104px) 0 clamp(96px, 14vw, 176px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 75%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1; background: linear-gradient(to top, var(--bg), transparent); }
.signal { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30%; min-height: 110px; z-index: -1; opacity: .5; }
.signal path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s cubic-bezier(.4, 0, .2, 1) .3s forwards; }
.signal-cyan { stroke: var(--cyan); } .signal-amber { stroke: var(--amber); opacity: .7; animation-delay: .7s !important; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { font: 500 .8125rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.eyebrow .sep { color: var(--dim); margin: 0 .35em; }
h1 { margin-top: 18px; font-size: clamp(2.5rem, 7.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; }
.h1-sub { display: block; margin-top: 14px; font-size: clamp(1.25rem, 3vw, 1.875rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); }
.lead { margin-top: 24px; max-width: 34em; font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--text); opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 600 .9375rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--cyan); color: #06121a; }
.btn-primary:hover { background: #6fd6f5; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn:active { transform: translateY(1px); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts div { min-width: 0; }
.hero-facts dt { font: 500 .75rem/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.hero-facts dd { margin-top: 6px; font: 600 1.5rem/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* decorative calibration map */
.map-card { margin: 0; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg-2)); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.map-head { display: flex; justify-content: space-between; padding: 2px 6px 12px; font: 500 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.map-table { display: grid; grid-template-columns: minmax(28px, 1.15fr) repeat(9, minmax(0, 1fr)); gap: 3px; font: 500 .6875rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.map-table .ax { display: flex; align-items: center; justify-content: center; min-height: 26px; color: var(--dim); }
.map-table .cell { display: flex; align-items: center; justify-content: center; min-height: 34px; border-radius: 4px; color: #eaf6fb; }
.h0 { background: #0f2740; } .h1 { background: #123556; } .h2 { background: #14446c; } .h3 { background: #175a86; } .h4 { background: #1a72a0; }
.h5 { background: #1f8dbd; } .h6 { background: #43c6ee; color: #06202b !important; } .h7 { background: #9fd3d0; color: #0c1c20 !important; }
.h8 { background: #f0c27a; color: #241704 !important; } .h9 { background: #ffb454; color: #241704 !important; }
.scan { animation: scan 7s ease-in-out infinite; }
.scan-2 { animation-delay: 2.3s; } .scan-3 { animation-delay: 4.6s; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.kicker { font: 500 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
h2 { margin-top: 14px; font-size: clamp(1.75rem, 4.4vw, 2.75rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.card { position: relative; padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg-2)); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-index { font: 500 .75rem/1 var(--mono); color: var(--dim); letter-spacing: .1em; }
.figure { margin-top: 22px; }
.figure-num { font: 600 clamp(2.5rem, 5vw, 3.5rem)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--cyan) 20%, var(--amber) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card h3 { margin-top: 16px; font-size: 1.25rem; }
.card > p:last-child { margin-top: 10px; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.about-copy > p { font-size: 1.125rem; color: var(--text); opacity: .92; }
.ticks { margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--cyan); }

.timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; right: 50%; top: 7px; height: 2px; background: linear-gradient(90deg, var(--amber), var(--cyan)); }
.timeline::after { content: ""; position: absolute; left: 50%; right: 0; top: 7px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.timeline li { position: relative; padding-top: 32px; }
.node { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--cyan); background: var(--bg); }
.is-now .node { border-color: var(--amber); background: var(--amber); animation: pulse 2.4s ease-out infinite; }
.t-label { font: 500 .8125rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.t-text { margin-top: 8px; font: 600 1.25rem/1.3 var(--display); letter-spacing: -0.01em; }

.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-text { margin-top: 14px; max-width: 32em; color: var(--muted); font-size: 1.0625rem; }
.cta-actions .btn { min-height: 52px; padding: 0 26px; overflow-wrap: anywhere; }

.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.footer-inner a { display: inline-block; padding: 12px 0; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.footer-inner a:hover { color: var(--text); }
.footer-inner p:first-child { padding: 12px 0; }

/* ---------- simple text pages (privacy, 404) ---------- */
.page { padding: clamp(48px, 8vw, 96px) 0; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page .prose { max-width: 42em; margin-top: 28px; display: grid; gap: 16px; color: var(--muted); }
.page .prose strong { color: var(--text); }
.notice { border-left: 2px solid var(--amber); padding: 12px 16px; background: var(--panel); border-radius: 0 8px 8px 0; color: var(--text); }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2) { transition-delay: .08s; } .js .cards .reveal:nth-child(3) { transition-delay: .16s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 180, 84, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 180, 84, 0); } }
@keyframes scan { 0%, 34%, 100% { box-shadow: none; } 6%, 26% { box-shadow: 0 0 0 2px var(--amber), 0 0 18px rgba(255, 180, 84, .45); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .signal path { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .map-card { max-width: 560px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .status-pill { margin-left: auto; }
}
@media (max-width: 520px) {
  .header-inner { min-height: 58px; }
  .btn { flex: 1 1 100%; }
  .hero-facts { gap: 18px 26px; }
  .map-table { font-size: .5625rem; gap: 2px; }
  .map-table .cell { min-height: 30px; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .timeline::before { right: auto; width: 2px; height: calc(100% - 20px); left: 7px; top: 8px; background: linear-gradient(180deg, var(--amber), var(--cyan)); }
  .timeline::after { display: none; }
  .timeline li { padding: 0 0 0 36px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
}
