/* ============================================================
   DEVSFLOW Maintenance. Adapted from the DEVSFLOW engineering
   system (main/engineering.css). Single stylesheet, no layering.
   ============================================================ */

:root {
  --ink: #0E1116;
  --ink-2: #161B22;
  --paper: #FFFFFF;
  --alt: #F4F4F1;
  --line: #DEDEDA;
  --line-dark: rgba(255, 255, 255, 0.16);
  --muted: #5C6270;
  --muted-dark: rgba(255, 255, 255, 0.62);
  --mark: #F5C518;
  --mark-on-light: #876D00;
  --mark-hover: #FFD93D;
  --text-body: #23262D;
  --text-on-dark: #E6E8EB;
  --nav-h: 76px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Monaco, 'Cascadia Mono', monospace;
  --col: 1180px;
  --gutter: 32px;
  color-scheme: light only;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
blockquote, figure { margin: 0; }

.container {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Nav ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(14, 17, 22, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--line-dark);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 30px; height: auto; }

.nav-brand-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease;
  font-weight: 500;
}

.nav-links a:hover { color: #fff; }

.nav-cta,
.nav-links a.nav-cta,
.nav-links .nav-cta {
  display: inline-block;
  padding: 9px 16px;
  background: var(--mark);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 2px;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--mark-hover); }

.nav-cta-desktop { display: inline-block; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  padding: 6px 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  height: 1.5px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block;
  padding: 13px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--mark); color: var(--ink); }
.btn-primary:hover { background: var(--mark-hover); }

.btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.34); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }

.lnk {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid var(--mark-on-light);
  padding-bottom: 2px;
}

.lnk:hover { border-bottom-color: var(--ink); }

/* ---------- Section shell ---------- */
.section { padding: 96px 0; }

.kicker,
.section-tagline,
.intro-tag,
.plan-alts-label,
.case-text-eyebrow,
.insight-tag,
.blog-card-tag,
.blog-card-meta,
.post-meta,
.stat-label,
.eng-phase-when,
.clients-note {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  -webkit-font-smoothing: auto;
}

.section-title {
  max-width: 24ch;
  font-size: clamp(1.75rem, 2.9vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-sub,
.lead {
  max-width: 62ch;
  margin-top: 20px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Intro masthead ---------- */
.intro {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(95deg, rgba(14, 17, 22, 0.96) 0%, rgba(14, 17, 22, 0.92) 34%, rgba(14, 17, 22, 0.55) 62%, rgba(14, 17, 22, 0.3) 100%),
    url("slideshow/toronto.avif");
  background-size: auto, cover;
  background-position: center, 62% 40%;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  padding: 164px 0 108px;
  isolation: isolate;
}

.intro-inner { max-width: var(--col); }

.intro-tag { display: block; margin-bottom: 26px; color: var(--mark); }

.intro h1 {
  max-width: 20ch;
  font-size: clamp(2.4rem, 3.8vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.intro h1 span { color: var(--muted-dark); }

.intro-sub {
  max-width: 62ch;
  margin-top: 24px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted-dark);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* ---------- Stats band ---------- */
.stats-bar { border-bottom: 1px solid var(--line); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 34px 28px 32px 0;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat + .stat { padding-left: 28px; }

.stat-number {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.stat-label { display: block; letter-spacing: 0.12em; line-height: 1.5; }

/* ---------- Clients ---------- */
.clients {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.clients-note { display: block; letter-spacing: 0.12em; }

.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  margin-top: 24px;
}

.client-logo {
  width: auto;
  height: 46px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.9;
}

/* ---------- Problem / solution ---------- */
.problem-section { padding: 96px 0; background: var(--paper); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  margin-top: 56px;
}

.problem-col h3 {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.problem-col > p {
  margin-top: 18px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.problem-list,
.solution-list {
  margin-top: 22px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.problem-list li,
.solution-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
}

.problem-list li::before,
.solution-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 7px;
  height: 7px;
}

.problem-list li::before { background: var(--line); }
.solution-list li::before { background: var(--mark); }

/* ---------- Case studies ---------- */
.case-study {
  padding: 96px 0;
  background: var(--alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-study-plain { background: var(--paper); }

.case-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.case-content img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.case-text-eyebrow { display: block; margin-bottom: 14px; letter-spacing: 0.14em; }

.case-text h3,
.case-study-inner-r h3 {
  max-width: 26ch;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.case-text > p:not(.case-text-eyebrow),
.case-study-inner-r > p:not(.case-text-eyebrow) {
  max-width: 66ch;
  margin-top: 16px;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--muted);
}

.case-text > p strong,
.case-study-inner-r > p strong { color: var(--ink); font-weight: 600; }

.case-study-inner-r {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.case-study-logo-r {
  position: absolute;
  top: 0;
  right: var(--gutter);
  height: 40px;
  width: auto;
  object-fit: contain;
}

.case-quote-inline {
  max-width: 66ch;
  margin-top: 30px;
  padding: 22px 24px;
  background: var(--paper);
  border-left: 2px solid var(--mark);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink);
}

.case-study-plain .case-quote-inline { background: var(--alt); }

.case-quote-author-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.case-quote-author-inline img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.case-quote-author-inline strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.case-quote-author-inline span { font-size: 0.82rem; color: var(--muted); font-weight: 500;}

/* ---------- Hairline grids (services, coverage, cards) ---------- */
.services { background: var(--alt); }

.services-grid,
.covered-grid,
.insights-grid,
.related-grid,
.t-supporting-grid {
  display: grid;
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
}

.services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.covered-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service-card,
.covered-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 28px;
  background: var(--paper);
}

.service-card h3,
.covered-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service-card p,
.covered-item p {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--muted);
}

.covered { background: var(--paper); }

/* ---------- Plans ---------- */
.plans { background: var(--paper); }

.plans-stance {
  max-width: 68ch;
  margin-top: 20px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
}

.plans-stance strong { color: var(--ink); font-weight: 600; }

.plan-feat {
  display: block;
  margin-top: 48px;
  padding: 40px 40px 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--mark);
  border-radius: 0 0 2px 2px;
}

.plan-feat-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 10px;
  background: var(--mark);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.plan-feat-name {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.plan-feat h3 {
  max-width: 30ch;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.plan-feat-desc {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.plan-feat-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 40px;
  margin-top: 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan-feat-features li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.plan-feat-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--mark);
}

.plan-alts-label { display: block; margin: 44px 0 16px; letter-spacing: 0.14em; }

.plan-alts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.plan-alt {
  padding: 26px 26px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.plan-alt h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }

.plan-alt p {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--muted);
}

.plan-alt p strong { color: var(--ink); font-weight: 600; }

.plans-custom {
  max-width: 66ch;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.plans-custom a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mark-on-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.plans-custom a:hover { text-decoration-color: var(--ink); }

/* ---------- Engagement timeline ---------- */

/* ---------- Testimonials ---------- */
.testimonial-section { padding: 96px 0; background: var(--alt); }

.section-tagline { display: block; margin-bottom: 18px; }

.t-featured {
  display: block;
  max-width: 76ch;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.t-featured-mark { display: none; }

.t-featured-logo {
  height: 32px;
  width: auto;
  margin-bottom: 22px;
  object-fit: contain;
  object-position: left center;
}

.t-featured-quote {
  max-width: 54ch;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.t-featured-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.t-featured-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.t-featured-meta { display: flex; flex-direction: column; gap: 3px; }
.t-featured-name { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.t-featured-role { font-size: 0.85rem; color: var(--muted); font-weight: 500;}

.t-supporting-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.t-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--paper);
}

.t-card-logo {
  align-self: flex-start;
  height: 22px;
  width: auto;
  margin-bottom: 18px;
  object-fit: contain;
  object-position: left center;
}

.t-quote {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.t-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.t-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-name { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.t-role { font-size: 0.78rem; color: var(--muted); font-weight: 500;}

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }

.faq-list {
  max-width: 860px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }

.faq-item h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }

.faq-item p {
  max-width: 74ch;
  margin-top: 10px;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Insights ---------- */
.insights { background: var(--alt); }

.insight-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 28px;
  background: var(--paper);
  transition: background 0.15s ease;
}

.insight-card:hover { background: var(--alt); }

.insight-tag { display: block; }

.insight-card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }

.insight-card p { font-size: 0.92rem; line-height: 1.6; color: var(--muted); }

.insights-cta { margin-top: 32px; }

.insights-cta a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid var(--mark-on-light);
  padding-bottom: 2px;
}

.insights-cta a:hover { border-bottom-color: var(--ink); }

/* ---------- Closing CTA ---------- */
.cta-section {
  background: var(--ink-2);
  color: #fff;
  padding: 86px 0;
}

.cta-section h2 {
  max-width: 20ch;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.cta-section p {
  max-width: 60ch;
  margin: 20px 0 32px;
  font-size: 1rem;
  color: var(--muted-dark);
}

.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 560px) {
  .cta-actions { align-items: stretch; flex-direction: column; }
  .cta-actions .btn { width: 100%; text-align: center; }
}

/* ---------- Related services ---------- */
.related-services { padding: 96px 0; background: var(--paper); }

.related-services h2 {
  max-width: 24ch;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.related-sub {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 1rem;
  color: var(--muted);
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 28px;
  background: var(--paper);
  transition: background 0.15s ease;
}

.related-card:hover { background: var(--alt); }

.related-card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }

.related-card p { font-size: 0.92rem; line-height: 1.6; color: var(--muted); }

.related-card span {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Blog index ---------- */
.blog-header {
  background: var(--ink);
  color: #fff;
  padding: 152px 0 64px;
}

.blog-header h1 {
  max-width: 24ch;
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.blog-header p {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1rem;
  color: var(--muted-dark);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-filter {
  padding: 8px 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

.blog-filter:hover,
.blog-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
}

.blog-card { background: var(--paper); transition: background 0.15s ease; }
.blog-card:hover { background: var(--alt); }
.blog-card.hidden { display: none; }

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 30px 28px;
}

.blog-card-tag { display: block; }

.blog-card-body h2 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.blog-card-excerpt { font-size: 0.92rem; line-height: 1.6; color: var(--muted); }

.blog-card-meta { display: block; letter-spacing: 0.08em; }

.blog-card-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Article ---------- */
article { padding: calc(var(--nav-h) + 56px) 0 88px; }

article .container { max-width: 760px; }

article h1 {
  max-width: 28ch;
  font-size: clamp(1.9rem, 3.1vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

article p.post-meta {
  display: block;
  margin: 18px 0 44px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

article p { margin: 0 0 22px; font-size: 1.05rem; line-height: 1.72; color: var(--text-body); }

article h2 {
  margin: 52px 0 18px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

article h3 { margin: 36px 0 14px; font-size: 1.1rem; font-weight: 600; }

article ul, article ol { margin: 0 0 22px; padding-left: 22px; }
article li { margin-bottom: 10px; font-size: 1.02rem; line-height: 1.7; color: var(--text-body); }

article a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mark-on-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

article code {
  padding: 2px 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: var(--alt);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.88em;
  font-weight: 500;
}

.blog-cta {
  margin-top: 48px;
  padding: 22px 24px;
  background: var(--alt);
  border-left: 2px solid var(--mark);
}

.blog-cta p { margin: 0; font-size: 0.98rem; line-height: 1.7; color: var(--ink); }

.blog-related { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }

.blog-related h3 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  -webkit-font-smoothing: auto;
}

.blog-related ul { margin: 0; padding: 0; list-style: none; }
.blog-related li { margin-bottom: 10px; font-size: 0.95rem; line-height: 1.5; }
.blog-related li strong { font-weight: 600; }

.blog-related a {
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.blog-related a:hover { text-decoration-color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--line-dark);
  padding: 48px 0 44px;
  font-size: 0.86rem;
  font-weight: 500;
}

footer a { color: rgba(255, 255, 255, 0.6); }
footer a:hover { color: #fff; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-dark);
}

footer p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); font-weight: 500;}

/* ---------- No entrance animation ---------- */
.fade-in, .reveal-up, .reveal-left, .reveal-scale, .revealed {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .nav-toggle { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: block; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 24px; border-top: 1px solid var(--line-dark); }
  .nav-cta-mobile .nav-cta { margin: 12px 24px 16px; padding: 12px 16px; border-top: 0; color: var(--ink); text-align: center; }
  .nav-links .nav-cta:hover { color: var(--ink); }

  .section,
  .problem-section,
  .testimonial-section,
  .related-services,
  .case-study { padding: 68px 0; }

  .intro { padding: 132px 0 76px; }

  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 26px 20px 24px 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; padding-right: 0; }
  .stat:nth-child(2n+1) { padding-left: 0; }
  .stat + .stat { padding-left: 20px; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }

  .problem-grid { grid-template-columns: 1fr; gap: 44px; }
  .case-content { grid-template-columns: 1fr; gap: 32px; }
  .case-study-logo-r { position: static; margin-bottom: 22px; }

  .services-grid,
  .plan-feat-features,
  .plan-alts,
  .insights-grid { grid-template-columns: 1fr; }

  .covered-grid,
  .related-grid,
  .t-supporting-grid,
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .plan-feat { padding: 32px 26px 30px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .intro { padding: 122px 0 66px; }
  .intro h1 { font-size: 2.05rem; }
  .intro-sub { font-size: 1rem; }
  .intro-actions { flex-direction: column; align-items: stretch; }
  .intro-actions .btn { width: 100%; text-align: center; }

  .stats-row { grid-template-columns: 1fr; }
  .stat { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat + .stat { padding-left: 0; }
  .stat:last-child { border-bottom: 0; }

  .client-logos { gap: 24px; }
  .client-logo { height: 38px; }

  .covered-grid,
  .related-grid,
  .t-supporting-grid,
  .blog-grid { grid-template-columns: 1fr; }

  .service-card,
  .covered-item,
  .insight-card,
  .related-card,
  .t-card,
  .blog-card-body { padding: 24px 22px; }

  .blog-header { padding: 122px 0 48px; }
  article { padding: calc(var(--nav-h) + 36px) 0 64px; }
  .case-quote-inline { padding: 18px 18px; }
}

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

/* ---------- Shared footer (ported from the main property) ---------- */
.footer-cta {
  background: var(--ink-2);
  color: #fff;
  padding: 86px 0;
}
.footer-cta-title {
  max-width: 20ch;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.footer-cta-sub {
  max-width: 60ch;
  margin: 20px 0 32px;
  font-size: 1rem;
  color: var(--muted-dark);
}
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--line-dark);
  padding: 56px 0 40px;
  font-size: 0.86rem;
  font-weight: 500;
}
.footer a { color: rgba(255, 255, 255, 0.6); }
.footer a:hover { color: #fff; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 28px; height: auto; }
.footer-tagline { max-width: 34ch; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.footer-social { display: inline-flex; gap: 12px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}
.footer-bottom p { margin: 0; }
.footer-dot { opacity: 0.4; }
.back-to-top {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 640px) {
  .footer { padding: 44px 0 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .footer-brand { align-items: flex-start; }
  .footer .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; width: 100%; }
  .footer-links a { display: flex; align-items: center; min-height: 24px; }
  .footer-end { justify-self: start; }
  .footer-social,
  .back-to-top { width: 44px; height: 44px; align-items: center; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px; padding-top: 20px; }
  .footer-contact { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-dot { display: none; }
}

/* ---------- Keyboard focus ---------- */
:focus-visible {
  outline: 2px solid var(--mark-on-light);
  outline-offset: 3px;
  border-radius: 1px;
}

.hero :focus-visible,
.footer :focus-visible,
.navbar :focus-visible { outline-color: var(--mark); }

/* ---------- Consent banner (canonical, shared by all properties) ---------- */
.consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--mark);
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
  font-family: var(--sans);
}
.consent-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.consent-text { flex: 1; min-width: 280px; }
.consent-title { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.consent-body { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--muted); font-weight: 500;}
.consent-body a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--mark-on-light); text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.consent-btn {
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.consent-btn-primary { background: var(--mark); color: var(--ink); }
.consent-btn-primary:hover { background: var(--mark-hover); }
.consent-btn-secondary { background: transparent; color: var(--ink); border-color: var(--muted); }
.consent-btn-secondary:hover { background: var(--alt); }
@media (max-width: 640px) {
  .consent-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; }
}

.intro > .container {
  position: relative;
  z-index: 2;
}

.intro::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(circle at 84% 50%, rgba(91, 117, 145, 0.07), transparent 35%);
}

.intro::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 48%, rgba(14, 17, 22, 0.88) 66%, rgba(14, 17, 22, 0.18) 100%);
  pointer-events: none;
}
