/* TraceSense — industrial / MES marketing layer (loads after style.css) */
body.ts-mes {
  --ts-ink: #0c1220;
  --ts-slate: #1a2332;
  --ts-line: rgba(12, 18, 32, 0.08);
  --ts-muted: #5c6470;
  --ts-surface: #eef1f6;
  --ts-accent-line: var(--theme-color1);
  --ts-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}

.ts-mes .main-header.header-style-one {
  border-bottom: 1px solid var(--ts-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.ts-mes .header-lower {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.ts-mes .sticky-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ts-line);
  box-shadow: 0 8px 32px rgba(12, 18, 32, 0.06);
}

.ts-mes .main-menu .navigation > li > a {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ts-mes .sec-title .sub-title {
  font-family: var(--ts-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.ts-mes .sec-title h2,
.ts-mes .sec-title h4 {
  letter-spacing: -0.02em;
  color: var(--ts-ink);
}

.ts-mes .services-section-four {
  background: linear-gradient(180deg, var(--ts-surface) 0%, #e8ecf3 100%);
  padding-top: 110px;
  padding-bottom: 100px;
  border-top: 1px solid var(--ts-line);
}

/* Homepage “Module detail” strip — FMS-style subtle grid, no flat grey box */
.ts-mes .services-section-four.ts-section-modules {
  position: relative;
  background: linear-gradient(180deg, #e4e9f1 0%, #ecf0f7 35%, #f5f7fb 100%);
  padding-top: 100px;
  padding-bottom: 96px;
}

.ts-mes .services-section-four.ts-section-modules::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(12, 18, 32, 0.04) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(12, 18, 32, 0.028) 0 1px, transparent 1px 52px);
  opacity: 0.55;
  pointer-events: none;
}

.ts-mes .services-section-four.ts-section-modules::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  background: radial-gradient(ellipse 90% 100% at 50% 0%, rgba(30, 90, 140, 0.09) 0%, transparent 72%);
  pointer-events: none;
}

.ts-mes .services-section-four.ts-section-modules .auto-container {
  position: relative;
  z-index: 1;
}

/* Calmer homepage strip — theme “anim-icons” off */
.ts-mes .services-section-four.ts-section-modules .ts-section-modules__decor {
  display: none !important;
}

.ts-mes .ts-module-detail-intro .sub-title {
  color: var(--theme-color1);
}

.ts-mes .ts-module-detail-intro h4 {
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.ts-mes .ts-module-intro {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-color);
  font-weight: 500;
}

.ts-mes .services-section-four .anim-icons {
  opacity: 0.35;
}

.ts-mes .service-block-six .inner-box {
  border-radius: 4px;
  border: 1px solid var(--ts-line);
  box-shadow: 0 12px 40px rgba(12, 18, 32, 0.06);
  background-image: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  text-align: left;
}

.ts-mes .service-block-six .icon-box:not(.icon-box--media) {
  border-radius: 3px 3px 0 0;
}

/* Full-width rectangular image strip — replaces circular thumbnails */
.ts-mes .service-block-six .icon-box.icon-box--media {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  margin: -50px -35px 22px -35px;
  padding: 0;
  width: calc(100% + 70px);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background: #0a0f16;
  border-bottom: 1px solid rgba(12, 18, 32, 0.1);
  overflow: hidden;
  border-radius: 3px 3px 0 0;
}

.ts-mes .service-block-six .icon-box.icon-box--media::after {
  display: none;
}

.ts-mes .service-block-six .ts-module-card-media {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 44%;
  max-height: 160px;
  overflow: hidden;
  background: #0a0f16;
}

.ts-mes .service-block-six .ts-module-card-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  border: none !important;
  border-radius: 0 !important;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: -webkit-transform 350ms ease;
  transition: transform 350ms ease;
}

@supports (aspect-ratio: 2.25 / 1) {
  .ts-mes .service-block-six .ts-module-card-media {
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 2.25 / 1;
    max-height: 160px;
  }
}

.ts-mes .service-block-six .inner-box:hover .ts-module-card-img {
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
}

.ts-mes .service-block-six .ts-module-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--theme-color1);
  z-index: 3;
}

.ts-mes .service-block-six .ts-module-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 8, 14, 0.5) 100%);
  z-index: 2;
  pointer-events: none;
}

.ts-mes .service-block-six .inner-box:hover {
  border-color: rgba(223, 35, 19, 0.25);
  box-shadow: 0 20px 48px rgba(12, 18, 32, 0.1);
  transform: translateY(-6px);
}

.ts-mes .service-block-six .title {
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  text-align: left;
  color: var(--ts-ink);
  font-weight: 700;
}

.ts-mes .service-block-six .text {
  color: var(--ts-muted);
  text-align: left;
}

/* Whole card is a link — global a:hover { color: inherit } + theme hover can wash out text */
.ts-mes .service-block-six > a.service-card-link,
.ts-mes .service-block-six > a.service-card-link:visited {
  color: var(--ts-ink);
}

.ts-mes .service-block-six > a.service-card-link:hover,
.ts-mes .service-block-six > a.service-card-link:focus {
  color: var(--ts-ink);
}

.ts-mes .service-block-six .inner-box:hover .title,
.ts-mes .service-block-six .inner-box:hover .title a,
.ts-mes .service-block-six a.service-card-link:hover .title {
  color: var(--theme-color1) !important;
}

.ts-mes .service-block-six .inner-box:hover .text,
.ts-mes .service-block-six a.service-card-link:hover .text {
  color: var(--ts-muted) !important;
}

.ts-mes .service-block-six .inner-box:hover:before {
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none;
}

.ts-mes .service-block-six .title:hover {
  color: var(--theme-color1) !important;
}

.ts-mes .short-banner-six .banner-inner {
  background: linear-gradient(135deg, var(--ts-slate) 0%, #0f1724 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  box-shadow: 0 24px 48px rgba(12, 18, 32, 0.2);
  color: rgba(255, 255, 255, 0.88);
}

.ts-mes .short-banner-six .banner-inner p {
  font-family: var(--ts-font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.ts-mes .short-banner-six .banner-inner h4 {
  color: #fff;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.ts-mes .short-banner-six .theme-btn.btn-style-two {
  border-color: rgba(255, 255, 255, 0.35);
}

.ts-mes .project-section.style-two .sec-title.light h2 {
  letter-spacing: -0.02em;
}

/* Homepage — recent projects strip */
.ts-mes .project-section.ts-home-projects {
  position: relative;
  overflow: hidden;
  padding-top: 88px !important;
  padding-bottom: 96px !important;
  background: linear-gradient(180deg, #eef1f6 0%, #e4e9f1 35%, #f0f3f8 100%) !important;
  border-top: 1px solid var(--ts-line);
}

.ts-mes .project-section.ts-home-projects .ts-home-projects__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(90deg, rgba(12, 18, 32, 0.035) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(12, 18, 32, 0.022) 0 1px, transparent 1px 44px);
}

.ts-mes .project-section.ts-home-projects .auto-container {
  position: relative;
  z-index: 1;
}

.ts-mes .ts-home-projects__header {
  margin-bottom: 36px;
}

.ts-mes .ts-home-projects .ts-home-projects__title .sub-title {
  color: var(--theme-color1);
}

.ts-mes .ts-home-projects .ts-home-projects__title h2 {
  color: var(--ts-ink) !important;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.35rem);
  line-height: 1.2;
  margin-bottom: 0;
}

.ts-mes .ts-home-projects__lead {
  margin: 14px 0 0;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ts-muted);
  font-weight: 500;
}

.ts-mes .ts-home-projects .project-block .inner-box {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(12, 18, 32, 0.1);
  -webkit-box-shadow: 0 18px 48px rgba(12, 18, 32, 0.1);
  box-shadow: 0 18px 48px rgba(12, 18, 32, 0.1);
}

.ts-mes .ts-home-projects .project-block .image-box .image::before {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(6, 10, 18, 0)), color-stop(45%, rgba(6, 10, 18, 0.2)), to(rgba(6, 10, 18, 0.88)));
  background: linear-gradient(180deg, rgba(6, 10, 18, 0) 0%, rgba(6, 10, 18, 0.2) 45%, rgba(6, 10, 18, 0.88) 100%);
}

.ts-mes .ts-home-projects .project-block .content-box .title a {
  color: #ffffff !important;
}

.ts-mes .ts-home-projects .project-block .content-box .cat {
  color: rgba(255, 255, 255, 0.82) !important;
}

.ts-mes .ts-home-projects .project-block .inner-box:hover .content-box .title a,
.ts-mes .ts-home-projects .project-block .inner-box:hover .content-box .cat {
  color: #ffffff !important;
}

.ts-mes .ts-home-projects .project-block .image-box .icon {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(8, 12, 20, 0.45);
}

.ts-mes .ts-home-projects .project-block .image-box .icon:hover {
  background: var(--theme-color1);
  color: #ffffff;
  border-color: var(--theme-color1);
}

.ts-mes .ts-home-projects .project-carousel .owl-dots .owl-dot {
  background-color: rgba(12, 18, 32, 0.25);
}

.ts-mes .ts-home-projects .project-carousel .owl-dots .owl-dot.active {
  background-color: var(--theme-color1);
  opacity: 1;
}

.ts-mes .testimonial-section-four {
  background: #fff;
  border-top: 1px solid var(--ts-line);
}

.ts-mes .testimonial-block-four .inner-box {
  border-radius: 4px;
  border: 1px solid var(--ts-line);
  box-shadow: 0 8px 32px rgba(12, 18, 32, 0.05);
}

.ts-mes .clients-section {
  background: var(--ts-surface);
  border-top: 1px solid var(--ts-line);
}

.ts-mes .clients-section .sec-title h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ts-muted);
  font-weight: 600;
}

/* /modules/ index — matches homepage module cards */
.ts-mes .services-section-four.ts-modules-page {
  padding-top: 88px;
  padding-bottom: 100px;
}

.ts-mes .ts-modules-page-intro {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.ts-mes .ts-modules-page-intro .sub-title {
  color: var(--theme-color1);
}

.ts-mes .ts-modules-page-intro h2 {
  font-size: clamp(1.5rem, 1.8vw + 1rem, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ts-ink);
  margin-bottom: 12px;
}

.ts-mes .ts-modules-page-intro .text,
.ts-mes .ts-modules-page-lead {
  color: var(--ts-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-top: 12px;
}

.ts-mes .ts-modules-empty {
  margin: 0;
  padding: 40px 20px;
  font-size: 16px;
  color: var(--ts-muted);
}

/* Homepage: customer logos sit under hero, above “Capabilities across your line” */
.ts-mes .clients-section.ts-home-clients {
  padding-top: 52px;
  padding-bottom: 44px;
  background: linear-gradient(180deg, #eef1f6 0%, #f6f8fb 55%, #fafbfc 100%);
  border-top: 1px solid rgba(12, 18, 32, 0.1);
}

.ts-mes .ts-home-clients .ts-home-clients__title {
  margin-bottom: 32px;
}

.ts-mes .ts-home-clients .sec-title .sub-title {
  display: block;
  margin-bottom: 6px;
}

.ts-mes .ts-home-clients .sec-title h2 {
  color: var(--ts-ink);
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.7rem);
  font-weight: 700;
}

/* Footer: full rules in “Site footer” block at end of file */

.ts-mes .theme-btn.btn-style-one {
  border-radius: 3px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.ts-mes .main-slider.hero-static .hero-content .title {
  font-family: var(--ts-font-mono);
}

.ts-mes .main-slider.hero-static .hero-actions .btn-style-three {
  -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* —— FMS/MES hero background (CSS-only — control-room / plant-floor feel, no office photo) —— */
.ts-mes .main-slider.hero-static.ts-hero-fms-bg {
  background-color: #03060c;
}

.ts-mes .main-slider.ts-hero-fms-bg .ts-hero-fms-visual {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 110% 90% at 8% 100%, rgba(223, 35, 19, 0.24) 0%, transparent 55%),
    radial-gradient(ellipse 65% 50% at 90% 6%, rgba(35, 120, 185, 0.32) 0%, transparent 50%),
    linear-gradient(168deg, #02050a 0%, #0a1524 38%, #0f2740 68%, #081018 100%);
}

.ts-mes .ts-hero-fms-visual__mesh {
  position: absolute;
  inset: 0;
  display: block;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 60px);
  opacity: 0.88;
  -webkit-mask-image: radial-gradient(ellipse 88% 78% at 42% 32%, #000 12%, transparent 68%);
  mask-image: radial-gradient(ellipse 88% 78% at 42% 32%, #000 12%, transparent 68%);
}

.ts-mes .ts-hero-fms-visual__scan {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  background:
    linear-gradient(185deg, rgba(2, 5, 10, 0.35) 0%, transparent 42%),
    linear-gradient(0deg, rgba(2, 5, 10, 0.65) 0%, transparent 38%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 200px,
      rgba(255, 255, 255, 0.018) 200px,
      rgba(255, 255, 255, 0.018) 201px
    );
}

.ts-mes .main-slider.ts-hero-fms-bg .ts-hero-fms-visual::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 22%;
  height: 2px;
  background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(40%, rgba(223, 35, 19, 0.5)), to(transparent));
  background: linear-gradient(90deg, transparent, rgba(223, 35, 19, 0.5) 40%, transparent);
  opacity: 0.75;
  pointer-events: none;
}

.ts-mes .main-slider.ts-hero-fms-bg .ts-hero-fms-visual::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 55%;
  left: -20%;
  bottom: -8%;
  background: radial-gradient(ellipse closest-side, rgba(15, 40, 70, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.ts-mes .main-slider.hero-static.ts-hero-fms-bg .hero-content {
  position: relative;
  z-index: 2;
}

.ts-mes .main-slider.hero-static .hero-pills {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px 12px;
}

/* —— Foodmach-style homepage hero (large masthead) —— */
.ts-mes .main-slider.hero-static.ts-hero-foodmach {
  min-height: min(92vh, 900px);
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.ts-mes .main-slider.hero-static.ts-hero-foodmach .hero-content {
  max-width: 920px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.ts-mes .main-slider.hero-static.ts-hero-foodmach .hero-content h1 {
  font-size: clamp(2.25rem, 5vw + 0.5rem, 3.85rem);
  max-width: 22ch;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ts-mes .main-slider.hero-static.ts-hero-fms-bg.ts-hero-foodmach .hero-content h1 {
  max-width: 30ch;
}

.ts-mes .main-slider.hero-static .hero-stat-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 22px;
  font-family: var(--ts-font-mono);
}

.ts-mes .main-slider.hero-static .hero-stat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--theme-color1);
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .ts-mes .main-slider.hero-static.ts-hero-foodmach .hero-content {
    padding-top: 56px;
    padding-bottom: 64px;
  }
}

/* —— Capability tile grid (Foodmach-style) —— */
.ts-capability-tiles {
  position: relative;
  padding: 72px 0 88px;
  background: linear-gradient(180deg, #e8ecf3 0%, #f4f6f9 45%, #ffffff 100%);
  border-top: 1px solid var(--ts-line);
  border-bottom: 1px solid var(--ts-line);
}

.ts-tiles-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.ts-tiles-kicker {
  font-family: var(--ts-font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--theme-color1);
  margin: 0 0 10px;
}

.ts-tiles-title {
  font-family: var(--title-font, "Outfit", sans-serif);
  font-size: clamp(1.75rem, 2vw + 1rem, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ts-ink);
  margin: 0 0 12px;
  line-height: 1.2;
}

.ts-tiles-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ts-muted);
  margin: 0;
  font-weight: 500;
  max-width: 52em;
}

.ts-tiles-row {
  margin-left: -12px;
  margin-right: -12px;
}

.ts-tiles-row > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 24px;
}

.ts-tile {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 100%;
  min-height: 240px;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none !important;
  -webkit-transition: -webkit-transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  border: 1px solid var(--ts-line);
  -webkit-box-shadow: 0 10px 36px rgba(12, 18, 32, 0.07);
  box-shadow: 0 10px 36px rgba(12, 18, 32, 0.07);
}

.ts-tile:hover {
  -webkit-transform: translateY(-6px);
  transform: translateY(-6px);
  -webkit-box-shadow: 0 20px 48px rgba(12, 18, 32, 0.12);
  box-shadow: 0 20px 48px rgba(12, 18, 32, 0.12);
  border-color: rgba(223, 35, 19, 0.25);
}

.ts-tile--light {
  background: #ffffff;
  color: var(--ts-ink);
}

.ts-tile--dark {
  background: linear-gradient(155deg, #0f1724 0%, #1a2332 55%, #121a28 100%);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.08);
}

.ts-tile--dark .ts-tile-heading,
.ts-tile--dark .ts-tile-desc {
  color: inherit;
}

.ts-tile--dark .ts-tile-desc {
  color: rgba(241, 245, 249, 0.72);
}

.ts-tile-media {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 46%;
  min-height: 120px;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.ts-tile--has-media {
  min-height: 300px;
}

.ts-tile--has-media::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46%;
  min-height: 120px;
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.1) 0%, rgba(12, 18, 32, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

.ts-tile--has-media.ts-tile--light::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 36, 0.75) 100%);
}

.ts-tile--has-media .ts-tile-heading {
  color: #ffffff;
}

.ts-tile--has-media .ts-tile-desc {
  color: rgba(255, 255, 255, 0.85);
}

.ts-tile--has-media .ts-tile-cta {
  color: #ffffff;
}

.ts-tile-body {
  position: relative;
  z-index: 2;
  padding: 26px 28px 28px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  height: 100%;
}

.ts-tile--has-media .ts-tile-body {
  padding-top: 42%;
  min-height: 200px;
}

.ts-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: rgba(223, 35, 19, 0.12);
  color: var(--theme-color1);
  border: 1px solid rgba(223, 35, 19, 0.2);
}

.ts-tile--dark .ts-tile-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.ts-tile-heading {
  font-family: var(--title-font, "Outfit", sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.3;
  color: inherit;
}

.ts-tile-desc {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 auto;
  padding-bottom: 16px;
  color: var(--ts-muted);
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.ts-tile--light .ts-tile-desc {
  color: var(--ts-muted);
}

.ts-tile-cta {
  font-family: var(--ts-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-color1);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

.ts-tile--dark .ts-tile-cta {
  color: rgba(255, 255, 255, 0.9);
}

.ts-tile:hover .ts-tile-cta i {
  -webkit-transform: translateX(4px);
  transform: translateX(4px);
}

.ts-tile-cta i {
  -webkit-transition: -webkit-transform 200ms ease;
  transition: transform 200ms ease;
  font-size: 0.85em;
}

/* —— Module detail pages (FMS / MES product layout — aligned with homepage module cards) —— */
.ts-mes .page-title.ts-module-page-title .title-outer {
  max-width: 920px;
}

.ts-mes .ts-module-kicker {
  font-family: var(--ts-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 14px;
  line-height: 1.4;
}

.ts-mes .ts-module-kicker-label {
  color: rgba(255, 255, 255, 0.55);
}

.ts-mes .ts-module-kicker-sep {
  margin: 0 0.35em;
  opacity: 0.6;
}

.ts-mes .ts-module-kicker a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-transition: border-color 0.2s ease, color 0.2s ease;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ts-mes .ts-module-kicker a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.ts-mes .services-details.ts-module-detail {
  padding-top: 48px;
  padding-bottom: 110px;
  background: linear-gradient(180deg, #e8ecf4 0%, #f2f5f9 18%, #fafbfc 45%, #ffffff 100%);
  border-top: 1px solid var(--ts-line);
}

.ts-mes .services-details.ts-module-detail .container {
  max-width: 1180px;
}

.ts-mes .ts-module-hero-media {
  margin-bottom: 40px;
}

.ts-mes .ts-module-hero-media__frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(12, 18, 32, 0.12);
  background: #070b10;
  -webkit-box-shadow: 0 24px 56px rgba(12, 18, 32, 0.12);
  box-shadow: 0 24px 56px rgba(12, 18, 32, 0.12);
}

.ts-mes .ts-module-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(420px, 52vw);
  -o-object-fit: cover;
  object-fit: cover;
}

.ts-mes .ts-module-hero-media__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 40px);
  opacity: 0.45;
  mix-blend-mode: overlay;
}

.ts-mes .ts-module-hero-media__accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: -webkit-gradient(linear, left top, right top, from(var(--theme-color1)), to(#c41e12));
  background: linear-gradient(90deg, var(--theme-color1), #c41e12);
  z-index: 2;
}

.ts-mes .ts-module-hero-media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(4, 8, 14, 0.08)), color-stop(55%, transparent), to(rgba(4, 8, 14, 0.35)));
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.08) 0%, transparent 55%, rgba(4, 8, 14, 0.35) 100%);
  z-index: 1;
}

@media (min-width: 992px) {
  .ts-mes .ts-module-sidebar-col .ts-module-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 96px;
  }
}

.ts-mes .ts-module-sidebar .ts-module-sidebar-title {
  font-family: var(--title-font, "Outfit", sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ts-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(12, 18, 32, 0.08);
}

.ts-mes .ts-module-sidebar-card {
  margin-bottom: 0;
}

.ts-mes .ts-module-sidebar .service-list ul {
  border-radius: 4px;
  border: 1px solid rgba(12, 18, 32, 0.1);
  background: #ffffff;
  -webkit-box-shadow: 0 10px 36px rgba(12, 18, 32, 0.06);
  box-shadow: 0 10px 36px rgba(12, 18, 32, 0.06);
}

.ts-mes .ts-module-sidebar .service-list li a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ts-ink);
  border-bottom: 1px solid rgba(12, 18, 32, 0.06);
  -webkit-transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ts-mes .ts-module-sidebar .service-list li a:hover {
  background: rgba(12, 18, 32, 0.03);
  color: var(--theme-color1);
}

.ts-mes .ts-module-sidebar .service-list li a.current {
  background: -webkit-gradient(linear, left top, right top, from(rgba(223, 35, 19, 0.09)), to(rgba(255, 255, 255, 0)));
  background: linear-gradient(90deg, rgba(223, 35, 19, 0.09) 0%, rgba(255, 255, 255, 0) 100%);
  border-left: 3px solid var(--theme-color1);
  padding-left: 13px;
  font-weight: 700;
  color: var(--ts-ink);
}

.ts-mes .ts-module-sidebar .service-list li a i {
  font-size: 11px;
  opacity: 0.55;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
}

.ts-mes .ts-module-sidebar .service-list li a:hover i {
  -webkit-transform: translateX(3px);
  transform: translateX(3px);
  opacity: 0.85;
}

.ts-mes .ts-module-article .inner-box {
  background: #ffffff;
  border: 1px solid rgba(12, 18, 32, 0.1);
  border-radius: 4px;
  padding: 36px 40px 44px;
  -webkit-box-shadow: 0 12px 40px rgba(12, 18, 32, 0.05);
  box-shadow: 0 12px 40px rgba(12, 18, 32, 0.05);
}

@media (max-width: 767px) {
  .ts-mes .ts-module-article .inner-box {
    padding: 24px 20px 32px;
  }
}

.ts-mes .ts-module-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ts-ink);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(12, 18, 32, 0.08);
}

.ts-mes .ts-module-lead p {
  margin-bottom: 0.75em;
}

.ts-mes .ts-module-lead p:last-child {
  margin-bottom: 0;
}

.ts-mes .ts-module-placeholder {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ts-muted);
  font-style: italic;
}

.ts-mes .ts-module-heading {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ts-ink);
  margin: 2rem 0 1rem;
}

.ts-mes .ts-module-heading:first-child {
  margin-top: 0;
}

.ts-mes .ts-module-body .text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ts-ink);
  margin-bottom: 1.25rem;
}

.ts-mes .ts-module-body .text p {
  margin-bottom: 1rem;
}

.ts-mes .ts-module-figure {
  margin: 1.5rem 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(12, 18, 32, 0.08);
  background: #f4f6f9;
}

.ts-mes .ts-module-figure img {
  width: 100%;
  display: block;
}

.ts-mes .ts-module-image-text {
  padding: 24px 22px;
  background: linear-gradient(180deg, #f6f8fb 0%, #fafbfc 100%);
  border: 1px solid rgba(12, 18, 32, 0.08);
  border-radius: 4px;
}

.ts-mes .ts-module-image-text .text {
  margin-bottom: 0;
}

/* —— Site footer (FMS / industrial — replaces generic dark footer) —— */
.ts-mes .main-footer.ts-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #050810 0%, #0c1524 42%, #081018 100%);
}

.ts-mes .main-footer.ts-footer .ts-footer__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 48px);
  opacity: 0.45;
}

.ts-mes .ts-footer .widgets-section {
  position: relative;
  z-index: 1;
  padding: 76px 0 52px;
}

.ts-mes .ts-footer .footer-column {
  margin-bottom: 36px;
}

.ts-mes .ts-footer .widget-title {
  font-family: var(--title-font, "Outfit", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  padding-bottom: 14px;
  margin-bottom: 18px;
  line-height: 1.3;
}

.ts-mes .ts-footer .widget-title::before,
.ts-mes .ts-footer .widget-title::after {
  display: none !important;
}

.ts-mes .ts-footer .widget-title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ts-mes .ts-footer-logo {
  display: inline-block;
  margin-bottom: 18px;
}

.ts-mes .ts-footer-logo img {
  max-width: 210px;
  width: 100%;
  height: auto;
  display: block;
}

.ts-mes .ts-footer-tagline {
  font-size: 15px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 22px;
  max-width: 380px;
}

.ts-mes .ts-footer-cert {
  margin-bottom: 22px;
}

.ts-mes .ts-footer-cert img {
  max-height: 52px;
  width: auto;
  opacity: 0.95;
}

.ts-mes .ts-footer .social-icon-two.ts-footer-social {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.ts-mes .ts-footer .social-icon-two.ts-footer-social li {
  margin: 0;
}

.ts-mes .ts-footer .social-icon-two.ts-footer-social a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  -webkit-transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, -webkit-transform 0.2s ease;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ts-mes .ts-footer .social-icon-two.ts-footer-social a:hover {
  background: rgba(223, 35, 19, 0.22);
  border-color: rgba(223, 35, 19, 0.5);
  color: #ffffff;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

.ts-mes .ts-footer-apps {
  margin-top: 4px;
}

.ts-mes .ts-footer-app-link {
  display: inline-block;
  line-height: 0;
  border-radius: 4px;
  overflow: hidden;
  -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ts-mes .ts-footer-app-link:hover {
  opacity: 0.92;
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

.ts-mes .ts-footer-app-link img {
  height: 40px;
  width: auto;
  display: block;
}

.ts-mes .ts-footer .about-widget .text {
  color: rgba(255, 255, 255, 0.72);
}

.ts-mes .ts-footer .user-links li {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 11px;
  font-size: 15px;
}

.ts-mes .ts-footer .user-links li a {
  color: rgba(255, 255, 255, 0.88);
  padding-left: 0 !important;
}

.ts-mes .ts-footer .user-links li a:hover {
  color: #ffffff;
  padding-left: 6px !important;
}

.ts-mes .ts-footer .user-links li a::before {
  display: none !important;
}

.ts-mes .ts-footer-address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 18px;
}

.ts-mes .ts-footer .contact-widget .contact-info.ts-footer-contact-list li {
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.ts-mes .ts-footer .contact-widget .contact-info.ts-footer-contact-list li a {
  color: rgba(255, 255, 255, 0.95);
}

.ts-mes .ts-footer .contact-widget .contact-info.ts-footer-contact-list li a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ts-mes .ts-footer .contact-widget .contact-info.ts-footer-contact-list li i {
  color: var(--theme-color1);
  top: 2px;
}

.ts-mes .ts-footer-note {
  font-family: var(--ts-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
  margin: 22px 0 0;
  max-width: 280px;
}

.ts-mes .ts-footer .footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.ts-mes .ts-footer .footer-bottom .inner-container {
  padding: 22px 15px !important;
  text-align: left !important;
  border-top: none !important;
  background: transparent !important;
}

.ts-mes .ts-footer-bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 22px 0;
}

.ts-mes .ts-footer .copyright-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.48) !important;
}

.ts-mes .ts-footer .copyright-text a {
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none;
}

.ts-mes .ts-footer .copyright-text a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ts-mes .ts-footer-legal-note {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--ts-font-mono);
  color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 767px) {
  .ts-mes .ts-footer .widgets-section {
    padding: 56px 0 40px;
  }

  .ts-mes .ts-footer-bottom {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }
}
