/* Zai Team — site styles */
:root {
  --navy: #0f1e33;
  --navy-2: #172a47;
  --navy-3: #22385c;
  --ink: #23272e;
  --muted: #5a6372;
  --line: #e2e0da;
  --paper: #ffffff;
  --off: #f6f5f1;
  --orange: #f26a21;
  --orange-dark: #d4561280;
  --orange-ink: #c9500f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 30, 51, .06), 0 8px 24px rgba(15, 30, 51, .06);
  --max: 1160px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--head); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1; }
.brand-name b { font-weight: 800; }
.brand-name span { font-weight: 500; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--head); font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-ink); }
.nav a.btn, .nav a.btn:hover, .nav a.btn[aria-current="page"] { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 700; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-ink); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.arrow::after { content: "→"; font-weight: 400; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #d6deea;
  padding: 104px 0 96px;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: 1.2rem; max-width: 58ch; color: #c7d1df; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 560px; opacity: .9; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-family: var(--head); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px;
}
.page-hero { background: var(--navy); color: #c7d1df; padding: 80px 0 72px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { font-size: 1.15rem; max-width: 60ch; margin: 0; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--off); }
.section-dark { background: var(--navy); color: #c7d1df; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-dark .section-head p { color: #aab6c7; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Stats ---------- */
.stats { background: var(--navy-2); padding: 40px 0; }
.stats .grid { gap: 0; }
.stat { padding: 8px 28px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--head); font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; color: var(--orange); line-height: 1.1; }
.stat span { color: #c7d1df; font-size: .95rem; }
.footnote { font-size: .8rem; color: #8f9cb0; margin-top: 18px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.role { border-top: 3px solid var(--orange); }
.role .who { font-family: var(--head); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--orange-ink); margin-bottom: 8px; }

.practice { display: flex; flex-direction: column; }
.practice .num { font-family: var(--head); font-weight: 800; color: var(--orange); font-size: .9rem; margin-bottom: 14px; }
.practice p { margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 0; list-style: none; }
.tags li { font-size: .8rem; font-weight: 600; color: var(--navy-3); background: var(--off); border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; }
.practice a.more { margin-top: 18px; font-weight: 600; font-size: .92rem; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--head); font-weight: 800; font-size: 2.2rem; color: var(--orange); line-height: 1;
}
.step p { color: #aab6c7; margin: 0; }

/* Values */
.value h3 { display: flex; align-items: center; gap: 10px; }
.value h3::before { content: ""; width: 10px; height: 10px; background: var(--orange); border-radius: 2px; flex: none; }

/* ---------- Case studies ---------- */
.case {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.case + .case { margin-top: 24px; }
.case-body { padding: 34px 36px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.case-meta .tag { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--orange-ink); }
.case h3 { font-size: 1.35rem; }
.case .challenge { color: var(--ink); margin-bottom: 16px; }
.case .challenge strong { color: var(--navy); }
.case ul { margin: 0; padding-left: 0; list-style: none; }
.case li { position: relative; padding-left: 22px; color: var(--muted); margin-bottom: 6px; }
.case li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--orange); }
.case-impact { background: var(--navy); color: #c7d1df; padding: 34px 32px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.case-impact .label { font-family: var(--head); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8f9cb0; }
.metric b { display: block; font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--orange); line-height: 1.05; }
.metric span { font-size: .92rem; }
.metric.small b { font-size: 1.15rem; color: #fff; }

.track { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.track th, .track td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.track th { font-family: var(--head); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); background: var(--off); }
.track td:first-child { font-weight: 600; color: var(--navy); width: 42%; }
.track td b { font-family: var(--head); color: var(--orange-ink); font-size: 1.1rem; }
.track tr:last-child td { border-bottom: 0; }

/* Featured results (home) */
.result { display: flex; flex-direction: column; }
.result .tag { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--orange-ink); margin-bottom: 10px; }
.result .big { font-family: var(--head); font-weight: 800; font-size: 2.6rem; color: var(--navy); line-height: 1; margin: 18px 0 6px; }
.result .big-label { color: var(--muted); font-size: .95rem; }

/* ---------- Logos ---------- */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; gap: 40px 48px; }
.logos img {
  max-height: 46px; width: auto; margin: 0 auto;
  /* Render every logo as a solid dark mark so light and dark source files look consistent */
  filter: brightness(0); opacity: .5; transition: opacity .2s;
}
.logos img:hover { opacity: .85; }
.logos img[src*="leon-capital"] { max-height: 54px; }
.logos .seal img { max-height: 76px; filter: grayscale(1); opacity: .75; }
.logos .seal img:hover { opacity: 1; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.badges span { font-size: .85rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: var(--paper); padding: 8px 16px; border-radius: 999px; }
.logo-caption { text-align: center; font-family: var(--head); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; }

/* Client marquee: groups by industry, scrolls continuously, pauses on hover/focus or via button */
.clients-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.clients-head .logo-caption { text-align: left; margin-bottom: 6px; }
.clients-note { margin: 0; font-size: .85rem; color: var(--muted); }
.marquee-toggle {
  font-family: var(--head); font-weight: 600; font-size: .8rem; color: var(--navy);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; flex: none;
}
.marquee-toggle:hover { border-color: var(--navy); }
.marquee { overflow-x: auto; padding-bottom: 6px; }
.marquee.is-animated {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee.is-animated .marquee-track { animation: marquee 75s linear infinite; }
.marquee.is-animated:hover .marquee-track,
.marquee.is-animated:focus-within .marquee-track,
.marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-set { display: flex; }
.client-group { display: flex; flex-direction: column; gap: 14px; padding: 4px 40px; border-left: 1px solid var(--line); }
.client-industry { font-family: var(--head); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); white-space: nowrap; }
.client-row { display: flex; align-items: center; gap: 40px; height: 56px; }
.client-row img { height: 38px; width: auto; max-width: 180px; object-fit: contain; filter: brightness(0); opacity: .5; }
/* Per-logo optical sizing so marks with different proportions read at similar weight */
.client-row img[src*="leon-capital"], .client-row img[src*="kroger"] { height: 48px; }
.client-row img[src*="cummins"] { height: 46px; }
.client-row img[src*="t-mobile"] { height: 28px; }
.client-row img[src*="gap-inc"] { height: 30px; }
/* Logos with white detail inside a solid shape: grayscale instead of solid dark */
.client-row img.seal, .client-row img[src*="dow.svg"], .client-row img[src*="alterra"] { filter: grayscale(1) contrast(1.15); opacity: .7; }
.client-row img.seal { height: 60px; opacity: .85; }
.logo-text { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: #8a93a1; white-space: nowrap; letter-spacing: -.01em; }
@media (prefers-reduced-motion: reduce) {
  .marquee.is-animated { overflow-x: auto; }
  .marquee.is-animated .marquee-track { animation: none; }
  .marquee-set[aria-hidden="true"], .marquee-toggle { display: none; }
}
@media (max-width: 560px) {
  .client-group { padding: 4px 26px; }
  .client-row { gap: 28px; height: 48px; }
  .client-row img { height: 32px; }
}

/* ---------- Lists ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.section-dark .chips li { background: var(--navy-2); border-color: var(--navy-3); color: #fff; }
.industries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.industries li { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 6px; padding: 14px 16px; font-weight: 600; color: var(--navy); font-size: .95rem; line-height: 1.35; }
.industries li small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 2px; }

/* Pricing models */
.model h3 { font-size: 1.1rem; }
.model .icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(242, 106, 33, .12); color: var(--orange-ink); display: grid; place-items: center; margin-bottom: 18px; font-family: var(--head); font-weight: 800; }

/* ---------- About ---------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.headshot {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy-3), var(--navy));
  display: grid; place-items: center; color: #fff; font-family: var(--head); font-weight: 800; font-size: 4rem; letter-spacing: .02em;
  position: relative; overflow: hidden;
}
.headshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Source photo is 411x319, so a square frame avoids upscaling it */
.headshot.has-photo { aspect-ratio: 1 / 1; }
.headshot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--orange); }
.founder .title { font-family: var(--head); font-weight: 600; color: var(--orange-ink); margin: -6px 0 18px; }
.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0; padding: 0; list-style: none; }
.creds li { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-size: .92rem; color: var(--muted); }
.creds li b { display: block; color: var(--navy); font-family: var(--head); font-size: .95rem; }

.capability { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.cap-table { width: 100%; border-collapse: collapse; }
.cap-table th, .cap-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--navy-3); vertical-align: top; }
.cap-table th { color: #8f9cb0; font-family: var(--head); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; width: 34%; padding-right: 16px; }
.cap-table td { color: #fff; font-weight: 500; }
.cap-table td span { display: block; color: #aab6c7; font-weight: 400; font-size: .9rem; }
.badge-8a { display: inline-flex; align-items: center; gap: 10px; background: rgba(242, 106, 33, .14); border: 1px solid rgba(242, 106, 33, .45); color: #fff; font-family: var(--head); font-weight: 700; padding: 10px 18px; border-radius: 8px; margin-bottom: 20px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-family: var(--head); font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: 6px; }
.form label .opt { color: var(--muted); font-weight: 400; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #cfccc4; border-radius: 8px; padding: 12px 14px; background: #fff;
}
.form input:focus, .form textarea:focus { border-color: var(--orange); outline: 2px solid rgba(242, 106, 33, .25); outline-offset: 0; }
.form textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 24px; font-weight: 500; display: none; }
.alert.show { display: block; }
.alert-ok { background: #ecf7ef; border: 1px solid #b8dfc2; color: #1d5a2c; }
.alert-err { background: #fdf0ea; border: 1px solid #f3c3a8; color: #8a3410; }
.contact-card { background: var(--off); border-radius: var(--radius); padding: 32px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-family: var(--head); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 20px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.contact-card dd a { text-decoration: none; }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #c7d1df; padding: 80px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; font-size: 1.1rem; }
.cta .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: #0a1525; color: #8f9cb0; padding: 64px 0 28px; font-size: .92rem; }
.site-footer a { color: #c7d1df; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #1c2a40; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .g4, .logos { grid-template-columns: repeat(3, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { opacity: .35; }
  .case { grid-template-columns: 1fr; }
  .capability, .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; padding: 14px 0; }
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .headshot { max-width: 280px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .industries { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .case-body, .case-impact { padding: 26px 22px; }
  .track td, .track th { padding: 14px 14px; }
  .track td:first-child { width: 50%; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
