/* ==========================================================================
   Ceva Advisors design system
   Layout/spacing DNA adapted from the Vessa reference (pill buttons,
   hairline cards, section rhythm). Palette, wordmark, and font are Ceva's own.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* palette: Ceva brand (official swatches) */
  --navy-900: #212B49;
  --navy-700: #234369;
  --navy-500: #24547F;
  --gold: #CCAC7B;
  --gold-soft: #f1e4c8;
  --gold-deep: #8a6a3a;

  --paper: #f6f4ef;
  --paper-2: #ede7d9;
  --surface: #f9f7f2;
  --surface-bright: #ffffff;
  --ink: var(--navy-900);
  --ink-soft: #3c4a6b;
  --ink-faint: #6e7797;
  --hairline: #dcd4bf;
  --accent: var(--navy-700);
  --accent-ink: var(--gold);
  --accent-soft: var(--gold-soft);
  --danger: #b42318;
  --success: var(--navy-700);
  --success-soft: var(--gold-soft);

  /* type */
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* shape / motion */
  --radius-control: 8px;
  --radius-card: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .18s;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(33, 43, 73, .14); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--gold-deep); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #24262c; }
.btn-on-accent { background: #fff; color: var(--accent); }
.btn-on-accent:hover { background: var(--accent-soft); }
.btn-blue { background: var(--navy-700); color: #fff; }
.btn-blue:hover { background: var(--navy-900); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(238, 240, 243, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 0 0 rgba(16, 18, 22, 0);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(16, 18, 22, .06); }

.nav-item .chev { transition: transform var(--dur) var(--ease); }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(225deg) translateY(1px); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  letter-spacing: .01em;
}
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}
.site-footer .brand-logo { height: 40px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a.nav-link, .main-nav .nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: none;
}
.main-nav a.nav-link:hover, .main-nav .nav-item > button:hover { color: var(--ink); background: var(--paper-2); }
.nav-item { position: relative; }
.nav-item .chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); }
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--surface-bright);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px rgba(16, 18, 22, .12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink-soft); }
.dropdown a:hover { background: var(--paper-2); color: var(--ink); }
.dropdown a span { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .nav-link { font-size: 14px; font-weight: 500; padding: 10px 14px; color: var(--ink-soft); }

.nav-toggle { display: none; }
.mobile-nav { display: none; }
@media (max-width: 880px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-control);
    border: 1px solid var(--hairline);
    background: none;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .mobile-nav {
    border-top: 1px solid var(--hairline);
    background: var(--surface-bright);
  }
  .mobile-nav.open { display: block; }
  .mobile-nav .wrap { flex-direction: column; align-items: stretch; height: auto; padding: 16px 24px; gap: 4px; }
  .mobile-nav a { display: block; padding: 12px 4px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--paper-2); }
  .mobile-nav a.mobile-cta {
    display: inline-flex;
    align-self: flex-start;
    width: auto;
    padding: 0 22px;
    border-bottom: none;
    margin-top: 10px;
  }
  .mobile-nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    color: var(--ink);
    background: none;
    border: none;
    border-bottom: 1px solid var(--paper-2);
  }
  .mobile-nav-group-toggle .chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--dur) var(--ease); }
  .mobile-nav-group-toggle[aria-expanded="true"] .chev { transform: rotate(225deg) translate(2px, 2px); }
  .mobile-nav-group { display: none; padding-left: 14px; }
  .mobile-nav-group.open { display: block; }
  .mobile-nav-group a { font-size: 14px; color: var(--ink-soft); }
}

/* ---------- hero ---------- */
.hero { padding: 88px 0 56px; text-align: center; }
.hero .eyebrow { justify-content: center; margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 820px;
  margin: 0 auto;
}
.hero p.lead {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 17px;
  color: var(--ink-soft);
}
.hero .cta-row { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* split hero: copy left, photo right (homepage) */
.hero-split { text-align: left; padding: 72px 0 16px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-split h1 { margin: 0; }
.hero-split p.lead { margin: 20px 0 0; }
.hero-split .cta-row { justify-content: flex-start; }
.hero-art { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 60%, var(--gold) 180%); }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 32px; }
  .hero-split { padding: 32px 0 12px; }
  .hero-art { aspect-ratio: 16 / 11; }
}

/* ---------- pillars slider (Financial Planning / Asset Management / Legacy Building) ---------- */
.pillars-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 0;
  text-align: left;
}
@media (max-width: 860px) { .pillars-wrap { grid-template-columns: 1fr; } }

.pillars-tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.pillar-tab {
  flex: 1;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 4px;
  cursor: pointer;
  border-bottom: 2px solid var(--hairline);
}
.pillar-tab .tab-label { font-size: 12.5px; font-family: var(--font); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.pillar-tab.active .tab-label { color: var(--accent); }
.pillar-tab.active { border-bottom-color: var(--accent); }
.pillar-tab .tab-bar { display: block; height: 2px; background: var(--accent); margin-top: 8px; width: 0; }

.pillar-h { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; min-height: 1.2em; }
.pillar-p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.pillar-panel .check-list { margin-bottom: 22px; }

.pillars-art { position: relative; min-height: 420px; border-radius: 20px; overflow: hidden; border: 1px solid var(--navy-900); }
@media (max-width: 860px) { .pillars-art { min-height: 240px; } }
.pillar-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; z-index: 1; }
.pillar-slide.active { opacity: 1; z-index: 2; }
.pillar-bg, .pillar-photo { position: absolute; inset: 0; }
.pillar-photo { background-size: cover; background-position: center; }
.pillar-bg-1 { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.pillar-bg-2 { background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); }
.pillar-bg-3 { background: linear-gradient(135deg, var(--navy-900) 20%, var(--gold) 160%); }
.pillar-bg svg { position: absolute; inset: 15%; width: 70%; height: 70%; opacity: .16; stroke: #fff; fill: none; }

/* ---------- question prompts + pillars bridge (homepage "where should I start") ---------- */
.question-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 760px) { .question-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .question-grid { grid-template-columns: 1fr; } }

.question-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-bright);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.question-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(33, 43, 73, .1); border-color: var(--accent); }
.question-mark {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
}
.question-card p { font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.4; }

.pillars-bridge { text-align: center; max-width: 520px; margin: 36px auto; }
.pillars-bridge .bridge-line { display: block; width: 1px; height: 26px; background: var(--hairline); margin: 0 auto 16px; }
.pillars-bridge p { font-size: 15.5px; color: var(--ink-soft); }
.pillars-bridge strong { color: var(--ink); font-weight: 600; }

.pillars-panel {
  background: var(--surface-bright);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 40px;
}
@media (max-width: 640px) { .pillars-panel { padding: 22px; border-radius: 18px; } }

/* ---------- preview / video frame ---------- */
.preview-frame {
  margin-top: 56px;
  border-radius: 20px;
  border: 1px solid var(--navy-900);
  background: radial-gradient(circle at 30% 20%, rgba(204, 172, 123, .18), transparent 60%), var(--accent);
  padding: 20px;
  overflow: hidden;
}
.video-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-frame.on-light { background: var(--surface-bright); border: 1px solid var(--hairline); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.01em; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 16px; }
.section-head.left { text-align: left; margin: 0 0 40px; }

.on-paper-2 { background: var(--paper-2); }
.on-accent { background: var(--accent); color: #fff; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.dashed-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--surface-bright);
  padding: 26px;
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.dashed-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(33, 43, 73, .1); border-color: var(--accent); }
.dashed-card .badge {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  margin-bottom: 16px;
}
.dashed-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.dashed-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- client login portal cards ---------- */
.login-cards .dashed-card { padding: 26px 18px; align-items: center; text-align: center; }
.login-cards .dashed-card p { margin-bottom: 20px; }
.partner-logo { height: 34px; width: auto; max-width: 140px; object-fit: contain; margin-bottom: 18px; }
.partner-logo--square { height: 44px; border-radius: 6px; }

/* ---------- flip cards (homepage additional services) ---------- */
.flip-card { height: 136px; perspective: 1000px; cursor: pointer; }
.flip-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform .5s var(--ease);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner, .flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
}
.flip-card-front {
  border: 1px solid var(--hairline);
  background: var(--surface-bright);
}
.flip-card-front h3 { font-size: 15.5px; font-weight: 600; }
.flip-card-back {
  background: var(--accent);
  color: #fff;
  transform: rotateY(180deg);
}
.flip-card-back p { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.92); }
@media (prefers-reduced-motion: reduce) {
  .flip-card-inner { transition: none; }
}

.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); padding: 7px 0; }
.check-list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: .62em;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- process steps ---------- */
.step-card { background: var(--surface-bright); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 26px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(33, 43, 73, .1); border-color: var(--accent); }
.step-num {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.step-num .dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font); font-weight: 700; font-size: 12px; color: var(--accent); }
.step-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- team ---------- */
.team-card { background: var(--surface-bright); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 24px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(33, 43, 73, .1); }
.team-card:hover .avatar-photo { transform: scale(1.05); }
.team-card:hover .avatar-photo--shaina { transform: scale(1.45) scale(1.05); }
.avatar-frame {
  display: block;
  width: 112px; height: 112px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
}
.avatar-frame--lg { width: 150px; height: 150px; }
.avatar-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s var(--ease);
}
.avatar-photo--shaina { transform-origin: 50% 22%; transform: scale(1.45); }
.team-card h3 { font-size: 18px; font-weight: 600; }
.team-card .role { font-size: 13px; color: var(--accent); font-weight: 600; margin: 4px 0 6px; }
.contact-lines { margin-bottom: 14px; }
.contact-lines p { font-size: 12.5px; color: var(--ink-faint); line-height: 1.9; }
.contact-lines a:not(.linkedin-btn) { color: var(--ink-faint); }
.contact-lines a:not(.linkedin-btn):hover { color: var(--accent); }
.contact-lines .linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0a66c2;
  color: #fff;
  margin-top: 4px;
  transition: background var(--dur) var(--ease);
}
.contact-lines .linkedin-btn:hover { background: var(--navy-900); }
.contact-lines .linkedin-btn svg { width: 14px; height: 14px; }
.team-card p.bio { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.team-card p.bio + p.bio { margin-top: 10px; }

/* ---------- faq ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 20px; height: 20px; position: relative; flex: none; }
.faq summary .plus::before, .faq summary .plus::after {
  content: "";
  position: absolute; background: var(--ink-soft);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq summary .plus::before { width: 12px; height: 1.5px; }
.faq summary .plus::after { width: 1.5px; height: 12px; transition: transform var(--dur) var(--ease); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq .faq-a { padding-top: 12px; font-size: 14.5px; color: var(--ink-soft); max-width: 620px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 14.5px; }
.contact-info li strong { display: block; font-size: 13px; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.map-frame { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--hairline); margin-top: 16px; }
.map-frame iframe { width: 100%; height: 220px; border: 0; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  background: var(--surface-bright);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- final CTA ---------- */
.cta-band { text-align: center; padding: 88px 0; }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; max-width: 640px; margin: 0 auto; }
.cta-band .cta-row { justify-content: center; margin-top: 28px; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--hairline); padding-top: 56px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: 14px; }
.footer-top ul li { margin-bottom: 10px; font-size: 14.5px; }
.footer-top ul li a:hover { color: var(--accent); }
.footer-tagline { color: var(--ink-soft); font-size: 14.5px; margin-top: 10px; max-width: 280px; }
.social-row { display: flex; gap: 8px; margin-top: 18px; }
.social-row a { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; }
.social-row svg { width: 15px; height: 15px; }

.footer-bottom { border-top: 1px solid var(--hairline); padding: 22px 0 32px; }
.footer-bottom .copyright { text-align: center; font-size: 13px; color: var(--ink-faint); margin-bottom: 14px; }
.footer-disclosure { font-size: 11.5px; line-height: 1.6; color: var(--ink-faint); text-align: center; max-width: 900px; margin: 0 auto; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal:where(.in-view) { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pillar-bg, .pillar-photo { transition: none; }
  .btn, .dashed-card, .step-card, .team-card, .avatar-photo, .blog-card-img { transition: none; }
}

/* ---------- utility ---------- */
.text-center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.pill-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline); color: var(--ink-soft);
  background: var(--surface-bright);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
button.pill-label:hover { border-color: var(--accent); color: var(--accent); }
.pill-label.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.01em; }
.page-hero p { max-width: 600px; margin: 16px auto 0; color: var(--ink-soft); font-size: 16.5px; }
@media (max-width: 640px) { .page-hero { padding: 32px 0 28px; } }

/* ---------- client login pills ---------- */
.login-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- newsletter band ---------- */
.newsletter-band { background: var(--ink); color: #fff; padding: 48px 0; }
.newsletter-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter-band h2 { font-size: 19px; font-weight: 700; }
.newsletter-band p { font-size: 14px; color: rgba(255,255,255,.68); margin-top: 6px; max-width: 480px; }
.newsletter-form { flex: none; }
.newsletter-form .form-fields { display: flex; gap: 10px; }
.newsletter-form input {
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  min-width: 240px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-form .success { display: none; font-size: 14px; font-weight: 600; color: #fff; }
.newsletter-form.is-success .form-fields { display: none; }
.newsletter-form.is-success .success { display: block; }
@media (max-width: 640px) { .newsletter-form .form-fields { flex-wrap: wrap; } .newsletter-form input { min-width: 0; flex: 1 1 100%; } }

/* ---------- solution rows (service sub-pages) ---------- */
.solution-block { background: var(--ink); color: #fff; padding: 64px 0; }
.solution-block .ghost-heading {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  color: rgba(255,255,255,.08);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.solution-block .solution-intro { max-width: 640px; margin: 0 auto 32px; text-align: center; color: rgba(255,255,255,.85); }
.solution-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.15);
}
.solution-row .solution-title { color: var(--gold); font-weight: 700; font-size: 17px; min-width: 220px; }
.solution-row .solution-arrow {
  width: 22px; height: 22px; flex: none; margin-top: 2px;
  border-radius: 50%; background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.solution-row p { color: rgba(255,255,255,.78); font-size: 14.5px; max-width: 460px; }
@media (max-width: 700px) { .solution-row { flex-direction: column; gap: 10px; } .solution-row .solution-title { min-width: 0; } }

.intro-block { background: var(--ink); color: #fff; padding: 56px 0 64px; }
@media (max-width: 640px) { .intro-block { padding: 32px 0 40px; } }
.intro-block .wrap { max-width: 700px; }
.intro-block .two-col { align-items: flex-start; }
.intro-block h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.01em; }
.intro-block .lead-italic { font-style: italic; color: rgba(255,255,255,.82); margin-top: 14px; font-size: 16px; line-height: 1.5; }
.intro-block .struggles-label { margin-top: 24px; font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.intro-block ul { margin-top: 12px; padding-left: 0; list-style: none; color: #fff; font-size: 15px; }
.intro-block ul li { margin-bottom: 10px; padding-left: 26px; position: relative; }
.intro-block ul li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.intro-block .close-line { margin-top: 24px; font-weight: 600; color: #fff; font-size: 15px; }
.intro-block .btn-ghost { height: auto; min-height: 44px; padding: 12px 22px; white-space: normal; text-align: left; max-width: 100%; }
.intro-block img { border-radius: var(--radius-card); }

.mini-process { padding: 56px 0; text-align: center; }
.mini-process .grid-3 { margin-top: 36px; }
.mini-process .mp-icon {
  width: 46px; height: 46px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--paper-2);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.mini-process h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.mini-process p { font-size: 14px; color: var(--ink-soft); }

.cta-gradient {
  background: linear-gradient(120deg, var(--navy-900), var(--gold));
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-gradient h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; }
.cta-gradient p { margin-top: 12px; color: rgba(255,255,255,.85); max-width: 560px; margin-left: auto; margin-right: auto; font-size: 14.5px; }

/* ---------- live blog posts (WP REST API) ---------- */
.blog-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.blog-search {
  flex: 1 1 240px;
  max-width: 320px;
  border: 1px solid var(--hairline);
  background: var(--surface-bright);
  border-radius: var(--radius-control);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
}
.blog-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-filters button { cursor: pointer; }
.blog-section + .blog-section { margin-top: 48px; }
.blog-section-label {
  font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.blog-card { display: flex; overflow: hidden; padding: 14px; }
.blog-card[hidden], .blog-loading[hidden], .blog-section-label[hidden] { display: none; }
.blog-card:hover { border-color: var(--ink); }
.blog-card .blog-card-img { display: block; aspect-ratio: 16 / 9; height: auto; object-fit: contain; background: var(--paper-2); border-radius: 10px 10px 0 0; margin: -15px -15px 12px; width: calc(100% + 30px); max-width: none; transition: transform .4s var(--ease); }
.blog-card:hover .blog-card-img { transform: scale(1.03); }
.blog-card h3 { font-size: 14px; line-height: 1.35; margin-bottom: 4px; }
.blog-card .contact-line { font-size: 12px; margin-bottom: 4px !important; }
.blog-section-label { margin-bottom: 12px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; gap: 12px; } .blog-card .blog-card-excerpt { display: none; } .blog-section + .blog-section { margin-top: 28px; } }
.blog-sidebar .blog-filters + .blog-sidebar-title { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.blog-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-loading { text-align: center; color: var(--ink-faint); font-size: 14px; padding: 40px 0; grid-column: 1 / -1; }

.blog-layout { display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .blog-layout { grid-template-columns: minmax(0, 1fr); } .blog-layout > *, .blog-sidebar, #blog-posts-root { min-width: 0; } }
.blog-sidebar { position: sticky; top: 90px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface-bright); padding: 16px; max-height: calc(100vh - 110px); overflow-y: auto; }
@media (max-width: 860px) {
  .blog-layout { gap: 14px; }
  .blog-layout > * { min-width: 0; }
  .blog-main { display: contents; }
  .blog-controls { order: 0; margin-bottom: 0; }
  .blog-search { width: 100%; }
  .blog-sidebar { order: 1; position: static; max-height: none; overflow: visible; border: none; background: none; padding: 0; }
  #blog-posts-root { order: 2; }
  .blog-sidebar-title { padding: 0; margin-bottom: 6px; }
  .blog-sidebar .blog-filters + .blog-sidebar-title { margin-top: 12px; padding-top: 0; border-top: none; }
}
.blog-sidebar-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); margin: 0 0 8px; padding: 0 10px; }
.blog-filters { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 860px) { .blog-filters { flex-direction: row; flex-wrap: nowrap; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 2px; } .blog-filters::-webkit-scrollbar { display: none; } }
.blog-filter-link { display: block; width: 100%; text-align: left; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); background: none; border: none; cursor: pointer; }
.blog-filter-link:hover { background: var(--paper-2); color: var(--ink); }
.blog-filter-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
@media (max-width: 860px) { .blog-filter-link { width: auto; flex: none; white-space: nowrap; background: var(--surface-bright); padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--hairline); } .blog-filter-link.active { border-color: var(--accent); } }

/* ---------- single blog post ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 72px; }
.post { min-width: 0; max-width: 720px; }
.post-back { display: inline-block; font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.post-back:hover { color: var(--accent); }
.post-thumb { width: 140px; margin-bottom: 16px; }
.post-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--paper-2); border-radius: 8px; }
.post-category { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.post h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.post-meta { margin-top: 12px; font-size: 14px; color: var(--ink-faint); }
.post-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 24px; max-height: calc(100vh - 110px); overflow-y: auto; }
.side-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); margin: 0 0 10px; }
.side-block + .side-block { padding-top: 24px; border-top: 1px solid var(--hairline); }
.side-post { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.side-post img { flex: none; width: 96px; aspect-ratio: 16 / 9; height: auto; object-fit: contain; background: var(--paper-2); border-radius: 6px; }
.side-post-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.side-post-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.side-post:hover .side-post-title { color: var(--accent); }
.side-post-date { font-size: 12px; color: var(--ink-faint); }
.side-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.side-topics .blog-filter-link { display: inline-block; width: auto; padding: 7px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--surface-bright); font-size: 13.5px; }
.side-topics .blog-filter-link:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-bright); }
@media (max-width: 960px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .post { max-width: none; }
  .post-sidebar { position: static; max-height: none; overflow: visible; padding-top: 28px; border-top: 1px solid var(--hairline); }
}
.post-content { margin-top: 28px; font-size: 17px; line-height: 1.75; color: var(--ink-soft); overflow-wrap: break-word; }
.post-content > * + * { margin-top: 1.1em; }
.post-content h2 { font-size: 24px; line-height: 1.3; color: var(--ink); margin-top: 1.9em; letter-spacing: -0.005em; }
.post-content h3 { font-size: 19px; line-height: 1.35; color: var(--ink); margin-top: 1.6em; }
.post-content h2:empty, .post-content p:empty { display: none; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-content strong { color: var(--ink); }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li + li { margin-top: .4em; }
.post-content img, .post-content video, .post-content iframe { display: block; max-width: 100%; height: auto; border-radius: 10px; margin-left: auto; margin-right: auto; }
.post-content figure { margin-left: 0; margin-right: 0; }
.post-content figcaption { font-size: 13.5px; color: var(--ink-faint); text-align: center; margin-top: 8px; }
.post-content blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; color: var(--ink); font-style: italic; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.post-content th, .post-content td { border: 1px solid var(--hairline); padding: 8px 12px; text-align: left; }
/* Compliance disclosure and data-source lines run long: keep them readable but visually secondary. */
.post-content p > em:only-child, .post-content p:has(> em:only-child) { font-size: 13.5px; line-height: 1.6; color: var(--ink-faint); }
.post-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline); }
@media (max-width: 640px) {
  .post { padding: 28px 0 48px; }
  .post-content { font-size: 16px; line-height: 1.7; }
  .post-content h2 { font-size: 21px; }
}
/* Some older posts store text (e.g. the disclosure) in a <pre> block: make it wrap and read like body text. */
.post-content pre { font-family: inherit; white-space: pre-wrap; overflow-wrap: break-word; font-size: 13.5px; line-height: 1.6; color: var(--ink-faint); background: none; padding: 0; margin: 1.6em 0 0; overflow: visible; }
.post-content pre em { font-style: italic; }
.post-content img { max-height: 640px; width: auto; }
.post-content .wp-block-image img, .post-content p > img { max-width: 100%; }
