/* ==========================================================================
   Karla Insights — Design System
   Display: Fraunces (serif, editorial authority)
   Body:    Inter (clean, executive readability)
   Utility: IBM Plex Mono (data / eyebrow labels — finance+tech signal)
   ========================================================================== */

:root{
  --navy-900:#0A2540;
  --navy-800:#0F2F4F;
  --navy-700:#16436B;
  --emerald-600:#0C6B4F;
  --emerald-500:#128A63;
  --emerald-100:#E4F2EA;
  --teal-600:#12707F;
  --teal-400:#3FA0AC;
  --gold-500:#B68A37;
  --white:#FFFFFF;
  --grey-50:#F6F8F9;
  --grey-100:#EBEFF1;
  --grey-200:#DCE2E6;
  --ink-900:#131E29;
  --ink-600:#54636E;
  --ink-400:#8393A0;

  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:'IBM Plex Mono', ui-monospace, monospace;

  --container:1200px;
  --radius:14px;
  --shadow-soft: 0 1px 2px rgba(10,37,64,0.04), 0 8px 24px -12px rgba(10,37,64,0.12);
  --shadow-lift: 0 4px 8px rgba(10,37,64,0.06), 0 24px 48px -16px rgba(10,37,64,0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font:inherit; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--navy-900);
  line-height:1.12;
  margin:0 0 0.5em;
  font-weight:600;
  letter-spacing:-0.01em;
}
h1{ font-size:clamp(2.6rem, 5vw, 4.4rem); font-weight:560; }
h2{ font-size:clamp(2rem, 3.4vw, 2.85rem); }
h3{ font-size:clamp(1.3rem, 2vw, 1.6rem); }
p{ margin:0 0 1em; color:var(--ink-600); }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-mono);
  font-size:0.76rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--emerald-600);
  margin-bottom:18px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--emerald-600);
  display:inline-block;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 28px;
  border-radius:999px;
  font-weight:600;
  font-size:0.95rem;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--emerald-600);
  color:var(--white);
  box-shadow:var(--shadow-soft);
}
.btn-primary:hover{ background:var(--emerald-500); transform:translateY(-2px); box-shadow:var(--shadow-lift); }
.btn-ghost{
  background:transparent;
  color:var(--navy-900);
  border-color:var(--grey-200);
}
.btn-ghost:hover{ border-color:var(--navy-900); transform:translateY(-2px); }
.btn-on-dark{
  background:transparent;
  color:var(--white);
  border-color:rgba(255,255,255,0.35);
}
.btn-on-dark:hover{ border-color:#fff; background:rgba(255,255,255,0.08); transform:translateY(-2px); }
.btn-block{ width:100%; }

/* ---------- header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,0.86);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled{
  border-color:var(--grey-100);
  box-shadow:0 1px 0 rgba(10,37,64,0.02), 0 12px 24px -20px rgba(10,37,64,0.25);
}
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  height:84px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ width:40px; height:30px; }
.brand-word{ font-family:var(--font-display); font-weight:600; font-size:1.28rem; color:var(--navy-900); }
.brand-word span{ color:var(--emerald-600); font-weight:500; }

.nav-links{ display:flex; align-items:center; gap:2px; }
.nav-links a{
  padding:10px 16px;
  font-size:0.92rem;
  font-weight:500;
  color:var(--ink-600);
  border-radius:8px;
  transition:color .2s ease, background .2s ease;
}
.nav-links a:hover{ color:var(--navy-900); background:var(--grey-50); }
.nav-links a.active{ color:var(--navy-900); font-weight:600; }
.nav-cta{ display:flex; align-items:center; gap:10px; }

.nav-toggle{
  display:none;
  width:40px; height:40px;
  border-radius:8px;
  border:1px solid var(--grey-200);
  background:var(--white);
  align-items:center; justify-content:center;
  cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:18px; height:2px; background:var(--navy-900);
  position:relative; transition:transform .25s ease, opacity .25s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }
.nav-toggle.is-open span{ background:transparent; }
.nav-toggle.is-open span::before{ top:0; transform:rotate(45deg); }
.nav-toggle.is-open span::after{ top:0; transform:rotate(-45deg); }

/* ---------- footer ---------- */
.site-footer{
  background:var(--navy-900);
  color:rgba(255,255,255,0.72);
  padding:80px 0 32px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:48px;
  padding-bottom:56px;
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-word{ color:var(--white); }
.footer-brand p{ color:rgba(255,255,255,0.6); max-width:32ch; margin-top:16px; }
.footer-col h4{
  font-family:var(--font-mono); font-size:0.74rem; letter-spacing:0.12em;
  text-transform:uppercase; color:rgba(255,255,255,0.5); font-weight:500; margin-bottom:18px;
}
.footer-col ul li{ margin-bottom:12px; }
.footer-col a{ color:rgba(255,255,255,0.78); font-size:0.94rem; transition:color .2s ease; }
.footer-col a:hover{ color:var(--white); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:28px; font-size:0.82rem; color:rgba(255,255,255,0.42); flex-wrap:wrap; gap:12px;
}
.footer-builder{
  display:flex; align-items:center; gap:8px;
  color:rgba(255,255,255,0.42); font-size:0.82rem; transition:color .2s ease;
}
.footer-builder:hover{ color:rgba(255,255,255,0.78); }
.footer-builder img{ width:18px; height:18px; }

/* ---------- hero ---------- */
.hero{
  position:relative;
  padding:96px 0 110px;
  overflow:hidden;
  background:linear-gradient(180deg, #FBFCFC 0%, var(--white) 100%);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:48px;
  align-items:center;
  position:relative;
  z-index:2;
}
.hero h1{ margin-bottom:24px; }
.hero-sub{ font-size:1.15rem; max-width:46ch; margin-bottom:36px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }
.hero-trust{ display:flex; gap:28px; flex-wrap:wrap; }
.hero-trust div{ font-family:var(--font-mono); font-size:0.78rem; color:var(--ink-400); letter-spacing:0.02em; }
.hero-trust strong{ display:block; font-family:var(--font-display); font-size:1.5rem; color:var(--navy-900); font-weight:600; }

.hero-visual{ position:relative; height:420px; }

/* signature motif: ascending node chart */
.chart-motif{ width:100%; height:100%; }
.chart-motif .line{ fill:none; stroke-linecap:round; stroke-linejoin:round; }
.chart-motif .node{ transform-origin:center; }

.page-hero{
  padding:64px 0 72px;
  background:var(--navy-900);
  color:rgba(255,255,255,0.86);
  position:relative;
  overflow:hidden;
}
.page-hero h1{ color:var(--white); max-width:20ch; }
.page-hero .eyebrow{ color:var(--teal-400); }
.page-hero .eyebrow::before{ background:var(--teal-400); }
.page-hero p{ color:rgba(255,255,255,0.66); max-width:60ch; font-size:1.08rem; }

/* ---------- sections ---------- */
section{ padding:100px 0; }
.section-tight{ padding:72px 0; }
.section-alt{ background:var(--grey-50); }
.section-dark{ background:var(--navy-900); color:rgba(255,255,255,0.8); }
.section-dark h2{ color:var(--white); }
.section-dark .eyebrow{ color:var(--teal-400); }
.section-dark .eyebrow::before{ background:var(--teal-400); }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-foot{ margin-top:48px; }

/* ---------- grids & cards ---------- */
.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

.card{
  background:var(--white);
  border:1px solid var(--grey-100);
  border-radius:var(--radius);
  padding:36px 30px;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lift); border-color:transparent; }
.card .num{
  font-family:var(--font-mono); font-size:0.78rem; color:var(--gold-500);
  letter-spacing:0.08em; margin-bottom:16px; display:block;
}
.card h3{ margin-bottom:10px; }
.card p{ margin-bottom:0; font-size:0.96rem; }
.card-icon{
  width:46px; height:46px; border-radius:12px;
  background:var(--emerald-100); color:var(--emerald-600);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:22px;
}

.pillar{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:56px;
  align-items:start;
  padding:56px 0;
  border-top:1px solid var(--grey-100);
}
.pillar:last-child{ border-bottom:1px solid var(--grey-100); }
.pillar-head .num{ font-family:var(--font-mono); color:var(--gold-500); font-size:0.85rem; letter-spacing:0.1em; }
.pillar-services{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px 24px; }
.pillar-services li{
  font-size:0.94rem; color:var(--ink-600);
  padding-left:18px; position:relative;
}
.pillar-services li::before{
  content:""; position:absolute; left:0; top:0.65em;
  width:6px; height:6px; border-radius:50%;
  background:var(--teal-600);
}

.value-list{ display:grid; gap:18px; }
.value-list li{
  display:flex; align-items:flex-start; gap:14px;
  font-family:var(--font-display); font-size:1.15rem; color:var(--navy-900); font-weight:500;
}
.value-list li::before{
  content:""; flex:none; width:8px; height:8px; margin-top:10px;
  background:var(--emerald-600); border-radius:2px; transform:rotate(45deg);
}

.industry-tile{
  border:1px solid var(--grey-100); border-radius:var(--radius);
  padding:28px 24px; background:var(--white);
  transition:transform .35s var(--ease), border-color .35s ease, background .35s ease;
}
.industry-tile:hover{ transform:translateY(-4px); border-color:var(--emerald-600); background:var(--emerald-100); }
.industry-tile .tag{ font-family:var(--font-mono); font-size:0.72rem; color:var(--ink-400); letter-spacing:0.08em; }

.insight-card{
  border:1px solid var(--grey-100); border-radius:var(--radius);
  padding:32px; display:flex; flex-direction:column; gap:16px; height:100%;
  transition:box-shadow .35s var(--ease), transform .35s var(--ease);
}
.insight-card:hover{ box-shadow:var(--shadow-lift); transform:translateY(-4px); }
.insight-card .tag{
  font-family:var(--font-mono); font-size:0.72rem; letter-spacing:0.08em;
  color:var(--teal-600); text-transform:uppercase;
}
.insight-card h3{ margin-bottom:0; font-size:1.2rem; }
.insight-card .meta{ margin-top:auto; font-size:0.82rem; color:var(--ink-400); font-family:var(--font-mono); }

.stat-strip{
  display:grid; grid-template-columns:repeat(4,1fr); gap:32px;
  padding:48px 0; border-top:1px solid rgba(255,255,255,0.14); border-bottom:1px solid rgba(255,255,255,0.14);
}
.stat-strip strong{ display:block; font-family:var(--font-display); font-size:2.4rem; color:var(--white); font-weight:600; }
.stat-strip span{ font-family:var(--font-mono); font-size:0.78rem; color:rgba(255,255,255,0.55); letter-spacing:0.04em; }

.quote-block{
  border-left:2px solid var(--emerald-600);
  padding-left:32px; margin:0;
}
.quote-block p{
  font-family:var(--font-display); font-size:1.5rem; color:var(--navy-900);
  font-weight:500; line-height:1.4; font-style:italic;
}

/* CTA band */
.cta-band{
  background:linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--teal-600) 130%);
  border-radius:24px; padding:64px 56px; color:var(--white);
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.cta-band h2{ color:var(--white); margin-bottom:10px; max-width:22ch; }
.cta-band p{ color:rgba(255,255,255,0.7); margin-bottom:0; max-width:44ch; }
.cta-band .actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* forms */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.field.full{ grid-column:1 / -1; }
.field label{ font-size:0.84rem; font-weight:600; color:var(--navy-900); }
.field input, .field select, .field textarea{
  font-family:var(--font-body); font-size:0.96rem;
  padding:13px 16px; border-radius:10px; border:1px solid var(--grey-200);
  background:var(--white); color:var(--ink-900); resize:vertical;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--emerald-600); box-shadow:0 0 0 3px var(--emerald-100);
}
.form-note{ font-size:0.82rem; color:var(--ink-400); margin-top:14px; }

.contact-info{ display:grid; gap:24px; }
.contact-info .item{ display:flex; gap:16px; align-items:flex-start; }
.contact-info .ico{
  width:42px; height:42px; border-radius:10px; background:var(--emerald-100); color:var(--emerald-600);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.contact-info h4{ font-family:var(--font-body); font-weight:600; font-size:0.92rem; margin:0 0 4px; color:var(--navy-900); }
.contact-info p{ margin:0; font-size:0.92rem; }

/* reveal animation — only takes effect once JS confirms it will reveal them */
.reveal{ opacity:1; transform:none; }
.js-ready .reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.js-ready .reveal.is-visible{ opacity:1; transform:translateY(0); }

/* misc utilities */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.divider{ height:1px; background:var(--grey-100); border:none; margin:0; }
.tag-row{ display:flex; flex-wrap:wrap; gap:10px; }
.pill-tag{
  font-family:var(--font-mono); font-size:0.76rem; padding:8px 14px;
  border-radius:999px; background:var(--grey-50); border:1px solid var(--grey-100); color:var(--ink-600);
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ height:280px; order:-1; }
  .pillar{ grid-template-columns:1fr; gap:24px; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .stat-strip{ grid-template-columns:repeat(2,1fr); row-gap:28px; }
}
@media (max-width: 720px){
  .nav-links, .nav-cta .btn-ghost{ display:none; }
  .nav-toggle{ display:flex; }
  .site-header.nav-open .nav-links{
    display:flex; flex-direction:column; position:absolute; top:84px; left:0; right:0;
    background:var(--white); padding:12px 24px 24px; border-bottom:1px solid var(--grey-100);
    box-shadow:var(--shadow-lift); gap:2px;
  }
  .site-header.nav-open .nav-links a{ padding:14px 8px; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:36px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .cta-band{ padding:44px 28px; flex-direction:column; align-items:flex-start; }
  .pillar-services{ grid-template-columns:1fr; }
  .container{ padding:0 20px; }
  section{ padding:64px 0; }
  .stat-strip{ grid-template-columns:1fr 1fr; }
}
