/* ============ TOKENS ============ */
:root {
  --ink: #0a0a0a;
  --ink-2: #161616;
  --ink-3: #2a2a2a;
  --slate: #4a5563;
  --slate-border: #5a6573;
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --line: #d9d3c4;
  --line-dark: #2a2a2a;
  --muted: #5a5a55;
  --muted-light: #b6b1a4;
  --hi: #1E50FF;          /* ESX bright blue */
  --hi-ink: #ffffff;
  --hi-warm: #4A75FF;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 2px;
  --t: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ============ LAYOUT ============ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--paper-2); color: var(--ink); border-top: 1px solid var(--line); }
.section--dark .section__h { color: var(--ink); }

.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--wide { max-width: none; }
.section__head--wide .section__lede { max-width: 60ch; }
.section__head--wide .section__lede--nowrap { max-width: none; }
@media (min-width: 880px) { .section__h--nowrap { white-space: nowrap; } }
@media (min-width: 1024px) { .section__lede--nowrap { white-space: nowrap; } }
.section__head--light .kicker { color: var(--hi); }
.kicker {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section--dark .kicker { color: var(--muted); }
.section__h {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section__lede {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  margin: 0;
}
.section--dark .section__lede { color: var(--muted); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,241,234,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo__mark {
  width: 32px; height: 26px;
  color: var(--hi);
  flex-shrink: 0;
}
.logo__stack { display: inline-flex; flex-direction: column; line-height: 1.05; gap: 2px; }
.logo__type {
  font-weight: 900; letter-spacing: -0.015em; font-size: 26px;
  color: var(--ink);
}
.logo__sub {
  font-size: 14px; letter-spacing: 0;
  color: var(--muted); font-weight: 500;
}
.logo__type-light { font-weight: 400; color: var(--muted); }
.logo__type-accent { color: var(--hi); }
.section--dark .logo__type-light, .footer .logo__type-light { color: var(--muted); }
.footer .logo__sub, .section--dark .logo__sub { color: var(--muted); }
.note-bracket {
  display: inline; color: var(--muted);
}

.nav__links {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px);
  font-size: 15px;
}
.nav__links a { color: var(--ink-3); transition: color .2s var(--t); }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--hi); color: #ffffff !important;
  padding: 11px 18px 11px 20px; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 4px 4px 0 0 var(--ink);
  border: 1.5px solid var(--ink);
  font-weight: 500; transition: background .2s var(--t), transform .2s var(--t);
  position: relative;
}
.nav__cta {
  transition: transform .15s var(--t), box-shadow .15s var(--t), background .15s var(--t);
}
.nav__cta-arrow {
  width: 14px; height: 14px;
  transition: transform .2s var(--t);
}
.nav__cta:hover {
  background: #0d3fe6;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.nav__cta:hover .nav__cta-arrow { transform: translateX(3px); }
.nav__cta:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--ink);
}

@media (max-width: 760px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding-top: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(40px, 5vw, 72px);
  background: var(--paper);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(10,10,10,0.025) 22px 23px),
    radial-gradient(800px 380px at 95% -10%, rgba(30, 80, 255, 0.14), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 8px 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.5); border-radius: 100px;
  margin-bottom: 32px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hi); box-shadow: 0 0 0 4px rgba(30, 80, 255, 0.22);
}
.hero__h {
  font-size: clamp(36px, 6.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin: 0 0 28px;
  max-width: 14ch;
}
.hl {
  color: #ffffff;
  background: linear-gradient(transparent 4%, var(--hi) 4% 96%, transparent 96%);
  padding: 0 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero__sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 36px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.hero__strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero__strip > div {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.hero__strip > div:last-child { border-right: 0; }
.hero__strip .num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px; font-weight: 500;
  color: var(--ink); letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__strip .num::before {
  content: ""; width: 6px; height: 6px; background: var(--hi); border-radius: 1px;
}
.hero__strip .lbl { font-size: 14px; color: var(--muted); }
.pillar__badge {
  display: block;
  width: 120px;
  height: auto;
  margin-top: 16px;
  user-select: none;
}
@media (max-width: 760px) {
  .hero__strip { grid-template-columns: repeat(2, 1fr); }
  .hero__strip > div:nth-child(2) { border-right: 0; }
  .hero__strip > div:nth-child(1), .hero__strip > div:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 500; font-size: 15px; letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform .2s var(--t), background .2s var(--t), color .2s var(--t), border-color .2s var(--t);
  position: relative;
}
.btn--primary {
  background: var(--hi); color: #ffffff;
  border-color: var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
}
.btn--primary:hover { background: #0d3fe6; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 var(--ink); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--ink); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; padding: 16px 24px; }

/* ============ GRID / CARDS ============ */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--three { grid-template-columns: repeat(3, 1fr); gap: 24px; background: transparent; border: 0; }
@media (max-width: 960px) { .grid--services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--services, .grid--three { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  padding: 32px 28px 36px;
  position: relative;
  transition: background .2s var(--t);
}
.card:hover { background: #fffdf2; }
.section--alt .card { background: var(--paper-2); }
.section--alt .card:hover { background: #fffdf2; }
.card__num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--muted); letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 10px; line-height: 1.2;
}
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--hi); transition: width .35s var(--t);
}
.card:hover::before { width: 56px; }

/* ============ PROCESS ============ */
.process {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: step;
}
.process li {
  background: var(--paper);
  padding: 28px 24px 32px;
  border-top: 3px solid var(--ink);
  position: relative;
}
.process li::before {
  content: ""; position: absolute; top: -3px; left: 0; height: 3px; width: 24px;
  background: var(--hi);
}
.process__n {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; color: var(--muted);
  margin-bottom: 14px; letter-spacing: 0.05em;
}
.process h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.process p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ============ LAW ============ */
.law {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  align-items: start;
}
.law p { color: var(--muted); }
.law__note {
  margin-top: 24px; padding: 18px 20px;
  background: var(--paper-2); border-left: 3px solid var(--hi);
  color: var(--ink-3); font-size: 15.5px;
}
.law__aside {
  background: var(--paper-2); color: var(--ink);
  padding: 36px 36px 40px;
  position: sticky; top: 100px;
  border-top: 4px solid var(--hi);
}
.law__aside-h {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--hi); margin-bottom: 24px;
  font-weight: 500;
}
.law__aside dl { margin: 0; display: grid; gap: 22px; }
.law__aside dl > div {
  display: grid; gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.law__aside dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.law__aside dt {
  font-size: 11px; color: var(--hi-warm);
  font-family: 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500;
}
.law__aside dd {
  margin: 0; color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
}
@media (max-width: 860px) {
  .law { grid-template-columns: 1fr; gap: 32px; }
  .law__aside { position: static; }
}

/* ============ PILLARS (dark section) ============ */
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px 36px;
  position: relative;
  transition: border-color .2s var(--t);
}
.pillar:hover { border-color: var(--hi); }
.pillar__num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--hi); font-size: 12px;
  letter-spacing: 0.06em; margin-bottom: 16px;
}
.pillar h3 { color: var(--ink); margin: 0 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.pillar p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ============ CONTACT ============ */
.contact {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px;
  align-items: start;
}
.contact__intro p { color: var(--muted); }
.contact__bullets {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 10px;
}
.contact__bullets li {
  font-size: 15px; color: var(--ink-3);
  padding-left: 22px; position: relative;
}
.contact__bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 3px; background: var(--hi);
}

.form {
  background: var(--paper-2);
  padding: 32px;
  border: 1px solid var(--line);
  display: grid; gap: 18px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; }
.form label > span {
  font-size: 13px; color: var(--ink-3);
  font-family: 'Geist Mono', ui-monospace, monospace; letter-spacing: 0.04em;
}
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .15s var(--t), box-shadow .15s var(--t);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 3px 3px 0 0 var(--hi);
}
.form textarea { resize: vertical; }
.form__status {
  font-size: 14px; color: var(--muted);
  min-height: 20px;
}
.form__status[data-state="ok"] { color: #1a6b1a; }
.form__status[data-state="err"] { color: #a62323; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .form .row { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--paper-2); color: var(--muted);
  padding-top: 64px;
}
.footer__inner {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer__brand p { color: var(--muted); margin: 14px 0 0; max-width: 32ch; }
.footer .logo__type { color: var(--ink); }
.footer .logo__type-accent { color: var(--hi); }
.footer__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer__cols a {
  display: block; color: var(--muted); padding: 4px 0; font-size: 14.5px;
  transition: color .2s var(--t);
}
.footer__cols a:hover { color: var(--hi); }
.footer__h {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); font-weight: 600; margin-bottom: 12px;
}
.footer__legal {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px; padding: 24px 0 32px; color: var(--muted);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ============ MOTION / A11Y ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 3px solid var(--hi); outline-offset: 3px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--t), transform .6s var(--t); }
.reveal.is-in { opacity: 1; transform: none; }
