/* A9IS.COM site — Nathan 2026-10-27. The look David kept from the launch page: black, a soft spotlight,
   a thin blue glowing horizon with star dust under it, wide-set Michroma headings. One file for every page. */
@font-face { font-family: "Michroma"; src: url("/fonts/Michroma-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #000;
  --panel: rgba(255, 255, 255, 0.03);
  --line: rgba(120, 160, 255, 0.16);
  --text: #eceef2;
  --muted: #9aa3b5;
  --dim: #6c7487;
  --blue: #2f8bff;
  --blue-soft: rgba(47, 139, 255, 0.35);
  --live: #3ddc97;
  --soon: #f2c14e;
  --display: "Michroma", "Arial Black", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg) radial-gradient(ellipse 70% 38% at 50% -6%, rgba(160, 170, 190, 0.16), transparent 70%) no-repeat;
  color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; }
.brand svg { height: 22px; width: auto; display: block; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .login { color: var(--text); border: 1px solid var(--blue-soft); border-radius: 8px; padding: 6px 12px; box-shadow: 0 0 18px rgba(47, 139, 255, 0.18); }
.nav .login:hover { border-color: var(--blue); }

/* ---------- hero (home) ---------- */
.hero { text-align: center; padding: 96px 0 0; position: relative; }
.hero .mark svg { width: min(600px, 80vw); height: auto; margin: 0 auto; display: block; }
.hero .slogan { font-family: var(--display); letter-spacing: 0.08em; font-size: clamp(15px, 2.6vw, 30px); margin: 28px 0 0; color: #e3e6ec; }
.hero .lede { color: var(--muted); max-width: 640px; margin: 22px auto 0; font-size: 18px; }
.horizon { height: 120px; position: relative; margin-top: 44px; overflow: hidden; }
.horizon::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--blue) 30%, var(--blue) 70%, transparent); box-shadow: 0 0 22px 2px rgba(47, 139, 255, 0.55); }
.horizon canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- page head (inner pages) ---------- */
.page-head { padding: 64px 0 8px; }
.page-head .eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: 0.16em; color: var(--blue); text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.04em; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(26px, 4vw, 42px); margin: 10px 0 14px; }
h2 { font-size: clamp(19px, 2.4vw, 24px); margin: 48px 0 12px; }
h3 { font-size: 16px; margin: 28px 0 8px; }
.page-head .sub, .prose > p:first-of-type strong:only-child { color: var(--muted); }
.page-head .sub { font-size: 20px; max-width: 760px; margin: 0; }

/* ---------- prose ---------- */
main { flex: 1; }
.prose { padding-bottom: 72px; }
.prose > * { max-width: 760px; }
.prose p, .prose li { color: #d6d9e0; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line); }
.prose figcaption, .caption { color: var(--dim); font-size: 14px; margin-top: 8px; font-style: italic; }
.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--text); border: 1px solid var(--blue-soft); border-radius: 10px; padding: 11px 20px; background: linear-gradient(180deg, rgba(47, 139, 255, 0.14), rgba(47, 139, 255, 0.04)); box-shadow: 0 0 22px rgba(47, 139, 255, 0.15); }
.btn:hover { border-color: var(--blue); text-decoration: none; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- cards ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section > .wrap > h2:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { margin: 4px 0 0; font-size: 18px; }
.card p { color: var(--muted); margin: 0; flex: 1; }
.card .btn { align-self: flex-start; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid currentColor; }
.tag.live { color: var(--live); }
.tag.soon { color: var(--soon); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; counter-reset: p; }
.principle { border-left: 2px solid var(--blue); padding: 6px 0 6px 20px; }
.principle .n { font-family: var(--display); color: var(--blue); font-size: 13px; letter-spacing: 0.14em; }
.principle p { font-size: 20px; margin: 6px 0 0; color: var(--text); }
.muted { color: var(--muted); }

/* ---------- sub-nav (ESS, Sanctuary) ---------- */
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.subnav a { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.subnav a[aria-current="page"] { color: var(--text); border-color: var(--blue-soft); }
.subnav a:hover { text-decoration: none; color: var(--text); }

/* ---------- forms ---------- */
form.contact { display: grid; gap: 18px; max-width: 620px; margin-top: 24px; }
form.contact label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); letter-spacing: 0.03em; }
form.contact input, form.contact select, form.contact textarea { font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--blue-soft); border-radius: 10px; padding: 12px 14px; box-shadow: inset 0 0 18px rgba(47, 139, 255, 0.06); }
form.contact textarea { min-height: 160px; resize: vertical; }
form.contact button { justify-self: start; cursor: pointer; }
form.contact .hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-size: 15px; }
.form-msg.ok { color: var(--live); }
.form-msg.err { color: #ff8a8a; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--dim); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.site-foot .brand svg { height: 16px; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot .fine { width: 100%; margin: 0; }

@media (max-width: 640px) {
  .site-head .wrap { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-left: 0; gap: 14px; }
  .nav a { font-size: 12px; }
  .hero { padding-top: 60px; }
}
@media (prefers-reduced-motion: reduce) { .horizon canvas { display: none; } }
