:root {
  --ink: #14213D;
  --slate: #56607A;
  --paper: #F7F8FB;
  --mist: #E6EBF2;
  --white: #FFFFFF;
  --marigold: #E9A23B;
  --cobalt: #2F5BEA;
  --teal: #0F9D94;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --radius-lg: 20px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--cobalt); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  font: 600 1rem/1 var(--body);
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--cobalt); border-color: var(--cobalt); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.btn-small { padding: 11px 18px; font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.text-link { font-weight: 600; color: var(--ink); text-underline-offset: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 251, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--mist); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; }
.brand-mark circle { mix-blend-mode: multiply; }
.brand-logo { max-height: 44px; width: auto; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; margin: 0; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-list a:hover, .nav-list .current-menu-item a { color: var(--cobalt); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.035em; font-weight: 700; max-width: 13ch; }
.lede { font-size: 1.1875rem; color: var(--slate); max-width: 56ch; }
.venn { margin: 0; text-align: center; }
.venn svg { width: 100%; max-width: 460px; overflow: visible; }
.venn circle { mix-blend-mode: multiply; opacity: .88; cursor: pointer; transition: opacity .25s; }
.venn[data-active="uiux"] circle:not([data-practice="uiux"]),
.venn[data-active="aiml"] circle:not([data-practice="aiml"]),
.venn[data-active="salesforce"] circle:not([data-practice="salesforce"]) { opacity: .22; }
.venn-label { font: 600 18px var(--body); fill: var(--white); pointer-events: none; }
.venn-core { font: 700 26px var(--display); fill: var(--white); letter-spacing: -.02em; pointer-events: none; }
.venn figcaption { font-size: .875rem; color: var(--slate); margin-top: 8px; }
@media (hover: none) { .venn figcaption { display: none; } }

/* Sections */
.section { padding: 88px 0; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -.025em; max-width: 22ch; }

/* Practices */
.practices { background: var(--white); }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.practice { border-top: 6px solid var(--c); padding-top: 26px; transition: transform .2s; }
.practice[data-practice="uiux"] { --c: var(--marigold); }
.practice[data-practice="aiml"] { --c: var(--cobalt); }
.practice[data-practice="salesforce"] { --c: var(--teal); }
.practice.is-active { transform: translateY(-4px); }
.practice h3 { font-size: 1.5rem; }
.practice p { color: var(--slate); }
.practice ul { padding: 0; margin: 0 0 22px; list-style: none; }
.practice li { padding: 9px 0; border-bottom: 1px solid var(--mist); }

/* Overlap */
.overlap-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.overlap-list { margin: 0; display: grid; gap: 14px; }
.overlap-list > div { background: var(--white); border-radius: var(--radius-lg); padding: 24px 26px; }
.overlap-list dt { font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; margin-bottom: 6px; }
.overlap-list dd { margin: 0; color: var(--slate); }
.dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; mix-blend-mode: multiply; }
.dot + .dot { margin-left: -6px; }
.dot:last-of-type { margin-right: 12px; }
.dot-uiux { background: var(--marigold); }
.dot-ai { background: var(--cobalt); }
.dot-sf { background: var(--teal); }

/* Process */
.process { background: var(--ink); color: var(--white); }
.process .section-title { color: var(--white); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 1px solid rgba(255,255,255,.25); padding-top: 22px; }
.steps li::before { content: counter(step); font: 700 2.4rem var(--display); color: var(--marigold); display: block; margin-bottom: 8px; }
.steps h3 { font-size: 1.3rem; }
.steps p { color: #C5CBDA; margin: 0; }

/* CTA */
.cta-band { background: var(--cobalt); color: var(--white); padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-title { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 24ch; letter-spacing: -.02em; }
.cta-inner p { margin: 0; color: #DCE4FD; }

/* Inner pages */
.page-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--mist); }
.page-title { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.035em; }
.subnav { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 0; }
.subnav-link { padding: 9px 16px; border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-left: 8px solid var(--c); }
.subnav-uiux { --c: var(--marigold); } .subnav-aiml { --c: var(--cobalt); } .subnav-salesforce { --c: var(--teal); }
.service { border-bottom: 1px solid var(--mist); }
.service-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.service-head { border-left: 6px solid var(--c); padding-left: 24px; align-self: start; position: sticky; top: 110px; }
.service-head p { color: var(--slate); }
.service-uiux { --c: var(--marigold); } .service-aiml { --c: var(--cobalt); } .service-salesforce { --c: var(--teal); }
.service-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.service-list dt { font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.service-list dd { margin: 0; color: var(--slate); }

.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.8rem; margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.fact-card, .contact-side { background: var(--white); border-radius: var(--radius-lg); padding: 30px; }
.fact-title { font-size: 1.3rem; }
.fact-card dl { margin: 0; }
.fact-card dt { font-size: .9rem; color: var(--slate); margin-top: 14px; }
.fact-card dd { margin: 2px 0 0; font-weight: 500; }
.values { background: var(--white); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 36px; }
.values-grid h3 { font-size: 1.3rem; }
.values-grid p { color: var(--slate); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: 400 1rem var(--body); color: var(--ink); background: var(--white);
  border: 1.5px solid #CDD5E1; border-radius: var(--radius-sm); padding: 13px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(47, 91, 234, .18); }
.contact-form .btn { justify-self: start; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin: 0; font-weight: 500; }
.notice-success { background: #DDF3F1; color: #0A5F59; }
.notice-error { background: #FDECEC; color: #9B1C1C; }
address { font-style: normal; margin-bottom: 12px; }
.map { margin-top: 20px; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card a { color: inherit; text-decoration: none; display: block; }
.post-card img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card h2 { font-size: 1.35rem; margin-top: 4px; }
.post-card a:hover h2 { color: var(--cobalt); }
.post-meta { color: var(--slate); font-size: .9rem; margin: 12px 0 4px; }
.post-image { border-radius: 14px; margin: 16px 0 28px; }
.pagination { margin-top: 40px; }
.empty { color: var(--slate); }

/* Footer */
.site-footer { background: var(--ink); color: #C5CBDA; padding: 72px 0 0; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.brand-word-light { color: var(--white); margin-bottom: 8px; }
.footer-title { font: 600 1rem var(--body); color: var(--white); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 56px; padding-top: 22px; padding-bottom: 22px; font-size: .9rem; }
.footer-base p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .overlap-grid, .service-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .venn svg { max-width: 360px; }
  .practice-grid, .values-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-head { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 16px 24px 28px; border-bottom: 1px solid var(--mist); }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 14px; font-size: 1.15rem; }
  .hero { padding: 44px 0 64px; }
  .section { padding: 64px 0; }
  .practice-grid, .values-grid, .post-grid, .steps, .service-list, .field-row, .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
