/* Tech Digitics design system tokens and consistency layer.
   Loaded after styles.css to standardize shared UI without changing markup behavior. */

:root {
  /* Spacing scale */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;

  /* Typography */
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sora", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-caption: 12px;
  --font-size-small: 14px;
  --font-size-body: 16px;
  --font-size-h6: 17px;
  --font-size-h5: 18px;
  --font-size-h4: 20px;
  --font-size-h3: 24px;
  --font-size-h2: 36px;
  --font-size-h1-min: 32px;
  --font-size-h1-max: 52px;
  --line-height-body: 1.6;
  --line-height-heading: 1.16;
  --line-height-heading-tight: 1.1;

  /* ── Fluid type scale (single source of truth) — refined/compact ──
     min = mobile floor, ideal = vw growth, max = desktop ceiling   */
  --fs-h1: clamp(2rem, 1.4rem + 3vw, 3.25rem);     /* 32 → 52px */
  --fs-h2: clamp(1.6rem, 1.2rem + 2vw, 2.25rem);   /* ~26 → 36px */
  --fs-h3: clamp(1.25rem, 1.05rem + 1vw, 1.5rem);  /* 20 → 24px */
  --fs-h4: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); /* ~17 → 20px */
  --fs-h5: 1.0625rem;   /* 17px */
  --fs-body: 1rem;      /* 16px */
  --fs-lede: clamp(1rem, 0.95rem + 0.35vw, 1.125rem); /* 16 → 18px */
  --fs-small: 0.875rem; /* 14px */
  --fs-caption: 0.75rem;/* 12px */

  /* ── Global content width + section rhythm ── */
  --content-width: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(56px, 6vw, 96px);
  --section-y-tight: clamp(40px, 4.5vw, 64px);

  /* ── Button sizing ── */
  --btn-height: 48px;
  --btn-height-sm: 40px;
  --btn-height-lg: 54px;
  --btn-pad-x: 24px;
  --btn-radius: 8px;
  --btn-font: 0.9375rem; /* 15px */

  /* Brand colors */
  --color-red: #e11d2a;
  --color-red-dark: #b3121e;
  --color-ink: #14141a;
  --color-ink-2: #23232b;
  --color-muted: #5f5f6b;
  --color-line: #ece5e2;
  --color-soft: #fff6f4;
  --color-soft-2: #ffe7e2;
  --color-cream: #fffaf8;
  --color-white: #ffffff;
  --color-success: #17b26a;
  --color-info: #246bfe;

  /* Radii */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(17, 17, 22, 0.06);
  --shadow-sm: 0 8px 20px rgba(17, 17, 22, 0.06);
  --shadow-md: 0 16px 32px rgba(17, 17, 22, 0.08);
  --shadow-lg: 0 24px 48px rgba(17, 17, 22, 0.12);
  --shadow-red: 0 14px 32px rgba(225, 29, 42, 0.16);

  /* Motion */
  --transition-fast: 160ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 320ms ease;

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 20;
  --z-sticky: 50;
  --z-overlay: 100;
  --z-modal: 200;

  /* Legacy aliases used by styles.css */
  --red: var(--color-red);
  --red-dark: var(--color-red-dark);
  --ink: var(--color-ink);
  --ink-2: var(--color-ink-2);
  --muted: var(--color-muted);
  --line: var(--color-line);
  --soft: var(--color-soft);
  --soft-2: var(--color-soft-2);
  --cream: var(--color-cream);
  --white: var(--color-white);
  --green: var(--color-success);
  --blue: var(--color-info);
  --shadow: var(--shadow-md);
  --shadow-soft: var(--shadow-red);
  --radius: var(--radius-md);
  --container: var(--content-width);
  --section: var(--section-y);
  --font: var(--font-body);
}

/* Base typography */
html {
  font-size: var(--font-size-body);
}

body {
  font-family: var(--font-body) !important;
  font-size: var(--font-size-body) !important;
  line-height: var(--line-height-body) !important;
  color: var(--color-ink) !important;
}

p,
li,
input,
select,
textarea,
button {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

small,
.caption,
figcaption,
.footer-bottom,
.badge,
.stat-card span,
.price-card span,
.service-card small,
.stage-card small,
.process-card small,
.platform-card small,
.audit-card small {
  font-size: var(--font-size-caption) !important;
  line-height: 1.4 !important;
}

.topbar,
.nav-links,
.footer-links,
.eyebrow,
.filter-pill,
.tab-btn,
.btn-small,
.helper-text {
  font-size: var(--font-size-small) !important;
}

h1,
.h1 {
  font-size: clamp(var(--font-size-h1-min), 5vw, var(--font-size-h1-max)) !important;
  line-height: var(--line-height-heading-tight) !important;
  letter-spacing: 0 !important;
  margin-top: var(--space-16) !important;
  margin-bottom: var(--space-24) !important;
  text-wrap: balance;
}

h2,
.h2 {
  font-size: var(--font-size-h2) !important;
  line-height: var(--line-height-heading) !important;
  letter-spacing: 0 !important;
  margin-bottom: var(--space-16) !important;
  text-wrap: balance;
}

h3,
.h3 {
  font-size: var(--font-size-h3) !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
}

h4,
.h4 { font-size: var(--font-size-h4) !important; line-height: 1.25 !important; }
h5,
.h5 { font-size: var(--font-size-h5) !important; line-height: 1.3 !important; }
h6,
.h6 { font-size: var(--font-size-h6) !important; line-height: 1.3 !important; }

.lede,
.social-lede,
.hero-copy p,
.section-head p,
.ppc-section-head p,
.social-section-head p {
  font-size: var(--font-size-body) !important;
  line-height: var(--line-height-body) !important;
}

/* Containers and section rhythm */
.site-header .navbar,
.home-page .home-header .navbar,
body > .topbar > .container,
body main > section > .container,
body main > .container,
body footer > .container,
body .site-footer > .container,
body .home-footer > .container,
body .page-hero > .container,
body .hero > .container,
body main.social-media-page > section > .container,
body main.social-media-page .social-hero-v2 > .container,
body main.social-media-page .social-proof-bar-v2 > .container,
body main.social-media-page .social-section > .container,
body[class] main > section > .container,
body[class] main > .container,
body[class] footer > .container,
body[class] .site-footer > .container,
body[class] .home-footer > .container,
body[class] .page-hero > .container,
body[class] .hero > .container,
body[class] .social-hero-v2 > .container,
body[class] .social-proof-bar-v2 > .container,
body[class] .social-section > .container {
  width: min(100% - var(--space-32), var(--container)) !important;
  max-width: var(--container) !important;
  margin-inline: auto !important;
}

body[class] main,
body[class] footer {
  overflow-x: clip;
}

.section,
.social-media-page .social-section {
  padding-top: var(--section) !important;
  padding-bottom: var(--section) !important;
}

.section-tight {
  padding: clamp(var(--space-48), 6vw, var(--space-80)) 0 !important;
}

.page-hero {
  padding: clamp(var(--space-64), 9vw, var(--space-96)) 0 var(--space-64) !important;
}

.grid-2,
.grid-3,
.grid-4,
.form-grid,
.why-grid,
.pricing-grid,
.timeline,
.ppc-faq-layout,
.wd-stat-grid,
.home-page .process-grid,
.home-page .stage-grid,
.home-page .industry-showcase {
  gap: var(--space-16) !important;
}

.split,
.contact-grid,
.faq-layout,
.footer-main,
.quality-grid,
.ppc-contact-grid {
  gap: var(--space-32) !important;
}

/* Buttons */
.btn,
.social-btn,
.ppc-arrow-btn,
.wd-arrow-btn,
.wd-outline-btn,
.ppc-outline-btn,
.ppc-page .btn,
.web-design-page .btn {
  min-height: 48px !important;
  padding: 0 var(--space-24) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--space-8) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast) !important;
}

.btn-small,
.btn.btn-small {
  min-height: 40px !important;
  padding: 0 var(--space-16) !important;
  font-size: var(--font-size-small) !important;
}

.btn-large,
.btn.btn-large {
  min-height: 56px !important;
  padding: 0 var(--space-32) !important;
}

.btn-row,
.ppc-actions,
.wd-actions,
.nav-actions,
.social-actions-v2 {
  gap: var(--space-16) !important;
}

.btn-primary {
  box-shadow: var(--shadow-red) !important;
}

.btn:hover,
.btn:focus-visible,
.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-1px);
}

/* Cards and panels */
.service-card,
.stage-card,
.process-card,
.reason-card,
.price-card,
.audit-card,
.platform-card,
.industry-card,
.case-card,
.office-card,
.contact-form,
.table-card,
.testimonial,
.testimonial-card,
.stat-card,
.brand-card,
.media-card,
.home-blog-card,
.social-platform-grid article,
.social-result-cards article,
.social-paid-cards article,
.social-roadmap-card,
.ppc-proof-cards article,
.ppc-service-grid article,
.ppc-stat-card,
.ppc-hero-card,
.wd-stat-grid article,
.wd-red-card,
.wd-service-cards article,
.wd-redesign-panel,
.seo-check-panel,
.seo-page .outsource-grid article,
.seo-page .differentiator-grid article,
.seo-page .testimonial-row figure {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
}

.service-card,
.stage-card,
.process-card,
.reason-card,
.price-card,
.audit-card,
.platform-card,
.industry-body,
.ppc-proof-cards article,
.ppc-stat-card,
.timeline-item {
  padding: var(--space-24) !important;
}

.office-card,
.contact-form,
.feature-panel,
.case-card,
.seo-check-panel,
.ppc-form,
.audit-page .audit-visual {
  padding: clamp(var(--space-24), 4vw, var(--space-40)) !important;
}

.feature-panel,
.case-card,
.ppc-contact-grid,
.wd-hero-proof {
  gap: var(--space-24) !important;
}

.card-icon,
.wd-service-cards article > i,
.wd-red-card small,
.wd-red-card i,
.ppc-service-grid .ppc-icon,
.footer h4,
.home-page .stage-card .eyebrow {
  margin-bottom: var(--space-16) !important;
}

/* Forms */
label {
  gap: var(--space-8) !important;
}

input,
select,
textarea {
  min-height: 48px !important;
  padding: var(--space-12) var(--space-16) !important;
  border-radius: var(--radius-md) !important;
  font-size: var(--font-size-body) !important;
  line-height: var(--line-height-body) !important;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast) !important;
}

textarea {
  min-height: 128px !important;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 var(--space-4) rgba(255, 31, 31, 0.12) !important;
}

.helper-text,
.validation-message {
  margin-top: var(--space-4) !important;
  font-size: var(--font-size-caption) !important;
}

/* Pills, tabs, badges */
.eyebrow,
.badge,
.tab-btn,
.filter-pill,
.ppc-pill,
.ppc-interest span,
.social-media-page .keyword-pills span,
.stacked-pills span,
.home-page .home-footer .footer-tags a,
.home-page .home-footer .partner-row span {
  border-radius: var(--radius-pill) !important;
}

.eyebrow {
  padding: var(--space-8) var(--space-12) !important;
  gap: var(--space-8) !important;
}

.eyebrow::before {
  width: var(--space-8) !important;
  height: var(--space-8) !important;
}

.badge {
  padding: var(--space-4) var(--space-12) !important;
}

.service-tabs,
.case-tabs,
.filter-pills,
.footer-links,
.social-row,
.partner-row,
.logo-strip,
.home-page .home-brand-grid,
.wd-carousel-dots,
.wd-carousel-arrows,
.wd-copy-stack,
.wd-icon-list,
.home-page .designer-hero .hero-panel,
.home-page .consent,
.social-media-page .keyword-pills {
  gap: var(--space-8) !important;
}

.service-tabs,
.case-tabs,
.filter-pills {
  margin: var(--space-32) 0 var(--space-40) !important;
}

.tab-btn,
.filter-pill,
.ppc-interest span,
.social-media-page .keyword-pills span {
  padding: var(--space-8) var(--space-16) !important;
}

/* Navigation and footer */
.navbar {
  min-height: var(--space-80) !important;
  z-index: var(--z-sticky);
}

.topbar-inner {
  min-height: var(--space-40) !important;
}

.nav-links {
  gap: var(--space-24) !important;
}

.icon-btn,
.wd-carousel-arrows button,
.home-page .home-footer .social-row a {
  width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
}

.footer,
.home-footer {
  padding: var(--space-80) 0 var(--space-32) !important;
}

.footer-tags {
  gap: var(--space-8) !important;
  margin: var(--space-40) 0 var(--space-24) !important;
  padding-top: var(--space-32) !important;
}

.footer-bottom {
  gap: var(--space-16) !important;
  padding-top: var(--space-24) !important;
}

/* Shared component rhythm */
.faq-layout,
.contact-grid,
.brand-grid,
.stats-row {
  margin-top: var(--space-32) !important;
}

.faq-item {
  margin-bottom: var(--space-12) !important;
}

.faq-question {
  min-height: 56px !important;
  padding: var(--space-16) var(--space-20) !important;
}

.faq-question span:last-child {
  width: var(--space-24) !important;
  height: var(--space-24) !important;
}

.faq-answer,
.ppc-page .ppc-faq .faq-answer {
  padding: 0 var(--space-20) var(--space-20) !important;
}

.hero-stats,
.logo-strip {
  gap: var(--space-12) !important;
  margin-top: var(--space-32) !important;
}

.stat-card {
  padding: var(--space-20) !important;
}

.stat-card span {
  margin-top: var(--space-8) !important;
}

.check-list {
  gap: var(--space-16) !important;
}

.check-list li {
  gap: var(--space-12) !important;
}

.check-list li::before {
  width: var(--space-16) !important;
  height: var(--space-16) !important;
}

.dashboard-bars,
.mini-metrics {
  gap: var(--space-16) !important;
  margin-top: var(--space-24) !important;
}

.process-grid {
  gap: var(--space-24) var(--space-64) !important;
  margin-top: var(--space-48) !important;
}

.process-grid::before {
  top: var(--space-40) !important;
  bottom: var(--space-40) !important;
}

/* Page-specific consistency hooks */
.home-page .designer-hero {
  padding: var(--space-40) 0 var(--space-48) !important;
}

.home-page .designer-hero h1 {
  margin: var(--space-12) auto !important;
}

.home-page .designer-hero .lede {
  margin: 0 auto var(--space-20) !important;
}

.home-page .home-brand-grid {
  margin-top: var(--space-24) !important;
}

.home-page .home-brand-grid .brand-card {
  min-height: var(--space-64) !important;
}

.home-page .brand-note,
.home-page .partner-row,
.home-page .services-section .feature-panel .btn,
.home-page .case-section .case-tabs,
.ppc-final-notes,
.score {
  margin-top: var(--space-32) !important;
}

/* Global section spacing — all pages, desktop */
.section,
.section-tight,
.home-page section.section,
.home-page section.section-tight,
.home-page .services-section,
.home-page .quality-section,
.home-page .faq-section,
.home-page .contact-section,
.web-design-page .section,
.wd-hero,
.seo-page .section,
.seo-page .section-tight,
.ppc-page .section {
  padding-top: clamp(32px, 4vw, 52px) !important;
  padding-bottom: clamp(32px, 4vw, 52px) !important;
}

.home-page .section-head,
.ppc-section-head,
.social-section-head {
  margin-bottom: var(--space-40) !important;
}

.home-page .split-head {
  gap: var(--space-80) !important;
}

.home-page .section-foot,
.home-page .promise-box,
.home-page .small-heading,
.wd-actions,
.ppc-audit-grid p,
.testimonial {
  margin-top: var(--space-24) !important;
}

.home-page .promise-box,
.home-page .faq-cta {
  padding: var(--space-20) !important;
}

.home-page .quality-list li {
  gap: var(--space-8) var(--space-16) !important;
  padding: var(--space-16) 0 !important;
}

.home-page .stage-card small {
  margin-top: var(--space-20) !important;
  padding: var(--space-12) !important;
}

.home-page .final-cta,
.seo-page .seo-final-cta,
.ppc-final-cta {
  padding-top: var(--space-80) !important;
  padding-bottom: var(--space-80) !important;
}

.home-page .contact-strip,
.ppc-negative-stat,
.ppc-final-cta .btn {
  margin-top: var(--space-40) !important;
}

.seo-page .page-hero {
  padding: var(--space-64) 0 var(--space-48) !important;
}

.seo-page .page-hero h1::after {
  width: var(--space-64) !important;
  margin-top: var(--space-16) !important;
}

.seo-page .seo-hero .hero-copy .lede,
.ppc-hero-copy > p,
.ppc-section-head p,
.ppc-negative-stat h3,
.ppc-hero-card > strong,
.ppc-audit-grid p,
.wd-carousel-ui,
.wd-section-copy > small,
.wd-service-cards a,
.wd-red-card h3,
.wd-red-card b,
.wd-dark-carousel .wd-red-card i {
  margin-top: var(--space-16) !important;
}

.seo-page .seo-hero .btn-row,
.ppc-actions,
.ppc-pill,
.ppc-hero-card > strong {
  margin-top: var(--space-20) !important;
}

.seo-page .two-column-list,
.ppc-partner-line,
.ppc-form > p,
.ppc-testimonial-grid figcaption,
.ppc-negative-stat,
.wd-icon-list {
  margin-top: var(--space-24) !important;
}

.seo-page .mini-list span,
.seo-page .two-column-list span {
  gap: var(--space-12) !important;
  padding: var(--space-12) var(--space-16) !important;
}

.seo-page .timeline-item::before,
.wd-carousel-arrows button {
  width: var(--space-40) !important;
  height: var(--space-40) !important;
}

.ppc-page .section-tight {
  padding: var(--space-48) 0 !important;
}

.ppc-hero {
  padding: var(--space-40) 0 !important;
}

.ppc-kicker::after {
  width: var(--space-64) !important;
  margin-left: var(--space-24) !important;
}

.ppc-pill {
  padding: var(--space-8) var(--space-16) var(--space-8) var(--space-8) !important;
  margin-bottom: var(--space-20) !important;
}

.ppc-live-row {
  margin-top: var(--space-12) !important;
  padding: var(--space-12) var(--space-16) !important;
}

.ppc-process-grid {
  margin-top: var(--space-48) !important;
}

.ppc-process-grid::before {
  top: var(--space-32) !important;
}

.ppc-process-grid span {
  width: var(--space-64) !important;
  height: var(--space-64) !important;
  margin-bottom: var(--space-40) !important;
}

.ppc-score-card strong {
  margin: var(--space-40) 0 var(--space-16) !important;
}

.wd-hero-proof {
  gap: var(--space-32) !important;
}

.wd-stat-grid article {
  min-height: 96px !important;
  padding: var(--space-16) var(--space-20) !important;
  gap: var(--space-8) !important;
}

.wd-icon-list li {
  gap: var(--space-16) !important;
  padding: var(--space-8) var(--space-12) !important;
}

.wd-red-card b {
  padding: var(--space-8) var(--space-20) !important;
}

/* Utility classes replacing inline layout styles */
.u-justify-start {
  justify-content: flex-start !important;
}

.btn-row-start {
  justify-content: flex-start !important;
}

.u-mt-24 {
  margin-top: var(--space-24) !important;
}

.ds-mt-24 {
  margin-top: var(--space-24) !important;
}

/* Responsive guardrails */
@media (max-width: 900px) {
  .site-header .navbar,
  .home-page .home-header .navbar,
  body > .topbar > .container,
  body main > section > .container,
  body main > .container,
  body footer > .container,
  body .site-footer > .container,
  body .home-footer > .container,
  body .page-hero > .container,
  body .hero > .container,
  body main.social-media-page > section > .container,
  body main.social-media-page .social-hero-v2 > .container,
  body main.social-media-page .social-proof-bar-v2 > .container,
  body main.social-media-page .social-section > .container,
  body[class] main > section > .container,
  body[class] main > .container,
  body[class] footer > .container,
  body[class] .site-footer > .container,
  body[class] .home-footer > .container,
  body[class] .page-hero > .container,
  body[class] .hero > .container,
  body[class] .social-hero-v2 > .container,
  body[class] .social-proof-bar-v2 > .container,
  body[class] .social-section > .container {
    width: min(100% - var(--space-24), var(--container)) !important;
  }

  h2,
  .h2 {
    font-size: 32px !important;
  }

  h3,
  .h3 {
    font-size: 24px !important;
  }

  .section,
  .social-media-page .social-section,
  .home-page .services-section,
  .home-page .quality-section,
  .home-page .faq-section,
  .home-page .contact-section,
  .web-design-page .section,
  .wd-hero,
  .seo-page .section,
  .seo-page .section-tight,
  .ppc-page .section {
    padding-top: var(--space-48) !important;
    padding-bottom: var(--space-48) !important;
  }

  .home-page .services-section .service-tabs {
    gap: var(--space-8) !important;
    margin: var(--space-32) 0 var(--space-24) !important;
  }
}

@media (max-width: 560px) {
  .site-header .navbar,
  .home-page .home-header .navbar,
  body > .topbar > .container,
  body main > section > .container,
  body main > .container,
  body footer > .container,
  body .site-footer > .container,
  body .home-footer > .container,
  body .page-hero > .container,
  body .hero > .container,
  body main.social-media-page > section > .container,
  body main.social-media-page .social-hero-v2 > .container,
  body main.social-media-page .social-proof-bar-v2 > .container,
  body main.social-media-page .social-section > .container,
  body[class] main > section > .container,
  body[class] main > .container,
  body[class] footer > .container,
  body[class] .site-footer > .container,
  body[class] .home-footer > .container,
  body[class] .page-hero > .container,
  body[class] .hero > .container,
  body[class] .social-hero-v2 > .container,
  body[class] .social-proof-bar-v2 > .container,
  body[class] .social-section > .container {
    width: min(100% - var(--space-24), var(--container)) !important;
  }

  h1,
  .h1 {
    font-size: 48px !important;
  }

  .btn-row,
  .ppc-actions,
  .wd-actions,
  .social-actions-v2 {
    gap: var(--space-12) !important;
  }
}

/* Final system guardrails for legacy page-specific overrides. */
.site-header .nav-actions .btn.nav-cta,
.home-page .home-header .nav-actions .btn.nav-cta {
  min-height: 48px !important;
  height: auto !important;
  padding: 0 var(--space-24) !important;
}

.seo-page .page-hero h1,
.seo-page .seo-hero h1 {
  font-size: clamp(var(--font-size-h1-min), 5vw, var(--font-size-h1-max)) !important;
  line-height: 1.1 !important;
}

@media (max-width: 560px) {
  .site-header .nav-actions .btn.nav-cta,
  .home-page .home-header .nav-actions .btn.nav-cta {
    min-height: 40px !important;
    padding: 0 var(--space-16) !important;
  }
}

@media (max-width: 400px) {
  .home-page .stage-grid,
  .home-page .process-grid,
  .home-page .why-grid {
    gap: var(--space-8) !important;
  }

  .home-page .stage-card,
  .home-page .process-card,
  .home-page .reason-card {
    padding: var(--space-16) !important;
  }
}

/* =====================================================================
   Homepage: Clients section — subtle warm background
   ===================================================================== */
.home-page .clients-section {
  background: #f5f3f1 !important;
}

/* =====================================================================
   Homepage: Services feature panel — image + metric tile + pills
   ===================================================================== */

/* Vertically center the visual column */
.home-page .service-visual {
  align-self: center !important;
  min-height: 308px !important;
}

/* Image fills the full service-visual so the metric tile can overlap it */
.home-page .person-visual {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 18px !important;
  bottom: 0 !important;
}

/* Metric tile sits on the image's top-left corner */
.home-page .service-visual .metric-tile {
  top: 16px !important;
  left: 16px !important;
  z-index: 3 !important;
}

/* Stacked pills: unified panel container instead of individual buttons */
.home-page .services-section .stacked-pills {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 14px !important;
  padding: 6px !important;
  gap: 0 !important;
  align-content: start !important;
  align-self: center !important;
}

.home-page .services-section .stacked-pills span {
  display: block !important;
  min-height: auto !important;
  border-radius: 8px !important;
  background: transparent !important;
  padding: 10px 14px !important;
  text-align: left !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  place-items: unset !important;
}

.home-page .services-section .stacked-pills span:last-child {
  border-bottom: none !important;
}

/* Hide stacked pills on mobile (feature-panel is single-column at ≤900px) */
@media (max-width: 900px) {
  .home-page .services-section .stacked-pills {
    display: none !important;
  }
}

/* Small screen image tweaks */
@media (max-width: 460px) {
  .home-page .person-visual {
    border-radius: 12px !important;
  }

  .home-page .service-visual .metric-tile {
    top: 10px !important;
    left: 10px !important;
  }
}

/* =====================================================================
   Homepage: Service tabs — 2-per-row grid on mobile
   ===================================================================== */
@media (max-width: 900px) {
  .home-page .services-section .service-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    flex-wrap: unset !important;
    overflow-x: unset !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    padding-bottom: 0 !important;
    padding-inline: 0 !important;
    margin-inline: 0 !important;
  }

  .home-page .services-section .service-tabs .tab-btn {
    white-space: normal !important;
    flex-shrink: unset !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* =====================================================================
   Homepage: Why section — center-aligned heading + 2-line body text
   ===================================================================== */
.home-page .why-section .section-head.split-head {
  display: block !important;
  text-align: center !important;
  max-width: 100% !important;
}

.home-page .why-section .section-head.split-head > div {
  width: 100%;
  text-align: center;
}

.home-page .why-section .section-head.split-head > p {
  max-width: 660px !important;
  margin-inline: auto !important;
  margin-top: var(--space-16) !important;
}

.home-page .why-section .section-head h2 {
  margin-inline: auto !important;
}

/* =====================================================================
   Testimonial tracks — edge fade blur on all pages (desktop + mobile)
   ===================================================================== */
.testimonial-track {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 72px,
    #000 calc(100% - 72px),
    transparent 100%
  ) !important;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 72px,
    #000 calc(100% - 72px),
    transparent 100%
  ) !important;
}

.social-media-page .testimonial-grid,
.testimonial-grid {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 64px,
    #000 calc(100% - 64px),
    transparent 100%
  ) !important;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 64px,
    #000 calc(100% - 64px),
    transparent 100%
  ) !important;
}

/* =====================================================================
   Homepage: Blog section — center-aligned split-head, body in 2 lines
   ===================================================================== */
.home-page .home-blog-section .section-head.split-head {
  display: block !important;
  text-align: center !important;
}

.home-page .home-blog-section .section-head.split-head > p {
  max-width: 600px !important;
  margin-inline: auto !important;
  margin-top: var(--space-16) !important;
}

/* =====================================================================
   Homepage: Contact heading — line-height tightening only
   (font-size governed by global typography enforcement block below)
   ===================================================================== */
.home-page .contact-section h2 {
  line-height: 1.08 !important;
}

/* =====================================================================
   Forms — phone field (code select + number input) + captcha
   ===================================================================== */
.phone-field {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.phone-field select {
  flex: 0 0 150px;
  min-width: 0;
}
.phone-field input {
  flex: 1;
  min-width: 0;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(17, 17, 22, 0.04);
  border: 1px solid rgba(17, 17, 22, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
}
.captcha-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink, #111116);
  margin: 0;
  flex: 1;
  min-width: 180px;
}
.captcha-ans {
  width: 110px !important;
  flex-shrink: 0;
  margin: 0 !important;
}

/* =====================================================================
   Homepage: Brand grid — 2 columns on small mobile (override 1fr rule)
   ===================================================================== */
@media (max-width: 560px) {
  .home-page .home-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

/* =====================================================================
   Homepage: Industry stats bar — above the showcase grid
   ===================================================================== */
.home-page .industry-stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(17, 17, 22, 0.55);
  text-align: center;
  margin: 0 0 var(--space-32, 2rem) 0;
  letter-spacing: 0.01em;
}

.home-page .industry-stats-bar strong {
  color: var(--red, #ff1f1f) !important;
  font-weight: 700 !important;
}

.home-page .industry-stats-bar span {
  white-space: nowrap;
}

/* =====================================================================
   Quality section mobile — h2 in 3 lines, badge spacing fix
   ===================================================================== */
@media (max-width: 760px) {
  /* h2: reduce font so text fits in 3 natural lines (not 4 balance-forced) */
  .home-page .quality-copy h2 {
    font-size: clamp(1.6rem, 7.2vw, 2.9rem) !important;
    max-width: none !important;
    text-wrap: auto !important;
  }

  /* badge: remove auto margin so it sits directly under the description */
  .home-page .quality-list b {
    margin-top: 12px !important;
  }

  /* reduce card min-height so badge isn't pushed far down */
  .home-page .quality-list li {
    padding: 16px !important;
    min-height: 190px !important;
  }

  /* global section padding — override the 46px mobile rule in styles.css */
  .section,
  .section-tight,
  .home-page section.section,
  .home-page section.section-tight {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  /* section-head split-head: kill the 80px gap on mobile */
  .home-page .split-head {
    gap: 14px !important;
    row-gap: 14px !important;
  }

  /* industry stats bar: stack each stat vertically as pointers */
  .home-page .industry-stats-bar {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  /* testimonial track: remove side edge blur on mobile */
  .home-page .testimonial-track {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  /* final-cta contact strip: collapse 46px row-gap on mobile */
  .home-page .final-cta .contact-strip {
    margin-top: 28px !important;
    gap: 12px !important;
  }
}

/* =====================================================================
   SEO page: services-complete-head — center-aligned
   ===================================================================== */
.seo-page .services-complete-head {
  text-align: center !important;
  margin-inline: auto !important;
}

/* =====================================================================
   TYPOGRAPHY SYSTEM ENFORCEMENT
   Design-system scale enforced site-wide with page-level specificity
   (0-1-1) to beat all page-specific clamp() overrides in styles.css.

   Scale (user-defined):
     H1  : clamp(48px, 5vw, 64px)   desktop
     H2  : 40px                      desktop → 32px @ 900px → clamp(1.5rem,7vw,2rem) @ 560px
     H3  : 32px                      desktop → 24px @ 900px → clamp(1rem,5vw,1.3rem) @ 560px
     H4  : 24px
     Body: 16px / Small: 14px / Caption: 12px
   ===================================================================== */

/* All page classes — desktop baseline */
.home-page h1,
.seo-page h1,
.ppc-page h1,
.web-design-page h1,
.social-media-page h1,
.careers-page h1,
.case-studies-page h1,
.audit-page h1,
.finance-page h1 {
  font-size: clamp(var(--font-size-h1-min), 5vw, var(--font-size-h1-max)) !important;
  line-height: var(--line-height-heading-tight) !important;
}

.home-page h2,
.seo-page h2,
.ppc-page h2,
.web-design-page h2,
.social-media-page h2,
.careers-page h2,
.case-studies-page h2,
.audit-page h2,
.finance-page h2 {
  font-size: var(--font-size-h2) !important; /* 40px */
  line-height: var(--line-height-heading) !important;
}

.home-page h3,
.seo-page h3,
.ppc-page h3,
.web-design-page h3,
.social-media-page h3,
.careers-page h3,
.case-studies-page h3,
.audit-page h3,
.finance-page h3 {
  font-size: var(--font-size-h3) !important; /* 32px */
  line-height: 1.22 !important;
}

.home-page h4,
.seo-page h4,
.ppc-page h4,
.web-design-page h4,
.social-media-page h4,
.careers-page h4,
.case-studies-page h4,
.audit-page h4,
.finance-page h4 {
  font-size: var(--font-size-h4) !important; /* 24px */
  line-height: 1.25 !important;
}

/* Tablet (≤900px) */
@media (max-width: 900px) {
  .home-page h1,
  .seo-page h1,
  .ppc-page h1,
  .web-design-page h1,
  .social-media-page h1,
  .careers-page h1,
  .case-studies-page h1,
  .audit-page h1,
  .finance-page h1 {
    font-size: clamp(2rem, 7vw, 3rem) !important;
    line-height: 1.1 !important;
  }

  .home-page h2,
  .seo-page h2,
  .ppc-page h2,
  .web-design-page h2,
  .social-media-page h2,
  .careers-page h2,
  .case-studies-page h2,
  .audit-page h2,
  .finance-page h2 {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  .home-page h3,
  .seo-page h3,
  .ppc-page h3,
  .web-design-page h3,
  .social-media-page h3,
  .careers-page h3,
  .case-studies-page h3,
  .audit-page h3,
  .finance-page h3 {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }
}

/* Mobile (≤560px) */
@media (max-width: 560px) {
  .home-page h1,
  .seo-page h1,
  .ppc-page h1,
  .web-design-page h1,
  .social-media-page h1,
  .careers-page h1,
  .case-studies-page h1,
  .audit-page h1,
  .finance-page h1 {
    font-size: clamp(1.9rem, 9.5vw, 2.6rem) !important;
    line-height: 1.1 !important;
  }

  .home-page h2,
  .seo-page h2,
  .ppc-page h2,
  .web-design-page h2,
  .social-media-page h2,
  .careers-page h2,
  .case-studies-page h2,
  .audit-page h2,
  .finance-page h2 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
    line-height: 1.2 !important;
  }

  .home-page h3,
  .seo-page h3,
  .ppc-page h3,
  .web-design-page h3,
  .social-media-page h3,
  .careers-page h3,
  .case-studies-page h3,
  .audit-page h3,
  .finance-page h3 {
    font-size: clamp(1rem, 5vw, 1.3rem) !important;
    line-height: 1.3 !important;
  }
}

/* =====================================================================
   Site-wide visual QA pass
   Tightens section rhythm, text measure, card consistency, media fit,
   and button alignment across templates that still rely on bespoke markup.
   ===================================================================== */

.web-design-page main > section,
.careers-page main > section,
.case-studies-page main > section,
.audit-page main > section,
.finance-page main > section,
body:not([class]) main > section {
  padding-top: clamp(var(--space-40), 5vw, var(--space-72)) !important;
  padding-bottom: clamp(var(--space-40), 5vw, var(--space-72)) !important;
}

.wd-hero,
.ppc-hero,
.page-hero,
.seo-page .page-hero,
.web-design-page .page-hero,
.careers-page .page-hero,
.audit-page .page-hero,
body:not([class]) .page-hero {
  padding-top: clamp(var(--space-48), 7vw, var(--space-88)) !important;
  padding-bottom: clamp(var(--space-40), 5vw, var(--space-72)) !important;
}

.section-head,
.ppc-section-head,
.social-section-head,
.seo-section-copy,
.wd-section-copy,
.wd-center,
.services-complete-head,
.trusted-head,
.enterprise-intro,
.careers-hero-copy,
.careers-copy-stack,
.case-studies-page .center,
.audit-page .center,
body:not([class]) .center {
  max-width: 820px;
}

.section-head > p,
.ppc-section-head > p,
.social-section-head > p,
.seo-section-copy > p,
.wd-section-copy > p,
.wd-center > p,
.services-complete-head > p,
.trusted-desc,
.enterprise-intro > p,
.careers-hero-copy > p,
.careers-copy-stack > p,
.case-studies-page .center > p,
.audit-page .center > p,
body:not([class]) .center > p,
body:not([class]) .office-card > p,
body:not([class]) .contact-form > p {
  max-width: 68ch !important;
}

.section-head.split-head,
.home-page .split-head,
.trusted-head,
.wd-center,
.seo-section-copy,
.services-complete-head,
.enterprise-intro {
  margin-inline: auto !important;
}

.split,
.contact-grid,
.faq-layout,
.quality-grid,
.ppc-two-col,
.ppc-hero-grid,
.ppc-contact-grid,
.seo-company-grid,
.enterprise-columns,
.wd-hero-grid,
.wd-split,
.wd-services-grid,
.wd-speed-grid,
.wd-redesign-grid,
.wd-ecommerce-grid,
.wd-contact-grid,
.careers-hero-grid,
.careers-vision-grid {
  align-items: start !important;
  gap: clamp(var(--space-24), 4vw, var(--space-40)) !important;
}

.service-card,
.stage-card,
.process-card,
.reason-card,
.price-card,
.audit-card,
.platform-card,
.industry-card,
.industry-body,
.case-card,
.office-card,
.contact-form,
.table-card,
.testimonial,
.testimonial-card,
.stat-card,
.brand-card,
.media-card,
.home-blog-card,
.social-platform-grid article,
.social-result-cards article,
.social-paid-cards article,
.social-roadmap-card,
.ppc-proof-cards article,
.ppc-service-grid article,
.ppc-why-grid article,
.ppc-process-grid article,
.ppc-industry-cards article,
.ppc-testimonial-grid figure,
.ppc-stat-card,
.ppc-hero-card,
.wd-stat-grid article,
.wd-red-card,
.wd-service-cards article,
.wd-redesign-panel,
.wd-speed-stats article,
.wd-results-table article,
.wd-platform-box article,
.seo-check-panel,
.seo-page .outsource-grid article,
.seo-page .differentiator-grid article,
.seo-page .testimonial-row figure {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: var(--space-12) !important;
  height: 100% !important;
}

.service-card > :last-child,
.stage-card > :last-child,
.process-card > :last-child,
.reason-card > :last-child,
.price-card > :last-child,
.audit-card > :last-child,
.platform-card > :last-child,
.industry-body > :last-child,
.office-card > :last-child,
.contact-form > :last-child,
.home-blog-card > :last-child,
.ppc-proof-cards article > :last-child,
.ppc-service-grid article > :last-child,
.ppc-why-grid article > :last-child,
.ppc-process-grid article > :last-child,
.ppc-industry-cards article > :last-child,
.ppc-testimonial-grid figure > :last-child,
.wd-red-card > :last-child,
.wd-service-cards article > :last-child,
.wd-redesign-panel > :last-child,
.wd-results-table article > :last-child,
.seo-page .outsource-grid article > :last-child,
.seo-page .differentiator-grid article > :last-child {
  margin-bottom: 0 !important;
}

.service-card a:last-child,
.stage-card a:last-child,
.process-card a:last-child,
.reason-card a:last-child,
.price-card a:last-child,
.audit-card a:last-child,
.platform-card a:last-child,
.industry-body a:last-child,
.office-card a:last-child,
.home-blog-card a:last-child,
.ppc-proof-cards article a:last-child,
.ppc-service-grid article a:last-child,
.ppc-why-grid article a:last-child,
.ppc-process-grid article a:last-child,
.ppc-industry-cards article a:last-child,
.wd-red-card a:last-child,
.wd-service-cards article a:last-child,
.seo-page .outsource-grid article a:last-child,
.seo-page .differentiator-grid article a:last-child {
  margin-top: auto !important;
}

.brand-card,
.home-blog-card,
.industry-card,
.ppc-proof-cards article,
.ppc-service-grid article,
.ppc-why-grid article,
.ppc-industry-cards article,
.wd-red-card,
.wd-service-cards article,
.seo-page .outsource-grid article,
.seo-page .differentiator-grid article {
  min-height: 100% !important;
}

.hero-photo,
.hero-photo img,
.person-visual,
.person-visual img,
.industry-media,
.industry-media img,
.home-blog-media,
.home-blog-media img,
.careers-hero-media,
.careers-hero-media img,
.seo-company-image-visual,
.seo-company-image-visual img,
.testimonial-portrait,
.testimonial-portrait img,
.wd-mistakes figure,
.wd-mistakes figure img {
  width: 100% !important;
}

.hero-photo,
.industry-media,
.home-blog-media,
.careers-hero-media,
.seo-company-image-visual,
.testimonial-portrait,
.wd-mistakes figure,
.person-visual {
  overflow: hidden !important;
  border-radius: 18px !important;
}

.hero-photo,
.careers-hero-media,
.seo-company-image-visual,
.wd-mistakes figure,
.person-visual {
  aspect-ratio: 1 / 1 !important;
}

.industry-media,
.home-blog-media,
.testimonial-portrait {
  aspect-ratio: 4 / 3 !important;
}

.hero-photo img,
.person-visual img,
.industry-media img,
.home-blog-media img,
.careers-hero-media img,
.seo-company-image-visual img,
.testimonial-portrait img,
.wd-mistakes figure img {
  height: 100% !important;
  object-fit: cover !important;
}

.btn,
.social-btn,
.ppc-arrow-btn,
.wd-arrow-btn,
.wd-outline-btn,
.ppc-outline-btn,
.ppc-page .btn,
.web-design-page .btn {
  white-space: nowrap !important;
  text-align: center !important;
}

.btn-row,
.ppc-actions,
.wd-actions,
.nav-actions,
.social-actions-v2,
.section-foot,
.faq-cta,
.contact-strip {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start;
}

.center .btn-row,
.center .section-foot,
.center .faq-cta,
.final-cta .btn-row,
.final-cta .contact-strip,
.ppc-final-cta .btn-row {
  justify-content: center !important;
}

.seo-page .outsource-model-grid article,
.seo-page .apart-grid-new article,
.seo-page .why-list-detailed article,
.seo-page .testimonial-row-new figure,
.seo-page .seo-price-grid .price-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: var(--space-12) !important;
  height: 100% !important;
}

.seo-page .outsource-model-grid article > :last-child,
.seo-page .apart-grid-new article > :last-child,
.seo-page .why-list-detailed article > :last-child,
.seo-page .testimonial-row-new figure > :last-child,
.seo-page .seo-price-grid .price-card > :last-child {
  margin-bottom: 0 !important;
}

.seo-page .outsource-model-grid article a:last-child,
.seo-page .seo-price-grid .price-card .btn:last-child {
  margin-top: auto !important;
}

.seo-page .outsource-model-grid,
.seo-page .apart-grid-new,
.seo-page .testimonial-row-new,
.seo-page .seo-price-grid {
  align-items: stretch !important;
}

.seo-page .outsource-model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.seo-page .outsource-model-grid article,
.seo-page .apart-grid-new article,
.seo-page .testimonial-row-new figure,
.seo-page .seo-price-grid .price-card {
  min-width: 0 !important;
}

.seo-page .outsource-model-grid h3,
.seo-page .apart-grid-new h3,
.seo-page .seo-price-grid .price-card h3,
.seo-page .seo-price-grid .price-card h4 {
  overflow-wrap: anywhere;
}

.seo-page .testimonial-head p,
.seo-page .services-complete-head p,
.seo-page .seo-final-cta p,
.seo-page .seo-final-cta small {
  max-width: 74ch;
  margin-left: auto;
  margin-right: auto;
}

.seo-page .table-card {
  overflow: hidden !important;
}

.seo-page .data-table {
  width: 100% !important;
  table-layout: fixed !important;
}

.seo-page .data-table th,
.seo-page .data-table td {
  white-space: normal !important;
  overflow-wrap: anywhere;
  vertical-align: top;
}

/* SEO page: conservative rhythm reset */
.seo-page main > section.section,
.seo-page main > section.section-tight {
  padding-top: clamp(44px, 4.4vw, 72px) !important;
  padding-bottom: clamp(44px, 4.4vw, 72px) !important;
}

.seo-page .page-hero.seo-hero {
  min-height: auto !important;
  display: block !important;
  padding-top: clamp(12px, 1.5vw, 20px) !important;
  padding-bottom: clamp(20px, 2.5vw, 32px) !important;
}

.seo-page .hero-copy h1 {
  font-size: clamp(2.7rem, 4.2vw, 4.2rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.03em !important;
}

.seo-page .seo-section-copy h2,
.seo-page .services-complete-head h2,
.seo-page .trusted-head h2,
.seo-page .enterprise-intro h2,
.seo-page .testimonial-head h2,
.seo-page .faq-intro h2,
.seo-page .seo-results .center h2,
.seo-page .audit-copy h2,
.seo-page .seo-final-cta h2 {
  font-size: clamp(2rem, 2.7vw, 3rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

.seo-page .seo-service-item p,
.seo-page .process-card-grid p,
.seo-page .outsource-model-grid p,
.seo-page .apart-grid-new p,
.seo-page .why-list-detailed p,
.seo-page .enterprise-columns li,
.seo-page .faq-answer p,
.seo-page .case-study-body p {
  font-size: clamp(1rem, 1.03vw, 1.08rem) !important;
  line-height: 1.66 !important;
}

@media (max-width: 980px) {
  .seo-page .hero-copy h1 {
    font-size: clamp(1.75rem, 4.2vw, 3.2rem) !important;
  }

  .seo-page .seo-section-copy h2,
  .seo-page .services-complete-head h2,
  .seo-page .trusted-head h2,
  .seo-page .enterprise-intro h2,
  .seo-page .testimonial-head h2,
  .seo-page .faq-intro h2,
  .seo-page .seo-faq .faq-intro h2,
  .seo-page .seo-results .center h2,
  .seo-page .audit-copy h2,
  .seo-page .seo-final-cta h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem) !important;
  }
}

.brand-grid,
.home-brand-grid,
.process-grid,
.why-grid,
.home-blog-grid,
.ppc-proof-cards,
.ppc-card-grid,
.ppc-industry-cards,
.ppc-testimonial-grid,
.wd-local-grid,
.wd-speed-stats,
.wd-results-table,
.seo-service-grid,
.process-card-grid,
.outsource-model-grid {
  align-items: stretch !important;
}

.home-page .lede,
.page-hero .lede,
.wd-copy-stack,
.careers-copy-stack,
.contact-form,
.office-card,
.ppc-callout,
.hero-data-note,
.wd-proof-note {
  line-height: 1.68 !important;
}

.faq-question,
.ppc-process-foot,
.wd-note,
.wd-bottom-note,
.wd-results-note,
.outsource-footnote,
.brand-note {
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .btn,
  .social-btn,
  .ppc-arrow-btn,
  .wd-arrow-btn,
  .wd-outline-btn,
  .ppc-outline-btn,
  .ppc-page .btn,
  .web-design-page .btn {
    white-space: normal !important;
  }

  .ppc-hero-grid,
  .ppc-two-col,
  .ppc-contact-grid,
  .seo-company-grid,
  .enterprise-columns,
  .wd-hero-grid,
  .wd-split,
  .wd-services-grid,
  .wd-speed-grid,
  .wd-redesign-grid,
  .wd-ecommerce-grid,
  .wd-contact-grid,
  .careers-hero-grid,
  .careers-vision-grid,
  .contact-grid,
  .faq-layout,
  .quality-grid,
  .split {
    grid-template-columns: 1fr !important;
  }

  .hero-photo,
  .careers-hero-media,
  .seo-company-image-visual,
  .wd-mistakes figure,
  .person-visual {
    aspect-ratio: 16 / 11 !important;
  }
}

@media (max-width: 640px) {
  .btn-row > .btn,
  .ppc-actions > .btn,
  .wd-actions > .btn,
  .faq-cta > .btn,
  .section-foot > .btn,
  .contact-strip > .btn {
    width: 100% !important;
  }

  .btn-row,
  .ppc-actions,
  .wd-actions,
  .faq-cta,
  .section-foot,
  .contact-strip {
    justify-content: stretch !important;
  }

  .section-head,
  .ppc-section-head,
  .social-section-head,
  .seo-section-copy,
  .wd-section-copy,
  .wd-center,
  .services-complete-head,
  .trusted-head,
  .enterprise-intro,
  .careers-hero-copy,
  .careers-copy-stack,
  .case-studies-page .center,
  .audit-page .center,
  body:not([class]) .center {
    max-width: none !important;
  }
}

/* Second-pass hero polish for remaining template outliers. */
.home-page .designer-hero .hero-copy .btn-row {
  justify-content: center !important;
}

body:not([class]) .page-hero {
  padding-top: clamp(var(--space-40), 5vw, var(--space-72)) !important;
  padding-bottom: clamp(var(--space-28), 4vw, var(--space-48)) !important;
}

body:not([class]) .page-hero > .container.center {
  display: grid !important;
  justify-items: center !important;
  gap: var(--space-16) !important;
}

body:not([class]) .page-hero > .container.center .eyebrow,
body:not([class]) .page-hero > .container.center h1,
body:not([class]) .page-hero > .container.center .lede {
  margin: 0 !important;
}

body:not([class]) .page-hero > .container.center h1 {
  max-width: 12ch !important;
}

body:not([class]) .page-hero > .container.center .lede {
  max-width: 62ch !important;
}

body:not([class]) .section-tight .filter-pills {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  justify-content: center !important;
}

.case-hero-copy {
  max-width: 680px !important;
}

.case-hero-copy h1 {
  max-width: 12ch !important;
  text-wrap: balance !important;
}

.case-hero-copy .lede {
  max-width: 58ch !important;
}

@media (min-width: 901px) {
  .case-hero-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.8fr) !important;
  }
}

@media (max-width: 900px) {
  body:not([class]) .page-hero > .container.center h1,
  .case-hero-copy h1 {
    max-width: 14ch !important;
  }
}

/* =====================================================================
   Final responsive correction layer
   Applies industry-standard layout fundamentals across every page.
   ===================================================================== */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

img {
  height: auto;
}

main > section,
main > .section,
.page-hero,
.hero,
.social-section {
  scroll-margin-top: 96px;
}

.site-header .navbar,
.home-page .home-header .navbar,
body > .topbar > .container,
body main > section > .container,
body main > .container,
body footer > .container,
body .site-footer > .container,
body .home-footer > .container,
body .page-hero > .container,
body .hero > .container,
body[class] main > section > .container,
body[class] main > .container,
body[class] footer > .container,
body[class] .site-footer > .container,
body[class] .home-footer > .container,
body[class] .page-hero > .container,
body[class] .hero > .container {
  width: min(100% - clamp(32px, 5vw, 64px), 1180px) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

.section,
.section-tight,
.home-page section.section,
.home-page section.section-tight,
.home-page .services-section,
.home-page .quality-section,
.home-page .faq-section,
.home-page .contact-section,
.web-design-page .section,
.seo-page .section,
.seo-page .section-tight,
.ppc-page .section,
.social-media-page .social-section,
.careers-page main > section,
.case-studies-page main > section,
.audit-page main > section,
.finance-page main > section,
body:not([class]) main > section {
  padding-top: clamp(48px, 5vw, 78px) !important;
  padding-bottom: clamp(48px, 5vw, 78px) !important;
}

.page-hero,
.hero,
.wd-hero,
.ppc-hero,
.seo-page .page-hero,
.web-design-page .page-hero,
.careers-page .page-hero,
.audit-page .page-hero,
body:not([class]) .page-hero {
  min-height: auto !important;
  padding-top: clamp(52px, 6vw, 88px) !important;
  padding-bottom: clamp(44px, 5vw, 72px) !important;
}

h1,
.h1,
.home-page h1,
.seo-page h1,
.ppc-page h1,
.web-design-page h1,
.social-media-page h1,
.careers-page h1,
.case-studies-page h1,
.audit-page h1,
.finance-page h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.25rem) !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
  max-width: 14ch;
}

h2,
.h2,
.home-page h2,
.seo-page h2,
.ppc-page h2,
.web-design-page h2,
.social-media-page h2,
.careers-page h2,
.case-studies-page h2,
.audit-page h2,
.finance-page h2 {
  font-size: clamp(1.9rem, 3vw, 3rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

h3,
.h3,
.home-page h3,
.seo-page h3,
.ppc-page h3,
.web-design-page h3,
.social-media-page h3,
.careers-page h3,
.case-studies-page h3,
.audit-page h3,
.finance-page h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.75rem) !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
}

p,
li,
.lede,
.hero-copy p,
.section-head p,
.ppc-section-head p,
.social-section-head p,
.seo-page .hero-copy .lede,
.seo-page .trusted-desc,
.seo-page .seo-service-item p,
.seo-page .enterprise-columns li {
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.075rem) !important;
  line-height: 1.65 !important;
}

.section-head,
.ppc-section-head,
.social-section-head,
.seo-section-copy,
.wd-section-copy,
.wd-center,
.services-complete-head,
.trusted-head,
.enterprise-intro,
.testimonial-head,
.faq-intro,
.audit-copy,
.case-studies-page .center,
.audit-page .center,
body:not([class]) .center {
  max-width: 860px !important;
  margin-inline: auto !important;
  margin-bottom: clamp(24px, 3vw, 40px) !important;
}

.section-head > p,
.ppc-section-head > p,
.social-section-head > p,
.seo-section-copy > p,
.wd-section-copy > p,
.wd-center > p,
.services-complete-head > p,
.trusted-desc,
.enterprise-intro > p,
.testimonial-head > p,
.faq-intro > p,
.audit-copy > p,
.case-studies-page .center > p,
.audit-page .center > p,
body:not([class]) .center > p {
  max-width: 68ch !important;
}

.grid-2,
.grid-3,
.grid-4,
.brand-grid,
.home-brand-grid,
.process-grid,
.why-grid,
.home-blog-grid,
.pricing-grid,
.seo-service-grid,
.process-card-grid,
.outsource-model-grid,
.apart-grid-new,
.seo-price-grid,
.testimonial-row-new,
.ppc-proof-cards,
.ppc-card-grid,
.ppc-industry-cards,
.ppc-testimonial-grid,
.wd-local-grid,
.wd-speed-stats {
  display: grid !important;
  gap: clamp(18px, 2vw, 28px) !important;
  align-items: stretch !important;
}
/* wd-results-table: vertical table stack — each article = one full-width row */
.wd-results-table {
  display: block !important;
  overflow: hidden !important;
  max-width: 980px !important;
  margin-inline: auto !important;
  border-radius: var(--radius-md) !important;
}

.grid-2,
.split,
.contact-grid,
.faq-layout,
.quality-grid,
.ppc-two-col,
.ppc-contact-grid,
.seo-company-grid,
.enterprise-columns,
.wd-split,
.wd-redesign-grid,
.wd-ecommerce-grid,
.wd-contact-grid,
.careers-hero-grid,
.careers-vision-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.grid-3,
.home-blog-grid,
.pricing-grid,
.process-card-grid,
.outsource-model-grid,
.apart-grid-new,
.seo-price-grid,
.testimonial-row-new,
.ppc-proof-cards,
.ppc-industry-cards,
.wd-local-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
/* wd-speed-stats: 2×2 grid (4 stats) — 2-col keeps them balanced */
.wd-speed-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.grid-4,
.why-grid,
.ppc-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.brand-grid,
.home-brand-grid,
.seo-brand-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

.seo-service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.service-card,
.stage-card,
.process-card,
.reason-card,
.price-card,
.audit-card,
.platform-card,
.industry-card,
.case-card,
.office-card,
.contact-form,
.table-card,
.testimonial,
.testimonial-card,
.stat-card,
.brand-card,
.media-card,
.home-blog-card,
.seo-service-item,
.seo-service-outsource,
.enterprise-columns article,
.ppc-proof-cards article,
.ppc-service-grid article,
.ppc-why-grid article,
.ppc-process-grid article,
.ppc-industry-cards article,
.wd-red-card,
.wd-service-cards article,
.wd-redesign-panel,
.wd-speed-stats article {
  min-width: 0 !important;
  border-radius: var(--radius-md) !important;
}
/* wd-results-table article = table row, not a card — no border-radius */
.wd-results-table article {
  min-width: 0 !important;
}

.service-card,
.stage-card,
.process-card,
.reason-card,
.price-card,
.audit-card,
.platform-card,
.industry-card,
.office-card,
.contact-form,
.table-card,
.testimonial-card,
.stat-card,
.brand-card,
.home-blog-card,
.seo-service-item,
.seo-service-outsource,
.enterprise-columns article,
.ppc-proof-cards article,
.ppc-service-grid article,
.ppc-why-grid article,
.ppc-process-grid article,
.ppc-industry-cards article,
.wd-red-card,
.wd-service-cards article,
.wd-redesign-panel,
.wd-speed-stats article {
  padding: clamp(20px, 2.4vw, 32px) !important;
}
/* Results-table rows keep compact row padding */
.wd-results-table article {
  padding: 13px 22px !important;
}

.brand-card,
.logo-brand {
  min-height: 84px !important;
  padding: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.brand-card img,
.logo-brand img {
  max-width: 150px !important;
  max-height: 42px !important;
  object-fit: contain !important;
}

.media-card,
.hero-photo,
.industry-media,
.home-blog-media,
.careers-hero-media,
.seo-company-image-visual,
.testimonial-portrait,
.wd-mistakes figure,
.person-visual {
  overflow: hidden !important;
  border-radius: var(--radius-md) !important;
}

.media-card img,
.hero-photo img,
.industry-media img,
.home-blog-media img,
.careers-hero-media img,
.seo-company-image-visual img,
.testimonial-portrait img,
.wd-mistakes figure img,
.person-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.table-card,
.rank-table,
.data-table {
  max-width: 100% !important;
}

.table-card,
.rank-table {
  overflow-x: auto !important;
}

.data-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.data-table th,
.data-table td,
.rank-row span,
.rank-row strong {
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

.btn,
.social-btn,
.ppc-arrow-btn,
.wd-arrow-btn,
.wd-outline-btn,
.ppc-outline-btn,
.ppc-page .btn,
.web-design-page .btn {
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 46px !important;
  padding-inline: clamp(18px, 2vw, 28px) !important;
  white-space: normal !important;
}

.btn-row,
.ppc-actions,
.wd-actions,
.nav-actions,
.social-actions-v2,
.section-foot,
.faq-cta,
.contact-strip {
  gap: 12px !important;
}

.seo-page .page-hero.seo-hero .split {
  align-items: center !important;
}

.seo-page .hero-copy h1 {
  max-width: 12.5ch !important;
}

/* Remove ch constraint when layout stacks (single-column tablet/mobile) */
@media (max-width: 1100px) {
  .seo-page .hero-copy h1 {
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .seo-page .hero-copy h1 {
    font-size: clamp(1.6rem, 7.5vw, 1.95rem) !important;
  }
}

@media (max-width: 390px) {
  .seo-page .hero-copy h1 {
    font-size: clamp(1.45rem, 7.5vw, 1.75rem) !important;
  }
}

.seo-page .hero-copy .lede {
  max-width: 66ch !important;
}

.seo-page .hero-stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.seo-page .trusted-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: clamp(24px, 4vw, 48px) !important;
  max-width: none !important;
}

.seo-page .trusted-desc {
  margin: 0 0 clamp(28px, 3vw, 40px) !important;
}

.seo-page .services-complete-head,
.seo-page .enterprise-intro {
  text-align: center !important;
}

.seo-page .seo-services-complete {
  overflow: hidden !important;
}

.seo-page .enterprise-intro h2 {
  max-width: 22ch !important;
  margin-inline: auto !important;
}

@media (max-width: 1100px) {
  .grid-4,
  .why-grid,
  .ppc-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .grid-3,
  .home-blog-grid,
  .pricing-grid,
  .process-card-grid,
  .outsource-model-grid,
  .apart-grid-new,
  .seo-price-grid,
  .testimonial-row-new,
  .ppc-proof-cards,
  .ppc-industry-cards,
  .wd-local-grid,
  .wd-speed-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .site-header .navbar,
  .home-page .home-header .navbar,
  body > .topbar > .container,
  body main > section > .container,
  body main > .container,
  body footer > .container,
  body .site-footer > .container,
  body .home-footer > .container,
  body .page-hero > .container,
  body .hero > .container,
  body[class] main > section > .container,
  body[class] main > .container,
  body[class] footer > .container,
  body[class] .site-footer > .container,
  body[class] .home-footer > .container,
  body[class] .page-hero > .container,
  body[class] .hero > .container {
    width: min(100% - 32px, 720px) !important;
  }

  .section,
  .section-tight,
  .home-page section.section,
  .home-page section.section-tight,
  .web-design-page .section,
  .seo-page .section,
  .seo-page .section-tight,
  .ppc-page .section,
  .social-media-page .social-section,
  .careers-page main > section,
  .case-studies-page main > section,
  .audit-page main > section,
  .finance-page main > section,
  body:not([class]) main > section {
    padding-top: clamp(40px, 6vw, 56px) !important;
    padding-bottom: clamp(40px, 6vw, 56px) !important;
  }

  .page-hero,
  .hero,
  .wd-hero,
  .ppc-hero,
  .seo-page .page-hero,
  .web-design-page .page-hero,
  .careers-page .page-hero,
  .audit-page .page-hero,
  body:not([class]) .page-hero {
    padding-top: clamp(40px, 7vw, 60px) !important;
    padding-bottom: clamp(36px, 6vw, 52px) !important;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .split,
  .contact-grid,
  .faq-layout,
  .quality-grid,
  .ppc-two-col,
  .ppc-contact-grid,
  .seo-company-grid,
  .enterprise-columns,
  .wd-split,
  .wd-redesign-grid,
  .wd-ecommerce-grid,
  .wd-contact-grid,
  .careers-hero-grid,
  .careers-vision-grid,
  .home-blog-grid,
  .pricing-grid,
  .process-card-grid,
  .outsource-model-grid,
  .apart-grid-new,
  .seo-price-grid,
  .testimonial-row-new,
  .ppc-proof-cards,
  .ppc-card-grid,
  .ppc-industry-cards,
  .wd-local-grid,
  .wd-speed-stats,
  .seo-service-grid,
  .seo-page .trusted-head {
    grid-template-columns: 1fr !important;
  }

  h1,
  .h1,
  .home-page h1,
  .seo-page h1,
  .ppc-page h1,
  .web-design-page h1,
  .social-media-page h1,
  .careers-page h1,
  .case-studies-page h1,
  .audit-page h1,
  .finance-page h1 {
    font-size: clamp(2.1rem, 7vw, 3rem) !important;
    max-width: 16ch !important;
  }

  h2,
  .h2,
  .home-page h2,
  .seo-page h2,
  .ppc-page h2,
  .web-design-page h2,
  .social-media-page h2,
  .careers-page h2,
  .case-studies-page h2,
  .audit-page h2,
  .finance-page h2 {
    font-size: clamp(1.7rem, 5vw, 2.35rem) !important;
  }

  .seo-page .services-complete-head,
  .seo-page .enterprise-intro {
    text-align: left !important;
  }

  .seo-page .enterprise-intro h2 {
    max-width: 100% !important;
    margin-inline: 0 !important;
  }
}

@media (max-width: 640px) {
  .site-header .navbar,
  .home-page .home-header .navbar,
  body > .topbar > .container,
  body main > section > .container,
  body main > .container,
  body footer > .container,
  body .site-footer > .container,
  body .home-footer > .container,
  body .page-hero > .container,
  body .hero > .container,
  body[class] main > section > .container,
  body[class] main > .container,
  body[class] footer > .container,
  body[class] .site-footer > .container,
  body[class] .home-footer > .container,
  body[class] .page-hero > .container,
  body[class] .hero > .container {
    width: min(100% - 24px, 100%) !important;
  }

  .section,
  .section-tight,
  .home-page section.section,
  .home-page section.section-tight,
  .web-design-page .section,
  .seo-page .section,
  .seo-page .section-tight,
  .ppc-page .section,
  .social-media-page .social-section,
  .careers-page main > section,
  .case-studies-page main > section,
  .audit-page main > section,
  .finance-page main > section,
  body:not([class]) main > section {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  p,
  li,
  .lede,
  .hero-copy p,
  .section-head p,
  .ppc-section-head p,
  .social-section-head p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  .btn-row > .btn,
  .ppc-actions > .btn,
  .wd-actions > .btn,
  .faq-cta > .btn,
  .section-foot > .btn,
  .contact-strip > .btn {
    width: 100% !important;
  }

  .seo-page .hero-stats {
    grid-template-columns: 1fr !important;
  }

  .brand-card,
  .logo-brand {
    min-height: 76px !important;
  }
}

/* Rendered overflow fixes for legacy rails and fixed-width cards. */
.testimonial-grid,
.home-page .industry-showcase,
.ppc-table-wrap,
.ppc-keyword-table,
.careers-page .grid-3,
.contact-page .grid-3,
body:not([class]) .grid-3 {
  max-width: 100% !important;
  overflow: visible !important;
}
/* Note: .wd-dark-carousel and .wd-service-cards intentionally excluded —
   they are horizontal-scroll carousels and must NOT be set to overflow:visible */

.testimonial-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)) !important;
  gap: clamp(18px, 2vw, 28px) !important;
  transform: none !important;
  padding-inline: 0 !important;
}
/* Note: .wd-dark-carousel, .wd-red-grid, .wd-service-cards intentionally
   excluded — they are carousel/scroll rail elements, not grid layouts */

.testimonial-grid > *,
.home-page .industry-showcase > *,
.careers-page .grid-3 > *,
.contact-page .grid-3 > *,
body:not([class]) .grid-3 > * {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: initial !important;
  transform: none !important;
}

.testimonial,
.testimonial-portrait,
.wd-red-card,
.wd-service-cards article,
.case-media,
.case-dashboard,
.industry-card,
.service-card,
.platform-card {
  max-width: 100% !important;
  min-width: 0 !important;
}

.case-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) !important;
  overflow: hidden !important;
}

.case-media,
.case-dashboard {
  justify-self: stretch !important;
}

.ppc-table-wrap,
.table-card,
.rank-table {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.ppc-table-wrap table,
.table-card table,
.rank-table table {
  max-width: 100% !important;
}

@media (max-width: 900px) {
  .case-card {
    grid-template-columns: 1fr !important;
  }

  .case-media,
  .case-dashboard {
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  .home-page .industry-showcase,
  .careers-page .grid-3,
  .contact-page .grid-3,
  body:not([class]) .grid-3,
  .wd-red-grid,
  .testimonial-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .industry-card,
  .service-card,
  .platform-card,
  .wd-red-card,
  .testimonial,
  .seo-page .enterprise-columns article {
    width: 100% !important;
    max-width: 100% !important;
  }

  .seo-page .enterprise-columns article,
  .ppc-table-wrap table,
  .table-card table,
  .rank-table table {
    min-width: 0 !important;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    width: 100% !important;
  }
}

  /* Final targeted responsive fixes from rendered QA. */
  .table-card {
    display: block !important;
  }

  .table-card .data-table,
  .table-card table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .quality-list {
    width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    left: auto !important;
  }

  .quality-list > li {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: 0 1 auto !important;
  }

  .wd-ecommerce-grid,
  .wd-ecommerce-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  @media (max-width: 1100px) {
    .home-page .case-card,
    .case-card,
    .wd-ecommerce-grid {
      grid-template-columns: 1fr !important;
    }

    .case-card > *,
    .wd-ecommerce-grid > * {
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
    }
  }

  @media (max-width: 640px) {
    .quality-list,
    .quality-proof,
    .careers-card-row,
    .careers-benefit-grid,
    .seo-page .enterprise-columns {
      display: grid !important;
      grid-template-columns: 1fr !important;
      overflow: visible !important;
      gap: 16px !important;
    }

    .quality-list > *,
    .careers-card-row > *,
    .careers-benefit-grid > *,
    .seo-page .enterprise-columns > * {
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
      flex: initial !important;
    }
  }

/* Homepage-specific overrides for legacy important layout rules. */
@media (max-width: 1100px) {
  body.home-page main .case-section .case-card {
    grid-template-columns: 1fr !important;
  }

  body.home-page main .case-section .case-card > *,
  body.home-page main .case-section .case-media,
  body.home-page main .case-section .case-dashboard {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 640px) {
  body.home-page main .quality-section .quality-proof,
  body.home-page main .quality-section .quality-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  body.home-page main .quality-section .quality-list > li,
  body.home-page main .quality-section .quality-list > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: initial !important;
  }
}

@media (max-width: 900px) {
}

@media (max-width: 640px) {
  /* ── Horizontal snap-scroll rails ── */
  /* Use full html+body prefix (spec 0,3,3) to definitively beat any lower-spec grid rule */
  html body.home-page main .stages-section .stage-grid,
  html body.home-page main .home-blog-section .home-blog-grid,
  html body.home-page main .industries-section .industry-showcase,
  html body.home-page main .why-section .why-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    gap: 14px !important;
    padding: 0 24px 0 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: unset !important;
    grid-auto-flow: unset !important;
    grid-auto-columns: unset !important;
    transform: none !important;
  }

  /* Hide scrollbar chrome */
  html body.home-page main .stages-section .stage-grid::-webkit-scrollbar,
  html body.home-page main .home-blog-section .home-blog-grid::-webkit-scrollbar,
  html body.home-page main .industries-section .industry-showcase::-webkit-scrollbar,
  html body.home-page main .why-section .why-grid::-webkit-scrollbar {
    display: none !important;
  }

  /* Cards: 82vw — shows ~10% peek of the next card */
  html body.home-page main .stages-section .stage-grid .stage-card,
  html body.home-page main .home-blog-section .home-blog-grid .home-blog-card,
  html body.home-page main .industries-section .industry-showcase .industry-card,
  html body.home-page main .why-section .why-grid .reason-card {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    max-width: 340px !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
  }

  /* ── Process grid: horizontal snap-scroll rail (same as stage/blog/why) ── */
  html body.home-page main .process-section .process-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    grid-template-columns: unset !important;
    grid-auto-flow: unset !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    gap: 14px !important;
    padding: 6px 20px 28px !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: none !important;
  }

  html body.home-page main .process-section .process-grid::-webkit-scrollbar {
    display: none !important;
  }

  html body.home-page main .process-section .process-grid > .process-card {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    max-width: 320px !important;
    min-width: 240px !important;
    height: auto !important;
    min-height: 0 !important;
    align-self: stretch !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

    max-width: 100% !important;
    min-width: 0 !important;
    flex: initial !important;
  }
}

/* =====================================================================
   Web Design page — comprehensive design polish
   Restores carousel behaviours + premium typography + section rhythm
   ===================================================================== */

/* ── Hero ──────────────────────────────────────────────────────────── */
.web-design-page .wd-hero {
  background: #fff !important;
  padding-top: clamp(48px, 6vw, 80px) !important;
  padding-bottom: clamp(40px, 5vw, 64px) !important;
}

.web-design-page .wd-hero-grid {
  align-items: center !important;
  gap: clamp(32px, 5vw, 64px) !important;
}

.web-design-page .wd-hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
  line-height: 1.1 !important;
  max-width: 14ch !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
}

.web-design-page .wd-hero-copy h1 span {
  color: var(--color-red, #e11d2a) !important;
  display: block !important;
}

.web-design-page .wd-copy-stack {
  margin-top: 16px !important;
  gap: 10px !important;
}

.web-design-page .wd-copy-stack p {
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  color: var(--color-ink-muted, #4a4a56) !important;
}

/* Stat grid in hero proof panel */
.web-design-page .wd-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.web-design-page .wd-stat-grid article {
  border-radius: var(--radius-md) !important;
  padding: 16px 20px !important;
  min-height: 90px !important;
}

/* ── Dark sections ─────────────────────────────────────────────────── */
.web-design-page .wd-dark {
  padding-top: clamp(40px, 5vw, 72px) !important;
  padding-bottom: clamp(40px, 5vw, 72px) !important;
}

.web-design-page .wd-dark h2 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important;
  line-height: 1.15 !important;
}

.web-design-page .wd-dark h2 span {
  color: var(--color-red, #e11d2a) !important;
}

/* ── Services section ──────────────────────────────────────────────── */
.web-design-page .wd-services.section {
  padding-top: clamp(48px, 5vw, 72px) !important;
  padding-bottom: clamp(48px, 5vw, 72px) !important;
}

.web-design-page .wd-services-grid {
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr) !important;
  align-items: start !important;
  gap: clamp(24px, 4vw, 48px) !important;
}

/* Section copy column */
.web-design-page .wd-section-copy h2 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem) !important;
  line-height: 1.15 !important;
}

.web-design-page .wd-section-copy h2 span {
  color: var(--color-red, #e11d2a) !important;
  display: block !important;
}

/* Service carousel: restore horizontal scroll  */
.web-design-page .wd-service-cards {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
  gap: 14px !important;
  padding: 4px 4px 18px !important;
}

.web-design-page .wd-service-cards::-webkit-scrollbar {
  display: none !important;
}

.web-design-page .wd-service-cards article {
  flex: 0 0 clamp(220px, 24vw, 252px) !important;
  width: clamp(220px, 24vw, 252px) !important;
  min-height: 300px !important;
  scroll-snap-align: start !important;
  padding: 20px !important;
  border: 1px solid #eaeaf0 !important;
  border-top: 2px solid var(--color-red, #e11d2a) !important;
  border-radius: var(--radius-md) !important;
  background: #fff !important;
}

/* ── Dark carousel sections (WD Need + WD Process) ─────────────────── */
/* The .wd-dark-carousel is the WRAPPER (block). The actual scroll track is
   .wd-slide-deck inside it, with the nav arrows (.wd-carousel-ui) BELOW.
   It must NOT be flex/grid — keep it block so arrows stay under the card. */
.web-design-page .wd-dark-carousel {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch !important;
  overflow: visible !important;
  grid-template-columns: none !important;
}

/* The slide deck is the horizontal scroll track */
.web-design-page .wd-dark-carousel .wd-slide-deck {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
  gap: 22px !important;
  grid-template-columns: none !important;
}

.web-design-page .wd-dark-carousel .wd-slide-deck::-webkit-scrollbar {
  display: none !important;
}

/* Card fills its container so there's no empty void on big screens */
.web-design-page .wd-dark-carousel .wd-red-card {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  scroll-snap-align: start !important;
}

/* Keep only the dot indicators — hide the separate circular arrow buttons */
.web-design-page .wd-dark-carousel .wd-carousel-arrows {
  display: none !important;
}

/* Hide arrows on the service carousel — keep dots only */
.web-design-page .wd-service-carousel .wd-carousel-arrows {
  display: none !important;
}
.web-design-page .wd-service-carousel .wd-carousel-ui {
  justify-content: center !important;
}

/* With arrows hidden, center the dots row */
.web-design-page .wd-dark-carousel .wd-carousel-ui {
  justify-content: center !important;
  margin-top: 18px !important;
}

/* ── WD Split layout (Need + Process sections) ─────────────────────── */
/* Balanced columns: copy left, carousel right. Right column is the carousel
   wrapper which now fills its width, eliminating the empty right-side void. */
.web-design-page .wd-need .wd-split,
.web-design-page .wd-process .wd-split {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.92fr) !important;
  gap: clamp(32px, 4vw, 64px) !important;
  align-items: start !important;
}

/* ── Speed section ─────────────────────────────────────────────────── */
.web-design-page .wd-speed.section {
  background: #fafafa !important;
}

.web-design-page .wd-speed-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(32px, 4vw, 56px) !important;
  align-items: start !important;
}

.web-design-page .wd-speed h2 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem) !important;
  line-height: 1.15 !important;
}

.web-design-page .wd-speed h2 span {
  color: var(--color-red, #e11d2a) !important;
}

.web-design-page .wd-speed-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.web-design-page .wd-speed-stats article {
  border-radius: var(--radius-md) !important;
  padding: 14px !important;
}

/* ── Results section ───────────────────────────────────────────────── */
.web-design-page .wd-results.wd-dark {
  padding-top: clamp(40px, 5vw, 72px) !important;
  padding-bottom: clamp(40px, 5vw, 72px) !important;
}

.web-design-page .wd-center h2 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
  line-height: 1.15 !important;
}

.web-design-page .wd-center h2 span {
  color: var(--color-red, #e11d2a) !important;
}

/* Results table: restore as vertical table rows */
.web-design-page .wd-results-table {
  display: block !important;
  max-width: 980px !important;
  margin: 0 auto 20px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.06) !important;
}

.web-design-page .wd-results-head,
.web-design-page .wd-results-table article {
  display: grid !important;
  grid-template-columns: 42px minmax(130px, 1.1fr) minmax(90px, 0.7fr) 28px minmax(90px, 0.7fr) minmax(98px, 0.65fr) minmax(120px, 0.8fr) !important;
  gap: 16px !important;
  align-items: center !important;
  padding: 13px 22px !important;
  border-radius: 0 !important;
}

.web-design-page .wd-results-head {
  grid-template-columns: minmax(160px, 0.65fr) minmax(0, 1fr) !important;
  background: var(--color-red, #e11d2a) !important;
  color: #fff !important;
  font-size: 0.75rem !important;
}

/* ── Redesign section ──────────────────────────────────────────────── */
.web-design-page .wd-redesign-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(32px, 4vw, 56px) !important;
  align-items: start !important;
}

.web-design-page .wd-redesign h2 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem) !important;
  line-height: 1.15 !important;
}

.web-design-page .wd-redesign h2 span {
  color: var(--color-red, #e11d2a) !important;
}

/* ── E-commerce section ────────────────────────────────────────────── */
.web-design-page .wd-ecommerce-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(32px, 4vw, 56px) !important;
  align-items: start !important;
}

.web-design-page .wd-ecommerce h2 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem) !important;
  line-height: 1.15 !important;
}

.web-design-page .wd-ecommerce h2 span {
  color: var(--color-red, #e11d2a) !important;
}

/* ── Contact section ───────────────────────────────────────────────── */
.web-design-page .wd-contact-grid {
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr) !important;
  gap: clamp(32px, 4vw, 64px) !important;
  align-items: start !important;
}

/* ── Table sections (Who We Build For / What Makes Us Different / Industries) */
.web-design-page .wd-table-wrap {
  overflow-x: auto !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid #eaeaf0 !important;
}

.web-design-page .wd-table-wrap table {
  min-width: 540px !important;
}

/* ── Mobile: stack table rows as cards (no horizontal scroll) ── */
@media (max-width: 640px) {
  .web-design-page .wd-table-section .wd-table-wrap {
    overflow-x: visible !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .web-design-page .wd-table-section .wd-table-wrap table {
    min-width: 0 !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
  }

  .web-design-page .wd-table-section .wd-table-wrap thead {
    display: none !important;
  }

  .web-design-page .wd-table-section .wd-table-wrap tbody tr {
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #eaeaf0 !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    background: #fff !important;
  }

  .web-design-page .wd-table-section .wd-table-wrap tbody tr.is-highlight {
    border-color: var(--color-red, #e11d2a) !important;
    background: #fff5f5 !important;
  }

  .web-design-page .wd-table-section .wd-table-wrap tbody th {
    display: block !important;
    width: 100% !important;
    padding: 0 0 6px !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: #090b10 !important;
    border: none !important;
    background: none !important;
  }

  .web-design-page .wd-table-section .wd-table-wrap tbody td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.44 !important;
    color: #4a4d57 !important;
    border: none !important;
  }
}

/* ── Local SEO grid ────────────────────────────────────────────────── */
.web-design-page .wd-local-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 20px !important;
}

/* ============================================================
   PROCESS SECTION REDESIGN — full-grid, all 7 steps visible
   ============================================================ */

/* Stack layout: intro centered on top, grid below */
.web-design-page .wd-process .wd-split {
  display: block !important;
  grid-template-columns: unset !important;
  gap: unset !important;
}

/* Centered intro copy block */
.web-design-page .wd-process .wd-dark-copy {
  text-align: center !important;
  max-width: 700px !important;
  margin: 0 auto clamp(36px, 4.5vw, 54px) auto !important;
}

.web-design-page .wd-process .wd-dark-copy h2 {
  font-size: clamp(2rem, 3vw, 2.8rem) !important;
  max-width: unset !important;
  margin-bottom: 14px !important;
}

.web-design-page .wd-process .wd-dark-copy p {
  font-size: 0.94rem !important;
  line-height: 1.54 !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  color: rgba(255,255,255,0.72) !important;
}

/* Full-width carousel container */
.web-design-page .wd-process .wd-carousel {
  width: 100% !important;
  max-width: 100% !important;
  justify-self: stretch !important;
}

/* Override scroll carousel → 4-column static grid */
.web-design-page .wd-process .wd-slide-deck {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  padding: 0 !important;
  gap: 14px !important;
}

/* Remove carousel snap sizing from each card */
.web-design-page .wd-process .wd-red-card {
  flex: unset !important;
  width: auto !important;
  min-width: 0 !important;
  scroll-snap-align: none !important;
  padding: clamp(18px, 2vw, 26px) !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Bigger icon */
.web-design-page .wd-process .wd-red-card i {
  width: 46px !important;
  height: 46px !important;
  font-size: 1.2rem !important;
  border-radius: 10px !important;
  margin-bottom: 16px !important;
  flex-shrink: 0 !important;
}

/* Step counter label */
.web-design-page .wd-process .wd-red-card small {
  font-size: 0.68rem !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 10px !important;
}

/* Card title */
.web-design-page .wd-process .wd-red-card h3 {
  font-size: clamp(0.88rem, 1.2vw, 1.08rem) !important;
  max-width: unset !important;
  margin-bottom: 10px !important;
  line-height: 1.28 !important;
}

/* Card body text */
.web-design-page .wd-process .wd-red-card p {
  font-size: 0.78rem !important;
  line-height: 1.44 !important;
  flex: 1 !important;
}

/* Hide redundant "Step 0N" badge — counter already handles this */
.web-design-page .wd-process .wd-red-card b {
  display: none !important;
}

/* Dots nav no longer needed */
.web-design-page .wd-process .wd-carousel-ui {
  display: none !important;
}

/* Responsive: 3 cols at medium-large */
@media (max-width: 1200px) and (min-width: 901px) {
  .web-design-page .wd-process .wd-slide-deck {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* ── Responsive adjustments for WD page ─────────────────────────────── */
@media (max-width: 900px) {
  .web-design-page .wd-hero-grid,
  .web-design-page .wd-need .wd-split,
  .web-design-page .wd-services-grid,
  .web-design-page .wd-speed-grid,
  .web-design-page .wd-redesign-grid,
  .web-design-page .wd-ecommerce-grid,
  .web-design-page .wd-contact-grid {
    grid-template-columns: 1fr !important;
  }

  .web-design-page .wd-hero-copy h1 {
    font-size: clamp(1.9rem, 7vw, 2.6rem) !important;
    max-width: 100% !important;
  }
}

@media (max-width: 640px) {
  /* Service cards and dark carousel: compact snap-scroll rails on mobile */
  .web-design-page .wd-service-cards article {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    max-width: 300px !important;
  }

  .web-design-page .wd-dark-carousel .wd-red-card {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    max-width: 320px !important;
  }

  .web-design-page .wd-results-head,
  .web-design-page .wd-results-table article {
    grid-template-columns: 32px minmax(80px, 1fr) minmax(60px, 0.6fr) 24px minmax(60px, 0.6fr) !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.78rem !important;
  }

  .web-design-page .wd-results-table article strong,
  .web-design-page .wd-results-table article small,
  .web-design-page .wd-results-table article progress {
    display: none !important;
  }

  .web-design-page .wd-local-grid {
    grid-template-columns: 1fr !important;
  }

  .web-design-page .wd-speed-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Process section: 2-col grid at tablet (641px–900px only) */
  .web-design-page .wd-process .wd-slide-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }
}

@media (max-width: 640px) {
  /* Undo the 2-col grid so the flex scroll rail below wins */
  .web-design-page .wd-process .wd-slide-deck {
    grid-template-columns: unset !important;
    overflow-x: auto !important;
  }
}

@media (max-width: 480px) {
  /* Process section: single column on small phones */
  .web-design-page .wd-process .wd-slide-deck {
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: visible !important;
  }
}

/* Process section mobile: horizontal snap-scroll rail ≤640px */
@media (max-width: 640px) {
  .web-design-page .wd-process .wd-slide-deck {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    gap: 14px !important;
    padding-bottom: 6px !important;
    grid-template-columns: unset !important;
  }

  .web-design-page .wd-process .wd-slide-deck::-webkit-scrollbar {
    display: none !important;
  }

  .web-design-page .wd-process .wd-red-card {
    flex: 0 0 80vw !important;
    width: 80vw !important;
    max-width: 300px !important;
    scroll-snap-align: start !important;
  }

  /* Show dots nav on mobile for process */
  .web-design-page .wd-process .wd-carousel-ui {
    display: flex !important;
    justify-content: center !important;
    margin-top: 16px !important;
  }
}

/* ================================================================
   SOCIAL MEDIA HERO — viewport-fit redesign
   Goals: single-screen fit at 1280px+, tighter type, better visual
   ================================================================ */

/* Section: just enough vertical space to breathe without overflowing */
.social-media-page .social-hero-v2 {
  padding-top: clamp(36px, 4vw, 52px) !important;
  padding-bottom: clamp(36px, 4vw, 52px) !important;
  min-height: 0 !important;
}

/* Grid: balanced columns, tighter gap */
.social-hero-grid-v2 {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr) !important;
  gap: clamp(32px, 4vw, 56px) !important;
  align-items: center !important;
}

/* Kicker: tighten spacing above */
.social-media-page .social-kicker {
  margin-bottom: 12px !important;
  font-size: 0.72rem !important;
}

/* H1: bring size down so it fits in one viewport without overwhelming */
.social-hero-v2 h1 {
  font-size: clamp(2.4rem, 3.8vw, 3.6rem) !important;
  line-height: 1.02 !important;
  max-width: 16ch !important;
  margin-bottom: 14px !important;
}

/* Lede: compact body text */
.social-media-page .social-hero-copy-v2 .social-lede {
  font-size: clamp(0.9rem, 1.1vw, 1rem) !important;
  line-height: 1.58 !important;
  max-width: 52ch !important;
  margin-top: 0 !important;
}

/* CTAs: slimmer height */
.social-hero-v2 .social-btn {
  min-height: 46px !important;
  font-size: 0.9rem !important;
}

.social-hero-v2 .social-actions-v2 {
  margin-top: 20px !important;
  gap: 10px !important;
}

/* Trust line + pills: compact */
.social-hero-v2 .support-line {
  margin-top: 14px !important;
  font-size: 0.8rem !important;
}

.social-hero-v2 .keyword-pills {
  margin-top: 12px !important;
  gap: 7px !important;
}

.social-hero-v2 .keyword-pills span {
  font-size: 0.72rem !important;
  padding: 4px 10px !important;
}

/* Visual panel: tighter, no excess min-height */
.social-hero-v2 .social-growth-visual {
  min-height: 0 !important;
  height: clamp(360px, 44vh, 520px) !important;
}

/* Dashboard card: fill the visual panel cleanly */
.social-hero-v2 .social-dashboard-card {
  top: 20px !important;
  right: 0 !important;
  width: min(96%, 460px) !important;
  padding: clamp(16px, 1.8vw, 22px) !important;
}

/* Hide floating cards and pills — keep only the dashboard card */
.social-hero-v2 .social-platform-card,
.social-hero-v2 .social-cost-card,
.social-hero-v2 .social-platform-pills {
  display: none !important;
}

.social-hero-v2 .social-dashboard-card > strong {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem) !important;
  line-height: 1 !important;
}

.social-hero-v2 .social-chart {
  height: clamp(44px, 6vw, 72px) !important;
}

.social-hero-v2 .social-dashboard-metrics span b {
  font-size: 1.1rem !important;
}

/* SEO large-screen composition polish. */
@media (min-width: 1101px) {
  html:has(body.seo-page) {
    scroll-padding-top: 128px !important;
  }

  .seo-page main > section {
    scroll-margin-top: 136px !important;
  }

  .seo-page main > section > .container,
  .seo-page .page-hero > .container {
    width: min(100% - 96px, 1240px) !important;
    max-width: 1240px !important;
  }

  body.seo-page main > section > .container,
  body.seo-page main > .container,
  body.seo-page .page-hero > .container,
  body.seo-page .hero > .container {
    width: min(100% - 96px, 1240px) !important;
    max-width: 1240px !important;
  }

  .seo-page .page-hero.seo-hero {
    padding-top: clamp(12px, 1.5vw, 20px) !important;
    padding-bottom: clamp(20px, 2.5vw, 32px) !important;
  }

  .seo-page .page-hero.seo-hero .split {
    grid-template-columns: minmax(0, 0.98fr) minmax(440px, 1.02fr) !important;
    gap: clamp(64px, 6vw, 92px) !important;
    align-items: center !important;
  }

  .seo-page .hero-copy {
    max-width: 650px !important;
  }

  .seo-page .hero-copy h1 {
    max-width: 14.6ch !important;
    margin-bottom: 24px !important;
  }

  .seo-page .hero-copy .lede {
    max-width: 64ch !important;
    margin-bottom: 18px !important;
  }

  .seo-page .hero-data {
    justify-self: stretch !important;
    max-width: 560px !important;
  }

  .seo-page .hero-stats {
    gap: 18px !important;
  }

  .seo-page .hero-stats .stat-card {
    min-height: 142px !important;
    padding: 30px !important;
  }

  .seo-page .hero-data-note {
    margin-top: 24px !important;
    max-width: 520px !important;
  }

  .seo-page .section,
  .seo-page .section-tight {
    padding-top: clamp(84px, 6.4vw, 116px) !important;
    padding-bottom: clamp(84px, 6.4vw, 116px) !important;
  }

  .seo-page .seo-trusted {
    padding-top: clamp(64px, 5vw, 88px) !important;
    padding-bottom: clamp(64px, 5vw, 88px) !important;
  }

  .seo-page .trusted-head {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr) !important;
    align-items: start !important;
    gap: 72px !important;
    margin-bottom: 28px !important;
  }

  .seo-page .trusted-head h2,
  .seo-page .seo-section-copy h2,
  .seo-page .services-complete-head h2,
  .seo-page .enterprise-intro h2,
  .seo-page .testimonial-head h2,
  .seo-page .faq-intro h2,
  .seo-page .seo-results .center h2,
  .seo-page .audit-copy h2 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .seo-page .trusted-desc {
    max-width: 760px !important;
    margin-bottom: 36px !important;
  }

  .seo-page .seo-brand-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .seo-page .seo-company-grid,
  .seo-page .section.soft > .container.split,
  .seo-page .seo-onpage > .container.split {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr) !important;
    gap: clamp(56px, 5vw, 80px) !important;
    align-items: center !important;
  }

  .seo-page .seo-company-copy,
  .seo-page .section.soft > .container.split > :first-child,
  .seo-page .seo-onpage > .container.split > :last-child {
    max-width: 650px !important;
  }

  /* On-page section: stretch the optimization panel to fill the column
     and lay its checklist out in two rows-spread columns so the card
     fills both the available width and height on large screens. */
  .seo-page .seo-onpage > .container.split {
    align-items: stretch !important;
  }

  .seo-page .seo-onpage .seo-check-panel {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  .seo-page .seo-onpage .seo-check-panel .mini-list {
    display: grid !important;
    flex: 1 1 auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--space-12) !important;
    align-content: space-between !important;
    margin-top: var(--space-24) !important;
  }

  .seo-page .services-complete-head,
  .seo-page .enterprise-intro,
  .seo-page .seo-section-copy,
  .seo-page .testimonial-head,
  .seo-page .faq-intro,
  .seo-page .seo-results .center,
  .seo-page .audit-copy {
    max-width: 100% !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: clamp(40px, 4vw, 56px) !important;
  }

  .seo-page .services-complete-head p,
  .seo-page .enterprise-intro p,
  .seo-page .seo-section-copy p,
  .seo-page .testimonial-head p,
  .seo-page .faq-intro p,
  .seo-page .audit-copy p,
  .seo-page .seo-results .center p {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .seo-page .seo-services-complete {
    padding-top: clamp(96px, 7vw, 128px) !important;
    padding-bottom: clamp(96px, 7vw, 128px) !important;
  }

  .seo-page .seo-services-complete > .container,
  .seo-page .seo-enterprise > .container {
    position: relative !important;
    z-index: 1 !important;
  }

  .seo-page .seo-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }

  .seo-page .seo-service-item {
    min-height: 330px !important;
    padding: 36px !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }

  .seo-page .seo-service-item h3 {
    margin-top: 18px !important;
    margin-bottom: 12px !important;
  }

  .seo-page .seo-service-outsource {
    margin-top: 24px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 32px !important;
  }

  .seo-page .seo-enterprise {
    padding-top: clamp(112px, 8vw, 144px) !important;
    padding-bottom: clamp(112px, 8vw, 144px) !important;
  }

  .seo-page .enterprise-intro {
    text-align: center !important;
  }

  .seo-page .enterprise-intro h2 {
    max-width: 100% !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  .seo-page .trusted-head h2,
  .seo-page .seo-section-copy h2,
  .seo-page .services-complete-head h2,
  .seo-page .enterprise-intro h2,
  .seo-page .testimonial-head h2,
  .seo-page .faq-intro h2,
  .seo-page .seo-faq .faq-intro h2,
  .seo-page .seo-results .center h2,
  .seo-page .audit-copy h2,
  .seo-page .seo-final-cta h2 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .seo-page .enterprise-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(72px, 7vw, 112px) !important;
    margin-top: 64px !important;
  }

  .seo-page .enterprise-columns article {
    padding: 36px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
  }

  .seo-page .enterprise-columns h3 {
    margin-top: 16px !important;
    margin-bottom: 24px !important;
  }

  .seo-page .enterprise-columns ul {
    display: grid !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .seo-page .enterprise-note {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 72px !important;
    padding-top: 32px !important;
    text-align: center !important;
  }

  .seo-page .enterprise-note p {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .seo-page .why-list-detailed {
    width: 100% !important;
    max-width: 100% !important;
  }

  .seo-page .why-list-detailed article {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 28px !important;
    width: 100% !important;
  }

  .seo-page .why-list-detailed article > :last-child {
    width: 100% !important;
  }

  .seo-page .process-card-grid,
  .seo-page .outsource-model-grid,
  .seo-page .apart-grid-new,
  .seo-page .seo-price-grid,
  .seo-page .testimonial-row-new {
    gap: 24px !important;
  }
}

@media (min-width: 1101px) {
  body.ppc-page main > section > .container,
  body.ppc-page .ppc-hero > .container {
    width: min(100% - 96px, 1240px) !important;
    max-width: 1240px !important;
  }

  body.ppc-page .ppc-hero {
    min-height: auto !important;
    padding-top: clamp(56px, 5.4vw, 86px) !important;
    padding-bottom: clamp(52px, 4.8vw, 78px) !important;
  }

  body.ppc-page .ppc-hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.68fr) !important;
    align-items: start !important;
    gap: clamp(44px, 4.8vw, 60px) !important;
  }

  body.ppc-page .ppc-hero-copy {
    max-width: 760px !important;
  }

  body.ppc-page .ppc-hero-copy > p {
    max-width: 100% !important;
  }

  body.ppc-page .ppc-hero-card {
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
    max-width: none !important;
  }

  body.ppc-page .ppc-section-head {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    margin-bottom: clamp(36px, 4vw, 52px) !important;
    text-align: center !important;
  }

  body.ppc-page .ppc-section-head .ppc-kicker {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    margin-inline: auto !important;
  }

  body.ppc-page .ppc-section-head h2,
  body.ppc-page .ppc-section-head > p {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  body.ppc-page .ppc-section-head.small-head {
    margin-top: clamp(20px, 2.6vw, 32px) !important;
  }
}

@media (min-width: 1600px) {
  .seo-page main > section > .container,
  .seo-page .page-hero > .container {
    width: min(100% - 128px, 1320px) !important;
    max-width: 1320px !important;
  }

  body.seo-page main > section > .container,
  body.seo-page main > .container,
  body.seo-page .page-hero > .container,
  body.seo-page .hero > .container {
    width: min(100% - 128px, 1320px) !important;
    max-width: 1320px !important;
  }

  body.ppc-page main > section > .container,
  body.ppc-page .ppc-hero > .container {
    width: min(100% - 128px, 1320px) !important;
    max-width: 1320px !important;
  }

  .seo-page .page-hero.seo-hero .split {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 0.95fr) !important;
  }
}

/* Global production standards: final cascade pass. */
:root {
  --td-container-desktop: 1240px;
  --td-container-wide: 1320px;
  --td-page-gutter: clamp(32px, 5vw, 96px);
  --td-section-y: clamp(56px, 5.4vw, 88px);
  --td-section-y-tight: clamp(44px, 4.4vw, 68px);
  --td-hero-y: clamp(60px, 6vw, 96px);
  --td-card-pad: clamp(22px, 2.4vw, 34px);
  --td-grid-gap: clamp(20px, 2.2vw, 30px);
  --td-button-height: 46px;
  --td-media-bg: #f6f1ef;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1101px) {
  body main > section > .container,
  body main > .container,
  body .page-hero > .container,
  body .hero > .container,
  body footer > .container,
  body .site-footer > .container,
  body .home-footer > .container,
  body[class] main > section > .container,
  body[class] main > .container,
  body[class] .page-hero > .container,
  body[class] .hero > .container,
  body[class] footer > .container,
  body[class] .site-footer > .container,
  body[class] .home-footer > .container {
    width: min(100% - var(--td-page-gutter), var(--td-container-desktop)) !important;
    max-width: var(--td-container-desktop) !important;
    margin-inline: auto !important;
  }

  .section,
  .section-tight,
  .home-page section.section,
  .home-page section.section-tight,
  .home-page .services-section,
  .home-page .quality-section,
  .home-page .faq-section,
  .home-page .contact-section,
  .web-design-page .section,
  .seo-page .section,
  .seo-page .section-tight,
  .ppc-page .section,
  .ppc-page .section-tight,
  .social-media-page .social-section,
  .careers-page main > section,
  .case-studies-page main > section,
  .audit-page main > section,
  .finance-page main > section,
  body:not([class]) main > section {
    padding-top: var(--td-section-y) !important;
    padding-bottom: var(--td-section-y) !important;
  }

  .section-tight,
  .ppc-page .section-tight,
  .seo-page .section-tight {
    padding-top: var(--td-section-y-tight) !important;
    padding-bottom: var(--td-section-y-tight) !important;
  }

  .page-hero,
  .hero,
  .wd-hero,
  .ppc-hero,
  .seo-page .page-hero,
  .web-design-page .page-hero,
  .careers-page .page-hero,
  .audit-page .page-hero,
  body:not([class]) .page-hero {
    padding-top: var(--td-hero-y) !important;
    padding-bottom: clamp(52px, 5vw, 84px) !important;
  }
}

@media (min-width: 1600px) {
  body main > section > .container,
  body main > .container,
  body .page-hero > .container,
  body .hero > .container,
  body footer > .container,
  body .site-footer > .container,
  body .home-footer > .container,
  body[class] main > section > .container,
  body[class] main > .container,
  body[class] .page-hero > .container,
  body[class] .hero > .container,
  body[class] footer > .container,
  body[class] .site-footer > .container,
  body[class] .home-footer > .container {
    width: min(100% - 128px, var(--td-container-wide)) !important;
    max-width: var(--td-container-wide) !important;
  }
}

h1,
.h1,
.home-page h1,
.seo-page h1,
.ppc-page h1,
.web-design-page h1,
.social-media-page h1,
.careers-page h1,
.case-studies-page h1,
.audit-page h1,
.finance-page h1 {
  font-size: clamp(2.45rem, 4.35vw, 4.35rem) !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

h2,
.h2,
.home-page h2,
.seo-page h2,
.ppc-page h2,
.web-design-page h2,
.social-media-page h2,
.careers-page h2,
.case-studies-page h2,
.audit-page h2,
.finance-page h2 {
  font-size: clamp(1.9rem, 2.85vw, 3rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

h3,
.h3,
.home-page h3,
.seo-page h3,
.ppc-page h3,
.web-design-page h3,
.social-media-page h3,
.careers-page h3,
.case-studies-page h3,
.audit-page h3,
.finance-page h3 {
  font-size: clamp(1.18rem, 1.45vw, 1.65rem) !important;
  line-height: 1.24 !important;
  letter-spacing: 0 !important;
}

p,
li,
.lede,
.hero-copy p,
.section-head p,
.ppc-section-head p,
.social-section-head p,
.seo-page .hero-copy .lede,
.web-design-page p,
.careers-page p,
.case-studies-page p,
.audit-page p,
.finance-page p {
  font-size: clamp(1rem, 0.28vw + 0.94rem, 1.075rem) !important;
  line-height: 1.65 !important;
}

main .section-head:not(.split-head),
main .ppc-section-head:not(.split-head),
main .social-section-head,
main .seo-section-copy,
main .wd-section-copy,
main .wd-center,
main .services-complete-head,
main .trusted-head,
main .enterprise-intro,
main .testimonial-head,
main .faq-intro,
main .audit-copy,
main .center:not(.btn-row):not(.nav-actions) {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: clamp(28px, 3.4vw, 52px) !important;
  text-align: center !important;
}

main .section-head:not(.split-head) > h2,
main .ppc-section-head:not(.split-head) > h2,
main .social-section-head > h2,
main .seo-section-copy > h2,
main .wd-section-copy > h2,
main .wd-center > h2,
main .services-complete-head > h2,
main .trusted-head > h2,
main .enterprise-intro > h2,
main .testimonial-head > h2,
main .faq-intro > h2,
main .audit-copy > h2,
main .center:not(.btn-row):not(.nav-actions) > h2,
main .section-head:not(.split-head) > p,
main .ppc-section-head:not(.split-head) > p,
main .social-section-head > p,
main .seo-section-copy > p,
main .wd-section-copy > p,
main .wd-center > p,
main .services-complete-head > p,
main .trusted-head > p,
main .enterprise-intro > p,
main .testimonial-head > p,
main .faq-intro > p,
main .audit-copy > p,
main .center:not(.btn-row):not(.nav-actions) > p {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.btn,
a.btn,
button.btn,
.ppc-arrow-btn,
.ppc-outline-btn,
.wd-arrow-btn,
.wd-outline-btn,
.social-btn {
  min-height: var(--td-button-height) !important;
  padding: 0 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.btn-row,
.ppc-actions,
.wd-actions,
.faq-cta,
.section-foot,
.contact-strip {
  gap: 12px !important;
  align-items: center !important;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

.hero-photo,
.media-card,
.card-media,
.home-blog-media,
.industry-media,
.person-visual,
.seo-company-image-visual,
.case-study-chart,
.careers-hero-media,
.careers-culture-media,
.wd-mistakes figure {
  overflow: hidden !important;
  border-radius: var(--radius-md) !important;
  background: var(--td-media-bg) !important;
}

.hero-photo img,
.media-card img,
.card-media img,
.home-blog-media img,
.industry-media img,
.person-visual img,
.seo-company-image-visual img,
.case-study-chart img,
.careers-hero-media img,
.careers-culture-media img,
.wd-mistakes figure img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.brand-card img,
.logo-brand img,
.logo img,
.testimonial-portrait img,
.phone-avatar img {
  object-fit: contain !important;
}

.grid-2,
.grid-3,
.grid-4,
.brand-grid,
.home-brand-grid,
.process-grid,
.why-grid,
.home-blog-grid,
.pricing-grid,
.seo-service-grid,
.process-card-grid,
.outsource-model-grid,
.apart-grid-new,
.seo-price-grid,
.testimonial-row-new,
.ppc-proof-cards,
.ppc-card-grid,
.ppc-industry-cards,
.ppc-testimonial-grid,
.wd-local-grid,
.wd-speed-stats,
.wd-results-table {
  width: 100% !important;
  gap: var(--td-grid-gap) !important;
  min-width: 0 !important;
}

.service-card,
.stage-card,
.process-card,
.reason-card,
.price-card,
.audit-card,
.platform-card,
.industry-card,
.case-card,
.office-card,
.contact-form,
.table-card,
.testimonial,
.testimonial-card,
.stat-card,
.brand-card,
.media-card,
.home-blog-card,
.seo-service-item,
.seo-service-outsource,
.enterprise-columns article,
.ppc-proof-cards article,
.ppc-service-grid article,
.ppc-why-grid article,
.ppc-process-grid article,
.ppc-industry-cards article,
.ppc-testimonial-grid figure,
.wd-red-card,
.wd-service-cards article,
.wd-redesign-panel,
.wd-speed-stats article {
  padding: var(--td-card-pad) !important;
  border-radius: var(--radius-md) !important;
  min-width: 0 !important;
}
/* Results table rows stay compact, compact row padding */
.wd-results-table article {
  padding: 13px 22px !important;
  border-radius: 0 !important;
  min-width: 0 !important;
}

.table-wrap,
.ppc-table-wrap,
.seo-table-wrap,
.rank-table,
.seo-industry-table {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* Web Design desktop alignment system.
   Split/editorial sections are left-aligned; standalone table/grid sections
   use centered intros so the page has one consistent rhythm on large screens. */
@media (min-width: 901px) {
  html body.web-design-page main > section {
    scroll-margin-top: 118px !important;
  }

  html body.web-design-page main .wd-hero {
    min-height: clamp(620px, calc(100vh - 105px), 760px) !important;
    padding-top: clamp(52px, 5vw, 76px) !important;
    padding-bottom: clamp(56px, 5vw, 84px) !important;
  }

  html body.web-design-page main .wd-hero-grid {
    align-items: center !important;
    grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.66fr) !important;
    gap: clamp(42px, 5vw, 76px) !important;
  }

  html body.web-design-page main .wd-hero-copy {
    max-width: 700px !important;
    align-self: center !important;
  }

  html body.web-design-page main .wd-hero-copy h1 {
    width: 100% !important;
    max-width: 14ch !important;
    margin: 0 0 clamp(18px, 2vw, 24px) 0 !important;
    text-align: left !important;
  }

  html body.web-design-page main .wd-copy-stack {
    margin-top: 0 !important;
    max-width: 700px !important;
  }

  html body.web-design-page main .wd-actions {
    margin-top: clamp(24px, 2.4vw, 32px) !important;
    justify-content: flex-start !important;
  }

  html body.web-design-page main .wd-hero-proof {
    width: 100% !important;
    max-width: 500px !important;
    justify-self: end !important;
    align-self: center !important;
  }

  html body.web-design-page main .wd-proof-note {
    max-width: 100% !important;
  }

  html body.web-design-page main .wd-hero-copy,
  html body.web-design-page main .wd-dark-copy,
  html body.web-design-page main .wd-speed-grid > div:first-child,
  html body.web-design-page main .wd-redesign-grid > div:first-child,
  html body.web-design-page main .wd-ecommerce-grid > div:first-child,
  html body.web-design-page main .wd-contact-grid > div:first-child,
  html body.web-design-page main .wd-section-copy {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body.web-design-page main .wd-section-copy {
    width: 100% !important;
    max-width: 440px !important;
    margin-bottom: 0 !important;
  }

  html body.web-design-page main .wd-section-copy > h2,
  html body.web-design-page main .wd-section-copy > p,
  html body.web-design-page main .wd-dark-copy > h2,
  html body.web-design-page main .wd-dark-copy > p,
  html body.web-design-page main .wd-speed-grid h2,
  html body.web-design-page main .wd-speed-grid p,
  html body.web-design-page main .wd-redesign-grid h2,
  html body.web-design-page main .wd-redesign-grid p,
  html body.web-design-page main .wd-ecommerce-grid h2,
  html body.web-design-page main .wd-ecommerce-grid p,
  html body.web-design-page main .wd-contact-grid h2,
  html body.web-design-page main .wd-contact-grid p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body.web-design-page main .wd-section-copy > p,
  html body.web-design-page main .wd-dark-copy > p,
  html body.web-design-page main .wd-speed-grid p,
  html body.web-design-page main .wd-redesign-grid p,
  html body.web-design-page main .wd-ecommerce-grid p,
  html body.web-design-page main .wd-contact-grid p {
    max-width: 62ch !important;
  }

  html body.web-design-page main .wd-center,
  html body.web-design-page main .wd-center > h2,
  html body.web-design-page main .wd-center > p,
  html body.web-design-page main .wd-center > strong,
  html body.web-design-page main .wd-seo-features > .container > h2,
  html body.web-design-page main .wd-seo-features > .container > p,
  html body.web-design-page main .wd-faq > .container > h2 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body.web-design-page main .wd-center {
    width: 100% !important;
    max-width: 840px !important;
    margin-bottom: clamp(32px, 3vw, 48px) !important;
  }

  html body.web-design-page main .wd-center > h2,
  html body.web-design-page main .wd-seo-features > .container > h2,
  html body.web-design-page main .wd-faq > .container > h2 {
    width: 100% !important;
    max-width: 840px !important;
  }

  html body.web-design-page main .wd-center > p,
  html body.web-design-page main .wd-center > strong,
  html body.web-design-page main .wd-seo-features > .container > p {
    display: block !important;
    width: 100% !important;
    max-width: 72ch !important;
  }

  html body.web-design-page main .wd-seo-features > .container > p {
    margin-bottom: clamp(28px, 3vw, 44px) !important;
  }

  html body.web-design-page main .wd-seo-features {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body.web-design-page main .wd-table-wrap,
  html body.web-design-page main .wd-check-columns,
  html body.web-design-page main .wd-local-grid,
  html body.web-design-page main .wd-mistakes-grid {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body.web-design-page main .wd-table-wrap {
    max-width: 1080px !important;
  }

  html body.web-design-page main .wd-check-columns {
    max-width: 1060px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 22px !important;
  }

  html body.web-design-page main .wd-local-grid {
    max-width: 1040px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 18px !important;
    text-align: left !important;
  }

  html body.web-design-page main .wd-mistakes-grid {
    max-width: 1120px !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr) !important;
    gap: clamp(28px, 4vw, 54px) !important;
    align-items: start !important;
  }

  html body.web-design-page main .wd-mistake-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 14px !important;
  }

  html body.web-design-page main .wd-platform-box > div,
  html body.web-design-page main .wd-form .form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  html body.web-design-page main .wd-platform-box,
  html body.web-design-page main .wd-form {
    width: 100% !important;
    max-width: 100% !important;
  }

  html body.web-design-page main .wd-faq > .container > h2 {
    margin-bottom: 18px !important;
  }

  html body.web-design-page main .wd-faq-search,
  html body.web-design-page main .wd-faq-list {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body.web-design-page main .wd-faq-search {
    max-width: 680px !important;
  }

  html body.web-design-page main .wd-faq-list {
    max-width: 880px !important;
  }

  html body.web-design-page main .wd-results-table {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 980px !important;
  }
}

/* Process section centering — must come AFTER the desktop alignment system
   which broadly sets .wd-dark-copy to text-align: left. */
@media (min-width: 901px) {
  html body.web-design-page main .wd-process .wd-dark-copy,
  html body.web-design-page main .wd-process .wd-dark-copy h2,
  html body.web-design-page main .wd-process .wd-dark-copy p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 900px) {
  :root {
    --td-page-gutter: 32px;
    --td-section-y: clamp(40px, 7vw, 58px);
    --td-section-y-tight: clamp(36px, 6vw, 50px);
    --td-hero-y: clamp(40px, 7vw, 60px);
    --td-card-pad: 20px;
  }

  h1,
  .h1,
  .home-page h1,
  .seo-page h1,
  .ppc-page h1,
  .web-design-page h1,
  .social-media-page h1,
  .careers-page h1,
  .case-studies-page h1,
  .audit-page h1,
  .finance-page h1 {
    font-size: clamp(2.05rem, 7.4vw, 3rem) !important;
    max-width: 100% !important;
  }

  h2,
  .h2,
  .home-page h2,
  .seo-page h2,
  .ppc-page h2,
  .web-design-page h2,
  .social-media-page h2,
  .careers-page h2,
  .case-studies-page h2,
  .audit-page h2,
  .finance-page h2 {
    font-size: clamp(1.72rem, 6.4vw, 2.35rem) !important;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .split,
  .contact-grid,
  .faq-layout,
  .quality-grid,
  .ppc-two-col,
  .ppc-contact-grid,
  .seo-company-grid,
  .enterprise-columns,
  .wd-split,
  .wd-redesign-grid,
  .wd-ecommerce-grid,
  .wd-contact-grid,
  .careers-hero-grid,
  .careers-vision-grid,
  .home-blog-grid,
  .pricing-grid,
  .process-card-grid,
  .outsource-model-grid,
  .apart-grid-new,
  .seo-price-grid,
  .testimonial-row-new,
  .ppc-proof-cards,
  .ppc-card-grid,
  .ppc-industry-cards,
  .ppc-testimonial-grid,
  .wd-local-grid,
  .wd-speed-stats,
  .seo-service-grid,
  .ppc-platform-row,
  .ppc-faq-layout {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .btn,
  a.btn,
  button.btn,
  .ppc-arrow-btn,
  .ppc-outline-btn,
  .wd-arrow-btn,
  .wd-outline-btn,
  .social-btn {
    white-space: normal !important;
  }

  .case-numbers .grid-4,
  .finance-page .case-numbers .grid-4,
  .education-page .case-numbers .grid-4,
  main > section > .container > .grid-4 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .case-numbers .grid-4 > *,
  main > section > .container > .grid-4 > * {
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  .btn-row > .btn,
  .ppc-actions > .btn,
  .wd-actions > .btn,
  .faq-cta > .btn,
  .section-foot > .btn,
  .contact-strip > .btn {
    width: 100% !important;
  }

  /* ── Redesign panel: mobile alignment fixes ── */

  /* Reset the global card flex override so the panel stays a grid */
  .web-design-page .wd-redesign-panel {
    display: grid !important;
    flex-direction: unset !important;
    align-items: unset !important;
    gap: 12px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* Results bars: stack label / bar / value vertically */
  .web-design-page .wd-results-bars p {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  .web-design-page .wd-results-bars p b {
    font-size: 0.82rem !important;
  }

  .web-design-page .wd-results-bars i {
    width: 100% !important;
  }

  /* Metrics: 3 equal columns (restore the original 3-col layout) */
  .web-design-page .wd-redesign-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .web-design-page .wd-redesign-metrics span {
    font-size: 0.66rem !important;
    min-height: 56px !important;
    padding: 8px 4px !important;
  }

  .web-design-page .wd-redesign-metrics b {
    font-size: 1rem !important;
  }
}

/* =====================================================================
   Premium typography pass (Sora display + Inter body).
   Reference: techdigitics.com vibe, elevated for a premium/expensive feel.
   Applies the display font to all headings, refines weights/tracking,
   and polishes eyebrows + buttons. Sizes inherit the validated clamp scale.
   ===================================================================== */

h1, h2, h3, h4, h5, h6,
.section-head h2,
.section-head h3,
.split-head h2,
.page-hero h1,
.page-hero h2,
.hero h1,
.hero h2,
.seo-page h1,
.seo-page h2,
.seo-page h3,
.seo-section-head h2,
.seo-faq .faq-intro h2,
.ppc-page h1,
.ppc-page h2,
.ppc-page h3,
.ppc-section-head h2,
.ppc-hero-card .card-title,
.wd-section-head h2,
.stat-card strong,
.stat-card .stat-num,
.numbers strong,
.metric strong {
  font-family: var(--font-display) !important;
  font-feature-settings: "ss01" 1, "cv01" 1;
}

/* Heading weight + tracking refinement for an expensive, confident feel. */
h1,
.page-hero h1,
.hero h1,
.seo-page h1,
.ppc-page h1 {
  font-weight: 800 !important;
  letter-spacing: -0.022em !important;
  line-height: 1.06 !important;
}

h2,
.section-head h2,
.split-head h2,
.seo-section-head h2,
.ppc-section-head h2,
.wd-section-head h2,
.seo-faq .faq-intro h2 {
  font-weight: 700 !important;
  letter-spacing: -0.018em !important;
  line-height: 1.12 !important;
}

h3,
.section-head h3,
.seo-page h3,
.ppc-page h3 {
  font-weight: 700 !important;
  letter-spacing: -0.012em !important;
  line-height: 1.2 !important;
}

h4, h5, h6 {
  font-weight: 600 !important;
  letter-spacing: -0.008em !important;
}

/* Big stat numbers read as a premium display element. */
.stat-card strong,
.stat-card .stat-num,
.numbers strong,
.metric strong,
.ppc-score-card span,
.ppc-process-grid span {
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

/* Body copy on Inter with a refined rhythm. */
body,
p,
li,
.lead,
.section-head p,
.split-head p {
  font-family: var(--font-body) !important;
}

p, li {
  letter-spacing: -0.003em;
}

.lead,
.section-head > p,
.split-head > p,
.page-hero p,
.hero p {
  letter-spacing: -0.006em;
}

/* Eyebrows / kickers: refined uppercase label in the body font. */
.eyebrow,
.kicker,
.section-head .eyebrow,
.seo-kicker,
.ppc-kicker,
.wd-kicker {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

/* Buttons: crisp Inter label, premium tracking (heights unchanged). */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
a.btn,
button.btn,
.ppc-actions > .btn,
.wd-actions > .btn {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.005em !important;
}

/* Navigation + brand wordmark feel a touch more designed. */
.nav-links a,
.main-nav a,
.site-nav a {
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  letter-spacing: -0.002em;
}

.brand,
.logo,
.site-brand,
.brand-name {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

/* =====================================================================
   Premium component polish: cards, testimonials, footer.
   Builds on existing layout; refines depth, borders, motion and color
   to read as expensive and intentional. No structural/markup changes.
   ===================================================================== */

/* ---- Cards: unified premium surface + motion -------------------------- */
.industry-card,
.service-card,
.stage-card,
.process-card,
.reason-card,
.case-card,
.price-card,
.audit-card,
.platform-card {
  border: 1px solid rgba(20, 20, 26, 0.08) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffdfc 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 30px rgba(17, 17, 22, 0.05) !important;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease !important;
}

.industry-card:hover,
.service-card:hover,
.stage-card:hover,
.process-card:hover,
.reason-card:hover,
.case-card:hover,
.price-card:hover,
.audit-card:hover,
.platform-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(225, 29, 42, 0.28) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 26px 50px rgba(17, 17, 22, 0.12),
    0 8px 22px rgba(225, 29, 42, 0.10) !important;
}

/* Featured / highlighted cards keep emphasis but gain refined depth. */
.stage-card.highlight,
.reason-card.featured {
  box-shadow:
    0 18px 44px rgba(17, 17, 22, 0.16),
    0 6px 18px rgba(225, 29, 42, 0.14) !important;
}

/* Card media gets a crisp, contained frame. */
.industry-card .industry-media {
  border-radius: 12px 12px 0 0 !important;
  overflow: hidden !important;
}

.industry-card .industry-media img {
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.industry-card:hover .industry-media img {
  transform: scale(1.045) !important;
}

/* Card "stat" line reads as a premium accent. */
.stage-card small strong,
.industry-card .mini-metrics strong {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
  color: var(--color-ink) !important;
}

/* ---- Testimonials: editorial, premium quote card --------------------- */
.testimonial {
  position: relative !important;
  border: 1px solid rgba(20, 20, 26, 0.07) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf8 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 44px rgba(17, 17, 22, 0.07) !important;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: clamp(6px, 1.6vw, 18px);
  left: clamp(22px, 4vw, 44px);
  font-family: var(--font-display);
  font-size: clamp(80px, 9vw, 132px);
  font-weight: 800;
  line-height: 1;
  color: rgba(225, 29, 42, 0.12);
  pointer-events: none;
}

.testimonial blockquote {
  position: relative;
  z-index: 1;
  font-size: clamp(1.06rem, 1.45vw, 1.3rem) !important;
  line-height: 1.7 !important;
  letter-spacing: -0.008em !important;
  color: #2a2a32 !important;
}

.testimonial figcaption strong {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: var(--color-ink) !important;
}

.testimonial figcaption span {
  color: var(--color-red) !important;
  font-weight: 600 !important;
}

.testimonial-portrait {
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 5px rgba(225, 29, 42, 0.18),
    0 14px 30px rgba(17, 17, 22, 0.16) !important;
}

/* ---- Footer: deeper premium red, refined links + socials ------------- */
.home-footer {
  background:
    radial-gradient(60% 80% at 100% 100%, rgba(225, 29, 42, 0.13), transparent 58%),
    radial-gradient(52% 60% at 0% 0%, rgba(225, 29, 42, 0.08), transparent 58%),
    linear-gradient(180deg, #1b1b1f 0%, #222227 54%, #19191d 100%) !important;
  border-top: 1px solid rgba(225, 29, 42, 0.28) !important;
}

.footer {
  background:
    radial-gradient(circle at top right, rgba(225, 29, 42, 0.18), transparent 34%),
    var(--color-ink) !important;
}

.home-footer h4::after,
.footer h4::after {
  background: linear-gradient(90deg, var(--color-red), rgba(225, 29, 42, 0)) !important;
}

.home-footer .footer-links a,
.footer-links a {
  transition: color 180ms ease, transform 180ms ease !important;
}

.home-footer .footer-links a:hover,
.footer-links a:hover {
  color: #ffffff !important;
  transform: translateX(3px) !important;
}

.home-footer .social-row a,
.footer .social-row a {
  transition: background-color 200ms ease, transform 200ms ease, color 200ms ease !important;
}

.home-footer .social-row a:hover,
.footer .social-row a:hover {
  background: var(--color-red) !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
}

.footer-tags a:hover,
.partner-row span:hover {
  border-color: rgba(225, 29, 42, 0.45) !important;
  background: rgba(225, 29, 42, 0.10) !important;
}

/* =====================================================================
   PPC page large-screen refinements.
   1) Hero: tighter vertical rhythm + balanced columns so it sits closer
      to the viewport on big screens, with the highlight card centered.
   2) "Why Tech Digitics" (.ppc-two-col): widen the body copy column so it
      no longer reads empty, and fill the side stat card's vertical space.
   ===================================================================== */
@media (min-width: 1101px) {
  /* ---- Hero: fit + alignment ---- */
  body.ppc-page .ppc-hero {
    padding-top: clamp(36px, 3vw, 56px) !important;
    padding-bottom: clamp(40px, 3.2vw, 60px) !important;
  }

  body.ppc-page .ppc-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.72fr) !important;
    align-items: center !important;
    gap: clamp(40px, 3.8vw, 56px) !important;
  }

  body.ppc-page .ppc-hero-copy {
    max-width: 100% !important;
  }

  body.ppc-page .ppc-hero-copy h1 {
    font-size: clamp(2.3rem, 3.2vw, 3.25rem) !important;
    line-height: 1.07 !important;
    margin-bottom: clamp(14px, 1.4vw, 20px) !important;
  }

  body.ppc-page .ppc-hero-copy > p {
    font-size: clamp(1rem, 1.08vw, 1.12rem) !important;
    margin-bottom: clamp(20px, 2vw, 28px) !important;
  }

  /* ---- "Why Tech Digitics": wider copy + balanced side card ---- */
  body.ppc-page .ppc-two-col {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.74fr) !important;
    align-items: stretch !important;
    gap: clamp(44px, 4.4vw, 76px) !important;
  }

  body.ppc-page .ppc-two-col > div > p,
  body.ppc-page .ppc-two-col > div > .ppc-red-list,
  body.ppc-page .ppc-two-col > div > .ppc-red-list li {
    max-width: 100% !important;
  }

  body.ppc-page .ppc-two-col > div > h2 {
    max-width: 18ch !important;
  }

  /* Spread the stat card's content to fill its full height. */
  body.ppc-page .ppc-stat-card {
    max-width: 100% !important;
    height: 100% !important;
    justify-content: space-evenly !important;
    gap: clamp(10px, 1.4vw, 18px) !important;
    padding: clamp(28px, 2.6vw, 40px) !important;
  }
}

/* =====================================================================
   Mobile horizontal snap-scroll rails (≤640px)
   Converts tall vertical card stacks into one-row scroll rails.
   Industry standard: 82vw cards peek ~10% of the next card, snap-scroll,
   hidden scrollbar, momentum scroll on iOS.
   ===================================================================== */
@media (max-width: 640px) {

  /* --- Shared rail geometry ------------------------------------------ */
  .home-page .stage-grid,
  .home-page .industry-showcase,
  .home-page .home-blog-grid,
  .home-page .why-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    gap: 14px !important;
    /* Trailing padding so the last card has breathing room */
    padding-right: 20px !important;
    padding-bottom: 0 !important;
    /* Reset any competing grid declarations */
    grid-template-columns: unset !important;
    grid-auto-flow: unset !important;
    grid-auto-columns: unset !important;
    grid-template-rows: unset !important;
    flex-wrap: nowrap !important;
    transform: none !important;
  }

  /* Hide browser scrollbar visually (touch gesture still works) */
  .home-page .stage-grid::-webkit-scrollbar,
  .home-page .industry-showcase::-webkit-scrollbar,
  .home-page .home-blog-grid::-webkit-scrollbar,
  .home-page .why-grid::-webkit-scrollbar {
    display: none !important;
  }

  /* --- Card sizing: 82vw shows 1 full card + ~10% peek of the next --- */
  .home-page .stage-grid .stage-card,
  .home-page .industry-showcase .industry-card,
  .home-page .home-blog-grid .home-blog-card,
  .home-page .why-grid .reason-card {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    max-width: 340px !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
  }

  /* Restore blog card media that was compressed */
  .home-page .home-blog-grid .home-blog-card .home-blog-media {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
  }

  /* Restore industry card media */
  .home-page .industry-showcase .industry-card .industry-media {
    aspect-ratio: 4 / 3 !important;
    width: 100% !important;
  }

  /* --- Client logos: 4-column compact static grid -------------------- */
  /* 35 logos × 56px ≈ 9 rows at 4-col vs 18 rows at 2-col */
  .home-page .home-brand-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }

  .home-page .home-brand-grid .brand-card,
  .home-page .home-brand-grid .logo-brand {
    min-height: 52px !important;
    padding: 8px !important;
  }

  .home-page .home-brand-grid .brand-card img,
  .home-page .home-brand-grid .logo-brand img {
    max-height: 28px !important;
  }
}

/* =====================================================================
   Global Testimonials + Contact Form System
   Single source of truth used across all pages.
   ===================================================================== */

.testimonial-section {
  background: linear-gradient(180deg, #fff 0%, #fff9f7 100%) !important;
}

.testimonial-section .testimonial-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  grid-auto-flow: initial !important;
  grid-auto-columns: initial !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--red) #f3e6e2 !important;
  padding: 4px 28px 40px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.testimonial-section .testimonial-track > .testimonial {
  flex: 0 0 clamp(280px, 46vw, 520px) !important;
  width: clamp(280px, 46vw, 520px) !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 1px solid rgba(20, 20, 26, 0.1) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(17, 17, 22, 0.06) !important;
  padding: clamp(20px, 2.4vw, 30px) !important;
  margin: 0 !important;
  text-align: left !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  animation: none !important;
}

.testimonial-section .testimonial-track > .testimonial blockquote {
  margin: 0 0 16px !important;
  color: rgba(20, 20, 26, 0.84) !important;
  line-height: 1.65 !important;
}

.testimonial-section .testimonial-track > .testimonial figcaption {
  color: rgba(20, 20, 26, 0.66) !important;
}

.testimonial-section .testimonial-track > .testimonial figcaption strong {
  color: #14141a !important;
}

.contact-section .contact-grid {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr) !important;
  gap: clamp(18px, 3vw, 36px) !important;
  align-items: start !important;
}

.contact-section .contact-form,
.audit-form-section .contact-form {
  border: 1px solid rgba(20, 20, 26, 0.1) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 14px 30px rgba(17, 17, 22, 0.06) !important;
  padding: clamp(18px, 2.5vw, 28px) !important;
}

.contact-section .contact-form .form-grid,
.audit-form-section .contact-form .form-grid {
  gap: 12px !important;
}

.contact-section .contact-form :is(input, select, textarea, .captcha-box),
.audit-form-section .contact-form :is(input, select, textarea, .captcha-box) {
  border: 1px solid rgba(20, 20, 26, 0.14) !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.contact-section .contact-form :is(.btn.full, .btn[type="submit"], button.btn),
.audit-form-section .contact-form :is(.btn.full, .btn[type="submit"], button.btn) {
  width: 100% !important;
  justify-content: center !important;
}

@media (max-width: 900px) {
  .testimonial-section .testimonial-track {
    gap: 16px !important;
    padding: 4px 18px 36px !important;
  }

  .testimonial-section .testimonial-track > .testimonial {
    flex: 0 0 clamp(260px, 72vw, 420px) !important;
    width: clamp(260px, 72vw, 420px) !important;
  }

  .contact-section .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .testimonial-section .testimonial-track {
    gap: 14px !important;
    padding: 4px 16px 32px !important;
  }

  .testimonial-section .testimonial-track > .testimonial {
    flex: 0 0 84vw !important;
    width: 84vw !important;
  }
}

/* SEO pricing: featured card must be red — added last so design-system white bg
   cannot override via source-order with equal !important specificity */
.seo-page .seo-price-grid .price-card.featured {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
  box-shadow:
    0 18px 48px rgba(225, 29, 42, 0.36),
    0 6px 16px rgba(225, 29, 42, 0.22) !important;
}
.seo-page .seo-price-grid .price-card.featured h3,
.seo-page .seo-price-grid .price-card.featured h4 {
  color: #fff !important;
}
.seo-page .seo-price-grid .price-card.featured p {
  color: rgba(255, 255, 255, 0.82) !important;
}
.seo-page .seo-price-grid .price-card.featured > span {
  color: rgba(255, 255, 255, 0.72) !important;
}
.seo-page .seo-price-grid .price-card.featured h3 {
  border-bottom-color: rgba(255, 255, 255, 0.22) !important;
}
.seo-page .seo-price-grid .price-card.featured .btn {
  background: #fff !important;
  color: var(--red) !important;
  border-color: #fff !important;
}
.seo-page .seo-price-grid .price-card.featured:hover {
  background: #c91a1a !important;
  border-color: #c91a1a !important;
  transform: translateY(-4px) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBAL CONSISTENCY LAYER — authoritative scale (loads last, wins)
   Typography · Containers · Sections · Buttons · Leads · Eyebrows
   Goal: every page shares one type ramp, one width, one rhythm.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   1. TYPOGRAPHY — one fluid ramp for all headings
   High specificity (html body + element) beats per-section overrides.
   ───────────────────────────────────────────── */
html body h1,
html body .h1,
html body .page-hero h1,
html body .hero h1,
html body .hero-copy h1,
html body .blog-hero-copy h1 {
  font-size: var(--fs-h1) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  font-weight: 800 !important;
}

html body h2,
html body .h2,
html body .section-head h2,
html body .split-head h2,
html body .ppc-section-head h2,
html body .social-section-head h2,
html body .seo-section-head h2,
html body .wd-section-head h2 {
  font-size: var(--fs-h2) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.015em !important;
  font-weight: 800 !important;
}

/* Page-specific HERO h1 — match generic h1 across every page template.
   Specificity bumped (3 classes) to beat hardcoded per-page clamps. */
html body .seo-page .hero-copy h1,
html body .seo-page .seo-hero h1,
html body .seo-page .page-hero h1,
html body .ppc-page .ppc-hero-copy h1,
html body .web-design-page .wd-hero-copy h1,
html body .social-media-page .social-hero-v2 h1,
html body .home-page .designer-hero h1,
html body .audit-page .page-hero h1,
html body .finance-page .page-hero h1 {
  font-size: var(--fs-h1) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

/* Page-specific section h2 — keep all section heads on the same size */
html body .seo-page .seo-section-copy h2,
html body .seo-page .trusted-head h2,
html body .seo-page .enterprise-intro h2,
html body .seo-page .audit-copy h2,
html body .seo-page .seo-final-cta h2,
html body .web-design-page .wd-process .wd-dark-copy h2,
html body .home-page .quality-copy h2 {
  font-size: var(--fs-h2) !important;
  line-height: 1.18 !important;
}

html body h3,
html body .h3,
html body .section-head h3,
html body .card h3,
html body .service-card h3,
html body .feature-panel h3,
html body .ind-card h3 {
  font-size: var(--fs-h3) !important;
  line-height: 1.28 !important;
  letter-spacing: -0.01em !important;
  font-weight: 700 !important;
}

html body h4,
html body .h4 {
  font-size: var(--fs-h4) !important;
  line-height: 1.32 !important;
  font-weight: 700 !important;
}

html body h5,
html body .h5 {
  font-size: var(--fs-h5) !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}

/* Lead / intro paragraphs */
html body .lede,
html body .social-lede,
html body .hero-copy p,
html body .hero p.lede,
html body .section-head p,
html body .ppc-section-head p,
html body .social-section-head p,
html body .seo-section-head p {
  font-size: var(--fs-lede) !important;
  line-height: 1.6 !important;
}

/* Body copy default */
html body p,
html body li,
html body td {
  font-size: var(--fs-body);
  line-height: var(--line-height-body);
}

/* Eyebrows / pills / small labels — uniform */
html body .eyebrow {
  font-size: var(--fs-small) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

html body .filter-pill,
html body .tab-btn,
html body .helper-text,
html body .badge {
  font-size: var(--fs-small) !important;
}

html body small,
html body .caption {
  font-size: var(--fs-caption) !important;
}

/* ─────────────────────────────────────────────
   2. CONTAINER — single width + gutter everywhere
   ───────────────────────────────────────────── */
html body .container,
html body main > section > .container,
html body main > .container,
html body footer > .container,
html body .home-footer > .container,
html body .page-hero > .container,
html body .hero > .container {
  width: min(100% - calc(var(--gutter) * 2), var(--content-width)) !important;
  max-width: var(--content-width) !important;
  margin-inline: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ─────────────────────────────────────────────
   3. SECTION RHYTHM — consistent vertical padding
   ───────────────────────────────────────────── */
html body main > section.section,
html body main > section:not([class*="hero"]):not(.section-tight) {
  padding-top: var(--section-y) !important;
  padding-bottom: var(--section-y) !important;
}

html body .section-tight {
  padding-top: var(--section-y-tight) !important;
  padding-bottom: var(--section-y-tight) !important;
}

/* ─────────────────────────────────────────────
   4. BUTTONS — one size system
   ───────────────────────────────────────────── */
html body .btn,
html body .btn-primary,
html body .btn-light,
html body .btn-outline,
html body .social-btn,
html body .ppc-arrow-btn,
html body .wd-arrow-btn {
  min-height: var(--btn-height) !important;
  height: var(--btn-height) !important;
  padding: 0 var(--btn-pad-x) !important;
  font-size: var(--btn-font) !important;
  font-weight: 700 !important;
  border-radius: var(--btn-radius) !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

html body .btn-small,
html body .btn.btn-small {
  min-height: var(--btn-height-sm) !important;
  height: var(--btn-height-sm) !important;
  padding: 0 16px !important;
  font-size: var(--fs-small) !important;
}

html body .btn-large,
html body .btn.btn-large {
  min-height: var(--btn-height-lg) !important;
  height: var(--btn-height-lg) !important;
  padding: 0 32px !important;
}

/* ─────────────────────────────────────────────
   5. MOBILE — proportional tightening (≤640px)
   ───────────────────────────────────────────── */
@media (max-width: 640px) {
  html body h1,
  html body .h1,
  html body .page-hero h1,
  html body .hero h1,
  html body .hero-copy h1,
  html body .blog-hero-copy h1 {
    font-size: clamp(1.85rem, 7vw, 2.4rem) !important;
  }

  html body h2,
  html body .h2,
  html body .section-head h2,
  html body .split-head h2 {
    font-size: clamp(1.5rem, 6vw, 1.9rem) !important;
  }

  html body h3,
  html body .h3,
  html body .section-head h3,
  html body .card h3,
  html body .service-card h3,
  html body .feature-panel h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem) !important;
  }

  html body .lede,
  html body .hero-copy p,
  html body .section-head p {
    font-size: 1rem !important;
  }
}
