:root {
  --primary-color: #2e7ae6;
  --primary-color-rgb: 46, 122, 230;
  --secondary-color: #58595b;
  --tertiary-color: #252525;
  --additional--light: var(--primary-color);
  --additional-rgb--light: var(--primary-color-rgb);
}

:root[color-scheme="light"] {
  --additional: var(--primary-color);
  --additional-rgb: var(--primary-color-rgb);
}

.btn-additional,
.btn-additional i {
  color: #fff;
}

a[style*="primary-color"] i {
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent--dark: var(--primary-color);
    --accent-rgb--dark: var(--primary-color-rgb);
  }
}

:root[color-scheme="dark"] {
  --accent--dark: var(--primary-color);
  --accent-rgb--dark: var(--primary-color-rgb);
  --accent: var(--primary-color);
  --accent-rgb: var(--primary-color-rgb);
}

:root[color-scheme="dark"] .bg-accent,
:root[color-scheme="dark"] .bg-additional,
:root[color-scheme="dark"] .btn-accent,
:root[color-scheme="dark"] .btn-additional,
:root[color-scheme="dark"] .tag-accent,
:root[color-scheme="dark"] .tag-additional,
:root[color-scheme="dark"] .mxd-hero-00__marquee,
:root[color-scheme="dark"] .mxd-hero-01__marquee,
:root[color-scheme="dark"] .footer-nav__counter,
:root[color-scheme="dark"] [style*="background-color: var(--primary-color)"],
:root[color-scheme="dark"] [style*="background-color:var(--primary-color)"] {
  --t-opp-bright: #ffffff;
  --t-opp-medium: #ffffff;
  --st-opp-bright: #ffffff;
  --t-bright: #ffffff;
  color: #fff;
}

:root[color-scheme="dark"] .bg-accent :is(h1, h2, h3, h4, h5, h6, p, span, a, li, em, strong, i),
:root[color-scheme="dark"] .bg-additional :is(h1, h2, h3, h4, h5, h6, p, span, a, li, em, strong, i),
:root[color-scheme="dark"] .mxd-hero-00__marquee :is(p, span, svg),
:root[color-scheme="dark"] .mxd-hero-01__marquee :is(p, span, svg),
:root[color-scheme="dark"] .footer-nav__counter :is(span, svg),
:root[color-scheme="dark"] .btn-accent i,
:root[color-scheme="dark"] .btn-additional i {
  color: #fff;
  fill: #fff;
}

:root[color-scheme="dark"] .bg-accent .tag-outline-opposite,
:root[color-scheme="dark"] .bg-additional .tag-outline-opposite {
  border-color: #fff;
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  :root:not([color-scheme="light"]) .bg-accent,
  :root:not([color-scheme="light"]) .bg-additional,
  :root:not([color-scheme="light"]) .btn-accent,
  :root:not([color-scheme="light"]) .btn-additional,
  :root:not([color-scheme="light"]) .tag-accent,
  :root:not([color-scheme="light"]) .tag-additional,
  :root:not([color-scheme="light"]) .mxd-hero-00__marquee,
  :root:not([color-scheme="light"]) .mxd-hero-01__marquee,
  :root:not([color-scheme="light"]) .footer-nav__counter,
  :root:not([color-scheme="light"]) [style*="background-color: var(--primary-color)"],
  :root:not([color-scheme="light"]) [style*="background-color:var(--primary-color)"] {
    --t-opp-bright: #ffffff;
    --t-opp-medium: #ffffff;
    --st-opp-bright: #ffffff;
    --t-bright: #ffffff;
    color: #fff;
  }

  :root:not([color-scheme="light"]) .bg-accent :is(h1, h2, h3, h4, h5, h6, p, span, a, li, em, strong, i),
  :root:not([color-scheme="light"]) .bg-additional :is(h1, h2, h3, h4, h5, h6, p, span, a, li, em, strong, i),
  :root:not([color-scheme="light"]) .mxd-hero-00__marquee :is(p, span, svg),
  :root:not([color-scheme="light"]) .mxd-hero-01__marquee :is(p, span, svg),
  :root:not([color-scheme="light"]) .footer-nav__counter :is(span, svg),
  :root:not([color-scheme="light"]) .btn-accent i,
  :root:not([color-scheme="light"]) .btn-additional i {
    color: #fff;
    fill: #fff;
  }

  :root:not([color-scheme="light"]) .bg-accent .tag-outline-opposite,
  :root:not([color-scheme="light"]) .bg-additional .tag-outline-opposite {
    border-color: #fff;
    color: #fff;
  }
}

.mxd-logo__img {
  width: 150px;
}

.mxd-logo__img--dark {
  display: none;
}

:root[color-scheme="dark"] .mxd-logo__img--light {
  display: none;
}

:root[color-scheme="dark"] .mxd-logo__img--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([color-scheme]) .mxd-logo__img--light {
    display: none;
  }

  :root:not([color-scheme]) .mxd-logo__img--dark {
    display: block;
  }
}

.hero-split {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-split__item {
  width: 100%;
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .hero-split {
    flex-direction: row;
    align-items: stretch;
  }

  .hero-split__item {
    width: auto;
  }

  .hero-split__item--sm {
    flex: 1;
  }

  .hero-split__item--lg {
    flex: 3;
  }
}

@media (max-width: 1200px) {
  .mxd-hero-fullheight,
  .mxd-hero-01,
  .mxd-hero-01__wrap,
  .mxd-hero-01__top {
    height: auto;
  }

  .mxd-hero-01 {
    padding-bottom: 0;
  }

  .mxd-hero-01__top {
    align-items: normal;
    padding-bottom: 2.4rem;
  }

  .mxd-hero-01__bottom {
    flex-direction: column-reverse;
    gap: 0;
    height: auto;
  }

  .mxd-hero-01__dash-line {
    display: none;
  }

  .mxd-hero-01__data-wrap {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.4rem;
    padding: 0 0 4rem;
  }

  .mxd-hero-01__data-btn,
  .mxd-hero-01__data-descr {
    margin-bottom: 0;
  }

  .mxd-hero-01__data-descr {
    width: 100%;
  }

  .mxd-hero-01__data-descr p {
    text-align: center;
  }

  .mxd-hero-01__data-socials ul {
    align-items: center;
  }

  .mxd-hero-01__data-socials ul li {
    justify-content: center;
  }

  .mxd-hero-01__data-socials ul li svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .mxd-hero-01__top {
    padding-top: 12.6rem;
    padding-bottom: 13.2rem;
  }
}

@media (min-width: 768px) {
  .hero-01-image.image-02 {
    right: -5rem;
  }

  .hero-01-title .hero-01-image.image-03 {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    display: block;
    width: 100px;
    margin-left: 1.2rem;
    flex-shrink: 0;
    z-index: 1;
  }
}

@media (min-width: 1200px) {
  .hero-01-image.image-02 {
    right: -6rem;
  }

  .hero-01-title .hero-01-image.image-03 {
    width: 140px;
  }
}

@media (min-width: 1600px) {
  .hero-01-image.image-02 {
    right: -7rem;
  }

  .hero-01-title .hero-01-image.image-03 {
    width: 180px;
  }
}

.stack-inner--bulb {
  overflow: hidden;
}

.services-stack__image--bulb {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 0.8rem 1.5rem 1.6rem;
}

.stack-bulb-fade {
  opacity: 0;
}

.services-stack__image--bulb .stack-bulb {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  display: block;
  width: min(150px, 46vw);
  max-width: 100%;
  max-height: 170px;
  height: auto;
  object-fit: contain !important;
  will-change: transform;
}

@media (max-width: 991px) {
  .services-stack,
  .stack-item {
    overflow: hidden;
  }

  .stack-inner--bulb .btn-default {
    max-width: 100%;
    height: 4.8rem;
    line-height: 4.8rem;
    padding: 0 1.4rem;
    font-size: 1.5rem;
    gap: 0.6rem;
  }

  .stack-inner--bulb .btn-default i {
    font-size: 1.8rem;
  }

  .stack-inner--bulb .btn-anim .btn-caption {
    height: 2.2rem;
    line-height: 2.2rem;
  }

  .services-stack__image--bulb {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 38%;
  }

  .services-stack__image--bulb > div {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden !important;
  }

  .services-stack__image--bulb .stack-bulb {
    width: min(140px, 42vw) !important;
    max-height: 150px !important;
    height: auto !important;
    transform: none !important;
  }
}

@media (min-width: 992px) {
  .stack-inner--bulb {
    overflow: visible;
  }

  .services-stack__image--bulb {
    align-items: center;
    overflow: visible;
    width: 40%;
    left: auto;
    right: 0;
    padding: 4rem 3rem;
  }

  .services-stack__image--bulb > div,
  .services-stack__image--bulb img {
    overflow: visible !important;
  }

  .services-stack__image--bulb .stack-bulb {
    width: 250px;
    max-height: none;
  }
}

/* mix-blend-mode + backdrop-filter on this fixed button composites as a
   solid black disc on Safari/WebKit and mobile, hiding the arrow in light mode. */
.btn-to-top {
  -webkit-appearance: none;
  appearance: none;
  mix-blend-mode: normal;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: var(--base-opp, #161616);
  color: var(--t-opp-bright, #ffffff);
}

.btn-to-top i {
  color: inherit;
}

/* Featured project cards: on mobile the stacked card height is fixed, so
   long titles/copy leave only a sliver for the mockup. Keep the same stack,
   but reserve a full-bleed image band and tighten the text. */
@media (max-width: 991px) {
  .mxd-services-stack__inner:not(.stack-inner--bulb) {
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
  }

  .mxd-services-stack__inner:not(.stack-inner--bulb) .mxd-services-stack__title,
  .mxd-services-stack__inner:not(.stack-inner--bulb) .mxd-services-stack__info {
    padding-right: 3rem;
    padding-left: 3rem;
  }

  .mxd-services-stack__inner:not(.stack-inner--bulb) .mxd-services-stack__title {
    flex: 0 0 auto;
    margin-bottom: 1.4rem;
    padding-right: 3rem;
  }

  .mxd-services-stack__inner:not(.stack-inner--bulb) .mxd-services-stack__title h3 {
    font-size: 2.8rem;
    line-height: 1.12;
  }

  .mxd-services-stack__inner:not(.stack-inner--bulb) .mxd-services-stack__title h3 br {
    display: none;
  }

  .mxd-services-stack__inner:not(.stack-inner--bulb) .mxd-services-stack__info {
    flex: 0 1 auto;
    min-height: 0;
    margin-bottom: 1.4rem;
  }

  .mxd-services-stack__inner:not(.stack-inner--bulb) .mxd-services-cards__tags {
    margin-bottom: 1.2rem;
    gap: 0.6rem;
  }

  .mxd-services-stack__inner:not(.stack-inner--bulb) .mxd-services-stack__info p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }

  .mxd-services-stack__inner:not(.stack-inner--bulb) .services-stack__image {
    position: relative;
    flex: 1 0 36%;
    align-self: stretch;
    min-height: 200px;
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .mxd-services-stack__inner:not(.stack-inner--bulb) .services-stack__image .service-img-s {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .mxd-services-stack__inner:not(.stack-inner--bulb) .mxd-services-stack__title,
  .mxd-services-stack__inner:not(.stack-inner--bulb) .mxd-services-stack__info {
    padding-right: 5rem;
    padding-left: 5rem;
  }
}

/* Header layout without hamburger menu */
.mxd-header {
  right: 3rem;
  width: auto;
}

@media only screen and (min-width: 768px) {
  .mxd-header {
    right: 6rem;
    width: auto;
  }
}

@media only screen and (min-width: 1600px) {
  .mxd-header {
    right: 9rem;
    width: auto;
  }
}

