/* ============================================================
   KNOWLEDGE EQUITY PARTNERS — Shared Stylesheet
   Brand: KEP electric blue on deep navy (matches the KEP logo)
   Fonts: Space Grotesk (display) + Hanken Grotesk (body)
   You rarely need to touch this file. Colors are set as variables
   at the top — change them there to re-skin the whole site.
   ============================================================ */

:root {
  /* ---- Brand colors (edit these to re-theme everything) ---- */
  --ink:        #0b1a2e;   /* deep navy, primary text + dark sections */
  --ink-soft:   #2c3e52;   /* softer navy for secondary text */
  --paper:      #f4f8fc;   /* cool near-white page background */
  --paper-2:    #e7eff7;   /* slightly deeper panel tint */
  --gold:       #1496d8;   /* primary accent — KEP electric blue */
  --gold-deep:  #0d7ab4;   /* darker blue for hovers */
  --line:       #d4e0ec;   /* hairline rules on paper */
  --line-dark:  #213a52;   /* hairline rules on navy */
  --muted:      #5a6b7d;   /* muted captions on paper */
  --muted-2:    #93a8bd;   /* muted text on navy */
  --white:      #ffffff;
  --max:        1180px;    /* max content width */
}

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:wght@300..800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.005em;
  /* subtle network-glow grain */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(20,150,216,0.06), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(11,26,46,0.04), transparent 45%);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.serif { font-family: 'Space Grotesk', system-ui, sans-serif; }

.eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-deep);
  display: inline-block;
}
.eyebrow.on-ink { color: var(--gold); }

.lead { font-size: 1.22rem; color: var(--ink-soft); line-height: 1.55; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
section { position: relative; }
.section-pad { padding: 96px 0; }
.divider { height: 1px; background: var(--line); border: 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,248,252,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.12rem;
  letter-spacing: -0.01em; line-height: 1.05;
}
.brand .name small { display:block; font-family:'Hanken Grotesk',sans-serif;
  font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:1.5px;
  background: var(--gold); transition: width .28s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
/* keep the CTA button readable inside the nav (override link colors) */
.nav-links a.btn, .nav-links a.btn:hover { color: var(--paper); }
.nav-links a.btn:hover { color: var(--white); }
.nav-links a.btn::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; }
.nav-toggle span { display:block; width:22px; height:1.6px; background: var(--ink);
  margin: 5px auto; transition: .3s; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Hanken Grotesk', sans-serif; font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.01em;
  padding: 13px 24px; border-radius: 2px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep);
  color: var(--white); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(143,101,38,0.25); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }

.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper);
  border-color: var(--ink); box-shadow:none; }
.btn.on-ink { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.on-ink:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn.ghost.on-ink { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn.ghost.on-ink:hover { background: var(--paper); color: var(--ink); }
.btn.sm { padding: 9px 18px; font-size: 0.84rem; }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { padding: 92px 0 84px; position: relative; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  font-weight: 600; max-width: 17ch; margin-bottom: 26px; letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { max-width: 56ch; margin-bottom: 38px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 56px; display: flex; gap: 44px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 26px; }
.hero-meta div .n { font-family:'Space Grotesk',sans-serif; font-size: 1.7rem; display:block;
  color: var(--ink); }
.hero-meta div .l { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); }

/* ============================================================
   PILLARS / CARDS
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: var(--white); }
.pillar {
  padding: 40px 34px 34px; position: relative; display: flex; flex-direction: column;
  border-right: 1px solid var(--line); transition: background .3s ease;
  min-height: 320px;
}
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--paper-2); }
.pillar .num { font-family:'Space Grotesk',sans-serif; font-style: normal;
  color: var(--gold); font-size: 1.1rem; margin-bottom: 20px; }
.pillar h3 { font-size: 1.5rem; margin-bottom: 14px; }
.pillar p { color: var(--muted); font-size: 0.98rem; margin-bottom: 24px; flex: 1; }
.pillar .go { font-weight: 600; font-size: 0.9rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; }
.pillar .go .arr { color: var(--gold); transition: transform .25s ease; }
.pillar:hover .go .arr { transform: translateX(5px); }

/* ============================================================
   GENERIC SECTION HEADINGS
   ============================================================ */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 600;
  margin: 18px 0 18px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---- Dark (ink) section ---- */
.ink-section { background: var(--ink); color: var(--paper); }
.ink-section h2, .ink-section h3 { color: var(--white); }
.ink-section p { color: var(--muted-2); }
.ink-section .divider { background: var(--line-dark); }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.svc-block { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px;
  align-items: start; }
.svc-block + .svc-block { margin-top: 0; }
.svc-side .tag { font-family:'Space Grotesk',sans-serif; font-style: normal; color: var(--gold-deep);
  font-size: 1.15rem; margin-bottom: 10px; }
.svc-side h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; }
.feature-list { list-style: none; }
.feature-list li { padding: 18px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 16px; align-items: flex-start; }
.feature-list li:first-child { border-top: 1px solid var(--line); }
.feature-list .fi { color: var(--gold); flex: none; margin-top: 3px; }
.feature-list strong { display:block; font-weight: 600; }
.feature-list span { color: var(--muted); font-size: 0.96rem; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.price-card { border: 1px solid var(--line); border-radius: 5px; background: var(--white);
  padding: 34px 28px; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease; position: relative; }
.price-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(20,24,31,0.10); }
.price-card.featured { border-color: var(--gold); border-width: 1.5px; }
.price-card .ribbon { position:absolute; top:-12px; left: 28px; background: var(--gold);
  color: var(--ink); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 2px; }
.price-card .tier { font-family:'Space Grotesk',sans-serif; font-size: 1.6rem; margin-bottom: 6px; }
.price-card .price { font-family:'Space Grotesk',sans-serif; font-size: 2.4rem; color: var(--ink);
  margin: 10px 0 4px; }
.price-card .price small { font-family:'Hanken Grotesk',sans-serif; font-size: 0.85rem;
  color: var(--muted); font-weight: 500; }
.price-card .desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price-card ul { list-style: none; margin-bottom: 28px; flex: 1; }
.price-card li { font-size: 0.94rem; padding: 7px 0 7px 26px; position: relative;
  color: var(--ink-soft); }
.price-card li::before { content:'›'; position:absolute; left: 4px; color: var(--gold);
  font-weight: 700; }

/* ============================================================
   INTELLIVAULT PAGE
   ============================================================ */
.iv-hero { background: var(--ink); color: var(--paper); padding: 100px 0 90px; }
.iv-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600;
  color: var(--white); max-width: 18ch; margin: 22px 0 24px; }
.iv-hero h1 em { font-style: normal; color: var(--gold); }
.iv-hero .lead { color: var(--muted-2); max-width: 60ch; }
.benefit-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.benefit { padding: 30px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--white); }
.benefit .ic { width: 40px; height: 40px; color: var(--gold-deep); margin-bottom: 16px; }
.benefit h3 { font-size: 1.28rem; margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: 0.98rem; }

/* ---- Comparison table ---- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--white); }
table.cmp th, table.cmp td { padding: 16px 20px; text-align: left; font-size: 0.96rem;
  border-bottom: 1px solid var(--line); }
table.cmp thead th { font-family:'Hanken Grotesk',sans-serif; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; }
table.cmp thead th.hi { color: var(--gold-deep); }
table.cmp td:first-child { font-weight: 600; }
table.cmp .yes { color: var(--gold-deep); font-weight: 700; }
table.cmp .no { color: #b9b1a0; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td.hi { background: rgba(182,134,60,0.07); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.portrait { aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; background: var(--paper-2);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  position: relative; }
.portrait .ph { text-align: center; color: var(--muted); padding: 24px; }
.portrait .ph svg { width: 60px; height: 60px; margin: 0 auto 12px; opacity: .5; }
.cred-list { list-style: none; margin-top: 10px; }
.cred-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display:flex; gap:16px; }
.cred-list .yr { font-family:'Space Grotesk',sans-serif; font-style: normal; color: var(--gold-deep);
  flex: none; width: 64px; }

.value-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-card { padding: 28px; border-top: 2px solid var(--gold); background: var(--white);
  border-radius: 0 0 5px 5px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   RESOURCES PAGE
   ============================================================ */
.res-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.res-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--white); transition: transform .25s ease, box-shadow .25s ease;
  display:flex; flex-direction: column; }
.res-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20,24,31,0.10); }
.res-card .res-top { padding: 30px 28px 0; }
.res-card .kind { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold-deep); font-weight: 700; }
.res-card h3 { font-size: 1.4rem; margin: 12px 0 10px; }
.res-card p { color: var(--muted); font-size: 0.96rem; padding: 0 28px 24px; flex:1; }
.res-card .res-foot { padding: 0 28px 28px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 38px; }
.field { margin-bottom: 20px; }
.field label { display:block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: 'Hanken Grotesk', sans-serif; font-size: 1rem;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--paper); color: var(--ink); transition: border .2s ease, box-shadow .2s ease; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182,134,60,0.15); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* ---- Contact info strip ---- */
.contact-info { list-style: none; }
.contact-info li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info .k { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); display:block; margin-bottom: 6px; }
.contact-info .v { font-family:'Space Grotesk',sans-serif; font-size: 1.3rem; color: var(--ink); }
.contact-info a.v:hover { color: var(--gold-deep); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { background: var(--ink); color: var(--paper); border-radius: 6px;
  padding: 64px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  align-items: center; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.8rem,3.6vw,2.8rem); font-weight: 600; }
.cta-banner p { color: var(--muted-2); margin-top: 12px; }
.cta-banner .cta-act { display:flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--muted-2); padding: 70px 0 36px; }
.site-footer .ft-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.site-footer .brand .name { color: var(--white); }
.site-footer .brand .name small { color: var(--muted-2); }
.site-footer .ft-blurb { margin-top: 18px; max-width: 34ch; font-size: 0.95rem; }
.site-footer h4 { color: var(--white); font-family:'Hanken Grotesk',sans-serif;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 18px;
  font-weight: 700; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer ul a { font-size: 0.95rem; transition: color .2s; }
.site-footer ul a:hover { color: var(--gold); }
.ft-bottom { display:flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 0.84rem; flex-wrap: wrap; gap: 12px; }
.ft-bottom a:hover { color: var(--gold); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .section-pad { padding: 64px 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; }
  .pillar:last-child { border-bottom: 0; }
  .pricing { grid-template-columns: 1fr; }
  .svc-block, .about-grid, .iv-hero .wrap > .grid2 { grid-template-columns: 1fr; gap: 32px; }
  .benefit-grid, .value-grid, .res-grid { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 44px 30px; }
  .cta-banner .cta-act { justify-content: flex-start; }
  .site-footer .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 16px 28px 24px; gap: 4px; align-items: stretch;
    max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
    padding-top: 0; padding-bottom: 0;
  }
  .nav-links li a { display:block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { padding-top: 14px; }
  .nav.open .nav-links { max-height: 460px; padding-top: 8px; padding-bottom: 18px; }
  .nav.open .nav-toggle span:nth-child(1){ transform: translateY(6.6px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2){ opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3){ transform: translateY(-6.6px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 28px; }
  .cta-banner { padding: 36px 24px; }
  .form-card, .cta-banner { padding-left: 22px; padding-right: 22px; }
}
