/* =========================================================
   RAYO STUDIO — Homepage CSS
   Selectors match index.html (mxd-* BEM + bootstrap-ish grid)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/* ---------- Reset & tokens ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f6f6f6;
  --base: #ffffff;
  --base-opp: #161616;
  --base-tint: #e8e8e8;
  --accent: #2e2e2e;
  --accent-deep: #111111;
  --accent-glow: #9a9a9a;
  --accent-soft: #ededed;
  --heading: #111111;
  --additional: #d9d9d9;
  --text: #2b2b2b;
  --text-muted: #8a8a8a;
  --text-bright: #4d4d4d;
  --text-opposite: #ffffff;
  --radius-l: 40px;
  --radius-m: 20px;
  --radius-s: 12px;
  --container-w: 1770px;
  --font-main: "Funnel Sans", sans-serif;
  --font-head: "Funnel Sans", sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0d0d0d;
  --base: #111111;
  --base-opp: #f2f2f2;
  --base-tint: #1a1a1a;
  --text: #f2f2f2;
  --text-bright: #cfcfcf;
  --text-muted: #777;
}

html {
  scroll-behavior: auto;
}
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition:
    background var(--transition),
    color var(--transition);
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: inherit;
}
img,
svg,
video {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--heading);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

/* ---------- Typography helpers ---------- */
.t-bright {
  color: var(--text-bright);
}
.t-muted {
  color: var(--text-muted);
}
.t-opposite {
  color: rgba(255, 255, 255, 0.85);
}
.t-large {
  font-size: 18px;
  line-height: 1.6;
}
.t-caption {
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 600;
  color: var(--text-bright);
}
.t-xsmall {
  font-size: 12px;
}
.opposite {
  color: #fff;
}

/* ==========================================
   GRID SYSTEM (bootstrap-ish)
   ========================================== */
.mxd-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  /* 3rem gutter for page content; marquees sit outside the container and stay full-bleed */
  padding: 0 3rem;
}
.fullwidth-container {
  max-width: 100%;
  padding: 0;
}
.container-fluid {
  width: 100%;
  padding: 0 12px;
}
.container-fluid.px-0,
.px-0 {
  padding-left: 0;
  padding-right: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
[class*="col-"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0 8px;
}
.row.gx-0 > [class*="col-"],
.row.g-0 > [class*="col-"],
.gx-0 > [class*="col-"],
.g-0 > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.col-6 {
  width: 50%;
}

@media (min-width: 768px) {
  .col-md-6 {
    width: 50%;
  }
}
@media (min-width: 992px) {
  .col-lg-3 {
    width: 25%;
  }
}
@media (min-width: 1200px) {
  .col-xl-3 {
    width: 25%;
  }
  .col-xl-4 {
    width: 33.3333%;
  }
  .col-xl-5 {
    width: 41.6666%;
  }
  .col-xl-6 {
    width: 50%;
  }
  .col-xl-7 {
    width: 58.3333%;
  }
  .col-xl-8 {
    width: 66.6666%;
  }
  .offset-xl-1 {
    margin-left: 8.3333%;
  }
}
@media (min-width: 1400px) {
  .col-xxl-4 {
    width: 33.3333%;
  }
}

/* ==========================================
   SECTION SPACING UTILITIES
   ========================================== */
.mxd-section {
  position: relative;
}
.overflow-hidden {
  overflow: hidden;
}
.padding-default {
  padding: 0 0 200px;
}
.padding-pre-title {
  padding: 0 0 183px;
}
.padding-pre-grid {
  padding: 0 0 170px;
}
.padding-grid-pre-mtext {
  padding: 0 0 144px;
}
.padding-blog {
  padding: 0 0 192px;
}
.mxd-hero-section {
  padding: 96px 0 144px;
}
.mxd-mtext {
  padding: 0 0 146px;
}
.radius-l {
  border-radius: var(--radius-l);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}
.btn i {
  font-style: normal;
  transition: transform var(--transition);
}
.btn:hover i {
  transform: translate(3px, -3px);
}
.btn-outline {
  border: 1.5px solid var(--text);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}
.btn-additional {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: #fff;
  border: 1.5px solid transparent;
  box-shadow: 0 8px 22px rgba(46, 46, 46, 0.28);
}
.btn-additional:hover {
  background: linear-gradient(135deg, var(--accent-glow), var(--accent));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(154, 154, 154, 0.42);
}
.btn-large {
  padding: 18px 38px;
  font-size: 16px;
}
.btn-line {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.btn-line:hover {
  color: var(--text);
}

/* ==========================================
   NAVIGATION (hamburger + fullscreen menu)
   ========================================== */
.mxd-nav__wrap {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1200;
}
.mxd-nav__contain {
  padding: 22px 36px;
}
.mxd-nav__hamburger {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg);
  transition: all var(--transition);
}
.mxd-nav__hamburger:hover {
  background: var(--text);
}
.hamburger__line {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}
.mxd-nav__hamburger:hover .hamburger__line {
  background: var(--bg);
}
.mxd-nav__hamburger.active {
  background: #fff;
  border-color: #fff;
}
.mxd-nav__hamburger.active .hamburger__line {
  background: #0d0d0d;
}
.mxd-nav__hamburger.active .hamburger__line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.mxd-nav__hamburger.active .hamburger__line:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.mxd-menu__wrapper {
  position: fixed;
  inset: 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}
.mxd-menu__wrapper.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mxd-menu__base {
  position: absolute;
  inset: 0;
  background: var(--base-opp);
}
.mxd-menu__contain {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: stretch;
  padding: 120px 60px 60px;
}
.mxd-menu__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
}
.mxd-menu__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mxd-menu__caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}
.main-menu__content {
  flex: 1;
  display: flex;
  align-items: center;
}
.main-menu__accordion {
  width: 100%;
}
.main-menu__item {
  overflow: hidden;
}
.main-menu__link {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 0;
  transition: all var(--transition);
}
.main-menu__link:hover {
  color: #fff;
  padding-left: 22px;
}
.mxd-menu__right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.menu-promo__content {
  max-width: 320px;
}
.menu-promo__caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-bottom: 20px;
}
.menu-promo__video {
  border-radius: var(--radius-m);
  overflow: hidden;
}
.menu-promo__video img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ==========================================
   HEADER
   ========================================== */
.mxd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* extra right padding reserves space for the fixed hamburger so it never overlaps the controls */
  padding: 24px 104px 24px 40px;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.mxd-header > * {
  pointer-events: auto;
}
.mxd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mxd-logo__image {
  width: 42px;
  height: 42px;
}
.mxd-logo__bg {
  fill: var(--base-opp);
}
.mxd-logo__cat {
  fill: var(--bg);
}
.mxd-logo__text {
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--text);
}
.mxd-header__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mxd-color-switcher {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
  background: var(--bg);
}
.mxd-color-switcher:hover {
  transform: rotate(20deg);
}

/* ==========================================
   HERO
   ========================================== */
.mxd-hero-03__wrap {
  overflow: hidden;
}
.mxd-hero-03__top {
  position: relative;
  height: clamp(540px, 82vh, 880px);
  overflow: hidden;
}
.mxd-hero-03__marquee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.mxd-hero-03__marquee .marquee {
  display: flex;
  align-items: center;
}

/* generic marquee mechanism */
.marquee {
  overflow: hidden;
  width: 100%;
}
.marquee-flex {
  display: flex;
  width: max-content;
  align-items: center;
  animation: rayoScrollLeft 38s linear infinite;
  /* left-to-right movement (content travels rightward) */
  animation-direction: reverse;
}
.marquee.marquee--right .marquee-flex {
  animation-duration: 46s;
}
@keyframes rayoScrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.mxd-hero-03__marquee .marquee__item {
  padding: 0 26px;
}
/* free-floating transparent 3D images (no card / no crop).
   The height lives on the <img> so it keeps its natural aspect ratio
   and the container shrink-wraps to the real image width. */
.hero-03-marquee__media {
  display: flex;
  align-items: center;
  border-radius: 0;
  overflow: visible;
}
.hero-03-marquee__media img {
  height: clamp(340px, 48vh, 580px);
  width: auto;
  max-width: none; /* override global img max-width:100% so the image keeps its natural width */
  object-fit: contain;
  display: block;
  transition: transform 0.6s ease;
}
.hero-03-marquee__media.tall img {
  height: clamp(380px, 54vh, 640px);
}
.hero-03-marquee__media.wide img {
  height: clamp(300px, 42vh, 520px);
}
.marquee__item:hover .hero-03-marquee__media img {
  transform: scale(1.05);
}

/* headline overlays the moving image layer.
   No z-index here on purpose: it must stay in the same stacking
   context as the marquee so the caption's mix-blend-mode can
   reflect the moving images painted behind it. DOM order
   (marquee before headline) keeps the text on top. */
.mxd-hero-03__headline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-03-headline__caption {
  position: absolute;
  top: 33%;
  left: 40px;
  max-width: 760px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 44px);
  line-height: 1.2;
  /* "transparent" text: white + difference reflects the moving images behind */
  color: #fff;
  mix-blend-mode: difference;
}
.hero-03-headline__title {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  /* same "transparent" reflection as the caption */
  mix-blend-mode: difference;
}
.hero-03-headline__hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.hero-03-headline__svg {
  width: 100%;
  height: auto;
  display: block;
}
.hero-03-headline__svg path,
.hero-03-headline__svg text {
  fill: #fff;
}
.hero-03-headline__svg-mobile {
  display: none;
}

.mxd-hero-03__bottom {
  margin-top: 40px;
}
.mxd-divider {
  border-radius: var(--radius-l);
  overflow: hidden;
}
.mxd-divider__media,
.mxd-divider__image {
  height: 440px;
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
}
.mxd-divider__media img,
.mxd-divider__image img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  position: absolute;
  top: -9%;
  left: 0;
}

/* ==========================================
   TEXT MARQUEE
   ========================================== */
.mxd-mtext .marquee__item.text {
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 0 22px;
}
.marquee__text {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 120px);
  letter-spacing: -0.6px;
  white-space: nowrap;
  color: var(--text);
  opacity: 0.55;
}
.muted-extra .marquee__text {
  opacity: 0.32;
}
.marquee__star {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text);
  opacity: 0.4;
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
.mxd-services-cards-s__item {
  padding: 8px;
}
/* keep a gap on all sides — beats the `.row.gx-0 > [class*="col-"]` reset
   that otherwise zeroes the left/right padding and lets cards touch */
.mxd-services-cards-s .row.gx-0 > .mxd-services-cards-s__item {
  padding: 11px;
}
.mxd-services-cards-s__inner {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  height: 100%;
  padding: 30px;
  border-radius: var(--radius-l);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.mxd-services-cards-s__inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(13, 13, 13, 0.1);
}
.mxd-services-cards-s__inner.justify-between {
  justify-content: space-between;
}
.mxd-services-cards-s__inner.justify-end {
  justify-content: flex-end;
}
.bg-base-tint {
  background: var(--base-tint);
}
.bg-accent {
  background: var(--accent);
  color: #fff;
}
.bg-additional {
  background: var(--additional);
}
.bg-base-opp {
  background: var(--base-opp);
  color: #fff;
}
.mxd-services-cards-s__title h3 {
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.12;
}
.mxd-services-cards-s__info {
  max-width: 360px;
  position: relative;
  z-index: 2;
}
.mxd-services-cards-s__info.width-50 {
  max-width: 50%;
}
.mxd-services-cards-s__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tag {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tag-outline {
  border: 1px solid currentColor;
  color: var(--text-bright);
}
.tag-outline-opposite {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
}
.mxd-services-cards-s__info p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.75;
}
.mxd-services-cards-s__image {
  position: absolute;
  width: 170px;
  height: 170px;
  opacity: 0.92;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mxd-services-cards-s__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mxd-services-cards-s__inner:hover .mxd-services-cards-s__image {
  transform: scale(1.06) rotate(-3deg);
}
.mxd-services-cards-s__image.image-right {
  right: -6px;
  bottom: 24px;
}
.mxd-services-cards-s__image.image-top-right {
  right: 18px;
  top: 18px;
}
.mxd-services-cards-s__image.image-bottom {
  right: -6px;
  bottom: -16px;
}
.mxd-services-cards-s__image.image-top {
  right: 18px;
  top: 18px;
}

/* Cards whose image sits on top: content flows BELOW the image (no overlap) */
.mxd-services-cards-s__inner.img-top-layout {
  justify-content: flex-start;
  padding-top: 185px;
}

/* ==========================================
   GENERIC SECTION TITLES / BLOCKS
   ========================================== */
.mxd-grid-item {
  padding: 0 8px;
}
.mxd-block__name h2,
.mxd-section-title__title h2,
.mxd-section-title__hrtitle h2 {
  font-size: clamp(40px, 5.2vw, 70px);
  line-height: 1.1;
  letter-spacing: -0.6px;
}
.mxd-block__paragraph {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 6px;
}
.mxd-paragraph__lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 360px;
}
.mxd-paragraph__lists ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mxd-paragraph__lists li {
  font-size: 15px;
  color: var(--text-bright);
  padding-left: 16px;
  position: relative;
}
.mxd-paragraph__lists li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--text);
  border-radius: 50%;
}
.mxd-paragraph__controls {
  margin-top: 4px;
}

.mxd-section-title {
  margin-bottom: 64px;
}
.mxd-section-title__hrcontrols,
.mxd-section-title__controls {
  display: flex;
}
.mxd-section-title__descr {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 18px 0 28px;
}
.mxd-section-title__hrdescr p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================
   CAPABILITIES LIST
   ========================================== */
.mxd-cpb-list {
  position: relative;
}
.mxd-cpb-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: padding var(--transition);
  position: relative;
}
.mxd-cpb-list__item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.mxd-cpb-list__item:hover {
  padding-left: 20px;
}
[data-theme="dark"] .mxd-cpb-list__item {
  border-color: rgba(255, 255, 255, 0.12);
}
.mxd-cpb-list__title {
  font-size: clamp(20px, 2.2vw, 30px);
  color: var(--text-bright);
  font-weight: 600;
  transition: color var(--transition);
}
.mxd-cpb-list__item:hover .mxd-cpb-list__title {
  color: var(--text);
}
.mxd-cpb-list__num span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.mxd-cpb-hover {
  position: fixed;
  width: 200px;
  height: 250px;
  pointer-events: none;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0;
  z-index: 900;
  transform: translate(-50%, -50%);
  background-size: cover;
  background-position: center;
}

/* ==========================================
   CASE STUDIES (pinned)
   ========================================== */
.mxd-pinned-projects__static {
  position: sticky;
  top: 130px;
  align-self: start;
  padding-right: 40px;
}
.mxd-pinned-projects__scroll {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.mxd-project-item__media {
  display: block;
  height: 500px;
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  transition: transform 0.4s ease;
}
.mxd-project-item__media:hover {
  transform: scale(0.99);
}
.mxd-project-item__preview {
  position: absolute;
  inset: 0;
}
.mxd-project-item__preview img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  position: absolute;
  top: -9%;
  left: 0;
  transition: transform 0.6s ease;
}
.mxd-project-item__media:hover .mxd-project-item__preview img {
  transform: scale(1.05);
}
.mxd-project-item__tags {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag-permanent {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: #0d0d0d;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}
.mxd-project-item__name a {
  font-size: 18px;
  color: var(--text-bright);
  line-height: 1.4;
}
.mxd-project-item__name span {
  font-weight: 700;
  color: var(--text);
}

/* ==========================================
   TECH STACK
   ========================================== */
.mxd-tech-stack-cards__item {
  padding: 6px;
}
.mxd-tech-stack-cards__inner {
  background: var(--base-tint);
  border-radius: var(--radius-m);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.mxd-tech-stack-cards__inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .mxd-tech-stack-cards__inner {
  background: #1a1a1a;
}
.mxd-tech-stack-cards__logo {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mxd-tech-stack-cards__logo svg {
  width: 100%;
  height: 100%;
  fill: var(--text);
}

/* ==========================================
   STATS
   ========================================== */
.mxd-stats-simple__item {
  padding: 0;
}
.mxd-stats-simple__inner {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s;
}
.col-lg-3.mxd-stats-simple__item:first-child .mxd-stats-simple__inner {
  border-left: none;
}
.mxd-stats-simple__inner:hover {
  background: var(--base-tint);
  border-radius: var(--radius-m);
}
[data-theme="dark"] .mxd-stats-simple__inner {
  border-color: rgba(255, 255, 255, 0.1);
}
.mxd-stats-number {
  font-family: var(--font-head);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -1px;
  color: var(--text);
}
.mxd-stats-simple__image {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.85;
}
.mxd-stats-simple__descr {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.mxd-stats-simple__descr strong {
  display: block;
  color: var(--text-bright);
  font-weight: 500;
}

/* ==========================================
   BLOG / INSIGHTS
   ========================================== */
.mxd-blog-preview__item {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.mxd-blog-preview__media {
  display: block;
  height: 360px;
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}
.mxd-blog-preview__media:hover {
  transform: scale(0.98);
}
.mxd-blog-preview__image {
  position: absolute;
  inset: 0;
}
.mxd-blog-preview__image img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  position: absolute;
  top: -9%;
  left: 0;
  transition: transform 0.6s ease;
}
.mxd-blog-preview__media:hover .mxd-blog-preview__image img {
  transform: scale(1.05);
}
.mxd-preview-hover {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.mxd-preview-hover i {
  font-style: normal;
}
.mxd-blog-preview__media:hover .mxd-preview-hover {
  opacity: 1;
}
.mxd-blog-preview__tags {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: flex;
  gap: 8px;
}
.mxd-blog-preview__data a {
  font-size: 18px;
  color: var(--text-bright);
  line-height: 1.4;
}
.mxd-blog-preview__data span {
  font-weight: 700;
  color: var(--text);
}

/* ==========================================
   CTA / PROMO
   ========================================== */
.mxd-promo {
  padding: 20px 0 40px;
}
.mxd-promo__inner {
  border-radius: 80px;
  background: var(--base-opp);
  color: #fff;
  padding: 110px 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  min-height: 480px;
  justify-content: center;
  text-align: center;
}
.mxd-promo__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(154, 154, 154, 0.25),
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(217, 217, 217, 0.22),
      transparent 45%
    );
}
.mxd-promo__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.mxd-promo__title {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.mxd-promo__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.mxd-promo__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mxd-promo__caption {
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 100px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}
.mxd-promo__images {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.promo-image {
  position: absolute;
  border-radius: var(--radius-m);
  overflow: hidden;
  opacity: 0.55;
  object-fit: cover;
}
.promo-image-1 {
  left: 40px;
  bottom: 0;
  width: 160px;
  height: 200px;
}
.promo-image-2 {
  right: 60px;
  top: 40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

/* ==========================================
   FOOTER
   ========================================== */
.mxd-footer {
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  position: relative;
}
.mxd-footer__text-wrap {
  padding: 40px 0 0;
  overflow: hidden;
  height: clamp(90px, 16vw, 220px);
  display: flex;
  align-items: center;
}
.mxd-footer__fullwidth-text {
  font-family: var(--font-head);
  font-size: clamp(5rem, 16vw, 15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
  line-height: 1;
  color: var(--text);
  padding: 0 3rem;
  text-transform: lowercase;
}
.mxd-footer__footer-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 30px 3rem 60px;
  max-width: 100%;
  margin: 0 auto;
}
.footer-blocks__column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.footer-blocks__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--base);
  border-radius: var(--radius-m);
  padding: 32px;
}
.footer-blocks__card.fullheight-card {
  flex: 1;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text);
  transition: all var(--transition);
}
.footer-nav__link:hover {
  color: var(--accent);
  padding-left: 8px;
}
.footer-nav__counter {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 2px 10px;
  border-radius: 50px;
}
.footer-blocks__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.footer-blocks__links .btn-line {
  color: var(--text-muted);
}
.footer-blocks__links .btn-line:hover {
  color: var(--text);
}
.mxd-point-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-bright);
}
.footer-blocks__title-m {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-blocks__title-l {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.notify-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}
[data-theme="dark"] .notify-form {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.notify-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 12px 0;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 14px;
}
.notify-form input::placeholder {
  color: var(--text-muted);
}
.notify-form button {
  padding: 12px 4px;
  color: var(--text);
  font-size: 18px;
  transition: transform 0.3s;
}
.notify-form button:hover {
  transform: translate(3px, -3px);
}
.sub-msg {
  font-size: 13px;
  min-height: 16px;
}
.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-socials__link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--text-bright);
  transition: all var(--transition);
}
.footer-socials__link:hover {
  color: var(--accent);
  padding-left: 6px;
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.btn-to-top {
  position: fixed;
  bottom: 30px;
  right: 100px;
  z-index: 800;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}
.btn-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.btn-to-top:hover {
  transform: translateY(-4px);
}

/* reveal-type chars */
.rayo-char {
  will-change: opacity;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1199px) {
  .hero-03-headline__caption {
    left: 20px;
    top: 26%;
  }
  .mxd-pinned-projects__static {
    position: static;
    padding-right: 0;
    margin-bottom: 40px;
  }
}
@media (max-width: 991px) {
  .mxd-footer__footer-blocks {
    grid-template-columns: 1fr 1fr;
  }
  .mxd-menu__inner {
    grid-template-columns: 1fr;
  }
  .mxd-menu__right {
    display: none;
  }
}
@media (max-width: 768px) {
  .mxd-container {
    padding: 0 20px;
  }
  .mxd-services-cards-s__info.width-50 {
    max-width: 100%;
  }
  .mxd-promo__inner {
    border-radius: 40px;
    padding: 60px 28px;
  }
  .mxd-footer__footer-blocks {
    grid-template-columns: 1fr;
  }
  .promo-image {
    display: none;
  }
  .mxd-header {
    padding: 16px 20px;
  }
}

/* ==========================================
   ANIMATION ENHANCEMENTS (hover / focus micro-interactions)
   ========================================== */

/* Services & "What we offer" icon — rotate + scale on card hover */
.mxd-tech-stack-cards__logo svg {
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.mxd-tech-stack-cards__inner:hover .mxd-tech-stack-cards__logo svg {
  transform: rotate(-8deg) scale(1.15);
}

/* Service card decorative image — subtle zoom on hover */
/* (service image hover handled on the image wrapper above) */

/* Project & blog title — animated underline reveal */
.mxd-project-item__name a,
.mxd-blog-preview__data a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease;
}
.mxd-project-item:hover .mxd-project-item__name a,
.mxd-blog-preview__item:hover .mxd-blog-preview__data a {
  background-size: 100% 1.5px;
}

/* Footer social links — slide + color on hover */
.footer-socials__link {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}
.footer-socials__link:hover {
  transform: translateX(8px);
  color: var(--accent);
}

/* Subscribe input — focus underline grow */
.notify-form {
  position: relative;
}
.notify-form input {
  transition: border-color 0.35s ease;
}
.notify-form input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Magnetic buttons need a smooth return */
.btn,
.mxd-color-switcher {
  will-change: transform;
}

/* ==========================================
   FLOATING ACTION BUTTONS (WhatsApp / Call)
   ========================================== */
.mxd-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mxd-fab__btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mxd-fab__btn:hover {
  transform: translateY(-4px) scale(1.06);
}
.mxd-fab__wa {
  background: #25d366;
  animation: fabPulse 2.4s infinite;
}
.mxd-fab__call {
  background: var(--accent);
}
@keyframes fabPulse {
  0% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================
   INNER PAGES (about / services / projects / careers / contact)
   ========================================== */
.mxd-page-hero {
  padding: 190px 0 70px;
}
.mxd-page-hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.mxd-page-hero h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 13ch;
}
.mxd-page-hero__intro {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--text-bright);
  max-width: 620px;
  margin-top: 22px;
}
.mxd-prose p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-bright);
  margin-bottom: 18px;
}
.mxd-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.mxd-card {
  background: var(--base-tint);
  border-radius: var(--radius-l);
  padding: 36px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.mxd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(13, 13, 13, 0.1);
}
.mxd-card h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin-bottom: 12px;
}
.mxd-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-bright);
  opacity: 0.85;
}
.mxd-card__num {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.mxd-card__arrow {
  margin-top: 20px;
  font-size: 22px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.mxd-card:hover .mxd-card__arrow {
  transform: translate(4px, -4px);
}
/* team */
.mxd-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.mxd-team-card__photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--base-tint);
  margin-bottom: 16px;
}
.mxd-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.mxd-team-card:hover .mxd-team-card__photo img {
  transform: scale(1.06);
}
.mxd-team-card h4 {
  font-size: 20px;
}
.mxd-team-card .role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin: 4px 0 10px;
}
.mxd-team-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-bright);
  opacity: 0.8;
}
/* career rows */
.mxd-career {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.mxd-career:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.mxd-career h3 {
  font-size: clamp(22px, 2.4vw, 32px);
}
.mxd-career__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
/* forms */
.mxd-form {
  display: grid;
  gap: 16px;
  max-width: 620px;
}
.mxd-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mxd-form input,
.mxd-form textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  background: var(--base);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.3s ease;
}
.mxd-form textarea {
  min-height: 130px;
  resize: vertical;
}
.mxd-form input:focus,
.mxd-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.mxd-form__ok {
  background: rgba(85, 239, 196, 0.18);
  border: 1px solid rgba(85, 239, 196, 0.5);
  color: #128a63;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
}
[data-theme="dark"] .mxd-card,
[data-theme="dark"] .mxd-team-card__photo {
  background: #1a1a1a;
}
[data-theme="dark"] .mxd-form input,
[data-theme="dark"] .mxd-form textarea {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.14);
}
@media (max-width: 600px) {
  .mxd-form__row {
    grid-template-columns: 1fr;
  }
  .mxd-fab__btn {
    width: 48px;
    height: 48px;
  }
  .mxd-career {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================
   SERVICES PAGE (row list layout)
   ========================================== */
.mxd-srv-hero {
  padding: 180px 0 60px;
}
.mxd-srv-hero__title {
  font-size: clamp(40px, 6vw, 86px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-top: 16px;
}
.mxd-srv-hero__thumb {
  display: inline-block;
  width: clamp(48px, 6vw, 88px);
  height: clamp(38px, 4.4vw, 64px);
  border-radius: 50px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 18px;
  transform: translateY(-6px);
}
.mxd-srv-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mxd-srv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 56px;
}
.mxd-srv-stat {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  background: var(--base-tint);
  border-radius: var(--radius-l);
  padding: 32px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.mxd-srv-stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(13, 13, 13, 0.1);
}
.mxd-srv-stat__data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.mxd-srv-stat__num {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1px;
}
.mxd-srv-stat__desc {
  font-size: 14px;
  color: var(--text-bright);
  opacity: 0.8;
  max-width: 18ch;
  margin-bottom: auto;
}
.mxd-srv-stat__img {
  width: clamp(120px, 14vw, 190px);
  flex: none;
  border-radius: var(--radius-m);
  overflow: hidden;
}
.mxd-srv-stat__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-theme="dark"] .mxd-srv-stat {
  background: #1a1a1a;
}

/* services row list */
.mxd-srv-row {
  display: grid;
  grid-template-columns: 1fr 300px 190px 40px;
  align-items: center;
  gap: 30px;
  padding: 38px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mxd-srv-list .mxd-srv-row:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] .mxd-srv-row {
  border-color: rgba(255, 255, 255, 0.14);
}
.mxd-srv-row:hover {
  padding-left: 22px;
}
.mxd-srv-row__name h2 {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  transition: color 0.35s ease;
}
.mxd-srv-row:hover .mxd-srv-row__name h2 {
  color: var(--text);
}
.mxd-srv-row__desc p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-bright);
  opacity: 0.7;
}
.mxd-srv-row__tags {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mxd-srv-row__tags span {
  font-size: 13.5px;
  color: var(--text-bright);
  opacity: 0.7;
}
.mxd-srv-row__arrow {
  justify-self: end;
  font-size: 22px;
  color: var(--text-muted);
  transition: transform 0.35s ease, color 0.35s ease;
}
.mxd-srv-row__arrow i {
  font-style: normal;
}
.mxd-srv-row:hover .mxd-srv-row__arrow {
  color: var(--text);
  transform: translate(4px, -4px);
}
@media (max-width: 991px) {
  .mxd-srv-stats {
    grid-template-columns: 1fr;
  }
  .mxd-srv-row {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }
  .mxd-srv-row__tags {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px 16px;
  }
  .mxd-srv-row__arrow {
    display: none;
  }
}
