/* ─────────────────────────────────────────────────────────────
   Vector E Solutions — site styles
   Built on the Simple.Operations design tokens (colors_and_type.css).
   Tokens only. Plus Jakarta Sans + Newsreader (serif figures only).
   ───────────────────────────────────────────────────────────── */

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

:root {
  --hero-bg: #14141c;
  --hero-bg2: #101017;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 132px);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --hi: #fbbf24; /* tweakable highlight accent */
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--so-font-family);
  color: var(--so-text);
  background: var(--so-bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ── Shared type helpers ─────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--so-accent);
  font-variant-numeric: tabular-nums;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 9999px;
  background: var(--so-accent); flex: none;
}
.eyebrow.amber { color: var(--hi); }
.eyebrow.amber::before { background: var(--hi); }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  letter-spacing: -0.03em; line-height: 1.04; max-width: 18ch;
}
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--so-text2); line-height: 1.62; }
.serif-fig {
  font-family: var(--serif); font-weight: 400; font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em; font-feature-settings: "lnum" 1;
}
.dot-sep { color: var(--so-text3); padding: 0 0.5ch; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  border-radius: 9999px; padding: 0.72rem 1.3rem; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--so-accent); color: var(--so-accent-text); }
.btn-primary:hover { box-shadow: 0 8px 22px -10px rgba(var(--so-accent-rgb), .8); }
.btn-ghost { background: transparent; color: var(--so-text); border-color: var(--so-border); }
.btn-ghost:hover { border-color: var(--so-text3); background: var(--so-surface2); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* dark-scoped button variants (hero / contact) */
.so-dark .btn-ghost { color: var(--so-text); border-color: rgba(255,255,255,.18); }
.so-dark .btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .mono-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--so-accent);
  display: grid; place-items: center; flex: none;
  color: #fff; font-weight: 800; font-size: 0.92rem; letter-spacing: -0.04em;
}
.brand .mono-mark .vee { position: relative; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-weight: 800; font-size: 0.98rem; letter-spacing: -0.02em; color: var(--nav-fg, var(--so-text)); }
.brand-text span { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nav-fg2, var(--so-text3)); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.nlink {
  color: var(--nav-fg2, var(--so-text2)); text-decoration: none;
  font-size: 0.92rem; font-weight: 600; padding: 8px 12px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a.nlink:hover { color: var(--nav-fg, var(--so-text)); }
.nav-cta { margin-left: 6px; }

/* default (over dark hero) */
.nav { --nav-fg: #f5f5f7; --nav-fg2: rgba(245,245,247,.72); }
.nav .nav-cta.btn-primary { background: var(--so-card-amber); color: #1a1a23; }
.nav .nav-cta.btn-primary:hover { box-shadow: 0 8px 22px -10px rgba(245,158,11,.7); }
/* scrolled (light) */
.nav.scrolled {
  background: rgba(251,251,252,.86); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom-color: var(--so-border);
  --nav-fg: #1a1a23; --nav-fg2: #4a4a55;
}
.nav.scrolled .brand .mono-mark { background: var(--so-accent); }
.nav.scrolled .nav-cta.btn-primary { background: var(--so-accent); color: #fff; }
.nav.scrolled .nav-links a.nlink:hover { background: var(--so-surface2); }
.nav-toggle { display: none; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-bg);
  color: var(--so-text);
  padding-top: clamp(118px, 16vh, 188px);
  padding-bottom: 0;
  isolation: isolate;
}
.hero .wrap { position: relative; z-index: 2; }

/* decorative layers */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* grid treatment */
.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 58px 58px; background-position: center top;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  opacity: 0;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 48% at 26% 30%, rgba(var(--so-accent-rgb), .26), transparent 66%),
    radial-gradient(45% 40% at 88% 8%, rgba(245,158,11,.12), transparent 70%);
  opacity: 0;
}
.hero-rail {
  position: absolute; top: 0; right: 0; bottom: 0; width: 320px;
  border-left: 1px solid rgba(255,255,255,.08);
  background:
    repeating-linear-gradient(rgba(255,255,255,.018) 0 2px, transparent 2px 5px);
  opacity: 0;
}
.hero-rail .sweep {
  position: absolute; left: -1px; top: -20%; width: 1px; height: 30%;
  background: linear-gradient(rgba(177,163,255,0), rgba(177,163,255,.9), rgba(177,163,255,0));
  animation: rail-sweep 4.5s linear infinite;
}
@keyframes rail-sweep { to { top: 120%; } }
.hero-rail .ticker { position: absolute; right: 22px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; align-items: flex-end; }
.hero-rail .ticker .tk { text-align: right; }
.hero-rail .ticker .tk .v { font-family: var(--so-font-family-mono); font-size: 1.2rem; font-weight: 600; color: #cfcad9; font-variant-numeric: tabular-nums; }
.hero-rail .ticker .tk .l { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,245,247,.45); }

/* treatment switches */
[data-hero="grid"] .hero-grid { opacity: 1; }
[data-hero="grid"] .hero-glow { opacity: .55; }
[data-hero="spotlight"] .hero-glow { opacity: 1; }
[data-hero="spotlight"] .hero { background: var(--hero-bg2); }
[data-hero="rail"] .hero-grid { opacity: .5; }
[data-hero="rail"] .hero-rail { opacity: 1; }
[data-hero="rail"] .hero-glow { opacity: .35; }

@media (prefers-reduced-motion: reduce) { .hero-rail .sweep { animation: none; } }

/* hero content */
.hero-content { max-width: 940px; padding-bottom: clamp(40px, 7vw, 88px); }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.7rem);
  letter-spacing: -0.035em; line-height: 1.02; margin: 22px 0 0;
  max-width: 16ch;
}
.hero h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--hi); letter-spacing: -0.01em;
}
.hero-sub {
  margin: 26px 0 0; max-width: 50ch;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.6;
  color: rgba(245,245,247,.82);
}
.hero-sub b { color: #fff; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-cta .btn-primary { background: var(--so-card-amber); color: #1a1a23; }
.hero-cta .btn-primary:hover { box-shadow: 0 10px 26px -10px rgba(245,158,11,.7); }

/* capability rail at base of hero */
.cap-rail {
  position: relative; z-index: 2; margin-top: clamp(28px, 5vw, 56px);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 0;
}
.cap-rail .cap {
  flex: 1 1 auto; min-width: 130px; padding: 18px 4px 22px;
  display: flex; flex-direction: column; gap: 5px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.cap-rail .cap:last-child { border-right: 0; }
.cap-rail .cap .k {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(245,245,247,.42);
}
.cap-rail .cap .v { font-size: 0.98rem; font-weight: 700; color: #ededf2; letter-spacing: -0.01em; }

/* ── ENGAGEMENT STRIP ────────────────────────────────────────── */
.engage {
  background: var(--hero-bg); color: #f5f5f7;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: clamp(34px, 5vw, 52px) 0;
}
.engage .wrap { display: grid; grid-template-columns: minmax(190px, 230px) 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.engage .lab { color: rgba(245,245,247,.5); }
.engage .lab .eyebrow { color: rgba(245,245,247,.55); }
.engage .lab .eyebrow::before { background: var(--so-card-amber); }
.engage .lab p { margin: 10px 0 0; font-size: 0.88rem; color: rgba(245,245,247,.55); line-height: 1.5; max-width: 24ch; }
.engage .items { display: grid; grid-template-columns: repeat(5, 1fr); }
.engage .items .ind {
  padding: 4px 18px; border-left: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 6px;
}
.engage .items .ind:first-child { border-left: 0; padding-left: 0; }
.engage .items .ind .nm { font-size: clamp(0.92rem, 1.1vw, 1.04rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.18; }
.engage .items .ind .sc { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,245,247,.4); }

/* ── Section scaffold ────────────────────────────────────────── */
section.block { padding-block: var(--section-y); }
.block-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 56px); }
.block-head .section-title { margin-top: 16px; }
.block-head .lede { margin-top: 18px; }

/* ── SERVICES ────────────────────────────────────────────────── */
.services { background: var(--so-surface); border-top: 1px solid var(--so-border); }
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--so-border);
  border: 1px solid var(--so-border); border-radius: var(--so-radius-md); overflow: hidden;
}
.svc {
  background: var(--so-surface); padding: clamp(26px, 2.6vw, 38px);
  display: flex; flex-direction: column; gap: 16px;
  transition: background .18s ease;
}
.svc:hover { background: var(--so-bg); }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.svc-num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 4vw, 3.5rem); line-height: 0.8; color: var(--so-text); letter-spacing: -0.02em; }
.svc-ico { width: 40px; height: 40px; border-radius: var(--so-radius-sm); display: grid; place-items: center; background: var(--so-accent-soft); color: var(--so-accent); flex: none; }
.svc-ico svg { width: 22px; height: 22px; }
.svc h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.svc-sub { font-size: 0.95rem; color: var(--so-text2); line-height: 1.5; }
.svc ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--so-border); }
.svc ul li {
  font-size: 0.9rem; color: var(--so-text2); padding: 10px 0; line-height: 1.4;
  border-bottom: 1px solid var(--so-border); display: flex; gap: 9px; align-items: baseline;
}
.svc ul li:last-child { border-bottom: 0; }
.svc ul li::before { content: ""; width: 5px; height: 5px; margin-top: 7px; border-radius: 1px; background: var(--so-accent); flex: none; transform: rotate(45deg); }

/* ── APPROACH ───────────────────────────────────────────────── */
.approach { background: var(--so-bg); border-top: 1px solid var(--so-border); }
.approach-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.approach-head .pill-note {
  font-size: 0.8rem; font-weight: 600; color: var(--so-text2);
  border: 1px solid var(--so-border); border-radius: 9999px; padding: 8px 16px;
  background: var(--so-surface); white-space: nowrap;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--so-border); border: 1px solid var(--so-border); border-radius: var(--so-radius-md); overflow: hidden; }
.step { background: var(--so-surface); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.step-top { display: flex; align-items: center; gap: 12px; }
.step-num { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--so-accent); font-variant-numeric: tabular-nums; line-height: 1; }
.step-line { flex: 1; height: 1px; background: var(--so-border); }
.step-arrow { color: var(--so-text3); }
.step h3 { font-size: 1.06rem; font-weight: 800; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 0.9rem; color: var(--so-text2); line-height: 1.55; }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about { background: var(--so-surface); border-top: 1px solid var(--so-border); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
.about h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.06; max-width: 16ch; }
.about-body p { margin: 0 0 18px; font-size: 1.04rem; color: var(--so-text2); line-height: 1.66; }
.about-body p:last-child { margin-bottom: 0; }
.about-body p b { color: var(--so-text); font-weight: 700; }
.stats { margin-top: clamp(34px, 5vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--so-border); border: 1px solid var(--so-border); border-radius: var(--so-radius-md); overflow: hidden; }
.stat { background: var(--so-surface); padding: 24px clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 7px; }
.stat .n { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 0.9; color: var(--so-text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .n .u { font-size: 0.5em; color: var(--so-accent); font-family: var(--so-font-family); font-weight: 700; margin-left: 2px; }
.stat .l { font-size: 0.82rem; color: var(--so-text2); font-weight: 600; line-height: 1.35; }

/* ── CONTACT ────────────────────────────────────────────────── */
.contact { background: var(--hero-bg2); color: #f5f5f7; position: relative; overflow: hidden; }
.contact .glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(48% 60% at 78% 30%, rgba(var(--so-accent-rgb), .3), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(245,158,11,.1), transparent 70%); }
.contact .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.04; max-width: 14ch; }
.contact-sub { margin-top: 22px; font-size: 1.08rem; line-height: 1.6; color: rgba(245,245,247,.78); max-width: 46ch; }
.contact-scenarios { margin-top: 26px; display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: var(--so-radius-md); overflow: hidden; }
.contact-scenarios .row { background: var(--hero-bg2); padding: 14px 18px; display: flex; gap: 13px; align-items: center; font-size: 0.96rem; color: rgba(245,245,247,.9); }
.contact-scenarios .row .tag { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hi); flex: none; width: 64px; }
[data-sector="off"] .engage .items .ind .sc { display: none; }
.contact-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--so-radius-md); padding: clamp(26px, 3vw, 38px);
  display: flex; flex-direction: column; gap: 18px;
}
.contact-card .ce { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,245,247,.5); }
.contact-card .addr { font-family: var(--so-font-family-mono); font-size: 1.02rem; color: #fff; word-break: break-all; }
.contact-card .btn-primary { background: var(--so-card-amber); color: #1a1a23; justify-content: center; width: 100%; }
.contact-card .btn-primary:hover { box-shadow: 0 10px 26px -10px rgba(245,158,11,.7); }
.contact-card .fine { font-size: 0.82rem; color: rgba(245,245,247,.55); line-height: 1.5; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--hero-bg); color: #f5f5f7; border-top: 1px solid rgba(255,255,255,.08); padding: clamp(40px, 5vw, 60px) 0 32px; }
.footer .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .brand-block { max-width: 30ch; }
.footer .brand-block .domain { margin-top: 12px; font-family: var(--so-font-family-mono); font-size: 0.84rem; color: rgba(245,245,247,.55); }
.footer .fnav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer .fnav a { color: rgba(245,245,247,.72); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.footer .fnav a:hover { color: #fff; }
.footer .legal { padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.footer .legal .copy { font-size: 0.84rem; color: rgba(245,245,247,.6); }
.footer .legal .tm { font-size: 0.78rem; color: rgba(245,245,247,.42); line-height: 1.5; max-width: 80ch; }

/* ── fade-in on scroll ──────────────────────────────────────── */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .engage .wrap { grid-template-columns: 1fr; gap: 22px; }
  .engage .items { grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
  .engage .items .ind { border-left: 0; padding: 14px 16px; background: var(--hero-bg2); }
  .engage .items .ind:first-child { padding: 14px 16px; }
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact .wrap { grid-template-columns: 1fr; }
  .approach-head { grid-template-columns: 1fr; }
  .approach-head .pill-note { justify-self: start; }
}
@media (max-width: 560px) {
  .hero h1 { max-width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .engage .items { grid-template-columns: 1fr; }
  .cap-rail .cap { min-width: 45%; }
  .footer .top { flex-direction: column; }
}
