:root {
  --color-background: #f7f8fa;
  --color-surface: #ffffff;
  --color-surface-2: #eef2f6;
  --color-text: #111827;
  --color-muted: #5b6778;
  --color-ink: #0b162b;
  --color-ink-2: #13223b;
  --color-primary: #2457d6;
  --color-primary-dark: #1945b9;
  --color-accent: #16a9c7;
  --color-border: #dce3ec;
  --color-border-dark: #2a3850;
  --container: 1220px;
  --section: clamp(4.75rem, 7vw, 7rem);
  --shadow: 0 18px 54px rgb(11 22 43 / 9%);
  --sans: Manrope, "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* WordPress integration */
.admin-bar .site-header { top: 32px; }
.page-shell { width: min(calc(100% - 48px), var(--container)); padding-inline: 0; }
.site-main--standard { min-height: 65vh; padding-block: clamp(48px, 7vw, 96px); }
.page-shell > article,
.page-shell .entry-content { width: 100%; max-width: none; margin: 0; }
.page-shell .entry-content { padding-top: 0; }
.page-shell .entry-content > * { width: 100%; max-width: none; }
.page-shell .mom-wrap { width: min(100%, 1180px); max-width: 1180px; margin-inline: auto; padding-inline: clamp(22px, 4vw, 48px); }
.page-shell .mom-narrow { max-width: 900px; }
.page-shell .mom-page-hero,
.page-shell .mom-section,
.page-shell .mom-cta { width: 100%; }
.page-shell .mom-page-hero { border-radius: 10px 10px 0 0; }
.page-shell .mom-section:last-of-type,
.page-shell .mom-cta:last-child { border-radius: 0 0 10px 10px; }
.article-shell { width: min(calc(100% - 48px), 920px); margin-inline: auto; }
.article-card { padding: clamp(28px, 5vw, 58px); }
.article-card h1 { max-width: 18ch; }
.not-found-card { margin-block: clamp(48px, 8vw, 100px); }

body.page .entry-content a:not(.mom-button) { text-underline-offset: 3px; }
body.page .entry-content p { max-width: 76ch; }
body.page .entry-content .mom-page-hero p,
body.page .entry-content .mom-section p,
body.page .entry-content .mom-cta p,
body.page .entry-content .mom-card p { max-width: none; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; overflow-x: hidden; color: var(--color-text); background: var(--color-background); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary); }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 12px 16px; color: white; border-radius: 8px; background: var(--color-ink); }
.skip-link:focus { top: 16px; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; padding-inline: clamp(0px, 2vw, 48px); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { max-width: 16ch; margin-bottom: 20px; font-size: clamp(2.75rem, 4.15vw, 3.5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.12; }
h2 { max-width: 19ch; margin-bottom: 24px; font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.12; }
h3 { margin-bottom: 12px; font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.3; }
.lead { max-width: 62ch; color: var(--color-muted); font-size: clamp(1rem, 1.25vw, 1.125rem); }
.eyebrow { margin-bottom: 16px; color: var(--color-primary); font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow i { margin-inline: 7px; color: var(--color-accent); font-style: normal; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--color-border); background: rgb(247 248 250 / 88%); backdrop-filter: blur(14px); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 0.96rem; }
.brand small { margin-top: 5px; color: var(--color-muted); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; }
.desktop-nav { display: flex; gap: clamp(16px, 2vw, 28px); justify-self: center; }
.desktop-nav a { position: relative; padding-block: 9px; color: #475467; font-size: 0.86rem; font-weight: 600; }
.desktop-nav a::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; background: var(--color-accent); content: ""; transform: scaleX(0); transition: transform 160ms ease; }
.desktop-nav a:hover::after { transform: scaleX(1); }
.mobile-menu { display: none; }

.button { display: inline-flex; min-height: 48px; padding: 12px 20px; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: 8px; font-size: 0.9rem; font-weight: 700; transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; border-color: var(--color-primary); background: var(--color-primary); box-shadow: 0 10px 24px rgb(36 87 214 / 16%); }
.button-primary:hover { color: #fff; background: var(--color-primary-dark); }
.button-secondary { color: var(--color-text); background: #fff; }
.button-secondary:hover { border-color: #b8c4d3; color: var(--color-text); }
.button-light { color: var(--color-ink); border-color: #fff; background: #fff; }
.button-outline-light { color: #fff; border-color: rgb(255 255 255 / 55%); }

.hero { border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr); gap: clamp(42px, 6vw, 78px); align-items: center; min-height: 715px; padding-block: clamp(64px, 7vw, 96px); }
.hero-copy { min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.expertise { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--color-border); color: #667085; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; list-style: none; }
.expertise li:not(:last-child)::after { margin-inline: 14px; color: #c2cad5; content: "•"; }

.diagnostic { margin: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; box-shadow: 0 12px 34px rgb(11 22 43 / 5%); }
.diagnostic-bar, .diagnostic figcaption { padding: 12px 16px; color: #667085; background: var(--color-surface-2); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; }
.diagnostic-bar { display: flex; justify-content: space-between; border-bottom: 1px solid var(--color-border); }
.diagnostic-bar span:last-child { color: var(--color-accent); }
.diagnostic svg { width: 100%; padding: 18px 22px 0; }
.diagnostic-steps { display: flex; flex-wrap: wrap; gap: 9px 15px; margin: 0 20px 18px; padding: 17px 0 0; border-top: 1px solid var(--color-border); list-style: none; }
.diagnostic-steps li { display: inline-flex; gap: 5px; align-items: center; font-size: 0.72rem; }
.diagnostic-steps li:not(:last-child)::after { margin-left: 8px; color: #c5cdd7; content: "→"; }
.diagnostic-steps span { color: var(--color-accent); font-family: var(--mono); }
.diagnostic figcaption { border-top: 1px solid var(--color-border); }

.proof { border-bottom: 1px solid var(--color-border); background: var(--color-surface-2); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-grid > div { min-width: 0; padding-block: 28px; }
.proof-grid > div:not(:last-child) { padding-right: 24px; }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { margin-bottom: 4px; font-size: 0.98rem; }
.proof-grid span { color: var(--color-muted); font-size: 0.82rem; }

.section { padding-block: var(--section); }
.surface { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.dark { color: #fff; background: var(--color-ink); }
.dark .eyebrow { color: var(--color-accent); }
.split { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr); gap: clamp(54px, 8vw, 96px); align-items: center; }
.text-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.text-links a, .text-link { color: var(--color-primary); font-size: 0.9rem; font-weight: 700; }
.text-links a::after { margin-left: 6px; color: var(--color-accent); content: "→"; }
.code-card { overflow: hidden; border: 1px solid var(--color-border-dark); border-radius: 10px; color: #d9e2ee; background: var(--color-ink); box-shadow: var(--shadow); }
.code-card > div { padding: 11px 18px; border-bottom: 1px solid var(--color-border-dark); color: #aab8ca; font-family: var(--mono); font-size: 0.68rem; }
.code-card pre { margin: 0; padding: clamp(22px, 4vw, 38px); overflow-x: auto; font-family: var(--mono); font-size: clamp(0.7rem, 1vw, 0.84rem); line-height: 1.9; }
.code-card b { color: #64d4e7; font-weight: 500; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.service-card { display: flex; min-height: 245px; padding: 24px; flex-direction: column; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.service-card:hover { border-color: var(--color-primary); box-shadow: 0 16px 34px rgb(11 22 43 / 7%); transform: translateY(-3px); }
.service-card > span { margin-bottom: 34px; color: var(--color-primary); font-family: var(--mono); font-size: 0.7rem; }
.service-card p { color: var(--color-muted); }
.service-card a { margin-top: auto; color: var(--color-primary); font-size: 0.88rem; font-weight: 700; }
.service-card i, .project-card i, .text-link i { margin-left: 6px; color: var(--color-accent); font-style: normal; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.project-card { display: flex; min-height: 330px; padding: 24px; flex-direction: column; border: 1px solid var(--color-border-dark); border-radius: 10px; background: var(--color-ink-2); }
.project-card > span { color: var(--color-accent); font-family: var(--mono); font-size: 0.7rem; }
.project-card h3 { margin-top: 28px; }
.project-card small { color: #9dacbf; font-family: var(--mono); font-size: 0.68rem; line-height: 1.7; }
.project-card p { margin-top: 20px; color: #cbd5e1; font-size: 0.9rem; }
.project-card a { margin-top: auto; color: #fff; font-size: 0.82rem; font-weight: 700; }

.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 38px 0 0; padding: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-border); gap: 1px; list-style: none; }
.process-grid li { min-width: 0; min-height: 220px; padding: 22px; background: #fff; }
.process-grid span { display: block; margin-bottom: 42px; color: var(--color-primary); font-family: var(--mono); font-size: 0.7rem; }
.process-grid p { margin-bottom: 0; color: var(--color-muted); font-size: 0.84rem; }

.resource-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(64px, 9vw, 118px); }
.tool-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0 0; padding: 0; list-style: none; }
.tool-list li { padding: 9px 12px; border: 1px solid var(--color-border); border-radius: 6px; color: #475467; background: #fff; font-size: 0.76rem; font-weight: 650; }

.faq-wrap { max-width: 1020px; }
.faq-list { margin-top: 34px; border-top: 1px solid var(--color-border); }
.faq-list details { border-bottom: 1px solid var(--color-border); }
.faq-list summary { position: relative; padding: 20px 46px 20px 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 17px; right: 4px; color: var(--color-primary); font-size: 1.3rem; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 72ch; padding-bottom: 18px; color: var(--color-muted); }

.cta { color: #fff; background: var(--color-primary); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 60px; align-items: center; padding-block: 66px; }
.cta .eyebrow { color: #bfeaf1; }
.cta h2 { margin-bottom: 18px; }
.cta p { max-width: 62ch; color: #e6ecfb; }
.cta-actions { display: grid; gap: 10px; min-width: 220px; }
.cta-actions > a:last-child { padding: 10px; color: #fff; text-align: center; font-size: 0.8rem; font-weight: 700; }

.site-footer { color: #cbd5e1; background: var(--color-ink); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 0.8fr 0.9fr; gap: 80px; padding-block: 58px; }
.site-footer .brand strong { color: #fff; }
.footer-brand p { margin: 22px 0; color: #9eacbe; font-size: 0.84rem; }
.footer-brand > strong { color: #fff; font-size: clamp(1.4rem, 2.3vw, 2rem); letter-spacing: -0.04em; }
.site-footer h2 { margin-bottom: 16px; color: #fff; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer nav, .footer-links { display: flex; align-items: flex-start; flex-direction: column; gap: 9px; }
.site-footer nav a, .footer-links a, .footer-links span { color: #aab6c7; font-size: 0.8rem; }
.copyright { padding-block: 19px; border-top: 1px solid var(--color-border-dark); color: #8492a6; font-size: 0.74rem; }

.page-hero { padding-block: clamp(64px, 8vw, 104px); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.page-hero .container { max-width: 1050px; }
.page-hero h1 { max-width: 18ch; }
.breadcrumb { display: flex; gap: 10px; margin-bottom: 28px; color: #667085; font-family: var(--mono); font-size: 0.7rem; }
.breadcrumb a { color: var(--color-primary); }
.page-body { padding-block: var(--section); }
.page-grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 70px; }
.page-aside { position: sticky; top: 110px; align-self: start; }
.page-aside p { color: var(--color-muted); font-size: 0.9rem; }
.content-stack { display: grid; gap: 16px; }
.content-card { padding: clamp(24px, 3.5vw, 36px); border: 1px solid var(--color-border); border-radius: 10px; background: #fff; }
.content-card h2 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); }
.content-card p, .content-card li { color: var(--color-muted); }
.content-card ul { padding-left: 20px; columns: 2; }
.content-card li { margin-bottom: 8px; break-inside: avoid; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 54px; }
.contact-card { padding: 32px; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; }
.contact-card label { display: grid; gap: 7px; margin-bottom: 16px; color: #344054; font-size: 0.8rem; font-weight: 700; }
.contact-card input, .contact-card textarea, .contact-card select { width: 100%; padding: 12px 13px; border: 1px solid #cfd8e3; border-radius: 7px; color: var(--color-text); background: #fff; font: inherit; }
.contact-card textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--color-muted); font-size: 0.78rem; }

@media (max-width: 1080px) {
  .desktop-nav { gap: 15px; }
  .desktop-nav a { font-size: 0.78rem; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy, .diagnostic { width: min(100%, 780px); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
  .split { grid-template-columns: 1fr; }
  .code-card { width: min(100%, 760px); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card:last-child { grid-column: 1 / -1; min-height: 250px; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  .container { width: min(calc(100% - 32px), var(--container)); padding-inline: 0; }
  .header-inner { grid-template-columns: 1fr auto; min-height: 72px; }
  .desktop-nav, .header-cta { display: none; }
  .mobile-menu { position: relative; display: block; }
  .mobile-menu summary { display: grid; width: 44px; height: 44px; place-content: center; gap: 5px; cursor: pointer; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 20px; height: 2px; background: var(--color-text); }
  .mobile-menu nav { position: fixed; top: 72px; right: 0; left: 0; display: grid; padding: 12px 16px 20px; border-bottom: 1px solid var(--color-border); background: #fff; box-shadow: var(--shadow); }
  .mobile-menu nav > a:not(.button) { padding: 12px 4px; border-bottom: 1px solid var(--color-border); font-weight: 650; }
  .mobile-menu .button { margin-top: 14px; }
  .hero-grid { padding-block: 58px; }
  h1 { font-size: clamp(2.5rem, 9vw, 3.5rem); }
  h2 { font-size: clamp(1.95rem, 7vw, 2.8rem); }
  .service-grid, .project-grid, .process-grid, .resource-grid, .page-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-card, .project-card:last-child { grid-column: auto; min-height: 285px; }
  .process-grid li { min-height: 170px; }
  .page-aside { position: static; }
  .content-card ul { columns: 1; }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-actions { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  .brand small { display: none; }
  .hero-grid { padding-block: 46px; }
  .actions { display: grid; }
  .button { width: 100%; }
  .expertise { flex-direction: column; }
  .expertise li:not(:last-child)::after { display: none; }
  .diagnostic svg { padding-inline: 10px; }
  .diagnostic-steps { display: grid; grid-template-columns: repeat(2, 1fr); }
  .diagnostic-steps li::after { display: none; }
  .diagnostic figcaption { font-size: 0.6rem; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid > div, .proof-grid > div:nth-child(-n+2) { padding-block: 18px; border-bottom: 1px solid var(--color-border); }
  .proof-grid > div:last-child { border-bottom: 0; }
  .service-card { min-height: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { min-height: 0; }
  .process-grid span { margin-bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

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