:root {
  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --brand-blue-50: #E8F0FA;
  --brand-blue-600: #0559A5;
  --brand-blue-700: #044787;
  --brand-blue-800: #033868;
  --brand-blue-900: #022848;

  --brand-green-50: #E6F6EF;
  --brand-green-600: #03965C;

  --brand-lime-400: #B5E853;

  --bg-page: #FAFAF7;
  --surface-cool: #F2F2EE;

  --fg-1: #1A1A1A;
  --fg-2: #4A4A4A;
  --fg-3: #777777;

  --border-subtle: #E5E5E0;
  --border-strong: #D0D0CA;

  --neutral-50: #F5F5F0;

  --success-bg: #E6F6EF;
  --success-fg: #03965C;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-2: 0 4px 8px rgba(0,0,0,0.06), 0 8px 16px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--brand-blue-700); color: #fff; text-shadow: none; }
::-moz-selection { background: var(--brand-blue-700); color: #fff; text-shadow: none; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

.display-xl { font-family: var(--font-display); font-size: 60px; line-height: 1.05; letter-spacing: -1px; font-weight: 500; }
.display-lg { font-family: var(--font-display); font-size: 46px; line-height: 1.1; letter-spacing: -0.5px; font-weight: 500; }
.display-md { font-family: var(--font-display); font-size: 34px; line-height: 1.15; font-weight: 500; }
.lead { font-size: 17px; line-height: 1.6; color: var(--fg-2); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-cool { background: var(--surface-cool); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue-600);
  font-weight: 600;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 180ms cubic-bezier(.2,.8,.2,1);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-blue-600); color: #fff; }
.btn-primary:hover { background: var(--brand-blue-700); box-shadow: var(--shadow-1); }
.btn-primary:active { background: var(--brand-blue-800); transform: translateY(1px); }
.btn-secondary { background: #fff; color: var(--brand-blue-700); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--neutral-50); }
.btn-ghost { background: transparent; color: var(--brand-blue-600); }
.btn-ghost:hover { background: var(--brand-blue-50); }
.btn-inverse { background: #fff; color: var(--brand-blue-700); }
.btn-inverse:hover { background: var(--neutral-50); }
.btn-lg { font-size: 15px; padding: 14px 24px; }

/* Card */
.card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-1);
  transition: box-shadow 180ms cubic-bezier(.2,.8,.2,1);
}
.card:hover { box-shadow: var(--shadow-2); }
a.card-link { text-decoration: none; color: inherit; display: block; }

/* Badge */
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--brand-blue-50);
  color: var(--brand-blue-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
.badge-success { background: var(--success-bg); color: var(--success-fg); }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; min-height: 64px;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
}
.nav-inner { display: flex; align-items: center; gap: 32px; width: 100%; flex-wrap: wrap; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo .stack { display: flex; flex-direction: column; }
.nav-logo .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1;
  background: linear-gradient(135deg, #03965C 0%, #14A7D8 50%, #0559A5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-logo .sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #127C3E;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}
.nav-links { display: flex; gap: 28px; flex: 1; margin-left: 8px; flex-wrap: wrap; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--fg-1); text-decoration: none; }
.nav-links a:hover { color: var(--brand-blue-600); }
.nav-links a.active { color: var(--brand-blue-600); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Hero */
.hero { background: var(--bg-page); padding: 80px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .accent { color: var(--brand-green-600); }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-cred { display: flex; gap: 16px; margin-top: 48px; align-items: center; }
.cred-badge {
  height: 44px; width: 44px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #0559A5, #03965C);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 18px;
}
.hero-card {
  background: var(--brand-blue-900);
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 14px 14px;
  border-radius: var(--radius-lg);
  min-height: 440px;
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-card .alpha {
  position: absolute; right: -40px; bottom: -40px;
  opacity: 0.08;
  font-family: var(--font-display); font-size: 320px; line-height: 1;
  color: var(--brand-lime-400);
}
.hero-card .big-stat { font-family: var(--font-display); font-size: 56px; line-height: 1; font-weight: 500; margin-bottom: 12px; }
.hero-card .stat-lead { font-size: 16px; color: rgba(255,255,255,0.75); }
.hero-card .stat-row { display: flex; gap: 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-card .stat-row .n { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.hero-card .stat-row .l { font-size: 12px; color: rgba(255,255,255,0.6); }

/* Services grid (home) */
.services-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 24px; flex-wrap: wrap; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.svc-icon-blue { background: var(--brand-blue-50); color: var(--brand-blue-600); }
.svc-icon-green { background: var(--brand-green-50); color: var(--brand-green-600); }
.services-grid h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--fg-1); }
.services-grid p { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin-bottom: 12px; }
.services-grid .more { font-size: 13px; font-weight: 500; color: var(--brand-blue-600); }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.why-grid .n {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  color: var(--brand-green-600); margin-bottom: 8px;
}
.why-grid h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--fg-1); }
.why-grid p { font-size: 14px; line-height: 1.55; color: var(--fg-2); }

/* Mission strip */
.mission { max-width: 880px; margin: 0 auto; text-align: center; }
.mission p {
  font-family: var(--font-display); font-size: 30px; line-height: 1.35;
  font-weight: 500; color: var(--fg-1);
}
.mission .src { font-size: 13px; color: var(--fg-3); margin-top: 20px; }

/* CTA strip */
.cta-strip { background: var(--brand-blue-900); padding: 64px 0; color: #fff; }
.cta-strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-strip h3 { font-family: var(--font-display); font-size: 32px; font-weight: 500; margin-bottom: 8px; }
.cta-strip p { font-size: 15px; color: rgba(255,255,255,0.7); }

/* Services page */
.svc-group { margin-bottom: 48px; }
.svc-group:last-child { margin-bottom: 0; }
.svc-group h2 { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin-bottom: 20px; color: var(--fg-1); }
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc-item { display: flex; gap: 16px; }
.svc-item .svc-icon-sm {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--brand-blue-50); color: var(--brand-blue-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.svc-item .name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--fg-1); margin-bottom: 4px; }
.svc-item .desc { font-size: 13px; color: var(--fg-2); line-height: 1.5; }

/* Service detail */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.detail-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.detail-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--fg-1); }
.detail-list .check { color: var(--brand-green-600); flex-shrink: 0; margin-top: 2px; }
.detail-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 8px; }
.detail-table td { padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.detail-table td:first-child { font-size: 13px; color: var(--fg-3); }
.detail-table td:last-child { font-size: 14px; font-weight: 600; color: var(--fg-1); text-align: right; }
.callout { margin-top: 20px; padding: 16px; background: var(--brand-blue-50); border-radius: 8px; }
.callout .title { font-size: 12px; font-weight: 600; color: var(--brand-blue-700); margin-bottom: 4px; }
.callout .body { font-size: 13px; color: var(--brand-blue-700); }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.values-grid h3 {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; color: var(--brand-green-600); margin-bottom: 10px;
}
.values-grid p { font-size: 14px; line-height: 1.55; color: var(--fg-2); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 330px; padding: 28px; }
.team-grid h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--fg-1); margin-bottom: 3px; }
.team-grid .quals { font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em; margin-bottom: 0; }
.team-grid p { font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.team-grid > .team-card:last-child { grid-column: 2; }
.profile-divider { width: 36px; height: 2px; margin: 17px 0; background: var(--brand-lime-400); }
.profile-focus { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 20px; }
.profile-focus span {
  padding: 5px 8px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  color: var(--fg-2); background: var(--bg-page); font-size: 11px; line-height: 1.2;
}

/* Prose (legal pages, about text) */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin: 36px 0 12px; color: var(--fg-1); }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 15px; line-height: 1.7; color: var(--fg-2); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 20px; }
.prose li { font-size: 15px; line-height: 1.7; color: var(--fg-2); margin-bottom: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ico {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--brand-blue-50); color: var(--brand-blue-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item .label { font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.contact-item .value { font-size: 15px; color: var(--fg-1); margin-top: 2px; }
.contact-item .value a { color: var(--brand-blue-600); text-decoration: none; }
.contact-item .value .muted { font-size: 13px; color: var(--fg-3); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; font-weight: 500; color: var(--fg-1); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fff; color: var(--fg-1); outline: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-blue-600); }
.field textarea { resize: vertical; min-height: 96px; }
.privacy-line { font-size: 12px; color: var(--fg-3); }
.privacy-line a { color: var(--brand-blue-600); }

/* Footer */
.footer { background: var(--brand-blue-900); color: rgba(255,255,255,0.92); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer .wordmark-f {
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
  letter-spacing: -0.5px; color: #fff; line-height: 1;
}
.footer .sub-f {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7); text-transform: uppercase; margin-top: 3px;
}
.footer-tag { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.7); margin-top: 16px; max-width: 320px; }
.footer-cred { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.footer-cred .badge-ca {
  height: 40px; width: 40px; border-radius: 6px; flex-shrink: 0;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--brand-blue-700);
}
.footer-cred .label { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.5; }
.footer-col-title {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: rgba(255,255,255,0.55); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,0.85); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.55);
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom a { color: inherit; text-decoration: none; margin-left: 24px; }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: #fff; }

/* Icons */
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-lg { width: 24px; height: 24px; }

/* Thanks / 404 */
.center-page { text-align: center; max-width: 560px; margin: 0 auto; padding: 120px 24px; }
.center-page .ok {
  width: 56px; height: 56px; border-radius: 9999px;
  background: var(--success-bg); color: var(--success-fg);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.center-page h1 { font-family: var(--font-display); font-size: 36px; font-weight: 500; margin-bottom: 12px; }
.center-page p { font-size: 15px; color: var(--fg-2); margin-bottom: 28px; }

/* Responsive */
@media (max-width: 960px) {
  .display-xl { font-size: 44px; }
  .display-lg { font-size: 38px; }
  .hero-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid > .team-card:last-child { grid-column: 1 / -1; width: calc(50% - 10px); justify-self: center; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .display-xl { font-size: 36px; }
  .display-lg { font-size: 32px; }
  .display-md { font-size: 28px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .services-grid, .svc-list, .team-grid, .values-grid, .why-grid { grid-template-columns: 1fr; }
  .team-grid > .team-card:last-child { grid-column: auto; width: 100%; }
  .team-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-actions { display: none; }
  .hero-card { min-height: 0; }
  .hero-card .stat-row { flex-wrap: wrap; gap: 20px; }
  .mission p { font-size: 24px; }
}

/* Logo images */
.logo-img { height: 34px; display: block; }
.logo-img-f { height: 44px; display: block; filter: brightness(0) invert(1); }
.ca-hero { height: 44px; width: auto; border-radius: 8px; flex-shrink: 0; }
.ca-chip { height: 40px; width: auto; background: #fff; border-radius: 6px; padding: 4px; flex-shrink: 0; }

/* Testimonials */
.testi-section { background: var(--brand-blue-900); padding: 80px 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex; flex-direction: column;
}
.testi-card .q {
  font-family: var(--font-display); font-size: 40px; line-height: 1;
  color: var(--brand-lime-400); margin-bottom: 12px;
}
.testi-card p {
  font-family: var(--font-display); font-size: 17px; line-height: 1.55;
  color: rgba(255,255,255,0.92); margin-bottom: 24px; flex: 1;
}
.testi-card .who {
  font-size: 14px; font-weight: 600; color: #fff;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12);
}
.testi-card .org {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-top: 4px;
}

/* Insights grid */
.insights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.insights-grid .card { padding: 28px; }
.insights-grid .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.insights-grid .date { font-size: 12px; color: var(--fg-3); }
.insights-grid h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  line-height: 1.25; color: var(--fg-1); margin-bottom: 12px;
}
.insights-grid p { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin-bottom: 16px; }
.insights-grid .read { font-size: 13px; font-weight: 500; color: var(--brand-blue-600); }

@media (max-width: 960px) {
  .testi-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .logo-img { height: 28px; }
}
