/* ============================================================
   APEX HELIOS SYSTEMFORGE — site styles
   ============================================================ */

:root {
  --bg:            #070a12;
  --bg-alt:        #090d18;
  --surface:       #0d1220;
  --surface-2:     #111827;
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.16);
  --text:          #e9edf6;
  --muted:         #98a3bb;
  --accent:        #ff8a3d;
  --accent-2:      #ffc46b;
  --accent-3:      #4d8dff;
  --radius:        16px;
  --radius-sm:     10px;
  --wrap:          1120px;
  --font-display:  "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:     "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.6vw, 3.85rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.08rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); font-size: 0.94em; letter-spacing: -0.01em; }
.grad {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 45%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.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 {
  position: absolute; left: 12px; top: -60px;
  background: var(--accent); color: #0a0d16;
  padding: 10px 16px; border-radius: 8px;
  font-weight: 600; z-index: 200;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 10, 18, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-display);
}
.brand-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand-text em {
  font-style: normal;
  font-size: 0.63rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav a {
  color: var(--muted);
  transition: color 0.2s ease;
  padding-block: 0.25rem;
}
.nav a:hover { color: var(--text); }

.nav-cta {
  color: #0a0d16 !important;
  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(255, 138, 61, 0.9);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; left: 0; top: 0; }
.nav-toggle-bar::before { transform: translateY(-6px); }
.nav-toggle-bar::after  { transform: translateY(6px); }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: -10% -10% 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 35%, transparent 78%);
  z-index: -2;
}

.hero-glow {
  position: absolute;
  top: -28%; left: 50%;
  width: min(900px, 120vw);
  height: 640px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(255, 138, 61, 0.24), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(77, 141, 255, 0.2), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

.hero-inner { max-width: 1010px; }

/* drifting starfield + comets (assets/sky.js); decorative only */
.hero-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 88% 82% at 50% 42%, #000 42%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 88% 82% at 50% 42%, #000 42%, transparent 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(255, 196, 107, 0.08);
  border: 1px solid rgba(255, 196, 107, 0.24);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 1.6rem;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.7);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 138, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); }
}

.lede {
  font-size: clamp(1rem, 1.9vw, 1.19rem);
  color: var(--muted);
  max-width: 62ch;
  margin: 1.4rem 0 2.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.6rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
  will-change: transform;
}
.btn-primary {
  color: #0a0d16;
  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  box-shadow: 0 12px 32px -16px rgba(255, 138, 61, 0.9);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -18px rgba(255, 138, 61, 1);
}
.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.hero-stats li {
  background: rgba(11, 15, 26, 0.86);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-stats span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------------- Marquee ---------------- */

.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  padding: 0.95rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  animation: slide 44s linear infinite;
}
.marquee-track span:nth-child(even) { color: rgba(255, 138, 61, 0.65); }
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------- Sections ---------------- */

.section { padding: clamp(3.6rem, 8vw, 6.5rem) 0; }
.section-alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-block: 1px solid var(--line);
}

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.section-lede { color: var(--muted); font-size: 1.02rem; max-width: 60ch; }

/* ---------------- Cards ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 1.15rem;
}

.card {
  position: relative;
  padding: 1.7rem 1.5rem;
  background: linear-gradient(180deg, rgba(19, 25, 40, 0.9), rgba(11, 15, 26, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at 20% 0%, rgba(255, 138, 61, 0.1), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 46px -30px rgba(0, 0, 0, 0.95);
}
.card:hover::after { opacity: 1; }

.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.925rem; color: var(--muted); line-height: 1.65; }

.card-icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  color: var(--accent-2);
  background: rgba(255, 196, 107, 0.09);
  border: 1px solid rgba(255, 196, 107, 0.2);
}
.card-icon svg { width: 21px; height: 21px; }

.card-accent .card-icon {
  color: #a8c6ff;
  background: rgba(77, 141, 255, 0.1);
  border-color: rgba(77, 141, 255, 0.26);
}
.card-accent::after {
  background: radial-gradient(420px circle at 20% 0%, rgba(77, 141, 255, 0.12), transparent 62%);
}

/* ---------------- Pillars ---------------- */

.pillars {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.pillar {
  display: grid;
  grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.4rem clamp(1.6rem, 3.5vw, 3.2rem);
  align-items: start;
  padding: clamp(1.9rem, 3.4vw, 2.8rem) 0;
  border-bottom: 1px solid var(--line);
}

.pillar-num {
  padding-top: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.pillar-main h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  letter-spacing: -0.02em;
}

.pillar-claim {
  margin: 0 0 0.85rem;
  max-width: 40ch;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.pillar-sub {
  margin: 0 0 1.25rem;
  max-width: 48ch;
  font-size: 0.905rem;
  line-height: 1.65;
  color: var(--muted);
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  border-bottom: 1px solid rgba(255, 196, 107, 0.35);
  padding-bottom: 0.2rem;
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}
.pillar-link:hover {
  color: var(--text);
  border-color: var(--line-strong);
  gap: 0.7rem;
}

.pillar-outcomes-head {
  margin: 0 0 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(152, 163, 187, 0.75);
}

.pillar-outcomes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.pillar-outcomes li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.pillar-outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.also {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1.1rem;
}
.also-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(152, 163, 187, 0.75);
}
.also-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.also-list li {
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------------- AI infrastructure ---------------- */

.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.ai-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ai-list li {
  display: flex;
  gap: 1.1rem;
  padding: 1.25rem 1.35rem;
  background: rgba(11, 15, 26, 0.86);
  transition: background 0.3s ease;
}
.ai-list li:hover { background: rgba(17, 24, 39, 0.94); }
.ai-num {
  flex: 0 0 auto;
  padding-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.ai-list h3 { font-size: 0.98rem; margin: 0 0 0.35rem; }
.ai-list p { font-size: 0.895rem; color: var(--muted); margin: 0; line-height: 1.6; }

.ai-stack {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(19, 25, 40, 0.92), rgba(11, 15, 26, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.ai-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at 85% 0%, rgba(77, 141, 255, 0.14), transparent 62%);
  pointer-events: none;
}
.ai-stack > * { position: relative; }
.ai-stack h3 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.ai-stack dl { margin: 0; }
.ai-stack dl > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.ai-stack dl > div:first-child { border-top: 0; padding-top: 0; }
.ai-stack dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-mono);
}
.ai-stack dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}
.ai-note {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------------- Steps ---------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.15rem;
}
.steps li {
  position: relative;
  padding: 1.55rem 1.4rem 1.5rem;
  background: rgba(13, 18, 32, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: "";
  position: absolute;
  top: 0; left: 1.4rem; right: 1.4rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 138, 61, 0.8), transparent);
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.steps h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.steps p { font-size: 0.9rem; color: var(--muted); }

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-copy { max-width: 60ch; }
.about-copy p { color: var(--muted); }
.about-copy strong { color: var(--text); font-weight: 600; }

.about-facts {
  background: linear-gradient(180deg, rgba(19, 25, 40, 0.92), rgba(11, 15, 26, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.about-facts h3 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.about-facts dl { margin: 0; }
.about-facts dl > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.about-facts dl > div:first-child { border-top: 0; padding-top: 0; }
.about-facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-mono);
}
.about-facts dd { margin: 0; font-size: 0.925rem; }

/* ---------------- Contact ---------------- */

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-copy { max-width: 52ch; }

.contact-facts {
  margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
  display: grid;
  border-top: 1px solid var(--line-strong);
}
.contact-facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-facts dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(152, 163, 187, 0.75);
}
.contact-facts dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.contact-facts a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-facts a:hover {
  color: var(--accent-2);
  border-color: currentColor;
}

/* ---------------- Contact form ---------------- */

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  background: linear-gradient(180deg, rgba(19, 25, 40, 0.94), rgba(11, 15, 26, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-head {
  margin: 0 0 0.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(152, 163, 187, 0.75);
}

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text);
  background: rgba(7, 10, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(152, 163, 187, 0.5); }
.field input:hover,
.field textarea:hover { border-color: var(--line-strong); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 138, 61, 0.55);
  background: rgba(11, 15, 26, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.12);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: rgba(255, 120, 120, 0.6); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.3rem;
}
.form-note {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(152, 163, 187, 0.8);
}
.form-note .mono { color: var(--text); }

@media (max-width: 560px) {
  .contact-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: clamp(2.4rem, 5vw, 3.4rem) 0 2.4rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.6rem 2rem;
  align-items: start;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}
.footer-brand p { font-size: 0.82rem; color: var(--muted); margin: 0; }
.footer-brand .footer-contact { margin-top: 0.45rem; }
.footer-brand .footer-contact a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-brand .footer-contact a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.footer-social { margin: 0.6rem 0 0; }
.footer-brand .footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.72rem 0.3rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-brand .footer-social a:hover {
  color: var(--text);
  border-color: rgba(77, 141, 255, 0.45);
  background: rgba(77, 141, 255, 0.08);
}
.footer-social svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--text); }

.footer-legal {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: rgba(152, 163, 187, 0.75);
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  margin: 0;
  line-height: 1.75;
}

/* ---------------- Reveal animation ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .about-grid,
  .ai-grid,
  .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .pillar {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }
  .pillar-num { padding-top: 0; }
  .pillar-outcomes-head { margin-bottom: 0.75rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 13, 24, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.15rem 1.25rem;
    font-size: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.25s ease;
  }
  .nav.is-open {
    max-height: 26rem;
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav-cta {
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem 1.1rem !important;
  }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { gap: 1rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .brand-text strong { font-size: 0.85rem; }
  .brand-text em { letter-spacing: 0.22em; }
}

/* ---------------- Motion & print ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

@media print {
  .site-header, .nav, .marquee, .hero-glow, .hero-grid, .hero-stars, .footer-nav { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .about-facts, .ai-stack, .pillar, .steps li { border-color: #ddd; background: #fff; }
  .ai-list, .ai-list li { border-color: #ddd; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
