/* ==========================================================================
   Nexus Point Ventures — Option B, "Signal"
   Modern, data-driven, sharp. Dark ground, 1px borders, one teal accent.
   The violet secondary accent appears only on the step numbers.
   ========================================================================== */

:root {
  --bg: #0B0D12;
  --surface: #141821;
  --border: #232A36;
  --text: #EEF1F6;
  --muted: #9AA3B2;
  --accent: #2DD4BF;
  --accent-2: #7C8CFF;
  --on-accent: #062A26;

  /* Placeholders and draft tags (strong only in .preview) */
  --confirm-bg: #2A2410;
  --confirm-text: #F3D27A;
  --confirm-border: #C9A03A;

  --display: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-h1: clamp(2.75rem, 6vw, 4.75rem);
  --fs-h2: clamp(1.875rem, 3.4vw, 2.875rem);
  --fs-h3: 1.25rem;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section: 72px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --radius: 12px;
  --header-h: 68px;
}
@media (min-width: 1024px) { :root { --section: 112px; } }

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; color: var(--text); font-family: var(--display); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 0.75rem 1rem; background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none; border-radius: 8px;
}
.skip-link:focus { top: 0.75rem; color: var(--on-accent); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.8rem 1.5rem;
  border: 1px solid transparent; border-radius: 10px;
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #5EEAD4; color: var(--on-accent); box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--text); background: rgba(45, 212, 191, 0.06); }
.btn-sm { min-height: 44px; padding: 0.55rem 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-halo { fill: var(--accent); opacity: 0.22; }
.brand-dot { fill: var(--accent); }
.brand-name { font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav ul a { font-size: var(--fs-small); font-weight: 500; text-decoration: none; color: var(--muted); padding: 0.5rem 0; }
.site-nav ul a:hover { color: var(--text); }

.nav-toggle {
  display: none; width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: var(--text);
}
.nav-toggle-bars { display: grid; gap: 5px; width: 22px; margin: 0 auto; }
.nav-toggle-bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.85rem 0; border-top: 1px solid var(--border); color: var(--text); }
  .site-nav .btn { margin-top: 0.75rem; }
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: flex; }
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(5rem, 12vw, 9.5rem) 0 clamp(4.5rem, 10vw, 8rem);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-art { position: absolute; inset: 0; z-index: -1; opacity: 0.35; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
.net-lines line, .net-hub line { stroke: #9AA3B2; stroke-width: 1; }
.net-hub line { stroke: var(--accent); stroke-opacity: 0.7; }
.net-dots circle { fill: #C9D1DD; }
.nexus-core { fill: #CCFBF1; }
/* Slow drift. Two layers at different speeds give a little depth. */
.net-a { animation: drift-a 38s ease-in-out infinite alternate; }
.net-b { animation: drift-b 52s ease-in-out infinite alternate; }
.nexus-glow { transform-origin: 720px 120px; animation: pulse 6s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-18px, 10px); } }
@keyframes drift-b { to { transform: translate(14px, -12px); } }
@keyframes pulse { from { opacity: 0.75; } to { opacity: 1; } }

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 52ch; margin: 1.5rem auto 0; }
.hero .btn-row { justify-content: center; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); line-height: 1.6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 1.25rem;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(45, 212, 191, 0.7); }
.hero .eyebrow {
  margin-bottom: 1.75rem; padding: 0.4rem 0.9rem;
  border: 1px solid var(--border); border-radius: 99px; background: rgba(20, 24, 33, 0.8);
}

/* ------------------------------------------------------------------ strip */
.strip { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.stats { display: grid; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.75rem; }
.stat + .stat { border-top: 1px solid var(--border); }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 2.25rem; }
  .stat + .stat { border-top: 0; border-left: 1px solid var(--border); }
}
.stat-num { font-family: var(--display); font-size: clamp(2.5rem, 4vw, 3.25rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--accent); align-self: flex-start; }
.stat-label { font-size: var(--fs-small); color: var(--muted); align-self: flex-start; }

/* --------------------------------------------------------------- sections */
.section { padding: var(--section) 0; }
.section-alt { background: linear-gradient(180deg, rgba(20, 24, 33, 0.6), rgba(20, 24, 33, 0)); border-top: 1px solid var(--border); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card p { color: var(--muted); }
.card h3 { margin-bottom: 0.7rem; }
/* Teal top-edge glow on hover. */
.card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
.card::after {
  content: ''; position: absolute; left: 10%; right: 10%; top: -40px; height: 60px;
  background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.22), transparent 70%);
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.card:hover { border-color: #2E3746; }
.card:hover::before, .card:hover::after { opacity: 1; }
.confirm.card::before, .confirm.card::after { display: none; }

.who-grid { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .who-grid { grid-template-columns: repeat(3, 1fr); } }

.services-grid { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service { padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.service h3 { font-size: 1.4rem; }
.ticks { display: grid; gap: 0.6rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.ticks li { position: relative; padding-left: 1.5rem; font-size: var(--fs-small); color: var(--text); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px;
  border-radius: 50%; border: 1.5px solid var(--accent);
}

.steps { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; padding: 0.3rem 0.65rem;
  border: 1px solid rgba(124, 140, 255, 0.45); border-radius: 8px;
  font-family: var(--display); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent-2);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); }

.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; } }
.portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 420px; border-radius: var(--radius); }
.about-copy h2 { margin-bottom: 1.25rem; }
.about-copy p { color: var(--muted); }
.about-sign { margin-top: 1.5rem; font-family: var(--display); font-weight: 600; color: var(--text) !important; }

.quotes { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { margin: 0; min-height: 12rem; }

.faq-wrap { max-width: calc(820px + 2 * var(--gutter)); }
.faq { display: grid; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 64px; padding: 1.1rem 1.4rem;
  background: none; border: 0; border-radius: var(--radius); cursor: pointer; text-align: left;
  font-family: var(--display); font-size: 1.0625rem; font-weight: 600; color: var(--text);
}
.faq-q::after {
  content: ''; flex: none; width: 12px; height: 12px;
  background: linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
              linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat;
  transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.4rem 1.4rem; }
.faq-a p { color: var(--muted); }

.contact { position: relative; overflow: hidden; border-top: 1px solid var(--border); }
.contact::before {
  content: ''; position: absolute; left: 50%; top: 0; width: min(900px, 120vw); height: 420px;
  transform: translate(-50%, -55%);
  background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.14), transparent 65%);
  pointer-events: none;
}
.contact-inner { position: relative; text-align: center; }
.contact-inner .lead { margin: 1.25rem auto 0; }
.contact .btn-row { justify-content: center; }
.contact-note { max-width: 36rem; margin: 2rem auto 0; }
.contact-loc { margin: 1.5rem auto 0; font-size: var(--fs-small); color: var(--muted); }

/* ----------------------------------------------------------------- footer */
.site-footer { padding: 3.5rem 0; border-top: 1px solid var(--border); background: #08090D; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-copy, .footer-mail { margin: 1rem 0 0; font-size: var(--fs-small); color: var(--muted); }
.footer-mail { margin-top: 0.25rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; align-content: flex-start; }
.footer-nav a { font-size: var(--fs-small); text-decoration: none; padding: 0.5rem 0; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }

/* ---------------------------------------------------- placeholders, draft */
.confirm {
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; border: 1.5px dashed #3A4352; border-radius: var(--radius);
  background: rgba(20, 24, 33, 0.6); color: var(--muted); text-align: center;
}
.confirm-label { font-size: var(--fs-small); font-weight: 600; line-height: 1.45; }
.about-copy .confirm { margin: 0 0 1em; }
.confirm-inline { font-weight: 600; }
.draft-tag { display: none; }

.preview .confirm { background: var(--confirm-bg); border-color: var(--confirm-border); color: var(--confirm-text); }
.preview .confirm-inline { background: var(--confirm-bg); color: var(--confirm-text); outline: 1.5px dashed var(--confirm-border); outline-offset: 1px; padding: 0 0.25em; border-radius: 4px; }
.preview .draft-tag {
  display: inline-block; margin-bottom: 1rem; padding: 0.2rem 0.55rem;
  background: var(--confirm-bg); color: var(--confirm-text); border: 1px solid var(--confirm-border); border-radius: 6px;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ----------------------------------------------------------------- motion */
.reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.nowrap { white-space: nowrap; }

/* About: brand mark panel (stands in until there is a headshot). */
.portrait-mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; border: 1px solid var(--border); background: radial-gradient(circle at 50% 42%, rgba(45, 212, 191, 0.12), transparent 60%), var(--surface); }
.portrait-mark-svg { width: 36%; height: auto; color: var(--text); }
.portrait-mark-name { font-family: var(--display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
