/**
 * MSP webSolution — skin on top of Cassiopeia.
 * Palette from the logo: lime gradient (#d7fa0b → #86f024), ice (#dff7fc), ink (#191a1b).
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --msp-ink: #141617;
  --msp-ink-2: #1d2022;
  --msp-ink-3: #2b2f32;
  --msp-lime: #a8f41a;
  --msp-lime-1: #d7fa0b;
  --msp-lime-2: #86f024;
  --msp-lime-grad: linear-gradient(135deg, #d7fa0b 0%, #86f024 100%);
  --msp-ice: #dff7fc;
  --msp-ice-soft: #f2fbfd;
  --msp-text: #1d2124;
  --msp-muted: #5a656d;
  --msp-line: #e2e8ea;
  --msp-green: #2f7a00;
  --msp-green-dark: #1f5200;
  --msp-radius: 18px;
  --msp-radius-lg: 28px;
  --msp-shadow: 0 1px 2px rgb(20 22 23 / 6%), 0 12px 32px -14px rgb(20 22 23 / 28%);
  --msp-shadow-lg: 0 2px 4px rgb(20 22 23 / 6%), 0 28px 60px -24px rgb(20 22 23 / 40%);
  --msp-header-h: 76px;
  --msp-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --msp-font-head: "Space Grotesk", "Inter", system-ui, sans-serif;

  --cassiopeia-color-primary: var(--msp-ink);
  --cassiopeia-color-link: var(--msp-green);
  --cassiopeia-color-hover: var(--msp-green-dark);
  --cassiopeia-font-family-body: var(--msp-font-body);
  --cassiopeia-font-family-headings: var(--msp-font-head);
  --cassiopeia-font-weight-headings: 700;
  --cassiopeia-scroll-margin-top: calc(var(--msp-header-h) + 1rem);
  --link-color: var(--msp-green);
  --link-color-rgb: 47, 122, 0;
  --link-hover-color: var(--msp-green-dark);
  --link-hover-color-rgb: 31, 82, 0;
  --body-color: var(--msp-text);
  --body-font-family: var(--msp-font-body);
}

/* ---------- Base ---------- */

html {
  background-color: var(--msp-ink);
}

body.site {
  background: #fff;
  color: var(--msp-text);
  font-family: var(--msp-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: var(--msp-font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--msp-ink);
}

h1, h2, .msp-pagehead__title, .msp-section__title {
  text-wrap: balance;
}

h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); margin-top: 2rem; }
h4 { font-size: 1.2rem; margin-top: 1.5rem; }

a {
  color: var(--msp-green);
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--msp-green-dark);
}

::selection {
  background: var(--msp-lime);
  color: var(--msp-ink);
}

:focus-visible {
  outline: 3px solid var(--msp-lime-2);
  outline-offset: 3px;
}

.container {
  max-width: 1240px;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.msp-skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: .6rem 1rem;
  border-radius: 10px;
  background: var(--msp-lime);
  color: var(--msp-ink);
  font-weight: 600;
}

.msp-skip:focus {
  top: 1rem;
}

.msp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  font-family: var(--msp-font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--msp-green);
}

.msp-eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 3px;
  border-radius: 3px;
  background: var(--msp-lime-grad);
}

.msp-arrow {
  display: inline-block;
  transition: transform .2s ease;
}

a:hover .msp-arrow,
.msp-service:hover .msp-arrow {
  transform: translateX(4px);
}

/* ---------- Buttons ---------- */

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: .7rem 1.4rem;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.btn-msp,
.btn-primary {
  --btn-color: var(--msp-ink);
  --btn-bg: var(--msp-lime);
  --btn-border-color: transparent;
  --btn-hover-color: var(--msp-ink);
  --btn-hover-bg: var(--msp-lime-1);
  --btn-hover-border-color: transparent;
  --btn-active-color: var(--msp-ink);
  --btn-active-bg: var(--msp-lime-2);
  background: var(--msp-lime-grad);
  border: 0;
  color: var(--msp-ink);
  box-shadow: 0 8px 24px -10px rgb(134 240 36 / 70%);
}

.btn-msp:hover,
.btn-msp:focus-visible,
.btn-primary:hover {
  color: var(--msp-ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgb(134 240 36 / 85%);
}

.btn-msp-ghost {
  border: 1px solid rgb(255 255 255 / 28%);
  color: #fff;
  background: rgb(255 255 255 / 4%);
}

.btn-msp-ghost:hover {
  border-color: var(--msp-lime);
  color: var(--msp-lime);
}

.btn-msp-outline,
.btn-secondary {
  border: 1.5px solid var(--msp-ink);
  color: var(--msp-ink);
  background: transparent;
}

.btn-msp-outline:hover,
.btn-secondary:hover {
  background: var(--msp-ink);
  border-color: var(--msp-ink);
  color: var(--msp-lime);
}

/* ---------- Header ---------- */

.msp-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgb(20 22 23 / 92%);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  transition: box-shadow .25s ease, background-color .25s ease;
}

.msp-header.is-scrolled {
  background: rgb(20 22 23 / 97%);
  box-shadow: 0 10px 30px -18px rgb(0 0 0 / 80%);
}

.msp-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--msp-header-h);
}

.msp-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.msp-brand:hover {
  color: #fff;
}

.msp-brand__icon {
  width: 44px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgb(168 244 26 / 25%));
  transition: transform .3s ease;
}

.msp-brand:hover .msp-brand__icon {
  transform: rotate(-8deg) scale(1.05);
}

.msp-brand__logo {
  display: block;
  width: auto;
  height: 32px;
}

.msp-brand__icon--mobile {
  display: none;
}

@media (width <= 767.98px) {
  .msp-header .msp-brand__logo {
    display: none;
  }

  .msp-header .msp-brand__icon--mobile {
    display: block;
  }
}

@media (992px <= width < 1200px) {
  .msp-header__cta {
    display: none;
  }
}

.msp-brand__name {
  font-family: var(--msp-font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.msp-brand__b {
  margin-left: .3rem;
  font-weight: 500;
  background: var(--msp-lime-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.msp-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.msp-nav .navbar {
  padding: 0;
  margin: 0;
}

.msp-nav .navbar-toggler {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 14px;
  color: #fff;
  font-size: 1.3rem;
}

.msp-nav .navbar-toggler:focus {
  box-shadow: none;
}

.msp-nav .metismenu.mod-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.msp-nav .metismenu.mod-menu .metismenu-item {
  padding: 0;
  font-size: .98rem;
}

.msp-nav .metismenu.mod-menu > .metismenu-item > a,
.msp-nav .metismenu.mod-menu > .metismenu-item > span,
.msp-nav .metismenu.mod-menu > .metismenu-item > button.mm-toggler-link {
  display: inline-flex;
  align-items: center;
  padding: .55rem .9rem;
  border-radius: 999px;
  color: rgb(255 255 255 / 78%);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.msp-nav .metismenu.mod-menu > .metismenu-item > a:hover,
.msp-nav .metismenu.mod-menu > .metismenu-item > button:hover,
.msp-nav .metismenu.mod-menu > .metismenu-item.active > a,
.msp-nav .metismenu.mod-menu > .metismenu-item.active > button {
  color: #fff;
  background: rgb(255 255 255 / 7%);
  text-decoration: none;
}

.msp-nav .metismenu.mod-menu > .metismenu-item.active > a,
.msp-nav .metismenu.mod-menu > .metismenu-item.active > button {
  color: var(--msp-lime);
}

.msp-nav .metismenu.mod-menu > .metismenu-item > button.mm-toggler,
.msp-nav .metismenu.mod-menu > .metismenu-item > button.mm-toggler:hover {
  background: none;
}

/* No dotted outline on click; keyboard users still get the focus ring */
.msp-nav .metismenu.mod-menu .metismenu-item > a:focus,
.msp-nav .metismenu.mod-menu .metismenu-item > button:focus {
  outline: none;
}

.msp-nav .metismenu.mod-menu .metismenu-item > a:focus-visible,
.msp-nav .metismenu.mod-menu .metismenu-item > button:focus-visible {
  outline: 2px solid var(--msp-lime);
  outline-offset: 2px;
}

.msp-nav .metismenu.mod-menu > .metismenu-item.parent > a {
  padding-right: .35rem;
}

.msp-nav .metismenu.mod-menu .mm-toggler {
  color: rgb(255 255 255 / 70%);
  padding: .55rem .6rem .55rem .1rem;
  border-radius: 999px;
}

.msp-nav .metismenu.mod-menu .mm-toggler::after {
  border-top-width: .35em;
  border-left-width: .35em;
  border-right-width: .35em;
  margin-inline-start: .3rem;
}

.msp-nav .metismenu.mod-menu .mm-collapse {
  min-width: 15rem;
  padding: .5rem;
  border-radius: 16px;
  background: var(--msp-ink-2);
  border: 1px solid rgb(255 255 255 / 8%);
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / 70%);
  list-style: none;
}

.msp-nav .metismenu.mod-menu .mm-collapse > li > a {
  display: block;
  width: 100%;
  padding: .55rem .8rem;
  border-radius: 10px;
  color: rgb(255 255 255 / 80%);
  text-decoration: none;
  font-size: .95rem;
}

.msp-nav .metismenu.mod-menu .mm-collapse > li > a:hover,
.msp-nav .metismenu.mod-menu .mm-collapse > li.active > a {
  background: rgb(168 244 26 / 12%);
  color: var(--msp-lime);
}

@media (width >= 992px) {
  .msp-nav .metismenu.mod-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .15rem;
  }

  .msp-nav .metismenu.mod-menu .metismenu-item.parent {
    position: relative;
  }

  /* Link + dropdown arrow share a single pill */
  .msp-nav .metismenu.mod-menu > .metismenu-item.parent {
    flex-wrap: nowrap;
    border-radius: 999px;
    transition: background-color .2s ease;
  }

  .msp-nav .metismenu.mod-menu > .metismenu-item.parent:hover,
  .msp-nav .metismenu.mod-menu > .metismenu-item.parent.active {
    background: rgb(255 255 255 / 7%);
  }

  .msp-nav .metismenu.mod-menu > .metismenu-item.parent > a,
  .msp-nav .metismenu.mod-menu > .metismenu-item.parent > a:hover {
    padding-right: .2rem;
    background: none;
  }

  .msp-nav .metismenu.mod-menu > .metismenu-item.parent > .mm-toggler {
    padding: .55rem .9rem .55rem .2rem;
  }

  .msp-nav .metismenu.mod-menu > .metismenu-item.parent.active > .mm-toggler {
    color: var(--msp-lime);
  }

  .msp-nav .metismenu.mod-menu .mm-collapse {
    position: absolute;
    top: calc(100% + .6rem);
    left: 0;
  }
}

@media (width <= 991.98px) {
  .msp-header__cta {
    display: none;
  }

  .msp-nav .navbar-toggler {
    display: inline-flex;
  }

  .msp-nav,
  .msp-nav .navbar {
    position: static;
  }

  /* The open menu panel spans the whole header, not just the toggler button */
  .msp-nav .metismenu.mod-menu {
    width: 100%;
  }

  .msp-nav .metismenu.mod-menu .mm-collapse {
    width: 100%;
    min-width: 0;
  }

  .msp-nav .metismenu.mod-menu .mm-collapse > li:last-child {
    border-bottom: 0;
  }

  .msp-nav .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--msp-header-h));
    overflow-y: auto;
    padding: .75rem clamp(1rem, 4vw, 2rem) 1.5rem;
    background: var(--msp-ink);
    border-bottom: 1px solid rgb(255 255 255 / 8%);
  }

  .msp-nav .metismenu.mod-menu .metismenu-item {
    flex-wrap: wrap;
    border-bottom: 1px solid rgb(255 255 255 / 6%);
  }

  .msp-nav .metismenu.mod-menu > .metismenu-item > a {
    flex: 1;
    padding: .9rem .25rem;
    border-radius: 0;
    font-size: 1.05rem;
  }

  .msp-nav .metismenu.mod-menu > .metismenu-item > a:hover,
  .msp-nav .metismenu.mod-menu > .metismenu-item.active > a {
    background: none;
  }

  .msp-nav .metismenu.mod-menu .mm-collapse {
    position: static;
    flex-basis: 100%;
    margin-bottom: .75rem;
    box-shadow: none;
  }
}

/* ---------- Hero (home) ---------- */

.msp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 30%, rgb(168 244 26 / 16%) 0%, transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgb(223 247 252 / 8%) 0%, transparent 70%),
    var(--msp-ink);
  color: rgb(255 255 255 / 78%);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 7rem);
}

.msp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 80% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

.msp-hero .container {
  position: relative;
}

.msp-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (width >= 992px) {
  .msp-hero__grid {
    grid-template-columns: 1.05fr .95fr;
  }
}

.msp-hero h1 {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.msp-hero .msp-eyebrow {
  color: var(--msp-lime);
}

.msp-hl {
  background: var(--msp-lime-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.msp-hero .lead {
  max-width: 36rem;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  color: rgb(255 255 255 / 72%);
}

.msp-hero .lead strong {
  color: #fff;
  font-weight: 600;
}

.msp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 2rem 0 0;
}

.msp-hero__actions .btn {
  padding: .9rem 1.6rem;
  font-size: 1.02rem;
}

.msp-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.msp-hero__tags li {
  padding: .35rem .85rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  font-size: .85rem;
  color: rgb(255 255 255 / 75%);
  background: rgb(255 255 255 / 3%);
}

.msp-hero__visual {
  margin: 0;
  text-align: center;
}

.msp-hero__visual img {
  width: min(100%, 560px);
  height: auto;
  animation: msp-float 7s ease-in-out infinite;
}

@keyframes msp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Page heading band (inner pages) ---------- */

.msp-pagehead {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.75rem, 5vw, 4.25rem);
  background:
    radial-gradient(50% 120% at 100% 0%, rgb(168 244 26 / 14%) 0%, transparent 60%),
    var(--msp-ink);
  color: rgb(255 255 255 / 75%);
}

.msp-pagehead::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 2px solid rgb(223 247 252 / 12%);
  border-radius: 50%;
  pointer-events: none;
}

.msp-pagehead .msp-eyebrow {
  color: var(--msp-lime);
  margin-bottom: .5rem;
}

.msp-pagehead__title {
  margin: 0;
  max-width: 22ch;
  color: #fff;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  letter-spacing: -0.03em;
}

.msp-pagehead .mod-breadcrumbs__wrapper {
  margin-bottom: 1.25rem;
}

.msp-pagehead .breadcrumb {
  margin: 0;
  padding: 0 !important;
  background: none;
  font-size: .9rem;
}

.msp-pagehead .breadcrumb-item,
.msp-pagehead .breadcrumb-item + .breadcrumb-item::before {
  color: rgb(255 255 255 / 50%);
}

.msp-pagehead .breadcrumb a {
  color: rgb(255 255 255 / 75%);
  text-decoration: none;
}

.msp-pagehead .breadcrumb a:hover {
  color: var(--msp-lime);
}

/* Component headings are replaced by the band title */
.msp-inner .com-content-article > .page-header,
.msp-home .com-content-article > .page-header,
.msp-inner .com-content-category-blog > .page-header:first-child,
.msp-inner .com-contact-category > h1:first-child,
.msp-inner .com-contact > .page-header:first-child {
  display: none;
}

/* ---------- Sections ---------- */

.msp-section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.msp-section--ice {
  background: var(--msp-ice-soft);
  border-block: 1px solid #e6f3f6;
}

.msp-section--dark {
  background: var(--msp-ink);
  color: rgb(255 255 255 / 75%);
}

.msp-section--dark .msp-section__title,
.msp-section--dark h3 {
  color: #fff;
}

.msp-section--dark .msp-eyebrow {
  color: var(--msp-lime);
}

.msp-section__head {
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.msp-section__title {
  margin: 0;
}

.msp-section__more {
  margin: 2.5rem 0 0;
  text-align: center;
}

/* ---------- Services ---------- */

.msp-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msp-service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--msp-line);
  border-radius: var(--msp-radius);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.msp-service:hover {
  transform: translateY(-4px);
  border-color: var(--msp-lime-2);
  box-shadow: var(--msp-shadow);
}

.msp-service__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
}

.msp-service__title {
  margin: 0 0 .6rem;
  font-size: 1.22rem;
}

.msp-service__title a {
  color: var(--msp-ink);
  text-decoration: none;
}

.msp-service__text {
  flex: 1;
  color: var(--msp-muted);
  font-size: .96rem;
  line-height: 1.6;
}

.msp-service__text p {
  margin: 0;
}

.msp-service__more {
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--msp-green);
}

/* ---------- Content area ---------- */

.msp-content {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.msp-home .msp-content {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  background: var(--msp-ice-soft);
  border-block: 1px solid #e6f3f6;
}

.msp-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (width >= 992px) {
  .has-sidebar-right .msp-content__grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

.view-article .com-content-article,
.view-contact .com-contact {
  max-width: 860px;
  margin-inline: auto;
}

.msp-home .view-article .com-content-article,
.msp-home .com-content-article {
  max-width: none;
}

.com-content-article__body {
  font-size: 1.08rem;
}

.com-content-article__body > p:first-child {
  font-size: 1.2rem;
  color: var(--msp-ink);
}

.com-content-article__body img,
.item-page img {
  border-radius: 14px;
}

.com-content-article__body p > img:only-child:not(.float-start, .float-end),
.com-content-article__body img.mx-auto {
  display: block;
  margin: 2rem auto;
  box-shadow: var(--msp-shadow-lg);
}

.com-content-article__body .float-start {
  float: left;
  max-width: 45%;
  margin: .3rem 1.75rem 1rem 0;
  box-shadow: var(--msp-shadow);
}

.com-content-article__body .float-end {
  float: right;
  max-width: 45%;
  margin: .3rem 0 1rem 1.75rem;
}

@media (width <= 575.98px) {
  .com-content-article__body .float-start,
  .com-content-article__body .float-end {
    float: none;
    display: block;
    max-width: 100%;
    margin: 1.5rem auto;
  }
}

.com-content-article__body h2,
.com-content-article__body h3 {
  clear: both;
}

.com-content-article__body ul,
.com-content-article__body ol {
  padding-left: 0;
  list-style: none;
}

.com-content-article__body ul > li,
.com-content-article__body ol > li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .55rem;
}

.com-content-article__body ul > li::before {
  content: "";
  position: absolute;
  left: .35rem;
  top: .62em;
  width: .6rem;
  height: .6rem;
  border-radius: 3px;
  background: var(--msp-lime-grad);
  transform: rotate(45deg);
}

.com-content-article__body ol {
  counter-reset: msp-ol;
}

.com-content-article__body ol > li {
  counter-increment: msp-ol;
}

.com-content-article__body ol > li::before {
  content: counter(msp-ol);
  position: absolute;
  left: 0;
  top: .15em;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--msp-ink);
  color: var(--msp-lime);
  font-size: .78rem;
  font-weight: 700;
}

.com-content-article__body blockquote,
.msp-callout {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--msp-lime-2);
  border-radius: 0 14px 14px 0;
  background: var(--msp-ice-soft);
}

.com-content-article__body figure {
  margin: 2.5rem 0;
}

.com-content-article__body figure img {
  display: block;
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--msp-shadow-lg);
}

.com-content-article__body figcaption {
  margin-top: .85rem;
  text-align: center;
  font-size: .9rem;
  color: var(--msp-muted);
}

.com-content-article__body p > .btn + .btn {
  margin-left: .5rem;
}

.com-content-article__body .btn-msp,
.com-content-article__body .btn-msp:hover {
  color: var(--msp-ink);
  text-decoration: none;
}

.com-content-article__body::after {
  content: "";
  display: table;
  clear: both;
}

.article-info,
.com-content-article .icons {
  display: none;
}

.pagenavigation {
  margin-top: 3rem;
}

.pagenavigation .pagination {
  justify-content: space-between;
}

.pagenavigation .btn {
  border: 1.5px solid var(--msp-line);
  color: var(--msp-ink);
  background: #fff;
}

.pagenavigation .btn:hover {
  border-color: var(--msp-ink);
}

/* ---------- Blog listings (services & portfolio pages) ---------- */

.com-content-category-blog .category-desc {
  max-width: 46rem;
  margin-bottom: 2.5rem;
  font-size: 1.12rem;
  color: var(--msp-muted);
}

.com-content-category-blog .blog-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  margin: 0 0 2rem;
  column-count: auto !important;
}

.com-content-category-blog .blog-item {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--msp-line);
  border-radius: var(--msp-radius);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  break-inside: avoid;
}

.com-content-category-blog .blog-item:hover {
  transform: translateY(-4px);
  border-color: var(--msp-lime-2);
  box-shadow: var(--msp-shadow);
}

.com-content-category-blog .blog-item .item-image {
  float: none !important;
  margin: 0;
}

.com-content-category-blog .blog-item .item-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.com-content-category-blog .blog-item .item-content > p {
  color: var(--msp-muted);
  font-size: .97rem;
  line-height: 1.6;
}

.com-content-category-blog .blog-item h2 {
  margin: 0 0 .65rem;
  font-size: 1.28rem;
}

.com-content-category-blog .blog-item h2 a {
  color: var(--msp-ink);
  text-decoration: none;
}

.com-content-category-blog .blog-item h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.com-content-category-blog .readmore {
  margin-top: auto;
}

.com-content-category-blog .readmore .btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--msp-green);
  font-size: .92rem;
  font-weight: 600;
  white-space: normal;
  text-align: left;
}

.com-content-category-blog .readmore .btn:hover {
  background: none;
  color: var(--msp-green-dark);
}

.com-content-category-blog .readmore .icon-chevron-right,
.com-content-category-blog .readmore .icon-chevron-left {
  display: none;
}

/* Service listing: icon tile on top */
.msp-page-services .blog-item .item-image {
  padding: 1.75rem 1.5rem 0;
}

.msp-page-services .blog-item .item-image img {
  width: 56px;
  height: 56px;
}

/* Portfolio listing: screenshots in a browser frame */
.msp-page-works .blog-item .item-image,
.msp-browser {
  position: relative;
  margin: 0;
  padding-top: 30px;
  overflow: hidden;
  background: var(--msp-ink-2);
  aspect-ratio: 16 / 10.5;
}

.msp-page-works .blog-item .item-image::before,
.msp-browser__bar {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background:
    radial-gradient(circle at 16px 15px, #ff5f57 4.5px, transparent 5px),
    radial-gradient(circle at 32px 15px, #febc2e 4.5px, transparent 5px),
    radial-gradient(circle at 48px 15px, #28c840 4.5px, transparent 5px),
    var(--msp-ink-3);
}

.msp-browser__bar i {
  display: none;
}

.msp-page-works .blog-item .item-image img,
.msp-browser img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  transition: transform .6s ease;
}

.msp-page-works .blog-item:hover .item-image img,
.msp-work:hover .msp-browser img {
  transform: scale(1.04);
}

/* Subcategory blocks inside the portfolio page */
.com-content-category-blog .cat-children {
  margin-top: 3rem;
}

/* ---------- Home: works ---------- */

.msp-works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msp-work {
  position: relative;
  overflow: hidden;
  border-radius: var(--msp-radius);
  background: var(--msp-ink-2);
  border: 1px solid rgb(255 255 255 / 7%);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.msp-work:hover {
  transform: translateY(-4px);
  border-color: rgb(168 244 26 / 50%);
  box-shadow: 0 28px 60px -28px rgb(0 0 0 / 90%);
}

.msp-work__body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.msp-work__cat {
  margin: 0 0 .35rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--msp-lime);
}

.msp-work__title {
  margin: 0 0 .4rem;
  font-size: 1.2rem;
}

.msp-work__title a {
  color: #fff;
  text-decoration: none;
}

.msp-work__text {
  font-size: .93rem;
  line-height: 1.55;
  color: rgb(255 255 255 / 62%);
}

.msp-work__text p {
  margin: 0;
}

.msp-section--dark .btn-msp-outline {
  border-color: rgb(255 255 255 / 40%);
  color: #fff;
}

.msp-section--dark .btn-msp-outline:hover {
  border-color: var(--msp-lime);
  background: var(--msp-lime);
  color: var(--msp-ink);
}

/* ---------- Home: about (article) ---------- */

.msp-about {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (width >= 992px) {
  .msp-about {
    grid-template-columns: .9fr 1.1fr;
  }

  .msp-about__intro {
    position: sticky;
    top: calc(var(--msp-header-h) + 2rem);
  }
}

.msp-about__intro h2 {
  margin: 0 0 1.25rem;
}

.msp-about__intro p {
  color: var(--msp-muted);
  font-size: 1.08rem;
}

.msp-slogan {
  margin-top: 2rem;
  font-family: var(--msp-font-head);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--msp-ink) !important;
}

.msp-slogan span {
  background: linear-gradient(transparent 62%, rgb(168 244 26 / 75%) 62%);
}

.com-content-article__body ul.msp-features,
.msp-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.com-content-article__body ul.msp-features > li,
.msp-features > li {
  margin: 0;
  padding: 1.5rem;
  border-radius: var(--msp-radius);
  background: #fff;
  border: 1px solid #e6f3f6;
  box-shadow: 0 1px 2px rgb(20 22 23 / 4%);
}

.com-content-article__body ul.msp-features > li::before {
  content: none;
}

.msp-features img {
  width: 48px;
  height: 48px;
  margin: 0 0 1rem;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.msp-features h3 {
  margin: 0 0 .35rem;
  font-size: 1.12rem;
}

.msp-features p {
  margin: 0;
  color: var(--msp-muted);
  font-size: .95rem;
  line-height: 1.55;
}

/* ---------- Home: process ---------- */

.msp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: msp-step;
}

.msp-steps > li {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--msp-radius);
  background: #fff;
  border: 1px solid var(--msp-line);
  counter-increment: msp-step;
}

.msp-steps > li::before {
  content: "0" counter(msp-step);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--msp-font-head);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--msp-lime-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.msp-steps h3 {
  margin: 0 0 .4rem;
  font-size: 1.15rem;
}

.msp-steps p {
  margin: 0;
  color: var(--msp-muted);
  font-size: .95rem;
  line-height: 1.55;
}

/* ---------- Team ---------- */

.msp-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msp-member {
  padding: 1.75rem;
  border: 1px solid var(--msp-line);
  border-radius: var(--msp-radius);
  background: #fff;
}

.msp-member__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.msp-member__photo {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--msp-lime);
}

.msp-member__photo--empty {
  display: grid;
  place-items: center;
  background: var(--msp-ink);
  color: var(--msp-lime);
  font-family: var(--msp-font-head);
  font-size: 2rem;
  font-weight: 700;
}

.msp-member__name {
  margin: 0;
  font-size: 1.3rem;
}

.msp-member__name a {
  color: var(--msp-ink);
  text-decoration: none;
}

.msp-member__role {
  margin: .2rem 0 0;
  color: var(--msp-green);
  font-size: .9rem;
  font-weight: 600;
}

.msp-member__bio {
  color: var(--msp-muted);
  font-size: .97rem;
  line-height: 1.6;
}

.msp-member__contact {
  margin: 1rem 0 0;
  font-weight: 600;
}

.com-contact-category .category-desc,
.com-contact-category > h2 {
  display: none;
}

/* ---------- Contact page ---------- */

.com-contact .contact-image img,
.com-contact .com-contact__thumbnail img {
  border-radius: 50%;
}

.com-contact h3 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

.com-contact .com-contact__address,
.com-contact .contact-address {
  padding: 1.5rem 1.75rem;
  border-radius: var(--msp-radius);
  background: var(--msp-ice-soft);
  border: 1px solid #e6f3f6;
}

.com-contact .contact-form,
.com-contact .com-contact__form {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-radius: var(--msp-radius-lg);
  background: #fff;
  border: 1px solid var(--msp-line);
  box-shadow: var(--msp-shadow);
}

.com-contact .contact-form legend {
  font-family: var(--msp-font-head);
  font-size: 1.4rem;
  font-weight: 700;
}

/* ---------- Forms ---------- */

.form-control,
.form-select {
  padding: .75rem 1rem;
  border: 1.5px solid var(--msp-line);
  border-radius: 12px;
  background-color: #fbfdfd;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--msp-lime-2);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgb(168 244 26 / 25%);
}

.form-check-input:checked {
  background-color: var(--msp-ink);
  border-color: var(--msp-ink);
}

/* ---------- CTA ---------- */

.msp-cta {
  padding: 0 0 clamp(3.5rem, 8vw, 6rem);
  background: #fff;
}

.msp-home .msp-cta,
.msp-inner .msp-cta {
  padding-top: clamp(1rem, 3vw, 2rem);
}

.msp-cta__box {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.75rem);
  border-radius: var(--msp-radius-lg);
  background: var(--msp-lime-grad);
  color: rgb(20 22 23 / 80%);
}

.msp-cta__box::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 320px;
  height: 320px;
  border: 2px solid rgb(20 22 23 / 12%);
  border-radius: 50%;
  pointer-events: none;
}

@media (width >= 992px) {
  .msp-cta__box {
    grid-template-columns: 1fr auto;
  }
}

.msp-cta__box h2 {
  margin: 0 0 .5rem;
  color: var(--msp-ink);
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
}

.msp-cta__box p {
  margin: 0;
  max-width: 40rem;
}

.msp-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.msp-cta__actions .btn {
  padding: .9rem 1.6rem;
}

.msp-cta__box .btn-msp {
  background: var(--msp-ink);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgb(20 22 23 / 80%);
}

.msp-cta__box .btn-msp:hover {
  color: var(--msp-lime);
}

.msp-cta__box .btn-msp-ghost {
  border-color: rgb(20 22 23 / 35%);
  background: rgb(255 255 255 / 25%);
  color: var(--msp-ink);
}

.msp-cta__box .btn-msp-ghost:hover {
  border-color: var(--msp-ink);
  color: var(--msp-ink);
  background: rgb(255 255 255 / 45%);
}

/* ---------- Footer ---------- */

.msp-footer {
  padding: clamp(3rem, 7vw, 5rem) 0 1.5rem;
  background: var(--msp-ink);
  color: rgb(255 255 255 / 62%);
  font-size: .95rem;
}

.msp-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (width >= 768px) {
  .msp-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.msp-brand--footer {
  margin-bottom: 1.25rem;
}

.msp-brand--footer .msp-brand__logo {
  height: 30px;
}

.msp-footer a {
  color: rgb(255 255 255 / 75%);
  text-decoration: none;
}

.msp-footer a:hover {
  color: var(--msp-lime);
}

.msp-footer__about p {
  max-width: 26rem;
}

.msp-footer__contacts {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.msp-footer__contacts li {
  display: flex;
  gap: .6rem;
  margin-bottom: .45rem;
}

.msp-footer__contacts .fa-solid,
.msp-footer__contacts [class^="icon-"] {
  width: 1.1rem;
  margin-top: .3rem;
  color: var(--msp-lime);
}

.msp-footer__title {
  margin: 0 0 1rem;
  font-family: var(--msp-font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}

.msp-footer .mod-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.msp-footer .mod-menu li {
  margin-bottom: .45rem;
}

.msp-footer .mod-menu .mod-menu__sub {
  display: none;
}

.msp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 8%);
  font-size: .85rem;
  color: rgb(255 255 255 / 45%);
}

.msp-footer__bottom p {
  margin: 0;
}

.msp-footer__bottom .mod-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.msp-footer__bottom .mod-menu li {
  margin: 0;
}

/* ---------- Error page ---------- */

.msp-error {
  display: grid;
  gap: 1rem 3rem;
  align-items: center;
  max-width: 960px;
}

@media (width >= 768px) {
  .msp-error {
    grid-template-columns: auto 1fr;
  }
}

.msp-error__code {
  margin: 0;
  font-family: var(--msp-font-head);
  font-size: clamp(5rem, 3rem + 10vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--msp-lime-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error_site .msp-footer {
  padding-top: 0;
}

/* ---------- Back to top ---------- */

.msp-backtop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--msp-lime-grad);
  color: var(--msp-ink);
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 50%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.msp-backtop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.msp-backtop:hover {
  color: var(--msp-ink);
}

/* ---------- Misc Joomla bits ---------- */

.alert {
  border-radius: 14px;
}

.pagination .page-link {
  border-radius: 10px;
  margin: 0 .15rem;
  color: var(--msp-ink);
}

.pagination .active .page-link {
  background: var(--msp-ink);
  border-color: var(--msp-ink);
  color: var(--msp-lime);
}

/* ---------- Reveal on scroll ---------- */

.msp-js .msp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--msp-delay, 0s);
}

.msp-js .msp-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .msp-js .msp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .msp-hero__visual img {
    animation: none;
  }

  .msp-service,
  .msp-work,
  .blog-item,
  .btn {
    transition: none;
  }
}
