/* Option B: Network. Dark and quiet, with red as the signal moving through it. */
:root {
  --bg: #0C0D11;
  --bg-2: #14161C;
  --line: #262932;
  --text: #EDEBE6;
  --muted: #9A9AA3;
  --red: #EE2E24;
  --red-soft: #FF5A4F;  /* small red text on dark */
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tag { font: 500 12px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--red-soft); display: inline-flex; align-items: center; gap: 10px; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }

header { position: sticky; top: 0; z-index: 10; background: rgba(12,13,17,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-chip { display: inline-flex; }  /* red logo sits directly on black */
.logo-chip img { height: 42px; display: block; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font: 500 14px var(--head); }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 6px; font: 500 15px/1 var(--head); text-decoration: none; transition: .2s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #FF4339; box-shadow: 0 0 30px rgba(238,46,36,.35); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
@media (max-width: 920px) { .nav ul { display: none; } }

.hero { position: relative; overflow: hidden; padding: 90px 0 70px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font: 500 clamp(42px, 6vw, 78px)/1.02 var(--head); letter-spacing: -.03em; margin: 24px 0; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { color: var(--muted); font-size: 19px; max-width: 52ch; margin: 0 0 34px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.graph { width: 100%; height: auto; }
.graph .node { fill: var(--bg); stroke: var(--muted); stroke-width: 1; }
.graph .edge { stroke: var(--line); stroke-width: 1; }
.graph .pulse { stroke: var(--red); stroke-width: 1.5; fill: none; stroke-dasharray: 6 300; animation: run 4s linear infinite; }
.graph .pulse.b { animation-delay: -1.3s; } .graph .pulse.c { animation-delay: -2.6s; }
@keyframes run { to { stroke-dashoffset: -306; } }
.graph text { font-family: var(--head); fill: var(--text); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .graph { max-width: 460px; margin: 0 auto; } }

.tnw { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.tnw div { padding: 26px 24px; border-right: 1px solid var(--line); }
.tnw div:last-child { border-right: 0; }
.tnw b { display: block; font: 500 20px/1.2 var(--head); }
.tnw span { color: var(--muted); font-size: 14px; }
.tnw .eq b { color: var(--red); }
@media (max-width: 760px) { .tnw { grid-template-columns: 1fr 1fr; } .tnw div:nth-child(2) { border-right: 0; } .tnw div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

section { padding: 100px 0; }
h2 { font: 500 clamp(32px, 4.2vw, 52px)/1.08 var(--head); letter-spacing: -.02em; margin: 18px 0 0; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; flex-wrap: wrap; }
.head-row p { color: var(--muted); max-width: 46ch; margin: 0; }

.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 70px 1.1fr 1.6fr 160px; gap: 24px; align-items: center; padding: 30px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .25s; }
.row:hover { background: var(--bg-2); }
.row .n { font: 500 14px var(--head); color: var(--muted); }
.row h3 { font: 500 28px/1.1 var(--head); margin: 0; letter-spacing: -.01em; }
.row p { margin: 0; color: var(--muted); font-size: 15.5px; }
.row .go { justify-self: end; font: 500 14px var(--head); color: var(--red-soft); }
.row:hover h3 { color: var(--red-soft); }
@media (max-width: 820px) { .row { grid-template-columns: 1fr; gap: 8px; } .row .go { justify-self: start; } }

.fit { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow { display: grid; grid-template-columns: 1fr 60px 1.2fr 60px 1fr; align-items: stretch; margin-top: 48px; }
.box { border: 1px solid var(--line); border-radius: 10px; padding: 26px; background: var(--bg); }
.box.core { border-color: var(--red); box-shadow: inset 0 0 0 1px rgba(238,46,36,.25), 0 0 50px rgba(238,46,36,.08); }
.box small { font: 500 11px var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.box h4 { font: 500 22px/1.2 var(--head); margin: 10px 0 8px; }
.box p { margin: 0; color: var(--muted); font-size: 15px; }
.box .inner { margin-top: 16px; border: 1px dashed var(--red); border-radius: 8px; padding: 14px; }
.box .inner b { color: var(--red-soft); font-family: var(--head); font-weight: 500; }
.arrow { display: grid; place-items: center; color: var(--red); font-size: 22px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .arrow { transform: rotate(90deg); padding: 6px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 40px; }
.founder { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; }
.ph { aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--muted); display: grid; place-items: center; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.panel h3 { font: 500 28px/1.15 var(--head); margin: 14px 0 12px; }
.panel p { color: var(--muted); margin: 0 0 24px; }
.timeline { display: flex; align-items: center; gap: 0; margin: 26px 0 28px; }
.timeline span { font: 500 14px var(--head); }
.timeline i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--muted), var(--red)); margin: 0 12px; }
.timeline .now { color: var(--red-soft); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .founder { grid-template-columns: 1fr; } .ph { width: 130px; } .panel { padding: 28px; } }

footer { padding: 70px 0 36px; border-top: 1px solid var(--line); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot h5 { font: 500 11px var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--text); }
.foot a:hover { color: var(--red-soft); }
.legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.compliance { border: 1px dashed var(--line); padding: 10px 14px; border-radius: 4px; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { .graph .pulse { animation: none; stroke-dasharray: none; opacity: .6; } }

/* Subpage additions */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cols3 .box h4 { margin-top: 6px; }
.serves { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.serves li { border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; font: 500 18px/1.3 var(--head); }
@media (max-width: 900px) { .cols3, .serves { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }  /* keeps unset outbound links hidden (site-config.js) */

/* Founder, History and Survey pages */
.portrait { width: 100%; height: auto; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); justify-self: center; }
.founder .portrait-sm { width: 150px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); }
.mission { font: 500 clamp(26px, 3.2vw, 40px)/1.25 var(--head); letter-spacing: -.01em; max-width: 30ch; margin: 22px 0 0; }
.mission em { font-style: normal; color: var(--red-soft); }
.note { color: var(--muted); font-size: 14px; max-width: 70ch; margin: 36px 0 0; }
.prose { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.prose p { color: var(--muted); margin: 0 0 18px; }
@media (max-width: 900px) { .prose { grid-template-columns: 1fr; gap: 0; } .founder .portrait-sm { width: 130px; } }

.steps { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.steps li { position: relative; padding: 0 0 44px 36px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); }
.steps li.now::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 12px var(--red); }
.steps small { font: 500 12px var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--red-soft); }
.steps h4 { font: 500 24px/1.2 var(--head); margin: 8px 0 8px; }
.steps p { color: var(--muted); margin: 0; max-width: 62ch; }
.cities { color: var(--muted); font: 500 14px var(--head); letter-spacing: .08em; margin-top: 12px !important; }

.form { display: grid; gap: 20px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font: 500 14px var(--head); }
.form legend { font: 500 14px var(--head); margin-bottom: 8px; }
.form input, .form select, .form textarea { font: 400 16px var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 13px 14px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red-soft); }
.form textarea { min-height: 120px; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.form .checks label { display: flex; gap: 10px; align-items: center; font: 400 15px var(--body); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; cursor: pointer; }
.form .checks input { width: auto; accent-color: var(--red); }
.form .req { color: var(--red-soft); }
.form .hp { position: absolute; left: -9999px; }
.form button { border: 0; cursor: pointer; justify-self: start; }
.form-status { font-size: 15px; margin: 0; }
.form-status.error { color: var(--red-soft); }
.form-done { border: 1px solid var(--red); border-radius: 12px; padding: 40px; }
.form-done h3 { font: 500 28px/1.15 var(--head); margin: 14px 0 12px; }
.form-done p { color: var(--muted); margin: 0; }
.next-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; counter-reset: s; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; }
.next-steps li::before { content: counter(s, decimal-leading-zero); font: 500 14px var(--head); color: var(--red-soft); grid-row: span 2; padding-top: 2px; }
.next-steps b { font: 500 17px var(--head); }
.next-steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .form .two, .form .checks { grid-template-columns: 1fr; } .form-done { padding: 28px; } }
