/* Eisen Partners — shared site styles */
:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --panel: transparent;
  --fg: #0a0a0a;
  --fg-dim: #3c3f46;
  --muted: #6b6f78;
  --muted-2: #9da1a9;
  --line: rgba(0,0,0,0.09);
  --line-2: rgba(0,0,0,0.16);
  --accent: #0a0a0a;
  --green: #178233;
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;
  --container: 1040px;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

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

/* flat background — no more gradients, no grid overlay */
.site-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--bg);
}
.site-grid { display: none; }

/* layout */
.site {
  position: relative; z-index: 1;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 32px;
}

/* header — no backdrop blur, hairline only */
.header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-weight: 500; letter-spacing: -0.01em; font-size: 17px;
}
/* Shield-with-drop-cutout mark. Colored by currentColor (inherits from parent). */
.mark {
  display: inline-block;
  width: 32px; height: 32px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill-rule='evenodd' clip-rule='evenodd' d='M24 4 L9 8 V23 C9 33.5 16.5 41 24 44.5 C31.5 41 39 33.5 39 23 V8 L24 4 Z M24 15 C21 19.5 18 22.8 18 26.5 C18 30 20.7 32.5 24 32.5 C27.3 32.5 30 30 30 26.5 C30 22.8 27 19.5 24 15 Z' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill-rule='evenodd' clip-rule='evenodd' d='M24 4 L9 8 V23 C9 33.5 16.5 41 24 44.5 C31.5 41 39 33.5 39 23 V8 L24 4 Z M24 15 C21 19.5 18 22.8 18 26.5 C18 30 20.7 32.5 24 32.5 C27.3 32.5 30 30 30 26.5 C30 22.8 27 19.5 24 15 Z' fill='black'/></svg>");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.nav {
  display: flex; align-items: center; gap: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: -0.005em;
}
.nav a {
  color: var(--muted); transition: color .15s; text-transform: lowercase;
  position: relative; padding-bottom: 2px;
}
.nav a.active, .nav a:hover { color: var(--fg); }
.nav a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1.5px; background: var(--green);
  border-radius: 1px;
}

/* selection — hint of green on highlight */
::selection { background: rgba(23, 130, 51, 0.18); color: var(--fg); }
::-moz-selection { background: rgba(23, 130, 51, 0.18); color: var(--fg); }

/* caret — green tick when typing */
input, textarea { caret-color: var(--green); }

/* random green letter — sprinkle for character */
.g { color: var(--green); }
.nav .nav-cta {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 12px;
  text-transform: lowercase;
}
.nav .nav-cta:hover { border-color: rgba(0,0,0,0.35); background: rgba(0,0,0,0.03); }

/* mobile nav (hamburger toggle — hidden on desktop, shown ≤ 720px) */
.nav-toggle {
  display: none;
  background: none; border: 0;
  color: var(--fg); padding: 8px;
  cursor: pointer; line-height: 0;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { color: var(--green); }

/* main */
.main { flex: 1; }

/* hero — more breathing room, left-align option */
.hero {
  padding: 140px 0 120px;
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 40px;
  text-transform: lowercase;
}
.dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.h1 {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5.6vw, 60px);
  font-weight: 500; letter-spacing: -0.028em; line-height: 1.08;
  max-width: 860px; margin: 0 auto 32px;
  overflow-wrap: break-word;
}
.h1 .soft { color: var(--muted); font-weight: 400; }
.lede {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--fg-dim);
  max-width: 560px; margin: 0 auto 44px;
  line-height: 1.65;
}

/* buttons — squarer, mono label, flat */
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500; letter-spacing: -0.005em;
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer; border: 1px solid transparent;
  text-transform: lowercase;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: #2b2d33; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(0,0,0,0.35); background: rgba(0,0,0,0.03); }

/* sections — more generous rhythm */
.section { padding: 120px 0; }
.section-tight { padding: 72px 0; }
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 500; letter-spacing: -0.022em; line-height: 1.18;
  margin-bottom: 20px;
}
.section-sub {
  color: var(--muted); font-size: 15.5px; max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.65;
}

/* pillar grid — flatten, no card bg, just hairlines */
.grid-3, .grid-2 {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 .card, .grid-2 .card {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 36px 28px;
  transition: background .15s;
}
.grid-3 .card:nth-child(3n),
.grid-2 .card:nth-child(2n) { border-right: 0; }
.grid-3 .card:hover, .grid-2 .card:hover { background: rgba(0,0,0,0.02); }
@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 .card, .grid-2 .card { border-right: 0; }
}

/* understated data-credibility line */
.data-line {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--fg-dim);
  letter-spacing: -0.005em;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted-2); letter-spacing: 0.02em;
  text-transform: lowercase; margin-bottom: 20px;
}
.card-title {
  font-family: var(--font-sans);
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.card-body { color: var(--fg-dim); font-size: 14px; line-height: 1.7; }

/* article */
.prose { max-width: 640px; }
.prose p { color: var(--fg-dim); font-size: 16px; margin-bottom: 22px; line-height: 1.75; }
.prose h2 {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.2vw, 26px); font-weight: 500;
  letter-spacing: -0.018em; margin: 56px 0 18px;
}

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted); font-size: 12px;
  font-family: var(--font-mono);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer a:hover { color: var(--fg); }
.footer-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }

/* legal pages — privacy / terms / 404 */
.legal { max-width: 720px; }
.legal-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4vw, 48px); font-weight: 600;
  letter-spacing: -0.022em; margin: 14px 0 8px;
  color: var(--fg);
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  margin-bottom: 36px;
}
.legal h2 {
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.012em;
  margin: 36px 0 12px; color: var(--fg);
}
.legal p, .legal li {
  color: var(--fg-dim); font-size: 15px; line-height: 1.72;
  margin-bottom: 14px;
}
.legal ul { padding-left: 22px; margin-bottom: 18px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--green); }
.legal code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(0,0,0,0.04);
  padding: 2px 6px; border-radius: 3px;
}

/* 404 page */
.notfound { text-align: center; max-width: 560px; margin: 0 auto; padding: 80px 0; }
.notfound-code {
  font-family: var(--font-mono);
  font-size: 14px; color: var(--green);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 18px;
}
.notfound h1 {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4vw, 52px); font-weight: 600;
  letter-spacing: -0.022em; margin-bottom: 14px;
}
.notfound p { color: var(--fg-dim); font-size: 16px; margin-bottom: 32px; }

@media (max-width: 720px) {
  /* Show hamburger, replace horizontal nav with slide-down drawer */
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 22px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(0,0,0,0.12);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
    z-index: 19;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 14px 4px;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }
  .nav a.active::after { display: none; }
  .nav .nav-cta {
    margin-top: 14px;
    padding: 12px 16px; font-size: 13px;
    text-align: center;
    border-bottom: 1px solid var(--line-2);
  }
  .hero { padding: 88px 0 72px; }
  .section { padding: 72px 0; }
  .section-tight { padding: 48px 0; }
  .container { padding: 0 22px; }
}

/* forms — mono labels, hairline inputs */
.form { display: grid; gap: 18px; max-width: 520px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.02em; text-transform: lowercase;
}
.field input, .field textarea, .field select {
  padding: 13px 14px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-sans); font-size: 14.5px;
  transition: border-color .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: rgba(0,0,0,0.45);
}
.form-note {
  color: var(--muted); font-size: 11.5px;
  font-family: var(--font-mono); letter-spacing: 0.02em;
}

/* utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* tiny ISO-style metadata tag */
.meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  text-transform: lowercase;
}
