:root {
  --bg: #ffffff;
  --text: #111013;
  --muted: #6f6a74;
  --soft: #f8f7f9;
  --line: #dedbe2;
  --dark-bg: #111013;
  --dark-text: #f7f4f1;
  --dark-muted: #b8b2bd;
  --radius: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.58;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; left: 16px; top: -80px; background: var(--text); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 12px; }
.container { width: min(1210px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}
.nav-shell {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 0;
}
.brand-logo {
  width: 138px;
  height: auto;
}
.menu-button,
.nav-toggle {
  position: absolute;
  left: 22px;
  top: 16px;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  cursor: pointer;
  display: none;
  place-items: center;
}
.menu-lines,
.menu-lines::before,
.menu-lines::after {
  content: "";
  width: 19px;
  height: 2px;
  background: currentColor;
  display: block;
}
.menu-lines::before { transform: translateY(-7px); }
.menu-lines::after { transform: translateY(5px); }
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 15px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }
.section { padding: 76px 0; }
.hero {
  min-height: 278px;
  display: flex;
  align-items: flex-end;
  padding: 46px 0 56px;
}
.page-hero {
  padding: 82px 0 62px;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.04em;
  color: var(--text);
}
h1 {
  max-width: 1040px;
  font-size: clamp(48px, 7vw, 76px);
  line-height: .98;
  font-weight: 800;
}
h2 {
  max-width: 990px;
  font-size: clamp(36px, 5.1vw, 58px);
  line-height: 1.02;
  font-weight: 800;
}
h3 {
  font-size: clamp(24px, 3vw, 33px);
  line-height: 1.05;
  font-weight: 800;
}
.lead {
  max-width: 860px;
  color: var(--muted);
  font-size: 20px;
  margin-top: 22px;
}

.section-soft { background: var(--soft); }
.section-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark .eyebrow { color: var(--dark-text); }
.section-dark p { color: var(--dark-muted); }

.section-heading {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 42px;
  align-items: start;
  margin-bottom: 44px;
}
.service-list {
  margin-left: 260px;
  border-left: 1px solid var(--line);
}
.service-item {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 28px 0 28px 36px;
  border-bottom: 1px solid var(--line);
}
.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.image-copy {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.wp-image-frame {
  background: #fff;
  min-height: 330px;
  display: grid;
  place-items: center;
}
.wp-image-frame img { width: min(520px, 86%); }
.copy-block p {
  color: var(--muted);
  font-size: 19px;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}
.approach-grid p {
  color: var(--muted);
  font-size: 19px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.stat strong {
  display: block;
  font-size: clamp(46px, 7vw, 80px);
  line-height: .9;
  letter-spacing: -0.05em;
}
.stat span {
  display: block;
  margin-top: 16px;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
}
.stat p { color: var(--muted); }

.portfolio-strip {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.portfolio-row {
  display: grid;
  grid-template-columns: 230px 1fr 170px;
  gap: 34px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.portfolio-row .logo-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.product-logo {
  width: min(170px, 100%);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}
.logo-wide {
  width: min(190px, 100%);
  max-height: 64px;
}
.logo-saleculator {
  width: min(210px, 100%);
  max-height: 72px;
}
.logo-square {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}
.logo-abate {
  width: min(190px, 100%);
  max-height: 64px;
  border-radius: 8px;
}
.portfolio-row p {
  color: var(--muted);
  margin: 0;
  font-size: 18px;
}
.show-project {
  color: var(--text);
  font-weight: 700;
}

.team-copy {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 52px;
}
.team-copy p { color: var(--muted); font-size: 19px; }
.cta-section { padding: 86px 0; }
.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: end;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 800;
}
.section-dark .button { background: var(--dark-text); color: var(--dark-bg); }

.work-grid {
  display: grid;
  border-top: 1px solid var(--line);
}
.work-card {
  display: grid;
  grid-template-columns: 230px 1fr 170px;
  gap: 34px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.work-card span {
  display: block;
  min-height: 72px;
}
.work-card p { color: var(--muted); margin: 10px 0 0; font-size: 18px; }
.work-card a { font-weight: 800; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.contact-form {
  display: grid;
  gap: 12px;
}
label { font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}
textarea { resize: vertical; }
.form-status { background: var(--soft); border: 1px solid var(--line); padding: 12px 14px; }
.form-status.is-error { color: #a61d24; }
.contact-card {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.contact-card p,
.contact-card a { color: var(--muted); }

.site-footer {
  background: var(--dark-bg);
  color: var(--dark-muted);
  padding: 70px 0 30px;
}
.site-footer h3,
.site-footer .brand { color: var(--dark-text); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
}
.footer-grid nav,
.footer-grid div { display: grid; gap: 12px; align-content: start; }
.footer-brand { margin: 0; }
.footer-social {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.site-footer .footer-social a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--dark-muted) 38%, transparent);
  border-radius: 999px;
  color: var(--dark-text);
}
.site-footer .footer-social a:hover {
  background: var(--dark-text);
  border-color: var(--dark-text);
  color: var(--dark-bg);
}
.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.footer-bottom {
  border-top: 1px solid #302d35;
  margin-top: 42px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .container { width: min(100% - 40px, 720px); }
  .nav-shell { width: min(1210px, calc(100% - 40px)); }
  .brand-logo { width: 126px; }
  .hero { min-height: 260px; padding-top: 54px; }
  .section { padding: 58px 0; }
  .section-heading,
  .service-item,
  .image-copy,
  .approach-grid,
  .stats-grid,
  .portfolio-row,
  .team-copy,
  .cta-panel,
  .work-card,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-list { margin-left: 0; }
  .portfolio-row,
  .work-card { gap: 16px; }
  .contact-card { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .footer-bottom { flex-direction: column; }
  .section-heading {
    gap: 4px;
    margin-bottom: 18px;
  }
  .section-heading .eyebrow { margin-bottom: 0; }
  .section-soft {
    padding-top: 42px;
  }
  .service-item {
    padding-top: 24px;
    padding-left: 20px;
  }
}

@media (max-width: 820px) {
  .brand { margin-left: 68px; }
  .nav-toggle { display: grid; }
  .site-nav {
    display: none;
    position: fixed;
    inset: 86px 20px auto 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    z-index: 70;
  }
  .site-nav.is-open { display: flex; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 560px); }
  .nav-shell { min-height: 76px; }
  .nav-toggle {
    left: 14px;
    top: 13px;
    width: 50px;
    height: 50px;
  }
  .brand { margin-left: 58px; }
  .brand-logo { width: 112px; }
  .site-nav { inset: 76px 14px auto 14px; }
  .hero { min-height: 230px; padding: 38px 0 48px; }
  .page-hero { padding: 58px 0 44px; }
  h1 { font-size: clamp(42px, 12vw, 56px); }
  h2 { font-size: clamp(32px, 10vw, 44px); }
  .lead,
  .service-item p,
  .portfolio-row p,
  .work-card p,
  .copy-block p,
  .approach-grid p,
  .team-copy p {
    font-size: 16px;
  }
  .portfolio-row,
  .work-card {
    padding: 26px 0;
  }
  .product-logo.logo-wide,
  .logo-saleculator,
  .logo-abate {
    width: min(185px, 100%);
  }
  .cta-panel { align-items: start; }
  .button { width: 100%; }
}
