/* Maverick front overrides */

/* Contact page — full dark canvas like Acjon contact-me */
body.page-contact-dark,
body.page-contact-dark #smooth-wrapper,
body.page-contact-dark #smooth-content,
body.page-contact-dark main {
  background-color: #110C04;
}

/* Contact dark page: keep white nav links + menu button */
body.page-contact-dark .tp-header-menu > nav > ul > li > a {
  color: var(--tp-common-white);
}
body.page-contact-dark .tp-header-8-bar span {
  color: var(--tp-common-white);
}
body.page-contact-dark.header-sticky .tp-header-menu > nav > ul > li > a,
body.page-contact-dark #header-sticky.header-sticky .tp-header-menu > nav > ul > li > a {
  color: var(--tp-common-white);
}

/* Contact footer-10: social arrow as link (matches template button position) */
.tp-footer-10-input > a {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: var(--tp-common-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tp-footer-10-input input[readonly] {
  cursor: default;
  pointer-events: none;
}

/* Home custom offer — dark band (matches contact-me #110C04) */
.ma-offer-heading .tp-section-subtitle {
  color: rgba(245, 247, 245, 0.65);
}
.ma-offer-heading .tp-section-title {
  margin-bottom: 16px;
  color: var(--tp-common-white);
}
.ma-offer-heading p {
  max-width: 360px;
  color: rgba(245, 247, 245, 0.75);
  line-height: 1.7;
}
.ma-offer-form.tp-contact-me-form-wrap {
  padding: 40px;
  border: 1px solid rgba(245, 247, 245, 0.1);
}
@media (max-width: 767px) {
  .ma-offer-form.tp-contact-me-form-wrap {
    padding: 24px;
  }
}
.ma-offer-form .tp-contact-me-form-input {
  margin-bottom: 16px;
}
.ma-offer-form .tp-contact-me-form-category-wrap {
  margin-bottom: 24px;
  padding-top: 8px;
}
.ma-offer-form .tp-contact-me-form-category-title {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--tp-common-white);
}
.ma-offer-form textarea {
  min-height: 110px;
}

/* Timeline range slider (home offer + contact) */
.ma-timeline-slider {
  width: 100%;
}
.ma-timeline-slider-head {
  margin-bottom: 14px;
  gap: 12px;
}
.ma-timeline-slider-value {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tp-theme-primary);
  white-space: nowrap;
}
.ma-timeline-slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--tp-theme-primary) 0%,
    var(--tp-theme-primary) var(--ma-timeline-pct, 40%),
    rgba(245, 247, 245, 0.18) var(--ma-timeline-pct, 40%),
    rgba(245, 247, 245, 0.18) 100%
  );
}
.ma-timeline-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tp-theme-primary);
  border: 2px solid #110C04;
  box-shadow: 0 0 0 1px rgba(245, 247, 245, 0.2);
  cursor: pointer;
}
.ma-timeline-slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tp-theme-primary);
  border: 2px solid #110C04;
  box-shadow: 0 0 0 1px rgba(245, 247, 245, 0.2);
  cursor: pointer;
}
.ma-timeline-slider-input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}
.ma-timeline-slider-scale {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(245, 247, 245, 0.45);
}

/* Contact connect band above shared footer */
.tp-contact-connect-ptb .tp-footer-10-wrapper {
  padding-bottom: 0;
}

/* Header CTA — Get in touch (light pages) */
.tp-header-pp-btn.tp-header-cta-light {
  color: var(--tp-common-black);
  border-color: rgba(17, 12, 4, 0.15);
}
.tp-header-pp-btn.tp-header-cta-light:hover {
  color: var(--tp-common-white);
  background-color: var(--tp-theme-primary);
  border-color: var(--tp-theme-primary);
}

/* Service Two subtitle + line — bar sits fixed 10px after the text */
.tp-section-subtitle.tp-subtitle-line,
.tp-service-inner-2-title .tp-section-subtitle {
  font-family: var(--tp-ff-unbounded);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--tp-common-black);
  opacity: 0.8;
  position: relative;
  display: inline-block !important;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
}
.tp-section-subtitle.tp-subtitle-line::before,
.tp-service-inner-2-title .tp-section-subtitle::before {
  position: absolute;
  content: "";
  background: #000;
  width: 39px;
  height: 1px;
  left: 100%;
  right: auto;
  margin-left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.tp-section-subtitle.tp-subtitle-line.white-style,
.ma-offer-heading .tp-section-subtitle.tp-subtitle-line {
  color: var(--tp-common-white);
}
.tp-section-subtitle.tp-subtitle-line.white-style::before,
.ma-offer-heading .tp-section-subtitle.tp-subtitle-line::before {
  background: #fff;
}

/* Match breadcrumb labels to same 10px gap */
.tp-breadcrumb-s1-subtitle::after {
  margin-left: 10px;
}

/* Contact page — same fonts/sizes as rest of site; keep dark theme */
.tp-contact-me-heading .tp-section-title {
  font-family: var(--tp-ff-unbounded) !important;
  font-size: 62px !important;
  font-weight: 600 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
}
@media (max-width: 767px) {
  .tp-contact-me-heading .tp-section-title {
    font-size: 40px !important;
  }
}
.tp-contact-me-wrap {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.tp-contact-me-wrap .tp-section-subtitle.tp-subtitle-line {
  margin-bottom: 0;
}

/* Home about — Startup layout, Maverick spacing (margin only) */
.ma-about-ptb,
.ma-home-about.sa-about-ptb {
  padding-top: 0;
  padding-bottom: 0;
}
.ma-home-about .sa-about-counter-title {
  color: var(--tp-common-black);
}
.ma-home-about .sa-about-right-text p {
  color: #717171;
}

/* Home ribbons under hero — bottom spacing via margin */
.ma-home-ribbons.tp-text-slider-ptb {
  padding-bottom: 0;
}

/* Home services — Design Studio cards on white */
.ma-home-ds-service {
  padding-top: 0;
  padding-bottom: 0;
}
.ma-home-ds-service .tp-section-subtitle,
.ma-home-ds-service .tp-section-title {
  color: var(--tp-common-black);
}
.ma-home-ds-service .ds-service-heading-wrap .tp-section-subtitle {
  display: block;
  margin-bottom: 12px;
}
.ma-home-ds-service .ds-service-item::before {
  background-color: var(--tp-theme-primary);
}
.ma-home-ds-service .ds-service-item:hover .ds-service-item-title a,
.ma-home-ds-service .ds-service-item:hover .ds-service-item-btn a {
  color: var(--tp-common-black);
}
.ma-home-ds-service .ds-service-item:hover .ds-service-item-btn-icon {
  color: var(--tp-common-white);
  background-color: var(--tp-common-black);
}

/* Service icons — same footprint as Acjon template, slightly larger */
.ds-service-item-icon img,
.tp-service-item-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: inline-block;
}

/* Services page cards — black + white content; hover = theme + black content */
.tp-service-area .tp-service-item {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: var(--tp-common-black);
  border-color: var(--tp-common-black);
}
.tp-service-area .tp-service-item::before {
  position: absolute;
  left: 0;
  top: 0;
  height: 0;
  width: 100%;
  z-index: 0;
  content: "";
  background-color: var(--tp-theme-primary);
  transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
  pointer-events: none;
}
.tp-service-area .tp-service-item:hover::before {
  top: auto;
  bottom: 0;
  height: 100%;
}
.tp-service-area .tp-service-item > * {
  position: relative;
  z-index: 1;
}

/* Default: white content on black cards (icons stay white — no invert) */
.tp-service-area .tp-service-item-icon img,
.tp-service-item-box .tp-service-item-icon img {
  filter: none;
}
.tp-service-area .tp-service-item-title,
.tp-service-area .tp-service-item-title a,
.tp-service-area .tp-service-item-btn a {
  color: var(--tp-common-white);
}
.tp-service-area .tp-service-item p {
  color: rgba(245, 247, 245, 0.72);
}
.tp-service-area .tp-service-item-btn a::before {
  background-color: var(--tp-common-white);
}

/* Hover: theme fill + black content (icons invert to black) */
.tp-service-area .tp-service-item:hover {
  border-color: var(--tp-theme-primary);
  background-color: transparent;
}
.tp-service-area .tp-service-item:hover .tp-service-item-icon img,
.tp-service-item-box .tp-service-item:hover .tp-service-item-icon img {
  filter: invert(1);
}
.tp-service-area .tp-service-item:hover .tp-service-item-title,
.tp-service-area .tp-service-item:hover .tp-service-item-title a,
.tp-service-area .tp-service-item:hover p,
.tp-service-area .tp-service-item:hover .tp-service-item-btn a {
  color: var(--tp-common-black);
}
.tp-service-area .tp-service-item:hover .tp-service-item-btn a::before {
  background-color: var(--tp-common-black);
}

/* Home — strip section padding; spacing via margin utilities only */
.ma-project-area,
.ma-testimonial-ptb,
.ma-faq-ptb {
  padding-top: 0;
  padding-bottom: 0;
}

/* Home blog — keep inner top/bottom padding (section has background) */
.ma-blog-ptb {
  padding-top: 120px;
  padding-bottom: 120px;
}

.ma-blog-ptb .ma-blog-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Home testimonials — proper photo crop (replaces theme placeholders) */
.ma-testimonial-thumb img {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
}

/* Portfolio / home project cards — lock 4:3 (800×600) so mixed sources stay even */
.ds-portfolio-item-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ds-portfolio-item-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}
.ds-portfolio-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Project detail prev/next — match Acjon nav.jpg size (193×148) when using cover images */
.tp-project-navigation-thumb {
  color: inherit;
  text-decoration: none;
}
.tp-project-navigation-thumb:hover {
  color: inherit;
}
.tp-project-navigation-thumb img {
  width: 193px;
  height: 148px;
  object-fit: cover;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .tp-project-navigation-thumb img {
    width: 100px;
    height: 76px;
    margin-right: 10px;
  }
  .tp-project-navigation-thumb img.ml-30 {
    margin-right: 0;
    margin-left: 10px;
  }
}
.tp-project-navigation-thumb .tp-project-navigation-title {
  margin-bottom: 0;
}

/* Blog detail — Quill / semantic HTML inside Acjon postbox shell */
.postbox-body {
  text-align: left;
}
.postbox-body > *:first-child {
  margin-top: 0;
}
.postbox-body h2,
.postbox-body h3 {
  font-weight: 500;
  color: var(--tp-common-black);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}
.postbox-body h2 {
  font-size: 1.75rem;
}
.postbox-body h3 {
  font-size: 1.35rem;
}
.postbox-body p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--tp-text-body);
}
.postbox-body ul,
.postbox-body ol {
  margin: 0 0 1.5rem 1.25rem;
  padding: 0;
  color: var(--tp-text-body);
  line-height: 1.8;
}
.postbox-body li {
  margin-bottom: 0.5rem;
}
.postbox-body a {
  color: var(--tp-common-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.postbox-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--tp-theme-primary);
  background: rgba(1, 1, 3, 0.03);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--tp-common-black);
}
.postbox-body blockquote p:last-child {
  margin-bottom: 0;
}
.postbox-body pre,
.postbox-body .ql-syntax {
  display: block;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  background: #110C04;
  color: #F5F7F5;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.postbox-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.75rem 0;
}
.postbox-body .ql-align-center {
  text-align: center;
}
.postbox-body .ql-align-right {
  text-align: right;
}
.postbox-body .ql-align-justify {
  text-align: justify;
}

/* Project store CTAs + QR — badges stacked, QR beside */
.tp-project-details-shedule:has(.mv-project-app-cta) ul {
  margin-bottom: 18px;
}
.mv-project-app-cta {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.mv-project-coming-soon {
  margin: 0;
  max-width: 18rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5a6b76;
}
.mv-project-app-cta-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 14px;
}
.mv-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mv-store-badges--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.mv-store-badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 148px;
  height: 44px;
  padding: 0 12px 0 10px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mv-store-badge:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fff;
}
.mv-store-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.mv-store-badge-icon img,
.mv-store-badge-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.mv-store-badge-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}
.mv-store-badge-eyebrow {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.92;
  white-space: nowrap;
}
.mv-store-badge-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.mv-project-privacy-link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: #010103;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mv-project-privacy-link:hover {
  color: #7863FF;
}
.mv-project-legal-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 10px;
  white-space: nowrap;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mv-project-legal-sep {
  display: inline-block;
  flex-shrink: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  opacity: 0.45;
  font-size: 13px;
  line-height: 1;
  color: #010103;
}
.mv-project-legal-sep::before {
  content: "|";
}
.mv-privacy-lead .mv-project-legal-nav {
  margin-top: 4px;
}
.mv-project-privacy-link.is-current {
  color: #7863FF;
  font-weight: 600;
  cursor: default;
}
.mv-project-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.mv-project-qr img {
  width: 104px;
  height: 104px;
  border: 1px solid rgba(1, 1, 3, 0.08);
  background: #fff;
}
.mv-project-qr span {
  font-size: 11px;
  color: #5a5a5a;
  white-space: nowrap;
}
.tp-project-details-2-content p {
  text-transform: none;
}
.tp-project-details-2-title-wrap .tp-section-title.tl-unbounded.fs-42 {
  max-width: 11em;
}
.tp-project-details-shedule {
  padding-bottom: 28px;
}
@media (max-width: 575px) {
  .mv-project-app-cta-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}
.mv-privacy-page {
  max-width: 720px;
  text-align: left;
}
.mv-privacy-lead {
  margin-bottom: 10px;
}
.mv-privacy-lead .tp-breadcrumb-s1-subtitle {
  margin-bottom: 12px;
}
.mv-privacy-page h1 {
  margin-bottom: 12px;
}
.mv-privacy-page .mv-privacy-meta {
  color: #5a6b76;
  margin-bottom: 28px;
}
.mv-privacy-page h2 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
  font-weight: 500;
  color: var(--tp-common-black, #010103);
}
.mv-privacy-page p,
.mv-privacy-page li {
  font-size: 1rem;
  line-height: 1.6;
}
.mv-privacy-page p {
  margin-bottom: 1rem;
}
.mv-privacy-page ul,
.mv-privacy-page ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.mv-privacy-page li {
  margin: 6px 0;
}
.mv-privacy-page a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mv-privacy-page a:hover {
  color: #7863FF;
}
.tp-breadcrumb-s7-content p {
  margin-bottom: 0;
}
.mv-download-interstitial {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.mv-download-interstitial .mv-store-badges {
  justify-content: center;
  margin-top: 28px;
}
.mv-download-interstitial .mv-store-badges--stack {
  align-items: center;
}

/* Footer bottom — text brand + smaller let's talk */
.mv-footer-brand {
  display: inline-block;
  font-family: var(--tp-ff-unbounded);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.mv-footer-brand:hover {
  color: #fff;
  opacity: 0.85;
}
.tp-footer-7-bottom-wrap .ds-footer-btn .tp-btn-circle {
  width: 112px;
  height: 112px;
  font-size: 14px;
}
.tp-footer-7-bottom-wrap .ds-footer-btn .tp-btn-circle span {
  margin-bottom: 4px;
}
.tp-footer-7-bottom {
  padding-top: 28px;
  padding-bottom: 8px;
}
@media (max-width: 767px) {
  .mv-footer-brand {
    font-size: 28px;
  }
  .tp-footer-7-bottom-wrap .ds-footer-btn .tp-btn-circle {
    width: 96px;
    height: 96px;
    font-size: 13px;
  }
}

/* Home / services image slots — fit generated assets cleanly */
.ma-home-about .sa-about-left-thumb {
  max-width: 320px;
}
.ma-home-about .sa-about-left-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.ma-home-about .sa-about-right-thumb {
  width: 390px;
  max-width: 100%;
  max-height: 380px;
  overflow: hidden;
}
.ma-home-about .sa-about-right-thumb img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.ma-faq-thumb > img {
  display: block;
  width: 360px;
  max-width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.ma-faq-thumb-2 {
  /* keep flush against circular photo */
  margin-left: -2px;
}
.tp-about-banner-ptb .sa-banner-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-top: 0;
}
@media (max-width: 991px) {
  .ma-home-about .sa-about-left-thumb {
    max-width: 100%;
  }
  .ma-home-about .sa-about-right-thumb img {
    height: auto;
    max-height: 420px;
  }
  .ma-faq-thumb > img {
    width: min(360px, 100%);
    height: auto;
    aspect-ratio: 1;
    max-height: none;
  }
}

/* Blog index pagination — aligned circular controls */
.tp-pagenation-wrap ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tp-pagenation-wrap ul li {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.tp-pagenation-wrap ul li a {
  box-sizing: border-box;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--tp-common-black);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}
.tp-pagenation-wrap ul li a i {
  line-height: 1;
  font-size: 14px;
}
.tp-pagenation-wrap ul li.disabled a {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}
.tp-pagenation-wrap ul li.disabled a:hover {
  background: transparent;
  color: var(--tp-common-black);
}

/* Blog cards — same tint default + hover; image still zooms on hover */
.tp-blog-area .dgm-blog-item::after,
.ma-blog-ptb .dgm-blog-item::after,
.tp-blog-area .dgm-blog-item:hover::after,
.ma-blog-ptb .dgm-blog-item:hover::after {
  background-color: transparent;
  background-image: linear-gradient(
    to top,
    rgba(1, 1, 3, 0.82) 0%,
    rgba(1, 1, 3, 0.5) 45%,
    rgba(1, 1, 3, 0.4) 100%
  );
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.tp-blog-area .dgm-blog-content,
.ma-blog-ptb .dgm-blog-content {
  z-index: 2;
}

/* Nav brand text */
.mv-nav-brand {
  display: inline-block;
  font-family: var(--tp-ff-unbounded);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tp-common-white);
  text-decoration: none;
  white-space: nowrap;
}
.tp-header-5-menu ~ * .mv-nav-brand,
.header-sticky .mv-nav-brand,
body:not(.page-contact-dark) #header-sticky.header-sticky .mv-nav-brand {
  color: var(--tp-common-black);
}
/* Light pages (non-home/contact): black brand */
body:not(.page-contact-dark) .tp-header-area:not(.header-transparent) .mv-nav-brand,
.tp-header-border .mv-nav-brand {
  color: var(--tp-common-black);
}
/* Offcanvas brand on dark panel */
.mv-nav-brand--offcanvas {
  color: var(--tp-common-white) !important;
  font-size: 20px;
}

.mv-nav-brand--dark,
.header-sticky .mv-nav-brand {
  color: var(--tp-common-black);
}
body.page-contact-dark .header-sticky .mv-nav-brand,
body.page-contact-dark .mv-nav-brand {
  color: var(--tp-common-white);
}

.mv-field-error {
  margin: 8px 0 0;
  color: #c62828;
  font-size: 13px;
  line-height: 1.4;
}
.page-contact-dark .mv-field-error,
.ma-offer-form .mv-field-error,
.tp-footer-7-area .mv-field-error {
  color: #ffb4b4;
}

.mv-sticky-cta {
  display: none;
}
.mv-cookie {
  position: fixed;
  z-index: 100;
  left: 16px;
  right: 16px;
  bottom: 16px;
  transition: right 0.3s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  width: auto;
  max-width: none;
  box-sizing: border-box;
  padding: 14px 16px 14px 14px;
  border: 1px solid #eceff3;
  border-radius: 18px;
  background: #fff;
  color: #1c1c1e;
  box-shadow: 0 8px 28px rgba(28, 28, 30, 0.12);
}
.mv-cookie[hidden] {
  display: none !important;
}
.mv-cookie-icon {
  flex-shrink: 0;
  display: flex;
}
.mv-cookie-copy {
  min-width: 0;
  flex: 1;
}
.mv-cookie-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}
.mv-cookie-copy p {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #8b919a;
}
.mv-cookie-copy a {
  color: var(--tp-theme-primary);
  text-decoration: underline;
}
.mv-cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.mv-cookie-decline,
.mv-cookie-accept {
  border: 0;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.mv-cookie-decline {
  background: transparent;
  color: #3a3a3c;
  padding: 10px 12px;
}
.mv-cookie-accept {
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--tp-theme-primary);
  color: #fff;
  font-family: var(--tp-ff-unbounded);
  font-size: 13px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
body.mv-cookie-open:has(.back-to-top-btn-show) .mv-cookie {
  right: 72px;
}
body.mv-cookie-open .back-to-top-wrapper.back-to-top-btn-show {
  right: 16px;
  bottom: 29px;
}
.tp-split-title {
  overflow-wrap: normal;
  word-break: keep-all;
  max-width: 100%;
}
.mv-split-word,
.tp-breadcrumb-s7-title span.mv-split-word,
.tp-section-title span.mv-split-word,
.postbox-title span.mv-split-word {
  display: inline-flex !important;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  vertical-align: baseline;
}
.mv-split-word .char {
  flex: 0 0 auto;
}
@media (max-width: 1199px) {
  .tp-split-title br,
  .tp-section-title.tl-unbounded br,
  .tp-breadcrumb-s7-title br,
  .postbox-title br {
    display: inline-block !important;
    width: 0.35em;
    height: 0;
    overflow: hidden;
  }
  .ma-offer-heading .tp-section-title,
  .ds-service-heading-wrap .tp-section-title,
  .ma-testimonial-title-box .tp-section-title {
    font-size: clamp(28px, 4.6vw, 48px);
    line-height: 1.15;
  }
}
.tp-footer-10-copyright-menu a + a {
  margin-left: 18px;
}

@media (max-width: 767px) {
  #header-sticky .row > [class*="col-"] {
    min-width: 0;
  }
  .mv-nav-brand {
    font-size: 15px;
  }
  .tp-header-8-bar {
    padding: 8px 12px;
  }
  .tp-header-8-bar > span:first-child {
    display: none;
  }
  .tp-header-8-bar span {
    font-size: 12px;
  }
  .tp-header-8-bar span svg {
    width: 18px;
    height: auto;
    margin-left: 4px;
  }
  .mv-cookie {
    left: 12px;
    right: 12px;
    bottom: 72px;
    gap: 10px;
    padding: 12px;
  }
  body.page-contact-dark .mv-cookie,
  body.page-thank-you .mv-cookie {
    bottom: 12px;
  }
  .mv-sticky-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 90;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 48px;
    border-radius: 999px;
    background: #7963ff;
    color: #fff;
    font-family: var(--tp-ff-unbounded);
    font-size: 14px;
    letter-spacing: -0.02em;
    text-decoration: none;
  }
  body:not(.page-contact-dark):not(.page-thank-you) #smooth-wrapper {
    padding-bottom: 72px;
  }
  body:not(.page-contact-dark):not(.page-thank-you) .back-to-top-wrapper {
    bottom: 76px;
  }
  body:not(.page-contact-dark):not(.page-thank-you) .mv-cookie {
    bottom: 72px;
  }
  body.mv-cookie-open:has(.back-to-top-btn-show) .mv-cookie {
    right: 68px;
  }
  body.mv-cookie-open:not(.page-contact-dark):not(.page-thank-you) .back-to-top-wrapper.back-to-top-btn-show {
    right: 12px;
    bottom: 84px;
  }
  body.page-contact-dark.mv-cookie-open .back-to-top-wrapper.back-to-top-btn-show,
  body.page-thank-you.mv-cookie-open .back-to-top-wrapper.back-to-top-btn-show {
    right: 12px;
    bottom: 22px;
  }
  .ma-hero-title span i svg {
    width: 42px;
    height: auto;
  }
  .tp-project-details-2-title-wrap .tp-section-title.tl-unbounded.fs-42 {
    max-width: none;
  }
  .ma-hero-title,
  .postbox-title,
  .tp-section-title,
  .tp-breadcrumb-s7-title,
  .tp-project-details-2-title {
    overflow-wrap: normal;
    word-break: normal;
  }
}

.postbox-body h2,
.postbox-body h3 {
  font-family: var(--tp-ff-unbounded);
  letter-spacing: -0.03em;
  color: var(--tp-common-black);
  line-height: 1.25;
}
.postbox-body h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 40px 0 14px;
}
.postbox-body h3 {
  font-size: 20px;
  margin: 26px 0 10px;
}
.postbox-body p {
  margin-bottom: 16px;
}
.postbox-body a {
  color: var(--tp-theme-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.postbox-body ul,
.postbox-body ol {
  margin: 6px 0 22px;
  padding-left: 0;
}
.postbox-body ul li,
.postbox-body ol li {
  margin-bottom: 10px;
  line-height: 1.65;
  color: rgba(1, 1, 3, 0.82);
}
.postbox-body ul li {
  list-style: none;
  position: relative;
  padding-left: 18px;
}
.postbox-body ul li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tp-theme-primary);
  position: absolute;
  left: 0;
  top: 0.55em;
}
.postbox-body ol {
  padding-left: 1.35rem;
}
.postbox-body ol li::marker {
  color: var(--tp-theme-primary);
  font-weight: 700;
}
.postbox-body blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--tp-theme-primary);
  background: #f6f4ff;
  border-radius: 0 16px 16px 0;
}
.postbox-body blockquote p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: #1a1a1a;
}
.postbox-body .mv-blog-callout {
  margin: 28px 0 32px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #141414;
}
.postbox-body .mv-blog-callout strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--tp-ff-unbounded);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8beff;
}
.postbox-body .mv-blog-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}
.postbox-details-author-img img,
.postbox-details-author .sidebar-widget-author-img img,
.dgm-blog-avater img {
  object-fit: contain;
  background: #efeaff;
  padding: 5px;
  border-radius: 50%;
}
.postbox-details-author .sidebar-widget-author-social {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.postbox-details-author .sidebar-widget-author-social .tp_fade_anim {
  display: inline-flex;
}
.tp-blog-details-social a span,
.sidebar-widget-author-social a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Performance + mobile: hide custom cursor chrome on touch */
html.is-mobile #magic-cursor,
body.is-mobile #magic-cursor {
  display: none !important;
}
html.is-mobile,
html.is-mobile body,
body.is-mobile {
  cursor: auto;
}

/* Faster first paint: avoid huge font-display FOIT already handled by display=swap */
.ma-hero-area {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 991px) {
  #smooth-wrapper,
  #smooth-content {
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
  }
  .ma-hero-ptb {
    padding-top: 120px;
    padding-bottom: 72px;
  }
  .ma-hero-title {
    font-size: clamp(36px, 11vw, 56px);
    line-height: 1.05;
  }
  .ma-hero-content p,
  .ma-hero-title-box p {
    font-size: 15px;
    line-height: 1.55;
    max-width: 34em;
  }
  .ds-portfolio-item-thumb img,
  .dgm-blog-thumb img {
    content-visibility: auto;
  }
  .tp-offcanvas-area {
    overscroll-behavior: contain;
  }
  /* Prefer native scroll feel — less motion jank on phones */
  .tp_fade_anim,
  .tp-split-title {
    will-change: auto;
  }
}

@media (max-width: 575px) {
  .ma-hero-ptb {
    padding-top: 108px;
    padding-bottom: 56px;
  }
  .container.container-1530 {
    padding-left: 16px;
    padding-right: 16px;
  }
  .mv-sticky-cta {
    font-size: 13px;
    height: 46px;
  }
  .ds-portfolio-item-content-hide h3,
  .ds-portfolio-item-title {
    font-size: 18px;
  }
}

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